From 14e848407cf81d82c309ebc2839cc55d0c858e11 Mon Sep 17 00:00:00 2001 From: actusnileh Date: Sat, 17 Aug 2024 13:05:45 +0000 Subject: [PATCH] deploy: cf133afd353a3d4f1cc205bdb5048ea87779d118 --- assets/index-Bv2i9CpX.js | 104 ------------------------------------- assets/index-FO8Kb1AW.js | 107 +++++++++++++++++++++++++++++++++++++++ index.html | 4 +- 3 files changed, 109 insertions(+), 106 deletions(-) delete mode 100644 assets/index-Bv2i9CpX.js create mode 100644 assets/index-FO8Kb1AW.js diff --git a/assets/index-Bv2i9CpX.js b/assets/index-Bv2i9CpX.js deleted file mode 100644 index b245776..0000000 --- a/assets/index-Bv2i9CpX.js +++ /dev/null @@ -1,104 +0,0 @@ -function Mp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dp={exports:{}},ta={},Ip={exports:{}},re={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var xi=Symbol.for("react.element"),Ty=Symbol.for("react.portal"),by=Symbol.for("react.fragment"),Ly=Symbol.for("react.strict_mode"),jy=Symbol.for("react.profiler"),My=Symbol.for("react.provider"),zy=Symbol.for("react.context"),Dy=Symbol.for("react.forward_ref"),Iy=Symbol.for("react.suspense"),Oy=Symbol.for("react.memo"),Fy=Symbol.for("react.lazy"),vf=Symbol.iterator;function Ay(e){return e===null||typeof e!="object"?null:(e=vf&&e[vf]||e["@@iterator"],typeof e=="function"?e:null)}var Op={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fp=Object.assign,Ap={};function ao(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||Op}ao.prototype.isReactComponent={};ao.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bp(){}Bp.prototype=ao.prototype;function $u(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||Op}var Tu=$u.prototype=new Bp;Tu.constructor=$u;Fp(Tu,ao.prototype);Tu.isPureReactComponent=!0;var wf=Array.isArray,Up=Object.prototype.hasOwnProperty,bu={current:null},Hp={key:!0,ref:!0,__self:!0,__source:!0};function Wp(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Up.call(t,r)&&!Hp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,te=j[X];if(0>>1;Xo(Fe,O))Peo(ct,Fe)?(j[X]=ct,j[Pe]=O,X=Pe):(j[X]=Fe,j[ye]=O,X=ye);else if(Peo(ct,O))j[X]=ct,j[Pe]=O,X=Pe;else break e}}return I}function o(j,I){var O=j.sortIndex-I.sortIndex;return O!==0?O:j.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],d=1,c=null,f=3,h=!1,y=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=j)r(u),I.sortIndex=I.expirationTime,t(s,I);else break;I=n(u)}}function S(j){if(v=!1,m(j),!y)if(n(s)!==null)y=!0,oe(_);else{var I=n(u);I!==null&&B(S,I.startTime-j)}}function _(j,I){y=!1,v&&(v=!1,g(N),N=-1),h=!0;var O=f;try{for(m(I),c=n(s);c!==null&&(!(c.expirationTime>I)||j&&!H());){var X=c.callback;if(typeof X=="function"){c.callback=null,f=c.priorityLevel;var te=X(c.expirationTime<=I);I=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(s)&&r(s),m(I)}else r(s);c=n(s)}if(c!==null)var Le=!0;else{var ye=n(u);ye!==null&&B(S,ye.startTime-I),Le=!1}return Le}finally{c=null,f=O,h=!1}}var w=!1,$=null,N=-1,M=5,L=-1;function H(){return!(e.unstable_now()-Lj||125X?(j.sortIndex=O,t(u,j),n(s)===null&&j===n(u)&&(v?(g(N),N=-1):v=!0,B(S,O-X))):(j.sortIndex=te,t(s,j),y||h||(y=!0,oe(_))),j},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(j){var I=f;return function(){var O=f;f=I;try{return j.apply(this,arguments)}finally{f=O}}}})(Zp);Xp.exports=Zp;var Zy=Xp.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Jy=x,vt=Zy;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ss=Object.prototype.hasOwnProperty,qy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Sf={},Cf={};function ev(e){return Ss.call(Cf,e)?!0:Ss.call(Sf,e)?!1:qy.test(e)?Cf[e]=!0:(Sf[e]=!0,!1)}function tv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nv(e,t,n,r){if(t===null||typeof t>"u"||tv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ot(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new ot(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var ju=/[\-:]([a-z])/g;function Mu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ju,Mu);He[t]=new ot(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ju,Mu);He[t]=new ot(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ju,Mu);He[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function zu(e,t,n,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var s=` -`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Fa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Io(e):""}function rv(e){switch(e.tag){case 5:return Io(e.type);case 16:return Io("Lazy");case 13:return Io("Suspense");case 19:return Io("SuspenseList");case 0:case 2:case 15:return e=Aa(e.type,!1),e;case 11:return e=Aa(e.type.render,!1),e;case 1:return e=Aa(e.type,!0),e;default:return""}}function Rs(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 $r:return"Fragment";case Nr:return"Portal";case Cs:return"Profiler";case Du:return"StrictMode";case Es:return"Suspense";case ks:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eh:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case Iu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ou:return t=e.displayName||null,t!==null?t:Rs(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return Rs(e(t))}catch{}}return null}function ov(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 Rs(t);case 8:return t===Du?"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 zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iv(e){var t=nh(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wi(e){e._valueTracker||(e._valueTracker=iv(e))}function rh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kl(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 _s(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zn(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 oh(e,t){t=t.checked,t!=null&&zu(e,"checked",t,!1)}function Ps(e,t){oh(e,t);var n=zn(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")?Ns(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ns(e,t.type,zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rf(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 Ns(e,t,n){(t!=="number"||kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Oo=Array.isArray;function Br(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ho={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},lv=["Webkit","ms","Moz","O"];Object.keys(Ho).forEach(function(e){lv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ho[t]=Ho[e]})});function sh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ho.hasOwnProperty(e)&&Ho[e]?(""+t).trim():t+"px"}function uh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var av=Ee({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 bs(e,t){if(t){if(av[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Ls(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 js=null;function Fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ms=null,Ur=null,Hr=null;function Nf(e){if(e=Ei(e)){if(typeof Ms!="function")throw Error(z(280));var t=e.stateNode;t&&(t=la(t),Ms(e.stateNode,e.type,t))}}function ch(e){Ur?Hr?Hr.push(e):Hr=[e]:Ur=e}function fh(){if(Ur){var e=Ur,t=Hr;if(Hr=Ur=null,Nf(e),t)for(e=0;e>>=0,e===0?32:31-(vv(e)/wv|0)|0}var Gi=64,Qi=4194304;function Fo(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 Nl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Fo(a):(i&=l,i!==0&&(r=Fo(i)))}else l=n&~o,l!==0?r=Fo(l):i!==0&&(r=Fo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Si(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function Ev(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=Vo),If=" ",Of=!1;function bh(e,t){switch(e){case"keyup":return Zv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function qv(e,t){switch(e){case"compositionend":return Lh(t);case"keypress":return t.which!==32?null:(Of=!0,If);case"textInput":return e=t.data,e===If&&Of?null:e;default:return null}}function e0(e,t){if(Tr)return e==="compositionend"||!Qu&&bh(e,t)?(e=$h(),pl=Wu=Rn=null,Tr=!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=Uf(n)}}function Dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ih(){for(var e=window,t=kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kl(e.document)}return t}function Yu(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 u0(e){var t=Ih(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dh(n.ownerDocument.documentElement,n)){if(r!==null&&Yu(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Hf(n,i);var l=Hf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,br=null,As=null,Qo=null,Bs=!1;function Wf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bs||br==null||br!==kl(r)||(r=br,"selectionStart"in r&&Yu(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}),Qo&&ii(Qo,r)||(Qo=r,r=bl(As,"onSelect"),0Mr||(e.current=Qs[Mr],Qs[Mr]=null,Mr--)}function pe(e,t){Mr++,Qs[Mr]=e.current,e.current=t}var Dn={},Ke=An(Dn),at=An(!1),lr=Dn;function Xr(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function st(e){return e=e.childContextTypes,e!=null}function jl(){ge(at),ge(Ke)}function Zf(e,t,n){if(Ke.current!==Dn)throw Error(z(168));pe(Ke,t),pe(at,n)}function Gh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,ov(e)||"Unknown",o));return Ee({},n,r)}function Ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,lr=Ke.current,pe(Ke,e),pe(at,at.current),!0}function Jf(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Gh(e,t,lr),r.__reactInternalMemoizedMergedChildContext=e,ge(at),ge(Ke),pe(Ke,e)):ge(at),pe(at,n)}var tn=null,aa=!1,es=!1;function Qh(e){tn===null?tn=[e]:tn.push(e)}function S0(e){aa=!0,Qh(e)}function Bn(){if(!es&&tn!==null){es=!0;var e=0,t=ue;try{var n=tn;for(ue=1;e>=l,o-=l,nn=1<<32-Dt(t)+o|n<N?(M=$,$=null):M=$.sibling;var L=f(g,$,m[N],S);if(L===null){$===null&&($=M);break}e&&$&&L.alternate===null&&t(g,$),p=i(L,p,N),w===null?_=L:w.sibling=L,w=L,$=M}if(N===m.length)return n(g,$),we&&Yn(g,N),_;if($===null){for(;NN?(M=$,$=null):M=$.sibling;var H=f(g,$,L.value,S);if(H===null){$===null&&($=M);break}e&&$&&H.alternate===null&&t(g,$),p=i(H,p,N),w===null?_=H:w.sibling=H,w=H,$=M}if(L.done)return n(g,$),we&&Yn(g,N),_;if($===null){for(;!L.done;N++,L=m.next())L=c(g,L.value,S),L!==null&&(p=i(L,p,N),w===null?_=L:w.sibling=L,w=L);return we&&Yn(g,N),_}for($=r(g,$);!L.done;N++,L=m.next())L=h($,g,N,L.value,S),L!==null&&(e&&L.alternate!==null&&$.delete(L.key===null?N:L.key),p=i(L,p,N),w===null?_=L:w.sibling=L,w=L);return e&&$.forEach(function(V){return t(g,V)}),we&&Yn(g,N),_}function C(g,p,m,S){if(typeof m=="object"&&m!==null&&m.type===$r&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Hi:e:{for(var _=m.key,w=p;w!==null;){if(w.key===_){if(_=m.type,_===$r){if(w.tag===7){n(g,w.sibling),p=o(w,m.props.children),p.return=g,g=p;break e}}else if(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Sn&&td(_)===w.type){n(g,w.sibling),p=o(w,m.props),p.ref=No(g,w,m),p.return=g,g=p;break e}n(g,w);break}else t(g,w);w=w.sibling}m.type===$r?(p=rr(m.props.children,g.mode,S,m.key),p.return=g,g=p):(S=Sl(m.type,m.key,m.props,null,g.mode,S),S.ref=No(g,p,m),S.return=g,g=S)}return l(g);case Nr:e:{for(w=m.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=ss(m,g.mode,S),p.return=g,g=p}return l(g);case Sn:return w=m._init,C(g,p,w(m._payload),S)}if(Oo(m))return y(g,p,m,S);if(Eo(m))return v(g,p,m,S);el(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,m),p.return=g,g=p):(n(g,p),p=as(m,g.mode,S),p.return=g,g=p),l(g)):n(g,p)}return C}var Jr=Zh(!0),Jh=Zh(!1),Il=An(null),Ol=null,Ir=null,Ju=null;function qu(){Ju=Ir=Ol=null}function ec(e){var t=Il.current;ge(Il),e._currentValue=t}function Xs(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 Vr(e,t){Ol=e,Ju=Ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Ju!==e)if(e={context:e,memoizedValue:t,next:null},Ir===null){if(Ol===null)throw Error(z(308));Ir=e,Ol.dependencies={lanes:0,firstContext:e}}else Ir=Ir.next=e;return t}var Jn=null;function tc(e){Jn===null?Jn=[e]:Jn.push(e)}function qh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tc(t)):(n.next=o.next,o.next=n),t.interleaved=n,sn(e,r)}function sn(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 Cn=!1;function nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function em(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,sn(e,n)}return o=r.interleaved,o===null?(t.next=t,tc(r)):(t.next=o.next,o.next=t),r.interleaved=t,sn(e,n)}function ml(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,Bu(e,n)}}function nd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Fl(e,t,n,r){var o=e.updateQueue;Cn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?i=u:l.next=u,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=s))}if(i!==null){var c=o.baseState;l=0,d=u=s=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(f=t,h=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){c=y.call(h,c,f);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,f=typeof y=="function"?y.call(h,c,f):y,f==null)break e;c=Ee({},c,f);break e;case 2:Cn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,s=c):d=d.next=h,l|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(s=c),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ur|=l,e.lanes=l,e.memoizedState=c}}function rd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ns.transition;ns.transition={};try{e(!1),t()}finally{ue=n,ns.transition=r}}function ym(){return _t().memoizedState}function R0(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vm(e))wm(t,n);else if(n=qh(e,t,n,r),n!==null){var o=tt();It(n,e,r,o),xm(n,t,r)}}function _0(e,t,n){var r=jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vm(e))wm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Ft(a,l)){var s=t.interleaved;s===null?(o.next=o,tc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=qh(e,t,o,r),n!==null&&(o=tt(),It(n,e,r,o),xm(n,t,r))}}function vm(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function wm(e,t){Yo=Bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bu(e,n)}}var Ul={readContext:Rt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},P0={readContext:Rt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:id,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yl(4194308,4,dm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return yl(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();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=R0.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:od,useDebugValue:cc,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=od(!1),t=e[0];return e=k0.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,o=Wt();if(we){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Oe===null)throw Error(z(349));sr&30||om(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,id(lm.bind(null,r,i,e),[e]),r.flags|=2048,pi(9,im.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Oe.identifierPrefix;if(we){var n=rn,r=nn;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Vt]=t,e[si]=r,Tm(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ls(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oto&&(t.flags|=128,r=!0,$o(i,!1),t.lanes=4194304)}else{if(!r)if(e=Al(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$o(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!we)return Ve(t),null}else 2*Ne()-i.renderingStartTime>to&&n!==1073741824&&(t.flags|=128,r=!0,$o(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ne(),t.sibling=null,n=Se.current,pe(Se,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return gc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function z0(e,t){switch(Xu(t),t.tag){case 1:return st(t.type)&&jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),ge(at),ge(Ke),ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ge(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(Se),null;case 4:return qr(),null;case 10:return ec(t.type._context),null;case 22:case 23:return gc(),null;case 24:return null;default:return null}}var nl=!1,Ge=!1,D0=typeof WeakSet=="function"?WeakSet:Set,U=null;function Or(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function iu(e,t,n){try{n()}catch(r){_e(e,t,r)}}var gd=!1;function I0(e,t){if(Us=$l,e=Ih(),Yu(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var h;c!==n||o!==0&&c.nodeType!==3||(a=l+o),c!==i||r!==0&&c.nodeType!==3||(s=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(h=c.firstChild)!==null;)f=c,c=h;for(;;){if(c===e)break t;if(f===n&&++u===o&&(a=l),f===i&&++d===r&&(s=l),(h=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=h}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hs={focusedElem:e,selectionRange:n},$l=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,C=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:bt(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(S){_e(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return y=gd,gd=!1,y}function Ko(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&iu(t,n,i)}o=o.next}while(o!==r)}}function ca(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 lu(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 jm(e){var t=e.alternate;t!==null&&(e.alternate=null,jm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[si],delete t[Gs],delete t[w0],delete t[x0])),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 Mm(e){return e.tag===5||e.tag===3||e.tag===4}function yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mm(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 au(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=Ll));else if(r!==4&&(e=e.child,e!==null))for(au(e,t,n),e=e.sibling;e!==null;)au(e,t,n),e=e.sibling}function su(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(su(e,t,n),e=e.sibling;e!==null;)su(e,t,n),e=e.sibling}var Be=null,Lt=!1;function wn(e,t,n){for(n=n.child;n!==null;)zm(e,t,n),n=n.sibling}function zm(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(na,n)}catch{}switch(n.tag){case 5:Ge||Or(n,t);case 6:var r=Be,o=Lt;Be=null,wn(e,t,n),Be=r,Lt=o,Be!==null&&(Lt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Lt?(e=Be,n=n.stateNode,e.nodeType===8?qa(e.parentNode,n):e.nodeType===1&&qa(e,n),ri(e)):qa(Be,n.stateNode));break;case 4:r=Be,o=Lt,Be=n.stateNode.containerInfo,Lt=!0,wn(e,t,n),Be=r,Lt=o;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&iu(n,t,l),o=o.next}while(o!==r)}wn(e,t,n);break;case 1:if(!Ge&&(Or(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){_e(n,t,a)}wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,wn(e,t,n),Ge=r):wn(e,t,n);break;default:wn(e,t,n)}}function vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new D0),t.forEach(function(r){var o=G0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*F0(r/1960))-r,10e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,Vl=0,le&6)throw Error(z(331));var o=le;for(le|=4,U=e.current;U!==null;){var i=U,l=i.child;if(U.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sNe()-hc?nr(e,0):pc|=n),ut(e,t)}function Hm(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=tt();e=sn(e,t),e!==null&&(Si(e,t,n),ut(e,n))}function V0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hm(e,n)}function G0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),Hm(e,n)}var Wm;Wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,j0(e,t,n);lt=!!(e.flags&131072)}else lt=!1,we&&t.flags&1048576&&Yh(t,Dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vl(e,t),e=t.pendingProps;var o=Xr(t,Ke.current);Vr(t,n),o=ac(null,t,r,e,o,n);var i=sc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(r)?(i=!0,Ml(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nc(t),o.updater=ua,t.stateNode=o,o._reactInternals=t,Js(t,r,e,n),t=tu(null,t,r,!0,i,n)):(t.tag=0,we&&i&&Ku(t),qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Y0(r),e=bt(r,e),o){case 0:t=eu(null,t,r,e,n);break e;case 1:t=pd(null,t,r,e,n);break e;case 11:t=fd(null,t,r,e,n);break e;case 14:t=dd(null,t,r,bt(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),eu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),pd(e,t,r,o,n);case 3:e:{if(Pm(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,em(e,t),Fl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=eo(Error(z(423)),t),t=hd(e,t,r,n,o);break e}else if(r!==o){o=eo(Error(z(424)),t),t=hd(e,t,r,n,o);break e}else for(ht=Tn(t.stateNode.containerInfo.firstChild),gt=t,we=!0,Mt=null,n=Jh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zr(),r===o){t=un(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return tm(t),e===null&&Ks(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ws(r,o)?l=null:i!==null&&Ws(r,i)&&(t.flags|=32),_m(e,t),qe(e,t,l,n),t.child;case 6:return e===null&&Ks(t),null;case 13:return Nm(e,t,n);case 4:return rc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jr(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),fd(e,t,r,o,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,pe(Il,r._currentValue),r._currentValue=l,i!==null)if(Ft(i.value,l)){if(i.children===o.children&&!at.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=on(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Xs(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(z(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Xs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vr(t,n),o=Rt(o),r=r(o),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,o=bt(r,t.pendingProps),o=bt(r.type,o),dd(e,t,r,o,n);case 15:return km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bt(r,o),vl(e,t),t.tag=1,st(r)?(e=!0,Ml(t)):e=!1,Vr(t,n),Sm(t,r,o),Js(t,r,o,n),tu(null,t,r,!0,e,n);case 19:return $m(e,t,n);case 22:return Rm(e,t,n)}throw Error(z(156,t.tag))};function Vm(e,t){return vh(e,t)}function Q0(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 Et(e,t,n,r){return new Q0(e,t,n,r)}function vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y0(e){if(typeof e=="function")return vc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Iu)return 11;if(e===Ou)return 14}return 2}function Mn(e,t){var n=e.alternate;return n===null?(n=Et(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 Sl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")vc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case $r:return rr(n.children,o,i,t);case Du:l=8,o|=8;break;case Cs:return e=Et(12,n,t,o|2),e.elementType=Cs,e.lanes=i,e;case Es:return e=Et(13,n,t,o),e.elementType=Es,e.lanes=i,e;case ks:return e=Et(19,n,t,o),e.elementType=ks,e.lanes=i,e;case th:return da(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:l=10;break e;case eh:l=9;break e;case Iu:l=11;break e;case Ou:l=14;break e;case Sn:l=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Et(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function rr(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function da(e,t,n,r){return e=Et(22,e,r,t),e.elementType=th,e.lanes=n,e.stateNode={isHidden:!1},e}function as(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function ss(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function K0(e,t,n,r,o){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=Ua(0),this.expirationTimes=Ua(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ua(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wc(e,t,n,r,o,i,l,a,s){return e=new K0(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nc(i),e}function X0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Km)}catch(e){console.error(e)}}Km(),Kp.exports=wt;var Ri=Kp.exports;const Xm=zp(Ri),t1=Mp({__proto__:null,default:Xm},[Ri]);var Zm,_d=Ri;Zm=_d.createRoot,_d.hydrateRoot;/** - * @remix-run/router v1.19.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function no(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function r1(){return Math.random().toString(36).substr(2,8)}function Nd(e,t){return{usr:e.state,key:e.key,idx:t}}function mi(e,t,n,r){return n===void 0&&(n=null),xe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Un(t):t,{state:n,key:t&&t.key||r||r1()})}function _i(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 Un(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 o1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=Te.Pop,s=null,u=d();u==null&&(u=0,l.replaceState(xe({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function c(){a=Te.Pop;let C=d(),g=C==null?null:C-u;u=C,s&&s({action:a,location:v.location,delta:g})}function f(C,g){a=Te.Push;let p=mi(v.location,C,g);u=d()+1;let m=Nd(p,u),S=v.createHref(p);try{l.pushState(m,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(S)}i&&s&&s({action:a,location:v.location,delta:1})}function h(C,g){a=Te.Replace;let p=mi(v.location,C,g);u=d();let m=Nd(p,u),S=v.createHref(p);l.replaceState(m,"",S),i&&s&&s({action:a,location:v.location,delta:0})}function y(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:_i(C);return p=p.replace(/ $/,"%20"),ie(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let v={get action(){return a},get location(){return e(o,l)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Pd,c),s=C,()=>{o.removeEventListener(Pd,c),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let g=y(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(C){return l.go(C)}};return v}var fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fe||(fe={}));const i1=new Set(["lazy","caseSensitive","path","id","index","children"]);function l1(e){return e.index===!0}function gi(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,String(i)],a=typeof o.id=="string"?o.id:l.join("-");if(ie(o.index!==!0||!o.children,"Cannot specify children on an index route"),ie(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),l1(o)){let s=xe({},o,t(o),{id:a});return r[a]=s,s}else{let s=xe({},o,t(o),{id:a,children:void 0});return r[a]=s,o.children&&(s.children=gi(o.children,t,l,r)),s}})}function Xn(e,t,n){return n===void 0&&(n="/"),Cl(e,t,n,!1)}function Cl(e,t,n,r){let o=typeof t=="string"?Un(t):t,i=Pi(o.pathname||"/",n);if(i==null)return null;let l=Jm(e);s1(l);let a=null;for(let s=0;a==null&&s{let s={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};s.relativePath.startsWith("/")&&(ie(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=or([r,s.relativePath]),d=n.concat(s);i.children&&i.children.length>0&&(ie(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Jm(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:m1(u,i.index),routesMeta:d})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of qm(i.path))o(i,l,s)}),t}function qm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=qm(r.join("/")),a=[];return a.push(...l.map(s=>s===""?i:[i,s].join("/"))),o&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function s1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:g1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const u1=/^:[\w-]+$/,c1=3,f1=2,d1=1,p1=10,h1=-2,$d=e=>e==="*";function m1(e,t){let n=e.split("/"),r=n.length;return n.some($d)&&(r+=h1),t&&(r+=f1),n.filter(o=>!$d(o)).reduce((o,i)=>o+(u1.test(i)?c1:i===""?d1:p1),r)}function g1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function y1(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",l=[];for(let a=0;a{let{paramName:f,isOptional:h}=d;if(f==="*"){let v=a[c]||"";l=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[c];return h&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function v1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),no(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function w1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return no(!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 Pi(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 x1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Un(e):e;return{pathname:n?n.startsWith("/")?n:S1(n,t):t,search:R1(r),hash:_1(o)}}function S1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function us(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 eg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function C1(e,t){let n=eg(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function E1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Un(e):(o=xe({},e),ie(!o.pathname||!o.pathname.includes("?"),us("?","pathname","search",o)),ie(!o.pathname||!o.pathname.includes("#"),us("#","pathname","hash",o)),ie(!o.search||!o.search.includes("#"),us("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),c-=1;o.pathname=f.join("/")}a=c>=0?t[c]:"/"}let s=x1(o,a),u=l&&l!=="/"&&l.endsWith("/"),d=(i||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}const or=e=>e.join("/").replace(/\/\/+/g,"/"),k1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Yl{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ya(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const tg=["post","put","patch","delete"],P1=new Set(tg),N1=["get",...tg],$1=new Set(N1),T1=new Set([301,302,303,307,308]),b1=new Set([307,308]),cs={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},L1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ec=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j1=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ng="remix-router-transitions";function M1(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ie(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let E=e.detectErrorBoundary;o=R=>({hasErrorBoundary:E(R)})}else o=j1;let i={},l=gi(e.routes,o,void 0,i),a,s=e.basename||"/",u=e.unstable_dataStrategy||F1,d=e.unstable_patchRoutesOnMiss,c=xe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,y=null,v=null,C=null,g=e.hydrationData!=null,p=Xn(l,e.history.location,s),m=null;if(p==null&&!d){let E=Je(404,{pathname:e.history.location.pathname}),{matches:R,route:P}=Ad(l);p=R,m={[P.id]:E}}p&&!e.hydrationData&&Ii(p,l,e.history.location.pathname).active&&(p=null);let S;if(p)if(p.some(E=>E.route.lazy))S=!1;else if(!p.some(E=>E.route.loader))S=!0;else if(c.v7_partialHydration){let E=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,P=T=>T.route.loader?typeof T.route.loader=="function"&&T.route.loader.hydrate===!0?!1:E&&E[T.route.id]!==void 0||R&&R[T.route.id]!==void 0:!0;if(R){let T=p.findIndex(A=>R[A.route.id]!==void 0);S=p.slice(0,T+1).every(P)}else S=p.every(P)}else S=e.hydrationData!=null;else if(S=!1,p=[],c.v7_partialHydration){let E=Ii(null,l,e.history.location.pathname);E.active&&E.matches&&(p=E.matches)}let _,w={historyAction:e.history.action,location:e.history.location,matches:p,initialized:S,navigation:cs,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},$=Te.Pop,N=!1,M,L=!1,H=new Map,V=null,Y=!1,F=!1,ee=[],oe=new Set,B=new Map,j=0,I=-1,O=new Map,X=new Set,te=new Map,Le=new Map,ye=new Set,Fe=new Map,Pe=new Map,ct=new Map,Xt=!1;function Wn(){if(f=e.history.listen(E=>{let{action:R,location:P,delta:T}=E;if(Xt){Xt=!1;return}no(Pe.size===0||T!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let A=hf({currentLocation:w.location,nextLocation:P,historyAction:R});if(A&&T!=null){Xt=!0,e.history.go(T*-1),zi(A,{state:"blocked",location:P,proceed(){zi(A,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),e.history.go(T)},reset(){let W=new Map(w.blockers);W.set(A,bo),je({blockers:W})}});return}return $t(R,P)}),n){J1(t,H);let E=()=>q1(t,H);t.addEventListener("pagehide",E),V=()=>t.removeEventListener("pagehide",E)}return w.initialized||$t(Te.Pop,w.location,{initialHydration:!0}),_}function go(){f&&f(),V&&V(),h.clear(),M&&M.abort(),w.fetchers.forEach((E,R)=>Mi(R)),w.blockers.forEach((E,R)=>pf(R))}function yo(E){return h.add(E),()=>h.delete(E)}function je(E,R){R===void 0&&(R={}),w=xe({},w,E);let P=[],T=[];c.v7_fetcherPersist&&w.fetchers.forEach((A,W)=>{A.state==="idle"&&(ye.has(W)?T.push(W):P.push(W))}),[...h].forEach(A=>A(w,{deletedFetchers:T,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(P.forEach(A=>w.fetchers.delete(A)),T.forEach(A=>Mi(A)))}function Nt(E,R,P){var T,A;let{flushSync:W}=P===void 0?{}:P,K=w.actionData!=null&&w.navigation.formMethod!=null&&jt(w.navigation.formMethod)&&w.navigation.state==="loading"&&((T=E.state)==null?void 0:T._isRedirect)!==!0,D;R.actionData?Object.keys(R.actionData).length>0?D=R.actionData:D=null:K?D=w.actionData:D=null;let Z=R.loaderData?Od(w.loaderData,R.loaderData,R.matches||[],R.errors):w.loaderData,G=w.blockers;G.size>0&&(G=new Map(G),G.forEach((se,de)=>G.set(de,bo)));let Q=N===!0||w.navigation.formMethod!=null&&jt(w.navigation.formMethod)&&((A=E.state)==null?void 0:A._isRedirect)!==!0;a&&(l=a,a=void 0),Y||$===Te.Pop||($===Te.Push?e.history.push(E,E.state):$===Te.Replace&&e.history.replace(E,E.state));let ce;if($===Te.Pop){let se=H.get(w.location.pathname);se&&se.has(E.pathname)?ce={currentLocation:w.location,nextLocation:E}:H.has(E.pathname)&&(ce={currentLocation:E,nextLocation:w.location})}else if(L){let se=H.get(w.location.pathname);se?se.add(E.pathname):(se=new Set([E.pathname]),H.set(w.location.pathname,se)),ce={currentLocation:w.location,nextLocation:E}}je(xe({},R,{actionData:D,loaderData:Z,historyAction:$,location:E,initialized:!0,navigation:cs,revalidation:"idle",restoreScrollPosition:gf(E,R.matches||w.matches),preventScrollReset:Q,blockers:G}),{viewTransitionOpts:ce,flushSync:W===!0}),$=Te.Pop,N=!1,L=!1,Y=!1,F=!1,ee=[]}async function Me(E,R){if(typeof E=="number"){e.history.go(E);return}let P=pu(w.location,w.matches,s,c.v7_prependBasename,E,c.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:T,submission:A,error:W}=bd(c.v7_normalizeFormMethod,!1,P,R),K=w.location,D=mi(w.location,T,R&&R.state);D=xe({},D,e.history.encodeLocation(D));let Z=R&&R.replace!=null?R.replace:void 0,G=Te.Push;Z===!0?G=Te.Replace:Z===!1||A!=null&&jt(A.formMethod)&&A.formAction===w.location.pathname+w.location.search&&(G=Te.Replace);let Q=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,ce=(R&&R.unstable_flushSync)===!0,se=hf({currentLocation:K,nextLocation:D,historyAction:G});if(se){zi(se,{state:"blocked",location:D,proceed(){zi(se,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),Me(E,R)},reset(){let de=new Map(w.blockers);de.set(se,bo),je({blockers:de})}});return}return await $t(G,D,{submission:A,pendingError:W,preventScrollReset:Q,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:ce})}function vo(){if(Ma(),je({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){$t(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}$t($||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function $t(E,R,P){M&&M.abort(),M=null,$=E,Y=(P&&P.startUninterruptedRevalidation)===!0,_y(w.location,w.matches),N=(P&&P.preventScrollReset)===!0,L=(P&&P.enableViewTransition)===!0;let T=a||l,A=P&&P.overrideNavigation,W=Xn(T,R,s),K=(P&&P.flushSync)===!0,D=Ii(W,T,R.pathname);if(D.active&&D.matches&&(W=D.matches),!W){let{error:ae,notFoundMatches:Ae,route:$e}=za(R.pathname);Nt(R,{matches:Ae,loaderData:{},errors:{[$e.id]:ae}},{flushSync:K});return}if(w.initialized&&!F&&V1(w.location,R)&&!(P&&P.submission&&jt(P.submission.formMethod))){Nt(R,{matches:W},{flushSync:K});return}M=new AbortController;let Z=kr(e.history,R,M.signal,P&&P.submission),G;if(P&&P.pendingError)G=[Ar(W).route.id,{type:fe.error,error:P.pendingError}];else if(P&&P.submission&&jt(P.submission.formMethod)){let ae=await vr(Z,R,P.submission,W,D.active,{replace:P.replace,flushSync:K});if(ae.shortCircuited)return;if(ae.pendingActionResult){let[Ae,$e]=ae.pendingActionResult;if(pt($e)&&ya($e.error)&&$e.error.status===404){M=null,Nt(R,{matches:ae.matches,loaderData:{},errors:{[Ae]:$e.error}});return}}W=ae.matches||W,G=ae.pendingActionResult,A=fs(R,P.submission),K=!1,D.active=!1,Z=kr(e.history,Z.url,Z.signal)}let{shortCircuited:Q,matches:ce,loaderData:se,errors:de}=await wr(Z,R,W,D.active,A,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,K,G);Q||(M=null,Nt(R,xe({matches:ce||W},Fd(G),{loaderData:se,errors:de})))}async function vr(E,R,P,T,A,W){W===void 0&&(W={}),Ma();let K=X1(R,P);if(je({navigation:K},{flushSync:W.flushSync===!0}),A){let G=await Oi(T,R.pathname,E.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let{boundaryId:Q,error:ce}=Di(R.pathname,G);return{matches:G.partialMatches,pendingActionResult:[Q,{type:fe.error,error:ce}]}}else if(G.matches)T=G.matches;else{let{notFoundMatches:Q,error:ce,route:se}=za(R.pathname);return{matches:Q,pendingActionResult:[se.id,{type:fe.error,error:ce}]}}}let D,Z=Bo(T,R);if(!Z.route.action&&!Z.route.lazy)D={type:fe.error,error:Je(405,{method:E.method,pathname:R.pathname,routeId:Z.route.id})};else if(D=(await So("action",E,[Z],T))[0],E.signal.aborted)return{shortCircuited:!0};if(tr(D)){let G;return W&&W.replace!=null?G=W.replace:G=zd(D.response.headers.get("Location"),new URL(E.url),s)===w.location.pathname+w.location.search,await xo(E,D,{submission:P,replace:G}),{shortCircuited:!0}}if(er(D))throw Je(400,{type:"defer-action"});if(pt(D)){let G=Ar(T,Z.route.id);return(W&&W.replace)!==!0&&($=Te.Push),{matches:T,pendingActionResult:[G.route.id,D]}}return{matches:T,pendingActionResult:[Z.route.id,D]}}async function wr(E,R,P,T,A,W,K,D,Z,G,Q){let ce=A||fs(R,W),se=W||K||Wd(ce),de=!Y&&(!c.v7_partialHydration||!Z);if(T){if(de){let Re=Vn(Q);je(xe({navigation:ce},Re!==void 0?{actionData:Re}:{}),{flushSync:G})}let q=await Oi(P,R.pathname,E.signal);if(q.type==="aborted")return{shortCircuited:!0};if(q.type==="error"){let{boundaryId:Re,error:ft}=Di(R.pathname,q);return{matches:q.partialMatches,loaderData:{},errors:{[Re]:ft}}}else if(q.matches)P=q.matches;else{let{error:Re,notFoundMatches:ft,route:ve}=za(R.pathname);return{matches:ft,loaderData:{},errors:{[ve.id]:Re}}}}let ae=a||l,[Ae,$e]=Ld(e.history,w,P,se,R,c.v7_partialHydration&&Z===!0,c.v7_skipActionErrorRevalidation,F,ee,oe,ye,te,X,ae,s,Q);if(Da(q=>!(P&&P.some(Re=>Re.route.id===q))||Ae&&Ae.some(Re=>Re.route.id===q)),I=++j,Ae.length===0&&$e.length===0){let q=ff();return Nt(R,xe({matches:P,loaderData:{},errors:Q&&pt(Q[1])?{[Q[0]]:Q[1].error}:null},Fd(Q),q?{fetchers:new Map(w.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(de){let q={};if(!T){q.navigation=ce;let Re=Vn(Q);Re!==void 0&&(q.actionData=Re)}$e.length>0&&(q.fetchers=wo($e)),je(q,{flushSync:G})}$e.forEach(q=>{B.has(q.key)&&yn(q.key),q.controller&&B.set(q.key,q.controller)});let Co=()=>$e.forEach(q=>yn(q.key));M&&M.signal.addEventListener("abort",Co);let{loaderResults:vn,fetcherResults:xr}=await sf(w.matches,P,Ae,$e,E);if(E.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Co),$e.forEach(q=>B.delete(q.key));let Sr=Bd([...vn,...xr]);if(Sr){if(Sr.idx>=Ae.length){let q=$e[Sr.idx-Ae.length].key;X.add(q)}return await xo(E,Sr.result,{replace:D}),{shortCircuited:!0}}let{loaderData:Cr,errors:Ut}=Id(w,P,Ae,vn,Q,$e,xr,Fe);Fe.forEach((q,Re)=>{q.subscribe(ft=>{(ft||q.done)&&Fe.delete(Re)})}),c.v7_partialHydration&&Z&&w.errors&&Object.entries(w.errors).filter(q=>{let[Re]=q;return!Ae.some(ft=>ft.route.id===Re)}).forEach(q=>{let[Re,ft]=q;Ut=Object.assign(Ut||{},{[Re]:ft})});let Fi=ff(),Ai=df(I),Bi=Fi||Ai||$e.length>0;return xe({matches:P,loaderData:Cr,errors:Ut},Bi?{fetchers:new Map(w.fetchers)}:{})}function Vn(E){if(E&&!pt(E[1]))return{[E[0]]:E[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function wo(E){return E.forEach(R=>{let P=w.fetchers.get(R.key),T=Lo(void 0,P?P.data:void 0);w.fetchers.set(R.key,T)}),new Map(w.fetchers)}function Li(E,R,P,T){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");B.has(E)&&yn(E);let A=(T&&T.unstable_flushSync)===!0,W=a||l,K=pu(w.location,w.matches,s,c.v7_prependBasename,P,c.v7_relativeSplatPath,R,T==null?void 0:T.relative),D=Xn(W,K,s),Z=Ii(D,W,K);if(Z.active&&Z.matches&&(D=Z.matches),!D){Zt(E,R,Je(404,{pathname:K}),{flushSync:A});return}let{path:G,submission:Q,error:ce}=bd(c.v7_normalizeFormMethod,!0,K,T);if(ce){Zt(E,R,ce,{flushSync:A});return}let se=Bo(D,G);if(N=(T&&T.preventScrollReset)===!0,Q&&jt(Q.formMethod)){ji(E,R,G,se,D,Z.active,A,Q);return}te.set(E,{routeId:R,path:G}),Gn(E,R,G,se,D,Z.active,A,Q)}async function ji(E,R,P,T,A,W,K,D){Ma(),te.delete(E);function Z(ve){if(!ve.route.action&&!ve.route.lazy){let Jt=Je(405,{method:D.formMethod,pathname:P,routeId:R});return Zt(E,R,Jt,{flushSync:K}),!0}return!1}if(!W&&Z(T))return;let G=w.fetchers.get(E);gn(E,Z1(D,G),{flushSync:K});let Q=new AbortController,ce=kr(e.history,P,Q.signal,D);if(W){let ve=await Oi(A,P,ce.signal);if(ve.type==="aborted")return;if(ve.type==="error"){let{error:Jt}=Di(P,ve);Zt(E,R,Jt,{flushSync:K});return}else if(ve.matches){if(A=ve.matches,T=Bo(A,P),Z(T))return}else{Zt(E,R,Je(404,{pathname:P}),{flushSync:K});return}}B.set(E,Q);let se=j,ae=(await So("action",ce,[T],A))[0];if(ce.signal.aborted){B.get(E)===Q&&B.delete(E);return}if(c.v7_fetcherPersist&&ye.has(E)){if(tr(ae)||pt(ae)){gn(E,xn(void 0));return}}else{if(tr(ae))if(B.delete(E),I>se){gn(E,xn(void 0));return}else return X.add(E),gn(E,Lo(D)),xo(ce,ae,{fetcherSubmission:D});if(pt(ae)){Zt(E,R,ae.error);return}}if(er(ae))throw Je(400,{type:"defer-action"});let Ae=w.navigation.location||w.location,$e=kr(e.history,Ae,Q.signal),Co=a||l,vn=w.navigation.state!=="idle"?Xn(Co,w.navigation.location,s):w.matches;ie(vn,"Didn't find any matches after fetcher action");let xr=++j;O.set(E,xr);let Sr=Lo(D,ae.data);w.fetchers.set(E,Sr);let[Cr,Ut]=Ld(e.history,w,vn,D,Ae,!1,c.v7_skipActionErrorRevalidation,F,ee,oe,ye,te,X,Co,s,[T.route.id,ae]);Ut.filter(ve=>ve.key!==E).forEach(ve=>{let Jt=ve.key,yf=w.fetchers.get(Jt),$y=Lo(void 0,yf?yf.data:void 0);w.fetchers.set(Jt,$y),B.has(Jt)&&yn(Jt),ve.controller&&B.set(Jt,ve.controller)}),je({fetchers:new Map(w.fetchers)});let Fi=()=>Ut.forEach(ve=>yn(ve.key));Q.signal.addEventListener("abort",Fi);let{loaderResults:Ai,fetcherResults:Bi}=await sf(w.matches,vn,Cr,Ut,$e);if(Q.signal.aborted)return;Q.signal.removeEventListener("abort",Fi),O.delete(E),B.delete(E),Ut.forEach(ve=>B.delete(ve.key));let q=Bd([...Ai,...Bi]);if(q){if(q.idx>=Cr.length){let ve=Ut[q.idx-Cr.length].key;X.add(ve)}return xo($e,q.result)}let{loaderData:Re,errors:ft}=Id(w,w.matches,Cr,Ai,void 0,Ut,Bi,Fe);if(w.fetchers.has(E)){let ve=xn(ae.data);w.fetchers.set(E,ve)}df(xr),w.navigation.state==="loading"&&xr>I?(ie($,"Expected pending action"),M&&M.abort(),Nt(w.navigation.location,{matches:vn,loaderData:Re,errors:ft,fetchers:new Map(w.fetchers)})):(je({errors:ft,loaderData:Od(w.loaderData,Re,vn,ft),fetchers:new Map(w.fetchers)}),F=!1)}async function Gn(E,R,P,T,A,W,K,D){let Z=w.fetchers.get(E);gn(E,Lo(D,Z?Z.data:void 0),{flushSync:K});let G=new AbortController,Q=kr(e.history,P,G.signal);if(W){let ae=await Oi(A,P,Q.signal);if(ae.type==="aborted")return;if(ae.type==="error"){let{error:Ae}=Di(P,ae);Zt(E,R,Ae,{flushSync:K});return}else if(ae.matches)A=ae.matches,T=Bo(A,P);else{Zt(E,R,Je(404,{pathname:P}),{flushSync:K});return}}B.set(E,G);let ce=j,de=(await So("loader",Q,[T],A))[0];if(er(de)&&(de=await ag(de,Q.signal,!0)||de),B.get(E)===G&&B.delete(E),!Q.signal.aborted){if(ye.has(E)){gn(E,xn(void 0));return}if(tr(de))if(I>ce){gn(E,xn(void 0));return}else{X.add(E),await xo(Q,de);return}if(pt(de)){Zt(E,R,de.error);return}ie(!er(de),"Unhandled fetcher deferred data"),gn(E,xn(de.data))}}async function xo(E,R,P){let{submission:T,fetcherSubmission:A,replace:W}=P===void 0?{}:P;R.response.headers.has("X-Remix-Revalidate")&&(F=!0);let K=R.response.headers.get("Location");ie(K,"Expected a Location header on the redirect Response"),K=zd(K,new URL(E.url),s);let D=mi(w.location,K,{_isRedirect:!0});if(n){let de=!1;if(R.response.headers.has("X-Remix-Reload-Document"))de=!0;else if(Ec.test(K)){const ae=e.history.createURL(K);de=ae.origin!==t.location.origin||Pi(ae.pathname,s)==null}if(de){W?t.location.replace(K):t.location.assign(K);return}}M=null;let Z=W===!0||R.response.headers.has("X-Remix-Replace")?Te.Replace:Te.Push,{formMethod:G,formAction:Q,formEncType:ce}=w.navigation;!T&&!A&&G&&Q&&ce&&(T=Wd(w.navigation));let se=T||A;if(b1.has(R.response.status)&&se&&jt(se.formMethod))await $t(Z,D,{submission:xe({},se,{formAction:K}),preventScrollReset:N});else{let de=fs(D,T);await $t(Z,D,{overrideNavigation:de,fetcherSubmission:A,preventScrollReset:N})}}async function So(E,R,P,T){try{let A=await A1(u,E,R,P,T,i,o);return await Promise.all(A.map((W,K)=>{if(Q1(W)){let D=W.result;return{type:fe.redirect,response:H1(D,R,P[K].route.id,T,s,c.v7_relativeSplatPath)}}return U1(W)}))}catch(A){return P.map(()=>({type:fe.error,error:A}))}}async function sf(E,R,P,T,A){let[W,...K]=await Promise.all([P.length?So("loader",A,P,R):[],...T.map(D=>{if(D.matches&&D.match&&D.controller){let Z=kr(e.history,D.path,D.controller.signal);return So("loader",Z,[D.match],D.matches).then(G=>G[0])}else return Promise.resolve({type:fe.error,error:Je(404,{pathname:D.path})})})]);return await Promise.all([Hd(E,P,W,W.map(()=>A.signal),!1,w.loaderData),Hd(E,T.map(D=>D.match),K,T.map(D=>D.controller?D.controller.signal:null),!0)]),{loaderResults:W,fetcherResults:K}}function Ma(){F=!0,ee.push(...Da()),te.forEach((E,R)=>{B.has(R)&&(oe.add(R),yn(R))})}function gn(E,R,P){P===void 0&&(P={}),w.fetchers.set(E,R),je({fetchers:new Map(w.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function Zt(E,R,P,T){T===void 0&&(T={});let A=Ar(w.matches,R);Mi(E),je({errors:{[A.route.id]:P},fetchers:new Map(w.fetchers)},{flushSync:(T&&T.flushSync)===!0})}function uf(E){return c.v7_fetcherPersist&&(Le.set(E,(Le.get(E)||0)+1),ye.has(E)&&ye.delete(E)),w.fetchers.get(E)||L1}function Mi(E){let R=w.fetchers.get(E);B.has(E)&&!(R&&R.state==="loading"&&O.has(E))&&yn(E),te.delete(E),O.delete(E),X.delete(E),ye.delete(E),oe.delete(E),w.fetchers.delete(E)}function Ey(E){if(c.v7_fetcherPersist){let R=(Le.get(E)||0)-1;R<=0?(Le.delete(E),ye.add(E)):Le.set(E,R)}else Mi(E);je({fetchers:new Map(w.fetchers)})}function yn(E){let R=B.get(E);ie(R,"Expected fetch controller: "+E),R.abort(),B.delete(E)}function cf(E){for(let R of E){let P=uf(R),T=xn(P.data);w.fetchers.set(R,T)}}function ff(){let E=[],R=!1;for(let P of X){let T=w.fetchers.get(P);ie(T,"Expected fetcher: "+P),T.state==="loading"&&(X.delete(P),E.push(P),R=!0)}return cf(E),R}function df(E){let R=[];for(let[P,T]of O)if(T0}function ky(E,R){let P=w.blockers.get(E)||bo;return Pe.get(E)!==R&&Pe.set(E,R),P}function pf(E){w.blockers.delete(E),Pe.delete(E)}function zi(E,R){let P=w.blockers.get(E)||bo;ie(P.state==="unblocked"&&R.state==="blocked"||P.state==="blocked"&&R.state==="blocked"||P.state==="blocked"&&R.state==="proceeding"||P.state==="blocked"&&R.state==="unblocked"||P.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+R.state);let T=new Map(w.blockers);T.set(E,R),je({blockers:T})}function hf(E){let{currentLocation:R,nextLocation:P,historyAction:T}=E;if(Pe.size===0)return;Pe.size>1&&no(!1,"A router only supports one blocker at a time");let A=Array.from(Pe.entries()),[W,K]=A[A.length-1],D=w.blockers.get(W);if(!(D&&D.state==="proceeding")&&K({currentLocation:R,nextLocation:P,historyAction:T}))return W}function za(E){let R=Je(404,{pathname:E}),P=a||l,{matches:T,route:A}=Ad(P);return Da(),{notFoundMatches:T,route:A,error:R}}function Di(E,R){return{boundaryId:Ar(R.partialMatches).route.id,error:Je(400,{type:"route-discovery",pathname:E,message:R.error!=null&&"message"in R.error?R.error:String(R.error)})}}function Da(E){let R=[];return Fe.forEach((P,T)=>{(!E||E(T))&&(P.cancel(),R.push(T),Fe.delete(T))}),R}function Ry(E,R,P){if(y=E,C=R,v=P||null,!g&&w.navigation===cs){g=!0;let T=gf(w.location,w.matches);T!=null&&je({restoreScrollPosition:T})}return()=>{y=null,C=null,v=null}}function mf(E,R){return v&&v(E,R.map(T=>a1(T,w.loaderData)))||E.key}function _y(E,R){if(y&&C){let P=mf(E,R);y[P]=C()}}function gf(E,R){if(y){let P=mf(E,R),T=y[P];if(typeof T=="number")return T}return null}function Ii(E,R,P){if(d)if(E){let T=E[E.length-1].route;if(T.path&&(T.path==="*"||T.path.endsWith("/*")))return{active:!0,matches:Cl(R,P,s,!0)}}else return{active:!0,matches:Cl(R,P,s,!0)||[]};return{active:!1,matches:null}}async function Oi(E,R,P){let T=E,A=T.length>0?T[T.length-1].route:null;for(;;){let W=a==null,K=a||l;try{await O1(d,R,T,K,i,o,ct,P)}catch(Q){return{type:"error",error:Q,partialMatches:T}}finally{W&&(l=[...l])}if(P.aborted)return{type:"aborted"};let D=Xn(K,R,s),Z=!1;if(D){let Q=D[D.length-1].route;if(Q.index)return{type:"success",matches:D};if(Q.path&&Q.path.length>0)if(Q.path==="*")Z=!0;else return{type:"success",matches:D}}let G=Cl(K,R,s,!0);if(!G||T.map(Q=>Q.route.id).join("-")===G.map(Q=>Q.route.id).join("-"))return{type:"success",matches:Z?D:null};if(T=G,A=T[T.length-1].route,A.path==="*")return{type:"success",matches:T}}}function Py(E){i={},a=gi(E,o,void 0,i)}function Ny(E,R){let P=a==null;og(E,R,a||l,i,o),P&&(l=[...l],je({}))}return _={get basename(){return s},get future(){return c},get state(){return w},get routes(){return l},get window(){return t},initialize:Wn,subscribe:yo,enableScrollRestoration:Ry,navigate:Me,fetch:Li,revalidate:vo,createHref:E=>e.history.createHref(E),encodeLocation:E=>e.history.encodeLocation(E),getFetcher:uf,deleteFetcher:Ey,dispose:go,getBlocker:ky,deleteBlocker:pf,patchRoutes:Ny,_internalFetchControllers:B,_internalActiveDeferreds:Fe,_internalSetRoutes:Py},_}function z1(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function pu(e,t,n,r,o,i,l,a){let s,u;if(l){s=[];for(let c of t)if(s.push(c),c.route.id===l){u=c;break}}else s=t,u=t[t.length-1];let d=E1(o||".",C1(s,i),Pi(e.pathname,n)||e.pathname,a==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!kc(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:or([n,d.pathname])),_i(d)}function bd(e,t,n,r){if(!r||!z1(r))return{path:n};if(r.formMethod&&!K1(r.formMethod))return{path:n,error:Je(405,{method:r.formMethod})};let o=()=>({path:n,error:Je(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=ig(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!jt(l))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,y)=>{let[v,C]=y;return""+h+v+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!jt(l))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}ie(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=hu(r.formData),u=r.formData;else if(r.body instanceof FormData)s=hu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Dd(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Dd(s)}catch{return o()}let d={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(jt(d.formMethod))return{path:n,submission:d};let c=Un(n);return t&&c.search&&kc(c.search)&&s.append("index",""),c.search="?"+s,{path:_i(c),submission:d}}function D1(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ld(e,t,n,r,o,i,l,a,s,u,d,c,f,h,y,v){let C=v?pt(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),p=e.createURL(o),m=v&&pt(v[1])?v[0]:void 0,S=m?D1(n,m):n,_=v?v[1].statusCode:void 0,w=l&&_&&_>=400,$=S.filter((M,L)=>{let{route:H}=M;if(H.lazy)return!0;if(H.loader==null)return!1;if(i)return typeof H.loader!="function"||H.loader.hydrate?!0:t.loaderData[H.id]===void 0&&(!t.errors||t.errors[H.id]===void 0);if(I1(t.loaderData,t.matches[L],M)||s.some(F=>F===M.route.id))return!0;let V=t.matches[L],Y=M;return jd(M,xe({currentUrl:g,currentParams:V.params,nextUrl:p,nextParams:Y.params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:w?!1:a||g.pathname+g.search===p.pathname+p.search||g.search!==p.search||rg(V,Y)}))}),N=[];return c.forEach((M,L)=>{if(i||!n.some(ee=>ee.route.id===M.routeId)||d.has(L))return;let H=Xn(h,M.path,y);if(!H){N.push({key:L,routeId:M.routeId,path:M.path,matches:null,match:null,controller:null});return}let V=t.fetchers.get(L),Y=Bo(H,M.path),F=!1;f.has(L)?F=!1:u.has(L)?(u.delete(L),F=!0):V&&V.state!=="idle"&&V.data===void 0?F=a:F=jd(Y,xe({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:w?!1:a})),F&&N.push({key:L,routeId:M.routeId,path:M.path,matches:H,match:Y,controller:new AbortController})}),[$,N]}function I1(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function rg(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function jd(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function O1(e,t,n,r,o,i,l,a){let s=[t,...n.map(u=>u.route.id)].join("-");try{let u=l.get(s);u||(u=e({path:t,matches:n,patch:(d,c)=>{a.aborted||og(d,c,r,o,i)}}),l.set(s,u)),u&&G1(u)&&await u}finally{l.delete(s)}}function og(e,t,n,r,o){if(e){var i;let l=r[e];ie(l,"No route found to patch children into: routeId = "+e);let a=gi(t,o,[e,"patch",String(((i=l.children)==null?void 0:i.length)||"0")],r);l.children?l.children.push(...a):l.children=a}else{let l=gi(t,o,["patch",String(n.length||"0")],r);n.push(...l)}}async function Md(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ie(o,"No route found in manifest");let i={};for(let l in r){let s=o[l]!==void 0&&l!=="hasErrorBoundary";no(!s,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!i1.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,xe({},t(o),{lazy:void 0}))}function F1(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function A1(e,t,n,r,o,i,l,a){let s=r.reduce((c,f)=>c.add(f.route.id),new Set),u=new Set,d=await e({matches:o.map(c=>{let f=s.has(c.route.id);return xe({},c,{shouldLoad:f,resolve:y=>(u.add(c.route.id),f?B1(t,n,c,i,l,y,a):Promise.resolve({type:fe.data,result:void 0}))})}),request:n,params:o[0].params,context:a});return o.forEach(c=>ie(u.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((c,f)=>s.has(o[f].route.id))}async function B1(e,t,n,r,o,i,l){let a,s,u=d=>{let c,f=new Promise((v,C)=>c=C);s=()=>c(),t.signal.addEventListener("abort",s);let h=v=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:l},...v!==void 0?[v]:[]),y;return i?y=i(v=>h(v)):y=(async()=>{try{return{type:"data",result:await h()}}catch(v){return{type:"error",result:v}}})(),Promise.race([y,f])};try{let d=n.route[e];if(n.route.lazy)if(d){let c,[f]=await Promise.all([u(d).catch(h=>{c=h}),Md(n.route,o,r)]);if(c!==void 0)throw c;a=f}else if(await Md(n.route,o,r),d=n.route[e],d)a=await u(d);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw Je(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:fe.data,result:void 0};else if(d)a=await u(d);else{let c=new URL(t.url),f=c.pathname+c.search;throw Je(404,{pathname:f})}ie(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:fe.error,result:d}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function U1(e){let{result:t,type:n}=e;if(lg(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:fe.error,error:d}}return n===fe.error?{type:fe.error,error:new Yl(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:fe.data,data:u,statusCode:t.status,headers:t.headers}}if(n===fe.error){if(Ud(t)){var r;if(t.data instanceof Error){var o;return{type:fe.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Yl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:fe.error,error:t,statusCode:ya(t)?t.status:void 0}}if(Y1(t)){var i,l;return{type:fe.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Ud(t)){var a,s;return{type:fe.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:fe.data,data:t}}function H1(e,t,n,r,o,i){let l=e.headers.get("Location");if(ie(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ec.test(l)){let a=r.slice(0,r.findIndex(s=>s.route.id===n)+1);l=pu(new URL(t.url),a,o,!0,l,i),e.headers.set("Location",l)}return e}function zd(e,t,n){if(Ec.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Pi(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function kr(e,t,n,r){let o=e.createURL(ig(t)).toString(),i={signal:n};if(r&&jt(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=hu(r.formData):i.body=r.formData}return new Request(o,i)}function hu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Dd(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function W1(e,t,n,r,o,i){let l={},a=null,s,u=!1,d={},c=r&&pt(r[1])?r[1].error:void 0;return n.forEach((f,h)=>{let y=t[h].route.id;if(ie(!tr(f),"Cannot handle redirect results in processLoaderData"),pt(f)){let v=f.error;c!==void 0&&(v=c,c=void 0),a=a||{};{let C=Ar(e,y);a[C.route.id]==null&&(a[C.route.id]=v)}l[y]=void 0,u||(u=!0,s=ya(f.error)?f.error.status:500),f.headers&&(d[y]=f.headers)}else er(f)?(o.set(y,f.deferredData),l[y]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!u&&(s=f.statusCode),f.headers&&(d[y]=f.headers)):(l[y]=f.data,f.statusCode&&f.statusCode!==200&&!u&&(s=f.statusCode),f.headers&&(d[y]=f.headers))}),c!==void 0&&r&&(a={[r[0]]:c},l[r[0]]=void 0),{loaderData:l,errors:a,statusCode:s||200,loaderHeaders:d}}function Id(e,t,n,r,o,i,l,a){let{loaderData:s,errors:u}=W1(t,n,r,o,a);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Ad(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Je(e,t){let{pathname:n,routeId:r,method:o,type:i,message:l}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i==="route-discovery"?s='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: -`+l):o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new Yl(e||500,a,new Error(s),!0)}function Bd(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(tr(n))return{result:n,idx:t}}}function ig(e){let t=typeof e=="string"?Un(e):e;return _i(xe({},t,{hash:""}))}function V1(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function G1(e){return typeof e=="object"&&e!=null&&"then"in e}function Q1(e){return lg(e.result)&&T1.has(e.result.status)}function er(e){return e.type===fe.deferred}function pt(e){return e.type===fe.error}function tr(e){return(e&&e.type)===fe.redirect}function Ud(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Y1(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function lg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function K1(e){return $1.has(e.toLowerCase())}function jt(e){return P1.has(e.toLowerCase())}async function Hd(e,t,n,r,o,i){for(let l=0;lc.route.id===s.route.id),d=u!=null&&!rg(u,s)&&(i&&i[s.route.id])!==void 0;if(er(a)&&(o||d)){let c=r[l];ie(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await ag(a,c,o).then(f=>{f&&(n[l]=f||n[l])})}}}async function ag(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:fe.data,data:e.deferredData.unwrappedData}}catch(o){return{type:fe.error,error:o}}return{type:fe.data,data:e.deferredData.data}}}function kc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Bo(e,t){let n=typeof t=="string"?Un(t).search:t.search;if(e[e.length-1].route.index&&kc(n||""))return e[e.length-1];let r=eg(e);return r[r.length-1]}function Wd(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function fs(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function X1(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Lo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Z1(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function J1(e,t){try{let n=e.sessionStorage.getItem(ng);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function q1(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(ng,JSON.stringify(n))}catch(r){no(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.26.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},v,{params:Object.assign({},a,v.params),pathname:or([s,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:or([s,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function nw(){let e=cw(),t=ya(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={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:o},n):null,null)}const rw=x.createElement(nw,null);class ow 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(va.Provider,{value:this.props.routeContext},x.createElement(fg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iw(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(sg);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(va.Provider,{value:t},r)}function lw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=l.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||ie(!1),l=l.slice(0,Math.min(l.length,d+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((d,c,f)=>{let h,y=!1,v=null,C=null;n&&(h=a&&c.route.id?a[c.route.id]:void 0,v=c.route.errorElement||rw,s&&(u<0&&f===0?(y=!0,C=null):u===f&&(y=!0,C=c.route.hydrateFallbackElement||null)));let g=t.concat(l.slice(0,f+1)),p=()=>{let m;return h?m=v:y?m=C:c.route.Component?m=x.createElement(c.route.Component,null):c.route.element?m=c.route.element:m=d,x.createElement(iw,{match:c,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:m})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?x.createElement(ow,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var gu=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}(gu||{});function aw(e){let t=x.useContext(ug);return t||ie(!1),t}function sw(e){let t=x.useContext(va);return t||ie(!1),t}function uw(e){let t=sw(),n=t.matches[t.matches.length-1];return n.route.id||ie(!1),n.route.id}function cw(){var e;let t=x.useContext(fg),n=aw(gu.UseRouteError),r=uw(gu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Te.Pop,navigator:i,static:l=!1,future:a}=e;_c()&&ie(!1);let s=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:s,navigator:i,static:l,future:mu({v7_relativeSplatPath:!1},a)}),[s,a,i,l]);typeof r=="string"&&(r=Un(r));let{pathname:d="/",search:c="",hash:f="",state:h=null,key:y="default"}=r,v=x.useMemo(()=>{let C=Pi(d,s);return C==null?null:{location:{pathname:C,search:c,hash:f,state:h,key:y},navigationType:o}},[s,d,c,f,h,y,o]);return v==null?null:x.createElement(cg.Provider,{value:u},x.createElement(Rc.Provider,{children:n,value:v}))}new Promise(()=>{});function dw(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:x.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:x.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.26.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Ew(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=x.useState(n.state),[l,a]=x.useState(),[s,u]=x.useState({isTransitioning:!1}),[d,c]=x.useState(),[f,h]=x.useState(),[y,v]=x.useState(),C=x.useRef(new Map),{v7_startTransition:g}=r||{},p=x.useCallback(N=>{g?Sw(N):N()},[g]),m=x.useCallback((N,M)=>{let{deletedFetchers:L,unstable_flushSync:H,unstable_viewTransitionOpts:V}=M;L.forEach(F=>C.current.delete(F)),N.fetchers.forEach((F,ee)=>{F.data!==void 0&&C.current.set(ee,F.data)});let Y=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!V||Y){H?jo(()=>i(N)):p(()=>i(N));return}if(H){jo(()=>{f&&(d&&d.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let F=n.window.document.startViewTransition(()=>{jo(()=>i(N))});F.finished.finally(()=>{jo(()=>{c(void 0),h(void 0),a(void 0),u({isTransitioning:!1})})}),jo(()=>h(F));return}f?(d&&d.resolve(),f.skipTransition(),v({state:N,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(a(N),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,f,d,C,p]);x.useLayoutEffect(()=>n.subscribe(m),[n,m]),x.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new Cw)},[s]),x.useEffect(()=>{if(d&&l&&n.window){let N=l,M=d.promise,L=n.window.document.startViewTransition(async()=>{p(()=>i(N)),await M});L.finished.finally(()=>{c(void 0),h(void 0),a(void 0),u({isTransitioning:!1})}),h(L)}},[p,l,d,n.window]),x.useEffect(()=>{d&&l&&o.location.key===l.location.key&&d.resolve()},[d,f,o.location,l]),x.useEffect(()=>{!s.isTransitioning&&y&&(a(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),v(void 0))},[s.isTransitioning,y]),x.useEffect(()=>{},[]);let S=x.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:N=>n.navigate(N),push:(N,M,L)=>n.navigate(N,{state:M,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(N,M,L)=>n.navigate(N,{replace:!0,state:M,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),_=n.basename||"/",w=x.useMemo(()=>({router:n,navigator:S,static:!1,basename:_}),[n,S,_]),$=x.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return x.createElement(x.Fragment,null,x.createElement(sg.Provider,{value:w},x.createElement(ug.Provider,{value:o},x.createElement(vw.Provider,{value:C.current},x.createElement(yw.Provider,{value:s},x.createElement(fw,{basename:_,location:o.location,navigationType:o.historyAction,navigator:S,future:$},o.initialized||n.future.v7_partialHydration?x.createElement(kw,{routes:n.routes,future:n.future,state:o}):t))))),null)}const kw=x.memo(Rw);function Rw(e){let{routes:t,future:n,state:r}=e;return tw(t,void 0,r,n)}var Qd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qd||(Qd={}));var Yd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yd||(Yd={}));function Ye(e){return Object.keys(e)}function ds(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Pc(e,t){const n={...e},r=t;return ds(e)&&ds(t)&&Object.keys(t).forEach(o=>{ds(r[o])&&o in e?n[o]=Pc(n[o],r[o]):n[o]=r[o]}),n}function _w(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Pw(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function yu(e){const t=Pw(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function ps(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function dg(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const o=`${r/16}${e}`;return t?ps(o):o}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(i=>n(i)).join(",");if(r.includes(" "))return r.split(" ").map(i=>n(i)).join(" ");if(r.includes(e))return t?ps(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const i=`${Number(o)/16}${e}`;return t?ps(i):i}}return r}return n}const b=dg("rem",{shouldScale:!0}),Kd=dg("em");function co(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function pg(e){return typeof e=="number"?!0:typeof e=="string"?e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!==""?!0:/[0-9]/.test(e.trim().replace("-","")[0]):!1}function hg(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==x.Fragment:!1}function mg(e){const t=x.createContext(null);return[({children:o,value:i})=>k.jsx(t.Provider,{value:i,children:o}),()=>{const o=x.useContext(t);if(o===null)throw new Error(e);return o}]}function gg(e=null){const t=x.createContext(e);return[({children:o,value:i})=>k.jsx(t.Provider,{value:i,children:o}),()=>x.useContext(t)]}const Nw={app:100,modal:200,popover:300,overlay:400,max:9999};function $w(e){return Nw[e]}const Tw=()=>{};function bw(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||Tw:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Xe(e,t="size",n=!0){if(e!==void 0)return pg(e)?n?b(e):e:`var(--${t}-${e})`}function Xl(e){return Xe(e,"mantine-spacing")}function Hn(e){return e===void 0?"var(--mantine-radius-default)":Xe(e,"mantine-radius")}function Ot(e){return Xe(e,"mantine-font-size")}function Lw(e){return Xe(e,"mantine-line-height",!1)}function jw(e){if(e)return Xe(e,"mantine-shadow",!1)}function Mw(e,t){return e in t.breakpoints?yu(t.breakpoints[e]):yu(e)}function yg(e,t){const n=e.map(r=>({value:r,px:Mw(r,t)}));return n.sort((r,o)=>r.px-o.px),n}function Uo(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function vg(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const Xd=["mousedown","touchstart"];function zw(e,t,n){const r=x.useRef();return x.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(n)){const a=(l==null?void 0:l.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(l)&&l.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(l)&&e()};return(t||Xd).forEach(i=>document.addEventListener(i,o)),()=>{(t||Xd).forEach(i=>document.removeEventListener(i,o))}},[r,e,n]),r}function Dw(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function Iw(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Ow(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=x.useState(n?t:Iw(e)),i=x.useRef();return x.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),Dw(i.current,l=>o(l.matches))},[e]),r}const wa=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ro(e,t){const n=x.useRef(!1);x.useEffect(()=>()=>{n.current=!1},[]),x.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function Fw({opened:e,shouldReturnFocus:t=!0}){const n=x.useRef(),r=()=>{var o;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((o=n.current)==null||o.focus({preventScroll:!0}))};return ro(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e,t]),r}function Aw(e,t="body > :not(script)"){const n=vg(),r=Array.from(document.querySelectorAll(t)).map(o=>{var s;if((s=o==null?void 0:o.shadowRoot)!=null&&s.contains(e)||o.contains(e))return;const i=o.getAttribute("aria-hidden"),l=o.getAttribute("data-hidden"),a=o.getAttribute("data-focus-id");return o.setAttribute("data-focus-id",n),i===null||i==="false"?o.setAttribute("aria-hidden","true"):!l&&!a&&o.setAttribute("data-hidden",i),{node:o,ariaHidden:l||null}});return()=>{r.forEach(o=>{!o||n!==o.node.getAttribute("data-focus-id")||(o.ariaHidden===null?o.node.removeAttribute("aria-hidden"):o.node.setAttribute("aria-hidden",o.ariaHidden),o.node.removeAttribute("data-focus-id"),o.node.removeAttribute("data-hidden"))})}}const Bw=/input|select|textarea|button|object/,wg="a, input, select, textarea, button, object, [tabindex]";function Uw(e){return e.style.display==="none"}function Hw(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(Uw(n))return!1;n=n.parentNode}return!0}function xg(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function vu(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(xg(e));return(Bw.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Hw(e)}function Sg(e){const t=xg(e);return(Number.isNaN(t)||t>=0)&&vu(e)}function Ww(e){return Array.from(e.querySelectorAll(wg)).filter(Sg)}function Vw(e,t){const n=Ww(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let i=r===o.activeElement||e===o.activeElement;const l=o.activeElement;if(l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(i=n.filter(d=>d.getAttribute("type")==="radio"&&d.getAttribute("name")===l.getAttribute("name")).includes(r)),!i)return;t.preventDefault();const s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function Gw(e=!0){const t=x.useRef(),n=x.useRef(null),r=i=>{let l=i.querySelector("[data-autofocus]");if(!l){const a=Array.from(i.querySelectorAll(wg));l=a.find(Sg)||a.find(vu)||null,!l&&vu(i)&&(l=i)}l&&l.focus({preventScroll:!0})},o=x.useCallback(i=>{if(e){if(i===null){n.current&&(n.current(),n.current=null);return}n.current=Aw(i),t.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&r(i)}),t.current=i):t.current=null)}},[e]);return x.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const i=l=>{l.key==="Tab"&&t.current&&Vw(t.current,l)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i),n.current&&n.current()}},[e]),o}const Qw=Gp.useId||(()=>{});function Yw(){const e=Qw();return e?`mantine-${e.replace(/:/g,"")}`:""}function Nc(e){const t=Yw(),[n,r]=x.useState(t);return wa(()=>{r(vg())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function Zd(e,t,n){x.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function Cg(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function Kw(...e){return t=>{e.forEach(n=>Cg(n,t))}}function $c(...e){return x.useCallback(Kw(...e),e)}function Eg({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,i]=x.useState(t!==void 0?t:n),l=(a,...s)=>{i(a),r==null||r(a,...s)};return e!==void 0?[e,r,!0]:[o,l,!1]}function kg(e,t){return Ow("(prefers-reduced-motion: reduce)",e,t)}const Xw=e=>e<.5?2*e*e:-1+(4-2*e)*e,Zw=({axis:e,target:t,parent:n,alignment:r,offset:o,isList:i})=>{if(!t||!n&&typeof document>"u")return 0;const l=!!n,s=(n||document.body).getBoundingClientRect(),u=t.getBoundingClientRect(),d=c=>u[c]-s[c];if(e==="y"){const c=d("top");if(c===0)return 0;if(r==="start"){const h=c-o;return h<=u.height*(i?0:1)||!i?h:0}const f=l?s.height:window.innerHeight;if(r==="end"){const h=c+o-f+u.height;return h>=-u.height*(i?0:1)||!i?h:0}return r==="center"?c-f/2+u.height/2:0}if(e==="x"){const c=d("left");if(c===0)return 0;if(r==="start"){const h=c-o;return h<=u.width||!i?h:0}const f=l?s.width:window.innerWidth;if(r==="end"){const h=c+o-f+u.width;return h>=-u.width||!i?h:0}return r==="center"?c-f/2+u.width/2:0}return 0},Jw=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const n=e==="y"?"scrollTop":"scrollLeft";if(t)return t[n];const{body:r,documentElement:o}=document;return r[n]+o[n]},qw=({axis:e,parent:t,distance:n})=>{if(!t&&typeof document>"u")return;const r=e==="y"?"scrollTop":"scrollLeft";if(t)t[r]=n;else{const{body:o,documentElement:i}=document;o[r]=n,i[r]=n}};function ex({duration:e=1250,axis:t="y",onScrollFinish:n,easing:r=Xw,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const a=x.useRef(0),s=x.useRef(0),u=x.useRef(!1),d=x.useRef(null),c=x.useRef(null),f=kg(),h=()=>{a.current&&cancelAnimationFrame(a.current)},y=x.useCallback(({alignment:C="start"}={})=>{u.current=!1,a.current&&h();const g=Jw({parent:d.current,axis:t})??0,p=Zw({parent:d.current,target:c.current,axis:t,alignment:C,offset:o,isList:l})-(d.current?0:g);function m(){s.current===0&&(s.current=performance.now());const _=performance.now()-s.current,w=f||e===0?1:_/e,$=g+p*r(w);qw({parent:d.current,axis:t,distance:$}),!u.current&&w<1?a.current=requestAnimationFrame(m):(typeof n=="function"&&n(),s.current=0,a.current=0,h())}m()},[t,e,r,l,o,n,f]),v=()=>{i&&(u.current=!0)};return Zd("wheel",v,{passive:!0}),Zd("touchmove",v,{passive:!0}),x.useEffect(()=>h,[]),{scrollableRef:d,targetRef:c,scrollIntoView:y,cancel:h}}function tx(e=!1,t){const{onOpen:n,onClose:r}={},[o,i]=x.useState(e),l=x.useCallback(()=>{i(u=>u||(n==null||n(),!0))},[n]),a=x.useCallback(()=>{i(u=>u&&(r==null||r(),!1))},[r]),s=x.useCallback(()=>{o?a():l()},[a,l,o]);return[o,{open:l,close:a,toggle:s}]}var nx={};function rx(){return typeof process<"u"&&nx?"production":"development"}function Rg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{Object.entries(n).forEach(([r,o])=>{t[r]?t[r]=hn(t[r],o):t[r]=o})}),t}function Tc({theme:e,classNames:t,props:n,stylesCtx:r}){const i=(Array.isArray(t)?t:[t]).map(l=>typeof l=="function"?l(e,n,r):l||ox);return ix(i)}function wu({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((i,l)=>typeof l=="function"?{...i,...l(e,n,r)}:{...i,...l},{})}const _g=x.createContext(null);function mr(){const e=x.useContext(_g);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function lx(){return mr().cssVariablesResolver}function ax(){return mr().classNamesPrefix}function bc(){return mr().getStyleNonce}function sx(){return mr().withStaticClasses}function ux(){return mr().headless}function cx(){var e;return(e=mr().stylesTransform)==null?void 0:e.sx}function fx(){var e;return(e=mr().stylesTransform)==null?void 0:e.styles}function dx(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function px(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}if(t.length===8){const l=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:l}}const n=parseInt(t,16),r=n>>16&255,o=n>>8&255,i=n&255;return{r,g:o,b:i,a:1}}function hx(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o||1}}function mx(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),o=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,l=n[5]?parseFloat(n[5]):void 0,a=(1-Math.abs(2*i-1))*o,s=r/60,u=a*(1-Math.abs(s%2-1)),d=i-a/2;let c,f,h;return s>=0&&s<1?(c=a,f=u,h=0):s>=1&&s<2?(c=u,f=a,h=0):s>=2&&s<3?(c=0,f=a,h=u):s>=3&&s<4?(c=0,f=u,h=a):s>=4&&s<5?(c=u,f=0,h=a):(c=a,f=0,h=u),{r:Math.round((c+d)*255),g:Math.round((f+d)*255),b:Math.round((h+d)*255),a:l||1}}function Lc(e){return dx(e)?px(e):e.startsWith("rgb")?hx(e):e.startsWith("hsl")?mx(e):{r:0,g:0,b:0,a:1}}function il(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:o,a:i}=Lc(e),l=1-t,a=s=>Math.round(s*l);return`rgba(${a(n)}, ${a(r)}, ${a(o)}, ${i})`}function yi(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function hs(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function gx(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function yx(e){if(e.startsWith("oklch("))return(gx(e)||0)/100;const{r:t,g:n,b:r}=Lc(e),o=t/255,i=n/255,l=r/255,a=hs(o),s=hs(i),u=hs(l);return .2126*a+.7152*s+.0722*u}function Mo(e,t=.179){return e.startsWith("var(")?!1:yx(e)>t}function gr({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Mo(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Mo(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Mo(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),i=o?Number(o):void 0,l=r in t.colors;if(l){const a=i!==void 0?t.colors[r][i]:t.colors[r][yi(t,n||"light")];return{color:r,value:a,shade:i,isThemeColor:l,isLight:Mo(a,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${i}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:Mo(e,t.luminanceThreshold),shade:i,variable:void 0}}function cn(e,t){const n=gr({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function xu(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)||t.defaultGradient.deg||0},r=cn(n.from,t),o=cn(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function qt(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=Lc(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const Rr=qt,vx=({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const i=gr({color:e,theme:t}),l=typeof o=="boolean"?o:t.autoContrast;if(n==="filled"){const a=l&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:a,border:`${b(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:a,border:`${b(1)} solid transparent`}:{background:e,hover:il(e,.1),color:a,border:`${b(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${b(1)} solid transparent`};const a=t.colors[i.color][i.shade];return{background:qt(a,.1),hover:qt(a,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${b(1)} solid transparent`}}return{background:qt(e,.1),hover:qt(e,.12),color:e,border:`${b(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${b(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:qt(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${b(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:qt(e,.05),color:e,border:`${b(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${b(1)} solid transparent`};const a=t.colors[i.color][i.shade];return{background:"transparent",hover:qt(a,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${b(1)} solid transparent`}}return{background:"transparent",hover:qt(e,.12),color:e,border:`${b(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${b(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${b(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${b(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:il(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${b(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:il(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${b(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:il(t.white,.01),color:e,border:`${b(1)} solid transparent`}:n==="gradient"?{background:xu(r,t),hover:xu(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${b(1)} solid var(--mantine-color-default-border)`}:{}},wx={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Jd="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",jc={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:wx,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:vx,autoContrast:!1,luminanceThreshold:.3,fontFamily:Jd,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Jd,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:b(34),lineHeight:"1.3"},h2:{fontSize:b(26),lineHeight:"1.35"},h3:{fontSize:b(22),lineHeight:"1.4"},h4:{fontSize:b(18),lineHeight:"1.45"},h5:{fontSize:b(16),lineHeight:"1.5"},h6:{fontSize:b(14),lineHeight:"1.5"}}},fontSizes:{xs:b(12),sm:b(14),md:b(16),lg:b(18),xl:b(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:b(2),sm:b(4),md:b(8),lg:b(16),xl:b(32)},spacing:{xs:b(10),sm:b(12),md:b(16),lg:b(20),xl:b(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), 0 ${b(1)} ${b(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(10)} ${b(15)} ${b(-5)}, rgba(0, 0, 0, 0.04) 0 ${b(7)} ${b(7)} ${b(-5)}`,md:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(20)} ${b(25)} ${b(-5)}, rgba(0, 0, 0, 0.04) 0 ${b(10)} ${b(10)} ${b(-5)}`,lg:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(28)} ${b(23)} ${b(-7)}, rgba(0, 0, 0, 0.04) 0 ${b(12)} ${b(12)} ${b(-7)}`,xl:`0 ${b(1)} ${b(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${b(36)} ${b(28)} ${b(-7)}, rgba(0, 0, 0, 0.04) 0 ${b(17)} ${b(17)} ${b(-7)}`},other:{},components:{}};function qd(e){return e==="auto"||e==="dark"||e==="light"}function xx({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return qd(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&qd(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const Sx="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",ep="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function ms(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function tp(e){if(!(e.primaryColor in e.colors))throw new Error(Sx);if(typeof e.primaryShade=="object"&&(!ms(e.primaryShade.dark)||!ms(e.primaryShade.light)))throw new Error(ep);if(typeof e.primaryShade=="number"&&!ms(e.primaryShade))throw new Error(ep)}function Cx(e,t){var r;if(!t)return tp(e),e;const n=Pc(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),tp(n),n}const Mc=x.createContext(null),Ex=()=>x.useContext(Mc)||jc;function Kt(){const e=x.useContext(Mc);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Pg({theme:e,children:t,inherit:n=!0}){const r=Ex(),o=x.useMemo(()=>Cx(n?r:jc,e),[e,r,n]);return k.jsx(Mc.Provider,{value:o,children:t})}Pg.displayName="@mantine/core/MantineThemeProvider";function kx(){const e=Kt(),t=bc(),n=Ye(e.breakpoints).reduce((r,o)=>{const i=e.breakpoints[o].includes("px"),l=yu(e.breakpoints[o]),a=i?`${l-.1}px`:Kd(l-.1),s=i?`${l}px`:Kd(l);return`${r}@media (max-width: ${a}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${s}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return k.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function gs(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function zo(e,t){return(Array.isArray(e)?e:[e]).reduce((r,o)=>`${o}{${r}}`,t)}function Rx(e,t){const n=gs(e.variables),r=n?zo(t,n):"",o=gs(e.dark),i=gs(e.light),l=o?zo(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):"",a=i?zo(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,i):"";return`${r}${l}${a}`}function zc({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&gr({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function np(e,t){return zc({color:e.colors[e.primaryColor][yi(e,t)],theme:e,autoContrast:null})}function ll({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const a=yi(e,"light"),s={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Rr(e.colors[t][a],.1),[`--mantine-color-${r}-light-hover`]:Rr(e.colors[t][a],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline-hover`]:Rr(e.colors[t][a],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...s}:s}const i=yi(e,"dark"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${i})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${i===9?8:i+1})`,[`--mantine-color-${r}-light`]:Rr(e.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${r}-light-hover`]:Rr(e.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(i-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(i-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Rr(e.colors[t][Math.max(i-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...l}:l}function _x(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function _r(e,t,n){Ye(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const Ng=e=>{const t=yi(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:b(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":np(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":np(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};_r(r.variables,e.breakpoints,"breakpoint"),_r(r.variables,e.spacing,"spacing"),_r(r.variables,e.fontSizes,"font-size"),_r(r.variables,e.lineHeights,"line-height"),_r(r.variables,e.shadows,"shadow"),_r(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{r.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),Ye(e.colors).forEach(i=>{const l=e.colors[i];if(_x(l)){Object.assign(r.light,ll({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,ll({theme:e,name:l.name,color:l.dark,colorScheme:"dark",withColorValues:!0}));return}l.forEach((a,s)=>{r.variables[`--mantine-color-${i}-${s}`]=a}),Object.assign(r.light,ll({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,ll({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return Ye(o).forEach(i=>{r.variables[`--mantine-${i}-font-size`]=o[i].fontSize,r.variables[`--mantine-${i}-line-height`]=o[i].lineHeight,r.variables[`--mantine-${i}-font-weight`]=o[i].fontWeight||e.headings.fontWeight}),r};function Px({theme:e,generator:t}){const n=Ng(e),r=t==null?void 0:t(e);return r?Pc(n,r):n}const ys=Ng(jc);function Nx(e){const t={variables:{},light:{},dark:{}};return Ye(e.variables).forEach(n=>{ys.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Ye(e.light).forEach(n=>{ys.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Ye(e.dark).forEach(n=>{ys.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function $x(e){return` - ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } - ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } -`}function $g({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Kt(),r=bc(),o=lx(),i=Px({theme:n,generator:o}),l=e===":root"&&t,a=l?Nx(i):i,s=Rx(a,e);return s?k.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${s}${l?"":$x(e)}`}}):null}$g.displayName="@mantine/CssVariables";function Tx(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function Pr(e,t){var r;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(r=t())==null||r.setAttribute("data-mantine-color-scheme",n)}function bx({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=x.useRef(),[i,l]=x.useState(()=>e.get(t)),a=r||i,s=x.useCallback(d=>{r||(Pr(d,n),l(d),e.set(d))},[e.set,a,r]),u=x.useCallback(()=>{l(t),Pr(t,n),e.clear()},[e.clear,t]);return x.useEffect(()=>(e.subscribe(s),e.unsubscribe),[e.subscribe,e.unsubscribe]),wa(()=>{Pr(e.get(t),n)},[]),x.useEffect(()=>{var c;if(r)return Pr(r,n),()=>{};r===void 0&&Pr(i,n),o.current=window.matchMedia("(prefers-color-scheme: dark)");const d=f=>{i==="auto"&&Pr(f.matches?"dark":"light",n)};return(c=o.current)==null||c.addEventListener("change",d),()=>{var f;return(f=o.current)==null?void 0:f.removeEventListener("change",d)}},[i,r]),{colorScheme:a,setColorScheme:s,clearColorScheme:u}}function Lx({respectReducedMotion:e,getRootElement:t}){wa(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}Tx();function Tg({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:i=!0,withCssVariables:l=!0,cssVariablesSelector:a=":root",classNamesPrefix:s="mantine",colorSchemeManager:u=xx(),defaultColorScheme:d="light",getRootElement:c=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:h,stylesTransform:y}){const{colorScheme:v,setColorScheme:C,clearColorScheme:g}=bx({defaultColorScheme:d,forceColorScheme:h,manager:u,getRootElement:c});return Lx({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:c}),k.jsx(_g.Provider,{value:{colorScheme:v,setColorScheme:C,clearColorScheme:g,getRootElement:c,classNamesPrefix:s,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:a,withStaticClasses:r,stylesTransform:y},children:k.jsxs(Pg,{theme:e,children:[l&&k.jsx($g,{cssVariablesSelector:a,deduplicateCssVariables:i}),o&&k.jsx(kx,{}),t]})})}Tg.displayName="@mantine/core/MantineProvider";const jx={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function Mx({theme:e,options:t,unstyled:n}){return hn((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||jx[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function zx({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return Tc({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}function rp({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return Tc({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function Dx({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Ix({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Ox({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function Fx({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map(i=>{var l,a;return(a=Tc({theme:t,classNames:(l=t.components[i])==null?void 0:l.classNames,props:r,stylesCtx:o}))==null?void 0:a[n]})}function Ax({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function Bx({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:i,classes:l,unstyled:a,className:s,rootSelector:u,props:d,stylesCtx:c,withStaticClasses:f,headless:h,transformedStyles:y}){return hn(Mx({theme:e,options:t,unstyled:a||h}),Fx({theme:e,themeName:n,selector:r,props:d,stylesCtx:c}),Ax({options:t,classes:l,selector:r,unstyled:a}),rp({selector:r,stylesCtx:c,theme:e,classNames:i,props:d}),rp({selector:r,stylesCtx:c,theme:e,classNames:y,props:d}),zx({selector:r,stylesCtx:c,options:t,props:d,theme:e}),Dx({rootSelector:u,selector:r,className:s}),Ix({selector:r,classes:l,unstyled:a||h}),f&&!h&&Ox({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function Ux({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map(i=>{var l;return wu({theme:e,styles:(l=e.components[i])==null?void 0:l.styles,props:n,stylesCtx:r})[o]}).reduce((i,l)=>({...i,...l}),{})}function Su({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...Su({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function Hx(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...co(n[r])}}),t),{})}function Wx({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:i,themeName:l,headless:a}){var s;return(s=Hx([a?{}:t==null?void 0:t(n,r,o),...l.map(u=>{var d,c,f;return(f=(c=(d=n.components)==null?void 0:d[u])==null?void 0:c.vars)==null?void 0:f.call(c,n,r,o)}),e==null?void 0:e(n,r,o)]))==null?void 0:s[i]}function Vx({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:i,rootSelector:l,styles:a,style:s,vars:u,varsResolver:d,headless:c,withStylesTransform:f}){return{...!f&&Ux({theme:e,themeName:t,props:o,stylesCtx:i,selector:n}),...!f&&wu({theme:e,styles:a,props:o,stylesCtx:i})[n],...!f&&wu({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:i})[n],...Wx({theme:e,props:o,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:t,headless:c}),...l===n?Su({style:s,theme:e}):null,...Su({style:r==null?void 0:r.style,theme:e})}}function Gx({props:e,stylesCtx:t,themeName:n}){var l;const r=Kt(),o=(l=fx())==null?void 0:l();return{getTransformedStyles:a=>o?[...a.map(u=>o(u,{props:e,theme:r,ctx:t})),...n.map(u=>{var d;return o((d=r.components[u])==null?void 0:d.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!o}}function he({name:e,classes:t,props:n,stylesCtx:r,className:o,style:i,rootSelector:l="root",unstyled:a,classNames:s,styles:u,vars:d,varsResolver:c}){const f=Kt(),h=ax(),y=sx(),v=ux(),C=(Array.isArray(e)?e:[e]).filter(m=>m),{withStylesTransform:g,getTransformedStyles:p}=Gx({props:n,stylesCtx:r,themeName:C});return(m,S)=>({className:Bx({theme:f,options:S,themeName:C,selector:m,classNamesPrefix:h,classNames:s,classes:t,unstyled:a,className:o,rootSelector:l,props:n,stylesCtx:r,withStaticClasses:y,headless:v,transformedStyles:p([S==null?void 0:S.styles,u])}),style:Vx({theme:f,themeName:C,selector:m,options:S,props:n,stylesCtx:r,rootSelector:l,styles:u,style:i,vars:d,varsResolver:c,headless:v,withStylesTransform:g})})}function bg(e,t){return typeof e=="boolean"?e:t.autoContrast}function ne(e,t,n){var l;const r=Kt(),o=(l=r.components[e])==null?void 0:l.defaultProps,i=typeof o=="function"?o(r):o;return{...t,...i,...co(n)}}function vs(e){return Ye(e).reduce((t,n)=>e[n]!==void 0?`${t}${_w(n)}:${e[n]};`:t,"").trim()}function Qx({selector:e,styles:t,media:n,container:r}){const o=t?vs(t):"",i=Array.isArray(n)?n.map(a=>`@media${a.query}{${e}{${vs(a.styles)}}}`):[],l=Array.isArray(r)?r.map(a=>`@container ${a.query}{${e}{${vs(a.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${i.join("")}${l.join("")}`.trim()}function xa(e){const t=bc();return k.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:Qx(e)}})}function Sa(e){const{m:t,mx:n,my:r,mt:o,mb:i,ml:l,mr:a,me:s,ms:u,p:d,px:c,py:f,pt:h,pb:y,pl:v,pr:C,pe:g,ps:p,bd:m,bg:S,c:_,opacity:w,ff:$,fz:N,fw:M,lts:L,ta:H,lh:V,fs:Y,tt:F,td:ee,w:oe,miw:B,maw:j,h:I,mih:O,mah:X,bgsz:te,bgp:Le,bgr:ye,bga:Fe,pos:Pe,top:ct,left:Xt,bottom:Wn,right:go,inset:yo,display:je,flex:Nt,hiddenFrom:Me,visibleFrom:vo,lightHidden:$t,darkHidden:vr,sx:wr,...Vn}=e;return{styleProps:co({m:t,mx:n,my:r,mt:o,mb:i,ml:l,mr:a,me:s,ms:u,p:d,px:c,py:f,pt:h,pb:y,pl:v,pr:C,pe:g,ps:p,bd:m,bg:S,c:_,opacity:w,ff:$,fz:N,fw:M,lts:L,ta:H,lh:V,fs:Y,tt:F,td:ee,w:oe,miw:B,maw:j,h:I,mih:O,mah:X,bgsz:te,bgp:Le,bgr:ye,bga:Fe,pos:Pe,top:ct,left:Xt,bottom:Wn,right:go,inset:yo,display:je,flex:Nt,hiddenFrom:Me,visibleFrom:vo,lightHidden:$t,darkHidden:vr,sx:wr}),rest:Vn}}const Yx={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function Dc(e,t){const n=gr({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function Kx(e,t){const n=gr({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Dc(e,t)}function Xx(e,t){if(typeof e=="number")return b(e);if(typeof e=="string"){const[n,r,...o]=e.split(" ").filter(l=>l.trim()!=="");let i=`${b(n)}`;return r&&(i+=` ${r}`),o.length>0&&(i+=` ${Dc(o.join(" "),t)}`),i.trim()}return e}const op={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function Zx(e){return typeof e=="string"&&e in op?op[e]:e}const Jx=["h1","h2","h3","h4","h5","h6"];function qx(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&Jx.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?b(e):e}function eS(e){return e}const tS=["h1","h2","h3","h4","h5","h6"];function nS(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&tS.includes(e)?`var(--mantine-${e}-line-height)`:e}function rS(e){return typeof e=="number"?b(e):e}function oS(e,t){if(typeof e=="number")return b(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return b(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const ws={color:Dc,textColor:Kx,fontSize:qx,spacing:oS,identity:eS,size:rS,lineHeight:nS,fontFamily:Zx,border:Xx};function ip(e){return e.replace("(min-width: ","").replace("em)","")}function iS({media:e,...t}){const r=Object.keys(e).sort((o,i)=>Number(ip(o))-Number(ip(i))).map(o=>({query:o,styles:e[o]}));return{...t,media:r}}function lS(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function aS(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function sS(e){return typeof e=="object"&&e!==null?Ye(e).filter(t=>t!=="base"):[]}function uS(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function Lg({styleProps:e,data:t,theme:n}){return iS(Ye(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const i=t[o],l=Array.isArray(i.property)?i.property:[i.property],a=aS(e[o]);if(!lS(e[o]))return l.forEach(u=>{r.inlineStyles[u]=ws[i.type](a,n)}),r;r.hasResponsiveStyles=!0;const s=sS(e[o]);return l.forEach(u=>{a&&(r.styles[u]=ws[i.type](a,n)),s.forEach(d=>{const c=`(min-width: ${n.breakpoints[d]})`;r.media[c]={...r.media[c],[u]:ws[i.type](uS(e[o],d),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Ca(){return`__m__-${x.useId().replace(/:/g,"")}`}function jg(e){return e.startsWith("data-")?e:`data-${e}`}function cS(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[jg(n)]=e[n]),t},{})}function Mg(e){return e?typeof e=="string"?{[jg(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...Mg(n)}),{}):cS(e):null}function Cu(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...Cu(r,t)}),{}):typeof e=="function"?e(t):e??{}}function fS({theme:e,style:t,vars:n,styleProps:r}){const o=Cu(t,e),i=Cu(n,e);return{...o,...i,...r}}const zg=x.forwardRef(({component:e,style:t,__vars:n,className:r,variant:o,mod:i,size:l,hiddenFrom:a,visibleFrom:s,lightHidden:u,darkHidden:d,renderRoot:c,__size:f,...h},y)=>{var N;const v=Kt(),C=e||"div",{styleProps:g,rest:p}=Sa(h),m=cx(),S=(N=m==null?void 0:m())==null?void 0:N(g.sx),_=Ca(),w=Lg({styleProps:g,theme:v,data:Yx}),$={ref:y,style:fS({theme:v,style:t,vars:n,styleProps:w.inlineStyles}),className:hn(r,S,{[_]:w.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${s}`]:s}),"data-variant":o,"data-size":pg(l)?void 0:l||void 0,size:f,...Mg(i),...p};return k.jsxs(k.Fragment,{children:[w.hasResponsiveStyles&&k.jsx(xa,{selector:`.${_}`,styles:w.styles,media:w.media}),typeof c=="function"?c($):k.jsx(C,{...$})]})});zg.displayName="@mantine/core/Box";const J=zg;function Dg(e){return e}function ke(e){const t=x.forwardRef(e);return t.extend=Dg,t.withProps=n=>{const r=x.forwardRef((o,i)=>k.jsx(t,{...n,...o,ref:i}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function yr(e){const t=x.forwardRef(e);return t.withProps=n=>{const r=x.forwardRef((o,i)=>k.jsx(t,{...n,...o,ref:i}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=Dg,t}const dS=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ig(){return x.useContext(dS)}var Og={root:"m_87cf2631"};const pS={__staticSelector:"UnstyledButton"},fo=yr((e,t)=>{const n=ne("UnstyledButton",pS,e),{className:r,component:o="button",__staticSelector:i,unstyled:l,classNames:a,styles:s,style:u,...d}=n,c=he({name:i,props:n,classes:Og,className:r,style:u,classNames:a,styles:s,unstyled:l});return k.jsx(J,{...c("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...d})});fo.classes=Og;fo.displayName="@mantine/core/UnstyledButton";var Fg={root:"m_515a97f8"};const hS={},Ic=ke((e,t)=>{const n=ne("VisuallyHidden",hS,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,...u}=n,d=he({name:"VisuallyHidden",classes:Fg,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a});return k.jsx(J,{component:"span",ref:t,...d("root"),...u})});Ic.classes=Fg;Ic.displayName="@mantine/core/VisuallyHidden";function po(e){return Ag(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return(t=(Ag(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ag(e){return e instanceof Node||e instanceof yt(e).Node}function et(e){return e instanceof Element||e instanceof yt(e).Element}function Yt(e){return e instanceof HTMLElement||e instanceof yt(e).HTMLElement}function lp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function Ni(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mS(e){return["table","td","th"].includes(po(e))}function Ea(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Oc(e){const t=Fc(),n=et(e)?At(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 gS(e){let t=In(e);for(;Yt(t)&&!oo(t);){if(Oc(t))return t;if(Ea(t))return null;t=In(t)}return null}function Fc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oo(e){return["html","body","#document"].includes(po(e))}function At(e){return yt(e).getComputedStyle(e)}function ka(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(po(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lp(e)&&e.host||mn(e);return lp(t)?t.host:t}function Bg(e){const t=In(e);return oo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Ni(t)?t:Bg(t)}function vi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Bg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=yt(o);if(i){const a=Eu(l);return t.concat(l,l.visualViewport||[],Ni(o)?o:[],a&&n?vi(a):[])}return t.concat(o,vi(o,[],n))}function Eu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const mt=Math.min,Qe=Math.max,Zl=Math.round,al=Math.floor,On=e=>({x:e,y:e}),yS={left:"right",right:"left",bottom:"top",top:"bottom"},vS={start:"end",end:"start"};function ku(e,t,n){return Qe(e,mt(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function ho(e){return e.split("-")[1]}function Ac(e){return e==="x"?"y":"x"}function Bc(e){return e==="y"?"height":"width"}function dn(e){return["top","bottom"].includes(Bt(e))?"y":"x"}function Uc(e){return Ac(dn(e))}function wS(e,t,n){n===void 0&&(n=!1);const r=ho(e),o=Uc(e),i=Bc(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Jl(l)),[l,Jl(l)]}function xS(e){const t=Jl(e);return[Ru(e),t,Ru(t)]}function Ru(e){return e.replace(/start|end/g,t=>vS[t])}function SS(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function CS(e,t,n,r){const o=ho(e);let i=SS(Bt(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ru)))),i}function Jl(e){return e.replace(/left|right|bottom|top/g,t=>yS[t])}function ES(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hc(e){return typeof e!="number"?ES(e):{top:e,right:e,bottom:e,left:e}}function io(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ap(e,t,n){let{reference:r,floating:o}=e;const i=dn(t),l=Uc(t),a=Bc(l),s=Bt(t),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(s){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(ho(t)){case"start":h[l]-=f*(n&&u?-1:1);break;case"end":h[l]+=f*(n&&u?-1:1);break}return h}const kS=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=ap(u,r,s),f=r,h={},y=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:d=0}=fn(e,t)||{};if(u==null)return{};const c=Hc(d),f={x:n,y:r},h=Uc(o),y=Bc(h),v=await l.getDimensions(u),C=h==="y",g=C?"top":"left",p=C?"bottom":"right",m=C?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[h]-f[h]-i.floating[y],_=f[h]-i.reference[h],w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let $=w?w[m]:0;(!$||!await(l.isElement==null?void 0:l.isElement(w)))&&($=a.floating[m]||i.floating[y]);const N=S/2-_/2,M=$/2-v[y]/2-1,L=mt(c[g],M),H=mt(c[p],M),V=L,Y=$-v[y]-H,F=$/2-v[y]/2+N,ee=ku(V,F,Y),oe=!s.arrow&&ho(o)!=null&&F!==ee&&i.reference[y]/2-(FF<=0)){var H,V;const F=(((H=i.flip)==null?void 0:H.index)||0)+1,ee=$[F];if(ee)return{data:{index:F,overflows:L},reset:{placement:ee}};let oe=(V=L.filter(B=>B.overflows[0]<=0).sort((B,j)=>B.overflows[1]-j.overflows[1])[0])==null?void 0:V.placement;if(!oe)switch(h){case"bestFit":{var Y;const B=(Y=L.filter(j=>{if(w){const I=dn(j.placement);return I===p||I==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(I=>I>0).reduce((I,O)=>I+O,0)]).sort((j,I)=>j[1]-I[1])[0])==null?void 0:Y[0];B&&(oe=B);break}case"initialPlacement":oe=a;break}if(o!==oe)return{reset:{placement:oe}}}return{}}}};function Ug(e){const t=mt(...e.map(i=>i.left)),n=mt(...e.map(i=>i.top)),r=Qe(...e.map(i=>i.right)),o=Qe(...e.map(i=>i.bottom));return{x:t,y:n,width:r-t,height:o-n}}function PS(e){const t=e.slice().sort((o,i)=>o.y-i.y),n=[];let r=null;for(let o=0;or.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(o=>io(Ug(o)))}const NS=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:l}=t,{padding:a=2,x:s,y:u}=fn(e,t),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(r.reference))||[]),c=PS(d),f=io(Ug(d)),h=Hc(a);function y(){if(c.length===2&&c[0].left>c[1].right&&s!=null&&u!=null)return c.find(C=>s>C.left-h.left&&sC.top-h.top&&u=2){if(dn(n)==="y"){const L=c[0],H=c[c.length-1],V=Bt(n)==="top",Y=L.top,F=H.bottom,ee=V?L.left:H.left,oe=V?L.right:H.right,B=oe-ee,j=F-Y;return{top:Y,bottom:F,left:ee,right:oe,width:B,height:j,x:ee,y:Y}}const C=Bt(n)==="left",g=Qe(...c.map(L=>L.right)),p=mt(...c.map(L=>L.left)),m=c.filter(L=>C?L.left===p:L.right===g),S=m[0].top,_=m[m.length-1].bottom,w=p,$=g,N=$-w,M=_-S;return{top:S,bottom:_,left:w,right:$,width:N,height:M,x:w,y:S}}return f}const v=await i.getElementRects({reference:{getBoundingClientRect:y},floating:r.floating,strategy:l});return o.reference.x!==v.reference.x||o.reference.y!==v.reference.y||o.reference.width!==v.reference.width||o.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};async function $S(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Bt(n),a=ho(n),s=dn(n)==="y",u=["left","top"].includes(l)?-1:1,d=i&&s?-1:1,c=fn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),s?{x:h*d,y:f*u}:{x:f*u,y:h*d}}const TS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await $S(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},bS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:C=>{let{x:g,y:p}=C;return{x:g,y:p}}},...s}=fn(e,t),u={x:n,y:r},d=await Wc(t,s),c=dn(Bt(o)),f=Ac(c);let h=u[f],y=u[c];if(i){const C=f==="y"?"top":"left",g=f==="y"?"bottom":"right",p=h+d[C],m=h-d[g];h=ku(p,h,m)}if(l){const C=c==="y"?"top":"left",g=c==="y"?"bottom":"right",p=y+d[C],m=y-d[g];y=ku(p,y,m)}const v=a.fn({...t,[f]:h,[c]:y});return{...v,data:{x:v.x-n,y:v.y-r}}}}},LS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=fn(e,t),d={x:n,y:r},c=dn(o),f=Ac(c);let h=d[f],y=d[c];const v=fn(a,t),C=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const m=f==="y"?"height":"width",S=i.reference[f]-i.floating[m]+C.mainAxis,_=i.reference[f]+i.reference[m]-C.mainAxis;h_&&(h=_)}if(u){var g,p;const m=f==="y"?"width":"height",S=["top","left"].includes(Bt(o)),_=i.reference[c]-i.floating[m]+(S&&((g=l.offset)==null?void 0:g[c])||0)+(S?0:C.crossAxis),w=i.reference[c]+i.reference[m]+(S?0:((p=l.offset)==null?void 0:p[c])||0)-(S?C.crossAxis:0);y<_?y=_:y>w&&(y=w)}return{[f]:h,[c]:y}}}},jS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...a}=fn(e,t),s=await Wc(t,a),u=Bt(n),d=ho(n),c=dn(n)==="y",{width:f,height:h}=r.floating;let y,v;u==="top"||u==="bottom"?(y=u,v=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,y=d==="end"?"top":"bottom");const C=h-s.top-s.bottom,g=f-s.left-s.right,p=mt(h-s[y],C),m=mt(f-s[v],g),S=!t.middlewareData.shift;let _=p,w=m;if(c?w=d||S?mt(m,g):g:_=d||S?mt(p,C):C,S&&!d){const N=Qe(s.left,0),M=Qe(s.right,0),L=Qe(s.top,0),H=Qe(s.bottom,0);c?w=f-2*(N!==0||M!==0?N+M:Qe(s.left,s.right)):_=h-2*(L!==0||H!==0?L+H:Qe(s.top,s.bottom))}await l({...t,availableWidth:w,availableHeight:_});const $=await o.getDimensions(i.floating);return f!==$.width||h!==$.height?{reset:{rects:!0}}:{}}}};function Hg(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yt(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=Zl(n)!==i||Zl(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Vc(e){return et(e)?e:e.contextElement}function Qr(e){const t=Vc(e);if(!Yt(t))return On(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hg(t);let l=(i?Zl(n.width):n.width)/r,a=(i?Zl(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const MS=On(0);function Wg(e){const t=yt(e);return!Fc()||!t.visualViewport?MS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Vc(e);let l=On(1);t&&(r?et(r)&&(l=Qr(r)):l=Qr(e));const a=zS(i,n,r)?Wg(i):On(0);let s=(o.left+a.x)/l.x,u=(o.top+a.y)/l.y,d=o.width/l.x,c=o.height/l.y;if(i){const f=yt(i),h=r&&et(r)?yt(r):r;let y=f,v=Eu(y);for(;v&&r&&h!==y;){const C=Qr(v),g=v.getBoundingClientRect(),p=At(v),m=g.left+(v.clientLeft+parseFloat(p.paddingLeft))*C.x,S=g.top+(v.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,u*=C.y,d*=C.x,c*=C.y,s+=m,u+=S,y=yt(v),v=Eu(y)}}return io({width:d,height:c,x:s,y:u})}function DS(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=mn(r),a=t?Ea(t.floating):!1;if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},u=On(1);const d=On(0),c=Yt(r);if((c||!c&&!i)&&((po(r)!=="body"||Ni(l))&&(s=ka(r)),Yt(r))){const f=fr(r);u=Qr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+d.x,y:n.y*u.y-s.scrollTop*u.y+d.y}}function IS(e){return Array.from(e.getClientRects())}function Vg(e){return fr(mn(e)).left+ka(e).scrollLeft}function OS(e){const t=mn(e),n=ka(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Vg(e);const a=-n.scrollTop;return At(r).direction==="rtl"&&(l+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}function FS(e,t){const n=yt(e),r=mn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const u=Fc();(!u||u&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function AS(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Yt(e)?Qr(e):On(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,s=o*i.x,u=r*i.y;return{width:l,height:a,x:s,y:u}}function sp(e,t,n){let r;if(t==="viewport")r=FS(e,n);else if(t==="document")r=OS(mn(e));else if(et(t))r=AS(t,n);else{const o=Wg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return io(r)}function Gg(e,t){const n=In(e);return n===t||!et(n)||oo(n)?!1:At(n).position==="fixed"||Gg(n,t)}function BS(e,t){const n=t.get(e);if(n)return n;let r=vi(e,[],!1).filter(a=>et(a)&&po(a)!=="body"),o=null;const i=At(e).position==="fixed";let l=i?In(e):e;for(;et(l)&&!oo(l);){const a=At(l),s=Oc(l);!s&&a.position==="fixed"&&(o=null),(i?!s&&!o:!s&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ni(l)&&!s&&Gg(e,l))?r=r.filter(d=>d!==l):o=a,l=In(l)}return t.set(e,r),r}function US(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Ea(t)?[]:BS(t,this._c):[].concat(n),r],a=l[0],s=l.reduce((u,d)=>{const c=sp(t,d,o);return u.top=Qe(c.top,u.top),u.right=mt(c.right,u.right),u.bottom=mt(c.bottom,u.bottom),u.left=Qe(c.left,u.left),u},sp(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function HS(e){const{width:t,height:n}=Hg(e);return{width:t,height:n}}function WS(e,t,n){const r=Yt(t),o=mn(t),i=n==="fixed",l=fr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=On(0);if(r||!r&&!i)if((po(t)!=="body"||Ni(o))&&(a=ka(t)),r){const c=fr(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=Vg(o));const u=l.left+a.scrollLeft-s.x,d=l.top+a.scrollTop-s.y;return{x:u,y:d,width:l.width,height:l.height}}function xs(e){return At(e).position==="static"}function up(e,t){return!Yt(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qg(e,t){const n=yt(e);if(Ea(e))return n;if(!Yt(e)){let o=In(e);for(;o&&!oo(o);){if(et(o)&&!xs(o))return o;o=In(o)}return n}let r=up(e,t);for(;r&&mS(r)&&xs(r);)r=up(r,t);return r&&oo(r)&&xs(r)&&!Oc(r)?n:r||gS(e)||n}const VS=async function(e){const t=this.getOffsetParent||Qg,n=this.getDimensions,r=await n(e.floating);return{reference:WS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function GS(e){return At(e).direction==="rtl"}const QS={convertOffsetParentRelativeRectToViewportRelativeRect:DS,getDocumentElement:mn,getClippingRect:US,getOffsetParent:Qg,getElementRects:VS,getClientRects:IS,getDimensions:HS,getScale:Qr,isElement:et,isRTL:GS};function YS(e,t){let n=null,r;const o=mn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),i();const{left:u,top:d,width:c,height:f}=e.getBoundingClientRect();if(a||t(),!c||!f)return;const h=al(d),y=al(o.clientWidth-(u+c)),v=al(o.clientHeight-(d+f)),C=al(u),p={rootMargin:-h+"px "+-y+"px "+-v+"px "+-C+"px",threshold:Qe(0,mt(1,s))||1};let m=!0;function S(_){const w=_[0].intersectionRatio;if(w!==s){if(!m)return l();w?l(!1,w):r=setTimeout(()=>{l(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(S,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,p)}n.observe(e)}return l(!0),i}function KS(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=Vc(e),d=o||i?[...u?vi(u):[],...vi(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const c=u&&a?YS(u,n):null;let f=-1,h=null;l&&(h=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(t)})),n()}),u&&!s&&h.observe(u),h.observe(t));let y,v=s?fr(e):null;s&&C();function C(){const g=fr(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,y=requestAnimationFrame(C)}return n(),()=>{var g;d.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),c==null||c(),(g=h)==null||g.disconnect(),h=null,s&&cancelAnimationFrame(y)}}const XS=TS,ZS=bS,JS=_S,qS=jS,cp=RS,eC=NS,tC=LS,nC=(e,t,n)=>{const r=new Map,o={platform:QS,...n},i={...o.platform,_c:r};return kS(e,t,{...o,platform:i})};var El=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ql(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ql(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ql(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Yg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fp(e,t){const n=Yg(e);return Math.round(t*n)/n}function dp(e){const t=x.useRef(e);return El(()=>{t.current=e}),t}function rC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:u}=e,[d,c]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=x.useState(r);ql(f,r)||h(r);const[y,v]=x.useState(null),[C,g]=x.useState(null),p=x.useCallback(B=>{B!==w.current&&(w.current=B,v(B))},[]),m=x.useCallback(B=>{B!==$.current&&($.current=B,g(B))},[]),S=i||y,_=l||C,w=x.useRef(null),$=x.useRef(null),N=x.useRef(d),M=s!=null,L=dp(s),H=dp(o),V=x.useCallback(()=>{if(!w.current||!$.current)return;const B={placement:t,strategy:n,middleware:f};H.current&&(B.platform=H.current),nC(w.current,$.current,B).then(j=>{const I={...j,isPositioned:!0};Y.current&&!ql(N.current,I)&&(N.current=I,Ri.flushSync(()=>{c(I)}))})},[f,t,n,H]);El(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(B=>({...B,isPositioned:!1})))},[u]);const Y=x.useRef(!1);El(()=>(Y.current=!0,()=>{Y.current=!1}),[]),El(()=>{if(S&&(w.current=S),_&&($.current=_),S&&_){if(L.current)return L.current(S,_,V);V()}},[S,_,V,L,M]);const F=x.useMemo(()=>({reference:w,floating:$,setReference:p,setFloating:m}),[p,m]),ee=x.useMemo(()=>({reference:S,floating:_}),[S,_]),oe=x.useMemo(()=>{const B={position:n,left:0,top:0};if(!ee.floating)return B;const j=fp(ee.floating,d.x),I=fp(ee.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+I+"px)",...Yg(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:I}},[n,a,ee.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:V,refs:F,elements:ee,floatingStyles:oe}),[d,V,F,ee,oe])}const oC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?cp({element:r.current,padding:o}).fn(n):{}:r?cp({element:r,padding:o}).fn(n):{}}}},iC=(e,t)=>({...XS(e),options:[e,t]}),lC=(e,t)=>({...ZS(e),options:[e,t]}),pp=(e,t)=>({...tC(e),options:[e,t]}),hp=(e,t)=>({...JS(e),options:[e,t]}),aC=(e,t)=>({...qS(e),options:[e,t]}),mp=(e,t)=>({...eC(e),options:[e,t]}),sC=(e,t)=>({...oC(e),options:[e,t]}),Kg={...Qp},uC=Kg.useInsertionEffect,cC=uC||(e=>e());function fC(e){const t=x.useRef(()=>{});return cC(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+dC++;function pC(){const[e,t]=x.useState(()=>gp?yp():void 0);return _u(()=>{e==null&&t(yp())},[]),x.useEffect(()=>{gp=!0},[]),e}const hC=Kg.useId,mC=hC||pC;function gC(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const yC=x.createContext(null),vC=x.createContext(null),wC=()=>{var e;return((e=x.useContext(yC))==null?void 0:e.id)||null},xC=()=>x.useContext(vC);function SC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=mC(),i=x.useRef({}),[l]=x.useState(()=>gC()),a=wC()!=null,[s,u]=x.useState(r.reference),d=fC((h,y,v)=>{i.current.openEvent=h?y:void 0,l.emit("openchange",{open:h,event:y,reason:v,nested:a}),n==null||n(h,y,v)}),c=x.useMemo(()=>({setPositionReference:u}),[]),f=x.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return x.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:f,events:l,floatingId:o,refs:c}),[t,d,f,l,o,c])}function CC(e){e===void 0&&(e={});const{nodeId:t}=e,n=SC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=x.useState(null),[a,s]=x.useState(null),d=(o==null?void 0:o.reference)||i,c=x.useRef(null),f=xC();_u(()=>{d&&(c.current=d)},[d]);const h=rC({...e,elements:{...o,...a&&{reference:a}}}),y=x.useCallback(m=>{const S=et(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;s(S),h.refs.setReference(S)},[h.refs]),v=x.useCallback(m=>{(et(m)||m===null)&&(c.current=m,l(m)),(et(h.refs.reference.current)||h.refs.reference.current===null||m!==null&&!et(m))&&h.refs.setReference(m)},[h.refs]),C=x.useMemo(()=>({...h.refs,setReference:v,setPositionReference:y,domReference:c}),[h.refs,v,y]),g=x.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),p=x.useMemo(()=>({...h,...r,refs:C,elements:g,nodeId:t}),[h,C,g,t,r]);return _u(()=>{r.dataRef.current.floatingContext=p;const m=f==null?void 0:f.nodesRef.current.find(S=>S.id===t);m&&(m.context=p)}),x.useMemo(()=>({...h,context:p,refs:C,elements:g}),[h,C,g,p])}function EC(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return t}function vp(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function wp(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const kC={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function RC({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:i,arrowY:l,dir:a}){const[s,u="center"]=e.split("-"),d={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[kC[s]]:r},c=-t/2;return s==="left"?{...d,...vp(u,l,n,o),right:c,borderLeftColor:"transparent",borderBottomColor:"transparent"}:s==="right"?{...d,...vp(u,l,n,o),left:c,borderRightColor:"transparent",borderTopColor:"transparent"}:s==="top"?{...d,...wp(u,i,n,o,a),bottom:c,borderTopColor:"transparent",borderLeftColor:"transparent"}:s==="bottom"?{...d,...wp(u,i,n,o,a),top:c,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const Xg=x.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:i,arrowX:l,arrowY:a,style:s,...u},d)=>{const{dir:c}=Ig();return i?k.jsx("div",{...u,ref:d,style:{...s,...RC({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:c,arrowX:l,arrowY:a})}}):null});Xg.displayName="@mantine/core/FloatingArrow";const[_C,Zg]=mg("Popover component was not found in the tree");function Gc({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=Gw(t),i=$c(o,r);return hg(e)?x.cloneElement(e,{[n]:i}):e}function Jg(e){return k.jsx(Ic,{tabIndex:-1,"data-autofocus":!0,...e})}Gc.displayName="@mantine/core/FocusTrap";Jg.displayName="@mantine/core/FocusTrapInitialFocus";Gc.InitialFocus=Jg;function PC(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}const NC={},qg=x.forwardRef((e,t)=>{const{children:n,target:r,...o}=ne("Portal",NC,e),[i,l]=x.useState(!1),a=x.useRef(null);return wa(()=>(l(!0),a.current=r?typeof r=="string"?document.querySelector(r):r:PC(o),Cg(t,a.current),!r&&a.current&&document.body.appendChild(a.current),()=>{!r&&a.current&&document.body.removeChild(a.current)}),[r]),!i||!a.current?null:Ri.createPortal(k.jsx(k.Fragment,{children:n}),a.current)});qg.displayName="@mantine/core/Portal";function ey({withinPortal:e=!0,children:t,...n}){return e?k.jsx(qg,{...n,children:t}):k.jsx(k.Fragment,{children:t})}ey.displayName="@mantine/core/OptionalPortal";const Do=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${b(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),sl={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${b(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${b(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${b(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${b(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${b(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${b(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${b(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${b(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Do("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Do("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Do("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Do("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Do("top"),common:{transformOrigin:"top right"}}},xp={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function $C({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in sl?{transitionProperty:sl[e].transitionProperty,...o,...sl[e].common,...sl[e][xp[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[xp[t]]}}function TC({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:i,onEntered:l,onExited:a,enterDelay:s,exitDelay:u}){const d=Kt(),c=kg(),f=d.respectReducedMotion?c:!1,[h,y]=x.useState(f?0:e),[v,C]=x.useState(r?"entered":"exited"),g=x.useRef(-1),p=x.useRef(-1),m=x.useRef(-1),S=w=>{const $=w?o:i,N=w?l:a;window.clearTimeout(g.current);const M=f?0:w?e:t;y(M),M===0?(typeof $=="function"&&$(),typeof N=="function"&&N(),C(w?"entered":"exited")):m.current=requestAnimationFrame(()=>{Xm.flushSync(()=>{C(w?"pre-entering":"pre-exiting")}),m.current=requestAnimationFrame(()=>{typeof $=="function"&&$(),C(w?"entering":"exiting"),g.current=window.setTimeout(()=>{typeof N=="function"&&N(),C(w?"entered":"exited")},M)})})},_=w=>{if(window.clearTimeout(p.current),typeof(w?s:u)!="number"){S(w);return}p.current=window.setTimeout(()=>{S(w)},w?s:u)};return ro(()=>{_(r)},[r]),x.useEffect(()=>()=>{window.clearTimeout(g.current),cancelAnimationFrame(m.current)},[]),{transitionDuration:h,transitionStatus:v,transitionTimingFunction:n||"ease"}}function Ra({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:i,timingFunction:l="ease",onExit:a,onEntered:s,onEnter:u,onExited:d,enterDelay:c,exitDelay:f}){const{transitionDuration:h,transitionStatus:y,transitionTimingFunction:v}=TC({mounted:o,exitDuration:r,duration:n,timingFunction:l,onExit:a,onEntered:s,onEnter:u,onExited:d,enterDelay:c,exitDelay:f});return h===0?o?k.jsx(k.Fragment,{children:i({})}):e?i({display:"none"}):null:y==="exited"?e?i({display:"none"}):null:k.jsx(k.Fragment,{children:i($C({transition:t,duration:h,state:y,timingFunction:v}))})}Ra.displayName="@mantine/core/Transition";var ty={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const bC={},Qc=ke((e,t)=>{var C,g,p,m;const n=ne("PopoverDropdown",bC,e),{className:r,style:o,vars:i,children:l,onKeyDownCapture:a,variant:s,classNames:u,styles:d,...c}=n,f=Zg(),h=Fw({opened:f.opened,shouldReturnFocus:f.returnFocus}),y=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},v=$c(t,f.floating);return f.disabled?null:k.jsx(ey,{...f.portalProps,withinPortal:f.withinPortal,children:k.jsx(Ra,{mounted:f.opened,...f.transitionProps,transition:((C=f.transitionProps)==null?void 0:C.transition)||"fade",duration:((g=f.transitionProps)==null?void 0:g.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((p=f.transitionProps)==null?void 0:p.exitDuration)=="number"?f.transitionProps.exitDuration:(m=f.transitionProps)==null?void 0:m.duration,children:S=>k.jsx(Gc,{active:f.trapFocus,innerRef:v,children:k.jsxs(J,{...y,...c,variant:s,onKeyDownCapture:bw(f.onClose,{active:f.closeOnEscape,onTrigger:h,onKeyDown:a}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:r,props:n,classNames:u,styles:d,style:[{...S,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:b(f.width)},o]}),children:[l,k.jsx(Xg,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})});Qc.classes=ty;Qc.displayName="@mantine/core/PopoverDropdown";const LC={refProp:"ref",popupType:"dialog"},ny=ke((e,t)=>{const{children:n,refProp:r,popupType:o,...i}=ne("PopoverTarget",LC,e);if(!hg(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=i,a=Zg(),s=$c(a.reference,n.ref,t),u=a.withRoles?{"aria-haspopup":o,"aria-expanded":a.opened,"aria-controls":a.getDropdownId(),id:a.getTargetId()}:{};return x.cloneElement(n,{...l,...u,...a.targetProps,className:hn(a.targetProps.className,l.className,n.props.className),[r]:s,...a.controlled?null:{onClick:a.onToggle}})});ny.displayName="@mantine/core/PopoverTarget";function jC({opened:e,floating:t,position:n,positionDependencies:r}){const[o,i]=x.useState(0);x.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return KS(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,n]),ro(()=>{t.update()},r),ro(()=>{i(l=>l+1)},[e])}function MC(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function zC(e,t){const n=MC(e.middlewares),r=[iC(e.offset)];return n.shift&&r.push(lC(typeof n.shift=="boolean"?{limiter:pp(),padding:5}:{limiter:pp(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?hp():hp(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?mp():mp(n.inline)),r.push(sC({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(aC({...typeof n.size=="boolean"?{}:n.size,apply({rects:o,availableWidth:i,availableHeight:l}){var u;const s=((u=t().refs.floating.current)==null?void 0:u.style)??{};n.size&&Object.assign(s,{maxWidth:`${i}px`,maxHeight:`${l}px`}),e.width==="target"&&Object.assign(s,{width:`${o.reference.width}px`})}})),r}function DC(e){const[t,n]=Eg({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{var l;t&&((l=e.onClose)==null||l.call(e),n(!1))},o=()=>{var l,a;t?((l=e.onClose)==null||l.call(e),n(!1)):((a=e.onOpen)==null||a.call(e),n(!0))},i=CC({strategy:e.strategy,placement:e.position,middleware:zC(e,()=>i)});return jC({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies||[],floating:i}),ro(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),ro(()=>{var l,a;e.opened?(a=e.onOpen)==null||a.call(e):(l=e.onClose)==null||l.call(e)},[e.opened]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:o}}const IC={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:$w("popover"),__staticSelector:"Popover",width:"max-content"},OC=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Hn(t),"--popover-shadow":jw(n)}});function ir(e){var vr,wr,Vn,wo,Li,ji;const t=ne("Popover",IC,e),{children:n,position:r,offset:o,onPositionChange:i,positionDependencies:l,opened:a,transitionProps:s,width:u,middlewares:d,withArrow:c,arrowSize:f,arrowOffset:h,arrowRadius:y,arrowPosition:v,unstyled:C,classNames:g,styles:p,closeOnClickOutside:m,withinPortal:S,portalProps:_,closeOnEscape:w,clickOutsideEvents:$,trapFocus:N,onClose:M,onOpen:L,onChange:H,zIndex:V,radius:Y,shadow:F,id:ee,defaultOpened:oe,__staticSelector:B,withRoles:j,disabled:I,returnFocus:O,variant:X,keepMounted:te,vars:Le,floatingStrategy:ye,...Fe}=t,Pe=he({name:B,props:t,classes:ty,classNames:g,styles:p,unstyled:C,rootSelector:"dropdown",vars:Le,varsResolver:OC}),ct=x.useRef(null),[Xt,Wn]=x.useState(null),[go,yo]=x.useState(null),{dir:je}=Ig(),Nt=Nc(ee),Me=DC({middlewares:d,width:u,position:EC(je,r),offset:typeof o=="number"?o+(c?f/2:0):o,arrowRef:ct,arrowOffset:h,onPositionChange:i,positionDependencies:l,opened:a,defaultOpened:oe,onChange:H,onOpen:L,onClose:M,strategy:ye});zw(()=>m&&Me.onClose(),$,[Xt,go]);const vo=x.useCallback(Gn=>{Wn(Gn),Me.floating.refs.setReference(Gn)},[Me.floating.refs.setReference]),$t=x.useCallback(Gn=>{yo(Gn),Me.floating.refs.setFloating(Gn)},[Me.floating.refs.setFloating]);return k.jsx(_C,{value:{returnFocus:O,disabled:I,controlled:Me.controlled,reference:vo,floating:$t,x:Me.floating.x,y:Me.floating.y,arrowX:(Vn=(wr=(vr=Me.floating)==null?void 0:vr.middlewareData)==null?void 0:wr.arrow)==null?void 0:Vn.x,arrowY:(ji=(Li=(wo=Me.floating)==null?void 0:wo.middlewareData)==null?void 0:Li.arrow)==null?void 0:ji.y,opened:Me.opened,arrowRef:ct,transitionProps:s,width:u,withArrow:c,arrowSize:f,arrowOffset:h,arrowRadius:y,arrowPosition:v,placement:Me.floating.placement,trapFocus:N,withinPortal:S,portalProps:_,zIndex:V,radius:Y,shadow:F,closeOnEscape:w,onClose:Me.onClose,onToggle:Me.onToggle,getTargetId:()=>`${Nt}-target`,getDropdownId:()=>`${Nt}-dropdown`,withRoles:j,targetProps:Fe,__staticSelector:B,classNames:g,styles:p,unstyled:C,variant:X,keepMounted:te,getStyles:Pe,floatingStrategy:ye},children:n})}ir.Target=ny;ir.Dropdown=Qc;ir.displayName="@mantine/core/Popover";ir.extend=e=>e;var zt={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const FC=x.forwardRef(({className:e,...t},n)=>k.jsxs(J,{component:"span",className:hn(zt.barsLoader,e),...t,ref:n,children:[k.jsx("span",{className:zt.bar}),k.jsx("span",{className:zt.bar}),k.jsx("span",{className:zt.bar})]})),AC=x.forwardRef(({className:e,...t},n)=>k.jsxs(J,{component:"span",className:hn(zt.dotsLoader,e),...t,ref:n,children:[k.jsx("span",{className:zt.dot}),k.jsx("span",{className:zt.dot}),k.jsx("span",{className:zt.dot})]})),BC=x.forwardRef(({className:e,...t},n)=>k.jsx(J,{component:"span",className:hn(zt.ovalLoader,e),...t,ref:n})),ry={bars:FC,oval:BC,dots:AC},UC={loaders:ry,type:"oval"},HC=(e,{size:t,color:n})=>({root:{"--loader-size":Xe(t,"loader-size"),"--loader-color":n?cn(n,e):void 0}}),$i=ke((e,t)=>{const n=ne("Loader",UC,e),{size:r,color:o,type:i,vars:l,className:a,style:s,classNames:u,styles:d,unstyled:c,loaders:f,variant:h,children:y,...v}=n,C=he({name:"Loader",props:n,classes:zt,className:a,style:s,classNames:u,styles:d,unstyled:c,vars:l,varsResolver:HC});return y?k.jsx(J,{...C("root"),ref:t,...v,children:y}):k.jsx(J,{...C("root"),ref:t,component:f[i],variant:h,size:r,...v})});$i.defaultLoaders=ry;$i.classes=zt;$i.displayName="@mantine/core/Loader";var _a={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Sp={orientation:"horizontal"},WC=(e,{borderWidth:t})=>({group:{"--ai-border-width":b(t)}}),Yc=ke((e,t)=>{const n=ne("ActionIconGroup",Sp,e),{className:r,style:o,classNames:i,styles:l,unstyled:a,orientation:s,vars:u,borderWidth:d,variant:c,mod:f,...h}=ne("ActionIconGroup",Sp,e),y=he({name:"ActionIconGroup",props:n,classes:_a,className:r,style:o,classNames:i,styles:l,unstyled:a,vars:u,varsResolver:WC,rootSelector:"group"});return k.jsx(J,{...y("group"),ref:t,variant:c,mod:[{"data-orientation":s},f],role:"group",...h})});Yc.classes=_a;Yc.displayName="@mantine/core/ActionIconGroup";const VC={},GC=(e,{size:t,radius:n,variant:r,gradient:o,color:i,autoContrast:l})=>{const a=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:l});return{root:{"--ai-size":Xe(t,"ai-size"),"--ai-radius":n===void 0?void 0:Hn(n),"--ai-bg":i||r?a.background:void 0,"--ai-hover":i||r?a.hover:void 0,"--ai-hover-color":i||r?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":i||r?a.border:void 0}}},Pa=yr((e,t)=>{const n=ne("ActionIcon",VC,e),{className:r,unstyled:o,variant:i,classNames:l,styles:a,style:s,loading:u,loaderProps:d,size:c,color:f,radius:h,__staticSelector:y,gradient:v,vars:C,children:g,disabled:p,"data-disabled":m,autoContrast:S,mod:_,...w}=n,$=he({name:["ActionIcon",y],props:n,className:r,style:s,classes:_a,classNames:l,styles:a,unstyled:o,vars:C,varsResolver:GC});return k.jsxs(fo,{...$("root",{active:!p&&!u&&!m}),...w,unstyled:o,variant:i,size:c,disabled:p||u,ref:t,mod:[{loading:u,disabled:p||m},_],children:[k.jsx(Ra,{mounted:!!u,transition:"slide-down",duration:150,children:N=>k.jsx(J,{component:"span",...$("loader",{style:N}),"aria-hidden":!0,children:k.jsx($i,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),k.jsx(J,{component:"span",mod:{loading:u},...$("icon"),children:g})]})});Pa.classes=_a;Pa.displayName="@mantine/core/ActionIcon";Pa.Group=Yc;function QC(e){return x.Children.toArray(e).filter(Boolean)}var oy={root:"m_4081bf90"};const YC={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},KC=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:i,wrap:l},{childWidth:a})=>({root:{"--group-child-width":t&&n?a:void 0,"--group-gap":Xl(r),"--group-align":o,"--group-justify":i,"--group-wrap":l}}),Yr=ke((e,t)=>{const n=ne("Group",YC,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,children:s,gap:u,align:d,justify:c,wrap:f,grow:h,preventGrowOverflow:y,vars:v,variant:C,__size:g,mod:p,...m}=n,S=QC(s),_=S.length,w=Xl(u??"md"),N={childWidth:`calc(${100/_}% - (${w} - ${w} / ${_}))`},M=he({name:"Group",props:n,stylesCtx:N,className:o,style:i,classes:oy,classNames:r,styles:l,unstyled:a,vars:v,varsResolver:KC});return k.jsx(J,{...M("root"),ref:t,variant:C,mod:[{grow:h},p],size:g,...m,children:S})});Yr.classes=oy;Yr.displayName="@mantine/core/Group";const[XC,Ti]=gg({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Pt={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const Cp={},ZC=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Ot(t)} - ${b(2)})`}}),Na=ke((e,t)=>{const n=ne("InputDescription",Cp,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,size:u,__staticSelector:d,__inheritStyles:c=!0,variant:f,...h}=ne("InputDescription",Cp,n),y=Ti(),v=he({name:["InputWrapper",d],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:a,rootSelector:"description",vars:s,varsResolver:ZC}),C=c&&(y==null?void 0:y.getStyles)||v;return k.jsx(J,{component:"p",ref:t,variant:f,size:u,...C("description",y!=null&&y.getStyles?{className:o,style:i}:void 0),...h})});Na.classes=Pt;Na.displayName="@mantine/core/InputDescription";const JC={},qC=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Ot(t)} - ${b(2)})`}}),$a=ke((e,t)=>{const n=ne("InputError",JC,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,size:u,__staticSelector:d,__inheritStyles:c=!0,variant:f,...h}=n,y=he({name:["InputWrapper",d],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:a,rootSelector:"error",vars:s,varsResolver:qC}),v=Ti(),C=c&&(v==null?void 0:v.getStyles)||y;return k.jsx(J,{component:"p",ref:t,variant:f,size:u,...C("error",v!=null&&v.getStyles?{className:o,style:i}:void 0),...h})});$a.classes=Pt;$a.displayName="@mantine/core/InputError";const Ep={labelElement:"label"},eE=(e,{size:t})=>({label:{"--input-label-size":Ot(t),"--input-asterisk-color":void 0}}),Ta=ke((e,t)=>{const n=ne("InputLabel",Ep,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,labelElement:u,size:d,required:c,htmlFor:f,onMouseDown:h,children:y,__staticSelector:v,variant:C,mod:g,...p}=ne("InputLabel",Ep,n),m=he({name:["InputWrapper",v],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:a,rootSelector:"label",vars:s,varsResolver:eE}),S=Ti(),_=(S==null?void 0:S.getStyles)||m;return k.jsxs(J,{..._("label",S!=null&&S.getStyles?{className:o,style:i}:void 0),component:u,variant:C,size:d,ref:t,htmlFor:u==="label"?f:void 0,mod:[{required:c},g],onMouseDown:w=>{h==null||h(w),!w.defaultPrevented&&w.detail>1&&w.preventDefault()},...p,children:[y,c&&k.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});Ta.classes=Pt;Ta.displayName="@mantine/core/InputLabel";const kp={},Kc=ke((e,t)=>{const n=ne("InputPlaceholder",kp,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,__staticSelector:u,variant:d,error:c,mod:f,...h}=ne("InputPlaceholder",kp,n),y=he({name:["InputPlaceholder",u],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:a,rootSelector:"placeholder"});return k.jsx(J,{...y("placeholder"),mod:[{error:!!c},f],component:"span",variant:d,ref:t,...h})});Kc.classes=Pt;Kc.displayName="@mantine/core/InputPlaceholder";function tE(e,{hasDescription:t,hasError:n}){const r=e.findIndex(s=>s==="input"),o=e.slice(0,r),i=e.slice(r+1),l=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&i.includes("description")||n&&i.includes("error"),offsetTop:l}}const nE={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},rE=(e,{size:t})=>({label:{"--input-label-size":Ot(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Ot(t)} - ${b(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Ot(t)} - ${b(2)})`}}),Xc=ke((e,t)=>{const n=ne("InputWrapper",nE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,size:u,variant:d,__staticSelector:c,inputContainer:f,inputWrapperOrder:h,label:y,error:v,description:C,labelProps:g,descriptionProps:p,errorProps:m,labelElement:S,children:_,withAsterisk:w,id:$,required:N,__stylesApiProps:M,mod:L,...H}=n,V=he({name:["InputWrapper",c],props:M||n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:rE}),Y={size:u,variant:d,__staticSelector:c},F=Nc($),ee=typeof w=="boolean"?w:N,oe=(m==null?void 0:m.id)||`${F}-error`,B=(p==null?void 0:p.id)||`${F}-description`,j=F,I=!!v&&typeof v!="boolean",O=!!C,X=`${I?oe:""} ${O?B:""}`,te=X.trim().length>0?X.trim():void 0,Le=(g==null?void 0:g.id)||`${F}-label`,ye=y&&k.jsx(Ta,{labelElement:S,id:Le,htmlFor:j,required:ee,...Y,...g,children:y},"label"),Fe=O&&k.jsx(Na,{...p,...Y,size:(p==null?void 0:p.size)||Y.size,id:(p==null?void 0:p.id)||B,children:C},"description"),Pe=k.jsx(x.Fragment,{children:f(_)},"input"),ct=I&&x.createElement($a,{...m,...Y,size:(m==null?void 0:m.size)||Y.size,key:"error",id:(m==null?void 0:m.id)||oe},v),Xt=h.map(Wn=>{switch(Wn){case"label":return ye;case"input":return Pe;case"description":return Fe;case"error":return ct;default:return null}});return k.jsx(XC,{value:{getStyles:V,describedBy:te,inputId:j,labelId:Le,...tE(h,{hasDescription:O,hasError:I})},children:k.jsx(J,{ref:t,variant:d,size:u,mod:[{error:!!v},L],...V("root"),...H,children:Xt})})});Xc.classes=Pt;Xc.displayName="@mantine/core/InputWrapper";const oE={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},iE=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Xe(t.size,"input-height"),"--input-fz":Ot(t.size),"--input-radius":t.radius===void 0?void 0:Hn(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?b(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?b(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Xe(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),nt=yr((e,t)=>{const n=ne("Input",oE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,required:s,__staticSelector:u,__stylesApiProps:d,size:c,wrapperProps:f,error:h,disabled:y,leftSection:v,leftSectionProps:C,leftSectionWidth:g,rightSection:p,rightSectionProps:m,rightSectionWidth:S,rightSectionPointerEvents:_,leftSectionPointerEvents:w,variant:$,vars:N,pointer:M,multiline:L,radius:H,id:V,withAria:Y,withErrorStyles:F,mod:ee,inputSize:oe,...B}=n,{styleProps:j,rest:I}=Sa(B),O=Ti(),X={offsetBottom:O==null?void 0:O.offsetBottom,offsetTop:O==null?void 0:O.offsetTop},te=he({name:["Input",u],props:d||n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:a,stylesCtx:X,rootSelector:"wrapper",vars:N,varsResolver:iE}),Le=Y?{required:s,disabled:y,"aria-invalid":!!h,"aria-describedby":O==null?void 0:O.describedBy,id:(O==null?void 0:O.inputId)||V}:{};return k.jsxs(J,{...te("wrapper"),...j,...f,mod:[{error:!!h&&F,pointer:M,disabled:y,multiline:L,"data-with-right-section":!!p,"data-with-left-section":!!v},ee],variant:$,size:c,children:[v&&k.jsx("div",{...C,"data-position":"left",...te("section",{className:C==null?void 0:C.className,style:C==null?void 0:C.style}),children:v}),k.jsx(J,{component:"input",...I,...Le,ref:t,required:s,mod:{disabled:y,error:!!h&&F},variant:$,__size:oe,...te("input")}),p&&k.jsx("div",{...m,"data-position":"right",...te("section",{className:m==null?void 0:m.className,style:m==null?void 0:m.style}),children:p})]})});nt.classes=Pt;nt.Wrapper=Xc;nt.Label=Ta;nt.Error=$a;nt.Description=Na;nt.Placeholder=Kc;nt.displayName="@mantine/core/Input";function lE(e,t,n){const r=ne(e,t,n),{label:o,description:i,error:l,required:a,classNames:s,styles:u,className:d,unstyled:c,__staticSelector:f,__stylesApiProps:h,errorProps:y,labelProps:v,descriptionProps:C,wrapperProps:g,id:p,size:m,style:S,inputContainer:_,inputWrapperOrder:w,withAsterisk:$,variant:N,vars:M,mod:L,...H}=r,{styleProps:V,rest:Y}=Sa(H),F={label:o,description:i,error:l,required:a,classNames:s,className:d,__staticSelector:f,__stylesApiProps:h||r,errorProps:y,labelProps:v,descriptionProps:C,unstyled:c,styles:u,size:m,style:S,inputContainer:_,inputWrapperOrder:w,withAsterisk:$,variant:N,id:p,mod:L,...g};return{...Y,classNames:s,styles:u,unstyled:c,wrapperProps:{...F,...V},inputProps:{required:a,classNames:s,styles:u,unstyled:c,size:m,__staticSelector:f,__stylesApiProps:h||r,error:l,variant:N,id:p}}}const aE={__staticSelector:"InputBase",withAria:!0},ba=yr((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=lE("InputBase",aE,e);return k.jsx(nt.Wrapper,{...r,children:k.jsx(nt,{...n,...o,ref:t})})});ba.classes={...nt.classes,...nt.Wrapper.classes};ba.displayName="@mantine/core/InputBase";const sE={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var iy={root:"m_8bffd616"};const uE={},bi=yr((e,t)=>{const n=ne("Flex",uE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,gap:u,rowGap:d,columnGap:c,align:f,justify:h,wrap:y,direction:v,...C}=n,g=he({name:"Flex",classes:iy,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s}),p=Kt(),m=Ca(),S=Lg({styleProps:{gap:u,rowGap:d,columnGap:c,align:f,justify:h,wrap:y,direction:v},theme:p,data:sE});return k.jsxs(k.Fragment,{children:[S.hasResponsiveStyles&&k.jsx(xa,{selector:`.${m}`,styles:S.styles,media:S.media}),k.jsx(J,{ref:t,...g("root",{className:m,style:co(S.inlineStyles)}),...C})]})});bi.classes=iy;bi.displayName="@mantine/core/Flex";var ly={root:"m_b6d8b162"};function cE(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const fE={inherit:!1},dE=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:i})=>({root:{"--text-fz":Ot(o),"--text-lh":Lw(o),"--text-gradient":t==="gradient"?xu(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?cn(i,e):void 0}}),wi=yr((e,t)=>{const n=ne("Text",fE,e),{lineClamp:r,truncate:o,inline:i,inherit:l,gradient:a,span:s,__staticSelector:u,vars:d,className:c,style:f,classNames:h,styles:y,unstyled:v,variant:C,mod:g,size:p,...m}=n,S=he({name:["Text",u],props:n,classes:ly,className:c,style:f,classNames:h,styles:y,unstyled:v,vars:d,varsResolver:dE});return k.jsx(J,{...S("root",{focusable:!0}),ref:t,component:s?"span":"p",variant:C,mod:[{"data-truncate":cE(o),"data-line-clamp":typeof r=="number","data-inline":i,"data-inherit":l},g],size:p,...m})});wi.classes=ly;wi.displayName="@mantine/core/Text";var ay={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const pE=ay,sy=x.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:o,unstyled:i,children:l,label:a,description:s,id:u,disabled:d,error:c,size:f,labelPosition:h="left",bodyElement:y="div",labelElement:v="label",variant:C,style:g,vars:p,mod:m,...S},_)=>{const w=he({name:e,props:t,className:n,style:g,classes:ay,classNames:r,styles:o,unstyled:i});return k.jsx(J,{...w("root"),ref:_,__vars:{"--label-fz":Ot(f),"--label-lh":Xe(f,"label-lh")},mod:[{"label-position":h},m],variant:C,size:f,...S,children:k.jsxs(J,{component:y,htmlFor:y==="label"?u:void 0,...w("body"),children:[l,k.jsxs("div",{...w("labelWrapper"),"data-disabled":d||void 0,children:[a&&k.jsx(J,{component:v,htmlFor:v==="label"?u:void 0,...w("label"),"data-disabled":d||void 0,children:a}),s&&k.jsx(nt.Description,{size:f,__inheritStyles:!1,...w("description"),children:s}),c&&typeof c!="boolean"&&k.jsx(nt.Error,{size:f,__inheritStyles:!1,...w("error"),children:c})]})]})})});sy.displayName="@mantine/core/InlineInput";const uy=x.createContext(null),hE=uy.Provider,cy=()=>x.useContext(uy),[mE,gE]=gg();var fy={card:"m_26775b0a"};const yE={withBorder:!0},vE=(e,{radius:t})=>({card:{"--card-radius":Hn(t)}}),Zc=ke((e,t)=>{const n=ne("CheckboxCard",yE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,checked:u,mod:d,withBorder:c,value:f,onClick:h,...y}=n,v=he({name:"CheckboxCard",classes:fy,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:vE,rootSelector:"card"}),C=cy(),g=typeof u=="boolean"?u:(C==null?void 0:C.value.includes(f||""))||!1;return k.jsx(mE,{value:{checked:g},children:k.jsx(fo,{ref:t,mod:[{"with-border":c,checked:g},d],...v("card"),...y,role:"checkbox","aria-checked":g,onClick:p=>{h==null||h(p),C==null||C.onChange(f||"")}})})});Zc.displayName="@mantine/core/CheckboxCard";Zc.classes=fy;function wE({children:e,role:t}){const n=Ti();return n?k.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):k.jsx(k.Fragment,{children:e})}const xE={},Jc=ke((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:i,wrapperProps:l,children:a,readOnly:s,...u}=ne("CheckboxGroup",xE,e),[d,c]=Eg({value:n,defaultValue:r,finalValue:[],onChange:o}),f=h=>{const y=typeof h=="string"?h:h.currentTarget.value;!s&&c(d.includes(y)?d.filter(v=>v!==y):[...d,y])};return k.jsx(hE,{value:{value:d,onChange:f,size:i},children:k.jsx(nt.Wrapper,{size:i,ref:t,...l,...u,labelElement:"div",__staticSelector:"CheckboxGroup",children:k.jsx(wE,{role:"group",children:a})})})});Jc.classes=nt.Wrapper.classes;Jc.displayName="@mantine/core/CheckboxGroup";function SE({size:e,style:t,...n}){const r=e!==void 0?{width:b(e),height:b(e),...t}:t;return k.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:k.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function dy({indeterminate:e,...t}){return e?k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:k.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):k.jsx(SE,{...t})}var py={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const CE={icon:dy},EE=(e,{radius:t,color:n,size:r,iconColor:o,variant:i,autoContrast:l})=>{const a=gr({color:n||e.primaryColor,theme:e}),s=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{indicator:{"--checkbox-size":Xe(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:Hn(t),"--checkbox-color":i==="outline"?s:cn(n,e),"--checkbox-icon-color":o?cn(o,e):bg(l,e)?zc({color:n,theme:e,autoContrast:l}):void 0}}},qc=ke((e,t)=>{const n=ne("CheckboxIndicator",CE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,icon:u,indeterminate:d,radius:c,color:f,iconColor:h,autoContrast:y,checked:v,mod:C,variant:g,disabled:p,...m}=n,S=u,_=he({name:"CheckboxIndicator",classes:py,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:EE,rootSelector:"indicator"}),w=gE(),$=typeof v=="boolean"||typeof d=="boolean"?v||d:(w==null?void 0:w.checked)||!1;return k.jsx(J,{ref:t,..._("indicator",{variant:g}),variant:g,mod:[{checked:$,disabled:p},C],...m,children:k.jsx(S,{indeterminate:d,..._("icon")})})});qc.displayName="@mantine/core/CheckboxIndicator";qc.classes=py;var hy={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const kE={labelPosition:"right",icon:dy},RE=(e,{radius:t,color:n,size:r,iconColor:o,variant:i,autoContrast:l})=>{const a=gr({color:n||e.primaryColor,theme:e}),s=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{root:{"--checkbox-size":Xe(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:Hn(t),"--checkbox-color":i==="outline"?s:cn(n,e),"--checkbox-icon-color":o?cn(o,e):bg(l,e)?zc({color:n,theme:e,autoContrast:l}):void 0}}},mo=ke((e,t)=>{const n=ne("Checkbox",kE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,color:u,label:d,id:c,size:f,radius:h,wrapperProps:y,children:v,checked:C,labelPosition:g,description:p,error:m,disabled:S,variant:_,indeterminate:w,icon:$,rootRef:N,iconColor:M,onChange:L,autoContrast:H,mod:V,...Y}=n,F=cy(),ee=f||(F==null?void 0:F.size),oe=$,B=he({name:"Checkbox",props:n,classes:hy,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:RE}),{styleProps:j,rest:I}=Sa(Y),O=Nc(c),X=F?{checked:F.value.includes(I.value),onChange:te=>{F.onChange(te),L==null||L(te)}}:{};return k.jsx(sy,{...B("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:O,size:ee,labelPosition:g,label:d,description:p,error:m,disabled:S,classNames:r,styles:l,unstyled:a,"data-checked":X.checked||C||void 0,variant:_,ref:N,mod:V,...j,...y,children:k.jsxs(J,{...B("inner"),mod:{"data-label-position":g},children:[k.jsx(J,{component:"input",id:O,ref:t,checked:C,disabled:S,mod:{error:!!m,indeterminate:w},...B("input",{focusable:!0,variant:_}),onChange:L,...I,...X,type:"checkbox"}),k.jsx(oe,{indeterminate:w,...B("icon")})]})})});mo.classes={...hy,...pE};mo.displayName="@mantine/core/Checkbox";mo.Group=Jc;mo.Indicator=qc;mo.Card=Zc;var my={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const _E={},PE=(e,{color:t,size:n,lineSize:r,transitionDuration:o,transitionTimingFunction:i})=>({root:{"--burger-color":t?cn(t,e):void 0,"--burger-size":Xe(n,"burger-size"),"--burger-line-size":r?b(r):void 0,"--burger-transition-duration":o===void 0?void 0:`${o}ms`,"--burger-transition-timing-function":i}}),ef=ke((e,t)=>{const n=ne("Burger",_E,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,opened:u,children:d,transitionDuration:c,transitionTimingFunction:f,lineSize:h,...y}=n,v=he({name:"Burger",classes:my,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:PE});return k.jsxs(fo,{...v("root"),ref:t,...y,children:[k.jsx(J,{mod:["reduce-motion",{opened:u}],...v("burger")}),d]})});ef.classes=my;ef.displayName="@mantine/core/Burger";var La={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const Rp={orientation:"horizontal"},NE=(e,{borderWidth:t})=>({group:{"--button-border-width":b(t)}}),tf=ke((e,t)=>{const n=ne("ButtonGroup",Rp,e),{className:r,style:o,classNames:i,styles:l,unstyled:a,orientation:s,vars:u,borderWidth:d,variant:c,mod:f,...h}=ne("ButtonGroup",Rp,e),y=he({name:"ButtonGroup",props:n,classes:La,className:r,style:o,classNames:i,styles:l,unstyled:a,vars:u,varsResolver:NE,rootSelector:"group"});return k.jsx(J,{...y("group"),ref:t,variant:c,mod:[{"data-orientation":s},f],role:"group",...h})});tf.classes=La;tf.displayName="@mantine/core/ButtonGroup";const $E={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${b(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},TE={},bE=(e,{radius:t,color:n,gradient:r,variant:o,size:i,justify:l,autoContrast:a})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{root:{"--button-justify":l,"--button-height":Xe(i,"button-height"),"--button-padding-x":Xe(i,"button-padding-x"),"--button-fz":i!=null&&i.includes("compact")?Ot(i.replace("compact-","")):Ot(i),"--button-radius":t===void 0?void 0:Hn(t),"--button-bg":n||o?s.background:void 0,"--button-hover":n||o?s.hover:void 0,"--button-color":s.color,"--button-bd":n||o?s.border:void 0,"--button-hover-color":n||o?s.hoverColor:void 0}}},lo=yr((e,t)=>{const n=ne("Button",TE,e),{style:r,vars:o,className:i,color:l,disabled:a,children:s,leftSection:u,rightSection:d,fullWidth:c,variant:f,radius:h,loading:y,loaderProps:v,gradient:C,classNames:g,styles:p,unstyled:m,"data-disabled":S,autoContrast:_,mod:w,...$}=n,N=he({name:"Button",props:n,classes:La,className:i,style:r,classNames:g,styles:p,unstyled:m,vars:o,varsResolver:bE}),M=!!u,L=!!d;return k.jsxs(fo,{ref:t,...N("root",{active:!a&&!y&&!S}),unstyled:m,variant:f,disabled:a||y,mod:[{disabled:a||S,loading:y,block:c,"with-left-section":M,"with-right-section":L},w],...$,children:[k.jsx(Ra,{mounted:!!y,transition:$E,duration:150,children:H=>k.jsx(J,{component:"span",...N("loader",{style:H}),"aria-hidden":!0,children:k.jsx($i,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...v})})}),k.jsxs("span",{...N("inner"),children:[u&&k.jsx(J,{component:"span",...N("section"),mod:{position:"left"},children:u}),k.jsx(J,{component:"span",mod:{loading:y},...N("label"),children:s}),d&&k.jsx(J,{component:"span",...N("section"),mod:{position:"right"},children:d})]})]})});lo.classes=La;lo.displayName="@mantine/core/Button";lo.Group=tf;var gy={root:"m_7485cace"};const LE={},jE=(e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:Xe(t,"container-size")}}),nf=ke((e,t)=>{const n=ne("Container",LE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,fluid:u,mod:d,...c}=n,f=he({name:"Container",classes:gy,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:jE});return k.jsx(J,{ref:t,mod:[{fluid:u},d],...f("root"),...c})});nf.classes=gy;nf.displayName="@mantine/core/Container";const[ME,yy]=mg("Grid component was not found in tree"),Pu=(e,t)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(t/e)}%`:void 0,_p=(e,t,n)=>n||e==="auto"?"100%":e==="content"?"unset":Pu(e,t),Pp=(e,t)=>{if(e)return e==="auto"||t?"1":"auto"},Np=(e,t)=>e===0?"0":e?`${100/(t/e)}%`:void 0;function zE({span:e,order:t,offset:n,selector:r}){var f;const o=Kt(),i=yy(),a=Uo(e)===void 0?12:Uo(e),s=co({"--col-order":(f=Uo(t))==null?void 0:f.toString(),"--col-flex-grow":Pp(a,i.grow),"--col-flex-basis":Pu(a,i.columns),"--col-width":a==="content"?"auto":void 0,"--col-max-width":_p(a,i.columns,i.grow),"--col-offset":Np(Uo(n),i.columns)}),u=Ye(o.breakpoints).reduce((h,y)=>{var v;return h[y]||(h[y]={}),typeof t=="object"&&t[y]!==void 0&&(h[y]["--col-order"]=(v=t[y])==null?void 0:v.toString()),typeof e=="object"&&e[y]!==void 0&&(h[y]["--col-flex-grow"]=Pp(e[y],i.grow),h[y]["--col-flex-basis"]=Pu(e[y],i.columns),h[y]["--col-width"]=e[y]==="content"?"auto":void 0,h[y]["--col-max-width"]=_p(e[y],i.columns,i.grow)),typeof n=="object"&&n[y]!==void 0&&(h[y]["--col-offset"]=Np(n[y],i.columns)),h},{}),c=yg(Ye(u),o).filter(h=>Ye(u[h.value]).length>0).map(h=>({query:`(min-width: ${o.breakpoints[h.value]})`,styles:u[h.value]}));return k.jsx(xa,{styles:s,media:c,selector:r})}var rf={root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const DE={span:12},of=ke((e,t)=>{const n=ne("GridCol",DE,e),{classNames:r,className:o,style:i,styles:l,vars:a,span:s,order:u,offset:d,...c}=n,f=yy(),h=Ca();return k.jsxs(k.Fragment,{children:[k.jsx(zE,{selector:`.${h}`,span:s,order:u,offset:d}),k.jsx(J,{ref:t,...f.getStyles("col",{className:hn(o,h),style:i,classNames:r,styles:l}),...c})]})});of.classes=rf;of.displayName="@mantine/core/GridCol";function IE({gutter:e,selector:t}){const n=Kt(),r=co({"--grid-gutter":Xl(Uo(e))}),o=Ye(n.breakpoints).reduce((a,s)=>(a[s]||(a[s]={}),typeof e=="object"&&e[s]!==void 0&&(a[s]["--grid-gutter"]=Xl(e[s])),a),{}),l=yg(Ye(o),n).filter(a=>Ye(o[a.value]).length>0).map(a=>({query:`(min-width: ${n.breakpoints[a.value]})`,styles:o[a.value]}));return k.jsx(xa,{styles:r,media:l,selector:t})}const OE={gutter:"md",grow:!1,columns:12},FE=(e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}}),dr=ke((e,t)=>{const n=ne("Grid",OE,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,grow:u,gutter:d,columns:c,align:f,justify:h,children:y,...v}=n,C=he({name:"Grid",classes:rf,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:FE}),g=Ca();return k.jsxs(ME,{value:{getStyles:C,grow:u,columns:c},children:[k.jsx(IE,{selector:`.${g}`,...n}),k.jsx(J,{ref:t,...C("root",{className:g}),...v,children:k.jsx("div",{...C("inner"),children:y})})]})});dr.classes=rf;dr.displayName="@mantine/core/Grid";dr.Col=of;function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{autosize:n,maxRows:r,minRows:o,__staticSelector:i,resize:l,...a}=ne("Textarea",nk,e),s=n&&rx()!=="test",u=s?{maxRows:r,minRows:o}:{};return k.jsx(ba,{component:s?tk:"textarea",ref:t,...a,__staticSelector:i||"Textarea",multiline:!0,"data-no-overflow":n&&r===void 0||void 0,__vars:{"--input-resize":l},...u})});lf.classes=ba.classes;lf.displayName="@mantine/core/Textarea";var wy={root:"m_18320242","skeleton-fade":"m_299c329c"};const rk={visible:!0,animate:!0},ok=(e,{width:t,height:n,radius:r,circle:o})=>({root:{"--skeleton-height":b(n),"--skeleton-width":b(o?n:t),"--skeleton-radius":o?"1000px":r===void 0?void 0:Hn(r)}}),af=ke((e,t)=>{const n=ne("Skeleton",rk,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,vars:s,width:u,height:d,circle:c,visible:f,radius:h,animate:y,mod:v,...C}=n,g=he({name:"Skeleton",classes:wy,props:n,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:s,varsResolver:ok});return k.jsx(J,{ref:t,...g("root"),mod:[{visible:f,animate:y},v],...C})});af.classes=wy;af.displayName="@mantine/core/Skeleton";const ik=["h1","h2","h3","h4","h5","h6"];function lk(e,t){const n=t!==void 0?t:`h${e}`;return ik.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:{fontSize:b(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var xy={root:"m_8a5d1357"};const ak={order:1},sk=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const i=lk(t,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":o}}},ea=ke((e,t)=>{const n=ne("Title",ak,e),{classNames:r,className:o,style:i,styles:l,unstyled:a,order:s,vars:u,size:d,variant:c,lineClamp:f,textWrap:h,mod:y,...v}=n,C=he({name:"Title",props:n,classes:xy,className:o,style:i,classNames:r,styles:l,unstyled:a,vars:u,varsResolver:sk});return[1,2,3,4,5,6].includes(s)?k.jsx(J,{...C("root"),component:`h${s}`,variant:c,ref:t,mod:[{order:s,"data-line-clamp":typeof f=="number"},y],size:d,...v}):null});ea.classes=xy;ea.displayName="@mantine/core/Title";/** - * @license @tabler/icons-react v3.12.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var uk={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** - * @license @tabler/icons-react v3.12.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const ja=(e,t,n,r)=>{const o=x.forwardRef(({color:i="currentColor",size:l=24,stroke:a=2,title:s,className:u,children:d,...c},f)=>x.createElement("svg",{ref:f,...uk[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),strokeWidth:a,stroke:i,...c},[s&&x.createElement("title",{key:"svg-title"},s),...r.map(([h,y])=>x.createElement(h,y)),...Array.isArray(d)?d:[d]]));return o.displayName=`${n}`,o};/** - * @license @tabler/icons-react v3.12.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var ck=ja("outline","brand-github","IconBrandGithub",[["path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5",key:"svg-0"}]]);/** - * @license @tabler/icons-react v3.12.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var fk=ja("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/** - * @license @tabler/icons-react v3.12.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var dk=ja("outline","dots","IconDots",[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);/** - * @license @tabler/icons-react v3.12.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var pk=ja("outline","info-square-rounded","IconInfoSquareRounded",[["path",{d:"M12 9h.01",key:"svg-0"}],["path",{d:"M11 12h1v4h1",key:"svg-1"}],["path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9 -9 9s-9 -1.8 -9 -9s1.8 -9 9 -9z",key:"svg-2"}]]);const hk="_header_13ckm_1",mk="_inner_13ckm_14",gk="_link_13ckm_21",ul={header:hk,inner:mk,link:gk},yk=[{link:"/GeoSiteList/about/",label:"About",icon:pk},{link:"https://github.com/actusnileh/GeoSiteList",label:"GitHub",icon:ck}];function Sy(){const[e,{toggle:t}]=tx(!1),n=yk.map(r=>{const o=r.icon;return k.jsx("a",{href:r.link,className:ul.link,target:r.link=="/GeoSiteList/about/"?"":"_blank",children:k.jsxs(bi,{align:"center",gap:5,children:[k.jsx(o,{}),r.label]})},r.label)});return k.jsx("header",{className:ul.header,children:k.jsxs("div",{className:ul.inner,children:[k.jsxs(Yr,{children:[k.jsx(ef,{opened:e,onClick:t,size:"sm",hiddenFrom:"sm"}),k.jsx(ea,{style:{cursor:"pointer"},order:3,onClick:()=>window.location.href="/GeoSiteList/",children:"GeoSiteList"}),k.jsx(ea,{order:6,children:"v0.1"})]}),k.jsx(Yr,{children:k.jsx(Yr,{ml:50,gap:5,className:ul.links,visibleFrom:"sm",children:n})})]})})}const vk=({data:e,onCheckboxChange:t,selectedKeys:n})=>k.jsx(dr,{grow:!0,gutter:"xs",m:20,mt:0,children:Object.keys(e).map(r=>k.jsx(dr.Col,{span:3,children:k.jsx(J,{p:"md",style:{backgroundColor:"#333333",color:"#ffffff",borderRadius:"15px"},children:k.jsxs(bi,{justify:"space-between",align:"center",children:[k.jsx(mo,{color:"darkgray",label:r,c:"white",size:"md",checked:n.has(r),onChange:o=>t(r,o.currentTarget.checked)}),k.jsxs(ir,{position:"bottom",offset:8,shadow:"md",closeOnClickOutside:!0,children:[k.jsx(ir.Target,{children:k.jsx(Pa,{variant:"default",children:k.jsx(dk,{size:24})})}),k.jsx(ir.Dropdown,{children:k.jsx(J,{children:e[r].map((o,i)=>k.jsx(wi,{size:"sm",c:"white",children:o},i))})})]})]})})},r))}),wk=x.memo(vk);function Cy(){const[e,t]=x.useState(!1),{scrollIntoView:n,targetRef:r}=ex({offset:0});return x.useEffect(()=>{const o=()=>{window.scrollY>300?t(!0):t(!1)};return window.addEventListener("scroll",o),()=>{window.removeEventListener("scroll",o)}},[]),k.jsxs(k.Fragment,{children:[e&&k.jsx(lo,{style:{position:"fixed",bottom:"16px",right:"16px",zIndex:1500,width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",padding:0},onClick:()=>n({alignment:"center"}),size:"lm",color:"darkgray",children:k.jsx(fk,{})}),k.jsx(J,{ref:r,style:{position:"absolute",top:0}})]})}const xk=({data:e})=>k.jsx(dr,{grow:!0,gutter:"xs",m:20,mt:80,children:k.jsx(dr.Col,{span:12,children:k.jsx(bi,{justify:"center",align:"center",direction:"column",style:{minHeight:"100%"},children:k.jsx(lf,{size:"md",value:e,placeholder:`Selected domains will be added here. -You can copy them and add them wherever needed.`,readOnly:!0,maxRows:4,minRows:4,autosize:!0,radius:"md",style:{width:"100%",maxWidth:"600px"}})})})}),Sk=async()=>{try{const t=await(await fetch("https://raw.githubusercontent.com/actusnileh/geoip-geosite-list/main/domains.json")).json();return console.log(t),t}catch(e){console.log(e)}},Ck=()=>{const[e,t]=x.useState({items:[]}),[n,r]=x.useState(!0),[o,i]=x.useState(null),[l,a]=x.useState(new Set);x.useEffect(()=>{(async()=>{try{const c=await Sk();c&&t(c)}catch(c){i("Error"),console.error(c)}finally{r(!1)}})()},[]);const s=x.useCallback((d,c)=>{a(f=>{const h=new Set(f);return c?h.add(d):h.delete(d),h})},[]),u=x.useMemo(()=>Array.from(l).map(d=>`geosite:${d}`).join(` -`),[l]);return k.jsxs(k.Fragment,{children:[k.jsx(Sy,{}),k.jsx(xk,{data:u}),k.jsx(af,{visible:n,height:"100vh",children:o?k.jsx("div",{children:o}):e&&k.jsx(wk,{data:e,onCheckboxChange:s,selectedKeys:l})}),k.jsx(Cy,{})]})},Ek="_wrapper_1u7kf_1",kk="_inner_1u7kf_11",Rk="_title_1u7kf_22",_k="_description_1u7kf_37",Pk="_controls_1u7kf_46",Nk="_control_1u7kf_46",Qn={wrapper:Ek,inner:kk,title:Rk,description:_k,controls:Pk,control:Nk};function $k(){return k.jsx("div",{className:Qn.wrapper,children:k.jsxs(nf,{size:700,className:Qn.inner,children:[k.jsxs("h1",{className:Qn.title,children:["A"," ",k.jsx(wi,{component:"span",c:"darkgray",inherit:!0,children:"user-friendly"})," ","GeoSite database"]}),k.jsx(wi,{className:Qn.description,c:"dimmed",children:"That lists domains concealed behind service names, allowing you to easily select and copy the domains you need"}),k.jsxs(Yr,{className:Qn.controls,children:[k.jsx(lo,{size:"xl",className:Qn.control,color:"gray",onClick:()=>window.location.href="/GeoSiteList/",children:"Main Page"}),k.jsx(lo,{size:"xl",className:Qn.control,color:"gray",children:"How to use?"})]})]})})}const Tk=()=>k.jsxs(k.Fragment,{children:[k.jsx(Sy,{}),k.jsx($k,{}),k.jsx(Cy,{})]}),bk=hw([{path:"/GeoSiteList/",element:k.jsx(Ck,{})},{path:"/GeoSiteList/about/",element:k.jsx(Tk,{})}]),Lk=()=>k.jsx(Tg,{defaultColorScheme:"dark",children:k.jsx(Ew,{router:bk})});Zm(document.getElementById("root")).render(k.jsx(x.StrictMode,{children:k.jsx(Lk,{})})); diff --git a/assets/index-FO8Kb1AW.js b/assets/index-FO8Kb1AW.js new file mode 100644 index 0000000..1f15d5e --- /dev/null +++ b/assets/index-FO8Kb1AW.js @@ -0,0 +1,107 @@ +function Dp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Op(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fp={exports:{}},ns={},Ap={exports:{}},re={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ei=Symbol.for("react.element"),jv=Symbol.for("react.portal"),Iv=Symbol.for("react.fragment"),Dv=Symbol.for("react.strict_mode"),Ov=Symbol.for("react.profiler"),Fv=Symbol.for("react.provider"),Av=Symbol.for("react.context"),Bv=Symbol.for("react.forward_ref"),Uv=Symbol.for("react.suspense"),Wv=Symbol.for("react.memo"),Hv=Symbol.for("react.lazy"),wd=Symbol.iterator;function Vv(e){return e===null||typeof e!="object"?null:(e=wd&&e[wd]||e["@@iterator"],typeof e=="function"?e:null)}var Bp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Up=Object.assign,Wp={};function lo(e,t,n){this.props=e,this.context=t,this.refs=Wp,this.updater=n||Bp}lo.prototype.isReactComponent={};lo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};lo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hp(){}Hp.prototype=lo.prototype;function $u(e,t,n){this.props=e,this.context=t,this.refs=Wp,this.updater=n||Bp}var Lu=$u.prototype=new Hp;Lu.constructor=$u;Up(Lu,lo.prototype);Lu.isPureReactComponent=!0;var xd=Array.isArray,Vp=Object.prototype.hasOwnProperty,Mu={current:null},Gp={key:!0,ref:!0,__self:!0,__source:!0};function Qp(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Vp.call(t,r)&&!Gp.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,te=M[X];if(0>>1;Xo(Fe,O))Peo(ct,Fe)?(M[X]=ct,M[Pe]=O,X=Pe):(M[X]=Fe,M[ve]=O,X=ve);else if(Peo(ct,O))M[X]=ct,M[Pe]=O,X=Pe;else break e}}return D}function o(M,D){var O=M.sortIndex-D.sortIndex;return O!==0?O:M.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],d=1,c=null,f=3,h=!1,v=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=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(M){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=M)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function S(M){if(y=!1,g(M),!v)if(n(a)!==null)v=!0,oe(_);else{var D=n(u);D!==null&&B(S,D.startTime-M)}}function _(M,D){v=!1,y&&(y=!1,m(b),b=-1),h=!0;var O=f;try{for(g(D),c=n(a);c!==null&&(!(c.expirationTime>D)||M&&!W());){var X=c.callback;if(typeof X=="function"){c.callback=null,f=c.priorityLevel;var te=X(c.expirationTime<=D);D=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(a)&&r(a),g(D)}else r(a);c=n(a)}if(c!==null)var Le=!0;else{var ve=n(u);ve!==null&&B(S,ve.startTime-D),Le=!1}return Le}finally{c=null,f=O,h=!1}}var w=!1,T=null,b=-1,z=5,L=-1;function W(){return!(e.unstable_now()-LM||125X?(M.sortIndex=O,t(u,M),n(a)===null&&M===n(u)&&(y?(m(b),b=-1):y=!0,B(S,O-X))):(M.sortIndex=te,t(a,M),v||h||(v=!0,oe(_))),M},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(M){var D=f;return function(){var O=f;f=D;try{return M.apply(this,arguments)}finally{f=O}}}})(eh);qp.exports=eh;var ny=qp.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ry=x,yt=ny;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ea=Object.prototype.hasOwnProperty,oy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cd={},Ed={};function iy(e){return Ea.call(Ed,e)?!0:Ea.call(Cd,e)?!1:oy.test(e)?Ed[e]=!0:(Cd[e]=!0,!1)}function ly(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sy(e,t,n,r){if(t===null||typeof t>"u"||ly(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ot(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new ot(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){We[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var ju=/[\-:]([a-z])/g;function Iu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ju,Iu);We[t]=new ot(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ju,Iu);We[t]=new ot(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ju,Iu);We[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Du(e,t,n,r){var o=We.hasOwnProperty(t)?We[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` +`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{As=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fo(e):""}function ay(e){switch(e.tag){case 5:return Fo(e.type);case 16:return Fo("Lazy");case 13:return Fo("Suspense");case 19:return Fo("SuspenseList");case 0:case 2:case 15:return e=Bs(e.type,!1),e;case 11:return e=Bs(e.type.render,!1),e;case 1:return e=Bs(e.type,!0),e;default:return""}}function Pa(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 br:return"Fragment";case Pr:return"Portal";case ka:return"Profiler";case Ou:return"StrictMode";case Ra:return"Suspense";case _a:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rh:return(e.displayName||"Context")+".Consumer";case nh:return(e._context.displayName||"Context")+".Provider";case Fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Au:return t=e.displayName||null,t!==null?t:Pa(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return Pa(e(t))}catch{}}return null}function uy(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 Pa(t);case 8:return t===Ou?"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 jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ih(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cy(e){var t=ih(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gi(e){e._valueTracker||(e._valueTracker=cy(e))}function lh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ih(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rl(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 ba(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(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 sh(e,t){t=t.checked,t!=null&&Du(e,"checked",t,!1)}function Ta(e,t){sh(e,t);var n=jn(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")?Na(e,t.type,n):t.hasOwnProperty("defaultValue")&&Na(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _d(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 Na(e,t,n){(t!=="number"||Rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ao=Array.isArray;function Ar(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vo={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},dy=["Webkit","ms","Moz","O"];Object.keys(Vo).forEach(function(e){dy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vo[t]=Vo[e]})});function dh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vo.hasOwnProperty(e)&&Vo[e]?(""+t).trim():t+"px"}function fh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=dh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var fy=Ee({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 Ma(e,t){if(t){if(fy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function za(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 ja=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ia=null,Br=null,Ur=null;function Td(e){if(e=_i(e)){if(typeof Ia!="function")throw Error(j(280));var t=e.stateNode;t&&(t=ss(t),Ia(e.stateNode,e.type,t))}}function ph(e){Br?Ur?Ur.push(e):Ur=[e]:Br=e}function hh(){if(Br){var e=Br,t=Ur;if(Ur=Br=null,Td(e),t)for(e=0;e>>=0,e===0?32:31-(Ey(e)/ky|0)|0}var Yi=64,Ki=4194304;function Bo(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 Tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Bo(s):(i&=l,i!==0&&(r=Bo(i)))}else l=n&~o,l!==0?r=Bo(l):i!==0&&(r=Bo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 ki(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function by(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=Qo),Od=" ",Fd=!1;function zh(e,t){switch(e){case"keyup":return n0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function o0(e,t){switch(e){case"compositionend":return jh(t);case"keypress":return t.which!==32?null:(Fd=!0,Od);case"textInput":return e=t.data,e===Od&&Fd?null:e;default:return null}}function i0(e,t){if(Tr)return e==="compositionend"||!Ku&&zh(e,t)?(e=Lh(),hl=Gu=Rn=null,Tr=!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=Wd(n)}}function Fh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ah(){for(var e=window,t=Rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rl(e.document)}return t}function Xu(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 h0(e){var t=Ah(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fh(n.ownerDocument.documentElement,n)){if(r!==null&&Xu(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Hd(n,i);var l=Hd(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Nr=null,Ua=null,Ko=null,Wa=!1;function Vd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wa||Nr==null||Nr!==Rl(r)||(r=Nr,"selectionStart"in r&&Xu(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}),Ko&&si(Ko,r)||(Ko=r,r=Ll(Ua,"onSelect"),0Mr||(e.current=Ka[Mr],Ka[Mr]=null,Mr--)}function pe(e,t){Mr++,Ka[Mr]=e.current,e.current=t}var In={},Ke=An(In),st=An(!1),sr=In;function Kr(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function at(e){return e=e.childContextTypes,e!=null}function zl(){ge(st),ge(Ke)}function Jd(e,t,n){if(Ke.current!==In)throw Error(j(168));pe(Ke,t),pe(st,n)}function Kh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,uy(e)||"Unknown",o));return Ee({},n,r)}function jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,sr=Ke.current,pe(Ke,e),pe(st,st.current),!0}function qd(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Kh(e,t,sr),r.__reactInternalMemoizedMergedChildContext=e,ge(st),ge(Ke),pe(Ke,e)):ge(st),pe(st,n)}var tn=null,as=!1,ta=!1;function Xh(e){tn===null?tn=[e]:tn.push(e)}function _0(e){as=!0,Xh(e)}function Bn(){if(!ta&&tn!==null){ta=!0;var e=0,t=ue;try{var n=tn;for(ue=1;e>=l,o-=l,nn=1<<32-It(t)+o|n<b?(z=T,T=null):z=T.sibling;var L=f(m,T,g[b],S);if(L===null){T===null&&(T=z);break}e&&T&&L.alternate===null&&t(m,T),p=i(L,p,b),w===null?_=L:w.sibling=L,w=L,T=z}if(b===g.length)return n(m,T),we&&Kn(m,b),_;if(T===null){for(;bb?(z=T,T=null):z=T.sibling;var W=f(m,T,L.value,S);if(W===null){T===null&&(T=z);break}e&&T&&W.alternate===null&&t(m,T),p=i(W,p,b),w===null?_=W:w.sibling=W,w=W,T=z}if(L.done)return n(m,T),we&&Kn(m,b),_;if(T===null){for(;!L.done;b++,L=g.next())L=c(m,L.value,S),L!==null&&(p=i(L,p,b),w===null?_=L:w.sibling=L,w=L);return we&&Kn(m,b),_}for(T=r(m,T);!L.done;b++,L=g.next())L=h(T,m,b,L.value,S),L!==null&&(e&&L.alternate!==null&&T.delete(L.key===null?b:L.key),p=i(L,p,b),w===null?_=L:w.sibling=L,w=L);return e&&T.forEach(function(V){return t(m,V)}),we&&Kn(m,b),_}function C(m,p,g,S){if(typeof g=="object"&&g!==null&&g.type===br&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Vi:e:{for(var _=g.key,w=p;w!==null;){if(w.key===_){if(_=g.type,_===br){if(w.tag===7){n(m,w.sibling),p=o(w,g.props.children),p.return=m,m=p;break e}}else if(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Sn&&nf(_)===w.type){n(m,w.sibling),p=o(w,g.props),p.ref=bo(m,w,g),p.return=m,m=p;break e}n(m,w);break}else t(m,w);w=w.sibling}g.type===br?(p=or(g.props.children,m.mode,S,g.key),p.return=m,m=p):(S=Cl(g.type,g.key,g.props,null,m.mode,S),S.ref=bo(m,p,g),S.return=m,m=S)}return l(m);case Pr:e:{for(w=g.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=ua(g,m.mode,S),p.return=m,m=p}return l(m);case Sn:return w=g._init,C(m,p,w(g._payload),S)}if(Ao(g))return v(m,p,g,S);if(Eo(g))return y(m,p,g,S);nl(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,g),p.return=m,m=p):(n(m,p),p=aa(g,m.mode,S),p.return=m,m=p),l(m)):n(m,p)}return C}var Zr=em(!0),tm=em(!1),Ol=An(null),Fl=null,Ir=null,ec=null;function tc(){ec=Ir=Fl=null}function nc(e){var t=Ol.current;ge(Ol),e._currentValue=t}function Ja(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 Hr(e,t){Fl=e,ec=Ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(ec!==e)if(e={context:e,memoizedValue:t,next:null},Ir===null){if(Fl===null)throw Error(j(308));Ir=e,Fl.dependencies={lanes:0,firstContext:e}}else Ir=Ir.next=e;return t}var qn=null;function rc(e){qn===null?qn=[e]:qn.push(e)}function nm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,rc(t)):(n.next=o.next,o.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 Cn=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rm(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,an(e,n)}return o=r.interleaved,o===null?(t.next=t,rc(r)):(t.next=o.next,o.next=t),r.interleaved=t,an(e,n)}function gl(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,Wu(e,n)}}function rf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Al(e,t,n,r){var o=e.updateQueue;Cn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==l&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;l=0,d=u=a=null,s=i;do{var f=s.lane,h=s.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(f=t,h=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){c=v.call(h,c,f);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(h,c,f):v,f==null)break e;c=Ee({},c,f);break e;case 2:Cn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=h,a=c):d=d.next=h,l|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);cr|=l,e.lanes=l,e.memoizedState=c}}function of(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ra.transition;ra.transition={};try{e(!1),t()}finally{ue=n,ra.transition=r}}function xm(){return _t().memoizedState}function N0(e,t,n){var r=Mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Sm(e))Cm(t,n);else if(n=nm(e,t,n,r),n!==null){var o=nt();Dt(n,e,r,o),Em(n,t,r)}}function $0(e,t,n){var r=Mn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sm(e))Cm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Ft(s,l)){var a=t.interleaved;a===null?(o.next=o,rc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=nm(e,t,o,r),n!==null&&(o=nt(),Dt(n,e,r,o),Em(n,t,r))}}function Sm(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Cm(e,t){Xo=Ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Em(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wu(e,n)}}var Wl={readContext:Rt,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useInsertionEffect:He,useLayoutEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useMutableSource:He,useSyncExternalStore:He,useId:He,unstable_isNewReconciler:!1},L0={readContext:Rt,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yl(4194308,4,mm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return yl(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ht();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=N0.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:lf,useDebugValue:fc,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=lf(!1),t=e[0];return e=T0.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,o=Ht();if(we){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Oe===null)throw Error(j(349));ur&30||sm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,sf(um.bind(null,r,i,e),[e]),r.flags|=2048,mi(9,am.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ht(),t=Oe.identifierPrefix;if(we){var n=rn,r=nn;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Vt]=t,e[ci]=r,Mm(e,t,!1,!1),t.stateNode=e;e:{switch(l=za(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oeo&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304)}else{if(!r)if(e=Bl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),To(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!we)return Ve(t),null}else 2*be()-i.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=Se.current,pe(Se,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ft&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function A0(e,t){switch(Ju(t),t.tag){case 1:return at(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jr(),ge(st),ge(Ke),sc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lc(t),null;case 13:if(ge(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(Se),null;case 4:return Jr(),null;case 10:return nc(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var ol=!1,Ge=!1,B0=typeof WeakSet=="function"?WeakSet:Set,U=null;function Dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function su(e,t,n){try{n()}catch(r){Re(e,t,r)}}var yf=!1;function U0(e,t){if(Ha=Nl,e=Ah(),Xu(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var h;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(h=c.firstChild)!==null;)f=c,c=h;for(;;){if(c===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++d===r&&(a=l),(h=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Va={focusedElem:e,selectionRange:n},Nl=!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,C=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:$t(t.type,y),C);m.__reactInternalSnapshotBeforeUpdate=p}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(j(163))}}catch(S){Re(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return v=yf,yf=!1,v}function Zo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&su(t,n,i)}o=o.next}while(o!==r)}}function ds(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 au(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 Im(e){var t=e.alternate;t!==null&&(e.alternate=null,Im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[ci],delete t[Ya],delete t[k0],delete t[R0])),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 Dm(e){return e.tag===5||e.tag===3||e.tag===4}function wf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dm(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 uu(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=Ml));else if(r!==4&&(e=e.child,e!==null))for(uu(e,t,n),e=e.sibling;e!==null;)uu(e,t,n),e=e.sibling}function cu(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(cu(e,t,n),e=e.sibling;e!==null;)cu(e,t,n),e=e.sibling}var Be=null,Lt=!1;function wn(e,t,n){for(n=n.child;n!==null;)Om(e,t,n),n=n.sibling}function Om(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(rs,n)}catch{}switch(n.tag){case 5:Ge||Dr(n,t);case 6:var r=Be,o=Lt;Be=null,wn(e,t,n),Be=r,Lt=o,Be!==null&&(Lt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Lt?(e=Be,n=n.stateNode,e.nodeType===8?ea(e.parentNode,n):e.nodeType===1&&ea(e,n),ii(e)):ea(Be,n.stateNode));break;case 4:r=Be,o=Lt,Be=n.stateNode.containerInfo,Lt=!0,wn(e,t,n),Be=r,Lt=o;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&su(n,t,l),o=o.next}while(o!==r)}wn(e,t,n);break;case 1:if(!Ge&&(Dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Re(n,t,s)}wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,wn(e,t,n),Ge=r):wn(e,t,n);break;default:wn(e,t,n)}}function xf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new B0),t.forEach(function(r){var o=Z0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*H0(r/1960))-r,10e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,Gl=0,le&6)throw Error(j(331));var o=le;for(le|=4,U=e.current;U!==null;){var i=U,l=i.child;if(U.flags&16){var s=i.deletions;if(s!==null){for(var a=0;abe()-gc?rr(e,0):mc|=n),ut(e,t)}function Gm(e,t){t===0&&(e.mode&1?(t=Ki,Ki<<=1,!(Ki&130023424)&&(Ki=4194304)):t=1);var n=nt();e=an(e,t),e!==null&&(ki(e,t,n),ut(e,n))}function X0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gm(e,n)}function Z0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),Gm(e,n)}var Qm;Qm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,O0(e,t,n);lt=!!(e.flags&131072)}else lt=!1,we&&t.flags&1048576&&Zh(t,Dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wl(e,t),e=t.pendingProps;var o=Kr(t,Ke.current);Hr(t,n),o=uc(null,t,r,e,o,n);var i=cc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(i=!0,jl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,oc(t),o.updater=cs,t.stateNode=o,o._reactInternals=t,eu(t,r,e,n),t=ru(null,t,r,!0,i,n)):(t.tag=0,we&&i&&Zu(t),et(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=q0(r),e=$t(r,e),o){case 0:t=nu(null,t,r,e,n);break e;case 1:t=mf(null,t,r,e,n);break e;case 11:t=pf(null,t,r,e,n);break e;case 14:t=hf(null,t,r,$t(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$t(r,o),nu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$t(r,o),mf(e,t,r,o,n);case 3:e:{if(Nm(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,rm(e,t),Al(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qr(Error(j(423)),t),t=gf(e,t,r,n,o);break e}else if(r!==o){o=qr(Error(j(424)),t),t=gf(e,t,r,n,o);break e}else for(ht=Nn(t.stateNode.containerInfo.firstChild),gt=t,we=!0,zt=null,n=tm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xr(),r===o){t=un(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return om(t),e===null&&Za(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ga(r,o)?l=null:i!==null&&Ga(r,i)&&(t.flags|=32),Tm(e,t),et(e,t,l,n),t.child;case 6:return e===null&&Za(t),null;case 13:return $m(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$t(r,o),pf(e,t,r,o,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,pe(Ol,r._currentValue),r._currentValue=l,i!==null)if(Ft(i.value,l)){if(i.children===o.children&&!st.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=on(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ja(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(j(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ja(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}et(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Hr(t,n),o=Rt(o),r=r(o),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,o=$t(r,t.pendingProps),o=$t(r.type,o),hf(e,t,r,o,n);case 15:return Pm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$t(r,o),wl(e,t),t.tag=1,at(r)?(e=!0,jl(t)):e=!1,Hr(t,n),km(t,r,o),eu(t,r,o,n),ru(null,t,r,!0,e,n);case 19:return Lm(e,t,n);case 22:return bm(e,t,n)}throw Error(j(156,t.tag))};function Ym(e,t){return Sh(e,t)}function J0(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 Et(e,t,n,r){return new J0(e,t,n,r)}function xc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function q0(e){if(typeof e=="function")return xc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fu)return 11;if(e===Au)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=Et(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 Cl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")xc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case br:return or(n.children,o,i,t);case Ou:l=8,o|=8;break;case ka:return e=Et(12,n,t,o|2),e.elementType=ka,e.lanes=i,e;case Ra:return e=Et(13,n,t,o),e.elementType=Ra,e.lanes=i,e;case _a:return e=Et(19,n,t,o),e.elementType=_a,e.lanes=i,e;case oh:return ps(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nh:l=10;break e;case rh:l=9;break e;case Fu:l=11;break e;case Au:l=14;break e;case Sn:l=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Et(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function or(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function ps(e,t,n,r){return e=Et(22,e,r,t),e.elementType=oh,e.lanes=n,e.stateNode={isHidden:!1},e}function aa(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function ua(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e1(e,t,n,r,o){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=Ws(0),this.expirationTimes=Ws(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ws(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sc(e,t,n,r,o,i,l,s,a){return e=new e1(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oc(i),e}function t1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jm)}catch(e){console.error(e)}}Jm(),Jp.exports=wt;var uo=Jp.exports;const qm=Op(uo),l1=Dp({__proto__:null,default:qm},[uo]);var eg,bf=uo;eg=bf.createRoot,bf.hydrateRoot;/** + * @remix-run/router v1.19.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function to(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function a1(){return Math.random().toString(36).substr(2,8)}function Nf(e,t){return{usr:e.state,key:e.key,idx:t}}function vi(e,t,n,r){return n===void 0&&(n=null),xe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Un(t):t,{state:n,key:t&&t.key||r||a1()})}function bi(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 Un(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 u1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=Ne.Pop,a=null,u=d();u==null&&(u=0,l.replaceState(xe({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function c(){s=Ne.Pop;let C=d(),m=C==null?null:C-u;u=C,a&&a({action:s,location:y.location,delta:m})}function f(C,m){s=Ne.Push;let p=vi(y.location,C,m);u=d()+1;let g=Nf(p,u),S=y.createHref(p);try{l.pushState(g,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(S)}i&&a&&a({action:s,location:y.location,delta:1})}function h(C,m){s=Ne.Replace;let p=vi(y.location,C,m);u=d();let g=Nf(p,u),S=y.createHref(p);l.replaceState(g,"",S),i&&a&&a({action:s,location:y.location,delta:0})}function v(C){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:bi(C);return p=p.replace(/ $/,"%20"),ie(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let y={get action(){return s},get location(){return e(o,l)},listen(C){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Tf,c),a=C,()=>{o.removeEventListener(Tf,c),a=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let m=v(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(C){return l.go(C)}};return y}var de;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(de||(de={}));const c1=new Set(["lazy","caseSensitive","path","id","index","children"]);function d1(e){return e.index===!0}function yi(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,String(i)],s=typeof o.id=="string"?o.id:l.join("-");if(ie(o.index!==!0||!o.children,"Cannot specify children on an index route"),ie(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),d1(o)){let a=xe({},o,t(o),{id:s});return r[s]=a,a}else{let a=xe({},o,t(o),{id:s,children:void 0});return r[s]=a,o.children&&(a.children=yi(o.children,t,l,r)),a}})}function Zn(e,t,n){return n===void 0&&(n="/"),El(e,t,n,!1)}function El(e,t,n,r){let o=typeof t=="string"?Un(t):t,i=Ti(o.pathname||"/",n);if(i==null)return null;let l=tg(e);p1(l);let s=null;for(let a=0;s==null&&a{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(ie(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=ir([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(ie(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),tg(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:x1(u,i.index),routesMeta:d})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of ng(i.path))o(i,l,a)}),t}function ng(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=ng(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function p1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:S1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const h1=/^:[\w-]+$/,m1=3,g1=2,v1=1,y1=10,w1=-2,$f=e=>e==="*";function x1(e,t){let n=e.split("/"),r=n.length;return n.some($f)&&(r+=w1),t&&(r+=g1),n.filter(o=>!$f(o)).reduce((o,i)=>o+(h1.test(i)?m1:i===""?v1:y1),r)}function S1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function C1(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",l=[];for(let s=0;s{let{paramName:f,isOptional:h}=d;if(f==="*"){let y=s[c]||"";l=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=s[c];return h&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function E1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),to(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function k1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return to(!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 Ti(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 R1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Un(e):e;return{pathname:n?n.startsWith("/")?n:_1(n,t):t,search:N1(r),hash:$1(o)}}function _1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ca(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 rg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function P1(e,t){let n=rg(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function b1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Un(e):(o=xe({},e),ie(!o.pathname||!o.pathname.includes("?"),ca("?","pathname","search",o)),ie(!o.pathname||!o.pathname.includes("#"),ca("#","pathname","hash",o)),ie(!o.search||!o.search.includes("#"),ca("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),c-=1;o.pathname=f.join("/")}s=c>=0?t[c]:"/"}let a=R1(o,s),u=l&&l!=="/"&&l.endsWith("/"),d=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const ir=e=>e.join("/").replace(/\/\/+/g,"/"),T1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Kl{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ys(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const og=["post","put","patch","delete"],L1=new Set(og),M1=["get",...og],z1=new Set(M1),j1=new Set([301,302,303,307,308]),I1=new Set([307,308]),da={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},D1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$o={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Rc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O1=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ig="remix-router-transitions";function F1(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ie(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let E=e.detectErrorBoundary;o=R=>({hasErrorBoundary:E(R)})}else o=O1;let i={},l=yi(e.routes,o,void 0,i),s,a=e.basename||"/",u=e.unstable_dataStrategy||H1,d=e.unstable_patchRoutesOnMiss,c=xe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,v=null,y=null,C=null,m=e.hydrationData!=null,p=Zn(l,e.history.location,a),g=null;if(p==null&&!d){let E=qe(404,{pathname:e.history.location.pathname}),{matches:R,route:P}=Uf(l);p=R,g={[P.id]:E}}p&&!e.hydrationData&&Fi(p,l,e.history.location.pathname).active&&(p=null);let S;if(p)if(p.some(E=>E.route.lazy))S=!1;else if(!p.some(E=>E.route.loader))S=!0;else if(c.v7_partialHydration){let E=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,P=N=>N.route.loader?typeof N.route.loader=="function"&&N.route.loader.hydrate===!0?!1:E&&E[N.route.id]!==void 0||R&&R[N.route.id]!==void 0:!0;if(R){let N=p.findIndex(A=>R[A.route.id]!==void 0);S=p.slice(0,N+1).every(P)}else S=p.every(P)}else S=e.hydrationData!=null;else if(S=!1,p=[],c.v7_partialHydration){let E=Fi(null,l,e.history.location.pathname);E.active&&E.matches&&(p=E.matches)}let _,w={historyAction:e.history.action,location:e.history.location,matches:p,initialized:S,navigation:da,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},T=Ne.Pop,b=!1,z,L=!1,W=new Map,V=null,Y=!1,F=!1,ee=[],oe=new Set,B=new Map,M=0,D=-1,O=new Map,X=new Set,te=new Map,Le=new Map,ve=new Set,Fe=new Map,Pe=new Map,ct=new Map,Xt=!1;function Vn(){if(f=e.history.listen(E=>{let{action:R,location:P,delta:N}=E;if(Xt){Xt=!1;return}to(Pe.size===0||N!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let A=md({currentLocation:w.location,nextLocation:P,historyAction:R});if(A&&N!=null){Xt=!0,e.history.go(N*-1),Di(A,{state:"blocked",location:P,proceed(){Di(A,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),e.history.go(N)},reset(){let H=new Map(w.blockers);H.set(A,$o),Me({blockers:H})}});return}return Tt(R,P)}),n){rw(t,W);let E=()=>ow(t,W);t.addEventListener("pagehide",E),V=()=>t.removeEventListener("pagehide",E)}return w.initialized||Tt(Ne.Pop,w.location,{initialHydration:!0}),_}function go(){f&&f(),V&&V(),h.clear(),z&&z.abort(),w.fetchers.forEach((E,R)=>Ii(R)),w.blockers.forEach((E,R)=>hd(R))}function vo(E){return h.add(E),()=>h.delete(E)}function Me(E,R){R===void 0&&(R={}),w=xe({},w,E);let P=[],N=[];c.v7_fetcherPersist&&w.fetchers.forEach((A,H)=>{A.state==="idle"&&(ve.has(H)?N.push(H):P.push(H))}),[...h].forEach(A=>A(w,{deletedFetchers:N,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(P.forEach(A=>w.fetchers.delete(A)),N.forEach(A=>Ii(A)))}function bt(E,R,P){var N,A;let{flushSync:H}=P===void 0?{}:P,K=w.actionData!=null&&w.navigation.formMethod!=null&&Mt(w.navigation.formMethod)&&w.navigation.state==="loading"&&((N=E.state)==null?void 0:N._isRedirect)!==!0,I;R.actionData?Object.keys(R.actionData).length>0?I=R.actionData:I=null:K?I=w.actionData:I=null;let Z=R.loaderData?Af(w.loaderData,R.loaderData,R.matches||[],R.errors):w.loaderData,G=w.blockers;G.size>0&&(G=new Map(G),G.forEach((ae,fe)=>G.set(fe,$o)));let Q=b===!0||w.navigation.formMethod!=null&&Mt(w.navigation.formMethod)&&((A=E.state)==null?void 0:A._isRedirect)!==!0;s&&(l=s,s=void 0),Y||T===Ne.Pop||(T===Ne.Push?e.history.push(E,E.state):T===Ne.Replace&&e.history.replace(E,E.state));let ce;if(T===Ne.Pop){let ae=W.get(w.location.pathname);ae&&ae.has(E.pathname)?ce={currentLocation:w.location,nextLocation:E}:W.has(E.pathname)&&(ce={currentLocation:E,nextLocation:w.location})}else if(L){let ae=W.get(w.location.pathname);ae?ae.add(E.pathname):(ae=new Set([E.pathname]),W.set(w.location.pathname,ae)),ce={currentLocation:w.location,nextLocation:E}}Me(xe({},R,{actionData:I,loaderData:Z,historyAction:T,location:E,initialized:!0,navigation:da,revalidation:"idle",restoreScrollPosition:vd(E,R.matches||w.matches),preventScrollReset:Q,blockers:G}),{viewTransitionOpts:ce,flushSync:H===!0}),T=Ne.Pop,b=!1,L=!1,Y=!1,F=!1,ee=[]}async function ze(E,R){if(typeof E=="number"){e.history.go(E);return}let P=mu(w.location,w.matches,a,c.v7_prependBasename,E,c.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:N,submission:A,error:H}=Mf(c.v7_normalizeFormMethod,!1,P,R),K=w.location,I=vi(w.location,N,R&&R.state);I=xe({},I,e.history.encodeLocation(I));let Z=R&&R.replace!=null?R.replace:void 0,G=Ne.Push;Z===!0?G=Ne.Replace:Z===!1||A!=null&&Mt(A.formMethod)&&A.formAction===w.location.pathname+w.location.search&&(G=Ne.Replace);let Q=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,ce=(R&&R.unstable_flushSync)===!0,ae=md({currentLocation:K,nextLocation:I,historyAction:G});if(ae){Di(ae,{state:"blocked",location:I,proceed(){Di(ae,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),ze(E,R)},reset(){let fe=new Map(w.blockers);fe.set(ae,$o),Me({blockers:fe})}});return}return await Tt(G,I,{submission:A,pendingError:H,preventScrollReset:Q,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:ce})}function yo(){if(js(),Me({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Tt(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Tt(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function Tt(E,R,P){z&&z.abort(),z=null,T=E,Y=(P&&P.startUninterruptedRevalidation)===!0,$v(w.location,w.matches),b=(P&&P.preventScrollReset)===!0,L=(P&&P.enableViewTransition)===!0;let N=s||l,A=P&&P.overrideNavigation,H=Zn(N,R,a),K=(P&&P.flushSync)===!0,I=Fi(H,N,R.pathname);if(I.active&&I.matches&&(H=I.matches),!H){let{error:se,notFoundMatches:Ae,route:Te}=Is(R.pathname);bt(R,{matches:Ae,loaderData:{},errors:{[Te.id]:se}},{flushSync:K});return}if(w.initialized&&!F&&X1(w.location,R)&&!(P&&P.submission&&Mt(P.submission.formMethod))){bt(R,{matches:H},{flushSync:K});return}z=new AbortController;let Z=Er(e.history,R,z.signal,P&&P.submission),G;if(P&&P.pendingError)G=[Fr(H).route.id,{type:de.error,error:P.pendingError}];else if(P&&P.submission&&Mt(P.submission.formMethod)){let se=await vr(Z,R,P.submission,H,I.active,{replace:P.replace,flushSync:K});if(se.shortCircuited)return;if(se.pendingActionResult){let[Ae,Te]=se.pendingActionResult;if(pt(Te)&&ys(Te.error)&&Te.error.status===404){z=null,bt(R,{matches:se.matches,loaderData:{},errors:{[Ae]:Te.error}});return}}H=se.matches||H,G=se.pendingActionResult,A=fa(R,P.submission),K=!1,I.active=!1,Z=Er(e.history,Z.url,Z.signal)}let{shortCircuited:Q,matches:ce,loaderData:ae,errors:fe}=await yr(Z,R,H,I.active,A,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,K,G);Q||(z=null,bt(R,xe({matches:ce||H},Bf(G),{loaderData:ae,errors:fe})))}async function vr(E,R,P,N,A,H){H===void 0&&(H={}),js();let K=tw(R,P);if(Me({navigation:K},{flushSync:H.flushSync===!0}),A){let G=await Ai(N,R.pathname,E.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let{boundaryId:Q,error:ce}=Oi(R.pathname,G);return{matches:G.partialMatches,pendingActionResult:[Q,{type:de.error,error:ce}]}}else if(G.matches)N=G.matches;else{let{notFoundMatches:Q,error:ce,route:ae}=Is(R.pathname);return{matches:Q,pendingActionResult:[ae.id,{type:de.error,error:ce}]}}}let I,Z=Wo(N,R);if(!Z.route.action&&!Z.route.lazy)I={type:de.error,error:qe(405,{method:E.method,pathname:R.pathname,routeId:Z.route.id})};else if(I=(await So("action",E,[Z],N))[0],E.signal.aborted)return{shortCircuited:!0};if(nr(I)){let G;return H&&H.replace!=null?G=H.replace:G=Df(I.response.headers.get("Location"),new URL(E.url),a)===w.location.pathname+w.location.search,await xo(E,I,{submission:P,replace:G}),{shortCircuited:!0}}if(tr(I))throw qe(400,{type:"defer-action"});if(pt(I)){let G=Fr(N,Z.route.id);return(H&&H.replace)!==!0&&(T=Ne.Push),{matches:N,pendingActionResult:[G.route.id,I]}}return{matches:N,pendingActionResult:[Z.route.id,I]}}async function yr(E,R,P,N,A,H,K,I,Z,G,Q){let ce=A||fa(R,H),ae=H||K||Gf(ce),fe=!Y&&(!c.v7_partialHydration||!Z);if(N){if(fe){let ke=Gn(Q);Me(xe({navigation:ce},ke!==void 0?{actionData:ke}:{}),{flushSync:G})}let q=await Ai(P,R.pathname,E.signal);if(q.type==="aborted")return{shortCircuited:!0};if(q.type==="error"){let{boundaryId:ke,error:dt}=Oi(R.pathname,q);return{matches:q.partialMatches,loaderData:{},errors:{[ke]:dt}}}else if(q.matches)P=q.matches;else{let{error:ke,notFoundMatches:dt,route:ye}=Is(R.pathname);return{matches:dt,loaderData:{},errors:{[ye.id]:ke}}}}let se=s||l,[Ae,Te]=zf(e.history,w,P,ae,R,c.v7_partialHydration&&Z===!0,c.v7_skipActionErrorRevalidation,F,ee,oe,ve,te,X,se,a,Q);if(Ds(q=>!(P&&P.some(ke=>ke.route.id===q))||Ae&&Ae.some(ke=>ke.route.id===q)),D=++M,Ae.length===0&&Te.length===0){let q=fd();return bt(R,xe({matches:P,loaderData:{},errors:Q&&pt(Q[1])?{[Q[0]]:Q[1].error}:null},Bf(Q),q?{fetchers:new Map(w.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(fe){let q={};if(!N){q.navigation=ce;let ke=Gn(Q);ke!==void 0&&(q.actionData=ke)}Te.length>0&&(q.fetchers=wo(Te)),Me(q,{flushSync:G})}Te.forEach(q=>{B.has(q.key)&&vn(q.key),q.controller&&B.set(q.key,q.controller)});let Co=()=>Te.forEach(q=>vn(q.key));z&&z.signal.addEventListener("abort",Co);let{loaderResults:yn,fetcherResults:wr}=await ud(w.matches,P,Ae,Te,E);if(E.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",Co),Te.forEach(q=>B.delete(q.key));let xr=Wf([...yn,...wr]);if(xr){if(xr.idx>=Ae.length){let q=Te[xr.idx-Ae.length].key;X.add(q)}return await xo(E,xr.result,{replace:I}),{shortCircuited:!0}}let{loaderData:Sr,errors:Ut}=Ff(w,P,Ae,yn,Q,Te,wr,Fe);Fe.forEach((q,ke)=>{q.subscribe(dt=>{(dt||q.done)&&Fe.delete(ke)})}),c.v7_partialHydration&&Z&&w.errors&&Object.entries(w.errors).filter(q=>{let[ke]=q;return!Ae.some(dt=>dt.route.id===ke)}).forEach(q=>{let[ke,dt]=q;Ut=Object.assign(Ut||{},{[ke]:dt})});let Bi=fd(),Ui=pd(D),Wi=Bi||Ui||Te.length>0;return xe({matches:P,loaderData:Sr,errors:Ut},Wi?{fetchers:new Map(w.fetchers)}:{})}function Gn(E){if(E&&!pt(E[1]))return{[E[0]]:E[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function wo(E){return E.forEach(R=>{let P=w.fetchers.get(R.key),N=Lo(void 0,P?P.data:void 0);w.fetchers.set(R.key,N)}),new Map(w.fetchers)}function zi(E,R,P,N){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");B.has(E)&&vn(E);let A=(N&&N.unstable_flushSync)===!0,H=s||l,K=mu(w.location,w.matches,a,c.v7_prependBasename,P,c.v7_relativeSplatPath,R,N==null?void 0:N.relative),I=Zn(H,K,a),Z=Fi(I,H,K);if(Z.active&&Z.matches&&(I=Z.matches),!I){Zt(E,R,qe(404,{pathname:K}),{flushSync:A});return}let{path:G,submission:Q,error:ce}=Mf(c.v7_normalizeFormMethod,!0,K,N);if(ce){Zt(E,R,ce,{flushSync:A});return}let ae=Wo(I,G);if(b=(N&&N.preventScrollReset)===!0,Q&&Mt(Q.formMethod)){ji(E,R,G,ae,I,Z.active,A,Q);return}te.set(E,{routeId:R,path:G}),Qn(E,R,G,ae,I,Z.active,A,Q)}async function ji(E,R,P,N,A,H,K,I){js(),te.delete(E);function Z(ye){if(!ye.route.action&&!ye.route.lazy){let Jt=qe(405,{method:I.formMethod,pathname:P,routeId:R});return Zt(E,R,Jt,{flushSync:K}),!0}return!1}if(!H&&Z(N))return;let G=w.fetchers.get(E);gn(E,nw(I,G),{flushSync:K});let Q=new AbortController,ce=Er(e.history,P,Q.signal,I);if(H){let ye=await Ai(A,P,ce.signal);if(ye.type==="aborted")return;if(ye.type==="error"){let{error:Jt}=Oi(P,ye);Zt(E,R,Jt,{flushSync:K});return}else if(ye.matches){if(A=ye.matches,N=Wo(A,P),Z(N))return}else{Zt(E,R,qe(404,{pathname:P}),{flushSync:K});return}}B.set(E,Q);let ae=M,se=(await So("action",ce,[N],A))[0];if(ce.signal.aborted){B.get(E)===Q&&B.delete(E);return}if(c.v7_fetcherPersist&&ve.has(E)){if(nr(se)||pt(se)){gn(E,xn(void 0));return}}else{if(nr(se))if(B.delete(E),D>ae){gn(E,xn(void 0));return}else return X.add(E),gn(E,Lo(I)),xo(ce,se,{fetcherSubmission:I});if(pt(se)){Zt(E,R,se.error);return}}if(tr(se))throw qe(400,{type:"defer-action"});let Ae=w.navigation.location||w.location,Te=Er(e.history,Ae,Q.signal),Co=s||l,yn=w.navigation.state!=="idle"?Zn(Co,w.navigation.location,a):w.matches;ie(yn,"Didn't find any matches after fetcher action");let wr=++M;O.set(E,wr);let xr=Lo(I,se.data);w.fetchers.set(E,xr);let[Sr,Ut]=zf(e.history,w,yn,I,Ae,!1,c.v7_skipActionErrorRevalidation,F,ee,oe,ve,te,X,Co,a,[N.route.id,se]);Ut.filter(ye=>ye.key!==E).forEach(ye=>{let Jt=ye.key,yd=w.fetchers.get(Jt),zv=Lo(void 0,yd?yd.data:void 0);w.fetchers.set(Jt,zv),B.has(Jt)&&vn(Jt),ye.controller&&B.set(Jt,ye.controller)}),Me({fetchers:new Map(w.fetchers)});let Bi=()=>Ut.forEach(ye=>vn(ye.key));Q.signal.addEventListener("abort",Bi);let{loaderResults:Ui,fetcherResults:Wi}=await ud(w.matches,yn,Sr,Ut,Te);if(Q.signal.aborted)return;Q.signal.removeEventListener("abort",Bi),O.delete(E),B.delete(E),Ut.forEach(ye=>B.delete(ye.key));let q=Wf([...Ui,...Wi]);if(q){if(q.idx>=Sr.length){let ye=Ut[q.idx-Sr.length].key;X.add(ye)}return xo(Te,q.result)}let{loaderData:ke,errors:dt}=Ff(w,w.matches,Sr,Ui,void 0,Ut,Wi,Fe);if(w.fetchers.has(E)){let ye=xn(se.data);w.fetchers.set(E,ye)}pd(wr),w.navigation.state==="loading"&&wr>D?(ie(T,"Expected pending action"),z&&z.abort(),bt(w.navigation.location,{matches:yn,loaderData:ke,errors:dt,fetchers:new Map(w.fetchers)})):(Me({errors:dt,loaderData:Af(w.loaderData,ke,yn,dt),fetchers:new Map(w.fetchers)}),F=!1)}async function Qn(E,R,P,N,A,H,K,I){let Z=w.fetchers.get(E);gn(E,Lo(I,Z?Z.data:void 0),{flushSync:K});let G=new AbortController,Q=Er(e.history,P,G.signal);if(H){let se=await Ai(A,P,Q.signal);if(se.type==="aborted")return;if(se.type==="error"){let{error:Ae}=Oi(P,se);Zt(E,R,Ae,{flushSync:K});return}else if(se.matches)A=se.matches,N=Wo(A,P);else{Zt(E,R,qe(404,{pathname:P}),{flushSync:K});return}}B.set(E,G);let ce=M,fe=(await So("loader",Q,[N],A))[0];if(tr(fe)&&(fe=await cg(fe,Q.signal,!0)||fe),B.get(E)===G&&B.delete(E),!Q.signal.aborted){if(ve.has(E)){gn(E,xn(void 0));return}if(nr(fe))if(D>ce){gn(E,xn(void 0));return}else{X.add(E),await xo(Q,fe);return}if(pt(fe)){Zt(E,R,fe.error);return}ie(!tr(fe),"Unhandled fetcher deferred data"),gn(E,xn(fe.data))}}async function xo(E,R,P){let{submission:N,fetcherSubmission:A,replace:H}=P===void 0?{}:P;R.response.headers.has("X-Remix-Revalidate")&&(F=!0);let K=R.response.headers.get("Location");ie(K,"Expected a Location header on the redirect Response"),K=Df(K,new URL(E.url),a);let I=vi(w.location,K,{_isRedirect:!0});if(n){let fe=!1;if(R.response.headers.has("X-Remix-Reload-Document"))fe=!0;else if(Rc.test(K)){const se=e.history.createURL(K);fe=se.origin!==t.location.origin||Ti(se.pathname,a)==null}if(fe){H?t.location.replace(K):t.location.assign(K);return}}z=null;let Z=H===!0||R.response.headers.has("X-Remix-Replace")?Ne.Replace:Ne.Push,{formMethod:G,formAction:Q,formEncType:ce}=w.navigation;!N&&!A&&G&&Q&&ce&&(N=Gf(w.navigation));let ae=N||A;if(I1.has(R.response.status)&&ae&&Mt(ae.formMethod))await Tt(Z,I,{submission:xe({},ae,{formAction:K}),preventScrollReset:b});else{let fe=fa(I,N);await Tt(Z,I,{overrideNavigation:fe,fetcherSubmission:A,preventScrollReset:b})}}async function So(E,R,P,N){try{let A=await V1(u,E,R,P,N,i,o);return await Promise.all(A.map((H,K)=>{if(J1(H)){let I=H.result;return{type:de.redirect,response:Y1(I,R,P[K].route.id,N,a,c.v7_relativeSplatPath)}}return Q1(H)}))}catch(A){return P.map(()=>({type:de.error,error:A}))}}async function ud(E,R,P,N,A){let[H,...K]=await Promise.all([P.length?So("loader",A,P,R):[],...N.map(I=>{if(I.matches&&I.match&&I.controller){let Z=Er(e.history,I.path,I.controller.signal);return So("loader",Z,[I.match],I.matches).then(G=>G[0])}else return Promise.resolve({type:de.error,error:qe(404,{pathname:I.path})})})]);return await Promise.all([Vf(E,P,H,H.map(()=>A.signal),!1,w.loaderData),Vf(E,N.map(I=>I.match),K,N.map(I=>I.controller?I.controller.signal:null),!0)]),{loaderResults:H,fetcherResults:K}}function js(){F=!0,ee.push(...Ds()),te.forEach((E,R)=>{B.has(R)&&(oe.add(R),vn(R))})}function gn(E,R,P){P===void 0&&(P={}),w.fetchers.set(E,R),Me({fetchers:new Map(w.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function Zt(E,R,P,N){N===void 0&&(N={});let A=Fr(w.matches,R);Ii(E),Me({errors:{[A.route.id]:P},fetchers:new Map(w.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function cd(E){return c.v7_fetcherPersist&&(Le.set(E,(Le.get(E)||0)+1),ve.has(E)&&ve.delete(E)),w.fetchers.get(E)||D1}function Ii(E){let R=w.fetchers.get(E);B.has(E)&&!(R&&R.state==="loading"&&O.has(E))&&vn(E),te.delete(E),O.delete(E),X.delete(E),ve.delete(E),oe.delete(E),w.fetchers.delete(E)}function bv(E){if(c.v7_fetcherPersist){let R=(Le.get(E)||0)-1;R<=0?(Le.delete(E),ve.add(E)):Le.set(E,R)}else Ii(E);Me({fetchers:new Map(w.fetchers)})}function vn(E){let R=B.get(E);ie(R,"Expected fetch controller: "+E),R.abort(),B.delete(E)}function dd(E){for(let R of E){let P=cd(R),N=xn(P.data);w.fetchers.set(R,N)}}function fd(){let E=[],R=!1;for(let P of X){let N=w.fetchers.get(P);ie(N,"Expected fetcher: "+P),N.state==="loading"&&(X.delete(P),E.push(P),R=!0)}return dd(E),R}function pd(E){let R=[];for(let[P,N]of O)if(N0}function Tv(E,R){let P=w.blockers.get(E)||$o;return Pe.get(E)!==R&&Pe.set(E,R),P}function hd(E){w.blockers.delete(E),Pe.delete(E)}function Di(E,R){let P=w.blockers.get(E)||$o;ie(P.state==="unblocked"&&R.state==="blocked"||P.state==="blocked"&&R.state==="blocked"||P.state==="blocked"&&R.state==="proceeding"||P.state==="blocked"&&R.state==="unblocked"||P.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+R.state);let N=new Map(w.blockers);N.set(E,R),Me({blockers:N})}function md(E){let{currentLocation:R,nextLocation:P,historyAction:N}=E;if(Pe.size===0)return;Pe.size>1&&to(!1,"A router only supports one blocker at a time");let A=Array.from(Pe.entries()),[H,K]=A[A.length-1],I=w.blockers.get(H);if(!(I&&I.state==="proceeding")&&K({currentLocation:R,nextLocation:P,historyAction:N}))return H}function Is(E){let R=qe(404,{pathname:E}),P=s||l,{matches:N,route:A}=Uf(P);return Ds(),{notFoundMatches:N,route:A,error:R}}function Oi(E,R){return{boundaryId:Fr(R.partialMatches).route.id,error:qe(400,{type:"route-discovery",pathname:E,message:R.error!=null&&"message"in R.error?R.error:String(R.error)})}}function Ds(E){let R=[];return Fe.forEach((P,N)=>{(!E||E(N))&&(P.cancel(),R.push(N),Fe.delete(N))}),R}function Nv(E,R,P){if(v=E,C=R,y=P||null,!m&&w.navigation===da){m=!0;let N=vd(w.location,w.matches);N!=null&&Me({restoreScrollPosition:N})}return()=>{v=null,C=null,y=null}}function gd(E,R){return y&&y(E,R.map(N=>f1(N,w.loaderData)))||E.key}function $v(E,R){if(v&&C){let P=gd(E,R);v[P]=C()}}function vd(E,R){if(v){let P=gd(E,R),N=v[P];if(typeof N=="number")return N}return null}function Fi(E,R,P){if(d)if(E){let N=E[E.length-1].route;if(N.path&&(N.path==="*"||N.path.endsWith("/*")))return{active:!0,matches:El(R,P,a,!0)}}else return{active:!0,matches:El(R,P,a,!0)||[]};return{active:!1,matches:null}}async function Ai(E,R,P){let N=E,A=N.length>0?N[N.length-1].route:null;for(;;){let H=s==null,K=s||l;try{await W1(d,R,N,K,i,o,ct,P)}catch(Q){return{type:"error",error:Q,partialMatches:N}}finally{H&&(l=[...l])}if(P.aborted)return{type:"aborted"};let I=Zn(K,R,a),Z=!1;if(I){let Q=I[I.length-1].route;if(Q.index)return{type:"success",matches:I};if(Q.path&&Q.path.length>0)if(Q.path==="*")Z=!0;else return{type:"success",matches:I}}let G=El(K,R,a,!0);if(!G||N.map(Q=>Q.route.id).join("-")===G.map(Q=>Q.route.id).join("-"))return{type:"success",matches:Z?I:null};if(N=G,A=N[N.length-1].route,A.path==="*")return{type:"success",matches:N}}}function Lv(E){i={},s=yi(E,o,void 0,i)}function Mv(E,R){let P=s==null;sg(E,R,s||l,i,o),P&&(l=[...l],Me({}))}return _={get basename(){return a},get future(){return c},get state(){return w},get routes(){return l},get window(){return t},initialize:Vn,subscribe:vo,enableScrollRestoration:Nv,navigate:ze,fetch:zi,revalidate:yo,createHref:E=>e.history.createHref(E),encodeLocation:E=>e.history.encodeLocation(E),getFetcher:cd,deleteFetcher:bv,dispose:go,getBlocker:Tv,deleteBlocker:hd,patchRoutes:Mv,_internalFetchControllers:B,_internalActiveDeferreds:Fe,_internalSetRoutes:Lv},_}function A1(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function mu(e,t,n,r,o,i,l,s){let a,u;if(l){a=[];for(let c of t)if(a.push(c),c.route.id===l){u=c;break}}else a=t,u=t[t.length-1];let d=b1(o||".",P1(a,i),Ti(e.pathname,n)||e.pathname,s==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!_c(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:ir([n,d.pathname])),bi(d)}function Mf(e,t,n,r){if(!r||!A1(r))return{path:n};if(r.formMethod&&!ew(r.formMethod))return{path:n,error:qe(405,{method:r.formMethod})};let o=()=>({path:n,error:qe(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),s=ag(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Mt(l))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,v)=>{let[y,C]=v;return""+h+y+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Mt(l))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}ie(typeof FormData=="function","FormData is not available in this environment");let a,u;if(r.formData)a=gu(r.formData),u=r.formData;else if(r.body instanceof FormData)a=gu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)a=r.body,u=Of(a);else if(r.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(r.body),u=Of(a)}catch{return o()}let d={formMethod:l,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Mt(d.formMethod))return{path:n,submission:d};let c=Un(n);return t&&c.search&&_c(c.search)&&a.append("index",""),c.search="?"+a,{path:bi(c),submission:d}}function B1(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function zf(e,t,n,r,o,i,l,s,a,u,d,c,f,h,v,y){let C=y?pt(y[1])?y[1].error:y[1].data:void 0,m=e.createURL(t.location),p=e.createURL(o),g=y&&pt(y[1])?y[0]:void 0,S=g?B1(n,g):n,_=y?y[1].statusCode:void 0,w=l&&_&&_>=400,T=S.filter((z,L)=>{let{route:W}=z;if(W.lazy)return!0;if(W.loader==null)return!1;if(i)return typeof W.loader!="function"||W.loader.hydrate?!0:t.loaderData[W.id]===void 0&&(!t.errors||t.errors[W.id]===void 0);if(U1(t.loaderData,t.matches[L],z)||a.some(F=>F===z.route.id))return!0;let V=t.matches[L],Y=z;return jf(z,xe({currentUrl:m,currentParams:V.params,nextUrl:p,nextParams:Y.params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:w?!1:s||m.pathname+m.search===p.pathname+p.search||m.search!==p.search||lg(V,Y)}))}),b=[];return c.forEach((z,L)=>{if(i||!n.some(ee=>ee.route.id===z.routeId)||d.has(L))return;let W=Zn(h,z.path,v);if(!W){b.push({key:L,routeId:z.routeId,path:z.path,matches:null,match:null,controller:null});return}let V=t.fetchers.get(L),Y=Wo(W,z.path),F=!1;f.has(L)?F=!1:u.has(L)?(u.delete(L),F=!0):V&&V.state!=="idle"&&V.data===void 0?F=s:F=jf(Y,xe({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:_,defaultShouldRevalidate:w?!1:s})),F&&b.push({key:L,routeId:z.routeId,path:z.path,matches:W,match:Y,controller:new AbortController})}),[T,b]}function U1(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function lg(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function jf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function W1(e,t,n,r,o,i,l,s){let a=[t,...n.map(u=>u.route.id)].join("-");try{let u=l.get(a);u||(u=e({path:t,matches:n,patch:(d,c)=>{s.aborted||sg(d,c,r,o,i)}}),l.set(a,u)),u&&Z1(u)&&await u}finally{l.delete(a)}}function sg(e,t,n,r,o){if(e){var i;let l=r[e];ie(l,"No route found to patch children into: routeId = "+e);let s=yi(t,o,[e,"patch",String(((i=l.children)==null?void 0:i.length)||"0")],r);l.children?l.children.push(...s):l.children=s}else{let l=yi(t,o,["patch",String(n.length||"0")],r);n.push(...l)}}async function If(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ie(o,"No route found in manifest");let i={};for(let l in r){let a=o[l]!==void 0&&l!=="hasErrorBoundary";to(!a,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!a&&!c1.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,xe({},t(o),{lazy:void 0}))}function H1(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function V1(e,t,n,r,o,i,l,s){let a=r.reduce((c,f)=>c.add(f.route.id),new Set),u=new Set,d=await e({matches:o.map(c=>{let f=a.has(c.route.id);return xe({},c,{shouldLoad:f,resolve:v=>(u.add(c.route.id),f?G1(t,n,c,i,l,v,s):Promise.resolve({type:de.data,result:void 0}))})}),request:n,params:o[0].params,context:s});return o.forEach(c=>ie(u.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((c,f)=>a.has(o[f].route.id))}async function G1(e,t,n,r,o,i,l){let s,a,u=d=>{let c,f=new Promise((y,C)=>c=C);a=()=>c(),t.signal.addEventListener("abort",a);let h=y=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:l},...y!==void 0?[y]:[]),v;return i?v=i(y=>h(y)):v=(async()=>{try{return{type:"data",result:await h()}}catch(y){return{type:"error",result:y}}})(),Promise.race([v,f])};try{let d=n.route[e];if(n.route.lazy)if(d){let c,[f]=await Promise.all([u(d).catch(h=>{c=h}),If(n.route,o,r)]);if(c!==void 0)throw c;s=f}else if(await If(n.route,o,r),d=n.route[e],d)s=await u(d);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw qe(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:de.data,result:void 0};else if(d)s=await u(d);else{let c=new URL(t.url),f=c.pathname+c.search;throw qe(404,{pathname:f})}ie(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:de.error,result:d}}finally{a&&t.signal.removeEventListener("abort",a)}return s}async function Q1(e){let{result:t,type:n}=e;if(ug(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:de.error,error:d}}return n===de.error?{type:de.error,error:new Kl(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:de.data,data:u,statusCode:t.status,headers:t.headers}}if(n===de.error){if(Hf(t)){var r;if(t.data instanceof Error){var o;return{type:de.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Kl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:de.error,error:t,statusCode:ys(t)?t.status:void 0}}if(q1(t)){var i,l;return{type:de.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Hf(t)){var s,a;return{type:de.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:de.data,data:t}}function Y1(e,t,n,r,o,i){let l=e.headers.get("Location");if(ie(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Rc.test(l)){let s=r.slice(0,r.findIndex(a=>a.route.id===n)+1);l=mu(new URL(t.url),s,o,!0,l,i),e.headers.set("Location",l)}return e}function Df(e,t,n){if(Rc.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ti(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Er(e,t,n,r){let o=e.createURL(ag(t)).toString(),i={signal:n};if(r&&Mt(r.formMethod)){let{formMethod:l,formEncType:s}=r;i.method=l.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=gu(r.formData):i.body=r.formData}return new Request(o,i)}function gu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Of(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function K1(e,t,n,r,o,i){let l={},s=null,a,u=!1,d={},c=r&&pt(r[1])?r[1].error:void 0;return n.forEach((f,h)=>{let v=t[h].route.id;if(ie(!nr(f),"Cannot handle redirect results in processLoaderData"),pt(f)){let y=f.error;c!==void 0&&(y=c,c=void 0),s=s||{};{let C=Fr(e,v);s[C.route.id]==null&&(s[C.route.id]=y)}l[v]=void 0,u||(u=!0,a=ys(f.error)?f.error.status:500),f.headers&&(d[v]=f.headers)}else tr(f)?(o.set(v,f.deferredData),l[v]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!u&&(a=f.statusCode),f.headers&&(d[v]=f.headers)):(l[v]=f.data,f.statusCode&&f.statusCode!==200&&!u&&(a=f.statusCode),f.headers&&(d[v]=f.headers))}),c!==void 0&&r&&(s={[r[0]]:c},l[r[0]]=void 0),{loaderData:l,errors:s,statusCode:a||200,loaderHeaders:d}}function Ff(e,t,n,r,o,i,l,s){let{loaderData:a,errors:u}=K1(t,n,r,o,s);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Uf(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qe(e,t){let{pathname:n,routeId:r,method:o,type:i,message:l}=t===void 0?{}:t,s="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(s="Bad Request",i==="route-discovery"?a='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: +`+l):o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(s="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",a='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Kl(e||500,s,new Error(a),!0)}function Wf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(nr(n))return{result:n,idx:t}}}function ag(e){let t=typeof e=="string"?Un(e):e;return bi(xe({},t,{hash:""}))}function X1(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Z1(e){return typeof e=="object"&&e!=null&&"then"in e}function J1(e){return ug(e.result)&&j1.has(e.result.status)}function tr(e){return e.type===de.deferred}function pt(e){return e.type===de.error}function nr(e){return(e&&e.type)===de.redirect}function Hf(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function q1(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function ug(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ew(e){return z1.has(e.toLowerCase())}function Mt(e){return L1.has(e.toLowerCase())}async function Vf(e,t,n,r,o,i){for(let l=0;lc.route.id===a.route.id),d=u!=null&&!lg(u,a)&&(i&&i[a.route.id])!==void 0;if(tr(s)&&(o||d)){let c=r[l];ie(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await cg(s,c,o).then(f=>{f&&(n[l]=f||n[l])})}}}async function cg(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:de.data,data:e.deferredData.unwrappedData}}catch(o){return{type:de.error,error:o}}return{type:de.data,data:e.deferredData.data}}}function _c(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Wo(e,t){let n=typeof t=="string"?Un(t).search:t.search;if(e[e.length-1].route.index&&_c(n||""))return e[e.length-1];let r=rg(e);return r[r.length-1]}function Gf(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function fa(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tw(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Lo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nw(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function rw(e,t){try{let n=e.sessionStorage.getItem(ig);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function ow(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(ig,JSON.stringify(n))}catch(r){to(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.26.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},s,y.params),pathname:ir([a,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:ir([a,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r)}function sw(){let e=mw(),t=ys(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={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:o},n):null,null)}const aw=x.createElement(sw,null);class uw 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(ws.Provider,{value:this.props.routeContext},x.createElement(hg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cw(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(dg);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(ws.Provider,{value:t},r)}function dw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=l.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);d>=0||ie(!1),l=l.slice(0,Math.min(l.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((d,c,f)=>{let h,v=!1,y=null,C=null;n&&(h=s&&c.route.id?s[c.route.id]:void 0,y=c.route.errorElement||aw,a&&(u<0&&f===0?(v=!0,C=null):u===f&&(v=!0,C=c.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,f+1)),p=()=>{let g;return h?g=y:v?g=C:c.route.Component?g=x.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=d,x.createElement(cw,{match:c,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?x.createElement(uw,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var yu=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}(yu||{});function fw(e){let t=x.useContext(fg);return t||ie(!1),t}function pw(e){let t=x.useContext(ws);return t||ie(!1),t}function hw(e){let t=pw(),n=t.matches[t.matches.length-1];return n.route.id||ie(!1),n.route.id}function mw(){var e;let t=x.useContext(hg),n=fw(yu.UseRouteError),r=hw(yu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function gw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ne.Pop,navigator:i,static:l=!1,future:s}=e;bc()&&ie(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:i,static:l,future:vu({v7_relativeSplatPath:!1},s)}),[a,s,i,l]);typeof r=="string"&&(r=Un(r));let{pathname:d="/",search:c="",hash:f="",state:h=null,key:v="default"}=r,y=x.useMemo(()=>{let C=Ti(d,a);return C==null?null:{location:{pathname:C,search:c,hash:f,state:h,key:v},navigationType:o}},[a,d,c,f,h,v,o]);return y==null?null:x.createElement(pg.Provider,{value:u},x.createElement(Pc.Provider,{children:n,value:y}))}new Promise(()=>{});function vw(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:x.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:x.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function bw(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=x.useState(n.state),[l,s]=x.useState(),[a,u]=x.useState({isTransitioning:!1}),[d,c]=x.useState(),[f,h]=x.useState(),[v,y]=x.useState(),C=x.useRef(new Map),{v7_startTransition:m}=r||{},p=x.useCallback(b=>{m?_w(b):b()},[m]),g=x.useCallback((b,z)=>{let{deletedFetchers:L,unstable_flushSync:W,unstable_viewTransitionOpts:V}=z;L.forEach(F=>C.current.delete(F)),b.fetchers.forEach((F,ee)=>{F.data!==void 0&&C.current.set(ee,F.data)});let Y=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!V||Y){W?Mo(()=>i(b)):p(()=>i(b));return}if(W){Mo(()=>{f&&(d&&d.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let F=n.window.document.startViewTransition(()=>{Mo(()=>i(b))});F.finished.finally(()=>{Mo(()=>{c(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),Mo(()=>h(F));return}f?(d&&d.resolve(),f.skipTransition(),y({state:b,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(s(b),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,f,d,C,p]);x.useLayoutEffect(()=>n.subscribe(g),[n,g]),x.useEffect(()=>{a.isTransitioning&&!a.flushSync&&c(new Pw)},[a]),x.useEffect(()=>{if(d&&l&&n.window){let b=l,z=d.promise,L=n.window.document.startViewTransition(async()=>{p(()=>i(b)),await z});L.finished.finally(()=>{c(void 0),h(void 0),s(void 0),u({isTransitioning:!1})}),h(L)}},[p,l,d,n.window]),x.useEffect(()=>{d&&l&&o.location.key===l.location.key&&d.resolve()},[d,f,o.location,l]),x.useEffect(()=>{!a.isTransitioning&&v&&(s(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[a.isTransitioning,v]),x.useEffect(()=>{},[]);let S=x.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:b=>n.navigate(b),push:(b,z,L)=>n.navigate(b,{state:z,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(b,z,L)=>n.navigate(b,{replace:!0,state:z,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),_=n.basename||"/",w=x.useMemo(()=>({router:n,navigator:S,static:!1,basename:_}),[n,S,_]),T=x.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return x.createElement(x.Fragment,null,x.createElement(dg.Provider,{value:w},x.createElement(fg.Provider,{value:o},x.createElement(Ew.Provider,{value:C.current},x.createElement(Cw.Provider,{value:a},x.createElement(gw,{basename:_,location:o.location,navigationType:o.historyAction,navigator:S,future:T},o.initialized||n.future.v7_partialHydration?x.createElement(Tw,{routes:n.routes,future:n.future,state:o}):t))))),null)}const Tw=x.memo(Nw);function Nw(e){let{routes:t,future:n,state:r}=e;return lw(t,void 0,r,n)}var Kf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kf||(Kf={}));var Xf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xf||(Xf={}));function Ye(e){return Object.keys(e)}function pa(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Tc(e,t){const n={...e},r=t;return pa(e)&&pa(t)&&Object.keys(t).forEach(o=>{pa(r[o])&&o in e?n[o]=Tc(n[o],r[o]):n[o]=r[o]}),n}function $w(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Lw(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function wu(e){const t=Lw(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function ha(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function mg(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const o=`${r/16}${e}`;return t?ha(o):o}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(i=>n(i)).join(",");if(r.includes(" "))return r.split(" ").map(i=>n(i)).join(" ");if(r.includes(e))return t?ha(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const i=`${Number(o)/16}${e}`;return t?ha(i):i}}return r}return n}const $=mg("rem",{shouldScale:!0}),Zf=mg("em");function co(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function gg(e){return typeof e=="number"?!0:typeof e=="string"?e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!==""?!0:/[0-9]/.test(e.trim().replace("-","")[0]):!1}function vg(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==x.Fragment:!1}function yg(e){const t=x.createContext(null);return[({children:o,value:i})=>k.jsx(t.Provider,{value:i,children:o}),()=>{const o=x.useContext(t);if(o===null)throw new Error(e);return o}]}function wg(e=null){const t=x.createContext(e);return[({children:o,value:i})=>k.jsx(t.Provider,{value:i,children:o}),()=>x.useContext(t)]}const Mw={app:100,modal:200,popover:300,overlay:400,max:9999};function zw(e){return Mw[e]}const jw=()=>{};function Iw(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||jw:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Xe(e,t="size",n=!0){if(e!==void 0)return gg(e)?n?$(e):e:`var(--${t}-${e})`}function Zl(e){return Xe(e,"mantine-spacing")}function Wn(e){return e===void 0?"var(--mantine-radius-default)":Xe(e,"mantine-radius")}function Ot(e){return Xe(e,"mantine-font-size")}function Dw(e){return Xe(e,"mantine-line-height",!1)}function xg(e){if(e)return Xe(e,"mantine-shadow",!1)}function Ow(e,t){return e in t.breakpoints?wu(t.breakpoints[e]):wu(e)}function Sg(e,t){const n=e.map(r=>({value:r,px:Ow(r,t)}));return n.sort((r,o)=>r.px-o.px),n}function Ho(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Cg(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const Jf=["mousedown","touchstart"];function Fw(e,t,n){const r=x.useRef();return x.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(n)){const s=(l==null?void 0:l.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(l)&&l.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!s&&e()}else r.current&&!r.current.contains(l)&&e()};return(t||Jf).forEach(i=>document.addEventListener(i,o)),()=>{(t||Jf).forEach(i=>document.removeEventListener(i,o))}},[r,e,n]),r}function Aw(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function Bw(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Uw(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=x.useState(n?t:Bw(e)),i=x.useRef();return x.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),Aw(i.current,l=>o(l.matches))},[e]),r}const xs=typeof document<"u"?x.useLayoutEffect:x.useEffect;function no(e,t){const n=x.useRef(!1);x.useEffect(()=>()=>{n.current=!1},[]),x.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function Ww({opened:e,shouldReturnFocus:t=!0}){const n=x.useRef(),r=()=>{var o;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((o=n.current)==null||o.focus({preventScroll:!0}))};return no(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e,t]),r}function Hw(e,t="body > :not(script)"){const n=Cg(),r=Array.from(document.querySelectorAll(t)).map(o=>{var a;if((a=o==null?void 0:o.shadowRoot)!=null&&a.contains(e)||o.contains(e))return;const i=o.getAttribute("aria-hidden"),l=o.getAttribute("data-hidden"),s=o.getAttribute("data-focus-id");return o.setAttribute("data-focus-id",n),i===null||i==="false"?o.setAttribute("aria-hidden","true"):!l&&!s&&o.setAttribute("data-hidden",i),{node:o,ariaHidden:l||null}});return()=>{r.forEach(o=>{!o||n!==o.node.getAttribute("data-focus-id")||(o.ariaHidden===null?o.node.removeAttribute("aria-hidden"):o.node.setAttribute("aria-hidden",o.ariaHidden),o.node.removeAttribute("data-focus-id"),o.node.removeAttribute("data-hidden"))})}}const Vw=/input|select|textarea|button|object/,Eg="a, input, select, textarea, button, object, [tabindex]";function Gw(e){return e.style.display==="none"}function Qw(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(Gw(n))return!1;n=n.parentNode}return!0}function kg(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function xu(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(kg(e));return(Vw.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Qw(e)}function Rg(e){const t=kg(e);return(Number.isNaN(t)||t>=0)&&xu(e)}function Yw(e){return Array.from(e.querySelectorAll(Eg)).filter(Rg)}function Kw(e,t){const n=Yw(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let i=r===o.activeElement||e===o.activeElement;const l=o.activeElement;if(l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(i=n.filter(d=>d.getAttribute("type")==="radio"&&d.getAttribute("name")===l.getAttribute("name")).includes(r)),!i)return;t.preventDefault();const a=n[t.shiftKey?n.length-1:0];a&&a.focus()}function Xw(e=!0){const t=x.useRef(),n=x.useRef(null),r=i=>{let l=i.querySelector("[data-autofocus]");if(!l){const s=Array.from(i.querySelectorAll(Eg));l=s.find(Rg)||s.find(xu)||null,!l&&xu(i)&&(l=i)}l&&l.focus({preventScroll:!0})},o=x.useCallback(i=>{if(e){if(i===null){n.current&&(n.current(),n.current=null);return}n.current=Hw(i),t.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&r(i)}),t.current=i):t.current=null)}},[e]);return x.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const i=l=>{l.key==="Tab"&&t.current&&Kw(t.current,l)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i),n.current&&n.current()}},[e]),o}const Zw=Kp.useId||(()=>{});function Jw(){const e=Zw();return e?`mantine-${e.replace(/:/g,"")}`:""}function Nc(e){const t=Jw(),[n,r]=x.useState(t);return xs(()=>{r(Cg())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function qf(e,t,n){x.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function _g(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function qw(...e){return t=>{e.forEach(n=>_g(n,t))}}function $c(...e){return x.useCallback(qw(...e),e)}function Pg({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,i]=x.useState(t!==void 0?t:n),l=(s,...a)=>{i(s),r==null||r(s,...a)};return e!==void 0?[e,r,!0]:[o,l,!1]}function bg(e,t){return Uw("(prefers-reduced-motion: reduce)",e,t)}const ex=e=>e<.5?2*e*e:-1+(4-2*e)*e,tx=({axis:e,target:t,parent:n,alignment:r,offset:o,isList:i})=>{if(!t||!n&&typeof document>"u")return 0;const l=!!n,a=(n||document.body).getBoundingClientRect(),u=t.getBoundingClientRect(),d=c=>u[c]-a[c];if(e==="y"){const c=d("top");if(c===0)return 0;if(r==="start"){const h=c-o;return h<=u.height*(i?0:1)||!i?h:0}const f=l?a.height:window.innerHeight;if(r==="end"){const h=c+o-f+u.height;return h>=-u.height*(i?0:1)||!i?h:0}return r==="center"?c-f/2+u.height/2:0}if(e==="x"){const c=d("left");if(c===0)return 0;if(r==="start"){const h=c-o;return h<=u.width||!i?h:0}const f=l?a.width:window.innerWidth;if(r==="end"){const h=c+o-f+u.width;return h>=-u.width||!i?h:0}return r==="center"?c-f/2+u.width/2:0}return 0},nx=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const n=e==="y"?"scrollTop":"scrollLeft";if(t)return t[n];const{body:r,documentElement:o}=document;return r[n]+o[n]},rx=({axis:e,parent:t,distance:n})=>{if(!t&&typeof document>"u")return;const r=e==="y"?"scrollTop":"scrollLeft";if(t)t[r]=n;else{const{body:o,documentElement:i}=document;o[r]=n,i[r]=n}};function ox({duration:e=1250,axis:t="y",onScrollFinish:n,easing:r=ex,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const s=x.useRef(0),a=x.useRef(0),u=x.useRef(!1),d=x.useRef(null),c=x.useRef(null),f=bg(),h=()=>{s.current&&cancelAnimationFrame(s.current)},v=x.useCallback(({alignment:C="start"}={})=>{u.current=!1,s.current&&h();const m=nx({parent:d.current,axis:t})??0,p=tx({parent:d.current,target:c.current,axis:t,alignment:C,offset:o,isList:l})-(d.current?0:m);function g(){a.current===0&&(a.current=performance.now());const _=performance.now()-a.current,w=f||e===0?1:_/e,T=m+p*r(w);rx({parent:d.current,axis:t,distance:T}),!u.current&&w<1?s.current=requestAnimationFrame(g):(typeof n=="function"&&n(),a.current=0,s.current=0,h())}g()},[t,e,r,l,o,n,f]),y=()=>{i&&(u.current=!0)};return qf("wheel",y,{passive:!0}),qf("touchmove",y,{passive:!0}),x.useEffect(()=>h,[]),{scrollableRef:d,targetRef:c,scrollIntoView:v,cancel:h}}function ix(e=!1,t){const{onOpen:n,onClose:r}={},[o,i]=x.useState(e),l=x.useCallback(()=>{i(u=>u||(n==null||n(),!0))},[n]),s=x.useCallback(()=>{i(u=>u&&(r==null||r(),!1))},[r]),a=x.useCallback(()=>{o?s():l()},[s,l,o]);return[o,{open:l,close:s,toggle:a}]}var lx={};function sx(){return typeof process<"u"&&lx?"production":"development"}function Tg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{Object.entries(n).forEach(([r,o])=>{t[r]?t[r]=hn(t[r],o):t[r]=o})}),t}function Lc({theme:e,classNames:t,props:n,stylesCtx:r}){const i=(Array.isArray(t)?t:[t]).map(l=>typeof l=="function"?l(e,n,r):l||ax);return ux(i)}function Su({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((i,l)=>typeof l=="function"?{...i,...l(e,n,r)}:{...i,...l},{})}const Ng=x.createContext(null);function mr(){const e=x.useContext(Ng);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function cx(){return mr().cssVariablesResolver}function dx(){return mr().classNamesPrefix}function Mc(){return mr().getStyleNonce}function fx(){return mr().withStaticClasses}function px(){return mr().headless}function hx(){var e;return(e=mr().stylesTransform)==null?void 0:e.sx}function mx(){var e;return(e=mr().stylesTransform)==null?void 0:e.styles}function gx(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function vx(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}if(t.length===8){const l=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:l}}const n=parseInt(t,16),r=n>>16&255,o=n>>8&255,i=n&255;return{r,g:o,b:i,a:1}}function yx(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o||1}}function wx(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),o=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,l=n[5]?parseFloat(n[5]):void 0,s=(1-Math.abs(2*i-1))*o,a=r/60,u=s*(1-Math.abs(a%2-1)),d=i-s/2;let c,f,h;return a>=0&&a<1?(c=s,f=u,h=0):a>=1&&a<2?(c=u,f=s,h=0):a>=2&&a<3?(c=0,f=s,h=u):a>=3&&a<4?(c=0,f=u,h=s):a>=4&&a<5?(c=u,f=0,h=s):(c=s,f=0,h=u),{r:Math.round((c+d)*255),g:Math.round((f+d)*255),b:Math.round((h+d)*255),a:l||1}}function zc(e){return gx(e)?vx(e):e.startsWith("rgb")?yx(e):e.startsWith("hsl")?wx(e):{r:0,g:0,b:0,a:1}}function sl(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:o,a:i}=zc(e),l=1-t,s=a=>Math.round(a*l);return`rgba(${s(n)}, ${s(r)}, ${s(o)}, ${i})`}function wi(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function ma(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function xx(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Sx(e){if(e.startsWith("oklch("))return(xx(e)||0)/100;const{r:t,g:n,b:r}=zc(e),o=t/255,i=n/255,l=r/255,s=ma(o),a=ma(i),u=ma(l);return .2126*s+.7152*a+.0722*u}function zo(e,t=.179){return e.startsWith("var(")?!1:Sx(e)>t}function gr({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:zo(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:zo(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:zo(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),i=o?Number(o):void 0,l=r in t.colors;if(l){const s=i!==void 0?t.colors[r][i]:t.colors[r][wi(t,n||"light")];return{color:r,value:s,shade:i,isThemeColor:l,isLight:zo(s,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${i}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:zo(e,t.luminanceThreshold),shade:i,variable:void 0}}function cn(e,t){const n=gr({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Cu(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)||t.defaultGradient.deg||0},r=cn(n.from,t),o=cn(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function qt(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=zc(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const kr=qt,Cx=({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const i=gr({color:e,theme:t}),l=typeof o=="boolean"?o:t.autoContrast;if(n==="filled"){const s=l&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:s,border:`${$(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:s,border:`${$(1)} solid transparent`}:{background:e,hover:sl(e,.1),color:s,border:`${$(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${$(1)} solid transparent`};const s=t.colors[i.color][i.shade];return{background:qt(s,.1),hover:qt(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${$(1)} solid transparent`}}return{background:qt(e,.1),hover:qt(e,.12),color:e,border:`${$(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${$(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:qt(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${$(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:qt(e,.05),color:e,border:`${$(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${$(1)} solid transparent`};const s=t.colors[i.color][i.shade];return{background:"transparent",hover:qt(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${$(1)} solid transparent`}}return{background:"transparent",hover:qt(e,.12),color:e,border:`${$(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${$(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${$(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${$(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:sl(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${$(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:sl(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${$(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:sl(t.white,.01),color:e,border:`${$(1)} solid transparent`}:n==="gradient"?{background:Cu(r,t),hover:Cu(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${$(1)} solid var(--mantine-color-default-border)`}:{}},Ex={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},ep="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",jc={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:Ex,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:Cx,autoContrast:!1,luminanceThreshold:.3,fontFamily:ep,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:ep,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:$(34),lineHeight:"1.3"},h2:{fontSize:$(26),lineHeight:"1.35"},h3:{fontSize:$(22),lineHeight:"1.4"},h4:{fontSize:$(18),lineHeight:"1.45"},h5:{fontSize:$(16),lineHeight:"1.5"},h6:{fontSize:$(14),lineHeight:"1.5"}}},fontSizes:{xs:$(12),sm:$(14),md:$(16),lg:$(18),xl:$(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:$(2),sm:$(4),md:$(8),lg:$(16),xl:$(32)},spacing:{xs:$(10),sm:$(12),md:$(16),lg:$(20),xl:$(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), 0 ${$(1)} ${$(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(10)} ${$(15)} ${$(-5)}, rgba(0, 0, 0, 0.04) 0 ${$(7)} ${$(7)} ${$(-5)}`,md:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(20)} ${$(25)} ${$(-5)}, rgba(0, 0, 0, 0.04) 0 ${$(10)} ${$(10)} ${$(-5)}`,lg:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(28)} ${$(23)} ${$(-7)}, rgba(0, 0, 0, 0.04) 0 ${$(12)} ${$(12)} ${$(-7)}`,xl:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(36)} ${$(28)} ${$(-7)}, rgba(0, 0, 0, 0.04) 0 ${$(17)} ${$(17)} ${$(-7)}`},other:{},components:{}};function tp(e){return e==="auto"||e==="dark"||e==="light"}function kx({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return tp(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&tp(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const Rx="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",np="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function ga(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function rp(e){if(!(e.primaryColor in e.colors))throw new Error(Rx);if(typeof e.primaryShade=="object"&&(!ga(e.primaryShade.dark)||!ga(e.primaryShade.light)))throw new Error(np);if(typeof e.primaryShade=="number"&&!ga(e.primaryShade))throw new Error(np)}function _x(e,t){var r;if(!t)return rp(e),e;const n=Tc(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),rp(n),n}const Ic=x.createContext(null),Px=()=>x.useContext(Ic)||jc;function Kt(){const e=x.useContext(Ic);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function $g({theme:e,children:t,inherit:n=!0}){const r=Px(),o=x.useMemo(()=>_x(n?r:jc,e),[e,r,n]);return k.jsx(Ic.Provider,{value:o,children:t})}$g.displayName="@mantine/core/MantineThemeProvider";function bx(){const e=Kt(),t=Mc(),n=Ye(e.breakpoints).reduce((r,o)=>{const i=e.breakpoints[o].includes("px"),l=wu(e.breakpoints[o]),s=i?`${l-.1}px`:Zf(l-.1),a=i?`${l}px`:Zf(l);return`${r}@media (max-width: ${s}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${a}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return k.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function va(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function jo(e,t){return(Array.isArray(e)?e:[e]).reduce((r,o)=>`${o}{${r}}`,t)}function Tx(e,t){const n=va(e.variables),r=n?jo(t,n):"",o=va(e.dark),i=va(e.light),l=o?jo(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):"",s=i?jo(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,i):"";return`${r}${l}${s}`}function Dc({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&gr({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function op(e,t){return Dc({color:e.colors[e.primaryColor][wi(e,t)],theme:e,autoContrast:null})}function al({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const s=wi(e,"light"),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:kr(e.colors[t][s],.1),[`--mantine-color-${r}-light-hover`]:kr(e.colors[t][s],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-outline-hover`]:kr(e.colors[t][s],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}const i=wi(e,"dark"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${i})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${i===9?8:i+1})`,[`--mantine-color-${r}-light`]:kr(e.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${r}-light-hover`]:kr(e.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(i-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(i-4,0)})`,[`--mantine-color-${r}-outline-hover`]:kr(e.colors[t][Math.max(i-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...l}:l}function Nx(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Rr(e,t,n){Ye(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const Lg=e=>{const t=wi(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:$(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":op(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":op(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};Rr(r.variables,e.breakpoints,"breakpoint"),Rr(r.variables,e.spacing,"spacing"),Rr(r.variables,e.fontSizes,"font-size"),Rr(r.variables,e.lineHeights,"line-height"),Rr(r.variables,e.shadows,"shadow"),Rr(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{r.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),Ye(e.colors).forEach(i=>{const l=e.colors[i];if(Nx(l)){Object.assign(r.light,al({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,al({theme:e,name:l.name,color:l.dark,colorScheme:"dark",withColorValues:!0}));return}l.forEach((s,a)=>{r.variables[`--mantine-color-${i}-${a}`]=s}),Object.assign(r.light,al({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,al({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return Ye(o).forEach(i=>{r.variables[`--mantine-${i}-font-size`]=o[i].fontSize,r.variables[`--mantine-${i}-line-height`]=o[i].lineHeight,r.variables[`--mantine-${i}-font-weight`]=o[i].fontWeight||e.headings.fontWeight}),r};function $x({theme:e,generator:t}){const n=Lg(e),r=t==null?void 0:t(e);return r?Tc(n,r):n}const ya=Lg(jc);function Lx(e){const t={variables:{},light:{},dark:{}};return Ye(e.variables).forEach(n=>{ya.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Ye(e.light).forEach(n=>{ya.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Ye(e.dark).forEach(n=>{ya.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Mx(e){return` + ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } + ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } +`}function Mg({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Kt(),r=Mc(),o=cx(),i=$x({theme:n,generator:o}),l=e===":root"&&t,s=l?Lx(i):i,a=Tx(s,e);return a?k.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${a}${l?"":Mx(e)}`}}):null}Mg.displayName="@mantine/CssVariables";function zx(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function _r(e,t){var r;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(r=t())==null||r.setAttribute("data-mantine-color-scheme",n)}function jx({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=x.useRef(),[i,l]=x.useState(()=>e.get(t)),s=r||i,a=x.useCallback(d=>{r||(_r(d,n),l(d),e.set(d))},[e.set,s,r]),u=x.useCallback(()=>{l(t),_r(t,n),e.clear()},[e.clear,t]);return x.useEffect(()=>(e.subscribe(a),e.unsubscribe),[e.subscribe,e.unsubscribe]),xs(()=>{_r(e.get(t),n)},[]),x.useEffect(()=>{var c;if(r)return _r(r,n),()=>{};r===void 0&&_r(i,n),o.current=window.matchMedia("(prefers-color-scheme: dark)");const d=f=>{i==="auto"&&_r(f.matches?"dark":"light",n)};return(c=o.current)==null||c.addEventListener("change",d),()=>{var f;return(f=o.current)==null?void 0:f.removeEventListener("change",d)}},[i,r]),{colorScheme:s,setColorScheme:a,clearColorScheme:u}}function Ix({respectReducedMotion:e,getRootElement:t}){xs(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}zx();function zg({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:i=!0,withCssVariables:l=!0,cssVariablesSelector:s=":root",classNamesPrefix:a="mantine",colorSchemeManager:u=kx(),defaultColorScheme:d="light",getRootElement:c=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:h,stylesTransform:v}){const{colorScheme:y,setColorScheme:C,clearColorScheme:m}=jx({defaultColorScheme:d,forceColorScheme:h,manager:u,getRootElement:c});return Ix({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:c}),k.jsx(Ng.Provider,{value:{colorScheme:y,setColorScheme:C,clearColorScheme:m,getRootElement:c,classNamesPrefix:a,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:r,stylesTransform:v},children:k.jsxs($g,{theme:e,children:[l&&k.jsx(Mg,{cssVariablesSelector:s,deduplicateCssVariables:i}),o&&k.jsx(bx,{}),t]})})}zg.displayName="@mantine/core/MantineProvider";const Dx={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function Ox({theme:e,options:t,unstyled:n}){return hn((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||Dx[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function Fx({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return Lc({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}function ip({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return Lc({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function Ax({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Bx({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Ux({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function Wx({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map(i=>{var l,s;return(s=Lc({theme:t,classNames:(l=t.components[i])==null?void 0:l.classNames,props:r,stylesCtx:o}))==null?void 0:s[n]})}function Hx({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function Vx({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:i,classes:l,unstyled:s,className:a,rootSelector:u,props:d,stylesCtx:c,withStaticClasses:f,headless:h,transformedStyles:v}){return hn(Ox({theme:e,options:t,unstyled:s||h}),Wx({theme:e,themeName:n,selector:r,props:d,stylesCtx:c}),Hx({options:t,classes:l,selector:r,unstyled:s}),ip({selector:r,stylesCtx:c,theme:e,classNames:i,props:d}),ip({selector:r,stylesCtx:c,theme:e,classNames:v,props:d}),Fx({selector:r,stylesCtx:c,options:t,props:d,theme:e}),Ax({rootSelector:u,selector:r,className:a}),Bx({selector:r,classes:l,unstyled:s||h}),f&&!h&&Ux({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function Gx({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map(i=>{var l;return Su({theme:e,styles:(l=e.components[i])==null?void 0:l.styles,props:n,stylesCtx:r})[o]}).reduce((i,l)=>({...i,...l}),{})}function Eu({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...Eu({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function Qx(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...co(n[r])}}),t),{})}function Yx({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:i,themeName:l,headless:s}){var a;return(a=Qx([s?{}:t==null?void 0:t(n,r,o),...l.map(u=>{var d,c,f;return(f=(c=(d=n.components)==null?void 0:d[u])==null?void 0:c.vars)==null?void 0:f.call(c,n,r,o)}),e==null?void 0:e(n,r,o)]))==null?void 0:a[i]}function Kx({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:i,rootSelector:l,styles:s,style:a,vars:u,varsResolver:d,headless:c,withStylesTransform:f}){return{...!f&&Gx({theme:e,themeName:t,props:o,stylesCtx:i,selector:n}),...!f&&Su({theme:e,styles:s,props:o,stylesCtx:i})[n],...!f&&Su({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:i})[n],...Yx({theme:e,props:o,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:t,headless:c}),...l===n?Eu({style:a,theme:e}):null,...Eu({style:r==null?void 0:r.style,theme:e})}}function Xx({props:e,stylesCtx:t,themeName:n}){var l;const r=Kt(),o=(l=mx())==null?void 0:l();return{getTransformedStyles:s=>o?[...s.map(u=>o(u,{props:e,theme:r,ctx:t})),...n.map(u=>{var d;return o((d=r.components[u])==null?void 0:d.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!o}}function he({name:e,classes:t,props:n,stylesCtx:r,className:o,style:i,rootSelector:l="root",unstyled:s,classNames:a,styles:u,vars:d,varsResolver:c}){const f=Kt(),h=dx(),v=fx(),y=px(),C=(Array.isArray(e)?e:[e]).filter(g=>g),{withStylesTransform:m,getTransformedStyles:p}=Xx({props:n,stylesCtx:r,themeName:C});return(g,S)=>({className:Vx({theme:f,options:S,themeName:C,selector:g,classNamesPrefix:h,classNames:a,classes:t,unstyled:s,className:o,rootSelector:l,props:n,stylesCtx:r,withStaticClasses:v,headless:y,transformedStyles:p([S==null?void 0:S.styles,u])}),style:Kx({theme:f,themeName:C,selector:g,options:S,props:n,stylesCtx:r,rootSelector:l,styles:u,style:i,vars:d,varsResolver:c,headless:y,withStylesTransform:m})})}function jg(e,t){return typeof e=="boolean"?e:t.autoContrast}function ne(e,t,n){var l;const r=Kt(),o=(l=r.components[e])==null?void 0:l.defaultProps,i=typeof o=="function"?o(r):o;return{...t,...i,...co(n)}}function wa(e){return Ye(e).reduce((t,n)=>e[n]!==void 0?`${t}${$w(n)}:${e[n]};`:t,"").trim()}function Zx({selector:e,styles:t,media:n,container:r}){const o=t?wa(t):"",i=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${wa(s.styles)}}}`):[],l=Array.isArray(r)?r.map(s=>`@container ${s.query}{${e}{${wa(s.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${i.join("")}${l.join("")}`.trim()}function Ss(e){const t=Mc();return k.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:Zx(e)}})}function Cs(e){const{m:t,mx:n,my:r,mt:o,mb:i,ml:l,mr:s,me:a,ms:u,p:d,px:c,py:f,pt:h,pb:v,pl:y,pr:C,pe:m,ps:p,bd:g,bg:S,c:_,opacity:w,ff:T,fz:b,fw:z,lts:L,ta:W,lh:V,fs:Y,tt:F,td:ee,w:oe,miw:B,maw:M,h:D,mih:O,mah:X,bgsz:te,bgp:Le,bgr:ve,bga:Fe,pos:Pe,top:ct,left:Xt,bottom:Vn,right:go,inset:vo,display:Me,flex:bt,hiddenFrom:ze,visibleFrom:yo,lightHidden:Tt,darkHidden:vr,sx:yr,...Gn}=e;return{styleProps:co({m:t,mx:n,my:r,mt:o,mb:i,ml:l,mr:s,me:a,ms:u,p:d,px:c,py:f,pt:h,pb:v,pl:y,pr:C,pe:m,ps:p,bd:g,bg:S,c:_,opacity:w,ff:T,fz:b,fw:z,lts:L,ta:W,lh:V,fs:Y,tt:F,td:ee,w:oe,miw:B,maw:M,h:D,mih:O,mah:X,bgsz:te,bgp:Le,bgr:ve,bga:Fe,pos:Pe,top:ct,left:Xt,bottom:Vn,right:go,inset:vo,display:Me,flex:bt,hiddenFrom:ze,visibleFrom:yo,lightHidden:Tt,darkHidden:vr,sx:yr}),rest:Gn}}const Jx={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function Oc(e,t){const n=gr({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function qx(e,t){const n=gr({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Oc(e,t)}function eS(e,t){if(typeof e=="number")return $(e);if(typeof e=="string"){const[n,r,...o]=e.split(" ").filter(l=>l.trim()!=="");let i=`${$(n)}`;return r&&(i+=` ${r}`),o.length>0&&(i+=` ${Oc(o.join(" "),t)}`),i.trim()}return e}const lp={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function tS(e){return typeof e=="string"&&e in lp?lp[e]:e}const nS=["h1","h2","h3","h4","h5","h6"];function rS(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&nS.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?$(e):e}function oS(e){return e}const iS=["h1","h2","h3","h4","h5","h6"];function lS(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&iS.includes(e)?`var(--mantine-${e}-line-height)`:e}function sS(e){return typeof e=="number"?$(e):e}function aS(e,t){if(typeof e=="number")return $(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return $(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const xa={color:Oc,textColor:qx,fontSize:rS,spacing:aS,identity:oS,size:sS,lineHeight:lS,fontFamily:tS,border:eS};function sp(e){return e.replace("(min-width: ","").replace("em)","")}function uS({media:e,...t}){const r=Object.keys(e).sort((o,i)=>Number(sp(o))-Number(sp(i))).map(o=>({query:o,styles:e[o]}));return{...t,media:r}}function cS(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function dS(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function fS(e){return typeof e=="object"&&e!==null?Ye(e).filter(t=>t!=="base"):[]}function pS(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function Ig({styleProps:e,data:t,theme:n}){return uS(Ye(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const i=t[o],l=Array.isArray(i.property)?i.property:[i.property],s=dS(e[o]);if(!cS(e[o]))return l.forEach(u=>{r.inlineStyles[u]=xa[i.type](s,n)}),r;r.hasResponsiveStyles=!0;const a=fS(e[o]);return l.forEach(u=>{s&&(r.styles[u]=xa[i.type](s,n)),a.forEach(d=>{const c=`(min-width: ${n.breakpoints[d]})`;r.media[c]={...r.media[c],[u]:xa[i.type](pS(e[o],d),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Es(){return`__m__-${x.useId().replace(/:/g,"")}`}function Dg(e){return e.startsWith("data-")?e:`data-${e}`}function hS(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[Dg(n)]=e[n]),t},{})}function Og(e){return e?typeof e=="string"?{[Dg(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...Og(n)}),{}):hS(e):null}function ku(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...ku(r,t)}),{}):typeof e=="function"?e(t):e??{}}function mS({theme:e,style:t,vars:n,styleProps:r}){const o=ku(t,e),i=ku(n,e);return{...o,...i,...r}}const Fg=x.forwardRef(({component:e,style:t,__vars:n,className:r,variant:o,mod:i,size:l,hiddenFrom:s,visibleFrom:a,lightHidden:u,darkHidden:d,renderRoot:c,__size:f,...h},v)=>{var b;const y=Kt(),C=e||"div",{styleProps:m,rest:p}=Cs(h),g=hx(),S=(b=g==null?void 0:g())==null?void 0:b(m.sx),_=Es(),w=Ig({styleProps:m,theme:y,data:Jx}),T={ref:v,style:mS({theme:y,style:t,vars:n,styleProps:w.inlineStyles}),className:hn(r,S,{[_]:w.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${a}`]:a}),"data-variant":o,"data-size":gg(l)?void 0:l||void 0,size:f,...Og(i),...p};return k.jsxs(k.Fragment,{children:[w.hasResponsiveStyles&&k.jsx(Ss,{selector:`.${_}`,styles:w.styles,media:w.media}),typeof c=="function"?c(T):k.jsx(C,{...T})]})});Fg.displayName="@mantine/core/Box";const J=Fg;function Ag(e){return e}function _e(e){const t=x.forwardRef(e);return t.extend=Ag,t.withProps=n=>{const r=x.forwardRef((o,i)=>k.jsx(t,{...n,...o,ref:i}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function Hn(e){const t=x.forwardRef(e);return t.withProps=n=>{const r=x.forwardRef((o,i)=>k.jsx(t,{...n,...o,ref:i}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=Ag,t}const gS=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Bg(){return x.useContext(gS)}var Ug={root:"m_87cf2631"};const vS={__staticSelector:"UnstyledButton"},fo=Hn((e,t)=>{const n=ne("UnstyledButton",vS,e),{className:r,component:o="button",__staticSelector:i,unstyled:l,classNames:s,styles:a,style:u,...d}=n,c=he({name:i,props:n,classes:Ug,className:r,style:u,classNames:s,styles:a,unstyled:l});return k.jsx(J,{...c("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...d})});fo.classes=Ug;fo.displayName="@mantine/core/UnstyledButton";var Wg={root:"m_515a97f8"};const yS={},Fc=_e((e,t)=>{const n=ne("VisuallyHidden",yS,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,...u}=n,d=he({name:"VisuallyHidden",classes:Wg,props:n,className:o,style:i,classNames:r,styles:l,unstyled:s});return k.jsx(J,{component:"span",ref:t,...d("root"),...u})});Fc.classes=Wg;Fc.displayName="@mantine/core/VisuallyHidden";var Hg={root:"m_1b7284a3"};const wS={},xS=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Wn(t),"--paper-shadow":xg(n)}}),Ac=Hn((e,t)=>{const n=ne("Paper",wS,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,withBorder:a,vars:u,radius:d,shadow:c,variant:f,mod:h,...v}=n,y=he({name:"Paper",props:n,classes:Hg,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:u,varsResolver:xS});return k.jsx(J,{ref:t,mod:[{"data-with-border":a},h],...y("root"),variant:f,...v})});Ac.classes=Hg;Ac.displayName="@mantine/core/Paper";function po(e){return Vg(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return(t=(Vg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vg(e){return e instanceof Node||e instanceof vt(e).Node}function tt(e){return e instanceof Element||e instanceof vt(e).Element}function Yt(e){return e instanceof HTMLElement||e instanceof vt(e).HTMLElement}function ap(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}function Ni(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function SS(e){return["table","td","th"].includes(po(e))}function ks(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bc(e){const t=Uc(),n=tt(e)?At(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 CS(e){let t=Dn(e);for(;Yt(t)&&!ro(t);){if(Bc(t))return t;if(ks(t))return null;t=Dn(t)}return null}function Uc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ro(e){return["html","body","#document"].includes(po(e))}function At(e){return vt(e).getComputedStyle(e)}function Rs(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dn(e){if(po(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||mn(e);return ap(t)?t.host:t}function Gg(e){const t=Dn(e);return ro(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Ni(t)?t:Gg(t)}function xi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gg(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=vt(o);if(i){const s=Ru(l);return t.concat(l,l.visualViewport||[],Ni(o)?o:[],s&&n?xi(s):[])}return t.concat(o,xi(o,[],n))}function Ru(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const mt=Math.min,Qe=Math.max,Jl=Math.round,ul=Math.floor,On=e=>({x:e,y:e}),ES={left:"right",right:"left",bottom:"top",top:"bottom"},kS={start:"end",end:"start"};function _u(e,t,n){return Qe(e,mt(t,n))}function dn(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function ho(e){return e.split("-")[1]}function Wc(e){return e==="x"?"y":"x"}function Hc(e){return e==="y"?"height":"width"}function fn(e){return["top","bottom"].includes(Bt(e))?"y":"x"}function Vc(e){return Wc(fn(e))}function RS(e,t,n){n===void 0&&(n=!1);const r=ho(e),o=Vc(e),i=Hc(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=ql(l)),[l,ql(l)]}function _S(e){const t=ql(e);return[Pu(e),t,Pu(t)]}function Pu(e){return e.replace(/start|end/g,t=>kS[t])}function PS(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function bS(e,t,n,r){const o=ho(e);let i=PS(Bt(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Pu)))),i}function ql(e){return e.replace(/left|right|bottom|top/g,t=>ES[t])}function TS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gc(e){return typeof e!="number"?TS(e):{top:e,right:e,bottom:e,left:e}}function oo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function up(e,t,n){let{reference:r,floating:o}=e;const i=fn(t),l=Vc(t),s=Hc(l),a=Bt(t),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(a){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(ho(t)){case"start":h[l]-=f*(n&&u?-1:1);break;case"end":h[l]+=f*(n&&u?-1:1);break}return h}const NS=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=up(u,r,a),f=r,h={},v=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:d=0}=dn(e,t)||{};if(u==null)return{};const c=Gc(d),f={x:n,y:r},h=Vc(o),v=Hc(h),y=await l.getDimensions(u),C=h==="y",m=C?"top":"left",p=C?"bottom":"right",g=C?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[h]-f[h]-i.floating[v],_=f[h]-i.reference[h],w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let T=w?w[g]:0;(!T||!await(l.isElement==null?void 0:l.isElement(w)))&&(T=s.floating[g]||i.floating[v]);const b=S/2-_/2,z=T/2-y[v]/2-1,L=mt(c[m],z),W=mt(c[p],z),V=L,Y=T-y[v]-W,F=T/2-y[v]/2+b,ee=_u(V,F,Y),oe=!a.arrow&&ho(o)!=null&&F!==ee&&i.reference[v]/2-(FF<=0)){var W,V;const F=(((W=i.flip)==null?void 0:W.index)||0)+1,ee=T[F];if(ee)return{data:{index:F,overflows:L},reset:{placement:ee}};let oe=(V=L.filter(B=>B.overflows[0]<=0).sort((B,M)=>B.overflows[1]-M.overflows[1])[0])==null?void 0:V.placement;if(!oe)switch(h){case"bestFit":{var Y;const B=(Y=L.filter(M=>{if(w){const D=fn(M.placement);return D===p||D==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(D=>D>0).reduce((D,O)=>D+O,0)]).sort((M,D)=>M[1]-D[1])[0])==null?void 0:Y[0];B&&(oe=B);break}case"initialPlacement":oe=s;break}if(o!==oe)return{reset:{placement:oe}}}return{}}}};function Qg(e){const t=mt(...e.map(i=>i.left)),n=mt(...e.map(i=>i.top)),r=Qe(...e.map(i=>i.right)),o=Qe(...e.map(i=>i.bottom));return{x:t,y:n,width:r-t,height:o-n}}function MS(e){const t=e.slice().sort((o,i)=>o.y-i.y),n=[];let r=null;for(let o=0;or.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(o=>oo(Qg(o)))}const zS=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:l}=t,{padding:s=2,x:a,y:u}=dn(e,t),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(r.reference))||[]),c=MS(d),f=oo(Qg(d)),h=Gc(s);function v(){if(c.length===2&&c[0].left>c[1].right&&a!=null&&u!=null)return c.find(C=>a>C.left-h.left&&aC.top-h.top&&u=2){if(fn(n)==="y"){const L=c[0],W=c[c.length-1],V=Bt(n)==="top",Y=L.top,F=W.bottom,ee=V?L.left:W.left,oe=V?L.right:W.right,B=oe-ee,M=F-Y;return{top:Y,bottom:F,left:ee,right:oe,width:B,height:M,x:ee,y:Y}}const C=Bt(n)==="left",m=Qe(...c.map(L=>L.right)),p=mt(...c.map(L=>L.left)),g=c.filter(L=>C?L.left===p:L.right===m),S=g[0].top,_=g[g.length-1].bottom,w=p,T=m,b=T-w,z=_-S;return{top:S,bottom:_,left:w,right:T,width:b,height:z,x:w,y:S}}return f}const y=await i.getElementRects({reference:{getBoundingClientRect:v},floating:r.floating,strategy:l});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function jS(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Bt(n),s=ho(n),a=fn(n)==="y",u=["left","top"].includes(l)?-1:1,d=i&&a?-1:1,c=dn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),a?{x:h*d,y:f*u}:{x:f*u,y:h*d}}const IS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await jS(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},DS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:C=>{let{x:m,y:p}=C;return{x:m,y:p}}},...a}=dn(e,t),u={x:n,y:r},d=await Qc(t,a),c=fn(Bt(o)),f=Wc(c);let h=u[f],v=u[c];if(i){const C=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=h+d[C],g=h-d[m];h=_u(p,h,g)}if(l){const C=c==="y"?"top":"left",m=c==="y"?"bottom":"right",p=v+d[C],g=v-d[m];v=_u(p,v,g)}const y=s.fn({...t,[f]:h,[c]:v});return{...y,data:{x:y.x-n,y:y.y-r}}}}},OS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=dn(e,t),d={x:n,y:r},c=fn(o),f=Wc(c);let h=d[f],v=d[c];const y=dn(s,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const g=f==="y"?"height":"width",S=i.reference[f]-i.floating[g]+C.mainAxis,_=i.reference[f]+i.reference[g]-C.mainAxis;h_&&(h=_)}if(u){var m,p;const g=f==="y"?"width":"height",S=["top","left"].includes(Bt(o)),_=i.reference[c]-i.floating[g]+(S&&((m=l.offset)==null?void 0:m[c])||0)+(S?0:C.crossAxis),w=i.reference[c]+i.reference[g]+(S?0:((p=l.offset)==null?void 0:p[c])||0)-(S?C.crossAxis:0);v<_?v=_:v>w&&(v=w)}return{[f]:h,[c]:v}}}},FS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=dn(e,t),a=await Qc(t,s),u=Bt(n),d=ho(n),c=fn(n)==="y",{width:f,height:h}=r.floating;let v,y;u==="top"||u==="bottom"?(v=u,y=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,v=d==="end"?"top":"bottom");const C=h-a.top-a.bottom,m=f-a.left-a.right,p=mt(h-a[v],C),g=mt(f-a[y],m),S=!t.middlewareData.shift;let _=p,w=g;if(c?w=d||S?mt(g,m):m:_=d||S?mt(p,C):C,S&&!d){const b=Qe(a.left,0),z=Qe(a.right,0),L=Qe(a.top,0),W=Qe(a.bottom,0);c?w=f-2*(b!==0||z!==0?b+z:Qe(a.left,a.right)):_=h-2*(L!==0||W!==0?L+W:Qe(a.top,a.bottom))}await l({...t,availableWidth:w,availableHeight:_});const T=await o.getDimensions(i.floating);return f!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Yg(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yt(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=Jl(n)!==i||Jl(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Yc(e){return tt(e)?e:e.contextElement}function Gr(e){const t=Yc(e);if(!Yt(t))return On(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Yg(t);let l=(i?Jl(n.width):n.width)/r,s=(i?Jl(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const AS=On(0);function Kg(e){const t=vt(e);return!Uc()||!t.visualViewport?AS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Yc(e);let l=On(1);t&&(r?tt(r)&&(l=Gr(r)):l=Gr(e));const s=BS(i,n,r)?Kg(i):On(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,d=o.width/l.x,c=o.height/l.y;if(i){const f=vt(i),h=r&&tt(r)?vt(r):r;let v=f,y=Ru(v);for(;y&&r&&h!==v;){const C=Gr(y),m=y.getBoundingClientRect(),p=At(y),g=m.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,S=m.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;a*=C.x,u*=C.y,d*=C.x,c*=C.y,a+=g,u+=S,v=vt(y),y=Ru(v)}}return oo({width:d,height:c,x:a,y:u})}function US(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=mn(r),s=t?ks(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=On(1);const d=On(0),c=Yt(r);if((c||!c&&!i)&&((po(r)!=="body"||Ni(l))&&(a=Rs(r)),Yt(r))){const f=fr(r);u=Gr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x,y:n.y*u.y-a.scrollTop*u.y+d.y}}function WS(e){return Array.from(e.getClientRects())}function Xg(e){return fr(mn(e)).left+Rs(e).scrollLeft}function HS(e){const t=mn(e),n=Rs(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Xg(e);const s=-n.scrollTop;return At(r).direction==="rtl"&&(l+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function VS(e,t){const n=vt(e),r=mn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Uc();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function GS(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Yt(e)?Gr(e):On(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function cp(e,t,n){let r;if(t==="viewport")r=VS(e,n);else if(t==="document")r=HS(mn(e));else if(tt(t))r=GS(t,n);else{const o=Kg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return oo(r)}function Zg(e,t){const n=Dn(e);return n===t||!tt(n)||ro(n)?!1:At(n).position==="fixed"||Zg(n,t)}function QS(e,t){const n=t.get(e);if(n)return n;let r=xi(e,[],!1).filter(s=>tt(s)&&po(s)!=="body"),o=null;const i=At(e).position==="fixed";let l=i?Dn(e):e;for(;tt(l)&&!ro(l);){const s=At(l),a=Bc(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ni(l)&&!a&&Zg(e,l))?r=r.filter(d=>d!==l):o=s,l=Dn(l)}return t.set(e,r),r}function YS(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?ks(t)?[]:QS(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,d)=>{const c=cp(t,d,o);return u.top=Qe(c.top,u.top),u.right=mt(c.right,u.right),u.bottom=mt(c.bottom,u.bottom),u.left=Qe(c.left,u.left),u},cp(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function KS(e){const{width:t,height:n}=Yg(e);return{width:t,height:n}}function XS(e,t,n){const r=Yt(t),o=mn(t),i=n==="fixed",l=fr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=On(0);if(r||!r&&!i)if((po(t)!=="body"||Ni(o))&&(s=Rs(t)),r){const c=fr(t,!0,i,t);a.x=c.x+t.clientLeft,a.y=c.y+t.clientTop}else o&&(a.x=Xg(o));const u=l.left+s.scrollLeft-a.x,d=l.top+s.scrollTop-a.y;return{x:u,y:d,width:l.width,height:l.height}}function Sa(e){return At(e).position==="static"}function dp(e,t){return!Yt(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jg(e,t){const n=vt(e);if(ks(e))return n;if(!Yt(e)){let o=Dn(e);for(;o&&!ro(o);){if(tt(o)&&!Sa(o))return o;o=Dn(o)}return n}let r=dp(e,t);for(;r&&SS(r)&&Sa(r);)r=dp(r,t);return r&&ro(r)&&Sa(r)&&!Bc(r)?n:r||CS(e)||n}const ZS=async function(e){const t=this.getOffsetParent||Jg,n=this.getDimensions,r=await n(e.floating);return{reference:XS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JS(e){return At(e).direction==="rtl"}const qS={convertOffsetParentRelativeRectToViewportRelativeRect:US,getDocumentElement:mn,getClippingRect:YS,getOffsetParent:Jg,getElementRects:ZS,getClientRects:WS,getDimensions:KS,getScale:Gr,isElement:tt,isRTL:JS};function eC(e,t){let n=null,r;const o=mn(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:d,width:c,height:f}=e.getBoundingClientRect();if(s||t(),!c||!f)return;const h=ul(d),v=ul(o.clientWidth-(u+c)),y=ul(o.clientHeight-(d+f)),C=ul(u),p={rootMargin:-h+"px "+-v+"px "+-y+"px "+-C+"px",threshold:Qe(0,mt(1,a))||1};let g=!0;function S(_){const w=_[0].intersectionRatio;if(w!==a){if(!g)return l();w?l(!1,w):r=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,p)}n.observe(e)}return l(!0),i}function tC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Yc(e),d=o||i?[...u?xi(u):[],...xi(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=u&&s?eC(u,n):null;let f=-1,h=null;l&&(h=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),u&&!a&&h.observe(u),h.observe(t));let v,y=a?fr(e):null;a&&C();function C(){const m=fr(e);y&&(m.x!==y.x||m.y!==y.y||m.width!==y.width||m.height!==y.height)&&n(),y=m,v=requestAnimationFrame(C)}return n(),()=>{var m;d.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),c==null||c(),(m=h)==null||m.disconnect(),h=null,a&&cancelAnimationFrame(v)}}const nC=IS,rC=DS,oC=LS,iC=FS,fp=$S,lC=zS,sC=OS,aC=(e,t,n)=>{const r=new Map,o={platform:qS,...n},i={...o.platform,_c:r};return NS(e,t,{...o,platform:i})};var kl=typeof document<"u"?x.useLayoutEffect:x.useEffect;function es(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!es(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!es(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pp(e,t){const n=qg(e);return Math.round(t*n)/n}function hp(e){const t=x.useRef(e);return kl(()=>{t.current=e}),t}function uC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[d,c]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=x.useState(r);es(f,r)||h(r);const[v,y]=x.useState(null),[C,m]=x.useState(null),p=x.useCallback(B=>{B!==w.current&&(w.current=B,y(B))},[]),g=x.useCallback(B=>{B!==T.current&&(T.current=B,m(B))},[]),S=i||v,_=l||C,w=x.useRef(null),T=x.useRef(null),b=x.useRef(d),z=a!=null,L=hp(a),W=hp(o),V=x.useCallback(()=>{if(!w.current||!T.current)return;const B={placement:t,strategy:n,middleware:f};W.current&&(B.platform=W.current),aC(w.current,T.current,B).then(M=>{const D={...M,isPositioned:!0};Y.current&&!es(b.current,D)&&(b.current=D,uo.flushSync(()=>{c(D)}))})},[f,t,n,W]);kl(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(B=>({...B,isPositioned:!1})))},[u]);const Y=x.useRef(!1);kl(()=>(Y.current=!0,()=>{Y.current=!1}),[]),kl(()=>{if(S&&(w.current=S),_&&(T.current=_),S&&_){if(L.current)return L.current(S,_,V);V()}},[S,_,V,L,z]);const F=x.useMemo(()=>({reference:w,floating:T,setReference:p,setFloating:g}),[p,g]),ee=x.useMemo(()=>({reference:S,floating:_}),[S,_]),oe=x.useMemo(()=>{const B={position:n,left:0,top:0};if(!ee.floating)return B;const M=pp(ee.floating,d.x),D=pp(ee.floating,d.y);return s?{...B,transform:"translate("+M+"px, "+D+"px)",...qg(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:D}},[n,s,ee.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:V,refs:F,elements:ee,floatingStyles:oe}),[d,V,F,ee,oe])}const cC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?fp({element:r.current,padding:o}).fn(n):{}:r?fp({element:r,padding:o}).fn(n):{}}}},dC=(e,t)=>({...nC(e),options:[e,t]}),fC=(e,t)=>({...rC(e),options:[e,t]}),mp=(e,t)=>({...sC(e),options:[e,t]}),gp=(e,t)=>({...oC(e),options:[e,t]}),pC=(e,t)=>({...iC(e),options:[e,t]}),vp=(e,t)=>({...lC(e),options:[e,t]}),hC=(e,t)=>({...cC(e),options:[e,t]}),ev={...Xp},mC=ev.useInsertionEffect,gC=mC||(e=>e());function vC(e){const t=x.useRef(()=>{});return gC(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+yC++;function wC(){const[e,t]=x.useState(()=>yp?wp():void 0);return bu(()=>{e==null&&t(wp())},[]),x.useEffect(()=>{yp=!0},[]),e}const xC=ev.useId,SC=xC||wC;function CC(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const EC=x.createContext(null),kC=x.createContext(null),RC=()=>{var e;return((e=x.useContext(EC))==null?void 0:e.id)||null},_C=()=>x.useContext(kC);function PC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=SC(),i=x.useRef({}),[l]=x.useState(()=>CC()),s=RC()!=null,[a,u]=x.useState(r.reference),d=vC((h,v,y)=>{i.current.openEvent=h?v:void 0,l.emit("openchange",{open:h,event:v,reason:y,nested:s}),n==null||n(h,v,y)}),c=x.useMemo(()=>({setPositionReference:u}),[]),f=x.useMemo(()=>({reference:a||r.reference||null,floating:r.floating||null,domReference:r.reference}),[a,r.reference,r.floating]);return x.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:f,events:l,floatingId:o,refs:c}),[t,d,f,l,o,c])}function bC(e){e===void 0&&(e={});const{nodeId:t}=e,n=PC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=x.useState(null),[s,a]=x.useState(null),d=(o==null?void 0:o.reference)||i,c=x.useRef(null),f=_C();bu(()=>{d&&(c.current=d)},[d]);const h=uC({...e,elements:{...o,...s&&{reference:s}}}),v=x.useCallback(g=>{const S=tt(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;a(S),h.refs.setReference(S)},[h.refs]),y=x.useCallback(g=>{(tt(g)||g===null)&&(c.current=g,l(g)),(tt(h.refs.reference.current)||h.refs.reference.current===null||g!==null&&!tt(g))&&h.refs.setReference(g)},[h.refs]),C=x.useMemo(()=>({...h.refs,setReference:y,setPositionReference:v,domReference:c}),[h.refs,y,v]),m=x.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),p=x.useMemo(()=>({...h,...r,refs:C,elements:m,nodeId:t}),[h,C,m,t,r]);return bu(()=>{r.dataRef.current.floatingContext=p;const g=f==null?void 0:f.nodesRef.current.find(S=>S.id===t);g&&(g.context=p)}),x.useMemo(()=>({...h,context:p,refs:C,elements:m}),[h,C,m,p])}function TC(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return t}function xp(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Sp(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const NC={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function $C({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:i,arrowY:l,dir:s}){const[a,u="center"]=e.split("-"),d={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[NC[a]]:r},c=-t/2;return a==="left"?{...d,...xp(u,l,n,o),right:c,borderLeftColor:"transparent",borderBottomColor:"transparent"}:a==="right"?{...d,...xp(u,l,n,o),left:c,borderRightColor:"transparent",borderTopColor:"transparent"}:a==="top"?{...d,...Sp(u,i,n,o,s),bottom:c,borderTopColor:"transparent",borderLeftColor:"transparent"}:a==="bottom"?{...d,...Sp(u,i,n,o,s),top:c,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const tv=x.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:i,arrowX:l,arrowY:s,style:a,...u},d)=>{const{dir:c}=Bg();return i?k.jsx("div",{...u,ref:d,style:{...a,...$C({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:c,arrowX:l,arrowY:s})}}):null});tv.displayName="@mantine/core/FloatingArrow";const[LC,nv]=yg("Popover component was not found in the tree");function Kc({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=Xw(t),i=$c(o,r);return vg(e)?x.cloneElement(e,{[n]:i}):e}function rv(e){return k.jsx(Fc,{tabIndex:-1,"data-autofocus":!0,...e})}Kc.displayName="@mantine/core/FocusTrap";rv.displayName="@mantine/core/FocusTrapInitialFocus";Kc.InitialFocus=rv;function MC(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}const zC={},ov=x.forwardRef((e,t)=>{const{children:n,target:r,...o}=ne("Portal",zC,e),[i,l]=x.useState(!1),s=x.useRef(null);return xs(()=>(l(!0),s.current=r?typeof r=="string"?document.querySelector(r):r:MC(o),_g(t,s.current),!r&&s.current&&document.body.appendChild(s.current),()=>{!r&&s.current&&document.body.removeChild(s.current)}),[r]),!i||!s.current?null:uo.createPortal(k.jsx(k.Fragment,{children:n}),s.current)});ov.displayName="@mantine/core/Portal";function iv({withinPortal:e=!0,children:t,...n}){return e?k.jsx(ov,{...n,children:t}):k.jsx(k.Fragment,{children:t})}iv.displayName="@mantine/core/OptionalPortal";const Io=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${$(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),cl={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${$(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${$(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${$(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${$(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${$(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${$(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${$(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${$(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Io("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Io("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Io("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Io("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Io("top"),common:{transformOrigin:"top right"}}},Cp={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function jC({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in cl?{transitionProperty:cl[e].transitionProperty,...o,...cl[e].common,...cl[e][Cp[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[Cp[t]]}}function IC({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:i,onEntered:l,onExited:s,enterDelay:a,exitDelay:u}){const d=Kt(),c=bg(),f=d.respectReducedMotion?c:!1,[h,v]=x.useState(f?0:e),[y,C]=x.useState(r?"entered":"exited"),m=x.useRef(-1),p=x.useRef(-1),g=x.useRef(-1),S=w=>{const T=w?o:i,b=w?l:s;window.clearTimeout(m.current);const z=f?0:w?e:t;v(z),z===0?(typeof T=="function"&&T(),typeof b=="function"&&b(),C(w?"entered":"exited")):g.current=requestAnimationFrame(()=>{qm.flushSync(()=>{C(w?"pre-entering":"pre-exiting")}),g.current=requestAnimationFrame(()=>{typeof T=="function"&&T(),C(w?"entering":"exiting"),m.current=window.setTimeout(()=>{typeof b=="function"&&b(),C(w?"entered":"exited")},z)})})},_=w=>{if(window.clearTimeout(p.current),typeof(w?a:u)!="number"){S(w);return}p.current=window.setTimeout(()=>{S(w)},w?a:u)};return no(()=>{_(r)},[r]),x.useEffect(()=>()=>{window.clearTimeout(m.current),cancelAnimationFrame(g.current)},[]),{transitionDuration:h,transitionStatus:y,transitionTimingFunction:n||"ease"}}function _s({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:i,timingFunction:l="ease",onExit:s,onEntered:a,onEnter:u,onExited:d,enterDelay:c,exitDelay:f}){const{transitionDuration:h,transitionStatus:v,transitionTimingFunction:y}=IC({mounted:o,exitDuration:r,duration:n,timingFunction:l,onExit:s,onEntered:a,onEnter:u,onExited:d,enterDelay:c,exitDelay:f});return h===0?o?k.jsx(k.Fragment,{children:i({})}):e?i({display:"none"}):null:v==="exited"?e?i({display:"none"}):null:k.jsx(k.Fragment,{children:i(jC({transition:t,duration:h,state:v,timingFunction:y}))})}_s.displayName="@mantine/core/Transition";var lv={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const DC={},Xc=_e((e,t)=>{var C,m,p,g;const n=ne("PopoverDropdown",DC,e),{className:r,style:o,vars:i,children:l,onKeyDownCapture:s,variant:a,classNames:u,styles:d,...c}=n,f=nv(),h=Ww({opened:f.opened,shouldReturnFocus:f.returnFocus}),v=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},y=$c(t,f.floating);return f.disabled?null:k.jsx(iv,{...f.portalProps,withinPortal:f.withinPortal,children:k.jsx(_s,{mounted:f.opened,...f.transitionProps,transition:((C=f.transitionProps)==null?void 0:C.transition)||"fade",duration:((m=f.transitionProps)==null?void 0:m.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((p=f.transitionProps)==null?void 0:p.exitDuration)=="number"?f.transitionProps.exitDuration:(g=f.transitionProps)==null?void 0:g.duration,children:S=>k.jsx(Kc,{active:f.trapFocus,innerRef:y,children:k.jsxs(J,{...v,...c,variant:a,onKeyDownCapture:Iw(f.onClose,{active:f.closeOnEscape,onTrigger:h,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:r,props:n,classNames:u,styles:d,style:[{...S,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:$(f.width)},o]}),children:[l,k.jsx(tv,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})});Xc.classes=lv;Xc.displayName="@mantine/core/PopoverDropdown";const OC={refProp:"ref",popupType:"dialog"},sv=_e((e,t)=>{const{children:n,refProp:r,popupType:o,...i}=ne("PopoverTarget",OC,e);if(!vg(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=i,s=nv(),a=$c(s.reference,n.ref,t),u=s.withRoles?{"aria-haspopup":o,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return x.cloneElement(n,{...l,...u,...s.targetProps,className:hn(s.targetProps.className,l.className,n.props.className),[r]:a,...s.controlled?null:{onClick:s.onToggle}})});sv.displayName="@mantine/core/PopoverTarget";function FC({opened:e,floating:t,position:n,positionDependencies:r}){const[o,i]=x.useState(0);x.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return tC(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,n]),no(()=>{t.update()},r),no(()=>{i(l=>l+1)},[e])}function AC(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function BC(e,t){const n=AC(e.middlewares),r=[dC(e.offset)];return n.shift&&r.push(fC(typeof n.shift=="boolean"?{limiter:mp(),padding:5}:{limiter:mp(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?gp():gp(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?vp():vp(n.inline)),r.push(hC({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(pC({...typeof n.size=="boolean"?{}:n.size,apply({rects:o,availableWidth:i,availableHeight:l}){var u;const a=((u=t().refs.floating.current)==null?void 0:u.style)??{};n.size&&Object.assign(a,{maxWidth:`${i}px`,maxHeight:`${l}px`}),e.width==="target"&&Object.assign(a,{width:`${o.reference.width}px`})}})),r}function UC(e){const[t,n]=Pg({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{var l;t&&((l=e.onClose)==null||l.call(e),n(!1))},o=()=>{var l,s;t?((l=e.onClose)==null||l.call(e),n(!1)):((s=e.onOpen)==null||s.call(e),n(!0))},i=bC({strategy:e.strategy,placement:e.position,middleware:BC(e,()=>i)});return FC({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies||[],floating:i}),no(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),no(()=>{var l,s;e.opened?(s=e.onOpen)==null||s.call(e):(l=e.onClose)==null||l.call(e)},[e.opened]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:o}}const WC={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:zw("popover"),__staticSelector:"Popover",width:"max-content"},HC=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Wn(t),"--popover-shadow":xg(n)}});function lr(e){var vr,yr,Gn,wo,zi,ji;const t=ne("Popover",WC,e),{children:n,position:r,offset:o,onPositionChange:i,positionDependencies:l,opened:s,transitionProps:a,width:u,middlewares:d,withArrow:c,arrowSize:f,arrowOffset:h,arrowRadius:v,arrowPosition:y,unstyled:C,classNames:m,styles:p,closeOnClickOutside:g,withinPortal:S,portalProps:_,closeOnEscape:w,clickOutsideEvents:T,trapFocus:b,onClose:z,onOpen:L,onChange:W,zIndex:V,radius:Y,shadow:F,id:ee,defaultOpened:oe,__staticSelector:B,withRoles:M,disabled:D,returnFocus:O,variant:X,keepMounted:te,vars:Le,floatingStrategy:ve,...Fe}=t,Pe=he({name:B,props:t,classes:lv,classNames:m,styles:p,unstyled:C,rootSelector:"dropdown",vars:Le,varsResolver:HC}),ct=x.useRef(null),[Xt,Vn]=x.useState(null),[go,vo]=x.useState(null),{dir:Me}=Bg(),bt=Nc(ee),ze=UC({middlewares:d,width:u,position:TC(Me,r),offset:typeof o=="number"?o+(c?f/2:0):o,arrowRef:ct,arrowOffset:h,onPositionChange:i,positionDependencies:l,opened:s,defaultOpened:oe,onChange:W,onOpen:L,onClose:z,strategy:ve});Fw(()=>g&&ze.onClose(),T,[Xt,go]);const yo=x.useCallback(Qn=>{Vn(Qn),ze.floating.refs.setReference(Qn)},[ze.floating.refs.setReference]),Tt=x.useCallback(Qn=>{vo(Qn),ze.floating.refs.setFloating(Qn)},[ze.floating.refs.setFloating]);return k.jsx(LC,{value:{returnFocus:O,disabled:D,controlled:ze.controlled,reference:yo,floating:Tt,x:ze.floating.x,y:ze.floating.y,arrowX:(Gn=(yr=(vr=ze.floating)==null?void 0:vr.middlewareData)==null?void 0:yr.arrow)==null?void 0:Gn.x,arrowY:(ji=(zi=(wo=ze.floating)==null?void 0:wo.middlewareData)==null?void 0:zi.arrow)==null?void 0:ji.y,opened:ze.opened,arrowRef:ct,transitionProps:a,width:u,withArrow:c,arrowSize:f,arrowOffset:h,arrowRadius:v,arrowPosition:y,placement:ze.floating.placement,trapFocus:b,withinPortal:S,portalProps:_,zIndex:V,radius:Y,shadow:F,closeOnEscape:w,onClose:ze.onClose,onToggle:ze.onToggle,getTargetId:()=>`${bt}-target`,getDropdownId:()=>`${bt}-dropdown`,withRoles:M,targetProps:Fe,__staticSelector:B,classNames:m,styles:p,unstyled:C,variant:X,keepMounted:te,getStyles:Pe,floatingStrategy:ve},children:n})}lr.Target=sv;lr.Dropdown=Xc;lr.displayName="@mantine/core/Popover";lr.extend=e=>e;var jt={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const VC=x.forwardRef(({className:e,...t},n)=>k.jsxs(J,{component:"span",className:hn(jt.barsLoader,e),...t,ref:n,children:[k.jsx("span",{className:jt.bar}),k.jsx("span",{className:jt.bar}),k.jsx("span",{className:jt.bar})]})),GC=x.forwardRef(({className:e,...t},n)=>k.jsxs(J,{component:"span",className:hn(jt.dotsLoader,e),...t,ref:n,children:[k.jsx("span",{className:jt.dot}),k.jsx("span",{className:jt.dot}),k.jsx("span",{className:jt.dot})]})),QC=x.forwardRef(({className:e,...t},n)=>k.jsx(J,{component:"span",className:hn(jt.ovalLoader,e),...t,ref:n})),av={bars:VC,oval:QC,dots:GC},YC={loaders:av,type:"oval"},KC=(e,{size:t,color:n})=>({root:{"--loader-size":Xe(t,"loader-size"),"--loader-color":n?cn(n,e):void 0}}),$i=_e((e,t)=>{const n=ne("Loader",YC,e),{size:r,color:o,type:i,vars:l,className:s,style:a,classNames:u,styles:d,unstyled:c,loaders:f,variant:h,children:v,...y}=n,C=he({name:"Loader",props:n,classes:jt,className:s,style:a,classNames:u,styles:d,unstyled:c,vars:l,varsResolver:KC});return v?k.jsx(J,{...C("root"),ref:t,...y,children:v}):k.jsx(J,{...C("root"),ref:t,component:f[i],variant:h,size:r,...y})});$i.defaultLoaders=av;$i.classes=jt;$i.displayName="@mantine/core/Loader";var Ps={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Ep={orientation:"horizontal"},XC=(e,{borderWidth:t})=>({group:{"--ai-border-width":$(t)}}),Zc=_e((e,t)=>{const n=ne("ActionIconGroup",Ep,e),{className:r,style:o,classNames:i,styles:l,unstyled:s,orientation:a,vars:u,borderWidth:d,variant:c,mod:f,...h}=ne("ActionIconGroup",Ep,e),v=he({name:"ActionIconGroup",props:n,classes:Ps,className:r,style:o,classNames:i,styles:l,unstyled:s,vars:u,varsResolver:XC,rootSelector:"group"});return k.jsx(J,{...v("group"),ref:t,variant:c,mod:[{"data-orientation":a},f],role:"group",...h})});Zc.classes=Ps;Zc.displayName="@mantine/core/ActionIconGroup";const ZC={},JC=(e,{size:t,radius:n,variant:r,gradient:o,color:i,autoContrast:l})=>{const s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:l});return{root:{"--ai-size":Xe(t,"ai-size"),"--ai-radius":n===void 0?void 0:Wn(n),"--ai-bg":i||r?s.background:void 0,"--ai-hover":i||r?s.hover:void 0,"--ai-hover-color":i||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":i||r?s.border:void 0}}},bs=Hn((e,t)=>{const n=ne("ActionIcon",ZC,e),{className:r,unstyled:o,variant:i,classNames:l,styles:s,style:a,loading:u,loaderProps:d,size:c,color:f,radius:h,__staticSelector:v,gradient:y,vars:C,children:m,disabled:p,"data-disabled":g,autoContrast:S,mod:_,...w}=n,T=he({name:["ActionIcon",v],props:n,className:r,style:a,classes:Ps,classNames:l,styles:s,unstyled:o,vars:C,varsResolver:JC});return k.jsxs(fo,{...T("root",{active:!p&&!u&&!g}),...w,unstyled:o,variant:i,size:c,disabled:p||u,ref:t,mod:[{loading:u,disabled:p||g},_],children:[k.jsx(_s,{mounted:!!u,transition:"slide-down",duration:150,children:b=>k.jsx(J,{component:"span",...T("loader",{style:b}),"aria-hidden":!0,children:k.jsx($i,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),k.jsx(J,{component:"span",mod:{loading:u},...T("icon"),children:m})]})});bs.classes=Ps;bs.displayName="@mantine/core/ActionIcon";bs.Group=Zc;function qC(e){return x.Children.toArray(e).filter(Boolean)}var uv={root:"m_4081bf90"};const eE={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},tE=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:i,wrap:l},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":Zl(r),"--group-align":o,"--group-justify":i,"--group-wrap":l}}),Qr=_e((e,t)=>{const n=ne("Group",eE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,children:a,gap:u,align:d,justify:c,wrap:f,grow:h,preventGrowOverflow:v,vars:y,variant:C,__size:m,mod:p,...g}=n,S=qC(a),_=S.length,w=Zl(u??"md"),b={childWidth:`calc(${100/_}% - (${w} - ${w} / ${_}))`},z=he({name:"Group",props:n,stylesCtx:b,className:o,style:i,classes:uv,classNames:r,styles:l,unstyled:s,vars:y,varsResolver:tE});return k.jsx(J,{...z("root"),ref:t,variant:C,mod:[{grow:h},p],size:m,...g,children:S})});Qr.classes=uv;Qr.displayName="@mantine/core/Group";const[nE,Li]=wg({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Pt={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const kp={},rE=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Ot(t)} - ${$(2)})`}}),Ts=_e((e,t)=>{const n=ne("InputDescription",kp,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,size:u,__staticSelector:d,__inheritStyles:c=!0,variant:f,...h}=ne("InputDescription",kp,n),v=Li(),y=he({name:["InputWrapper",d],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:s,rootSelector:"description",vars:a,varsResolver:rE}),C=c&&(v==null?void 0:v.getStyles)||y;return k.jsx(J,{component:"p",ref:t,variant:f,size:u,...C("description",v!=null&&v.getStyles?{className:o,style:i}:void 0),...h})});Ts.classes=Pt;Ts.displayName="@mantine/core/InputDescription";const oE={},iE=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Ot(t)} - ${$(2)})`}}),Ns=_e((e,t)=>{const n=ne("InputError",oE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,size:u,__staticSelector:d,__inheritStyles:c=!0,variant:f,...h}=n,v=he({name:["InputWrapper",d],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:s,rootSelector:"error",vars:a,varsResolver:iE}),y=Li(),C=c&&(y==null?void 0:y.getStyles)||v;return k.jsx(J,{component:"p",ref:t,variant:f,size:u,...C("error",y!=null&&y.getStyles?{className:o,style:i}:void 0),...h})});Ns.classes=Pt;Ns.displayName="@mantine/core/InputError";const Rp={labelElement:"label"},lE=(e,{size:t})=>({label:{"--input-label-size":Ot(t),"--input-asterisk-color":void 0}}),$s=_e((e,t)=>{const n=ne("InputLabel",Rp,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,labelElement:u,size:d,required:c,htmlFor:f,onMouseDown:h,children:v,__staticSelector:y,variant:C,mod:m,...p}=ne("InputLabel",Rp,n),g=he({name:["InputWrapper",y],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:s,rootSelector:"label",vars:a,varsResolver:lE}),S=Li(),_=(S==null?void 0:S.getStyles)||g;return k.jsxs(J,{..._("label",S!=null&&S.getStyles?{className:o,style:i}:void 0),component:u,variant:C,size:d,ref:t,htmlFor:u==="label"?f:void 0,mod:[{required:c},m],onMouseDown:w=>{h==null||h(w),!w.defaultPrevented&&w.detail>1&&w.preventDefault()},...p,children:[v,c&&k.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});$s.classes=Pt;$s.displayName="@mantine/core/InputLabel";const _p={},Jc=_e((e,t)=>{const n=ne("InputPlaceholder",_p,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,__staticSelector:u,variant:d,error:c,mod:f,...h}=ne("InputPlaceholder",_p,n),v=he({name:["InputPlaceholder",u],props:n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:s,rootSelector:"placeholder"});return k.jsx(J,{...v("placeholder"),mod:[{error:!!c},f],component:"span",variant:d,ref:t,...h})});Jc.classes=Pt;Jc.displayName="@mantine/core/InputPlaceholder";function sE(e,{hasDescription:t,hasError:n}){const r=e.findIndex(a=>a==="input"),o=e.slice(0,r),i=e.slice(r+1),l=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&i.includes("description")||n&&i.includes("error"),offsetTop:l}}const aE={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},uE=(e,{size:t})=>({label:{"--input-label-size":Ot(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Ot(t)} - ${$(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Ot(t)} - ${$(2)})`}}),qc=_e((e,t)=>{const n=ne("InputWrapper",aE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,size:u,variant:d,__staticSelector:c,inputContainer:f,inputWrapperOrder:h,label:v,error:y,description:C,labelProps:m,descriptionProps:p,errorProps:g,labelElement:S,children:_,withAsterisk:w,id:T,required:b,__stylesApiProps:z,mod:L,...W}=n,V=he({name:["InputWrapper",c],props:z||n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a,varsResolver:uE}),Y={size:u,variant:d,__staticSelector:c},F=Nc(T),ee=typeof w=="boolean"?w:b,oe=(g==null?void 0:g.id)||`${F}-error`,B=(p==null?void 0:p.id)||`${F}-description`,M=F,D=!!y&&typeof y!="boolean",O=!!C,X=`${D?oe:""} ${O?B:""}`,te=X.trim().length>0?X.trim():void 0,Le=(m==null?void 0:m.id)||`${F}-label`,ve=v&&k.jsx($s,{labelElement:S,id:Le,htmlFor:M,required:ee,...Y,...m,children:v},"label"),Fe=O&&k.jsx(Ts,{...p,...Y,size:(p==null?void 0:p.size)||Y.size,id:(p==null?void 0:p.id)||B,children:C},"description"),Pe=k.jsx(x.Fragment,{children:f(_)},"input"),ct=D&&x.createElement(Ns,{...g,...Y,size:(g==null?void 0:g.size)||Y.size,key:"error",id:(g==null?void 0:g.id)||oe},y),Xt=h.map(Vn=>{switch(Vn){case"label":return ve;case"input":return Pe;case"description":return Fe;case"error":return ct;default:return null}});return k.jsx(nE,{value:{getStyles:V,describedBy:te,inputId:M,labelId:Le,...sE(h,{hasDescription:O,hasError:D})},children:k.jsx(J,{ref:t,variant:d,size:u,mod:[{error:!!y},L],...V("root"),...W,children:Xt})})});qc.classes=Pt;qc.displayName="@mantine/core/InputWrapper";const cE={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},dE=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Xe(t.size,"input-height"),"--input-fz":Ot(t.size),"--input-radius":t.radius===void 0?void 0:Wn(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?$(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?$(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Xe(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),Ze=Hn((e,t)=>{const n=ne("Input",cE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,required:a,__staticSelector:u,__stylesApiProps:d,size:c,wrapperProps:f,error:h,disabled:v,leftSection:y,leftSectionProps:C,leftSectionWidth:m,rightSection:p,rightSectionProps:g,rightSectionWidth:S,rightSectionPointerEvents:_,leftSectionPointerEvents:w,variant:T,vars:b,pointer:z,multiline:L,radius:W,id:V,withAria:Y,withErrorStyles:F,mod:ee,inputSize:oe,...B}=n,{styleProps:M,rest:D}=Cs(B),O=Li(),X={offsetBottom:O==null?void 0:O.offsetBottom,offsetTop:O==null?void 0:O.offsetTop},te=he({name:["Input",u],props:d||n,classes:Pt,className:o,style:i,classNames:r,styles:l,unstyled:s,stylesCtx:X,rootSelector:"wrapper",vars:b,varsResolver:dE}),Le=Y?{required:a,disabled:v,"aria-invalid":!!h,"aria-describedby":O==null?void 0:O.describedBy,id:(O==null?void 0:O.inputId)||V}:{};return k.jsxs(J,{...te("wrapper"),...M,...f,mod:[{error:!!h&&F,pointer:z,disabled:v,multiline:L,"data-with-right-section":!!p,"data-with-left-section":!!y},ee],variant:T,size:c,children:[y&&k.jsx("div",{...C,"data-position":"left",...te("section",{className:C==null?void 0:C.className,style:C==null?void 0:C.style}),children:y}),k.jsx(J,{component:"input",...D,...Le,ref:t,required:a,mod:{disabled:v,error:!!h&&F},variant:T,__size:oe,...te("input")}),p&&k.jsx("div",{...g,"data-position":"right",...te("section",{className:g==null?void 0:g.className,style:g==null?void 0:g.style}),children:p})]})});Ze.classes=Pt;Ze.Wrapper=qc;Ze.Label=$s;Ze.Error=Ns;Ze.Description=Ts;Ze.Placeholder=Jc;Ze.displayName="@mantine/core/Input";function fE(e,t,n){const r=ne(e,t,n),{label:o,description:i,error:l,required:s,classNames:a,styles:u,className:d,unstyled:c,__staticSelector:f,__stylesApiProps:h,errorProps:v,labelProps:y,descriptionProps:C,wrapperProps:m,id:p,size:g,style:S,inputContainer:_,inputWrapperOrder:w,withAsterisk:T,variant:b,vars:z,mod:L,...W}=r,{styleProps:V,rest:Y}=Cs(W),F={label:o,description:i,error:l,required:s,classNames:a,className:d,__staticSelector:f,__stylesApiProps:h||r,errorProps:v,labelProps:y,descriptionProps:C,unstyled:c,styles:u,size:g,style:S,inputContainer:_,inputWrapperOrder:w,withAsterisk:T,variant:b,id:p,mod:L,...m};return{...Y,classNames:a,styles:u,unstyled:c,wrapperProps:{...F,...V},inputProps:{required:s,classNames:a,styles:u,unstyled:c,size:g,__staticSelector:f,__stylesApiProps:h||r,error:l,variant:b,id:p}}}const pE={__staticSelector:"InputBase",withAria:!0},Ls=Hn((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=fE("InputBase",pE,e);return k.jsx(Ze.Wrapper,{...r,children:k.jsx(Ze,{...n,...o,ref:t})})});Ls.classes={...Ze.classes,...Ze.Wrapper.classes};Ls.displayName="@mantine/core/InputBase";const hE={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var cv={root:"m_8bffd616"};const mE={},Mi=Hn((e,t)=>{const n=ne("Flex",mE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,gap:u,rowGap:d,columnGap:c,align:f,justify:h,wrap:v,direction:y,...C}=n,m=he({name:"Flex",classes:cv,props:n,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a}),p=Kt(),g=Es(),S=Ig({styleProps:{gap:u,rowGap:d,columnGap:c,align:f,justify:h,wrap:v,direction:y},theme:p,data:hE});return k.jsxs(k.Fragment,{children:[S.hasResponsiveStyles&&k.jsx(Ss,{selector:`.${g}`,styles:S.styles,media:S.media}),k.jsx(J,{ref:t,...m("root",{className:g,style:co(S.inlineStyles)}),...C})]})});Mi.classes=cv;Mi.displayName="@mantine/core/Flex";var dv={root:"m_b6d8b162"};function gE(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const vE={inherit:!1},yE=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:i})=>({root:{"--text-fz":Ot(o),"--text-lh":Dw(o),"--text-gradient":t==="gradient"?Cu(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?cn(i,e):void 0}}),Si=Hn((e,t)=>{const n=ne("Text",vE,e),{lineClamp:r,truncate:o,inline:i,inherit:l,gradient:s,span:a,__staticSelector:u,vars:d,className:c,style:f,classNames:h,styles:v,unstyled:y,variant:C,mod:m,size:p,...g}=n,S=he({name:["Text",u],props:n,classes:dv,className:c,style:f,classNames:h,styles:v,unstyled:y,vars:d,varsResolver:yE});return k.jsx(J,{...S("root",{focusable:!0}),ref:t,component:a?"span":"p",variant:C,mod:[{"data-truncate":gE(o),"data-line-clamp":typeof r=="number","data-inline":i,"data-inherit":l},m],size:p,...g})});Si.classes=dv;Si.displayName="@mantine/core/Text";var fv={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const wE=fv,pv=x.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:o,unstyled:i,children:l,label:s,description:a,id:u,disabled:d,error:c,size:f,labelPosition:h="left",bodyElement:v="div",labelElement:y="label",variant:C,style:m,vars:p,mod:g,...S},_)=>{const w=he({name:e,props:t,className:n,style:m,classes:fv,classNames:r,styles:o,unstyled:i});return k.jsx(J,{...w("root"),ref:_,__vars:{"--label-fz":Ot(f),"--label-lh":Xe(f,"label-lh")},mod:[{"label-position":h},g],variant:C,size:f,...S,children:k.jsxs(J,{component:v,htmlFor:v==="label"?u:void 0,...w("body"),children:[l,k.jsxs("div",{...w("labelWrapper"),"data-disabled":d||void 0,children:[s&&k.jsx(J,{component:y,htmlFor:y==="label"?u:void 0,...w("label"),"data-disabled":d||void 0,children:s}),a&&k.jsx(Ze.Description,{size:f,__inheritStyles:!1,...w("description"),children:a}),c&&typeof c!="boolean"&&k.jsx(Ze.Error,{size:f,__inheritStyles:!1,...w("error"),children:c})]})]})})});pv.displayName="@mantine/core/InlineInput";const hv=x.createContext(null),xE=hv.Provider,mv=()=>x.useContext(hv),[SE,CE]=wg();var gv={card:"m_26775b0a"};const EE={withBorder:!0},kE=(e,{radius:t})=>({card:{"--card-radius":Wn(t)}}),ed=_e((e,t)=>{const n=ne("CheckboxCard",EE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,checked:u,mod:d,withBorder:c,value:f,onClick:h,...v}=n,y=he({name:"CheckboxCard",classes:gv,props:n,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a,varsResolver:kE,rootSelector:"card"}),C=mv(),m=typeof u=="boolean"?u:(C==null?void 0:C.value.includes(f||""))||!1;return k.jsx(SE,{value:{checked:m},children:k.jsx(fo,{ref:t,mod:[{"with-border":c,checked:m},d],...y("card"),...v,role:"checkbox","aria-checked":m,onClick:p=>{h==null||h(p),C==null||C.onChange(f||"")}})})});ed.displayName="@mantine/core/CheckboxCard";ed.classes=gv;function RE({children:e,role:t}){const n=Li();return n?k.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):k.jsx(k.Fragment,{children:e})}const _E={},td=_e((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:i,wrapperProps:l,children:s,readOnly:a,...u}=ne("CheckboxGroup",_E,e),[d,c]=Pg({value:n,defaultValue:r,finalValue:[],onChange:o}),f=h=>{const v=typeof h=="string"?h:h.currentTarget.value;!a&&c(d.includes(v)?d.filter(y=>y!==v):[...d,v])};return k.jsx(xE,{value:{value:d,onChange:f,size:i},children:k.jsx(Ze.Wrapper,{size:i,ref:t,...l,...u,labelElement:"div",__staticSelector:"CheckboxGroup",children:k.jsx(RE,{role:"group",children:s})})})});td.classes=Ze.Wrapper.classes;td.displayName="@mantine/core/CheckboxGroup";function PE({size:e,style:t,...n}){const r=e!==void 0?{width:$(e),height:$(e),...t}:t;return k.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:k.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function vv({indeterminate:e,...t}){return e?k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:k.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):k.jsx(PE,{...t})}var yv={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const bE={icon:vv},TE=(e,{radius:t,color:n,size:r,iconColor:o,variant:i,autoContrast:l})=>{const s=gr({color:n||e.primaryColor,theme:e}),a=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":Xe(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:Wn(t),"--checkbox-color":i==="outline"?a:cn(n,e),"--checkbox-icon-color":o?cn(o,e):jg(l,e)?Dc({color:n,theme:e,autoContrast:l}):void 0}}},nd=_e((e,t)=>{const n=ne("CheckboxIndicator",bE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,icon:u,indeterminate:d,radius:c,color:f,iconColor:h,autoContrast:v,checked:y,mod:C,variant:m,disabled:p,...g}=n,S=u,_=he({name:"CheckboxIndicator",classes:yv,props:n,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a,varsResolver:TE,rootSelector:"indicator"}),w=CE(),T=typeof y=="boolean"||typeof d=="boolean"?y||d:(w==null?void 0:w.checked)||!1;return k.jsx(J,{ref:t,..._("indicator",{variant:m}),variant:m,mod:[{checked:T,disabled:p},C],...g,children:k.jsx(S,{indeterminate:d,..._("icon")})})});nd.displayName="@mantine/core/CheckboxIndicator";nd.classes=yv;var wv={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const NE={labelPosition:"right",icon:vv},$E=(e,{radius:t,color:n,size:r,iconColor:o,variant:i,autoContrast:l})=>{const s=gr({color:n||e.primaryColor,theme:e}),a=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":Xe(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:Wn(t),"--checkbox-color":i==="outline"?a:cn(n,e),"--checkbox-icon-color":o?cn(o,e):jg(l,e)?Dc({color:n,theme:e,autoContrast:l}):void 0}}},mo=_e((e,t)=>{const n=ne("Checkbox",NE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,color:u,label:d,id:c,size:f,radius:h,wrapperProps:v,children:y,checked:C,labelPosition:m,description:p,error:g,disabled:S,variant:_,indeterminate:w,icon:T,rootRef:b,iconColor:z,onChange:L,autoContrast:W,mod:V,...Y}=n,F=mv(),ee=f||(F==null?void 0:F.size),oe=T,B=he({name:"Checkbox",props:n,classes:wv,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a,varsResolver:$E}),{styleProps:M,rest:D}=Cs(Y),O=Nc(c),X=F?{checked:F.value.includes(D.value),onChange:te=>{F.onChange(te),L==null||L(te)}}:{};return k.jsx(pv,{...B("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:O,size:ee,labelPosition:m,label:d,description:p,error:g,disabled:S,classNames:r,styles:l,unstyled:s,"data-checked":X.checked||C||void 0,variant:_,ref:b,mod:V,...M,...v,children:k.jsxs(J,{...B("inner"),mod:{"data-label-position":m},children:[k.jsx(J,{component:"input",id:O,ref:t,checked:C,disabled:S,mod:{error:!!g,indeterminate:w},...B("input",{focusable:!0,variant:_}),onChange:L,...D,...X,type:"checkbox"}),k.jsx(oe,{indeterminate:w,...B("icon")})]})})});mo.classes={...wv,...wE};mo.displayName="@mantine/core/Checkbox";mo.Group=td;mo.Indicator=nd;mo.Card=ed;var xv={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const LE={},ME=(e,{color:t,size:n,lineSize:r,transitionDuration:o,transitionTimingFunction:i})=>({root:{"--burger-color":t?cn(t,e):void 0,"--burger-size":Xe(n,"burger-size"),"--burger-line-size":r?$(r):void 0,"--burger-transition-duration":o===void 0?void 0:`${o}ms`,"--burger-transition-timing-function":i}}),rd=_e((e,t)=>{const n=ne("Burger",LE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,opened:u,children:d,transitionDuration:c,transitionTimingFunction:f,lineSize:h,...v}=n,y=he({name:"Burger",classes:xv,props:n,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a,varsResolver:ME});return k.jsxs(fo,{...y("root"),ref:t,...v,children:[k.jsx(J,{mod:["reduce-motion",{opened:u}],...y("burger")}),d]})});rd.classes=xv;rd.displayName="@mantine/core/Burger";var Ms={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const Pp={orientation:"horizontal"},zE=(e,{borderWidth:t})=>({group:{"--button-border-width":$(t)}}),od=_e((e,t)=>{const n=ne("ButtonGroup",Pp,e),{className:r,style:o,classNames:i,styles:l,unstyled:s,orientation:a,vars:u,borderWidth:d,variant:c,mod:f,...h}=ne("ButtonGroup",Pp,e),v=he({name:"ButtonGroup",props:n,classes:Ms,className:r,style:o,classNames:i,styles:l,unstyled:s,vars:u,varsResolver:zE,rootSelector:"group"});return k.jsx(J,{...v("group"),ref:t,variant:c,mod:[{"data-orientation":a},f],role:"group",...h})});od.classes=Ms;od.displayName="@mantine/core/ButtonGroup";const jE={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${$(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},IE={},DE=(e,{radius:t,color:n,gradient:r,variant:o,size:i,justify:l,autoContrast:s})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{root:{"--button-justify":l,"--button-height":Xe(i,"button-height"),"--button-padding-x":Xe(i,"button-padding-x"),"--button-fz":i!=null&&i.includes("compact")?Ot(i.replace("compact-","")):Ot(i),"--button-radius":t===void 0?void 0:Wn(t),"--button-bg":n||o?a.background:void 0,"--button-hover":n||o?a.hover:void 0,"--button-color":a.color,"--button-bd":n||o?a.border:void 0,"--button-hover-color":n||o?a.hoverColor:void 0}}},io=Hn((e,t)=>{const n=ne("Button",IE,e),{style:r,vars:o,className:i,color:l,disabled:s,children:a,leftSection:u,rightSection:d,fullWidth:c,variant:f,radius:h,loading:v,loaderProps:y,gradient:C,classNames:m,styles:p,unstyled:g,"data-disabled":S,autoContrast:_,mod:w,...T}=n,b=he({name:"Button",props:n,classes:Ms,className:i,style:r,classNames:m,styles:p,unstyled:g,vars:o,varsResolver:DE}),z=!!u,L=!!d;return k.jsxs(fo,{ref:t,...b("root",{active:!s&&!v&&!S}),unstyled:g,variant:f,disabled:s||v,mod:[{disabled:s||S,loading:v,block:c,"with-left-section":z,"with-right-section":L},w],...T,children:[k.jsx(_s,{mounted:!!v,transition:jE,duration:150,children:W=>k.jsx(J,{component:"span",...b("loader",{style:W}),"aria-hidden":!0,children:k.jsx($i,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...y})})}),k.jsxs("span",{...b("inner"),children:[u&&k.jsx(J,{component:"span",...b("section"),mod:{position:"left"},children:u}),k.jsx(J,{component:"span",mod:{loading:v},...b("label"),children:a}),d&&k.jsx(J,{component:"span",...b("section"),mod:{position:"right"},children:d})]})]})});io.classes=Ms;io.displayName="@mantine/core/Button";io.Group=od;var Sv={root:"m_7485cace"};const OE={},FE=(e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:Xe(t,"container-size")}}),id=_e((e,t)=>{const n=ne("Container",OE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,fluid:u,mod:d,...c}=n,f=he({name:"Container",classes:Sv,props:n,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a,varsResolver:FE});return k.jsx(J,{ref:t,mod:[{fluid:u},d],...f("root"),...c})});id.classes=Sv;id.displayName="@mantine/core/Container";const[AE,Cv]=yg("Grid component was not found in tree"),Tu=(e,t)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(t/e)}%`:void 0,bp=(e,t,n)=>n||e==="auto"?"100%":e==="content"?"unset":Tu(e,t),Tp=(e,t)=>{if(e)return e==="auto"||t?"1":"auto"},Np=(e,t)=>e===0?"0":e?`${100/(t/e)}%`:void 0;function BE({span:e,order:t,offset:n,selector:r}){var f;const o=Kt(),i=Cv(),s=Ho(e)===void 0?12:Ho(e),a=co({"--col-order":(f=Ho(t))==null?void 0:f.toString(),"--col-flex-grow":Tp(s,i.grow),"--col-flex-basis":Tu(s,i.columns),"--col-width":s==="content"?"auto":void 0,"--col-max-width":bp(s,i.columns,i.grow),"--col-offset":Np(Ho(n),i.columns)}),u=Ye(o.breakpoints).reduce((h,v)=>{var y;return h[v]||(h[v]={}),typeof t=="object"&&t[v]!==void 0&&(h[v]["--col-order"]=(y=t[v])==null?void 0:y.toString()),typeof e=="object"&&e[v]!==void 0&&(h[v]["--col-flex-grow"]=Tp(e[v],i.grow),h[v]["--col-flex-basis"]=Tu(e[v],i.columns),h[v]["--col-width"]=e[v]==="content"?"auto":void 0,h[v]["--col-max-width"]=bp(e[v],i.columns,i.grow)),typeof n=="object"&&n[v]!==void 0&&(h[v]["--col-offset"]=Np(n[v],i.columns)),h},{}),c=Sg(Ye(u),o).filter(h=>Ye(u[h.value]).length>0).map(h=>({query:`(min-width: ${o.breakpoints[h.value]})`,styles:u[h.value]}));return k.jsx(Ss,{styles:a,media:c,selector:r})}var ld={root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const UE={span:12},sd=_e((e,t)=>{const n=ne("GridCol",UE,e),{classNames:r,className:o,style:i,styles:l,vars:s,span:a,order:u,offset:d,...c}=n,f=Cv(),h=Es();return k.jsxs(k.Fragment,{children:[k.jsx(BE,{selector:`.${h}`,span:a,order:u,offset:d}),k.jsx(J,{ref:t,...f.getStyles("col",{className:hn(o,h),style:i,classNames:r,styles:l}),...c})]})});sd.classes=ld;sd.displayName="@mantine/core/GridCol";function WE({gutter:e,selector:t}){const n=Kt(),r=co({"--grid-gutter":Zl(Ho(e))}),o=Ye(n.breakpoints).reduce((s,a)=>(s[a]||(s[a]={}),typeof e=="object"&&e[a]!==void 0&&(s[a]["--grid-gutter"]=Zl(e[a])),s),{}),l=Sg(Ye(o),n).filter(s=>Ye(o[s.value]).length>0).map(s=>({query:`(min-width: ${n.breakpoints[s.value]})`,styles:o[s.value]}));return k.jsx(Ss,{styles:r,media:l,selector:t})}const HE={gutter:"md",grow:!1,columns:12},VE=(e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}}),Ci=_e((e,t)=>{const n=ne("Grid",HE,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,vars:a,grow:u,gutter:d,columns:c,align:f,justify:h,children:v,...y}=n,C=he({name:"Grid",classes:ld,props:n,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:a,varsResolver:VE}),m=Es();return k.jsxs(AE,{value:{getStyles:C,grow:u,columns:c},children:[k.jsx(WE,{selector:`.${m}`,...n}),k.jsx(J,{ref:t,...C("root",{className:m}),...y,children:k.jsx("div",{...C("inner"),children:v})})]})});Ci.classes=ld;Ci.displayName="@mantine/core/Grid";Ci.Col=sd;function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{autosize:n,maxRows:r,minRows:o,__staticSelector:i,resize:l,...s}=ne("Textarea",ak,e),a=n&&sx()!=="test",u=a?{maxRows:r,minRows:o}:{};return k.jsx(Ls,{component:a?sk:"textarea",ref:t,...s,__staticSelector:i||"Textarea",multiline:!0,"data-no-overflow":n&&r===void 0||void 0,__vars:{"--input-resize":l},...u})});ad.classes=Ls.classes;ad.displayName="@mantine/core/Textarea";const uk=["h1","h2","h3","h4","h5","h6"];function ck(e,t){const n=t!==void 0?t:`h${e}`;return uk.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:{fontSize:$(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var kv={root:"m_8a5d1357"};const dk={order:1},fk=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const i=ck(t,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":o}}},ts=_e((e,t)=>{const n=ne("Title",dk,e),{classNames:r,className:o,style:i,styles:l,unstyled:s,order:a,vars:u,size:d,variant:c,lineClamp:f,textWrap:h,mod:v,...y}=n,C=he({name:"Title",props:n,classes:kv,className:o,style:i,classNames:r,styles:l,unstyled:s,vars:u,varsResolver:fk});return[1,2,3,4,5,6].includes(a)?k.jsx(J,{...C("root"),component:`h${a}`,variant:c,ref:t,mod:[{order:a,"data-line-clamp":typeof f=="number"},v],size:d,...y}):null});ts.classes=kv;ts.displayName="@mantine/core/Title";/** + * @license @tabler/icons-react v3.12.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var pk={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** + * @license @tabler/icons-react v3.12.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const zs=(e,t,n,r)=>{const o=x.forwardRef(({color:i="currentColor",size:l=24,stroke:s=2,title:a,className:u,children:d,...c},f)=>x.createElement("svg",{ref:f,...pk[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),strokeWidth:s,stroke:i,...c},[a&&x.createElement("title",{key:"svg-title"},a),...r.map(([h,v])=>x.createElement(h,v)),...Array.isArray(d)?d:[d]]));return o.displayName=`${n}`,o};/** + * @license @tabler/icons-react v3.12.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var hk=zs("outline","brand-github","IconBrandGithub",[["path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.12.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var mk=zs("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.12.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var gk=zs("outline","dots","IconDots",[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.12.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var vk=zs("outline","info-square-rounded","IconInfoSquareRounded",[["path",{d:"M12 9h.01",key:"svg-0"}],["path",{d:"M11 12h1v4h1",key:"svg-1"}],["path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9 -9 9s-9 -1.8 -9 -9s1.8 -9 9 -9z",key:"svg-2"}]]);const yk="_header_13ckm_1",wk="_inner_13ckm_14",xk="_link_13ckm_21",Do={header:yk,inner:wk,link:xk},Sk=[{link:"/GeoSiteList/about/",label:"About",icon:vk},{link:"https://github.com/actusnileh/GeoSiteList",label:"GitHub",icon:hk}];function Rv(){const[e,{toggle:t}]=ix(!1),n=Sk.map(r=>{const o=r.icon;return k.jsx("a",{href:r.link,className:Do.link,target:r.link==="/GeoSiteList/about/"?"":"_blank",children:k.jsxs(Mi,{align:"center",gap:5,children:[k.jsx(o,{}),r.label]})},r.label)});return k.jsxs("header",{className:Do.header,children:[k.jsxs("div",{className:Do.inner,children:[k.jsxs(Qr,{children:[k.jsx(rd,{opened:e,onClick:t,size:"sm",hiddenFrom:"sm"}),k.jsx(ts,{style:{cursor:"pointer"},order:3,onClick:()=>window.location.href="/GeoSiteList/",children:"GeoSiteList"}),k.jsx(ts,{order:6,children:"v0.2"})]}),k.jsx(Qr,{className:Do.links,visibleFrom:"sm",children:n})]}),e&&k.jsx(Ac,{className:Do.burgerMenu,shadow:"md",children:k.jsx(Qr,{align:"start",children:n})})]})}function Oo(e,t,n){let r=n.initialDeps??[],o;return()=>{var i,l,s,a;let u;n.key&&((i=n.debug)!=null&&i.call(n))&&(u=Date.now());const d=e();if(!(d.length!==r.length||d.some((h,v)=>r[v]!==h)))return o;r=d;let f;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(f=Date.now()),o=t(...d),n.key&&((s=n.debug)!=null&&s.call(n))){const h=Math.round((Date.now()-u)*100)/100,v=Math.round((Date.now()-f)*100)/100,y=v/16,C=(m,p)=>{for(m=String(m);m.lengthMath.abs(e-t)<1,Ek=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},kk=e=>e,Rk=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},_k=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:s,height:a}=l;t({width:Math.round(s),height:Math.round(a)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const s=l[0];if(s!=null&&s.borderBoxSize){const a=s.borderBoxSize[0];if(a){o({width:a.inlineSize,height:a.blockSize});return}}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Ip={passive:!0},Pk=typeof window>"u"?!0:"onscrollend"in window,bk=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=Pk?()=>{}:Ek(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=u=>()=>{const{horizontal:d,isRtl:c}=e.options;o=d?n.scrollLeft*(c&&-1||1):n.scrollTop,i(),t(o,u)},s=l(!0),a=l(!1);return a(),n.addEventListener("scroll",s,Ip),n.addEventListener("scrollend",a,Ip),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",a)}},Tk=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Nk=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class $k{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:kk,rangeExtractor:Rk,onChange:()=>{},measureElement:Tk,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...n}},this.notify=(n,r)=>{var o,i;const{startIndex:l,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},a=this.calculateRange();(n||l!==(a==null?void 0:a.startIndex)||s!==(a==null?void 0:a.endIndex))&&((i=(o=this.options).onChange)==null||i.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.notify(!1,!1);return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let l=r-1;l>=0;l--){const s=n[l];if(o.has(s.lane))continue;const a=i.get(s.lane);if(a==null||s.end>a.end?i.set(s.lane,s):s.endl.end===s.end?l.index-s.index:l.end-s.end)[0]:void 0},this.getMeasurementOptions=Oo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,o,i,l)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l}),{key:!1}),this.getMeasurements=Oo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l},s)=>{var a;if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const d=this.measurementsCache.slice(0,u);for(let c=u;c{const _=i(c),w=this.elementsCache.get(_);if(!S){w&&(this.observer.unobserve(w),this.elementsCache.delete(_));return}w!==S&&(w&&this.observer.unobserve(w),this.observer.observe(S),this.elementsCache.set(_,S)),S.isConnected&&this.resizeItem(c,this.options.measureElement(S,void 0,this))});const h=i(c),v=this.options.lanes===1?d[c-1]:this.getFurthestMeasurement(d,c),y=v?v.end+this.options.gap:r+o,C=s.get(h),m=typeof C=="number"?C:this.options.estimateSize(c),p=y+m,g=v?v.lane:c%this.options.lanes;d[c]={index:c,start:y,size:m,end:p,key:h,lane:g,measureElement:f}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Oo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,o)=>this.range=n.length>0&&r>0?Lk({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Oo(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,i)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.indexFromElement(n),i=this.getMeasurements()[o];if(!i||!n.isConnected){this.elementsCache.forEach((s,a)=>{s===n&&(this.observer.unobserve(n),this.elementsCache.delete(a))});return}const l=this.elementsCache.get(i.key);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(i.key,n)),this.resizeItem(o,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const o=this.getMeasurements()[n];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,l=r-i;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,l,this):o.start{n&&this._measureElement(n,void 0)},this.getVirtualItems=Oo(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,l=n.length;ithis.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return Ca(r[_v(0,r.length-1,o=>Ca(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize(),i=this.getScrollOffset();r==="auto"&&(n<=i?r="start":n>=i+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const l=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]:0)-o;return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.getMeasurements()[n];if(!o)return;const i=this.getSize(),l=this.getScrollOffset();if(r==="auto")if(o.end>=l+i-this.options.scrollPaddingEnd)r="end";else if(o.start<=l+this.options.scrollPaddingStart)r="start";else return[l,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(n,r);if(!i)return;const[l,s]=i;this._scrollToOffset(l,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=Ca(this.getOffsetForIndex(n,s));Ck(u,this.getScrollOffset())||this.scrollToIndex(n,{align:s,behavior:o})}else this.scrollToIndex(n,{align:s,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t)}}const _v=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(ir)t=o-1;else return o}return e>0?e-1:0};function Lk({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=_v(0,r,s=>e[s].start,n);let l=i;for(;l({}),{})[1],n={...e,onChange:(o,i)=>{var l;i?uo.flushSync(t):t(),(l=e.onChange)==null||l.call(e,o,i)}},[r]=x.useState(()=>new $k(n));return r.setOptions(n),x.useEffect(()=>r._didMount(),[]),Mk(()=>r._willUpdate()),r}function jk(e){return zk({observeElementRect:_k,observeElementOffset:bk,scrollToFn:Nk,...e})}const Ik=({data:e,onCheckboxChange:t,selectedKeys:n})=>{const r=x.useRef(null),[o,i]=x.useState(""),l=Object.keys(e).filter(a=>a.toLowerCase().includes(o.toLowerCase())),s=jk({count:l.length,getScrollElement:()=>r.current,estimateSize:()=>70,overscan:5});return k.jsxs("div",{style:{height:"98vh",width:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},children:[k.jsx(Ze,{placeholder:"Search...",variant:"filled",radius:"lg",size:"md",m:10,value:o,onChange:a=>i(a.currentTarget.value)}),k.jsx("div",{ref:r,style:{flex:1,overflow:"auto",position:"relative"},children:k.jsx("div",{style:{height:`${s.getTotalSize()}px`,width:"100%",position:"relative"},children:s.getVirtualItems().map(a=>{const u=l[a.index];return k.jsx("div",{ref:s.measureElement,"data-index":a.index,style:{position:"absolute",top:`${a.start}px`,left:"0",width:"100%",height:"70px",boxSizing:"border-box",padding:"10px"},children:k.jsx(J,{p:"md",style:{backgroundColor:"#333333",color:"#ffffff",borderRadius:"15px"},children:k.jsxs(Mi,{justify:"space-between",align:"center",children:[k.jsx(mo,{color:"darkgray",label:u,c:"white",size:"md",checked:n.has(u),onChange:d=>t(u,d.currentTarget.checked)}),k.jsxs(lr,{position:"bottom",offset:8,shadow:"md",closeOnClickOutside:!0,children:[k.jsx(lr.Target,{children:k.jsx(bs,{variant:"default",children:k.jsx(gk,{size:24})})}),k.jsx(lr.Dropdown,{children:k.jsx(J,{children:e[u].map((d,c)=>k.jsx(Si,{size:"sm",c:"white",children:d},c))})})]})]})})},u)})})})]})},Dk=x.memo(Ik);function Pv(){const[e,t]=x.useState(!1),{scrollIntoView:n,targetRef:r}=ox({offset:0});return x.useEffect(()=>{const o=()=>{window.scrollY>300?t(!0):t(!1)};return window.addEventListener("scroll",o),()=>{window.removeEventListener("scroll",o)}},[]),k.jsxs(k.Fragment,{children:[e&&k.jsx(io,{style:{position:"fixed",bottom:"16px",right:"16px",zIndex:1500,width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",padding:0},onClick:()=>n({alignment:"center"}),size:"lm",color:"darkgray",children:k.jsx(mk,{})}),k.jsx(J,{ref:r,style:{position:"absolute",top:0}})]})}const Ok=({data:e})=>k.jsx(Ci,{grow:!0,gutter:"xs",m:20,mt:80,children:k.jsx(Ci.Col,{span:12,children:k.jsx(Mi,{justify:"center",align:"center",direction:"column",style:{minHeight:"100%"},children:k.jsx(ad,{size:"md",variant:"filled",value:e,placeholder:`Selected domains will be added here. +You can copy them and add them wherever needed.`,readOnly:!0,maxRows:4,minRows:4,autosize:!0,radius:"lg",style:{width:"100%",maxWidth:"600px"}})})})}),Fk=async()=>{try{const t=await(await fetch("https://raw.githubusercontent.com/actusnileh/geoip-geosite-list/main/domains.json")).json();return console.log(t),t}catch(e){console.log(e)}},Ak=()=>{const[e,t]=x.useState({items:[]}),[n,r]=x.useState(null),[o,i]=x.useState(new Set);x.useEffect(()=>{(async()=>{try{const u=await Fk();u&&t(u)}catch(u){r("Error"),console.error(u)}})()},[]);const l=x.useCallback((a,u)=>{i(d=>{const c=new Set(d);return u?c.add(a):c.delete(a),c})},[]),s=x.useMemo(()=>Array.from(o).map(a=>`geosite:${a}`).join(` +`),[o]);return k.jsxs(k.Fragment,{children:[k.jsx(Rv,{}),k.jsx(Ok,{data:s}),n?k.jsx("div",{children:n}):e&&k.jsx(Dk,{data:e,onCheckboxChange:l,selectedKeys:o}),k.jsx(Pv,{})]})},Bk="_wrapper_1u7kf_1",Uk="_inner_1u7kf_11",Wk="_title_1u7kf_22",Hk="_description_1u7kf_37",Vk="_controls_1u7kf_46",Gk="_control_1u7kf_46",Yn={wrapper:Bk,inner:Uk,title:Wk,description:Hk,controls:Vk,control:Gk};function Qk(){return k.jsx("div",{className:Yn.wrapper,children:k.jsxs(id,{size:700,className:Yn.inner,children:[k.jsxs("h1",{className:Yn.title,children:["A"," ",k.jsx(Si,{component:"span",c:"darkgray",inherit:!0,children:"user-friendly"})," ","GeoSite database"]}),k.jsx(Si,{className:Yn.description,c:"dimmed",children:"That lists domains concealed behind service names, allowing you to easily select and copy the domains you need"}),k.jsxs(Qr,{className:Yn.controls,children:[k.jsx(io,{size:"xl",className:Yn.control,color:"gray",onClick:()=>window.location.href="/GeoSiteList/",children:"Main Page"}),k.jsx(io,{size:"xl",className:Yn.control,color:"gray",children:"How to use?"})]})]})})}const Yk=()=>k.jsxs(k.Fragment,{children:[k.jsx(Rv,{}),k.jsx(Qk,{}),k.jsx(Pv,{})]}),Kk=ww([{path:"/GeoSiteList/",element:k.jsx(Ak,{})},{path:"/GeoSiteList/about/",element:k.jsx(Yk,{})}]),Xk=()=>k.jsx(zg,{defaultColorScheme:"dark",children:k.jsx(bw,{router:Kk})});eg(document.getElementById("root")).render(k.jsx(x.StrictMode,{children:k.jsx(Xk,{})})); diff --git a/index.html b/index.html index 2969ff9..3682eea 100644 --- a/index.html +++ b/index.html @@ -23,10 +23,10 @@ } })(window.location); - + - +