var jc=e=>{throw TypeError(e)};var po=(e,t,n)=>t.has(e)||jc("Cannot "+n);var v=(e,t,n)=>(po(e,t,"read from private field"),n?n.call(e):t.get(e)),F=(e,t,n)=>t.has(e)?jc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(po(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(po(e,t,"access private method"),n);var Si=(e,t,n,r)=>({set _(s){O(e,t,s,n)},get _(){return v(e,t,r)}});function gg(e,t){for(var n=0;nr[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function yg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uf={exports:{}},Ul={},Bf={exports:{}},V={};/** * @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 ai=Symbol.for("react.element"),vg=Symbol.for("react.portal"),xg=Symbol.for("react.fragment"),wg=Symbol.for("react.strict_mode"),kg=Symbol.for("react.profiler"),bg=Symbol.for("react.provider"),Sg=Symbol.for("react.context"),jg=Symbol.for("react.forward_ref"),Ng=Symbol.for("react.suspense"),Cg=Symbol.for("react.memo"),Eg=Symbol.for("react.lazy"),Nc=Symbol.iterator;function Rg(e){return e===null||typeof e!="object"?null:(e=Nc&&e[Nc]||e["@@iterator"],typeof e=="function"?e:null)}var $f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hf=Object.assign,Vf={};function is(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||$f}is.prototype.isReactComponent={};is.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")};is.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qf(){}Qf.prototype=is.prototype;function fu(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||$f}var hu=fu.prototype=new Qf;hu.constructor=fu;Hf(hu,is.prototype);hu.isPureReactComponent=!0;var Cc=Array.isArray,Wf=Object.prototype.hasOwnProperty,pu={current:null},qf={key:!0,ref:!0,__self:!0,__source:!0};function Kf(e,t,n){var r,s={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Wf.call(t,r)&&!qf.hasOwnProperty(r)&&(s[r]=t[r]);var o=arguments.length-2;if(o===1)s.children=n;else if(1>>1,G=N[W];if(0>>1;Ws(mt,B))Ets(le,mt)?(N[W]=le,N[Et]=B,W=Et):(N[W]=mt,N[Z]=B,W=Z);else if(Ets(le,B))N[W]=le,N[Et]=B,W=Et;else break e}}return D}function s(N,D){var B=N.sortIndex-D.sortIndex;return B!==0?B:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],c=[],f=1,d=null,m=3,w=!1,p=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(N){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=N)r(c),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(c)}}function k(N){if(x=!1,y(N),!p)if(n(u)!==null)p=!0,Y(E);else{var D=n(c);D!==null&&$e(k,D.startTime-N)}}function E(N,D){p=!1,x&&(x=!1,g(j),j=-1),w=!0;var B=m;try{for(y(D),d=n(u);d!==null&&(!(d.expirationTime>D)||N&&!X());){var W=d.callback;if(typeof W=="function"){d.callback=null,m=d.priorityLevel;var G=W(d.expirationTime<=D);D=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(u)&&r(u),y(D)}else r(u);d=n(u)}if(d!==null)var se=!0;else{var Z=n(c);Z!==null&&$e(k,Z.startTime-D),se=!1}return se}finally{d=null,m=B,w=!1}}var _=!1,P=null,j=-1,A=5,L=-1;function X(){return!(e.unstable_now()-LN||125W?(N.sortIndex=B,t(c,N),n(u)===null&&N===n(c)&&(x?(g(j),j=-1):x=!0,$e(k,B-W))):(N.sortIndex=G,t(u,N),p||w||(p=!0,Y(E))),N},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(N){var D=m;return function(){var B=m;m=D;try{return N.apply(this,arguments)}finally{m=B}}}})(eh);Zf.exports=eh;var Ug=Zf.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 Bg=C,nt=Ug;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jo=Object.prototype.hasOwnProperty,$g=/^[: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]*$/,Rc={},_c={};function Hg(e){return Jo.call(_c,e)?!0:Jo.call(Rc,e)?!1:$g.test(e)?_c[e]=!0:(Rc[e]=!0,!1)}function Vg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qg(e,t,n,r){if(t===null||typeof t>"u"||Vg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Be(e,t,n,r,s,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Be(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){Re[e]=new Be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Be(e,5,!1,e.toLowerCase(),null,!1,!1)});var gu=/[\-:]([a-z])/g;function yu(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(gu,yu);Re[t]=new Be(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(gu,yu);Re[t]=new Be(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(gu,yu);Re[t]=new Be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Be(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Be(e,1,!1,e.toLowerCase(),null,!0,!0)});function vu(e,t,n,r){var s=Re.hasOwnProperty(t)?Re[t]:null;(s!==null?s.type!==0:r||!(2o||s[l]!==i[o]){var u=` `+s[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=o);break}}}finally{yo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bs(e):""}function Wg(e){switch(e.tag){case 5:return bs(e.type);case 16:return bs("Lazy");case 13:return bs("Suspense");case 19:return bs("SuspenseList");case 0:case 2:case 15:return e=vo(e.type,!1),e;case 11:return e=vo(e.type.render,!1),e;case 1:return e=vo(e.type,!0),e;default:return""}}function ea(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 kr:return"Fragment";case wr:return"Portal";case Xo:return"Profiler";case xu:return"StrictMode";case Yo:return"Suspense";case Zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rh:return(e.displayName||"Context")+".Consumer";case nh:return(e._context.displayName||"Context")+".Provider";case wu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ku:return t=e.displayName||null,t!==null?t:ea(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return ea(e(t))}catch{}}return null}function qg(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 ea(t);case 8:return t===xu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ih(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kg(e){var t=ih(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){e._valueTracker||(e._valueTracker=Kg(e))}function lh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ih(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function al(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 ta(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Oc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oh(e,t){t=t.checked,t!=null&&vu(e,"checked",t,!1)}function na(e,t){oh(e,t);var n=zn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ra(e,t.type,n):t.hasOwnProperty("defaultValue")&&ra(e,t.type,zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ra(e,t,n){(t!=="number"||al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ss=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=Ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Es={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},Gg=["Webkit","ms","Moz","O"];Object.keys(Es).forEach(function(e){Gg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Es[t]=Es[e]})});function dh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Es.hasOwnProperty(e)&&Es[e]?(""+t).trim():t+"px"}function fh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=dh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Jg=ue({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 la(e,t){if(t){if(Jg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function oa(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 aa=null;function bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ua=null,zr=null,Mr=null;function Lc(e){if(e=di(e)){if(typeof ua!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Ql(t),ua(e.stateNode,e.type,t))}}function hh(e){zr?Mr?Mr.push(e):Mr=[e]:zr=e}function ph(){if(zr){var e=zr,t=Mr;if(Mr=zr=null,Lc(e),t)for(e=0;e>>=0,e===0?32:31-(oy(e)/ay|0)|0}var Ri=64,_i=4194304;function js(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 fl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var o=l&~s;o!==0?r=js(o):(i&=l,i!==0&&(r=js(i)))}else l=n&~s,l!==0?r=js(l):i!==0&&(r=js(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bt(t),e[t]=n}function fy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_s),Vc=" ",Qc=!1;function Mh(e,t){switch(e){case"keyup":return Uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var br=!1;function $y(e,t){switch(e){case"compositionend":return Lh(t);case"keypress":return t.which!==32?null:(Qc=!0,Vc);case"textInput":return e=t.data,e===Vc&&Qc?null:e;default:return null}}function Hy(e,t){if(br)return e==="compositionend"||!Pu&&Mh(e,t)?(e=Th(),Ki=Eu=wn=null,br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gc(n)}}function Dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uh(){for(var e=window,t=al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=al(e.document)}return t}function Ou(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 Yy(e){var t=Uh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dh(n.ownerDocument.documentElement,n)){if(r!==null&&Ou(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Jc(n,i);var l=Jc(n,r);s&&l&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sr=null,ma=null,Os=null,ga=!1;function Xc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ga||Sr==null||Sr!==al(r)||(r=Sr,"selectionStart"in r&&Ou(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Os&&Hs(Os,r)||(Os=r,r=ml(ma,"onSelect"),0Cr||(e.current=ba[Cr],ba[Cr]=null,Cr--)}function ee(e,t){Cr++,ba[Cr]=e.current,e.current=t}var Mn={},Le=An(Mn),qe=An(!1),or=Mn;function Xr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ke(e){return e=e.childContextTypes,e!=null}function yl(){re(qe),re(Le)}function sd(e,t,n){if(Le.current!==Mn)throw Error(R(168));ee(Le,t),ee(qe,n)}function Gh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(R(108,qg(e)||"Unknown",s));return ue({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,or=Le.current,ee(Le,e),ee(qe,qe.current),!0}function id(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Gh(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,re(qe),re(Le),ee(Le,e)):re(qe),ee(qe,n)}var Ut=null,Wl=!1,To=!1;function Jh(e){Ut===null?Ut=[e]:Ut.push(e)}function c0(e){Wl=!0,Jh(e)}function Fn(){if(!To&&Ut!==null){To=!0;var e=0,t=J;try{var n=Ut;for(J=1;e>=l,s-=l,Qt=1<<32-bt(t)+s|n<j?(A=P,P=null):A=P.sibling;var L=m(g,P,y[j],k);if(L===null){P===null&&(P=A);break}e&&P&&L.alternate===null&&t(g,P),h=i(L,h,j),_===null?E=L:_.sibling=L,_=L,P=A}if(j===y.length)return n(g,P),ie&&Bn(g,j),E;if(P===null){for(;jj?(A=P,P=null):A=P.sibling;var X=m(g,P,L.value,k);if(X===null){P===null&&(P=A);break}e&&P&&X.alternate===null&&t(g,P),h=i(X,h,j),_===null?E=X:_.sibling=X,_=X,P=A}if(L.done)return n(g,P),ie&&Bn(g,j),E;if(P===null){for(;!L.done;j++,L=y.next())L=d(g,L.value,k),L!==null&&(h=i(L,h,j),_===null?E=L:_.sibling=L,_=L);return ie&&Bn(g,j),E}for(P=r(g,P);!L.done;j++,L=y.next())L=w(P,g,j,L.value,k),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?j:L.key),h=i(L,h,j),_===null?E=L:_.sibling=L,_=L);return e&&P.forEach(function(me){return t(g,me)}),ie&&Bn(g,j),E}function b(g,h,y,k){if(typeof y=="object"&&y!==null&&y.type===kr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ni:e:{for(var E=y.key,_=h;_!==null;){if(_.key===E){if(E=y.type,E===kr){if(_.tag===7){n(g,_.sibling),h=s(_,y.props.children),h.return=g,g=h;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===on&&ad(E)===_.type){n(g,_.sibling),h=s(_,y.props),h.ref=ys(g,_,y),h.return=g,g=h;break e}n(g,_);break}else t(g,_);_=_.sibling}y.type===kr?(h=sr(y.props.children,g.mode,k,y.key),h.return=g,g=h):(k=nl(y.type,y.key,y.props,null,g.mode,k),k.ref=ys(g,h,y),k.return=g,g=k)}return l(g);case wr:e:{for(_=y.key;h!==null;){if(h.key===_)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(g,h.sibling),h=s(h,y.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Uo(y,g.mode,k),h.return=g,g=h}return l(g);case on:return _=y._init,b(g,h,_(y._payload),k)}if(Ss(y))return p(g,h,y,k);if(fs(y))return x(g,h,y,k);Ai(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(g,h.sibling),h=s(h,y),h.return=g,g=h):(n(g,h),h=Do(y,g.mode,k),h.return=g,g=h),l(g)):n(g,h)}return b}var Zr=ep(!0),tp=ep(!1),kl=An(null),bl=null,_r=null,Lu=null;function Au(){Lu=_r=bl=null}function Fu(e){var t=kl.current;re(kl),e._currentValue=t}function Na(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){bl=e,Lu=_r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(Lu!==e)if(e={context:e,memoizedValue:t,next:null},_r===null){if(bl===null)throw Error(R(308));_r=e,bl.dependencies={lanes:0,firstContext:e}}else _r=_r.next=e;return t}var Vn=null;function Iu(e){Vn===null?Vn=[e]:Vn.push(e)}function np(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Iu(t)):(n.next=s.next,s.next=n),t.interleaved=n,Yt(e,r)}function Yt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var an=!1;function Du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Yt(e,n)}return s=r.interleaved,s===null?(t.next=t,Iu(r)):(t.next=s.next,s.next=t),r.interleaved=t,Yt(e,n)}function Ji(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ju(e,n)}}function ud(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Sl(e,t,n,r){var s=e.updateQueue;an=!1;var i=s.firstBaseUpdate,l=s.lastBaseUpdate,o=s.shared.pending;if(o!==null){s.shared.pending=null;var u=o,c=u.next;u.next=null,l===null?i=c:l.next=c,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=c:o.next=c,f.lastBaseUpdate=u))}if(i!==null){var d=s.baseState;l=0,f=c=u=null,o=i;do{var m=o.lane,w=o.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,x=o;switch(m=t,w=n,x.tag){case 1:if(p=x.payload,typeof p=="function"){d=p.call(w,d,m);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=x.payload,m=typeof p=="function"?p.call(w,d,m):p,m==null)break e;d=ue({},d,m);break e;case 2:an=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[o]:m.push(o))}else w={eventTime:w,lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(c=f=w,u=d):f=f.next=w,l|=m;if(o=o.next,o===null){if(o=s.shared.pending,o===null)break;m=o,o=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(f===null&&(u=d),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=f,t=s.shared.interleaved,t!==null){s=t;do l|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);cr|=l,e.lanes=l,e.memoizedState=d}}function cd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Mo.transition;Mo.transition={};try{e(!1),t()}finally{J=n,Mo.transition=r}}function wp(){return pt().memoizedState}function p0(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kp(e))bp(t,n);else if(n=np(e,t,n,r),n!==null){var s=De();St(n,e,r,s),Sp(n,t,r)}}function m0(e,t,n){var r=_n(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kp(e))bp(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(s.hasEagerState=!0,s.eagerState=o,jt(o,l)){var u=t.interleaved;u===null?(s.next=s,Iu(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=np(e,t,s,r),n!==null&&(s=De(),St(n,e,r,s),Sp(n,t,r))}}function kp(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function bp(e,t){Ts=Nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ju(e,n)}}var Cl={readContext:ht,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},g0={readContext:ht,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,mp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=p0.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:dd,useDebugValue:qu,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=dd(!1),t=e[0];return e=h0.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,s=_t();if(ie){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),je===null)throw Error(R(349));ur&30||op(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,fd(up.bind(null,r,i,e),[e]),r.flags|=2048,Xs(9,ap.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_t(),t=je.identifierPrefix;if(ie){var n=Wt,r=Qt;n=(r&~(1<<32-bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[zt]=t,e[Ws]=r,zp(e,t,!1,!1),t.stateNode=e;e:{switch(l=oa(n,r),n){case"dialog":te("cancel",e),te("close",e),s=r;break;case"iframe":case"object":case"embed":te("load",e),s=r;break;case"video":case"audio":for(s=0;sns&&(t.flags|=128,r=!0,vs(i,!1),t.lanes=4194304)}else{if(!r)if(e=jl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ie)return Oe(t),null}else 2*he()-i.renderingStartTime>ns&&n!==1073741824&&(t.flags|=128,r=!0,vs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=oe.current,ee(oe,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Zu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function j0(e,t){switch(zu(t),t.tag){case 1:return Ke(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return es(),re(qe),re(Le),$u(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bu(t),null;case 13:if(re(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(oe),null;case 4:return es(),null;case 10:return Fu(t.type._context),null;case 22:case 23:return Zu(),null;case 24:return null;default:return null}}var Ii=!1,ze=!1,N0=typeof WeakSet=="function"?WeakSet:Set,T=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Ma(e,t,n){try{n()}catch(r){de(e,t,r)}}var Sd=!1;function C0(e,t){if(ya=hl,e=Uh(),Ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,o=-1,u=-1,c=0,f=0,d=e,m=null;t:for(;;){for(var w;d!==n||s!==0&&d.nodeType!==3||(o=l+s),d!==i||r!==0&&d.nodeType!==3||(u=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(w=d.firstChild)!==null;)m=d,d=w;for(;;){if(d===e)break t;if(m===n&&++c===s&&(o=l),m===i&&++f===r&&(u=l),(w=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=w}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(va={focusedElem:e,selectionRange:n},hl=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var x=p.memoizedProps,b=p.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:yt(t.type,x),b);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(k){de(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return p=Sd,Sd=!1,p}function zs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Ma(t,n,i)}s=s.next}while(s!==r)}}function Gl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function La(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ap(e){var t=e.alternate;t!==null&&(e.alternate=null,Ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Ws],delete t[ka],delete t[a0],delete t[u0])),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 Fp(e){return e.tag===5||e.tag===3||e.tag===4}function jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(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 Aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gl));else if(r!==4&&(e=e.child,e!==null))for(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}function Fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}var Ce=null,wt=!1;function rn(e,t,n){for(n=n.child;n!==null;)Ip(e,t,n),n=n.sibling}function Ip(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:ze||Pr(n,t);case 6:var r=Ce,s=wt;Ce=null,rn(e,t,n),Ce=r,wt=s,Ce!==null&&(wt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(wt?(e=Ce,n=n.stateNode,e.nodeType===8?Oo(e.parentNode,n):e.nodeType===1&&Oo(e,n),Bs(e)):Oo(Ce,n.stateNode));break;case 4:r=Ce,s=wt,Ce=n.stateNode.containerInfo,wt=!0,rn(e,t,n),Ce=r,wt=s;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Ma(n,t,l),s=s.next}while(s!==r)}rn(e,t,n);break;case 1:if(!ze&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){de(n,t,o)}rn(e,t,n);break;case 21:rn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,rn(e,t,n),ze=r):rn(e,t,n);break;default:rn(e,t,n)}}function Nd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N0),t.forEach(function(r){var s=L0.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rs&&(s=l),r&=~i}if(r=s,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*R0(r/1960))-r,10e?16:e,kn===null)var r=!1;else{if(e=kn,kn=null,_l=0,q&6)throw Error(R(331));var s=q;for(q|=4,T=e.current;T!==null;){var i=T,l=i.child;if(T.flags&16){var o=i.deletions;if(o!==null){for(var u=0;uhe()-Xu?rr(e,0):Ju|=n),Ge(e,t)}function Wp(e,t){t===0&&(e.mode&1?(t=_i,_i<<=1,!(_i&130023424)&&(_i=4194304)):t=1);var n=De();e=Yt(e,t),e!==null&&(ui(e,t,n),Ge(e,n))}function M0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wp(e,n)}function L0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Wp(e,n)}var qp;qp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,b0(e,t,n);We=!!(e.flags&131072)}else We=!1,ie&&t.flags&1048576&&Xh(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var s=Xr(t,Le.current);Ar(t,n),s=Vu(null,t,r,e,s,n);var i=Qu();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,vl(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Du(t),s.updater=Kl,t.stateNode=s,s._reactInternals=t,Ea(t,r,e,n),t=Pa(null,t,r,!0,i,n)):(t.tag=0,ie&&i&&Tu(t),Fe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=F0(r),e=yt(r,e),s){case 0:t=_a(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=vd(null,t,r,e,n);break e;case 14:t=xd(null,t,r,yt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),_a(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),wd(e,t,r,s,n);case 3:e:{if(Pp(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,s=i.element,rp(e,t),Sl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=ts(Error(R(423)),t),t=kd(e,t,r,n,s);break e}else if(r!==s){s=ts(Error(R(424)),t),t=kd(e,t,r,n,s);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,ie=!0,kt=null,n=tp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),r===s){t=Zt(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return sp(t),e===null&&ja(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,l=s.children,xa(r,s)?l=null:i!==null&&xa(r,i)&&(t.flags|=32),_p(e,t),Fe(e,t,l,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Op(e,t,n);case 4:return Uu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),vd(e,t,r,s,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,l=s.value,ee(kl,r._currentValue),r._currentValue=l,i!==null)if(jt(i.value,l)){if(i.children===s.children&&!qe.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){l=i.child;for(var u=o.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Kt(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Na(i.return,n,t),o.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(R(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Na(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Fe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ar(t,n),s=ht(s),r=r(s),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,s=yt(r,t.pendingProps),s=yt(r.type,s),xd(e,t,r,s,n);case 15:return Ep(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),Zi(e,t),t.tag=1,Ke(r)?(e=!0,vl(t)):e=!1,Ar(t,n),jp(t,r,s),Ea(t,r,s,n),Pa(null,t,r,!0,e,n);case 19:return Tp(e,t,n);case 22:return Rp(e,t,n)}throw Error(R(156,t.tag))};function Kp(e,t){return kh(e,t)}function A0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dt(e,t,n,r){return new A0(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F0(e){if(typeof e=="function")return tc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wu)return 11;if(e===ku)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nl(e,t,n,r,s,i){var l=2;if(r=e,typeof e=="function")tc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case kr:return sr(n.children,s,i,t);case xu:l=8,s|=8;break;case Xo:return e=dt(12,n,t,s|2),e.elementType=Xo,e.lanes=i,e;case Yo:return e=dt(13,n,t,s),e.elementType=Yo,e.lanes=i,e;case Zo:return e=dt(19,n,t,s),e.elementType=Zo,e.lanes=i,e;case sh:return Xl(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nh:l=10;break e;case rh:l=9;break e;case wu:l=11;break e;case ku:l=14;break e;case on:l=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=dt(l,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function sr(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=dt(22,e,r,t),e.elementType=sh,e.lanes=n,e.stateNode={isHidden:!1},e}function Do(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function Uo(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I0(e,t,n,r,s){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=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function nc(e,t,n,r,s,i,l,o,u){return e=new I0(e,t,n,o,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Du(i),e}function D0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yp)}catch(e){console.error(e)}}Yp(),Yf.exports=rt;var V0=Yf.exports,zd=V0;Go.createRoot=zd.createRoot,Go.hydrateRoot=zd.hydrateRoot;var as=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Q0={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},dn,du,_f,W0=(_f=class{constructor(){F(this,dn,Q0);F(this,du,!1)}setTimeoutProvider(e){O(this,dn,e)}setTimeout(e,t){return v(this,dn).setTimeout(e,t)}clearTimeout(e){v(this,dn).clearTimeout(e)}setInterval(e,t){return v(this,dn).setInterval(e,t)}clearInterval(e){v(this,dn).clearInterval(e)}},dn=new WeakMap,du=new WeakMap,_f),Wn=new W0;function q0(e){setTimeout(e,0)}var fr=typeof window>"u"||"Deno"in globalThis;function Ie(){}function K0(e,t){return typeof e=="function"?e(t):e}function $a(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function On(e,t){return typeof e=="function"?e(t):e}function ot(e,t){return typeof e=="function"?e(t):e}function Md(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:l,stale:o}=e;if(l){if(r){if(t.queryHash!==lc(l,t.options))return!1}else if(!Zs(t.queryKey,l))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||i&&!i(t))}function Ld(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(hr(t.options.mutationKey)!==hr(i))return!1}else if(!Zs(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function lc(e,t){return((t==null?void 0:t.queryKeyHashFn)||hr)(e)}function hr(e){return JSON.stringify(e,(t,n)=>Ha(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Zs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Zs(e[n],t[n])):!1}var G0=Object.prototype.hasOwnProperty;function em(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Ad(e)&&Ad(t);if(!r&&!(Ha(e)&&Ha(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),o=l.length,u=r?new Array(o):{};let c=0;for(let f=0;f{Wn.setTimeout(t,e)})}function Va(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?em(e,t):t}function X0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Y0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var oc=Symbol();function tm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===oc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ac(e,t){return typeof e=="function"?e(...t):!!e}function Z0(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Kn,fn,Ir,Pf,ev=(Pf=class extends as{constructor(){super();F(this,Kn);F(this,fn);F(this,Ir);O(this,Ir,t=>{if(!fr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,fn)||this.setEventListener(v(this,Ir))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,fn))==null||t.call(this),O(this,fn,void 0))}setEventListener(t){var n;O(this,Ir,t),(n=v(this,fn))==null||n.call(this),O(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,Kn)!==t&&(O(this,Kn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof v(this,Kn)=="boolean"?v(this,Kn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Kn=new WeakMap,fn=new WeakMap,Ir=new WeakMap,Pf),uc=new ev;function Qa(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var tv=q0;function nv(){let e=[],t=0,n=o=>{o()},r=o=>{o()},s=tv;const i=o=>{t?e.push(o):s(()=>{n(o)})},l=()=>{const o=e;e=[],o.length&&s(()=>{r(()=>{o.forEach(u=>{n(u)})})})};return{batch:o=>{let u;t++;try{u=o()}finally{t--,t||l()}return u},batchCalls:o=>(...u)=>{i(()=>{o(...u)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{s=o}}}var we=nv(),Dr,hn,Ur,Of,rv=(Of=class extends as{constructor(){super();F(this,Dr,!0);F(this,hn);F(this,Ur);O(this,Ur,t=>{if(!fr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,hn)||this.setEventListener(v(this,Ur))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,hn))==null||t.call(this),O(this,hn,void 0))}setEventListener(t){var n;O(this,Ur,t),(n=v(this,hn))==null||n.call(this),O(this,hn,t(this.setOnline.bind(this)))}setOnline(t){v(this,Dr)!==t&&(O(this,Dr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,Dr)}},Dr=new WeakMap,hn=new WeakMap,Ur=new WeakMap,Of),zl=new rv;function sv(e){return Math.min(1e3*2**e,3e4)}function nm(e){return(e??"online")==="online"?zl.isOnline():!0}var Wa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function rm(e){let t=!1,n=0,r;const s=Qa(),i=()=>s.status!=="pending",l=x=>{var b;if(!i()){const g=new Wa(x);m(g),(b=e.onCancel)==null||b.call(e,g)}},o=()=>{t=!0},u=()=>{t=!1},c=()=>uc.isFocused()&&(e.networkMode==="always"||zl.isOnline())&&e.canRun(),f=()=>nm(e.networkMode)&&e.canRun(),d=x=>{i()||(r==null||r(),s.resolve(x))},m=x=>{i()||(r==null||r(),s.reject(x))},w=()=>new Promise(x=>{var b;r=g=>{(i()||c())&&x(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var x;r=void 0,i()||(x=e.onContinue)==null||x.call(e)}),p=()=>{if(i())return;let x;const b=n===0?e.initialPromise:void 0;try{x=b??e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(d).catch(g=>{var _;if(i())return;const h=e.retry??(fr?0:3),y=e.retryDelay??sv,k=typeof y=="function"?y(n,g):y,E=h===!0||typeof h=="number"&&nc()?void 0:w()).then(()=>{t?m(g):p()})})};return{promise:s,status:()=>s.status,cancel:l,continue:()=>(r==null||r(),s),cancelRetry:o,continueRetry:u,canStart:f,start:()=>(f()?p():w().then(p),s)}}var Gn,Tf,sm=(Tf=class{constructor(){F(this,Gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$a(this.gcTime)&&O(this,Gn,Wn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fr?1/0:5*60*1e3))}clearGcTimeout(){v(this,Gn)&&(Wn.clearTimeout(v(this,Gn)),O(this,Gn,void 0))}},Gn=new WeakMap,Tf),Jn,Br,lt,Xn,be,ri,Yn,vt,It,zf,iv=(zf=class extends sm{constructor(t){super();F(this,vt);F(this,Jn);F(this,Br);F(this,lt);F(this,Xn);F(this,be);F(this,ri);F(this,Yn);O(this,Yn,!1),O(this,ri,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Xn,t.client),O(this,lt,v(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,Jn,Dd(this.options)),this.state=t.state??v(this,Jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=v(this,be))==null?void 0:t.promise}setOptions(t){if(this.options={...v(this,ri),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Dd(this.options);n.data!==void 0&&(this.setState(Id(n.data,n.dataUpdatedAt)),O(this,Jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,lt).remove(this)}setData(t,n){const r=Va(this.state.data,t,this.options);return $(this,vt,It).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,vt,It).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=v(this,be))==null?void 0:r.promise;return(s=v(this,be))==null||s.cancel(t),n?n.then(Ie).catch(Ie):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,Jn))}isActive(){return this.observers.some(t=>ot(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===oc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>On(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Zp(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),v(this,lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(v(this,be)&&(v(this,Yn)?v(this,be).cancel({revert:!0}):v(this,be).cancelRetry()),this.scheduleGc()),v(this,lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,vt,It).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,f,d,m,w,p,x,b,g,h,y;if(this.state.fetchStatus!=="idle"&&((u=v(this,be))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,be))return v(this,be).continueRetry(),v(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const k=this.observers.find(E=>E.options.queryFn);k&&this.setOptions(k.options)}const r=new AbortController,s=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(O(this,Yn,!0),r.signal)})},i=()=>{const k=tm(this.options,n),_=(()=>{const P={client:v(this,Xn),queryKey:this.queryKey,meta:this.meta};return s(P),P})();return O(this,Yn,!1),this.options.persister?this.options.persister(k,_,this):k(_)},o=(()=>{const k={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:v(this,Xn),state:this.state,fetchFn:i};return s(k),k})();(c=this.options.behavior)==null||c.onFetch(o,this),O(this,Br,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&$(this,vt,It).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),O(this,be,rm({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:k=>{k instanceof Wa&&k.revert&&this.setState({...v(this,Br),fetchStatus:"idle"}),r.abort()},onFail:(k,E)=>{$(this,vt,It).call(this,{type:"failed",failureCount:k,error:E})},onPause:()=>{$(this,vt,It).call(this,{type:"pause"})},onContinue:()=>{$(this,vt,It).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const k=await v(this,be).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(w=(m=v(this,lt).config).onSuccess)==null||w.call(m,k,this),(x=(p=v(this,lt).config).onSettled)==null||x.call(p,k,this.state.error,this),k}catch(k){if(k instanceof Wa){if(k.silent)return v(this,be).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw $(this,vt,It).call(this,{type:"error",error:k}),(g=(b=v(this,lt).config).onError)==null||g.call(b,k,this),(y=(h=v(this,lt).config).onSettled)==null||y.call(h,this.state.data,k,this),k}finally{this.scheduleGc()}}},Jn=new WeakMap,Br=new WeakMap,lt=new WeakMap,Xn=new WeakMap,be=new WeakMap,ri=new WeakMap,Yn=new WeakMap,vt=new WeakSet,It=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...im(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...Id(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return O(this,Br,t.manual?s:void 0),s;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),we.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),v(this,lt).notify({query:this,type:"updated",action:t})})},zf);function im(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Id(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Dd(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var He,Q,si,Ae,Zn,$r,Bt,pn,ii,Hr,Vr,er,tr,mn,Qr,K,Cs,qa,Ka,Ga,Ja,Xa,Ya,Za,lm,Mf,lv=(Mf=class extends as{constructor(t,n){super();F(this,K);F(this,He);F(this,Q);F(this,si);F(this,Ae);F(this,Zn);F(this,$r);F(this,Bt);F(this,pn);F(this,ii);F(this,Hr);F(this,Vr);F(this,er);F(this,tr);F(this,mn);F(this,Qr,new Set);this.options=n,O(this,He,t),O(this,pn,null),O(this,Bt,Qa()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,Q).addObserver(this),Ud(v(this,Q),this.options)?$(this,K,Cs).call(this):this.updateResult(),$(this,K,Ja).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eu(v(this,Q),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eu(v(this,Q),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,K,Xa).call(this),$(this,K,Ya).call(this),v(this,Q).removeObserver(this)}setOptions(t){const n=this.options,r=v(this,Q);if(this.options=v(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ot(this.options.enabled,v(this,Q))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,K,Za).call(this),v(this,Q).setOptions(this.options),n._defaulted&&!Tl(this.options,n)&&v(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,Q),observer:this});const s=this.hasListeners();s&&Bd(v(this,Q),r,this.options,n)&&$(this,K,Cs).call(this),this.updateResult(),s&&(v(this,Q)!==r||ot(this.options.enabled,v(this,Q))!==ot(n.enabled,v(this,Q))||On(this.options.staleTime,v(this,Q))!==On(n.staleTime,v(this,Q)))&&$(this,K,qa).call(this);const i=$(this,K,Ka).call(this);s&&(v(this,Q)!==r||ot(this.options.enabled,v(this,Q))!==ot(n.enabled,v(this,Q))||i!==v(this,mn))&&$(this,K,Ga).call(this,i)}getOptimisticResult(t){const n=v(this,He).getQueryCache().build(v(this,He),t),r=this.createResult(n,t);return av(this,r)&&(O(this,Ae,r),O(this,$r,this.options),O(this,Zn,v(this,Q).state)),r}getCurrentResult(){return v(this,Ae)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&v(this,Bt).status==="pending"&&v(this,Bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(t){v(this,Qr).add(t)}getCurrentQuery(){return v(this,Q)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,He).defaultQueryOptions(t),r=v(this,He).getQueryCache().build(v(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,K,Cs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,Ae)))}createResult(t,n){var A;const r=v(this,Q),s=this.options,i=v(this,Ae),l=v(this,Zn),o=v(this,$r),c=t!==r?t.state:v(this,si),{state:f}=t;let d={...f},m=!1,w;if(n._optimisticResults){const L=this.hasListeners(),X=!L&&Ud(t,n),me=L&&Bd(t,r,n,s);(X||me)&&(d={...d,...im(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:x,status:b}=d;w=d.data;let g=!1;if(n.placeholderData!==void 0&&w===void 0&&b==="pending"){let L;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(L=i.data,g=!0):L=typeof n.placeholderData=="function"?n.placeholderData((A=v(this,Vr))==null?void 0:A.state.data,v(this,Vr)):n.placeholderData,L!==void 0&&(b="success",w=Va(i==null?void 0:i.data,L,n),m=!0)}if(n.select&&w!==void 0&&!g)if(i&&w===(l==null?void 0:l.data)&&n.select===v(this,ii))w=v(this,Hr);else try{O(this,ii,n.select),w=n.select(w),w=Va(i==null?void 0:i.data,w,n),O(this,Hr,w),O(this,pn,null)}catch(L){O(this,pn,L)}v(this,pn)&&(p=v(this,pn),w=v(this,Hr),x=Date.now(),b="error");const h=d.fetchStatus==="fetching",y=b==="pending",k=b==="error",E=y&&h,_=w!==void 0,j={status:b,fetchStatus:d.fetchStatus,isPending:y,isSuccess:b==="success",isError:k,isInitialLoading:E,isLoading:E,data:w,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:h,isRefetching:h&&!y,isLoadingError:k&&!_,isPaused:d.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:k&&_,isStale:cc(t,n),refetch:this.refetch,promise:v(this,Bt),isEnabled:ot(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=j.data!==void 0,X=j.status==="error"&&!L,me=_e=>{X?_e.reject(j.error):L&&_e.resolve(j.data)},Ne=()=>{const _e=O(this,Bt,j.promise=Qa());me(_e)},ye=v(this,Bt);switch(ye.status){case"pending":t.queryHash===r.queryHash&&me(ye);break;case"fulfilled":(X||j.data!==ye.value)&&Ne();break;case"rejected":(!X||j.error!==ye.reason)&&Ne();break}}return j}updateResult(){const t=v(this,Ae),n=this.createResult(v(this,Q),this.options);if(O(this,Zn,v(this,Q).state),O(this,$r,this.options),v(this,Zn).data!==void 0&&O(this,Vr,v(this,Q)),Tl(n,t))return;O(this,Ae,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!v(this,Qr).size)return!0;const l=new Set(i??v(this,Qr));return this.options.throwOnError&&l.add("error"),Object.keys(v(this,Ae)).some(o=>{const u=o;return v(this,Ae)[u]!==t[u]&&l.has(u)})};$(this,K,lm).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,K,Ja).call(this)}},He=new WeakMap,Q=new WeakMap,si=new WeakMap,Ae=new WeakMap,Zn=new WeakMap,$r=new WeakMap,Bt=new WeakMap,pn=new WeakMap,ii=new WeakMap,Hr=new WeakMap,Vr=new WeakMap,er=new WeakMap,tr=new WeakMap,mn=new WeakMap,Qr=new WeakMap,K=new WeakSet,Cs=function(t){$(this,K,Za).call(this);let n=v(this,Q).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ie)),n},qa=function(){$(this,K,Xa).call(this);const t=On(this.options.staleTime,v(this,Q));if(fr||v(this,Ae).isStale||!$a(t))return;const r=Zp(v(this,Ae).dataUpdatedAt,t)+1;O(this,er,Wn.setTimeout(()=>{v(this,Ae).isStale||this.updateResult()},r))},Ka=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,Q)):this.options.refetchInterval)??!1},Ga=function(t){$(this,K,Ya).call(this),O(this,mn,t),!(fr||ot(this.options.enabled,v(this,Q))===!1||!$a(v(this,mn))||v(this,mn)===0)&&O(this,tr,Wn.setInterval(()=>{(this.options.refetchIntervalInBackground||uc.isFocused())&&$(this,K,Cs).call(this)},v(this,mn)))},Ja=function(){$(this,K,qa).call(this),$(this,K,Ga).call(this,$(this,K,Ka).call(this))},Xa=function(){v(this,er)&&(Wn.clearTimeout(v(this,er)),O(this,er,void 0))},Ya=function(){v(this,tr)&&(Wn.clearInterval(v(this,tr)),O(this,tr,void 0))},Za=function(){const t=v(this,He).getQueryCache().build(v(this,He),this.options);if(t===v(this,Q))return;const n=v(this,Q);O(this,Q,t),O(this,si,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},lm=function(t){we.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,Ae))}),v(this,He).getQueryCache().notify({query:v(this,Q),type:"observerResultsUpdated"})})},Mf);function ov(e,t){return ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ud(e,t){return ov(e,t)||e.state.data!==void 0&&eu(e,t,t.refetchOnMount)}function eu(e,t,n){if(ot(t.enabled,e)!==!1&&On(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&cc(e,t)}return!1}function Bd(e,t,n,r){return(e!==t||ot(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&cc(e,n)}function cc(e,t){return ot(t.enabled,e)!==!1&&e.isStaleByTime(On(t.staleTime,e))}function av(e,t){return!Tl(e.getCurrentResult(),t)}function $d(e){return{onFetch:(t,n)=>{var f,d,m,w,p;const r=t.options,s=(m=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,i=((w=t.state.data)==null?void 0:w.pages)||[],l=((p=t.state.data)==null?void 0:p.pageParams)||[];let o={pages:[],pageParams:[]},u=0;const c=async()=>{let x=!1;const b=y=>{Z0(y,()=>t.signal,()=>x=!0)},g=tm(t.options,t.fetchOptions),h=async(y,k,E)=>{if(x)return Promise.reject();if(k==null&&y.pages.length)return Promise.resolve(y);const P=(()=>{const X={client:t.client,queryKey:t.queryKey,pageParam:k,direction:E?"backward":"forward",meta:t.options.meta};return b(X),X})(),j=await g(P),{maxPages:A}=t.options,L=E?Y0:X0;return{pages:L(y.pages,j,A),pageParams:L(y.pageParams,k,A)}};if(s&&i.length){const y=s==="backward",k=y?uv:Hd,E={pages:i,pageParams:l},_=k(r,E);o=await h(E,_,y)}else{const y=e??i.length;do{const k=u===0?l[0]??r.initialPageParam:Hd(r,o);if(u>0&&k==null)break;o=await h(o,k),u++}while(u{var x,b;return(b=(x=t.options).persister)==null?void 0:b.call(x,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Hd(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function uv(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var li,Pt,Te,nr,Ot,ln,Lf,cv=(Lf=class extends sm{constructor(t){super();F(this,Ot);F(this,li);F(this,Pt);F(this,Te);F(this,nr);O(this,li,t.client),this.mutationId=t.mutationId,O(this,Te,t.mutationCache),O(this,Pt,[]),this.state=t.state||om(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){v(this,Pt).includes(t)||(v(this,Pt).push(t),this.clearGcTimeout(),v(this,Te).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,Pt,v(this,Pt).filter(n=>n!==t)),this.scheduleGc(),v(this,Te).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():v(this,Te).remove(this))}continue(){var t;return((t=v(this,nr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,u,c,f,d,m,w,p,x,b,g,h,y,k,E,_,P;const n=()=>{$(this,Ot,ln).call(this,{type:"continue"})},r={client:v(this,li),meta:this.options.meta,mutationKey:this.options.mutationKey};O(this,nr,rm({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(j,A)=>{$(this,Ot,ln).call(this,{type:"failed",failureCount:j,error:A})},onPause:()=>{$(this,Ot,ln).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>v(this,Te).canRun(this)}));const s=this.state.status==="pending",i=!v(this,nr).canStart();try{if(s)n();else{$(this,Ot,ln).call(this,{type:"pending",variables:t,isPaused:i}),v(this,Te).config.onMutate&&await v(this,Te).config.onMutate(t,this,r);const A=await((o=(l=this.options).onMutate)==null?void 0:o.call(l,t,r));A!==this.state.context&&$(this,Ot,ln).call(this,{type:"pending",context:A,variables:t,isPaused:i})}const j=await v(this,nr).start();return await((c=(u=v(this,Te).config).onSuccess)==null?void 0:c.call(u,j,t,this.state.context,this,r)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,j,t,this.state.context,r)),await((w=(m=v(this,Te).config).onSettled)==null?void 0:w.call(m,j,null,this.state.variables,this.state.context,this,r)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,j,null,t,this.state.context,r)),$(this,Ot,ln).call(this,{type:"success",data:j}),j}catch(j){try{await((g=(b=v(this,Te).config).onError)==null?void 0:g.call(b,j,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((y=(h=this.options).onError)==null?void 0:y.call(h,j,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((E=(k=v(this,Te).config).onSettled)==null?void 0:E.call(k,void 0,j,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,j,t,this.state.context,r))}catch(A){Promise.reject(A)}throw $(this,Ot,ln).call(this,{type:"error",error:j}),j}finally{v(this,Te).runNext(this)}}},li=new WeakMap,Pt=new WeakMap,Te=new WeakMap,nr=new WeakMap,Ot=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),we.batch(()=>{v(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),v(this,Te).notify({mutation:this,type:"updated",action:t})})},Lf);function om(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,xt,oi,Af,dv=(Af=class extends as{constructor(t={}){super();F(this,$t);F(this,xt);F(this,oi);this.config=t,O(this,$t,new Set),O(this,xt,new Map),O(this,oi,0)}build(t,n,r){const s=new cv({client:t,mutationCache:this,mutationId:++Si(this,oi)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){v(this,$t).add(t);const n=Bi(t);if(typeof n=="string"){const r=v(this,xt).get(n);r?r.push(t):v(this,xt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(v(this,$t).delete(t)){const n=Bi(t);if(typeof n=="string"){const r=v(this,xt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&v(this,xt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Bi(t);if(typeof n=="string"){const r=v(this,xt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Bi(t);if(typeof n=="string"){const s=(r=v(this,xt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){we.batch(()=>{v(this,$t).forEach(t=>{this.notify({type:"removed",mutation:t})}),v(this,$t).clear(),v(this,xt).clear()})}getAll(){return Array.from(v(this,$t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ld(n,r))}findAll(t={}){return this.getAll().filter(n=>Ld(t,n))}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return we.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ie))))}},$t=new WeakMap,xt=new WeakMap,oi=new WeakMap,Af);function Bi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ht,gn,Ve,Vt,Gt,rl,tu,Ff,fv=(Ff=class extends as{constructor(n,r){super();F(this,Gt);F(this,Ht);F(this,gn);F(this,Ve);F(this,Vt);O(this,Ht,n),this.setOptions(r),this.bindMethods(),$(this,Gt,rl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=v(this,Ht).defaultMutationOptions(n),Tl(this.options,r)||v(this,Ht).getMutationCache().notify({type:"observerOptionsUpdated",mutation:v(this,Ve),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&hr(r.mutationKey)!==hr(this.options.mutationKey)?this.reset():((s=v(this,Ve))==null?void 0:s.state.status)==="pending"&&v(this,Ve).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=v(this,Ve))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,Gt,rl).call(this),$(this,Gt,tu).call(this,n)}getCurrentResult(){return v(this,gn)}reset(){var n;(n=v(this,Ve))==null||n.removeObserver(this),O(this,Ve,void 0),$(this,Gt,rl).call(this),$(this,Gt,tu).call(this)}mutate(n,r){var s;return O(this,Vt,r),(s=v(this,Ve))==null||s.removeObserver(this),O(this,Ve,v(this,Ht).getMutationCache().build(v(this,Ht),this.options)),v(this,Ve).addObserver(this),v(this,Ve).execute(n)}},Ht=new WeakMap,gn=new WeakMap,Ve=new WeakMap,Vt=new WeakMap,Gt=new WeakSet,rl=function(){var r;const n=((r=v(this,Ve))==null?void 0:r.state)??om();O(this,gn,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},tu=function(n){we.batch(()=>{var r,s,i,l,o,u,c,f;if(v(this,Vt)&&this.hasListeners()){const d=v(this,gn).variables,m=v(this,gn).context,w={client:v(this,Ht),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(s=(r=v(this,Vt)).onSuccess)==null||s.call(r,n.data,d,m,w)}catch(p){Promise.reject(p)}try{(l=(i=v(this,Vt)).onSettled)==null||l.call(i,n.data,null,d,m,w)}catch(p){Promise.reject(p)}}else if((n==null?void 0:n.type)==="error"){try{(u=(o=v(this,Vt)).onError)==null||u.call(o,n.error,d,m,w)}catch(p){Promise.reject(p)}try{(f=(c=v(this,Vt)).onSettled)==null||f.call(c,void 0,n.error,d,m,w)}catch(p){Promise.reject(p)}}}this.listeners.forEach(d=>{d(v(this,gn))})})},Ff),Tt,If,hv=(If=class extends as{constructor(t={}){super();F(this,Tt);this.config=t,O(this,Tt,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??lc(s,n);let l=this.get(i);return l||(l=new iv({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(l)),l}add(t){v(this,Tt).has(t.queryHash)||(v(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=v(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&v(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){we.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,Tt).get(t)}getAll(){return[...v(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Md(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Md(t,r)):n}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){we.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,If),ce,yn,vn,Wr,qr,xn,Kr,Gr,Df,pv=(Df=class{constructor(e={}){F(this,ce);F(this,yn);F(this,vn);F(this,Wr);F(this,qr);F(this,xn);F(this,Kr);F(this,Gr);O(this,ce,e.queryCache||new hv),O(this,yn,e.mutationCache||new dv),O(this,vn,e.defaultOptions||{}),O(this,Wr,new Map),O(this,qr,new Map),O(this,xn,0)}mount(){Si(this,xn)._++,v(this,xn)===1&&(O(this,Kr,uc.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,ce).onFocus())})),O(this,Gr,zl.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,ce).onOnline())})))}unmount(){var e,t;Si(this,xn)._--,v(this,xn)===0&&((e=v(this,Kr))==null||e.call(this),O(this,Kr,void 0),(t=v(this,Gr))==null||t.call(this),O(this,Gr,void 0))}isFetching(e){return v(this,ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,yn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=v(this,ce).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(On(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return v(this,ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=v(this,ce).get(r.queryHash),i=s==null?void 0:s.state.data,l=K0(t,i);if(l!==void 0)return v(this,ce).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return we.batch(()=>v(this,ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=v(this,ce);we.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=v(this,ce);return we.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=we.batch(()=>v(this,ce).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Ie).catch(Ie)}invalidateQueries(e,t={}){return we.batch(()=>(v(this,ce).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=we.batch(()=>v(this,ce).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ie)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ie)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=v(this,ce).build(this,t);return n.isStaleByTime(On(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ie).catch(Ie)}fetchInfiniteQuery(e){return e.behavior=$d(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ie).catch(Ie)}ensureInfiniteQueryData(e){return e.behavior=$d(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zl.isOnline()?v(this,yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(this,ce)}getMutationCache(){return v(this,yn)}getDefaultOptions(){return v(this,vn)}setDefaultOptions(e){O(this,vn,e)}setQueryDefaults(e,t){v(this,Wr).set(hr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,Wr).values()],n={};return t.forEach(r=>{Zs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){v(this,qr).set(hr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,qr).values()],n={};return t.forEach(r=>{Zs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===oc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,ce).clear(),v(this,yn).clear()}},ce=new WeakMap,yn=new WeakMap,vn=new WeakMap,Wr=new WeakMap,qr=new WeakMap,xn=new WeakMap,Kr=new WeakMap,Gr=new WeakMap,Df),am=C.createContext(void 0),hi=e=>{const t=C.useContext(am);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},mv=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(am.Provider,{value:e,children:t})),um=C.createContext(!1),gv=()=>C.useContext(um);um.Provider;function yv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vv=C.createContext(yv()),xv=()=>C.useContext(vv),wv=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ac(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},kv=e=>{C.useEffect(()=>{e.clearReset()},[e])},bv=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||ac(n,[e.error,r])),Sv=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jv=(e,t)=>e.isLoading&&e.isFetching&&!t,Nv=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Vd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Cv(e,t,n){var m,w,p,x;const r=gv(),s=xv(),i=hi(),l=i.defaultQueryOptions(e);(w=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||w.call(m,l);const o=i.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",Sv(l),wv(l,s,o),kv(s);const u=!i.getQueryCache().get(l.queryHash),[c]=C.useState(()=>new t(i,l)),f=c.getOptimisticResult(l),d=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(b=>{const g=d?c.subscribe(we.batchCalls(b)):Ie;return c.updateResult(),g},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(l)},[l,c]),Nv(l,f))throw Vd(l,c,s);if(bv({result:f,errorResetBoundary:s,throwOnError:l.throwOnError,query:o,suspense:l.suspense}))throw f.error;if((x=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||x.call(p,l,f),l.experimental_prefetchInRender&&!fr&&jv(f,r)){const b=u?Vd(l,c,s):o==null?void 0:o.promise;b==null||b.catch(Ie).finally(()=>{c.updateResult()})}return l.notifyOnChangeProps?f:c.trackResult(f)}function Nt(e,t){return Cv(e,lv)}function ei(e,t){const n=hi(),[r]=C.useState(()=>new fv(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const s=C.useSyncExternalStore(C.useCallback(l=>r.subscribe(we.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=C.useCallback((l,o)=>{r.mutate(l,o).catch(Ie)},[r]);if(s.error&&ac(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}/** * @remix-run/router v1.23.2 * * 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 ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rv(){return Math.random().toString(36).substr(2,8)}function Wd(e,t){return{usr:e.state,key:e.key,idx:t}}function nu(e,t,n,r){return n===void 0&&(n=null),ti({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?us(t):t,{state:n,key:t&&t.key||r||Rv()})}function Ml(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function us(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _v(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,l=s.history,o=bn.Pop,u=null,c=f();c==null&&(c=0,l.replaceState(ti({},l.state,{idx:c}),""));function f(){return(l.state||{idx:null}).idx}function d(){o=bn.Pop;let b=f(),g=b==null?null:b-c;c=b,u&&u({action:o,location:x.location,delta:g})}function m(b,g){o=bn.Push;let h=nu(x.location,b,g);c=f()+1;let y=Wd(h,c),k=x.createHref(h);try{l.pushState(y,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(k)}i&&u&&u({action:o,location:x.location,delta:1})}function w(b,g){o=bn.Replace;let h=nu(x.location,b,g);c=f();let y=Wd(h,c),k=x.createHref(h);l.replaceState(y,"",k),i&&u&&u({action:o,location:x.location,delta:0})}function p(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,h=typeof b=="string"?b:Ml(b);return h=h.replace(/ $/,"%20"),fe(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let x={get action(){return o},get location(){return e(s,l)},listen(b){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(Qd,d),u=b,()=>{s.removeEventListener(Qd,d),u=null}},createHref(b){return t(s,b)},createURL:p,encodeLocation(b){let g=p(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:w,go(b){return l.go(b)}};return x}var qd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qd||(qd={}));function Pv(e,t,n){return n===void 0&&(n="/"),Ov(e,t,n)}function Ov(e,t,n,r){let s=typeof t=="string"?us(t):t,i=rs(s.pathname||"/",n);if(i==null)return null;let l=cm(e);Tv(l);let o=null;for(let u=0;o==null&&u{let u={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(fe(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Tn([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),cm(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Dv(c,i.index),routesMeta:f})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))s(i,l);else for(let u of dm(i.path))s(i,l,u)}),t}function dm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let l=dm(r.join("/")),o=[];return o.push(...l.map(u=>u===""?i:[i,u].join("/"))),s&&o.push(...l),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function Tv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Uv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zv=/^:[\w-]+$/,Mv=3,Lv=2,Av=1,Fv=10,Iv=-2,Kd=e=>e==="*";function Dv(e,t){let n=e.split("/"),r=n.length;return n.some(Kd)&&(r+=Iv),t&&(r+=Lv),n.filter(s=>!Kd(s)).reduce((s,i)=>s+(zv.test(i)?Mv:i===""?Av:Fv),r)}function Uv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Bv(e,t,n){let{routesMeta:r}=e,s={},i="/",l=[];for(let o=0;o{let{paramName:m,isOptional:w}=f;if(m==="*"){let x=o[d]||"";l=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const p=o[d];return w&&!p?c[m]=void 0:c[m]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:l,pattern:e}}function $v(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Hv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dc(!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 rs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qv=e=>Vv.test(e);function Wv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?us(e):e,i;if(n)if(Qv(n))i=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),dc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?i=Gd(n.substring(1),"/"):i=Gd(n,t)}else i=t;return{pathname:i,search:Gv(r),hash:Jv(s)}}function Gd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Bo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function qv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fm(e,t){let n=qv(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function hm(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=us(e):(s=ti({},e),fe(!s.pathname||!s.pathname.includes("?"),Bo("?","pathname","search",s)),fe(!s.pathname||!s.pathname.includes("#"),Bo("#","pathname","hash",s)),fe(!s.search||!s.search.includes("#"),Bo("#","search","hash",s)));let i=e===""||s.pathname==="",l=i?"/":s.pathname,o;if(l==null)o=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),d-=1;s.pathname=m.join("/")}o=d>=0?t[d]:"/"}let u=Wv(s,o),c=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const Tn=e=>e.join("/").replace(/\/\/+/g,"/"),Kv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Xv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pm=["post","put","patch","delete"];new Set(pm);const Yv=["get",...pm];new Set(Yv);/** * React Router v6.30.3 * * 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 ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),C.useCallback(function(c,f){if(f===void 0&&(f={}),!o.current)return;if(typeof c=="number"){r.go(c);return}let d=hm(c,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Tn([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,l,i,e])}const tx=C.createContext(null);function nx(e){let t=C.useContext(nn).outlet;return t&&C.createElement(tx.Provider,{value:e},t)}function rx(){let{matches:e}=C.useContext(nn),t=e[e.length-1];return t?t.params:{}}function so(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(In),{matches:s}=C.useContext(nn),{pathname:i}=cs(),l=JSON.stringify(fm(s,r.v7_relativeSplatPath));return C.useMemo(()=>hm(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function sx(e,t){return ix(e,t)}function ix(e,t,n,r){pi()||fe(!1);let{navigator:s}=C.useContext(In),{matches:i}=C.useContext(nn),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let c=cs(),f;if(t){var d;let b=typeof t=="string"?us(t):t;u==="/"||(d=b.pathname)!=null&&d.startsWith(u)||fe(!1),f=b}else f=c;let m=f.pathname||"/",w=m;if(u!=="/"){let b=u.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=Pv(e,{pathname:w}),x=cx(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:Tn([u,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?u:Tn([u,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&x?C.createElement(ro.Provider,{value:{location:ni({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:bn.Pop}},x):x}function lx(){let e=px(),t=Xv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:s},n):null,null)}const ox=C.createElement(lx,null);class ax extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(nn.Provider,{value:this.props.routeContext},C.createElement(gm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ux(e){let{routeContext:t,match:n,children:r}=e,s=C.useContext(no);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(nn.Provider,{value:t},r)}function cx(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=(s=n)==null?void 0:s.errors;if(o!=null){let f=l.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);f>=0||fe(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,c+1):l=[l[0]];break}}}return l.reduceRight((f,d,m)=>{let w,p=!1,x=null,b=null;n&&(w=o&&d.route.id?o[d.route.id]:void 0,x=d.route.errorElement||ox,u&&(c<0&&m===0?(gx("route-fallback"),p=!0,b=null):c===m&&(p=!0,b=d.route.hydrateFallbackElement||null)));let g=t.concat(l.slice(0,m+1)),h=()=>{let y;return w?y=x:p?y=b:d.route.Component?y=C.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=f,C.createElement(ux,{match:d,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?C.createElement(ax,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:h(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):h()},null)}var xm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xm||{}),wm=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}(wm||{});function dx(e){let t=C.useContext(no);return t||fe(!1),t}function fx(e){let t=C.useContext(mm);return t||fe(!1),t}function hx(e){let t=C.useContext(nn);return t||fe(!1),t}function km(e){let t=hx(),n=t.matches[t.matches.length-1];return n.route.id||fe(!1),n.route.id}function px(){var e;let t=C.useContext(gm),n=fx(),r=km();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mx(){let{router:e}=dx(xm.UseNavigateStable),t=km(wm.UseNavigateStable),n=C.useRef(!1);return ym(()=>{n.current=!0}),C.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ni({fromRouteId:t},i)))},[e,t])}const Jd={};function gx(e,t,n){Jd[e]||(Jd[e]=!0)}function yx(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function vx(e){return nx(e.context)}function Ye(e){fe(!1)}function xx(e){let{basename:t="/",children:n=null,location:r,navigationType:s=bn.Pop,navigator:i,static:l=!1,future:o}=e;pi()&&fe(!1);let u=t.replace(/^\/*/,"/"),c=C.useMemo(()=>({basename:u,navigator:i,static:l,future:ni({v7_relativeSplatPath:!1},o)}),[u,o,i,l]);typeof r=="string"&&(r=us(r));let{pathname:f="/",search:d="",hash:m="",state:w=null,key:p="default"}=r,x=C.useMemo(()=>{let b=rs(f,u);return b==null?null:{location:{pathname:b,search:d,hash:m,state:w,key:p},navigationType:s}},[u,f,d,m,w,p,s]);return x==null?null:C.createElement(In.Provider,{value:c},C.createElement(ro.Provider,{children:n,value:x}))}function wx(e){let{children:t,location:n}=e;return sx(su(t),n)}new Promise(()=>{});function su(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,s)=>{if(!C.isValidElement(r))return;let i=[...t,s];if(r.type===C.Fragment){n.push.apply(n,su(r.props.children,i));return}r.type!==Ye&&fe(!1),!r.props.index||!r.props.children||fe(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=su(r.props.children,i)),n.push(l)}),n}/** * React Router DOM v6.30.3 * * 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=0)&&(n[s]=e[s]);return n}function kx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bx(e,t){return e.button===0&&(!t||t==="_self")&&!kx(e)}const Sx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],jx=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Nx="6";try{window.__reactRouterVersion=Nx}catch{}const Cx=C.createContext({isTransitioning:!1}),Ex="startTransition",Xd=zg[Ex];function Rx(e){let{basename:t,children:n,future:r,window:s}=e,i=C.useRef();i.current==null&&(i.current=Ev({window:s,v5Compat:!0}));let l=i.current,[o,u]=C.useState({action:l.action,location:l.location}),{v7_startTransition:c}=r||{},f=C.useCallback(d=>{c&&Xd?Xd(()=>u(d)):u(d)},[u,c]);return C.useLayoutEffect(()=>l.listen(f),[l,f]),C.useEffect(()=>yx(r),[r]),C.createElement(xx,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:l,future:r})}const _x=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Px=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mt=C.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:l,state:o,target:u,to:c,preventScrollReset:f,viewTransition:d}=t,m=bm(t,Sx),{basename:w}=C.useContext(In),p,x=!1;if(typeof c=="string"&&Px.test(c)&&(p=c,_x))try{let y=new URL(window.location.href),k=c.startsWith("//")?new URL(y.protocol+c):new URL(c),E=rs(k.pathname,w);k.origin===y.origin&&E!=null?c=E+k.search+k.hash:x=!0}catch{}let b=Zv(c,{relative:s}),g=zx(c,{replace:l,state:o,target:u,preventScrollReset:f,relative:s,viewTransition:d});function h(y){r&&r(y),y.defaultPrevented||g(y)}return C.createElement("a",Ll({},m,{href:p||b,onClick:x||i?r:h,ref:n,target:u}))}),Ox=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:l=!1,style:o,to:u,viewTransition:c,children:f}=t,d=bm(t,jx),m=so(u,{relative:d.relative}),w=cs(),p=C.useContext(mm),{navigator:x,basename:b}=C.useContext(In),g=p!=null&&Mx(m)&&c===!0,h=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,y=w.pathname,k=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;s||(y=y.toLowerCase(),k=k?k.toLowerCase():null,h=h.toLowerCase()),k&&b&&(k=rs(k,b)||k);const E=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let _=y===h||!l&&y.startsWith(h)&&y.charAt(E)==="/",P=k!=null&&(k===h||!l&&k.startsWith(h)&&k.charAt(h.length)==="/"),j={isActive:_,isPending:P,isTransitioning:g},A=_?r:void 0,L;typeof i=="function"?L=i(j):L=[i,_?"active":null,P?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let X=typeof o=="function"?o(j):o;return C.createElement(Mt,Ll({},d,{"aria-current":A,className:L,ref:n,style:X,to:u,viewTransition:c}),typeof f=="function"?f(j):f)});var iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iu||(iu={}));var Yd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yd||(Yd={}));function Tx(e){let t=C.useContext(no);return t||fe(!1),t}function zx(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:l,viewTransition:o}=t===void 0?{}:t,u=vm(),c=cs(),f=so(e,{relative:l});return C.useCallback(d=>{if(bx(d,n)){d.preventDefault();let m=r!==void 0?r:Ml(c)===Ml(f);u(e,{replace:m,state:s,preventScrollReset:i,relative:l,viewTransition:o})}},[c,u,f,r,s,n,e,i,l,o])}function Mx(e,t){t===void 0&&(t={});let n=C.useContext(Cx);n==null&&fe(!1);let{basename:r}=Tx(iu.useViewTransitionState),s=so(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=rs(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=rs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ru(s.pathname,l)!=null||ru(s.pathname,i)!=null}function Sm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),jm=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Al="-",Zd=[],Ix="arbitrary..",Dx=e=>{const t=Bx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ux(l);const o=l.split(Al),u=o[0]===""&&o.length>1?1:0;return Nm(o,u,t)},getConflictingClassGroupIds:(l,o)=>{if(o){const u=r[l],c=n[l];return u?c?Ax(c,u):u:c||Zd}return n[l]||Zd}}},Nm=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],i=n.nextPart.get(s);if(i){const c=Nm(e,t+1,i);if(c)return c}const l=n.validators;if(l===null)return;const o=t===0?e.join(Al):e.slice(t).join(Al),u=l.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ix+r:void 0})(),Bx=e=>{const{theme:t,classGroups:n}=e;return $x(n,t)},$x=(e,t)=>{const n=jm();for(const r in e){const s=e[r];fc(s,n,r,t)}return n},fc=(e,t,n,r)=>{const s=e.length;for(let i=0;i{if(typeof e=="string"){Vx(e,t,n);return}if(typeof e=="function"){Qx(e,t,n,r);return}Wx(e,t,n,r)},Vx=(e,t,n)=>{const r=e===""?t:Cm(t,e);r.classGroupId=n},Qx=(e,t,n,r)=>{if(qx(e)){fc(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Fx(n,e))},Wx=(e,t,n,r)=>{const s=Object.entries(e),i=s.length;for(let l=0;l{let n=e;const r=t.split(Al),s=r.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,Kx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(i,l)=>{n[i]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let l=n[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return s(i,l),l},set(i,l){i in n?n[i]=l:s(i,l)}}},lu="!",ef=":",Gx=[],tf=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),Jx=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let l=0,o=0,u=0,c;const f=s.length;for(let x=0;xu?c-u:void 0;return tf(i,w,m,p)};if(t){const s=t+ef,i=r;r=l=>l.startsWith(s)?i(l.slice(s.length)):tf(Gx,!1,l,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},Xx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i0&&(s.sort(),r.push(...s),s=[]),r.push(l)):s.push(l)}return s.length>0&&(s.sort(),r.push(...s)),r}},Yx=e=>({cache:Kx(e.cacheSize),parseClassName:Jx(e),sortModifiers:Xx(e),...Dx(e)}),Zx=/\s+/,e1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i}=t,l=[],o=e.trim().split(Zx);let u="";for(let c=o.length-1;c>=0;c-=1){const f=o[c],{isExternal:d,modifiers:m,hasImportantModifier:w,baseClassName:p,maybePostfixModifierPosition:x}=n(f);if(d){u=f+(u.length>0?" "+u:u);continue}let b=!!x,g=r(b?p.substring(0,x):p);if(!g){if(!b){u=f+(u.length>0?" "+u:u);continue}if(g=r(p),!g){u=f+(u.length>0?" "+u:u);continue}b=!1}const h=m.length===0?"":m.length===1?m[0]:i(m).join(":"),y=w?h+lu:h,k=y+g;if(l.indexOf(k)>-1)continue;l.push(k);const E=s(g,b);for(let _=0;_0?" "+u:u)}return u},t1=(...e)=>{let t=0,n,r,s="";for(;t{if(typeof e=="string")return e;let t,n="";for(let r=0;r{let n,r,s,i;const l=u=>{const c=t.reduce((f,d)=>d(f),e());return n=Yx(c),r=n.cache.get,s=n.cache.set,i=o,o(u)},o=u=>{const c=r(u);if(c)return c;const f=e1(u,n);return s(u,f),f};return i=l,(...u)=>i(t1(...u))},r1=[],ve=e=>{const t=n=>n[e]||r1;return t.isThemeGetter=!0,t},Rm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_m=/^\((?:(\w[\w-]*):)?(.+)\)$/i,s1=/^\d+\/\d+$/,i1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,o1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,a1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xr=e=>s1.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),sn=e=>!!e&&Number.isInteger(Number(e)),$o=e=>e.endsWith("%")&&H(e.slice(0,-1)),Ft=e=>i1.test(e),Pm=()=>!0,c1=e=>l1.test(e)&&!o1.test(e),hc=()=>!1,d1=e=>a1.test(e),f1=e=>u1.test(e),h1=e=>!z(e)&&!M(e),p1=e=>Dn(e,zm,hc),z=e=>Rm.test(e),Un=e=>Dn(e,Mm,c1),nf=e=>Dn(e,b1,H),m1=e=>Dn(e,Am,Pm),g1=e=>Dn(e,Lm,hc),rf=e=>Dn(e,Om,hc),y1=e=>Dn(e,Tm,f1),$i=e=>Dn(e,Fm,d1),M=e=>_m.test(e),ws=e=>yr(e,Mm),v1=e=>yr(e,Lm),sf=e=>yr(e,Om),x1=e=>yr(e,zm),w1=e=>yr(e,Tm),Hi=e=>yr(e,Fm,!0),k1=e=>yr(e,Am,!0),Dn=(e,t,n)=>{const r=Rm.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yr=(e,t,n=!1)=>{const r=_m.exec(e);return r?r[1]?t(r[1]):n:!1},Om=e=>e==="position"||e==="percentage",Tm=e=>e==="image"||e==="url",zm=e=>e==="length"||e==="size"||e==="bg-size",Mm=e=>e==="length",b1=e=>e==="number",Lm=e=>e==="family-name",Am=e=>e==="number"||e==="weight",Fm=e=>e==="shadow",S1=()=>{const e=ve("color"),t=ve("font"),n=ve("text"),r=ve("font-weight"),s=ve("tracking"),i=ve("leading"),l=ve("breakpoint"),o=ve("container"),u=ve("spacing"),c=ve("radius"),f=ve("shadow"),d=ve("inset-shadow"),m=ve("text-shadow"),w=ve("drop-shadow"),p=ve("blur"),x=ve("perspective"),b=ve("aspect"),g=ve("ease"),h=ve("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),M,z],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],j=()=>[M,z,u],A=()=>[xr,"full","auto",...j()],L=()=>[sn,"none","subgrid",M,z],X=()=>["auto",{span:["full",sn,M,z]},sn,M,z],me=()=>[sn,"auto",M,z],Ne=()=>["auto","min","max","fr",M,z],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_e=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...j()],$e=()=>[xr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],N=()=>[e,M,z],D=()=>[...k(),sf,rf,{position:[M,z]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",x1,p1,{size:[M,z]}],G=()=>[$o,ws,Un],se=()=>["","none","full",c,M,z],Z=()=>["",H,ws,Un],mt=()=>["solid","dashed","dotted","double"],Et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[H,$o,sf,rf],Sc=()=>["","none",p,M,z],wi=()=>["none",H,M,z],ki=()=>["none",H,M,z],ho=()=>[H,M,z],bi=()=>[xr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ft],breakpoint:[Ft],color:[Pm],container:[Ft],"drop-shadow":[Ft],ease:["in","out","in-out"],font:[h1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ft],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ft],shadow:[Ft],spacing:["px",H],text:[Ft],"text-shadow":[Ft],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xr,z,M,b]}],container:["container"],columns:[{columns:[H,z,M,o]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[sn,"auto",M,z]}],basis:[{basis:[xr,"full","auto",o,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,xr,"auto","initial","none",z]}],grow:[{grow:["",H,M,z]}],shrink:[{shrink:["",H,M,z]}],order:[{order:[sn,"first","last","none",M,z]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ne()}],"auto-rows":[{"auto-rows":Ne()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[..._e(),"normal"]}],"justify-self":[{"justify-self":["auto",..._e()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[..._e(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._e(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[..._e(),"baseline"]}],"place-self":[{"place-self":["auto",..._e()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:$e()}],w:[{w:[o,"screen",...$e()]}],"min-w":[{"min-w":[o,"screen","none",...$e()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[l]},...$e()]}],h:[{h:["screen","lh",...$e()]}],"min-h":[{"min-h":["screen","lh","none",...$e()]}],"max-h":[{"max-h":["screen","lh",...$e()]}],"font-size":[{text:["base",n,ws,Un]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k1,m1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$o,z]}],"font-family":[{font:[v1,g1,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,M,z]}],"line-clamp":[{"line-clamp":[H,"none",M,nf]}],leading:[{leading:[i,...j()]}],"list-image":[{"list-image":["none",M,z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",M,Un]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[H,"auto",M,z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sn,M,z],radial:["",M,z],conic:[sn,M,z]},w1,y1]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...mt(),"hidden","none"]}],"divide-style":[{divide:[...mt(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...mt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,M,z]}],"outline-w":[{outline:["",H,ws,Un]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,Hi,$i]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Hi,$i]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[H,Un]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,Hi,$i]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[H,M,z]}],"mix-blend":[{"mix-blend":[...Et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Et()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[M,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,z]}],filter:[{filter:["","none",M,z]}],blur:[{blur:Sc()}],brightness:[{brightness:[H,M,z]}],contrast:[{contrast:[H,M,z]}],"drop-shadow":[{"drop-shadow":["","none",w,Hi,$i]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",H,M,z]}],"hue-rotate":[{"hue-rotate":[H,M,z]}],invert:[{invert:["",H,M,z]}],saturate:[{saturate:[H,M,z]}],sepia:[{sepia:["",H,M,z]}],"backdrop-filter":[{"backdrop-filter":["","none",M,z]}],"backdrop-blur":[{"backdrop-blur":Sc()}],"backdrop-brightness":[{"backdrop-brightness":[H,M,z]}],"backdrop-contrast":[{"backdrop-contrast":[H,M,z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,M,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,M,z]}],"backdrop-invert":[{"backdrop-invert":["",H,M,z]}],"backdrop-opacity":[{"backdrop-opacity":[H,M,z]}],"backdrop-saturate":[{"backdrop-saturate":[H,M,z]}],"backdrop-sepia":[{"backdrop-sepia":["",H,M,z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",M,z]}],ease:[{ease:["linear","initial",g,M,z]}],delay:[{delay:[H,M,z]}],animate:[{animate:["none",h,M,z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,M,z]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:wi()}],"rotate-x":[{"rotate-x":wi()}],"rotate-y":[{"rotate-y":wi()}],"rotate-z":[{"rotate-z":wi()}],scale:[{scale:ki()}],"scale-x":[{"scale-x":ki()}],"scale-y":[{"scale-y":ki()}],"scale-z":[{"scale-z":ki()}],"scale-3d":["scale-3d"],skew:[{skew:ho()}],"skew-x":[{"skew-x":ho()}],"skew-y":[{"skew-y":ho()}],transform:[{transform:[M,z,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:bi()}],"translate-x":[{"translate-x":bi()}],"translate-y":[{"translate-y":bi()}],"translate-z":[{"translate-z":bi()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,z]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[H,ws,Un,nf]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},j1=n1(S1);function ne(...e){return j1(Lx(e))}/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Im=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const C1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lf=e=>{const t=C1(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var E1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _1=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...o},u)=>C.createElement("svg",{ref:u,...E1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Im("lucide",s),...!i&&!R1(o)&&{"aria-hidden":"true"},...o},[...l.map(([c,f])=>C.createElement(c,f)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U=(e,t)=>{const n=C.forwardRef(({className:r,...s},i)=>C.createElement(_1,{ref:i,iconNode:t,className:Im(`lucide-${N1(lf(e))}`,`lucide-${e}`,r),...s}));return n.displayName=lf(e),n};/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dm=U("arrow-left",P1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],T1=U("arrow-right",O1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z1=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],of=U("arrow-up-right",z1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Um=U("bell",M1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L1=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],A1=U("building-2",L1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F1=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],I1=U("calendar",F1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D1=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Bm=U("chart-column",D1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$m=U("chevron-right",U1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const B1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],pc=U("circle-alert",B1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Fl=U("circle-check",$1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],io=U("clock",H1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V1=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Q1=U("code-xml",V1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],q1=U("copy",W1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K1=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],G1=U("crown",K1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],X1=U("download",J1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Z1=U("ellipsis-vertical",Y1);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ew=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Hm=U("eye",ew);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tw=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],nw=U("eye-off",tw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rw=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],sw=U("file-text",rw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iw=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],mc=U("folder-open",iw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],gc=U("globe",lw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ow=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],aw=U("grip-vertical",ow);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uw=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],cw=U("kanban",uw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dw=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Vm=U("key",dw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fw=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],hw=U("layout-dashboard",fw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pw=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],lo=U("loader-circle",pw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mw=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],gw=U("mail",mw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yw=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],vw=U("message-square",yw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],ww=U("panel-left-close",xw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],bw=U("panel-left-open",kw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sw=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],jw=U("plug",Sw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],en=U("plus",Nw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cw=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Ew=U("save",Cw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rw=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],sl=U("search",Rw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _w=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Qm=U("send",_w);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pw=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ow=U("settings",Pw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Wm=U("shield",Tw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zw=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Mw=U("sliders-horizontal",zw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lw=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Aw=U("tag",Lw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fw=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Il=U("ticket-check",Fw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Iw=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],af=U("ticket",Iw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dw=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],yc=U("trash-2",Dw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Uw=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Bw=U("trending-up",Uw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $w=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Hw=U("triangle-alert",$w);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vw=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Qw=U("user-cog",Vw);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ww=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qw=U("users",Ww);/** * @license lucide-react v0.574.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],qm=U("zap",Kw),uf=[{title:"Work",items:[{to:"/",label:"Dashboard",icon:hw},{to:"/tickets",label:"All Tickets",icon:Il},{to:"/board",label:"Board",icon:cw}]},{title:"Management",items:[{to:"/projects",label:"Projects",icon:mc},{to:"/team",label:"Team",icon:qw},{to:"/reports",label:"Reports",icon:Bm}]},{title:"Configuration",items:[{to:"/integrations",label:"Integrations",icon:jw},{to:"/automation",label:"Automation",icon:qm},{to:"/settings",label:"Settings",icon:Ow}]}],Gw={"/":"Dashboard","/tickets":"Tickets","/tickets/new":"New Ticket","/board":"Board","/projects":"Projects","/team":"Team","/reports":"Reports","/integrations":"Integrations","/automation":"Automation","/settings":"Settings"};function Jw(){const e=cs(),[t,n]=C.useState(!1),[r,s]=C.useState(!1),[i,l]=C.useState("");C.useEffect(()=>{const c=f=>{(f.metaKey||f.ctrlKey)&&f.key==="k"&&(f.preventDefault(),s(d=>!d)),f.key==="Escape"&&s(!1)};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[]);const o=()=>{const c=e.pathname.split("/").filter(Boolean);if(!c.length)return[{label:"Dashboard",path:"/"}];const f=[];let d="";for(const m of c)d+=`/${m}`,f.push({label:Gw[d]||m.charAt(0).toUpperCase()+m.slice(1),path:d});return f},u=c=>c==="/"?e.pathname==="/":e.pathname.startsWith(c);return a.jsxs("div",{className:"min-h-screen flex bg-gray-950 text-gray-200",children:[r&&a.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>s(!1),children:[a.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),a.jsx("div",{className:"relative w-full max-w-lg mx-4 animate-slide-up",onClick:c=>c.stopPropagation(),children:a.jsxs("div",{className:"card border-gray-700 shadow-2xl",children:[a.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-800",children:[a.jsx(sl,{size:18,className:"text-gray-500"}),a.jsx("input",{autoFocus:!0,value:i,onChange:c=>l(c.target.value),placeholder:"Search tickets, projects...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),a.jsx("kbd",{className:"kbd",children:"ESC"})]}),a.jsx("div",{className:"p-2 max-h-80 overflow-auto",children:uf.flatMap(c=>c.items).filter(c=>c.label.toLowerCase().includes(i.toLowerCase())).map(c=>a.jsxs("a",{href:c.to,className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-300 hover:bg-gray-800",onClick:()=>{s(!1),l("")},children:[a.jsx(c.icon,{size:14,className:"text-gray-500"}),c.label]},c.to))})]})})]}),a.jsxs("aside",{className:ne("fixed top-0 left-0 h-full flex flex-col border-r border-gray-800/50 bg-gray-950 z-40 transition-all duration-300",t?"w-[68px]":"w-[260px]"),children:[a.jsx("div",{className:ne("h-14 flex items-center border-b border-gray-800/50 px-4",t&&"justify-center px-0"),children:t?a.jsx("div",{className:"w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center",children:a.jsx(af,{size:16,className:"text-white"})}):a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center shadow-lg shadow-blue-500/20",children:a.jsx(af,{size:16,className:"text-white"})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-sm font-semibold text-white",children:"TicketHub"}),a.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"Enterprise v2.0"})]})]})}),!t&&a.jsx("div",{className:"px-3 pt-3",children:a.jsxs("button",{onClick:()=>s(!0),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-gray-500 hover:text-gray-300 bg-gray-900/40 hover:bg-gray-800/60 border border-gray-800/30 transition-all text-sm",children:[a.jsx(sl,{size:14}),a.jsx("span",{className:"flex-1 text-left",children:"Search..."}),a.jsxs("div",{className:"flex gap-0.5",children:[a.jsx("kbd",{className:"kbd",children:"⌘"}),a.jsx("kbd",{className:"kbd",children:"K"})]})]})}),a.jsx("nav",{className:"flex-1 overflow-auto px-3 py-4 space-y-5",children:uf.map(c=>a.jsxs("div",{children:[!t&&a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-gray-600 px-3 mb-1.5",children:c.title}),a.jsx("div",{className:"space-y-0.5",children:c.items.map(f=>{const d=u(f.to);return a.jsxs(Ox,{to:f.to,title:t?f.label:void 0,className:ne("sidebar-item",d?"sidebar-item-active":"sidebar-item-inactive",t&&"justify-center px-0"),children:[a.jsx(f.icon,{size:18,strokeWidth:d?2:1.5}),!t&&a.jsx("span",{children:f.label})]},f.to)})})]},c.title))}),a.jsx("div",{className:"px-3 py-2 border-t border-gray-800/50",children:a.jsxs("button",{onClick:()=>n(!t),className:ne("sidebar-item sidebar-item-inactive w-full",t&&"justify-center px-0"),children:[t?a.jsx(bw,{size:18}):a.jsx(ww,{size:18}),!t&&a.jsx("span",{children:"Collapse"})]})})]}),a.jsxs("div",{className:ne("flex-1 flex flex-col transition-all duration-300",t?"ml-[68px]":"ml-[260px]"),children:[a.jsxs("header",{className:"h-14 flex items-center justify-between px-6 border-b border-gray-800/50 bg-gray-950/80 backdrop-blur-md sticky top-0 z-30",children:[a.jsx("div",{className:"flex items-center gap-1.5 text-sm",children:o().map((c,f)=>a.jsxs("div",{className:"flex items-center gap-1.5",children:[f>0&&a.jsx($m,{size:12,className:"text-gray-600"}),a.jsx("a",{href:c.path,className:ne("hover:text-white transition-colors",f===o().length-1?"text-white font-medium":"text-gray-400"),children:c.label})]},c.path))}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>s(!0),className:"btn-ghost btn-icon rounded-lg",children:a.jsx(sl,{size:16})}),a.jsxs("button",{className:"btn-ghost btn-icon rounded-lg relative",children:[a.jsx(Um,{size:16}),a.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-blue-500"})]})]})]}),a.jsx("main",{className:"flex-1 overflow-auto",children:a.jsx(vx,{})})]})]})}function Km(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xw}=Object.prototype,{getPrototypeOf:vc}=Object,{iterator:oo,toStringTag:Gm}=Symbol,ao=(e=>t=>{const n=Xw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ct=e=>(e=e.toLowerCase(),t=>ao(t)===e),uo=e=>t=>typeof t===e,{isArray:ds}=Array,ss=uo("undefined");function mi(e){return e!==null&&!ss(e)&&e.constructor!==null&&!ss(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jm=Ct("ArrayBuffer");function Yw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jm(e.buffer),t}const Zw=uo("string"),Je=uo("function"),Xm=uo("number"),gi=e=>e!==null&&typeof e=="object",ek=e=>e===!0||e===!1,il=e=>{if(ao(e)!=="object")return!1;const t=vc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Gm in e)&&!(oo in e)},tk=e=>{if(!gi(e)||mi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nk=Ct("Date"),rk=Ct("File"),sk=Ct("Blob"),ik=Ct("FileList"),lk=e=>gi(e)&&Je(e.pipe),ok=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Je(e.append)&&((t=ao(e))==="formdata"||t==="object"&&Je(e.toString)&&e.toString()==="[object FormData]"))},ak=Ct("URLSearchParams"),[uk,ck,dk,fk]=["ReadableStream","Request","Response","Headers"].map(Ct),hk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ds(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zm=e=>!ss(e)&&e!==qn;function ou(){const{caseless:e,skipUndefined:t}=Zm(this)&&this||{},n={},r=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const l=e&&Ym(n,i)||i;il(n[l])&&il(s)?n[l]=ou(n[l],s):il(s)?n[l]=ou({},s):ds(s)?n[l]=s.slice():(!t||!ss(s))&&(n[l]=s)};for(let s=0,i=arguments.length;s(yi(t,(s,i)=>{n&&Je(s)?Object.defineProperty(e,i,{value:Km(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),mk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yk=(e,t,n,r)=>{let s,i,l;const o={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)l=s[i],(!r||r(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&vc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xk=e=>{if(!e)return null;if(ds(e))return e;let t=e.length;if(!Xm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vc(Uint8Array)),kk=(e,t)=>{const r=(e&&e[oo]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},bk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Sk=Ct("HTMLFormElement"),jk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),cf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nk=Ct("RegExp"),eg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yi(n,(s,i)=>{let l;(l=t(s,i,e))!==!1&&(r[i]=l||s)}),Object.defineProperties(e,r)},Ck=e=>{eg(e,(t,n)=>{if(Je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Je(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ek=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return ds(e)?r(e):r(String(e).split(t)),n},Rk=()=>{},_k=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Pk(e){return!!(e&&Je(e.append)&&e[Gm]==="FormData"&&e[oo])}const Ok=e=>{const t=new Array(10),n=(r,s)=>{if(gi(r)){if(t.indexOf(r)>=0)return;if(mi(r))return r;if(!("toJSON"in r)){t[s]=r;const i=ds(r)?[]:{};return yi(r,(l,o)=>{const u=n(l,s+1);!ss(u)&&(i[o]=u)}),t[s]=void 0,i}}return r};return n(e,0)},Tk=Ct("AsyncFunction"),zk=e=>e&&(gi(e)||Je(e))&&Je(e.then)&&Je(e.catch),tg=((e,t)=>e?setImmediate:t?((n,r)=>(qn.addEventListener("message",({source:s,data:i})=>{s===qn&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),qn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Je(qn.postMessage)),Mk=typeof queueMicrotask<"u"?queueMicrotask.bind(qn):typeof process<"u"&&process.nextTick||tg,Lk=e=>e!=null&&Je(e[oo]),S={isArray:ds,isArrayBuffer:Jm,isBuffer:mi,isFormData:ok,isArrayBufferView:Yw,isString:Zw,isNumber:Xm,isBoolean:ek,isObject:gi,isPlainObject:il,isEmptyObject:tk,isReadableStream:uk,isRequest:ck,isResponse:dk,isHeaders:fk,isUndefined:ss,isDate:nk,isFile:rk,isBlob:sk,isRegExp:Nk,isFunction:Je,isStream:lk,isURLSearchParams:ak,isTypedArray:wk,isFileList:ik,forEach:yi,merge:ou,extend:pk,trim:hk,stripBOM:mk,inherits:gk,toFlatObject:yk,kindOf:ao,kindOfTest:Ct,endsWith:vk,toArray:xk,forEachEntry:kk,matchAll:bk,isHTMLForm:Sk,hasOwnProperty:cf,hasOwnProp:cf,reduceDescriptors:eg,freezeMethods:Ck,toObjectSet:Ek,toCamelCase:jk,noop:Rk,toFiniteNumber:_k,findKey:Ym,global:qn,isContextDefined:Zm,isSpecCompliantForm:Pk,toJSONObject:Ok,isAsyncFn:Tk,isThenable:zk,setImmediate:tg,asap:Mk,isIterable:Lk};let I=class ng extends Error{static from(t,n,r,s,i,l){const o=new ng(t.message,n||t.code,r,s,i);return o.cause=t,o.name=t.name,l&&Object.assign(o,l),o}constructor(t,n,r,s,i){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.status}}};I.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";I.ERR_BAD_OPTION="ERR_BAD_OPTION";I.ECONNABORTED="ECONNABORTED";I.ETIMEDOUT="ETIMEDOUT";I.ERR_NETWORK="ERR_NETWORK";I.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";I.ERR_DEPRECATED="ERR_DEPRECATED";I.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";I.ERR_BAD_REQUEST="ERR_BAD_REQUEST";I.ERR_CANCELED="ERR_CANCELED";I.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";I.ERR_INVALID_URL="ERR_INVALID_URL";const Ak=null;function au(e){return S.isPlainObject(e)||S.isArray(e)}function rg(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function df(e,t,n){return e?e.concat(t).map(function(s,i){return s=rg(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Fk(e){return S.isArray(e)&&!e.some(au)}const Ik=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function co(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,b){return!S.isUndefined(b[x])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(S.isDate(p))return p.toISOString();if(S.isBoolean(p))return p.toString();if(!u&&S.isBlob(p))throw new I("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(p)||S.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,x,b){let g=p;if(p&&!b&&typeof p=="object"){if(S.endsWith(x,"{}"))x=r?x:x.slice(0,-2),p=JSON.stringify(p);else if(S.isArray(p)&&Fk(p)||(S.isFileList(p)||S.endsWith(x,"[]"))&&(g=S.toArray(p)))return x=rg(x),g.forEach(function(y,k){!(S.isUndefined(y)||y===null)&&t.append(l===!0?df([x],k,i):l===null?x:x+"[]",c(y))}),!1}return au(p)?!0:(t.append(df(b,x,i),c(p)),!1)}const d=[],m=Object.assign(Ik,{defaultVisitor:f,convertValue:c,isVisitable:au});function w(p,x){if(!S.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(p),S.forEach(p,function(g,h){(!(S.isUndefined(g)||g===null)&&s.call(t,g,S.isString(h)?h.trim():h,x,m))===!0&&w(g,x?x.concat(h):[h])}),d.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ff(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function xc(e,t){this._pairs=[],e&&co(e,this,t)}const sg=xc.prototype;sg.append=function(t,n){this._pairs.push([t,n])};sg.toString=function(t){const n=t?function(r){return t.call(this,r,ff)}:ff;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Dk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ig(e,t,n){if(!t)return e;const r=n&&n.encode||Dk,s=S.isFunction(n)?{serialize:n}:n,i=s&&s.serialize;let l;if(i?l=i(t,s):l=S.isURLSearchParams(t)?t.toString():new xc(t,s).toString(r),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class hf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Uk=typeof URLSearchParams<"u"?URLSearchParams:xc,Bk=typeof FormData<"u"?FormData:null,$k=typeof Blob<"u"?Blob:null,Hk={isBrowser:!0,classes:{URLSearchParams:Uk,FormData:Bk,Blob:$k},protocols:["http","https","file","blob","url","data"]},kc=typeof window<"u"&&typeof document<"u",uu=typeof navigator=="object"&&navigator||void 0,Vk=kc&&(!uu||["ReactNative","NativeScript","NS"].indexOf(uu.product)<0),Qk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wk=kc&&window.location.href||"http://localhost",qk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kc,hasStandardBrowserEnv:Vk,hasStandardBrowserWebWorkerEnv:Qk,navigator:uu,origin:Wk},Symbol.toStringTag,{value:"Module"})),Me={...qk,...Hk};function Kk(e,t){return co(e,new Me.classes.URLSearchParams,{visitor:function(n,r,s,i){return Me.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Gk(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jk(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return l=!l&&S.isArray(s)?s.length:l,u?(S.hasOwnProp(s,l)?s[l]=[s[l],r]:s[l]=r,!o):((!s[l]||!S.isObject(s[l]))&&(s[l]=[]),t(n,r,s[l],i)&&S.isArray(s[l])&&(s[l]=Jk(s[l])),!o)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,s)=>{t(Gk(r),s,n,0)}),n}return null}function Xk(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const vi={transitional:wc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return s?JSON.stringify(lg(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kk(t,this.formSerializer).toString();if((o=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return co(o?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Xk(t)):t}],transformResponse:[function(t){const n=this.transitional||vi.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||s)){const l=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(o){if(l)throw o.name==="SyntaxError"?I.from(o,I.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{vi.headers[e]={}});const Yk=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zk=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(l){s=l.indexOf(":"),n=l.substring(0,s).trim().toLowerCase(),r=l.substring(s+1).trim(),!(!n||t[n]&&Yk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},pf=Symbol("internals");function ks(e){return e&&String(e).trim().toLowerCase()}function ll(e){return e===!1||e==null?e:S.isArray(e)?e.map(ll):String(e)}function e2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const t2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ho(e,t,n,r,s){if(S.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function n2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function r2(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,l){return this[r].call(this,t,s,i,l)},configurable:!0})})}let Xe=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(o,u,c){const f=ks(u);if(!f)throw new Error("header name must be a non-empty string");const d=S.findKey(s,f);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||u]=ll(o))}const l=(o,u)=>S.forEach(o,(c,f)=>i(c,f,u));if(S.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(S.isString(t)&&(t=t.trim())&&!t2(t))l(Zk(t),n);else if(S.isObject(t)&&S.isIterable(t)){let o={},u,c;for(const f of t){if(!S.isArray(f))throw TypeError("Object iterator must return a key-value pair");o[c=f[0]]=(u=o[c])?S.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}l(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=ks(t),t){const r=S.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return e2(s);if(S.isFunction(n))return n.call(this,s,r);if(S.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ks(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ho(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(l){if(l=ks(l),l){const o=S.findKey(r,l);o&&(!n||Ho(r,r[o],o,n))&&(delete r[o],s=!0)}}return S.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Ho(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return S.forEach(this,(s,i)=>{const l=S.findKey(r,i);if(l){n[l]=ll(s),delete n[i];return}const o=t?n2(i):String(i).trim();o!==i&&delete n[i],n[o]=ll(s),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[pf]=this[pf]={accessors:{}}).accessors,s=this.prototype;function i(l){const o=ks(l);r[o]||(r2(s,l),r[o]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Xe);function Vo(e,t){const n=this||vi,r=t||n,s=Xe.from(r.headers);let i=r.data;return S.forEach(e,function(o){i=o.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function og(e){return!!(e&&e.__CANCEL__)}let xi=class extends I{constructor(t,n,r){super(t??"canceled",I.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function ag(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new I("Request failed with status code "+n.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function s2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function i2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),f=r[i];l||(l=c),n[s]=u,r[s]=c;let d=i,m=0;for(;d!==s;)m+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-l{n=f,s=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const f=Date.now(),d=f-n;d>=r?l(c,f):(s=c,i||(i=setTimeout(()=>{i=null,l(s)},r-d)))},()=>s&&l(s)]}const Dl=(e,t,n=3)=>{let r=0;const s=i2(50,250);return l2(i=>{const l=i.loaded,o=i.lengthComputable?i.total:void 0,u=l-r,c=s(u),f=l<=o;r=l;const d={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&f?(o-l)/c:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},mf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gf=e=>(...t)=>S.asap(()=>e(...t)),o2=Me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,a2=Me.hasStandardBrowserEnv?{write(e,t,n,r,s,i,l){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];S.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),S.isString(r)&&o.push(`path=${r}`),S.isString(s)&&o.push(`domain=${s}`),i===!0&&o.push("secure"),S.isString(l)&&o.push(`SameSite=${l}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function u2(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function c2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ug(e,t,n){let r=!u2(t);return e&&(r||n==!1)?c2(e,t):t}const yf=e=>e instanceof Xe?{...e}:e;function pr(e,t){t=t||{};const n={};function r(c,f,d,m){return S.isPlainObject(c)&&S.isPlainObject(f)?S.merge.call({caseless:m},c,f):S.isPlainObject(f)?S.merge({},f):S.isArray(f)?f.slice():f}function s(c,f,d,m){if(S.isUndefined(f)){if(!S.isUndefined(c))return r(void 0,c,d,m)}else return r(c,f,d,m)}function i(c,f){if(!S.isUndefined(f))return r(void 0,f)}function l(c,f){if(S.isUndefined(f)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function o(c,f,d){if(d in t)return r(c,f);if(d in e)return r(void 0,c)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:o,headers:(c,f,d)=>s(yf(c),yf(f),d,!0)};return S.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=S.hasOwnProp(u,f)?u[f]:s,m=d(e[f],t[f],f);S.isUndefined(m)&&d!==o||(n[f]=m)}),n}const cg=e=>{const t=pr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:l,auth:o}=t;if(t.headers=l=Xe.from(l),t.url=ig(ug(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&l.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),S.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(S.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([f,d])=>{c.includes(f.toLowerCase())&&l.set(f,d)})}}if(Me.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&o2(t.url))){const u=s&&i&&a2.read(i);u&&l.set(s,u)}return t},d2=typeof XMLHttpRequest<"u",f2=d2&&function(e){return new Promise(function(n,r){const s=cg(e);let i=s.data;const l=Xe.from(s.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:c}=s,f,d,m,w,p;function x(){w&&w(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function g(){if(!b)return;const y=Xe.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:y,config:e,request:b};ag(function(P){n(P),x()},function(P){r(P),x()},E),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(g)},b.onabort=function(){b&&(r(new I("Request aborted",I.ECONNABORTED,e,b)),b=null)},b.onerror=function(k){const E=k&&k.message?k.message:"Network Error",_=new I(E,I.ERR_NETWORK,e,b);_.event=k||null,r(_),b=null},b.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const E=s.transitional||wc;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),r(new I(k,E.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,b)),b=null},i===void 0&&l.setContentType(null),"setRequestHeader"in b&&S.forEach(l.toJSON(),function(k,E){b.setRequestHeader(E,k)}),S.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),o&&o!=="json"&&(b.responseType=s.responseType),c&&([m,p]=Dl(c,!0),b.addEventListener("progress",m)),u&&b.upload&&([d,w]=Dl(u),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(f=y=>{b&&(r(!y||y.type?new xi(null,e,b):y),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const h=s2(s.url);if(h&&Me.protocols.indexOf(h)===-1){r(new I("Unsupported protocol "+h+":",I.ERR_BAD_REQUEST,e));return}b.send(i||null)})},h2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(c){if(!s){s=!0,o();const f=c instanceof Error?c:this.reason;r.abort(f instanceof I?f:new xi(f instanceof Error?f.message:f))}};let l=t&&setTimeout(()=>{l=null,i(new I(`timeout of ${t}ms exceeded`,I.ETIMEDOUT))},t);const o=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>S.asap(o),u}},p2=function*(e,t){let n=e.byteLength;if(n{const s=m2(e,t);let i=0,l,o=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:f}=await s.next();if(c){o(),u.close();return}let d=f.byteLength;if(n){let m=i+=d;n(m)}u.enqueue(new Uint8Array(f))}catch(c){throw o(c),c}},cancel(u){return o(u),s.return()}},{highWaterMark:2})},xf=64*1024,{isFunction:Vi}=S,y2=(({Request:e,Response:t})=>({Request:e,Response:t}))(S.global),{ReadableStream:wf,TextEncoder:kf}=S.global,bf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},v2=e=>{e=S.merge.call({skipUndefined:!0},y2,e);const{fetch:t,Request:n,Response:r}=e,s=t?Vi(t):typeof fetch=="function",i=Vi(n),l=Vi(r);if(!s)return!1;const o=s&&Vi(wf),u=s&&(typeof kf=="function"?(p=>x=>p.encode(x))(new kf):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=i&&o&&bf(()=>{let p=!1;const x=new n(Me.origin,{body:new wf,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!x}),f=l&&o&&bf(()=>S.isReadableStream(new r("").body)),d={stream:f&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(x,b)=>{let g=x&&x[p];if(g)return g.call(x);throw new I(`Response type '${p}' is not supported`,I.ERR_NOT_SUPPORT,b)})});const m=async p=>{if(p==null)return 0;if(S.isBlob(p))return p.size;if(S.isSpecCompliantForm(p))return(await new n(Me.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(S.isArrayBufferView(p)||S.isArrayBuffer(p))return p.byteLength;if(S.isURLSearchParams(p)&&(p=p+""),S.isString(p))return(await u(p)).byteLength},w=async(p,x)=>{const b=S.toFiniteNumber(p.getContentLength());return b??m(x)};return async p=>{let{url:x,method:b,data:g,signal:h,cancelToken:y,timeout:k,onDownloadProgress:E,onUploadProgress:_,responseType:P,headers:j,withCredentials:A="same-origin",fetchOptions:L}=cg(p),X=t||fetch;P=P?(P+"").toLowerCase():"text";let me=h2([h,y&&y.toAbortSignal()],k),Ne=null;const ye=me&&me.unsubscribe&&(()=>{me.unsubscribe()});let _e;try{if(_&&c&&b!=="get"&&b!=="head"&&(_e=await w(j,g))!==0){let W=new n(x,{method:"POST",body:g,duplex:"half"}),G;if(S.isFormData(g)&&(G=W.headers.get("content-type"))&&j.setContentType(G),W.body){const[se,Z]=mf(_e,Dl(gf(_)));g=vf(W.body,xf,se,Z)}}S.isString(A)||(A=A?"include":"omit");const Y=i&&"credentials"in n.prototype,$e={...L,signal:me,method:b.toUpperCase(),headers:j.normalize().toJSON(),body:g,duplex:"half",credentials:Y?A:void 0};Ne=i&&new n(x,$e);let N=await(i?X(Ne,L):X(x,$e));const D=f&&(P==="stream"||P==="response");if(f&&(E||D&&ye)){const W={};["status","statusText","headers"].forEach(mt=>{W[mt]=N[mt]});const G=S.toFiniteNumber(N.headers.get("content-length")),[se,Z]=E&&mf(G,Dl(gf(E),!0))||[];N=new r(vf(N.body,xf,se,()=>{Z&&Z(),ye&&ye()}),W)}P=P||"text";let B=await d[S.findKey(d,P)||"text"](N,p);return!D&&ye&&ye(),await new Promise((W,G)=>{ag(W,G,{data:B,headers:Xe.from(N.headers),status:N.status,statusText:N.statusText,config:p,request:Ne})})}catch(Y){throw ye&&ye(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new I("Network Error",I.ERR_NETWORK,p,Ne,Y&&Y.response),{cause:Y.cause||Y}):I.from(Y,Y&&Y.code,p,Ne,Y&&Y.response)}}},x2=new Map,dg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let l=i.length,o=l,u,c,f=x2;for(;o--;)u=i[o],c=f.get(u),c===void 0&&f.set(u,c=o?new Map:v2(t)),f=c;return c};dg();const bc={http:Ak,xhr:f2,fetch:{get:dg}};S.forEach(bc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sf=e=>`- ${e}`,w2=e=>S.isFunction(e)||e===null||e===!1;function k2(e,t){e=S.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let l=0;l`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=n?l.length>1?`since : `+l.map(Sf).join(` `):" "+Sf(l[0]):"as no adapter specified";throw new I("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s}const fg={getAdapter:k2,adapters:bc};function Qo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xi(null,e)}function jf(e){return Qo(e),e.headers=Xe.from(e.headers),e.data=Vo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fg.getAdapter(e.adapter||vi.adapter,e)(e).then(function(r){return Qo(e),r.data=Vo.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return og(r)||(Qo(e),r&&r.response&&(r.response.data=Vo.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const hg="1.13.5",fo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Nf={};fo.transitional=function(t,n,r){function s(i,l){return"[Axios v"+hg+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,o)=>{if(t===!1)throw new I(s(l," has been removed"+(n?" in "+n:"")),I.ERR_DEPRECATED);return n&&!Nf[l]&&(Nf[l]=!0,console.warn(s(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};fo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function b2(e,t,n){if(typeof e!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],l=t[i];if(l){const o=e[i],u=o===void 0||l(o,i,e);if(u!==!0)throw new I("option "+i+" must be "+u,I.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new I("Unknown option "+i,I.ERR_BAD_OPTION)}}const ol={assertOptions:b2,validators:fo},it=ol.validators;let ir=class{constructor(t){this.defaults=t||{},this.interceptors={request:new hf,response:new hf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&ol.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean),legacyInterceptorReqResOrdering:it.transitional(it.boolean)},!1),s!=null&&(S.isFunction(s)?n.paramsSerializer={serialize:s}:ol.assertOptions(s,{encode:it.function,serialize:it.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ol.assertOptions(n,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&S.merge(i.common,i[n.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Xe.concat(l,i);const o=[];let u=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(n)===!1)return;u=u&&x.synchronous;const b=n.transitional||wc;b&&b.legacyInterceptorReqResOrdering?o.unshift(x.fulfilled,x.rejected):o.push(x.fulfilled,x.rejected)});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let f,d=0,m;if(!u){const p=[jf.bind(this),void 0];for(p.unshift(...o),p.push(...c),m=p.length,f=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const l=new Promise(o=>{r.subscribe(o),i=o}).then(s);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,o){r.reason||(r.reason=new xi(i,l,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pg(function(s){t=s}),cancel:t}}};function j2(e){return function(n){return e.apply(null,n)}}function N2(e){return S.isObject(e)&&e.isAxiosError===!0}const cu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cu).forEach(([e,t])=>{cu[t]=e});function mg(e){const t=new ir(e),n=Km(ir.prototype.request,t);return S.extend(n,ir.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return mg(pr(e,s))},n}const pe=mg(vi);pe.Axios=ir;pe.CanceledError=xi;pe.CancelToken=S2;pe.isCancel=og;pe.VERSION=hg;pe.toFormData=co;pe.AxiosError=I;pe.Cancel=pe.CanceledError;pe.all=function(t){return Promise.all(t)};pe.spread=j2;pe.isAxiosError=N2;pe.mergeConfig=pr;pe.AxiosHeaders=Xe;pe.formToJSON=e=>lg(S.isHTMLForm(e)?new FormData(e):e);pe.getAdapter=fg.getAdapter;pe.HttpStatusCode=cu;pe.default=pe;const{Axios:Y2,AxiosError:Z2,CanceledError:eb,isCancel:tb,CancelToken:nb,VERSION:rb,all:sb,Cancel:ib,isAxiosError:lb,spread:ob,toFormData:ab,AxiosHeaders:ub,HttpStatusCode:cb,formToJSON:db,getAdapter:fb,mergeConfig:hb}=pe,C2="/api",at=pe.create({baseURL:C2}),lr={list:async()=>(await at.get("/projects")).data,get:async e=>(await at.get(`/projects/${e}`)).data,create:async e=>(await at.post("/projects",e)).data,update:async(e,t)=>(await at.patch(`/projects/${e}`,t)).data,delete:async e=>at.delete(`/projects/${e}`)},qt={list:async(e,t)=>{const n={};return e&&(n.project_id=e),t&&(n.status=t),(await at.get("/tickets",{params:n})).data},get:async e=>(await at.get(`/tickets/${e}`)).data,create:async e=>(await at.post("/tickets",e)).data,update:async(e,t)=>(await at.patch(`/tickets/${e}`,t)).data,delete:async e=>at.delete(`/tickets/${e}`),getComments:async e=>(await at.get(`/tickets/${e}/comments`)).data,addComment:async(e,t)=>(await at.post(`/tickets/${e}/comments`,t)).data},E2={open:"badge-blue",in_progress:"badge-yellow",resolved:"badge-green",closed:"badge-gray"},R2={critical:"badge-red",high:"badge-orange",medium:"badge-yellow",low:"badge-green"};function _2(){const{data:e,isLoading:t}=Nt({queryKey:["tickets"],queryFn:()=>qt.list()}),{data:n,isLoading:r}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),s=t||r,i=e||[],l=n||[],o=i.filter(d=>d.status==="open").length,u=i.filter(d=>d.status==="in_progress").length,c=i.filter(d=>d.status==="resolved").length,f=[{label:"Total Tickets",value:i.length,icon:Il,color:"text-blue-400",bg:"bg-blue-500/10"},{label:"Open",value:o,icon:pc,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"In Progress",value:u,icon:io,color:"text-purple-400",bg:"bg-purple-500/10"},{label:"Resolved",value:c,icon:Fl,color:"text-emerald-400",bg:"bg-emerald-500/10"}];return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Dashboard"}),a.jsx("p",{className:"page-subtitle",children:"Overview of your workspace"})]}),a.jsxs(Mt,{to:"/tickets/new",className:"btn btn-primary",children:[a.jsx(Il,{size:16})," New Ticket"]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:f.map(d=>{const m=d.icon;return a.jsx("div",{className:"stat-card",children:a.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:d.label}),a.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:s?"—":d.value})]}),a.jsx("div",{className:ne("w-11 h-11 rounded-xl flex items-center justify-center",d.bg),children:a.jsx(m,{size:20,className:d.color})})]})},d.label)})}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"card",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Recent Tickets"}),a.jsxs(Mt,{to:"/tickets",className:"text-xs text-blue-400 hover:underline flex items-center gap-1",children:["View all ",a.jsx(of,{size:12})]})]}),s?a.jsx("div",{className:"card-body space-y-3",children:Array(4).fill(0).map((d,m)=>a.jsx("div",{className:"skeleton h-12 rounded-lg"},m))}):a.jsx("div",{children:i.slice(0,6).map(d=>a.jsxs(Mt,{to:`/tickets/${d.id}`,className:"flex items-center gap-3 px-5 py-3 table-row group",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-xs font-mono text-blue-400",children:d.key}),a.jsx("span",{className:ne("badge text-[10px]",E2[d.status]),children:d.status.replace("_"," ")})]}),a.jsx("p",{className:"text-sm truncate mt-0.5 group-hover:text-white transition-colors",children:d.title})]}),a.jsx("span",{className:ne("badge text-[10px]",R2[d.priority]),children:d.priority})]},d.id))})]}),a.jsxs("div",{className:"card",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Projects"}),a.jsxs(Mt,{to:"/projects",className:"text-xs text-blue-400 hover:underline flex items-center gap-1",children:["Manage ",a.jsx(of,{size:12})]})]}),s?a.jsx("div",{className:"card-body space-y-3",children:Array(3).fill(0).map((d,m)=>a.jsx("div",{className:"skeleton h-14 rounded-lg"},m))}):a.jsx("div",{className:"card-body space-y-2",children:l.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(mc,{size:24,className:"text-gray-600 mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-gray-500",children:"No projects yet"})]}):l.map(d=>a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-gray-800/50 transition-colors",children:[a.jsx("div",{className:"w-9 h-9 rounded-lg bg-blue-600/15 flex items-center justify-center text-xs font-bold text-blue-400",children:d.key}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:d.name}),a.jsxs("p",{className:"text-xs text-gray-500",children:[d.ticket_count," tickets"]})]}),a.jsx(Bw,{size:14,className:"text-gray-600"})]},d.id))})]})]})]})}const Wo={open:{badge:"badge-blue",icon:pc,label:"Open"},in_progress:{badge:"badge-yellow",icon:io,label:"In Progress"},resolved:{badge:"badge-green",icon:Fl,label:"Resolved"},closed:{badge:"badge-gray",icon:Fl,label:"Closed"}},Cf={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-orange",label:"High"},medium:{badge:"badge-yellow",label:"Medium"},low:{badge:"badge-green",label:"Low"}};function P2(){const[e,t]=C.useState(""),[n,r]=C.useState(),[s,i]=C.useState(""),[l,o]=C.useState(!1),{data:u,isLoading:c}=Nt({queryKey:["tickets",n,e],queryFn:()=>qt.list(n,e)}),{data:f}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),d=(u||[]).filter(w=>!s||w.title.toLowerCase().includes(s.toLowerCase())||w.key.toLowerCase().includes(s.toLowerCase())),m={};return(u||[]).forEach(w=>{m[w.status]=(m[w.status]||0)+1}),a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Tickets"}),a.jsxs("p",{className:"page-subtitle",children:[(u==null?void 0:u.length)||0," total"]})]}),a.jsxs(Mt,{to:"/tickets/new",className:"btn btn-primary",children:[a.jsx(en,{size:16})," New Ticket"]})]}),a.jsxs("div",{className:"flex items-center gap-1 mb-4 overflow-x-auto pb-1",children:[a.jsxs("button",{onClick:()=>t(""),className:ne("badge cursor-pointer",e?"badge-gray hover:bg-gray-700/50":"badge-blue"),children:["All ",(u==null?void 0:u.length)||0]}),Object.entries(Wo).map(([w,p])=>a.jsxs("button",{onClick:()=>t(e===w?"":w),className:ne("badge cursor-pointer",e===w?p.badge:"badge-gray hover:bg-gray-700/50"),children:[p.label," ",m[w]||0]},w))]}),a.jsxs("div",{className:"card mb-4",children:[a.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[a.jsx(sl,{size:16,className:"text-gray-500"}),a.jsx("input",{value:s,onChange:w=>i(w.target.value),placeholder:"Search tickets...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),a.jsxs("button",{onClick:()=>o(!l),className:ne("btn btn-sm btn-ghost",l&&"text-blue-400"),children:[a.jsx(Mw,{size:14})," Filters"]})]}),l&&a.jsx("div",{className:"px-4 py-3 border-t border-gray-800/50 flex items-center gap-3 animate-slide-up",children:a.jsxs("select",{value:n||"",onChange:w=>r(w.target.value?Number(w.target.value):void 0),className:"input h-8 text-xs w-40",children:[a.jsx("option",{value:"",children:"All Projects"}),(f||[]).map(w=>a.jsxs("option",{value:w.id,children:[w.key," - ",w.name]},w.id))]})})]}),a.jsxs("div",{className:"card overflow-hidden",children:[a.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[a.jsx("div",{className:"w-20",children:"Key"}),a.jsx("div",{className:"flex-1",children:"Title"}),a.jsx("div",{className:"w-24",children:"Status"}),a.jsx("div",{className:"w-20",children:"Priority"}),a.jsx("div",{className:"w-8"})]}),c?Array(5).fill(0).map((w,p)=>a.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[a.jsx("div",{className:"skeleton h-4 w-16"}),a.jsx("div",{className:"flex-1",children:a.jsx("div",{className:"skeleton h-4 w-3/4"})}),a.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]},p)):d.length===0?a.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[a.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:a.jsx(Il,{size:24,className:"text-gray-600"})}),a.jsx("p",{className:"text-gray-400 font-medium",children:"No tickets found"})]}):d.map(w=>{const p=Wo[w.status]||Wo.open,x=Cf[w.priority]||Cf.medium,b=p.icon;return a.jsxs(Mt,{to:`/tickets/${w.id}`,className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[a.jsx("div",{className:"w-20",children:a.jsx("span",{className:"font-mono text-xs text-blue-400",children:w.key})}),a.jsx("div",{className:"flex-1 min-w-0",children:a.jsx("p",{className:"text-sm font-medium truncate group-hover:text-white transition-colors",children:w.title})}),a.jsx("div",{className:"w-24",children:a.jsxs("span",{className:ne("badge text-[10px]",p.badge),children:[a.jsx(b,{size:10}),p.label]})}),a.jsx("div",{className:"w-20",children:a.jsx("span",{className:ne("badge text-[10px]",x.badge),children:x.label})}),a.jsx("div",{className:"w-8",children:a.jsx($m,{size:14,className:"text-gray-600 group-hover:text-gray-400"})})]},w.id)})]})]})}const Ef={open:{badge:"badge-blue",label:"Open"},in_progress:{badge:"badge-yellow",label:"In Progress"},resolved:{badge:"badge-green",label:"Resolved"},closed:{badge:"badge-gray",label:"Closed"}},Rf={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-orange",label:"High"},medium:{badge:"badge-yellow",label:"Medium"},low:{badge:"badge-green",label:"Low"}};function O2(){const{id:e}=rx(),t=hi(),[n,r]=C.useState(""),[s,i]=C.useState("details"),{data:l,isLoading:o}=Nt({queryKey:["ticket",e],queryFn:()=>qt.get(Number(e))}),{data:u}=Nt({queryKey:["comments",e],queryFn:()=>qt.getComments(Number(e)),enabled:!!e}),c=ei({mutationFn:p=>qt.update(Number(e),p),onSuccess:()=>{t.invalidateQueries({queryKey:["ticket",e]}),t.invalidateQueries({queryKey:["tickets"]})}}),f=ei({mutationFn:()=>qt.addComment(Number(e),{author:"user",content:n}),onSuccess:()=>{t.invalidateQueries({queryKey:["comments",e]}),r("")}});if(o)return a.jsxs("div",{className:"p-6 animate-fade-in space-y-4",children:[a.jsx("div",{className:"skeleton h-4 w-24"}),a.jsx("div",{className:"skeleton h-7 w-96"}),a.jsx("div",{className:"skeleton h-48 w-full rounded-xl"})]});if(!l)return a.jsxs("div",{className:"p-6 text-center",children:[a.jsx(pc,{size:40,className:"text-gray-600 mx-auto mb-3"}),a.jsx("p",{className:"text-gray-400",children:"Ticket not found"})]});const d=Ef[l.status]||Ef.open,m=Rf[l.priority]||Rf.medium,w=[{id:"details",label:"Details",icon:sw},{id:"comments",label:"Comments",icon:vw,count:u==null?void 0:u.length}];return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs(Mt,{to:"/tickets",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[a.jsx(Dm,{size:14})," Back"]}),a.jsxs("div",{className:"flex items-start justify-between mb-6",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("span",{className:"font-mono text-lg text-blue-400 font-semibold",children:l.key}),a.jsx("span",{className:ne("badge",d.badge),children:d.label}),a.jsx("span",{className:ne("badge",m.badge),children:m.label})]}),a.jsx("h1",{className:"text-xl font-semibold text-white",children:l.title}),a.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-gray-500",children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(I1,{size:12})," ",new Date(l.created_at).toLocaleDateString()]}),l.assignee&&a.jsxs("span",{children:["Assignee: ",l.assignee]})]})]}),a.jsxs("select",{value:l.status,onChange:p=>c.mutate({status:p.target.value}),className:"input h-9 w-36 text-xs",children:[a.jsx("option",{value:"open",children:"Open"}),a.jsx("option",{value:"in_progress",children:"In Progress"}),a.jsx("option",{value:"resolved",children:"Resolved"}),a.jsx("option",{value:"closed",children:"Closed"})]})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[a.jsx("div",{className:"lg:col-span-2",children:a.jsxs("div",{className:"card overflow-hidden",children:[a.jsx("div",{className:"flex items-center gap-0 border-b border-gray-800/50 px-1",children:w.map(p=>{const x=p.icon;return a.jsxs("button",{onClick:()=>i(p.id),className:ne("flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-all -mb-px",s===p.id?"border-blue-500 text-blue-400":"border-transparent text-gray-500 hover:text-gray-300"),children:[a.jsx(x,{size:14}),p.label,p.count!==void 0&&a.jsx("span",{className:"badge badge-gray text-[10px]",children:p.count})]},p.id)})}),a.jsxs("div",{className:"card-body",children:[s==="details"&&a.jsx("div",{className:"animate-fade-in",children:a.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:l.description||"No description"})}),s==="comments"&&a.jsxs("div",{className:"space-y-4 animate-fade-in",children:[(u||[]).map(p=>{var x;return a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"w-7 h-7 rounded-lg bg-gray-800 flex items-center justify-center flex-shrink-0 text-xs font-medium text-gray-400",children:(x=p.author[0])==null?void 0:x.toUpperCase()}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("span",{className:"text-sm font-medium text-gray-300",children:p.author}),a.jsx("span",{className:"text-xs text-gray-600",children:new Date(p.created_at).toLocaleString()})]}),a.jsx("p",{className:"text-sm text-gray-400",children:p.content})]})]},p.id)}),(!u||u.length===0)&&a.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"No comments yet"}),a.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-gray-800/50",children:[a.jsx("input",{value:n,onChange:p=>r(p.target.value),placeholder:"Add a comment...",className:"input flex-1",onKeyDown:p=>p.key==="Enter"&&n.trim()&&f.mutate()}),a.jsx("button",{onClick:()=>n.trim()&&f.mutate(),disabled:!n.trim()||f.isPending,className:"btn btn-primary btn-sm",children:f.isPending?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(Qm,{size:14})})]})]})]})]})}),a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[a.jsx(io,{size:14,className:"text-gray-500"})," Timeline"]})}),a.jsxs("div",{className:"card-body space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-gray-400",children:"Created"}),a.jsx("p",{className:"text-sm",children:new Date(l.created_at).toLocaleString()})]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-gray-400",children:"Updated"}),a.jsx("p",{className:"text-sm",children:new Date(l.updated_at).toLocaleString()})]})]})]})]}),l.labels&&l.labels.length>0&&a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[a.jsx(Aw,{size:14,className:"text-gray-500"})," Labels"]})}),a.jsx("div",{className:"card-body",children:a.jsx("div",{className:"flex flex-wrap gap-1.5",children:l.labels.map(p=>a.jsx("span",{className:"badge badge-blue",children:p},p))})})]})]})]})]})}function T2(){const e=vm(),t=hi(),[n,r]=C.useState({project_id:"",title:"",description:"",priority:"medium"}),{data:s}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),i=ei({mutationFn:()=>qt.create({...n,project_id:Number(n.project_id)}),onSuccess:()=>{t.invalidateQueries({queryKey:["tickets"]}),e("/tickets")}});return a.jsxs("div",{className:"p-6 animate-fade-in max-w-2xl",children:[a.jsxs("a",{href:"/tickets",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[a.jsx(Dm,{size:14})," Back"]}),a.jsx("h1",{className:"page-title mb-6",children:"New Ticket"}),a.jsxs("form",{onSubmit:l=>{l.preventDefault(),i.mutate()},className:"card card-body space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Project"}),a.jsxs("select",{value:n.project_id,onChange:l=>r({...n,project_id:l.target.value}),className:"input",required:!0,children:[a.jsx("option",{value:"",children:"Select project"}),(s||[]).map(l=>a.jsxs("option",{value:l.id,children:[l.key," - ",l.name]},l.id))]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Title"}),a.jsx("input",{value:n.title,onChange:l=>r({...n,title:l.target.value}),className:"input",placeholder:"Brief summary",required:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Description"}),a.jsx("textarea",{value:n.description,onChange:l=>r({...n,description:l.target.value}),className:"input h-32 resize-none",placeholder:"Describe the issue...",required:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Priority"}),a.jsxs("select",{value:n.priority,onChange:l=>r({...n,priority:l.target.value}),className:"input",children:[a.jsx("option",{value:"low",children:"Low"}),a.jsx("option",{value:"medium",children:"Medium"}),a.jsx("option",{value:"high",children:"High"}),a.jsx("option",{value:"critical",children:"Critical"})]})]}),a.jsxs("div",{className:"flex gap-2 pt-2",children:[a.jsx("button",{type:"button",onClick:()=>e("/tickets"),className:"btn btn-secondary",children:"Cancel"}),a.jsxs("button",{type:"submit",disabled:i.isPending,className:"btn btn-primary",children:[i.isPending?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(Qm,{size:14})," Create Ticket"]})]})]})]})}const z2=[{key:"open",label:"Open",color:"border-blue-500"},{key:"in_progress",label:"In Progress",color:"border-amber-500"},{key:"resolved",label:"Resolved",color:"border-emerald-500"},{key:"closed",label:"Closed",color:"border-gray-500"}],M2={critical:"badge-red",high:"badge-orange",medium:"badge-yellow",low:"badge-green"};function L2(){const[e,t]=C.useState(),{data:n}=Nt({queryKey:["tickets",e],queryFn:()=>qt.list(e)}),{data:r}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),s={open:[],in_progress:[],resolved:[],closed:[]};return(n||[]).forEach(i=>{s[i.status]&&s[i.status].push(i)}),a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Board"}),a.jsx("p",{className:"page-subtitle",children:"Kanban view of your tickets"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("select",{value:e||"",onChange:i=>t(i.target.value?Number(i.target.value):void 0),className:"input h-9 text-xs w-40",children:[a.jsx("option",{value:"",children:"All Projects"}),(r||[]).map(i=>a.jsxs("option",{value:i.id,children:[i.key," - ",i.name]},i.id))]}),a.jsxs(Mt,{to:"/tickets/new",className:"btn btn-primary btn-sm",children:[a.jsx(en,{size:14})," New"]})]})]}),a.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4",children:z2.map(i=>a.jsxs("div",{className:"kanban-col",children:[a.jsxs("div",{className:ne("flex items-center justify-between mb-3 pb-2 border-b-2",i.color),children:[a.jsx("h3",{className:"text-sm font-semibold",children:i.label}),a.jsx("span",{className:"badge badge-gray text-[10px]",children:s[i.key].length})]}),a.jsxs("div",{className:"space-y-2 min-h-[200px]",children:[s[i.key].map(l=>a.jsx(Mt,{to:`/tickets/${l.id}`,className:"card p-3 hover:border-gray-700 hover:bg-gray-900/80 transition-all cursor-pointer group block",children:a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(aw,{size:14,className:"text-gray-700 mt-0.5 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("span",{className:"text-[10px] font-mono text-blue-400",children:l.key}),a.jsx("p",{className:"text-sm font-medium mt-0.5 group-hover:text-white transition-colors line-clamp-2",children:l.title}),a.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[a.jsx("span",{className:ne("badge text-[10px]",M2[l.priority]),children:l.priority}),l.assignee&&a.jsxs("span",{className:"text-[10px] text-gray-500",children:["@",l.assignee]})]})]})]})},l.id)),s[i.key].length===0&&a.jsx("div",{className:"flex items-center justify-center h-20 text-xs text-gray-600 border border-dashed border-gray-800 rounded-lg",children:"No tickets"})]})]},i.key))})]})}function A2(){const e=hi(),[t,n]=C.useState(!1),[r,s]=C.useState({name:"",key:"",webhook_url:""}),{data:i,isLoading:l}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),o=ei({mutationFn:()=>lr.create(r),onSuccess:()=>{e.invalidateQueries({queryKey:["projects"]}),n(!1),s({name:"",key:"",webhook_url:""})}}),u=ei({mutationFn:c=>lr.delete(c),onSuccess:()=>e.invalidateQueries({queryKey:["projects"]})});return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Projects"}),a.jsxs("p",{className:"page-subtitle",children:[(i==null?void 0:i.length)||0," projects"]})]}),a.jsxs("button",{onClick:()=>n(!t),className:"btn btn-primary",children:[a.jsx(en,{size:16})," New Project"]})]}),t&&a.jsxs("form",{onSubmit:c=>{c.preventDefault(),o.mutate()},className:"card card-body mb-6 animate-slide-up space-y-4 max-w-lg",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Name"}),a.jsx("input",{value:r.name,onChange:c=>s({...r,name:c.target.value}),className:"input",placeholder:"My Project",required:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Key"}),a.jsx("input",{value:r.key,onChange:c=>s({...r,key:c.target.value.toUpperCase()}),className:"input font-mono uppercase",placeholder:"PROJ",pattern:"[A-Za-z]{2,10}",required:!0})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Webhook URL (optional)"}),a.jsx("input",{value:r.webhook_url,onChange:c=>s({...r,webhook_url:c.target.value}),className:"input",placeholder:"https://..."})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{type:"button",onClick:()=>n(!1),className:"btn btn-secondary btn-sm",children:"Cancel"}),a.jsxs("button",{type:"submit",disabled:o.isPending,className:"btn btn-primary btn-sm",children:[o.isPending?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(en,{size:14})," Create"]})]})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l?Array(3).fill(0).map((c,f)=>a.jsx("div",{className:"card card-body",children:a.jsx("div",{className:"skeleton h-20 rounded-lg"})},f)):(i||[]).length===0?a.jsxs("div",{className:"col-span-full card card-body flex flex-col items-center py-16",children:[a.jsx(mc,{size:32,className:"text-gray-600 mb-3"}),a.jsx("p",{className:"text-gray-400 font-medium",children:"No projects yet"}),a.jsx("p",{className:"text-gray-600 text-sm",children:"Create a project to start tracking tickets"})]}):(i||[]).map(c=>a.jsxs("div",{className:"card overflow-hidden",children:[a.jsx("div",{className:"h-1.5 bg-gradient-to-r from-blue-600 to-blue-700"}),a.jsxs("div",{className:"p-5",children:[a.jsx("div",{className:"flex items-start justify-between mb-3",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-600/15 flex items-center justify-center text-sm font-bold text-blue-400",children:c.key}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-white",children:c.name}),a.jsxs("p",{className:"text-xs text-gray-500",children:[c.ticket_count," tickets"]})]})]})}),c.webhook_url&&a.jsxs("p",{className:"text-xs text-gray-500 font-mono truncate mb-3 flex items-center gap-1",children:[a.jsx(gc,{size:10})," ",c.webhook_url]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("a",{href:`/tickets?project=${c.id}`,className:"btn btn-secondary btn-sm flex-1",children:"View Tickets"}),a.jsx("button",{onClick:()=>confirm("Delete project?")&&u.mutate(c.id),className:"btn btn-danger btn-sm btn-icon",children:a.jsx(yc,{size:12})})]})]})]},c.id))})]})}const qo={owner:{label:"Owner",badge:"badge-yellow",icon:G1},admin:{label:"Admin",badge:"badge-red",icon:Wm},member:{label:"Member",badge:"badge-blue",icon:Qw},viewer:{label:"Viewer",badge:"badge-gray",icon:Hm}},Ko=[{id:1,name:"Admin User",email:"admin@company.com",role:"owner",joined:"2024-01-15"},{id:2,name:"Developer",email:"dev@company.com",role:"admin",joined:"2024-02-10"},{id:3,name:"Support Agent",email:"support@company.com",role:"member",joined:"2024-03-05"}];function F2(){return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Team"}),a.jsxs("p",{className:"page-subtitle",children:[Ko.length," members"]})]}),a.jsxs("button",{className:"btn btn-primary",children:[a.jsx(en,{size:16})," Invite Member"]})]}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:Object.entries(qo).map(([e,t])=>{const n=t.icon,r=Ko.filter(s=>s.role===e).length;return a.jsx("div",{className:"stat-card",children:a.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:[t.label,"s"]}),a.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:r})]}),a.jsx(n,{size:18,className:"text-gray-600"})]})},e)})}),a.jsxs("div",{className:"card overflow-hidden",children:[a.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[a.jsx("div",{className:"w-9"}),a.jsx("div",{className:"flex-1",children:"Member"}),a.jsx("div",{className:"w-24",children:"Role"}),a.jsx("div",{className:"w-28",children:"Joined"}),a.jsx("div",{className:"w-8"})]}),Ko.map(e=>{const t=qo[e.role]||qo.member,n=t.icon;return a.jsxs("div",{className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[a.jsx("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white",children:e.name[0]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:e.name}),a.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[a.jsx(gw,{size:10})," ",e.email]})]}),a.jsx("div",{className:"w-24",children:a.jsxs("span",{className:ne("badge text-[10px]",t.badge),children:[a.jsx(n,{size:10})," ",t.label]})}),a.jsx("div",{className:"w-28 text-xs text-gray-500",children:new Date(e.joined).toLocaleDateString()}),a.jsx("div",{className:"w-8",children:a.jsx("button",{className:"btn btn-ghost btn-icon opacity-0 group-hover:opacity-100",children:a.jsx(Z1,{size:14})})})]},e.id)})]})]})}function I2(){const[e]=C.useState(30),{data:t,isLoading:n}=Nt({queryKey:["tickets"],queryFn:()=>qt.list()}),r=t||[],s=r.filter(d=>d.status==="open").length,i=r.filter(d=>d.status==="resolved"||d.status==="closed").length,l=r.length?(i/r.length*100).toFixed(0):"0",o=r.filter(d=>d.priority==="critical").length,u=[{label:"Total",value:r.length,icon:Bm,color:"text-blue-400",bg:"bg-blue-500/10"},{label:"Resolution Rate",value:`${l}%`,icon:Fl,color:"text-emerald-400",bg:"bg-emerald-500/10"},{label:"Open",value:s,icon:io,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"Critical",value:o,icon:Hw,color:"text-red-400",bg:"bg-red-500/10"}],c=["critical","high","medium","low"].map(d=>({name:d,count:r.filter(m=>m.priority===d).length})),f=["open","in_progress","resolved","closed"].map(d=>({name:d.replace("_"," "),count:r.filter(m=>m.status===d).length}));return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Reports & Analytics"}),a.jsx("p",{className:"page-subtitle",children:"Performance metrics"})]}),a.jsxs("button",{className:"btn btn-secondary btn-sm",children:[a.jsx(X1,{size:14})," Export"]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:u.map(d=>{const m=d.icon;return a.jsx("div",{className:"stat-card",children:a.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:d.label}),a.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:n?"—":d.value})]}),a.jsx("div",{className:ne("w-11 h-11 rounded-xl flex items-center justify-center",d.bg),children:a.jsx(m,{size:20,className:d.color})})]})},d.label)})}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"By Status"})}),a.jsx("div",{className:"card-body space-y-3",children:f.map(d=>a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("span",{className:"text-sm text-gray-400 w-24 capitalize",children:d.name}),a.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-2",children:a.jsx("div",{className:"bg-blue-500 h-2 rounded-full transition-all",style:{width:`${r.length?d.count/r.length*100:0}%`}})}),a.jsx("span",{className:"text-sm font-mono text-gray-300 w-8 text-right",children:d.count})]},d.name))})]}),a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"By Priority"})}),a.jsx("div",{className:"card-body space-y-3",children:c.map(d=>{const m={critical:"bg-red-500",high:"bg-orange-500",medium:"bg-amber-500",low:"bg-emerald-500"};return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("span",{className:"text-sm text-gray-400 w-24 capitalize",children:d.name}),a.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-2",children:a.jsx("div",{className:ne("h-2 rounded-full transition-all",m[d.name]),style:{width:`${r.length?d.count/r.length*100:0}%`}})}),a.jsx("span",{className:"text-sm font-mono text-gray-300 w-8 text-right",children:d.count})]},d.name)})})]})]})]})}const D2=[{key:"github",name:"GitHub",desc:"Issues and pull requests",color:"from-gray-700 to-gray-800",icon:"🐙"},{key:"gitlab",name:"GitLab",desc:"Issues and merge requests",color:"from-orange-600 to-orange-700",icon:"🦊"},{key:"jira",name:"JIRA",desc:"Atlassian JIRA Cloud",color:"from-blue-600 to-blue-700",icon:"🔵"},{key:"servicenow",name:"ServiceNow",desc:"ITSM platform",color:"from-emerald-600 to-emerald-700",icon:"⚙️"},{key:"slack",name:"Slack",desc:"Notifications & alerts",color:"from-purple-600 to-purple-700",icon:"💬"},{key:"email",name:"Email",desc:"Ticket creation via email",color:"from-red-600 to-red-700",icon:"📧"}];function U2(){return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsx("div",{className:"page-header",children:a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Integrations"}),a.jsx("p",{className:"page-subtitle",children:"Connect your tools"})]})}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:D2.map(e=>a.jsxs("div",{className:"card-hover p-5",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("div",{className:ne("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-lg",e.color),children:e.icon}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-white",children:e.name}),a.jsx("p",{className:"text-xs text-gray-500",children:e.desc})]})]}),a.jsxs("button",{className:"btn btn-secondary w-full btn-sm",children:[a.jsx(en,{size:14})," Connect"]})]},e.key))})]})}const B2=[{id:1,name:"Auto-assign critical",trigger:"Ticket priority = Critical",action:"Assign to on-call team",active:!0},{id:2,name:"Slack notify on new",trigger:"New ticket created",action:"Send to #support-tickets",active:!0},{id:3,name:"Auto-close stale",trigger:"Resolved > 7 days",action:"Close ticket",active:!1}];function $2(){return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Automation"}),a.jsx("p",{className:"page-subtitle",children:"Rules engine for repetitive tasks"})]}),a.jsxs("button",{className:"btn btn-primary",children:[a.jsx(en,{size:16})," New Rule"]})]}),a.jsx("div",{className:"space-y-3",children:B2.map(e=>a.jsxs("div",{className:"card p-5 flex items-center gap-4",children:[a.jsx("div",{className:ne("w-10 h-10 rounded-xl flex items-center justify-center",e.active?"bg-blue-500/10":"bg-gray-800/50"),children:a.jsx(qm,{size:18,className:e.active?"text-blue-400":"text-gray-600"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-sm font-semibold text-white",children:e.name}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 mt-1",children:[a.jsx("span",{className:"badge badge-gray text-[10px]",children:e.trigger}),a.jsx(T1,{size:10}),a.jsx("span",{className:"badge badge-blue text-[10px]",children:e.action})]})]}),a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",defaultChecked:e.active,className:"sr-only peer"}),a.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-blue-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]}),a.jsx("button",{className:"btn btn-ghost btn-icon",children:a.jsx(yc,{size:14})})]},e.id))})]})}const H2=[{id:"general",label:"General",icon:A1},{id:"notifications",label:"Notifications",icon:Um},{id:"security",label:"Security",icon:Wm},{id:"api",label:"API Keys",icon:Vm},{id:"webhooks",label:"Webhooks",icon:gc}];function V2(){const[e,t]=C.useState("general"),[n,r]=C.useState(!1),[s,i]=C.useState(!1),l=async()=>{r(!0),await new Promise(o=>setTimeout(o,800)),r(!1)};return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsx("div",{className:"page-header",children:a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Settings"}),a.jsx("p",{className:"page-subtitle",children:"Workspace configuration"})]})}),a.jsxs("div",{className:"flex gap-6",children:[a.jsx("div",{className:"w-48 flex-shrink-0 space-y-0.5",children:H2.map(o=>{const u=o.icon;return a.jsxs("button",{onClick:()=>t(o.id),className:ne("w-full sidebar-item",e===o.id?"sidebar-item-active":"sidebar-item-inactive"),children:[a.jsx(u,{size:16}),a.jsx("span",{children:o.label})]},o.id)})}),a.jsxs("div",{className:"flex-1 max-w-2xl",children:[e==="general"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"Workspace Details"})}),a.jsxs("div",{className:"card-body space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Workspace Name"}),a.jsx("input",{defaultValue:"My Workspace",className:"input"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Default Assignee"}),a.jsx("input",{className:"input",placeholder:"user@company.com"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Timezone"}),a.jsxs("select",{className:"input",children:[a.jsx("option",{children:"America/Sao_Paulo"}),a.jsx("option",{children:"America/New_York"}),a.jsx("option",{children:"UTC"})]})]}),a.jsx("div",{className:"pt-3 border-t border-gray-800",children:a.jsxs("button",{onClick:l,disabled:n,className:"btn btn-primary",children:[n?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(Ew,{size:14})," Save"]})})]})]}),e==="notifications"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"Notification Preferences"})}),a.jsx("div",{className:"card-body space-y-4",children:[{l:"New ticket",d:"When a ticket is created"},{l:"Status change",d:"When ticket status updates"},{l:"Comments",d:"When someone comments"},{l:"Assignment",d:"When assigned to you"}].map(o=>a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-200",children:o.l}),a.jsx("p",{className:"text-xs text-gray-500",children:o.d})]}),a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",defaultChecked:!0,className:"sr-only peer"}),a.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-blue-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]},o.l))})]}),e==="security"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"Security"})}),a.jsxs("div",{className:"card-body space-y-5",children:[a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Two-Factor Authentication"}),a.jsx("p",{className:"text-xs text-gray-500",children:"Require 2FA for all members"})]}),a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",className:"sr-only peer"}),a.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-blue-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-200",children:"SSO / SAML"}),a.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise single sign-on"})]}),a.jsx("span",{className:"badge badge-gray",children:"Enterprise"})]})]})]}),e==="api"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"API Keys"}),a.jsxs("button",{className:"btn btn-primary btn-sm",children:[a.jsx(en,{size:14})," Create"]})]}),a.jsxs("div",{className:"card-body",children:[a.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-900/50 rounded-lg border border-gray-800/50",children:[a.jsx(Vm,{size:16,className:"text-gray-500"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium",children:"Production Key"}),a.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[a.jsx("code",{className:"text-xs text-gray-500 font-mono",children:s?"th_live_sk_a1b2c3...":"th_live_sk_••••••..."}),a.jsx("button",{onClick:()=>i(!s),className:"text-gray-500 hover:text-gray-300",children:s?a.jsx(nw,{size:12}):a.jsx(Hm,{size:12})}),a.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:a.jsx(q1,{size:12})})]})]}),a.jsx("span",{className:"badge badge-green text-[10px]",children:"Active"}),a.jsx("button",{className:"btn btn-danger btn-sm btn-icon",children:a.jsx(yc,{size:12})})]}),a.jsxs("div",{className:"mt-4 p-4 bg-gray-950 rounded-lg border border-gray-800",children:[a.jsxs("h4",{className:"text-xs font-semibold text-gray-400 mb-2 flex items-center gap-1.5",children:[a.jsx(Q1,{size:12})," Quick Start"]}),a.jsx("pre",{className:"text-xs text-gray-400 font-mono overflow-x-auto",children:`curl -X POST https://tickethub.startdata.com.br/api/tickets \\ -H "Authorization: Bearer YOUR_KEY" \\ -d '{"title": "New bug"}'`})]})]})]}),e==="webhooks"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Webhooks"}),a.jsxs("button",{className:"btn btn-primary btn-sm",children:[a.jsx(en,{size:14})," Add"]})]}),a.jsx("div",{className:"card-body",children:a.jsxs("div",{className:"text-center py-8",children:[a.jsx(gc,{size:24,className:"text-gray-600 mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-gray-500",children:"No webhooks configured"})]})})]})]})]})]})}function Q2(){return a.jsx(wx,{children:a.jsxs(Ye,{path:"/",element:a.jsx(Jw,{}),children:[a.jsx(Ye,{index:!0,element:a.jsx(_2,{})}),a.jsx(Ye,{path:"tickets",element:a.jsx(P2,{})}),a.jsx(Ye,{path:"tickets/new",element:a.jsx(T2,{})}),a.jsx(Ye,{path:"tickets/:id",element:a.jsx(O2,{})}),a.jsx(Ye,{path:"board",element:a.jsx(L2,{})}),a.jsx(Ye,{path:"projects",element:a.jsx(A2,{})}),a.jsx(Ye,{path:"team",element:a.jsx(F2,{})}),a.jsx(Ye,{path:"reports",element:a.jsx(I2,{})}),a.jsx(Ye,{path:"integrations",element:a.jsx(U2,{})}),a.jsx(Ye,{path:"automation",element:a.jsx($2,{})}),a.jsx(Ye,{path:"settings",element:a.jsx(V2,{})})]})})}const W2=new pv;Go.createRoot(document.getElementById("root")).render(a.jsx(Jf.StrictMode,{children:a.jsx(mv,{client:W2,children:a.jsx(Rx,{children:a.jsx(Q2,{})})})}));