diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/sql/default.sql b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/default.sql index 7b8dfa54d..978a2a072 100644 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/sql/default.sql +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/default.sql @@ -4,15 +4,15 @@ */ INSERT INTO `bpt_doorlock` (`id`, `name`, `data`) VALUES - (1, 'mrpd locker rooms', '{"maxDistance":2,"heading":90,"coords":{"x":450.1041259765625,"y":-985.7384033203125,"z":30.83930206298828},"groups":{"police":0},"state":1,"model":1557126584,"hideUi":false}'), - (2, 'mrpd cells/briefing', '{"maxDistance":2,"coords":{"x":444.7078552246094,"y":-989.4454345703125,"z":30.83930206298828},"doors":[{"model":185711165,"coords":{"x":446.0079345703125,"y":-989.4454345703125,"z":30.83930206298828},"heading":0},{"model":185711165,"coords":{"x":443.40777587890627,"y":-989.4454345703125,"z":30.83930206298828},"heading":180}],"groups":{"police":0},"state":1,"hideUi":false}'), - (3, 'mrpd cell 3', '{"maxDistance":2,"heading":90,"coords":{"x":461.8065185546875,"y":-1001.9515380859375,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), - (4, 'mrpd back entrance', '{"maxDistance":2,"coords":{"x":468.6697692871094,"y":-1014.4520263671875,"z":26.5362319946289},"doors":[{"model":-2023754432,"coords":{"x":467.37164306640627,"y":-1014.4520263671875,"z":26.5362319946289},"heading":0},{"model":-2023754432,"coords":{"x":469.9678955078125,"y":-1014.4520263671875,"z":26.5362319946289},"heading":180}],"groups":{"police":0},"state":1,"hideUi":false}'), - (5, 'mrpd cells security door', '{"maxDistance":2,"heading":0,"coords":{"x":464.1282958984375,"y":-1003.5386962890625,"z":25.00598907470703},"autolock":5,"groups":{"police":0},"state":1,"model":-1033001619,"hideUi":false}'), - (6, 'mrpd cell 2', '{"maxDistance":2,"heading":90,"coords":{"x":461.8064880371094,"y":-998.3082885742188,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), - (7, 'mrpd captain\'s office', '{"maxDistance":2,"heading":180,"coords":{"x":446.57281494140627,"y":-980.0105590820313,"z":30.83930206298828},"groups":{"police":0},"state":1,"model":-1320876379,"hideUi":false}'), - (8, 'mrpd gate', '{"maxDistance":6,"heading":90,"coords":{"x":488.894775390625,"y":-1017.2102661132813,"z":27.14714050292968},"groups":{"police":0},"auto":true,"state":1,"model":-1603817716,"hideUi":false}'), - (9, 'mrpd cell 1', '{"maxDistance":2,"heading":270,"coords":{"x":461.8065185546875,"y":-993.7586059570313,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), - (10, 'mrpd cells main', '{"maxDistance":2,"heading":360,"coords":{"x":463.92010498046877,"y":-992.6640625,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), - (11, 'mrpd armoury', '{"maxDistance":2,"heading":270,"coords":{"x":453.08428955078127,"y":-982.5794677734375,"z":30.81926536560058},"autolock":5,"groups":{"police":0},"state":1,"model":749848321,"hideUi":false}') + (32, 'mrpd locker rooms', '{"maxDistance":2,"heading":90,"coords":{"x":450.1041259765625,"y":-985.7384033203125,"z":30.83930206298828},"groups":{"police":0},"state":1,"model":1557126584,"hideUi":false}'), + (33, 'mrpd cells/briefing', '{"maxDistance":2,"coords":{"x":444.7078552246094,"y":-989.4454345703125,"z":30.83930206298828},"doors":[{"model":185711165,"coords":{"x":446.0079345703125,"y":-989.4454345703125,"z":30.83930206298828},"heading":0},{"model":185711165,"coords":{"x":443.40777587890627,"y":-989.4454345703125,"z":30.83930206298828},"heading":180}],"groups":{"police":0},"state":1,"hideUi":false}'), + (34, 'mrpd cell 3', '{"maxDistance":2,"heading":90,"coords":{"x":461.8065185546875,"y":-1001.9515380859375,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), + (35, 'mrpd back entrance', '{"maxDistance":2,"coords":{"x":468.6697692871094,"y":-1014.4520263671875,"z":26.5362319946289},"doors":[{"model":-2023754432,"coords":{"x":467.37164306640627,"y":-1014.4520263671875,"z":26.5362319946289},"heading":0},{"model":-2023754432,"coords":{"x":469.9678955078125,"y":-1014.4520263671875,"z":26.5362319946289},"heading":180}],"groups":{"police":0},"state":1,"hideUi":false}'), + (36, 'mrpd cells security door', '{"maxDistance":2,"heading":0,"coords":{"x":464.1282958984375,"y":-1003.5386962890625,"z":25.00598907470703},"autolock":5,"groups":{"police":0},"state":1,"model":-1033001619,"hideUi":false}'), + (37, 'mrpd cell 2', '{"maxDistance":2,"heading":90,"coords":{"x":461.8064880371094,"y":-998.3082885742188,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), + (38, 'mrpd captain\'s office', '{"maxDistance":2,"heading":180,"coords":{"x":446.57281494140627,"y":-980.0105590820313,"z":30.83930206298828},"groups":{"police":0},"state":1,"model":-1320876379,"hideUi":false}'), + (39, 'mrpd gate', '{"maxDistance":6,"heading":90,"coords":{"x":488.894775390625,"y":-1017.2102661132813,"z":27.14714050292968},"groups":{"police":0},"auto":true,"state":1,"model":-1603817716,"hideUi":false}'), + (40, 'mrpd cell 1', '{"maxDistance":2,"heading":270,"coords":{"x":461.8065185546875,"y":-993.7586059570313,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), + (41, 'mrpd cells main', '{"maxDistance":2,"heading":360,"coords":{"x":463.92010498046877,"y":-992.6640625,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'), + (42, 'mrpd armoury', '{"maxDistance":2,"heading":270,"coords":{"x":453.08428955078127,"y":-982.5794677734375,"z":30.81926536560058},"autolock":5,"groups":{"police":0},"state":1,"model":749848321,"hideUi":false}') ; \ No newline at end of file diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.92dc219b.css b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index--VMHtFXG.css similarity index 100% rename from server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.92dc219b.css rename to server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index--VMHtFXG.css diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index-_DKQEF6J.js b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index-_DKQEF6J.js new file mode 100644 index 000000000..3f8ab19aa --- /dev/null +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index-_DKQEF6J.js @@ -0,0 +1,101 @@ +function u$(e,t){for(var r=0;rn[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"]'))n(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();function gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y0={exports:{}},Gs={},X0={exports:{}},q={};/** + * @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 Ml=Symbol.for("react.element"),c$=Symbol.for("react.portal"),f$=Symbol.for("react.fragment"),d$=Symbol.for("react.strict_mode"),p$=Symbol.for("react.profiler"),g$=Symbol.for("react.provider"),m$=Symbol.for("react.context"),v$=Symbol.for("react.forward_ref"),h$=Symbol.for("react.suspense"),y$=Symbol.for("react.memo"),w$=Symbol.for("react.lazy"),Xp=Symbol.iterator;function _$(e){return e===null||typeof e!="object"?null:(e=Xp&&e[Xp]||e["@@iterator"],typeof e=="function"?e:null)}var Q0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K0=Object.assign,q0={};function ho(e,t,r){this.props=e,this.context=t,this.refs=q0,this.updater=r||Q0}ho.prototype.isReactComponent={};ho.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")};ho.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Z0(){}Z0.prototype=ho.prototype;function md(e,t,r){this.props=e,this.context=t,this.refs=q0,this.updater=r||Q0}var vd=md.prototype=new Z0;vd.constructor=md;K0(vd,ho.prototype);vd.isPureReactComponent=!0;var Qp=Array.isArray,J0=Object.prototype.hasOwnProperty,hd={current:null},ey={key:!0,ref:!0,__self:!0,__source:!0};function ty(e,t,r){var n,o={},l=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)J0.call(t,n)&&!ey.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,G=j[A];if(0>>1;A<$e;){var R=2*(A+1)-1,F=j[R],H=R+1,te=j[H];if(0>o(F,M))Ho(te,F)?(j[A]=te,j[H]=M,A=H):(j[A]=F,j[R]=M,A=R);else if(Ho(te,M))j[A]=te,j[H]=M,A=H;else break e}}return z}function o(j,z){var M=j.sortIndex-z.sortIndex;return M!==0?M:j.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var s=[],u=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var z=r(u);z!==null;){if(z.callback===null)n(u);else if(z.startTime<=j)n(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=r(u)}}function x(j){if(m=!1,w(j),!h)if(r(s)!==null)h=!0,W(b);else{var z=r(u);z!==null&&oe(x,z.startTime-j)}}function b(j,z){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var M=d;try{for(w(z),f=r(s);f!==null&&(!(f.expirationTime>z)||j&&!N());){var A=f.callback;if(typeof A=="function"){f.callback=null,d=f.priorityLevel;var G=A(f.expirationTime<=z);z=e.unstable_now(),typeof G=="function"?f.callback=G:f===r(s)&&n(s),w(z)}else n(s);f=r(s)}if(f!==null)var $e=!0;else{var R=r(u);R!==null&&oe(x,R.startTime-z),$e=!1}return $e}finally{f=null,d=M,p=!1}}var $=!1,O=null,C=-1,k=5,I=-1;function N(){return!(e.unstable_now()-Ij||125A?(j.sortIndex=M,t(u,j),r(s)===null&&j===r(u)&&(m?(v(C),C=-1):m=!0,oe(x,M-A))):(j.sortIndex=G,t(s,j),h||p||(h=!0,W(b))),j},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(j){var z=d;return function(){var M=d;d=z;try{return j.apply(this,arguments)}finally{d=M}}}})(ly);oy.exports=ly;var I$=oy.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 iy=g,dt=I$;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yc=Object.prototype.hasOwnProperty,j$=/^[: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]*$/,qp={},Zp={};function N$(e){return Yc.call(Zp,e)?!0:Yc.call(qp,e)?!1:j$.test(e)?Zp[e]=!0:(qp[e]=!0,!1)}function z$(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D$(e,t,r,n){if(t===null||typeof t>"u"||z$(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,r,n,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Me[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Me[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Me[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Me[e]=new Ke(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){Me[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Me[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Me[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Me[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Me[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var wd=/[\-:]([a-z])/g;function _d(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(wd,_d);Me[t]=new Ke(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(wd,_d);Me[t]=new Ke(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(wd,_d);Me[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Me[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});Me.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Me[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sd(e,t,r,n){var o=Me.hasOwnProperty(t)?Me[t]:null;(o!==null?o.type!==0:n||!(2a||o[i]!==l[a]){var s=` +`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=a);break}}}finally{Qu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?qo(e):""}function T$(e){switch(e.tag){case 5:return qo(e.type);case 16:return qo("Lazy");case 13:return qo("Suspense");case 19:return qo("SuspenseList");case 0:case 2:case 15:return e=Ku(e.type,!1),e;case 11:return e=Ku(e.type.render,!1),e;case 1:return e=Ku(e.type,!0),e;default:return""}}function qc(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 An:return"Fragment";case Fn:return"Portal";case Xc:return"Profiler";case xd:return"StrictMode";case Qc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uy:return(e.displayName||"Context")+".Consumer";case sy:return(e._context.displayName||"Context")+".Provider";case Pd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $d:return t=e.displayName||null,t!==null?t:qc(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return qc(e(t))}catch{}}return null}function L$(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 qc(t);case 8:return t===xd?"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 Wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M$(e){var t=fy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,l=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){e._valueTracker||(e._valueTracker=M$(e))}function dy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=fy(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function oa(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 Zc(e,t){var r=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function eg(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function py(e,t){t=t.checked,t!=null&&Sd(e,"checked",t,!1)}function Jc(e,t){py(e,t);var r=Wr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ef(e,t.type,r):t.hasOwnProperty("defaultValue")&&ef(e,t.type,Wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tg(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ef(e,t,r){(t!=="number"||oa(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Zo=Array.isArray;function Zn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ml(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var rl={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},F$=["Webkit","ms","Moz","O"];Object.keys(rl).forEach(function(e){F$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rl[t]=rl[e]})});function hy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||rl.hasOwnProperty(e)&&rl[e]?(""+t).trim():t+"px"}function yy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=hy(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var A$=ve({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 nf(e,t){if(t){if(A$[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function of(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 lf=null;function bd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var af=null,Jn=null,eo=null;function og(e){if(e=Vl(e)){if(typeof af!="function")throw Error(E(280));var t=e.stateNode;t&&(t=qs(t),af(e.stateNode,e.type,t))}}function wy(e){Jn?eo?eo.push(e):eo=[e]:Jn=e}function _y(){if(Jn){var e=Jn,t=eo;if(eo=Jn=null,og(e),t)for(e=0;e>>=0,e===0?32:31-(q$(e)/Z$|0)|0}var ui=64,ci=4194304;function Jo(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 sa(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,l=e.pingedLanes,i=r&268435455;if(i!==0){var a=i&~o;a!==0?n=Jo(a):(l&=i,l!==0&&(n=Jo(l)))}else i=r&~o,i!==0?n=Jo(i):l!==0&&(n=Jo(l));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Fl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=r}function rb(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=ol),pg=" ",gg=!1;function Ay(e,t){switch(e){case"keyup":return Rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function jb(e,t){switch(e){case"compositionend":return Vy(t);case"keypress":return t.which!==32?null:(gg=!0,pg);case"textInput":return e=t.data,e===pg&&gg?null:e;default:return null}}function Nb(e,t){if(Vn)return e==="compositionend"||!Nd&&Ay(e,t)?(e=My(),Hi=Rd=Er=null,Vn=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=yg(r)}}function Uy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gy(){for(var e=window,t=oa();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=oa(e.document)}return t}function zd(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 Hb(e){var t=Gy(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Uy(r.ownerDocument.documentElement,r)){if(n!==null&&zd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,l=Math.min(n.start,o);n=n.end===void 0?l:Math.min(n.end,o),!e.extend&&l>n&&(o=n,n=l,l=o),o=wg(r,l);var i=wg(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Hn=null,pf=null,il=null,gf=!1;function _g(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gf||Hn==null||Hn!==oa(n)||(n=Hn,"selectionStart"in n&&zd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),il&&Sl(il,n)||(il=n,n=fa(pf,"onSelect"),0Un||(e.current=_f[Un],_f[Un]=null,Un--)}function se(e,t){Un++,_f[Un]=e.current,e.current=t}var Ur={},We=Kr(Ur),Je=Kr(!1),wn=Ur;function io(e,t){var r=e.type.contextTypes;if(!r)return Ur;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in r)o[l]=t[l];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function et(e){return e=e.childContextTypes,e!=null}function pa(){ce(Je),ce(We)}function Cg(e,t,r){if(We.current!==Ur)throw Error(E(168));se(We,t),se(Je,r)}function t1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(E(108,L$(e)||"Unknown",o));return ve({},r,n)}function ga(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ur,wn=We.current,se(We,e),se(Je,Je.current),!0}function Eg(e,t,r){var n=e.stateNode;if(!n)throw Error(E(169));r?(e=t1(e,t,wn),n.__reactInternalMemoizedMergedChildContext=e,ce(Je),ce(We),se(We,e)):ce(Je),se(Je,r)}var nr=null,Zs=!1,cc=!1;function r1(e){nr===null?nr=[e]:nr.push(e)}function e2(e){Zs=!0,r1(e)}function qr(){if(!cc&&nr!==null){cc=!0;var e=0,t=ie;try{var r=nr;for(ie=1;e>=i,o-=i,ir=1<<32-Dt(t)+o|r<C?(k=O,O=null):k=O.sibling;var I=d(v,O,w[C],x);if(I===null){O===null&&(O=k);break}e&&O&&I.alternate===null&&t(v,O),y=l(I,y,C),$===null?b=I:$.sibling=I,$=I,O=k}if(C===w.length)return r(v,O),fe&&ln(v,C),b;if(O===null){for(;CC?(k=O,O=null):k=O.sibling;var N=d(v,O,I.value,x);if(N===null){O===null&&(O=k);break}e&&O&&N.alternate===null&&t(v,O),y=l(N,y,C),$===null?b=N:$.sibling=N,$=N,O=k}if(I.done)return r(v,O),fe&&ln(v,C),b;if(O===null){for(;!I.done;C++,I=w.next())I=f(v,I.value,x),I!==null&&(y=l(I,y,C),$===null?b=I:$.sibling=I,$=I);return fe&&ln(v,C),b}for(O=n(v,O);!I.done;C++,I=w.next())I=p(O,v,C,I.value,x),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?C:I.key),y=l(I,y,C),$===null?b=I:$.sibling=I,$=I);return e&&O.forEach(function(T){return t(v,T)}),fe&&ln(v,C),b}function _(v,y,w,x){if(typeof w=="object"&&w!==null&&w.type===An&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ii:e:{for(var b=w.key,$=y;$!==null;){if($.key===b){if(b=w.type,b===An){if($.tag===7){r(v,$.sibling),y=o($,w.props.children),y.return=v,v=y;break e}}else if($.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===$r&&Dg(b)===$.type){r(v,$.sibling),y=o($,w.props),y.ref=Ao(v,$,w),y.return=v,v=y;break e}r(v,$);break}else t(v,$);$=$.sibling}w.type===An?(y=vn(w.props.children,v.mode,x,w.key),y.return=v,v=y):(x=Ki(w.type,w.key,w.props,null,v.mode,x),x.ref=Ao(v,y,w),x.return=v,v=x)}return i(v);case Fn:e:{for($=w.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){r(v,y.sibling),y=o(y,w.children||[]),y.return=v,v=y;break e}else{r(v,y);break}else t(v,y);y=y.sibling}y=yc(w,v.mode,x),y.return=v,v=y}return i(v);case $r:return $=w._init,_(v,y,$(w._payload),x)}if(Zo(w))return h(v,y,w,x);if(Do(w))return m(v,y,w,x);hi(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(r(v,y.sibling),y=o(y,w),y.return=v,v=y):(r(v,y),y=hc(w,v.mode,x),y.return=v,v=y),i(v)):r(v,y)}return _}var so=c1(!0),f1=c1(!1),Hl={},Yt=Kr(Hl),bl=Kr(Hl),Ol=Kr(Hl);function gn(e){if(e===Hl)throw Error(E(174));return e}function Bd(e,t){switch(se(Ol,t),se(bl,e),se(Yt,Hl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rf(t,e)}ce(Yt),se(Yt,t)}function uo(){ce(Yt),ce(bl),ce(Ol)}function d1(e){gn(Ol.current);var t=gn(Yt.current),r=rf(t,e.type);t!==r&&(se(bl,e),se(Yt,r))}function Wd(e){bl.current===e&&(ce(Yt),ce(bl))}var pe=Kr(0);function _a(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fc=[];function Ud(){for(var e=0;er?r:4,e(!0);var n=dc.transition;dc.transition={};try{e(!1),t()}finally{ie=r,dc.transition=n}}function E1(){return Ot().memoizedState}function o2(e,t,r){var n=Fr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},k1(e))R1(t,r);else if(r=i1(e,t,r,n),r!==null){var o=Xe();Tt(r,e,n,o),I1(r,t,n)}}function l2(e,t,r){var n=Fr(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(k1(e))R1(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,a=l(i,r);if(o.hasEagerState=!0,o.eagerState=a,Mt(a,i)){var s=t.interleaved;s===null?(o.next=o,Vd(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=i1(e,t,o,n),r!==null&&(o=Xe(),Tt(r,e,n,o),I1(r,t,n))}}function k1(e){var t=e.alternate;return e===me||t!==null&&t===me}function R1(e,t){al=Sa=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function I1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Cd(e,r)}}var xa={readContext:bt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},i2={readContext:bt,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:Lg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Gi(4194308,4,P1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gi(4,2,e,t)},useMemo:function(e,t){var r=Ht();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ht();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=o2.bind(null,me,e),[n.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:Tg,useDebugValue:Kd,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=Tg(!1),t=e[0];return e=n2.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=me,o=Ht();if(fe){if(r===void 0)throw Error(E(407));r=r()}else{if(r=t(),je===null)throw Error(E(349));Sn&30||m1(n,t,r)}o.memoizedState=r;var l={value:r,getSnapshot:t};return o.queue=l,Lg(h1.bind(null,n,l,e),[e]),n.flags|=2048,kl(9,v1.bind(null,n,l,r,t),void 0,null),r},useId:function(){var e=Ht(),t=je.identifierPrefix;if(fe){var r=ar,n=ir;r=(n&~(1<<32-Dt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Cl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Ut]=t,e[$l]=n,A1(e,t,!1,!1),t.stateNode=e;e:{switch(i=of(r,n),r){case"dialog":ue("cancel",e),ue("close",e),o=n;break;case"iframe":case"object":case"embed":ue("load",e),o=n;break;case"video":case"audio":for(o=0;ofo&&(t.flags|=128,n=!0,Vo(l,!1),t.lanes=4194304)}else{if(!n)if(e=_a(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Vo(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!fe)return Ve(t),null}else 2*we()-l.renderingStartTime>fo&&r!==1073741824&&(t.flags|=128,n=!0,Vo(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(r=l.last,r!==null?r.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=we(),t.sibling=null,r=pe.current,se(pe,n?r&1|2:r&1),t):(Ve(t),null);case 22:case 23:return rp(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?at&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function g2(e,t){switch(Td(t),t.tag){case 1:return et(t.type)&&pa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return uo(),ce(Je),ce(We),Ud(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wd(t),null;case 13:if(ce(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(pe),null;case 4:return uo(),null;case 10:return Ad(t.type._context),null;case 22:case 23:return rp(),null;case 24:return null;default:return null}}var wi=!1,Be=!1,m2=typeof WeakSet=="function"?WeakSet:Set,D=null;function Qn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ye(e,t,n)}else r.current=null}function jf(e,t,r){try{r()}catch(n){ye(e,t,n)}}var Gg=!1;function v2(e,t){if(mf=ua,e=Gy(),zd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,l=n.focusNode;n=n.focusOffset;try{r.nodeType,l.nodeType}catch{r=null;break e}var i=0,a=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==r||o!==0&&f.nodeType!==3||(a=i+o),f!==l||n!==0&&f.nodeType!==3||(s=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===r&&++u===o&&(a=i),d===l&&++c===n&&(s=i),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}r=a===-1||s===-1?null:{start:a,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(vf={focusedElem:e,selectionRange:r},ua=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,_=h.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:jt(t.type,m),_);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(x){ye(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return h=Gg,Gg=!1,h}function sl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&jf(t,r,l)}o=o.next}while(o!==n)}}function tu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Nf(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function B1(e){var t=e.alternate;t!==null&&(e.alternate=null,B1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ut],delete t[$l],delete t[wf],delete t[Zb],delete t[Jb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function W1(e){return e.tag===5||e.tag===3||e.tag===4}function Yg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=da));else if(n!==4&&(e=e.child,e!==null))for(zf(e,t,r),e=e.sibling;e!==null;)zf(e,t,r),e=e.sibling}function Df(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Df(e,t,r),e=e.sibling;e!==null;)Df(e,t,r),e=e.sibling}var De=null,Nt=!1;function Sr(e,t,r){for(r=r.child;r!==null;)U1(e,t,r),r=r.sibling}function U1(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Ys,r)}catch{}switch(r.tag){case 5:Be||Qn(r,t);case 6:var n=De,o=Nt;De=null,Sr(e,t,r),De=n,Nt=o,De!==null&&(Nt?(e=De,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):De.removeChild(r.stateNode));break;case 18:De!==null&&(Nt?(e=De,r=r.stateNode,e.nodeType===8?uc(e.parentNode,r):e.nodeType===1&&uc(e,r),wl(e)):uc(De,r.stateNode));break;case 4:n=De,o=Nt,De=r.stateNode.containerInfo,Nt=!0,Sr(e,t,r),De=n,Nt=o;break;case 0:case 11:case 14:case 15:if(!Be&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&jf(r,t,i),o=o.next}while(o!==n)}Sr(e,t,r);break;case 1:if(!Be&&(Qn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){ye(r,t,a)}Sr(e,t,r);break;case 21:Sr(e,t,r);break;case 22:r.mode&1?(Be=(n=Be)||r.memoizedState!==null,Sr(e,t,r),Be=n):Sr(e,t,r);break;default:Sr(e,t,r)}}function Xg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new m2),t.forEach(function(n){var o=b2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function It(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~l}if(n=o,n=we()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*y2(n/1960))-n,10e?16:e,kr===null)var n=!1;else{if(e=kr,kr=null,ba=0,J&6)throw Error(E(331));var o=J;for(J|=4,D=e.current;D!==null;){var l=D,i=l.child;if(D.flags&16){var a=l.deletions;if(a!==null){for(var s=0;swe()-ep?mn(e,0):Jd|=r),tt(e,t)}function J1(e,t){t===0&&(e.mode&1?(t=ci,ci<<=1,!(ci&130023424)&&(ci=4194304)):t=1);var r=Xe();e=gr(e,t),e!==null&&(Fl(e,t,r),tt(e,r))}function $2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),J1(e,r)}function b2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(E(314))}n!==null&&n.delete(t),J1(e,r)}var ew;ew=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ze=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ze=!1,d2(e,t,r);Ze=!!(e.flags&131072)}else Ze=!1,fe&&t.flags&1048576&&n1(t,va,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Yi(e,t),e=t.pendingProps;var o=io(t,We.current);ro(t,r),o=Yd(null,t,n,e,o,r);var l=Xd();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,et(n)?(l=!0,ga(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hd(t),o.updater=Js,t.stateNode=o,o._reactInternals=t,bf(t,n,e,r),t=Ef(null,t,n,!0,l,r)):(t.tag=0,fe&&l&&Dd(t),Ye(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Yi(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=C2(n),e=jt(n,e),o){case 0:t=Cf(null,t,n,e,r);break e;case 1:t=Bg(null,t,n,e,r);break e;case 11:t=Vg(null,t,n,e,r);break e;case 14:t=Hg(null,t,n,jt(n.type,e),r);break e}throw Error(E(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),Cf(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),Bg(e,t,n,o,r);case 3:e:{if(L1(t),e===null)throw Error(E(387));n=t.pendingProps,l=t.memoizedState,o=l.element,a1(e,t),wa(t,n,null,r);var i=t.memoizedState;if(n=i.element,l.isDehydrated)if(l={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=co(Error(E(423)),t),t=Wg(e,t,n,r,o);break e}else if(n!==o){o=co(Error(E(424)),t),t=Wg(e,t,n,r,o);break e}else for(ut=Tr(t.stateNode.containerInfo.firstChild),ct=t,fe=!0,zt=null,r=f1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ao(),n===o){t=mr(e,t,r);break e}Ye(e,t,n,r)}t=t.child}return t;case 5:return d1(t),e===null&&xf(t),n=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,hf(n,o)?i=null:l!==null&&hf(n,l)&&(t.flags|=32),T1(e,t),Ye(e,t,i,r),t.child;case 6:return e===null&&xf(t),null;case 13:return M1(e,t,r);case 4:return Bd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=so(t,null,n,r):Ye(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),Vg(e,t,n,o,r);case 7:return Ye(e,t,t.pendingProps,r),t.child;case 8:return Ye(e,t,t.pendingProps.children,r),t.child;case 12:return Ye(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,se(ha,n._currentValue),n._currentValue=i,l!==null)if(Mt(l.value,i)){if(l.children===o.children&&!Je.current){t=mr(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var s=a.firstContext;s!==null;){if(s.context===n){if(l.tag===1){s=ur(-1,r&-r),s.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}l.lanes|=r,s=l.alternate,s!==null&&(s.lanes|=r),Pf(l.return,r,t),a.lanes|=r;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(E(341));i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),Pf(i,r,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ye(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,ro(t,r),o=bt(o),n=n(o),t.flags|=1,Ye(e,t,n,r),t.child;case 14:return n=t.type,o=jt(n,t.pendingProps),o=jt(n.type,o),Hg(e,t,n,o,r);case 15:return z1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),Yi(e,t),t.tag=1,et(n)?(e=!0,ga(t)):e=!1,ro(t,r),u1(t,n,o),bf(t,n,o,r),Ef(null,t,n,!0,e,r);case 19:return F1(e,t,r);case 22:return D1(e,t,r)}throw Error(E(156,t.tag))};function tw(e,t){return Cy(e,t)}function O2(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,r,n){return new O2(e,t,r,n)}function op(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C2(e){if(typeof e=="function")return op(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pd)return 11;if(e===$d)return 14}return 2}function Ar(e,t){var r=e.alternate;return r===null?(r=Pt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ki(e,t,r,n,o,l){var i=2;if(n=e,typeof e=="function")op(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case An:return vn(r.children,o,l,t);case xd:i=8,o|=8;break;case Xc:return e=Pt(12,r,t,o|2),e.elementType=Xc,e.lanes=l,e;case Qc:return e=Pt(13,r,t,o),e.elementType=Qc,e.lanes=l,e;case Kc:return e=Pt(19,r,t,o),e.elementType=Kc,e.lanes=l,e;case cy:return nu(r,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sy:i=10;break e;case uy:i=9;break e;case Pd:i=11;break e;case $d:i=14;break e;case $r:i=16,n=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Pt(i,r,t,o),t.elementType=e,t.type=n,t.lanes=l,t}function vn(e,t,r,n){return e=Pt(7,e,n,t),e.lanes=r,e}function nu(e,t,r,n){return e=Pt(22,e,n,t),e.elementType=cy,e.lanes=r,e.stateNode={isHidden:!1},e}function hc(e,t,r){return e=Pt(6,e,null,t),e.lanes=r,e}function yc(e,t,r){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function E2(e,t,r,n,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=Zu(0),this.expirationTimes=Zu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zu(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function lp(e,t,r,n,o,l,i,a,s){return e=new E2(e,t,r,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Pt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hd(l),e}function k2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lw)}catch(e){console.error(e)}}lw(),ny.exports=mt;var su=ny.exports;const z2=gd(su);function Ea(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function D2(e,t,r){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function T2(e,t,r){for(let n=e+1;n{var s;r?.(a);const u=Array.from(((s=Ea(a.currentTarget,e))==null?void 0:s.querySelectorAll(t))||[]).filter(m=>L2(a.currentTarget,m,e)),c=u.findIndex(m=>a.currentTarget===m),f=T2(c,u,n),d=D2(c,u,n),p=l==="rtl"?d:f,h=l==="rtl"?f:d;switch(a.key){case"ArrowRight":{i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[p].focus(),o&&u[p].click());break}case"ArrowLeft":{i==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[h].focus(),o&&u[h].click());break}case"ArrowUp":{i==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[d].focus(),o&&u[d].click());break}case"ArrowDown":{i==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[f].focus(),o&&u[f].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!u[0].disabled&&u[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const m=u.length-1;!u[m].disabled&&u[m].focus();break}}}}function M2(e,t,r){var n;return r?Array.from(((n=Ea(r,t))==null?void 0:n.querySelectorAll(e))||[]).findIndex(o=>o===r):null}function up(e){const t=g.createContext(null);return[({children:o,value:l})=>S.createElement(t.Provider,{value:l},o),()=>{const o=g.useContext(t);if(o===null)throw new Error(e);return o}]}function Il(e){return Array.isArray(e)?e:[e]}function rm(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}function Bl(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}const F2=()=>{};function A2(e,t={active:!0}){return typeof e!="function"||!t.active?F2:r=>{var n;r.key==="Escape"&&(e(),(n=t.onTrigger)==null||n.call(t))}}function sr(e,t){return r=>{e?.(r),t?.(r)}}function V2(){const[e,t]=g.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function H2({data:e}){const t=[],r=[],n=e.reduce((o,l,i)=>(l.group?o[l.group]?o[l.group].push(i):o[l.group]=[i]:r.push(i),o),{});return Object.keys(n).forEach(o=>{t.push(...n[o].map(l=>e[l]))}),t.push(...r.map(o=>e[o])),t}function B2(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}const W2=typeof window<"u"?g.useLayoutEffect:g.useEffect;function U2(e){function t(n){const o=Object.keys(n).reduce((l,i)=>(l[`${e}:${i}`]=a=>n[i](a.detail),l),{});W2(()=>(Object.keys(o).forEach(l=>{window.removeEventListener(l,o[l]),window.addEventListener(l,o[l])}),()=>Object.keys(o).forEach(l=>{window.removeEventListener(l,o[l])})),[])}function r(n){return(...o)=>B2(`${e}:${String(n)}`,o[0])}return[t,r]}function aw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t({fontFamily:e.fontFamily||"sans-serif"})}function X2(e){return()=>({WebkitTapHighlightColor:"transparent","&:focus":{outlineOffset:2,outline:e.focusRing==="always"||e.focusRing==="auto"?`2px solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`:"none"},"&:focus:not(:focus-visible)":{outline:e.focusRing==="auto"||e.focusRing==="never"?"none":void 0}})}function Wl(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function cp(e){const t=Wl(e);return(r,n,o=!0,l=!0)=>{if(typeof r=="string"&&r.includes(".")){const[a,s]=r.split("."),u=parseInt(s,10);if(a in e.colors&&u>=0&&u<10)return e.colors[a][typeof n=="number"&&!l?n:u]}const i=typeof n=="number"?n:t();return r in e.colors?e.colors[r][i]:o?e.colors[e.primaryColor][i]:r}}function uw(e){let t="";for(let r=1;r{const o={from:n?.from||e.defaultGradient.from,to:n?.to||e.defaultGradient.to,deg:n?.deg||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function fp(e){if(typeof e.size=="number")return e.size;const t=e.sizes[e.size];return t!==void 0?t:e.size||e.sizes.md}function q2(e){return t=>`@media (min-width: ${fp({size:t,sizes:e.breakpoints})+1}px)`}function Z2(e){return t=>`@media (max-width: ${fp({size:t,sizes:e.breakpoints})}px)`}function J2(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function eO(e){let t=e.replace("#","");if(t.length===3){const i=t.split("");t=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}const r=parseInt(t,16),n=r>>16&255,o=r>>8&255,l=r&255;return{r:n,g:o,b:l,a:1}}function tO(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}function dp(e){return J2(e)?eO(e):e.startsWith("rgb")?tO(e):{r:0,g:0,b:0,a:1}}function Mn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";const{r,g:n,b:o}=dp(e);return`rgba(${r}, ${n}, ${o}, ${t})`}function rO(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function nO(e,t){const{r,g:n,b:o,a:l}=dp(e),i=1-t,a=s=>Math.round(s*i);return`rgba(${a(r)}, ${a(n)}, ${a(o)}, ${l})`}function oO(e,t){const{r,g:n,b:o,a:l}=dp(e),i=a=>Math.round(a+(255-a)*t);return`rgba(${i(r)}, ${i(n)}, ${i(o)}, ${l})`}function lO(e){return t=>{if(typeof t=="number")return t;const r=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}}function iO(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}function aO(e){const t=cp(e),r=Wl(e),n=cw(e);return({variant:o,color:l,gradient:i,primaryFallback:a})=>{const s=iO(l,e);if(o==="light")return{border:"transparent",background:Mn(t(l,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1),color:l==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(l,e.colorScheme==="dark"?2:r("light")),hover:Mn(t(l,e.colorScheme==="dark"?7:1,a,!1),e.colorScheme==="dark"?.25:.65)};if(o==="default")return{border:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4],background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,color:e.colorScheme==="dark"?e.white:e.black,hover:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]};if(o==="white")return{border:"transparent",background:e.white,color:t(l,r()),hover:null};if(o==="outline")return{border:t(l,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(l,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?Mn(t(l,5,a,!1),.05):Mn(t(l,0,a,!1),.35)};if(o==="gradient")return{background:n(i),color:e.white,border:"transparent",hover:null};if(o==="subtle")return{border:"transparent",background:"transparent",color:l==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(l,e.colorScheme==="dark"?2:r("light")),hover:Mn(t(l,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1)};const u=r(),c=s.isSplittedColor?s.shade:u,f=s.isSplittedColor?s.key:l;return{border:"transparent",background:t(f,c,a),color:e.white,hover:t(f,c===9?8:c+1)}}}function sO(e){return t=>{const r=Wl(e)(t);return e.colors[e.primaryColor][r]}}function uO(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}const Re={fontStyles:Y2,themeColor:cp,focusStyles:X2,linearGradient:Q2,radialGradient:K2,smallerThan:Z2,largerThan:q2,rgba:Mn,size:fp,cover:rO,darken:nO,lighten:oO,radius:lO,variant:aO,primaryShade:Wl,hover:uO,gradient:cw,primaryColor:sO};var cO=Object.defineProperty,fO=Object.defineProperties,dO=Object.getOwnPropertyDescriptors,nm=Object.getOwnPropertySymbols,pO=Object.prototype.hasOwnProperty,gO=Object.prototype.propertyIsEnumerable,om=(e,t,r)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mO=(e,t)=>{for(var r in t||(t={}))pO.call(t,r)&&om(e,r,t[r]);if(nm)for(var r of nm(t))gO.call(t,r)&&om(e,r,t[r]);return e},vO=(e,t)=>fO(e,dO(t));function fw(e){return vO(mO({},e),{fn:{fontStyles:Re.fontStyles(e),themeColor:Re.themeColor(e),focusStyles:Re.focusStyles(e),largerThan:Re.largerThan(e),smallerThan:Re.smallerThan(e),radialGradient:Re.radialGradient,linearGradient:Re.linearGradient,gradient:Re.gradient(e),rgba:Re.rgba,size:Re.size,cover:Re.cover,lighten:Re.lighten,darken:Re.darken,primaryShade:Re.primaryShade(e),radius:Re.radius(e),variant:Re.variant(e),hover:Re.hover,primaryColor:Re.primaryColor(e)}})}const hO=["xs","sm","md","lg","xl"],yO={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:G2,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en"},pp=fw(yO);function wO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Te(_o,--rt):0,po--,Se===10&&(po=1,cu--),Se}function ft(){return Se=rt2||Nl(Se)>3?"":" "}function jO(e,t){for(;--t&&ft()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Ul(e,qi()+(t<6&&Xt()==32&&ft()==32))}function Vf(e){for(;ft();)switch(Se){case e:return rt;case 34:case 39:e!==34&&e!==39&&Vf(Se);break;case 40:e===41&&Vf(e);break;case 92:ft();break}return rt}function NO(e,t){for(;ft()&&e+Se!==57;)if(e+Se===84&&Xt()===47)break;return"/*"+Ul(t,rt-1)+"*"+uu(e===47?e:ft())}function zO(e){for(;!Nl(Xt());)ft();return Ul(e,rt)}function DO(e){return hw(Ji("",null,null,null,[""],e=vw(e),0,[0],e))}function Ji(e,t,r,n,o,l,i,a,s){for(var u=0,c=0,f=i,d=0,p=0,h=0,m=1,_=1,v=1,y=0,w="",x=o,b=l,$=n,O=w;_;)switch(h=y,y=ft()){case 40:if(h!=108&&Te(O,f-1)==58){Af(O+=ne(Zi(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=Zi(y);break;case 9:case 10:case 13:case 32:O+=IO(h);break;case 92:O+=jO(qi()-1,7);continue;case 47:switch(Xt()){case 42:case 47:xi(TO(NO(ft(),qi()),t,r),s);break;default:O+="/"}break;case 123*m:a[u++]=Bt(O)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+c:v==-1&&(O=ne(O,/\f/g,"")),p>0&&Bt(O)-f&&xi(p>32?im(O+";",n,r,f-1):im(ne(O," ","")+";",n,r,f-2),s);break;case 59:O+=";";default:if(xi($=lm(O,t,r,u,c,o,a,w,x=[],b=[],f),l),y===123)if(c===0)Ji(O,t,$,$,x,l,f,a,b);else switch(d===99&&Te(O,3)===110?100:d){case 100:case 108:case 109:case 115:Ji(e,$,$,n&&xi(lm(e,$,$,0,0,o,a,w,o,x=[],f),b),o,b,f,a,n?x:b);break;default:Ji(O,$,$,$,[""],b,0,a,b)}}u=c=p=0,m=v=1,w=O="",f=i;break;case 58:f=1+Bt(O),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&RO()==125)continue}switch(O+=uu(y),y*m){case 38:v=c>0?1:(O+="\f",-1);break;case 44:a[u++]=(Bt(O)-1)*v,v=1;break;case 64:Xt()===45&&(O+=Zi(ft())),d=Xt(),c=f=Bt(w=O+=zO(qi())),y++;break;case 45:h===45&&Bt(O)==2&&(m=0)}}return l}function lm(e,t,r,n,o,l,i,a,s,u,c){for(var f=o-1,d=o===0?l:[""],p=vp(d),h=0,m=0,_=0;h0?d[v]+" "+y:ne(y,/&\f/g,d[v])))&&(s[_++]=w);return fu(e,t,r,o===0?gp:a,s,u,c)}function TO(e,t,r){return fu(e,t,r,dw,uu(kO()),jl(e,2,-2),0)}function im(e,t,r,n){return fu(e,t,r,mp,jl(e,0,n),jl(e,n+1,-1),n)}function oo(e,t){for(var r="",n=vp(e),o=0;o6)switch(Te(e,t+1)){case 109:if(Te(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+ka+(Te(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Af(e,"stretch")?yw(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Te(e,t+1)!==115)break;case 6444:switch(Te(e,Bt(e)-3-(~Af(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(Te(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return re+e+He+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+He+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+He+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+He+e+e}return e}var GO=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case mp:t.return=yw(t.value,t.length);break;case pw:return oo([Bo(t,{value:ne(t.value,"@","@"+re)})],o);case gp:if(t.length)return EO(t.props,function(l){switch(CO(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oo([Bo(t,{props:[ne(l,/:(read-\w+)/,":"+ka+"$1")]})],o);case"::placeholder":return oo([Bo(t,{props:[ne(l,/:(plac\w+)/,":"+re+"input-$1")]}),Bo(t,{props:[ne(l,/:(plac\w+)/,":"+ka+"$1")]}),Bo(t,{props:[ne(l,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},YO=[GO],ww=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var _=m.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||YO,l={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var _=m.getAttribute("data-emotion").split(" "),v=1;v<_.length;v++)l[_[v]]=!0;a.push(m)});var s,u=[WO,UO];{var c,f=[LO,FO(function(m){c.insert(m)})],d=MO(u.concat(o,f)),p=function(_){return oo(DO(_),d)};s=function(_,v,y,w){c=y,p(_?_+"{"+v.styles+"}":v.styles),w&&(h.inserted[v.name]=!0)}}var h={key:r,sheet:new SO({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:s};return h.sheet.hydrate(a),h};function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var iC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},aC=/[A-Z]|^ms/g,sC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bw=function(t){return t.charCodeAt(1)===45},sm=function(t){return t!=null&&typeof t!="boolean"},wc=AO(function(e){return bw(e)?e:e.replace(aC,"-$&").toLowerCase()}),um=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sC,function(n,o,l){return Wt={name:o,styles:l,next:Wt},o})}return iC[t]!==1&&!bw(t)&&typeof r=="number"&&r!==0?r+"px":r};function zl(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Wt={name:r.name,styles:r.styles,next:Wt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Wt={name:n.name,styles:n.styles,next:Wt},n=n.next;var o=r.styles+";";return o}return uC(e,t,r)}case"function":{if(e!==void 0){var l=Wt,i=r(e);return Wt=l,zl(e,t,i)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function uC(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot in e?pC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yC=(e,t)=>{for(var r in t||(t={}))vC.call(t,r)&&pm(e,r,t[r]);if(dm)for(var r of dm(t))hC.call(t,r)&&pm(e,r,t[r]);return e},wC=(e,t)=>gC(e,mC(t));function _C({theme:e}){return S.createElement(_p,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},body:wC(yC({},e.fn.fontStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function Pi(e,t,r){Object.keys(t).forEach(n=>{e[`--mantine-${r}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function SC({theme:e}){const t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--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}`};Pi(t,e.shadows,"shadow"),Pi(t,e.fontSizes,"font-size"),Pi(t,e.radius,"radius"),Pi(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((o,l)=>{t[`--mantine-color-${n}-${l}`]=o})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=`${r[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),S.createElement(_p,{styles:{":root":t}})}var xC=Object.defineProperty,PC=Object.defineProperties,$C=Object.getOwnPropertyDescriptors,gm=Object.getOwnPropertySymbols,bC=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable,mm=(e,t,r)=>t in e?xC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tn=(e,t)=>{for(var r in t||(t={}))bC.call(t,r)&&mm(e,r,t[r]);if(gm)for(var r of gm(t))OC.call(t,r)&&mm(e,r,t[r]);return e},vm=(e,t)=>PC(e,$C(t));function CC(e,t){return t?Object.keys(e).reduce((r,n)=>{if(n==="headings"&&t.headings){const o=t.headings.sizes?Object.keys(e.headings.sizes).reduce((l,i)=>(l[i]=tn(tn({},e.headings.sizes[i]),t.headings.sizes[i]),l),{}):e.headings.sizes;return vm(tn({},r),{headings:vm(tn(tn({},e.headings),t.headings),{sizes:o})})}return r[n]=typeof t[n]=="object"?tn(tn({},e[n]),t[n]):typeof t[n]=="number"||typeof t[n]=="boolean"?t[n]:t[n]||e[n],r},{}):e}function EC(e,t){return fw(CC(e,t))}function kC(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const RC={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:"1px dotted ButtonText"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"},"[hidden]":{display:"none"}};function IC(){return S.createElement(_p,{styles:RC})}var jC=Object.defineProperty,hm=Object.getOwnPropertySymbols,NC=Object.prototype.hasOwnProperty,zC=Object.prototype.propertyIsEnumerable,ym=(e,t,r)=>t in e?jC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fl=(e,t)=>{for(var r in t||(t={}))NC.call(t,r)&&ym(e,r,t[r]);if(hm)for(var r of hm(t))zC.call(t,r)&&ym(e,r,t[r]);return e};const Ra=g.createContext({theme:pp});function yt(){var e;return((e=g.useContext(Ra))==null?void 0:e.theme)||pp}function DC(e){const t=yt(),r=n=>{var o,l;return{styles:((o=t.components[n])==null?void 0:o.styles)||{},classNames:((l=t.components[n])==null?void 0:l.classNames)||{}}};return Array.isArray(e)?e.map(r):[r(e)]}function TC(){var e;return(e=g.useContext(Ra))==null?void 0:e.emotionCache}function ee(e,t,r){var n;const l=(n=yt().components[e])==null?void 0:n.defaultProps;return fl(fl(fl({},t),l),kC(r))}function Ew({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:o=!1,inherit:l=!1,children:i}){const a=g.useContext(Ra),s=EC(pp,l?fl(fl({},a.theme),e):e);return S.createElement(Ra.Provider,{value:{theme:s,emotionCache:t}},r&&S.createElement(IC,null),n&&S.createElement(_C,{theme:s}),o&&S.createElement(SC,{theme:s}),i)}Ew.displayName="@mantine/core/MantineProvider";const kw=g.createContext({classNames:{},styles:{},unstyled:!1});function Rw({children:e,classNames:t,unstyled:r,styles:n,staticSelector:o}){return S.createElement(kw.Provider,{value:{classNames:t,styles:n,unstyled:r,staticSelector:o}},e)}function Cn(){return g.useContext(kw)}const LC={app:100,modal:200,popover:300,overlay:400,max:9999};function So(e){return LC[e]}var wm=Object.getOwnPropertySymbols,MC=Object.prototype.hasOwnProperty,FC=Object.prototype.propertyIsEnumerable,AC=(e,t)=>{var r={};for(var n in e)MC.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wm)for(var n of wm(e))t.indexOf(n)<0&&FC.call(e,n)&&(r[n]=e[n]);return r};function xu(e){const t=e,{m:r,mx:n,my:o,mt:l,mb:i,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:h,pr:m}=t,_=AC(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr"]),v={m:r,mx:n,my:o,mt:l,mb:i,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:h,pr:m};return Object.keys(v).forEach(y=>{v[y]===void 0&&delete v[y]}),{systemStyles:v,rest:_}}function VC(e,t){const r=g.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const HC=ww({key:"mantine",prepend:!0});function BC(){return TC()||HC}var WC=Object.defineProperty,_m=Object.getOwnPropertySymbols,UC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,Sm=(e,t,r)=>t in e?WC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YC=(e,t)=>{for(var r in t||(t={}))UC.call(t,r)&&Sm(e,r,t[r]);if(_m)for(var r of _m(t))GC.call(t,r)&&Sm(e,r,t[r]);return e};const _c="ref";function XC(e){let t;if(e.length!==1)return{args:e,ref:t};const[r]=e;if(!(r instanceof Object))return{args:e,ref:t};if(!(_c in r))return{args:e,ref:t};t=r[_c];const n=YC({},r);return delete n[_c],{args:[n],ref:t}}const{cssFactory:QC}=(()=>{function e(r,n,o){const l=[],i=nC(r,l,o);return l.length<2?o:i+n(l)}function t(r){const{cache:n}=r,o=(...i)=>{const{ref:a,args:s}=XC(i),u=Ow(s,n.registered);return $w(n,u,!1),`${n.key}-${u.name}${a===void 0?"":` ${a}`}`};return{css:o,cx:(...i)=>e(n.registered,o,sw(i))}}return{cssFactory:t}})();function Iw(){const e=BC();return VC(()=>QC({cache:e}),[e])}function KC({cx:e,classes:t,context:r,classNames:n,name:o}){const l=r.reduce((i,a)=>(Object.keys(a.classNames).forEach(s=>{typeof i[s]!="string"?i[s]=`${a.classNames[s]}`:i[s]=`${i[s]} ${a.classNames[s]}`}),i),{});return Object.keys(t).reduce((i,a)=>(i[a]=e(t[a],l[a],n!=null&&n[a],Array.isArray(o)?o.filter(Boolean).map(s=>`mantine-${s}-${a}`).join(" "):o?`mantine-${o}-${a}`:null),i),{})}var qC=Object.defineProperty,xm=Object.getOwnPropertySymbols,ZC=Object.prototype.hasOwnProperty,JC=Object.prototype.propertyIsEnumerable,Pm=(e,t,r)=>t in e?qC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sc=(e,t)=>{for(var r in t||(t={}))ZC.call(t,r)&&Pm(e,r,t[r]);if(xm)for(var r of xm(t))JC.call(t,r)&&Pm(e,r,t[r]);return e};function eE(e){return`__mantine-ref-${e||""}`}function $m(e,t,r){const n=o=>typeof o=="function"?o(t,r||{}):o||{};return Array.isArray(e)?e.map(o=>n(o.styles)).reduce((o,l)=>(Object.keys(l).forEach(i=>{o[i]?o[i]=Sc(Sc({},o[i]),l[i]):o[i]=Sc({},l[i])}),o),{}):n(e)}function Q(e){const t=typeof e=="function"?e:()=>e;function r(n,o){const l=yt(),i=DC(o?.name),{css:a,cx:s}=Iw(),u=t(l,n,eE),c=$m(o?.styles,l,n),f=$m(i,l,n),d=Object.fromEntries(Object.keys(u).map(p=>{const h=s({[a(u[p])]:!o?.unstyled},a(f[p]),a(c[p]));return[p,h]}));return{classes:KC({cx:s,classes:d,context:i,classNames:o?.classNames,name:o?.name}),cx:s,theme:l}}return r}var tE=Object.defineProperty,rE=Object.defineProperties,nE=Object.getOwnPropertyDescriptors,bm=Object.getOwnPropertySymbols,oE=Object.prototype.hasOwnProperty,lE=Object.prototype.propertyIsEnumerable,Om=(e,t,r)=>t in e?tE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wo=(e,t)=>{for(var r in t||(t={}))oE.call(t,r)&&Om(e,r,t[r]);if(bm)for(var r of bm(t))lE.call(t,r)&&Om(e,r,t[r]);return e},Uo=(e,t)=>rE(e,nE(t));const Go={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},$i={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},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(-20px) 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(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) 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:Uo(Wo({},Go),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Uo(Wo({},Go),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Uo(Wo({},Go),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Uo(Wo({},Go),{common:{transformOrigin:"top left"}}),"pop-top-right":Uo(Wo({},Go),{common:{transformOrigin:"top right"}})},Cm=["mousedown","touchstart"];function iE(e,t,r){const n=g.useRef();return g.useEffect(()=>{const o=l=>{const{target:i}=l??{};if(Array.isArray(r)){const a=i?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(i);r.every(u=>!!u&&!u.contains(i))&&!a&&e()}else n.current&&!n.current.contains(i)&&e()};return(t||Cm).forEach(l=>document.addEventListener(l,o)),()=>{(t||Cm).forEach(l=>document.removeEventListener(l,o))}},[n,e,r]),n}function aE(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function sE(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function uE(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,o]=g.useState(r?!1:sE(e,t)),l=g.useRef();return g.useEffect(()=>{if("matchMedia"in window)return l.current=window.matchMedia(e),o(l.current.matches),aE(l.current,i=>o(i.matches))},[e]),n}function xc(e,t,r){return Math.min(Math.max(e,t),r)}const jw=typeof document<"u"?g.useLayoutEffect:g.useEffect;function Gr(e,t){const r=g.useRef(!1);g.useEffect(()=>{r.current?e():r.current=!0},t)}function Nw({opened:e,shouldReturnFocus:t=!0}){const r=g.useRef(),n=()=>{var o;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((o=r.current)==null||o.focus())};return Gr(()=>{let o=-1;const l=i=>{i.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",l),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",l)}},[e]),n}const cE=/input|select|textarea|button|object/,zw="a, input, select, textarea, button, object, [tabindex]";function fE(e){return e.style.display==="none"}function dE(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&r!==document.body;){if(fE(r))return!1;r=r.parentNode}return!0}function Dw(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Hf(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(Dw(e));return(cE.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&dE(e)}function Tw(e){const t=Dw(e);return(Number.isNaN(t)||t>=0)&&Hf(e)}function pE(e){return Array.from(e.querySelectorAll(zw)).filter(Tw)}function gE(e,t){const r=pE(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();const l=r[t.shiftKey?r.length-1:0];l&&l.focus()}function mE(e,t="body > :not(script)"){const r=Array.from(document.querySelectorAll(t)).map(n=>{if(n.contains(e))return;const o=n.getAttribute("aria-hidden");return(o===null||o==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:o}});return()=>{r.forEach(n=>{n&&(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function Lw(e=!0){const t=g.useRef(),r=g.useRef(null),n=g.useCallback(o=>{if(e)if(r.current&&r.current(),o){const l=i=>{r.current=mE(i);let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(zw));a=s.find(Tw)||s.find(Hf)||null,!a&&Hf(o)&&(a=o)}a&&a.focus()};setTimeout(()=>{o.ownerDocument&&l(o)}),t.current=o}else t.current=null},[e]);return g.useEffect(()=>{if(!e)return;const o=l=>{l.key==="Tab"&&t.current&&gE(t.current,l)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e]),n}const vE=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,hE=S.useId||(()=>{});function yE(){const[e,t]=g.useState("");return jw(()=>{t(vE())},[]),e}function wE(){const e=hE();return e?`mantine-${e.replace(/:/g,"")}`:""}function xo(e){return typeof e=="string"?e:wE()||yE()}function Em(e,t,r){g.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[])}function Mw(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function _E(...e){return t=>{e.forEach(r=>Mw(r,t))}}function En(...e){return g.useCallback(_E(...e),e)}function Gl({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[o,l]=g.useState(t!==void 0?t:r),i=a=>{l(a),n?.(a)};return e!==void 0?[e,n,!0]:[o,i,!1]}function xr(e,t){const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)}const bi="dots";function SE({total:e,siblings:t=1,boundaries:r=1,page:n,initialPage:o=1,onChange:l}){const[i,a]=Gl({value:n,onChange:l,defaultValue:o,finalValue:o}),s=h=>{h<=0?a(1):h>e?a(e):a(h)},u=()=>s(i+1),c=()=>s(i-1),f=()=>s(1),d=()=>s(e);return{range:g.useMemo(()=>{if(t*2+3+r*2>=e)return xr(1,e);const m=Math.max(i-t,r),_=Math.min(i+t,e-r),v=m>r+2,y=_e<.5?2*e*e:-1+(4-2*e)*e,PE=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:l})=>{if(!t||!r&&typeof document>"u")return 0;const i=!!r,s=(r||document.body).getBoundingClientRect(),u=t.getBoundingClientRect(),c=f=>u[f]-s[f];if(e==="y"){const f=c("top");if(f===0)return 0;if(n==="start"){const p=f-o;return p<=u.height*(l?0:1)||!l?p:0}const d=i?s.height:window.innerHeight;if(n==="end"){const p=f+o-d+u.height;return p>=-u.height*(l?0:1)||!l?p:0}return n==="center"?f-d/2+u.height/2:0}if(e==="x"){const f=c("left");if(f===0)return 0;if(n==="start"){const p=f-o;return p<=u.width||!l?p:0}const d=i?s.width:window.innerWidth;if(n==="end"){const p=f+o-d+u.width;return p>=-u.width||!l?p:0}return n==="center"?f-d/2+u.width/2:0}return 0},$E=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const r=e==="y"?"scrollTop":"scrollLeft";if(t)return t[r];const{body:n,documentElement:o}=document;return n[r]+o[r]},bE=({axis:e,parent:t,distance:r})=>{if(!t&&typeof document>"u")return;const n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=r;else{const{body:o,documentElement:l}=document;o[n]=r,l[n]=r}};function OE({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=xE,offset:o=0,cancelable:l=!0,isList:i=!1}={}){const a=g.useRef(0),s=g.useRef(0),u=g.useRef(!1),c=g.useRef(null),f=g.useRef(null),d=Fw(),p=()=>{a.current&&cancelAnimationFrame(a.current)},h=g.useCallback(({alignment:_="start"}={})=>{var v;u.current=!1,a.current&&p();const y=(v=$E({parent:c.current,axis:t}))!=null?v:0,w=PE({parent:c.current,target:f.current,axis:t,alignment:_,offset:o,isList:i})-(c.current?0:y);function x(){s.current===0&&(s.current=performance.now());const $=performance.now()-s.current,O=d||e===0?1:$/e,C=y+w*n(O);bE({parent:c.current,axis:t,distance:C}),!u.current&&O<1?a.current=requestAnimationFrame(x):(typeof r=="function"&&r(),s.current=0,a.current=0,p())}x()},[c.current]),m=()=>{l&&(u.current=!0)};return Em("wheel",m,{passive:!0}),Em("touchmove",m,{passive:!0}),g.useEffect(()=>p,[]),{scrollableRef:c,targetRef:f,scrollIntoView:h,cancel:p}}function CE(){if(typeof window>"u"||typeof document>"u")return 0;const e=parseInt(window.getComputedStyle(document.body).paddingRight,10),t=window.innerWidth-document.documentElement.clientWidth;return e+t}const EE=({disableBodyPadding:e})=>{const t=e?null:CE();return`body { + --removed-scroll-width: ${t}px; + touch-action: none; + overflow: hidden !important; + position: relative !important; + ${t?"padding-right: var(--removed-scroll-width) !important;":""} + `};function kE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function RE(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function IE(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function jE(e,t={disableBodyPadding:!1}){const[r,n]=g.useState(e||!1),o=g.useRef(0),{disableBodyPadding:l}=t,i=g.useRef(null),a=()=>{o.current=window.scrollY;const u=EE({disableBodyPadding:l}),c=IE();kE(c,u),RE(c),i.current=c},s=()=>{i?.current&&(i.current.parentNode.removeChild(i.current),i.current=null)};return g.useEffect(()=>(r?a():s(),s),[r]),g.useEffect(()=>{e!==void 0&&n(e)},[e]),g.useEffect(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[r,n]}function NE(){const{userAgent:e}=window.navigator,t=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,r=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return t.test(e)?"macos":n.test(e)?"ios":r.test(e)?"windows":/Android/i.test(e)?"android":/Linux/i.test(e)?"linux":"undetermined"}function zE(){return typeof window<"u"?NE():"undetermined"}function ea(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const km={mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",pt:"paddingTop",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight"},DE=["-xs","-sm","-md","-lg","-xl"];function rn(e){return typeof e=="string"||typeof e=="number"}function nn(e,t){return DE.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}function Rm(e,t){const r={};if(rn(e.p)){const n=nn(e.p,t);r.padding=n}if(rn(e.m)){const n=nn(e.m,t);r.margin=n}if(rn(e.py)){const n=nn(e.py,t);r.paddingTop=n,r.paddingBottom=n}if(rn(e.px)){const n=nn(e.px,t);r.paddingLeft=n,r.paddingRight=n}if(rn(e.my)){const n=nn(e.my,t);r.marginTop=n,r.marginBottom=n}if(rn(e.mx)){const n=nn(e.mx,t);r.marginLeft=n,r.marginRight=n}return Object.keys(km).forEach(n=>{rn(e[n])&&(r[km[n]]=t.fn.size({size:nn(e[n],t),sizes:t.spacing}))}),r}function Im(e,t){return typeof e=="function"?e(t):e}function TE(e,t,r){const n=yt(),{css:o,cx:l}=Iw();return Array.isArray(e)?l(r,o(Rm(t,n)),e.map(i=>o(Im(i,n)))):l(r,o(Im(e,n)),o(Rm(t,n)))}var LE=Object.defineProperty,Ia=Object.getOwnPropertySymbols,Aw=Object.prototype.hasOwnProperty,Vw=Object.prototype.propertyIsEnumerable,jm=(e,t,r)=>t in e?LE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ME=(e,t)=>{for(var r in t||(t={}))Aw.call(t,r)&&jm(e,r,t[r]);if(Ia)for(var r of Ia(t))Vw.call(t,r)&&jm(e,r,t[r]);return e},FE=(e,t)=>{var r={};for(var n in e)Aw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ia)for(var n of Ia(e))t.indexOf(n)<0&&Vw.call(e,n)&&(r[n]=e[n]);return r};const Hw=g.forwardRef((e,t)=>{var r=e,{className:n,component:o,style:l,sx:i}=r,a=FE(r,["className","component","style","sx"]);const{systemStyles:s,rest:u}=xu(a),c=o||"div";return S.createElement(c,ME({ref:t,className:TE(i,s,n),style:l},u))});Hw.displayName="@mantine/core/Box";const Y=Hw;var AE=Object.defineProperty,VE=Object.defineProperties,HE=Object.getOwnPropertyDescriptors,Nm=Object.getOwnPropertySymbols,BE=Object.prototype.hasOwnProperty,WE=Object.prototype.propertyIsEnumerable,zm=(e,t,r)=>t in e?AE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dm=(e,t)=>{for(var r in t||(t={}))BE.call(t,r)&&zm(e,r,t[r]);if(Nm)for(var r of Nm(t))WE.call(t,r)&&zm(e,r,t[r]);return e},UE=(e,t)=>VE(e,HE(t)),GE=Q(e=>({root:UE(Dm(Dm({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})}));const YE=GE;var XE=Object.defineProperty,ja=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Ww=Object.prototype.propertyIsEnumerable,Tm=(e,t,r)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QE=(e,t)=>{for(var r in t||(t={}))Bw.call(t,r)&&Tm(e,r,t[r]);if(ja)for(var r of ja(t))Ww.call(t,r)&&Tm(e,r,t[r]);return e},KE=(e,t)=>{var r={};for(var n in e)Bw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ja)for(var n of ja(e))t.indexOf(n)<0&&Ww.call(e,n)&&(r[n]=e[n]);return r};const Uw=g.forwardRef((e,t)=>{const r=ee("UnstyledButton",{},e),{className:n,component:o="button",unstyled:l}=r,i=KE(r,["className","component","unstyled"]),{classes:a,cx:s}=YE(null,{name:"UnstyledButton",unstyled:l});return S.createElement(Y,QE({component:o,ref:t,className:s(a.root,n),type:o==="button"?"button":void 0},i))});Uw.displayName="@mantine/core/UnstyledButton";const Pu=Uw;var qE=Object.defineProperty,ZE=Object.defineProperties,JE=Object.getOwnPropertyDescriptors,Lm=Object.getOwnPropertySymbols,ek=Object.prototype.hasOwnProperty,tk=Object.prototype.propertyIsEnumerable,Mm=(e,t,r)=>t in e?qE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gw=(e,t)=>{for(var r in t||(t={}))ek.call(t,r)&&Mm(e,r,t[r]);if(Lm)for(var r of Lm(t))tk.call(t,r)&&Mm(e,r,t[r]);return e},rk=(e,t)=>ZE(e,JE(t));const tl={xs:18,sm:22,md:28,lg:34,xl:44};function nk({variant:e,theme:t,color:r}){if(e==="transparent")return{border:"1px solid transparent",color:t.fn.variant({variant:"subtle",color:r}).color,backgroundColor:"transparent"};const n=t.fn.variant({color:r,variant:e});return Gw({backgroundColor:n.background,color:n.color,border:`1px solid ${n.border}`},t.fn.hover({backgroundColor:n.hover}))}var ok=Q((e,{color:t,size:r,radius:n,variant:o})=>({root:rk(Gw({},nk({variant:o,theme:e,color:t})),{position:"relative",height:e.fn.size({size:r,sizes:tl}),minHeight:e.fn.size({size:r,sizes:tl}),width:e.fn.size({size:r,sizes:tl}),minWidth:e.fn.size({size:r,sizes:tl}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),"&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}})}));const lk=ok;var ik=Object.defineProperty,Na=Object.getOwnPropertySymbols,Yw=Object.prototype.hasOwnProperty,Xw=Object.prototype.propertyIsEnumerable,Fm=(e,t,r)=>t in e?ik(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ak=(e,t)=>{for(var r in t||(t={}))Yw.call(t,r)&&Fm(e,r,t[r]);if(Na)for(var r of Na(t))Xw.call(t,r)&&Fm(e,r,t[r]);return e},sk=(e,t)=>{var r={};for(var n in e)Yw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Na)for(var n of Na(e))t.indexOf(n)<0&&Xw.call(e,n)&&(r[n]=e[n]);return r};function uk(e){var t=e,{size:r,color:n}=t,o=sk(t,["size","color"]);return S.createElement("svg",ak({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${r}px`},o),S.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},S.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var ck=Object.defineProperty,za=Object.getOwnPropertySymbols,Qw=Object.prototype.hasOwnProperty,Kw=Object.prototype.propertyIsEnumerable,Am=(e,t,r)=>t in e?ck(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fk=(e,t)=>{for(var r in t||(t={}))Qw.call(t,r)&&Am(e,r,t[r]);if(za)for(var r of za(t))Kw.call(t,r)&&Am(e,r,t[r]);return e},dk=(e,t)=>{var r={};for(var n in e)Qw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&za)for(var n of za(e))t.indexOf(n)<0&&Kw.call(e,n)&&(r[n]=e[n]);return r};function pk(e){var t=e,{size:r,color:n}=t,o=dk(t,["size","color"]);return S.createElement("svg",fk({width:`${r}px`,height:`${r}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},o),S.createElement("g",{fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},S.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),S.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},S.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var gk=Object.defineProperty,Da=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,Zw=Object.prototype.propertyIsEnumerable,Vm=(e,t,r)=>t in e?gk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mk=(e,t)=>{for(var r in t||(t={}))qw.call(t,r)&&Vm(e,r,t[r]);if(Da)for(var r of Da(t))Zw.call(t,r)&&Vm(e,r,t[r]);return e},vk=(e,t)=>{var r={};for(var n in e)qw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Da)for(var n of Da(e))t.indexOf(n)<0&&Zw.call(e,n)&&(r[n]=e[n]);return r};function hk(e){var t=e,{size:r,color:n}=t,o=vk(t,["size","color"]);return S.createElement("svg",mk({width:`${r}px`,height:`${r/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},o),S.createElement("circle",{cx:"15",cy:"15",r:"15"},S.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},S.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),S.createElement("circle",{cx:"105",cy:"15",r:"15"},S.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),S.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var yk=Object.defineProperty,Ta=Object.getOwnPropertySymbols,Jw=Object.prototype.hasOwnProperty,e_=Object.prototype.propertyIsEnumerable,Hm=(e,t,r)=>t in e?yk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wk=(e,t)=>{for(var r in t||(t={}))Jw.call(t,r)&&Hm(e,r,t[r]);if(Ta)for(var r of Ta(t))e_.call(t,r)&&Hm(e,r,t[r]);return e},_k=(e,t)=>{var r={};for(var n in e)Jw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ta)for(var n of Ta(e))t.indexOf(n)<0&&e_.call(e,n)&&(r[n]=e[n]);return r};const Pc={bars:uk,oval:pk,dots:hk},Sk={xs:18,sm:22,md:36,lg:44,xl:58},xk={size:"md"};function Sp(e){const t=ee("Loader",xk,e),{size:r,color:n,variant:o}=t,l=_k(t,["size","color","variant"]),i=yt(),a=o in Pc?o:i.loader;return S.createElement(Y,wk({role:"presentation",component:Pc[a]||Pc.bars,size:i.fn.size({size:r,sizes:Sk}),color:i.fn.variant({variant:"filled",primaryFallback:!1,color:n||i.primaryColor}).background},l))}Sp.displayName="@mantine/core/Loader";var Pk=Object.defineProperty,La=Object.getOwnPropertySymbols,t_=Object.prototype.hasOwnProperty,r_=Object.prototype.propertyIsEnumerable,Bm=(e,t,r)=>t in e?Pk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wm=(e,t)=>{for(var r in t||(t={}))t_.call(t,r)&&Bm(e,r,t[r]);if(La)for(var r of La(t))r_.call(t,r)&&Bm(e,r,t[r]);return e},$k=(e,t)=>{var r={};for(var n in e)t_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&La)for(var n of La(e))t.indexOf(n)<0&&r_.call(e,n)&&(r[n]=e[n]);return r};const bk={color:"gray",size:"md",variant:"subtle",loading:!1},n_=g.forwardRef((e,t)=>{const r=ee("ActionIcon",bk,e),{className:n,color:o,children:l,radius:i,size:a,variant:s,disabled:u,loaderProps:c,loading:f,unstyled:d}=r,p=$k(r,["className","color","children","radius","size","variant","disabled","loaderProps","loading","unstyled"]),{classes:h,cx:m,theme:_}=lk({size:a,radius:i,color:o,variant:s},{name:"ActionIcon",unstyled:d}),v=_.fn.variant({color:o,variant:"light"}),y=S.createElement(Sp,Wm({color:v.color,size:_.fn.size({size:a,sizes:tl})-12},c));return S.createElement(Pu,Wm({className:m(h.root,n),ref:t,disabled:u||f,"data-disabled":u||void 0,"data-loading":f||void 0,unstyled:d},p),f?y:l)});n_.displayName="@mantine/core/ActionIcon";const Ft=n_;function o_(e){const{children:t,target:r,className:n}=ee("Portal",{},e),o=yt(),[l,i]=g.useState(!1),a=g.useRef();return jw(()=>(i(!0),a.current=r?typeof r=="string"?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(a.current),()=>{!r&&document.body.removeChild(a.current)}),[r]),l?su.createPortal(S.createElement("div",{className:n,dir:o.dir},t),a.current):null}o_.displayName="@mantine/core/Portal";var Ok=Object.defineProperty,Ma=Object.getOwnPropertySymbols,l_=Object.prototype.hasOwnProperty,i_=Object.prototype.propertyIsEnumerable,Um=(e,t,r)=>t in e?Ok(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ck=(e,t)=>{for(var r in t||(t={}))l_.call(t,r)&&Um(e,r,t[r]);if(Ma)for(var r of Ma(t))i_.call(t,r)&&Um(e,r,t[r]);return e},Ek=(e,t)=>{var r={};for(var n in e)l_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ma)for(var n of Ma(e))t.indexOf(n)<0&&i_.call(e,n)&&(r[n]=e[n]);return r};function Yl(e){var t=e,{withinPortal:r=!0,children:n}=t,o=Ek(t,["withinPortal","children"]);return r?S.createElement(o_,Ck({},o),n):S.createElement(S.Fragment,null,n)}Yl.displayName="@mantine/core/OptionalPortal";var kk=Object.defineProperty,Gm=Object.getOwnPropertySymbols,Rk=Object.prototype.hasOwnProperty,Ik=Object.prototype.propertyIsEnumerable,Ym=(e,t,r)=>t in e?kk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jk=(e,t)=>{for(var r in t||(t={}))Rk.call(t,r)&&Ym(e,r,t[r]);if(Gm)for(var r of Gm(t))Ik.call(t,r)&&Ym(e,r,t[r]);return e};function a_(e){return S.createElement("svg",jk({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}a_.displayName="@mantine/core/CloseIcon";var Nk=Object.defineProperty,Fa=Object.getOwnPropertySymbols,s_=Object.prototype.hasOwnProperty,u_=Object.prototype.propertyIsEnumerable,Xm=(e,t,r)=>t in e?Nk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zk=(e,t)=>{for(var r in t||(t={}))s_.call(t,r)&&Xm(e,r,t[r]);if(Fa)for(var r of Fa(t))u_.call(t,r)&&Xm(e,r,t[r]);return e},Dk=(e,t)=>{var r={};for(var n in e)s_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&u_.call(e,n)&&(r[n]=e[n]);return r};const Tk={xs:12,sm:14,md:16,lg:20,xl:24},Lk={size:"md"},$u=g.forwardRef((e,t)=>{const r=ee("CloseButton",Lk,e),{iconSize:n,size:o="md"}=r,l=Dk(r,["iconSize","size"]),i=yt(),a=n||i.fn.size({size:o,sizes:Tk});return S.createElement(Ft,zk({size:o,ref:t},l),S.createElement(a_,{width:a,height:a}))});$u.displayName="@mantine/core/CloseButton";var Mk=Object.defineProperty,Fk=Object.defineProperties,Ak=Object.getOwnPropertyDescriptors,Qm=Object.getOwnPropertySymbols,Vk=Object.prototype.hasOwnProperty,Hk=Object.prototype.propertyIsEnumerable,Km=(e,t,r)=>t in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oi=(e,t)=>{for(var r in t||(t={}))Vk.call(t,r)&&Km(e,r,t[r]);if(Qm)for(var r of Qm(t))Hk.call(t,r)&&Km(e,r,t[r]);return e},Bk=(e,t)=>Fk(e,Ak(t));function Wk({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function Uk({theme:e,color:t,variant:r}){return t==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:r==="link"?e.colors[e.primaryColor][e.colorScheme==="dark"?4:7]:t||"inherit"}function Gk(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}var Yk=Q((e,{color:t,variant:r,size:n,lineClamp:o,inline:l,inherit:i,underline:a,gradient:s,weight:u,transform:c,align:f,strikethrough:d,italic:p})=>{const h=e.fn.variant({variant:"gradient",gradient:s});return{root:Oi(Bk(Oi(Oi(Oi({},e.fn.fontStyles()),e.fn.focusStyles()),Gk(o)),{color:Uk({color:t,theme:e,variant:r}),fontFamily:i?"inherit":e.fontFamily,fontSize:i||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:i?"inherit":l?1:e.lineHeight,textDecoration:Wk({underline:a,strikethrough:d}),WebkitTapHighlightColor:"transparent",fontWeight:i?"inherit":u,textTransform:c,textAlign:f,fontStyle:p?"italic":void 0}),e.fn.hover(r==="link"&&a===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:h.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});const Xk=Yk;var Qk=Object.defineProperty,Aa=Object.getOwnPropertySymbols,c_=Object.prototype.hasOwnProperty,f_=Object.prototype.propertyIsEnumerable,qm=(e,t,r)=>t in e?Qk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kk=(e,t)=>{for(var r in t||(t={}))c_.call(t,r)&&qm(e,r,t[r]);if(Aa)for(var r of Aa(t))f_.call(t,r)&&qm(e,r,t[r]);return e},qk=(e,t)=>{var r={};for(var n in e)c_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Aa)for(var n of Aa(e))t.indexOf(n)<0&&f_.call(e,n)&&(r[n]=e[n]);return r};const Zk={variant:"text"},d_=g.forwardRef((e,t)=>{const r=ee("Text",Zk,e),{className:n,size:o,weight:l,transform:i,color:a,align:s,variant:u,lineClamp:c,gradient:f,inline:d,inherit:p,underline:h,strikethrough:m,italic:_,classNames:v,styles:y,unstyled:w,span:x}=r,b=qk(r,["className","size","weight","transform","color","align","variant","lineClamp","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:$,cx:O}=Xk({variant:u,color:a,size:o,lineClamp:c,inline:d,inherit:p,underline:h,strikethrough:m,italic:_,weight:l,transform:i,align:s,gradient:f},{unstyled:w,name:"Text"});return S.createElement(Y,Kk({ref:t,className:O($.root,{[$.gradient]:u==="gradient"},n),component:x?"span":"div"},b))});d_.displayName="@mantine/core/Text";const Ct=d_,Ci={xs:1,sm:2,md:3,lg:4,xl:5};function Ei(e,t){const r=e.fn.variant({variant:"outline",color:t}).border;return typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?r:t===void 0?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]:t}var Jk=Q((e,{size:t,variant:r,color:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:1,borderTop:`${e.fn.size({size:t,sizes:Ci})}px ${r} ${Ei(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:Ci})}px ${r} ${Ei(e,n)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:n==="dark"?e.colors.dark[1]:e.fn.themeColor(n,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:e.fn.size({size:t,sizes:Ci}),borderTopColor:Ei(e,n),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:Ci}),borderLeftColor:Ei(e,n),borderLeftStyle:r}}));const e3=Jk;var t3=Object.defineProperty,r3=Object.defineProperties,n3=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,p_=Object.prototype.hasOwnProperty,g_=Object.prototype.propertyIsEnumerable,Zm=(e,t,r)=>t in e?t3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jm=(e,t)=>{for(var r in t||(t={}))p_.call(t,r)&&Zm(e,r,t[r]);if(Va)for(var r of Va(t))g_.call(t,r)&&Zm(e,r,t[r]);return e},o3=(e,t)=>r3(e,n3(t)),l3=(e,t)=>{var r={};for(var n in e)p_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Va)for(var n of Va(e))t.indexOf(n)<0&&g_.call(e,n)&&(r[n]=e[n]);return r};const i3={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},Bf=g.forwardRef((e,t)=>{const r=ee("Divider",i3,e),{className:n,color:o,orientation:l,size:i,label:a,labelPosition:s,labelProps:u,variant:c,styles:f,classNames:d,unstyled:p}=r,h=l3(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:m,cx:_}=e3({color:o,size:i,variant:c},{classNames:d,styles:f,unstyled:p,name:"Divider"}),v=l==="vertical",y=l==="horizontal",w=!!a&&y,x=!u?.color;return S.createElement(Y,Jm({ref:t,className:_(m.root,{[m.vertical]:v,[m.horizontal]:y,[m.withLabel]:w},n),role:"separator"},h),w&&S.createElement(Ct,o3(Jm({},u),{size:u?.size||"xs",sx:{marginTop:2},className:_(m.label,m[s],{[m.labelDefaultStyles]:x})}),a))});Bf.displayName="@mantine/core/Divider";var a3=Object.defineProperty,ev=Object.getOwnPropertySymbols,s3=Object.prototype.hasOwnProperty,u3=Object.prototype.propertyIsEnumerable,tv=(e,t,r)=>t in e?a3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c3=(e,t)=>{for(var r in t||(t={}))s3.call(t,r)&&tv(e,r,t[r]);if(ev)for(var r of ev(t))u3.call(t,r)&&tv(e,r,t[r]);return e},f3=Q((e,{size:t})=>({item:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`,cursor:"pointer",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderRadius:e.radius.sm,"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":c3({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}},nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:e.fn.size({size:t,sizes:e.spacing})/2,paddingBottom:e.fn.size({size:t,sizes:e.spacing})/2,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}}));const d3=f3;var p3=Object.defineProperty,rv=Object.getOwnPropertySymbols,g3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable,nv=(e,t,r)=>t in e?p3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v3=(e,t)=>{for(var r in t||(t={}))g3.call(t,r)&&nv(e,r,t[r]);if(rv)for(var r of rv(t))m3.call(t,r)&&nv(e,r,t[r]);return e};function m_({data:e,hovered:t,classNames:r,styles:n,isItemSelected:o,uuid:l,__staticSelector:i,onItemHover:a,onItemSelect:s,itemsRefs:u,itemComponent:c,size:f,nothingFound:d,creatable:p,createLabel:h,unstyled:m}){const{classes:_}=d3({size:f},{classNames:r,styles:n,unstyled:m,name:i}),v=[],y=[];let w=null;const x=($,O)=>{const C=typeof o=="function"?o($.value):!1;return S.createElement(c,v3({key:$.value,className:_.item,"data-disabled":$.disabled||void 0,"data-hovered":!$.disabled&&t===O||void 0,"data-selected":!$.disabled&&C||void 0,onMouseEnter:()=>a(O),id:`${l}-${O}`,role:"option","data-ignore-outside-clicks":!0,tabIndex:-1,"aria-selected":t===O,ref:k=>{u&&u.current&&(u.current[$.value]=k)},onMouseDown:$.disabled?null:k=>{k.preventDefault(),s($)},disabled:$.disabled},$))};let b=null;if(e.forEach(($,O)=>{$.creatable?w=O:$.group?(b!==$.group&&(b=$.group,y.push(S.createElement("div",{className:_.separator,key:`__mantine-divider-${O}`},S.createElement(Bf,{classNames:{label:_.separatorLabel},label:$.group})))),y.push(x($,O))):v.push(x($,O))}),p){const $=e[w];v.push(S.createElement("div",{key:ea(),className:_.item,"data-hovered":t===w||void 0,onMouseEnter:()=>a(w),onMouseDown:O=>{O.preventDefault(),s($)},tabIndex:-1,ref:O=>{u&&u.current&&(u.current[$.value]=O)}},h))}return y.length>0&&v.length>0&&v.unshift(S.createElement("div",{className:_.separator,key:"empty-group-separator"},S.createElement(Bf,null))),y.length>0||v.length>0?S.createElement(S.Fragment,null,y,v):S.createElement(Ct,{size:f,unstyled:m,className:_.nothingFound},d)}m_.displayName="@mantine/core/SelectItems";var h3=Object.defineProperty,Ha=Object.getOwnPropertySymbols,v_=Object.prototype.hasOwnProperty,h_=Object.prototype.propertyIsEnumerable,ov=(e,t,r)=>t in e?h3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y3=(e,t)=>{for(var r in t||(t={}))v_.call(t,r)&&ov(e,r,t[r]);if(Ha)for(var r of Ha(t))h_.call(t,r)&&ov(e,r,t[r]);return e},w3=(e,t)=>{var r={};for(var n in e)v_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ha)for(var n of Ha(e))t.indexOf(n)<0&&h_.call(e,n)&&(r[n]=e[n]);return r};const y_=g.forwardRef((e,t)=>{var r=e,{label:n,value:o}=r,l=w3(r,["label","value"]);return S.createElement("div",y3({ref:t},l),n||o)});y_.displayName="@mantine/core/DefaultItem";function _3(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function w_(...e){return t=>e.forEach(r=>_3(r,t))}function kn(...e){return g.useCallback(w_(...e),e)}const __=g.forwardRef((e,t)=>{const{children:r,...n}=e,o=g.Children.toArray(r),l=o.find(x3);if(l){const i=l.props.children,a=o.map(s=>s===l?g.Children.count(i)>1?g.Children.only(null):g.isValidElement(i)?i.props.children:null:s);return g.createElement(Wf,ge({},n,{ref:t}),g.isValidElement(i)?g.cloneElement(i,void 0,a):null)}return g.createElement(Wf,ge({},n,{ref:t}),r)});__.displayName="Slot";const Wf=g.forwardRef((e,t)=>{const{children:r,...n}=e;return g.isValidElement(r)?g.cloneElement(r,{...P3(n,r.props),ref:w_(t,r.ref)}):g.Children.count(r)>1?g.Children.only(null):null});Wf.displayName="SlotClone";const S3=({children:e})=>g.createElement(g.Fragment,null,e);function x3(e){return g.isValidElement(e)&&e.type===S3}function P3(e,t){const r={...t};for(const n in t){const o=e[n],l=t[n];/^on[A-Z]/.test(n)?r[n]=(...a)=>{l?.(...a),o?.(...a)}:n==="style"?r[n]={...o,...l}:n==="className"&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}const $3=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Xl=$3.reduce((e,t)=>{const r=g.forwardRef((n,o)=>{const{asChild:l,...i}=n,a=l?__:t;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(a,ge({},i,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Uf=globalThis?.document?g.useLayoutEffect:()=>{};function b3(e,t){return g.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Ql=e=>{const{present:t,children:r}=e,n=O3(t),o=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),l=kn(n.ref,o.ref);return typeof r=="function"||n.isPresent?g.cloneElement(o,{ref:l}):null};Ql.displayName="Presence";function O3(e){const[t,r]=g.useState(),n=g.useRef({}),o=g.useRef(e),l=g.useRef("none"),i=e?"mounted":"unmounted",[a,s]=b3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=ki(n.current);l.current=a==="mounted"?u:"none"},[a]),Uf(()=>{const u=n.current,c=o.current;if(c!==e){const d=l.current,p=ki(u);e?s("MOUNT"):p==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Uf(()=>{if(t){const u=f=>{const p=ki(n.current).includes(f.animationName);f.target===t&&p&&su.flushSync(()=>s("ANIMATION_END"))},c=f=>{f.target===t&&(l.current=ki(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function ki(e){return e?.animationName||"none"}function C3(e,t=[]){let r=[];function n(l,i){const a=g.createContext(i),s=r.length;r=[...r,i];function u(f){const{scope:d,children:p,...h}=f,m=d?.[e][s]||a,_=g.useMemo(()=>h,Object.values(h));return g.createElement(m.Provider,{value:_},p)}function c(f,d){const p=d?.[e][s]||a,h=g.useContext(p);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,c]}const o=()=>{const l=r.map(i=>g.createContext(i));return function(a){const s=a?.[e]||l;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,E3(o,...t)]}function E3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=n.reduce((a,{useScope:s,scopeName:u})=>{const f=s(l)[`__scope${u}`];return{...a,...f}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function cn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const k3=g.createContext(void 0);function R3(e){const t=g.useContext(k3);return e||t||"ltr"}function I3(e,[t,r]){return Math.min(r,Math.max(t,e))}function hn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function j3(e,t){return g.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const S_="ScrollArea",[x_,CT]=C3(S_),[N3,Et]=x_(S_),z3=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:l=600,...i}=e,[a,s]=g.useState(null),[u,c]=g.useState(null),[f,d]=g.useState(null),[p,h]=g.useState(null),[m,_]=g.useState(null),[v,y]=g.useState(0),[w,x]=g.useState(0),[b,$]=g.useState(!1),[O,C]=g.useState(!1),k=kn(t,N=>s(N)),I=R3(o);return g.createElement(N3,{scope:r,type:n,dir:I,scrollHideDelay:l,scrollArea:a,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:b,onScrollbarXEnabledChange:$,scrollbarY:m,onScrollbarYChange:_,scrollbarYEnabled:O,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:x},g.createElement(Xl.div,ge({dir:I},i,{ref:k,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})))}),D3="ScrollAreaViewport",T3=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...o}=e,l=Et(D3,r),i=g.useRef(null),a=kn(t,i,l.onViewportChange);return g.createElement(g.Fragment,null,g.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),g.createElement(Xl.div,ge({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style}}),g.createElement("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),hr="ScrollAreaScrollbar",L3=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Et(hr,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return g.useEffect(()=>(a?l(!0):i(!0),()=>{a?l(!1):i(!1)}),[a,l,i]),o.type==="hover"?g.createElement(M3,ge({},n,{ref:t,forceMount:r})):o.type==="scroll"?g.createElement(F3,ge({},n,{ref:t,forceMount:r})):o.type==="auto"?g.createElement(P_,ge({},n,{ref:t,forceMount:r})):o.type==="always"?g.createElement(xp,ge({},n,{ref:t})):null}),M3=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Et(hr,e.__scopeScrollArea),[l,i]=g.useState(!1);return g.useEffect(()=>{const a=o.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),g.createElement(Ql,{present:r||l},g.createElement(P_,ge({"data-state":l?"visible":"hidden"},n,{ref:t})))}),F3=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Et(hr,e.__scopeScrollArea),l=e.orientation==="horizontal",i=Ou(()=>s("SCROLL_END"),100),[a,s]=j3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,o.scrollHideDelay,s]),g.useEffect(()=>{const u=o.viewport,c=l?"scrollLeft":"scrollTop";if(u){let f=u[c];const d=()=>{const p=u[c];f!==p&&(s("SCROLL"),i()),f=p};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,l,s,i]),g.createElement(Ql,{present:r||a!=="hidden"},g.createElement(xp,ge({"data-state":a==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:hn(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:hn(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),P_=g.forwardRef((e,t)=>{const r=Et(hr,e.__scopeScrollArea),{forceMount:n,...o}=e,[l,i]=g.useState(!1),a=e.orientation==="horizontal",s=Ou(()=>{if(r.viewport){const u=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=Et(hr,e.__scopeScrollArea),l=g.useRef(null),i=g.useRef(0),[a,s]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=C_(a.viewport,a.content),c={...n,sizes:a,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:d=>l.current=d,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:d=>i.current=d};function f(d,p){return Y3(d,i.current,a,p)}return r==="horizontal"?g.createElement(A3,ge({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollLeft,p=lv(d,a,o.dir);l.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=f(d,o.dir))}})):r==="vertical"?g.createElement(V3,ge({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollTop,p=lv(d,a);l.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=f(d))}})):null}),A3=g.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,l=Et(hr,e.__scopeScrollArea),[i,a]=g.useState(),s=g.useRef(null),u=kn(t,s,l.onScrollbarXChange);return g.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.createElement(b_,ge({"data-orientation":"horizontal"},o,{ref:u,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":bu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,f)=>{if(l.viewport){const d=l.viewport.scrollLeft+c.deltaX;e.onWheelScroll(d),k_(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ba(i.paddingLeft),paddingEnd:Ba(i.paddingRight)}})}}))}),V3=g.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,l=Et(hr,e.__scopeScrollArea),[i,a]=g.useState(),s=g.useRef(null),u=kn(t,s,l.onScrollbarYChange);return g.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.createElement(b_,ge({"data-orientation":"vertical"},o,{ref:u,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":bu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,f)=>{if(l.viewport){const d=l.viewport.scrollTop+c.deltaY;e.onWheelScroll(d),k_(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ba(i.paddingTop),paddingEnd:Ba(i.paddingBottom)}})}}))}),[H3,$_]=x_(hr),b_=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,p=Et(hr,r),[h,m]=g.useState(null),_=kn(t,k=>m(k)),v=g.useRef(null),y=g.useRef(""),w=p.viewport,x=n.content-n.viewport,b=cn(c),$=cn(s),O=Ou(f,10);function C(k){if(v.current){const I=k.clientX-v.current.left,N=k.clientY-v.current.top;u({x:I,y:N})}}return g.useEffect(()=>{const k=I=>{const N=I.target;h?.contains(N)&&b(I,x)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[w,h,x,b]),g.useEffect($,[n,$]),go(h,O),go(p.content,O),g.createElement(H3,{scope:r,scrollbar:h,hasThumb:o,onThumbChange:cn(l),onThumbPointerUp:cn(i),onThumbPositionChange:$,onThumbPointerDown:cn(a)},g.createElement(Xl.div,ge({},d,{ref:_,style:{position:"absolute",...d.style},onPointerDown:hn(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),v.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(k))}),onPointerMove:hn(e.onPointerMove,C),onPointerUp:hn(e.onPointerUp,k=>{k.target.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=y.current,v.current=null})})))}),Gf="ScrollAreaThumb",B3=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=$_(Gf,e.__scopeScrollArea);return g.createElement(Ql,{present:r||o.hasThumb},g.createElement(W3,ge({ref:t},n)))}),W3=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,l=Et(Gf,r),i=$_(Gf,r),{onThumbPositionChange:a}=i,s=kn(t,f=>i.onThumbChange(f)),u=g.useRef(),c=Ou(()=>{u.current&&(u.current(),u.current=void 0)},100);return g.useEffect(()=>{const f=l.viewport;if(f){const d=()=>{if(c(),!u.current){const p=X3(f,a);u.current=p,a()}};return a(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[l.viewport,c,a]),g.createElement(Xl.div,ge({"data-state":i.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:hn(e.onPointerDownCapture,f=>{const p=f.target.getBoundingClientRect(),h=f.clientX-p.left,m=f.clientY-p.top;i.onThumbPointerDown({x:h,y:m})}),onPointerUp:hn(e.onPointerUp,i.onThumbPointerUp)}))}),O_="ScrollAreaCorner",U3=g.forwardRef((e,t)=>{const r=Et(O_,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?g.createElement(G3,ge({},e,{ref:t})):null}),G3=g.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=Et(O_,r),[l,i]=g.useState(0),[a,s]=g.useState(0),u=!!(l&&a);return go(o.scrollbarX,()=>{var c;const f=((c=o.scrollbarX)===null||c===void 0?void 0:c.offsetHeight)||0;o.onCornerHeightChange(f),s(f)}),go(o.scrollbarY,()=>{var c;const f=((c=o.scrollbarY)===null||c===void 0?void 0:c.offsetWidth)||0;o.onCornerWidthChange(f),i(f)}),u?g.createElement(Xl.div,ge({},n,{ref:t,style:{width:l,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Ba(e){return e?parseInt(e,10):0}function C_(e,t){const r=e/t;return isNaN(r)?0:r}function bu(e){const t=C_(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Y3(e,t,r,n="ltr"){const o=bu(r),l=o/2,i=t||l,a=o-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport,f=n==="ltr"?[0,c]:[c*-1,0];return E_([s,u],f)(e)}function lv(e,t,r="ltr"){const n=bu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,i=t.content-t.viewport,a=l-n,s=r==="ltr"?[0,i]:[i*-1,0],u=I3(e,s);return E_([0,i],[0,a])(u)}function E_(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function k_(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const l={left:e.scrollLeft,top:e.scrollTop},i=r.left!==l.left,a=r.top!==l.top;(i||a)&&t(),r=l,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Ou(e,t){const r=cn(e),n=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),g.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function go(e,t){const r=cn(t);Uf(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}const Q3=z3,K3=T3,iv=L3,av=B3,q3=U3;var Z3=Q((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:o},l)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?t:void 0},scrollbar:{display:o?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:t/5,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${l("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:t},'&[data-orientation="horizontal"]':{flexDirection:"column",height:t},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:l("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:t,position:"relative",transition:"background-color 150ms ease",display:o?"none":void 0,"&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:o?"none":void 0}}));const J3=Z3;var e5=Object.defineProperty,t5=Object.defineProperties,r5=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,sv=(e,t,r)=>t in e?e5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j_=(e,t)=>{for(var r in t||(t={}))R_.call(t,r)&&sv(e,r,t[r]);if(Wa)for(var r of Wa(t))I_.call(t,r)&&sv(e,r,t[r]);return e},n5=(e,t)=>t5(e,r5(t)),N_=(e,t)=>{var r={};for(var n in e)R_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wa)for(var n of Wa(e))t.indexOf(n)<0&&I_.call(e,n)&&(r[n]=e[n]);return r};const z_={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},Cu=g.forwardRef((e,t)=>{const r=ee("ScrollArea",z_,e),{children:n,className:o,classNames:l,styles:i,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:h}=r,m=N_(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled"]),[_,v]=g.useState(!1),y=yt(),{classes:w,cx:x}=J3({scrollbarSize:a,offsetScrollbars:f,scrollbarHovered:_,hidden:u==="never"},{name:"ScrollArea",classNames:l,styles:i,unstyled:h});return S.createElement(Q3,{type:u==="never"?"always":u,scrollHideDelay:s,dir:c||y.dir,ref:t,asChild:!0},S.createElement(Y,j_({className:x(w.root,o)},m),S.createElement(K3,{className:w.viewport,ref:d,onScroll:typeof p=="function"?({currentTarget:b})=>p({x:b.scrollLeft,y:b.scrollTop}):void 0},n),S.createElement(iv,{orientation:"horizontal",className:w.scrollbar,forceMount:!0,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)},S.createElement(av,{className:w.thumb})),S.createElement(iv,{orientation:"vertical",className:w.scrollbar,forceMount:!0,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)},S.createElement(av,{className:w.thumb})),S.createElement(q3,{className:w.corner})))}),D_=g.forwardRef((e,t)=>{const r=ee("ScrollAreaAutosize",z_,e),{maxHeight:n,children:o,classNames:l,styles:i,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:h,sx:m}=r,_=N_(r,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return S.createElement(Y,n5(j_({},_),{ref:t,sx:[{display:"flex",maxHeight:n},...Il(m)]}),S.createElement(Y,{sx:{display:"flex",flexDirection:"column",flex:1}},S.createElement(Cu,{classNames:l,styles:i,scrollHideDelay:s,scrollbarSize:a,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:h},o)))});D_.displayName="@mantine/core/ScrollAreaAutosize";Cu.displayName="@mantine/core/ScrollArea";Cu.Autosize=D_;const o5=Cu;var l5=Object.defineProperty,i5=Object.defineProperties,a5=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,uv=(e,t,r)=>t in e?l5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cv=(e,t)=>{for(var r in t||(t={}))T_.call(t,r)&&uv(e,r,t[r]);if(Ua)for(var r of Ua(t))L_.call(t,r)&&uv(e,r,t[r]);return e},s5=(e,t)=>i5(e,a5(t)),u5=(e,t)=>{var r={};for(var n in e)T_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ua)for(var n of Ua(e))t.indexOf(n)<0&&L_.call(e,n)&&(r[n]=e[n]);return r};const Pp=g.forwardRef((e,t)=>{var r=e,{style:n}=r,o=u5(r,["style"]);return S.createElement(o5,s5(cv({},o),{style:cv({width:"100%"},n),viewportRef:t}),o.children)});Pp.displayName="@mantine/core/SelectScrollArea";function Po(e){return e.split("-")[0]}function Eu(e){return e.split("-")[1]}function ku(e){return["top","bottom"].includes(Po(e))?"x":"y"}function M_(e){return e==="y"?"height":"width"}function fv(e,t,r){let{reference:n,floating:o}=e;const l=n.x+n.width/2-o.width/2,i=n.y+n.height/2-o.height/2,a=ku(t),s=M_(a),u=n[s]/2-o[s]/2,c=a==="x";let f;switch(Po(t)){case"top":f={x:l,y:n.y-o.height};break;case"bottom":f={x:l,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:i};break;case"left":f={x:n.x-o.width,y:i};break;default:f={x:n.x,y:n.y}}switch(Eu(t)){case"start":f[a]-=u*(r&&c?-1:1);break;case"end":f[a]+=u*(r&&c?-1:1)}return f}const c5=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:l=[],platform:i}=r,a=await(i.isRTL==null?void 0:i.isRTL(t));let s=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=fv(s,n,a),f=n,d={},p=0;for(let h=0;hp5[t])}function g5(e,t,r){r===void 0&&(r=!1);const n=Eu(e),o=ku(e),l=M_(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Ya(i)),{main:i,cross:Ya(i)}}const m5={start:"end",end:"start"};function pv(e){return e.replace(/start|end/g,t=>m5[t])}const v5=["top","right","bottom","left"];v5.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const F_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:l,initialPlacement:i,platform:a,elements:s}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=e,m=Po(n),_=f||(m===i||!p?[Ya(i)]:function(C){const k=Ya(C);return[pv(C),k,pv(k)]}(i)),v=[i,..._],y=await $p(t,h),w=[];let x=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&w.push(y[m]),c){const{main:C,cross:k}=g5(n,l,await(a.isRTL==null?void 0:a.isRTL(s.floating)));w.push(y[C],y[k])}if(x=[...x,{placement:n,overflows:w}],!w.every(C=>C<=0)){var b,$;const C=((b=($=o.flip)==null?void 0:$.index)!=null?b:0)+1,k=v[C];if(k)return{data:{index:C,overflows:x},reset:{placement:k}};let I="bottom";switch(d){case"bestFit":{var O;const N=(O=x.map(T=>[T,T.overflows.filter(B=>B>0).reduce((B,K)=>B+K,0)]).sort((T,B)=>T[1]-B[1])[0])==null?void 0:O[0].placement;N&&(I=N);break}case"initialPlacement":I=i}if(n!==I)return{reset:{placement:I}}}return{}}}},A_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await async function(l,i){const{placement:a,platform:s,elements:u}=l,c=await(s.isRTL==null?void 0:s.isRTL(u.floating)),f=Po(a),d=Eu(a),p=ku(a)==="x",h=["left","top"].includes(f)?-1:1,m=c&&p?-1:1,_=typeof i=="function"?i(l):i;let{mainAxis:v,crossAxis:y,alignmentAxis:w}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,..._};return d&&typeof w=="number"&&(y=d==="end"?-1*w:w),p?{x:y*m,y:v*h}:{x:v*h,y:y*m}}(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function h5(e){return e==="x"?"y":"x"}const bp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:a={fn:_=>{let{x:v,y}=_;return{x:v,y}}},...s}=e,u={x:r,y:n},c=await $p(t,s),f=ku(Po(o)),d=h5(f);let p=u[f],h=u[d];if(l){const _=f==="y"?"bottom":"right";p=dv(p+c[f==="y"?"top":"left"],p,p-c[_])}if(i){const _=d==="y"?"bottom":"right";h=dv(h+c[d==="y"?"top":"left"],h,h-c[_])}const m=a.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-r,y:m.y-n}}}}},y5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:l}=t,{apply:i,...a}=e,s=await $p(t,a),u=Po(r),c=Eu(r);let f,d;u==="top"||u==="bottom"?(f=u,d=c===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(d=u,f=c==="end"?"top":"bottom");const p=sn(s.left,0),h=sn(s.right,0),m=sn(s.top,0),_=sn(s.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(m!==0||_!==0?m+_:sn(s.top,s.bottom)):s[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(p!==0||h!==0?p+h:sn(s.left,s.right)):s[d])},y=await o.getDimensions(l.floating);i?.({...t,...v});const w=await o.getDimensions(l.floating);return y.width!==w.width||y.height!==w.height?{reset:{rects:!0}}:{}}}};function V_(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function yr(e){if(e==null)return window;if(!V_(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kl(e){return yr(e).getComputedStyle(e)}function cr(e){return V_(e)?"":e?(e.nodeName||"").toLowerCase():""}function H_(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Qt(e){return e instanceof yr(e).HTMLElement}function Yr(e){return e instanceof yr(e).Element}function Op(e){return typeof ShadowRoot>"u"?!1:e instanceof yr(e).ShadowRoot||e instanceof ShadowRoot}function Ru(e){const{overflow:t,overflowX:r,overflowY:n}=Kl(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function w5(e){return["table","td","th"].includes(cr(e))}function gv(e){const t=/firefox/i.test(H_()),r=Kl(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"}function B_(){return!/^((?!chrome|android).)*safari/i.test(H_())}const mv=Math.min,dl=Math.max,Xa=Math.round;function fr(e,t,r){var n,o,l,i;t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect();let s=1,u=1;t&&Qt(e)&&(s=e.offsetWidth>0&&Xa(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Xa(a.height)/e.offsetHeight||1);const c=Yr(e)?yr(e):window,f=!B_()&&r,d=(a.left+(f&&(n=(o=c.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/s,p=(a.top+(f&&(l=(i=c.visualViewport)==null?void 0:i.offsetTop)!=null?l:0))/u,h=a.width/s,m=a.height/u;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function Vr(e){return(t=e,(t instanceof yr(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Iu(e){return Yr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function W_(e){return fr(Vr(e)).left+Iu(e).scrollLeft}function _5(e,t,r){const n=Qt(t),o=Vr(t),l=fr(e,n&&function(s){const u=fr(s);return Xa(u.width)!==s.offsetWidth||Xa(u.height)!==s.offsetHeight}(t),r==="fixed");let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&r!=="fixed")if((cr(t)!=="body"||Ru(o))&&(i=Iu(t)),Qt(t)){const s=fr(t,!0);a.x=s.x+t.clientLeft,a.y=s.y+t.clientTop}else o&&(a.x=W_(o));return{x:l.left+i.scrollLeft-a.x,y:l.top+i.scrollTop-a.y,width:l.width,height:l.height}}function U_(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(Op(e)?e.host:null)||Vr(e)}function vv(e){return Qt(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Yf(e){const t=yr(e);let r=vv(e);for(;r&&w5(r)&&getComputedStyle(r).position==="static";)r=vv(r);return r&&(cr(r)==="html"||cr(r)==="body"&&getComputedStyle(r).position==="static"&&!gv(r))?t:r||function(n){let o=U_(n);for(Op(o)&&(o=o.host);Qt(o)&&!["html","body"].includes(cr(o));){if(gv(o))return o;o=o.parentNode}return null}(e)||t}function hv(e){if(Qt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=fr(e);return{width:t.width,height:t.height}}function G_(e){const t=U_(e);return["html","body","#document"].includes(cr(t))?e.ownerDocument.body:Qt(t)&&Ru(t)?t:G_(t)}function $n(e,t){var r;t===void 0&&(t=[]);const n=G_(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),l=yr(n),i=o?[l].concat(l.visualViewport||[],Ru(n)?n:[]):n,a=t.concat(i);return o?a:a.concat($n(i))}function yv(e,t,r){return t==="viewport"?Ga(function(n,o){const l=yr(n),i=Vr(n),a=l.visualViewport;let s=i.clientWidth,u=i.clientHeight,c=0,f=0;if(a){s=a.width,u=a.height;const d=B_();(d||!d&&o==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:s,height:u,x:c,y:f}}(e,r)):Yr(t)?function(n,o){const l=fr(n,!1,o==="fixed"),i=l.top+n.clientTop,a=l.left+n.clientLeft;return{top:i,left:a,x:a,y:i,right:a+n.clientWidth,bottom:i+n.clientHeight,width:n.clientWidth,height:n.clientHeight}}(t,r):Ga(function(n){var o;const l=Vr(n),i=Iu(n),a=(o=n.ownerDocument)==null?void 0:o.body,s=dl(l.scrollWidth,l.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=dl(l.scrollHeight,l.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let c=-i.scrollLeft+W_(n);const f=-i.scrollTop;return Kl(a||l).direction==="rtl"&&(c+=dl(l.clientWidth,a?a.clientWidth:0)-s),{width:s,height:u,x:c,y:f}}(Vr(e)))}function S5(e){const t=$n(e),r=["absolute","fixed"].includes(Kl(e).position)&&Qt(e)?Yf(e):e;return Yr(r)?t.filter(n=>Yr(n)&&function(o,l){const i=l.getRootNode==null?void 0:l.getRootNode();if(o.contains(l))return!0;if(i&&Op(i)){let a=l;do{if(a&&o===a)return!0;a=a.parentNode||a.host}while(a)}return!1}(n,r)&&cr(n)!=="body"):[]}const x5={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?S5(t):[].concat(r),n],i=l[0],a=l.reduce((s,u)=>{const c=yv(t,u,o);return s.top=dl(c.top,s.top),s.right=mv(c.right,s.right),s.bottom=mv(c.bottom,s.bottom),s.left=dl(c.left,s.left),s},yv(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Qt(r),l=Vr(r);if(r===l)return t;let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&n!=="fixed")&&((cr(r)!=="body"||Ru(l))&&(i=Iu(r)),Qt(r))){const s=fr(r,!0);a.x=s.x+r.clientLeft,a.y=s.y+r.clientTop}return{...t,x:t.x-i.scrollLeft+a.x,y:t.y-i.scrollTop+a.y}},isElement:Yr,getDimensions:hv,getOffsetParent:Yf,getDocumentElement:Vr,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:_5(t,Yf(r),n),floating:{...hv(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Kl(e).direction==="rtl"};function P5(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=!0,animationFrame:a=!1}=n,s=o&&!a,u=l&&!a,c=s||u?[...Yr(e)?$n(e):[],...$n(t)]:[];c.forEach(h=>{s&&h.addEventListener("scroll",r,{passive:!0}),u&&h.addEventListener("resize",r)});let f,d=null;if(i){let h=!0;d=new ResizeObserver(()=>{h||r(),h=!1}),Yr(e)&&!a&&d.observe(e),d.observe(t)}let p=a?fr(e):null;return a&&function h(){const m=fr(e);!p||m.x===p.x&&m.y===p.y&&m.width===p.width&&m.height===p.height||r(),p=m,f=requestAnimationFrame(h)}(),r(),()=>{var h;c.forEach(m=>{s&&m.removeEventListener("scroll",r),u&&m.removeEventListener("resize",r)}),(h=d)==null||h.disconnect(),d=null,a&&cancelAnimationFrame(f)}}const $5=(e,t,r)=>c5(e,t,{platform:x5,...r});var Xf=typeof document<"u"?g.useLayoutEffect:g.useEffect;function Qf(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Qf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const l=o[n];if(!(l==="_owner"&&e.$$typeof)&&!Qf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function b5(e){const t=g.useRef(e);return Xf(()=>{t.current=e}),t}function O5(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const l=g.useRef(null),i=g.useRef(null),a=b5(o),s=g.useRef(null),[u,c]=g.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,d]=g.useState(t);Qf(f?.map(w=>{let{options:x}=w;return x}),t?.map(w=>{let{options:x}=w;return x}))||d(t);const p=g.useCallback(()=>{!l.current||!i.current||$5(l.current,i.current,{middleware:f,placement:r,strategy:n}).then(w=>{h.current&&su.flushSync(()=>{c(w)})})},[f,r,n]);Xf(()=>{h.current&&p()},[p]);const h=g.useRef(!1);Xf(()=>(h.current=!0,()=>{h.current=!1}),[]);const m=g.useCallback(()=>{if(typeof s.current=="function"&&(s.current(),s.current=null),l.current&&i.current)if(a.current){const w=a.current(l.current,i.current,p);s.current=w}else p()},[p,a]),_=g.useCallback(w=>{l.current=w,m()},[m]),v=g.useCallback(w=>{i.current=w,m()},[m]),y=g.useMemo(()=>({reference:l,floating:i}),[]);return g.useMemo(()=>({...u,update:p,refs:y,reference:_,floating:v}),[u,p,y,_,v])}var mo=typeof document<"u"?g.useLayoutEffect:g.useEffect;function C5(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}let $c=!1,E5=0;const wv=()=>"floating-ui-"+E5++;function k5(){const[e,t]=g.useState(()=>$c?wv():void 0);return mo(()=>{e==null&&t(wv())},[]),g.useEffect(()=>{$c||($c=!0)},[]),e}const _v=na.useId,Sv=_v??k5,R5=g.createContext(null),I5=g.createContext(null),j5=()=>{var e,t;return(e=(t=g.useContext(R5))==null?void 0:t.id)!=null?e:null},Cp=()=>g.useContext(I5);function lr(e){var t;return(t=e?.ownerDocument)!=null?t:document}function Y_(e){var t;return(t=lr(e).defaultView)!=null?t:window}function Qa(e){return e?e instanceof Y_(e).Element:!1}function X_(e){return e?e instanceof Y_(e).HTMLElement:!1}function Ep(e){let{open:t=!1,onOpenChange:r=()=>{},whileElementsMounted:n,placement:o,middleware:l,strategy:i,nodeId:a}=e===void 0?{}:e;const s=Cp(),u=g.useRef(null),c=g.useRef({}),f=g.useState(()=>C5())[0],d=O5({placement:o,middleware:l,strategy:i,whileElementsMounted:n}),p=g.useMemo(()=>({...d.refs,domReference:u}),[d.refs]),h=g.useMemo(()=>({...d,refs:p,dataRef:c,nodeId:a,events:f,open:t,onOpenChange:r}),[d,a,f,t,r,p]);mo(()=>{const v=s?.nodesRef.current.find(y=>y.id===a);v&&(v.context=h)});const{reference:m}=d,_=g.useCallback(v=>{(Qa(v)||v===null)&&(h.refs.domReference.current=v),m(v)},[m,h.refs]);return g.useMemo(()=>({...d,context:h,refs:p,reference:_}),[d,p,h,_])}function bc(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(i=>{let[a,s]=i;if(a.indexOf("on")===0){if(n.has(a)||n.set(a,[]),typeof s=="function"){var u;(u=n.get(a))==null||u.push(s)}o[a]=function(){for(var c,f=arguments.length,d=new Array(f),p=0;ph(...d))}}else o[a]=s}),o),{})}}const N5=function(e){return e===void 0&&(e=[]),{getReferenceProps:t=>bc(t,e,"reference"),getFloatingProps:t=>bc(t,e,"floating"),getItemProps:t=>bc(t,e,"item")}};function z5(e,t){var r;let n=(r=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}))!=null?r:[],o=n;for(;o.length;){var l;o=(l=e.filter(i=>{var a;return(a=o)==null?void 0:a.some(s=>{var u;return i.parentId===s.id&&((u=i.context)==null?void 0:u.open)})}))!=null?l:[],n=n.concat(o)}return n}function Q_(e){let t=e.activeElement;for(;((r=t)==null||(n=r.shadowRoot)==null?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}function Ka(e){const t=g.useRef(e);return mo(()=>{t.current=e}),t}function D5(e){const t=g.useRef();return mo(()=>{t.current=e},[e]),t.current}function ta(e,t,r){return r&&r!=="mouse"?0:typeof e=="number"?e:e?.[t]}const T5=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:l=!1,restMs:i=0}=t===void 0?{}:t;const{open:a,onOpenChange:s,dataRef:u,events:c,refs:f}=e,d=Cp(),p=j5(),h=Ka(s),m=Ka(o),_=D5(a),v=g.useRef(),y=g.useRef(),w=g.useRef(),x=g.useRef(),b=g.useRef(!0),$=g.useRef(!1);g.useEffect(()=>{if(!r)return;function N(){clearTimeout(y.current),clearTimeout(x.current),b.current=!0}return c.on("dismiss",N),()=>{c.off("dismiss",N)}},[r,c,f]),g.useEffect(()=>{if(!r||!m.current)return;function N(){var B;(B=u.current.openEvent)!=null&&B.type.includes("mouse")&&h.current(!1)}const T=lr(f.floating.current).documentElement;return T.addEventListener("mouseleave",N),()=>{T.removeEventListener("mouseleave",N)}},[f,h,r,m,u]);const O=g.useCallback(function(N){N===void 0&&(N=!0);const T=ta(n,"close",v.current);T&&!w.current?(clearTimeout(y.current),y.current=setTimeout(()=>h.current(!1),T)):N&&(clearTimeout(y.current),h.current(!1))},[n,h]),C=g.useCallback(()=>{w.current&&(lr(f.floating.current).removeEventListener("pointermove",w.current),w.current=void 0)},[f]),k=g.useCallback(()=>{lr(f.floating.current).body.style.pointerEvents="",$.current=!1},[f]);if(g.useEffect(()=>{if(!r)return;function N(W){if(clearTimeout(y.current),b.current=!1,a||l&&v.current!=="mouse"||i>0&&ta(n,"open")===0)return;u.current.openEvent=W;const oe=ta(n,"open",v.current);oe?y.current=setTimeout(()=>{h.current(!0)},oe):h.current(!0)}function T(W){var oe,j;if(((oe=u.current.openEvent)==null?void 0:oe.type)==="click"||((j=u.current.openEvent)==null?void 0:j.type)==="pointerdown")return;const z=lr(f.floating.current);if(clearTimeout(x.current),m.current){clearTimeout(y.current),w.current&&z.removeEventListener("pointermove",w.current),w.current=m.current({...e,tree:d,x:W.clientX,y:W.clientY,onClose(){C(),O()}}),z.addEventListener("pointermove",w.current);return}O()}function B(W){m.current==null||m.current({...e,tree:d,x:W.clientX,y:W.clientY,leave:!0,onClose(){C(),O()}})(W)}const K=f.floating.current,Z=f.domReference.current;if(Qa(Z))return a&&Z.addEventListener("mouseleave",B),K?.addEventListener("mouseleave",B),Z.addEventListener("mousemove",N,{once:!0}),Z.addEventListener("mouseenter",N),Z.addEventListener("mouseleave",T),()=>{a&&Z.removeEventListener("mouseleave",B),K?.removeEventListener("mouseleave",B),Z.removeEventListener("mousemove",N),Z.removeEventListener("mouseenter",N),Z.removeEventListener("mouseleave",T)}},[r,O,e,n,m,u,l,h,a,d,i,C,f]),mo(()=>{if(r&&a&&m.current){lr(f.floating.current).body.style.pointerEvents="none",$.current=!0;const B=f.domReference.current,K=f.floating.current;if(X_(B)&&K){var N,T;const Z=d==null||(N=d.nodesRef.current.find(W=>W.id===p))==null||(T=N.context)==null?void 0:T.refs.floating.current;return Z&&(Z.style.pointerEvents=""),B.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{B.style.pointerEvents="",K.style.pointerEvents=""}}}},[r,a,p,f,d,m,u]),mo(()=>{_&&!a&&(v.current=void 0,C(),k())}),g.useEffect(()=>()=>{C(),clearTimeout(y.current),clearTimeout(x.current),$.current&&k()},[C,k]),!r)return{};function I(N){v.current=N.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(){a||i===0||(clearTimeout(x.current),x.current=setTimeout(()=>{b.current||s(!0)},i))}},floating:{onMouseEnter(){clearTimeout(y.current)},onMouseLeave(){O(!1)}}}},K_=g.createContext({delay:1e3,initialDelay:1e3,currentId:null,setCurrentId:()=>{},setState:()=>{}}),q_=()=>g.useContext(K_),L5=e=>{let{children:t,delay:r}=e;const[n,o]=g.useState({delay:r,initialDelay:r,currentId:null}),l=g.useCallback(i=>{o(a=>({...a,currentId:i}))},[]);return g.createElement(K_.Provider,{value:g.useMemo(()=>({...n,setState:o,setCurrentId:l}),[n,o,l])},t)},M5=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:l,initialDelay:i,setState:a}=q_(),s=Ka(n);g.useEffect(()=>{l&&s.current&&(a(u=>({...u,delay:{open:1,close:ta(i,"close")}})),l!==o&&s.current(!1))},[o,s,a,l,i]),g.useEffect(()=>{!r&&l===o&&s.current&&(s.current(!1),a(u=>({...u,delay:i,currentId:null})))},[r,a,l,o,s,i])},F5=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const l=Sv(),i=Sv(),a={id:l,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?l:void 0},floating:a}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o,"aria-controls":r?l:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:i}},floating:{...a,...o==="menu"&&{"aria-labelledby":i}}}:{}};function Oc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const A5=function(e,t){let{open:r,onOpenChange:n,refs:o,events:l,nodeId:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePointerDown:u=!0,referencePointerDown:c=!1,ancestorScroll:f=!1,bubbles:d=!0}=t===void 0?{}:t;const p=Cp(),h=Ka(n),m=g.useCallback(()=>{var _;return(_=o.floating.current)==null?void 0:_.contains(Q_(lr(o.floating.current)))},[o]);return g.useEffect(()=>{if(!r||!a)return;function _(b){if(b.key==="Escape"){if(!d&&!m())return;l.emit("dismiss"),h.current(!1),X_(o.domReference.current)&&o.domReference.current.focus()}}function v(b){const $=p&&z5(p.nodesRef.current,i).some(O=>{var C;return Oc(b,(C=O.context)==null?void 0:C.refs.floating.current)});Oc(b,o.floating.current)||Oc(b,o.domReference.current)||$||!d&&!m()||(l.emit("dismiss"),h.current(!1))}function y(){h.current(!1)}const w=lr(o.floating.current);s&&w.addEventListener("keydown",_),u&&w.addEventListener("mousedown",v);const x=(f?[...Qa(o.reference.current)?$n(o.reference.current):[],...Qa(o.floating.current)?$n(o.floating.current):[]]:[]).filter(b=>{var $;return b!==(($=w.defaultView)==null?void 0:$.visualViewport)});return x.forEach(b=>b.addEventListener("scroll",y,{passive:!0})),()=>{s&&w.removeEventListener("keydown",_),u&&w.removeEventListener("mousedown",v),x.forEach(b=>b.removeEventListener("scroll",y))}},[s,u,l,p,i,r,h,f,a,d,m,o]),a?{reference:{onPointerDown(){c&&(l.emit("dismiss"),n(!1))}}}:{}},V5=function(e,t){let{open:r,onOpenChange:n,dataRef:o,refs:l,events:i}=e,{enabled:a=!0,keyboardOnly:s=!0}=t===void 0?{}:t;const u=g.useRef(""),c=g.useRef(!1);return g.useEffect(()=>{var f;if(!a)return;const d=lr(l.floating.current),p=(f=d.defaultView)!=null?f:window;function h(){u.current&&l.domReference.current===Q_(d)&&(c.current=!r)}function m(){setTimeout(()=>{c.current=!1,u.current=""})}return p.addEventListener("focus",m),p.addEventListener("blur",h),()=>{p.removeEventListener("focus",m),p.removeEventListener("blur",h)}},[l,r,a]),g.useEffect(()=>{if(!a)return;function f(){c.current=!0}return i.on("dismiss",f),()=>{i.off("dismiss",f)}},[i,a]),a?{reference:{onPointerDown(f){let{pointerType:d}=f;u.current=d,c.current=!!(d&&s)},onFocus(f){var d,p,h;c.current||f.type==="focus"&&((d=o.current.openEvent)==null?void 0:d.type)==="mousedown"&&(p=l.domReference.current)!=null&&p.contains((h=o.current.openEvent)==null?void 0:h.target)||(o.current.openEvent=f.nativeEvent,n(!0))},onBlur(f){var d,p;const h=f.relatedTarget;(d=l.floating.current)!=null&&d.contains(h)||(p=l.domReference.current)!=null&&p.contains(h)||(c.current=!1,n(!1))}}}:{}};function Z_({opened:e,floating:t,positionDependencies:r}){const[n,o]=g.useState(0);g.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return P5(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),Gr(()=>{t.update()},r),Gr(()=>{o(l=>l+1)},[e])}function H5(e){const t=[A_(e.offset)];return e.middlewares.shift&&t.push(bp()),e.middlewares.flip&&t.push(F_()),t}function B5(e){const[t,r]=Gl({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var i;(i=e.onClose)==null||i.call(e),r(!1)},o=()=>{var i,a;t?((i=e.onClose)==null||i.call(e),r(!1)):((a=e.onOpen)==null||a.call(e),r(!0))},l=Ep({placement:e.position,middleware:[...H5(e),...e.width==="target"?[y5({apply({rects:i}){var a,s;Object.assign((s=(a=l.refs.floating.current)==null?void 0:a.style)!=null?s:{},{width:`${i.reference.width}px`})}})]:[]]});return Z_({opened:e.opened,positionDependencies:e.positionDependencies,floating:l}),Gr(()=>{var i;(i=e.onPositionChange)==null||i.call(e,l.placement)},[l.placement]),{floating:l,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:o}}const J_={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[W5,eS]=up(J_.context);var U5=Object.defineProperty,G5=Object.defineProperties,Y5=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,tS=Object.prototype.hasOwnProperty,rS=Object.prototype.propertyIsEnumerable,xv=(e,t,r)=>t in e?U5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ri=(e,t)=>{for(var r in t||(t={}))tS.call(t,r)&&xv(e,r,t[r]);if(qa)for(var r of qa(t))rS.call(t,r)&&xv(e,r,t[r]);return e},X5=(e,t)=>G5(e,Y5(t)),Q5=(e,t)=>{var r={};for(var n in e)tS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&rS.call(e,n)&&(r[n]=e[n]);return r};const nS=g.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref",popupType:l="dialog"}=r,i=Q5(r,["children","refProp","popupType"]);if(!Bl(n))throw new Error(J_.children);const a=i,s=eS(),u=En(s.reference,n.ref,t),c=s.withRoles?{"aria-haspopup":l,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return g.cloneElement(n,Ri(X5(Ri(Ri(Ri({},a),c),s.targetProps),{className:sw(s.targetProps.className,a.className,n.props.className),[o]:u}),s.controlled?null:{onClick:s.onToggle}))});nS.displayName="@mantine/core/PopoverTarget";var K5=Q((e,{radius:t,shadow:r})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm}px ${e.spacing.md}px`,boxShadow:e.shadows[r]||r||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}}));const q5=K5;var Z5=Object.defineProperty,Pv=Object.getOwnPropertySymbols,J5=Object.prototype.hasOwnProperty,eR=Object.prototype.propertyIsEnumerable,$v=(e,t,r)=>t in e?Z5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dn=(e,t)=>{for(var r in t||(t={}))J5.call(t,r)&&$v(e,r,t[r]);if(Pv)for(var r of Pv(t))eR.call(t,r)&&$v(e,r,t[r]);return e};const bv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function oS({transition:e,state:t,duration:r,timingFunction:n}){const o={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in $i?Dn(Dn(Dn({transitionProperty:$i[e].transitionProperty},o),$i[e].common),$i[e][bv[t]]):null:Dn(Dn(Dn({transitionProperty:e.transitionProperty},o),e.common),e[bv[t]])}function lS({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:l,onEntered:i,onExited:a}){const s=yt(),u=Fw(),c=s.respectReducedMotion?u:!1,[f,d]=g.useState(n?"entered":"exited");let p=c?0:e;const h=g.useRef(-1),m=_=>{const v=_?o:l,y=_?i:a;if(d(_?"pre-entering":"pre-exiting"),window.clearTimeout(h.current),p=c?0:_?e:t,p===0)typeof v=="function"&&v(),typeof y=="function"&&y(),d(_?"entered":"exited");else{const w=window.setTimeout(()=>{typeof v=="function"&&v(),d(_?"entering":"exiting")},10);h.current=window.setTimeout(()=>{window.clearTimeout(w),typeof y=="function"&&y(),d(_?"entered":"exited")},p)}};return Gr(()=>{m(n)},[n]),g.useEffect(()=>()=>window.clearTimeout(h.current),[]),{transitionDuration:p,transitionStatus:f,transitionTimingFunction:r||s.transitionTimingFunction}}function ju({transition:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:l,onExit:i,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=lS({mounted:n,exitDuration:r,duration:t,timingFunction:l,onExit:i,onEntered:a,onEnter:s,onExited:u});return c===0?n?S.createElement(S.Fragment,null,o({})):null:f==="exited"?null:S.createElement(S.Fragment,null,o(oS({transition:e,duration:c,state:f,timingFunction:d})))}ju.displayName="@mantine/core/Transition";function iS({children:e,active:t=!0,refProp:r="ref"}){const n=Lw(t),o=En(n,e?.ref);return Bl(e)?g.cloneElement(e,{[r]:o}):e}iS.displayName="@mantine/core/FocusTrap";var tR=Object.defineProperty,rR=Object.defineProperties,nR=Object.getOwnPropertyDescriptors,Ov=Object.getOwnPropertySymbols,oR=Object.prototype.hasOwnProperty,lR=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?tR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pr=(e,t)=>{for(var r in t||(t={}))oR.call(t,r)&&Cv(e,r,t[r]);if(Ov)for(var r of Ov(t))lR.call(t,r)&&Cv(e,r,t[r]);return e},Ii=(e,t)=>rR(e,nR(t));function Ev(e,t,r){return e==="center"?{top:`calc(50% - ${t/2}px)`}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function kv(e,t,r,n){return e==="center"?{left:`calc(50% - ${t/2}px)`}:e==="end"?{[n==="ltr"?"right":"left"]:r}:e==="start"?{[n==="ltr"?"left":"right"]:r}:{}}function iR({position:e,withBorder:t,arrowSize:r,arrowOffset:n,dir:o}){const[l,i="center"]=e.split("-"),a={width:r,height:r,transform:"rotate(45deg)",position:"absolute"},s=t?-r/2-1:-r/2;return l==="left"?Ii(Pr(Pr({},a),Ev(i,r,n)),{[o==="ltr"?"right":"left"]:s,[o==="ltr"?"borderLeft":"borderRight"]:0,borderBottom:0}):l==="right"?Ii(Pr(Pr({},a),Ev(i,r,n)),{[o==="ltr"?"left":"right"]:s,[o==="ltr"?"borderRight":"borderLeft"]:0,borderTop:0}):l==="top"?Ii(Pr(Pr({},a),kv(i,r,n,o)),{bottom:s,borderTop:0,[o==="ltr"?"borderLeft":"borderRight"]:0}):l==="bottom"?Ii(Pr(Pr({},a),kv(i,r,n,o)),{top:s,borderBottom:0,[o==="ltr"?"borderRight":"borderLeft"]:0}):{}}var aR=Object.defineProperty,sR=Object.defineProperties,uR=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,aS=Object.prototype.hasOwnProperty,sS=Object.prototype.propertyIsEnumerable,Rv=(e,t,r)=>t in e?aR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cR=(e,t)=>{for(var r in t||(t={}))aS.call(t,r)&&Rv(e,r,t[r]);if(Za)for(var r of Za(t))sS.call(t,r)&&Rv(e,r,t[r]);return e},fR=(e,t)=>sR(e,uR(t)),dR=(e,t)=>{var r={};for(var n in e)aS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Za)for(var n of Za(e))t.indexOf(n)<0&&sS.call(e,n)&&(r[n]=e[n]);return r};function kp(e){var t=e,{withBorder:r,position:n,arrowSize:o,arrowOffset:l,visible:i}=t,a=dR(t,["withBorder","position","arrowSize","arrowOffset","visible"]);const s=yt();return i?S.createElement("div",fR(cR({},a),{style:iR({withBorder:r,position:n,arrowSize:o,arrowOffset:l,dir:s.dir})})):null}kp.displayName="@mantine/core/FloatingArrow";var pR=Object.defineProperty,gR=Object.defineProperties,mR=Object.getOwnPropertyDescriptors,Ja=Object.getOwnPropertySymbols,uS=Object.prototype.hasOwnProperty,cS=Object.prototype.propertyIsEnumerable,Iv=(e,t,r)=>t in e?pR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ji=(e,t)=>{for(var r in t||(t={}))uS.call(t,r)&&Iv(e,r,t[r]);if(Ja)for(var r of Ja(t))cS.call(t,r)&&Iv(e,r,t[r]);return e},jv=(e,t)=>gR(e,mR(t)),vR=(e,t)=>{var r={};for(var n in e)uS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ja)for(var n of Ja(e))t.indexOf(n)<0&&cS.call(e,n)&&(r[n]=e[n]);return r};function fS(e){var t=e,{style:r,className:n,children:o}=t,l=vR(t,["style","className","children"]);const{classNames:i,styles:a,unstyled:s,staticSelector:u}=Cn(),c=eS(),{classes:f,cx:d}=q5({radius:c.radius,shadow:c.shadow},{name:u,classNames:i,styles:a,unstyled:s}),p=Nw({opened:c.opened,shouldReturnFocus:!1}),h=c.withRoles?{"aria-labelledby":c.getTargetId(),id:c.getDropdownId(),role:"dialog"}:{};return S.createElement(Yl,{withinPortal:c.withinPortal},S.createElement(ju,{mounted:c.opened,transition:c.transition,duration:c.transitionDuration,exitDuration:typeof c.exitTransitionDuration=="number"?c.exitTransitionDuration:c.transitionDuration},m=>{var _,v;return S.createElement(iS,{active:c.trapFocus},S.createElement(Y,ji(jv(ji({},h),{tabIndex:-1,ref:c.floating,style:jv(ji(ji({},r),m),{zIndex:c.zIndex,top:(_=c.y)!=null?_:"",left:(v=c.x)!=null?v:"",width:c.width==="target"?void 0:c.width}),className:d(f.dropdown,n),onKeyDownCapture:A2(c.onClose,{active:c.closeOnEscape,onTrigger:p}),"data-position":c.placement}),l),o,S.createElement(kp,{visible:c.withArrow,withBorder:!0,position:c.placement,arrowSize:c.arrowSize,arrowOffset:c.arrowOffset,className:f.arrow})))}))}fS.displayName="@mantine/core/PopoverDropdown";function dS(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var Nv=Object.getOwnPropertySymbols,hR=Object.prototype.hasOwnProperty,yR=Object.prototype.propertyIsEnumerable,wR=(e,t)=>{var r={};for(var n in e)hR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Nv)for(var n of Nv(e))t.indexOf(n)<0&&yR.call(e,n)&&(r[n]=e[n]);return r};const _R={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0},arrowSize:7,arrowOffset:5,closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:So("popover"),__staticSelector:"Popover"};function wr(e){const t=ee("Popover",_R,e),{children:r,position:n,offset:o,onPositionChange:l,positionDependencies:i,opened:a,transition:s,transitionDuration:u,width:c,middlewares:f,withArrow:d,arrowSize:p,arrowOffset:h,unstyled:m,classNames:_,styles:v,closeOnClickOutside:y,withinPortal:w,closeOnEscape:x,clickOutsideEvents:b,trapFocus:$,onClose:O,onOpen:C,onChange:k,zIndex:I,radius:N,shadow:T,id:B,defaultOpened:K,exitTransitionDuration:Z,__staticSelector:W,withRoles:oe}=t,j=wR(t,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles"]),z=xo(B),M=yt(),A=B5({middlewares:f,width:c,position:dS(M.dir,n),offset:o+(d?p/2:0),onPositionChange:l,positionDependencies:i,opened:a,defaultOpened:K,onChange:k,onOpen:C,onClose:O});return iE(()=>y&&A.onClose(),b,[A.floating.refs.floating.current,A.floating.refs.reference.current]),S.createElement(Rw,{classNames:_,styles:v,unstyled:m,staticSelector:W},S.createElement(W5,{value:{controlled:A.controlled,reference:A.floating.reference,floating:A.floating.floating,x:A.floating.x,y:A.floating.y,opened:A.opened,transition:s,transitionDuration:u,exitTransitionDuration:Z,width:c,withArrow:d,arrowSize:p,arrowOffset:h,placement:A.floating.placement,trapFocus:$,withinPortal:w,zIndex:I,radius:N,shadow:T,closeOnEscape:x,onClose:A.onClose,onToggle:A.onToggle,getTargetId:()=>`${z}-target`,getDropdownId:()=>`${z}-dropdown`,withRoles:oe,targetProps:j}},r))}wr.Target=nS;wr.Dropdown=fS;wr.displayName="@mantine/core/Popover";var SR=Object.defineProperty,es=Object.getOwnPropertySymbols,pS=Object.prototype.hasOwnProperty,gS=Object.prototype.propertyIsEnumerable,zv=(e,t,r)=>t in e?SR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xR=(e,t)=>{for(var r in t||(t={}))pS.call(t,r)&&zv(e,r,t[r]);if(es)for(var r of es(t))gS.call(t,r)&&zv(e,r,t[r]);return e},PR=(e,t)=>{var r={};for(var n in e)pS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&es)for(var n of es(e))t.indexOf(n)<0&&gS.call(e,n)&&(r[n]=e[n]);return r};function $R(e){var t=e,{children:r,component:n="div",maxHeight:o=220,direction:l="column",id:i,innerRef:a}=t,s=PR(t,["children","component","maxHeight","direction","id","innerRef"]);return S.createElement(wr.Dropdown,xR({p:0,onMouseDown:u=>u.preventDefault()},s),S.createElement("div",{style:{maxHeight:o,display:"flex"}},S.createElement(Y,{component:n||"div",id:`${i}-items`,"aria-labelledby":`${i}-label`,role:"listbox",onMouseDown:u=>u.preventDefault(),style:{flex:1,overflowY:n!==Pp?"auto":void 0},"data-combobox-popover":!0,ref:a},S.createElement("div",{style:{display:"flex",flexDirection:l,width:"100%",padding:4}},r))))}function pl({opened:e,transition:t="fade",transitionDuration:r=0,shadow:n,withinPortal:o,children:l,__staticSelector:i,onDirectionChange:a,switchDirectionOnFlip:s,zIndex:u,dropdownPosition:c,positionDependencies:f=[],classNames:d,styles:p,unstyled:h}){return S.createElement(wr,{unstyled:h,classNames:d,styles:p,width:"target",withRoles:!1,opened:e,middlewares:{flip:c==="flip",shift:!1},position:c==="flip"?"bottom":c,positionDependencies:f,zIndex:u,__staticSelector:i,withinPortal:o,transition:t,transitionDuration:r,shadow:n,onPositionChange:m=>s&&a?.(m==="top"?"column-reverse":"column")},l)}pl.Target=wr.Target;pl.Dropdown=$R;var bR=Object.defineProperty,OR=Object.defineProperties,CR=Object.getOwnPropertyDescriptors,ts=Object.getOwnPropertySymbols,mS=Object.prototype.hasOwnProperty,vS=Object.prototype.propertyIsEnumerable,Dv=(e,t,r)=>t in e?bR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cc=(e,t)=>{for(var r in t||(t={}))mS.call(t,r)&&Dv(e,r,t[r]);if(ts)for(var r of ts(t))vS.call(t,r)&&Dv(e,r,t[r]);return e},ER=(e,t)=>OR(e,CR(t)),kR=(e,t)=>{var r={};for(var n in e)mS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ts)for(var n of ts(e))t.indexOf(n)<0&&vS.call(e,n)&&(r[n]=e[n]);return r};function hS(e,t,r){const n=ee(e,t,r),{label:o,description:l,error:i,required:a,classNames:s,styles:u,className:c,unstyled:f,__staticSelector:d,sx:p,errorProps:h,labelProps:m,descriptionProps:_,wrapperProps:v,id:y,size:w,style:x,inputContainer:b,inputWrapperOrder:$}=n,O=kR(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder"]),C=xo(y),{systemStyles:k,rest:I}=xu(O);return ER(Cc({},I),{classNames:s,styles:u,unstyled:f,wrapperProps:Cc(Cc({label:o,description:l,error:i,required:a,classNames:s,className:c,__staticSelector:d,sx:p,errorProps:h,labelProps:m,descriptionProps:_,unstyled:f,styles:u,id:C,size:w,style:x,inputContainer:b,inputWrapperOrder:$},v),k),inputProps:{required:a,classNames:s,styles:u,unstyled:f,id:C,size:w,__staticSelector:d,invalid:!!i}})}var RR=Q((e,{size:t})=>({label:{display:"inline-block",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}}));const IR=RR;var jR=Object.defineProperty,rs=Object.getOwnPropertySymbols,yS=Object.prototype.hasOwnProperty,wS=Object.prototype.propertyIsEnumerable,Tv=(e,t,r)=>t in e?jR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NR=(e,t)=>{for(var r in t||(t={}))yS.call(t,r)&&Tv(e,r,t[r]);if(rs)for(var r of rs(t))wS.call(t,r)&&Tv(e,r,t[r]);return e},zR=(e,t)=>{var r={};for(var n in e)yS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rs)for(var n of rs(e))t.indexOf(n)<0&&wS.call(e,n)&&(r[n]=e[n]);return r};const Rp=g.forwardRef((e,t)=>{var r=e,{labelElement:n="label",children:o,required:l,size:i="sm",classNames:a,styles:s,unstyled:u,className:c,htmlFor:f,__staticSelector:d}=r,p=zR(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]);const{classes:h,cx:m}=IR({size:i},{name:["InputWrapper",d],classNames:a,styles:s,unstyled:u});return S.createElement(Y,NR({component:n,ref:t,className:m(h.label,c),htmlFor:n==="label"?f:void 0},p),o,l&&S.createElement("span",{className:h.required,"aria-hidden":!0}," *"))});Rp.displayName="@mantine/core/InputLabel";var DR=Q((e,{size:t})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}));const TR=DR;var LR=Object.defineProperty,ns=Object.getOwnPropertySymbols,_S=Object.prototype.hasOwnProperty,SS=Object.prototype.propertyIsEnumerable,Lv=(e,t,r)=>t in e?LR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,MR=(e,t)=>{for(var r in t||(t={}))_S.call(t,r)&&Lv(e,r,t[r]);if(ns)for(var r of ns(t))SS.call(t,r)&&Lv(e,r,t[r]);return e},FR=(e,t)=>{var r={};for(var n in e)_S.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ns)for(var n of ns(e))t.indexOf(n)<0&&SS.call(e,n)&&(r[n]=e[n]);return r};const Ip=g.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:l,styles:i,unstyled:a,size:s="sm",__staticSelector:u}=r,c=FR(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=TR({size:s},{name:["InputWrapper",u],classNames:l,styles:i,unstyled:a});return S.createElement(Ct,MR({className:d(f.error,o),ref:t,role:"alert"},c),n)});Ip.displayName="@mantine/core/InputError";var AR=Q((e,{size:t})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}));const VR=AR;var HR=Object.defineProperty,os=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,PS=Object.prototype.propertyIsEnumerable,Mv=(e,t,r)=>t in e?HR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BR=(e,t)=>{for(var r in t||(t={}))xS.call(t,r)&&Mv(e,r,t[r]);if(os)for(var r of os(t))PS.call(t,r)&&Mv(e,r,t[r]);return e},WR=(e,t)=>{var r={};for(var n in e)xS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&os)for(var n of os(e))t.indexOf(n)<0&&PS.call(e,n)&&(r[n]=e[n]);return r};const jp=g.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:l,styles:i,unstyled:a,size:s="sm",__staticSelector:u}=r,c=WR(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=VR({size:s},{name:["InputWrapper",u],classNames:l,styles:i,unstyled:a});return S.createElement(Ct,BR({color:"dimmed",className:d(f.description,o),ref:t,unstyled:a},c),n)});jp.displayName="@mantine/core/InputDescription";const $S=g.createContext({offsetBottom:!1,offsetTop:!1}),UR=$S.Provider,GR=()=>g.useContext($S);function YR(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),o=e[n-1],l=e[n+1];return{offsetBottom:t&&l==="description"||r&&l==="error",offsetTop:t&&o==="description"||r&&o==="error"}}var XR=Object.defineProperty,QR=Object.defineProperties,KR=Object.getOwnPropertyDescriptors,Fv=Object.getOwnPropertySymbols,qR=Object.prototype.hasOwnProperty,ZR=Object.prototype.propertyIsEnumerable,Av=(e,t,r)=>t in e?XR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JR=(e,t)=>{for(var r in t||(t={}))qR.call(t,r)&&Av(e,r,t[r]);if(Fv)for(var r of Fv(t))ZR.call(t,r)&&Av(e,r,t[r]);return e},e4=(e,t)=>QR(e,KR(t)),t4=Q(e=>({root:e4(JR({},e.fn.fontStyles()),{lineHeight:e.lineHeight})}));const r4=t4;var n4=Object.defineProperty,o4=Object.defineProperties,l4=Object.getOwnPropertyDescriptors,ls=Object.getOwnPropertySymbols,bS=Object.prototype.hasOwnProperty,OS=Object.prototype.propertyIsEnumerable,Vv=(e,t,r)=>t in e?n4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,on=(e,t)=>{for(var r in t||(t={}))bS.call(t,r)&&Vv(e,r,t[r]);if(ls)for(var r of ls(t))OS.call(t,r)&&Vv(e,r,t[r]);return e},i4=(e,t)=>o4(e,l4(t)),a4=(e,t)=>{var r={};for(var n in e)bS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ls)for(var n of ls(e))t.indexOf(n)<0&&OS.call(e,n)&&(r[n]=e[n]);return r};const s4={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},CS=g.forwardRef((e,t)=>{const r=ee("InputWrapper",s4,e),{className:n,label:o,children:l,required:i,id:a,error:s,description:u,labelElement:c,labelProps:f,descriptionProps:d,errorProps:p,classNames:h,styles:m,size:_,inputContainer:v,__staticSelector:y,unstyled:w,inputWrapperOrder:x}=r,b=a4(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder"]),{classes:$,cx:O}=r4(null,{classNames:h,styles:m,name:["InputWrapper",y],unstyled:w}),C={classNames:h,styles:m,unstyled:w,size:_,__staticSelector:y},k=o&&S.createElement(Rp,on(on({key:"label",labelElement:c,id:a?`${a}-label`:void 0,htmlFor:a,required:i},C),f),o),I=u&&S.createElement(jp,on(on({key:"description"},C),d),u),N=S.createElement(g.Fragment,{key:"input"},v(l)),T=typeof s!="boolean"&&s&&S.createElement(Ip,on(i4(on({},p),{key:"error"}),C),s),B=x.map(K=>{switch(K){case"label":return k;case"input":return N;case"description":return I;case"error":return T;default:return null}});return S.createElement(UR,{value:YR(x,{hasDescription:!!I,hasError:!!T})},S.createElement(Y,on({className:O($.root,n),ref:t},b),B))});CS.displayName="@mantine/core/InputWrapper";var u4=Object.defineProperty,c4=Object.defineProperties,f4=Object.getOwnPropertyDescriptors,Hv=Object.getOwnPropertySymbols,d4=Object.prototype.hasOwnProperty,p4=Object.prototype.propertyIsEnumerable,Bv=(e,t,r)=>t in e?u4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ec=(e,t)=>{for(var r in t||(t={}))d4.call(t,r)&&Bv(e,r,t[r]);if(Hv)for(var r of Hv(t))p4.call(t,r)&&Bv(e,r,t[r]);return e},Wv=(e,t)=>c4(e,f4(t));const _t={xs:30,sm:36,md:42,lg:50,xl:60};function g4({theme:e,variant:t}){return t==="default"?{border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":{outline:"none",borderColor:e.colors[e.primaryColor][e.fn.primaryShade()]}}:t==="filled"?{border:"1px solid transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":{outline:"none",borderColor:`${e.colors[e.primaryColor][e.fn.primaryShade()]} !important`}}:{borderWidth:0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var m4=Q((e,{size:t,multiline:r,radius:n,variant:o,invalid:l,rightSectionWidth:i,withRightSection:a,iconWidth:s,offsetBottom:u,offsetTop:c,pointer:f})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,p=o==="default"||o==="filled"?{minHeight:e.fn.size({size:t,sizes:_t}),paddingLeft:e.fn.size({size:t,sizes:_t})/3,paddingRight:a?i:e.fn.size({size:t,sizes:_t})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:c?e.spacing.xs/2:void 0,marginBottom:u?e.spacing.xs/2:void 0},input:Ec(Wv(Ec(Wv(Ec({},e.fn.fontStyles()),{height:r?o==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:_t}),WebkitTapHighlightColor:"transparent",lineHeight:r?e.lineHeight:`${e.fn.size({size:t,sizes:_t})-2}px`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:f?"pointer":void 0}),p),{"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":{opacity:1,userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),g4({theme:e,variant:o})),withIcon:{paddingLeft:typeof s=="number"?s:e.fn.size({size:t,sizes:_t})},invalid:{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},disabled:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:typeof s=="number"?s:e.fn.size({size:t,sizes:_t}),color:l?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:i}}});const v4=m4;var h4=Object.defineProperty,y4=Object.defineProperties,w4=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,kS=Object.prototype.propertyIsEnumerable,Uv=(e,t,r)=>t in e?h4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ni=(e,t)=>{for(var r in t||(t={}))ES.call(t,r)&&Uv(e,r,t[r]);if(is)for(var r of is(t))kS.call(t,r)&&Uv(e,r,t[r]);return e},Gv=(e,t)=>y4(e,w4(t)),_4=(e,t)=>{var r={};for(var n in e)ES.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&is)for(var n of is(e))t.indexOf(n)<0&&kS.call(e,n)&&(r[n]=e[n]);return r};const S4={rightSectionWidth:36,size:"sm",variant:"default"},$o=g.forwardRef((e,t)=>{const r=ee("Input",S4,e),{className:n,invalid:o,required:l,disabled:i,variant:a,icon:s,style:u,rightSectionWidth:c,iconWidth:f,rightSection:d,rightSectionProps:p,radius:h,size:m,wrapperProps:_,classNames:v,styles:y,__staticSelector:w,multiline:x,sx:b,unstyled:$,pointer:O}=r,C=_4(r,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:k,offsetTop:I}=GR(),{classes:N,cx:T}=v4({radius:h,size:m,multiline:x,variant:a,invalid:o,rightSectionWidth:c,iconWidth:f,withRightSection:!!d,offsetBottom:k,offsetTop:I,pointer:O},{classNames:v,styles:y,name:["Input",w],unstyled:$}),{systemStyles:B,rest:K}=xu(C);return S.createElement(Y,Ni(Ni({className:T(N.wrapper,n),sx:b,style:u},B),_),s&&S.createElement("div",{className:N.icon},s),S.createElement(Y,Gv(Ni({component:"input"},K),{ref:t,required:l,"aria-invalid":o,disabled:i,className:T(N[`${a}Variant`],N.input,{[N.withIcon]:s,[N.invalid]:o,[N.disabled]:i})})),d&&S.createElement("div",Gv(Ni({},p),{className:N.rightSection}),d))});$o.displayName="@mantine/core/Input";$o.Wrapper=CS;$o.Label=Rp;$o.Description=jp;$o.Error=Ip;const as=$o;var x4=Q((e,{orientation:t,buttonBorderWidth:r})=>({root:{display:"flex",flexDirection:t==="vertical"?"column":"row","& [data-button]":{"&:first-of-type":{borderBottomRightRadius:0,[t==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"&:last-of-type":{borderTopLeftRadius:0,[t==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"& + [data-button]":{[t==="vertical"?"marginTop":"marginLeft"]:-r,"@media (min-resolution: 192dpi)":{[t==="vertical"?"marginTop":"marginLeft"]:0}}}}}));const P4=x4;var $4=Object.defineProperty,ss=Object.getOwnPropertySymbols,RS=Object.prototype.hasOwnProperty,IS=Object.prototype.propertyIsEnumerable,Yv=(e,t,r)=>t in e?$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b4=(e,t)=>{for(var r in t||(t={}))RS.call(t,r)&&Yv(e,r,t[r]);if(ss)for(var r of ss(t))IS.call(t,r)&&Yv(e,r,t[r]);return e},O4=(e,t)=>{var r={};for(var n in e)RS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ss)for(var n of ss(e))t.indexOf(n)<0&&IS.call(e,n)&&(r[n]=e[n]);return r};const C4={orientation:"horizontal",buttonBorderWidth:1},jS=g.forwardRef((e,t)=>{const r=ee("ButtonGroup",C4,e),{className:n,orientation:o,buttonBorderWidth:l,unstyled:i}=r,a=O4(r,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:u}=P4({orientation:o,buttonBorderWidth:l},{name:"ButtonGroup",unstyled:i});return S.createElement(Y,b4({className:u(s.root,n),ref:t},a))});jS.displayName="@mantine/core/ButtonGroup";var E4=Object.defineProperty,k4=Object.defineProperties,R4=Object.getOwnPropertyDescriptors,Xv=Object.getOwnPropertySymbols,I4=Object.prototype.hasOwnProperty,j4=Object.prototype.propertyIsEnumerable,Qv=(e,t,r)=>t in e?E4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fn=(e,t)=>{for(var r in t||(t={}))I4.call(t,r)&&Qv(e,r,t[r]);if(Xv)for(var r of Xv(t))j4.call(t,r)&&Qv(e,r,t[r]);return e},Kf=(e,t)=>k4(e,R4(t));const qf={xs:{height:_t.xs,paddingLeft:14,paddingRight:14},sm:{height:_t.sm,paddingLeft:18,paddingRight:18},md:{height:_t.md,paddingLeft:22,paddingRight:22},lg:{height:_t.lg,paddingLeft:26,paddingRight:26},xl:{height:_t.xl,paddingLeft:32,paddingRight:32},"compact-xs":{height:22,paddingLeft:7,paddingRight:7},"compact-sm":{height:26,paddingLeft:8,paddingRight:8},"compact-md":{height:30,paddingLeft:10,paddingRight:10},"compact-lg":{height:34,paddingLeft:12,paddingRight:12},"compact-xl":{height:40,paddingLeft:14,paddingRight:14}};function N4({compact:e,size:t,withLeftIcon:r,withRightIcon:n}){if(e)return qf[`compact-${t}`];const o=qf[t];return Kf(fn({},o),{paddingLeft:r?o.paddingLeft/1.5:o.paddingLeft,paddingRight:n?o.paddingRight/1.5:o.paddingRight})}const z4=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function D4({variant:e,theme:t,color:r,gradient:n}){const o=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:fn({border:`1px solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var T4=Q((e,{color:t,size:r,radius:n,fullWidth:o,compact:l,gradient:i,variant:a,withLeftIcon:s,withRightIcon:u})=>({root:Kf(fn(Kf(fn(fn(fn(fn({},N4({compact:l,size:r,withLeftIcon:s,withRightIcon:u})),e.fn.fontStyles()),e.fn.focusStyles()),z4(o)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:r,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),D4({variant:a,theme:e,color:t,gradient:i})),{"&:active":e.activeStyles,"&[data-disabled]":{borderColor:"transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:10},rightIcon:{marginLeft:10},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}}));const L4=T4;var M4=Object.defineProperty,us=Object.getOwnPropertySymbols,NS=Object.prototype.hasOwnProperty,zS=Object.prototype.propertyIsEnumerable,Kv=(e,t,r)=>t in e?M4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qv=(e,t)=>{for(var r in t||(t={}))NS.call(t,r)&&Kv(e,r,t[r]);if(us)for(var r of us(t))zS.call(t,r)&&Kv(e,r,t[r]);return e},F4=(e,t)=>{var r={};for(var n in e)NS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&us)for(var n of us(e))t.indexOf(n)<0&&zS.call(e,n)&&(r[n]=e[n]);return r};const A4={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},Np=g.forwardRef((e,t)=>{const r=ee("Button",A4,e),{className:n,size:o,color:l,type:i,disabled:a,children:s,leftIcon:u,rightIcon:c,fullWidth:f,variant:d,radius:p,uppercase:h,compact:m,loading:_,loaderPosition:v,loaderProps:y,gradient:w,classNames:x,styles:b,unstyled:$}=r,O=F4(r,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:C,cx:k,theme:I}=L4({radius:p,color:l,size:o,fullWidth:f,compact:m,gradient:w,variant:d,withLeftIcon:!!u,withRightIcon:!!c},{name:"Button",unstyled:$,classNames:x,styles:b}),N=I.fn.variant({color:l,variant:d}),T=S.createElement(Sp,qv({color:N.color,size:I.fn.size({size:o,sizes:qf}).height/2},y));return S.createElement(Pu,qv({className:k(C.root,n),type:i,disabled:a||_,"data-button":!0,"data-disabled":a||void 0,"data-loading":_||void 0,ref:t,unstyled:$},O),S.createElement("div",{className:C.inner},(u||_&&v==="left")&&S.createElement("span",{className:k(C.icon,C.leftIcon)},_&&v==="left"?T:u),S.createElement("span",{className:C.label,style:{textTransform:h?"uppercase":void 0}},s),(c||_&&v==="right")&&S.createElement("span",{className:k(C.icon,C.rightIcon)},_&&v==="right"?T:c)))});Np.displayName="@mantine/core/Button";Np.Group=jS;const vo=Np;var V4=Q((e,{radius:t,shadow:r,withBorder:n})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(t),boxShadow:e.shadows[r]||r||"none",border:n?`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`:void 0}}));const H4=V4;var B4=Object.defineProperty,cs=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,TS=Object.prototype.propertyIsEnumerable,Zv=(e,t,r)=>t in e?B4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,W4=(e,t)=>{for(var r in t||(t={}))DS.call(t,r)&&Zv(e,r,t[r]);if(cs)for(var r of cs(t))TS.call(t,r)&&Zv(e,r,t[r]);return e},U4=(e,t)=>{var r={};for(var n in e)DS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cs)for(var n of cs(e))t.indexOf(n)<0&&TS.call(e,n)&&(r[n]=e[n]);return r};const G4={},LS=g.forwardRef((e,t)=>{const r=ee("Paper",G4,e),{className:n,children:o,radius:l,withBorder:i,shadow:a,unstyled:s}=r,u=U4(r,["className","children","radius","withBorder","shadow","unstyled"]),{classes:c,cx:f}=H4({radius:l,shadow:a,withBorder:i},{name:"Paper",unstyled:s});return S.createElement(Y,W4({className:f(c.root,n),ref:t},u),o)});LS.displayName="@mantine/core/Paper";const Y4=LS;var X4=Object.defineProperty,fs=Object.getOwnPropertySymbols,MS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,Jv=(e,t,r)=>t in e?X4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q4=(e,t)=>{for(var r in t||(t={}))MS.call(t,r)&&Jv(e,r,t[r]);if(fs)for(var r of fs(t))FS.call(t,r)&&Jv(e,r,t[r]);return e},K4=(e,t)=>{var r={};for(var n in e)MS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fs)for(var n of fs(e))t.indexOf(n)<0&&FS.call(e,n)&&(r[n]=e[n]);return r};const AS=g.forwardRef((e,t)=>{const r=ee("Center",{},e),{inline:n,sx:o}=r,l=K4(r,["inline","sx"]);return S.createElement(Y,Q4({ref:t,sx:[{display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...Il(o)]},l))});AS.displayName="@mantine/core/Center";const VS=AS;function q4(e){return g.Children.toArray(e).filter(Boolean)}const HS={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var Z4=Q((e,{spacing:t,position:r,noWrap:n,grow:o,align:l,count:i})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:l||"center",flexWrap:n?"nowrap":"wrap",justifyContent:HS[r],gap:e.fn.size({size:t,sizes:e.spacing})},child:{boxSizing:"border-box",maxWidth:o?`calc(${100/i}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/i}px)`:void 0,flexGrow:o?1:0}}));const J4=Z4;var e6=Object.defineProperty,ds=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,eh=(e,t,r)=>t in e?e6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t6=(e,t)=>{for(var r in t||(t={}))BS.call(t,r)&&eh(e,r,t[r]);if(ds)for(var r of ds(t))WS.call(t,r)&&eh(e,r,t[r]);return e},r6=(e,t)=>{var r={};for(var n in e)BS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ds)for(var n of ds(e))t.indexOf(n)<0&&WS.call(e,n)&&(r[n]=e[n]);return r};const n6={position:"left",spacing:"md"},qt=g.forwardRef((e,t)=>{const r=ee("Group",n6,e),{className:n,position:o,align:l,children:i,noWrap:a,grow:s,spacing:u,unstyled:c}=r,f=r6(r,["className","position","align","children","noWrap","grow","spacing","unstyled"]),d=q4(i),{classes:p,cx:h}=J4({align:l,grow:s,noWrap:a,spacing:u,position:o,count:d.length},{unstyled:c,name:"Group"}),m=d.map(_=>{var v;return typeof _=="object"&&_!==null&&"props"in _?S.cloneElement(_,{className:h(p.child,(v=_.props)==null?void 0:v.className)}):_});return S.createElement(Y,t6({className:h(p.root,n),ref:t},f),m)});qt.displayName="@mantine/core/Group";var o6=Q((e,{spacing:t,align:r,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:r,justifyContent:n,gap:e.fn.size({size:t,sizes:e.spacing})}}));const l6=o6;var i6=Object.defineProperty,ps=Object.getOwnPropertySymbols,US=Object.prototype.hasOwnProperty,GS=Object.prototype.propertyIsEnumerable,th=(e,t,r)=>t in e?i6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a6=(e,t)=>{for(var r in t||(t={}))US.call(t,r)&&th(e,r,t[r]);if(ps)for(var r of ps(t))GS.call(t,r)&&th(e,r,t[r]);return e},s6=(e,t)=>{var r={};for(var n in e)US.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ps)for(var n of ps(e))t.indexOf(n)<0&&GS.call(e,n)&&(r[n]=e[n]);return r};const u6={spacing:"md",align:"stretch",justify:"top"},Kt=g.forwardRef((e,t)=>{const r=ee("Stack",u6,e),{spacing:n,className:o,align:l,justify:i,unstyled:a}=r,s=s6(r,["spacing","className","align","justify","unstyled"]),{classes:u,cx:c}=l6({spacing:n,align:l,justify:i},{name:"Stack",unstyled:a});return S.createElement(Y,a6({className:c(u.root,o),ref:t},s))});Kt.displayName="@mantine/core/Stack";function YS({transitions:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:l,onExit:i,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=lS({mounted:n,duration:t,exitDuration:r,timingFunction:l,onExit:i,onEntered:a,onEnter:s,onExited:u});if(c===0)return n?S.createElement(S.Fragment,null,o({})):null;if(f==="exited")return null;const p=Object.keys(e).reduce((h,m)=>(h[m]=oS({duration:e[m].duration,transition:e[m].transition,timingFunction:e[m].timingFunction||d,state:f}),h),{});return S.createElement(S.Fragment,null,o(p))}YS.displayName="@mantine/core/GroupedTransition";var c6=Q((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}}));const f6=c6;var d6=Object.defineProperty,p6=Object.defineProperties,g6=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertySymbols,XS=Object.prototype.hasOwnProperty,QS=Object.prototype.propertyIsEnumerable,rh=(e,t,r)=>t in e?d6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kc=(e,t)=>{for(var r in t||(t={}))XS.call(t,r)&&rh(e,r,t[r]);if(gs)for(var r of gs(t))QS.call(t,r)&&rh(e,r,t[r]);return e},m6=(e,t)=>p6(e,g6(t)),v6=(e,t)=>{var r={};for(var n in e)XS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gs)for(var n of gs(e))t.indexOf(n)<0&&QS.call(e,n)&&(r[n]=e[n]);return r};const h6={opacity:.6,color:"#fff",zIndex:So("modal"),radius:0,blur:0},KS=g.forwardRef((e,t)=>{const r=ee("Overlay",h6,e),{opacity:n,blur:o,color:l,gradient:i,zIndex:a,radius:s,sx:u,unstyled:c,className:f}=r,d=v6(r,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:p,cx:h}=f6({zIndex:a},{name:"Overlay",unstyled:c}),m=i?{backgroundImage:i}:{backgroundColor:l},_=v=>S.createElement(Y,kc({ref:t,className:h(p.root,f),sx:[y=>m6(kc({},m),{opacity:n,borderRadius:y.fn.size({size:s,sizes:y.radius})}),...Il(u)]},v));return o?S.createElement(Y,kc({className:h(p.root,f),sx:[{backdropFilter:`blur(${o}px)`},...Il(u)]},d),_()):_(d)});KS.displayName="@mantine/core/Overlay";const y6=KS,qS=g.createContext(null),w6=qS.Provider,_6=()=>g.useContext(qS);var S6=Object.defineProperty,nh=Object.getOwnPropertySymbols,x6=Object.prototype.hasOwnProperty,P6=Object.prototype.propertyIsEnumerable,oh=(e,t,r)=>t in e?S6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$6=(e,t)=>{for(var r in t||(t={}))x6.call(t,r)&&oh(e,r,t[r]);if(nh)for(var r of nh(t))P6.call(t,r)&&oh(e,r,t[r]);return e};const ms=(e,t)=>`${100/(t/e)}%`,ZS=(e,t)=>e?`${100/(t/e)}%`:void 0;function b6({sizes:e,offsets:t,theme:r,columns:n,grow:o}){return hO.reduce((l,i)=>(typeof e[i]=="number"&&(l[`@media (min-width: ${r.breakpoints[i]+1}px)`]={flexBasis:ms(e[i],n),flexShrink:0,maxWidth:o?"unset":ms(e[i],n),marginLeft:ZS(t[i],n)}),l),{})}var O6=Q((e,{gutter:t,grow:r,offset:n,offsetXs:o,offsetSm:l,offsetMd:i,offsetLg:a,offsetXl:s,columns:u,span:c,xs:f,sm:d,md:p,lg:h,xl:m})=>({root:$6({boxSizing:"border-box",flexGrow:r?1:0,padding:e.fn.size({size:t,sizes:e.spacing})/2,marginLeft:ZS(n,u),flexBasis:ms(c,u),flexShrink:0,maxWidth:r?"unset":ms(c,u)},b6({sizes:{xs:f,sm:d,md:p,lg:h,xl:m},offsets:{xs:o,sm:l,md:i,lg:a,xl:s},theme:e,columns:u,grow:r}))}));const C6=O6;var E6=Object.defineProperty,vs=Object.getOwnPropertySymbols,JS=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,lh=(e,t,r)=>t in e?E6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k6=(e,t)=>{for(var r in t||(t={}))JS.call(t,r)&&lh(e,r,t[r]);if(vs)for(var r of vs(t))ex.call(t,r)&&lh(e,r,t[r]);return e},R6=(e,t)=>{var r={};for(var n in e)JS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vs)for(var n of vs(e))t.indexOf(n)<0&&ex.call(e,n)&&(r[n]=e[n]);return r};const I6={offset:0,offsetXs:0,offsetSm:0,offsetMd:0,offsetLg:0,offsetXl:0};function j6(e){return typeof e=="number"&&e>0&&e%1===0}const tx=g.forwardRef((e,t)=>{const r=ee("Grid.Col",I6,e),{children:n,span:o,offset:l,offsetXs:i,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:p,lg:h,xl:m,className:_,id:v,unstyled:y}=r,w=R6(r,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","className","id","unstyled"]),x=_6();if(!x)throw new Error("[@mantine/core] Grid.Col was used outside of Grid context");const b=o||x.columns,{classes:$,cx:O}=C6({gutter:x.gutter,offset:l,offsetXs:i,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:p,lg:h,xl:m,grow:x.grow,columns:x.columns,span:b},{unstyled:y,name:"Col"});return!j6(b)||b>x.columns?null:S.createElement(Y,k6({className:O($.root,_),ref:t},w),n)});tx.displayName="@mantine/core/Col";var N6=Q((e,{justify:t,align:r,gutter:n})=>({root:{margin:-e.fn.size({size:n,sizes:e.spacing})/2,display:"flex",flexWrap:"wrap",justifyContent:t,alignItems:r}}));const z6=N6;var D6=Object.defineProperty,hs=Object.getOwnPropertySymbols,rx=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,ih=(e,t,r)=>t in e?D6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T6=(e,t)=>{for(var r in t||(t={}))rx.call(t,r)&&ih(e,r,t[r]);if(hs)for(var r of hs(t))nx.call(t,r)&&ih(e,r,t[r]);return e},L6=(e,t)=>{var r={};for(var n in e)rx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hs)for(var n of hs(e))t.indexOf(n)<0&&nx.call(e,n)&&(r[n]=e[n]);return r};const M6={gutter:"md",justify:"flex-start",align:"stretch",columns:12},Nu=g.forwardRef((e,t)=>{const r=ee("Grid",M6,e),{gutter:n,children:o,grow:l,justify:i,align:a,columns:s,className:u,id:c,unstyled:f}=r,d=L6(r,["gutter","children","grow","justify","align","columns","className","id","unstyled"]),{classes:p,cx:h}=z6({gutter:n,justify:i,align:a},{unstyled:f,name:"Grid"});return S.createElement(w6,{value:{gutter:n,grow:l,columns:s}},S.createElement(Y,T6({className:h(p.root,u),ref:t},d),o))});Nu.Col=tx;Nu.displayName="@mantine/core/Grid";function F6({open:e,close:t,openDelay:r,closeDelay:n}){const o=g.useRef(-1),l=g.useRef(-1),i=()=>{window.clearTimeout(o.current),window.clearTimeout(l.current)},a=()=>{i(),r===0?e():o.current=window.setTimeout(e,r)},s=()=>{i(),n===0?t():l.current=window.setTimeout(t,n)};return g.useEffect(()=>i,[]),{openDropdown:a,closeDropdown:s}}var A6=Q(e=>({divider:{margin:`${e.spacing.xs/2}px -5px`,borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`}}));const V6=A6;var H6=Object.defineProperty,ys=Object.getOwnPropertySymbols,ox=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,ah=(e,t,r)=>t in e?H6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,B6=(e,t)=>{for(var r in t||(t={}))ox.call(t,r)&&ah(e,r,t[r]);if(ys)for(var r of ys(t))lx.call(t,r)&&ah(e,r,t[r]);return e},W6=(e,t)=>{var r={};for(var n in e)ox.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ys)for(var n of ys(e))t.indexOf(n)<0&&lx.call(e,n)&&(r[n]=e[n]);return r};function ix(e){var t=e,{children:r,className:n}=t,o=W6(t,["children","className"]);const{classNames:l,styles:i,unstyled:a}=Cn(),{classes:s,cx:u}=V6(null,{name:"Menu",classNames:l,styles:i,unstyled:a});return S.createElement(Y,B6({className:u(s.divider,n)},o))}ix.displayName="@mantine/core/MenuDivider";const ax={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[U6,zp]=up(ax.context);var G6=Object.defineProperty,ws=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,sh=(e,t,r)=>t in e?G6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y6=(e,t)=>{for(var r in t||(t={}))sx.call(t,r)&&sh(e,r,t[r]);if(ws)for(var r of ws(t))ux.call(t,r)&&sh(e,r,t[r]);return e},X6=(e,t)=>{var r={};for(var n in e)sx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ws)for(var n of ws(e))t.indexOf(n)<0&&ux.call(e,n)&&(r[n]=e[n]);return r};function cx(e){var t=e,{children:r,onMouseEnter:n,onMouseLeave:o}=t,l=X6(t,["children","onMouseEnter","onMouseLeave"]);const i=g.useRef(),a=zp(),s=f=>{(f.key==="ArrowUp"||f.key==="ArrowDown")&&(f.preventDefault(),i.current.querySelectorAll("[data-menu-item]")[0].focus())},u=sr(n,()=>a.trigger==="hover"&&a.openDropdown()),c=sr(o,()=>a.trigger==="hover"&&a.closeDropdown());return S.createElement(wr.Dropdown,Y6({onMouseEnter:u,onMouseLeave:c,role:"menu","aria-orientation":"vertical"},l),S.createElement("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:s,ref:i,style:{outline:0}},r))}cx.displayName="@mantine/core/MenuDropdown";var Q6=Object.defineProperty,K6=Object.defineProperties,q6=Object.getOwnPropertyDescriptors,uh=Object.getOwnPropertySymbols,Z6=Object.prototype.hasOwnProperty,J6=Object.prototype.propertyIsEnumerable,ch=(e,t,r)=>t in e?Q6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eI=(e,t)=>{for(var r in t||(t={}))Z6.call(t,r)&&ch(e,r,t[r]);if(uh)for(var r of uh(t))J6.call(t,r)&&ch(e,r,t[r]);return e},tI=(e,t)=>K6(e,q6(t)),rI=Q((e,{color:t,radius:r})=>({item:tI(eI({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${e.spacing.xs}px ${e.spacing.sm}px`,cursor:"pointer",borderRadius:e.fn.radius(r),color:t?e.fn.variant({variant:"filled",primaryFallback:!1,color:t}).background:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"flex",alignItems:"center","&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:t?e.fn.variant({variant:"light",color:t}).background:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[3],.35):e.colors.gray[0]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:e.spacing.xs},itemRightSection:{}}));const nI=rI;var oI=Object.defineProperty,lI=Object.defineProperties,iI=Object.getOwnPropertyDescriptors,_s=Object.getOwnPropertySymbols,fx=Object.prototype.hasOwnProperty,dx=Object.prototype.propertyIsEnumerable,fh=(e,t,r)=>t in e?oI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aI=(e,t)=>{for(var r in t||(t={}))fx.call(t,r)&&fh(e,r,t[r]);if(_s)for(var r of _s(t))dx.call(t,r)&&fh(e,r,t[r]);return e},sI=(e,t)=>lI(e,iI(t)),uI=(e,t)=>{var r={};for(var n in e)fx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_s)for(var n of _s(e))t.indexOf(n)<0&&dx.call(e,n)&&(r[n]=e[n]);return r};const px=g.forwardRef((e,t)=>{var r=e,{children:n,className:o,color:l,closeMenuOnClick:i,icon:a,rightSection:s}=r,u=uI(r,["children","className","color","closeMenuOnClick","icon","rightSection"]);const c=zp(),{classNames:f,styles:d,unstyled:p}=Cn(),{classes:h,cx:m,theme:_}=nI({radius:c.radius,color:l},{name:"Menu",classNames:f,styles:d,unstyled:p}),v=g.useRef(),y=c.getItemIndex(v.current),w=u,x=sr(w.onMouseLeave,()=>c.setHovered(-1)),b=sr(w.onMouseEnter,()=>c.setHovered(c.getItemIndex(v.current))),$=sr(w.onClick,()=>{typeof i=="boolean"?i&&c.closeDropdownImmediately():c.closeOnItemClick&&c.closeDropdownImmediately()}),O=sr(w.onFocus,()=>c.setHovered(c.getItemIndex(v.current)));return S.createElement(Y,sI(aI({component:"button"},u),{type:"button",tabIndex:-1,onFocus:O,className:m(h.item,o),ref:En(v,t),role:"menuitem","data-menu-item":!0,"data-hovered":c.hovered===y?!0:void 0,onMouseEnter:b,onMouseLeave:x,onClick:$,onKeyDown:iw({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:c.loop,dir:_.dir,orientation:"vertical",onKeyDown:w.onKeydown})}),a&&S.createElement("div",{className:h.itemIcon},a),n&&S.createElement("div",{className:h.itemLabel},n),s&&S.createElement("div",{className:h.itemRightSection},s))});px.displayName="@mantine/core/MenuItem";const cI=px;var fI=Q(e=>({label:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontWeight:500,fontSize:e.fontSizes.xs,padding:`${e.spacing.xs/2}px ${e.spacing.sm}px`,cursor:"default"}}));const dI=fI;var pI=Object.defineProperty,Ss=Object.getOwnPropertySymbols,gx=Object.prototype.hasOwnProperty,mx=Object.prototype.propertyIsEnumerable,dh=(e,t,r)=>t in e?pI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gI=(e,t)=>{for(var r in t||(t={}))gx.call(t,r)&&dh(e,r,t[r]);if(Ss)for(var r of Ss(t))mx.call(t,r)&&dh(e,r,t[r]);return e},mI=(e,t)=>{var r={};for(var n in e)gx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ss)for(var n of Ss(e))t.indexOf(n)<0&&mx.call(e,n)&&(r[n]=e[n]);return r};function vx(e){var t=e,{children:r,className:n}=t,o=mI(t,["children","className"]);const{classNames:l,styles:i,unstyled:a}=Cn(),{classes:s,cx:u}=dI(null,{name:"Menu",classNames:l,styles:i,unstyled:a});return S.createElement(Ct,gI({className:u(s.label,n)},o),r)}vx.displayName="@mantine/core/MenuLabel";var vI=Object.defineProperty,xs=Object.getOwnPropertySymbols,hx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,ph=(e,t,r)=>t in e?vI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hI=(e,t)=>{for(var r in t||(t={}))hx.call(t,r)&&ph(e,r,t[r]);if(xs)for(var r of xs(t))yx.call(t,r)&&ph(e,r,t[r]);return e},yI=(e,t)=>{var r={};for(var n in e)hx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xs)for(var n of xs(e))t.indexOf(n)<0&&yx.call(e,n)&&(r[n]=e[n]);return r};const wx=g.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref"}=r,l=yI(r,["children","refProp"]);if(!Bl(n))throw new Error(ax.children);const i=zp(),a=sr(n.props.onClick,()=>i.trigger==="click"&&i.toggleDropdown()),s=sr(n.props.onMouseEnter,()=>i.trigger==="hover"&&i.openDropdown()),u=sr(n.props.onMouseLeave,()=>i.trigger==="hover"&&i.closeDropdown());return S.createElement(wr.Target,hI({refProp:o,popupType:"menu",ref:t},l),g.cloneElement(n,{onClick:a,onMouseEnter:s,onMouseLeave:u,"data-expanded":i.opened?!0:void 0}))});wx.displayName="@mantine/core/MenuTarget";var wI=Q({dropdown:{padding:4}});const _I=wI;var SI=Object.defineProperty,xI=Object.defineProperties,PI=Object.getOwnPropertyDescriptors,Ps=Object.getOwnPropertySymbols,_x=Object.prototype.hasOwnProperty,Sx=Object.prototype.propertyIsEnumerable,gh=(e,t,r)=>t in e?SI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mh=(e,t)=>{for(var r in t||(t={}))_x.call(t,r)&&gh(e,r,t[r]);if(Ps)for(var r of Ps(t))Sx.call(t,r)&&gh(e,r,t[r]);return e},vh=(e,t)=>xI(e,PI(t)),$I=(e,t)=>{var r={};for(var n in e)_x.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ps)for(var n of Ps(e))t.indexOf(n)<0&&Sx.call(e,n)&&(r[n]=e[n]);return r};const bI={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function st(e){const t=ee("Menu",bI,e),{children:r,onOpen:n,onClose:o,opened:l,defaultOpened:i,onChange:a,closeOnItemClick:s,loop:u,closeOnEscape:c,trigger:f,openDelay:d,closeDelay:p,classNames:h,styles:m,unstyled:_,radius:v}=t,y=$I(t,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius"]),{classes:w,cx:x}=_I(),[b,{setHovered:$,resetHovered:O}]=V2(),[C,k]=Gl({value:l,defaultValue:i,finalValue:!1,onChange:a}),I=()=>{k(!1),C&&o?.()},N=()=>{k(!0),!C&&n?.()},T=()=>C?I():N(),{openDropdown:B,closeDropdown:K}=F6({open:N,close:I,closeDelay:p,openDelay:d}),Z=W=>M2("[data-menu-item]","[data-menu-dropdown]",W);return Gr(()=>{O()},[C]),S.createElement(U6,{value:{opened:C,toggleDropdown:T,getItemIndex:Z,hovered:b,setHovered:$,closeOnItemClick:s,closeDropdown:f==="click"?I:K,openDropdown:f==="click"?N:B,closeDropdownImmediately:I,loop:u,trigger:f,radius:v}},S.createElement(wr,vh(mh({},y),{radius:v,opened:C,onChange:k,defaultOpened:i,trapFocus:f==="click",closeOnEscape:c&&f==="click",__staticSelector:"Menu",classNames:vh(mh({},h),{dropdown:x(w.dropdown,h?.dropdown)}),styles:m,unstyled:_,onClose:I,onOpen:N}),r))}st.displayName="@mantine/core/Menu";st.Item=cI;st.Label=vx;st.Dropdown=cx;st.Target=wx;st.Divider=ix;var OI=Object.defineProperty,hh=Object.getOwnPropertySymbols,CI=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,yh=(e,t,r)=>t in e?OI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kI=(e,t)=>{for(var r in t||(t={}))CI.call(t,r)&&yh(e,r,t[r]);if(hh)for(var r of hh(t))EI.call(t,r)&&yh(e,r,t[r]);return e};const RI={xs:320,sm:380,md:440,lg:620,xl:780};function II(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}}var jI=Q((e,{overflow:t,size:r,centered:n,zIndex:o,fullScreen:l})=>({close:{},overlay:{display:l?"none":void 0},root:{position:"fixed",zIndex:o,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:l?0:`${e.spacing.xl*2}px ${e.spacing.md}px`,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:kI({position:"relative",width:l?void 0:e.fn.size({sizes:RI,size:r}),borderRadius:l?0:void 0,outline:0,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,marginTop:n?"auto":void 0,marginBottom:n?"auto":void 0,zIndex:1,marginLeft:l?void 0:"calc(var(--removed-scroll-width, 0px) * -1)"},II(l)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:t==="inside"?"calc(100vh - 185px)":null,overflowY:t==="inside"?"auto":null,wordBreak:"break-word"}}));const NI=jI;var zI=Object.defineProperty,$s=Object.getOwnPropertySymbols,xx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable,wh=(e,t,r)=>t in e?zI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DI=(e,t)=>{for(var r in t||(t={}))xx.call(t,r)&&wh(e,r,t[r]);if($s)for(var r of $s(t))Px.call(t,r)&&wh(e,r,t[r]);return e},TI=(e,t)=>{var r={};for(var n in e)xx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$s)for(var n of $s(e))t.indexOf(n)<0&&Px.call(e,n)&&(r[n]=e[n]);return r};const LI={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:So("modal")};function zu(e){const t=ee("Modal",LI,e),{className:r,opened:n,title:o,onClose:l,children:i,withCloseButton:a,overlayOpacity:s,size:u,transitionDuration:c,closeButtonLabel:f,overlayColor:d,overflow:p,transition:h,padding:m,shadow:_,radius:v,id:y,classNames:w,styles:x,closeOnClickOutside:b,trapFocus:$,closeOnEscape:O,centered:C,target:k,withinPortal:I,zIndex:N,overlayBlur:T,transitionTimingFunction:B,fullScreen:K,unstyled:Z,lockScroll:W,withFocusReturn:oe}=t,j=TI(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),z=xo(y),M=`${z}-title`,A=`${z}-body`,{classes:G,cx:$e,theme:R}=NI({size:u,overflow:p,centered:C,zIndex:N,fullScreen:K},{unstyled:Z,classNames:w,styles:x,name:"Modal"}),F=Lw($&&n),H=typeof s=="number"?s:R.colorScheme==="dark"?.85:.75,[,te]=jE(),At=_e=>{!$&&_e.key==="Escape"&&O&&l()};return g.useEffect(()=>{if(!$)return window.addEventListener("keydown",At),()=>window.removeEventListener("keydown",At)},[$]),Nw({opened:n,shouldReturnFocus:$&&oe}),S.createElement(Yl,{withinPortal:I,target:k},S.createElement(YS,{onExited:()=>W&&te(!1),onEntered:()=>W&&te(!0),mounted:n,duration:c,exitDuration:c,timingFunction:B,transitions:{modal:{duration:c,transition:h||(K?"fade":"pop")},overlay:{duration:c/2,transition:"fade",timingFunction:"ease"}}},_e=>S.createElement(Y,DI({id:z,className:$e(G.root,r)},j),S.createElement("div",{className:G.inner,onKeyDownCapture:Ue=>{var _r;((_r=Ue.target)==null?void 0:_r.getAttribute("data-mantine-stop-propagation"))!=="true"&&Ue.key==="Escape"&&O&&l()},ref:F},S.createElement(Y4,{className:G.modal,shadow:_,p:m,radius:v,role:"dialog","aria-labelledby":M,"aria-describedby":A,"aria-modal":!0,tabIndex:-1,style:_e.modal,unstyled:Z},(o||a)&&S.createElement("div",{className:G.header},S.createElement(Ct,{id:M,className:G.title},o),a&&S.createElement($u,{iconSize:16,onClick:l,"aria-label":f,className:G.close})),S.createElement("div",{id:A,className:G.body},i)),S.createElement("div",{style:_e.overlay},S.createElement(y6,{className:G.overlay,sx:{position:"fixed"},zIndex:0,onMouseDown:()=>b&&l(),blur:T,color:d||(R.colorScheme==="dark"?R.colors.dark[9]:R.black),opacity:H,unstyled:Z}))))))}zu.displayName="@mantine/core/Modal";var MI=Object.defineProperty,bs=Object.getOwnPropertySymbols,$x=Object.prototype.hasOwnProperty,bx=Object.prototype.propertyIsEnumerable,_h=(e,t,r)=>t in e?MI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sh=(e,t)=>{for(var r in t||(t={}))$x.call(t,r)&&_h(e,r,t[r]);if(bs)for(var r of bs(t))bx.call(t,r)&&_h(e,r,t[r]);return e},FI=(e,t)=>{var r={};for(var n in e)$x.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bs)for(var n of bs(e))t.indexOf(n)<0&&bx.call(e,n)&&(r[n]=e[n]);return r};const AI={xs:14,sm:18,md:20,lg:24,xl:28};function VI(e){var t=e,{size:r,error:n,style:o}=t,l=FI(t,["size","error","style"]);const i=yt(),a=i.fn.size({size:r,sizes:AI});return S.createElement("svg",Sh({width:a,height:a,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Sh({color:n?i.colors.red[6]:i.colors.gray[6]},o),"data-chevron":!0},l),S.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Ox({shouldClear:e,clearButtonLabel:t,onClear:r,size:n,error:o,clearButtonTabIndex:l}){return e?S.createElement($u,{variant:"transparent","aria-label":t,onClick:r,size:n,tabIndex:l}):S.createElement(VI,{error:o,size:n})}Ox.displayName="@mantine/core/SelectRightSection";var HI=Object.defineProperty,BI=Object.defineProperties,WI=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Cx=Object.prototype.hasOwnProperty,Ex=Object.prototype.propertyIsEnumerable,xh=(e,t,r)=>t in e?HI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rc=(e,t)=>{for(var r in t||(t={}))Cx.call(t,r)&&xh(e,r,t[r]);if(Os)for(var r of Os(t))Ex.call(t,r)&&xh(e,r,t[r]);return e},Ph=(e,t)=>BI(e,WI(t)),UI=(e,t)=>{var r={};for(var n in e)Cx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Os)for(var n of Os(e))t.indexOf(n)<0&&Ex.call(e,n)&&(r[n]=e[n]);return r};const GI={xs:24,sm:30,md:34,lg:44,xl:54};function YI(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:o,theme:l}=t,i=UI(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:o,styles:r};const a=typeof r=="function"?r(l):r;return{rightSectionWidth:l.fn.size({size:i.size,sizes:GI}),rightSection:!i.readOnly&&!(i.disabled&&i.shouldClear)&&S.createElement(Ox,Rc({},i)),styles:Ph(Rc({},a),{rightSection:Ph(Rc({},a?.rightSection),{pointerEvents:i.shouldClear?void 0:"none"})})}}const XI=(e,t,r)=>Number.isInteger(e)&&e>=0&&t===0?"numeric":!Number.isInteger(e)&&e>=0&&t!==0?"decimal":Number.isInteger(e)&&e<0&&t===0||!Number.isInteger(e)&&e<0&&t!==0?r==="ios"?"text":"decimal":"numeric";function $h({direction:e,size:t}){return S.createElement("svg",{style:{transform:e==="up"?"rotate(180deg)":void 0},width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const kx={xs:20,sm:24,md:30,lg:34,xl:36};var QI=Q((e,{radius:t,size:r})=>({rightSection:{display:"flex",flexDirection:"column",height:"calc(100% - 2px)",margin:1,marginRight:1,overflow:"hidden",borderTopRightRadius:e.fn.radius(t),borderBottomRightRadius:e.fn.radius(t)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:e.fn.size({size:r,sizes:kx}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:1,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,"&:not(:disabled):hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}}));const KI=QI;var qI=Object.defineProperty,ZI=Object.defineProperties,JI=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Rx=Object.prototype.hasOwnProperty,Ix=Object.prototype.propertyIsEnumerable,bh=(e,t,r)=>t in e?qI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ic=(e,t)=>{for(var r in t||(t={}))Rx.call(t,r)&&bh(e,r,t[r]);if(Cs)for(var r of Cs(t))Ix.call(t,r)&&bh(e,r,t[r]);return e},e8=(e,t)=>ZI(e,JI(t)),t8=(e,t)=>{var r={};for(var n in e)Rx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cs)for(var n of Cs(e))t.indexOf(n)<0&&Ix.call(e,n)&&(r[n]=e[n]);return r};const r8={type:"text",size:"sm",__staticSelector:"TextInput"},Zr=g.forwardRef((e,t)=>{const r=hS("TextInput",r8,e),{inputProps:n,wrapperProps:o}=r,l=t8(r,["inputProps","wrapperProps"]);return S.createElement(as.Wrapper,Ic({},o),S.createElement(as,e8(Ic(Ic({},n),l),{ref:t})))});Zr.displayName="@mantine/core/TextInput";var n8=Object.defineProperty,o8=Object.defineProperties,l8=Object.getOwnPropertyDescriptors,Es=Object.getOwnPropertySymbols,jx=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,Oh=(e,t,r)=>t in e?n8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i8=(e,t)=>{for(var r in t||(t={}))jx.call(t,r)&&Oh(e,r,t[r]);if(Es)for(var r of Es(t))Nx.call(t,r)&&Oh(e,r,t[r]);return e},a8=(e,t)=>o8(e,l8(t)),s8=(e,t)=>{var r={};for(var n in e)jx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Es)for(var n of Es(e))t.indexOf(n)<0&&Nx.call(e,n)&&(r[n]=e[n]);return r};const u8=e=>e||"",c8=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);const r=parseFloat(t);if(!Number.isNaN(r))return e},Ch={xs:10,sm:14,md:16,lg:18,xl:20},f8={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,formatter:u8,parser:c8},Dl=g.forwardRef((e,t)=>{const r=ee("NumberInput",f8,e),{disabled:n,value:o,onChange:l,decimalSeparator:i,min:a,max:s,startValue:u,step:c,stepHoldInterval:f,stepHoldDelay:d,onBlur:p,onFocus:h,hideControls:m,radius:_,variant:v,precision:y,defaultValue:w,noClampOnBlur:x,handlersRef:b,classNames:$,styles:O,size:C,rightSection:k,rightSectionWidth:I,formatter:N,parser:T,inputMode:B,unstyled:K}=r,Z=s8(r,["disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","hideControls","radius","variant","precision","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled"]),{classes:W,cx:oe,theme:j}=KI({radius:_,size:C},{classNames:$,styles:O,unstyled:K,name:"NumberInput"}),[z,M]=g.useState(!1),[A,G]=g.useState(typeof o=="number"?o:typeof w=="number"?w:void 0),$e=typeof o=="number"?o:A,[R,F]=g.useState(typeof $e=="number"?$e.toFixed(y):""),H=g.useRef(),te=V=>{V!==A&&!Number.isNaN(V)&&(typeof l=="function"&&l(V),G(V))},At=(V="")=>{let le=typeof V=="number"?String(V):V;return i&&(le=le.replace(/\./g,i)),N(le)},_e=V=>{let le=V;return i&&(le=le.replace(new RegExp(`\\${i}`,"g"),".")),T(le)},Ue=typeof a=="number"?a:-1/0,_r=typeof s=="number"?s:1/0,In=g.useRef();In.current=()=>{var V,le,he;if(A===void 0)te((V=u??a)!=null?V:0),F((he=(le=u?.toFixed(y))!=null?le:a?.toFixed(y))!=null?he:"0");else{const Ge=xc(A+c,Ue,_r).toFixed(y);te(parseFloat(Ge)),F(Ge)}};const Co=g.useRef();Co.current=()=>{var V,le,he;if(A===void 0)te((V=u??a)!=null?V:0),F((he=(le=u?.toFixed(y))!=null?le:a?.toFixed(y))!=null?he:"0");else{const Ge=xc(A-c,Ue,_r).toFixed(y);te(parseFloat(Ge)),F(Ge)}},Mw(b,{increment:In.current,decrement:Co.current}),g.useEffect(()=>{typeof o=="number"&&!z&&(G(o),F(o.toFixed(y))),w===void 0&&o===void 0&&!z&&(G(o),F(""))},[o]);const Eo=d!==void 0&&f!==void 0,nt=g.useRef(null),ko=g.useRef(0),Zt=()=>{nt.current&&window.clearTimeout(nt.current),nt.current=null,ko.current=0},ei=V=>{V?In.current():Co.current(),ko.current+=1},ti=V=>{if(ei(V),Eo){const le=typeof f=="number"?f:f(ko.current);nt.current=window.setTimeout(()=>ti(V),le)}},ze=(V,le)=>{V.preventDefault(),H.current.focus(),ei(le),Eo&&(nt.current=window.setTimeout(()=>ti(le),d))};g.useEffect(()=>(Zt(),Zt),[]);const Wu=S.createElement("div",{className:W.rightSection},S.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:$e>=s,className:oe(W.control,W.controlUp),onPointerDown:V=>{ze(V,!0)},onPointerUp:Zt,onPointerLeave:Zt},S.createElement($h,{size:j.fn.size({size:C,sizes:Ch}),direction:"up"})),S.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:$e<=a,className:oe(W.control,W.controlDown),onPointerDown:V=>{ze(V,!1)},onPointerUp:Zt,onPointerLeave:Zt},S.createElement($h,{size:j.fn.size({size:C,sizes:Ch}),direction:"down"}))),kt=V=>{if(V.nativeEvent.isComposing)return;const he=V.target.value,Ge=_e(he);F(Ge),he===""||he==="-"?te(void 0):he.trim()!==""&&!Number.isNaN(Ge)&&te(parseFloat(Ge))},Fe=V=>{var le;if(V.target.value==="")F(""),te(void 0);else{let he=V.target.value;(he[0]===`${i}`||he[0]===".")&&(he=`0${he}`);const Ge=_e(he),Io=xc(parseFloat(Ge),Ue,_r);Number.isNaN(Io)?F((le=$e?.toFixed(y))!=null?le:""):x||(F(Io.toFixed(y)),te(parseFloat(Io.toFixed(y))))}M(!1),typeof p=="function"&&p(V)},Ro=V=>{M(!0),typeof h=="function"&&h(V)},jn=V=>{if(V.repeat&&Eo&&(V.key==="ArrowUp"||V.key==="ArrowDown")){V.preventDefault();return}V.key==="ArrowUp"?ze(V,!0):V.key==="ArrowDown"&&ze(V,!1)},ri=V=>{(V.key==="ArrowUp"||V.key==="ArrowDown")&&Zt()};return S.createElement(Zr,a8(i8({},Z),{variant:v,value:At(R),disabled:n,ref:En(H,t),type:"text",onChange:kt,onBlur:Fe,onFocus:Ro,onKeyDown:jn,onKeyUp:ri,rightSection:k||(n||m||v==="unstyled"?null:Wu),rightSectionWidth:I||j.fn.size({size:C,sizes:kx})+1,radius:_,max:s,min:a,step:c,size:C,styles:O,classNames:$,inputMode:B||XI(c,y,zE()),__staticSelector:"NumberInput",unstyled:K}))});Dl.displayName="@mantine/core/NumberInput";var d8=Object.defineProperty,Eh=Object.getOwnPropertySymbols,p8=Object.prototype.hasOwnProperty,g8=Object.prototype.propertyIsEnumerable,kh=(e,t,r)=>t in e?d8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m8=(e,t)=>{for(var r in t||(t={}))p8.call(t,r)&&kh(e,r,t[r]);if(Eh)for(var r of Eh(t))g8.call(t,r)&&kh(e,r,t[r]);return e};function zx(e){return S.createElement("svg",m8({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S.createElement("path",{d:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z",fill:"currentColor"}))}var v8=Object.defineProperty,Rh=Object.getOwnPropertySymbols,h8=Object.prototype.hasOwnProperty,y8=Object.prototype.propertyIsEnumerable,Ih=(e,t,r)=>t in e?v8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w8=(e,t)=>{for(var r in t||(t={}))h8.call(t,r)&&Ih(e,r,t[r]);if(Rh)for(var r of Rh(t))y8.call(t,r)&&Ih(e,r,t[r]);return e};function Dx(e){return S.createElement("svg",w8({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S.createElement("path",{d:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",fill:"currentColor"}))}var _8=Object.defineProperty,jh=Object.getOwnPropertySymbols,S8=Object.prototype.hasOwnProperty,x8=Object.prototype.propertyIsEnumerable,Nh=(e,t,r)=>t in e?_8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P8=(e,t)=>{for(var r in t||(t={}))S8.call(t,r)&&Nh(e,r,t[r]);if(jh)for(var r of jh(t))x8.call(t,r)&&Nh(e,r,t[r]);return e};function Tx(e){return S.createElement("svg",P8({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S.createElement("path",{d:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",fill:"currentColor"}))}var $8=Object.defineProperty,zh=Object.getOwnPropertySymbols,b8=Object.prototype.hasOwnProperty,O8=Object.prototype.propertyIsEnumerable,Dh=(e,t,r)=>t in e?$8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C8=(e,t)=>{for(var r in t||(t={}))b8.call(t,r)&&Dh(e,r,t[r]);if(zh)for(var r of zh(t))O8.call(t,r)&&Dh(e,r,t[r]);return e};function Lx(e){return S.createElement("svg",C8({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S.createElement("path",{d:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",fill:"currentColor"}))}var E8=Object.defineProperty,Th=Object.getOwnPropertySymbols,k8=Object.prototype.hasOwnProperty,R8=Object.prototype.propertyIsEnumerable,Lh=(e,t,r)=>t in e?E8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I8=(e,t)=>{for(var r in t||(t={}))k8.call(t,r)&&Lh(e,r,t[r]);if(Th)for(var r of Th(t))R8.call(t,r)&&Lh(e,r,t[r]);return e};function Mx(e){return S.createElement("svg",I8({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),S.createElement("path",{d:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",fill:"currentColor"}))}var j8=Object.defineProperty,ks=Object.getOwnPropertySymbols,Fx=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?j8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N8=(e,t)=>{for(var r in t||(t={}))Fx.call(t,r)&&Mh(e,r,t[r]);if(ks)for(var r of ks(t))Ax.call(t,r)&&Mh(e,r,t[r]);return e},z8=(e,t)=>{var r={};for(var n in e)Fx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ks)for(var n of ks(e))t.indexOf(n)<0&&Ax.call(e,n)&&(r[n]=e[n]);return r};const D8={dots:zx,next:Dx,prev:Tx,first:Lx,last:Mx},T8={dots:zx,prev:Dx,next:Tx,last:Lx,first:Mx};function Vx(e){var t=e,{page:r,active:n,onClick:o}=t,l=z8(t,["page","active","onClick"]);const a=(yt().dir==="rtl"?T8:D8)[r],s=a?S.createElement(a,null):r;return S.createElement("button",N8({type:"button",onClick:o},l),s)}Vx.displayName="@mantine/core/Pagination/DefaultItem";var L8=Object.defineProperty,M8=Object.defineProperties,F8=Object.getOwnPropertyDescriptors,Fh=Object.getOwnPropertySymbols,A8=Object.prototype.hasOwnProperty,V8=Object.prototype.propertyIsEnumerable,Ah=(e,t,r)=>t in e?L8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H8=(e,t)=>{for(var r in t||(t={}))A8.call(t,r)&&Ah(e,r,t[r]);if(Fh)for(var r of Fh(t))V8.call(t,r)&&Ah(e,r,t[r]);return e},B8=(e,t)=>M8(e,F8(t));const Vh={xs:22,sm:26,md:32,lg:38,xl:44};var W8=Q((e,{size:t,radius:r,color:n})=>{const o=e.fn.variant({color:n,variant:"filled"});return{item:B8(H8({},e.fn.focusStyles()),{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,height:e.fn.size({size:t,sizes:Vh}),minWidth:e.fn.size({size:t,sizes:Vh}),padding:`0 ${e.fn.size({size:t,sizes:e.spacing})/2}px`,fontSize:e.fn.size({size:t,sizes:e.fontSizes}),borderRadius:e.fn.radius(r),lineHeight:1,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,"&:active:not(:disabled):not([data-dots])":e.activeStyles,"&:disabled":{opacity:.6,cursor:"not-allowed",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&[data-dots]":{cursor:"default",borderColor:"transparent",backgroundColor:"transparent"},"&[data-active]":{borderColor:"transparent",color:o.color,backgroundColor:o.background}})}});const U8=W8;var G8=Object.defineProperty,Rs=Object.getOwnPropertySymbols,Hx=Object.prototype.hasOwnProperty,Bx=Object.prototype.propertyIsEnumerable,Hh=(e,t,r)=>t in e?G8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y8=(e,t)=>{for(var r in t||(t={}))Hx.call(t,r)&&Hh(e,r,t[r]);if(Rs)for(var r of Rs(t))Bx.call(t,r)&&Hh(e,r,t[r]);return e},X8=(e,t)=>{var r={};for(var n in e)Hx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Rs)for(var n of Rs(e))t.indexOf(n)<0&&Bx.call(e,n)&&(r[n]=e[n]);return r};const Q8={itemComponent:Vx,initialPage:1,siblings:1,boundaries:1,size:"md",radius:"sm",withEdges:!1,withControls:!0},Wx=g.forwardRef((e,t)=>{const r=ee("Pagination",Q8,e),{itemComponent:n,classNames:o,styles:l,page:i,initialPage:a,color:s,total:u,siblings:c,boundaries:f,size:d,radius:p,onChange:h,getItemAriaLabel:m,spacing:_,withEdges:v,withControls:y,sx:w,unstyled:x}=r,b=X8(r,["itemComponent","classNames","styles","page","initialPage","color","total","siblings","boundaries","size","radius","onChange","getItemAriaLabel","spacing","withEdges","withControls","sx","unstyled"]),{classes:$,theme:O}=U8({color:s,size:d,radius:p},{classNames:o,styles:l,unstyled:x,name:"Pagination"}),{range:C,setPage:k,next:I,previous:N,active:T,first:B,last:K}=SE({page:i,siblings:c,total:u,onChange:h,initialPage:a,boundaries:f}),Z=C.map((W,oe)=>S.createElement(n,{key:oe,page:W,active:W===T,"aria-current":W===T?"page":void 0,"aria-label":typeof m=="function"?m(W):null,tabIndex:W==="dots"?-1:0,"data-dots":W==="dots"||void 0,"data-active":W===T||void 0,className:$.item,onClick:W!=="dots"?()=>k(W):void 0}));return S.createElement(qt,Y8({role:"navigation",spacing:_||O.fn.size({size:d,sizes:O.spacing})/2,ref:t,sx:w,unstyled:x},b),v&&S.createElement(n,{page:"first",onClick:B,"aria-label":m?m("first"):void 0,"aria-disabled":T===1,className:$.item,disabled:T===1}),y&&S.createElement(n,{page:"prev",onClick:N,"aria-label":m?m("prev"):void 0,"aria-disabled":T===1,className:$.item,disabled:T===1}),Z,y&&S.createElement(n,{page:"next",onClick:I,"aria-label":m?m("next"):void 0,"aria-disabled":T===u,className:$.item,disabled:T===u}),v&&S.createElement(n,{page:"last",onClick:K,"aria-label":m?m("last"):void 0,"aria-disabled":T===u,className:$.item,disabled:T===u}))});Wx.displayName="@mantine/core/Pagination";function K8({data:e,searchable:t,limit:r,searchValue:n,filter:o,value:l,filterDataOnExactSearchMatch:i}){if(!t)return e;const a=l!=null&&e.find(u=>u.value===l)||null;if(a&&!i&&a?.label===n)return e;const s=[];for(let u=0;u=r));u+=1);return s}var q8=Q(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}}));const Z8=q8;var J8=Object.defineProperty,ej=Object.defineProperties,tj=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,Ux=Object.prototype.hasOwnProperty,Gx=Object.prototype.propertyIsEnumerable,Bh=(e,t,r)=>t in e?J8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yo=(e,t)=>{for(var r in t||(t={}))Ux.call(t,r)&&Bh(e,r,t[r]);if(Is)for(var r of Is(t))Gx.call(t,r)&&Bh(e,r,t[r]);return e},jc=(e,t)=>ej(e,tj(t)),rj=(e,t)=>{var r={};for(var n in e)Ux.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Is)for(var n of Is(e))t.indexOf(n)<0&&Gx.call(e,n)&&(r[n]=e[n]);return r};function nj(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function oj(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const lj={required:!1,size:"sm",shadow:"sm",itemComponent:y_,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:nj,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:oj,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:So("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},Tl=g.forwardRef((e,t)=>{const r=hS("Select",lj,e),{inputProps:n,wrapperProps:o,shadow:l,data:i,value:a,defaultValue:s,onChange:u,itemComponent:c,onKeyDown:f,onBlur:d,onFocus:p,transition:h,transitionDuration:m,initiallyOpened:_,transitionTimingFunction:v,unstyled:y,classNames:w,styles:x,filter:b,maxDropdownHeight:$,searchable:O,clearable:C,nothingFound:k,clearButtonLabel:I,limit:N,disabled:T,onSearchChange:B,rightSection:K,rightSectionWidth:Z,creatable:W,getCreateLabel:oe,shouldCreate:j,selectOnBlur:z,onCreate:M,dropdownComponent:A,onDropdownClose:G,onDropdownOpen:$e,withinPortal:R,switchDirectionOnFlip:F,zIndex:H,name:te,dropdownPosition:At,allowDeselect:_e,placeholder:Ue,filterDataOnExactSearchMatch:_r,clearButtonTabIndex:In,form:Co,positionDependencies:Eo,readOnly:nt}=r,ko=rj(r,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transition","transitionDuration","initiallyOpened","transitionTimingFunction","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","clearButtonLabel","limit","disabled","onSearchChange","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly"]),{classes:Zt,cx:ei,theme:ti}=Z8(),[ze,Wu]=g.useState(_),[kt,Fe]=g.useState(-1),Ro=g.useRef(),jn=g.useRef({}),[ri,V]=g.useState("column"),le=ri==="column",{scrollIntoView:he,targetRef:Ge,scrollableRef:Io}=OE({duration:0,offset:5,cancelable:!1,isList:!0}),e$=_e===void 0?C:_e,wt=L=>{if(ze!==L){Wu(L);const de=L?$e:G;typeof de=="function"&&de()}},Uu=W&&typeof oe=="function";let Gu=null;const t$=i.map(L=>typeof L=="string"?{label:L,value:L}:L),ni=H2({data:t$}),[Rt,Nn,Wp]=Gl({value:a,defaultValue:s,finalValue:null,onChange:u}),Jt=ni.find(L=>L.value===Rt),[Jr,r$]=g.useState(Jt?.label||""),en=L=>{r$(L),O&&typeof B=="function"&&B(L)},n$=()=>{var L;nt||(Nn(null),Wp||en(""),(L=Ro.current)==null||L.focus())};g.useEffect(()=>{const L=ni.find(de=>de.value===Rt);L?en(L.label):(!Uu||!Rt)&&en("")},[Rt]),g.useEffect(()=>{Jt&&(!O||!ze)&&en(Jt.label)},[Jt?.label]);const oi=L=>{if(!nt)if(e$&&Jt?.value===L.value)Nn(null),wt(!1);else{if(L.creatable&&typeof M=="function"){const de=M(L.value);Nn(typeof de=="string"?de:de.value)}else Nn(L.value);Wp||en(L.label),Fe(-1),wt(!1),Ro.current.focus()}},ke=K8({data:ni,searchable:O,limit:N,searchValue:Jr,filter:b,filterDataOnExactSearchMatch:_r,value:Rt});Uu&&j(Jr,ke)&&(Gu=oe(Jr),ke.push({label:Jr,value:Jr,creatable:!0}));const Up=(L,de,ot)=>{let lt=L;for(;ot(lt);)if(lt=de(lt),!ke[lt].disabled)return lt;return L};Gr(()=>{Fe(-1)},[Jr]);const jo=Rt?ke.findIndex(L=>L.value===Rt):0,Gp=()=>{Fe(L=>{var de;const ot=Up(L,lt=>lt-1,lt=>lt>0);return Ge.current=jn.current[(de=ke[ot])==null?void 0:de.value],he({alignment:le?"start":"end"}),ot})},Yp=()=>{Fe(L=>{var de;const ot=Up(L,lt=>lt+1,lt=>ltwindow.setTimeout(()=>{var L;Ge.current=jn.current[(L=ke[jo])==null?void 0:L.value],he({alignment:le?"end":"start"})},0),o$=L=>{switch(typeof f=="function"&&f(L),L.key){case"ArrowUp":{L.preventDefault(),ze?le?Gp():Yp():(Fe(jo),wt(!0),No());break}case"ArrowDown":{L.preventDefault(),ze?le?Yp():Gp():(Fe(jo),wt(!0),No());break}case"Home":{if(!O){L.preventDefault(),ze||wt(!0);const de=ke.findIndex(ot=>!ot.disabled);Fe(de),he({alignment:le?"end":"start"})}break}case"End":{if(!O){L.preventDefault(),ze||wt(!0);const de=ke.map(ot=>!!ot.disabled).lastIndexOf(!1);Fe(de),he({alignment:le?"end":"start"})}break}case"Escape":{L.preventDefault(),wt(!1),Fe(-1);break}case" ":{O||(ke[kt]&&ze?(L.preventDefault(),oi(ke[kt])):(wt(!0),Fe(jo),No()));break}case"Enter":O||L.preventDefault(),ke[kt]&&ze&&(L.preventDefault(),oi(ke[kt]))}},l$=L=>{typeof d=="function"&&d(L);const de=ni.find(ot=>ot.value===Rt);z&&ke[kt]&&ze&&oi(ke[kt]),en(de?.label||""),wt(!1)},i$=L=>{typeof p=="function"&&p(L),O&&(wt(!0),No())},a$=L=>{nt||(en(L.currentTarget.value),C&&L.currentTarget.value===""&&Nn(null),Fe(-1),wt(!0))},s$=()=>{if(!nt){let L=!0;O||(L=!ze),wt(L),Rt&&L&&(Fe(jo),No())}},zo=!nt&&(ke.length>0?ze:ze&&!!k);return S.createElement(as.Wrapper,jc(Yo({},o),{__staticSelector:"Select"}),S.createElement(pl,{opened:zo,transition:h,transitionDuration:m,shadow:"sm",withinPortal:R,__staticSelector:"Select",onDirectionChange:V,switchDirectionOnFlip:F,zIndex:H,dropdownPosition:At,positionDependencies:Eo,classNames:w,styles:x,unstyled:y},S.createElement(pl.Target,null,S.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":zo?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":zo,onMouseLeave:()=>Fe(-1),tabIndex:-1},S.createElement("input",{type:"hidden",name:te,value:Rt||"",form:Co,disabled:T}),S.createElement(as,Yo(jc(Yo(Yo({autoComplete:"off",type:"search"},n),ko),{ref:En(t,Ro),onKeyDown:o$,__staticSelector:"Select",value:Jr,placeholder:Ue,onChange:a$,"aria-autocomplete":"list","aria-controls":zo?`${n.id}-items`:null,"aria-activedescendant":kt>=0?`${n.id}-${kt}`:null,onClick:s$,onBlur:l$,onFocus:i$,readOnly:!O||nt,disabled:T,"data-mantine-stop-propagation":zo,name:null,classNames:jc(Yo({},w),{input:ei({[Zt.input]:!O},w?.input)})}),YI({theme:ti,rightSection:K,rightSectionWidth:Z,styles:x,size:n.size,shouldClear:C&&!!Jt,clearButtonLabel:I,onClear:n$,error:o.error,clearButtonTabIndex:In,disabled:T,readOnly:nt}))))),S.createElement(pl.Dropdown,{component:A||Pp,maxHeight:$,direction:ri,id:n.id,innerRef:Io},S.createElement(m_,{data:ke,hovered:kt,classNames:w,styles:x,isItemSelected:L=>L===Rt,uuid:n.id,__staticSelector:"Select",onItemHover:Fe,onItemSelect:oi,itemsRefs:jn,itemComponent:c,size:n.size,nothingFound:k,creatable:Uu&&!!Gu,createLabel:Gu,"aria-label":o.label,unstyled:y}))))});Tl.displayName="@mantine/core/Select";function ij(e,t){if(t.length===0)return t;const r="maxWidth"in t[0]?"maxWidth":"minWidth",n=[...t].sort((o,l)=>e.fn.size({size:l[r],sizes:e.breakpoints})-e.fn.size({size:o[r],sizes:e.breakpoints}));return r==="minWidth"?n.reverse():n}var aj=Object.defineProperty,Wh=Object.getOwnPropertySymbols,sj=Object.prototype.hasOwnProperty,uj=Object.prototype.propertyIsEnumerable,Uh=(e,t,r)=>t in e?aj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cj=(e,t)=>{for(var r in t||(t={}))sj.call(t,r)&&Uh(e,r,t[r]);if(Wh)for(var r of Wh(t))uj.call(t,r)&&Uh(e,r,t[r]);return e},fj=Q((e,{spacing:t,breakpoints:r,cols:n})=>{const o=ij(e,r).reduce((l,i)=>{const a="maxWidth"in i?"max-width":"min-width",s=e.fn.size({size:a==="max-width"?i.maxWidth:i.minWidth,sizes:e.breakpoints});return l[`@media (${a}: ${s+(a==="max-width"?0:1)}px)`]={gridTemplateColumns:`repeat(${i.cols}, minmax(0, 1fr))`,gap:e.fn.size({size:i.spacing||t,sizes:e.spacing})},l},{});return{root:cj({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:e.fn.size({size:t,sizes:e.spacing})},o)}});const dj=fj;var pj=Object.defineProperty,js=Object.getOwnPropertySymbols,Yx=Object.prototype.hasOwnProperty,Xx=Object.prototype.propertyIsEnumerable,Gh=(e,t,r)=>t in e?pj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gj=(e,t)=>{for(var r in t||(t={}))Yx.call(t,r)&&Gh(e,r,t[r]);if(js)for(var r of js(t))Xx.call(t,r)&&Gh(e,r,t[r]);return e},mj=(e,t)=>{var r={};for(var n in e)Yx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&js)for(var n of js(e))t.indexOf(n)<0&&Xx.call(e,n)&&(r[n]=e[n]);return r};const vj={breakpoints:[],cols:1,spacing:"md"},Qx=g.forwardRef((e,t)=>{const r=ee("SimpleGrid",vj,e),{className:n,breakpoints:o,cols:l,spacing:i,children:a,unstyled:s}=r,u=mj(r,["className","breakpoints","cols","spacing","children","unstyled"]),{classes:c,cx:f}=dj({breakpoints:o,cols:l,spacing:i},{unstyled:s,name:"SimpleGrid"});return S.createElement(Y,gj({className:f(c.root,n),ref:t},u),a)});Qx.displayName="@mantine/core/SimpleGrid";var hj=Object.defineProperty,yj=Object.defineProperties,wj=Object.getOwnPropertyDescriptors,Yh=Object.getOwnPropertySymbols,_j=Object.prototype.hasOwnProperty,Sj=Object.prototype.propertyIsEnumerable,Xh=(e,t,r)=>t in e?hj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qh=(e,t)=>{for(var r in t||(t={}))_j.call(t,r)&&Xh(e,r,t[r]);if(Yh)for(var r of Yh(t))Sj.call(t,r)&&Xh(e,r,t[r]);return e},Kh=(e,t)=>yj(e,wj(t));const xj={xs:16,sm:20,md:24,lg:30,xl:36},Nc={xs:30,sm:38,md:46,lg:56,xl:68},qh={xs:12,sm:14,md:18,lg:22,xl:28},Pj={xs:5,sm:6,md:7,lg:9,xl:11};var $j=Q((e,{size:t,radius:r,color:n,offLabel:o,onLabel:l})=>{const i=e.fn.size({size:t,sizes:qh}),a=e.fn.size({size:r,sizes:e.radius}),s=e.fn.variant({variant:"filled",color:n});return{root:{display:"flex",alignItems:"center"},input:Kh(Qh({},e.fn.focusStyles()),{overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:a,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:xj}),width:e.fn.size({size:t,sizes:Nc}),minWidth:e.fn.size({size:t,sizes:Nc}),margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:Pj}),fontWeight:600,cursor:e.cursorType,"&::before":{zIndex:1,borderRadius:a,boxSizing:"border-box",content:'""',display:"block",backgroundColor:e.white,height:i,width:i,border:`1px solid ${e.colorScheme==="dark"?e.white:e.colors.gray[3]}`,transition:`transform 150ms ${e.transitionTimingFunction}`,transform:`translateX(${t==="xs"?1:2}px)`,"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":!1}},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,right:"10%",transform:"translateX(0)",content:o?`'${o}'`:"''",color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`},"&:checked":{backgroundColor:s.background,borderColor:s.background,"&::before":{transform:`translateX(${e.fn.size({size:t,sizes:Nc})-e.fn.size({size:t,sizes:qh})-(t==="xs"?3:4)}px)`,borderColor:e.white},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,left:"10%",transform:"translateX(0)",content:l?`'${l}'`:"''",color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`}},"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed","&::before":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],backgroundColor:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[0]}}}),label:Kh(Qh({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontFamily:e.fontFamily,paddingLeft:e.spacing.sm,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType})}});const bj=$j;var Oj=Object.defineProperty,Cj=Object.defineProperties,Ej=Object.getOwnPropertyDescriptors,Ns=Object.getOwnPropertySymbols,Kx=Object.prototype.hasOwnProperty,qx=Object.prototype.propertyIsEnumerable,Zh=(e,t,r)=>t in e?Oj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zc=(e,t)=>{for(var r in t||(t={}))Kx.call(t,r)&&Zh(e,r,t[r]);if(Ns)for(var r of Ns(t))qx.call(t,r)&&Zh(e,r,t[r]);return e},kj=(e,t)=>Cj(e,Ej(t)),Rj=(e,t)=>{var r={};for(var n in e)Kx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ns)for(var n of Ns(e))t.indexOf(n)<0&&qx.call(e,n)&&(r[n]=e[n]);return r};const Ij={offLabel:"",onLabel:"",size:"sm",radius:"xl"},Dp=g.forwardRef((e,t)=>{const r=ee("Switch",Ij,e),{className:n,color:o,label:l,offLabel:i,onLabel:a,id:s,style:u,size:c,radius:f,wrapperProps:d,children:p,unstyled:h,styles:m,classNames:_,sx:v}=r,y=Rj(r,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","sx"]),{classes:w,cx:x}=bj({size:c,color:o,radius:f,offLabel:i,onLabel:a},{unstyled:h,styles:m,classNames:_,name:"Switch"}),{systemStyles:b,rest:$}=xu(y),O=xo(s);return S.createElement(Y,zc(zc({className:x(w.root,n),style:u,sx:v},b),d),S.createElement("input",kj(zc({},$),{id:O,ref:t,type:"checkbox",className:w.input})),l&&S.createElement("label",{className:w.label,htmlFor:O},l))});Dp.displayName="@mantine/core/Switch";var jj=Object.defineProperty,Nj=Object.defineProperties,zj=Object.getOwnPropertyDescriptors,Jh=Object.getOwnPropertySymbols,Dj=Object.prototype.hasOwnProperty,Tj=Object.prototype.propertyIsEnumerable,e0=(e,t,r)=>t in e?jj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lj=(e,t)=>{for(var r in t||(t={}))Dj.call(t,r)&&e0(e,r,t[r]);if(Jh)for(var r of Jh(t))Tj.call(t,r)&&e0(e,r,t[r]);return e},Mj=(e,t)=>Nj(e,zj(t)),Fj=Q((e,{captionSide:t,horizontalSpacing:r,verticalSpacing:n,fontSize:o})=>({root:Mj(Lj({},e.fn.fontStyles()),{width:"100%",borderCollapse:"collapse",captionSide:t,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,"& caption":{marginTop:t==="top"?0:e.spacing.xs,marginBottom:t==="bottom"?0:e.spacing.xs,fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]},"& thead tr th, & tfoot tr th":{textAlign:"left",fontWeight:"bold",color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[7],fontSize:e.fn.size({size:o,sizes:e.fontSizes}),padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`},"& thead tr th":{borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tfoot tr th":{borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tbody tr td":{padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`,borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,fontSize:e.fn.size({size:o,sizes:e.fontSizes})},"& tbody tr:last-of-type td":{borderBottom:"none"},"&[data-striped] tbody tr:nth-of-type(odd)":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]},"&[data-hover] tbody tr":e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1]})})}));const Aj=Fj;var Vj=Object.defineProperty,Hj=Object.defineProperties,Bj=Object.getOwnPropertyDescriptors,zs=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Jx=Object.prototype.propertyIsEnumerable,t0=(e,t,r)=>t in e?Vj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wj=(e,t)=>{for(var r in t||(t={}))Zx.call(t,r)&&t0(e,r,t[r]);if(zs)for(var r of zs(t))Jx.call(t,r)&&t0(e,r,t[r]);return e},Uj=(e,t)=>Hj(e,Bj(t)),Gj=(e,t)=>{var r={};for(var n in e)Zx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zs)for(var n of zs(e))t.indexOf(n)<0&&Jx.call(e,n)&&(r[n]=e[n]);return r};const Yj={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7},eP=g.forwardRef((e,t)=>{const r=ee("Table",Yj,e),{className:n,children:o,striped:l,highlightOnHover:i,captionSide:a,horizontalSpacing:s,verticalSpacing:u,fontSize:c,unstyled:f}=r,d=Gj(r,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled"]),{classes:p,cx:h}=Aj({captionSide:a,verticalSpacing:u,horizontalSpacing:s,fontSize:c},{unstyled:f,name:"Table"});return S.createElement(Y,Uj(Wj({},d),{component:"table",ref:t,className:h(p.root,n),"data-striped":l||void 0,"data-hover":i||void 0}),o)});eP.displayName="@mantine/core/Table";const Zf={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[Xj,Tp]=up(Zf.context);var Qj=Object.defineProperty,r0=Object.getOwnPropertySymbols,Kj=Object.prototype.hasOwnProperty,qj=Object.prototype.propertyIsEnumerable,n0=(e,t,r)=>t in e?Qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zj=(e,t)=>{for(var r in t||(t={}))Kj.call(t,r)&&n0(e,r,t[r]);if(r0)for(var r of r0(t))qj.call(t,r)&&n0(e,r,t[r]);return e};function Jj({variant:e,orientation:t,inverted:r},n){const o=t==="vertical";return e==="default"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`2px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="outline"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`1px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="pills"?{gap:n.spacing.sm/2}:{}}var eN=Q((e,t)=>{const r=t.orientation==="vertical";return{tabsList:Zj({display:"flex",flexDirection:r?"column":"row",justifyContent:HS[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},Jj(t,e))}});const tN=eN;var rN=Object.defineProperty,nN=Object.defineProperties,oN=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,tP=Object.prototype.hasOwnProperty,rP=Object.prototype.propertyIsEnumerable,o0=(e,t,r)=>t in e?rN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lN=(e,t)=>{for(var r in t||(t={}))tP.call(t,r)&&o0(e,r,t[r]);if(Ds)for(var r of Ds(t))rP.call(t,r)&&o0(e,r,t[r]);return e},iN=(e,t)=>nN(e,oN(t)),aN=(e,t)=>{var r={};for(var n in e)tP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ds)for(var n of Ds(e))t.indexOf(n)<0&&rP.call(e,n)&&(r[n]=e[n]);return r};const nP=g.forwardRef((e,t)=>{var r=e,{children:n,className:o,grow:l=!1,position:i="left"}=r,a=aN(r,["children","className","grow","position"]);const{orientation:s,variant:u,color:c,radius:f,inverted:d}=Tp(),{classNames:p,styles:h,unstyled:m}=Cn(),{classes:_,cx:v}=tN({orientation:s,grow:l,variant:u,color:c,position:i,radius:f,inverted:d},{name:"Tabs",unstyled:m,classNames:p,styles:h});return S.createElement(Y,iN(lN({},a),{className:v(_.tabsList,o),ref:t,role:"tablist","aria-orientation":s}),n)});nP.displayName="@mantine/core/TabsList";var sN=Q((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}}));const uN=sN;var cN=Object.defineProperty,fN=Object.defineProperties,dN=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,oP=Object.prototype.hasOwnProperty,lP=Object.prototype.propertyIsEnumerable,l0=(e,t,r)=>t in e?cN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pN=(e,t)=>{for(var r in t||(t={}))oP.call(t,r)&&l0(e,r,t[r]);if(Ts)for(var r of Ts(t))lP.call(t,r)&&l0(e,r,t[r]);return e},gN=(e,t)=>fN(e,dN(t)),mN=(e,t)=>{var r={};for(var n in e)oP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ts)for(var n of Ts(e))t.indexOf(n)<0&&lP.call(e,n)&&(r[n]=e[n]);return r};const iP=g.forwardRef((e,t)=>{var r=e,{value:n,children:o,sx:l,className:i}=r,a=mN(r,["value","children","sx","className"]);const s=Tp(),{classNames:u,styles:c,unstyled:f}=Cn(),{classes:d,cx:p}=uN({orientation:s.orientation,variant:s.variant,color:s.color,radius:s.radius,inverted:s.inverted},{name:"Tabs",unstyled:f,classNames:u,styles:c});return S.createElement(Y,gN(pN({},a),{ref:t,sx:[{display:s.value!==n?"none":void 0},...Il(l)],className:p(d.panel,i),role:"tabpanel",id:s.getPanelId(n),"aria-labelledby":s.getTabId(n)}),o)});iP.displayName="@mantine/core/TabsPanel";var vN=Object.defineProperty,hN=Object.defineProperties,yN=Object.getOwnPropertyDescriptors,i0=Object.getOwnPropertySymbols,wN=Object.prototype.hasOwnProperty,_N=Object.prototype.propertyIsEnumerable,a0=(e,t,r)=>t in e?vN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qn=(e,t)=>{for(var r in t||(t={}))wN.call(t,r)&&a0(e,r,t[r]);if(i0)for(var r of i0(t))_N.call(t,r)&&a0(e,r,t[r]);return e},s0=(e,t)=>hN(e,yN(t));function SN(e,{variant:t,orientation:r,color:n,radius:o,inverted:l}){const i=r==="vertical",a=e.fn.variant({color:n,variant:"filled"}),s=e.fn.radius(o),u=r==="vertical"?`${s}px 0 0 ${s}px`:l?`0 0 ${s}px ${s}px`:`${s}px ${s}px 0 0`;return t==="default"?s0(qn({[i?"borderRight":l?"borderTop":"borderBottom"]:"2px solid transparent",[i?"marginRight":l?"marginTop":"marginBottom"]:-2,borderRadius:u},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":qn({borderColor:a.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:a.background}))}):t==="outline"?{borderRadius:u,border:"1px solid transparent",[i?"borderRight":l?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:i?0:l?"unset":-1,top:i?0:l?-1:"unset",[i?"width":"height"]:1,right:i?-1:0,left:i?"unset":0}}}:t==="pills"?s0(qn({borderRadius:e.fn.radius(o)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":qn({backgroundColor:a.background,color:e.white},e.fn.hover({backgroundColor:a.background}))}):{}}var xN=Q((e,t)=>({tabLabel:{},tab:qn({position:"relative",padding:`${e.spacing.xs}px ${e.spacing.md}px`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":qn({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},SN(e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:7}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:7}}}));const PN=xN;var $N=Object.defineProperty,bN=Object.defineProperties,ON=Object.getOwnPropertyDescriptors,Ls=Object.getOwnPropertySymbols,aP=Object.prototype.hasOwnProperty,sP=Object.prototype.propertyIsEnumerable,u0=(e,t,r)=>t in e?$N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CN=(e,t)=>{for(var r in t||(t={}))aP.call(t,r)&&u0(e,r,t[r]);if(Ls)for(var r of Ls(t))sP.call(t,r)&&u0(e,r,t[r]);return e},EN=(e,t)=>bN(e,ON(t)),kN=(e,t)=>{var r={};for(var n in e)aP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ls)for(var n of Ls(e))t.indexOf(n)<0&&sP.call(e,n)&&(r[n]=e[n]);return r};const uP=g.forwardRef((e,t)=>{var r=e,{value:n,children:o,onKeyDown:l,onClick:i,className:a,icon:s,rightSection:u,color:c}=r,f=kN(r,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]);const d=Tp(),{classNames:p,styles:h,unstyled:m}=Cn(),_=!!s,v=!!u,{theme:y,classes:w,cx:x}=PN({withIcon:_||v&&!o,withRightSection:v||_&&!o,orientation:d.orientation,color:c||d.color,variant:d.variant,radius:d.radius,inverted:d.inverted},{name:"Tabs",unstyled:m,classNames:p,styles:h}),b=n===d.value,$=O=>{d.onTabChange(d.allowTabDeactivation&&n===d.value?null:n),i?.(O)};return S.createElement(Pu,EN(CN({},f),{unstyled:m,className:x(w.tab,a),"data-active":b||void 0,ref:t,type:"button",role:"tab",id:d.getTabId(n),"aria-selected":b,tabIndex:b||d.value===null?0:-1,"aria-controls":d.getPanelId(n),onClick:$,onKeyDown:iw({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:d.activateTabWithKeyboard,loop:d.loop,dir:y.dir,orientation:d.orientation,onKeyDown:l})}),s&&S.createElement("div",{className:w.tabIcon},s),o&&S.createElement("div",{className:w.tabLabel},o),u&&S.createElement("div",{className:w.tabRightSection},u))});uP.displayName="@mantine/core/Tab";function cP({defaultValue:e,value:t,onTabChange:r,orientation:n,children:o,loop:l,id:i,activateTabWithKeyboard:a,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}){const p=xo(i),[h,m]=Gl({value:t,defaultValue:e,finalValue:null,onChange:r});return S.createElement(Xj,{value:{value:h,orientation:n,id:p,loop:l,activateTabWithKeyboard:a,getTabId:rm(`${p}-tab`,Zf.value),getPanelId:rm(`${p}-panel`,Zf.value),onTabChange:m,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}},o)}cP.displayName="@mantine/core/TabsProvider";var RN=Q((e,{orientation:t})=>({root:{display:t==="vertical"?"flex":void 0}}));const IN=RN;var jN=Object.defineProperty,NN=Object.defineProperties,zN=Object.getOwnPropertyDescriptors,Ms=Object.getOwnPropertySymbols,fP=Object.prototype.hasOwnProperty,dP=Object.prototype.propertyIsEnumerable,c0=(e,t,r)=>t in e?jN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DN=(e,t)=>{for(var r in t||(t={}))fP.call(t,r)&&c0(e,r,t[r]);if(Ms)for(var r of Ms(t))dP.call(t,r)&&c0(e,r,t[r]);return e},TN=(e,t)=>NN(e,zN(t)),LN=(e,t)=>{var r={};for(var n in e)fP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ms)for(var n of Ms(e))t.indexOf(n)<0&&dP.call(e,n)&&(r[n]=e[n]);return r};const MN={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default"},it=g.forwardRef((e,t)=>{const r=ee("Tabs",MN,e),{defaultValue:n,value:o,orientation:l,loop:i,activateTabWithKeyboard:a,allowTabDeactivation:s,children:u,id:c,onTabChange:f,variant:d,color:p,className:h,unstyled:m,classNames:_,styles:v,radius:y,inverted:w}=r,x=LN(r,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted"]),{classes:b,cx:$}=IN({orientation:l,color:p,variant:d,radius:y,inverted:w},{unstyled:m,name:"Tabs",classNames:_,styles:v});return S.createElement(Rw,{classNames:_,styles:v,unstyled:m},S.createElement(cP,{activateTabWithKeyboard:a,defaultValue:n,orientation:l,onTabChange:f,value:o,id:c,loop:i,allowTabDeactivation:s,color:p,variant:d,radius:y,inverted:w},S.createElement(Y,TN(DN({},x),{className:$(b.root,h),id:c,ref:t}),u)))});it.List=nP;it.Tab=uP;it.Panel=iP;it.displayName="@mantine/core/Tabs";var FN=Object.defineProperty,AN=Object.defineProperties,VN=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,HN=Object.prototype.hasOwnProperty,BN=Object.prototype.propertyIsEnumerable,d0=(e,t,r)=>t in e?FN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WN=(e,t)=>{for(var r in t||(t={}))HN.call(t,r)&&d0(e,r,t[r]);if(f0)for(var r of f0(t))BN.call(t,r)&&d0(e,r,t[r]);return e},UN=(e,t)=>AN(e,VN(t));const GN={xs:16,sm:20,md:26,lg:32,xl:40};var YN=Q((e,{color:t,size:r,radius:n,gradient:o,variant:l})=>{const i=e.fn.variant({variant:l,color:t||e.primaryColor,gradient:o,primaryFallback:!1}),a=e.fn.size({size:r,sizes:GN});return{root:UN(WN({},e.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:a,height:a,minWidth:a,minHeight:a,borderRadius:e.fn.radius(n),backgroundColor:i.background,color:i.color,backgroundImage:l==="gradient"?i.background:void 0,border:`${l==="gradient"?0:1}px solid ${i.border}`})}});const XN=YN;var QN=Object.defineProperty,Fs=Object.getOwnPropertySymbols,pP=Object.prototype.hasOwnProperty,gP=Object.prototype.propertyIsEnumerable,p0=(e,t,r)=>t in e?QN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KN=(e,t)=>{for(var r in t||(t={}))pP.call(t,r)&&p0(e,r,t[r]);if(Fs)for(var r of Fs(t))gP.call(t,r)&&p0(e,r,t[r]);return e},qN=(e,t)=>{var r={};for(var n in e)pP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fs)for(var n of Fs(e))t.indexOf(n)<0&&gP.call(e,n)&&(r[n]=e[n]);return r};const ZN={size:"md",variant:"filled",gradient:{from:"blue",to:"cyan",deg:45}},Jf=g.forwardRef((e,t)=>{const r=ee("ThemeIcon",ZN,e),{className:n,size:o,radius:l,variant:i,color:a,children:s,gradient:u,unstyled:c}=r,f=qN(r,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:d,cx:p}=XN({variant:i,radius:l,color:a,size:o,gradient:u},{name:"ThemeIcon",unstyled:c});return S.createElement(Y,KN({className:p(d.root,n),ref:t},f),s)});Jf.displayName="@mantine/core/ThemeIcon";const mP=g.createContext(!1),JN=mP.Provider,ez=()=>g.useContext(mP);function vP({children:e,openDelay:t=0,closeDelay:r=0}){return S.createElement(JN,{value:!0},S.createElement(L5,{delay:{open:t,close:r}},e))}vP.displayName="@mantine/core/TooltipGroup";var tz=Object.defineProperty,rz=Object.defineProperties,nz=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,oz=Object.prototype.hasOwnProperty,lz=Object.prototype.propertyIsEnumerable,m0=(e,t,r)=>t in e?tz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v0=(e,t)=>{for(var r in t||(t={}))oz.call(t,r)&&m0(e,r,t[r]);if(g0)for(var r of g0(t))lz.call(t,r)&&m0(e,r,t[r]);return e},iz=(e,t)=>rz(e,nz(t));function az(e,t){if(!t)return{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[9],color:e.white};const r=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:r.background,color:r.color}}var sz=Q((e,{color:t,radius:r,width:n,multiline:o})=>({tooltip:iz(v0(v0({},e.fn.fontStyles()),az(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(r),padding:`${e.spacing.xs/2}px ${e.spacing.xs}px`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}}));const hP=sz,yP={children:"Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};function uz({offset:e,position:t}){const[r,n]=g.useState(!1),o=g.useRef(),{x:l,y:i,reference:a,floating:s,refs:u,update:c,placement:f}=Ep({placement:t,middleware:[bp({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=f.includes("right")?e:t.includes("left")?e*-1:0,p=f.includes("bottom")?e:t.includes("top")?e*-1:0,h=g.useCallback(({clientX:m,clientY:_})=>{a({getBoundingClientRect(){return{width:0,height:0,x:m,y:_,left:m+d,top:_+p,right:m,bottom:_}}})},[a]);return g.useEffect(()=>{if(u.floating.current){const m=o.current;m.addEventListener("mousemove",h);const _=$n(u.floating.current);return _.forEach(v=>{v.addEventListener("scroll",c)}),()=>{m.removeEventListener("mousemove",h),_.forEach(v=>{v.removeEventListener("scroll",c)})}}},[a,u.floating,c,h,r]),{handleMouseMove:h,x:l,y:i,opened:r,setOpened:n,boundaryRef:o,floating:s}}var cz=Object.defineProperty,fz=Object.defineProperties,dz=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,wP=Object.prototype.hasOwnProperty,_P=Object.prototype.propertyIsEnumerable,h0=(e,t,r)=>t in e?cz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dc=(e,t)=>{for(var r in t||(t={}))wP.call(t,r)&&h0(e,r,t[r]);if(As)for(var r of As(t))_P.call(t,r)&&h0(e,r,t[r]);return e},Tc=(e,t)=>fz(e,dz(t)),pz=(e,t)=>{var r={};for(var n in e)wP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&As)for(var n of As(e))t.indexOf(n)<0&&_P.call(e,n)&&(r[n]=e[n]);return r};const gz={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:So("popover")};function SP(e){var t;const r=ee("TooltipFloating",gz,e),{children:n,refProp:o,withinPortal:l,style:i,className:a,classNames:s,styles:u,unstyled:c,radius:f,color:d,label:p,offset:h,position:m,multiline:_,width:v,zIndex:y,disabled:w}=r,x=pz(r,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:b,x:$,y:O,opened:C,boundaryRef:k,floating:I,setOpened:N}=uz({offset:h,position:m}),{classes:T,cx:B}=hP({radius:f,color:d,multiline:_,width:v},{name:"Tooltip",classNames:s,styles:u,unstyled:c});if(!Bl(n))throw new Error(yP.children);const K=En(k,n.ref),Z=oe=>{var j,z;(z=(j=n.props).onMouseEnter)==null||z.call(j,oe),b(oe),N(!0)},W=oe=>{var j,z;(z=(j=n.props).onMouseLeave)==null||z.call(j,oe),N(!1)};return S.createElement(S.Fragment,null,S.createElement(Yl,{withinPortal:l},S.createElement(Y,Tc(Dc({},x),{ref:I,className:B(T.tooltip,a),style:Tc(Dc({},i),{zIndex:y,display:C&&!w?"block":"none",top:O??"",left:(t=Math.round($))!=null?t:""})}),p)),g.cloneElement(n,Tc(Dc({},n.props),{[o]:K,onMouseEnter:Z,onMouseLeave:W})))}SP.displayName="@mantine/core/TooltipFloating";function mz(e){const[t,r]=g.useState(!1),o=typeof e.opened=="boolean"?e.opened:t,l=ez(),i=xo(),{delay:a,currentId:s,setCurrentId:u}=q_(),c=g.useCallback($=>{r($),$&&u(i)},[u,i]),{x:f,y:d,reference:p,floating:h,context:m,refs:_,update:v,placement:y}=Ep({placement:e.position,open:o,onOpenChange:c,middleware:[A_(e.offset),bp({padding:8}),F_()]}),{getReferenceProps:w,getFloatingProps:x}=N5([T5(m,{enabled:e.events.hover,delay:l?a:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),V5(m,{enabled:e.events.focus,keyboardOnly:!0}),F5(m,{role:"tooltip"}),A5(m,{enabled:typeof e.opened===void 0}),M5(m,{id:i})]);return Z_({opened:o,positionDependencies:e.positionDependencies,floating:{refs:_,update:v}}),Gr(()=>{var $;($=e.onPositionChange)==null||$.call(e,y)},[y]),{x:f,y:d,reference:p,floating:h,getFloatingProps:x,getReferenceProps:w,isGroupPhase:o&&s&&s!==i,opened:o,placement:y}}var vz=Object.defineProperty,hz=Object.defineProperties,yz=Object.getOwnPropertyDescriptors,Vs=Object.getOwnPropertySymbols,xP=Object.prototype.hasOwnProperty,PP=Object.prototype.propertyIsEnumerable,y0=(e,t,r)=>t in e?vz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xo=(e,t)=>{for(var r in t||(t={}))xP.call(t,r)&&y0(e,r,t[r]);if(Vs)for(var r of Vs(t))PP.call(t,r)&&y0(e,r,t[r]);return e},wz=(e,t)=>hz(e,yz(t)),_z=(e,t)=>{var r={};for(var n in e)xP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Vs)for(var n of Vs(e))t.indexOf(n)<0&&PP.call(e,n)&&(r[n]=e[n]);return r};const Sz={position:"top",refProp:"ref",withinPortal:!1,arrowSize:4,arrowOffset:5,offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:So("popover"),positionDependencies:[]},Du=g.forwardRef((e,t)=>{const r=ee("Tooltip",Sz,e),{children:n,position:o,refProp:l,label:i,openDelay:a,closeDelay:s,onPositionChange:u,opened:c,withinPortal:f,radius:d,color:p,classNames:h,styles:m,unstyled:_,style:v,className:y,withArrow:w,arrowSize:x,arrowOffset:b,offset:$,transition:O,transitionDuration:C,multiline:k,width:I,events:N,zIndex:T,disabled:B,positionDependencies:K,onClick:Z,onMouseEnter:W,onMouseLeave:oe}=r,j=_z(r,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave"]),{classes:z,cx:M,theme:A}=hP({radius:d,color:p,width:I,multiline:k},{name:"Tooltip",classNames:h,styles:m,unstyled:_}),G=mz({position:dS(A.dir,o),closeDelay:s,openDelay:a,onPositionChange:u,opened:c,events:N,offset:$+(w?x/2:0),positionDependencies:[...K,n]});if(!Bl(n))throw new Error(yP.children);const $e=En(G.reference,n.ref,t);return S.createElement(S.Fragment,null,S.createElement(Yl,{withinPortal:f},S.createElement(ju,{mounted:!B&&G.opened,transition:O,duration:G.isGroupPhase?10:C},R=>{var F,H;return S.createElement(Y,Xo(Xo({},j),G.getFloatingProps({ref:G.floating,className:z.tooltip,style:wz(Xo(Xo({},v),R),{zIndex:T,top:(F=G.y)!=null?F:"",left:(H=G.x)!=null?H:""})})),i,S.createElement(kp,{visible:w,withBorder:!1,position:G.placement,arrowSize:x,arrowOffset:b,className:z.arrow}))})),g.cloneElement(n,G.getReferenceProps(Xo({onClick:Z,onMouseEnter:W,onMouseLeave:oe,[l]:$e,className:M(y,n.props.className)},n.props))))});Du.Group=vP;Du.Floating=SP;Du.displayName="@mantine/core/Tooltip";const pt=Du;/** + * @remix-run/router v1.13.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 Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Pz(){return Math.random().toString(36).substr(2,8)}function _0(e,t){return{usr:e.state,key:e.key,idx:t}}function ed(e,t,r,n){return r===void 0&&(r=null),Ll({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rn(t):t,{state:r,key:t&&t.key||n||Pz()})}function $P(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Rn(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function $z(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:l=!1}=n,i=o.history,a=Rr.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(Ll({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function f(){a=Rr.Pop;let _=c(),v=_==null?null:_-u;u=_,s&&s({action:a,location:m.location,delta:v})}function d(_,v){a=Rr.Push;let y=ed(m.location,_,v);r&&r(y,_),u=c()+1;let w=_0(y,u),x=m.createHref(y);try{i.pushState(w,"",x)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(x)}l&&s&&s({action:a,location:m.location,delta:1})}function p(_,v){a=Rr.Replace;let y=ed(m.location,_,v);r&&r(y,_),u=c();let w=_0(y,u),x=m.createHref(y);i.replaceState(w,"",x),l&&s&&s({action:a,location:m.location,delta:0})}function h(_){let v=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof _=="string"?_:$P(_);return Ce(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let m={get action(){return a},get location(){return e(o,i)},listen(_){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(w0,f),s=_,()=>{o.removeEventListener(w0,f),s=null}},createHref(_){return t(o,_)},createURL:h,encodeLocation(_){let v=h(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(_){return i.go(_)}};return m}var S0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(S0||(S0={}));function bz(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Rn(t):t,o=CP(n.pathname||"/",r);if(o==null)return null;let l=bP(e);Oz(l);let i=null;for(let a=0;i==null&&a{let s={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};s.relativePath.startsWith("/")&&(Ce(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let u=yn([n,s.relativePath]),c=r.concat(s);l.children&&l.children.length>0&&(Ce(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bP(l.children,t,c,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:Nz(u,l.index),routesMeta:c})};return e.forEach((l,i)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))o(l,i);else for(let s of OP(l.path))o(l,i,s)}),t}function OP(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return o?[l,""]:[l];let i=OP(n.join("/")),a=[];return a.push(...i.map(s=>s===""?l:[l,s].join("/"))),o&&a.push(...i),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Oz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:zz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Cz=/^:\w+$/,Ez=3,kz=2,Rz=1,Iz=10,jz=-2,x0=e=>e==="*";function Nz(e,t){let r=e.split("/"),n=r.length;return r.some(x0)&&(n+=jz),t&&(n+=kz),r.filter(o=>!x0(o)).reduce((o,l)=>o+(Cz.test(l)?Ez:l===""?Rz:Iz),n)}function zz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Dz(e,t){let{routesMeta:r}=e,n={},o="/",l=[];for(let i=0;i{let{paramName:d,isOptional:p}=c;if(d==="*"){let m=a[f]||"";i=l.slice(0,l.length-m.length).replace(/(.)\/+$/,"$1")}const h=a[f];return p&&!h?u[d]=void 0:u[d]=Fz(h||"",d),u},{}),pathname:l,pathnameBase:i,pattern:e}}function Lz(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Tu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,a,s)=>(n.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Mz(e){try{return decodeURI(e)}catch(t){return Tu(!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 Fz(e,t){try{return decodeURIComponent(e)}catch(r){return Tu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function CP(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Az(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Rn(e):e;return{pathname:r?r.startsWith("/")?r:Vz(r,t):t,search:Gz(n),hash:Yz(o)}}function Vz(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Lc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Hz(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Bz(e){return Hz(e).map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)}function Wz(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Rn(e):(o=Ll({},e),Ce(!o.pathname||!o.pathname.includes("?"),Lc("?","pathname","search",o)),Ce(!o.pathname||!o.pathname.includes("#"),Lc("#","pathname","hash",o)),Ce(!o.search||!o.search.includes("#"),Lc("#","search","hash",o)));let l=e===""||o.pathname==="",i=l?"/":o.pathname,a;if(i==null)a=r;else if(n){let f=t[t.length-1].replace(/^\//,"").split("/");if(i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),f.pop();o.pathname=d.join("/")}a="/"+f.join("/")}else{let f=t.length-1;if(i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}a=f>=0?t[f]:"/"}let s=Az(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(l||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const yn=e=>e.join("/").replace(/\/\/+/g,"/"),Uz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Xz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const EP=["post","put","patch","delete"];new Set(EP);const Qz=["get",...EP];new Set(Qz);/** + * React Router v6.20.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 Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.current=!0}),g.useCallback(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){r.go(s);return}let c=Wz(s,JSON.parse(l),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:yn([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,l,o,e])}function Zz(e,t){return Jz(e,t)}function Jz(e,t,r){Fu()||Ce(!1);let{navigator:n}=g.useContext(Lu),{matches:o}=g.useContext(bo),l=o[o.length-1],i=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let s=Mp(),u;if(t){var c;let m=typeof t=="string"?Rn(t):t;a==="/"||(c=m.pathname)!=null&&c.startsWith(a)||Ce(!1),u=m}else u=s;let f=u.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",p=bz(e,{pathname:d}),h=oD(p&&p.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:yn([a,n.encodeLocation?n.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?a:yn([a,n.encodeLocation?n.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,r);return t&&h?g.createElement(Mu.Provider,{value:{location:Hs({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Rr.Pop}},h):h}function eD(){let e=sD(),t=Xz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},l=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:o},r):null,l)}const tD=g.createElement(eD,null);class rD extends g.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?g.createElement(bo.Provider,{value:this.props.routeContext},g.createElement(kP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nD(e){let{routeContext:t,match:r,children:n}=e,o=g.useContext(Lp);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(bo.Provider,{value:t},n)}function oD(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let l=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let a=l.findIndex(s=>s.route.id&&i?.[s.route.id]);a>=0||Ce(!1),l=l.slice(0,Math.min(l.length,a+1))}return l.reduceRight((a,s,u)=>{let c=s.route.id?i?.[s.route.id]:null,f=null;r&&(f=s.route.errorElement||tD);let d=t.concat(l.slice(0,u+1)),p=()=>{let h;return c?h=f:s.route.Component?h=g.createElement(s.route.Component,null):s.route.element?h=s.route.element:h=a,g.createElement(nD,{match:s,routeContext:{outlet:a,matches:d,isDataRoute:r!=null},children:h})};return r&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?g.createElement(rD,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:p(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):p()},null)}var IP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(IP||{}),Bs=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}(Bs||{});function lD(e){let t=g.useContext(Lp);return t||Ce(!1),t}function iD(e){let t=g.useContext(Kz);return t||Ce(!1),t}function aD(e){let t=g.useContext(bo);return t||Ce(!1),t}function jP(e){let t=aD(),r=t.matches[t.matches.length-1];return r.route.id||Ce(!1),r.route.id}function sD(){var e;let t=g.useContext(kP),r=iD(Bs.UseRouteError),n=jP(Bs.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function uD(){let{router:e}=lD(IP.UseNavigateStable),t=jP(Bs.UseNavigateStable),r=g.useRef(!1);return RP(()=>{r.current=!0}),g.useCallback(function(o,l){l===void 0&&(l={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Hs({fromRouteId:t},l)))},[e,t])}function or(e){Ce(!1)}function cD(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Rr.Pop,navigator:l,static:i=!1}=e;Fu()&&Ce(!1);let a=t.replace(/^\/*/,"/"),s=g.useMemo(()=>({basename:a,navigator:l,static:i}),[a,l,i]);typeof n=="string"&&(n=Rn(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:p="default"}=n,h=g.useMemo(()=>{let m=CP(u,a);return m==null?null:{location:{pathname:m,search:c,hash:f,state:d,key:p},navigationType:o}},[a,u,c,f,d,p,o]);return h==null?null:g.createElement(Lu.Provider,{value:s},g.createElement(Mu.Provider,{children:r,value:h}))}function NP(e){let{children:t,location:r}=e;return Zz(td(t),r)}new Promise(()=>{});function td(e,t){t===void 0&&(t=[]);let r=[];return g.Children.forEach(e,(n,o)=>{if(!g.isValidElement(n))return;let l=[...t,o];if(n.type===g.Fragment){r.push.apply(r,td(n.props.children,l));return}n.type!==or&&Ce(!1),!n.props.index||!n.props.children||Ce(!1);let i={id:n.props.id||l.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=td(n.props.children,l)),r.push(i)}),r}/** + * React Router DOM v6.20.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 + */const fD="startTransition",P0=na[fD];function dD(e){let{basename:t,children:r,future:n,window:o}=e,l=g.useRef();l.current==null&&(l.current=xz({window:o,v5Compat:!0}));let i=l.current,[a,s]=g.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=g.useCallback(f=>{u&&P0?P0(()=>s(f)):s(f)},[s,u]);return g.useLayoutEffect(()=>i.listen(c),[i,c]),g.createElement(cD,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:i})}var $0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($0||($0={}));var b0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(b0||(b0={}));const pD=()=>!window.invokeNative,zP=()=>{},zi=(e,t)=>{const r=g.useRef(zP);g.useEffect(()=>{r.current=t},[t]),g.useEffect(()=>{const n=o=>{const{action:l,data:i}=o.data;r.current&&l===e&&r.current(i)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e])};function gD(e){let t;const r=new Set,n=(u,c)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const d=t;t=c?f:Object.assign({},t,f),r.forEach(p=>p(t,d))}},o=()=>t,l=(u,c=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=c(t);function p(){const h=c(t);if(!f(d,h)){const m=d;u(d=h,m)}}return r.add(p),()=>r.delete(p)},s={setState:n,getState:o,subscribe:(u,c,f)=>c||f?l(u,c,f):(r.add(u),()=>r.delete(u)),destroy:()=>r.clear()};return t=e(n,o,s),s}const mD=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),O0=mD?g.useEffect:g.useLayoutEffect;function Oo(e){const t=typeof e=="function"?gD(e):e,r=(n=t.getState,o=Object.is)=>{const[,l]=g.useReducer(_=>_+1,0),i=t.getState(),a=g.useRef(i),s=g.useRef(n),u=g.useRef(o),c=g.useRef(!1),f=g.useRef();f.current===void 0&&(f.current=n(i));let d,p=!1;(a.current!==i||s.current!==n||u.current!==o||c.current)&&(d=n(i),p=!o(f.current,d)),O0(()=>{p&&(f.current=d),a.current=i,s.current=n,u.current=o,c.current=!1});const h=g.useRef(i);O0(()=>{const _=()=>{try{const y=t.getState(),w=s.current(y);u.current(f.current,w)||(a.current=y,f.current=w,l())}catch{c.current=!0,l()}},v=t.subscribe(_);return t.getState()!==h.current&&_(),v},[]);const m=p?d:f.current;return g.useDebugValue(m),m};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[r,t];return{next(){const o=n.length<=0;return{value:n.shift(),done:o}}}},r}const X=Oo(()=>({name:"",passcode:"",autolock:0,items:[{name:"",metadata:"",remove:!1}],characters:[""],groups:[{name:"",grade:void 0}],lockpickDifficulty:[""],maxDistance:0,doorRate:0,lockSound:"",unlockSound:"",auto:!1,state:!1,lockpick:!1,hideUi:!1,doors:!1,holdOpen:!1})),vD=X.getState(),Pe=Oo((e,t)=>({sounds:[""],setSounds:r=>e({sounds:r}),setLockSound:r=>X.setState({lockSound:r}),setUnlockSound:r=>X.setState({unlockSound:r}),setName:r=>X.setState({name:r}),setPasscode:r=>X.setState({passcode:r}),setAutolock:r=>X.setState({autolock:r}),toggleCheckbox:r=>X.setState(n=>({[r]:!n[r]})),setMaxDistance:r=>X.setState(()=>({maxDistance:r})),setItems:r=>X.setState(({items:n})=>({items:r(n)})),setCharacters:r=>X.setState(({characters:n})=>({characters:r(n)})),setGroups:r=>X.setState(({groups:n})=>({groups:r(n)})),setLockpickDifficulty:r=>X.setState(({lockpickDifficulty:n})=>({lockpickDifficulty:r(n)})),setDoorRate:r=>X.setState({doorRate:r})}));var DP={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},C0=S.createContext&&S.createContext(DP),Hr=function(){return Hr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({visible:!1,setVisible:t=>e({visible:t})}));async function Br(e,t){const r={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},n=window.GetParentResourceName?window.GetParentResourceName():"nui-frame-app";return await(await fetch(`https://${n}/${e}`,r)).json()}function kD(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const o=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(o)}},[e,t]),r}const rd=Oo(e=>({value:"",debouncedValue:"",setDebouncedValue:t=>e({debouncedValue:t}),setValue:t=>e({value:t})})),RD=()=>{const e=rd(),t=kD(e.value);return g.useEffect(()=>{e.setDebouncedValue(t)},[t]),P.jsx(P.Fragment,{children:P.jsx(Zr,{sx:{flex:"1 1 auto",padding:2},icon:P.jsx(MP,{size:20}),placeholder:"Search",value:e.value??"",onChange:r=>e.setValue(r.target.value)})})},ID=Q({main:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:16,paddingBottom:0}}),jD=()=>{const{classes:e}=ID(),t=ql(),r=Vu(n=>n.setVisible);return P.jsxs(qt,{className:e.main,children:[P.jsx(pt,{label:"Create a new door",transition:"pop",children:P.jsx(Ft,{variant:"light",color:"blue",size:"lg",onClick:()=>{X.setState(vD,!0),t("/settings/general")},children:P.jsx(LP,{size:20})})}),P.jsx(RD,{}),P.jsx($u,{iconSize:20,size:"lg",onClick:()=>{r(!1),Br("exit")}})]})};/** + * table-core + * + * Copyright (c) TanStack + * + * 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 Ir(e,t){return typeof e=="function"?e(t):e}function gt(e,t){return r=>{t.setState(n=>({...n,[e]:Ir(r,n[e])}))}}function Ws(e){return e instanceof Function}function ND(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function zD(e,t){const r=[],n=o=>{o.forEach(l=>{r.push(l);const i=t(l);i!=null&&i.length&&n(i)})};return n(e),r}function U(e,t,r){let n=[],o;return()=>{let l;r.key&&r.debug&&(l=Date.now());const i=e();if(!(i.length!==n.length||i.some((u,c)=>n[c]!==u)))return o;n=i;let s;if(r.key&&r.debug&&(s=Date.now()),o=t(...i),r==null||r.onChange==null||r.onChange(o),r.key&&r.debug&&r!=null&&r.debug()){const u=Math.round((Date.now()-l)*100)/100,c=Math.round((Date.now()-s)*100)/100,f=c/16,d=(p,h)=>{for(p=String(p);p.length{let p=d;for(const m of s.split(".")){var h;p=(h=p)==null?void 0:h[m]}return p}:c=d=>d[a.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:a,columns:[],getFlatColumns:U(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(p=>p.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:U(()=>[e._getOrderColumnsFn()],d=>{var p;if((p=f.columns)!=null&&p.length){let h=f.columns.flatMap(m=>m.getLeafColumns());return d(h)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}function E0(e,t,r){var n;let l={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],a=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(a),i.push(s)};return a(l),i},getContext:()=>({table:e,header:l,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(l,e)}),l}const TD={createTable:e=>{e.getHeaderGroups=U(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>{var l,i;const a=(l=n?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?l:[],s=(i=o?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?i:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(o!=null&&o.includes(f.id)));return Di(t,[...a,...u,...s],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=U(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>(r=r.filter(l=>!(n!=null&&n.includes(l.id))&&!(o!=null&&o.includes(l.id))),Di(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=U(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var o;const l=(o=n?.map(i=>r.find(a=>a.id===i)).filter(Boolean))!=null?o:[];return Di(t,l,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=U(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var o;const l=(o=n?.map(i=>r.find(a=>a.id===i)).filter(Boolean))!=null?o:[];return Di(t,l,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=U(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=U(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=U(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=U(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=U(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=U(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=U(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=U(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=U(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=U(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=U(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=U(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var o,l,i,a,s,u;return[...(o=(l=t[0])==null?void 0:l.headers)!=null?o:[],...(i=(a=r[0])==null?void 0:a.headers)!=null?i:[],...(s=(u=n[0])==null?void 0:u.headers)!=null?s:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function Di(e,t,r,n){var o,l;let i=0;const a=function(d,p){p===void 0&&(p=1),i=Math.max(i,p),d.filter(h=>h.getIsVisible()).forEach(h=>{var m;(m=h.columns)!=null&&m.length&&a(h.columns,p+1)},0)};a(e);let s=[];const u=(d,p)=>{const h={depth:p,id:[n,`${p}`].filter(Boolean).join("_"),headers:[]},m=[];d.forEach(_=>{const v=[...m].reverse()[0],y=_.column.depth===h.depth;let w,x=!1;if(y&&_.column.parent?w=_.column.parent:(w=_.column,x=!0),v&&v?.column===w)v.subHeaders.push(_);else{const b=E0(r,w,{id:[n,p,w.id,_?.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${m.filter($=>$.column===w).length}`:void 0,depth:p,index:m.length});b.subHeaders.push(_),m.push(b)}h.headers.push(_),_.headerGroup=h}),s.push(h),p>0&&u(m,p-1)},c=t.map((d,p)=>E0(r,d,{depth:i,index:p}));u(c,i-1),s.reverse();const f=d=>d.filter(h=>h.column.getIsVisible()).map(h=>{let m=0,_=0,v=[0];h.subHeaders&&h.subHeaders.length?(v=[],f(h.subHeaders).forEach(w=>{let{colSpan:x,rowSpan:b}=w;m+=x,v.push(b)})):m=1;const y=Math.min(...v);return _=_+y,h.colSpan=m,h.rowSpan=_,{colSpan:m,rowSpan:_}});return f((o=(l=s[0])==null?void 0:l.headers)!=null?o:[]),s}const Ti={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Mc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),LD={getDefaultColumnDef:()=>Ti,getInitialState:e=>({columnSizing:{},columnSizingInfo:Mc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:gt("columnSizing",e),onColumnSizingInfoChange:gt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,o;const l=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:Ti.minSize,(n=l??e.columnDef.size)!=null?n:Ti.size),(o=e.columnDef.maxSize)!=null?o:Ti.maxSize)},e.getStart=r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=n.findIndex(l=>l.id===e.id);if(o>0){const l=n[o-1];return l.getStart(r)+l.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...o}=r;return o})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=o=>{if(o.subHeaders.length)o.subHeaders.forEach(n);else{var l;r+=(l=o.column.getSize())!=null?l:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=()=>{const r=t.getColumn(e.column.id),n=r?.getCanResize();return o=>{if(!r||!n||(o.persist==null||o.persist(),Fc(o)&&o.touches&&o.touches.length>1))return;const l=e.getSize(),i=e?e.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[r.id,r.getSize()]],a=Fc(o)?Math.round(o.touches[0].clientX):o.clientX,s={},u=(m,_)=>{typeof _=="number"&&(t.setColumnSizingInfo(v=>{var y,w;const x=_-((y=v?.startOffset)!=null?y:0),b=Math.max(x/((w=v?.startSize)!=null?w:0),-.999999);return v.columnSizingStart.forEach($=>{let[O,C]=$;s[O]=Math.round(Math.max(C+C*b,0)*100)/100}),{...v,deltaOffset:x,deltaPercentage:b}}),(t.options.columnResizeMode==="onChange"||m==="end")&&t.setColumnSizing(v=>({...v,...s})))},c=m=>u("move",m),f=m=>{u("end",m),t.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d={moveHandler:m=>c(m.clientX),upHandler:m=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),f(m.clientX)}},p={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),c(m.touches[0].clientX),!1),upHandler:m=>{var _;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),f((_=m.touches[0])==null?void 0:_.clientX)}},h=MD()?{passive:!1}:!1;Fc(o)?(document.addEventListener("touchmove",p.moveHandler,h),document.addEventListener("touchend",p.upHandler,h)):(document.addEventListener("mousemove",d.moveHandler,h),document.addEventListener("mouseup",d.upHandler,h)),t.setColumnSizingInfo(m=>({...m,startOffset:a,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?Mc():(r=e.initialState.columnSizingInfo)!=null?r:Mc())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0}}};let Li=null;function MD(){if(typeof Li=="boolean")return Li;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Li=e,Li}function Fc(e){return e.type==="touchstart"}const FD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:gt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var o,l;e.setExpanded(n?{}:(o=(l=e.initialState)==null?void 0:l.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(l=>{const i=l.split(".");n=Math.max(n,i.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var o;const l=n===!0?!0:!!(n!=null&&n[e.id]);let i={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{i[a]=!0}):i=n,r=(o=r)!=null?o:!l,!l&&r)return{...i,[e.id]:!0};if(l&&!r){const{[e.id]:a,...s}=i;return s}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},e.getCanExpand=()=>{var r,n,o;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},FP=(e,t,r)=>{var n;const o=r.toLowerCase();return!!(!((n=e.getValue(t))==null||(n=n.toString())==null||(n=n.toLowerCase())==null)&&n.includes(o))};FP.autoRemove=e=>Lt(e);const AP=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};AP.autoRemove=e=>Lt(e);const VP=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===r?.toLowerCase()};VP.autoRemove=e=>Lt(e);const HP=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};HP.autoRemove=e=>Lt(e)||!(e!=null&&e.length);const BP=(e,t,r)=>!r.some(n=>{var o;return!((o=e.getValue(t))!=null&&o.includes(n))});BP.autoRemove=e=>Lt(e)||!(e!=null&&e.length);const WP=(e,t,r)=>r.some(n=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)});WP.autoRemove=e=>Lt(e)||!(e!=null&&e.length);const UP=(e,t,r)=>e.getValue(t)===r;UP.autoRemove=e=>Lt(e);const GP=(e,t,r)=>e.getValue(t)==r;GP.autoRemove=e=>Lt(e);const Fp=(e,t,r)=>{let[n,o]=r;const l=e.getValue(t);return l>=n&&l<=o};Fp.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,o=typeof r!="number"?parseFloat(r):r,l=t===null||Number.isNaN(n)?-1/0:n,i=r===null||Number.isNaN(o)?1/0:o;if(l>i){const a=l;l=i,i=a}return[l,i]};Fp.autoRemove=e=>Lt(e)||Lt(e[0])&&Lt(e[1]);const er={includesString:FP,includesStringSensitive:AP,equalsString:VP,arrIncludes:HP,arrIncludesAll:BP,arrIncludesSome:WP,equals:UP,weakEquals:GP,inNumberRange:Fp};function Lt(e){return e==null||e===""}const AD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:gt("columnFilters",e),onGlobalFilterChange:gt("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?er.includesString:typeof n=="number"?er.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?er.equals:Array.isArray(n)?er.arrIncludes:er.weakEquals},e.getFilterFn=()=>{var r,n;return Ws(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:er[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,o;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var r,n,o,l;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((l=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const o=e.getFilterFn(),l=n?.find(c=>c.id===e.id),i=Ir(r,l?l.value:void 0);if(k0(o,i,e)){var a;return(a=n?.filter(c=>c.id!==e.id))!=null?a:[]}const s={id:e.id,value:i};if(l){var u;return(u=n?.map(c=>c.id===e.id?s:c))!=null?u:[]}return n!=null&&n.length?[...n,s]:[s]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>er.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return Ws(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:er[n]},e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=o=>{var l;return(l=Ir(t,o))==null?void 0:l.filter(i=>{const a=r.find(s=>s.id===i.id);if(a){const s=a.getFilterFn();if(k0(s,i.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function k0(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const VD=(e,t,r)=>r.reduce((n,o)=>{const l=o.getValue(e);return n+(typeof l=="number"?l:0)},0),HD=(e,t,r)=>{let n;return r.forEach(o=>{const l=o.getValue(e);l!=null&&(n>l||n===void 0&&l>=l)&&(n=l)}),n},BD=(e,t,r)=>{let n;return r.forEach(o=>{const l=o.getValue(e);l!=null&&(n=l)&&(n=l)}),n},WD=(e,t,r)=>{let n,o;return r.forEach(l=>{const i=l.getValue(e);i!=null&&(n===void 0?i>=i&&(n=o=i):(n>i&&(n=i),o{let r=0,n=0;if(t.forEach(o=>{let l=o.getValue(e);l!=null&&(l=+l)>=l&&(++r,n+=l)}),r)return n/r},GD=(e,t)=>{if(!t.length)return;const r=t.map(l=>l.getValue(e));if(!ND(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),o=r.sort((l,i)=>l-i);return r.length%2!==0?o[n]:(o[n-1]+o[n])/2},YD=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),XD=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,QD=(e,t)=>t.length,Ac={sum:VD,min:HD,max:BD,extent:WD,mean:UD,median:GD,unique:YD,uniqueCount:XD,count:QD},KD={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:gt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n,o,l;return(r=(n=(o=(l=e.columnDef.enableGrouping)!=null?l:!0)!=null?o:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return Ac.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Ac.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Ws(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:Ac[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=r.subRows)!=null&&o.length)}}};function qD(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(l=>!t.includes(l.id));return r==="remove"?n:[...t.map(l=>e.find(i=>i.id===l)).filter(Boolean),...n]}const ZD={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:gt("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=U(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>o=>{let l=[];if(!(t!=null&&t.length))l=o;else{const i=[...t],a=[...o];for(;a.length&&i.length;){const s=i.shift(),u=a.findIndex(c=>c.id===s);u>-1&&l.push(a.splice(u,1)[0])}l=[...l,...a]}return qD(l,r,n)},{key:!1})}},nd=0,od=10,Vc=()=>({pageIndex:nd,pageSize:od}),JD={getInitialState:e=>({...e,pagination:{...Vc(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:gt("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const o=l=>Ir(n,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=n=>{var o;e.setPagination(n?Vc():(o=e.initialState.pagination)!=null?o:Vc())},e.setPageIndex=n=>{e.setPagination(o=>{let l=Ir(n,o.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...o,pageIndex:l}})},e.resetPageIndex=n=>{var o,l;e.setPageIndex(n?nd:(o=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?o:nd)},e.resetPageSize=n=>{var o,l;e.setPageSize(n?od:(o=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?o:od)},e.setPageSize=n=>{e.setPagination(o=>{const l=Math.max(1,Ir(n,o.pageSize)),i=o.pageSize*o.pageIndex,a=Math.floor(i/l);return{...o,pageIndex:a,pageSize:l}})},e.setPageCount=n=>e.setPagination(o=>{var l;let i=Ir(n,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...o,pageCount:i}}),e.getPageOptions=U(()=>[e.getPageCount()],n=>{let o=[];return n&&n>0&&(o=[...new Array(n)].fill(null).map((l,i)=>i)),o},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:ne.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},Hc=()=>({left:[],right:[]}),Bc=()=>({top:[],bottom:[]}),e7={getInitialState:e=>({columnPinning:Hc(),rowPinning:Bc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:gt("columnPinning",e),onRowPinningChange:gt("rowPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var l,i;if(r==="right"){var a,s;return{left:((a=o?.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((s=o?.right)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=o?.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=o?.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((l=o?.left)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),right:((i=o?.right)!=null?i:[]).filter(f=>!(n!=null&&n.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var o,l,i;return((o=n.columnDef.enablePinning)!=null?o:!0)&&((l=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?l:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(a=>a.id),{left:n,right:o}=t.getState().columnPinning,l=r.some(a=>n?.includes(a)),i=r.some(a=>o?.includes(a));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var r,n;const o=e.getIsPinned();return o?(r=(n=t.getState().columnPinning)==null||(n=n[o])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.pin=(r,n,o)=>{const l=n?e.getLeafRows().map(s=>{let{id:u}=s;return u}):[],i=o?e.getParentRows().map(s=>{let{id:u}=s;return u}):[],a=new Set([...i,e.id,...l]);t.setRowPinning(s=>{var u,c;if(r==="bottom"){var f,d;return{top:((f=s?.top)!=null?f:[]).filter(m=>!(a!=null&&a.has(m))),bottom:[...((d=s?.bottom)!=null?d:[]).filter(m=>!(a!=null&&a.has(m))),...Array.from(a)]}}if(r==="top"){var p,h;return{top:[...((p=s?.top)!=null?p:[]).filter(m=>!(a!=null&&a.has(m))),...Array.from(a)],bottom:((h=s?.bottom)!=null?h:[]).filter(m=>!(a!=null&&a.has(m)))}}return{top:((u=s?.top)!=null?u:[]).filter(m=>!(a!=null&&a.has(m))),bottom:((c=s?.bottom)!=null?c:[]).filter(m=>!(a!=null&&a.has(m)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:o}=t.options;return typeof n=="function"?n(e):(r=n??o)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:o}=t.getState().rowPinning,l=r.some(a=>n?.includes(a)),i=r.some(a=>o?.includes(a));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const o=e.getIsPinned();if(!o)return-1;const l=(r=t._getPinnedRows(o))==null?void 0:r.map(i=>{let{id:a}=i;return a});return(n=l?.indexOf(e.id))!=null?n:-1},e.getCenterVisibleCells=U(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,o)=>{const l=[...n??[],...o??[]];return r.filter(i=>!l.includes(i.column.id))},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),e.getLeftVisibleCells=U(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(l=>r.find(i=>i.column.id===l)).filter(Boolean).map(l=>({...l,position:"left"})),{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),e.getRightVisibleCells=U(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(l=>r.find(i=>i.column.id===l)).filter(Boolean).map(l=>({...l,position:"right"})),{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?Hc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:Hc())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var o,l;return!!((o=n.left)!=null&&o.length||(l=n.right)!=null&&l.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=U(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=U(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=U(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const o=[...r??[],...n??[]];return t.filter(l=>!o.includes(l.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?Bc():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:Bc())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var o,l;return!!((o=n.top)!=null&&o.length||(l=n.bottom)!=null&&l.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=t=>U(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(r,n)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(i=>{const a=e.getRow(i,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(i=>r.find(a=>a.id===i))).filter(Boolean).map(i=>({...i,position:t}))},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=U(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const o=new Set([...r??[],...n??[]]);return t.filter(l=>!o.has(l.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},t7={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:gt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(l=>{l.getCanSelect()&&(n[l.id]=!0)}):o.forEach(l=>{delete n[l.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...r};return e.getRowModel().rows.forEach(l=>{ld(o,l.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=U(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?Wc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=U(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?Wc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=U(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?Wc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(o=>o.getCanSelect()&&!r[o.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(o=>!r[o.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const o=e.getIsSelected();t.setRowSelection(l=>{var i;if(r=typeof r<"u"?r:!o,e.getCanSelect()&&o===r)return l;const a={...l};return ld(a,e.id,r,(i=n?.selectChildren)!=null?i:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return Ap(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return id(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return id(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var o;r&&e.toggleSelected((o=n.target)==null?void 0:o.checked)}}}},ld=(e,t,r,n,o)=>{var l;const i=o.getRow(t);r?(i.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),i.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(a=>ld(e,a.id,r,n,o))};function Wc(e,t){const r=e.getState().rowSelection,n=[],o={},l=function(i,a){return i.map(s=>{var u;const c=Ap(s,r);if(c&&(n.push(s),o[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:l(s.subRows)}),c)return s}).filter(Boolean)};return{rows:l(t.rows),flatRows:n,rowsById:o}}function Ap(e,t){var r;return(r=t[e.id])!=null?r:!1}function id(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let o=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!o)&&(i.getCanSelect()&&(Ap(i,t)?l=!0:o=!1),i.subRows&&i.subRows.length)){const a=id(i,t);a==="all"?l=!0:(a==="some"&&(l=!0),o=!1)}}),o?"all":l?"some":!1}const ad=/([0-9]+)/gm,r7=(e,t,r)=>YP(Xr(e.getValue(r)).toLowerCase(),Xr(t.getValue(r)).toLowerCase()),n7=(e,t,r)=>YP(Xr(e.getValue(r)),Xr(t.getValue(r))),o7=(e,t,r)=>Vp(Xr(e.getValue(r)).toLowerCase(),Xr(t.getValue(r)).toLowerCase()),l7=(e,t,r)=>Vp(Xr(e.getValue(r)),Xr(t.getValue(r))),i7=(e,t,r)=>{const n=e.getValue(r),o=t.getValue(r);return n>o?1:nVp(e.getValue(r),t.getValue(r));function Vp(e,t){return e===t?0:e>t?1:-1}function Xr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function YP(e,t){const r=e.split(ad).filter(Boolean),n=t.split(ad).filter(Boolean);for(;r.length&&n.length;){const o=r.shift(),l=n.shift(),i=parseInt(o,10),a=parseInt(l,10),s=[i,a].sort();if(isNaN(s[0])){if(o>l)return 1;if(l>o)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return r.length-n.length}const Qo={alphanumeric:r7,alphanumericCaseSensitive:n7,text:o7,textCaseSensitive:l7,datetime:i7,basic:a7},s7={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:gt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const o of r){const l=o?.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return Qo.datetime;if(typeof l=="string"&&(n=!0,l.split(ad).length>1))return Qo.alphanumeric}return n?Qo.text:Qo.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return Ws(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Qo[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const o=e.getNextSortingOrder(),l=typeof r<"u"&&r!==null;t.setSorting(i=>{const a=i?.find(p=>p.id===e.id),s=i?.findIndex(p=>p.id===e.id);let u=[],c,f=l?r:o==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&n?a?c="toggle":c="add":i!=null&&i.length&&s!==i.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(l||o||(c="remove")),c==="add"){var d;u=[...i,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=i.map(p=>p.id===e.id?{...p,desc:f}:p):c==="remove"?u=i.filter(p=>p.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,o;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(o=t.options.enableMultiRemove)!=null)||o)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},u7={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:gt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=U(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),e.getVisibleCells=U(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,o)=>[...r,...n,...o],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})},createTable:e=>{const t=(r,n)=>U(()=>[n(),n().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),{key:r,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,l)=>({...o,[l.id]:r||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}},R0=[TD,u7,ZD,e7,AD,s7,KD,FD,JD,t7,LD];function c7(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:R0};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),o=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let i={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;i=(f=c.getInitialState==null?void 0:c.getInitialState(i))!=null?f:i});const a=[];let s=!1;const u={_features:R0,options:{...n,...e},initialState:i,_queue:c=>{a.push(c),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=Ir(c,r.options);r.options=o(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,d)=>{var p;return(p=r.options.getRowId==null?void 0:r.options.getRowId(c,f,d))!=null?p:`${d?[d.id,f].join("."):f}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(c,f)=>{const d=(f?r.getCoreRowModel():r.getRowModel()).rowsById[c];if(!d)throw new Error;return d},_getDefaultColumnDef:U(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:d=>{const p=d.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:d=>{var p,h;return(p=(h=d.renderValue())==null||h.toString==null?void 0:h.toString())!=null?p:null},...r._features.reduce((d,p)=>Object.assign(d,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:U(()=>[r._getColumnDefs()],c=>{const f=function(d,p,h){return h===void 0&&(h=0),d.map(m=>{const _=DD(r,m,h,p),v=m;return _.columns=v.columns?f(v.columns,_,h+1):[],_})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:U(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:U(()=>[r.getAllFlatColumns()],c=>c.reduce((f,d)=>(f[d.id]=d,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:U(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let d=c.flatMap(p=>p.getLeafColumns());return f(d)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>r._getAllFlatColumnsById()[c]};Object.assign(r,u);for(let c=0;c{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:o,getContext:U(()=>[e,r,t,l],(i,a,s,u)=>({table:i,column:a,row:s,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,r,t,e)},{}),l}const Hp=(e,t,r,n,o,l,i)=>{let a={id:t,index:n,original:r,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(a._valuesCache.hasOwnProperty(s))return a._valuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return a._valuesCache[s]=u.accessorFn(a.original,n),a._valuesCache[s]},getUniqueValues:s=>{if(a._uniqueValuesCache.hasOwnProperty(s))return a._uniqueValuesCache[s];const u=e.getColumn(s);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(a._uniqueValuesCache[s]=u.columnDef.getUniqueValues(a.original,n),a._uniqueValuesCache[s]):(a._uniqueValuesCache[s]=[a.getValue(s)],a._uniqueValuesCache[s])},renderValue:s=>{var u;return(u=a.getValue(s))!=null?u:e.options.renderFallbackValue},subRows:l??[],getLeafRows:()=>zD(a.subRows,s=>s.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let s=[],u=a;for(;;){const c=u.getParentRow();if(!c)break;s.push(c),u=c}return s.reverse()},getAllCells:U(()=>[e.getAllLeafColumns()],s=>s.map(u=>f7(e,a,u,u.id)),{key:!1,debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}}),_getAllCellsByColumnId:U(()=>[a.getAllCells()],s=>s.reduce((u,c)=>(u[c.column.id]=c,u),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}})};for(let s=0;sU(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(o,l,i){l===void 0&&(l=0);const a=[];for(let u=0;u{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function p7(e,t,r){return r.options.filterFromLeafRows?g7(e,t,r):m7(e,t,r)}function g7(e,t,r){var n;const o=[],l={},i=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,a=function(s,u){u===void 0&&(u=0);const c=[];for(let d=0;dU(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let d=0;d{var p;const h=e.getColumn(d.id);if(!h)return;const m=h.getFilterFn();m&&o.push({id:d.id,filterFn:m,resolvedValue:(p=m.resolveFilterValue==null?void 0:m.resolveFilterValue(d.value))!=null?p:d.value})});const i=r.map(d=>d.id),a=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&a&&s.length&&(i.push("__global__"),s.forEach(d=>{var p;l.push({id:d.id,filterFn:a,resolvedValue:(p=a.resolveFilterValue==null?void 0:a.resolveFilterValue(n))!=null?p:n})}));let u,c;for(let d=0;d{p.columnFiltersMeta[m]=_})}if(l.length){for(let h=0;h{p.columnFiltersMeta[m]=_})){p.columnFilters.__global__=!0;break}}p.columnFilters.__global__!==!0&&(p.columnFilters.__global__=!1)}}const f=d=>{for(let p=0;p{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function h7(){return e=>U(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,o=[],l=n.filter(s=>{var u;return(u=e.getColumn(s.id))==null?void 0:u.getCanSort()}),i={};l.forEach(s=>{const u=e.getColumn(s.id);u&&(i[s.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const a=s=>{const u=s.map(c=>({...c}));return u.sort((c,f)=>{for(let p=0;p{var f;o.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=a(c.subRows))}),u};return{rows:a(r.rows),flatRows:o,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function y7(e){const t=[],r=n=>{var o;t.push(n),(o=n.subRows)!=null&&o.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function w7(e){return t=>U(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:l}=r;let{rows:i,flatRows:a,rowsById:s}=n;const u=o*l,c=u+o;i=i.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:i,flatRows:a,rowsById:s}:f=y7({rows:i,flatRows:a,rowsById:s}),f.flatRows=[];const d=p=>{f.flatRows.push(p),p.subRows.length&&p.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}/** + * react-table + * + * Copyright (c) TanStack + * + * 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 I0(e,t){return e?_7(e)?g.createElement(e,t):e:null}function _7(e){return S7(e)||typeof e=="function"||x7(e)}function S7(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function x7(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function P7(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=g.useState(()=>({current:c7(t)})),[n,o]=g.useState(()=>r.current.initialState);return r.current.setOptions(l=>({...l,...e,state:{...n,...e.state},onStateChange:i=>{o(i),e.onStateChange==null||e.onStateChange(i)}})),r.current}const sd=Oo(e=>({doors:[],setDoors:t=>e({doors:t})}));function $7(e){return Ee({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M249.334 22.717c-18.64 2.424-35.677 23.574-37.043 51.49v.02c-.057 1.186-.097 2.38-.097 3.59 0 16.362 5.658 30.827 13.942 40.818l10.127 12.213-15.592 2.933c-10.75 2.025-18.622 7.702-25.373 16.978-2.285 3.14-4.384 6.707-6.31 10.62-57.54-6.44-97.91-21.06-97.91-37.952 0-17.363 42.647-31.983 102.75-37.97-.213-2.51-.323-5.057-.323-7.636v-.002c0-.84.024-1.674.047-2.51-96.43 6.77-167.298 29.15-167.3 55.71-.002 25.33 64.462 46.86 154.074 54.67-.19.742-.394 1.465-.576 2.216-2.36 9.72-4.05 20.22-5.268 31.03-.01 0-.02 0-.03.002-.418 3.653-.78 7.34-1.095 11.046l.05-.005c-1.316 15.777-1.772 31.88-1.893 46.95h35.894l2.115 28.4c-68.24-4.994-118.444-21.004-118.444-39.843 0-13.243 24.83-24.89 63.27-32.33.3-4.056.66-8.115 1.076-12.162-76.42 9.353-129.17 29.168-129.172 52.086-.002 28.17 79.71 51.643 185.098 56.768l5.94 79.77c10.5 2.648 24.84 4.162 39.017 4.068 13.79-.092 27.235-1.71 36.45-4l5.263-79.846c105.308-5.14 184.935-28.605 184.935-56.76 0-23.013-53.196-42.895-130.13-52.2.304 4.02.557 8.047.755 12.07 38.883 7.43 63.965 19.17 63.965 32.536 0 18.84-49.804 34.85-117.908 39.844l1.87-28.402h34.18c-.012-15.113-.127-31.27-1.033-47.094.01 0 .02.002.032.004-.214-3.687-.472-7.352-.782-10.986l-.02-.002c-.94-11.157-2.367-21.984-4.546-31.967-.09-.405-.184-.803-.275-1.206 89.518-7.826 153.893-29.344 153.893-54.656 0-26.787-72.076-49.332-169.77-55.887.025.895.053 1.788.053 2.688 0 2.5-.104 4.97-.304 7.407 61.19 5.836 104.61 20.61 104.61 38.2 0 16.805-39.633 31.355-96.524 37.848-2.01-4.283-4.26-8.15-6.762-11.505-6.83-9.167-15.063-14.81-27.14-16.682l-15.913-2.47 10.037-12.59c6.928-8.69 11.912-20.715 13.057-34.268h.002c.163-1.95.25-3.93.25-5.938 0-.77-.022-1.532-.048-2.29-.015-.48-.033-.958-.057-1.434h-.002c-1.48-29.745-20.507-51.3-41.076-51.3-2.528 0-3.966-.087-4.03-.08h-.003zM194.54 355.822c-97.11 6.655-168.573 29.11-168.573 55.8 0 31.932 102.243 57.815 228.367 57.815S482.7 443.555 482.7 411.623c0-26.608-71.02-49.004-167.67-55.736l-.655 9.93c60.363 6.055 103.074 20.956 103.074 38.394 0 22.81-73.032 41.298-163.12 41.298-90.088 0-163.12-18.49-163.12-41.297 0-17.533 43.18-32.502 104.07-38.493l-.74-9.895z"}}]})(e)}function ud(e){return Ee({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"}}]})(e)}function b7(e){return Ee({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}}]})(e)}function O7(e){return Ee({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"}}]})(e)}function C7(e){return Ee({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}}]})(e)}const cd=e=>{let t=[];if(e.groups){const r=Object.entries(e.groups);for(let n=0;n({clipboard:!1,setClipboard:t=>e({clipboard:t})})),Bp=g.createContext(null);Bp.displayName="@mantine/modals/ModalsContext";function E7(){const e=g.useContext(Bp);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}var k7=Object.defineProperty,R7=Object.defineProperties,I7=Object.getOwnPropertyDescriptors,j0=Object.getOwnPropertySymbols,j7=Object.prototype.hasOwnProperty,N7=Object.prototype.propertyIsEnumerable,N0=(e,t,r)=>t in e?k7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Uc=(e,t)=>{for(var r in t||(t={}))j7.call(t,r)&&N0(e,r,t[r]);if(j0)for(var r of j0(t))N7.call(t,r)&&N0(e,r,t[r]);return e},z0=(e,t)=>R7(e,I7(t));function z7({id:e,cancelProps:t,confirmProps:r,labels:n={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:l=!0,groupProps:i,onCancel:a,onConfirm:s,children:u}){const{cancel:c,confirm:f}=n,d=E7(),p=m=>{typeof t?.onClick=="function"&&t?.onClick(m),typeof a=="function"&&a(),l&&d.closeModal(e)},h=m=>{typeof r?.onClick=="function"&&r?.onClick(m),typeof s=="function"&&s(),o&&d.closeModal(e)};return S.createElement(S.Fragment,null,u&&S.createElement(Y,{mb:"md"},u),S.createElement(qt,Uc({position:"right"},i),S.createElement(vo,z0(Uc({variant:"default"},t),{onClick:p}),t?.children||c),S.createElement(vo,z0(Uc({},r),{onClick:h}),r?.children||f)))}function D7(e,t){switch(t.type){case"OPEN":return{current:t.payload,modals:[...e.modals,t.payload]};case"CLOSE":return{current:e.modals[e.modals.length-2]||null,modals:e.modals.filter(r=>r.id!==t.payload)};case"CLOSE_ALL":return{current:e.current,modals:[]};default:return e}}const[T7,Jl]=U2("mantine-modals");Jl("openModal");Jl("closeModal");Jl("closeAllModals");const QP=Jl("openConfirmModal");Jl("openContextModal");var L7=Object.defineProperty,M7=Object.defineProperties,F7=Object.getOwnPropertyDescriptors,Us=Object.getOwnPropertySymbols,KP=Object.prototype.hasOwnProperty,qP=Object.prototype.propertyIsEnumerable,D0=(e,t,r)=>t in e?L7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ra=(e,t)=>{for(var r in t||(t={}))KP.call(t,r)&&D0(e,r,t[r]);if(Us)for(var r of Us(t))qP.call(t,r)&&D0(e,r,t[r]);return e},T0=(e,t)=>M7(e,F7(t)),un=(e,t)=>{var r={};for(var n in e)KP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Us)for(var n of Us(e))t.indexOf(n)<0&&qP.call(e,n)&&(r[n]=e[n]);return r};function A7(e){if(!e)return{confirmProps:{},modalProps:{}};const t=e,{id:r,children:n,onCancel:o,onConfirm:l,closeOnConfirm:i,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f}=t,d=un(t,["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"]);return{confirmProps:{id:r,children:n,onCancel:o,onConfirm:l,closeOnConfirm:i,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f},modalProps:ra({id:r},d)}}function V7({children:e,modalProps:t,labels:r,modals:n}){const[o,l]=g.useReducer(D7,{modals:[],current:null}),i=m=>{o.modals.forEach(_=>{var v,y,w,x;_.type==="confirm"&&m&&((y=(v=_.props)==null?void 0:v.onCancel)==null||y.call(v)),(x=(w=_.props)==null?void 0:w.onClose)==null||x.call(w)}),l({type:"CLOSE_ALL"})},a=m=>{var _=m,{modalId:v}=_,y=un(_,["modalId"]);const w=v||ea();return l({type:"OPEN",payload:{id:w,type:"content",props:y}}),w},s=m=>{var _=m,{modalId:v}=_,y=un(_,["modalId"]);const w=v||ea();return l({type:"OPEN",payload:{id:w,type:"confirm",props:y}}),w},u=(m,_)=>{var v=_,{modalId:y}=v,w=un(v,["modalId"]);const x=y||ea();return l({type:"OPEN",payload:{id:x,type:"context",props:w,ctx:m}}),x},c=(m,_)=>{var v,y,w,x;if(o.modals.length<=1){i(_);return}const b=o.modals.find($=>$.id===m);b?.type==="confirm"&&_&&((y=(v=b.props)==null?void 0:v.onCancel)==null||y.call(v)),(x=(w=b?.props)==null?void 0:w.onClose)==null||x.call(w),l({type:"CLOSE",payload:b.id})};T7({openModal:a,openConfirmModal:s,openContextModal:m=>{var _=m,{modal:v}=_,y=un(_,["modal"]);return u(v,y)},closeModal:c,closeAllModals:i});const f={modals:o.modals,openModal:a,openConfirmModal:s,openContextModal:u,closeModal:c,closeAll:i},d=()=>{var m;switch((m=o.current)==null?void 0:m.type){case"context":{const _=o.current.props,{innerProps:v}=_,y=un(_,["innerProps"]),w=n[o.current.ctx];return{modalProps:y,content:S.createElement(w,{innerProps:v,context:f,id:o.current.id})}}case"confirm":{const{modalProps:_,confirmProps:v}=A7(o.current.props);return{modalProps:_,content:S.createElement(z7,T0(ra({},v),{id:o.current.id,labels:o.current.props.labels||r}))}}case"content":{const _=o.current.props,{children:v}=_;return{modalProps:un(_,["children"]),content:S.createElement(S.Fragment,null,v)}}default:return{modalProps:{},content:null}}},{modalProps:p,content:h}=d();return S.createElement(Bp.Provider,{value:f},S.createElement(zu,T0(ra(ra({},t),p),{opened:o.modals.length>0,onClose:()=>c(o.current.id)}),h),e)}const H7=({data:e})=>{const t=ql(),r=XP(o=>o.setClipboard),n=Vu(o=>o.setVisible);return P.jsxs(st,{position:"right-start",width:200,children:[P.jsx(st.Target,{children:P.jsx(pt,{label:"Door actions",children:P.jsx(Ft,{color:"blue.4",variant:"transparent",children:P.jsx(bD,{size:24})})})}),P.jsxs(st.Dropdown,{children:[P.jsx(st.Item,{icon:P.jsx(Au,{size:18}),onClick:()=>{X.setState(cd(e.row.original),!0),t("/settings/general")},children:"Settings"}),P.jsx(st.Item,{icon:P.jsx(O7,{size:18}),onClick:()=>{r(cd(e.row.original)),Br("notify","Settings copied")},children:"Copy settings"}),P.jsx(st.Item,{icon:P.jsx($7,{size:18}),onClick:()=>{n(!1),Br("teleportToDoor",e.row.getValue("id"))},children:"Teleport to door"}),P.jsx(st.Item,{color:"red",icon:P.jsx(Zl,{size:18}),onClick:()=>QP({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:P.jsxs(Ct,{children:["Are you sure you want to delete",P.jsx(Ct,{component:"span",weight:700,children:` ${e.row.getValue("name")}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{Br("deleteDoor",e.row.getValue("id"))}}),children:"Delete door"})]})]})},B7=()=>{const[e,t]=g.useState([]),[r,n]=g.useState(1),o=rd(s=>s.debouncedValue),l=sd(s=>s.doors),i=g.useMemo(()=>[{id:"id",header:"ID",accessorKey:"id",cell:s=>s.getValue(),enableHiding:!1,enableGlobalFilter:!1},{id:"name",header:"Name",accessorKey:"name",cell:s=>s.getValue(),enableHiding:!1},{id:"zone",header:"Zone",accessorKey:"zone",cell:s=>s.getValue(),enableHiding:!1},{id:"options-menu",cell:s=>P.jsx(H7,{data:s})}],[]),a=P7({data:l,columns:i,initialState:{pagination:{pageSize:8,pageIndex:0}},state:{sorting:e,globalFilter:o},onGlobalFilterChange:rd(s=>s.setValue),onSortingChange:t,getCoreRowModel:d7(),getSortedRowModel:h7(),getFilteredRowModel:v7(),getPaginationRowModel:w7()});return g.useEffect(()=>{a.setPageIndex(r-1)},[r,l]),P.jsxs(Kt,{justify:"space-between",align:"center",sx:{height:"100%",paddingBottom:16},spacing:0,children:[a.getFilteredRowModel().rows.length>0?P.jsxs(eP,{children:[P.jsx("thead",{children:a.getHeaderGroups().map(s=>P.jsx("tr",{children:s.headers.map(u=>P.jsx("th",{children:P.jsx(Pu,{onClick:u.column.getToggleSortingHandler(),children:P.jsxs(qt,{children:[P.jsx(Ct,{children:I0(u.column.columnDef.header,u.getContext())}),u.column.getIsSorted()==="desc"?P.jsx(PD,{}):u.column.getIsSorted()==="asc"?P.jsx($D,{}):u.column.getCanHide()?P.jsx(P.Fragment,{}):P.jsx(CD,{})]})})},u.id))},s.id))}),P.jsx("tbody",{children:a.getRowModel().rows.map(s=>P.jsx("tr",{children:s.getAllCells().map(u=>P.jsx("td",{children:I0(u.column.columnDef.cell,u.getContext())},u.id))},s.id))})]}):P.jsx(VS,{sx:{height:"100%"},children:P.jsxs(Kt,{align:"center",children:[P.jsx(MP,{size:48}),P.jsx(Ct,{size:"lg",children:"No results found"})]})}),a.getPageCount()>1&&P.jsx(Wx,{page:r,total:a.getPageCount(),onChange:s=>n(s)})]})},W7=()=>P.jsxs(Kt,{sx:{height:"100%"},children:[P.jsx(jD,{}),P.jsx(B7,{})]}),Ko=({label:e,type:t,infoCircle:r,span:n,value:o,setValue:l})=>P.jsx(Nu.Col,{span:n||1,children:P.jsx(Y,{children:t==="text"?P.jsx(Zr,{value:o,onChange:i=>l(i.target.value),label:e,rightSection:r&&P.jsx(pt,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:P.jsx(Jf,{variant:"light",mr:10,children:P.jsx(ud,{size:18})})})}):P.jsx(Dl,{label:e,step:.1,precision:1,value:typeof o=="number"?o:void 0,onChange:i=>l(i),hideControls:!0,rightSection:r&&P.jsx(pt,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:P.jsx(Jf,{variant:"light",mr:10,children:P.jsx(ud,{size:18})})})})})}),U7=()=>{const e=X(c=>c.name),t=X(c=>c.passcode),r=X(c=>c.autolock),n=X(c=>c.maxDistance),o=X(c=>c.doorRate),l=Pe(c=>c.setName),i=Pe(c=>c.setPasscode),a=Pe(c=>c.setAutolock),s=Pe(c=>c.setMaxDistance),u=Pe(c=>c.setDoorRate);return P.jsx(P.Fragment,{children:P.jsxs(Nu,{columns:2,sx:{fontSize:16},children:[P.jsx(Ko,{label:"Door name",type:"text",value:e||"",setValue:c=>l(c)}),P.jsx(Ko,{label:"Passcode",type:"text",value:t||"",setValue:c=>i(c)}),P.jsx(Ko,{label:"Autolock Interval",type:"number",value:r||0,setValue:c=>a(c),infoCircle:"Time in seconds after which the door will be locked"}),P.jsx(Ko,{label:"Interact Distance",type:"number",value:n||0,setValue:c=>s(c),infoCircle:"Controls the distance from which the player can interact with the door"}),P.jsx(Ko,{label:"Door Rate",type:"number",span:2,value:o||0,setValue:c=>u(c),infoCircle:"Speed the automatic door will move at"})]})})},Tn=({infoCircle:e,label:t,value:r,toggle:n})=>P.jsxs(qt,{spacing:8,align:"center",children:[P.jsx(Dp,{label:t,checked:r,onChange:()=>n()}),P.jsx(pt,{label:e,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:P.jsx(Y,{sx:{display:"flex"},children:P.jsx(ud,{size:18})})})]}),G7=()=>{const e=X(a=>a.state),t=X(a=>a.doors),r=X(a=>a.auto),n=X(a=>a.lockpick),o=X(a=>a.hideUi),l=X(a=>a.holdOpen),i=Pe(a=>a.toggleCheckbox);return P.jsx(P.Fragment,{children:P.jsxs(Qx,{cols:2,pt:16,children:[P.jsx(Tn,{label:"Locked",infoCircle:"Sets whether the targeting door is locked by default",value:e||!1,toggle:()=>i("state")}),P.jsx(Tn,{label:"Double",infoCircle:"Enable if the targeting door is a double door",value:t||!1,toggle:()=>i("doors")}),P.jsx(Tn,{label:"Automatic",infoCircle:"Enable if the targeting door is moving automatically (Garage, poles, etc...)",value:r||!1,toggle:()=>i("auto")}),P.jsx(Tn,{label:"Lockpick",infoCircle:"Enables the targeting door to be lockpicked. Can define skill check difficulties in Lockpick tab, otherwise uses config defaults",value:n||!1,toggle:()=>i("lockpick")}),P.jsx(Tn,{label:"Hide UI",infoCircle:"Hides UI indicators for the targeting door",value:o||!1,toggle:()=>i("hideUi")}),P.jsx(Tn,{label:"Hold Open",infoCircle:"Sets whether the targeting door(s) should stay open while unlocked",value:l||!1,toggle:()=>i("holdOpen")})]})})},Y7=()=>P.jsx(Kt,{justify:"space-between",sx:{height:"100%"},children:P.jsxs(Y,{children:[P.jsx(U7,{}),P.jsx(G7,{})]})}),X7=()=>{const e=X(o=>o.characters),t=Pe(o=>o.setCharacters),r=(o,l)=>{t(i=>i.map((a,s)=>l===s?o:a))},n=o=>{t(l=>l.filter((i,a)=>a!==o))};return P.jsx(P.Fragment,{children:e.map((o,l)=>P.jsxs(qt,{position:"center",mt:l===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[P.jsx(Zr,{sx:{width:"100%"},placeholder:"Character Id",value:o,onChange:i=>r(i.target.value,l)}),P.jsx(pt,{label:"Delete row",children:P.jsx(Ft,{color:"red.4",variant:"transparent",onClick:()=>n(l),children:P.jsx(Zl,{size:24})})})]},`group-${l}`))})},Hu=({children:e,setter:t})=>P.jsx(Kt,{justify:"space-between",align:"center",sx:{height:"100%"},children:P.jsxs(Y,{sx:{width:"100%",overflowY:"auto",height:410},children:[e,P.jsx(pt,{label:"Create a new row",withArrow:!0,arrowSize:10,children:P.jsx(vo,{mt:16,fullWidth:!0,variant:"light",onClick:t,children:P.jsx(LP,{size:24})})})]})}),Q7=()=>{const e=Pe(t=>t.setCharacters);return g.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r!==""||n===0))},[]),P.jsx(Hu,{setter:()=>e(t=>[...t,""]),children:P.jsx(X7,{})})},K7=()=>{const e=X(o=>o.groups),t=Pe(o=>o.setGroups),r=(o,l,i)=>{t(a=>a.map((s,u)=>l===u?{...s,[i]:o}:s))},n=o=>{t(l=>l.filter((i,a)=>a!==o))};return P.jsx(P.Fragment,{children:e.map((o,l)=>P.jsxs(qt,{position:"center",mt:l===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[P.jsx(Zr,{sx:{width:"100%"},placeholder:"Group",value:o.name,onChange:i=>r(i.target.value,l,"name")}),P.jsx(Dl,{sx:{width:"100%"},placeholder:"Grade",value:o.grade,onChange:i=>r(i,l,"grade")}),P.jsx(pt,{label:"Delete row",children:P.jsx(Ft,{color:"red.4",variant:"transparent",onClick:()=>n(l),children:P.jsx(Zl,{size:24})})})]},`group-${l}`))})},q7=()=>{const e=Pe(t=>t.setGroups);return g.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r.name!==""||r.grade!==null||n===0))},[]),P.jsx(Hu,{setter:()=>e(t=>[...t,{name:"",grade:null}]),children:P.jsx(K7,{})})};var Z7=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,l;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(l=Object.keys(t),n=l.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[o]))return!1;for(o=n;o--!==0;){var i=l[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r};const L0=gd(Z7);function fd(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&n!==!1&&(t[r]=n),t},{})}var J7=Object.defineProperty,M0=Object.getOwnPropertySymbols,eT=Object.prototype.hasOwnProperty,tT=Object.prototype.propertyIsEnumerable,F0=(e,t,r)=>t in e?J7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rT=(e,t)=>{for(var r in t||(t={}))eT.call(t,r)&&F0(e,r,t[r]);if(M0)for(var r of M0(t))tT.call(t,r)&&F0(e,r,t[r]);return e};function A0(e,t){if(t===null||typeof t!="object")return{};const r=rT({},t);return Object.keys(t).forEach(n=>{n.includes(`${String(e)}.`)&&delete r[n]}),r}const nT="__MANTINE_FORM_INDEX__";function V0(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]/g,`.${nT}`)):!1:!1}function tr(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=tr(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:tr(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=tr(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=tr(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(o){r.add(tr(o))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(o,l){r.set(tr(l),tr(o))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(tr(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function ZP(e){return typeof e!="string"?[]:e.split(".")}function Bu(e,t,r){const n=ZP(e);if(n.length===0)return r;const o=tr(r);if(n.length===1)return o[n[0]]=t,o;let l=o[n[0]];for(let i=1;i0,errors:t}}function dd(e,t,r="",n={}){return typeof e!="object"||e===null?n:Object.keys(e).reduce((o,l)=>{const i=e[l],a=`${r===""?"":`${r}.`}${l}`,s=jr(a,t);let u=!1;return typeof i=="function"&&(o[a]=i(s,t,a)),typeof i=="object"&&Array.isArray(s)&&(u=!0,s.forEach((c,f)=>dd(i,t,`${a}.${f}`,o))),typeof i=="object"&&typeof s=="object"&&s!==null&&(u||dd(i,t,a,o)),o},n)}function pd(e,t){return H0(typeof e=="function"?e(t):dd(e,t))}function Mi(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};const n=pd(t,r),o=Object.keys(n.errors).find(l=>e.split(".").every((i,a)=>i===l.split(".")[a]));return{hasError:!!o,error:o?n.errors[o]:null}}function oT(e,{from:t,to:r},n){const o=jr(e,n);if(!Array.isArray(o))return n;const l=[...o],i=o[t];return l.splice(t,1),l.splice(r,0,i),Bu(e,l,n)}function lT(e,t,r){const n=jr(e,r);return Array.isArray(n)?Bu(e,n.filter((o,l)=>l!==t),r):r}function iT(e,t,r,n){const o=jr(e,n);if(!Array.isArray(o))return n;const l=[...o];return l.splice(typeof r=="number"?r:l.length,0,t),Bu(e,l,n)}function B0(e,t){const r=Object.keys(e);if(typeof t=="string"){const n=r.filter(o=>o.includes(`${t}.`));return e[t]||n.some(o=>e[o])||!1}return r.some(n=>e[n])}function aT(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}var sT=Object.defineProperty,uT=Object.defineProperties,cT=Object.getOwnPropertyDescriptors,W0=Object.getOwnPropertySymbols,fT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,U0=(e,t,r)=>t in e?sT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ln=(e,t)=>{for(var r in t||(t={}))fT.call(t,r)&&U0(e,r,t[r]);if(W0)for(var r of W0(t))dT.call(t,r)&&U0(e,r,t[r]);return e},Gc=(e,t)=>uT(e,cT(t));function JP({initialValues:e={},initialErrors:t={},initialDirty:r={},initialTouched:n={},clearInputErrorOnChange:o=!0,validateInputOnChange:l=!1,validateInputOnBlur:i=!1,transformValues:a=u=>u,validate:s}={}){const[u,c]=g.useState(n),[f,d]=g.useState(r),[p,h]=g.useState(e),[m,_]=g.useState(fd(t)),v=g.useRef(e),y=R=>{v.current=R},w=g.useCallback(()=>c({}),[]),x=R=>{y(R||p),d({})},b=g.useCallback(R=>_(F=>fd(typeof R=="function"?R(F):R)),[]),$=g.useCallback(()=>_({}),[]),O=g.useCallback(()=>{h(e),$(),x(e),w()},[]),C=g.useCallback((R,F)=>b(H=>Gc(Ln({},H),{[R]:F})),[]),k=g.useCallback(R=>b(F=>{if(typeof R!="string")return F;const H=Ln({},F);return delete H[R],H}),[]),I=g.useCallback(R=>d(F=>{if(typeof R!="string")return F;const H=A0(R,F);return delete H[R],H}),[]),N=g.useCallback((R,F)=>{const H=V0(R,l);I(R),c(te=>Gc(Ln({},te),{[R]:!0})),h(te=>{const At=Bu(R,F,te);if(H){const _e=Mi(R,s,At);_e.hasError?C(R,_e.error):k(R)}return At}),!H&&o&&C(R,null)},[]),T=g.useCallback(R=>{h(F=>{const H=typeof R=="function"?R(F):R;return Ln(Ln({},F),H)}),o&&$()},[]),B=g.useCallback((R,F)=>{I(R),h(H=>oT(R,F,H))},[]),K=g.useCallback((R,F)=>{I(R),h(H=>lT(R,F,H)),_(H=>A0(R,H))},[]),Z=g.useCallback((R,F,H)=>{I(R),h(te=>iT(R,F,H,te))},[]),W=g.useCallback(()=>{const R=pd(s,p);return _(R.errors),R},[p,s]),oe=g.useCallback(R=>{const F=Mi(R,s,p);return F.hasError?C(R,F.error):k(R),F},[p,s]),j=(R,{type:F="input",withError:H=F==="input",withFocus:te=!0}={})=>{const _e={onChange:aT(Ue=>N(R,Ue))};return H&&(_e.error=m[R]),F==="checkbox"?_e.checked=jr(R,p):_e.value=jr(R,p),te&&(_e.onFocus=()=>c(Ue=>Gc(Ln({},Ue),{[R]:!0})),_e.onBlur=()=>{if(V0(R,i)){const Ue=Mi(R,s,p);Ue.hasError?C(R,Ue.error):k(R)}}),_e},z=(R,F)=>H=>{H?.preventDefault();const te=W();te.hasErrors?F?.(te.errors,p,H):R(a(p),H)},M=g.useCallback(R=>{R.preventDefault(),O()},[]),A=R=>{if(Object.keys(f).length>0)return B0(f,R);if(R){const H=jr(R,p),te=jr(R,v.current);return!L0(H,te)}return!L0(p,v.current)},G=g.useCallback(R=>B0(u,R),[u]),$e=g.useCallback(R=>R?!Mi(R,s,p).hasError:!pd(s,p).hasErrors,[p,s]);return{values:p,errors:m,setValues:T,setErrors:b,setFieldValue:N,setFieldError:C,clearFieldError:k,clearErrors:$,reset:O,validate:W,validateField:oe,reorderListItem:B,removeListItem:K,insertListItem:Z,getInputProps:j,onSubmit:z,onReset:M,isDirty:A,isTouched:G,setTouched:c,setDirty:d,resetTouched:w,resetDirty:x,isValid:$e}}const pT=({modal:e,setModal:t})=>{const r=X(a=>a.items),n=Pe(a=>a.setItems),o=g.useMemo(()=>r[e.index],[e,r]),l=JP({initialValues:{metadata:o.metadata,remove:o.remove}}),i=a=>{t(s=>({...s,opened:!1})),n(s=>s.map((u,c)=>c===e.index?{...u,metadata:a.metadata,remove:a.remove}:u))};return P.jsx("form",{onSubmit:l.onSubmit(a=>i(a)),children:P.jsxs(Kt,{children:[P.jsx(Zr,{label:"Metadata type",defaultValue:o.metadata,...l.getInputProps("metadata")}),P.jsx(Dp,{label:"Remove on use",defaultChecked:o.remove,...l.getInputProps("remove")}),P.jsx(vo,{uppercase:!0,variant:"light",type:"submit",children:"Confirm"})]})})},gT=()=>{const e=X(i=>i.items),t=Pe(i=>i.setItems),[r,n]=g.useState({opened:!1,index:0}),o=(i,a)=>{const s=[...e];switch(i.target.id){case"name":s[a].name=i.target.value;break}t(()=>s)},l=i=>{t(a=>a.filter((s,u)=>u!==i))};return P.jsxs(Y,{children:[e.length>0&&P.jsx(P.Fragment,{children:e.map((i,a)=>P.jsxs(qt,{sx:{width:"100%"},position:"apart",spacing:16,mt:a===0?void 0:16,children:[P.jsx(Zr,{sx:{width:"80%"},value:i.name||"",id:"name",placeholder:"Item",onChange:s=>o(s,a)}),P.jsx(pt,{label:"Item options",children:P.jsx(Ft,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:a}),children:P.jsx(Au,{size:24})})}),P.jsx(pt,{label:"Delete row",children:P.jsx(Ft,{color:"red.4",variant:"transparent",onClick:()=>l(a),children:P.jsx(Zl,{size:24})})})]},`item-field-${a}`))}),P.jsx(zu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Item options",centered:!0,size:"xs",withCloseButton:!1,children:P.jsx(pT,{modal:r,setModal:n})})]})},mT=()=>{const e=Pe(t=>t.setItems);return g.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r.name!==""))},[]),P.jsx(Hu,{setter:()=>e(t=>[...t,{name:"",metadata:"",remove:!1}]),children:P.jsx(gT,{})})},vT=()=>{const e=Pe(l=>l.sounds),t=X(l=>l.lockSound),r=X(l=>l.unlockSound),n=Pe(l=>l.setLockSound),o=Pe(l=>l.setUnlockSound);return P.jsxs(Kt,{children:[P.jsx(Tl,{data:e,label:"Lock sound",value:t||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:l=>n(l)}),P.jsx(Tl,{data:e,label:"Unlock sound",value:r||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:l=>o(l)})]})},hT=()=>{const e=ql(),t=XP(o=>o.clipboard),r=Vu(o=>o.setVisible),n=()=>{const o={...X.getState()};if(o.name===""&&(o.name=null),o.passcode===""&&(o.passcode=null),o.lockSound===""&&(o.lockSound=null),o.unlockSound===""&&(o.unlockSound=null),o.autolock=o.autolock||null,o.maxDistance=o.maxDistance||2,o.doorRate=o.doorRate?o.doorRate+0:null,o.auto=o.auto||null,o.lockpick=o.lockpick||null,o.hideUi=o.hideUi||null,o.holdOpen=o.holdOpen||null,o.items&&o.items.length>0){const l=[];for(let i=0;i0){const l=[];for(let i=0;i0){const l={};for(let i=0;i0){const l=[];for(let i=0;in(),fullWidth:!0,children:"Confirm door"}),P.jsx(pt,{label:t?"Apply copied settings":"No door settings copied",withArrow:!0,arrowSize:10,children:P.jsx(Ft,{variant:"outline",disabled:!t,size:"lg",ml:16,sx:{width:36,height:36},color:"blue",onClick:()=>{X.setState({name:"",passcode:t.passcode,autolock:t.autolock,items:t.items,characters:t.characters,groups:t.groups,maxDistance:t.maxDistance,doorRate:t.doorRate,lockSound:t.lockSound,unlockSound:t.unlockSound,auto:t.auto,state:t.state,lockpick:t.lockpick,hideUi:t.hideUi,doors:t.doors,lockpickDifficulty:t.lockpickDifficulty,holdOpen:t.holdOpen},!0),Br("notify","Settings applied")},children:P.jsx(b7,{size:20})})}),P.jsx(Ft,{variant:"outline",size:"lg",ml:16,sx:{width:36,height:36},color:"red",disabled:!X.getState().id,onClick:()=>QP({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:P.jsxs(Ct,{children:["Are you sure you want to delete",P.jsx(Ct,{component:"span",weight:700,children:` ${X.getState().name}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{Br("deleteDoor",X.getState().id),e("/")}}),children:P.jsx(C7,{size:20})})]})},yT=({selectData:e,setModal:t,modal:r})=>{const[n,o]=g.useState(null),l=X(c=>c.lockpickDifficulty),i=Pe(c=>c.setLockpickDifficulty),a=g.useMemo(()=>l[r.index],[r,l]);g.useEffect(()=>o(typeof a=="string"?a:"custom"),[a]);const s=JP({initialValues:{select:n,areaSize:typeof a=="string"?null:a.areaSize,speedMultiplier:typeof a=="string"?null:a.speedMultiplier},validate:{select:c=>c===null?"Difficulty is required":null,areaSize:(c,f)=>c===null&&f.select==="custom"?"Area size is required":null,speedMultiplier:(c,f)=>c===null&&f.select==="custom"?"Speed multiplier is required":null}});g.useEffect(()=>s.setFieldValue("select",n),[n]);const u=c=>{t(d=>({...d,opened:!1}));const f=c.select==="custom"?{areaSize:c.areaSize,speedMultiplier:c.speedMultiplier}:c.select;f&&i(d=>{const p=[...d];return f&&(p[r.index]=f),p})};return P.jsx("form",{onSubmit:s.onSubmit(c=>u(c)),children:P.jsxs(Kt,{children:[P.jsx(Tl,{data:e,placeholder:"Difficulty",...s.getInputProps("select"),value:n,onChange:o,required:!0}),P.jsx(Dl,{label:"Area size",defaultValue:typeof a=="object"?a.areaSize:null,description:"Skill check area size in degrees",disabled:n!=="custom",max:360,hideControls:!0,required:n==="custom",...s.getInputProps("areaSize")}),P.jsx(Dl,{label:"Speed multiplier",description:"Number the indicator speed will be multiplied by",disabled:n!=="custom",defaultValue:typeof a=="object"?a.speedMultiplier:null,hideControls:!0,precision:2,required:n==="custom",...s.getInputProps("speedMultiplier")}),P.jsx(vo,{type:"submit",uppercase:!0,variant:"light",children:"Confirm"})]})})},G0=[{label:"Easy",value:"easy"},{label:"Medium",value:"medium"},{label:"Hard",value:"hard"},{label:"Custom",value:"custom"}],wT=()=>{const e=X(l=>l.lockpickDifficulty),t=Pe(l=>l.setLockpickDifficulty),[r,n]=g.useState({opened:!1,index:0}),o=l=>{t(i=>i.filter((a,s)=>s!==l))};return P.jsxs(P.Fragment,{children:[e.map((l,i)=>P.jsxs(qt,{sx:{width:"100%"},spacing:16,mt:i===0?void 0:16,position:"apart",children:[P.jsx(Tl,{data:G0,value:typeof l=="string"?l:"custom",readOnly:!0,placeholder:"Edit row to select value",sx:{width:"80%"}}),P.jsx(pt,{label:"Edit row",children:P.jsx(Ft,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:i}),children:P.jsx(Au,{size:24})})}),P.jsx(pt,{label:"Delete row",children:P.jsx(Ft,{color:"red.4",variant:"transparent",onClick:()=>o(i),children:P.jsx(Zl,{size:24})})})]},`${typeof l=="string"?l:l.areaSize}-${i}`)),P.jsx(zu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Lockpick difficulty",centered:!0,size:"xs",withCloseButton:!1,children:P.jsx(yT,{selectData:G0,setModal:n,modal:r})})]})},_T=()=>{const e=Pe(t=>t.setLockpickDifficulty);return g.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r!==""))},[]),P.jsx(Hu,{setter:()=>e(t=>[...t,""]),children:P.jsx(wT,{})})},ST=()=>{const e=ql(),t=Mp(),r=X(n=>n.lockpick);return P.jsx(P.Fragment,{children:P.jsxs(Y,{sx:{height:"100%",display:"flex"},children:[P.jsx(it,{orientation:"vertical",color:"blue",sx:{height:"100%"},value:t.pathname.substring(10),onTabChange:n=>e(`/settings/${n}`),children:P.jsxs(it.List,{children:[P.jsx(it.Tab,{value:"back",onClick:()=>e("/"),icon:P.jsx(wD,{size:20}),children:"Doors"}),P.jsx(it.Tab,{value:"general",icon:P.jsx(Au,{size:20}),children:"General"}),P.jsx(it.Tab,{value:"characters",icon:P.jsx(ED,{size:20}),children:"Characters"}),P.jsx(it.Tab,{value:"groups",icon:P.jsx(xD,{size:20}),children:"Groups"}),P.jsx(it.Tab,{value:"items",icon:P.jsx(SD,{size:20}),children:"Items"}),P.jsx(it.Tab,{value:"lockpick",disabled:!r,icon:P.jsx(OD,{size:20}),children:"Lockpick"}),P.jsx(it.Tab,{value:"sound",icon:P.jsx(_D,{size:20}),children:"Sound"})]})}),P.jsxs(Kt,{p:16,sx:{width:"100%"},justify:"space-between",children:[P.jsxs(NP,{children:[P.jsx(or,{path:"/general",element:P.jsx(Y7,{})}),P.jsx(or,{path:"/characters",element:P.jsx(Q7,{})}),P.jsx(or,{path:"/groups",element:P.jsx(q7,{})}),P.jsx(or,{path:"/items",element:P.jsx(mT,{})}),P.jsx(or,{path:"/sound",element:P.jsx(vT,{})}),P.jsx(or,{path:"/lockpick",element:P.jsx(_T,{})})]}),P.jsx(hT,{})]})]})})},xT=["Escape"],PT=(e,t)=>{const r=g.useRef(zP);g.useEffect(()=>{r.current=e},[e]),g.useEffect(()=>{const n=o=>{xT.includes(o.code)&&(r.current(!1),t&&t(),Br("exit"))};return window.addEventListener("keyup",n),()=>window.removeEventListener("keyup",n)},[])},$T=Q(e=>({container:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},main:{width:700,height:500,backgroundColor:e.colors.dark[8],borderRadius:e.radius.sm},search:{width:"40%",transition:"300ms","&:focus-within":{width:"50%"}}})),bT=()=>{const{classes:e}=$T(),t=Pe(a=>a.setSounds),[r,n]=Vu(a=>[a.visible,a.setVisible]),o=sd(a=>a.doors),l=sd(a=>a.setDoors),i=ql();return zi("playSound",async a=>{const s=new Audio(`./sounds/${a.sound}.ogg`);s.volume=a.volume,await s.play()}),zi("setSoundFiles",a=>t(a)),zi("setVisible",a=>{if(n(!0),a===void 0)return i("/");for(let s=0;s{if(typeof a=="number")return l(o.filter(s=>s.id!==a));if(a.hasOwnProperty("id")){let s=o.length;for(let u=0;uP.jsx(Y,{className:e.main,style:a,children:P.jsxs(NP,{children:[P.jsx(or,{path:"/",element:P.jsx(W7,{})}),P.jsx(or,{path:"/settings/*",element:P.jsx(ST,{})})]})})})})},OT={colorScheme:"dark",fontFamily:"Roboto",components:{Tooltip:{defaultProps:{transition:"pop"}}}};if(pD()){const e=document.getElementById("root");e.style.backgroundImage='url("https://i.imgur.com/3pzRj9n.png")',e.style.backgroundSize="cover",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center"}z2.render(P.jsx(S.StrictMode,{children:P.jsx(Ew,{withNormalizeCSS:!0,withGlobalStyles:!0,theme:OT,children:P.jsx(V7,{modalProps:{transition:"slide-up"},children:P.jsx(dD,{children:P.jsx(bT,{})})})})}),document.getElementById("root")); diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js deleted file mode 100644 index 2efa8c399..000000000 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.3fdfe26d.js +++ /dev/null @@ -1,102 +0,0 @@ -function Eb(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Rb=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};Rb();var p={exports:{}},J={};/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var bp=Object.getOwnPropertySymbols,kb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable;function Nb(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function zb(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var N0=zb()?Object.assign:function(e,t){for(var r,n=Nb(e),o,i=1;i"u"||typeof MessageChannel!="function"){var s=null,u=null,c=function(){if(s!==null)try{var k=e.unstable_now();s(!0,k),s=null}catch(N){throw setTimeout(c,0),N}};t=function(k){s!==null?setTimeout(t,0,k):(s=k,setTimeout(c,0))},r=function(k,N){u=setTimeout(k,N)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var g=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof g!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,w=null,v=-1,m=5,h=0;e.unstable_shouldYield=function(){return e.unstable_now()>=h},o=function(){},e.unstable_forceFrameRate=function(k){0>k||125>>1,M=k[R];if(M!==void 0&&0E(Z,A))ae!==void 0&&0>E(ae,Z)?(k[R]=ae,k[Te]=A,R=Te):(k[R]=Z,k[W]=A,R=W);else if(ae!==void 0&&0>E(ae,A))k[R]=ae,k[Te]=A,R=Te;else break e}}return N}return null}function E(k,N){var A=k.sortIndex-N.sortIndex;return A!==0?A:k.id-N.id}var O=[],D=[],z=1,T=null,F=3,G=!1,q=!1,B=!1;function ne(k){for(var N=b(D);N!==null;){if(N.callback===null)P(D);else if(N.startTime<=k)P(D),N.sortIndex=N.expirationTime,$(O,N);else break;N=b(D)}}function se(k){if(B=!1,ne(k),!q)if(b(O)!==null)q=!0,t(ie);else{var N=b(D);N!==null&&r(se,N.startTime-k)}}function ie(k,N){q=!1,B&&(B=!1,n()),G=!0;var A=F;try{for(ne(N),T=b(O);T!==null&&(!(T.expirationTime>N)||k&&!e.unstable_shouldYield());){var R=T.callback;if(typeof R=="function"){T.callback=null,F=T.priorityLevel;var M=R(T.expirationTime<=N);N=e.unstable_now(),typeof M=="function"?T.callback=M:T===b(O)&&P(O),ne(N)}else P(O);T=b(O)}if(T!==null)var W=!0;else{var Z=b(D);Z!==null&&r(se,Z.startTime-N),W=!1}return W}finally{T=null,F=A,G=!1}}var De=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){q||G||(q=!0,t(ie))},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return b(O)},e.unstable_next=function(k){switch(F){case 1:case 2:case 3:var N=3;break;default:N=F}var A=F;F=N;try{return k()}finally{F=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=De,e.unstable_runWithPriority=function(k,N){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var A=F;F=k;try{return N()}finally{F=A}},e.unstable_scheduleCallback=function(k,N,A){var R=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0R?(k.sortIndex=A,$(D,k),b(O)===null&&k===b(D)&&(B?n():B=!0,r(se,A-R))):(k.sortIndex=M,$(O,k),q||G||(q=!0,t(ie))),k},e.unstable_wrapCallback=function(k){var N=F;return function(){var A=F;F=N;try{return k.apply(this,arguments)}finally{F=A}}}})(Y0);G0.exports=Y0;/** @license React v17.0.2 - * 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 Ns=p.exports,de=N0,Ce=G0.exports;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fb=/^[: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]*$/,Op=Object.prototype.hasOwnProperty,Cp={},Ep={};function Ab(e){return Op.call(Ep,e)?!0:Op.call(Cp,e)?!1:Fb.test(e)?Ep[e]=!0:(Cp[e]=!0,!1)}function Vb(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Hb(e,t,r,n){if(t===null||typeof t>"u"||Vb(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ue(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new Ue(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){ze[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yf=/[\-:]([a-z])/g;function Xf(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(Yf,Xf);ze[t]=new Ue(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(Yf,Xf);ze[t]=new Ue(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(Yf,Xf);ze[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function qf(e,t,r,n){var o=ze.hasOwnProperty(t)?ze[t]:null,i=o!==null?o.type===0:n?!1:!(!(2a||o[l]!==i[a])return` -`+o[l].replace(" at new "," at ");while(1<=l&&0<=a);break}}}finally{zu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Vo(e):""}function Bb(e){switch(e.tag){case 5:return Vo(e.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 2:case 15:return e=el(e.type,!1),e;case 11:return e=el(e.type.render,!1),e;case 22:return e=el(e.type._render,!1),e;case 1:return e=el(e.type,!0),e;default:return""}}function Nn(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 sr:return"Fragment";case Xr:return"Portal";case Go:return"Profiler";case Kf:return"StrictMode";case Yo:return"Suspense";case Ul:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zf:return(e.displayName||"Context")+".Consumer";case Qf:return(e._context.displayName||"Context")+".Provider";case zs:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ds:return Nn(e.type);case ed:return Nn(e._render);case Jf:t=e._payload,e=e._init;try{return Nn(e(t))}catch{}}return null}function $r(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wb(e){var t=K0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tl(e){e._valueTracker||(e._valueTracker=Wb(e))}function Q0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=K0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Gl(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 Rc(e,t){var r=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=$r(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Z0(e,t){t=t.checked,t!=null&&qf(e,"checked",t,!1)}function kc(e,t){Z0(e,t);var r=$r(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ic(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ic(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ip(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ic(e,t,r){(t!=="number"||Gl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ub(e){var t="";return Ns.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Nc(e,t){return e=de({children:void 0},t),(t=Ub(t.children))&&(e.children=t),e}function zn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o=r.length))throw Error(I(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:$r(r)}}function J0(e,t){var r=$r(t.value),n=$r(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function zp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Dc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ey(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ey(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rl,ty=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!==Dc.svg||"innerHTML"in e)e.innerHTML=t;else{for(rl=rl||document.createElement("div"),rl.innerHTML=""+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ui(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Xo={animationIterationCount:!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},Gb=["Webkit","ms","Moz","O"];Object.keys(Xo).forEach(function(e){Gb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xo[t]=Xo[e]})});function ry(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Xo.hasOwnProperty(e)&&Xo[e]?(""+t).trim():t+"px"}function ny(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=ry(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Yb=de({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 Mc(e,t){if(t){if(Yb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function jc(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}}function nd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lc=null,Dn=null,Tn=null;function Dp(e){if(e=Ni(e)){if(typeof Lc!="function")throw Error(I(280));var t=e.stateNode;t&&(t=As(t),Lc(e.stateNode,e.type,t))}}function oy(e){Dn?Tn?Tn.push(e):Tn=[e]:Dn=e}function iy(){if(Dn){var e=Dn,t=Tn;if(Tn=Dn=null,Dp(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Ms(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Or(t),e[t]=r}var Or=Math.clz32?Math.clz32:uP,aP=Math.log,sP=Math.LN2;function uP(e){return e===0?32:31-(aP(e)/sP|0)|0}var cP=Ce.unstable_UserBlockingPriority,fP=Ce.unstable_runWithPriority,kl=!0;function dP(e,t,r,n){qr||id();var o=cd,i=qr;qr=!0;try{ly(o,e,t,r,n)}finally{(qr=i)||ld()}}function pP(e,t,r,n){fP(cP,cd.bind(null,e,t,r,n))}function cd(e,t,r,n){if(kl){var o;if((o=(t&4)===0)&&0=Ko),Wp=String.fromCharCode(32),Up=!1;function by(e,t){switch(e){case"keyup":return MP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Py(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function LP(e,t){switch(e){case"compositionend":return Py(t);case"keypress":return t.which!==32?null:(Up=!0,Wp);case"textInput":return e=t.data,e===Wp&&Up?null:e;default:return null}}function FP(e,t){if(On)return e==="compositionend"||!md&&by(e,t)?(e=Sy(),Il=dd=ur=null,On=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qp(r)}}function Ey(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ey(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qp(){for(var e=window,t=Gl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Gl(e.document)}return t}function Bc(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")}var qP=Qt&&"documentMode"in document&&11>=document.documentMode,Cn=null,Wc=null,Zo=null,Uc=!1;function Zp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Uc||Cn==null||Cn!==Gl(n)||(n=Cn,"selectionStart"in n&&Bc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zo&&mi(Zo,n)||(Zo=n,n=Kl(Wc,"onSelect"),0Rn||(e.current=Yc[Rn],Yc[Rn]=null,Rn--)}function he(e,t){Rn++,Yc[Rn]=e.current,e.current=t}var Cr={},Ve=zr(Cr),Xe=zr(!1),rn=Cr;function Wn(e,t){var r=e.type.contextTypes;if(!r)return Cr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qe(e){return e=e.childContextTypes,e!=null}function Jl(){fe(Xe),fe(Ve)}function ag(e,t,r){if(Ve.current!==Cr)throw Error(I(168));he(Ve,t),he(Xe,r)}function My(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in e))throw Error(I(108,Nn(t)||"Unknown",o));return de({},r,n)}function zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,rn=Ve.current,he(Ve,e),he(Xe,Xe.current),!0}function sg(e,t,r){var n=e.stateNode;if(!n)throw Error(I(169));r?(e=My(e,t,rn),n.__reactInternalMemoizedMergedChildContext=e,fe(Xe),fe(Ve),he(Ve,e)):fe(Xe),he(Xe,r)}var hd=null,Jr=null,ZP=Ce.unstable_runWithPriority,yd=Ce.unstable_scheduleCallback,Xc=Ce.unstable_cancelCallback,JP=Ce.unstable_shouldYield,ug=Ce.unstable_requestPaint,qc=Ce.unstable_now,e$=Ce.unstable_getCurrentPriorityLevel,Vs=Ce.unstable_ImmediatePriority,jy=Ce.unstable_UserBlockingPriority,Ly=Ce.unstable_NormalPriority,Fy=Ce.unstable_LowPriority,Ay=Ce.unstable_IdlePriority,Gu={},t$=ug!==void 0?ug:function(){},Bt=null,Dl=null,Yu=!1,cg=qc(),Fe=1e4>cg?qc:function(){return qc()-cg};function Un(){switch(e$()){case Vs:return 99;case jy:return 98;case Ly:return 97;case Fy:return 96;case Ay:return 95;default:throw Error(I(332))}}function Vy(e){switch(e){case 99:return Vs;case 98:return jy;case 97:return Ly;case 96:return Fy;case 95:return Ay;default:throw Error(I(332))}}function nn(e,t){return e=Vy(e),ZP(e,t)}function hi(e,t,r){return e=Vy(e),yd(e,t,r)}function jt(){if(Dl!==null){var e=Dl;Dl=null,Xc(e)}Hy()}function Hy(){if(!Yu&&Bt!==null){Yu=!0;var e=0;try{var t=Bt;nn(99,function(){for(;eP?(E=b,b=null):E=b.sibling;var O=d(v,b,h[P],_);if(O===null){b===null&&(b=E);break}e&&b&&O.alternate===null&&t(v,b),m=i(O,m,P),$===null?x=O:$.sibling=O,$=O,b=E}if(P===h.length)return r(v,b),x;if(b===null){for(;PP?(E=b,b=null):E=b.sibling;var D=d(v,b,O.value,_);if(D===null){b===null&&(b=E);break}e&&b&&D.alternate===null&&t(v,b),m=i(D,m,P),$===null?x=D:$.sibling=D,$=D,b=E}if(O.done)return r(v,b),x;if(b===null){for(;!O.done;P++,O=h.next())O=f(v,O.value,_),O!==null&&(m=i(O,m,P),$===null?x=O:$.sibling=O,$=O);return x}for(b=n(v,b);!O.done;P++,O=h.next())O=g(b,v,P,O.value,_),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?P:O.key),m=i(O,m,P),$===null?x=O:$.sibling=O,$=O);return e&&b.forEach(function(z){return t(v,z)}),x}return function(v,m,h,_){var x=typeof h=="object"&&h!==null&&h.type===sr&&h.key===null;x&&(h=h.props.children);var $=typeof h=="object"&&h!==null;if($)switch(h.$$typeof){case Ao:e:{for($=h.key,x=m;x!==null;){if(x.key===$){switch(x.tag){case 7:if(h.type===sr){r(v,x.sibling),m=o(x,h.props.children),m.return=v,v=m;break e}break;default:if(x.elementType===h.type){r(v,x.sibling),m=o(x,h.props),m.ref=Oo(v,x,h),m.return=v,v=m;break e}}r(v,x);break}else t(v,x);x=x.sibling}h.type===sr?(m=Vn(h.props.children,v.mode,_,h.key),m.return=v,v=m):(_=Ll(h.type,h.key,h.props,null,v.mode,_),_.ref=Oo(v,m,h),_.return=v,v=_)}return l(v);case Xr:e:{for(x=h.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===h.containerInfo&&m.stateNode.implementation===h.implementation){r(v,m.sibling),m=o(m,h.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Ju(h,v.mode,_),m.return=v,v=m}return l(v)}if(typeof h=="string"||typeof h=="number")return h=""+h,m!==null&&m.tag===6?(r(v,m.sibling),m=o(m,h),m.return=v,v=m):(r(v,m),m=Zu(h,v.mode,_),m.return=v,v=m),l(v);if(il(h))return y(v,m,h,_);if(_o(h))return w(v,m,h,_);if($&&ll(v,h),typeof h>"u"&&!x)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(I(152,Nn(v.type)||"Component"))}return r(v,m)}}var oa=Yy(!0),Xy=Yy(!1),zi={},Nt=zr(zi),wi=zr(zi),_i=zr(zi);function Qr(e){if(e===zi)throw Error(I(174));return e}function Qc(e,t){switch(he(_i,t),he(wi,e),he(Nt,zi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tc(t,e)}fe(Nt),he(Nt,t)}function Gn(){fe(Nt),fe(wi),fe(_i)}function mg(e){Qr(_i.current);var t=Qr(Nt.current),r=Tc(t,e.type);t!==r&&(he(wi,e),he(Nt,r))}function xd(e){wi.current===e&&(fe(Nt),fe(wi))}var ve=zr(0);function ia(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yt=null,fr=null,zt=!1;function qy(e,t){var r=dt(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function vg(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Zc(e){if(zt){var t=fr;if(t){var r=t;if(!vg(e,t)){if(t=Mn(r.nextSibling),!t||!vg(e,t)){e.flags=e.flags&-1025|2,zt=!1,Yt=e;return}qy(Yt,r)}Yt=e,fr=Mn(t.firstChild)}else e.flags=e.flags&-1025|2,zt=!1,Yt=e}}function hg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yt=e}function al(e){if(e!==Yt)return!1;if(!zt)return hg(e),zt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Gc(t,e.memoizedProps))for(t=fr;t;)qy(e,t),t=Mn(t.nextSibling);if(hg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){fr=Mn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}fr=null}}else fr=Yt?Mn(e.stateNode.nextSibling):null;return!0}function Xu(){fr=Yt=null,zt=!1}var Ln=[];function bd(){for(var e=0;ei))throw Error(I(301));i+=1,ke=Le=null,t.updateQueue=null,Jo.current=l$,e=r(n,o)}while(ei)}if(Jo.current=ca,t=Le!==null&&Le.next!==null,Si=0,ke=Le=ye=null,la=!1,t)throw Error(I(300));return e}function Zr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ye.memoizedState=ke=e:ke=ke.next=e,ke}function cn(){if(Le===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=ke===null?ye.memoizedState:ke.next;if(t!==null)ke=t,Le=e;else{if(e===null)throw Error(I(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},ke===null?ye.memoizedState=ke=e:ke=ke.next=e}return ke}function kt(e,t){return typeof t=="function"?t(e):t}function Co(e){var t=cn(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=Le,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}n.baseQueue=o=i,r.pending=null}if(o!==null){o=o.next,n=n.baseState;var a=l=i=null,s=o;do{var u=s.lane;if((Si&u)===u)a!==null&&(a=a.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var c={lane:u,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};a===null?(l=a=c,i=n):a=a.next=c,ye.lanes|=u,Di|=u}s=s.next}while(s!==null&&s!==o);a===null?i=n:a.next=l,ft(n,t.memoizedState)||(Pt=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=a,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Eo(e){var t=cn(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);ft(i,t.memoizedState)||(Pt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function yg(e,t,r){var n=t._getVersion;n=n(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===n:(e=e.mutableReadLanes,(e=(Si&e)===e)&&(t._workInProgressVersionPrimary=n,Ln.push(t))),e)return r(t._source);throw Ln.push(t),Error(I(350))}function Ky(e,t,r,n){var o=We;if(o===null)throw Error(I(349));var i=t._getVersion,l=i(t._source),a=Jo.current,s=a.useState(function(){return yg(o,t,r)}),u=s[1],c=s[0];s=ke;var f=e.memoizedState,d=f.refs,g=d.getSnapshot,y=f.source;f=f.subscribe;var w=ye;return e.memoizedState={refs:d,source:t,subscribe:n},a.useEffect(function(){d.getSnapshot=r,d.setSnapshot=u;var v=i(t._source);if(!ft(l,v)){v=r(t._source),ft(c,v)||(u(v),v=_r(w),o.mutableReadLanes|=v&o.pendingLanes),v=o.mutableReadLanes,o.entangledLanes|=v;for(var m=o.entanglements,h=v;0r?98:r,function(){e(!0)}),nn(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[cr]=t,e[Zl]=n,i1(e,t,!1,!1),t.stateNode=e,l=jc(r,n),r){case"dialog":ce("cancel",e),ce("close",e),o=n;break;case"iframe":case"object":case"embed":ce("load",e),o=n;break;case"video":case"audio":for(o=0;ouf&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432)}else{if(!i)if(e=ia(l),e!==null){if(t.flags|=64,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ko(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!zt)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Fe()-n.renderingStartTime>uf&&r!==1073741824&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432);n.isBackwards?(l.sibling=t.child,t.child=l):(r=n.last,r!==null?r.sibling=l:t.child=l,n.last=l)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Fe(),r.sibling=null,t=ve.current,he(ve,i?t&1|2:t&1),r):null;case 23:case 24:return zd(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(I(156,t.tag))}function u$(e){switch(e.tag){case 1:qe(e.type)&&Jl();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Gn(),fe(Xe),fe(Ve),bd(),t=e.flags,(t&64)!==0)throw Error(I(285));return e.flags=t&-4097|64,e;case 5:return xd(e),null;case 13:return fe(ve),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return fe(ve),null;case 4:return Gn(),null;case 10:return _d(e),null;case 23:case 24:return zd(),null;default:return null}}function Rd(e,t){try{var r="",n=t;do r+=Bb(n),n=n.return;while(n);var o=r}catch(i){o=` -Error generating stack: `+i.message+` -`+i.stack}return{value:e,source:t,stack:o}}function nf(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var c$=typeof WeakMap=="function"?WeakMap:Map;function s1(e,t,r){r=yr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){da||(da=!0,cf=n),nf(e,t)},r}function u1(e,t,r){r=yr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return nf(e,t),n(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(It===null?It=new Set([this]):It.add(this),nf(e,t));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}var f$=typeof WeakSet=="function"?WeakSet:Set;function Ig(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){xr(e,r)}else t.current=null}function d$(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:bt(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&vd(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(I(163))}function p$(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;n=o.next,o=o.tag,(o&4)!==0&&(o&1)!==0&&(y1(r,e),S$(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:bt(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&dg(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}dg(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&Dy(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&py(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(I(163))}function Ng(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,n.style.display=ry("display",o)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function zg(e,t){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(hd,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,o=n.destroy;if(n=n.tag,o!==void 0)if((n&4)!==0)y1(t,r);else{n=t;try{o()}catch(i){xr(n,i)}}r=r.next}while(r!==e)}break;case 1:if(Ig(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){xr(t,i)}break;case 5:Ig(t);break;case 4:c1(e,t)}}function Dg(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Tg(e){return e.tag===5||e.tag===3||e.tag===4}function Mg(e){e:{for(var t=e.return;t!==null;){if(Tg(t))break e;t=t.return}throw Error(I(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(I(161))}r.flags&16&&(ui(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||Tg(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?of(e,r,t):lf(e,r,t)}function of(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ql));else if(n!==4&&(e=e.child,e!==null))for(of(e,t,r),e=e.sibling;e!==null;)of(e,t,r),e=e.sibling}function lf(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(lf(e,t,r),e=e.sibling;e!==null;)lf(e,t,r),e=e.sibling}function c1(e,t){for(var r=t,n=!1,o,i;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(I(160));switch(o=n.stateNode,n.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var l=e,a=r,s=a;;)if(zg(l,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}i?(l=o,a=r.stateNode,l.nodeType===8?l.parentNode.removeChild(a):l.removeChild(a)):o.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){o=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(zg(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Qu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var o=e!==null?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(r[Zl]=n,e==="input"&&n.type==="radio"&&n.name!=null&&Z0(r,n),jc(e,o),t=jc(e,n),o=0;oo&&(o=l),r&=~i}if(r=o,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*m$(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),s=Rd(s,a),d=l;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t;var $=s1(d,i,t);fg(d,$);break e;case 1:i=s;var b=d.type,P=d.stateNode;if((d.flags&64)===0&&(typeof b.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(It===null||!It.has(P)))){d.flags|=4096,t&=-t,d.lanes|=t;var E=u1(d,i,t);fg(d,E);break e}}d=d.return}while(d!==null)}h1(r)}catch(O){t=O,Se===r&&r!==null&&(Se=r=r.return);continue}break}while(1)}function m1(){var e=fa.current;return fa.current=ca,e===null?ca:e}function Wo(e,t){var r=U;U|=16;var n=m1();We===e&&Ae===t||An(e,t);do try{h$();break}catch(o){g1(e,o)}while(1);if(wd(),U=r,fa.current=n,Se!==null)throw Error(I(261));return We=null,Ae=0,Ne}function h$(){for(;Se!==null;)v1(Se)}function y$(){for(;Se!==null&&!JP();)v1(Se)}function v1(e){var t=w1(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?h1(e):Se=t,kd.current=null}function h1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=s$(r,t,on),r!==null){Se=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(on&1073741824)!==0||(r.mode&4)===0){for(var n=0,o=r.child;o!==null;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1l&&(a=l,l=$,$=a),a=Kp(h,$),i=Kp(h,l),a&&i&&(x.rangeCount!==1||x.anchorNode!==a.node||x.anchorOffset!==a.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&(_=_.createRange(),_.setStart(a.node,a.offset),x.removeAllRanges(),$>l?(x.addRange(_),x.extend(i.node,i.offset)):(_.setEnd(i.node,i.offset),x.addRange(_)))))),_=[],x=h;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<_.length;h++)x=_[h],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}kl=!!Bu,Wu=Bu=null,e.current=r,j=n;do try{for(h=e;j!==null;){var b=j.flags;if(b&36&&p$(h,j.alternate,j),b&128){_=void 0;var P=j.ref;if(P!==null){var E=j.stateNode;switch(j.tag){case 5:_=E;break;default:_=E}typeof P=="function"?P(_):P.current=_}}j=j.nextEffect}}catch(O){if(j===null)throw Error(I(330));xr(j,O),j=j.nextEffect}while(j!==null);j=null,t$(),U=o}else e.current=r;if(Er)Er=!1,ti=e,Bo=t;else for(j=n;j!==null;)t=j.nextEffect,j.nextEffect=null,j.flags&8&&(b=j,b.sibling=null,b.stateNode=null),j=t;if(n=e.pendingLanes,n===0&&(It=null),n===1?e===pf?ri++:(ri=0,pf=e):ri=0,r=r.stateNode,Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(hd,r,void 0,(r.current.flags&64)===64)}catch{}if(mt(e,Fe()),da)throw da=!1,e=cf,cf=null,e;return(U&8)!==0||jt(),null}function _$(){for(;j!==null;){var e=j.alternate;jl||ni===null||((j.flags&8)!==0?Mp(j,ni)&&(jl=!0):j.tag===13&&g$(e,j)&&Mp(j,ni)&&(jl=!0));var t=j.flags;(t&256)!==0&&d$(e,j),(t&512)===0||Er||(Er=!0,hi(97,function(){return Dr(),null})),j=j.nextEffect}}function Dr(){if(Bo!==90){var e=97Fe()-Nd?An(e,0):Id|=r),mt(e,t)}function P$(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Un()===99?1:2:(Ut===0&&(Ut=to),t=bn(62914560&~Ut),t===0&&(t=4194304))),r=rt(),e=Ws(e,t),e!==null&&(Ms(e,t,r),mt(e,r))}var w1;w1=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Pt=!0;else if((r&n)!==0)Pt=(e.flags&16384)!==0;else{switch(Pt=!1,t.tag){case 3:Pg(t),Xu();break;case 5:mg(t);break;case 1:qe(t.type)&&zl(t);break;case 4:Qc(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var o=t.type._context;he(ea,o._currentValue),o._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?$g(e,t,r):(he(ve,ve.current&1),t=Xt(e,t,r),t!==null?t.sibling:null);he(ve,ve.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return kg(e,t,r);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),he(ve,ve.current),n)break;return null;case 23:case 24:return t.lanes=0,qu(e,t,r)}return Xt(e,t,r)}else Pt=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Wn(t,Ve.current),jn(t,r),o=$d(null,t,n,e,o,r),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,qe(n)){var i=!0;zl(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sd(t);var l=n.getDerivedStateFromProps;typeof l=="function"&&na(t,n,l,e),o.updater=Hs,t.stateNode=o,o._reactInternals=t,Kc(t,n,e,r),t=tf(null,t,n,!0,i,r)}else t.tag=0,Ye(null,t,o,r),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=O$(o),e=bt(o,e),i){case 0:t=ef(null,t,o,e,r);break e;case 1:t=bg(null,t,o,e,r);break e;case 11:t=Sg(null,t,o,e,r);break e;case 14:t=xg(null,t,o,bt(o.type,e),n,r);break e}throw Error(I(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),ef(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),bg(e,t,n,o,r);case 3:if(Pg(t),n=t.updateQueue,e===null||n===null)throw Error(I(282));if(n=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,Wy(e,t),yi(t,n,null,r),n=t.memoizedState.element,n===o)Xu(),t=Xt(e,t,r);else{if(o=t.stateNode,(i=o.hydrate)&&(fr=Mn(t.stateNode.containerInfo.firstChild),Yt=t,i=zt=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S1)}catch(e){console.error(e)}}S1(),ki.exports=yt;var z$=ki.exports;function ga(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function D$(e,t,r){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function T$(e,t,r){for(let n=e+1;n{var s;r?.(a);const u=Array.from(((s=ga(a.currentTarget,e))==null?void 0:s.querySelectorAll(t))||[]).filter(w=>M$(a.currentTarget,w,e)),c=u.findIndex(w=>a.currentTarget===w),f=T$(c,u,n),d=D$(c,u,n),g=i==="rtl"?d:f,y=i==="rtl"?f:d;switch(a.key){case"ArrowRight":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[g].focus(),o&&u[g].click());break}case"ArrowLeft":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[y].focus(),o&&u[y].click());break}case"ArrowUp":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[d].focus(),o&&u[d].click());break}case"ArrowDown":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[f].focus(),o&&u[f].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!u[0].disabled&&u[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const w=u.length-1;!u[w].disabled&&u[w].focus();break}}}}function j$(e,t,r){var n;return r?Array.from(((n=ga(r,t))==null?void 0:n.querySelectorAll(e))||[]).findIndex(o=>o===r):null}var Gs={exports:{}},Mi={};/** @license React v17.0.2 - * react-jsx-runtime.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 L$=p.exports,b1=60103;Mi.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Ag=Symbol.for;b1=Ag("react.element"),Mi.Fragment=Ag("react.fragment")}var F$=L$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A$=Object.prototype.hasOwnProperty,V$={key:!0,ref:!0,__self:!0,__source:!0};function P1(e,t,r){var n,o={},i=null,l=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)A$.call(t,n)&&!V$.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:b1,type:e,key:i,ref:l,props:o,_owner:F$.current}}Mi.jsx=P1;Mi.jsxs=P1;Gs.exports=Mi;const S=Gs.exports.jsx,H=Gs.exports.jsxs,lt=Gs.exports.Fragment;function Ld(e){const t=p.exports.createContext(null);return[({children:o,value:i})=>S(t.Provider,{value:i,children:o}),()=>{const o=p.exports.useContext(t);if(o===null)throw new Error(e);return o}]}function xi(e){return Array.isArray(e)?e:[e]}function Vg(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}function ji(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==C.Fragment:!1}const H$=()=>{};function B$(e,t={active:!0}){return typeof e!="function"||!t.active?H$:r=>{var n;r.key==="Escape"&&(e(),(n=t.onTrigger)==null||n.call(t))}}function qt(e,t){return r=>{e?.(r),t?.(r)}}function W$(){const[e,t]=p.exports.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function U$({data:e}){const t=[],r=[],n=e.reduce((o,i,l)=>(i.group?o[i.group]?o[i.group].push(l):o[i.group]=[l]:r.push(l),o),{});return Object.keys(n).forEach(o=>{t.push(...n[o].map(i=>e[i]))}),t.push(...r.map(o=>e[o])),t}function G$(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}const Y$=typeof window<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function X$(e){function t(n){const o=Object.keys(n).reduce((i,l)=>(i[`${e}:${l}`]=a=>n[l](a.detail),i),{});Y$(()=>(Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i]),window.addEventListener(i,o[i])}),()=>Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i])})),[])}function r(n){return(...o)=>G$(`${e}:${String(n)}`,o[0])}return[t,r]}function $1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t({fontFamily:e.fontFamily||"sans-serif"})}function K$(e){return()=>({WebkitTapHighlightColor:"transparent","&:focus":{outlineOffset:2,outline:e.focusRing==="always"||e.focusRing==="auto"?`2px solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`:"none"},"&:focus:not(:focus-visible)":{outline:e.focusRing==="auto"||e.focusRing==="never"?"none":void 0}})}function Li(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Fd(e){const t=Li(e);return(r,n,o=!0,i=!0)=>{if(typeof r=="string"&&r.includes(".")){const[a,s]=r.split("."),u=parseInt(s,10);if(a in e.colors&&u>=0&&u<10)return e.colors[a][typeof n=="number"&&!i?n:u]}const l=typeof n=="number"?n:t();return r in e.colors?e.colors[r][l]:o?e.colors[e.primaryColor][l]:r}}function E1(e){let t="";for(let r=1;r{const o={from:n?.from||e.defaultGradient.from,to:n?.to||e.defaultGradient.to,deg:n?.deg||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function Ad(e){if(typeof e.size=="number")return e.size;const t=e.sizes[e.size];return t!==void 0?t:e.size||e.sizes.md}function J$(e){return t=>`@media (min-width: ${Ad({size:t,sizes:e.breakpoints})+1}px)`}function eO(e){return t=>`@media (max-width: ${Ad({size:t,sizes:e.breakpoints})}px)`}function tO(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function rO(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("")}const r=parseInt(t,16),n=r>>16&255,o=r>>8&255,i=r&255;return{r:n,g:o,b:i,a:1}}function nO(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}function Vd(e){return tO(e)?rO(e):e.startsWith("rgb")?nO(e):{r:0,g:0,b:0,a:1}}function Pn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";const{r,g:n,b:o}=Vd(e);return`rgba(${r}, ${n}, ${o}, ${t})`}function oO(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function iO(e,t){const{r,g:n,b:o,a:i}=Vd(e),l=1-t,a=s=>Math.round(s*l);return`rgba(${a(r)}, ${a(n)}, ${a(o)}, ${i})`}function lO(e,t){const{r,g:n,b:o,a:i}=Vd(e),l=a=>Math.round(a+(255-a)*t);return`rgba(${l(r)}, ${l(n)}, ${l(o)}, ${i})`}function aO(e){return t=>{if(typeof t=="number")return t;const r=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}}function sO(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}function uO(e){const t=Fd(e),r=Li(e),n=R1(e);return({variant:o,color:i,gradient:l,primaryFallback:a})=>{const s=sO(i,e);if(o==="light")return{border:"transparent",background:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1),color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?7:1,a,!1),e.colorScheme==="dark"?.25:.65)};if(o==="default")return{border:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4],background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,color:e.colorScheme==="dark"?e.white:e.black,hover:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]};if(o==="white")return{border:"transparent",background:e.white,color:t(i,r()),hover:null};if(o==="outline")return{border:t(i,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(i,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?Pn(t(i,5,a,!1),.05):Pn(t(i,0,a,!1),.35)};if(o==="gradient")return{background:n(l),color:e.white,border:"transparent",hover:null};if(o==="subtle")return{border:"transparent",background:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1)};const u=r(),c=s.isSplittedColor?s.shade:u,f=s.isSplittedColor?s.key:i;return{border:"transparent",background:t(f,c,a),color:e.white,hover:t(f,c===9?8:c+1)}}}function cO(e){return t=>{const r=Li(e)(t);return e.colors[e.primaryColor][r]}}function fO(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}const Oe={fontStyles:q$,themeColor:Fd,focusStyles:K$,linearGradient:Q$,radialGradient:Z$,smallerThan:eO,largerThan:J$,rgba:Pn,size:Ad,cover:oO,darken:iO,lighten:lO,radius:aO,variant:uO,primaryShade:Li,hover:fO,gradient:R1,primaryColor:cO};var dO=Object.defineProperty,pO=Object.defineProperties,gO=Object.getOwnPropertyDescriptors,Hg=Object.getOwnPropertySymbols,mO=Object.prototype.hasOwnProperty,vO=Object.prototype.propertyIsEnumerable,Bg=(e,t,r)=>t in e?dO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hO=(e,t)=>{for(var r in t||(t={}))mO.call(t,r)&&Bg(e,r,t[r]);if(Hg)for(var r of Hg(t))vO.call(t,r)&&Bg(e,r,t[r]);return e},yO=(e,t)=>pO(e,gO(t));function k1(e){return yO(hO({},e),{fn:{fontStyles:Oe.fontStyles(e),themeColor:Oe.themeColor(e),focusStyles:Oe.focusStyles(e),largerThan:Oe.largerThan(e),smallerThan:Oe.smallerThan(e),radialGradient:Oe.radialGradient,linearGradient:Oe.linearGradient,gradient:Oe.gradient(e),rgba:Oe.rgba,size:Oe.size,cover:Oe.cover,lighten:Oe.lighten,darken:Oe.darken,primaryShade:Oe.primaryShade(e),radius:Oe.radius(e),variant:Oe.variant(e),hover:Oe.hover,primaryColor:Oe.primaryColor(e)}})}Object.keys(C1);const wO=["xs","sm","md","lg","xl"],_O={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:C1,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en"},Hd=k1(_O);function SO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ie(oo,--Ke):0,Yn--,we===10&&(Yn=1,Xs--),we}function nt(){return we=Ke2||Pi(we)>3?"":" "}function DO(e,t){for(;--t&&nt()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return Fi(e,Fl()+(t<6&&Dt()==32&&nt()==32))}function vf(e){for(;nt();)switch(we){case e:return Ke;case 34:case 39:e!==34&&e!==39&&vf(we);break;case 40:e===41&&vf(e);break;case 92:nt();break}return Ke}function TO(e,t){for(;nt()&&e+we!==47+10;)if(e+we===42+42&&Dt()===47)break;return"/*"+Fi(t,Ke-1)+"*"+Ys(e===47?e:nt())}function MO(e){for(;!Pi(Dt());)nt();return Fi(e,Ke)}function jO(e){return M1(Vl("",null,null,null,[""],e=T1(e),0,[0],e))}function Vl(e,t,r,n,o,i,l,a,s){for(var u=0,c=0,f=l,d=0,g=0,y=0,w=1,v=1,m=1,h=0,_="",x=o,$=i,b=n,P=_;v;)switch(y=h,h=nt()){case 40:if(y!=108&&Ie(P,f-1)==58){mf(P+=re(Al(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=Al(h);break;case 9:case 10:case 13:case 32:P+=zO(y);break;case 92:P+=DO(Fl()-1,7);continue;case 47:switch(Dt()){case 42:case 47:fl(LO(TO(nt(),Fl()),t,r),s);break;default:P+="/"}break;case 123*w:a[u++]=Ct(P)*m;case 125*w:case 59:case 0:switch(h){case 0:case 125:v=0;case 59+c:m==-1&&(P=re(P,/\f/g,"")),g>0&&Ct(P)-f&&fl(g>32?Ug(P+";",n,r,f-1):Ug(re(P," ","")+";",n,r,f-2),s);break;case 59:P+=";";default:if(fl(b=Wg(P,t,r,u,c,o,a,_,x=[],$=[],f),i),h===123)if(c===0)Vl(P,t,b,b,x,i,f,a,$);else switch(d===99&&Ie(P,3)===110?100:d){case 100:case 108:case 109:case 115:Vl(e,b,b,n&&fl(Wg(e,b,b,0,0,o,a,_,o,x=[],f),$),o,$,f,a,n?x:$);break;default:Vl(P,b,b,b,[""],$,0,a,$)}}u=c=g=0,w=m=1,_=P="",f=l;break;case 58:f=1+Ct(P),g=y;default:if(w<1){if(h==123)--w;else if(h==125&&w++==0&&NO()==125)continue}switch(P+=Ys(h),h*w){case 38:m=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(Ct(P)-1)*m,m=1;break;case 64:Dt()===45&&(P+=Al(nt())),d=Dt(),c=f=Ct(_=P+=MO(Fl())),h++;break;case 45:y===45&&Ct(P)==2&&(w=0)}}return i}function Wg(e,t,r,n,o,i,l,a,s,u,c){for(var f=o-1,d=o===0?i:[""],g=Ud(d),y=0,w=0,v=0;y0?d[m]+" "+h:re(h,/&\f/g,d[m])))&&(s[v++]=_);return qs(e,t,r,o===0?Bd:a,s,u,c)}function LO(e,t,r){return qs(e,t,r,I1,Ys(IO()),bi(e,2,-2),0)}function Ug(e,t,r,n){return qs(e,t,r,Wd,bi(e,0,n),bi(e,n+1,-1),n)}function Hn(e,t){for(var r="",n=Ud(e),o=0;o6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+ma+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mf(e,"stretch")?j1(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Ct(e)-3-(~mf(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Ie(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return te+e+je+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+je+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+je+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+je+e+e}return e}var XO=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Wd:t.return=j1(t.value,t.length);break;case N1:return Hn([No(t,{value:re(t.value,"@","@"+te)})],o);case Bd:if(t.length)return kO(t.props,function(i){switch(RO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([No(t,{props:[re(i,/:(read-\w+)/,":"+ma+"$1")]})],o);case"::placeholder":return Hn([No(t,{props:[re(i,/:(plac\w+)/,":"+te+"input-$1")]}),No(t,{props:[re(i,/:(plac\w+)/,":"+ma+"$1")]}),No(t,{props:[re(i,/:(plac\w+)/,je+"input-$1")]})],o)}return""})}},qO=[XO],L1=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||qO,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sC=/[A-Z]|^ms/g,uC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W1=function(t){return t.charCodeAt(1)===45},Yg=function(t){return t!=null&&typeof t!="boolean"},tc=HO(function(e){return W1(e)?e:e.replace(sC,"-$&").toLowerCase()}),Xg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(uC,function(n,o,i){return Et={name:o,styles:i,next:Et},o})}return aC[t]!==1&&!W1(t)&&typeof r=="number"&&r!==0?r+"px":r};function $i(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Et={name:r.name,styles:r.styles,next:Et},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Et={name:n.name,styles:n.styles,next:Et},n=n.next;var o=r.styles+";";return o}return cC(e,t,r)}case"function":{if(e!==void 0){var i=Et,l=r(e);return Et=i,$i(e,t,l)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function cC(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot in e?gC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wC=(e,t)=>{for(var r in t||(t={}))hC.call(t,r)&&Zg(e,r,t[r]);if(Qg)for(var r of Qg(t))yC.call(t,r)&&Zg(e,r,t[r]);return e},_C=(e,t)=>mC(e,vC(t));function SC({theme:e}){return C.createElement(qd,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},body:_C(wC({},e.fn.fontStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function dl(e,t,r){Object.keys(t).forEach(n=>{e[`--mantine-${r}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function xC({theme:e}){const t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--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}`};dl(t,e.shadows,"shadow"),dl(t,e.fontSizes,"font-size"),dl(t,e.radius,"radius"),dl(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((o,i)=>{t[`--mantine-color-${n}-${i}`]=o})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=`${r[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),C.createElement(qd,{styles:{":root":t}})}var bC=Object.defineProperty,PC=Object.defineProperties,$C=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertySymbols,OC=Object.prototype.hasOwnProperty,CC=Object.prototype.propertyIsEnumerable,em=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fr=(e,t)=>{for(var r in t||(t={}))OC.call(t,r)&&em(e,r,t[r]);if(Jg)for(var r of Jg(t))CC.call(t,r)&&em(e,r,t[r]);return e},tm=(e,t)=>PC(e,$C(t));function EC(e,t){return t?Object.keys(e).reduce((r,n)=>{if(n==="headings"&&t.headings){const o=t.headings.sizes?Object.keys(e.headings.sizes).reduce((i,l)=>(i[l]=Fr(Fr({},e.headings.sizes[l]),t.headings.sizes[l]),i),{}):e.headings.sizes;return tm(Fr({},r),{headings:tm(Fr(Fr({},e.headings),t.headings),{sizes:o})})}return r[n]=typeof t[n]=="object"?Fr(Fr({},e[n]),t[n]):typeof t[n]=="number"||typeof t[n]=="boolean"?t[n]:t[n]||e[n],r},{}):e}function RC(e,t){return k1(EC(e,t))}function kC(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const IC={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:"1px dotted ButtonText"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"},"[hidden]":{display:"none"}};function NC(){return C.createElement(qd,{styles:IC})}var zC=Object.defineProperty,rm=Object.getOwnPropertySymbols,DC=Object.prototype.hasOwnProperty,TC=Object.prototype.propertyIsEnumerable,nm=(e,t,r)=>t in e?zC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oi=(e,t)=>{for(var r in t||(t={}))DC.call(t,r)&&nm(e,r,t[r]);if(rm)for(var r of rm(t))TC.call(t,r)&&nm(e,r,t[r]);return e};const va=p.exports.createContext({theme:Hd});function st(){var e;return((e=p.exports.useContext(va))==null?void 0:e.theme)||Hd}function MC(e){const t=st(),r=n=>{var o,i;return{styles:((o=t.components[n])==null?void 0:o.styles)||{},classNames:((i=t.components[n])==null?void 0:i.classNames)||{}}};return Array.isArray(e)?e.map(r):[r(e)]}function jC(){var e;return(e=p.exports.useContext(va))==null?void 0:e.emotionCache}function ee(e,t,r){var n;const i=(n=st().components[e])==null?void 0:n.defaultProps;return oi(oi(oi({},t),i),kC(r))}function Y1({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:o=!1,inherit:i=!1,children:l}){const a=p.exports.useContext(va),s=RC(Hd,i?oi(oi({},a.theme),e):e);return H(va.Provider,{value:{theme:s,emotionCache:t},children:[r&&S(NC,{}),n&&S(SC,{theme:s}),o&&S(xC,{theme:s}),l]})}Y1.displayName="@mantine/core/MantineProvider";const X1=p.exports.createContext({classNames:{},styles:{},unstyled:!1});function q1({children:e,classNames:t,unstyled:r,styles:n,staticSelector:o}){return S(X1.Provider,{value:{classNames:t,styles:n,unstyled:r,staticSelector:o},children:e})}function fn(){return p.exports.useContext(X1)}const LC={app:100,modal:200,popover:300,overlay:400,max:9999};function io(e){return LC[e]}var om=Object.getOwnPropertySymbols,FC=Object.prototype.hasOwnProperty,AC=Object.prototype.propertyIsEnumerable,VC=(e,t)=>{var r={};for(var n in e)FC.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&om)for(var n of om(e))t.indexOf(n)<0&&AC.call(e,n)&&(r[n]=e[n]);return r};function lu(e){const t=e,{m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:g,pl:y,pr:w}=t,v=VC(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr"]),m={m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:g,pl:y,pr:w};return Object.keys(m).forEach(h=>{m[h]===void 0&&delete m[h]}),{systemStyles:m,rest:v}}function HC(e,t){const r=p.exports.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const BC=L1({key:"mantine",prepend:!0});function WC(){return jC()||BC}var UC=Object.defineProperty,im=Object.getOwnPropertySymbols,GC=Object.prototype.hasOwnProperty,YC=Object.prototype.propertyIsEnumerable,lm=(e,t,r)=>t in e?UC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XC=(e,t)=>{for(var r in t||(t={}))GC.call(t,r)&&lm(e,r,t[r]);if(im)for(var r of im(t))YC.call(t,r)&&lm(e,r,t[r]);return e};const rc="ref";function qC(e){let t;if(e.length!==1)return{args:e,ref:t};const[r]=e;if(!(r instanceof Object))return{args:e,ref:t};if(!(rc in r))return{args:e,ref:t};t=r[rc];const n=XC({},r);return delete n[rc],{args:[n],ref:t}}const{cssFactory:KC}=(()=>{function e(r,n,o){const i=[],l=oC(r,i,o);return i.length<2?o:l+n(i)}function t(r){const{cache:n}=r,o=(...l)=>{const{ref:a,args:s}=qC(l),u=U1(s,n.registered);return B1(n,u,!1),`${n.key}-${u.name}${a===void 0?"":` ${a}`}`};return{css:o,cx:(...l)=>e(n.registered,o,O1(l))}}return{cssFactory:t}})();function K1(){const e=WC();return HC(()=>KC({cache:e}),[e])}function QC({cx:e,classes:t,context:r,classNames:n,name:o}){const i=r.reduce((l,a)=>(Object.keys(a.classNames).forEach(s=>{typeof l[s]!="string"?l[s]=`${a.classNames[s]}`:l[s]=`${l[s]} ${a.classNames[s]}`}),l),{});return Object.keys(t).reduce((l,a)=>(l[a]=e(t[a],i[a],n!=null&&n[a],Array.isArray(o)?o.filter(Boolean).map(s=>`mantine-${s}-${a}`).join(" "):o?`mantine-${o}-${a}`:null),l),{})}var ZC=Object.defineProperty,am=Object.getOwnPropertySymbols,JC=Object.prototype.hasOwnProperty,e2=Object.prototype.propertyIsEnumerable,sm=(e,t,r)=>t in e?ZC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nc=(e,t)=>{for(var r in t||(t={}))JC.call(t,r)&&sm(e,r,t[r]);if(am)for(var r of am(t))e2.call(t,r)&&sm(e,r,t[r]);return e};function t2(e){return`__mantine-ref-${e||""}`}function um(e,t,r){const n=o=>typeof o=="function"?o(t,r||{}):o||{};return Array.isArray(e)?e.map(o=>n(o.styles)).reduce((o,i)=>(Object.keys(i).forEach(l=>{o[l]?o[l]=nc(nc({},o[l]),i[l]):o[l]=nc({},i[l])}),o),{}):n(e)}function Q(e){const t=typeof e=="function"?e:()=>e;function r(n,o){const i=st(),l=MC(o?.name),{css:a,cx:s}=K1(),u=t(i,n,t2),c=um(o?.styles,i,n),f=um(l,i,n),d=Object.fromEntries(Object.keys(u).map(g=>{const y=s({[a(u[g])]:!o?.unstyled},a(f[g]),a(c[g]));return[g,y]}));return{classes:QC({cx:s,classes:d,context:l,classNames:o?.classNames,name:o?.name}),cx:s,theme:i}}return r}var r2=Object.defineProperty,n2=Object.defineProperties,o2=Object.getOwnPropertyDescriptors,cm=Object.getOwnPropertySymbols,i2=Object.prototype.hasOwnProperty,l2=Object.prototype.propertyIsEnumerable,fm=(e,t,r)=>t in e?r2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zo=(e,t)=>{for(var r in t||(t={}))i2.call(t,r)&&fm(e,r,t[r]);if(cm)for(var r of cm(t))l2.call(t,r)&&fm(e,r,t[r]);return e},Do=(e,t)=>n2(e,o2(t));const To={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},pl={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},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(-20px) 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(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) 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(zo({},To),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Do(zo({},To),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Do(zo({},To),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Do(zo({},To),{common:{transformOrigin:"top left"}}),"pop-top-right":Do(zo({},To),{common:{transformOrigin:"top right"}})},dm=["mousedown","touchstart"];function a2(e,t,r){const n=p.exports.useRef();return p.exports.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(r)){const a=l?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(l);r.every(u=>!!u&&!u.contains(l))&&!a&&e()}else n.current&&!n.current.contains(l)&&e()};return(t||dm).forEach(i=>document.addEventListener(i,o)),()=>{(t||dm).forEach(i=>document.removeEventListener(i,o))}},[n,e,r]),n}function s2(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function u2(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function c2(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,o]=p.exports.useState(r?!1:u2(e,t)),i=p.exports.useRef();return p.exports.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),s2(i.current,l=>o(l.matches))},[e]),n}function oc(e,t,r){return Math.min(Math.max(e,t),r)}const Q1=typeof document<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function kr(e,t){const r=p.exports.useRef(!1);p.exports.useEffect(()=>{r.current?e():r.current=!0},t)}function Z1({opened:e,shouldReturnFocus:t=!0}){const r=p.exports.useRef(),n=()=>{var o;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((o=r.current)==null||o.focus())};return kr(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e]),n}const f2=/input|select|textarea|button|object/,J1="a, input, select, textarea, button, object, [tabindex]";function d2(e){return e.style.display==="none"}function p2(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&r!==document.body;){if(d2(r))return!1;r=r.parentNode}return!0}function ew(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function hf(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(ew(e));return(f2.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&p2(e)}function tw(e){const t=ew(e);return(Number.isNaN(t)||t>=0)&&hf(e)}function g2(e){return Array.from(e.querySelectorAll(J1)).filter(tw)}function m2(e,t){const r=g2(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();const i=r[t.shiftKey?r.length-1:0];i&&i.focus()}function v2(e,t="body > :not(script)"){const r=Array.from(document.querySelectorAll(t)).map(n=>{if(n.contains(e))return;const o=n.getAttribute("aria-hidden");return(o===null||o==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:o}});return()=>{r.forEach(n=>{!n||(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function rw(e=!0){const t=p.exports.useRef(),r=p.exports.useRef(null),n=p.exports.useCallback(o=>{if(!!e)if(r.current&&r.current(),o){const i=l=>{r.current=v2(l);let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(J1));a=s.find(tw)||s.find(hf)||null,!a&&hf(o)&&(a=o)}a&&a.focus()};setTimeout(()=>{o.ownerDocument&&i(o)}),t.current=o}else t.current=null},[e]);return p.exports.useEffect(()=>{if(!e)return;const o=i=>{i.key==="Tab"&&t.current&&m2(t.current,i)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e]),n}const h2=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,y2=C["useId".toString()]||(()=>{});function w2(){const[e,t]=p.exports.useState("");return Q1(()=>{t(h2())},[]),e}function _2(){const e=y2();return e?`mantine-${e.replace(/:/g,"")}`:""}function lo(e){return typeof e=="string"?e:_2()||w2()}function pm(e,t,r){p.exports.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[])}function nw(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function S2(...e){return t=>{e.forEach(r=>nw(r,t))}}function dn(...e){return p.exports.useCallback(S2(...e),e)}function Ai({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[o,i]=p.exports.useState(t!==void 0?t:r),l=a=>{i(a),n?.(a)};return e!==void 0?[e,n,!0]:[o,l,!1]}function ir(e,t){const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)}const gl="dots";function x2({total:e,siblings:t=1,boundaries:r=1,page:n,initialPage:o=1,onChange:i}){const[l,a]=Ai({value:n,onChange:i,defaultValue:o,finalValue:o}),s=y=>{y<=0?a(1):y>e?a(e):a(y)},u=()=>s(l+1),c=()=>s(l-1),f=()=>s(1),d=()=>s(e);return{range:p.exports.useMemo(()=>{if(t*2+3+r*2>=e)return ir(1,e);const w=Math.max(l-t,r),v=Math.min(l+t,e-r),m=w>r+2,h=ve<.5?2*e*e:-1+(4-2*e)*e,P2=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:i})=>{if(!t||!r&&typeof document>"u")return 0;const l=!!r,s=(r||document.body).getBoundingClientRect(),u=t.getBoundingClientRect(),c=f=>u[f]-s[f];if(e==="y"){const f=c("top");if(f===0)return 0;if(n==="start"){const g=f-o;return g<=u.height*(i?0:1)||!i?g:0}const d=l?s.height:window.innerHeight;if(n==="end"){const g=f+o-d+u.height;return g>=-u.height*(i?0:1)||!i?g:0}return n==="center"?f-d/2+u.height/2:0}if(e==="x"){const f=c("left");if(f===0)return 0;if(n==="start"){const g=f-o;return g<=u.width||!i?g:0}const d=l?s.width:window.innerWidth;if(n==="end"){const g=f+o-d+u.width;return g>=-u.width||!i?g:0}return n==="center"?f-d/2+u.width/2:0}return 0},$2=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const r=e==="y"?"scrollTop":"scrollLeft";if(t)return t[r];const{body:n,documentElement:o}=document;return n[r]+o[r]},O2=({axis:e,parent:t,distance:r})=>{if(!t&&typeof document>"u")return;const n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=r;else{const{body:o,documentElement:i}=document;o[n]=r,i[n]=r}};function C2({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=b2,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const a=p.exports.useRef(0),s=p.exports.useRef(0),u=p.exports.useRef(!1),c=p.exports.useRef(null),f=p.exports.useRef(null),d=ow(),g=()=>{a.current&&cancelAnimationFrame(a.current)},y=p.exports.useCallback(({alignment:v="start"}={})=>{var m;u.current=!1,a.current&&g();const h=(m=$2({parent:c.current,axis:t}))!=null?m:0,_=P2({parent:c.current,target:f.current,axis:t,alignment:v,offset:o,isList:l})-(c.current?0:h);function x(){s.current===0&&(s.current=performance.now());const b=performance.now()-s.current,P=d||e===0?1:b/e,E=h+_*n(P);O2({parent:c.current,axis:t,distance:E}),!u.current&&P<1?a.current=requestAnimationFrame(x):(typeof r=="function"&&r(),s.current=0,a.current=0,g())}x()},[c.current]),w=()=>{i&&(u.current=!0)};return pm("wheel",w,{passive:!0}),pm("touchmove",w,{passive:!0}),p.exports.useEffect(()=>g,[]),{scrollableRef:c,targetRef:f,scrollIntoView:y,cancel:g}}function E2(){if(typeof window>"u"||typeof document>"u")return 0;const e=parseInt(window.getComputedStyle(document.body).paddingRight,10),t=window.innerWidth-document.documentElement.clientWidth;return e+t}const R2=({disableBodyPadding:e})=>{const t=e?null:E2();return`body { - --removed-scroll-width: ${t}px; - touch-action: none; - overflow: hidden !important; - position: relative !important; - ${t?"padding-right: var(--removed-scroll-width) !important;":""} - `};function k2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function I2(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function N2(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function z2(e,t={disableBodyPadding:!1}){const[r,n]=p.exports.useState(e||!1),o=p.exports.useRef(0),{disableBodyPadding:i}=t,l=p.exports.useRef(null),a=()=>{o.current=window.scrollY;const u=R2({disableBodyPadding:i}),c=N2();k2(c,u),I2(c),l.current=c},s=()=>{!l?.current||(l.current.parentNode.removeChild(l.current),l.current=null)};return p.exports.useEffect(()=>(r?a():s(),s),[r]),p.exports.useEffect(()=>{e!==void 0&&n(e)},[e]),p.exports.useEffect(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[r,n]}function D2(){const{userAgent:e}=window.navigator,t=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,r=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return t.test(e)?"macos":n.test(e)?"ios":r.test(e)?"windows":/Android/i.test(e)?"android":/Linux/i.test(e)?"linux":"undetermined"}function T2(){return typeof window<"u"?D2():"undetermined"}function Hl(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const gm={mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",pt:"paddingTop",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight"},M2=["-xs","-sm","-md","-lg","-xl"];function Ar(e){return typeof e=="string"||typeof e=="number"}function Vr(e,t){return M2.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}function mm(e,t){const r={};if(Ar(e.p)){const n=Vr(e.p,t);r.padding=n}if(Ar(e.m)){const n=Vr(e.m,t);r.margin=n}if(Ar(e.py)){const n=Vr(e.py,t);r.paddingTop=n,r.paddingBottom=n}if(Ar(e.px)){const n=Vr(e.px,t);r.paddingLeft=n,r.paddingRight=n}if(Ar(e.my)){const n=Vr(e.my,t);r.marginTop=n,r.marginBottom=n}if(Ar(e.mx)){const n=Vr(e.mx,t);r.marginLeft=n,r.marginRight=n}return Object.keys(gm).forEach(n=>{Ar(e[n])&&(r[gm[n]]=t.fn.size({size:Vr(e[n],t),sizes:t.spacing}))}),r}function vm(e,t){return typeof e=="function"?e(t):e}function j2(e,t,r){const n=st(),{css:o,cx:i}=K1();return Array.isArray(e)?i(r,o(mm(t,n)),e.map(l=>o(vm(l,n)))):i(r,o(vm(e,n)),o(mm(t,n)))}var L2=Object.defineProperty,ha=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,hm=(e,t,r)=>t in e?L2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F2=(e,t)=>{for(var r in t||(t={}))iw.call(t,r)&&hm(e,r,t[r]);if(ha)for(var r of ha(t))lw.call(t,r)&&hm(e,r,t[r]);return e},A2=(e,t)=>{var r={};for(var n in e)iw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ha)for(var n of ha(e))t.indexOf(n)<0&&lw.call(e,n)&&(r[n]=e[n]);return r};const aw=p.exports.forwardRef((e,t)=>{var r=e,{className:n,component:o,style:i,sx:l}=r,a=A2(r,["className","component","style","sx"]);const{systemStyles:s,rest:u}=lu(a);return S(o||"div",{...F2({ref:t,className:j2(l,s,n),style:i},u)})});aw.displayName="@mantine/core/Box";const X=aw;var V2=Object.defineProperty,H2=Object.defineProperties,B2=Object.getOwnPropertyDescriptors,ym=Object.getOwnPropertySymbols,W2=Object.prototype.hasOwnProperty,U2=Object.prototype.propertyIsEnumerable,wm=(e,t,r)=>t in e?V2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_m=(e,t)=>{for(var r in t||(t={}))W2.call(t,r)&&wm(e,r,t[r]);if(ym)for(var r of ym(t))U2.call(t,r)&&wm(e,r,t[r]);return e},G2=(e,t)=>H2(e,B2(t)),Y2=Q(e=>({root:G2(_m(_m({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})),X2=Y2,q2=Object.defineProperty,ya=Object.getOwnPropertySymbols,sw=Object.prototype.hasOwnProperty,uw=Object.prototype.propertyIsEnumerable,Sm=(e,t,r)=>t in e?q2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K2=(e,t)=>{for(var r in t||(t={}))sw.call(t,r)&&Sm(e,r,t[r]);if(ya)for(var r of ya(t))uw.call(t,r)&&Sm(e,r,t[r]);return e},Q2=(e,t)=>{var r={};for(var n in e)sw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&uw.call(e,n)&&(r[n]=e[n]);return r};const cw=p.exports.forwardRef((e,t)=>{const r=ee("UnstyledButton",{},e),{className:n,component:o="button",unstyled:i}=r,l=Q2(r,["className","component","unstyled"]),{classes:a,cx:s}=X2(null,{name:"UnstyledButton",unstyled:i});return S(X,{...K2({component:o,ref:t,className:s(a.root,n),type:o==="button"?"button":void 0},l)})});cw.displayName="@mantine/core/UnstyledButton";const au=cw;var Z2=Object.defineProperty,J2=Object.defineProperties,eE=Object.getOwnPropertyDescriptors,xm=Object.getOwnPropertySymbols,tE=Object.prototype.hasOwnProperty,rE=Object.prototype.propertyIsEnumerable,bm=(e,t,r)=>t in e?Z2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fw=(e,t)=>{for(var r in t||(t={}))tE.call(t,r)&&bm(e,r,t[r]);if(xm)for(var r of xm(t))rE.call(t,r)&&bm(e,r,t[r]);return e},nE=(e,t)=>J2(e,eE(t));const Uo={xs:18,sm:22,md:28,lg:34,xl:44};function oE({variant:e,theme:t,color:r}){if(e==="transparent")return{border:"1px solid transparent",color:t.fn.variant({variant:"subtle",color:r}).color,backgroundColor:"transparent"};const n=t.fn.variant({color:r,variant:e});return fw({backgroundColor:n.background,color:n.color,border:`1px solid ${n.border}`},t.fn.hover({backgroundColor:n.hover}))}var iE=Q((e,{color:t,size:r,radius:n,variant:o})=>({root:nE(fw({},oE({variant:o,theme:e,color:t})),{position:"relative",height:e.fn.size({size:r,sizes:Uo}),minHeight:e.fn.size({size:r,sizes:Uo}),width:e.fn.size({size:r,sizes:Uo}),minWidth:e.fn.size({size:r,sizes:Uo}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),"&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}})})),lE=iE,aE=Object.defineProperty,wa=Object.getOwnPropertySymbols,dw=Object.prototype.hasOwnProperty,pw=Object.prototype.propertyIsEnumerable,Pm=(e,t,r)=>t in e?aE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sE=(e,t)=>{for(var r in t||(t={}))dw.call(t,r)&&Pm(e,r,t[r]);if(wa)for(var r of wa(t))pw.call(t,r)&&Pm(e,r,t[r]);return e},uE=(e,t)=>{var r={};for(var n in e)dw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wa)for(var n of wa(e))t.indexOf(n)<0&&pw.call(e,n)&&(r[n]=e[n]);return r};function cE(e){var t=e,{size:r,color:n}=t,o=uE(t,["size","color"]);return C.createElement("svg",sE({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${r}px`},o),C.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},C.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},C.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},C.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},C.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},C.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var fE=Object.defineProperty,_a=Object.getOwnPropertySymbols,gw=Object.prototype.hasOwnProperty,mw=Object.prototype.propertyIsEnumerable,$m=(e,t,r)=>t in e?fE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dE=(e,t)=>{for(var r in t||(t={}))gw.call(t,r)&&$m(e,r,t[r]);if(_a)for(var r of _a(t))mw.call(t,r)&&$m(e,r,t[r]);return e},pE=(e,t)=>{var r={};for(var n in e)gw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_a)for(var n of _a(e))t.indexOf(n)<0&&mw.call(e,n)&&(r[n]=e[n]);return r};function gE(e){var t=e,{size:r,color:n}=t,o=pE(t,["size","color"]);return C.createElement("svg",dE({width:`${r}px`,height:`${r}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},o),C.createElement("g",{fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},C.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),C.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},C.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var mE=Object.defineProperty,Sa=Object.getOwnPropertySymbols,vw=Object.prototype.hasOwnProperty,hw=Object.prototype.propertyIsEnumerable,Om=(e,t,r)=>t in e?mE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vE=(e,t)=>{for(var r in t||(t={}))vw.call(t,r)&&Om(e,r,t[r]);if(Sa)for(var r of Sa(t))hw.call(t,r)&&Om(e,r,t[r]);return e},hE=(e,t)=>{var r={};for(var n in e)vw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sa)for(var n of Sa(e))t.indexOf(n)<0&&hw.call(e,n)&&(r[n]=e[n]);return r};function yE(e){var t=e,{size:r,color:n}=t,o=hE(t,["size","color"]);return C.createElement("svg",vE({width:`${r}px`,height:`${r/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},o),C.createElement("circle",{cx:"15",cy:"15",r:"15"},C.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},C.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),C.createElement("circle",{cx:"105",cy:"15",r:"15"},C.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),C.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var wE=Object.defineProperty,xa=Object.getOwnPropertySymbols,yw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,Cm=(e,t,r)=>t in e?wE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_E=(e,t)=>{for(var r in t||(t={}))yw.call(t,r)&&Cm(e,r,t[r]);if(xa)for(var r of xa(t))ww.call(t,r)&&Cm(e,r,t[r]);return e},SE=(e,t)=>{var r={};for(var n in e)yw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xa)for(var n of xa(e))t.indexOf(n)<0&&ww.call(e,n)&&(r[n]=e[n]);return r};const ic={bars:cE,oval:gE,dots:yE},xE={xs:18,sm:22,md:36,lg:44,xl:58},bE={size:"md"};function Kd(e){const t=ee("Loader",bE,e),{size:r,color:n,variant:o}=t,i=SE(t,["size","color","variant"]),l=st(),a=o in ic?o:l.loader;return C.createElement(X,_E({role:"presentation",component:ic[a]||ic.bars,size:l.fn.size({size:r,sizes:xE}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:n||l.primaryColor}).background},i))}Kd.displayName="@mantine/core/Loader";var PE=Object.defineProperty,ba=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,Em=(e,t,r)=>t in e?PE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rm=(e,t)=>{for(var r in t||(t={}))_w.call(t,r)&&Em(e,r,t[r]);if(ba)for(var r of ba(t))Sw.call(t,r)&&Em(e,r,t[r]);return e},$E=(e,t)=>{var r={};for(var n in e)_w.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ba)for(var n of ba(e))t.indexOf(n)<0&&Sw.call(e,n)&&(r[n]=e[n]);return r};const OE={color:"gray",size:"md",variant:"subtle",loading:!1},xw=p.exports.forwardRef((e,t)=>{const r=ee("ActionIcon",OE,e),{className:n,color:o,children:i,radius:l,size:a,variant:s,disabled:u,loaderProps:c,loading:f,unstyled:d}=r,g=$E(r,["className","color","children","radius","size","variant","disabled","loaderProps","loading","unstyled"]),{classes:y,cx:w,theme:v}=lE({size:a,radius:l,color:o,variant:s},{name:"ActionIcon",unstyled:d}),m=v.fn.variant({color:o,variant:"light"}),h=S(Kd,{...Rm({color:m.color,size:v.fn.size({size:a,sizes:Uo})-12},c)});return S(au,{...Rm({className:w(y.root,n),ref:t,disabled:u||f,"data-disabled":u||void 0,"data-loading":f||void 0,unstyled:d},g),children:f?h:i})});xw.displayName="@mantine/core/ActionIcon";const Ot=xw;function bw(e){const{children:t,target:r,className:n}=ee("Portal",{},e),o=st(),[i,l]=p.exports.useState(!1),a=p.exports.useRef();return Q1(()=>(l(!0),a.current=r?typeof r=="string"?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(a.current),()=>{!r&&document.body.removeChild(a.current)}),[r]),i?ki.exports.createPortal(S("div",{className:n,dir:o.dir,children:t}),a.current):null}bw.displayName="@mantine/core/Portal";var CE=Object.defineProperty,Pa=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable,km=(e,t,r)=>t in e?CE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EE=(e,t)=>{for(var r in t||(t={}))Pw.call(t,r)&&km(e,r,t[r]);if(Pa)for(var r of Pa(t))$w.call(t,r)&&km(e,r,t[r]);return e},RE=(e,t)=>{var r={};for(var n in e)Pw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pa)for(var n of Pa(e))t.indexOf(n)<0&&$w.call(e,n)&&(r[n]=e[n]);return r};function Vi(e){var t=e,{withinPortal:r=!0,children:n}=t,o=RE(t,["withinPortal","children"]);return r?C.createElement(bw,EE({},o),n):C.createElement(C.Fragment,null,n)}Vi.displayName="@mantine/core/OptionalPortal";var kE=Object.defineProperty,Im=Object.getOwnPropertySymbols,IE=Object.prototype.hasOwnProperty,NE=Object.prototype.propertyIsEnumerable,Nm=(e,t,r)=>t in e?kE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))IE.call(t,r)&&Nm(e,r,t[r]);if(Im)for(var r of Im(t))NE.call(t,r)&&Nm(e,r,t[r]);return e};function Ow(e){return C.createElement("svg",zE({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}Ow.displayName="@mantine/core/CloseIcon";var DE=Object.defineProperty,$a=Object.getOwnPropertySymbols,Cw=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,zm=(e,t,r)=>t in e?DE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TE=(e,t)=>{for(var r in t||(t={}))Cw.call(t,r)&&zm(e,r,t[r]);if($a)for(var r of $a(t))Ew.call(t,r)&&zm(e,r,t[r]);return e},ME=(e,t)=>{var r={};for(var n in e)Cw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$a)for(var n of $a(e))t.indexOf(n)<0&&Ew.call(e,n)&&(r[n]=e[n]);return r};const jE={xs:12,sm:14,md:16,lg:20,xl:24},LE={size:"md"},su=p.exports.forwardRef((e,t)=>{const r=ee("CloseButton",LE,e),{iconSize:n,size:o="md"}=r,i=ME(r,["iconSize","size"]),l=st(),a=n||l.fn.size({size:o,sizes:jE});return S(Ot,{...TE({size:o,ref:t},i),children:S(Ow,{width:a,height:a})})});su.displayName="@mantine/core/CloseButton";var FE=Object.defineProperty,AE=Object.defineProperties,VE=Object.getOwnPropertyDescriptors,Dm=Object.getOwnPropertySymbols,HE=Object.prototype.hasOwnProperty,BE=Object.prototype.propertyIsEnumerable,Tm=(e,t,r)=>t in e?FE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ml=(e,t)=>{for(var r in t||(t={}))HE.call(t,r)&&Tm(e,r,t[r]);if(Dm)for(var r of Dm(t))BE.call(t,r)&&Tm(e,r,t[r]);return e},WE=(e,t)=>AE(e,VE(t));function UE({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function GE({theme:e,color:t,variant:r}){return t==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:r==="link"?e.colors[e.primaryColor][e.colorScheme==="dark"?4:7]:t||"inherit"}function YE(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}var XE=Q((e,{color:t,variant:r,size:n,lineClamp:o,inline:i,inherit:l,underline:a,gradient:s,weight:u,transform:c,align:f,strikethrough:d,italic:g})=>{const y=e.fn.variant({variant:"gradient",gradient:s});return{root:ml(WE(ml(ml(ml({},e.fn.fontStyles()),e.fn.focusStyles()),YE(o)),{color:GE({color:t,theme:e,variant:r}),fontFamily:l?"inherit":e.fontFamily,fontSize:l||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:l?"inherit":i?1:e.lineHeight,textDecoration:UE({underline:a,strikethrough:d}),WebkitTapHighlightColor:"transparent",fontWeight:l?"inherit":u,textTransform:c,textAlign:f,fontStyle:g?"italic":void 0}),e.fn.hover(r==="link"&&a===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:y.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),qE=XE,KE=Object.defineProperty,Oa=Object.getOwnPropertySymbols,Rw=Object.prototype.hasOwnProperty,kw=Object.prototype.propertyIsEnumerable,Mm=(e,t,r)=>t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QE=(e,t)=>{for(var r in t||(t={}))Rw.call(t,r)&&Mm(e,r,t[r]);if(Oa)for(var r of Oa(t))kw.call(t,r)&&Mm(e,r,t[r]);return e},ZE=(e,t)=>{var r={};for(var n in e)Rw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Oa)for(var n of Oa(e))t.indexOf(n)<0&&kw.call(e,n)&&(r[n]=e[n]);return r};const JE={variant:"text"},Iw=p.exports.forwardRef((e,t)=>{const r=ee("Text",JE,e),{className:n,size:o,weight:i,transform:l,color:a,align:s,variant:u,lineClamp:c,gradient:f,inline:d,inherit:g,underline:y,strikethrough:w,italic:v,classNames:m,styles:h,unstyled:_,span:x}=r,$=ZE(r,["className","size","weight","transform","color","align","variant","lineClamp","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:b,cx:P}=qE({variant:u,color:a,size:o,lineClamp:c,inline:d,inherit:g,underline:y,strikethrough:w,italic:v,weight:i,transform:l,align:s,gradient:f},{unstyled:_,name:"Text"});return S(X,{...QE({ref:t,className:P(b.root,{[b.gradient]:u==="gradient"},n),component:x?"span":"div"},$)})});Iw.displayName="@mantine/core/Text";const vt=Iw,vl={xs:1,sm:2,md:3,lg:4,xl:5};function hl(e,t){const r=e.fn.variant({variant:"outline",color:t}).border;return typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?r:t===void 0?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]:t}var eR=Q((e,{size:t,variant:r,color:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:1,borderTop:`${e.fn.size({size:t,sizes:vl})}px ${r} ${hl(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:vl})}px ${r} ${hl(e,n)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:n==="dark"?e.colors.dark[1]:e.fn.themeColor(n,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:e.fn.size({size:t,sizes:vl}),borderTopColor:hl(e,n),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:vl}),borderLeftColor:hl(e,n),borderLeftStyle:r}})),tR=eR,rR=Object.defineProperty,nR=Object.defineProperties,oR=Object.getOwnPropertyDescriptors,Ca=Object.getOwnPropertySymbols,Nw=Object.prototype.hasOwnProperty,zw=Object.prototype.propertyIsEnumerable,jm=(e,t,r)=>t in e?rR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lm=(e,t)=>{for(var r in t||(t={}))Nw.call(t,r)&&jm(e,r,t[r]);if(Ca)for(var r of Ca(t))zw.call(t,r)&&jm(e,r,t[r]);return e},iR=(e,t)=>nR(e,oR(t)),lR=(e,t)=>{var r={};for(var n in e)Nw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ca)for(var n of Ca(e))t.indexOf(n)<0&&zw.call(e,n)&&(r[n]=e[n]);return r};const aR={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},yf=p.exports.forwardRef((e,t)=>{const r=ee("Divider",aR,e),{className:n,color:o,orientation:i,size:l,label:a,labelPosition:s,labelProps:u,variant:c,styles:f,classNames:d,unstyled:g}=r,y=lR(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:w,cx:v}=tR({color:o,size:l,variant:c},{classNames:d,styles:f,unstyled:g,name:"Divider"}),m=i==="vertical",h=i==="horizontal",_=!!a&&h,x=!u?.color;return S(X,{...Lm({ref:t,className:v(w.root,{[w.vertical]:m,[w.horizontal]:h,[w.withLabel]:_},n),role:"separator"},y),children:_&&S(vt,{...iR(Lm({},u),{size:u?.size||"xs",sx:{marginTop:2},className:v(w.label,w[s],{[w.labelDefaultStyles]:x})}),children:a})})});yf.displayName="@mantine/core/Divider";var sR=Object.defineProperty,Fm=Object.getOwnPropertySymbols,uR=Object.prototype.hasOwnProperty,cR=Object.prototype.propertyIsEnumerable,Am=(e,t,r)=>t in e?sR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fR=(e,t)=>{for(var r in t||(t={}))uR.call(t,r)&&Am(e,r,t[r]);if(Fm)for(var r of Fm(t))cR.call(t,r)&&Am(e,r,t[r]);return e},dR=Q((e,{size:t})=>({item:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`,cursor:"pointer",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderRadius:e.radius.sm,"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":fR({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}},nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:e.fn.size({size:t,sizes:e.spacing})/2,paddingBottom:e.fn.size({size:t,sizes:e.spacing})/2,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}})),pR=dR,gR=Object.defineProperty,Vm=Object.getOwnPropertySymbols,mR=Object.prototype.hasOwnProperty,vR=Object.prototype.propertyIsEnumerable,Hm=(e,t,r)=>t in e?gR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hR=(e,t)=>{for(var r in t||(t={}))mR.call(t,r)&&Hm(e,r,t[r]);if(Vm)for(var r of Vm(t))vR.call(t,r)&&Hm(e,r,t[r]);return e};function Dw({data:e,hovered:t,classNames:r,styles:n,isItemSelected:o,uuid:i,__staticSelector:l,onItemHover:a,onItemSelect:s,itemsRefs:u,itemComponent:c,size:f,nothingFound:d,creatable:g,createLabel:y,unstyled:w}){const{classes:v}=pR({size:f},{classNames:r,styles:n,unstyled:w,name:l}),m=[],h=[];let _=null;const x=(b,P)=>{const E=typeof o=="function"?o(b.value):!1;return C.createElement(c,hR({key:b.value,className:v.item,"data-disabled":b.disabled||void 0,"data-hovered":!b.disabled&&t===P||void 0,"data-selected":!b.disabled&&E||void 0,onMouseEnter:()=>a(P),id:`${i}-${P}`,role:"option","data-ignore-outside-clicks":!0,tabIndex:-1,"aria-selected":t===P,ref:O=>{u&&u.current&&(u.current[b.value]=O)},onMouseDown:b.disabled?null:O=>{O.preventDefault(),s(b)},disabled:b.disabled},b))};let $=null;if(e.forEach((b,P)=>{b.creatable?_=P:b.group?($!==b.group&&($=b.group,h.push(C.createElement("div",{className:v.separator,key:`__mantine-divider-${P}`},C.createElement(yf,{classNames:{label:v.separatorLabel},label:b.group})))),h.push(x(b,P))):m.push(x(b,P))}),g){const b=e[_];m.push(C.createElement("div",{key:Hl(),className:v.item,"data-hovered":t===_||void 0,onMouseEnter:()=>a(_),onMouseDown:P=>{P.preventDefault(),s(b)},tabIndex:-1,ref:P=>{u&&u.current&&(u.current[b.value]=P)}},y))}return h.length>0&&m.length>0&&m.unshift(C.createElement("div",{className:v.separator,key:"empty-group-separator"},C.createElement(yf,null))),h.length>0||m.length>0?C.createElement(C.Fragment,null,h,m):C.createElement(vt,{size:f,unstyled:w,className:v.nothingFound},d)}Dw.displayName="@mantine/core/SelectItems";var yR=Object.defineProperty,Ea=Object.getOwnPropertySymbols,Tw=Object.prototype.hasOwnProperty,Mw=Object.prototype.propertyIsEnumerable,Bm=(e,t,r)=>t in e?yR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wR=(e,t)=>{for(var r in t||(t={}))Tw.call(t,r)&&Bm(e,r,t[r]);if(Ea)for(var r of Ea(t))Mw.call(t,r)&&Bm(e,r,t[r]);return e},_R=(e,t)=>{var r={};for(var n in e)Tw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ea)for(var n of Ea(e))t.indexOf(n)<0&&Mw.call(e,n)&&(r[n]=e[n]);return r};const jw=p.exports.forwardRef((e,t)=>{var r=e,{label:n,value:o}=r,i=_R(r,["label","value"]);return S("div",{...wR({ref:t},i),children:n||o})});jw.displayName="@mantine/core/DefaultItem";function SR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lw(...e){return t=>e.forEach(r=>SR(r,t))}function pn(...e){return p.exports.useCallback(Lw(...e),e)}const Fw=p.exports.forwardRef((e,t)=>{const{children:r,...n}=e,o=p.exports.Children.toArray(r),i=o.find(bR);if(i){const l=i.props.children,a=o.map(s=>s===i?p.exports.Children.count(l)>1?p.exports.Children.only(null):p.exports.isValidElement(l)?l.props.children:null:s);return p.exports.createElement(wf,ge({},n,{ref:t}),p.exports.isValidElement(l)?p.exports.cloneElement(l,void 0,a):null)}return p.exports.createElement(wf,ge({},n,{ref:t}),r)});Fw.displayName="Slot";const wf=p.exports.forwardRef((e,t)=>{const{children:r,...n}=e;return p.exports.isValidElement(r)?p.exports.cloneElement(r,{...PR(n,r.props),ref:Lw(t,r.ref)}):p.exports.Children.count(r)>1?p.exports.Children.only(null):null});wf.displayName="SlotClone";const xR=({children:e})=>p.exports.createElement(p.exports.Fragment,null,e);function bR(e){return p.exports.isValidElement(e)&&e.type===xR}function PR(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?r[n]=(...a)=>{i?.(...a),o?.(...a)}:n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const $R=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Hi=$R.reduce((e,t)=>{const r=p.exports.forwardRef((n,o)=>{const{asChild:i,...l}=n,a=i?Fw:t;return p.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.exports.createElement(a,ge({},l,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),_f=Boolean(globalThis?.document)?p.exports.useLayoutEffect:()=>{};function OR(e,t){return p.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Bi=e=>{const{present:t,children:r}=e,n=CR(t),o=typeof r=="function"?r({present:n.isPresent}):p.exports.Children.only(r),i=pn(n.ref,o.ref);return typeof r=="function"||n.isPresent?p.exports.cloneElement(o,{ref:i}):null};Bi.displayName="Presence";function CR(e){const[t,r]=p.exports.useState(),n=p.exports.useRef({}),o=p.exports.useRef(e),i=p.exports.useRef("none"),l=e?"mounted":"unmounted",[a,s]=OR(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.exports.useEffect(()=>{const u=yl(n.current);i.current=a==="mounted"?u:"none"},[a]),_f(()=>{const u=n.current,c=o.current;if(c!==e){const d=i.current,g=yl(u);e?s("MOUNT"):g==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),_f(()=>{if(t){const u=f=>{const g=yl(n.current).includes(f.animationName);f.target===t&&g&&ki.exports.flushSync(()=>s("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=yl(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.exports.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function yl(e){return e?.animationName||"none"}function ER(e,t=[]){let r=[];function n(i,l){const a=p.exports.createContext(l),s=r.length;r=[...r,l];function u(f){const{scope:d,children:g,...y}=f,w=d?.[e][s]||a,v=p.exports.useMemo(()=>y,Object.values(y));return p.exports.createElement(w.Provider,{value:v},g)}function c(f,d){const g=d?.[e][s]||a,y=p.exports.useContext(g);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(l=>p.exports.createContext(l));return function(a){const s=a?.[e]||i;return p.exports.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,RR(o,...t)]}function RR(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=n.reduce((a,{useScope:s,scopeName:u})=>{const f=s(i)[`__scope${u}`];return{...a,...f}},{});return p.exports.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function Gr(e){const t=p.exports.useRef(e);return p.exports.useEffect(()=>{t.current=e}),p.exports.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const kR=p.exports.createContext(void 0);function IR(e){const t=p.exports.useContext(kR);return e||t||"ltr"}function NR(e,[t,r]){return Math.min(r,Math.max(t,e))}function en(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function zR(e,t){return p.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Aw="ScrollArea",[Vw,j7]=ER(Aw),[DR,wt]=Vw(Aw),TR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[a,s]=p.exports.useState(null),[u,c]=p.exports.useState(null),[f,d]=p.exports.useState(null),[g,y]=p.exports.useState(null),[w,v]=p.exports.useState(null),[m,h]=p.exports.useState(0),[_,x]=p.exports.useState(0),[$,b]=p.exports.useState(!1),[P,E]=p.exports.useState(!1),O=pn(t,z=>s(z)),D=IR(o);return p.exports.createElement(DR,{scope:r,type:n,dir:D,scrollHideDelay:i,scrollArea:a,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:$,onScrollbarXEnabledChange:b,scrollbarY:w,onScrollbarYChange:v,scrollbarYEnabled:P,onScrollbarYEnabledChange:E,onCornerWidthChange:h,onCornerHeightChange:x},p.exports.createElement(Hi.div,ge({dir:D},l,{ref:O,style:{position:"relative",["--radix-scroll-area-corner-width"]:m+"px",["--radix-scroll-area-corner-height"]:_+"px",...e.style}})))}),MR="ScrollAreaViewport",jR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...o}=e,i=wt(MR,r),l=p.exports.useRef(null),a=pn(t,l,i.onViewportChange);return p.exports.createElement(p.exports.Fragment,null,p.exports.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),p.exports.createElement(Hi.div,ge({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),p.exports.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),tr="ScrollAreaScrollbar",LR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=wt(tr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,a=e.orientation==="horizontal";return p.exports.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),o.type==="hover"?p.exports.createElement(FR,ge({},n,{ref:t,forceMount:r})):o.type==="scroll"?p.exports.createElement(AR,ge({},n,{ref:t,forceMount:r})):o.type==="auto"?p.exports.createElement(Hw,ge({},n,{ref:t,forceMount:r})):o.type==="always"?p.exports.createElement(Qd,ge({},n,{ref:t})):null}),FR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=wt(tr,e.__scopeScrollArea),[i,l]=p.exports.useState(!1);return p.exports.useEffect(()=>{const a=o.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),l(!0)},c=()=>{s=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),p.exports.createElement(Bi,{present:r||i},p.exports.createElement(Hw,ge({"data-state":i?"visible":"hidden"},n,{ref:t})))}),AR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=wt(tr,e.__scopeScrollArea),i=e.orientation==="horizontal",l=cu(()=>s("SCROLL_END"),100),[a,s]=zR("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.exports.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,o.scrollHideDelay,s]),p.exports.useEffect(()=>{const u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let f=u[c];const d=()=>{const g=u[c];f!==g&&(s("SCROLL"),l()),f=g};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,i,s,l]),p.exports.createElement(Bi,{present:r||a!=="hidden"},p.exports.createElement(Qd,ge({"data-state":a==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:en(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:en(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),Hw=p.exports.forwardRef((e,t)=>{const r=wt(tr,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=p.exports.useState(!1),a=e.orientation==="horizontal",s=cu(()=>{if(r.viewport){const u=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=wt(tr,e.__scopeScrollArea),i=p.exports.useRef(null),l=p.exports.useRef(0),[a,s]=p.exports.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Gw(a.viewport,a.content),c={...n,sizes:a,onSizesChange:s,hasThumb:Boolean(u>0&&u<1),onThumbChange:d=>i.current=d,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:d=>l.current=d};function f(d,g){return XR(d,l.current,a,g)}return r==="horizontal"?p.exports.createElement(VR,ge({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollLeft,g=Wm(d,a,o.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=f(d,o.dir))}})):r==="vertical"?p.exports.createElement(HR,ge({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollTop,g=Wm(d,a);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=f(d))}})):null}),VR=p.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=wt(tr,e.__scopeScrollArea),[l,a]=p.exports.useState(),s=p.exports.useRef(null),u=pn(t,s,i.onScrollbarXChange);return p.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),p.exports.createElement(Ww,ge({"data-orientation":"horizontal"},o,{ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:uu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(d),Xw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ra(l.paddingLeft),paddingEnd:Ra(l.paddingRight)}})}}))}),HR=p.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=wt(tr,e.__scopeScrollArea),[l,a]=p.exports.useState(),s=p.exports.useRef(null),u=pn(t,s,i.onScrollbarYChange);return p.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),p.exports.createElement(Ww,ge({"data-orientation":"vertical"},o,{ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:uu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(d),Xw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ra(l.paddingTop),paddingEnd:Ra(l.paddingBottom)}})}}))}),[BR,Bw]=Vw(tr),Ww=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,g=wt(tr,r),[y,w]=p.exports.useState(null),v=pn(t,O=>w(O)),m=p.exports.useRef(null),h=p.exports.useRef(""),_=g.viewport,x=n.content-n.viewport,$=Gr(c),b=Gr(s),P=cu(f,10);function E(O){if(m.current){const D=O.clientX-m.current.left,z=O.clientY-m.current.top;u({x:D,y:z})}}return p.exports.useEffect(()=>{const O=D=>{const z=D.target;y?.contains(z)&&$(D,x)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[_,y,x,$]),p.exports.useEffect(b,[n,b]),Xn(y,P),Xn(g.content,P),p.exports.createElement(BR,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:Gr(i),onThumbPointerUp:Gr(l),onThumbPositionChange:b,onThumbPointerDown:Gr(a)},p.exports.createElement(Hi.div,ge({},d,{ref:v,style:{position:"absolute",...d.style},onPointerDown:en(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),m.current=y.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(O))}),onPointerMove:en(e.onPointerMove,E),onPointerUp:en(e.onPointerUp,O=>{O.target.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=h.current,m.current=null})})))}),Sf="ScrollAreaThumb",WR=p.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Bw(Sf,e.__scopeScrollArea);return p.exports.createElement(Bi,{present:r||o.hasThumb},p.exports.createElement(UR,ge({ref:t},n)))}),UR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,i=wt(Sf,r),l=Bw(Sf,r),{onThumbPositionChange:a}=l,s=pn(t,f=>l.onThumbChange(f)),u=p.exports.useRef(),c=cu(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.exports.useEffect(()=>{const f=i.viewport;if(f){const d=()=>{if(c(),!u.current){const g=qR(f,a);u.current=g,a()}};return a(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[i.viewport,c,a]),p.exports.createElement(Hi.div,ge({"data-state":l.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:en(e.onPointerDownCapture,f=>{const g=f.target.getBoundingClientRect(),y=f.clientX-g.left,w=f.clientY-g.top;l.onThumbPointerDown({x:y,y:w})}),onPointerUp:en(e.onPointerUp,l.onThumbPointerUp)}))}),Uw="ScrollAreaCorner",GR=p.exports.forwardRef((e,t)=>{const r=wt(Uw,e.__scopeScrollArea),n=Boolean(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.exports.createElement(YR,ge({},e,{ref:t})):null}),YR=p.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=wt(Uw,r),[i,l]=p.exports.useState(0),[a,s]=p.exports.useState(0),u=Boolean(i&&a);return Xn(o.scrollbarX,()=>{var c;const f=((c=o.scrollbarX)===null||c===void 0?void 0:c.offsetHeight)||0;o.onCornerHeightChange(f),s(f)}),Xn(o.scrollbarY,()=>{var c;const f=((c=o.scrollbarY)===null||c===void 0?void 0:c.offsetWidth)||0;o.onCornerWidthChange(f),l(f)}),u?p.exports.createElement(Hi.div,ge({},n,{ref:t,style:{width:i,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Ra(e){return e?parseInt(e,10):0}function Gw(e,t){const r=e/t;return isNaN(r)?0:r}function uu(e){const t=Gw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function XR(e,t,r,n="ltr"){const o=uu(r),i=o/2,l=t||i,a=o-l,s=r.scrollbar.paddingStart+l,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport,f=n==="ltr"?[0,c]:[c*-1,0];return Yw([s,u],f)(e)}function Wm(e,t,r="ltr"){const n=uu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=i-n,s=r==="ltr"?[0,l]:[l*-1,0],u=NR(e,s);return Yw([0,l],[0,a])(u)}function Yw(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Xw(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function cu(e,t){const r=Gr(e),n=p.exports.useRef(0);return p.exports.useEffect(()=>()=>window.clearTimeout(n.current),[]),p.exports.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Xn(e,t){const r=Gr(t);_f(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}const KR=TR,QR=jR,Um=LR,Gm=WR,ZR=GR;var JR=Q((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:o},i)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?t:void 0},scrollbar:{display:o?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:t/5,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${i("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:t},'&[data-orientation="horizontal"]':{flexDirection:"column",height:t},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:i("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:t,position:"relative",transition:"background-color 150ms ease",display:o?"none":void 0,"&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:o?"none":void 0}})),ek=JR,tk=Object.defineProperty,rk=Object.defineProperties,nk=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,Kw=Object.prototype.propertyIsEnumerable,Ym=(e,t,r)=>t in e?tk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qw=(e,t)=>{for(var r in t||(t={}))qw.call(t,r)&&Ym(e,r,t[r]);if(ka)for(var r of ka(t))Kw.call(t,r)&&Ym(e,r,t[r]);return e},ok=(e,t)=>rk(e,nk(t)),Zw=(e,t)=>{var r={};for(var n in e)qw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ka)for(var n of ka(e))t.indexOf(n)<0&&Kw.call(e,n)&&(r[n]=e[n]);return r};const Jw={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},fu=p.exports.forwardRef((e,t)=>{const r=ee("ScrollArea",Jw,e),{children:n,className:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:g,unstyled:y}=r,w=Zw(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled"]),[v,m]=p.exports.useState(!1),h=st(),{classes:_,cx:x}=ek({scrollbarSize:a,offsetScrollbars:f,scrollbarHovered:v,hidden:u==="never"},{name:"ScrollArea",classNames:i,styles:l,unstyled:y});return S(KR,{type:u==="never"?"always":u,scrollHideDelay:s,dir:c||h.dir,ref:t,asChild:!0,children:H(X,{...Qw({className:x(_.root,o)},w),children:[S(QR,{className:_.viewport,ref:d,onScroll:typeof g=="function"?({currentTarget:$})=>g({x:$.scrollLeft,y:$.scrollTop}):void 0,children:n}),S(Um,{orientation:"horizontal",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Gm,{className:_.thumb})}),S(Um,{orientation:"vertical",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Gm,{className:_.thumb})}),S(ZR,{className:_.corner})]})})}),e_=p.exports.forwardRef((e,t)=>{const r=ee("ScrollAreaAutosize",Jw,e),{maxHeight:n,children:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:g,unstyled:y,sx:w}=r,v=Zw(r,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return C.createElement(X,ok(Qw({},v),{ref:t,sx:[{display:"flex",maxHeight:n},...xi(w)]}),C.createElement(X,{sx:{display:"flex",flexDirection:"column",flex:1}},C.createElement(fu,{classNames:i,styles:l,scrollHideDelay:s,scrollbarSize:a,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:g,unstyled:y},o)))});e_.displayName="@mantine/core/ScrollAreaAutosize";fu.displayName="@mantine/core/ScrollArea";fu.Autosize=e_;const ik=fu;var lk=Object.defineProperty,ak=Object.defineProperties,sk=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,t_=Object.prototype.hasOwnProperty,r_=Object.prototype.propertyIsEnumerable,Xm=(e,t,r)=>t in e?lk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qm=(e,t)=>{for(var r in t||(t={}))t_.call(t,r)&&Xm(e,r,t[r]);if(Ia)for(var r of Ia(t))r_.call(t,r)&&Xm(e,r,t[r]);return e},uk=(e,t)=>ak(e,sk(t)),ck=(e,t)=>{var r={};for(var n in e)t_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ia)for(var n of Ia(e))t.indexOf(n)<0&&r_.call(e,n)&&(r[n]=e[n]);return r};const Zd=p.exports.forwardRef((e,t)=>{var r=e,{style:n}=r,o=ck(r,["style"]);return S(ik,{...uk(qm({},o),{style:qm({width:"100%"},n),viewportRef:t}),children:o.children})});Zd.displayName="@mantine/core/SelectScrollArea";function ao(e){return e.split("-")[0]}function du(e){return e.split("-")[1]}function pu(e){return["top","bottom"].includes(ao(e))?"x":"y"}function n_(e){return e==="y"?"height":"width"}function Km(e,t,r){let{reference:n,floating:o}=e;const i=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2,a=pu(t),s=n_(a),u=n[s]/2-o[s]/2,c=ao(t),f=a==="x";let d;switch(c){case"top":d={x:i,y:n.y-o.height};break;case"bottom":d={x:i,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:l};break;case"left":d={x:n.x-o.width,y:l};break;default:d={x:n.x,y:n.y}}switch(du(t)){case"start":d[a]-=u*(r&&f?-1:1);break;case"end":d[a]+=u*(r&&f?-1:1);break}return d}const fk=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=Km(s,n,a),f=n,d={},g=0;for(let y=0;ymk[t])}function vk(e,t,r){r===void 0&&(r=!1);const n=du(e),o=pu(e),i=n_(o);let l=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=za(l)),{main:l,cross:za(l)}}const hk={start:"end",end:"start"};function Zm(e){return e.replace(/start|end/g,t=>hk[t])}function yk(e){const t=za(e);return[Zm(e),t,Zm(t)]}const o_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:i,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:g=!0,...y}=e,w=ao(n),m=f||(w===l||!g?[za(l)]:yk(l)),h=[l,...m],_=await Jd(t,y),x=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&x.push(_[w]),c){const{main:O,cross:D}=vk(n,i,await(a.isRTL==null?void 0:a.isRTL(s.floating)));x.push(_[O],_[D])}if($=[...$,{placement:n,overflows:x}],!x.every(O=>O<=0)){var b,P;const O=((b=(P=o.flip)==null?void 0:P.index)!=null?b:0)+1,D=h[O];if(D)return{data:{index:O,overflows:$},reset:{placement:D}};let z="bottom";switch(d){case"bestFit":{var E;const T=(E=$.map(F=>[F,F.overflows.filter(G=>G>0).reduce((G,q)=>G+q,0)]).sort((F,G)=>F[1]-G[1])[0])==null?void 0:E[0].placement;T&&(z=T);break}case"initialPlacement":z=l;break}if(n!==z)return{reset:{placement:z}}}return{}}}};async function wk(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),l=ao(r),a=du(r),s=pu(r)==="x",u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=typeof t=="function"?t(e):t;let{mainAxis:d,crossAxis:g,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(g=a==="end"?y*-1:y),s?{x:g*c,y:d*u}:{x:d*u,y:g*c}}const i_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await wk(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function _k(e){return e==="x"?"y":"x"}const ep=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:m,y:h}=v;return{x:m,y:h}}},...s}=e,u={x:r,y:n},c=await Jd(t,s),f=pu(ao(o)),d=_k(f);let g=u[f],y=u[d];if(i){const v=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=g+c[v],_=g-c[m];g=Qm(h,g,_)}if(l){const v=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=y+c[v],_=y-c[m];y=Qm(h,y,_)}const w=a.fn({...t,[f]:g,[d]:y});return{...w,data:{x:w.x-r,y:w.y-n}}}}},Sk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:l,...a}=e,s=await Jd(t,a),u=ao(r),c=du(r);let f,d;u==="top"||u==="bottom"?(f=u,d=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(d=u,f=c==="end"?"top":"bottom");const g=Wr(s.left,0),y=Wr(s.right,0),w=Wr(s.top,0),v=Wr(s.bottom,0),m={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(w!==0||v!==0?w+v:Wr(s.top,s.bottom)):s[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(g!==0||y!==0?g+y:Wr(s.left,s.right)):s[d])},h=await o.getDimensions(i.floating);l?.({...t,...m});const _=await o.getDimensions(i.floating);return h.width!==_.width||h.height!==_.height?{reset:{rects:!0}}:{}}}};function l_(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function rr(e){if(e==null)return window;if(!l_(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){return rr(e).getComputedStyle(e)}function Zt(e){return l_(e)?"":e?(e.nodeName||"").toLowerCase():""}function a_(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Tt(e){return e instanceof rr(e).HTMLElement}function Ir(e){return e instanceof rr(e).Element}function xk(e){return e instanceof rr(e).Node}function tp(e){if(typeof ShadowRoot>"u")return!1;const t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gu(e){const{overflow:t,overflowX:r,overflowY:n}=Wi(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function bk(e){return["table","td","th"].includes(Zt(e))}function s_(e){const t=/firefox/i.test(a_()),r=Wi(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function u_(){return!/^((?!chrome|android).)*safari/i.test(a_())}const Jm=Math.min,ii=Math.max,Da=Math.round;function Jt(e,t,r){var n,o,i,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect();let s=1,u=1;t&&Tt(e)&&(s=e.offsetWidth>0&&Da(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Da(a.height)/e.offsetHeight||1);const c=Ir(e)?rr(e):window,f=!u_()&&r,d=(a.left+(f&&(n=(o=c.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/s,g=(a.top+(f&&(i=(l=c.visualViewport)==null?void 0:l.offsetTop)!=null?i:0))/u,y=a.width/s,w=a.height/u;return{width:y,height:w,top:g,right:d+y,bottom:g+w,left:d,x:d,y:g}}function Tr(e){return((xk(e)?e.ownerDocument:e.document)||window.document).documentElement}function mu(e){return Ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function c_(e){return Jt(Tr(e)).left+mu(e).scrollLeft}function Pk(e){const t=Jt(e);return Da(t.width)!==e.offsetWidth||Da(t.height)!==e.offsetHeight}function $k(e,t,r){const n=Tt(t),o=Tr(t),i=Jt(e,n&&Pk(t),r==="fixed");let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&r!=="fixed")if((Zt(t)!=="body"||gu(o))&&(l=mu(t)),Tt(t)){const s=Jt(t,!0);a.x=s.x+t.clientLeft,a.y=s.y+t.clientTop}else o&&(a.x=c_(o));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function f_(e){return Zt(e)==="html"?e:e.assignedSlot||e.parentNode||(tp(e)?e.host:null)||Tr(e)}function ev(e){return!Tt(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function Ok(e){let t=f_(e);for(tp(t)&&(t=t.host);Tt(t)&&!["html","body"].includes(Zt(t));){if(s_(t))return t;t=t.parentNode}return null}function xf(e){const t=rr(e);let r=ev(e);for(;r&&bk(r)&&getComputedStyle(r).position==="static";)r=ev(r);return r&&(Zt(r)==="html"||Zt(r)==="body"&&getComputedStyle(r).position==="static"&&!s_(r))?t:r||Ok(e)||t}function tv(e){if(Tt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Jt(e);return{width:t.width,height:t.height}}function Ck(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Tt(r),i=Tr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&n!=="fixed")&&((Zt(r)!=="body"||gu(i))&&(l=mu(r)),Tt(r))){const s=Jt(r,!0);a.x=s.x+r.clientLeft,a.y=s.y+r.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}}function Ek(e,t){const r=rr(e),n=Tr(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const u=u_();(u||!u&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function Rk(e){var t;const r=Tr(e),n=mu(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ii(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ii(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-n.scrollLeft+c_(e);const s=-n.scrollTop;return Wi(o||r).direction==="rtl"&&(a+=ii(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function d_(e){const t=f_(e);return["html","body","#document"].includes(Zt(t))?e.ownerDocument.body:Tt(t)&&gu(t)?t:d_(t)}function ln(e,t){var r;t===void 0&&(t=[]);const n=d_(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=rr(n),l=o?[i].concat(i.visualViewport||[],gu(n)?n:[]):n,a=t.concat(l);return o?a:a.concat(ln(l))}function kk(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&tp(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Ik(e,t){const r=Jt(e,!1,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function rv(e,t,r){return t==="viewport"?Na(Ek(e,r)):Ir(t)?Ik(t,r):Na(Rk(Tr(e)))}function Nk(e){const t=ln(e),n=["absolute","fixed"].includes(Wi(e).position)&&Tt(e)?xf(e):e;return Ir(n)?t.filter(o=>Ir(o)&&kk(o,n)&&Zt(o)!=="body"):[]}function zk(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?Nk(t):[].concat(r),n],a=l[0],s=l.reduce((u,c)=>{const f=rv(t,c,o);return u.top=ii(f.top,u.top),u.right=Jm(f.right,u.right),u.bottom=Jm(f.bottom,u.bottom),u.left=ii(f.left,u.left),u},rv(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}const Dk={getClippingRect:zk,convertOffsetParentRelativeRectToViewportRelativeRect:Ck,isElement:Ir,getDimensions:tv,getOffsetParent:xf,getDocumentElement:Tr,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:$k(t,xf(r),n),floating:{...tv(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Wi(e).direction==="rtl"};function Tk(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=n,s=o&&!a,u=i&&!a,c=s||u?[...Ir(e)?ln(e):[],...ln(t)]:[];c.forEach(w=>{s&&w.addEventListener("scroll",r,{passive:!0}),u&&w.addEventListener("resize",r)});let f=null;if(l){let w=!0;f=new ResizeObserver(()=>{w||r(),w=!1}),Ir(e)&&!a&&f.observe(e),f.observe(t)}let d,g=a?Jt(e):null;a&&y();function y(){const w=Jt(e);g&&(w.x!==g.x||w.y!==g.y||w.width!==g.width||w.height!==g.height)&&r(),g=w,d=requestAnimationFrame(y)}return r(),()=>{var w;c.forEach(v=>{s&&v.removeEventListener("scroll",r),u&&v.removeEventListener("resize",r)}),(w=f)==null||w.disconnect(),f=null,a&&cancelAnimationFrame(d)}}const Mk=(e,t,r)=>fk(e,t,{platform:Dk,...r});var bf=typeof document<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function Pf(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Pf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Pf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function jk(e){const t=p.exports.useRef(e);return bf(()=>{t.current=e}),t}function Lk(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=p.exports.useRef(null),l=p.exports.useRef(null),a=jk(o),s=p.exports.useRef(null),[u,c]=p.exports.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,d]=p.exports.useState(t);Pf(f?.map(_=>{let{options:x}=_;return x}),t?.map(_=>{let{options:x}=_;return x}))||d(t);const g=p.exports.useCallback(()=>{!i.current||!l.current||Mk(i.current,l.current,{middleware:f,placement:r,strategy:n}).then(_=>{y.current&&ki.exports.flushSync(()=>{c(_)})})},[f,r,n]);bf(()=>{y.current&&g()},[g]);const y=p.exports.useRef(!1);bf(()=>(y.current=!0,()=>{y.current=!1}),[]);const w=p.exports.useCallback(()=>{if(typeof s.current=="function"&&(s.current(),s.current=null),i.current&&l.current)if(a.current){const _=a.current(i.current,l.current,g);s.current=_}else g()},[g,a]),v=p.exports.useCallback(_=>{i.current=_,w()},[w]),m=p.exports.useCallback(_=>{l.current=_,w()},[w]),h=p.exports.useMemo(()=>({reference:i,floating:l}),[]);return p.exports.useMemo(()=>({...u,update:g,refs:h,reference:v,floating:m}),[u,g,h,v,m])}var qn=typeof document<"u"?p.exports.useLayoutEffect:p.exports.useEffect;function Fk(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}let lc=!1,Ak=0;const nv=()=>"floating-ui-"+Ak++;function Vk(){const[e,t]=p.exports.useState(()=>lc?nv():void 0);return qn(()=>{e==null&&t(nv())},[]),p.exports.useEffect(()=>{lc||(lc=!0)},[]),e}const ov=ai["useId".toString()],iv=ov??Vk,Hk=p.exports.createContext(null),Bk=p.exports.createContext(null),Wk=()=>{var e,t;return(e=(t=p.exports.useContext(Hk))==null?void 0:t.id)!=null?e:null},rp=()=>p.exports.useContext(Bk);function Gt(e){var t;return(t=e?.ownerDocument)!=null?t:document}function p_(e){var t;return(t=Gt(e).defaultView)!=null?t:window}function Ta(e){return e?e instanceof p_(e).Element:!1}function g_(e){return e?e instanceof p_(e).HTMLElement:!1}function np(e){let{open:t=!1,onOpenChange:r=()=>{},whileElementsMounted:n,placement:o,middleware:i,strategy:l,nodeId:a}=e===void 0?{}:e;const s=rp(),u=p.exports.useRef(null),c=p.exports.useRef({}),f=p.exports.useState(()=>Fk())[0],d=Lk({placement:o,middleware:i,strategy:l,whileElementsMounted:n}),g=p.exports.useMemo(()=>({...d.refs,domReference:u}),[d.refs]),y=p.exports.useMemo(()=>({...d,refs:g,dataRef:c,nodeId:a,events:f,open:t,onOpenChange:r}),[d,a,f,t,r,g]);qn(()=>{const m=s?.nodesRef.current.find(h=>h.id===a);m&&(m.context=y)});const{reference:w}=d,v=p.exports.useCallback(m=>{(Ta(m)||m===null)&&(y.refs.domReference.current=m),w(m)},[w,y.refs]);return p.exports.useMemo(()=>({...d,context:y,refs:g,reference:v}),[d,g,y,v])}function ac(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[a,s]=l;if(a.indexOf("on")===0){if(n.has(a)||n.set(a,[]),typeof s=="function"){var u;(u=n.get(a))==null||u.push(s)}o[a]=function(){for(var c,f=arguments.length,d=new Array(f),g=0;gy(...d))}}else o[a]=s}),o),{})}}const Uk=function(e){return e===void 0&&(e=[]),{getReferenceProps:t=>ac(t,e,"reference"),getFloatingProps:t=>ac(t,e,"floating"),getItemProps:t=>ac(t,e,"item")}};function Gk(e,t){var r;let n=(r=e.filter(l=>{var a;return l.parentId===t&&((a=l.context)==null?void 0:a.open)}))!=null?r:[],o=n;for(;o.length;){var i;o=(i=e.filter(l=>{var a;return(a=o)==null?void 0:a.some(s=>{var u;return l.parentId===s.id&&((u=l.context)==null?void 0:u.open)})}))!=null?i:[],n=n.concat(o)}return n}function m_(e){let t=e.activeElement;for(;((r=t)==null||(n=r.shadowRoot)==null?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}function Ma(e){const t=p.exports.useRef(e);return qn(()=>{t.current=e}),t}function Yk(e){const t=p.exports.useRef();return qn(()=>{t.current=e},[e]),t.current}function Bl(e,t,r){return r&&r!=="mouse"?0:typeof e=="number"?e:e?.[t]}const Xk=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:l=0}=t===void 0?{}:t;const{open:a,onOpenChange:s,dataRef:u,events:c,refs:f}=e,d=rp(),g=Wk(),y=Ma(s),w=Ma(o),v=Yk(a),m=p.exports.useRef(),h=p.exports.useRef(),_=p.exports.useRef(),x=p.exports.useRef(),$=p.exports.useRef(!0),b=p.exports.useRef(!1);p.exports.useEffect(()=>{if(!r)return;function z(){clearTimeout(h.current),clearTimeout(x.current),$.current=!0}return c.on("dismiss",z),()=>{c.off("dismiss",z)}},[r,c,f]),p.exports.useEffect(()=>{if(!r||!w.current)return;function z(){var F;(F=u.current.openEvent)!=null&&F.type.includes("mouse")&&y.current(!1)}const T=Gt(f.floating.current).documentElement;return T.addEventListener("mouseleave",z),()=>{T.removeEventListener("mouseleave",z)}},[f,y,r,w,u]);const P=p.exports.useCallback(function(z){z===void 0&&(z=!0);const T=Bl(n,"close",m.current);T&&!_.current?(clearTimeout(h.current),h.current=setTimeout(()=>y.current(!1),T)):z&&(clearTimeout(h.current),y.current(!1))},[n,y]),E=p.exports.useCallback(()=>{_.current&&(Gt(f.floating.current).removeEventListener("pointermove",_.current),_.current=void 0)},[f]),O=p.exports.useCallback(()=>{Gt(f.floating.current).body.style.pointerEvents="",b.current=!1},[f]);if(p.exports.useEffect(()=>{if(!r)return;function z(B){if(clearTimeout(h.current),$.current=!1,a||i&&m.current!=="mouse"||l>0&&Bl(n,"open")===0)return;u.current.openEvent=B;const ne=Bl(n,"open",m.current);ne?h.current=setTimeout(()=>{y.current(!0)},ne):y.current(!0)}function T(B){var ne,se;if(((ne=u.current.openEvent)==null?void 0:ne.type)==="click"||((se=u.current.openEvent)==null?void 0:se.type)==="pointerdown")return;const ie=Gt(f.floating.current);if(clearTimeout(x.current),w.current){clearTimeout(h.current),_.current&&ie.removeEventListener("pointermove",_.current),_.current=w.current({...e,tree:d,x:B.clientX,y:B.clientY,onClose(){E(),P()}}),ie.addEventListener("pointermove",_.current);return}P()}function F(B){w.current==null||w.current({...e,tree:d,x:B.clientX,y:B.clientY,leave:!0,onClose(){E(),P()}})(B)}const G=f.floating.current,q=f.domReference.current;if(Ta(q))return a&&q.addEventListener("mouseleave",F),G?.addEventListener("mouseleave",F),q.addEventListener("mousemove",z,{once:!0}),q.addEventListener("mouseenter",z),q.addEventListener("mouseleave",T),()=>{a&&q.removeEventListener("mouseleave",F),G?.removeEventListener("mouseleave",F),q.removeEventListener("mousemove",z),q.removeEventListener("mouseenter",z),q.removeEventListener("mouseleave",T)}},[r,P,e,n,w,u,i,y,a,d,l,E,f]),qn(()=>{if(!!r&&a&&w.current){Gt(f.floating.current).body.style.pointerEvents="none",b.current=!0;const F=f.domReference.current,G=f.floating.current;if(g_(F)&&G){var z,T;const q=d==null||(z=d.nodesRef.current.find(B=>B.id===g))==null||(T=z.context)==null?void 0:T.refs.floating.current;return q&&(q.style.pointerEvents=""),F.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{F.style.pointerEvents="",G.style.pointerEvents=""}}}},[r,a,g,f,d,w,u]),qn(()=>{v&&!a&&(m.current=void 0,E(),O())}),p.exports.useEffect(()=>()=>{E(),clearTimeout(h.current),clearTimeout(x.current),b.current&&O()},[E,O]),!r)return{};function D(z){m.current=z.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(){a||l===0||(clearTimeout(x.current),x.current=setTimeout(()=>{$.current||s(!0)},l))}},floating:{onMouseEnter(){clearTimeout(h.current)},onMouseLeave(){P(!1)}}}},v_=p.exports.createContext({delay:1e3,initialDelay:1e3,currentId:null,setCurrentId:()=>{},setState:()=>{}}),h_=()=>p.exports.useContext(v_),qk=e=>{let{children:t,delay:r}=e;const[n,o]=p.exports.useState({delay:r,initialDelay:r,currentId:null}),i=p.exports.useCallback(l=>{o(a=>({...a,currentId:l}))},[]);return p.exports.createElement(v_.Provider,{value:p.exports.useMemo(()=>({...n,setState:o,setCurrentId:i}),[n,o,i])},t)},Kk=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,initialDelay:l,setState:a}=h_(),s=Ma(n);p.exports.useEffect(()=>{i&&s.current&&(a(u=>({...u,delay:{open:1,close:Bl(l,"close")}})),i!==o&&s.current(!1))},[o,s,a,i,l]),p.exports.useEffect(()=>{!r&&i===o&&s.current&&(s.current(!1),a(u=>({...u,delay:l,currentId:null})))},[r,a,i,o,s,l])},Qk=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=iv(),l=iv(),a={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:a}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:l}},floating:{...a,...o==="menu"&&{"aria-labelledby":l}}}:{}};function sc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const Zk=function(e,t){let{open:r,onOpenChange:n,refs:o,events:i,nodeId:l}=e,{enabled:a=!0,escapeKey:s=!0,outsidePointerDown:u=!0,referencePointerDown:c=!1,ancestorScroll:f=!1,bubbles:d=!0}=t===void 0?{}:t;const g=rp(),y=Ma(n),w=p.exports.useCallback(()=>{var v;return(v=o.floating.current)==null?void 0:v.contains(m_(Gt(o.floating.current)))},[o]);return p.exports.useEffect(()=>{if(!r||!a)return;function v($){if($.key==="Escape"){if(!d&&!w())return;i.emit("dismiss"),y.current(!1),g_(o.domReference.current)&&o.domReference.current.focus()}}function m($){const b=g&&Gk(g.nodesRef.current,l).some(P=>{var E;return sc($,(E=P.context)==null?void 0:E.refs.floating.current)});sc($,o.floating.current)||sc($,o.domReference.current)||b||!d&&!w()||(i.emit("dismiss"),y.current(!1))}function h(){y.current(!1)}const _=Gt(o.floating.current);s&&_.addEventListener("keydown",v),u&&_.addEventListener("mousedown",m);const x=(f?[...Ta(o.reference.current)?ln(o.reference.current):[],...Ta(o.floating.current)?ln(o.floating.current):[]]:[]).filter($=>{var b;return $!==((b=_.defaultView)==null?void 0:b.visualViewport)});return x.forEach($=>$.addEventListener("scroll",h,{passive:!0})),()=>{s&&_.removeEventListener("keydown",v),u&&_.removeEventListener("mousedown",m),x.forEach($=>$.removeEventListener("scroll",h))}},[s,u,i,g,l,r,y,f,a,d,w,o]),a?{reference:{onPointerDown(){c&&(i.emit("dismiss"),n(!1))}}}:{}},Jk=function(e,t){let{open:r,onOpenChange:n,dataRef:o,refs:i,events:l}=e,{enabled:a=!0,keyboardOnly:s=!0}=t===void 0?{}:t;const u=p.exports.useRef(""),c=p.exports.useRef(!1);return p.exports.useEffect(()=>{var f;if(!a)return;const d=Gt(i.floating.current),g=(f=d.defaultView)!=null?f:window;function y(){u.current&&i.domReference.current===m_(d)&&(c.current=!r)}function w(){setTimeout(()=>{c.current=!1,u.current=""})}return g.addEventListener("focus",w),g.addEventListener("blur",y),()=>{g.removeEventListener("focus",w),g.removeEventListener("blur",y)}},[i,r,a]),p.exports.useEffect(()=>{if(!a)return;function f(){c.current=!0}return l.on("dismiss",f),()=>{l.off("dismiss",f)}},[l,a]),a?{reference:{onPointerDown(f){let{pointerType:d}=f;u.current=d,c.current=!!(d&&s)},onFocus(f){var d,g,y;c.current||f.type==="focus"&&((d=o.current.openEvent)==null?void 0:d.type)==="mousedown"&&(g=i.domReference.current)!=null&&g.contains((y=o.current.openEvent)==null?void 0:y.target)||(o.current.openEvent=f.nativeEvent,n(!0))},onBlur(f){var d,g;const y=f.relatedTarget;(d=i.floating.current)!=null&&d.contains(y)||(g=i.domReference.current)!=null&&g.contains(y)||(c.current=!1,n(!1))}}}:{}};function y_({opened:e,floating:t,positionDependencies:r}){const[n,o]=p.exports.useState(0);p.exports.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return Tk(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),kr(()=>{t.update()},r),kr(()=>{o(i=>i+1)},[e])}function e3(e){const t=[i_(e.offset)];return e.middlewares.shift&&t.push(ep()),e.middlewares.flip&&t.push(o_()),t}function t3(e){const[t,r]=Ai({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var l;(l=e.onClose)==null||l.call(e),r(!1)},o=()=>{var l,a;t?((l=e.onClose)==null||l.call(e),r(!1)):((a=e.onOpen)==null||a.call(e),r(!0))},i=np({placement:e.position,middleware:[...e3(e),...e.width==="target"?[Sk({apply({rects:l}){var a,s;Object.assign((s=(a=i.refs.floating.current)==null?void 0:a.style)!=null?s:{},{width:`${l.reference.width}px`})}})]:[]]});return y_({opened:e.opened,positionDependencies:e.positionDependencies,floating:i}),kr(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:o}}const w_={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[r3,__]=Ld(w_.context);var n3=Object.defineProperty,o3=Object.defineProperties,i3=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,S_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable,lv=(e,t,r)=>t in e?n3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t)=>{for(var r in t||(t={}))S_.call(t,r)&&lv(e,r,t[r]);if(ja)for(var r of ja(t))x_.call(t,r)&&lv(e,r,t[r]);return e},l3=(e,t)=>o3(e,i3(t)),a3=(e,t)=>{var r={};for(var n in e)S_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ja)for(var n of ja(e))t.indexOf(n)<0&&x_.call(e,n)&&(r[n]=e[n]);return r};const b_=p.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref",popupType:i="dialog"}=r,l=a3(r,["children","refProp","popupType"]);if(!ji(n))throw new Error(w_.children);const a=l,s=__(),u=dn(s.reference,n.ref,t),c=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return p.exports.cloneElement(n,wl(l3(wl(wl(wl({},a),c),s.targetProps),{className:O1(s.targetProps.className,a.className,n.props.className),[o]:u}),s.controlled?null:{onClick:s.onToggle}))});b_.displayName="@mantine/core/PopoverTarget";var s3=Q((e,{radius:t,shadow:r})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm}px ${e.spacing.md}px`,boxShadow:e.shadows[r]||r||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}})),u3=s3,c3=Object.defineProperty,av=Object.getOwnPropertySymbols,f3=Object.prototype.hasOwnProperty,d3=Object.prototype.propertyIsEnumerable,sv=(e,t,r)=>t in e?c3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t)=>{for(var r in t||(t={}))f3.call(t,r)&&sv(e,r,t[r]);if(av)for(var r of av(t))d3.call(t,r)&&sv(e,r,t[r]);return e};const uv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function P_({transition:e,state:t,duration:r,timingFunction:n}){const o={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in pl?wn(wn(wn({transitionProperty:pl[e].transitionProperty},o),pl[e].common),pl[e][uv[t]]):null:wn(wn(wn({transitionProperty:e.transitionProperty},o),e.common),e[uv[t]])}function $_({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:i,onEntered:l,onExited:a}){const s=st(),u=ow(),c=s.respectReducedMotion?u:!1,[f,d]=p.exports.useState(n?"entered":"exited");let g=c?0:e;const y=p.exports.useRef(-1),w=v=>{const m=v?o:i,h=v?l:a;if(d(v?"pre-entering":"pre-exiting"),window.clearTimeout(y.current),g=c?0:v?e:t,g===0)typeof m=="function"&&m(),typeof h=="function"&&h(),d(v?"entered":"exited");else{const _=window.setTimeout(()=>{typeof m=="function"&&m(),d(v?"entering":"exiting")},10);y.current=window.setTimeout(()=>{window.clearTimeout(_),typeof h=="function"&&h(),d(v?"entered":"exited")},g)}};return kr(()=>{w(n)},[n]),p.exports.useEffect(()=>()=>window.clearTimeout(y.current),[]),{transitionDuration:g,transitionStatus:f,transitionTimingFunction:r||s.transitionTimingFunction}}function vu({transition:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=$_({mounted:n,exitDuration:r,duration:t,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});return c===0?n?C.createElement(C.Fragment,null,o({})):null:f==="exited"?null:C.createElement(C.Fragment,null,o(P_({transition:e,duration:c,state:f,timingFunction:d})))}vu.displayName="@mantine/core/Transition";function O_({children:e,active:t=!0,refProp:r="ref"}){const n=rw(t),o=dn(n,e?.ref);return ji(e)?p.exports.cloneElement(e,{[r]:o}):e}O_.displayName="@mantine/core/FocusTrap";var p3=Object.defineProperty,g3=Object.defineProperties,m3=Object.getOwnPropertyDescriptors,cv=Object.getOwnPropertySymbols,v3=Object.prototype.hasOwnProperty,h3=Object.prototype.propertyIsEnumerable,fv=(e,t,r)=>t in e?p3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))v3.call(t,r)&&fv(e,r,t[r]);if(cv)for(var r of cv(t))h3.call(t,r)&&fv(e,r,t[r]);return e},_l=(e,t)=>g3(e,m3(t));function dv(e,t,r){return e==="center"?{top:`calc(50% - ${t/2}px)`}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function pv(e,t,r,n){return e==="center"?{left:`calc(50% - ${t/2}px)`}:e==="end"?{[n==="ltr"?"right":"left"]:r}:e==="start"?{[n==="ltr"?"left":"right"]:r}:{}}function y3({position:e,withBorder:t,arrowSize:r,arrowOffset:n,dir:o}){const[i,l="center"]=e.split("-"),a={width:r,height:r,transform:"rotate(45deg)",position:"absolute"},s=t?-r/2-1:-r/2;return i==="left"?_l(lr(lr({},a),dv(l,r,n)),{[o==="ltr"?"right":"left"]:s,[o==="ltr"?"borderLeft":"borderRight"]:0,borderBottom:0}):i==="right"?_l(lr(lr({},a),dv(l,r,n)),{[o==="ltr"?"left":"right"]:s,[o==="ltr"?"borderRight":"borderLeft"]:0,borderTop:0}):i==="top"?_l(lr(lr({},a),pv(l,r,n,o)),{bottom:s,borderTop:0,[o==="ltr"?"borderLeft":"borderRight"]:0}):i==="bottom"?_l(lr(lr({},a),pv(l,r,n,o)),{top:s,borderBottom:0,[o==="ltr"?"borderRight":"borderLeft"]:0}):{}}var w3=Object.defineProperty,_3=Object.defineProperties,S3=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,C_=Object.prototype.hasOwnProperty,E_=Object.prototype.propertyIsEnumerable,gv=(e,t,r)=>t in e?w3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x3=(e,t)=>{for(var r in t||(t={}))C_.call(t,r)&&gv(e,r,t[r]);if(La)for(var r of La(t))E_.call(t,r)&&gv(e,r,t[r]);return e},b3=(e,t)=>_3(e,S3(t)),P3=(e,t)=>{var r={};for(var n in e)C_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&La)for(var n of La(e))t.indexOf(n)<0&&E_.call(e,n)&&(r[n]=e[n]);return r};function op(e){var t=e,{withBorder:r,position:n,arrowSize:o,arrowOffset:i,visible:l}=t,a=P3(t,["withBorder","position","arrowSize","arrowOffset","visible"]);const s=st();return l?C.createElement("div",b3(x3({},a),{style:y3({withBorder:r,position:n,arrowSize:o,arrowOffset:i,dir:s.dir})})):null}op.displayName="@mantine/core/FloatingArrow";var $3=Object.defineProperty,O3=Object.defineProperties,C3=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable,mv=(e,t,r)=>t in e?$3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sl=(e,t)=>{for(var r in t||(t={}))R_.call(t,r)&&mv(e,r,t[r]);if(Fa)for(var r of Fa(t))k_.call(t,r)&&mv(e,r,t[r]);return e},vv=(e,t)=>O3(e,C3(t)),E3=(e,t)=>{var r={};for(var n in e)R_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&k_.call(e,n)&&(r[n]=e[n]);return r};function I_(e){var t=e,{style:r,className:n,children:o}=t,i=E3(t,["style","className","children"]);const{classNames:l,styles:a,unstyled:s,staticSelector:u}=fn(),c=__(),{classes:f,cx:d}=u3({radius:c.radius,shadow:c.shadow},{name:u,classNames:l,styles:a,unstyled:s}),g=Z1({opened:c.opened,shouldReturnFocus:!1}),y=c.withRoles?{"aria-labelledby":c.getTargetId(),id:c.getDropdownId(),role:"dialog"}:{};return C.createElement(Vi,{withinPortal:c.withinPortal},C.createElement(vu,{mounted:c.opened,transition:c.transition,duration:c.transitionDuration,exitDuration:typeof c.exitTransitionDuration=="number"?c.exitTransitionDuration:c.transitionDuration},w=>{var v,m;return C.createElement(O_,{active:c.trapFocus},C.createElement(X,Sl(vv(Sl({},y),{tabIndex:-1,ref:c.floating,style:vv(Sl(Sl({},r),w),{zIndex:c.zIndex,top:(v=c.y)!=null?v:"",left:(m=c.x)!=null?m:"",width:c.width==="target"?void 0:c.width}),className:d(f.dropdown,n),onKeyDownCapture:B$(c.onClose,{active:c.closeOnEscape,onTrigger:g}),"data-position":c.placement}),i),o,C.createElement(op,{visible:c.withArrow,withBorder:!0,position:c.placement,arrowSize:c.arrowSize,arrowOffset:c.arrowOffset,className:f.arrow})))}))}I_.displayName="@mantine/core/PopoverDropdown";function N_(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var hv=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,k3=Object.prototype.propertyIsEnumerable,I3=(e,t)=>{var r={};for(var n in e)R3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hv)for(var n of hv(e))t.indexOf(n)<0&&k3.call(e,n)&&(r[n]=e[n]);return r};const N3={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0},arrowSize:7,arrowOffset:5,closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:io("popover"),__staticSelector:"Popover"};function nr(e){const t=ee("Popover",N3,e),{children:r,position:n,offset:o,onPositionChange:i,positionDependencies:l,opened:a,transition:s,transitionDuration:u,width:c,middlewares:f,withArrow:d,arrowSize:g,arrowOffset:y,unstyled:w,classNames:v,styles:m,closeOnClickOutside:h,withinPortal:_,closeOnEscape:x,clickOutsideEvents:$,trapFocus:b,onClose:P,onOpen:E,onChange:O,zIndex:D,radius:z,shadow:T,id:F,defaultOpened:G,exitTransitionDuration:q,__staticSelector:B,withRoles:ne}=t,se=I3(t,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles"]),ie=lo(F),De=st(),k=t3({middlewares:f,width:c,position:N_(De.dir,n),offset:o+(d?g/2:0),onPositionChange:i,positionDependencies:l,opened:a,defaultOpened:G,onChange:O,onOpen:E,onClose:P});return a2(()=>h&&k.onClose(),$,[k.floating.refs.floating.current,k.floating.refs.reference.current]),C.createElement(q1,{classNames:v,styles:m,unstyled:w,staticSelector:B},C.createElement(r3,{value:{controlled:k.controlled,reference:k.floating.reference,floating:k.floating.floating,x:k.floating.x,y:k.floating.y,opened:k.opened,transition:s,transitionDuration:u,exitTransitionDuration:q,width:c,withArrow:d,arrowSize:g,arrowOffset:y,placement:k.floating.placement,trapFocus:b,withinPortal:_,zIndex:D,radius:z,shadow:T,closeOnEscape:x,onClose:k.onClose,onToggle:k.onToggle,getTargetId:()=>`${ie}-target`,getDropdownId:()=>`${ie}-dropdown`,withRoles:ne,targetProps:se}},r))}nr.Target=b_;nr.Dropdown=I_;nr.displayName="@mantine/core/Popover";var z3=Object.defineProperty,Aa=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,D_=Object.prototype.propertyIsEnumerable,yv=(e,t,r)=>t in e?z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D3=(e,t)=>{for(var r in t||(t={}))z_.call(t,r)&&yv(e,r,t[r]);if(Aa)for(var r of Aa(t))D_.call(t,r)&&yv(e,r,t[r]);return e},T3=(e,t)=>{var r={};for(var n in e)z_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Aa)for(var n of Aa(e))t.indexOf(n)<0&&D_.call(e,n)&&(r[n]=e[n]);return r};function M3(e){var t=e,{children:r,component:n="div",maxHeight:o=220,direction:i="column",id:l,innerRef:a}=t,s=T3(t,["children","component","maxHeight","direction","id","innerRef"]);return C.createElement(nr.Dropdown,D3({p:0,onMouseDown:u=>u.preventDefault()},s),C.createElement("div",{style:{maxHeight:o,display:"flex"}},C.createElement(X,{component:n||"div",id:`${l}-items`,"aria-labelledby":`${l}-label`,role:"listbox",onMouseDown:u=>u.preventDefault(),style:{flex:1,overflowY:n!==Zd?"auto":void 0},"data-combobox-popover":!0,ref:a},C.createElement("div",{style:{display:"flex",flexDirection:i,width:"100%",padding:4}},r))))}function li({opened:e,transition:t="fade",transitionDuration:r=0,shadow:n,withinPortal:o,children:i,__staticSelector:l,onDirectionChange:a,switchDirectionOnFlip:s,zIndex:u,dropdownPosition:c,positionDependencies:f=[],classNames:d,styles:g,unstyled:y}){return C.createElement(nr,{unstyled:y,classNames:d,styles:g,width:"target",withRoles:!1,opened:e,middlewares:{flip:c==="flip",shift:!1},position:c==="flip"?"bottom":c,positionDependencies:f,zIndex:u,__staticSelector:l,withinPortal:o,transition:t,transitionDuration:r,shadow:n,onPositionChange:w=>s&&a?.(w==="top"?"column-reverse":"column")},i)}li.Target=nr.Target;li.Dropdown=M3;var j3=Object.defineProperty,L3=Object.defineProperties,F3=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,M_=Object.prototype.propertyIsEnumerable,wv=(e,t,r)=>t in e?j3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uc=(e,t)=>{for(var r in t||(t={}))T_.call(t,r)&&wv(e,r,t[r]);if(Va)for(var r of Va(t))M_.call(t,r)&&wv(e,r,t[r]);return e},A3=(e,t)=>L3(e,F3(t)),V3=(e,t)=>{var r={};for(var n in e)T_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Va)for(var n of Va(e))t.indexOf(n)<0&&M_.call(e,n)&&(r[n]=e[n]);return r};function j_(e,t,r){const n=ee(e,t,r),{label:o,description:i,error:l,required:a,classNames:s,styles:u,className:c,unstyled:f,__staticSelector:d,sx:g,errorProps:y,labelProps:w,descriptionProps:v,wrapperProps:m,id:h,size:_,style:x,inputContainer:$,inputWrapperOrder:b}=n,P=V3(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder"]),E=lo(h),{systemStyles:O,rest:D}=lu(P);return A3(uc({},D),{classNames:s,styles:u,unstyled:f,wrapperProps:uc(uc({label:o,description:i,error:l,required:a,classNames:s,className:c,__staticSelector:d,sx:g,errorProps:y,labelProps:w,descriptionProps:v,unstyled:f,styles:u,id:E,size:_,style:x,inputContainer:$,inputWrapperOrder:b},m),O),inputProps:{required:a,classNames:s,styles:u,unstyled:f,id:E,size:_,__staticSelector:d,invalid:!!l}})}var H3=Q((e,{size:t})=>({label:{display:"inline-block",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}})),B3=H3,W3=Object.defineProperty,Ha=Object.getOwnPropertySymbols,L_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,_v=(e,t,r)=>t in e?W3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U3=(e,t)=>{for(var r in t||(t={}))L_.call(t,r)&&_v(e,r,t[r]);if(Ha)for(var r of Ha(t))F_.call(t,r)&&_v(e,r,t[r]);return e},G3=(e,t)=>{var r={};for(var n in e)L_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ha)for(var n of Ha(e))t.indexOf(n)<0&&F_.call(e,n)&&(r[n]=e[n]);return r};const ip=p.exports.forwardRef((e,t)=>{var r=e,{labelElement:n="label",children:o,required:i,size:l="sm",classNames:a,styles:s,unstyled:u,className:c,htmlFor:f,__staticSelector:d}=r,g=G3(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]);const{classes:y,cx:w}=B3({size:l},{name:["InputWrapper",d],classNames:a,styles:s,unstyled:u});return H(X,{...U3({component:n,ref:t,className:w(y.label,c),htmlFor:n==="label"?f:void 0},g),children:[o,i&&S("span",{className:y.required,"aria-hidden":!0,children:" *"})]})});ip.displayName="@mantine/core/InputLabel";var Y3=Q((e,{size:t})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),X3=Y3,q3=Object.defineProperty,Ba=Object.getOwnPropertySymbols,A_=Object.prototype.hasOwnProperty,V_=Object.prototype.propertyIsEnumerable,Sv=(e,t,r)=>t in e?q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K3=(e,t)=>{for(var r in t||(t={}))A_.call(t,r)&&Sv(e,r,t[r]);if(Ba)for(var r of Ba(t))V_.call(t,r)&&Sv(e,r,t[r]);return e},Q3=(e,t)=>{var r={};for(var n in e)A_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&V_.call(e,n)&&(r[n]=e[n]);return r};const lp=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=Q3(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=X3({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(vt,{...K3({className:d(f.error,o),ref:t,role:"alert"},c),children:n})});lp.displayName="@mantine/core/InputError";var Z3=Q((e,{size:t})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),J3=Z3,e5=Object.defineProperty,Wa=Object.getOwnPropertySymbols,H_=Object.prototype.hasOwnProperty,B_=Object.prototype.propertyIsEnumerable,xv=(e,t,r)=>t in e?e5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t5=(e,t)=>{for(var r in t||(t={}))H_.call(t,r)&&xv(e,r,t[r]);if(Wa)for(var r of Wa(t))B_.call(t,r)&&xv(e,r,t[r]);return e},r5=(e,t)=>{var r={};for(var n in e)H_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wa)for(var n of Wa(e))t.indexOf(n)<0&&B_.call(e,n)&&(r[n]=e[n]);return r};const ap=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=r5(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=J3({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(vt,{...t5({color:"dimmed",className:d(f.description,o),ref:t,unstyled:a},c),children:n})});ap.displayName="@mantine/core/InputDescription";const W_=p.exports.createContext({offsetBottom:!1,offsetTop:!1}),n5=W_.Provider,o5=()=>p.exports.useContext(W_);function i5(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),o=e[n-1],i=e[n+1];return{offsetBottom:t&&i==="description"||r&&i==="error",offsetTop:t&&o==="description"||r&&o==="error"}}var l5=Object.defineProperty,a5=Object.defineProperties,s5=Object.getOwnPropertyDescriptors,bv=Object.getOwnPropertySymbols,u5=Object.prototype.hasOwnProperty,c5=Object.prototype.propertyIsEnumerable,Pv=(e,t,r)=>t in e?l5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f5=(e,t)=>{for(var r in t||(t={}))u5.call(t,r)&&Pv(e,r,t[r]);if(bv)for(var r of bv(t))c5.call(t,r)&&Pv(e,r,t[r]);return e},d5=(e,t)=>a5(e,s5(t)),p5=Q(e=>({root:d5(f5({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),g5=p5,m5=Object.defineProperty,v5=Object.defineProperties,h5=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,U_=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable,$v=(e,t,r)=>t in e?m5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hr=(e,t)=>{for(var r in t||(t={}))U_.call(t,r)&&$v(e,r,t[r]);if(Ua)for(var r of Ua(t))G_.call(t,r)&&$v(e,r,t[r]);return e},y5=(e,t)=>v5(e,h5(t)),w5=(e,t)=>{var r={};for(var n in e)U_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ua)for(var n of Ua(e))t.indexOf(n)<0&&G_.call(e,n)&&(r[n]=e[n]);return r};const _5={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Y_=p.exports.forwardRef((e,t)=>{const r=ee("InputWrapper",_5,e),{className:n,label:o,children:i,required:l,id:a,error:s,description:u,labelElement:c,labelProps:f,descriptionProps:d,errorProps:g,classNames:y,styles:w,size:v,inputContainer:m,__staticSelector:h,unstyled:_,inputWrapperOrder:x}=r,$=w5(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder"]),{classes:b,cx:P}=g5(null,{classNames:y,styles:w,name:["InputWrapper",h],unstyled:_}),E={classNames:y,styles:w,unstyled:_,size:v,__staticSelector:h},O=o&&S(ip,{...Hr(Hr({key:"label",labelElement:c,id:a?`${a}-label`:void 0,htmlFor:a,required:l},E),f),children:o}),D=u&&S(ap,{...Hr(Hr({key:"description"},E),d),children:u}),z=S(lt,{children:m(i)}),T=typeof s!="boolean"&&s&&S(lp,{...Hr(y5(Hr({},g),{key:"error"}),E),children:s}),F=x.map(G=>{switch(G){case"label":return O;case"input":return z;case"description":return D;case"error":return T;default:return null}});return S(n5,{value:i5(x,{hasDescription:!!D,hasError:!!T}),children:S(X,{...Hr({className:P(b.root,n),ref:t},$),children:F})})});Y_.displayName="@mantine/core/InputWrapper";var S5=Object.defineProperty,x5=Object.defineProperties,b5=Object.getOwnPropertyDescriptors,Ov=Object.getOwnPropertySymbols,P5=Object.prototype.hasOwnProperty,$5=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?S5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cc=(e,t)=>{for(var r in t||(t={}))P5.call(t,r)&&Cv(e,r,t[r]);if(Ov)for(var r of Ov(t))$5.call(t,r)&&Cv(e,r,t[r]);return e},Ev=(e,t)=>x5(e,b5(t));const ct={xs:30,sm:36,md:42,lg:50,xl:60};function O5({theme:e,variant:t}){return t==="default"?{border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":{outline:"none",borderColor:e.colors[e.primaryColor][e.fn.primaryShade()]}}:t==="filled"?{border:"1px solid transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":{outline:"none",borderColor:`${e.colors[e.primaryColor][e.fn.primaryShade()]} !important`}}:{borderWidth:0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var C5=Q((e,{size:t,multiline:r,radius:n,variant:o,invalid:i,rightSectionWidth:l,withRightSection:a,iconWidth:s,offsetBottom:u,offsetTop:c,pointer:f})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,g=o==="default"||o==="filled"?{minHeight:e.fn.size({size:t,sizes:ct}),paddingLeft:e.fn.size({size:t,sizes:ct})/3,paddingRight:a?l:e.fn.size({size:t,sizes:ct})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:c?e.spacing.xs/2:void 0,marginBottom:u?e.spacing.xs/2:void 0},input:cc(Ev(cc(Ev(cc({},e.fn.fontStyles()),{height:r?o==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:ct}),WebkitTapHighlightColor:"transparent",lineHeight:r?e.lineHeight:`${e.fn.size({size:t,sizes:ct})-2}px`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:f?"pointer":void 0}),g),{"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":{opacity:1,userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),O5({theme:e,variant:o})),withIcon:{paddingLeft:typeof s=="number"?s:e.fn.size({size:t,sizes:ct})},invalid:{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},disabled:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:typeof s=="number"?s:e.fn.size({size:t,sizes:ct}),color:i?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:l}}}),E5=C5,R5=Object.defineProperty,k5=Object.defineProperties,I5=Object.getOwnPropertyDescriptors,Ga=Object.getOwnPropertySymbols,X_=Object.prototype.hasOwnProperty,q_=Object.prototype.propertyIsEnumerable,Rv=(e,t,r)=>t in e?R5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xl=(e,t)=>{for(var r in t||(t={}))X_.call(t,r)&&Rv(e,r,t[r]);if(Ga)for(var r of Ga(t))q_.call(t,r)&&Rv(e,r,t[r]);return e},kv=(e,t)=>k5(e,I5(t)),N5=(e,t)=>{var r={};for(var n in e)X_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ga)for(var n of Ga(e))t.indexOf(n)<0&&q_.call(e,n)&&(r[n]=e[n]);return r};const z5={rightSectionWidth:36,size:"sm",variant:"default"},so=p.exports.forwardRef((e,t)=>{const r=ee("Input",z5,e),{className:n,invalid:o,required:i,disabled:l,variant:a,icon:s,style:u,rightSectionWidth:c,iconWidth:f,rightSection:d,rightSectionProps:g,radius:y,size:w,wrapperProps:v,classNames:m,styles:h,__staticSelector:_,multiline:x,sx:$,unstyled:b,pointer:P}=r,E=N5(r,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:O,offsetTop:D}=o5(),{classes:z,cx:T}=E5({radius:y,size:w,multiline:x,variant:a,invalid:o,rightSectionWidth:c,iconWidth:f,withRightSection:!!d,offsetBottom:O,offsetTop:D,pointer:P},{classNames:m,styles:h,name:["Input",_],unstyled:b}),{systemStyles:F,rest:G}=lu(E);return H(X,{...xl(xl({className:T(z.wrapper,n),sx:$,style:u},F),v),children:[s&&S("div",{className:z.icon,children:s}),S(X,{...kv(xl({component:"input"},G),{ref:t,required:i,"aria-invalid":o,disabled:l,className:T(z[`${a}Variant`],z.input,{[z.withIcon]:s,[z.invalid]:o,[z.disabled]:l})})}),d&&S("div",{...kv(xl({},g),{className:z.rightSection}),children:d})]})});so.displayName="@mantine/core/Input";so.Wrapper=Y_;so.Label=ip;so.Description=ap;so.Error=lp;const Ya=so;var D5=Q((e,{orientation:t,buttonBorderWidth:r})=>({root:{display:"flex",flexDirection:t==="vertical"?"column":"row","& [data-button]":{"&:first-of-type":{borderBottomRightRadius:0,[t==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"&:last-of-type":{borderTopLeftRadius:0,[t==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"& + [data-button]":{[t==="vertical"?"marginTop":"marginLeft"]:-r,"@media (min-resolution: 192dpi)":{[t==="vertical"?"marginTop":"marginLeft"]:0}}}}})),T5=D5,M5=Object.defineProperty,Xa=Object.getOwnPropertySymbols,K_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,Iv=(e,t,r)=>t in e?M5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j5=(e,t)=>{for(var r in t||(t={}))K_.call(t,r)&&Iv(e,r,t[r]);if(Xa)for(var r of Xa(t))Q_.call(t,r)&&Iv(e,r,t[r]);return e},L5=(e,t)=>{var r={};for(var n in e)K_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xa)for(var n of Xa(e))t.indexOf(n)<0&&Q_.call(e,n)&&(r[n]=e[n]);return r};const F5={orientation:"horizontal",buttonBorderWidth:1},Z_=p.exports.forwardRef((e,t)=>{const r=ee("ButtonGroup",F5,e),{className:n,orientation:o,buttonBorderWidth:i,unstyled:l}=r,a=L5(r,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:u}=T5({orientation:o,buttonBorderWidth:i},{name:"ButtonGroup",unstyled:l});return S(X,{...j5({className:u(s.root,n),ref:t},a)})});Z_.displayName="@mantine/core/ButtonGroup";var A5=Object.defineProperty,V5=Object.defineProperties,H5=Object.getOwnPropertyDescriptors,Nv=Object.getOwnPropertySymbols,B5=Object.prototype.hasOwnProperty,W5=Object.prototype.propertyIsEnumerable,zv=(e,t,r)=>t in e?A5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t)=>{for(var r in t||(t={}))B5.call(t,r)&&zv(e,r,t[r]);if(Nv)for(var r of Nv(t))W5.call(t,r)&&zv(e,r,t[r]);return e},$f=(e,t)=>V5(e,H5(t));const Of={xs:{height:ct.xs,paddingLeft:14,paddingRight:14},sm:{height:ct.sm,paddingLeft:18,paddingRight:18},md:{height:ct.md,paddingLeft:22,paddingRight:22},lg:{height:ct.lg,paddingLeft:26,paddingRight:26},xl:{height:ct.xl,paddingLeft:32,paddingRight:32},"compact-xs":{height:22,paddingLeft:7,paddingRight:7},"compact-sm":{height:26,paddingLeft:8,paddingRight:8},"compact-md":{height:30,paddingLeft:10,paddingRight:10},"compact-lg":{height:34,paddingLeft:12,paddingRight:12},"compact-xl":{height:40,paddingLeft:14,paddingRight:14}};function U5({compact:e,size:t,withLeftIcon:r,withRightIcon:n}){if(e)return Of[`compact-${t}`];const o=Of[t];return $f(Yr({},o),{paddingLeft:r?o.paddingLeft/1.5:o.paddingLeft,paddingRight:n?o.paddingRight/1.5:o.paddingRight})}const G5=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function Y5({variant:e,theme:t,color:r,gradient:n}){const o=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:Yr({border:`1px solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var X5=Q((e,{color:t,size:r,radius:n,fullWidth:o,compact:i,gradient:l,variant:a,withLeftIcon:s,withRightIcon:u})=>({root:$f(Yr($f(Yr(Yr(Yr(Yr({},U5({compact:i,size:r,withLeftIcon:s,withRightIcon:u})),e.fn.fontStyles()),e.fn.focusStyles()),G5(o)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:r,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),Y5({variant:a,theme:e,color:t,gradient:l})),{"&:active":e.activeStyles,"&[data-disabled]":{borderColor:"transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:10},rightIcon:{marginLeft:10},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})),q5=X5,K5=Object.defineProperty,qa=Object.getOwnPropertySymbols,J_=Object.prototype.hasOwnProperty,eS=Object.prototype.propertyIsEnumerable,Dv=(e,t,r)=>t in e?K5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tv=(e,t)=>{for(var r in t||(t={}))J_.call(t,r)&&Dv(e,r,t[r]);if(qa)for(var r of qa(t))eS.call(t,r)&&Dv(e,r,t[r]);return e},Q5=(e,t)=>{var r={};for(var n in e)J_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&eS.call(e,n)&&(r[n]=e[n]);return r};const Z5={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},sp=p.exports.forwardRef((e,t)=>{const r=ee("Button",Z5,e),{className:n,size:o,color:i,type:l,disabled:a,children:s,leftIcon:u,rightIcon:c,fullWidth:f,variant:d,radius:g,uppercase:y,compact:w,loading:v,loaderPosition:m,loaderProps:h,gradient:_,classNames:x,styles:$,unstyled:b}=r,P=Q5(r,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:E,cx:O,theme:D}=q5({radius:g,color:i,size:o,fullWidth:f,compact:w,gradient:_,variant:d,withLeftIcon:!!u,withRightIcon:!!c},{name:"Button",unstyled:b,classNames:x,styles:$}),z=D.fn.variant({color:i,variant:d}),T=S(Kd,{...Tv({color:z.color,size:D.fn.size({size:o,sizes:Of}).height/2},h)});return S(au,{...Tv({className:O(E.root,n),type:l,disabled:a||v,"data-button":!0,"data-disabled":a||void 0,"data-loading":v||void 0,ref:t,unstyled:b},P),children:H("div",{className:E.inner,children:[(u||v&&m==="left")&&S("span",{className:O(E.icon,E.leftIcon),children:v&&m==="left"?T:u}),S("span",{className:E.label,style:{textTransform:y?"uppercase":void 0},children:s}),(c||v&&m==="right")&&S("span",{className:O(E.icon,E.rightIcon),children:v&&m==="right"?T:c})]})})});sp.displayName="@mantine/core/Button";sp.Group=Z_;const Kn=sp;var J5=Q((e,{radius:t,shadow:r,withBorder:n})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(t),boxShadow:e.shadows[r]||r||"none",border:n?`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`:void 0}})),e4=J5,t4=Object.defineProperty,Ka=Object.getOwnPropertySymbols,tS=Object.prototype.hasOwnProperty,rS=Object.prototype.propertyIsEnumerable,Mv=(e,t,r)=>t in e?t4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r4=(e,t)=>{for(var r in t||(t={}))tS.call(t,r)&&Mv(e,r,t[r]);if(Ka)for(var r of Ka(t))rS.call(t,r)&&Mv(e,r,t[r]);return e},n4=(e,t)=>{var r={};for(var n in e)tS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ka)for(var n of Ka(e))t.indexOf(n)<0&&rS.call(e,n)&&(r[n]=e[n]);return r};const o4={},nS=p.exports.forwardRef((e,t)=>{const r=ee("Paper",o4,e),{className:n,children:o,radius:i,withBorder:l,shadow:a,unstyled:s}=r,u=n4(r,["className","children","radius","withBorder","shadow","unstyled"]),{classes:c,cx:f}=e4({radius:i,shadow:a,withBorder:l},{name:"Paper",unstyled:s});return S(X,{...r4({className:f(c.root,n),ref:t},u),children:o})});nS.displayName="@mantine/core/Paper";const i4=nS;var l4=Object.defineProperty,Qa=Object.getOwnPropertySymbols,oS=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable,jv=(e,t,r)=>t in e?l4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a4=(e,t)=>{for(var r in t||(t={}))oS.call(t,r)&&jv(e,r,t[r]);if(Qa)for(var r of Qa(t))iS.call(t,r)&&jv(e,r,t[r]);return e},s4=(e,t)=>{var r={};for(var n in e)oS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qa)for(var n of Qa(e))t.indexOf(n)<0&&iS.call(e,n)&&(r[n]=e[n]);return r};const lS=p.exports.forwardRef((e,t)=>{const r=ee("Center",{},e),{inline:n,sx:o}=r,i=s4(r,["inline","sx"]);return S(X,{...a4({ref:t,sx:[{display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...xi(o)]},i)})});lS.displayName="@mantine/core/Center";const aS=lS;function u4(e){return p.exports.Children.toArray(e).filter(Boolean)}const sS={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var c4=Q((e,{spacing:t,position:r,noWrap:n,grow:o,align:i,count:l})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:n?"nowrap":"wrap",justifyContent:sS[r],gap:e.fn.size({size:t,sizes:e.spacing})},child:{boxSizing:"border-box",maxWidth:o?`calc(${100/l}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/l}px)`:void 0,flexGrow:o?1:0}})),f4=c4,d4=Object.defineProperty,Za=Object.getOwnPropertySymbols,uS=Object.prototype.hasOwnProperty,cS=Object.prototype.propertyIsEnumerable,Lv=(e,t,r)=>t in e?d4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p4=(e,t)=>{for(var r in t||(t={}))uS.call(t,r)&&Lv(e,r,t[r]);if(Za)for(var r of Za(t))cS.call(t,r)&&Lv(e,r,t[r]);return e},g4=(e,t)=>{var r={};for(var n in e)uS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Za)for(var n of Za(e))t.indexOf(n)<0&&cS.call(e,n)&&(r[n]=e[n]);return r};const m4={position:"left",spacing:"md"},Lt=p.exports.forwardRef((e,t)=>{const r=ee("Group",m4,e),{className:n,position:o,align:i,children:l,noWrap:a,grow:s,spacing:u,unstyled:c}=r,f=g4(r,["className","position","align","children","noWrap","grow","spacing","unstyled"]),d=u4(l),{classes:g,cx:y}=f4({align:i,grow:s,noWrap:a,spacing:u,position:o,count:d.length},{unstyled:c,name:"Group"}),w=d.map(v=>{var m;return typeof v=="object"&&v!==null&&"props"in v?C.cloneElement(v,{className:y(g.child,(m=v.props)==null?void 0:m.className)}):v});return S(X,{...p4({className:y(g.root,n),ref:t},f),children:w})});Lt.displayName="@mantine/core/Group";var v4=Q((e,{spacing:t,align:r,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:r,justifyContent:n,gap:e.fn.size({size:t,sizes:e.spacing})}})),h4=v4,y4=Object.defineProperty,Ja=Object.getOwnPropertySymbols,fS=Object.prototype.hasOwnProperty,dS=Object.prototype.propertyIsEnumerable,Fv=(e,t,r)=>t in e?y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w4=(e,t)=>{for(var r in t||(t={}))fS.call(t,r)&&Fv(e,r,t[r]);if(Ja)for(var r of Ja(t))dS.call(t,r)&&Fv(e,r,t[r]);return e},_4=(e,t)=>{var r={};for(var n in e)fS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ja)for(var n of Ja(e))t.indexOf(n)<0&&dS.call(e,n)&&(r[n]=e[n]);return r};const S4={spacing:"md",align:"stretch",justify:"top"},Mt=p.exports.forwardRef((e,t)=>{const r=ee("Stack",S4,e),{spacing:n,className:o,align:i,justify:l,unstyled:a}=r,s=_4(r,["spacing","className","align","justify","unstyled"]),{classes:u,cx:c}=h4({spacing:n,align:i,justify:l},{name:"Stack",unstyled:a});return S(X,{...w4({className:c(u.root,o),ref:t},s)})});Mt.displayName="@mantine/core/Stack";function pS({transitions:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=$_({mounted:n,duration:t,exitDuration:r,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});if(c===0)return n?C.createElement(C.Fragment,null,o({})):null;if(f==="exited")return null;const g=Object.keys(e).reduce((y,w)=>(y[w]=P_({duration:e[w].duration,transition:e[w].transition,timingFunction:e[w].timingFunction||d,state:f}),y),{});return C.createElement(C.Fragment,null,o(g))}pS.displayName="@mantine/core/GroupedTransition";var x4=Q((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}})),b4=x4,P4=Object.defineProperty,$4=Object.defineProperties,O4=Object.getOwnPropertyDescriptors,es=Object.getOwnPropertySymbols,gS=Object.prototype.hasOwnProperty,mS=Object.prototype.propertyIsEnumerable,Av=(e,t,r)=>t in e?P4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fc=(e,t)=>{for(var r in t||(t={}))gS.call(t,r)&&Av(e,r,t[r]);if(es)for(var r of es(t))mS.call(t,r)&&Av(e,r,t[r]);return e},C4=(e,t)=>$4(e,O4(t)),E4=(e,t)=>{var r={};for(var n in e)gS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&es)for(var n of es(e))t.indexOf(n)<0&&mS.call(e,n)&&(r[n]=e[n]);return r};const R4={opacity:.6,color:"#fff",zIndex:io("modal"),radius:0,blur:0},vS=p.exports.forwardRef((e,t)=>{const r=ee("Overlay",R4,e),{opacity:n,blur:o,color:i,gradient:l,zIndex:a,radius:s,sx:u,unstyled:c,className:f}=r,d=E4(r,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:g,cx:y}=b4({zIndex:a},{name:"Overlay",unstyled:c}),w=l?{backgroundImage:l}:{backgroundColor:i},v=m=>S(X,{...fc({ref:t,className:y(g.root,f),sx:[h=>C4(fc({},w),{opacity:n,borderRadius:h.fn.size({size:s,sizes:h.radius})}),...xi(u)]},m)});return o?S(X,{...fc({className:y(g.root,f),sx:[{backdropFilter:`blur(${o}px)`},...xi(u)]},d),children:v()}):v(d)});vS.displayName="@mantine/core/Overlay";const k4=vS,hS=p.exports.createContext(null),I4=hS.Provider,N4=()=>p.exports.useContext(hS);var z4=Object.defineProperty,Vv=Object.getOwnPropertySymbols,D4=Object.prototype.hasOwnProperty,T4=Object.prototype.propertyIsEnumerable,Hv=(e,t,r)=>t in e?z4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M4=(e,t)=>{for(var r in t||(t={}))D4.call(t,r)&&Hv(e,r,t[r]);if(Vv)for(var r of Vv(t))T4.call(t,r)&&Hv(e,r,t[r]);return e};const ts=(e,t)=>`${100/(t/e)}%`,yS=(e,t)=>e?`${100/(t/e)}%`:void 0;function j4({sizes:e,offsets:t,theme:r,columns:n,grow:o}){return wO.reduce((i,l)=>(typeof e[l]=="number"&&(i[`@media (min-width: ${r.breakpoints[l]+1}px)`]={flexBasis:ts(e[l],n),flexShrink:0,maxWidth:o?"unset":ts(e[l],n),marginLeft:yS(t[l],n)}),i),{})}var L4=Q((e,{gutter:t,grow:r,offset:n,offsetXs:o,offsetSm:i,offsetMd:l,offsetLg:a,offsetXl:s,columns:u,span:c,xs:f,sm:d,md:g,lg:y,xl:w})=>({root:M4({boxSizing:"border-box",flexGrow:r?1:0,padding:e.fn.size({size:t,sizes:e.spacing})/2,marginLeft:yS(n,u),flexBasis:ts(c,u),flexShrink:0,maxWidth:r?"unset":ts(c,u)},j4({sizes:{xs:f,sm:d,md:g,lg:y,xl:w},offsets:{xs:o,sm:i,md:l,lg:a,xl:s},theme:e,columns:u,grow:r}))})),F4=L4,A4=Object.defineProperty,rs=Object.getOwnPropertySymbols,wS=Object.prototype.hasOwnProperty,_S=Object.prototype.propertyIsEnumerable,Bv=(e,t,r)=>t in e?A4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V4=(e,t)=>{for(var r in t||(t={}))wS.call(t,r)&&Bv(e,r,t[r]);if(rs)for(var r of rs(t))_S.call(t,r)&&Bv(e,r,t[r]);return e},H4=(e,t)=>{var r={};for(var n in e)wS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rs)for(var n of rs(e))t.indexOf(n)<0&&_S.call(e,n)&&(r[n]=e[n]);return r};const B4={offset:0,offsetXs:0,offsetSm:0,offsetMd:0,offsetLg:0,offsetXl:0};function W4(e){return typeof e=="number"&&e>0&&e%1===0}const SS=p.exports.forwardRef((e,t)=>{const r=ee("Grid.Col",B4,e),{children:n,span:o,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:g,lg:y,xl:w,className:v,id:m,unstyled:h}=r,_=H4(r,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","className","id","unstyled"]),x=N4();if(!x)throw new Error("[@mantine/core] Grid.Col was used outside of Grid context");const $=o||x.columns,{classes:b,cx:P}=F4({gutter:x.gutter,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:g,lg:y,xl:w,grow:x.grow,columns:x.columns,span:$},{unstyled:h,name:"Col"});return!W4($)||$>x.columns?null:S(X,{...V4({className:P(b.root,v),ref:t},_),children:n})});SS.displayName="@mantine/core/Col";var U4=Q((e,{justify:t,align:r,gutter:n})=>({root:{margin:-e.fn.size({size:n,sizes:e.spacing})/2,display:"flex",flexWrap:"wrap",justifyContent:t,alignItems:r}})),G4=U4,Y4=Object.defineProperty,ns=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,bS=Object.prototype.propertyIsEnumerable,Wv=(e,t,r)=>t in e?Y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X4=(e,t)=>{for(var r in t||(t={}))xS.call(t,r)&&Wv(e,r,t[r]);if(ns)for(var r of ns(t))bS.call(t,r)&&Wv(e,r,t[r]);return e},q4=(e,t)=>{var r={};for(var n in e)xS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ns)for(var n of ns(e))t.indexOf(n)<0&&bS.call(e,n)&&(r[n]=e[n]);return r};const K4={gutter:"md",justify:"flex-start",align:"stretch",columns:12},hu=p.exports.forwardRef((e,t)=>{const r=ee("Grid",K4,e),{gutter:n,children:o,grow:i,justify:l,align:a,columns:s,className:u,id:c,unstyled:f}=r,d=q4(r,["gutter","children","grow","justify","align","columns","className","id","unstyled"]),{classes:g,cx:y}=G4({gutter:n,justify:l,align:a},{unstyled:f,name:"Grid"});return S(I4,{value:{gutter:n,grow:i,columns:s},children:S(X,{...X4({className:y(g.root,u),ref:t},d),children:o})})});hu.Col=SS;hu.displayName="@mantine/core/Grid";function Q4({open:e,close:t,openDelay:r,closeDelay:n}){const o=p.exports.useRef(-1),i=p.exports.useRef(-1),l=()=>{window.clearTimeout(o.current),window.clearTimeout(i.current)},a=()=>{l(),r===0?e():o.current=window.setTimeout(e,r)},s=()=>{l(),n===0?t():i.current=window.setTimeout(t,n)};return p.exports.useEffect(()=>l,[]),{openDropdown:a,closeDropdown:s}}var Z4=Q(e=>({divider:{margin:`${e.spacing.xs/2}px -5px`,borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`}})),J4=Z4,e6=Object.defineProperty,os=Object.getOwnPropertySymbols,PS=Object.prototype.hasOwnProperty,$S=Object.prototype.propertyIsEnumerable,Uv=(e,t,r)=>t in e?e6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t6=(e,t)=>{for(var r in t||(t={}))PS.call(t,r)&&Uv(e,r,t[r]);if(os)for(var r of os(t))$S.call(t,r)&&Uv(e,r,t[r]);return e},r6=(e,t)=>{var r={};for(var n in e)PS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&os)for(var n of os(e))t.indexOf(n)<0&&$S.call(e,n)&&(r[n]=e[n]);return r};function OS(e){var t=e,{children:r,className:n}=t,o=r6(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=fn(),{classes:s,cx:u}=J4(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return C.createElement(X,t6({className:u(s.divider,n)},o))}OS.displayName="@mantine/core/MenuDivider";const CS={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[n6,up]=Ld(CS.context);var o6=Object.defineProperty,is=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,RS=Object.prototype.propertyIsEnumerable,Gv=(e,t,r)=>t in e?o6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i6=(e,t)=>{for(var r in t||(t={}))ES.call(t,r)&&Gv(e,r,t[r]);if(is)for(var r of is(t))RS.call(t,r)&&Gv(e,r,t[r]);return e},l6=(e,t)=>{var r={};for(var n in e)ES.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&is)for(var n of is(e))t.indexOf(n)<0&&RS.call(e,n)&&(r[n]=e[n]);return r};function kS(e){var t=e,{children:r,onMouseEnter:n,onMouseLeave:o}=t,i=l6(t,["children","onMouseEnter","onMouseLeave"]);const l=p.exports.useRef(),a=up(),s=f=>{(f.key==="ArrowUp"||f.key==="ArrowDown")&&(f.preventDefault(),l.current.querySelectorAll("[data-menu-item]")[0].focus())},u=qt(n,()=>a.trigger==="hover"&&a.openDropdown()),c=qt(o,()=>a.trigger==="hover"&&a.closeDropdown());return S(nr.Dropdown,{...i6({onMouseEnter:u,onMouseLeave:c,role:"menu","aria-orientation":"vertical"},i),children:S("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:s,ref:l,style:{outline:0},children:r})})}kS.displayName="@mantine/core/MenuDropdown";var a6=Object.defineProperty,s6=Object.defineProperties,u6=Object.getOwnPropertyDescriptors,Yv=Object.getOwnPropertySymbols,c6=Object.prototype.hasOwnProperty,f6=Object.prototype.propertyIsEnumerable,Xv=(e,t,r)=>t in e?a6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d6=(e,t)=>{for(var r in t||(t={}))c6.call(t,r)&&Xv(e,r,t[r]);if(Yv)for(var r of Yv(t))f6.call(t,r)&&Xv(e,r,t[r]);return e},p6=(e,t)=>s6(e,u6(t)),g6=Q((e,{color:t,radius:r})=>({item:p6(d6({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${e.spacing.xs}px ${e.spacing.sm}px`,cursor:"pointer",borderRadius:e.fn.radius(r),color:t?e.fn.variant({variant:"filled",primaryFallback:!1,color:t}).background:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"flex",alignItems:"center","&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:t?e.fn.variant({variant:"light",color:t}).background:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[3],.35):e.colors.gray[0]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:e.spacing.xs},itemRightSection:{}})),m6=g6,v6=Object.defineProperty,h6=Object.defineProperties,y6=Object.getOwnPropertyDescriptors,ls=Object.getOwnPropertySymbols,IS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,qv=(e,t,r)=>t in e?v6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w6=(e,t)=>{for(var r in t||(t={}))IS.call(t,r)&&qv(e,r,t[r]);if(ls)for(var r of ls(t))NS.call(t,r)&&qv(e,r,t[r]);return e},_6=(e,t)=>h6(e,y6(t)),S6=(e,t)=>{var r={};for(var n in e)IS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ls)for(var n of ls(e))t.indexOf(n)<0&&NS.call(e,n)&&(r[n]=e[n]);return r};const zS=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,color:i,closeMenuOnClick:l,icon:a,rightSection:s}=r,u=S6(r,["children","className","color","closeMenuOnClick","icon","rightSection"]);const c=up(),{classNames:f,styles:d,unstyled:g}=fn(),{classes:y,cx:w,theme:v}=m6({radius:c.radius,color:i},{name:"Menu",classNames:f,styles:d,unstyled:g}),m=p.exports.useRef(),h=c.getItemIndex(m.current),_=u,x=qt(_.onMouseLeave,()=>c.setHovered(-1)),$=qt(_.onMouseEnter,()=>c.setHovered(c.getItemIndex(m.current))),b=qt(_.onClick,()=>{typeof l=="boolean"?l&&c.closeDropdownImmediately():c.closeOnItemClick&&c.closeDropdownImmediately()}),P=qt(_.onFocus,()=>c.setHovered(c.getItemIndex(m.current)));return H(X,{..._6(w6({component:"button"},u),{type:"button",tabIndex:-1,onFocus:P,className:w(y.item,o),ref:dn(m,t),role:"menuitem","data-menu-item":!0,"data-hovered":c.hovered===h?!0:void 0,onMouseEnter:$,onMouseLeave:x,onClick:b,onKeyDown:x1({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:c.loop,dir:v.dir,orientation:"vertical",onKeyDown:_.onKeydown})}),children:[a&&S("div",{className:y.itemIcon,children:a}),n&&S("div",{className:y.itemLabel,children:n}),s&&S("div",{className:y.itemRightSection,children:s})]})});zS.displayName="@mantine/core/MenuItem";const x6=zS;var b6=Q(e=>({label:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontWeight:500,fontSize:e.fontSizes.xs,padding:`${e.spacing.xs/2}px ${e.spacing.sm}px`,cursor:"default"}})),P6=b6,$6=Object.defineProperty,as=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,TS=Object.prototype.propertyIsEnumerable,Kv=(e,t,r)=>t in e?$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O6=(e,t)=>{for(var r in t||(t={}))DS.call(t,r)&&Kv(e,r,t[r]);if(as)for(var r of as(t))TS.call(t,r)&&Kv(e,r,t[r]);return e},C6=(e,t)=>{var r={};for(var n in e)DS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&as)for(var n of as(e))t.indexOf(n)<0&&TS.call(e,n)&&(r[n]=e[n]);return r};function MS(e){var t=e,{children:r,className:n}=t,o=C6(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=fn(),{classes:s,cx:u}=P6(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return C.createElement(vt,O6({className:u(s.label,n)},o),r)}MS.displayName="@mantine/core/MenuLabel";var E6=Object.defineProperty,ss=Object.getOwnPropertySymbols,jS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,Qv=(e,t,r)=>t in e?E6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R6=(e,t)=>{for(var r in t||(t={}))jS.call(t,r)&&Qv(e,r,t[r]);if(ss)for(var r of ss(t))LS.call(t,r)&&Qv(e,r,t[r]);return e},k6=(e,t)=>{var r={};for(var n in e)jS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ss)for(var n of ss(e))t.indexOf(n)<0&&LS.call(e,n)&&(r[n]=e[n]);return r};const FS=p.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref"}=r,i=k6(r,["children","refProp"]);if(!ji(n))throw new Error(CS.children);const l=up(),a=qt(n.props.onClick,()=>l.trigger==="click"&&l.toggleDropdown()),s=qt(n.props.onMouseEnter,()=>l.trigger==="hover"&&l.openDropdown()),u=qt(n.props.onMouseLeave,()=>l.trigger==="hover"&&l.closeDropdown());return S(nr.Target,{...R6({refProp:o,popupType:"menu",ref:t},i),children:p.exports.cloneElement(n,{onClick:a,onMouseEnter:s,onMouseLeave:u,"data-expanded":l.opened?!0:void 0})})});FS.displayName="@mantine/core/MenuTarget";var I6=Q({dropdown:{padding:4}}),N6=I6,z6=Object.defineProperty,D6=Object.defineProperties,T6=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,AS=Object.prototype.hasOwnProperty,VS=Object.prototype.propertyIsEnumerable,Zv=(e,t,r)=>t in e?z6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jv=(e,t)=>{for(var r in t||(t={}))AS.call(t,r)&&Zv(e,r,t[r]);if(us)for(var r of us(t))VS.call(t,r)&&Zv(e,r,t[r]);return e},eh=(e,t)=>D6(e,T6(t)),M6=(e,t)=>{var r={};for(var n in e)AS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&us)for(var n of us(e))t.indexOf(n)<0&&VS.call(e,n)&&(r[n]=e[n]);return r};const j6={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function tt(e){const t=ee("Menu",j6,e),{children:r,onOpen:n,onClose:o,opened:i,defaultOpened:l,onChange:a,closeOnItemClick:s,loop:u,closeOnEscape:c,trigger:f,openDelay:d,closeDelay:g,classNames:y,styles:w,unstyled:v,radius:m}=t,h=M6(t,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius"]),{classes:_,cx:x}=N6(),[$,{setHovered:b,resetHovered:P}]=W$(),[E,O]=Ai({value:i,defaultValue:l,finalValue:!1,onChange:a}),D=()=>{O(!1),E&&o?.()},z=()=>{O(!0),!E&&n?.()},T=()=>E?D():z(),{openDropdown:F,closeDropdown:G}=Q4({open:z,close:D,closeDelay:g,openDelay:d}),q=B=>j$("[data-menu-item]","[data-menu-dropdown]",B);return kr(()=>{P()},[E]),C.createElement(n6,{value:{opened:E,toggleDropdown:T,getItemIndex:q,hovered:$,setHovered:b,closeOnItemClick:s,closeDropdown:f==="click"?D:G,openDropdown:f==="click"?z:F,closeDropdownImmediately:D,loop:u,trigger:f,radius:m}},C.createElement(nr,eh(Jv({},h),{radius:m,opened:E,onChange:O,defaultOpened:l,trapFocus:f==="click",closeOnEscape:c&&f==="click",__staticSelector:"Menu",classNames:eh(Jv({},y),{dropdown:x(_.dropdown,y?.dropdown)}),styles:w,unstyled:v,onClose:D,onOpen:z}),r))}tt.displayName="@mantine/core/Menu";tt.Item=x6;tt.Label=MS;tt.Dropdown=kS;tt.Target=FS;tt.Divider=OS;var L6=Object.defineProperty,th=Object.getOwnPropertySymbols,F6=Object.prototype.hasOwnProperty,A6=Object.prototype.propertyIsEnumerable,rh=(e,t,r)=>t in e?L6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V6=(e,t)=>{for(var r in t||(t={}))F6.call(t,r)&&rh(e,r,t[r]);if(th)for(var r of th(t))A6.call(t,r)&&rh(e,r,t[r]);return e};const H6={xs:320,sm:380,md:440,lg:620,xl:780};function B6(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}}var W6=Q((e,{overflow:t,size:r,centered:n,zIndex:o,fullScreen:i})=>({close:{},overlay:{display:i?"none":void 0},root:{position:"fixed",zIndex:o,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:i?0:`${e.spacing.xl*2}px ${e.spacing.md}px`,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:V6({position:"relative",width:i?void 0:e.fn.size({sizes:H6,size:r}),borderRadius:i?0:void 0,outline:0,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,marginTop:n?"auto":void 0,marginBottom:n?"auto":void 0,zIndex:1,marginLeft:i?void 0:"calc(var(--removed-scroll-width, 0px) * -1)"},B6(i)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:t==="inside"?"calc(100vh - 185px)":null,overflowY:t==="inside"?"auto":null,wordBreak:"break-word"}})),U6=W6,G6=Object.defineProperty,cs=Object.getOwnPropertySymbols,HS=Object.prototype.hasOwnProperty,BS=Object.prototype.propertyIsEnumerable,nh=(e,t,r)=>t in e?G6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y6=(e,t)=>{for(var r in t||(t={}))HS.call(t,r)&&nh(e,r,t[r]);if(cs)for(var r of cs(t))BS.call(t,r)&&nh(e,r,t[r]);return e},X6=(e,t)=>{var r={};for(var n in e)HS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cs)for(var n of cs(e))t.indexOf(n)<0&&BS.call(e,n)&&(r[n]=e[n]);return r};const q6={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:io("modal")};function yu(e){const t=ee("Modal",q6,e),{className:r,opened:n,title:o,onClose:i,children:l,withCloseButton:a,overlayOpacity:s,size:u,transitionDuration:c,closeButtonLabel:f,overlayColor:d,overflow:g,transition:y,padding:w,shadow:v,radius:m,id:h,classNames:_,styles:x,closeOnClickOutside:$,trapFocus:b,closeOnEscape:P,centered:E,target:O,withinPortal:D,zIndex:z,overlayBlur:T,transitionTimingFunction:F,fullScreen:G,unstyled:q,lockScroll:B,withFocusReturn:ne}=t,se=X6(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),ie=lo(h),De=`${ie}-title`,k=`${ie}-body`,{classes:N,cx:A,theme:R}=U6({size:u,overflow:g,centered:E,zIndex:z,fullScreen:G},{unstyled:q,classNames:_,styles:x,name:"Modal"}),M=rw(b&&n),W=typeof s=="number"?s:R.colorScheme==="dark"?.85:.75,[,Z]=z2(),Te=ae=>{!b&&ae.key==="Escape"&&P&&i()};return p.exports.useEffect(()=>{if(!b)return window.addEventListener("keydown",Te),()=>window.removeEventListener("keydown",Te)},[b]),Z1({opened:n,shouldReturnFocus:b&&ne}),S(Vi,{withinPortal:D,target:O,children:S(pS,{onExited:()=>B&&Z(!1),onEntered:()=>B&&Z(!0),mounted:n,duration:c,exitDuration:c,timingFunction:F,transitions:{modal:{duration:c,transition:y||(G?"fade":"pop")},overlay:{duration:c/2,transition:"fade",timingFunction:"ease"}},children:ae=>S(X,{...Y6({id:ie,className:A(N.root,r)},se),children:H("div",{className:N.inner,onKeyDownCapture:He=>{var or;((or=He.target)==null?void 0:or.getAttribute("data-mantine-stop-propagation"))!=="true"&&He.key==="Escape"&&P&&i()},ref:M,children:[H(i4,{className:N.modal,shadow:v,p:w,radius:m,role:"dialog","aria-labelledby":De,"aria-describedby":k,"aria-modal":!0,tabIndex:-1,style:ae.modal,unstyled:q,children:[(o||a)&&H("div",{className:N.header,children:[S(vt,{id:De,className:N.title,children:o}),a&&S(su,{iconSize:16,onClick:i,"aria-label":f,className:N.close})]}),S("div",{id:k,className:N.body,children:l})]}),S("div",{style:ae.overlay,children:S(k4,{className:N.overlay,sx:{position:"fixed"},zIndex:0,onMouseDown:()=>$&&i(),blur:T,color:d||(R.colorScheme==="dark"?R.colors.dark[9]:R.black),opacity:W,unstyled:q})})]})})})})}yu.displayName="@mantine/core/Modal";var K6=Object.defineProperty,fs=Object.getOwnPropertySymbols,WS=Object.prototype.hasOwnProperty,US=Object.prototype.propertyIsEnumerable,oh=(e,t,r)=>t in e?K6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ih=(e,t)=>{for(var r in t||(t={}))WS.call(t,r)&&oh(e,r,t[r]);if(fs)for(var r of fs(t))US.call(t,r)&&oh(e,r,t[r]);return e},Q6=(e,t)=>{var r={};for(var n in e)WS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fs)for(var n of fs(e))t.indexOf(n)<0&&US.call(e,n)&&(r[n]=e[n]);return r};const Z6={xs:14,sm:18,md:20,lg:24,xl:28};function J6(e){var t=e,{size:r,error:n,style:o}=t,i=Q6(t,["size","error","style"]);const l=st(),a=l.fn.size({size:r,sizes:Z6});return C.createElement("svg",ih({width:a,height:a,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:ih({color:n?l.colors.red[6]:l.colors.gray[6]},o),"data-chevron":!0},i),C.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function GS({shouldClear:e,clearButtonLabel:t,onClear:r,size:n,error:o,clearButtonTabIndex:i}){return e?C.createElement(su,{variant:"transparent","aria-label":t,onClick:r,size:n,tabIndex:i}):C.createElement(J6,{error:o,size:n})}GS.displayName="@mantine/core/SelectRightSection";var eI=Object.defineProperty,tI=Object.defineProperties,rI=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,YS=Object.prototype.hasOwnProperty,XS=Object.prototype.propertyIsEnumerable,lh=(e,t,r)=>t in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dc=(e,t)=>{for(var r in t||(t={}))YS.call(t,r)&&lh(e,r,t[r]);if(ds)for(var r of ds(t))XS.call(t,r)&&lh(e,r,t[r]);return e},ah=(e,t)=>tI(e,rI(t)),nI=(e,t)=>{var r={};for(var n in e)YS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ds)for(var n of ds(e))t.indexOf(n)<0&&XS.call(e,n)&&(r[n]=e[n]);return r};const oI={xs:24,sm:30,md:34,lg:44,xl:54};function iI(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:o,theme:i}=t,l=nI(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:o,styles:r};const a=typeof r=="function"?r(i):r;return{rightSectionWidth:i.fn.size({size:l.size,sizes:oI}),rightSection:!l.readOnly&&!(l.disabled&&l.shouldClear)&&C.createElement(GS,dc({},l)),styles:ah(dc({},a),{rightSection:ah(dc({},a?.rightSection),{pointerEvents:l.shouldClear?void 0:"none"})})}}const lI=(e,t,r)=>Number.isInteger(e)&&e>=0&&t===0?"numeric":!Number.isInteger(e)&&e>=0&&t!==0?"decimal":Number.isInteger(e)&&e<0&&t===0||!Number.isInteger(e)&&e<0&&t!==0?r==="ios"?"text":"decimal":"numeric";function sh({direction:e,size:t}){return C.createElement("svg",{style:{transform:e==="up"?"rotate(180deg)":void 0},width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const qS={xs:20,sm:24,md:30,lg:34,xl:36};var aI=Q((e,{radius:t,size:r})=>({rightSection:{display:"flex",flexDirection:"column",height:"calc(100% - 2px)",margin:1,marginRight:1,overflow:"hidden",borderTopRightRadius:e.fn.radius(t),borderBottomRightRadius:e.fn.radius(t)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:e.fn.size({size:r,sizes:qS}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:1,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,"&:not(:disabled):hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}})),sI=aI,uI=Object.defineProperty,cI=Object.defineProperties,fI=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,KS=Object.prototype.hasOwnProperty,QS=Object.prototype.propertyIsEnumerable,uh=(e,t,r)=>t in e?uI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pc=(e,t)=>{for(var r in t||(t={}))KS.call(t,r)&&uh(e,r,t[r]);if(ps)for(var r of ps(t))QS.call(t,r)&&uh(e,r,t[r]);return e},dI=(e,t)=>cI(e,fI(t)),pI=(e,t)=>{var r={};for(var n in e)KS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ps)for(var n of ps(e))t.indexOf(n)<0&&QS.call(e,n)&&(r[n]=e[n]);return r};const gI={type:"text",size:"sm",__staticSelector:"TextInput"},Mr=p.exports.forwardRef((e,t)=>{const r=j_("TextInput",gI,e),{inputProps:n,wrapperProps:o}=r,i=pI(r,["inputProps","wrapperProps"]);return S(Ya.Wrapper,{...pc({},o),children:S(Ya,{...dI(pc(pc({},n),i),{ref:t})})})});Mr.displayName="@mantine/core/TextInput";var mI=Object.defineProperty,vI=Object.defineProperties,hI=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertySymbols,ZS=Object.prototype.hasOwnProperty,JS=Object.prototype.propertyIsEnumerable,ch=(e,t,r)=>t in e?mI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yI=(e,t)=>{for(var r in t||(t={}))ZS.call(t,r)&&ch(e,r,t[r]);if(gs)for(var r of gs(t))JS.call(t,r)&&ch(e,r,t[r]);return e},wI=(e,t)=>vI(e,hI(t)),_I=(e,t)=>{var r={};for(var n in e)ZS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gs)for(var n of gs(e))t.indexOf(n)<0&&JS.call(e,n)&&(r[n]=e[n]);return r};const SI=e=>e||"",xI=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);const r=parseFloat(t);if(!Number.isNaN(r))return e},fh={xs:10,sm:14,md:16,lg:18,xl:20},bI={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,formatter:SI,parser:xI},Oi=p.exports.forwardRef((e,t)=>{const r=ee("NumberInput",bI,e),{disabled:n,value:o,onChange:i,decimalSeparator:l,min:a,max:s,startValue:u,step:c,stepHoldInterval:f,stepHoldDelay:d,onBlur:g,onFocus:y,hideControls:w,radius:v,variant:m,precision:h,defaultValue:_,noClampOnBlur:x,handlersRef:$,classNames:b,styles:P,size:E,rightSection:O,rightSectionWidth:D,formatter:z,parser:T,inputMode:F,unstyled:G}=r,q=_I(r,["disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","hideControls","radius","variant","precision","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled"]),{classes:B,cx:ne,theme:se}=sI({radius:v,size:E},{classNames:b,styles:P,unstyled:G,name:"NumberInput"}),[ie,De]=p.exports.useState(!1),[k,N]=p.exports.useState(typeof o=="number"?o:typeof _=="number"?_:void 0),A=typeof o=="number"?o:k,[R,M]=p.exports.useState(typeof A=="number"?A.toFixed(h):""),W=p.exports.useRef(),Z=V=>{V!==k&&!Number.isNaN(V)&&(typeof i=="function"&&i(V),N(V))},Te=(V="")=>{let oe=typeof V=="number"?String(V):V;return l&&(oe=oe.replace(/\./g,l)),z(oe)},ae=V=>{let oe=V;return l&&(oe=oe.replace(new RegExp(`\\${l}`,"g"),".")),T(oe)},He=typeof a=="number"?a:-1/0,or=typeof s=="number"?s:1/0,mn=p.exports.useRef();mn.current=()=>{var V,oe,me;if(k===void 0)Z((V=u??a)!=null?V:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const Be=oc(k+c,He,or).toFixed(h);Z(parseFloat(Be)),M(Be)}};const fo=p.exports.useRef();fo.current=()=>{var V,oe,me;if(k===void 0)Z((V=u??a)!=null?V:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const Be=oc(k-c,He,or).toFixed(h);Z(parseFloat(Be)),M(Be)}},nw($,{increment:mn.current,decrement:fo.current}),p.exports.useEffect(()=>{typeof o=="number"&&!ie&&(N(o),M(o.toFixed(h))),_===void 0&&o===void 0&&!ie&&(N(o),M(""))},[o]);const po=d!==void 0&&f!==void 0,Qe=p.exports.useRef(null),go=p.exports.useRef(0),Ft=()=>{Qe.current&&window.clearTimeout(Qe.current),Qe.current=null,go.current=0},Xi=V=>{V?mn.current():fo.current(),go.current+=1},qi=V=>{if(Xi(V),po){const oe=typeof f=="number"?f:f(go.current);Qe.current=window.setTimeout(()=>qi(V),oe)}},Re=(V,oe)=>{V.preventDefault(),W.current.focus(),Xi(oe),po&&(Qe.current=window.setTimeout(()=>qi(oe),d))};p.exports.useEffect(()=>(Ft(),Ft),[]);const Eu=H("div",{className:B.rightSection,children:[S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A>=s,className:ne(B.control,B.controlUp),onPointerDown:V=>{Re(V,!0)},onPointerUp:Ft,onPointerLeave:Ft,children:S(sh,{size:se.fn.size({size:E,sizes:fh}),direction:"up"})}),S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A<=a,className:ne(B.control,B.controlDown),onPointerDown:V=>{Re(V,!1)},onPointerUp:Ft,onPointerLeave:Ft,children:S(sh,{size:se.fn.size({size:E,sizes:fh}),direction:"down"})})]}),_t=V=>{if(V.nativeEvent.isComposing)return;const me=V.target.value,Be=ae(me);M(Be),me===""||me==="-"?Z(void 0):me.trim()!==""&&!Number.isNaN(Be)&&Z(parseFloat(Be))},Me=V=>{var oe;if(V.target.value==="")M(""),Z(void 0);else{let me=V.target.value;(me[0]===`${l}`||me[0]===".")&&(me=`0${me}`);const Be=ae(me),vo=oc(parseFloat(Be),He,or);Number.isNaN(vo)?M((oe=A?.toFixed(h))!=null?oe:""):x||(M(vo.toFixed(h)),Z(parseFloat(vo.toFixed(h))))}De(!1),typeof g=="function"&&g(V)},mo=V=>{De(!0),typeof y=="function"&&y(V)},vn=V=>{if(V.repeat&&po&&(V.key==="ArrowUp"||V.key==="ArrowDown")){V.preventDefault();return}V.key==="ArrowUp"?Re(V,!0):V.key==="ArrowDown"&&Re(V,!1)},Ki=V=>{(V.key==="ArrowUp"||V.key==="ArrowDown")&&Ft()};return S(Mr,{...wI(yI({},q),{variant:m,value:Te(R),disabled:n,ref:dn(W,t),type:"text",onChange:_t,onBlur:Me,onFocus:mo,onKeyDown:vn,onKeyUp:Ki,rightSection:O||(n||w||m==="unstyled"?null:Eu),rightSectionWidth:D||se.fn.size({size:E,sizes:qS})+1,radius:v,max:s,min:a,step:c,size:E,styles:P,classNames:b,inputMode:F||lI(c,h,T2()),__staticSelector:"NumberInput",unstyled:G})})});Oi.displayName="@mantine/core/NumberInput";var PI=Object.defineProperty,dh=Object.getOwnPropertySymbols,$I=Object.prototype.hasOwnProperty,OI=Object.prototype.propertyIsEnumerable,ph=(e,t,r)=>t in e?PI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CI=(e,t)=>{for(var r in t||(t={}))$I.call(t,r)&&ph(e,r,t[r]);if(dh)for(var r of dh(t))OI.call(t,r)&&ph(e,r,t[r]);return e};function ex(e){return C.createElement("svg",CI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z",fill:"currentColor"}))}var EI=Object.defineProperty,gh=Object.getOwnPropertySymbols,RI=Object.prototype.hasOwnProperty,kI=Object.prototype.propertyIsEnumerable,mh=(e,t,r)=>t in e?EI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,II=(e,t)=>{for(var r in t||(t={}))RI.call(t,r)&&mh(e,r,t[r]);if(gh)for(var r of gh(t))kI.call(t,r)&&mh(e,r,t[r]);return e};function tx(e){return C.createElement("svg",II({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",fill:"currentColor"}))}var NI=Object.defineProperty,vh=Object.getOwnPropertySymbols,zI=Object.prototype.hasOwnProperty,DI=Object.prototype.propertyIsEnumerable,hh=(e,t,r)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TI=(e,t)=>{for(var r in t||(t={}))zI.call(t,r)&&hh(e,r,t[r]);if(vh)for(var r of vh(t))DI.call(t,r)&&hh(e,r,t[r]);return e};function rx(e){return C.createElement("svg",TI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",fill:"currentColor"}))}var MI=Object.defineProperty,yh=Object.getOwnPropertySymbols,jI=Object.prototype.hasOwnProperty,LI=Object.prototype.propertyIsEnumerable,wh=(e,t,r)=>t in e?MI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FI=(e,t)=>{for(var r in t||(t={}))jI.call(t,r)&&wh(e,r,t[r]);if(yh)for(var r of yh(t))LI.call(t,r)&&wh(e,r,t[r]);return e};function nx(e){return C.createElement("svg",FI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",fill:"currentColor"}))}var AI=Object.defineProperty,_h=Object.getOwnPropertySymbols,VI=Object.prototype.hasOwnProperty,HI=Object.prototype.propertyIsEnumerable,Sh=(e,t,r)=>t in e?AI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BI=(e,t)=>{for(var r in t||(t={}))VI.call(t,r)&&Sh(e,r,t[r]);if(_h)for(var r of _h(t))HI.call(t,r)&&Sh(e,r,t[r]);return e};function ox(e){return C.createElement("svg",BI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C.createElement("path",{d:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",fill:"currentColor"}))}var WI=Object.defineProperty,ms=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,xh=(e,t,r)=>t in e?WI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UI=(e,t)=>{for(var r in t||(t={}))ix.call(t,r)&&xh(e,r,t[r]);if(ms)for(var r of ms(t))lx.call(t,r)&&xh(e,r,t[r]);return e},GI=(e,t)=>{var r={};for(var n in e)ix.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ms)for(var n of ms(e))t.indexOf(n)<0&&lx.call(e,n)&&(r[n]=e[n]);return r};const YI={dots:ex,next:tx,prev:rx,first:nx,last:ox},XI={dots:ex,prev:tx,next:rx,last:nx,first:ox};function ax(e){var t=e,{page:r,active:n,onClick:o}=t,i=GI(t,["page","active","onClick"]);const a=(st().dir==="rtl"?XI:YI)[r],s=a?C.createElement(a,null):r;return C.createElement("button",UI({type:"button",onClick:o},i),s)}ax.displayName="@mantine/core/Pagination/DefaultItem";var qI=Object.defineProperty,KI=Object.defineProperties,QI=Object.getOwnPropertyDescriptors,bh=Object.getOwnPropertySymbols,ZI=Object.prototype.hasOwnProperty,JI=Object.prototype.propertyIsEnumerable,Ph=(e,t,r)=>t in e?qI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eN=(e,t)=>{for(var r in t||(t={}))ZI.call(t,r)&&Ph(e,r,t[r]);if(bh)for(var r of bh(t))JI.call(t,r)&&Ph(e,r,t[r]);return e},tN=(e,t)=>KI(e,QI(t));const $h={xs:22,sm:26,md:32,lg:38,xl:44};var rN=Q((e,{size:t,radius:r,color:n})=>{const o=e.fn.variant({color:n,variant:"filled"});return{item:tN(eN({},e.fn.focusStyles()),{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,height:e.fn.size({size:t,sizes:$h}),minWidth:e.fn.size({size:t,sizes:$h}),padding:`0 ${e.fn.size({size:t,sizes:e.spacing})/2}px`,fontSize:e.fn.size({size:t,sizes:e.fontSizes}),borderRadius:e.fn.radius(r),lineHeight:1,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,"&:active:not(:disabled):not([data-dots])":e.activeStyles,"&:disabled":{opacity:.6,cursor:"not-allowed",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&[data-dots]":{cursor:"default",borderColor:"transparent",backgroundColor:"transparent"},"&[data-active]":{borderColor:"transparent",color:o.color,backgroundColor:o.background}})}}),nN=rN,oN=Object.defineProperty,vs=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,Oh=(e,t,r)=>t in e?oN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iN=(e,t)=>{for(var r in t||(t={}))sx.call(t,r)&&Oh(e,r,t[r]);if(vs)for(var r of vs(t))ux.call(t,r)&&Oh(e,r,t[r]);return e},lN=(e,t)=>{var r={};for(var n in e)sx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vs)for(var n of vs(e))t.indexOf(n)<0&&ux.call(e,n)&&(r[n]=e[n]);return r};const aN={itemComponent:ax,initialPage:1,siblings:1,boundaries:1,size:"md",radius:"sm",withEdges:!1,withControls:!0},cx=p.exports.forwardRef((e,t)=>{const r=ee("Pagination",aN,e),{itemComponent:n,classNames:o,styles:i,page:l,initialPage:a,color:s,total:u,siblings:c,boundaries:f,size:d,radius:g,onChange:y,getItemAriaLabel:w,spacing:v,withEdges:m,withControls:h,sx:_,unstyled:x}=r,$=lN(r,["itemComponent","classNames","styles","page","initialPage","color","total","siblings","boundaries","size","radius","onChange","getItemAriaLabel","spacing","withEdges","withControls","sx","unstyled"]),{classes:b,theme:P}=nN({color:s,size:d,radius:g},{classNames:o,styles:i,unstyled:x,name:"Pagination"}),{range:E,setPage:O,next:D,previous:z,active:T,first:F,last:G}=x2({page:l,siblings:c,total:u,onChange:y,initialPage:a,boundaries:f}),q=E.map((B,ne)=>S(n,{page:B,active:B===T,"aria-current":B===T?"page":void 0,"aria-label":typeof w=="function"?w(B):null,tabIndex:B==="dots"?-1:0,"data-dots":B==="dots"||void 0,"data-active":B===T||void 0,className:b.item,onClick:B!=="dots"?()=>O(B):void 0},ne));return H(Lt,{...iN({role:"navigation",spacing:v||P.fn.size({size:d,sizes:P.spacing})/2,ref:t,sx:_,unstyled:x},$),children:[m&&S(n,{page:"first",onClick:F,"aria-label":w?w("first"):void 0,"aria-disabled":T===1,className:b.item,disabled:T===1}),h&&S(n,{page:"prev",onClick:z,"aria-label":w?w("prev"):void 0,"aria-disabled":T===1,className:b.item,disabled:T===1}),q,h&&S(n,{page:"next",onClick:D,"aria-label":w?w("next"):void 0,"aria-disabled":T===u,className:b.item,disabled:T===u}),m&&S(n,{page:"last",onClick:G,"aria-label":w?w("last"):void 0,"aria-disabled":T===u,className:b.item,disabled:T===u})]})});cx.displayName="@mantine/core/Pagination";function sN({data:e,searchable:t,limit:r,searchValue:n,filter:o,value:i,filterDataOnExactSearchMatch:l}){if(!t)return e;const a=i!=null&&e.find(u=>u.value===i)||null;if(a&&!l&&a?.label===n)return e;const s=[];for(let u=0;u=r));u+=1);return s}var uN=Q(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),cN=uN,fN=Object.defineProperty,dN=Object.defineProperties,pN=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,fx=Object.prototype.hasOwnProperty,dx=Object.prototype.propertyIsEnumerable,Ch=(e,t,r)=>t in e?fN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mo=(e,t)=>{for(var r in t||(t={}))fx.call(t,r)&&Ch(e,r,t[r]);if(hs)for(var r of hs(t))dx.call(t,r)&&Ch(e,r,t[r]);return e},gc=(e,t)=>dN(e,pN(t)),gN=(e,t)=>{var r={};for(var n in e)fx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hs)for(var n of hs(e))t.indexOf(n)<0&&dx.call(e,n)&&(r[n]=e[n]);return r};function mN(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function vN(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const hN={required:!1,size:"sm",shadow:"sm",itemComponent:jw,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:mN,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:vN,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:io("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},Ci=p.exports.forwardRef((e,t)=>{const r=j_("Select",hN,e),{inputProps:n,wrapperProps:o,shadow:i,data:l,value:a,defaultValue:s,onChange:u,itemComponent:c,onKeyDown:f,onBlur:d,onFocus:g,transition:y,transitionDuration:w,initiallyOpened:v,transitionTimingFunction:m,unstyled:h,classNames:_,styles:x,filter:$,maxDropdownHeight:b,searchable:P,clearable:E,nothingFound:O,clearButtonLabel:D,limit:z,disabled:T,onSearchChange:F,rightSection:G,rightSectionWidth:q,creatable:B,getCreateLabel:ne,shouldCreate:se,selectOnBlur:ie,onCreate:De,dropdownComponent:k,onDropdownClose:N,onDropdownOpen:A,withinPortal:R,switchDirectionOnFlip:M,zIndex:W,name:Z,dropdownPosition:Te,allowDeselect:ae,placeholder:He,filterDataOnExactSearchMatch:or,clearButtonTabIndex:mn,form:fo,positionDependencies:po,readOnly:Qe}=r,go=gN(r,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transition","transitionDuration","initiallyOpened","transitionTimingFunction","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","clearButtonLabel","limit","disabled","onSearchChange","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly"]),{classes:Ft,cx:Xi,theme:qi}=cN(),[Re,Eu]=p.exports.useState(v),[_t,Me]=p.exports.useState(-1),mo=p.exports.useRef(),vn=p.exports.useRef({}),[Ki,V]=p.exports.useState("column"),oe=Ki==="column",{scrollIntoView:me,targetRef:Be,scrollableRef:vo}=C2({duration:0,offset:5,cancelable:!1,isList:!0}),wb=ae===void 0?E:ae,ut=L=>{if(Re!==L){Eu(L);const pe=L?A:N;typeof pe=="function"&&pe()}},Ru=B&&typeof ne=="function";let ku=null;const _b=l.map(L=>typeof L=="string"?{label:L,value:L}:L),Qi=U$({data:_b}),[St,hn,wp]=Ai({value:a,defaultValue:s,finalValue:null,onChange:u}),At=Qi.find(L=>L.value===St),[jr,Sb]=p.exports.useState(At?.label||""),Lr=L=>{Sb(L),P&&typeof F=="function"&&F(L)},xb=()=>{var L;Qe||(hn(null),wp||Lr(""),(L=mo.current)==null||L.focus())};p.exports.useEffect(()=>{const L=Qi.find(pe=>pe.value===St);L?Lr(L.label):(!Ru||!St)&&Lr("")},[St]),p.exports.useEffect(()=>{At&&(!P||!Re)&&Lr(At.label)},[At?.label]);const Zi=L=>{if(!Qe)if(wb&&At?.value===L.value)hn(null),ut(!1);else{if(L.creatable&&typeof De=="function"){const pe=De(L.value);hn(typeof pe=="string"?pe:pe.value)}else hn(L.value);wp||Lr(L.label),Me(-1),ut(!1),mo.current.focus()}},Pe=sN({data:Qi,searchable:P,limit:z,searchValue:jr,filter:$,filterDataOnExactSearchMatch:or,value:St});Ru&&se(jr,Pe)&&(ku=ne(jr),Pe.push({label:jr,value:jr,creatable:!0}));const _p=(L,pe,Ze)=>{let Je=L;for(;Ze(Je);)if(Je=pe(Je),!Pe[Je].disabled)return Je;return L};kr(()=>{Me(-1)},[jr]);const ho=St?Pe.findIndex(L=>L.value===St):0,Sp=()=>{Me(L=>{var pe;const Ze=_p(L,Je=>Je-1,Je=>Je>0);return Be.current=vn.current[(pe=Pe[Ze])==null?void 0:pe.value],me({alignment:oe?"start":"end"}),Ze})},xp=()=>{Me(L=>{var pe;const Ze=_p(L,Je=>Je+1,Je=>Jewindow.setTimeout(()=>{var L;Be.current=vn.current[(L=Pe[ho])==null?void 0:L.value],me({alignment:oe?"end":"start"})},0),bb=L=>{switch(typeof f=="function"&&f(L),L.key){case"ArrowUp":{L.preventDefault(),Re?oe?Sp():xp():(Me(ho),ut(!0),yo());break}case"ArrowDown":{L.preventDefault(),Re?oe?xp():Sp():(Me(ho),ut(!0),yo());break}case"Home":{if(!P){L.preventDefault(),Re||ut(!0);const pe=Pe.findIndex(Ze=>!Ze.disabled);Me(pe),me({alignment:oe?"end":"start"})}break}case"End":{if(!P){L.preventDefault(),Re||ut(!0);const pe=Pe.map(Ze=>!!Ze.disabled).lastIndexOf(!1);Me(pe),me({alignment:oe?"end":"start"})}break}case"Escape":{L.preventDefault(),ut(!1),Me(-1);break}case" ":{P||(Pe[_t]&&Re?(L.preventDefault(),Zi(Pe[_t])):(ut(!0),Me(ho),yo()));break}case"Enter":P||L.preventDefault(),Pe[_t]&&Re&&(L.preventDefault(),Zi(Pe[_t]))}},Pb=L=>{typeof d=="function"&&d(L);const pe=Qi.find(Ze=>Ze.value===St);ie&&Pe[_t]&&Re&&Zi(Pe[_t]),Lr(pe?.label||""),ut(!1)},$b=L=>{typeof g=="function"&&g(L),P&&(ut(!0),yo())},Ob=L=>{Qe||(Lr(L.currentTarget.value),E&&L.currentTarget.value===""&&hn(null),Me(-1),ut(!0))},Cb=()=>{if(!Qe){let L=!0;P||(L=!Re),ut(L),St&&L&&(Me(ho),yo())}},wo=!Qe&&(Pe.length>0?Re:Re&&!!O);return S(Ya.Wrapper,{...gc(Mo({},o),{__staticSelector:"Select"}),children:H(li,{opened:wo,transition:y,transitionDuration:w,shadow:"sm",withinPortal:R,__staticSelector:"Select",onDirectionChange:V,switchDirectionOnFlip:M,zIndex:W,dropdownPosition:Te,positionDependencies:po,classNames:_,styles:x,unstyled:h,children:[S(li.Target,{children:H("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":wo?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":wo,onMouseLeave:()=>Me(-1),tabIndex:-1,children:[S("input",{type:"hidden",name:Z,value:St||"",form:fo,disabled:T}),S(Ya,{...Mo(gc(Mo(Mo({autoComplete:"off",type:"search"},n),go),{ref:dn(t,mo),onKeyDown:bb,__staticSelector:"Select",value:jr,placeholder:He,onChange:Ob,"aria-autocomplete":"list","aria-controls":wo?`${n.id}-items`:null,"aria-activedescendant":_t>=0?`${n.id}-${_t}`:null,onClick:Cb,onBlur:Pb,onFocus:$b,readOnly:!P||Qe,disabled:T,"data-mantine-stop-propagation":wo,name:null,classNames:gc(Mo({},_),{input:Xi({[Ft.input]:!P},_?.input)})}),iI({theme:qi,rightSection:G,rightSectionWidth:q,styles:x,size:n.size,shouldClear:E&&!!At,clearButtonLabel:D,onClear:xb,error:o.error,clearButtonTabIndex:mn,disabled:T,readOnly:Qe}))})]})}),S(li.Dropdown,{component:k||Zd,maxHeight:b,direction:Ki,id:n.id,innerRef:vo,children:S(Dw,{data:Pe,hovered:_t,classNames:_,styles:x,isItemSelected:L=>L===St,uuid:n.id,__staticSelector:"Select",onItemHover:Me,onItemSelect:Zi,itemsRefs:vn,itemComponent:c,size:n.size,nothingFound:O,creatable:Ru&&!!ku,createLabel:ku,"aria-label":o.label,unstyled:h})})]})})});Ci.displayName="@mantine/core/Select";function yN(e,t){if(t.length===0)return t;const r="maxWidth"in t[0]?"maxWidth":"minWidth",n=[...t].sort((o,i)=>e.fn.size({size:i[r],sizes:e.breakpoints})-e.fn.size({size:o[r],sizes:e.breakpoints}));return r==="minWidth"?n.reverse():n}var wN=Object.defineProperty,Eh=Object.getOwnPropertySymbols,_N=Object.prototype.hasOwnProperty,SN=Object.prototype.propertyIsEnumerable,Rh=(e,t,r)=>t in e?wN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xN=(e,t)=>{for(var r in t||(t={}))_N.call(t,r)&&Rh(e,r,t[r]);if(Eh)for(var r of Eh(t))SN.call(t,r)&&Rh(e,r,t[r]);return e},bN=Q((e,{spacing:t,breakpoints:r,cols:n})=>{const o=yN(e,r).reduce((i,l)=>{const a="maxWidth"in l?"max-width":"min-width",s=e.fn.size({size:a==="max-width"?l.maxWidth:l.minWidth,sizes:e.breakpoints});return i[`@media (${a}: ${s+(a==="max-width"?0:1)}px)`]={gridTemplateColumns:`repeat(${l.cols}, minmax(0, 1fr))`,gap:e.fn.size({size:l.spacing||t,sizes:e.spacing})},i},{});return{root:xN({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:e.fn.size({size:t,sizes:e.spacing})},o)}}),PN=bN,$N=Object.defineProperty,ys=Object.getOwnPropertySymbols,px=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,kh=(e,t,r)=>t in e?$N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ON=(e,t)=>{for(var r in t||(t={}))px.call(t,r)&&kh(e,r,t[r]);if(ys)for(var r of ys(t))gx.call(t,r)&&kh(e,r,t[r]);return e},CN=(e,t)=>{var r={};for(var n in e)px.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ys)for(var n of ys(e))t.indexOf(n)<0&&gx.call(e,n)&&(r[n]=e[n]);return r};const EN={breakpoints:[],cols:1,spacing:"md"},mx=p.exports.forwardRef((e,t)=>{const r=ee("SimpleGrid",EN,e),{className:n,breakpoints:o,cols:i,spacing:l,children:a,unstyled:s}=r,u=CN(r,["className","breakpoints","cols","spacing","children","unstyled"]),{classes:c,cx:f}=PN({breakpoints:o,cols:i,spacing:l},{unstyled:s,name:"SimpleGrid"});return S(X,{...ON({className:f(c.root,n),ref:t},u),children:a})});mx.displayName="@mantine/core/SimpleGrid";var RN=Object.defineProperty,kN=Object.defineProperties,IN=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,NN=Object.prototype.hasOwnProperty,zN=Object.prototype.propertyIsEnumerable,Nh=(e,t,r)=>t in e?RN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zh=(e,t)=>{for(var r in t||(t={}))NN.call(t,r)&&Nh(e,r,t[r]);if(Ih)for(var r of Ih(t))zN.call(t,r)&&Nh(e,r,t[r]);return e},Dh=(e,t)=>kN(e,IN(t));const DN={xs:16,sm:20,md:24,lg:30,xl:36},mc={xs:30,sm:38,md:46,lg:56,xl:68},Th={xs:12,sm:14,md:18,lg:22,xl:28},TN={xs:5,sm:6,md:7,lg:9,xl:11};var MN=Q((e,{size:t,radius:r,color:n,offLabel:o,onLabel:i})=>{const l=e.fn.size({size:t,sizes:Th}),a=e.fn.size({size:r,sizes:e.radius}),s=e.fn.variant({variant:"filled",color:n});return{root:{display:"flex",alignItems:"center"},input:Dh(zh({},e.fn.focusStyles()),{overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:a,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:DN}),width:e.fn.size({size:t,sizes:mc}),minWidth:e.fn.size({size:t,sizes:mc}),margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:TN}),fontWeight:600,cursor:e.cursorType,"&::before":{zIndex:1,borderRadius:a,boxSizing:"border-box",content:'""',display:"block",backgroundColor:e.white,height:l,width:l,border:`1px solid ${e.colorScheme==="dark"?e.white:e.colors.gray[3]}`,transition:`transform 150ms ${e.transitionTimingFunction}`,transform:`translateX(${t==="xs"?1:2}px)`,"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":!1}},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,right:"10%",transform:"translateX(0)",content:o?`'${o}'`:"''",color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`},"&:checked":{backgroundColor:s.background,borderColor:s.background,"&::before":{transform:`translateX(${e.fn.size({size:t,sizes:mc})-e.fn.size({size:t,sizes:Th})-(t==="xs"?3:4)}px)`,borderColor:e.white},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,left:"10%",transform:"translateX(0)",content:i?`'${i}'`:"''",color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`}},"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed","&::before":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],backgroundColor:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[0]}}}),label:Dh(zh({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontFamily:e.fontFamily,paddingLeft:e.spacing.sm,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType})}}),jN=MN,LN=Object.defineProperty,FN=Object.defineProperties,AN=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vc=(e,t)=>{for(var r in t||(t={}))vx.call(t,r)&&Mh(e,r,t[r]);if(ws)for(var r of ws(t))hx.call(t,r)&&Mh(e,r,t[r]);return e},VN=(e,t)=>FN(e,AN(t)),HN=(e,t)=>{var r={};for(var n in e)vx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ws)for(var n of ws(e))t.indexOf(n)<0&&hx.call(e,n)&&(r[n]=e[n]);return r};const BN={offLabel:"",onLabel:"",size:"sm",radius:"xl"},cp=p.exports.forwardRef((e,t)=>{const r=ee("Switch",BN,e),{className:n,color:o,label:i,offLabel:l,onLabel:a,id:s,style:u,size:c,radius:f,wrapperProps:d,children:g,unstyled:y,styles:w,classNames:v,sx:m}=r,h=HN(r,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","sx"]),{classes:_,cx:x}=jN({size:c,color:o,radius:f,offLabel:l,onLabel:a},{unstyled:y,styles:w,classNames:v,name:"Switch"}),{systemStyles:$,rest:b}=lu(h),P=lo(s);return H(X,{...vc(vc({className:x(_.root,n),style:u,sx:m},$),d),children:[S("input",{...VN(vc({},b),{id:P,ref:t,type:"checkbox",className:_.input})}),i&&S("label",{className:_.label,htmlFor:P,children:i})]})});cp.displayName="@mantine/core/Switch";var WN=Object.defineProperty,UN=Object.defineProperties,GN=Object.getOwnPropertyDescriptors,jh=Object.getOwnPropertySymbols,YN=Object.prototype.hasOwnProperty,XN=Object.prototype.propertyIsEnumerable,Lh=(e,t,r)=>t in e?WN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qN=(e,t)=>{for(var r in t||(t={}))YN.call(t,r)&&Lh(e,r,t[r]);if(jh)for(var r of jh(t))XN.call(t,r)&&Lh(e,r,t[r]);return e},KN=(e,t)=>UN(e,GN(t)),QN=Q((e,{captionSide:t,horizontalSpacing:r,verticalSpacing:n,fontSize:o})=>({root:KN(qN({},e.fn.fontStyles()),{width:"100%",borderCollapse:"collapse",captionSide:t,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,"& caption":{marginTop:t==="top"?0:e.spacing.xs,marginBottom:t==="bottom"?0:e.spacing.xs,fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]},"& thead tr th, & tfoot tr th":{textAlign:"left",fontWeight:"bold",color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[7],fontSize:e.fn.size({size:o,sizes:e.fontSizes}),padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`},"& thead tr th":{borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tfoot tr th":{borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tbody tr td":{padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`,borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,fontSize:e.fn.size({size:o,sizes:e.fontSizes})},"& tbody tr:last-of-type td":{borderBottom:"none"},"&[data-striped] tbody tr:nth-of-type(odd)":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]},"&[data-hover] tbody tr":e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1]})})})),ZN=QN,JN=Object.defineProperty,e8=Object.defineProperties,t8=Object.getOwnPropertyDescriptors,_s=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,Fh=(e,t,r)=>t in e?JN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r8=(e,t)=>{for(var r in t||(t={}))yx.call(t,r)&&Fh(e,r,t[r]);if(_s)for(var r of _s(t))wx.call(t,r)&&Fh(e,r,t[r]);return e},n8=(e,t)=>e8(e,t8(t)),o8=(e,t)=>{var r={};for(var n in e)yx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_s)for(var n of _s(e))t.indexOf(n)<0&&wx.call(e,n)&&(r[n]=e[n]);return r};const i8={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7},_x=p.exports.forwardRef((e,t)=>{const r=ee("Table",i8,e),{className:n,children:o,striped:i,highlightOnHover:l,captionSide:a,horizontalSpacing:s,verticalSpacing:u,fontSize:c,unstyled:f}=r,d=o8(r,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled"]),{classes:g,cx:y}=ZN({captionSide:a,verticalSpacing:u,horizontalSpacing:s,fontSize:c},{unstyled:f,name:"Table"});return S(X,{...n8(r8({},d),{component:"table",ref:t,className:y(g.root,n),"data-striped":i||void 0,"data-hover":l||void 0}),children:o})});_x.displayName="@mantine/core/Table";const Cf={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[l8,fp]=Ld(Cf.context);var a8=Object.defineProperty,Ah=Object.getOwnPropertySymbols,s8=Object.prototype.hasOwnProperty,u8=Object.prototype.propertyIsEnumerable,Vh=(e,t,r)=>t in e?a8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c8=(e,t)=>{for(var r in t||(t={}))s8.call(t,r)&&Vh(e,r,t[r]);if(Ah)for(var r of Ah(t))u8.call(t,r)&&Vh(e,r,t[r]);return e};function f8({variant:e,orientation:t,inverted:r},n){const o=t==="vertical";return e==="default"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`2px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="outline"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`1px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="pills"?{gap:n.spacing.sm/2}:{}}var d8=Q((e,t)=>{const r=t.orientation==="vertical";return{tabsList:c8({display:"flex",flexDirection:r?"column":"row",justifyContent:sS[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},f8(t,e))}}),p8=d8,g8=Object.defineProperty,m8=Object.defineProperties,v8=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,Sx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable,Hh=(e,t,r)=>t in e?g8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h8=(e,t)=>{for(var r in t||(t={}))Sx.call(t,r)&&Hh(e,r,t[r]);if(Ss)for(var r of Ss(t))xx.call(t,r)&&Hh(e,r,t[r]);return e},y8=(e,t)=>m8(e,v8(t)),w8=(e,t)=>{var r={};for(var n in e)Sx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ss)for(var n of Ss(e))t.indexOf(n)<0&&xx.call(e,n)&&(r[n]=e[n]);return r};const bx=p.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,grow:i=!1,position:l="left"}=r,a=w8(r,["children","className","grow","position"]);const{orientation:s,variant:u,color:c,radius:f,inverted:d}=fp(),{classNames:g,styles:y,unstyled:w}=fn(),{classes:v,cx:m}=p8({orientation:s,grow:i,variant:u,color:c,position:l,radius:f,inverted:d},{name:"Tabs",unstyled:w,classNames:g,styles:y});return S(X,{...y8(h8({},a),{className:m(v.tabsList,o),ref:t,role:"tablist","aria-orientation":s}),children:n})});bx.displayName="@mantine/core/TabsList";var _8=Q((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),S8=_8,x8=Object.defineProperty,b8=Object.defineProperties,P8=Object.getOwnPropertyDescriptors,xs=Object.getOwnPropertySymbols,Px=Object.prototype.hasOwnProperty,$x=Object.prototype.propertyIsEnumerable,Bh=(e,t,r)=>t in e?x8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$8=(e,t)=>{for(var r in t||(t={}))Px.call(t,r)&&Bh(e,r,t[r]);if(xs)for(var r of xs(t))$x.call(t,r)&&Bh(e,r,t[r]);return e},O8=(e,t)=>b8(e,P8(t)),C8=(e,t)=>{var r={};for(var n in e)Px.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xs)for(var n of xs(e))t.indexOf(n)<0&&$x.call(e,n)&&(r[n]=e[n]);return r};const Ox=p.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,sx:i,className:l}=r,a=C8(r,["value","children","sx","className"]);const s=fp(),{classNames:u,styles:c,unstyled:f}=fn(),{classes:d,cx:g}=S8({orientation:s.orientation,variant:s.variant,color:s.color,radius:s.radius,inverted:s.inverted},{name:"Tabs",unstyled:f,classNames:u,styles:c});return S(X,{...O8($8({},a),{ref:t,sx:[{display:s.value!==n?"none":void 0},...xi(i)],className:g(d.panel,l),role:"tabpanel",id:s.getPanelId(n),"aria-labelledby":s.getTabId(n)}),children:o})});Ox.displayName="@mantine/core/TabsPanel";var E8=Object.defineProperty,R8=Object.defineProperties,k8=Object.getOwnPropertyDescriptors,Wh=Object.getOwnPropertySymbols,I8=Object.prototype.hasOwnProperty,N8=Object.prototype.propertyIsEnumerable,Uh=(e,t,r)=>t in e?E8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,In=(e,t)=>{for(var r in t||(t={}))I8.call(t,r)&&Uh(e,r,t[r]);if(Wh)for(var r of Wh(t))N8.call(t,r)&&Uh(e,r,t[r]);return e},Gh=(e,t)=>R8(e,k8(t));function z8(e,{variant:t,orientation:r,color:n,radius:o,inverted:i}){const l=r==="vertical",a=e.fn.variant({color:n,variant:"filled"}),s=e.fn.radius(o),u=r==="vertical"?`${s}px 0 0 ${s}px`:i?`0 0 ${s}px ${s}px`:`${s}px ${s}px 0 0`;return t==="default"?Gh(In({[l?"borderRight":i?"borderTop":"borderBottom"]:"2px solid transparent",[l?"marginRight":i?"marginTop":"marginBottom"]:-2,borderRadius:u},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":In({borderColor:a.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:a.background}))}):t==="outline"?{borderRadius:u,border:"1px solid transparent",[l?"borderRight":i?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:l?0:i?"unset":-1,top:l?0:i?-1:"unset",[l?"width":"height"]:1,right:l?-1:0,left:l?"unset":0}}}:t==="pills"?Gh(In({borderRadius:e.fn.radius(o)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":In({backgroundColor:a.background,color:e.white},e.fn.hover({backgroundColor:a.background}))}):{}}var D8=Q((e,t)=>({tabLabel:{},tab:In({position:"relative",padding:`${e.spacing.xs}px ${e.spacing.md}px`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":In({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},z8(e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:7}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:7}}})),T8=D8,M8=Object.defineProperty,j8=Object.defineProperties,L8=Object.getOwnPropertyDescriptors,bs=Object.getOwnPropertySymbols,Cx=Object.prototype.hasOwnProperty,Ex=Object.prototype.propertyIsEnumerable,Yh=(e,t,r)=>t in e?M8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F8=(e,t)=>{for(var r in t||(t={}))Cx.call(t,r)&&Yh(e,r,t[r]);if(bs)for(var r of bs(t))Ex.call(t,r)&&Yh(e,r,t[r]);return e},A8=(e,t)=>j8(e,L8(t)),V8=(e,t)=>{var r={};for(var n in e)Cx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bs)for(var n of bs(e))t.indexOf(n)<0&&Ex.call(e,n)&&(r[n]=e[n]);return r};const Rx=p.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,onKeyDown:i,onClick:l,className:a,icon:s,rightSection:u,color:c}=r,f=V8(r,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]);const d=fp(),{classNames:g,styles:y,unstyled:w}=fn(),v=!!s,m=!!u,{theme:h,classes:_,cx:x}=T8({withIcon:v||m&&!o,withRightSection:m||v&&!o,orientation:d.orientation,color:c||d.color,variant:d.variant,radius:d.radius,inverted:d.inverted},{name:"Tabs",unstyled:w,classNames:g,styles:y}),$=n===d.value,b=P=>{d.onTabChange(d.allowTabDeactivation&&n===d.value?null:n),l?.(P)};return H(au,{...A8(F8({},f),{unstyled:w,className:x(_.tab,a),"data-active":$||void 0,ref:t,type:"button",role:"tab",id:d.getTabId(n),"aria-selected":$,tabIndex:$||d.value===null?0:-1,"aria-controls":d.getPanelId(n),onClick:b,onKeyDown:x1({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:d.activateTabWithKeyboard,loop:d.loop,dir:h.dir,orientation:d.orientation,onKeyDown:i})}),children:[s&&S("div",{className:_.tabIcon,children:s}),o&&S("div",{className:_.tabLabel,children:o}),u&&S("div",{className:_.tabRightSection,children:u})]})});Rx.displayName="@mantine/core/Tab";function kx({defaultValue:e,value:t,onTabChange:r,orientation:n,children:o,loop:i,id:l,activateTabWithKeyboard:a,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}){const g=lo(l),[y,w]=Ai({value:t,defaultValue:e,finalValue:null,onChange:r});return C.createElement(l8,{value:{value:y,orientation:n,id:g,loop:i,activateTabWithKeyboard:a,getTabId:Vg(`${g}-tab`,Cf.value),getPanelId:Vg(`${g}-panel`,Cf.value),onTabChange:w,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}},o)}kx.displayName="@mantine/core/TabsProvider";var H8=Q((e,{orientation:t})=>({root:{display:t==="vertical"?"flex":void 0}})),B8=H8,W8=Object.defineProperty,U8=Object.defineProperties,G8=Object.getOwnPropertyDescriptors,Ps=Object.getOwnPropertySymbols,Ix=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,Xh=(e,t,r)=>t in e?W8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y8=(e,t)=>{for(var r in t||(t={}))Ix.call(t,r)&&Xh(e,r,t[r]);if(Ps)for(var r of Ps(t))Nx.call(t,r)&&Xh(e,r,t[r]);return e},X8=(e,t)=>U8(e,G8(t)),q8=(e,t)=>{var r={};for(var n in e)Ix.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ps)for(var n of Ps(e))t.indexOf(n)<0&&Nx.call(e,n)&&(r[n]=e[n]);return r};const K8={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default"},et=p.exports.forwardRef((e,t)=>{const r=ee("Tabs",K8,e),{defaultValue:n,value:o,orientation:i,loop:l,activateTabWithKeyboard:a,allowTabDeactivation:s,children:u,id:c,onTabChange:f,variant:d,color:g,className:y,unstyled:w,classNames:v,styles:m,radius:h,inverted:_}=r,x=q8(r,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted"]),{classes:$,cx:b}=B8({orientation:i,color:g,variant:d,radius:h,inverted:_},{unstyled:w,name:"Tabs",classNames:v,styles:m});return S(q1,{classNames:v,styles:m,unstyled:w,children:S(kx,{activateTabWithKeyboard:a,defaultValue:n,orientation:i,onTabChange:f,value:o,id:c,loop:l,allowTabDeactivation:s,color:g,variant:d,radius:h,inverted:_,children:S(X,{...X8(Y8({},x),{className:b($.root,y),id:c,ref:t}),children:u})})})});et.List=bx;et.Tab=Rx;et.Panel=Ox;et.displayName="@mantine/core/Tabs";var Q8=Object.defineProperty,Z8=Object.defineProperties,J8=Object.getOwnPropertyDescriptors,qh=Object.getOwnPropertySymbols,ez=Object.prototype.hasOwnProperty,tz=Object.prototype.propertyIsEnumerable,Kh=(e,t,r)=>t in e?Q8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rz=(e,t)=>{for(var r in t||(t={}))ez.call(t,r)&&Kh(e,r,t[r]);if(qh)for(var r of qh(t))tz.call(t,r)&&Kh(e,r,t[r]);return e},nz=(e,t)=>Z8(e,J8(t));const oz={xs:16,sm:20,md:26,lg:32,xl:40};var iz=Q((e,{color:t,size:r,radius:n,gradient:o,variant:i})=>{const l=e.fn.variant({variant:i,color:t||e.primaryColor,gradient:o,primaryFallback:!1}),a=e.fn.size({size:r,sizes:oz});return{root:nz(rz({},e.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:a,height:a,minWidth:a,minHeight:a,borderRadius:e.fn.radius(n),backgroundColor:l.background,color:l.color,backgroundImage:i==="gradient"?l.background:void 0,border:`${i==="gradient"?0:1}px solid ${l.border}`})}}),lz=iz,az=Object.defineProperty,$s=Object.getOwnPropertySymbols,zx=Object.prototype.hasOwnProperty,Dx=Object.prototype.propertyIsEnumerable,Qh=(e,t,r)=>t in e?az(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sz=(e,t)=>{for(var r in t||(t={}))zx.call(t,r)&&Qh(e,r,t[r]);if($s)for(var r of $s(t))Dx.call(t,r)&&Qh(e,r,t[r]);return e},uz=(e,t)=>{var r={};for(var n in e)zx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$s)for(var n of $s(e))t.indexOf(n)<0&&Dx.call(e,n)&&(r[n]=e[n]);return r};const cz={size:"md",variant:"filled",gradient:{from:"blue",to:"cyan",deg:45}},Ef=p.exports.forwardRef((e,t)=>{const r=ee("ThemeIcon",cz,e),{className:n,size:o,radius:i,variant:l,color:a,children:s,gradient:u,unstyled:c}=r,f=uz(r,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:d,cx:g}=lz({variant:l,radius:i,color:a,size:o,gradient:u},{name:"ThemeIcon",unstyled:c});return S(X,{...sz({className:g(d.root,n),ref:t},f),children:s})});Ef.displayName="@mantine/core/ThemeIcon";const Tx=p.exports.createContext(!1),fz=Tx.Provider,dz=()=>p.exports.useContext(Tx);function Mx({children:e,openDelay:t=0,closeDelay:r=0}){return C.createElement(fz,{value:!0},C.createElement(qk,{delay:{open:t,close:r}},e))}Mx.displayName="@mantine/core/TooltipGroup";var pz=Object.defineProperty,gz=Object.defineProperties,mz=Object.getOwnPropertyDescriptors,Zh=Object.getOwnPropertySymbols,vz=Object.prototype.hasOwnProperty,hz=Object.prototype.propertyIsEnumerable,Jh=(e,t,r)=>t in e?pz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,e0=(e,t)=>{for(var r in t||(t={}))vz.call(t,r)&&Jh(e,r,t[r]);if(Zh)for(var r of Zh(t))hz.call(t,r)&&Jh(e,r,t[r]);return e},yz=(e,t)=>gz(e,mz(t));function wz(e,t){if(!t)return{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[9],color:e.white};const r=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:r.background,color:r.color}}var _z=Q((e,{color:t,radius:r,width:n,multiline:o})=>({tooltip:yz(e0(e0({},e.fn.fontStyles()),wz(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(r),padding:`${e.spacing.xs/2}px ${e.spacing.xs}px`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}})),jx=_z;const Lx={children:"Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};function Sz({offset:e,position:t}){const[r,n]=p.exports.useState(!1),o=p.exports.useRef(),{x:i,y:l,reference:a,floating:s,refs:u,update:c,placement:f}=np({placement:t,middleware:[ep({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=f.includes("right")?e:t.includes("left")?e*-1:0,g=f.includes("bottom")?e:t.includes("top")?e*-1:0,y=p.exports.useCallback(({clientX:w,clientY:v})=>{a({getBoundingClientRect(){return{width:0,height:0,x:w,y:v,left:w+d,top:v+g,right:w,bottom:v}}})},[a]);return p.exports.useEffect(()=>{if(u.floating.current){const w=o.current;w.addEventListener("mousemove",y);const v=ln(u.floating.current);return v.forEach(m=>{m.addEventListener("scroll",c)}),()=>{w.removeEventListener("mousemove",y),v.forEach(m=>{m.removeEventListener("scroll",c)})}}},[a,u.floating,c,y,r]),{handleMouseMove:y,x:i,y:l,opened:r,setOpened:n,boundaryRef:o,floating:s}}var xz=Object.defineProperty,bz=Object.defineProperties,Pz=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Fx=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,t0=(e,t,r)=>t in e?xz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hc=(e,t)=>{for(var r in t||(t={}))Fx.call(t,r)&&t0(e,r,t[r]);if(Os)for(var r of Os(t))Ax.call(t,r)&&t0(e,r,t[r]);return e},yc=(e,t)=>bz(e,Pz(t)),$z=(e,t)=>{var r={};for(var n in e)Fx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Os)for(var n of Os(e))t.indexOf(n)<0&&Ax.call(e,n)&&(r[n]=e[n]);return r};const Oz={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:io("popover")};function Vx(e){var t;const r=ee("TooltipFloating",Oz,e),{children:n,refProp:o,withinPortal:i,style:l,className:a,classNames:s,styles:u,unstyled:c,radius:f,color:d,label:g,offset:y,position:w,multiline:v,width:m,zIndex:h,disabled:_}=r,x=$z(r,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:$,x:b,y:P,opened:E,boundaryRef:O,floating:D,setOpened:z}=Sz({offset:y,position:w}),{classes:T,cx:F}=jx({radius:f,color:d,multiline:v,width:m},{name:"Tooltip",classNames:s,styles:u,unstyled:c});if(!ji(n))throw new Error(Lx.children);const G=dn(O,n.ref),q=ne=>{var se,ie;(ie=(se=n.props).onMouseEnter)==null||ie.call(se,ne),$(ne),z(!0)},B=ne=>{var se,ie;(ie=(se=n.props).onMouseLeave)==null||ie.call(se,ne),z(!1)};return H(lt,{children:[S(Vi,{withinPortal:i,children:S(X,{...yc(hc({},x),{ref:D,className:F(T.tooltip,a),style:yc(hc({},l),{zIndex:h,display:E&&!_?"block":"none",top:P??"",left:(t=Math.round(b))!=null?t:""})}),children:g})}),p.exports.cloneElement(n,yc(hc({},n.props),{[o]:G,onMouseEnter:q,onMouseLeave:B}))]})}Vx.displayName="@mantine/core/TooltipFloating";function Cz(e){const[t,r]=p.exports.useState(!1),o=typeof e.opened=="boolean"?e.opened:t,i=dz(),l=lo(),{delay:a,currentId:s,setCurrentId:u}=h_(),c=p.exports.useCallback(b=>{r(b),b&&u(l)},[u,l]),{x:f,y:d,reference:g,floating:y,context:w,refs:v,update:m,placement:h}=np({placement:e.position,open:o,onOpenChange:c,middleware:[i_(e.offset),ep({padding:8}),o_()]}),{getReferenceProps:_,getFloatingProps:x}=Uk([Xk(w,{enabled:e.events.hover,delay:i?a:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),Jk(w,{enabled:e.events.focus,keyboardOnly:!0}),Qk(w,{role:"tooltip"}),Zk(w,{enabled:typeof e.opened===void 0}),Kk(w,{id:l})]);return y_({opened:o,positionDependencies:e.positionDependencies,floating:{refs:v,update:m}}),kr(()=>{var b;(b=e.onPositionChange)==null||b.call(e,h)},[h]),{x:f,y:d,reference:g,floating:y,getFloatingProps:x,getReferenceProps:_,isGroupPhase:o&&s&&s!==l,opened:o,placement:h}}var Ez=Object.defineProperty,Rz=Object.defineProperties,kz=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Hx=Object.prototype.hasOwnProperty,Bx=Object.prototype.propertyIsEnumerable,r0=(e,t,r)=>t in e?Ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jo=(e,t)=>{for(var r in t||(t={}))Hx.call(t,r)&&r0(e,r,t[r]);if(Cs)for(var r of Cs(t))Bx.call(t,r)&&r0(e,r,t[r]);return e},Iz=(e,t)=>Rz(e,kz(t)),Nz=(e,t)=>{var r={};for(var n in e)Hx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cs)for(var n of Cs(e))t.indexOf(n)<0&&Bx.call(e,n)&&(r[n]=e[n]);return r};const zz={position:"top",refProp:"ref",withinPortal:!1,arrowSize:4,arrowOffset:5,offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:io("popover"),positionDependencies:[]},wu=p.exports.forwardRef((e,t)=>{const r=ee("Tooltip",zz,e),{children:n,position:o,refProp:i,label:l,openDelay:a,closeDelay:s,onPositionChange:u,opened:c,withinPortal:f,radius:d,color:g,classNames:y,styles:w,unstyled:v,style:m,className:h,withArrow:_,arrowSize:x,arrowOffset:$,offset:b,transition:P,transitionDuration:E,multiline:O,width:D,events:z,zIndex:T,disabled:F,positionDependencies:G,onClick:q,onMouseEnter:B,onMouseLeave:ne}=r,se=Nz(r,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave"]),{classes:ie,cx:De,theme:k}=jx({radius:d,color:g,width:D,multiline:O},{name:"Tooltip",classNames:y,styles:w,unstyled:v}),N=Cz({position:N_(k.dir,o),closeDelay:s,openDelay:a,onPositionChange:u,opened:c,events:z,offset:b+(_?x/2:0),positionDependencies:[...G,n]});if(!ji(n))throw new Error(Lx.children);const A=dn(N.reference,n.ref,t);return H(lt,{children:[S(Vi,{withinPortal:f,children:S(vu,{mounted:!F&&N.opened,transition:P,duration:N.isGroupPhase?10:E,children:R=>{var M,W;return H(X,{...jo(jo({},se),N.getFloatingProps({ref:N.floating,className:ie.tooltip,style:Iz(jo(jo({},m),R),{zIndex:T,top:(M=N.y)!=null?M:"",left:(W=N.x)!=null?W:""})})),children:[l,S(op,{visible:_,withBorder:!1,position:N.placement,arrowSize:x,arrowOffset:$,className:ie.arrow})]})}})}),p.exports.cloneElement(n,N.getReferenceProps(jo({onClick:q,onMouseEnter:B,onMouseLeave:ne,[i]:A,className:De(h,n.props.className)},n.props)))]})});wu.Group=Mx;wu.Floating=Vx;wu.displayName="@mantine/core/Tooltip";const ot=wu;/** - * @remix-run/router v1.9.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 Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _u(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Tz(){return Math.random().toString(36).substr(2,8)}function o0(e,t){return{usr:e.state,key:e.key,idx:t}}function Rf(e,t,r,n){return r===void 0&&(r=null),Ei({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gn(t):t,{state:r,key:t&&t.key||n||Tz()})}function Wx(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function gn(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Mz(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,l=o.history,a=dr.Pop,s=null,u=c();u==null&&(u=0,l.replaceState(Ei({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function f(){a=dr.Pop;let v=c(),m=v==null?null:v-u;u=v,s&&s({action:a,location:w.location,delta:m})}function d(v,m){a=dr.Push;let h=Rf(w.location,v,m);r&&r(h,v),u=c()+1;let _=o0(h,u),x=w.createHref(h);try{l.pushState(_,"",x)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(x)}i&&s&&s({action:a,location:w.location,delta:1})}function g(v,m){a=dr.Replace;let h=Rf(w.location,v,m);r&&r(h,v),u=c();let _=o0(h,u),x=w.createHref(h);l.replaceState(_,"",x),i&&s&&s({action:a,location:w.location,delta:0})}function y(v){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof v=="string"?v:Wx(v);return xe(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let w={get action(){return a},get location(){return e(o,l)},listen(v){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(n0,f),s=v,()=>{o.removeEventListener(n0,f),s=null}},createHref(v){return t(o,v)},createURL:y,encodeLocation(v){let m=y(v);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:g,go(v){return l.go(v)}};return w}var i0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(i0||(i0={}));function jz(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?gn(t):t,o=Yx(n.pathname||"/",r);if(o==null)return null;let i=Ux(e);Lz(i);let l=null;for(let a=0;l==null&&a{let s={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};s.relativePath.startsWith("/")&&(xe(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let u=tn([n,s.relativePath]),c=r.concat(s);i.children&&i.children.length>0&&(xe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ux(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Uz(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of Gx(i.path))o(i,l,s)}),t}function Gx(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let l=Gx(n.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 Lz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Gz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Fz=/^:\w+$/,Az=3,Vz=2,Hz=1,Bz=10,Wz=-2,l0=e=>e==="*";function Uz(e,t){let r=e.split("/"),n=r.length;return r.some(l0)&&(n+=Wz),t&&(n+=Vz),r.filter(o=>!l0(o)).reduce((o,i)=>o+(Fz.test(i)?Az:i===""?Hz:Bz),n)}function Gz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Yz(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let l=0;l{if(c==="*"){let d=a[f]||"";l=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=Qz(a[f]||"",c),u},{}),pathname:i,pathnameBase:l,pattern:e}}function qz(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),_u(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(n.push(a),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Kz(e){try{return decodeURI(e)}catch(t){return _u(!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 Qz(e,t){try{return decodeURIComponent(e)}catch(r){return _u(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Yx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Zz(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?gn(e):e;return{pathname:r?r.startsWith("/")?r:Jz(r,t):t,search:nD(n),hash:oD(o)}}function Jz(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function wc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function eD(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function tD(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=gn(e):(o=Ei({},e),xe(!o.pathname||!o.pathname.includes("?"),wc("?","pathname","search",o)),xe(!o.pathname||!o.pathname.includes("#"),wc("#","pathname","hash",o)),xe(!o.search||!o.search.includes("#"),wc("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(n||l==null)a=r;else{let f=t.length-1;if(l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}a=f>=0?t[f]:"/"}let s=Zz(o,a),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const tn=e=>e.join("/").replace(/\/\/+/g,"/"),rD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lD=["post","put","patch","delete"];[...lD];/** - * React Router v6.16.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 Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),l=p.exports.useRef(!1);return qx(()=>{l.current=!0}),p.exports.useCallback(function(s,u){if(u===void 0&&(u={}),!l.current)return;if(typeof s=="number"){r.go(s);return}let c=tD(s,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:tn([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,i,o,e])}function uD(e,t){return cD(e,t)}function cD(e,t,r){bu()||xe(!1);let{navigator:n}=p.exports.useContext(Su),{matches:o}=p.exports.useContext(uo),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let s=pp(),u;if(t){var c;let w=typeof t=="string"?gn(t):t;a==="/"||((c=w.pathname)==null?void 0:c.startsWith(a))||xe(!1),u=w}else u=s;let f=u.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",g=jz(e,{pathname:d}),y=mD(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:tn([a,n.encodeLocation?n.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:tn([a,n.encodeLocation?n.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,r);return t&&y?p.exports.createElement(xu.Provider,{value:{location:Es({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:dr.Pop}},y):y}function fD(){let e=wD(),t=iD(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.exports.createElement(p.exports.Fragment,null,p.exports.createElement("h2",null,"Unexpected Application Error!"),p.exports.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.exports.createElement("pre",{style:o},r):null,i)}const dD=p.exports.createElement(fD,null);class pD extends p.exports.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?p.exports.createElement(uo.Provider,{value:this.props.routeContext},p.exports.createElement(Xx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gD(e){let{routeContext:t,match:r,children:n}=e,o=p.exports.useContext(dp);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),p.exports.createElement(uo.Provider,{value:t},n)}function mD(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,l=(n=r)==null?void 0:n.errors;if(l!=null){let a=i.findIndex(s=>s.route.id&&l?.[s.route.id]);a>=0||xe(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,s,u)=>{let c=s.route.id?l?.[s.route.id]:null,f=null;r&&(f=s.route.errorElement||dD);let d=t.concat(i.slice(0,u+1)),g=()=>{let y;return c?y=f:s.route.Component?y=p.exports.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=a,p.exports.createElement(gD,{match:s,routeContext:{outlet:a,matches:d,isDataRoute:r!=null},children:y})};return r&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?p.exports.createElement(pD,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:g(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):g()},null)}var Kx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Kx||{}),Rs=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}(Rs||{});function vD(e){let t=p.exports.useContext(dp);return t||xe(!1),t}function hD(e){let t=p.exports.useContext(aD);return t||xe(!1),t}function yD(e){let t=p.exports.useContext(uo);return t||xe(!1),t}function Qx(e){let t=yD(),r=t.matches[t.matches.length-1];return r.route.id||xe(!1),r.route.id}function wD(){var e;let t=p.exports.useContext(Xx),r=hD(Rs.UseRouteError),n=Qx(Rs.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function _D(){let{router:e}=vD(Kx.UseNavigateStable),t=Qx(Rs.UseNavigateStable),r=p.exports.useRef(!1);return qx(()=>{r.current=!0}),p.exports.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Es({fromRouteId:t},i)))},[e,t])}const SD="startTransition";ai[SD];function Wt(e){xe(!1)}function xD(e){let{basename:t="/",children:r=null,location:n,navigationType:o=dr.Pop,navigator:i,static:l=!1}=e;bu()&&xe(!1);let a=t.replace(/^\/*/,"/"),s=p.exports.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof n=="string"&&(n=gn(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:g="default"}=n,y=p.exports.useMemo(()=>{let w=Yx(u,a);return w==null?null:{location:{pathname:w,search:c,hash:f,state:d,key:g},navigationType:o}},[a,u,c,f,d,g,o]);return y==null?null:p.exports.createElement(Su.Provider,{value:s},p.exports.createElement(xu.Provider,{children:r,value:y}))}function Zx(e){let{children:t,location:r}=e;return uD(kf(t),r)}new Promise(()=>{});function kf(e,t){t===void 0&&(t=[]);let r=[];return p.exports.Children.forEach(e,(n,o)=>{if(!p.exports.isValidElement(n))return;let i=[...t,o];if(n.type===p.exports.Fragment){r.push.apply(r,kf(n.props.children,i));return}n.type!==Wt&&xe(!1),!n.props.index||!n.props.children||xe(!1);let l={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=kf(n.props.children,i)),r.push(l)}),r}/** - * React Router DOM v6.16.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 - */const bD="startTransition",a0=ai[bD];function PD(e){let{basename:t,children:r,future:n,window:o}=e,i=p.exports.useRef();i.current==null&&(i.current=Dz({window:o,v5Compat:!0}));let l=i.current,[a,s]=p.exports.useState({action:l.action,location:l.location}),{v7_startTransition:u}=n||{},c=p.exports.useCallback(f=>{u&&a0?a0(()=>s(f)):s(f)},[s,u]);return p.exports.useLayoutEffect(()=>l.listen(c),[l,c]),p.exports.createElement(xD,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:l})}var s0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(s0||(s0={}));var u0;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(u0||(u0={}));const $D=()=>!window.invokeNative,Jx=()=>{},bl=(e,t)=>{const r=p.exports.useRef(Jx);p.exports.useEffect(()=>{r.current=t},[t]),p.exports.useEffect(()=>{const n=o=>{const{action:i,data:l}=o.data;r.current&&i===e&&r.current(l)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e])};function OD(e){let t;const r=new Set,n=(u,c)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const d=t;t=c?f:Object.assign({},t,f),r.forEach(g=>g(t,d))}},o=()=>t,i=(u,c=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=c(t);function g(){const y=c(t);if(!f(d,y)){const w=d;u(d=y,w)}}return r.add(g),()=>r.delete(g)},s={setState:n,getState:o,subscribe:(u,c,f)=>c||f?i(u,c,f):(r.add(u),()=>r.delete(u)),destroy:()=>r.clear()};return t=e(n,o,s),s}const CD=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),c0=CD?p.exports.useEffect:p.exports.useLayoutEffect;function co(e){const t=typeof e=="function"?OD(e):e,r=(n=t.getState,o=Object.is)=>{const[,i]=p.exports.useReducer(v=>v+1,0),l=t.getState(),a=p.exports.useRef(l),s=p.exports.useRef(n),u=p.exports.useRef(o),c=p.exports.useRef(!1),f=p.exports.useRef();f.current===void 0&&(f.current=n(l));let d,g=!1;(a.current!==l||s.current!==n||u.current!==o||c.current)&&(d=n(l),g=!o(f.current,d)),c0(()=>{g&&(f.current=d),a.current=l,s.current=n,u.current=o,c.current=!1});const y=p.exports.useRef(l);c0(()=>{const v=()=>{try{const h=t.getState(),_=s.current(h);u.current(f.current,_)||(a.current=h,f.current=_,i())}catch{c.current=!0,i()}},m=t.subscribe(v);return t.getState()!==y.current&&v(),m},[]);const w=g?d:f.current;return p.exports.useDebugValue(w),w};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[r,t];return{next(){const o=n.length<=0;return{value:n.shift(),done:o}}}},r}const K=co(()=>({name:"",passcode:"",autolock:0,items:[{name:"",metadata:"",remove:!1}],characters:[""],groups:[{name:"",grade:void 0}],lockpickDifficulty:[""],maxDistance:0,doorRate:0,lockSound:"",unlockSound:"",auto:!1,state:!1,lockpick:!1,hideUi:!1,doors:!1,holdOpen:!1})),ED=K.getState(),_e=co((e,t)=>({sounds:[""],setSounds:r=>e({sounds:r}),setLockSound:r=>K.setState({lockSound:r}),setUnlockSound:r=>K.setState({unlockSound:r}),setName:r=>K.setState({name:r}),setPasscode:r=>K.setState({passcode:r}),setAutolock:r=>K.setState({autolock:r}),toggleCheckbox:r=>K.setState(n=>({[r]:!n[r]})),setMaxDistance:r=>K.setState(()=>({maxDistance:r})),setItems:r=>K.setState(({items:n})=>({items:r(n)})),setCharacters:r=>K.setState(({characters:n})=>({characters:r(n)})),setGroups:r=>K.setState(({groups:n})=>({groups:r(n)})),setLockpickDifficulty:r=>K.setState(({lockpickDifficulty:n})=>({lockpickDifficulty:r(n)})),setDoorRate:r=>K.setState({doorRate:r})}));var eb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},f0=C.createContext&&C.createContext(eb),br=globalThis&&globalThis.__assign||function(){return br=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({visible:!1,setVisible:t=>e({visible:t})}));async function Pr(e,t){const r={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},n=window.GetParentResourceName?window.GetParentResourceName():"nui-frame-app";return await(await fetch(`https://${n}/${e}`,r)).json()}function VD(e,t){const[r,n]=p.exports.useState(e);return p.exports.useEffect(()=>{const o=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(o)}},[e,t]),r}const If=co(e=>({value:"",debouncedValue:"",setDebouncedValue:t=>e({debouncedValue:t}),setValue:t=>e({value:t})})),HD=()=>{const e=If(),t=VD(e.value);return p.exports.useEffect(()=>{e.setDebouncedValue(t)},[t]),S(lt,{children:S(Mr,{sx:{flex:"1 1 auto",padding:2},icon:S(nb,{size:20}),placeholder:"Search",value:e.value??"",onChange:r=>e.setValue(r.target.value)})})},BD=Q({main:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:16,paddingBottom:0}}),WD=()=>{const{classes:e}=BD(),t=Ui(),r=$u(n=>n.setVisible);return H(Lt,{className:e.main,children:[S(ot,{label:"Create a new door",transition:"pop",children:S(Ot,{variant:"light",color:"blue",size:"lg",onClick:()=>{K.setState(ED,!0),t("/settings/general")},children:S(rb,{size:20})})}),S(HD,{}),S(su,{iconSize:20,size:"lg",onClick:()=>{r(!1),Pr("exit")}})]})};/** - * react-table - * - * Copyright (c) TanStack - * - * 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 - *//** - * table-core - * - * Copyright (c) TanStack - * - * 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 pr(e,t){return typeof e=="function"?e(t):e}function ht(e,t){return r=>{t.setState(n=>({...n,[e]:pr(r,n[e])}))}}function ks(e){return e instanceof Function}function UD(e,t){const r=[],n=o=>{o.forEach(i=>{r.push(i);const l=t(i);l!=null&&l.length&&n(l)})};return n(e),r}function Y(e,t,r){let n=[],o;return()=>{let i;r.key&&r.debug&&(i=Date.now());const l=e();if(!(l.length!==n.length||l.some((u,c)=>n[c]!==u)))return o;n=l;let s;if(r.key&&r.debug&&(s=Date.now()),o=t(...l),r==null||r.onChange==null||r.onChange(o),r.key&&r.debug&&r!=null&&r.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-s)*100)/100,f=c/16,d=(g,y)=>{for(g=String(g);g.length{let g=d;for(const y of s.split("."))g=g[y];return g}:c=d=>d[a.accessorKey]),!u)throw new Error;let f={id:""+String(u),accessorFn:c,parent:n,depth:r,columnDef:a,columns:[],getFlatColumns:Y(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(g=>g.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:Y(()=>[e._getOrderColumnsFn()],d=>{var g;if((g=f.columns)!=null&&g.length){let y=f.columns.flatMap(w=>w.getLeafColumns());return d(y)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};return f=e._features.reduce((d,g)=>Object.assign(d,g.createColumn==null?void 0:g.createColumn(f,e)),f),f}function d0(e,t,r){var n;let i={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],a=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(a),l.push(s)};return a(i),l},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(l=>{Object.assign(i,l.createHeader==null?void 0:l.createHeader(i,e))}),i}const YD={createTable:e=>({getHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>{var i,l;const a=(i=n?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?i:[],s=(l=o?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?l:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(o!=null&&o.includes(f.id)));return Pl(t,[...a,...u,...s],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>(r=r.filter(i=>!(n!=null&&n.includes(i.id))&&!(o!=null&&o.includes(i.id))),Pl(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return Pl(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return Pl(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:Y(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:Y(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:Y(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:Y(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:Y(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:Y(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:Y(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:Y(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:Y(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:Y(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:Y(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:Y(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var o,i,l,a,s,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(l=(a=r[0])==null?void 0:a.headers)!=null?l:[],...(s=(u=n[0])==null?void 0:u.headers)!=null?s:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function Pl(e,t,r,n){var o,i;let l=0;const a=function(d,g){g===void 0&&(g=1),l=Math.max(l,g),d.filter(y=>y.getIsVisible()).forEach(y=>{var w;(w=y.columns)!=null&&w.length&&a(y.columns,g+1)},0)};a(e);let s=[];const u=(d,g)=>{const y={depth:g,id:[n,""+g].filter(Boolean).join("_"),headers:[]},w=[];d.forEach(v=>{const m=[...w].reverse()[0],h=v.column.depth===y.depth;let _,x=!1;if(h&&v.column.parent?_=v.column.parent:(_=v.column,x=!0),m&&m?.column===_)m.subHeaders.push(v);else{const $=d0(r,_,{id:[n,g,_.id,v?.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?""+w.filter(b=>b.column===_).length:void 0,depth:g,index:w.length});$.subHeaders.push(v),w.push($)}y.headers.push(v),v.headerGroup=y}),s.push(y),g>0&&u(w,g-1)},c=t.map((d,g)=>d0(r,d,{depth:l,index:g}));u(c,l-1),s.reverse();const f=d=>d.filter(y=>y.column.getIsVisible()).map(y=>{let w=0,v=0,m=[0];y.subHeaders&&y.subHeaders.length?(m=[],f(y.subHeaders).forEach(_=>{let{colSpan:x,rowSpan:$}=_;w+=x,m.push($)})):w=1;const h=Math.min(...m);return v=v+h,y.colSpan=w,y.rowSpan=v,{colSpan:w,rowSpan:v}});return f((o=(i=s[0])==null?void 0:i.headers)!=null?o:[]),s}const $l={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},_c=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),XD={getDefaultColumnDef:()=>$l,getInitialState:e=>({columnSizing:{},columnSizingInfo:_c(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:ht("columnSizing",e),onColumnSizingInfoChange:ht("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:$l.minSize,(n=i??e.columnDef.size)!=null?n:$l.size),(o=e.columnDef.maxSize)!=null?o:$l.maxSize)},getStart:r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=n.findIndex(i=>i.id===e.id);if(o>0){const i=n[o-1];return i.getStart(r)+i.getSize()}return 0},resetSize:()=>{t.setColumnSizing(r=>{let{[e.id]:n,...o}=r;return o})},getCanResize:()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let r=0;const n=o=>{if(o.subHeaders.length)o.subHeaders.forEach(n);else{var i;r+=(i=o.column.getSize())!=null?i:0}};return n(e),r},getStart:()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},getResizeHandler:()=>{const r=t.getColumn(e.column.id),n=r.getCanResize();return o=>{if(!n||(o.persist==null||o.persist(),Sc(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),l=e?e.getLeafHeaders().map(g=>[g.column.id,g.column.getSize()]):[[r.id,r.getSize()]],a=Sc(o)?Math.round(o.touches[0].clientX):o.clientX,s=(g,y)=>{if(typeof y!="number")return;let w={};t.setColumnSizingInfo(v=>{var m,h;const _=y-((m=v?.startOffset)!=null?m:0),x=Math.max(_/((h=v?.startSize)!=null?h:0),-.999999);return v.columnSizingStart.forEach($=>{let[b,P]=$;w[b]=Math.round(Math.max(P+P*x,0)*100)/100}),{...v,deltaOffset:_,deltaPercentage:x}}),(t.options.columnResizeMode==="onChange"||g==="end")&&t.setColumnSizing(v=>({...v,...w}))},u=g=>s("move",g),c=g=>{s("end",g),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f={moveHandler:g=>u(g.clientX),upHandler:g=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),c(g.clientX)}},d=qD()?{passive:!1}:!1;Sc(o)||(document.addEventListener("mousemove",f.moveHandler,d),document.addEventListener("mouseup",f.upHandler,d)),t.setColumnSizingInfo(g=>({...g,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?_c():(r=e.initialState.columnSizingInfo)!=null?r:_c())},getTotalSize:()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0}})};let Ol=null;function qD(){if(typeof Ol=="boolean")return Ol;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Ol=e,Ol}function Sc(e){return e.type==="touchstart"}const KD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ht("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var o,i;e.setExpanded(n?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(n=>n.getCanExpand()),getToggleAllRowsExpandedHandler:()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(o=>o.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const l=i.split(".");n=Math.max(n,l.length)}),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var o;const i=n===!0?!0:!!(n!=null&&n[e.id]);let l={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{l[a]=!0}):l=n,r=(o=r)!=null?o:!i,!i&&r)return{...l,[e.id]:!0};if(i&&!r){const{[e.id]:a,...s}=l;return s}return n})},getIsExpanded:()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},getCanExpand:()=>{var r,n,o;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((o=e.subRows)!=null&&o.length)},getToggleExpandedHandler:()=>{const r=e.getCanExpand();return()=>{!r||e.toggleExpanded()}}})},ob=(e,t,r)=>{var n;const o=r.toLowerCase();return(n=e.getValue(t))==null?void 0:n.toLowerCase().includes(o)};ob.autoRemove=e=>$t(e);const ib=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};ib.autoRemove=e=>$t(e);const lb=(e,t,r)=>{var n;return((n=e.getValue(t))==null?void 0:n.toLowerCase())===r.toLowerCase()};lb.autoRemove=e=>$t(e);const ab=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};ab.autoRemove=e=>$t(e)||!(e!=null&&e.length);const sb=(e,t,r)=>!r.some(n=>{var o;return!((o=e.getValue(t))!=null&&o.includes(n))});sb.autoRemove=e=>$t(e)||!(e!=null&&e.length);const ub=(e,t,r)=>r.some(n=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)});ub.autoRemove=e=>$t(e)||!(e!=null&&e.length);const cb=(e,t,r)=>e.getValue(t)===r;cb.autoRemove=e=>$t(e);const fb=(e,t,r)=>e.getValue(t)==r;fb.autoRemove=e=>$t(e);const gp=(e,t,r)=>{let[n,o]=r;const i=e.getValue(t);return i>=n&&i<=o};gp.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,o=typeof r!="number"?parseFloat(r):r,i=t===null||Number.isNaN(n)?-1/0:n,l=r===null||Number.isNaN(o)?1/0:o;if(i>l){const a=i;i=l,l=a}return[i,l]};gp.autoRemove=e=>$t(e)||$t(e[0])&&$t(e[1]);const Vt={includesString:ob,includesStringSensitive:ib,equalsString:lb,arrIncludes:ab,arrIncludesAll:sb,arrIncludesSome:ub,equals:cb,weakEquals:fb,inNumberRange:gp};function $t(e){return e==null||e===""}const QD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:ht("columnFilters",e),onGlobalFilterChange:ht("globalFilter",e),filterFromLeafRows:!1,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;const o=(r=e.getCoreRowModel().flatRows[0])==null||(n=r._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?Vt.includesString:typeof n=="number"?Vt.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Vt.equals:Array.isArray(n)?Vt.arrIncludes:Vt.weakEquals},getFilterFn:()=>{var r,n;return ks(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Vt[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,o;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,o,i;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return(r=t.getState().columnFilters)==null||(n=r.find(o=>o.id===e.id))==null?void 0:n.value},getFilterIndex:()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},setFilterValue:r=>{t.setColumnFilters(n=>{const o=e.getFilterFn(),i=n?.find(c=>c.id===e.id),l=pr(r,i?i.value:void 0);if(p0(o,l,e)){var a;return(a=n?.filter(c=>c.id!==e.id))!=null?a:[]}const s={id:e.id,value:l};if(i){var u;return(u=n?.map(c=>c.id===e.id?s:c))!=null?u:[]}return n!=null&&n.length?[...n,s]:[s]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(!!e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Vt.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return ks(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Vt[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=o=>{var i;return(i=pr(t,o))==null?void 0:i.filter(l=>{const a=r.find(s=>s.id===l.id);if(a){const s=a.getFilterFn();if(p0(s,l.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(!!e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function p0(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const ZD=(e,t,r)=>r.reduce((n,o)=>{const i=o.getValue(e);return n+(typeof i=="number"?i:0)},0),JD=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}),n},eT=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n=i)&&(n=i)}),n},tT=(e,t,r)=>{let n,o;return r.forEach(i=>{const l=i.getValue(e);l!=null&&(n===void 0?l>=l&&(n=o=l):(n>l&&(n=l),o{let r=0,n=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++r,n+=i)}),r)return n/r},nT=(e,t)=>{if(!t.length)return;let r=0,n=0;return t.forEach(o=>{let i=o.getValue(e);typeof i=="number"&&(r=Math.min(r,i),n=Math.max(n,i))}),(r+n)/2},oT=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),iT=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,lT=(e,t)=>t.length,xc={sum:ZD,min:JD,max:eT,extent:tT,mean:rT,median:nT,unique:oT,uniqueCount:iT,count:lT},aT={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ht("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},getCanGroup:()=>{var r,n,o,i;return(r=(n=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},getIsGrouped:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{const r=e.getCanGroup();return()=>{!r||e.toggleGrouping()}},getAutoAggregationFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return xc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return xc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return ks(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:xc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=r.subRows)!=null&&o.length)}})};function sT(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(i=>!t.includes(i.id));return r==="remove"?n:[...t.map(i=>e.find(l=>l.id===i)).filter(Boolean),...n]}const uT={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ht("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},_getOrderColumnsFn:Y(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const l=[...t],a=[...o];for(;a.length&&l.length;){const s=l.shift(),u=a.findIndex(c=>c.id===s);u>-1&&i.push(a.splice(u,1)[0])}i=[...i,...a]}return sT(i,r,n)},{key:!1})})},Nf=0,zf=10,bc=()=>({pageIndex:Nf,pageSize:zf}),cT={getInitialState:e=>({...e,pagination:{...bc(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:ht("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:n=>{const o=i=>pr(n,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},resetPagination:n=>{var o;e.setPagination(n?bc():(o=e.initialState.pagination)!=null?o:bc())},setPageIndex:n=>{e.setPagination(o=>{let i=pr(n,o.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.min(Math.max(0,i),l),{...o,pageIndex:i}})},resetPageIndex:n=>{var o,i,l;e.setPageIndex(n?Nf:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageIndex)!=null?o:Nf)},resetPageSize:n=>{var o,i,l;e.setPageSize(n?zf:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageSize)!=null?o:zf)},setPageSize:n=>{e.setPagination(o=>{const i=Math.max(1,pr(n,o.pageSize)),l=o.pageSize*o.pageIndex,a=Math.floor(l/i);return{...o,pageIndex:a,pageSize:i}})},setPageCount:n=>e.setPagination(o=>{var i;let l=pr(n,(i=e.options.pageCount)!=null?i:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...o,pageCount:l}}),getPageOptions:Y(()=>[e.getPageCount()],n=>{let o=[];return n&&n>0&&(o=[...new Array(n)].fill(null).map((i,l)=>l)),o},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:ne.setPageIndex(n=>n-1),nextPage:()=>e.setPageIndex(n=>n+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Pc=()=>({left:[],right:[]}),fT={getInitialState:e=>({columnPinning:Pc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ht("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{const n=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,l;if(r==="right"){var a,s;return{left:((a=o?.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((s=o?.right)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=o?.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=o?.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((i=o?.left)!=null?i:[]).filter(f=>!(n!=null&&n.includes(f))),right:((l=o?.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f)))}})},getCanPin:()=>e.getLeafColumns().some(n=>{var o,i;return((o=n.columnDef.enablePinning)!=null?o:!0)&&((i=t.options.enablePinning)!=null?i:!0)}),getIsPinned:()=>{const r=e.getLeafColumns().map(a=>a.id),{left:n,right:o}=t.getState().columnPinning,i=r.some(a=>n?.includes(a)),l=r.some(a=>o?.includes(a));return i?"left":l?"right":!1},getPinnedIndex:()=>{var r,n,o;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(o=n[i])==null?void 0:o.indexOf(e.id))!=null?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,o)=>{const i=[...n??[],...o??[]];return r.filter(l=>!i.includes(l.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getLeftVisibleCells:Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getRightVisibleCells:Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?Pc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:Pc())},getIsSomeColumnsPinned:t=>{var r;const n=e.getState().columnPinning;if(!t){var o,i;return Boolean(((o=n.left)==null?void 0:o.length)||((i=n.right)==null?void 0:i.length))}return Boolean((r=n[t])==null?void 0:r.length)},getLeftLeafColumns:Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const o=[...r??[],...n??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},dT={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ht("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{!i.getCanSelect()||(n[i.id]=!0)}):o.forEach(i=>{delete n[i.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...r};return e.getRowModel().rows.forEach(i=>{Df(o,i.id,n,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Y(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?$c(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:Y(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?$c(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:Y(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?$c(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=Boolean(t.length&&Object.keys(r).length);return n&&t.some(o=>o.getCanSelect()&&!r[o.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(o=>!r[o.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.some(r=>r.getIsSelected()||r.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{const n=e.getIsSelected();t.setRowSelection(o=>{if(r=typeof r<"u"?r:!n,n===r)return o;const i={...o};return Df(i,e.id,r,t),i})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return mp(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return g0(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return g0(e,r)==="all"},getCanSelect:()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},getCanSelectSubRows:()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},getCanMultiSelect:()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},getToggleSelectedHandler:()=>{const r=e.getCanSelect();return n=>{var o;!r||e.toggleSelected((o=n.target)==null?void 0:o.checked)}}})},Df=(e,t,r,n)=>{var o;const i=n.getRow(t);r?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>Df(e,l.id,r,n))};function $c(e,t){const r=e.getState().rowSelection,n=[],o={},i=function(l,a){return l.map(s=>{var u;const c=mp(s,r);if(c&&(n.push(s),o[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:i(s.subRows)}),c)return s}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:o}}function mp(e,t){var r;return(r=t[e.id])!=null?r:!1}function g0(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,o=!1;return e.subRows.forEach(i=>{o&&!n||(mp(i,t)?o=!0:n=!1)}),n?"all":o?"some":!1}return!1}const Tf=/([0-9]+)/gm,pT=(e,t,r)=>db(Nr(e.getValue(r)).toLowerCase(),Nr(t.getValue(r)).toLowerCase()),gT=(e,t,r)=>db(Nr(e.getValue(r)),Nr(t.getValue(r))),mT=(e,t,r)=>vp(Nr(e.getValue(r)).toLowerCase(),Nr(t.getValue(r)).toLowerCase()),vT=(e,t,r)=>vp(Nr(e.getValue(r)),Nr(t.getValue(r))),hT=(e,t,r)=>{const n=e.getValue(r),o=t.getValue(r);return n>o?1:nvp(e.getValue(r),t.getValue(r));function vp(e,t){return e===t?0:e>t?1:-1}function Nr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function db(e,t){const r=e.split(Tf).filter(Boolean),n=t.split(Tf).filter(Boolean);for(;r.length&&n.length;){const o=r.shift(),i=n.shift(),l=parseInt(o,10),a=parseInt(i,10),s=[l,a].sort();if(isNaN(s[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(s[1]))return isNaN(l)?-1:1;if(l>a)return 1;if(a>l)return-1}return r.length-n.length}const Lo={alphanumeric:pT,alphanumericCaseSensitive:gT,text:mT,textCaseSensitive:vT,datetime:hT,basic:yT},wT={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:ht("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const o of r){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Lo.datetime;if(typeof i=="string"&&(n=!0,i.split(Tf).length>1))return Lo.alphanumeric}return n?Lo.text:Lo.basic},getAutoSortDir:()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw new Error;return ks(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Lo[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{const o=e.getNextSortingOrder(),i=typeof r<"u"&&r!==null;t.setSorting(l=>{const a=l?.find(g=>g.id===e.id),s=l?.findIndex(g=>g.id===e.id);let u=[],c,f=i?r:o==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&n?a?c="toggle":c="add":l!=null&&l.length&&s!==l.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var d;u=[...l,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=l.map(g=>g.id===e.id?{...g,desc:f}:g):c==="remove"?u=l.filter(g=>g.id!==e.id):u=[{id:e.id,desc:f}];return u})},getFirstSortDir:()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:r=>{var n,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==i&&((n=t.options.enableSortingRemoval)!=null?n:!0)&&(r&&(o=t.options.enableMultiRemove)!=null?o:!0)?!1:l==="desc"?"asc":"desc":i},getCanSort:()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},getIsSorted:()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},getSortIndex:()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},clearSorting:()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},getToggleSortingHandler:()=>{const r=e.getCanSort();return n=>{!r||(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},_T={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ht("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},getCanHide:()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},getToggleVisibilityHandler:()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:Y(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getVisibleCells:Y(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,o)=>[...r,...n,...o],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>{const t=(r,n)=>Y(()=>[n(),n().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:r,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),resetColumnVisibility:r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},toggleAllColumnsVisible:r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:r||!(i.getCanHide!=null&&i.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}}},m0=[YD,_T,uT,fT,QD,wT,aT,KD,cT,dT,XD];function ST(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:m0};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),o=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let l={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;l=(f=c.getInitialState==null?void 0:c.getInitialState(l))!=null?f:l});const a=[];let s=!1;const u={_features:m0,options:{...n,...e},initialState:l,_queue:c=>{a.push(c),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=pr(c,r.options);r.options=o(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,d)=>{var g;return(g=r.options.getRowId==null?void 0:r.options.getRowId(c,f,d))!=null?g:""+(d?[d.id,f].join("."):f)},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:c=>{const f=r.getRowModel().rowsById[c];if(!f)throw new Error;return f},_getDefaultColumnDef:Y(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:d=>{const g=d.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:d=>{var g,y;return(g=(y=d.renderValue())==null||y.toString==null?void 0:y.toString())!=null?g:null},...r._features.reduce((d,g)=>Object.assign(d,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:Y(()=>[r._getColumnDefs()],c=>{const f=function(d,g,y){return y===void 0&&(y=0),d.map(w=>{const v=GD(r,w,y,g),m=w;return v.columns=m.columns?f(m.columns,v,y+1):[],v})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:Y(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:Y(()=>[r.getAllFlatColumns()],c=>c.reduce((f,d)=>(f[d.id]=d,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:Y(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let d=c.flatMap(g=>g.getLeafColumns());return f(d)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>{const f=r._getAllFlatColumnsById()[c];if(!f)throw new Error;return f}};return Object.assign(r,u),r._features.forEach(c=>Object.assign(r,c.createTable==null?void 0:c.createTable(r))),r}function xT(e,t,r,n){const o=()=>{var l;return(l=i.getValue())!=null?l:e.options.renderFallbackValue},i={id:t.id+"_"+r.id,row:t,column:r,getValue:()=>t.getValue(n),renderValue:o,getContext:()=>({table:e,column:r,row:t,cell:i,getValue:i.getValue,renderValue:i.renderValue})};return e._features.forEach(l=>{Object.assign(i,l.createCell==null?void 0:l.createCell(i,r,t,e))},{}),i}const hp=(e,t,r,n,o,i)=>{let l={id:t,index:n,original:r,depth:o,_valuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const s=e.getColumn(a);if(!!s.accessorFn)return l._valuesCache[a]=s.accessorFn(l.original,n),l._valuesCache[a]},renderValue:a=>{var s;return(s=l.getValue(a))!=null?s:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>UD(l.subRows,a=>a.subRows),getAllCells:Y(()=>[e.getAllLeafColumns()],a=>a.map(s=>xT(e,l,s,s.id)),{key:!1,debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}}),_getAllCellsByColumnId:Y(()=>[l.getAllCells()],a=>a.reduce((s,u)=>(s[u.column.id]=u,s),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}})};for(let a=0;aY(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(o,i,l){i===void 0&&(i=0);const a=[];for(let u=0;u{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function PT(e,t,r){return r.options.filterFromLeafRows?$T(e,t,r):OT(e,t,r)}function $T(e,t,r){const n=[],o={},i=function(l,a){const s=[];for(let c=0;cY(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let d=0;d{var g;const w=e.getColumn(d.id).getFilterFn();!w||o.push({id:d.id,filterFn:w,resolvedValue:(g=w.resolveFilterValue==null?void 0:w.resolveFilterValue(d.value))!=null?g:d.value})});const l=r.map(d=>d.id),a=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&a&&s.length&&(l.push("__global__"),s.forEach(d=>{var g;i.push({id:d.id,filterFn:a,resolvedValue:(g=a.resolveFilterValue==null?void 0:a.resolveFilterValue(n))!=null?g:n})}));let u,c;for(let d=0;d{g.columnFiltersMeta[w]=v})}if(i.length){for(let y=0;y{g.columnFiltersMeta[w]=v})){g.columnFilters.__global__=!0;break}}g.columnFilters.__global__!==!0&&(g.columnFilters.__global__=!1)}}const f=d=>{for(let g=0;g{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function ET(){return e=>Y(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,o=[],i=n.filter(s=>e.getColumn(s.id).getCanSort()),l={};i.forEach(s=>{const u=e.getColumn(s.id);l[s.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()}});const a=s=>{const u=s.slice();return u.sort((c,f)=>{for(let g=0;g"u",$=typeof _>"u";if(x||$)return x&&$?0:x?w.sortUndefined:-w.sortUndefined}let m=w.sortingFn(c,f,y.id);if(m!==0)return v&&(m*=-1),w.invertSorting&&(m*=-1),m}return c.index-f.index}),u.forEach(c=>{o.push(c),!(!c.subRows||c.subRows.length<=1)&&(c.subRows=a(c.subRows))}),u};return{rows:a(r.rows),flatRows:o,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function RT(e){const t=[],r=n=>{var o;t.push(n),(o=n.subRows)!=null&&o.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function kT(e){return t=>Y(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:i}=r;let{rows:l,flatRows:a,rowsById:s}=n;const u=o*i,c=u+o;l=l.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:l,flatRows:a,rowsById:s}:f=RT({rows:l,flatRows:a,rowsById:s}),f.flatRows=[];const d=g=>{f.flatRows.push(g),g.subRows.length&&g.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}function v0(e,t){return e?IT(e)?p.exports.createElement(e,t):e:null}function IT(e){return NT(e)||typeof e=="function"||zT(e)}function NT(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function zT(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function DT(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=p.exports.useState(()=>({current:ST(t)})),[n,o]=p.exports.useState(()=>r.current.initialState);return r.current.setOptions(i=>({...i,...e,state:{...n,...e.state},onStateChange:l=>{o(l),e.onStateChange==null||e.onStateChange(l)}})),r.current}const Mf=co(e=>({doors:[],setDoors:t=>e({doors:t})}));function TT(e){return be({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M249.334 22.717c-18.64 2.424-35.677 23.574-37.043 51.49v.02c-.057 1.186-.097 2.38-.097 3.59 0 16.362 5.658 30.827 13.942 40.818l10.127 12.213-15.592 2.933c-10.75 2.025-18.622 7.702-25.373 16.978-2.285 3.14-4.384 6.707-6.31 10.62-57.54-6.44-97.91-21.06-97.91-37.952 0-17.363 42.647-31.983 102.75-37.97-.213-2.51-.323-5.057-.323-7.636v-.002c0-.84.024-1.674.047-2.51-96.43 6.77-167.298 29.15-167.3 55.71-.002 25.33 64.462 46.86 154.074 54.67-.19.742-.394 1.465-.576 2.216-2.36 9.72-4.05 20.22-5.268 31.03-.01 0-.02 0-.03.002-.418 3.653-.78 7.34-1.095 11.046l.05-.005c-1.316 15.777-1.772 31.88-1.893 46.95h35.894l2.115 28.4c-68.24-4.994-118.444-21.004-118.444-39.843 0-13.243 24.83-24.89 63.27-32.33.3-4.056.66-8.115 1.076-12.162-76.42 9.353-129.17 29.168-129.172 52.086-.002 28.17 79.71 51.643 185.098 56.768l5.94 79.77c10.5 2.648 24.84 4.162 39.017 4.068 13.79-.092 27.235-1.71 36.45-4l5.263-79.846c105.308-5.14 184.935-28.605 184.935-56.76 0-23.013-53.196-42.895-130.13-52.2.304 4.02.557 8.047.755 12.07 38.883 7.43 63.965 19.17 63.965 32.536 0 18.84-49.804 34.85-117.908 39.844l1.87-28.402h34.18c-.012-15.113-.127-31.27-1.033-47.094.01 0 .02.002.032.004-.214-3.687-.472-7.352-.782-10.986l-.02-.002c-.94-11.157-2.367-21.984-4.546-31.967-.09-.405-.184-.803-.275-1.206 89.518-7.826 153.893-29.344 153.893-54.656 0-26.787-72.076-49.332-169.77-55.887.025.895.053 1.788.053 2.688 0 2.5-.104 4.97-.304 7.407 61.19 5.836 104.61 20.61 104.61 38.2 0 16.805-39.633 31.355-96.524 37.848-2.01-4.283-4.26-8.15-6.762-11.505-6.83-9.167-15.063-14.81-27.14-16.682l-15.913-2.47 10.037-12.59c6.928-8.69 11.912-20.715 13.057-34.268h.002c.163-1.95.25-3.93.25-5.938 0-.77-.022-1.532-.048-2.29-.015-.48-.033-.958-.057-1.434h-.002c-1.48-29.745-20.507-51.3-41.076-51.3-2.528 0-3.966-.087-4.03-.08h-.003zM194.54 355.822c-97.11 6.655-168.573 29.11-168.573 55.8 0 31.932 102.243 57.815 228.367 57.815S482.7 443.555 482.7 411.623c0-26.608-71.02-49.004-167.67-55.736l-.655 9.93c60.363 6.055 103.074 20.956 103.074 38.394 0 22.81-73.032 41.298-163.12 41.298-90.088 0-163.12-18.49-163.12-41.297 0-17.533 43.18-32.502 104.07-38.493l-.74-9.895z"}}]})(e)}function jf(e){return be({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"}}]})(e)}function MT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}}]})(e)}function jT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"}}]})(e)}function LT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}}]})(e)}const Lf=e=>{let t=[];if(e.groups){const r=Object.entries(e.groups);for(let n=0;n({clipboard:!1,setClipboard:t=>e({clipboard:t})})),yp=p.exports.createContext(null);yp.displayName="@mantine/modals/ModalsContext";function FT(){const e=p.exports.useContext(yp);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}var AT=Object.defineProperty,VT=Object.defineProperties,HT=Object.getOwnPropertyDescriptors,h0=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,WT=Object.prototype.propertyIsEnumerable,y0=(e,t,r)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oc=(e,t)=>{for(var r in t||(t={}))BT.call(t,r)&&y0(e,r,t[r]);if(h0)for(var r of h0(t))WT.call(t,r)&&y0(e,r,t[r]);return e},w0=(e,t)=>VT(e,HT(t));function UT({id:e,cancelProps:t,confirmProps:r,labels:n={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:i=!0,groupProps:l,onCancel:a,onConfirm:s,children:u}){const{cancel:c,confirm:f}=n,d=FT(),g=w=>{typeof t?.onClick=="function"&&t?.onClick(w),typeof a=="function"&&a(),i&&d.closeModal(e)},y=w=>{typeof r?.onClick=="function"&&r?.onClick(w),typeof s=="function"&&s(),o&&d.closeModal(e)};return C.createElement(C.Fragment,null,u&&C.createElement(X,{mb:"md"},u),C.createElement(Lt,Oc({position:"right"},l),C.createElement(Kn,w0(Oc({variant:"default"},t),{onClick:g}),t?.children||c),C.createElement(Kn,w0(Oc({},r),{onClick:y}),r?.children||f)))}function GT(e,t){switch(t.type){case"OPEN":return{current:t.payload,modals:[...e.modals,t.payload]};case"CLOSE":return{current:e.modals[e.modals.length-2]||null,modals:e.modals.filter(r=>r.id!==t.payload)};case"CLOSE_ALL":return{current:e.current,modals:[]};default:return e}}const[YT,Yi]=X$("mantine-modals");Yi("openModal");Yi("closeModal");Yi("closeAllModals");const gb=Yi("openConfirmModal");Yi("openContextModal");var XT=Object.defineProperty,qT=Object.defineProperties,KT=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,vb=Object.prototype.propertyIsEnumerable,_0=(e,t,r)=>t in e?XT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wl=(e,t)=>{for(var r in t||(t={}))mb.call(t,r)&&_0(e,r,t[r]);if(Is)for(var r of Is(t))vb.call(t,r)&&_0(e,r,t[r]);return e},S0=(e,t)=>qT(e,KT(t)),Ur=(e,t)=>{var r={};for(var n in e)mb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Is)for(var n of Is(e))t.indexOf(n)<0&&vb.call(e,n)&&(r[n]=e[n]);return r};function QT(e){if(!e)return{confirmProps:{},modalProps:{}};const t=e,{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f}=t,d=Ur(t,["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"]);return{confirmProps:{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f},modalProps:Wl({id:r},d)}}function ZT({children:e,modalProps:t,labels:r,modals:n}){const[o,i]=p.exports.useReducer(GT,{modals:[],current:null}),l=w=>{o.modals.forEach(v=>{var m,h,_,x;v.type==="confirm"&&w&&((h=(m=v.props)==null?void 0:m.onCancel)==null||h.call(m)),(x=(_=v.props)==null?void 0:_.onClose)==null||x.call(_)}),i({type:"CLOSE_ALL"})},a=w=>{var v=w,{modalId:m}=v,h=Ur(v,["modalId"]);const _=m||Hl();return i({type:"OPEN",payload:{id:_,type:"content",props:h}}),_},s=w=>{var v=w,{modalId:m}=v,h=Ur(v,["modalId"]);const _=m||Hl();return i({type:"OPEN",payload:{id:_,type:"confirm",props:h}}),_},u=(w,v)=>{var m=v,{modalId:h}=m,_=Ur(m,["modalId"]);const x=h||Hl();return i({type:"OPEN",payload:{id:x,type:"context",props:_,ctx:w}}),x},c=(w,v)=>{var m,h,_,x;if(o.modals.length<=1){l(v);return}const $=o.modals.find(b=>b.id===w);$?.type==="confirm"&&v&&((h=(m=$.props)==null?void 0:m.onCancel)==null||h.call(m)),(x=(_=$?.props)==null?void 0:_.onClose)==null||x.call(_),i({type:"CLOSE",payload:$.id})};YT({openModal:a,openConfirmModal:s,openContextModal:w=>{var v=w,{modal:m}=v,h=Ur(v,["modal"]);return u(m,h)},closeModal:c,closeAllModals:l});const f={modals:o.modals,openModal:a,openConfirmModal:s,openContextModal:u,closeModal:c,closeAll:l},d=()=>{var w;switch((w=o.current)==null?void 0:w.type){case"context":{const v=o.current.props,{innerProps:m}=v,h=Ur(v,["innerProps"]),_=n[o.current.ctx];return{modalProps:h,content:S(_,{innerProps:m,context:f,id:o.current.id})}}case"confirm":{const{modalProps:v,confirmProps:m}=QT(o.current.props);return{modalProps:v,content:S(UT,{...S0(Wl({},m),{id:o.current.id,labels:o.current.props.labels||r})})}}case"content":{const v=o.current.props,{children:m}=v;return{modalProps:Ur(v,["children"]),content:S(lt,{children:m})}}default:return{modalProps:{},content:null}}},{modalProps:g,content:y}=d();return H(yp.Provider,{value:f,children:[S(yu,{...S0(Wl(Wl({},t),g),{opened:o.modals.length>0,onClose:()=>c(o.current.id)}),children:y}),e]})}const JT=({data:e})=>{const t=Ui(),r=pb(o=>o.setClipboard),n=$u(o=>o.setVisible);return H(tt,{position:"right-start",width:200,children:[S(tt.Target,{children:S(ot,{label:"Door actions",children:S(Ot,{color:"blue.4",variant:"transparent",children:S(jD,{size:24})})})}),H(tt.Dropdown,{children:[S(tt.Item,{icon:S(Pu,{size:18}),onClick:()=>{K.setState(Lf(e.row.original),!0),t("/settings/general")},children:"Settings"}),S(tt.Item,{icon:S(jT,{size:18}),onClick:()=>{r(Lf(e.row.original)),Pr("notify","Settings copied")},children:"Copy settings"}),S(tt.Item,{icon:S(TT,{size:18}),onClick:()=>{n(!1),Pr("teleportToDoor",e.row.getValue("id"))},children:"Teleport to door"}),S(tt.Item,{color:"red",icon:S(Gi,{size:18}),onClick:()=>gb({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:H(vt,{children:["Are you sure you want to delete",S(vt,{component:"span",weight:700,children:` ${e.row.getValue("name")}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{Pr("deleteDoor",e.row.getValue("id"))}}),children:"Delete door"})]})]})},e7=()=>{const[e,t]=p.exports.useState([]),[r,n]=p.exports.useState(1),o=If(s=>s.debouncedValue),i=Mf(s=>s.doors),l=p.exports.useMemo(()=>[{id:"id",header:"ID",accessorKey:"id",cell:s=>s.getValue(),enableHiding:!1,enableGlobalFilter:!1},{id:"name",header:"Name",accessorKey:"name",cell:s=>s.getValue(),enableHiding:!1},{id:"zone",header:"Zone",accessorKey:"zone",cell:s=>s.getValue(),enableHiding:!1},{id:"options-menu",cell:s=>S(JT,{data:s})}],[]),a=DT({data:i,columns:l,initialState:{pagination:{pageSize:8,pageIndex:0}},state:{sorting:e,globalFilter:o},onGlobalFilterChange:If(s=>s.setValue),onSortingChange:t,getCoreRowModel:bT(),getSortedRowModel:ET(),getFilteredRowModel:CT(),getPaginationRowModel:kT()});return p.exports.useEffect(()=>{a.setPageIndex(r-1)},[r,i]),H(Mt,{justify:"space-between",align:"center",sx:{height:"100%",paddingBottom:16},spacing:0,children:[a.getFilteredRowModel().rows.length>0?H(_x,{children:[S("thead",{children:a.getHeaderGroups().map(s=>S("tr",{children:s.headers.map(u=>S("th",{children:S(au,{onClick:u.column.getToggleSortingHandler(),children:H(Lt,{children:[S(vt,{children:v0(u.column.columnDef.header,u.getContext())}),u.column.getIsSorted()==="desc"?S(TD,{}):u.column.getIsSorted()==="asc"?S(MD,{}):u.column.getCanHide()?S(lt,{}):S(FD,{})]})})},u.id))},s.id))}),S("tbody",{children:a.getRowModel().rows.map(s=>S("tr",{children:s.getAllCells().map(u=>S("td",{children:v0(u.column.columnDef.cell,u.getContext())},u.id))},s.id))})]}):S(aS,{sx:{height:"100%"},children:H(Mt,{align:"center",children:[S(nb,{size:48}),S(vt,{size:"lg",children:"No results found"})]})}),a.getPageCount()>1&&S(cx,{page:r,total:a.getPageCount(),onChange:s=>n(s)})]})},t7=()=>H(Mt,{sx:{height:"100%"},children:[S(WD,{}),S(e7,{})]}),Fo=({label:e,type:t,infoCircle:r,span:n,value:o,setValue:i})=>S(hu.Col,{span:n||1,children:S(X,{children:t==="text"?S(Mr,{value:o,onChange:l=>i(l.target.value),label:e,rightSection:r&&S(ot,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Ef,{variant:"light",mr:10,children:S(jf,{size:18})})})}):S(Oi,{label:e,step:.1,precision:1,value:typeof o=="number"?o:void 0,onChange:l=>i(l),hideControls:!0,rightSection:r&&S(ot,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Ef,{variant:"light",mr:10,children:S(jf,{size:18})})})})})}),r7=()=>{const e=K(c=>c.name),t=K(c=>c.passcode),r=K(c=>c.autolock),n=K(c=>c.maxDistance),o=K(c=>c.doorRate),i=_e(c=>c.setName),l=_e(c=>c.setPasscode),a=_e(c=>c.setAutolock),s=_e(c=>c.setMaxDistance),u=_e(c=>c.setDoorRate);return S(lt,{children:H(hu,{columns:2,sx:{fontSize:16},children:[S(Fo,{label:"Door name",type:"text",value:e||"",setValue:c=>i(c)}),S(Fo,{label:"Passcode",type:"text",value:t||"",setValue:c=>l(c)}),S(Fo,{label:"Autolock Interval",type:"number",value:r||0,setValue:c=>a(c),infoCircle:"Time in seconds after which the door will be locked"}),S(Fo,{label:"Interact Distance",type:"number",value:n||0,setValue:c=>s(c),infoCircle:"Controls the distance from which the player can interact with the door"}),S(Fo,{label:"Door Rate",type:"number",span:2,value:o||0,setValue:c=>u(c),infoCircle:"Speed the automatic door will move at"})]})})},_n=({infoCircle:e,label:t,value:r,toggle:n})=>H(Lt,{spacing:8,align:"center",children:[S(cp,{label:t,checked:r,onChange:()=>n()}),S(ot,{label:e,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(X,{sx:{display:"flex"},children:S(jf,{size:18})})})]}),n7=()=>{const e=K(a=>a.state),t=K(a=>a.doors),r=K(a=>a.auto),n=K(a=>a.lockpick),o=K(a=>a.hideUi),i=K(a=>a.holdOpen),l=_e(a=>a.toggleCheckbox);return S(lt,{children:H(mx,{cols:2,pt:16,children:[S(_n,{label:"Locked",infoCircle:"Sets whether the targeting door is locked by default",value:e||!1,toggle:()=>l("state")}),S(_n,{label:"Double",infoCircle:"Enable if the targeting door is a double door",value:t||!1,toggle:()=>l("doors")}),S(_n,{label:"Automatic",infoCircle:"Enable if the targeting door is moving automatically (Garage, poles, etc...)",value:r||!1,toggle:()=>l("auto")}),S(_n,{label:"Lockpick",infoCircle:"Enables the targeting door to be lockpicked. Can define skill check difficulties in Lockpick tab, otherwise uses config defaults",value:n||!1,toggle:()=>l("lockpick")}),S(_n,{label:"Hide UI",infoCircle:"Hides UI indicators for the targeting door",value:o||!1,toggle:()=>l("hideUi")}),S(_n,{label:"Hold Open",infoCircle:"Sets whether the targeting door(s) should stay open while unlocked",value:i||!1,toggle:()=>l("holdOpen")})]})})},o7=()=>S(Mt,{justify:"space-between",sx:{height:"100%"},children:H(X,{children:[S(r7,{}),S(n7,{})]})}),i7=()=>{const e=K(o=>o.characters),t=_e(o=>o.setCharacters),r=(o,i)=>{t(l=>l.map((a,s)=>i===s?o:a))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(lt,{children:e.map((o,i)=>H(Lt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Mr,{sx:{width:"100%"},placeholder:"Character Id",value:o,onChange:l=>r(l.target.value,i)}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Gi,{size:24})})})]},`group-${i}`))})},Ou=({children:e,setter:t})=>S(Mt,{justify:"space-between",align:"center",sx:{height:"100%"},children:H(X,{sx:{width:"100%",overflowY:"auto",height:410},children:[e,S(ot,{label:"Create a new row",withArrow:!0,arrowSize:10,children:S(Kn,{mt:16,fullWidth:!0,variant:"light",onClick:t,children:S(rb,{size:24})})})]})}),l7=()=>{const e=_e(t=>t.setCharacters);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r!==""||n===0))},[]),S(Ou,{setter:()=>e(t=>[...t,""]),children:S(i7,{})})},a7=()=>{const e=K(o=>o.groups),t=_e(o=>o.setGroups),r=(o,i,l)=>{t(a=>a.map((s,u)=>i===u?{...s,[l]:o}:s))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(lt,{children:e.map((o,i)=>H(Lt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Mr,{sx:{width:"100%"},placeholder:"Group",value:o.name,onChange:l=>r(l.target.value,i,"name")}),S(Oi,{sx:{width:"100%"},placeholder:"Grade",value:o.grade,onChange:l=>r(l,i,"grade")}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Gi,{size:24})})})]},`group-${i}`))})},s7=()=>{const e=_e(t=>t.setGroups);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r.name!==""||r.grade!==null||n===0))},[]),S(Ou,{setter:()=>e(t=>[...t,{name:"",grade:null}]),children:S(a7,{})})};var x0=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var l=i[o];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r};function Ff(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&n!==!1&&(t[r]=n),t},{})}var u7=Object.defineProperty,b0=Object.getOwnPropertySymbols,c7=Object.prototype.hasOwnProperty,f7=Object.prototype.propertyIsEnumerable,P0=(e,t,r)=>t in e?u7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d7=(e,t)=>{for(var r in t||(t={}))c7.call(t,r)&&P0(e,r,t[r]);if(b0)for(var r of b0(t))f7.call(t,r)&&P0(e,r,t[r]);return e};function $0(e,t){if(t===null||typeof t!="object")return{};const r=d7({},t);return Object.keys(t).forEach(n=>{n.includes(`${String(e)}.`)&&delete r[n]}),r}const p7="__MANTINE_FORM_INDEX__";function O0(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]/g,`.${p7}`)):!1:!1}function Ht(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=Ht(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ht(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=Ht(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=Ht(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(o){r.add(Ht(o))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(o,i){r.set(Ht(i),Ht(o))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(Ht(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function hb(e){return typeof e!="string"?[]:e.split(".")}function Cu(e,t,r){const n=hb(e);if(n.length===0)return r;const o=Ht(r);if(n.length===1)return o[n[0]]=t,o;let i=o[n[0]];for(let l=1;l0,errors:t}}function Af(e,t,r="",n={}){return typeof e!="object"||e===null?n:Object.keys(e).reduce((o,i)=>{const l=e[i],a=`${r===""?"":`${r}.`}${i}`,s=gr(a,t);let u=!1;return typeof l=="function"&&(o[a]=l(s,t,a)),typeof l=="object"&&Array.isArray(s)&&(u=!0,s.forEach((c,f)=>Af(l,t,`${a}.${f}`,o))),typeof l=="object"&&typeof s=="object"&&s!==null&&(u||Af(l,t,a,o)),o},n)}function Vf(e,t){return C0(typeof e=="function"?e(t):Af(e,t))}function Cl(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};const n=Vf(t,r),o=Object.keys(n.errors).find(i=>e.split(".").every((l,a)=>l===i.split(".")[a]));return{hasError:!!o,error:o?n.errors[o]:null}}function g7(e,{from:t,to:r},n){const o=gr(e,n);if(!Array.isArray(o))return n;const i=[...o],l=o[t];return i.splice(t,1),i.splice(r,0,l),Cu(e,i,n)}function m7(e,t,r){const n=gr(e,r);return Array.isArray(n)?Cu(e,n.filter((o,i)=>i!==t),r):r}function v7(e,t,r,n){const o=gr(e,n);if(!Array.isArray(o))return n;const i=[...o];return i.splice(typeof r=="number"?r:i.length,0,t),Cu(e,i,n)}function E0(e,t){const r=Object.keys(e);if(typeof t=="string"){const n=r.filter(o=>o.includes(`${t}.`));return e[t]||n.some(o=>e[o])||!1}return r.some(n=>e[n])}function h7(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}var y7=Object.defineProperty,w7=Object.defineProperties,_7=Object.getOwnPropertyDescriptors,R0=Object.getOwnPropertySymbols,S7=Object.prototype.hasOwnProperty,x7=Object.prototype.propertyIsEnumerable,k0=(e,t,r)=>t in e?y7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))S7.call(t,r)&&k0(e,r,t[r]);if(R0)for(var r of R0(t))x7.call(t,r)&&k0(e,r,t[r]);return e},Cc=(e,t)=>w7(e,_7(t));function yb({initialValues:e={},initialErrors:t={},initialDirty:r={},initialTouched:n={},clearInputErrorOnChange:o=!0,validateInputOnChange:i=!1,validateInputOnBlur:l=!1,transformValues:a=u=>u,validate:s}={}){const[u,c]=p.exports.useState(n),[f,d]=p.exports.useState(r),[g,y]=p.exports.useState(e),[w,v]=p.exports.useState(Ff(t)),m=p.exports.useRef(e),h=R=>{m.current=R},_=p.exports.useCallback(()=>c({}),[]),x=R=>{h(R||g),d({})},$=p.exports.useCallback(R=>v(M=>Ff(typeof R=="function"?R(M):R)),[]),b=p.exports.useCallback(()=>v({}),[]),P=p.exports.useCallback(()=>{y(e),b(),x(e),_()},[]),E=p.exports.useCallback((R,M)=>$(W=>Cc(Sn({},W),{[R]:M})),[]),O=p.exports.useCallback(R=>$(M=>{if(typeof R!="string")return M;const W=Sn({},M);return delete W[R],W}),[]),D=p.exports.useCallback(R=>d(M=>{if(typeof R!="string")return M;const W=$0(R,M);return delete W[R],W}),[]),z=p.exports.useCallback((R,M)=>{const W=O0(R,i);D(R),c(Z=>Cc(Sn({},Z),{[R]:!0})),y(Z=>{const Te=Cu(R,M,Z);if(W){const ae=Cl(R,s,Te);ae.hasError?E(R,ae.error):O(R)}return Te}),!W&&o&&E(R,null)},[]),T=p.exports.useCallback(R=>{y(M=>{const W=typeof R=="function"?R(M):R;return Sn(Sn({},M),W)}),o&&b()},[]),F=p.exports.useCallback((R,M)=>{D(R),y(W=>g7(R,M,W))},[]),G=p.exports.useCallback((R,M)=>{D(R),y(W=>m7(R,M,W)),v(W=>$0(R,W))},[]),q=p.exports.useCallback((R,M,W)=>{D(R),y(Z=>v7(R,M,W,Z))},[]),B=p.exports.useCallback(()=>{const R=Vf(s,g);return v(R.errors),R},[g,s]),ne=p.exports.useCallback(R=>{const M=Cl(R,s,g);return M.hasError?E(R,M.error):O(R),M},[g,s]),se=(R,{type:M="input",withError:W=M==="input",withFocus:Z=!0}={})=>{const ae={onChange:h7(He=>z(R,He))};return W&&(ae.error=w[R]),M==="checkbox"?ae.checked=gr(R,g):ae.value=gr(R,g),Z&&(ae.onFocus=()=>c(He=>Cc(Sn({},He),{[R]:!0})),ae.onBlur=()=>{if(O0(R,l)){const He=Cl(R,s,g);He.hasError?E(R,He.error):O(R)}}),ae},ie=(R,M)=>W=>{W?.preventDefault();const Z=B();Z.hasErrors?M?.(Z.errors,g,W):R(a(g),W)},De=p.exports.useCallback(R=>{R.preventDefault(),P()},[]),k=R=>{if(Object.keys(f).length>0)return E0(f,R);if(R){const W=gr(R,g),Z=gr(R,m.current);return!x0(W,Z)}return!x0(g,m.current)},N=p.exports.useCallback(R=>E0(u,R),[u]),A=p.exports.useCallback(R=>R?!Cl(R,s,g).hasError:!Vf(s,g).hasErrors,[g,s]);return{values:g,errors:w,setValues:T,setErrors:$,setFieldValue:z,setFieldError:E,clearFieldError:O,clearErrors:b,reset:P,validate:B,validateField:ne,reorderListItem:F,removeListItem:G,insertListItem:q,getInputProps:se,onSubmit:ie,onReset:De,isDirty:k,isTouched:N,setTouched:c,setDirty:d,resetTouched:_,resetDirty:x,isValid:A}}const b7=({modal:e,setModal:t})=>{const r=K(a=>a.items),n=_e(a=>a.setItems),o=p.exports.useMemo(()=>r[e.index],[e,r]),i=yb({initialValues:{metadata:o.metadata,remove:o.remove}}),l=a=>{t(s=>({...s,opened:!1})),n(s=>s.map((u,c)=>c===e.index?{...u,metadata:a.metadata,remove:a.remove}:u))};return S("form",{onSubmit:i.onSubmit(a=>l(a)),children:H(Mt,{children:[S(Mr,{label:"Metadata type",defaultValue:o.metadata,...i.getInputProps("metadata")}),S(cp,{label:"Remove on use",defaultChecked:o.remove,...i.getInputProps("remove")}),S(Kn,{uppercase:!0,variant:"light",type:"submit",children:"Confirm"})]})})},P7=()=>{const e=K(l=>l.items),t=_e(l=>l.setItems),[r,n]=p.exports.useState({opened:!1,index:0}),o=(l,a)=>{const s=[...e];switch(l.target.id){case"name":s[a].name=l.target.value;break}t(()=>s)},i=l=>{t(a=>a.filter((s,u)=>u!==l))};return H(X,{children:[e.length>0&&S(lt,{children:e.map((l,a)=>H(Lt,{sx:{width:"100%"},position:"apart",spacing:16,mt:a===0?void 0:16,children:[S(Mr,{sx:{width:"80%"},value:l.name||"",id:"name",placeholder:"Item",onChange:s=>o(s,a)}),S(ot,{label:"Item options",children:S(Ot,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:a}),children:S(Pu,{size:24})})}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>i(a),children:S(Gi,{size:24})})})]},`item-field-${a}`))}),S(yu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Item options",centered:!0,size:"xs",withCloseButton:!1,children:S(b7,{modal:r,setModal:n})})]})},$7=()=>{const e=_e(t=>t.setItems);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r.name!==""))},[]),S(Ou,{setter:()=>e(t=>[...t,{name:"",metadata:"",remove:!1}]),children:S(P7,{})})},O7=()=>{const e=_e(i=>i.sounds),t=K(i=>i.lockSound),r=K(i=>i.unlockSound),n=_e(i=>i.setLockSound),o=_e(i=>i.setUnlockSound);return H(Mt,{children:[S(Ci,{data:e,label:"Lock sound",value:t||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>n(i)}),S(Ci,{data:e,label:"Unlock sound",value:r||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>o(i)})]})},C7=()=>{const e=Ui(),t=pb(o=>o.clipboard),r=$u(o=>o.setVisible),n=()=>{const o={...K.getState()};if(o.name===""&&(o.name=null),o.passcode===""&&(o.passcode=null),o.lockSound===""&&(o.lockSound=null),o.unlockSound===""&&(o.unlockSound=null),o.autolock=o.autolock||null,o.maxDistance=o.maxDistance||2,o.doorRate=o.doorRate?o.doorRate+0:null,o.auto=o.auto||null,o.lockpick=o.lockpick||null,o.hideUi=o.hideUi||null,o.holdOpen=o.holdOpen||null,o.items&&o.items.length>0){const i=[];for(let l=0;l0){const i=[];for(let l=0;l0){const i={};for(let l=0;l0){const i=[];for(let l=0;ln(),fullWidth:!0,children:"Confirm door"}),S(ot,{label:t?"Apply copied settings":"No door settings copied",withArrow:!0,arrowSize:10,children:S(Ot,{variant:"outline",disabled:!t,size:"lg",ml:16,sx:{width:36,height:36},color:"blue",onClick:()=>{K.setState({name:"",passcode:t.passcode,autolock:t.autolock,items:t.items,characters:t.characters,groups:t.groups,maxDistance:t.maxDistance,doorRate:t.doorRate,lockSound:t.lockSound,unlockSound:t.unlockSound,auto:t.auto,state:t.state,lockpick:t.lockpick,hideUi:t.hideUi,doors:t.doors,lockpickDifficulty:t.lockpickDifficulty,holdOpen:t.holdOpen},!0),Pr("notify","Settings applied")},children:S(MT,{size:20})})}),S(Ot,{variant:"outline",size:"lg",ml:16,sx:{width:36,height:36},color:"red",disabled:!K.getState().id,onClick:()=>gb({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:H(vt,{children:["Are you sure you want to delete",S(vt,{component:"span",weight:700,children:` ${K.getState().name}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{Pr("deleteDoor",K.getState().id),e("/")}}),children:S(LT,{size:20})})]})},E7=({selectData:e,setModal:t,modal:r})=>{const[n,o]=p.exports.useState(null),i=K(c=>c.lockpickDifficulty),l=_e(c=>c.setLockpickDifficulty),a=p.exports.useMemo(()=>i[r.index],[r,i]);p.exports.useEffect(()=>o(typeof a=="string"?a:"custom"),[a]);const s=yb({initialValues:{select:n,areaSize:typeof a=="string"?null:a.areaSize,speedMultiplier:typeof a=="string"?null:a.speedMultiplier},validate:{select:c=>c===null?"Difficulty is required":null,areaSize:(c,f)=>c===null&&f.select==="custom"?"Area size is required":null,speedMultiplier:(c,f)=>c===null&&f.select==="custom"?"Speed multiplier is required":null}});p.exports.useEffect(()=>s.setFieldValue("select",n),[n]);const u=c=>{t(d=>({...d,opened:!1}));const f=c.select==="custom"?{areaSize:c.areaSize,speedMultiplier:c.speedMultiplier}:c.select;!f||l(d=>{const g=[...d];return f&&(g[r.index]=f),g})};return S("form",{onSubmit:s.onSubmit(c=>u(c)),children:H(Mt,{children:[S(Ci,{data:e,placeholder:"Difficulty",...s.getInputProps("select"),value:n,onChange:o,required:!0}),S(Oi,{label:"Area size",defaultValue:typeof a=="object"?a.areaSize:null,description:"Skill check area size in degrees",disabled:n!=="custom",max:360,hideControls:!0,required:n==="custom",...s.getInputProps("areaSize")}),S(Oi,{label:"Speed multiplier",description:"Number the indicator speed will be multiplied by",disabled:n!=="custom",defaultValue:typeof a=="object"?a.speedMultiplier:null,hideControls:!0,precision:2,required:n==="custom",...s.getInputProps("speedMultiplier")}),S(Kn,{type:"submit",uppercase:!0,variant:"light",children:"Confirm"})]})})},I0=[{label:"Easy",value:"easy"},{label:"Medium",value:"medium"},{label:"Hard",value:"hard"},{label:"Custom",value:"custom"}],R7=()=>{const e=K(i=>i.lockpickDifficulty),t=_e(i=>i.setLockpickDifficulty),[r,n]=p.exports.useState({opened:!1,index:0}),o=i=>{t(l=>l.filter((a,s)=>s!==i))};return H(lt,{children:[e.map((i,l)=>H(Lt,{sx:{width:"100%"},spacing:16,mt:l===0?void 0:16,position:"apart",children:[S(Ci,{data:I0,value:typeof i=="string"?i:"custom",readOnly:!0,placeholder:"Edit row to select value",sx:{width:"80%"}}),S(ot,{label:"Edit row",children:S(Ot,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:l}),children:S(Pu,{size:24})})}),S(ot,{label:"Delete row",children:S(Ot,{color:"red.4",variant:"transparent",onClick:()=>o(l),children:S(Gi,{size:24})})})]},`${typeof i=="string"?i:i.areaSize}-${l}`)),S(yu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Lockpick difficulty",centered:!0,size:"xs",withCloseButton:!1,children:S(E7,{selectData:I0,setModal:n,modal:r})})]})},k7=()=>{const e=_e(t=>t.setLockpickDifficulty);return p.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r!==""))},[]),S(Ou,{setter:()=>e(t=>[...t,""]),children:S(R7,{})})},I7=()=>{const e=Ui(),t=pp(),r=K(n=>n.lockpick);return S(lt,{children:H(X,{sx:{height:"100%",display:"flex"},children:[S(et,{orientation:"vertical",color:"blue",sx:{height:"100%"},value:t.pathname.substring(10),onTabChange:n=>e(`/settings/${n}`),children:H(et.List,{children:[S(et.Tab,{value:"back",onClick:()=>e("/"),icon:S(ID,{size:20}),children:"Doors"}),S(et.Tab,{value:"general",icon:S(Pu,{size:20}),children:"General"}),S(et.Tab,{value:"characters",icon:S(AD,{size:20}),children:"Characters"}),S(et.Tab,{value:"groups",icon:S(DD,{size:20}),children:"Groups"}),S(et.Tab,{value:"items",icon:S(zD,{size:20}),children:"Items"}),S(et.Tab,{value:"lockpick",disabled:!r,icon:S(LD,{size:20}),children:"Lockpick"}),S(et.Tab,{value:"sound",icon:S(ND,{size:20}),children:"Sound"})]})}),H(Mt,{p:16,sx:{width:"100%"},justify:"space-between",children:[H(Zx,{children:[S(Wt,{path:"/general",element:S(o7,{})}),S(Wt,{path:"/characters",element:S(l7,{})}),S(Wt,{path:"/groups",element:S(s7,{})}),S(Wt,{path:"/items",element:S($7,{})}),S(Wt,{path:"/sound",element:S(O7,{})}),S(Wt,{path:"/lockpick",element:S(k7,{})})]}),S(C7,{})]})]})})},N7=["Escape"],z7=(e,t)=>{const r=p.exports.useRef(Jx);p.exports.useEffect(()=>{r.current=e},[e]),p.exports.useEffect(()=>{const n=o=>{N7.includes(o.code)&&(r.current(!1),t&&t(),Pr("exit"))};return window.addEventListener("keyup",n),()=>window.removeEventListener("keyup",n)},[])},D7=Q(e=>({container:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},main:{width:700,height:500,backgroundColor:e.colors.dark[8],borderRadius:e.radius.sm},search:{width:"40%",transition:"300ms","&:focus-within":{width:"50%"}}})),T7=()=>{const{classes:e}=D7(),t=_e(a=>a.setSounds),[r,n]=$u(a=>[a.visible,a.setVisible]),o=Mf(a=>a.doors),i=Mf(a=>a.setDoors),l=Ui();return bl("playSound",async a=>{const s=new Audio(`./sounds/${a.sound}.ogg`);s.volume=a.volume,await s.play()}),bl("setSoundFiles",a=>t(a)),bl("setVisible",a=>{if(n(!0),a===void 0)return l("/");for(let s=0;s{if(typeof a=="number")return i(o.filter(s=>s.id!==a));if(a.hasOwnProperty("id")){let s=o.length;for(let u=0;uS(X,{className:e.main,style:a,children:H(Zx,{children:[S(Wt,{path:"/",element:S(t7,{})}),S(Wt,{path:"/settings/*",element:S(I7,{})})]})})})})},M7={colorScheme:"dark",fontFamily:"Roboto",components:{Tooltip:{defaultProps:{transition:"pop"}}}};if($D()){const e=document.getElementById("root");e.style.backgroundImage='url("https://i.imgur.com/3pzRj9n.png")',e.style.backgroundSize="cover",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center"}z$.render(S(C.StrictMode,{children:S(Y1,{withNormalizeCSS:!0,withGlobalStyles:!0,theme:M7,children:S(ZT,{modalProps:{transition:"slide-up"},children:S(PD,{children:S(T7,{})})})})}),document.getElementById("root")); diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html index 782b1a1cf..3691204f2 100644 --- a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html +++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html @@ -5,12 +5,11 @@ NUI React Boilerplate - - + +
- \ No newline at end of file