cntx-ui 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var bN=i=>{throw TypeError(i)};var wh=(i,a,c)=>a.has(i)||bN("Cannot "+c);var D=(i,a,c)=>(wh(i,a,"read from private field"),c?c.call(i):a.get(i)),Re=(i,a,c)=>a.has(i)?bN("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,c),he=(i,a,c,d)=>(wh(i,a,"write to private field"),d?d.call(i,c):a.set(i,c),c),Fe=(i,a,c)=>(wh(i,a,"access private method"),c);var Cd=(i,a,c,d)=>({set _(p){he(i,a,p,c)},get _(){return D(i,a,d)}});function zj(i,a){for(var c=0;c<a.length;c++){const d=a[c];if(typeof d!="string"&&!Array.isArray(d)){for(const p in d)if(p!=="default"&&!(p in i)){const v=Object.getOwnPropertyDescriptor(d,p);v&&Object.defineProperty(i,p,v.get?v:{enumerable:!0,get:()=>d[p]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))d(p);new MutationObserver(p=>{for(const v of p)if(v.type==="childList")for(const
|
|
1
|
+
var bN=i=>{throw TypeError(i)};var wh=(i,a,c)=>a.has(i)||bN("Cannot "+c);var D=(i,a,c)=>(wh(i,a,"read from private field"),c?c.call(i):a.get(i)),Re=(i,a,c)=>a.has(i)?bN("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,c),he=(i,a,c,d)=>(wh(i,a,"write to private field"),d?d.call(i,c):a.set(i,c),c),Fe=(i,a,c)=>(wh(i,a,"access private method"),c);var Cd=(i,a,c,d)=>({set _(p){he(i,a,p,c)},get _(){return D(i,a,d)}});function zj(i,a){for(var c=0;c<a.length;c++){const d=a[c];if(typeof d!="string"&&!Array.isArray(d)){for(const p in d)if(p!=="default"&&!(p in i)){const v=Object.getOwnPropertyDescriptor(d,p);v&&Object.defineProperty(i,p,v.get?v:{enumerable:!0,get:()=>d[p]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))d(p);new MutationObserver(p=>{for(const v of p)if(v.type==="childList")for(const w of v.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&d(w)}).observe(document,{childList:!0,subtree:!0});function c(p){const v={};return p.integrity&&(v.integrity=p.integrity),p.referrerPolicy&&(v.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?v.credentials="include":p.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function d(p){if(p.ep)return;p.ep=!0;const v=c(p);fetch(p.href,v)}})();function u1(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Sh={exports:{}},Rd={},Eh={exports:{}},Dc={exports:{}};Dc.exports;var vN;function Hj(){return vN||(vN=1,function(i,a){/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.development.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var bN=i=>{throw TypeError(i)};var wh=(i,a,c)=>a.has(i)||bN("Cannot "+c);var D=(
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/(function(){function c(h,R){Object.defineProperty(v.prototype,h,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})}function d(h){return h===null||typeof h!="object"?null:(h=Ct&&h[Ct]||h["@@iterator"],typeof h=="function"?h:null)}function p(h,R){h=(h=h.constructor)&&(h.displayName||h.name)||"ReactClass";var ee=h+"."+R;on[ee]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",R,h),on[ee]=!0)}function v(h,R,ee){this.props=h,this.context=R,this.refs=To,this.updater=ee||Mn}function
|
|
9
|
+
*/(function(){function c(h,R){Object.defineProperty(v.prototype,h,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})}function d(h){return h===null||typeof h!="object"?null:(h=Ct&&h[Ct]||h["@@iterator"],typeof h=="function"?h:null)}function p(h,R){h=(h=h.constructor)&&(h.displayName||h.name)||"ReactClass";var ee=h+"."+R;on[ee]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",R,h),on[ee]=!0)}function v(h,R,ee){this.props=h,this.context=R,this.refs=To,this.updater=ee||Mn}function w(){}function j(h,R,ee){this.props=h,this.context=R,this.refs=To,this.updater=ee||Mn}function y(h){return""+h}function C(h){try{y(h);var R=!1}catch{R=!0}if(R){R=console;var ee=R.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return ee.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),y(h)}}function M(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===On?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case N:return"Fragment";case Z:return"Profiler";case q:return"StrictMode";case be:return"Suspense";case Ge:return"SuspenseList";case Ie:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case ae:return"Portal";case De:return(h.displayName||"Context")+".Provider";case se:return(h._context.displayName||"Context")+".Consumer";case ke:var R=h.render;return h=h.displayName,h||(h=R.displayName||R.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case pe:return R=h.displayName||null,R!==null?R:M(h.type)||"Memo";case _e:R=h._payload,h=h._init;try{return M(h(R))}catch{}}return null}function f(h){if(h===N)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===_e)return"<...>";try{var R=M(h);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function g(){var h=Be.A;return h===null?null:h.getOwner()}function A(){return Error("react-stack-top-frame")}function G(h){if(Js.call(h,"key")){var R=Object.getOwnPropertyDescriptor(h,"key").get;if(R&&R.isReactWarning)return!1}return h.key!==void 0}function $(h,R){function ee(){ln||(ln=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",R))}ee.isReactWarning=!0,Object.defineProperty(h,"key",{get:ee,configurable:!0})}function H(){var h=M(this.type);return Uo[h]||(Uo[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function I(h,R,ee,ie,we,ze,Me,ue){return ee=ze.ref,h={$$typeof:z,type:h,key:R,props:ze,_owner:we},(ee!==void 0?ee:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:H}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function Se(h,R){return R=I(h.type,R,void 0,void 0,h._owner,h.props,h._debugStack,h._debugTask),h._store&&(R._store.validated=h._store.validated),R}function ne(h){return typeof h=="object"&&h!==null&&h.$$typeof===z}function fe(h){var R={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(ee){return R[ee]})}function de(h,R){return typeof h=="object"&&h!==null&&h.key!=null?(C(h.key),fe(""+h.key)):R.toString(36)}function Ee(){}function je(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(Ee,Ee):(h.status="pending",h.then(function(R){h.status==="pending"&&(h.status="fulfilled",h.value=R)},function(R){h.status==="pending"&&(h.status="rejected",h.reason=R)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function K(h,R,ee,ie,we){var ze=typeof h;(ze==="undefined"||ze==="boolean")&&(h=null);var Me=!1;if(h===null)Me=!0;else switch(ze){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(h.$$typeof){case z:case ae:Me=!0;break;case _e:return Me=h._init,K(Me(h._payload),R,ee,ie,we)}}if(Me){Me=h,we=we(Me);var ue=ie===""?"."+de(Me,0):ie;return ms(we)?(ee="",ue!=null&&(ee=ue.replace(er,"$&/")+"/"),K(we,R,ee,"",function(We){return We})):we!=null&&(ne(we)&&(we.key!=null&&(Me&&Me.key===we.key||C(we.key)),ee=Se(we,ee+(we.key==null||Me&&Me.key===we.key?"":(""+we.key).replace(er,"$&/")+"/")+ue),ie!==""&&Me!=null&&ne(Me)&&Me.key==null&&Me._store&&!Me._store.validated&&(ee._store.validated=2),we=ee),R.push(we)),1}if(Me=0,ue=ie===""?".":ie+":",ms(h))for(var Te=0;Te<h.length;Te++)ie=h[Te],ze=ue+de(ie,Te),Me+=K(ie,R,ee,ze,we);else if(Te=d(h),typeof Te=="function")for(Te===h.entries&&(Or||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Or=!0),h=Te.call(h),Te=0;!(ie=h.next()).done;)ie=ie.value,ze=ue+de(ie,Te++),Me+=K(ie,R,ee,ze,we);else if(ze==="object"){if(typeof h.then=="function")return K(je(h),R,ee,ie,we);throw R=String(h),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return Me}function J(h,R,ee){if(h==null)return h;var ie=[],we=0;return K(h,ie,"","",function(ze){return R.call(ee,ze,we++)}),ie}function ce(h){if(h._status===-1){var R=h._result;R=R(),R.then(function(ee){(h._status===0||h._status===-1)&&(h._status=1,h._result=ee)},function(ee){(h._status===0||h._status===-1)&&(h._status=2,h._result=ee)}),h._status===-1&&(h._status=0,h._result=R)}if(h._status===1)return R=h._result,R===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
10
|
|
|
11
11
|
Your code should look like:
|
|
12
12
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -18,7 +18,7 @@ Your code should look like:
|
|
|
18
18
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
19
|
2. You might be breaking the Rules of Hooks
|
|
20
20
|
3. You might have more than one copy of React in the same app
|
|
21
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}function Ne(){}function X(h){if(kn===null)try{var R=("require"+Math.random()).slice(0,7);kn=(i&&i[R]).call(i,"timers").setImmediate}catch{kn=function(le){Pr===!1&&(Pr=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var we=new MessageChannel;we.port1.onmessage=le,we.port2.postMessage(void 0)}}return kn(h)}function W(h){return 1<h.length&&typeof AggregateError=="function"?new AggregateError(h):h[0]}function V(h,R){R!==Us-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Us=R}function T(h,R,ee){var le=Be.actQueue;if(le!==null)if(le.length!==0)try{k(le),X(function(){return T(h,R,ee)});return}catch(we){Be.thrownErrors.push(we)}else Be.actQueue=null;0<Be.thrownErrors.length?(le=W(Be.thrownErrors),Be.thrownErrors.length=0,ee(le)):R(h)}function k(h){if(!gn){gn=!0;var R=0;try{for(;R<h.length;R++){var ee=h[R];do{Be.didUsePromise=!1;var le=ee(!1);if(le!==null){if(Be.didUsePromise){h[R]=ee,h.splice(0,R);return}ee=le}else break}while(!0)}h.length=0}catch(we){h.splice(0,R+1),Be.thrownErrors.push(we)}finally{gn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var z=Symbol.for("react.transitional.element"),ie=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),De=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),Ge=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Ie=Symbol.for("react.activity"),Ct=Symbol.iterator,on={},Mn={isMounted:function(){return!1},enqueueForceUpdate:function(h){p(h,"forceUpdate")},enqueueReplaceState:function(h){p(h,"replaceState")},enqueueSetState:function(h){p(h,"setState")}},Mr=Object.assign,To={};Object.freeze(To),v.prototype.isReactComponent={},v.prototype.setState=function(h,R){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,R,"setState")},v.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};var St={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},an;for(an in St)St.hasOwnProperty(an)&&c(an,St[an]);N.prototype=v.prototype,St=j.prototype=new N,St.constructor=j,Mr(St,v.prototype),St.isPureReactComponent=!0;var ms=Array.isArray,On=Symbol.for("react.client.reference"),Be={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Js=Object.prototype.hasOwnProperty,Pt=console.createTask?console.createTask:function(){return null};St={"react-stack-bottom-frame":function(h){return h()}};var ln,ja,Uo={},Ws=St["react-stack-bottom-frame"].bind(St,A)(),Co=Pt(f(A)),Or=!1,er=/\/+/g,Pn=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},Pr=!1,kn=null,Us=0,zn=!1,gn=!1,fs=typeof queueMicrotask=="function"?function(h){queueMicrotask(function(){return queueMicrotask(h)})}:X;St=Object.freeze({__proto__:null,c:function(h){return oe().useMemoCache(h)}}),a.Children={map:J,forEach:function(h,R,ee){J(h,function(){R.apply(this,arguments)},ee)},count:function(h){var R=0;return J(h,function(){R++}),R},toArray:function(h){return J(h,function(R){return R})||[]},only:function(h){if(!ne(h))throw Error("React.Children.only expected to receive a single React element child.");return h}},a.Component=v,a.Fragment=w,a.Profiler=Z,a.PureComponent=j,a.StrictMode=Y,a.Suspense=be,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Be,a.__COMPILER_RUNTIME=St,a.act=function(h){var R=Be.actQueue,ee=Us;Us++;var le=Be.actQueue=R!==null?R:[],we=!1;try{var ze=h()}catch(Te){Be.thrownErrors.push(Te)}if(0<Be.thrownErrors.length)throw V(R,ee),h=W(Be.thrownErrors),Be.thrownErrors.length=0,h;if(ze!==null&&typeof ze=="object"&&typeof ze.then=="function"){var Me=ze;return fs(function(){we||zn||(zn=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Te,We){we=!0,Me.then(function(Et){if(V(R,ee),ee===0){try{k(le),X(function(){return T(Et,Te,We)})}catch(Rt){Be.thrownErrors.push(Rt)}if(0<Be.thrownErrors.length){var kr=W(Be.thrownErrors);Be.thrownErrors.length=0,We(kr)}}else Te(Et)},function(Et){V(R,ee),0<Be.thrownErrors.length&&(Et=W(Be.thrownErrors),Be.thrownErrors.length=0),We(Et)})}}}var ue=ze;if(V(R,ee),ee===0&&(k(le),le.length!==0&&fs(function(){we||zn||(zn=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Be.actQueue=null),0<Be.thrownErrors.length)throw h=W(Be.thrownErrors),Be.thrownErrors.length=0,h;return{then:function(Te,We){we=!0,ee===0?(Be.actQueue=le,X(function(){return T(ue,Te,We)})):Te(ue)}}},a.cache=function(h){return function(){return h.apply(null,arguments)}},a.captureOwnerStack=function(){var h=Be.getCurrentStack;return h===null?null:h()},a.cloneElement=function(h,R,ee){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var le=Mr({},h.props),we=h.key,ze=h._owner;if(R!=null){var Me;e:{if(Js.call(R,"ref")&&(Me=Object.getOwnPropertyDescriptor(R,"ref").get)&&Me.isReactWarning){Me=!1;break e}Me=R.ref!==void 0}Me&&(ze=g()),G(R)&&(C(R.key),we=""+R.key);for(ue in R)!Js.call(R,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&R.ref===void 0||(le[ue]=R[ue])}var ue=arguments.length-2;if(ue===1)le.children=ee;else if(1<ue){Me=Array(ue);for(var Te=0;Te<ue;Te++)Me[Te]=arguments[Te+2];le.children=Me}for(le=I(h.type,we,void 0,void 0,ze,le,h._debugStack,h._debugTask),we=2;we<arguments.length;we++)ze=arguments[we],ne(ze)&&ze._store&&(ze._store.validated=1);return le},a.createContext=function(h){return h={$$typeof:De,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:re,_context:h},h._currentRenderer=null,h._currentRenderer2=null,h},a.createElement=function(h,R,ee){for(var le=2;le<arguments.length;le++){var we=arguments[le];ne(we)&&we._store&&(we._store.validated=1)}if(le={},we=null,R!=null)for(Te in ja||!("__self"in R)||"key"in R||(ja=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),G(R)&&(C(R.key),we=""+R.key),R)Js.call(R,Te)&&Te!=="key"&&Te!=="__self"&&Te!=="__source"&&(le[Te]=R[Te]);var ze=arguments.length-2;if(ze===1)le.children=ee;else if(1<ze){for(var Me=Array(ze),ue=0;ue<ze;ue++)Me[ue]=arguments[ue+2];Object.freeze&&Object.freeze(Me),le.children=Me}if(h&&h.defaultProps)for(Te in ze=h.defaultProps,ze)le[Te]===void 0&&(le[Te]=ze[Te]);we&&$(le,typeof h=="function"?h.displayName||h.name||"Unknown":h);var Te=1e4>Be.recentlyCreatedOwnerStacks++;return I(h,we,void 0,void 0,g(),le,Te?Error("react-stack-top-frame"):Ws,Te?Pt(f(h)):Co)},a.createRef=function(){var h={current:null};return Object.seal(h),h},a.forwardRef=function(h){h!=null&&h.$$typeof===pe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof h!="function"?console.error("forwardRef requires a render function but was given %s.",h===null?"null":typeof h):h.length!==0&&h.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",h.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),h!=null&&h.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var R={$$typeof:ke,render:h},ee;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(le){ee=le,h.name||h.displayName||(Object.defineProperty(h,"name",{value:le}),h.displayName=le)}}),R},a.isValidElement=ne,a.lazy=function(h){return{$$typeof:_e,_payload:{_status:-1,_result:h},_init:ce}},a.memo=function(h,R){h==null&&console.error("memo: The first argument must be a component. Instead received: %s",h===null?"null":typeof h),R={$$typeof:pe,type:h,compare:R===void 0?null:R};var ee;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(le){ee=le,h.name||h.displayName||(Object.defineProperty(h,"name",{value:le}),h.displayName=le)}}),R},a.startTransition=function(h){var R=Be.T,ee={};Be.T=ee,ee._updatedFibers=new Set;try{var le=h(),we=Be.S;we!==null&&we(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(Ne,Pn)}catch(ze){Pn(ze)}finally{R===null&&ee._updatedFibers&&(h=ee._updatedFibers.size,ee._updatedFibers.clear(),10<h&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),Be.T=R}},a.unstable_useCacheRefresh=function(){return oe().useCacheRefresh()},a.use=function(h){return oe().use(h)},a.useActionState=function(h,R,ee){return oe().useActionState(h,R,ee)},a.useCallback=function(h,R){return oe().useCallback(h,R)},a.useContext=function(h){var R=oe();return h.$$typeof===re&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),R.useContext(h)},a.useDebugValue=function(h,R){return oe().useDebugValue(h,R)},a.useDeferredValue=function(h,R){return oe().useDeferredValue(h,R)},a.useEffect=function(h,R,ee){h==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var le=oe();if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return le.useEffect(h,R)},a.useId=function(){return oe().useId()},a.useImperativeHandle=function(h,R,ee){return oe().useImperativeHandle(h,R,ee)},a.useInsertionEffect=function(h,R){return h==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),oe().useInsertionEffect(h,R)},a.useLayoutEffect=function(h,R){return h==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),oe().useLayoutEffect(h,R)},a.useMemo=function(h,R){return oe().useMemo(h,R)},a.useOptimistic=function(h,R){return oe().useOptimistic(h,R)},a.useReducer=function(h,R,ee){return oe().useReducer(h,R,ee)},a.useRef=function(h){return oe().useRef(h)},a.useState=function(h){return oe().useState(h)},a.useSyncExternalStore=function(h,R,ee){return oe().useSyncExternalStore(h,R,ee)},a.useTransition=function(){return oe().useTransition()},a.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Dc,Dc.exports)),Dc.exports}var xN;function Oc(){return xN||(xN=1,Eh.exports=Hj()),Eh.exports}var gN;function _j(){if(gN)return Rd;gN=1;/**
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}function Ne(){}function X(h){if(kn===null)try{var R=("require"+Math.random()).slice(0,7);kn=(i&&i[R]).call(i,"timers").setImmediate}catch{kn=function(ie){Pr===!1&&(Pr=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var we=new MessageChannel;we.port1.onmessage=ie,we.port2.postMessage(void 0)}}return kn(h)}function W(h){return 1<h.length&&typeof AggregateError=="function"?new AggregateError(h):h[0]}function V(h,R){R!==Us-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Us=R}function T(h,R,ee){var ie=Be.actQueue;if(ie!==null)if(ie.length!==0)try{k(ie),X(function(){return T(h,R,ee)});return}catch(we){Be.thrownErrors.push(we)}else Be.actQueue=null;0<Be.thrownErrors.length?(ie=W(Be.thrownErrors),Be.thrownErrors.length=0,ee(ie)):R(h)}function k(h){if(!gn){gn=!0;var R=0;try{for(;R<h.length;R++){var ee=h[R];do{Be.didUsePromise=!1;var ie=ee(!1);if(ie!==null){if(Be.didUsePromise){h[R]=ee,h.splice(0,R);return}ee=ie}else break}while(!0)}h.length=0}catch(we){h.splice(0,R+1),Be.thrownErrors.push(we)}finally{gn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var z=Symbol.for("react.transitional.element"),ae=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),De=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),Ge=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Ie=Symbol.for("react.activity"),Ct=Symbol.iterator,on={},Mn={isMounted:function(){return!1},enqueueForceUpdate:function(h){p(h,"forceUpdate")},enqueueReplaceState:function(h){p(h,"replaceState")},enqueueSetState:function(h){p(h,"setState")}},Mr=Object.assign,To={};Object.freeze(To),v.prototype.isReactComponent={},v.prototype.setState=function(h,R){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,R,"setState")},v.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};var St={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},an;for(an in St)St.hasOwnProperty(an)&&c(an,St[an]);w.prototype=v.prototype,St=j.prototype=new w,St.constructor=j,Mr(St,v.prototype),St.isPureReactComponent=!0;var ms=Array.isArray,On=Symbol.for("react.client.reference"),Be={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Js=Object.prototype.hasOwnProperty,Pt=console.createTask?console.createTask:function(){return null};St={"react-stack-bottom-frame":function(h){return h()}};var ln,ja,Uo={},Ws=St["react-stack-bottom-frame"].bind(St,A)(),Co=Pt(f(A)),Or=!1,er=/\/+/g,Pn=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},Pr=!1,kn=null,Us=0,zn=!1,gn=!1,fs=typeof queueMicrotask=="function"?function(h){queueMicrotask(function(){return queueMicrotask(h)})}:X;St=Object.freeze({__proto__:null,c:function(h){return oe().useMemoCache(h)}}),a.Children={map:J,forEach:function(h,R,ee){J(h,function(){R.apply(this,arguments)},ee)},count:function(h){var R=0;return J(h,function(){R++}),R},toArray:function(h){return J(h,function(R){return R})||[]},only:function(h){if(!ne(h))throw Error("React.Children.only expected to receive a single React element child.");return h}},a.Component=v,a.Fragment=N,a.Profiler=Z,a.PureComponent=j,a.StrictMode=q,a.Suspense=be,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Be,a.__COMPILER_RUNTIME=St,a.act=function(h){var R=Be.actQueue,ee=Us;Us++;var ie=Be.actQueue=R!==null?R:[],we=!1;try{var ze=h()}catch(Te){Be.thrownErrors.push(Te)}if(0<Be.thrownErrors.length)throw V(R,ee),h=W(Be.thrownErrors),Be.thrownErrors.length=0,h;if(ze!==null&&typeof ze=="object"&&typeof ze.then=="function"){var Me=ze;return fs(function(){we||zn||(zn=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Te,We){we=!0,Me.then(function(Et){if(V(R,ee),ee===0){try{k(ie),X(function(){return T(Et,Te,We)})}catch(Rt){Be.thrownErrors.push(Rt)}if(0<Be.thrownErrors.length){var kr=W(Be.thrownErrors);Be.thrownErrors.length=0,We(kr)}}else Te(Et)},function(Et){V(R,ee),0<Be.thrownErrors.length&&(Et=W(Be.thrownErrors),Be.thrownErrors.length=0),We(Et)})}}}var ue=ze;if(V(R,ee),ee===0&&(k(ie),ie.length!==0&&fs(function(){we||zn||(zn=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Be.actQueue=null),0<Be.thrownErrors.length)throw h=W(Be.thrownErrors),Be.thrownErrors.length=0,h;return{then:function(Te,We){we=!0,ee===0?(Be.actQueue=ie,X(function(){return T(ue,Te,We)})):Te(ue)}}},a.cache=function(h){return function(){return h.apply(null,arguments)}},a.captureOwnerStack=function(){var h=Be.getCurrentStack;return h===null?null:h()},a.cloneElement=function(h,R,ee){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var ie=Mr({},h.props),we=h.key,ze=h._owner;if(R!=null){var Me;e:{if(Js.call(R,"ref")&&(Me=Object.getOwnPropertyDescriptor(R,"ref").get)&&Me.isReactWarning){Me=!1;break e}Me=R.ref!==void 0}Me&&(ze=g()),G(R)&&(C(R.key),we=""+R.key);for(ue in R)!Js.call(R,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&R.ref===void 0||(ie[ue]=R[ue])}var ue=arguments.length-2;if(ue===1)ie.children=ee;else if(1<ue){Me=Array(ue);for(var Te=0;Te<ue;Te++)Me[Te]=arguments[Te+2];ie.children=Me}for(ie=I(h.type,we,void 0,void 0,ze,ie,h._debugStack,h._debugTask),we=2;we<arguments.length;we++)ze=arguments[we],ne(ze)&&ze._store&&(ze._store.validated=1);return ie},a.createContext=function(h){return h={$$typeof:De,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:se,_context:h},h._currentRenderer=null,h._currentRenderer2=null,h},a.createElement=function(h,R,ee){for(var ie=2;ie<arguments.length;ie++){var we=arguments[ie];ne(we)&&we._store&&(we._store.validated=1)}if(ie={},we=null,R!=null)for(Te in ja||!("__self"in R)||"key"in R||(ja=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),G(R)&&(C(R.key),we=""+R.key),R)Js.call(R,Te)&&Te!=="key"&&Te!=="__self"&&Te!=="__source"&&(ie[Te]=R[Te]);var ze=arguments.length-2;if(ze===1)ie.children=ee;else if(1<ze){for(var Me=Array(ze),ue=0;ue<ze;ue++)Me[ue]=arguments[ue+2];Object.freeze&&Object.freeze(Me),ie.children=Me}if(h&&h.defaultProps)for(Te in ze=h.defaultProps,ze)ie[Te]===void 0&&(ie[Te]=ze[Te]);we&&$(ie,typeof h=="function"?h.displayName||h.name||"Unknown":h);var Te=1e4>Be.recentlyCreatedOwnerStacks++;return I(h,we,void 0,void 0,g(),ie,Te?Error("react-stack-top-frame"):Ws,Te?Pt(f(h)):Co)},a.createRef=function(){var h={current:null};return Object.seal(h),h},a.forwardRef=function(h){h!=null&&h.$$typeof===pe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof h!="function"?console.error("forwardRef requires a render function but was given %s.",h===null?"null":typeof h):h.length!==0&&h.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",h.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),h!=null&&h.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var R={$$typeof:ke,render:h},ee;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(ie){ee=ie,h.name||h.displayName||(Object.defineProperty(h,"name",{value:ie}),h.displayName=ie)}}),R},a.isValidElement=ne,a.lazy=function(h){return{$$typeof:_e,_payload:{_status:-1,_result:h},_init:ce}},a.memo=function(h,R){h==null&&console.error("memo: The first argument must be a component. Instead received: %s",h===null?"null":typeof h),R={$$typeof:pe,type:h,compare:R===void 0?null:R};var ee;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(ie){ee=ie,h.name||h.displayName||(Object.defineProperty(h,"name",{value:ie}),h.displayName=ie)}}),R},a.startTransition=function(h){var R=Be.T,ee={};Be.T=ee,ee._updatedFibers=new Set;try{var ie=h(),we=Be.S;we!==null&&we(ee,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(Ne,Pn)}catch(ze){Pn(ze)}finally{R===null&&ee._updatedFibers&&(h=ee._updatedFibers.size,ee._updatedFibers.clear(),10<h&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),Be.T=R}},a.unstable_useCacheRefresh=function(){return oe().useCacheRefresh()},a.use=function(h){return oe().use(h)},a.useActionState=function(h,R,ee){return oe().useActionState(h,R,ee)},a.useCallback=function(h,R){return oe().useCallback(h,R)},a.useContext=function(h){var R=oe();return h.$$typeof===se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),R.useContext(h)},a.useDebugValue=function(h,R){return oe().useDebugValue(h,R)},a.useDeferredValue=function(h,R){return oe().useDeferredValue(h,R)},a.useEffect=function(h,R,ee){h==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var ie=oe();if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ie.useEffect(h,R)},a.useId=function(){return oe().useId()},a.useImperativeHandle=function(h,R,ee){return oe().useImperativeHandle(h,R,ee)},a.useInsertionEffect=function(h,R){return h==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),oe().useInsertionEffect(h,R)},a.useLayoutEffect=function(h,R){return h==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),oe().useLayoutEffect(h,R)},a.useMemo=function(h,R){return oe().useMemo(h,R)},a.useOptimistic=function(h,R){return oe().useOptimistic(h,R)},a.useReducer=function(h,R,ee){return oe().useReducer(h,R,ee)},a.useRef=function(h){return oe().useRef(h)},a.useState=function(h){return oe().useState(h)},a.useSyncExternalStore=function(h,R,ee){return oe().useSyncExternalStore(h,R,ee)},a.useTransition=function(){return oe().useTransition()},a.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Dc,Dc.exports)),Dc.exports}var xN;function Oc(){return xN||(xN=1,Eh.exports=Hj()),Eh.exports}var gN;function _j(){if(gN)return Rd;gN=1;/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-jsx-dev-runtime.development.js
|
|
24
24
|
*
|
|
@@ -26,12 +26,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/return function(){function i(
|
|
29
|
+
*/return function(){function i(N){if(N==null)return null;if(typeof N=="function")return N.$$typeof===ce?null:N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case $:return"Fragment";case I:return"Profiler";case H:return"StrictMode";case de:return"Suspense";case Ee:return"SuspenseList";case J:return"Activity"}if(typeof N=="object")switch(typeof N.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),N.$$typeof){case G:return"Portal";case ne:return(N.displayName||"Context")+".Provider";case Se:return(N._context.displayName||"Context")+".Consumer";case fe:var q=N.render;return N=N.displayName,N||(N=q.displayName||q.name||"",N=N!==""?"ForwardRef("+N+")":"ForwardRef"),N;case je:return q=N.displayName||null,q!==null?q:i(N.type)||"Memo";case K:q=N._payload,N=N._init;try{return i(N(q))}catch{}}return null}function a(N){return""+N}function c(N){try{a(N);var q=!1}catch{q=!0}if(q){q=console;var Z=q.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&N[Symbol.toStringTag]||N.constructor.name||"Object";return Z.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),a(N)}}function d(N){if(N===$)return"<>";if(typeof N=="object"&&N!==null&&N.$$typeof===K)return"<...>";try{var q=i(N);return q?"<"+q+">":"<...>"}catch{return"<...>"}}function p(){var N=oe.A;return N===null?null:N.getOwner()}function v(){return Error("react-stack-top-frame")}function w(N){if(Ne.call(N,"key")){var q=Object.getOwnPropertyDescriptor(N,"key").get;if(q&&q.isReactWarning)return!1}return N.key!==void 0}function j(N,q){function Z(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",q))}Z.isReactWarning=!0,Object.defineProperty(N,"key",{get:Z,configurable:!0})}function y(){var N=i(this.type);return T[N]||(T[N]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),N=this.props.ref,N!==void 0?N:null}function C(N,q,Z,se,De,ke,be,Ge){return Z=ke.ref,N={$$typeof:A,type:N,key:q,props:ke,_owner:De},(Z!==void 0?Z:null)!==null?Object.defineProperty(N,"ref",{enumerable:!1,get:y}):Object.defineProperty(N,"ref",{enumerable:!1,value:null}),N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(N,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(N,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:be}),Object.defineProperty(N,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N}function M(N,q,Z,se,De,ke,be,Ge){var pe=q.children;if(pe!==void 0)if(se)if(X(pe)){for(se=0;se<pe.length;se++)f(pe[se]);Object.freeze&&Object.freeze(pe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(pe);if(Ne.call(q,"key")){pe=i(N);var _e=Object.keys(q).filter(function(Ct){return Ct!=="key"});se=0<_e.length?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}",ae[pe+se]||(_e=0<_e.length?"{"+_e.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
30
30
|
let props = %s;
|
|
31
31
|
<%s {...props} />
|
|
32
32
|
React keys must be passed directly to JSX without using spread:
|
|
33
33
|
let props = %s;
|
|
34
|
-
<%s key={someKey} {...props} />`,
|
|
34
|
+
<%s key={someKey} {...props} />`,se,pe,_e,pe),ae[pe+se]=!0)}if(pe=null,Z!==void 0&&(c(Z),pe=""+Z),w(q)&&(c(q.key),pe=""+q.key),"key"in q){Z={};for(var Ie in q)Ie!=="key"&&(Z[Ie]=q[Ie])}else Z=q;return pe&&j(Z,typeof N=="function"?N.displayName||N.name||"Unknown":N),C(N,pe,ke,De,p(),Z,be,Ge)}function f(N){typeof N=="object"&&N!==null&&N.$$typeof===A&&N._store&&(N._store.validated=1)}var g=Oc(),A=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),Se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),oe=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,X=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(N){return N()}};var V,T={},k=g["react-stack-bottom-frame"].bind(g,v)(),z=W(d(v)),ae={};Rd.Fragment=$,Rd.jsxDEV=function(N,q,Z,se,De,ke){var be=1e4>oe.recentlyCreatedOwnerStacks++;return M(N,q,Z,se,De,ke,be?Error("react-stack-top-frame"):k,be?W(d(N)):z)}}(),Rd}var yN;function Bj(){return yN||(yN=1,Sh.exports=_j()),Sh.exports}var l=Bj(),Q=Oc();const re=u1(Q),d1=zj({__proto__:null,default:re},[Q]);var jh={exports:{}},wc={},Dh={exports:{}},Th={},NN;function Lj(){return NN||(NN=1,function(i){/**
|
|
35
35
|
* @license React
|
|
36
36
|
* scheduler.development.js
|
|
37
37
|
*
|
|
@@ -39,7 +39,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/(function(){function a(){if(de=!1,J){var T=i.unstable_now();Ne=T;var k=!0;try{e:{ne=!1,fe&&(fe=!1,je(ce),ce=-1),Se=!0;var z=I;try{t:{for(
|
|
42
|
+
*/(function(){function a(){if(de=!1,J){var T=i.unstable_now();Ne=T;var k=!0;try{e:{ne=!1,fe&&(fe=!1,je(ce),ce=-1),Se=!0;var z=I;try{t:{for(w(T),H=d(A);H!==null&&!(H.expirationTime>T&&y());){var ae=H.callback;if(typeof ae=="function"){H.callback=null,I=H.priorityLevel;var N=ae(H.expirationTime<=T);if(T=i.unstable_now(),typeof N=="function"){H.callback=N,w(T),k=!0;break t}H===d(A)&&p(A),w(T)}else p(A);H=d(A)}if(H!==null)k=!0;else{var q=d(G);q!==null&&C(j,q.startTime-T),k=!1}}break e}finally{H=null,I=z,Se=!1}k=void 0}}finally{k?X():J=!1}}}function c(T,k){var z=T.length;T.push(k);e:for(;0<z;){var ae=z-1>>>1,N=T[ae];if(0<v(N,k))T[ae]=k,T[z]=N,z=ae;else break e}}function d(T){return T.length===0?null:T[0]}function p(T){if(T.length===0)return null;var k=T[0],z=T.pop();if(z!==k){T[0]=z;e:for(var ae=0,N=T.length,q=N>>>1;ae<q;){var Z=2*(ae+1)-1,se=T[Z],De=Z+1,ke=T[De];if(0>v(se,z))De<N&&0>v(ke,se)?(T[ae]=ke,T[De]=z,ae=De):(T[ae]=se,T[Z]=z,ae=Z);else if(De<N&&0>v(ke,z))T[ae]=ke,T[De]=z,ae=De;else break e}}return k}function v(T,k){var z=T.sortIndex-k.sortIndex;return z!==0?z:T.id-k.id}function w(T){for(var k=d(G);k!==null;){if(k.callback===null)p(G);else if(k.startTime<=T)p(G),k.sortIndex=k.expirationTime,c(A,k);else break;k=d(G)}}function j(T){if(fe=!1,w(T),!ne)if(d(A)!==null)ne=!0,J||(J=!0,X());else{var k=d(G);k!==null&&C(j,k.startTime-T)}}function y(){return de?!0:!(i.unstable_now()-Ne<oe)}function C(T,k){ce=Ee(function(){T(i.unstable_now())},k)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var M=performance;i.unstable_now=function(){return M.now()}}else{var f=Date,g=f.now();i.unstable_now=function(){return f.now()-g}}var A=[],G=[],$=1,H=null,I=3,Se=!1,ne=!1,fe=!1,de=!1,Ee=typeof setTimeout=="function"?setTimeout:null,je=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null,J=!1,ce=-1,oe=5,Ne=-1;if(typeof K=="function")var X=function(){K(a)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,V=W.port2;W.port1.onmessage=a,X=function(){V.postMessage(null)}}else X=function(){Ee(a,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(T){T.callback=null},i.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<T?Math.floor(1e3/T):5},i.unstable_getCurrentPriorityLevel=function(){return I},i.unstable_next=function(T){switch(I){case 1:case 2:case 3:var k=3;break;default:k=I}var z=I;I=k;try{return T()}finally{I=z}},i.unstable_requestPaint=function(){de=!0},i.unstable_runWithPriority=function(T,k){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var z=I;I=T;try{return k()}finally{I=z}},i.unstable_scheduleCallback=function(T,k,z){var ae=i.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?ae+z:ae):z=ae,T){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=z+N,T={id:$++,callback:k,priorityLevel:T,startTime:z,expirationTime:N,sortIndex:-1},z>ae?(T.sortIndex=z,c(G,T),d(A)===null&&T===d(G)&&(fe?(je(ce),ce=-1):fe=!0,C(j,z-ae))):(T.sortIndex=N,c(A,T),ne||Se||(ne=!0,J||(J=!0,X()))),T},i.unstable_shouldYield=y,i.unstable_wrapCallback=function(T){var k=I;return function(){var z=I;I=k;try{return T.apply(this,arguments)}finally{I=z}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Th)),Th}var wN;function qj(){return wN||(wN=1,Dh.exports=Lj()),Dh.exports}var Uh={exports:{}},sn={},SN;function Fj(){if(SN)return sn;SN=1;/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-dom.development.js
|
|
45
45
|
*
|
|
@@ -47,11 +47,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/return function(){function i(){}function a(f){return""+f}function c(f,g,A){var G=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(G);var $=!1}catch{$=!0}return $&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&G[Symbol.toStringTag]||G.constructor.name||"Object"),a(G)),{$$typeof:C,key:G==null?null:""+G,children:f,containerInfo:g,implementation:A}}function d(f,g){if(f==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}function p(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":'something with type "'+typeof f+'"'}function v(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":typeof f=="string"?JSON.stringify(f):typeof f=="number"?"`"+f+"`":'something with type "'+typeof f+'"'}function
|
|
50
|
+
*/return function(){function i(){}function a(f){return""+f}function c(f,g,A){var G=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(G);var $=!1}catch{$=!0}return $&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&G[Symbol.toStringTag]||G.constructor.name||"Object"),a(G)),{$$typeof:C,key:G==null?null:""+G,children:f,containerInfo:g,implementation:A}}function d(f,g){if(f==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}function p(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":'something with type "'+typeof f+'"'}function v(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":typeof f=="string"?JSON.stringify(f):typeof f=="number"?"`"+f+"`":'something with type "'+typeof f+'"'}function w(){var f=M.H;return f===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
51
51
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
52
52
|
2. You might be breaking the Rules of Hooks
|
|
53
53
|
3. You might have more than one copy of React in the same app
|
|
54
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var j=Oc(),y={d:{f:i,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},C=Symbol.for("react.portal"),M=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,sn.createPortal=function(f,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error("Target container is not a DOM element.");return c(f,g,null,A)},sn.flushSync=function(f){var g=M.T,A=y.p;try{if(M.T=null,y.p=2,f)return f()}finally{M.T=g,y.p=A,y.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},sn.preconnect=function(f,g){typeof f=="string"&&f?g!=null&&typeof g!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(g)):g!=null&&typeof g.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",p(g.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f)),typeof f=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,y.d.C(f,g))},sn.prefetchDNS=function(f){if(typeof f!="string"||!f)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f));else if(1<arguments.length){var g=arguments[1];typeof g=="object"&&g.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(g)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(g))}typeof f=="string"&&y.d.D(f)},sn.preinit=function(f,g){if(typeof f=="string"&&f?g==null||typeof g!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(g)):g.as!=="style"&&g.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(g.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f)),typeof f=="string"&&g&&typeof g.as=="string"){var A=g.as,G=d(A,g.crossOrigin),$=typeof g.integrity=="string"?g.integrity:void 0,H=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?y.d.S(f,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:G,integrity:$,fetchPriority:H}):A==="script"&&y.d.X(f,{crossOrigin:G,integrity:$,fetchPriority:H,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},sn.preinitModule=function(f,g){var A="";if(typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":g&&"as"in g&&g.as!=="script"&&(A+=" The `as` option encountered was "+v(g.as)+"."),A)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",A);else switch(A=g&&typeof g.as=="string"?g.as:"script",A){case"script":break;default:A=v(A),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',A,f)}typeof f=="string"&&(typeof g=="object"&&g!==null?(g.as==null||g.as==="script")&&(A=d(g.as,g.crossOrigin),y.d.M(f,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})):g==null&&y.d.M(f))},sn.preload=function(f,g){var A="";if(typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g==null||typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":typeof g.as=="string"&&g.as||(A+=" The `as` option encountered was "+p(g.as)+"."),A&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',A),typeof f=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){A=g.as;var G=d(A,g.crossOrigin);y.d.L(f,A,{crossOrigin:G,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},sn.preloadModule=function(f,g){var A="";typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":g&&"as"in g&&typeof g.as!="string"&&(A+=" The `as` option encountered was "+p(g.as)+"."),A&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',A),typeof f=="string"&&(g?(A=d(g.as,g.crossOrigin),y.d.m(f,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})):y.d.m(f))},sn.requestFormReset=function(f){y.d.r(f)},sn.unstable_batchedUpdates=function(f,g){return f(g)},sn.useFormState=function(f,g,A){return
|
|
54
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var j=Oc(),y={d:{f:i,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},C=Symbol.for("react.portal"),M=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,sn.createPortal=function(f,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error("Target container is not a DOM element.");return c(f,g,null,A)},sn.flushSync=function(f){var g=M.T,A=y.p;try{if(M.T=null,y.p=2,f)return f()}finally{M.T=g,y.p=A,y.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},sn.preconnect=function(f,g){typeof f=="string"&&f?g!=null&&typeof g!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(g)):g!=null&&typeof g.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",p(g.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f)),typeof f=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,y.d.C(f,g))},sn.prefetchDNS=function(f){if(typeof f!="string"||!f)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f));else if(1<arguments.length){var g=arguments[1];typeof g=="object"&&g.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(g)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(g))}typeof f=="string"&&y.d.D(f)},sn.preinit=function(f,g){if(typeof f=="string"&&f?g==null||typeof g!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(g)):g.as!=="style"&&g.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(g.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f)),typeof f=="string"&&g&&typeof g.as=="string"){var A=g.as,G=d(A,g.crossOrigin),$=typeof g.integrity=="string"?g.integrity:void 0,H=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?y.d.S(f,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:G,integrity:$,fetchPriority:H}):A==="script"&&y.d.X(f,{crossOrigin:G,integrity:$,fetchPriority:H,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},sn.preinitModule=function(f,g){var A="";if(typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":g&&"as"in g&&g.as!=="script"&&(A+=" The `as` option encountered was "+v(g.as)+"."),A)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",A);else switch(A=g&&typeof g.as=="string"?g.as:"script",A){case"script":break;default:A=v(A),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',A,f)}typeof f=="string"&&(typeof g=="object"&&g!==null?(g.as==null||g.as==="script")&&(A=d(g.as,g.crossOrigin),y.d.M(f,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})):g==null&&y.d.M(f))},sn.preload=function(f,g){var A="";if(typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g==null||typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":typeof g.as=="string"&&g.as||(A+=" The `as` option encountered was "+p(g.as)+"."),A&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',A),typeof f=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){A=g.as;var G=d(A,g.crossOrigin);y.d.L(f,A,{crossOrigin:G,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},sn.preloadModule=function(f,g){var A="";typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":g&&"as"in g&&typeof g.as!="string"&&(A+=" The `as` option encountered was "+p(g.as)+"."),A&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',A),typeof f=="string"&&(g?(A=d(g.as,g.crossOrigin),y.d.m(f,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})):y.d.m(f))},sn.requestFormReset=function(f){y.d.r(f)},sn.unstable_batchedUpdates=function(f,g){return f(g)},sn.useFormState=function(f,g,A){return w().useFormState(f,g,A)},sn.useFormStatus=function(){return w().useHostTransitionStatus()},sn.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),sn}var EN;function m1(){return EN||(EN=1,Uh.exports=Fj()),Uh.exports}var jN;function Yj(){if(jN)return wc;jN=1;/**
|
|
55
55
|
* @license React
|
|
56
56
|
* react-dom-client.development.js
|
|
57
57
|
*
|
|
@@ -59,9 +59,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/return function(){function i(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function a(e,t,n,s){if(n>=t.length)return s;var r=t[n],o=Zt(e)?e.slice():qe({},e);return o[r]=a(e[r],t,n+1,s),o}function c(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<n.length-1;s++)if(t[s]!==n[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,n,0)}}function d(e,t,n,s){var r=t[s],o=Zt(e)?e.slice():qe({},e);return s+1===t.length?(o[n[s]]=o[r],Zt(o)?o.splice(r,1):delete o[r]):o[r]=d(e[r],t,n,s+1),o}function p(e,t,n){var s=t[n],r=Zt(e)?e.slice():qe({},e);return n+1===t.length?(Zt(r)?r.splice(s,1):delete r[s],r):(r[s]=p(e[s],t,n+1),r)}function v(){return!1}function N(){return null}function j(){}function y(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function C(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function M(){}function f(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function g(e,t,n,s){return new Pw(e,t,n,s)}function A(e,t){e.context===Wr&&(If(e.current,2,t,e,null,null),ka())}function G(e,t){if(ts!==null){var n=t.staleFamilies;t=t.updatedFamilies,ji(),mm(e.current,t,n),ka()}}function $(e){ts=e}function H(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Se(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ne(e){if(I(e)!==e)throw Error("Unable to find node on an unmounted component.")}function fe(e){var t=e.alternate;if(!t){if(t=I(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,s=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return ne(r),e;if(o===s)return ne(r),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==s.return)n=r,s=o;else{for(var u=!1,m=r.child;m;){if(m===n){u=!0,n=r,s=o;break}if(m===s){u=!0,s=r,n=o;break}m=m.sibling}if(!u){for(m=o.child;m;){if(m===n){u=!0,n=o,s=r;break}if(m===s){u=!0,s=o,n=r;break}m=m.sibling}if(!u)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==s)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function de(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=de(e),t!==null)return t;e=e.sibling}return null}function Ee(e){return e===null||typeof e!="object"?null:(e=Hg&&e[Hg]||e["@@iterator"],typeof e=="function"?e:null)}function je(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===KS?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fa:return"Fragment";case tp:return"Profiler";case Pu:return"StrictMode";case sp:return"Suspense";case rp:return"SuspenseList";case op:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case qa:return"Portal";case zs:return(e.displayName||"Context")+".Provider";case np:return(e._context.displayName||"Context")+".Consumer";case Oi: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:je(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return je(e(t))}catch{}}return null}function K(e){return typeof e.tag=="number"?J(e):typeof e.name=="string"?e.name:null}function J(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.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 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return je(t);case 8:return t===Pu?"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 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return J(e.return)}return null}function ce(e){return{current:e}}function oe(e,t){0>ur?console.error("Unexpected pop."):(t!==lp[ur]&&console.error("Unexpected Fiber popped."),e.current=ap[ur],ap[ur]=null,lp[ur]=null,ur--)}function Ne(e,t,n){ur++,ap[ur]=e.current,lp[ur]=n,e.current=t}function X(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function W(e,t){Ne(Xr,t,e),Ne(Pi,e,e),Ne(Ir,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?mg(t):wr;break;default:if(n=t.tagName,t=t.namespaceURI)t=mg(t),t=fg(t,n);else switch(n){case"svg":t=El;break;case"math":t=wd;break;default:t=wr}}n=n.toLowerCase(),n=wb(null,n),n={context:t,ancestorInfo:n},oe(Ir,e),Ne(Ir,n,e)}function V(e){oe(Ir,e),oe(Pi,e),oe(Xr,e)}function T(){return X(Ir.current)}function k(e){e.memoizedState!==null&&Ne(zu,e,e);var t=X(Ir.current),n=e.type,s=fg(t.context,n);n=wb(t.ancestorInfo,n),s={context:s,ancestorInfo:n},t!==s&&(Ne(Pi,e,e),Ne(Ir,s,e))}function z(e){Pi.current===e&&(oe(Ir,e),oe(Pi,e)),zu.current===e&&(oe(zu,e),gc._currentValue=da)}function ie(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function w(e){try{return Y(e),!1}catch{return!0}}function Y(e){return""+e}function Z(e,t){if(w(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ie(e)),Y(e)}function re(e,t){if(w(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,ie(e)),Y(e)}function De(e){if(w(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ie(e)),Y(e)}function ke(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ga=t.inject(e),en=t}catch(n){console.error("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function be(e){if(typeof rE=="function"&&oE(e),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Ga,e)}catch(t){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",t))}}function Ge(e){me=e}function pe(){me!==null&&typeof me.markCommitStopped=="function"&&me.markCommitStopped()}function _e(e){me!==null&&typeof me.markComponentRenderStarted=="function"&&me.markComponentRenderStarted(e)}function Ie(){me!==null&&typeof me.markComponentRenderStopped=="function"&&me.markComponentRenderStopped()}function Ct(e){me!==null&&typeof me.markRenderStarted=="function"&&me.markRenderStarted(e)}function on(){me!==null&&typeof me.markRenderStopped=="function"&&me.markRenderStopped()}function Mn(e,t){me!==null&&typeof me.markStateUpdateScheduled=="function"&&me.markStateUpdateScheduled(e,t)}function Mr(e){return e>>>=0,e===0?32:31-(aE(e)/lE|0)|0}function To(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function St(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function an(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var r=0,o=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var m=s&134217727;return m!==0?(s=m&~o,s!==0?r=St(s):(u&=m,u!==0?r=St(u):n||(n=m&~e,n!==0&&(r=St(n))))):(m=s&~o,m!==0?r=St(m):u!==0?r=St(u):n||(n=s&~e,n!==0&&(r=St(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function ms(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function On(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Be(){var e=Hu;return Hu<<=1,(Hu&4194048)===0&&(Hu=256),e}function Js(){var e=_u;return _u<<=1,(_u&62914560)===0&&(_u=4194304),e}function Pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ln(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ja(e,t,n,s,r,o){var u=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var m=e.entanglements,b=e.expirationTimes,x=e.hiddenUpdates;for(n=u&~n;0<n;){var P=31-cn(n),L=1<<P;m[P]=0,b[P]=-1;var O=x[P];if(O!==null)for(x[P]=null,P=0;P<O.length;P++){var q=O[P];q!==null&&(q.lane&=-536870913)}n&=~L}s!==0&&Uo(e,s,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(u&~t))}function Uo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-cn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&4194090}function Ws(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-cn(n),r=1<<s;r&t|e[s]&t&&(e[s]|=t),n&=~r}}function Co(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Or(e,t,n){if(bs)for(e=e.pendingUpdatersLaneMap;0<n;){var s=31-cn(n),r=1<<s;e[s].add(t),n&=~r}}function er(e,t){if(bs)for(var n=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;0<t;){var r=31-cn(t);e=1<<r,r=n[r],0<r.size&&(r.forEach(function(o){var u=o.alternate;u!==null&&s.has(u)||s.add(o)}),r.clear()),t&=~e}}function Pn(e){return e&=-e,Wn<e?Bs<e?(e&134217727)!==0?mr:Bu:Bs:Wn}function Pr(){var e=st.p;return e!==0?e:(e=window.event,e===void 0?mr:Vg(e.type))}function kn(e,t){var n=st.p;try{return st.p=e,t()}finally{st.p=n}}function Us(e){delete e[tn],delete e[jn],delete e[mp],delete e[iE],delete e[cE]}function zn(e){var t=e[tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kr]||n[tn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gg(e);e!==null;){if(n=e[tn])return n;e=gg(e)}return t}e=n,n=e.parentNode}return null}function gn(e){if(e=e[tn]||e[Kr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function fs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function h(e){var t=e[_g];return t||(t=e[_g]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function R(e){e[ki]=!0}function ee(e,t){le(e,t),le(e+"Capture",t)}function le(e,t){$o[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),$o[e]=t;var n=e.toLowerCase();for(fp[n]=e,e==="onDoubleClick"&&(fp.ondblclick=e),e=0;e<t.length;e++)Bg.add(t[e])}function we(e,t){uE[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ze(e){return dr.call(qg,e)?!0:dr.call(Lg,e)?!1:dE.test(e)?qg[e]=!0:(Lg[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Me(e,t,n){if(ze(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(Z(n,t),e===""+n?n:e)}}function ue(e,t,n){if(ze(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}Z(n,t),e.setAttribute(t,""+n)}}function Te(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Z(n,t),e.setAttribute(t,""+n)}}function We(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}Z(s,n),e.setAttributeNS(t,n,""+s)}}function Et(){}function kr(){if(zi===0){Fg=console.log,Yg=console.info,Gg=console.warn,$g=console.error,Qg=console.group,Ig=console.groupCollapsed,Xg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Et,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}zi++}function Rt(){if(zi--,zi===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qe({},e,{value:Fg}),info:qe({},e,{value:Yg}),warn:qe({},e,{value:Gg}),error:qe({},e,{value:$g}),group:qe({},e,{value:Qg}),groupCollapsed:qe({},e,{value:Ig}),groupEnd:qe({},e,{value:Xg})})}0>zi&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function xt(e){if(pp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pp=t&&t[1]||"",Zg=-1<n.stack.indexOf(`
|
|
62
|
+
*/return function(){function i(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function a(e,t,n,s){if(n>=t.length)return s;var r=t[n],o=Zt(e)?e.slice():qe({},e);return o[r]=a(e[r],t,n+1,s),o}function c(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<n.length-1;s++)if(t[s]!==n[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,n,0)}}function d(e,t,n,s){var r=t[s],o=Zt(e)?e.slice():qe({},e);return s+1===t.length?(o[n[s]]=o[r],Zt(o)?o.splice(r,1):delete o[r]):o[r]=d(e[r],t,n,s+1),o}function p(e,t,n){var s=t[n],r=Zt(e)?e.slice():qe({},e);return n+1===t.length?(Zt(r)?r.splice(s,1):delete r[s],r):(r[s]=p(e[s],t,n+1),r)}function v(){return!1}function w(){return null}function j(){}function y(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function C(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function M(){}function f(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function g(e,t,n,s){return new Pw(e,t,n,s)}function A(e,t){e.context===Wr&&(If(e.current,2,t,e,null,null),ka())}function G(e,t){if(ts!==null){var n=t.staleFamilies;t=t.updatedFamilies,ji(),mm(e.current,t,n),ka()}}function $(e){ts=e}function H(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Se(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ne(e){if(I(e)!==e)throw Error("Unable to find node on an unmounted component.")}function fe(e){var t=e.alternate;if(!t){if(t=I(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,s=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return ne(r),e;if(o===s)return ne(r),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==s.return)n=r,s=o;else{for(var u=!1,m=r.child;m;){if(m===n){u=!0,n=r,s=o;break}if(m===s){u=!0,s=r,n=o;break}m=m.sibling}if(!u){for(m=o.child;m;){if(m===n){u=!0,n=o,s=r;break}if(m===s){u=!0,s=o,n=r;break}m=m.sibling}if(!u)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==s)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function de(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=de(e),t!==null)return t;e=e.sibling}return null}function Ee(e){return e===null||typeof e!="object"?null:(e=Hg&&e[Hg]||e["@@iterator"],typeof e=="function"?e:null)}function je(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===KS?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fa:return"Fragment";case tp:return"Profiler";case Pu:return"StrictMode";case sp:return"Suspense";case rp:return"SuspenseList";case op:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case qa:return"Portal";case zs:return(e.displayName||"Context")+".Provider";case np:return(e._context.displayName||"Context")+".Consumer";case Oi: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:je(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return je(e(t))}catch{}}return null}function K(e){return typeof e.tag=="number"?J(e):typeof e.name=="string"?e.name:null}function J(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.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 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return je(t);case 8:return t===Pu?"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 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return J(e.return)}return null}function ce(e){return{current:e}}function oe(e,t){0>ur?console.error("Unexpected pop."):(t!==lp[ur]&&console.error("Unexpected Fiber popped."),e.current=ap[ur],ap[ur]=null,lp[ur]=null,ur--)}function Ne(e,t,n){ur++,ap[ur]=e.current,lp[ur]=n,e.current=t}function X(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function W(e,t){Ne(Xr,t,e),Ne(Pi,e,e),Ne(Ir,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?mg(t):wr;break;default:if(n=t.tagName,t=t.namespaceURI)t=mg(t),t=fg(t,n);else switch(n){case"svg":t=El;break;case"math":t=wd;break;default:t=wr}}n=n.toLowerCase(),n=wb(null,n),n={context:t,ancestorInfo:n},oe(Ir,e),Ne(Ir,n,e)}function V(e){oe(Ir,e),oe(Pi,e),oe(Xr,e)}function T(){return X(Ir.current)}function k(e){e.memoizedState!==null&&Ne(zu,e,e);var t=X(Ir.current),n=e.type,s=fg(t.context,n);n=wb(t.ancestorInfo,n),s={context:s,ancestorInfo:n},t!==s&&(Ne(Pi,e,e),Ne(Ir,s,e))}function z(e){Pi.current===e&&(oe(Ir,e),oe(Pi,e)),zu.current===e&&(oe(zu,e),gc._currentValue=da)}function ae(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function N(e){try{return q(e),!1}catch{return!0}}function q(e){return""+e}function Z(e,t){if(N(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ae(e)),q(e)}function se(e,t){if(N(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,ae(e)),q(e)}function De(e){if(N(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ae(e)),q(e)}function ke(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ga=t.inject(e),en=t}catch(n){console.error("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function be(e){if(typeof rE=="function"&&oE(e),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Ga,e)}catch(t){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",t))}}function Ge(e){me=e}function pe(){me!==null&&typeof me.markCommitStopped=="function"&&me.markCommitStopped()}function _e(e){me!==null&&typeof me.markComponentRenderStarted=="function"&&me.markComponentRenderStarted(e)}function Ie(){me!==null&&typeof me.markComponentRenderStopped=="function"&&me.markComponentRenderStopped()}function Ct(e){me!==null&&typeof me.markRenderStarted=="function"&&me.markRenderStarted(e)}function on(){me!==null&&typeof me.markRenderStopped=="function"&&me.markRenderStopped()}function Mn(e,t){me!==null&&typeof me.markStateUpdateScheduled=="function"&&me.markStateUpdateScheduled(e,t)}function Mr(e){return e>>>=0,e===0?32:31-(aE(e)/lE|0)|0}function To(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function St(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function an(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var r=0,o=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var m=s&134217727;return m!==0?(s=m&~o,s!==0?r=St(s):(u&=m,u!==0?r=St(u):n||(n=m&~e,n!==0&&(r=St(n))))):(m=s&~o,m!==0?r=St(m):u!==0?r=St(u):n||(n=s&~e,n!==0&&(r=St(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function ms(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function On(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Be(){var e=Hu;return Hu<<=1,(Hu&4194048)===0&&(Hu=256),e}function Js(){var e=_u;return _u<<=1,(_u&62914560)===0&&(_u=4194304),e}function Pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ln(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ja(e,t,n,s,r,o){var u=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var m=e.entanglements,b=e.expirationTimes,x=e.hiddenUpdates;for(n=u&~n;0<n;){var P=31-cn(n),L=1<<P;m[P]=0,b[P]=-1;var O=x[P];if(O!==null)for(x[P]=null,P=0;P<O.length;P++){var F=O[P];F!==null&&(F.lane&=-536870913)}n&=~L}s!==0&&Uo(e,s,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(u&~t))}function Uo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-cn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&4194090}function Ws(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-cn(n),r=1<<s;r&t|e[s]&t&&(e[s]|=t),n&=~r}}function Co(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Or(e,t,n){if(bs)for(e=e.pendingUpdatersLaneMap;0<n;){var s=31-cn(n),r=1<<s;e[s].add(t),n&=~r}}function er(e,t){if(bs)for(var n=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;0<t;){var r=31-cn(t);e=1<<r,r=n[r],0<r.size&&(r.forEach(function(o){var u=o.alternate;u!==null&&s.has(u)||s.add(o)}),r.clear()),t&=~e}}function Pn(e){return e&=-e,Wn<e?Bs<e?(e&134217727)!==0?mr:Bu:Bs:Wn}function Pr(){var e=st.p;return e!==0?e:(e=window.event,e===void 0?mr:Vg(e.type))}function kn(e,t){var n=st.p;try{return st.p=e,t()}finally{st.p=n}}function Us(e){delete e[tn],delete e[jn],delete e[mp],delete e[iE],delete e[cE]}function zn(e){var t=e[tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kr]||n[tn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gg(e);e!==null;){if(n=e[tn])return n;e=gg(e)}return t}e=n,n=e.parentNode}return null}function gn(e){if(e=e[tn]||e[Kr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function fs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function h(e){var t=e[_g];return t||(t=e[_g]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function R(e){e[ki]=!0}function ee(e,t){ie(e,t),ie(e+"Capture",t)}function ie(e,t){$o[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),$o[e]=t;var n=e.toLowerCase();for(fp[n]=e,e==="onDoubleClick"&&(fp.ondblclick=e),e=0;e<t.length;e++)Bg.add(t[e])}function we(e,t){uE[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ze(e){return dr.call(qg,e)?!0:dr.call(Lg,e)?!1:dE.test(e)?qg[e]=!0:(Lg[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Me(e,t,n){if(ze(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(Z(n,t),e===""+n?n:e)}}function ue(e,t,n){if(ze(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}Z(n,t),e.setAttribute(t,""+n)}}function Te(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Z(n,t),e.setAttribute(t,""+n)}}function We(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}Z(s,n),e.setAttributeNS(t,n,""+s)}}function Et(){}function kr(){if(zi===0){Fg=console.log,Yg=console.info,Gg=console.warn,$g=console.error,Qg=console.group,Ig=console.groupCollapsed,Xg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Et,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}zi++}function Rt(){if(zi--,zi===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qe({},e,{value:Fg}),info:qe({},e,{value:Yg}),warn:qe({},e,{value:Gg}),error:qe({},e,{value:$g}),group:qe({},e,{value:Qg}),groupCollapsed:qe({},e,{value:Ig}),groupEnd:qe({},e,{value:Xg})})}0>zi&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function xt(e){if(pp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pp=t&&t[1]||"",Zg=-1<n.stack.indexOf(`
|
|
63
63
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
64
|
-
`+pp+e+Zg}function zr(e,t){if(!e||hp)return"";var n=bp.get(e);if(n!==void 0)return n;hp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=B.H,B.H=null,kr();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(ve){var
|
|
64
|
+
`+pp+e+Zg}function zr(e,t){if(!e||hp)return"";var n=bp.get(e);if(n!==void 0)return n;hp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=B.H,B.H=null,kr();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(ve){var F=ve}Reflect.construct(e,[],O)}else{try{O.call()}catch(ve){F=ve}e.call(O.prototype)}}else{try{throw Error()}catch(ve){F=ve}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(ve){if(ve&&F&&typeof ve.stack=="string")return[ve.stack,F.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),m=u[0],b=u[1];if(m&&b){var x=m.split(`
|
|
65
65
|
`),P=b.split(`
|
|
66
66
|
`);for(u=o=0;o<x.length&&!x[o].includes("DetermineComponentFrameRoot");)o++;for(;u<P.length&&!P[u].includes("DetermineComponentFrameRoot");)u++;if(o===x.length||u===P.length)for(o=x.length-1,u=P.length-1;1<=o&&0<=u&&x[o]!==P[u];)u--;for(;1<=o&&0<=u;o--,u--)if(x[o]!==P[u]){if(o!==1||u!==1)do if(o--,u--,0>u||x[o]!==P[u]){var L=`
|
|
67
67
|
`+x[o].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),typeof e=="function"&&bp.set(e,L),L}while(1<=o&&0<=u);break}}}finally{hp=!1,B.H=s,Rt(),Error.prepareStackTrace=n}return x=(x=e?e.displayName||e.name:"")?xt(x):"",typeof e=="function"&&bp.set(e,x),x}function yn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
@@ -111,7 +111,7 @@ This will cause a hydration error.%s`,u,s,n,o)):console.error(`In HTML, %s canno
|
|
|
111
111
|
This will cause a hydration error.%s`,u,s,o),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||Ue(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
112
112
|
See this log for the ancestor stack trace.`,s,u)})),!1}function _c(e,t,n){if(n||Sb("#text",t,!1))return!0;if(n="#text|"+t,Lu[n])return!1;Lu[n]=!0;var s=(n=Gn)?Eb(n,t):null;return n=n!==null&&s!==null?Nb(s,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
113
113
|
This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
114
|
-
This will cause a hydration error.%s`,t,n),!1}function ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function yw(e){return e.replace(xE,function(t,n){return n.toUpperCase()})}function jb(e,t,n){var s=t.indexOf("--")===0;s||(-1<t.indexOf("-")?$a.hasOwnProperty(t)&&$a[t]||($a[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,yw(t.replace(vE,"ms-")))):bE.test(t)?$a.hasOwnProperty(t)&&$a[t]||($a[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!uy.test(n)||xp.hasOwnProperty(n)&&xp[n]||(xp[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(uy,""))),typeof n=="number"&&(isNaN(n)?dy||(dy=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||my||(my=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||fy.has(t)?t==="float"?e.cssFloat=n:(re(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Db(e,t,n){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var s={};if(n){for(var r in n)if(n.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var o=vp[r]||[r],u=0;u<o.length;u++)s[o[u]]=r}for(var m in t)if(t.hasOwnProperty(m)&&(!n||n[m]!==t[m]))for(r=vp[m]||[m],o=0;o<r.length;o++)s[r[o]]=m;m={};for(var b in t)for(r=vp[b]||[b],o=0;o<r.length;o++)m[r[o]]=b;b={};for(var x in s)if(r=s[x],(o=m[x])&&r!==o&&(u=r+","+o,!b[u])){b[u]=!0,u=console;var P=t[r];u.error.call(u,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",P==null||typeof P=="boolean"||P===""?"Removing":"Updating",r,o)}}for(var L in n)!n.hasOwnProperty(L)||t!=null&&t.hasOwnProperty(L)||(L.indexOf("--")===0?e.setProperty(L,""):L==="float"?e.cssFloat="":e[L]="");for(var O in t)x=t[O],t.hasOwnProperty(O)&&n[O]!==x&&jb(e,O,x)}else for(s in t)t.hasOwnProperty(s)&&jb(e,s,t[s])}function si(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Tb(e){return gE.get(e)||e}function Nw(e,t){if(dr.call(Ia,t)&&Ia[t])return!0;if(NE.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=py.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ia[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0}if(yE.test(t)){if(e=t.toLowerCase(),e=py.hasOwnProperty(e)?e:null,e==null)return Ia[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0)}return!0}function ww(e,t){var n=[],s;for(s in t)Nw(e,s)||n.push(s);t=n.map(function(r){return"`"+r+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Sw(e,t,n,s){if(dr.call(un,t)&&un[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),un[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(s!=null){if(e=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(t))return!0;if(s=e.hasOwnProperty(r)?e[r]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,s),un[t]=!0;if(by.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),un[t]=!0}else if(by.test(t))return wE.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),un[t]=!0;if(SE.test(t)||EE.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),un[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),un[t]=!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),un[t]=!0;if(typeof n=="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),un[t]=!0;if(Fu.hasOwnProperty(r)){if(r=Fu[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),un[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),un[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),un[t]=!0)}case"function":case"symbol":return un[t]=!0,!1;case"string":if(n==="false"||n==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),un[t]=!0}}return!0}function Ew(e,t,n){var s=[],r;for(r in t)Sw(e,r,t[r],n)||s.push(r);t=s.map(function(o){return"`"+o+"`"}).join(", "),s.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<s.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function ri(e){return jE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function lm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Ub(e){var t=gn(e);if(t&&(e=t.stateNode)){var n=e[jn]||null;e:switch(e=t.stateNode,t.type){case"input":if(em(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(Z(t,"name"),n=n.querySelectorAll('input[name="'+Zn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var r=s[jn]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");em(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&cb(s)}break e;case"textarea":bb(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Da(e,!!n.multiple,t,!1)}}}function Cb(e,t,n){if(gp)return e(t,n);gp=!0;try{var s=e(t);return s}finally{if(gp=!1,(Xa!==null||Za!==null)&&(ka(),Xa&&(t=Xa,e=Za,Za=Xa=null,Ub(t),e)))for(t=0;t<e.length;t++)Ub(e[t])}}function oi(e,t){var n=e.stateNode;if(n===null)return null;var s=n[jn]||null;if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function Rb(){if(Yu)return Yu;var e,t=Np,n=t.length,s,r="value"in Jr?Jr.value:Jr.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var u=n-e;for(s=1;s<=u&&t[n-s]===r[o-s];s++);return Yu=r.slice(e,1<s?1-s:void 0)}function Bc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lc(){return!0}function Ab(){return!1}function Nn(e){function t(n,s,r,o,u){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=o,this.target=u,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(n=e[m],this[m]=n?n(o):o[m]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Lc:Ab,this.isPropagationStopped=Ab,this}return qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lc)},persist:function(){},isPersistent:Lc}),t}function jw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HE[e])?!!t[e]:!1}function im(){return jw}function Vb(e,t){switch(e){case"keyup":return ZE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==yy;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Dw(e,t){switch(e){case"compositionend":return Mb(t);case"keypress":return t.which!==wy?null:(Ey=!0,Sy);case"textInput":return e=t.data,e===Sy&&Ey?null:e;default:return null}}function Tw(e,t){if(Ka)return e==="compositionend"||!jp&&Vb(e,t)?(e=Rb(),Yu=Np=Jr=null,Ka=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ny&&t.locale!=="ko"?null:t.data;default:return null}}function Ob(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JE[e.type]:t==="textarea"}function Uw(e){if(!qs)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Pb(e,t,n,s){Xa?Za?Za.push(s):Za=[s]:Xa=s,t=ju(t,"onChange"),0<t.length&&(n=new Gu("onChange","change",null,n,s),e.push({event:n,listeners:t}))}function Cw(e){ng(e,0)}function qc(e){var t=fs(e);if(cb(t))return e}function kb(e,t){if(e==="change")return t}function zb(){Fi&&(Fi.detachEvent("onpropertychange",Hb),Yi=Fi=null)}function Hb(e){if(e.propertyName==="value"&&qc(Yi)){var t=[];Pb(t,Yi,e,lm(e)),Cb(Cw,t)}}function Rw(e,t,n){e==="focusin"?(zb(),Fi=t,Yi=n,Fi.attachEvent("onpropertychange",Hb)):e==="focusout"&&zb()}function Aw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qc(Yi)}function Vw(e,t){if(e==="click")return qc(t)}function Mw(e,t){if(e==="input"||e==="change")return qc(t)}function Ow(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ai(e,t){if(dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!dr.call(t,r)||!dn(e[r],t[r]))return!1}return!0}function _b(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bb(e,t){var n=_b(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_b(n)}}function Lb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zc(e.document)}return t}function cm(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 Fb(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tp||Ja==null||Ja!==zc(s)||(s=Ja,"selectionStart"in s&&cm(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Gi&&ai(Gi,s)||(Gi=s,s=ju(Dp,"onSelect"),0<s.length&&(t=new Gu("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ja)))}function Ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Vo(e){if(Up[e])return Up[e];if(!Wa[e])return e;var t=Wa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dy)return Up[e]=t[n];return e}function ps(e,t){Ay.set(e,t),ee(t,[e])}function Bn(e,t){if(typeof e=="object"&&e!==null){var n=Rp.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Jl(t)},Rp.set(e,t),t)}return{value:e,source:t,stack:Jl(t)}}function Fc(){for(var e=el,t=Ap=el=0;t<e;){var n=es[t];es[t++]=null;var s=es[t];es[t++]=null;var r=es[t];es[t++]=null;var o=es[t];if(es[t++]=null,s!==null&&r!==null){var u=s.pending;u===null?r.next=r:(r.next=u.next,u.next=r),s.pending=r}o!==0&&Yb(n,r,o)}}function Yc(e,t,n,s){es[el++]=e,es[el++]=t,es[el++]=n,es[el++]=s,Ap|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function um(e,t,n,s){return Yc(e,t,n,s),Gc(e)}function wn(e,t){return Yc(e,null,null,t),Gc(e)}function Yb(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,s=o.alternate,s!==null&&(s.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&Qu||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-cn(n),e=o.hiddenUpdates,s=e[r],s===null?e[r]=[t]:s.push(t),t.lane=n|536870912),o):null}function Gc(e){if(fc>Nj)throw aa=fc=0,pc=lh=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");aa>wj&&(aa=0,pc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Xx(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&Xx(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Mo(e){if(ts===null)return e;var t=ts(e);return t===void 0?e:t.current}function dm(e){if(ts===null)return e;var t=ts(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Mo(e.render),e.render!==t)?(t={$$typeof:Oi,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Gb(e,t){if(ts===null)return!1;var n=e.elementType;t=t.type;var s=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(s=!0);break;case 0:(typeof t=="function"||r===Yn)&&(s=!0);break;case 11:(r===Oi||r===Yn)&&(s=!0);break;case 14:case 15:(r===ku||r===Yn)&&(s=!0);break;default:return!1}return!!(s&&(e=ts(n),e!==void 0&&e===ts(t)))}function $b(e){ts!==null&&typeof WeakSet=="function"&&(tl===null&&(tl=new WeakSet),tl.add(e))}function mm(e,t,n){var s=e.alternate,r=e.child,o=e.sibling,u=e.tag,m=e.type,b=null;switch(u){case 0:case 15:case 1:b=m;break;case 11:b=m.render}if(ts===null)throw Error("Expected resolveFamily to be set during hot reload.");var x=!1;m=!1,b!==null&&(b=ts(b),b!==void 0&&(n.has(b)?m=!0:t.has(b)&&(u===1?m=!0:x=!0))),tl!==null&&(tl.has(e)||s!==null&&tl.has(s))&&(m=!0),m&&(e._debugNeedsRemount=!0),(m||x)&&(s=wn(e,2),s!==null&&Vt(s,e,2)),r===null||m||mm(r,t,n),o!==null&&mm(o,t,n)}function Pw(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,My||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function fm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tr(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,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,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=Mo(e.type);break;case 1:n.type=Mo(e.type);break;case 11:n.type=dm(e.type)}return n}function Qb(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function pm(e,t,n,s,r,o){var u=0,m=e;if(typeof e=="function")fm(e)&&(u=1),m=Mo(m);else if(typeof e=="string")u=T(),u=PS(e,n,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case op:return t=g(31,n,t,r),t.elementType=op,t.lanes=o,t;case Fa:return Oo(n.children,r,o,t);case Pu:u=8,r|=nn,r|=vs;break;case tp:return e=n,s=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,s|Kt),t.elementType=tp,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case sp:return t=g(13,n,t,r),t.elementType=sp,t.lanes=o,t;case rp:return t=g(19,n,t,r),t.elementType=rp,t.lanes=o,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case XS:case zs:u=10;break e;case np:u=9;break e;case Oi:u=11,m=dm(m);break e;case ku:u=14;break e;case Yn:u=16,m=null;break e}m="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":Zt(e)?n="array":e!==void 0&&e.$$typeof===Qr?(n="<"+(je(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(u=s?K(s):null)&&(m+=`
|
|
114
|
+
This will cause a hydration error.%s`,t,n),!1}function ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function yw(e){return e.replace(xE,function(t,n){return n.toUpperCase()})}function jb(e,t,n){var s=t.indexOf("--")===0;s||(-1<t.indexOf("-")?$a.hasOwnProperty(t)&&$a[t]||($a[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,yw(t.replace(vE,"ms-")))):bE.test(t)?$a.hasOwnProperty(t)&&$a[t]||($a[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!uy.test(n)||xp.hasOwnProperty(n)&&xp[n]||(xp[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(uy,""))),typeof n=="number"&&(isNaN(n)?dy||(dy=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||my||(my=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||fy.has(t)?t==="float"?e.cssFloat=n:(se(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Db(e,t,n){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var s={};if(n){for(var r in n)if(n.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var o=vp[r]||[r],u=0;u<o.length;u++)s[o[u]]=r}for(var m in t)if(t.hasOwnProperty(m)&&(!n||n[m]!==t[m]))for(r=vp[m]||[m],o=0;o<r.length;o++)s[r[o]]=m;m={};for(var b in t)for(r=vp[b]||[b],o=0;o<r.length;o++)m[r[o]]=b;b={};for(var x in s)if(r=s[x],(o=m[x])&&r!==o&&(u=r+","+o,!b[u])){b[u]=!0,u=console;var P=t[r];u.error.call(u,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",P==null||typeof P=="boolean"||P===""?"Removing":"Updating",r,o)}}for(var L in n)!n.hasOwnProperty(L)||t!=null&&t.hasOwnProperty(L)||(L.indexOf("--")===0?e.setProperty(L,""):L==="float"?e.cssFloat="":e[L]="");for(var O in t)x=t[O],t.hasOwnProperty(O)&&n[O]!==x&&jb(e,O,x)}else for(s in t)t.hasOwnProperty(s)&&jb(e,s,t[s])}function si(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Tb(e){return gE.get(e)||e}function Nw(e,t){if(dr.call(Ia,t)&&Ia[t])return!0;if(NE.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=py.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ia[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0}if(yE.test(t)){if(e=t.toLowerCase(),e=py.hasOwnProperty(e)?e:null,e==null)return Ia[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0)}return!0}function ww(e,t){var n=[],s;for(s in t)Nw(e,s)||n.push(s);t=n.map(function(r){return"`"+r+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Sw(e,t,n,s){if(dr.call(un,t)&&un[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),un[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(s!=null){if(e=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(t))return!0;if(s=e.hasOwnProperty(r)?e[r]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,s),un[t]=!0;if(by.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),un[t]=!0}else if(by.test(t))return wE.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),un[t]=!0;if(SE.test(t)||EE.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),un[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),un[t]=!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),un[t]=!0;if(typeof n=="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),un[t]=!0;if(Fu.hasOwnProperty(r)){if(r=Fu[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),un[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),un[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),un[t]=!0)}case"function":case"symbol":return un[t]=!0,!1;case"string":if(n==="false"||n==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),un[t]=!0}}return!0}function Ew(e,t,n){var s=[],r;for(r in t)Sw(e,r,t[r],n)||s.push(r);t=s.map(function(o){return"`"+o+"`"}).join(", "),s.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<s.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function ri(e){return jE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function lm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Ub(e){var t=gn(e);if(t&&(e=t.stateNode)){var n=e[jn]||null;e:switch(e=t.stateNode,t.type){case"input":if(em(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(Z(t,"name"),n=n.querySelectorAll('input[name="'+Zn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var r=s[jn]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");em(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&cb(s)}break e;case"textarea":bb(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Da(e,!!n.multiple,t,!1)}}}function Cb(e,t,n){if(gp)return e(t,n);gp=!0;try{var s=e(t);return s}finally{if(gp=!1,(Xa!==null||Za!==null)&&(ka(),Xa&&(t=Xa,e=Za,Za=Xa=null,Ub(t),e)))for(t=0;t<e.length;t++)Ub(e[t])}}function oi(e,t){var n=e.stateNode;if(n===null)return null;var s=n[jn]||null;if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function Rb(){if(Yu)return Yu;var e,t=Np,n=t.length,s,r="value"in Jr?Jr.value:Jr.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var u=n-e;for(s=1;s<=u&&t[n-s]===r[o-s];s++);return Yu=r.slice(e,1<s?1-s:void 0)}function Bc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lc(){return!0}function Ab(){return!1}function Nn(e){function t(n,s,r,o,u){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=o,this.target=u,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(n=e[m],this[m]=n?n(o):o[m]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Lc:Ab,this.isPropagationStopped=Ab,this}return qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lc)},persist:function(){},isPersistent:Lc}),t}function jw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HE[e])?!!t[e]:!1}function im(){return jw}function Vb(e,t){switch(e){case"keyup":return ZE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==yy;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Dw(e,t){switch(e){case"compositionend":return Mb(t);case"keypress":return t.which!==wy?null:(Ey=!0,Sy);case"textInput":return e=t.data,e===Sy&&Ey?null:e;default:return null}}function Tw(e,t){if(Ka)return e==="compositionend"||!jp&&Vb(e,t)?(e=Rb(),Yu=Np=Jr=null,Ka=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ny&&t.locale!=="ko"?null:t.data;default:return null}}function Ob(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JE[e.type]:t==="textarea"}function Uw(e){if(!qs)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Pb(e,t,n,s){Xa?Za?Za.push(s):Za=[s]:Xa=s,t=ju(t,"onChange"),0<t.length&&(n=new Gu("onChange","change",null,n,s),e.push({event:n,listeners:t}))}function Cw(e){ng(e,0)}function qc(e){var t=fs(e);if(cb(t))return e}function kb(e,t){if(e==="change")return t}function zb(){Fi&&(Fi.detachEvent("onpropertychange",Hb),Yi=Fi=null)}function Hb(e){if(e.propertyName==="value"&&qc(Yi)){var t=[];Pb(t,Yi,e,lm(e)),Cb(Cw,t)}}function Rw(e,t,n){e==="focusin"?(zb(),Fi=t,Yi=n,Fi.attachEvent("onpropertychange",Hb)):e==="focusout"&&zb()}function Aw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qc(Yi)}function Vw(e,t){if(e==="click")return qc(t)}function Mw(e,t){if(e==="input"||e==="change")return qc(t)}function Ow(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ai(e,t){if(dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!dr.call(t,r)||!dn(e[r],t[r]))return!1}return!0}function _b(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bb(e,t){var n=_b(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_b(n)}}function Lb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zc(e.document)}return t}function cm(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 Fb(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tp||Ja==null||Ja!==zc(s)||(s=Ja,"selectionStart"in s&&cm(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Gi&&ai(Gi,s)||(Gi=s,s=ju(Dp,"onSelect"),0<s.length&&(t=new Gu("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ja)))}function Ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Vo(e){if(Up[e])return Up[e];if(!Wa[e])return e;var t=Wa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dy)return Up[e]=t[n];return e}function ps(e,t){Ay.set(e,t),ee(t,[e])}function Bn(e,t){if(typeof e=="object"&&e!==null){var n=Rp.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Jl(t)},Rp.set(e,t),t)}return{value:e,source:t,stack:Jl(t)}}function Fc(){for(var e=el,t=Ap=el=0;t<e;){var n=es[t];es[t++]=null;var s=es[t];es[t++]=null;var r=es[t];es[t++]=null;var o=es[t];if(es[t++]=null,s!==null&&r!==null){var u=s.pending;u===null?r.next=r:(r.next=u.next,u.next=r),s.pending=r}o!==0&&Yb(n,r,o)}}function Yc(e,t,n,s){es[el++]=e,es[el++]=t,es[el++]=n,es[el++]=s,Ap|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function um(e,t,n,s){return Yc(e,t,n,s),Gc(e)}function wn(e,t){return Yc(e,null,null,t),Gc(e)}function Yb(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,s=o.alternate,s!==null&&(s.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&Qu||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-cn(n),e=o.hiddenUpdates,s=e[r],s===null?e[r]=[t]:s.push(t),t.lane=n|536870912),o):null}function Gc(e){if(fc>Nj)throw aa=fc=0,pc=lh=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");aa>wj&&(aa=0,pc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Xx(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&Xx(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Mo(e){if(ts===null)return e;var t=ts(e);return t===void 0?e:t.current}function dm(e){if(ts===null)return e;var t=ts(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Mo(e.render),e.render!==t)?(t={$$typeof:Oi,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Gb(e,t){if(ts===null)return!1;var n=e.elementType;t=t.type;var s=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(s=!0);break;case 0:(typeof t=="function"||r===Yn)&&(s=!0);break;case 11:(r===Oi||r===Yn)&&(s=!0);break;case 14:case 15:(r===ku||r===Yn)&&(s=!0);break;default:return!1}return!!(s&&(e=ts(n),e!==void 0&&e===ts(t)))}function $b(e){ts!==null&&typeof WeakSet=="function"&&(tl===null&&(tl=new WeakSet),tl.add(e))}function mm(e,t,n){var s=e.alternate,r=e.child,o=e.sibling,u=e.tag,m=e.type,b=null;switch(u){case 0:case 15:case 1:b=m;break;case 11:b=m.render}if(ts===null)throw Error("Expected resolveFamily to be set during hot reload.");var x=!1;m=!1,b!==null&&(b=ts(b),b!==void 0&&(n.has(b)?m=!0:t.has(b)&&(u===1?m=!0:x=!0))),tl!==null&&(tl.has(e)||s!==null&&tl.has(s))&&(m=!0),m&&(e._debugNeedsRemount=!0),(m||x)&&(s=wn(e,2),s!==null&&Vt(s,e,2)),r===null||m||mm(r,t,n),o!==null&&mm(o,t,n)}function Pw(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,My||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function fm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tr(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,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,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=Mo(e.type);break;case 1:n.type=Mo(e.type);break;case 11:n.type=dm(e.type)}return n}function Qb(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function pm(e,t,n,s,r,o){var u=0,m=e;if(typeof e=="function")fm(e)&&(u=1),m=Mo(m);else if(typeof e=="string")u=T(),u=PS(e,n,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case op:return t=g(31,n,t,r),t.elementType=op,t.lanes=o,t;case Fa:return Oo(n.children,r,o,t);case Pu:u=8,r|=nn,r|=vs;break;case tp:return e=n,s=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,s|Kt),t.elementType=tp,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case sp:return t=g(13,n,t,r),t.elementType=sp,t.lanes=o,t;case rp:return t=g(19,n,t,r),t.elementType=rp,t.lanes=o,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case XS:case zs:u=10;break e;case np:u=9;break e;case Oi:u=11,m=dm(m);break e;case ku:u=14;break e;case Yn:u=16,m=null;break e}m="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":Zt(e)?n="array":e!==void 0&&e.$$typeof===Qr?(n="<"+(je(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(u=s?K(s):null)&&(m+=`
|
|
115
115
|
|
|
116
116
|
Check the render method of \``+u+"`."),u=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+m)),m=null}return t=g(u,n,t,r),t.elementType=e,t.type=m,t.lanes=o,t._debugOwner=s,t}function $c(e,t,n){return t=pm(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Oo(e,t,n,s){return e=g(7,e,s,t),e.lanes=n,e}function hm(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function bm(e,t,n){return t=g(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Po(e,t){ko(),nl[sl++]=Xu,nl[sl++]=Iu,Iu=e,Xu=t}function Ib(e,t,n){ko(),ns[ss++]=pr,ns[ss++]=hr,ns[ss++]=Io,Io=e;var s=pr;e=hr;var r=32-cn(s)-1;s&=~(1<<r),n+=1;var o=32-cn(t)+r;if(30<o){var u=r-r%5;o=(s&(1<<u)-1).toString(32),s>>=u,r-=u,pr=1<<32-cn(t)+r|n<<r|s,hr=o+e}else pr=1<<o|n<<r|s,hr=e}function vm(e){ko(),e.return!==null&&(Po(e,1),Ib(e,1,0))}function xm(e){for(;e===Iu;)Iu=nl[--sl],nl[sl]=null,Xu=nl[--sl],nl[sl]=null;for(;e===Io;)Io=ns[--ss],ns[ss]=null,hr=ns[--ss],ns[ss]=null,pr=ns[--ss],ns[ss]=null}function ko(){tt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function zo(e,t){if(e.return===null){if(rs===null)rs={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(rs.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");rs.distanceFromLeaf>t&&(rs.distanceFromLeaf=t)}return rs}var n=zo(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function gm(e,t){br||(e=zo(e,0),e.serverProps=null,t!==null&&(t=bg(t),e.serverTail.push(t)))}function Ho(e){var t="",n=rs;throw n!==null&&(rs=null,t=om(n)),ci(Bn(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
117
117
|
|
|
@@ -135,7 +135,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
135
135
|
|
|
136
136
|
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Qc(){rl=Zu=null,ol=!1}function Hr(e,t,n){Ne(Mp,t._currentValue,e),t._currentValue=n,Ne(Op,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==zy&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=zy}function nr(e,t){e._currentValue=Mp.current;var n=Op.current;oe(Op,t),e._currentRenderer=n,oe(Mp,t)}function ym(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Nm(e,t,n,s){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var u=r.child;o=o.firstContext;e:for(;o!==null;){var m=o;o=r;for(var b=0;b<t.length;b++)if(m.context===t[b]){o.lanes|=n,m=o.alternate,m!==null&&(m.lanes|=n),ym(o.return,n,e),s||(u=null);break e}o=m.next}}else if(r.tag===18){if(u=r.return,u===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),ym(u,n,e),u=null}else u=r.child;if(u!==null)u.return=r;else for(u=r;u!==null;){if(u===e){u=null;break}if(r=u.sibling,r!==null){r.return=u.return,u=r;break}u=u.return}r=u}}function ui(e,t,n,s){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var u=r.alternate;if(u===null)throw Error("Should have a current fiber. This is a bug in React.");if(u=u.memoizedProps,u!==null){var m=r.type;dn(r.pendingProps.value,u.value)||(e!==null?e.push(m):e=[m])}}else if(r===zu.current){if(u=r.alternate,u===null)throw Error("Should have a current fiber. This is a bug in React.");u.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(gc):e=[gc])}r=r.return}e!==null&&Nm(t,e,n,s),t.flags|=262144}function Ic(e){for(e=e.firstContext;e!==null;){if(!dn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _o(e){Zu=e,rl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return ol&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Wb(Zu,e)}function Xc(e,t){return Zu===null&&_o(e),Wb(e,t)}function Wb(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},rl===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");rl=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else rl=rl.next=t;return n}function wm(){return{controller:new aj,data:new Map,refCount:0}}function Bo(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function di(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&lj(ij,function(){e.controller.abort()})}function sr(){var e=Zo;return Zo=0,e}function Zc(e){var t=Zo;return Zo=e,t}function mi(e){var t=Zo;return Zo+=e,t}function Sm(e){Dn=al(),0>e.actualStartTime&&(e.actualStartTime=Dn)}function Em(e){if(0<=Dn){var t=al()-Dn;e.actualDuration+=t,e.selfBaseDuration=t,Dn=-1}}function ev(e){if(0<=Dn){var t=al()-Dn;e.actualDuration+=t,Dn=-1}}function Rs(){if(0<=Dn){var e=al()-Dn;Dn=-1,Zo+=e}}function As(){Dn=al()}function Kc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function kw(e,t){if($i===null){var n=$i=[];Pp=0,Ko=Mf(),ll={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Pp++,t.then(tv,tv),t}function tv(){if(--Pp===0&&$i!==null){ll!==null&&(ll.status="fulfilled");var e=$i;$i=null,Ko=0,ll=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zw(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(s.status="rejected",s.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),s}function jm(){var e=Jo.current;return e!==null?e:ft.pooledCache}function Jc(e,t){t===null?Ne(Jo,Jo.current,e):Ne(Jo,t.pool,e)}function nv(){var e=jm();return e===null?null:{parent:_t._currentValue,pool:e}}function sv(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function rv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wc(){}function ov(e,t,n){B.actQueue!==null&&(B.didUsePromise=!0);var s=e.thenables;switch(n=s[n],n===void 0?s.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Wc,Wc),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lv(e),e;default:if(typeof t.status=="string")t.then(Wc,Wc);else{if(e=ft,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lv(e),e}throw ec=t,nd=!0,Wi}}function av(){if(ec===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=ec;return ec=null,nd=!1,e}function lv(e){if(e===Wi||e===td)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Dm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _r(e){return{lane:e,tag:qy,payload:null,callback:null,next:null}}function Br(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Hp===s&&!Gy){var r=J(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
137
137
|
|
|
138
|
-
Please update the following component: %s`,r),Gy=!0}return(rt&pn)!==$n?(r=s.pending,r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,t=Gc(e),Yb(e,null,n),t):(Yc(e,s,t,n),Gc(e))}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ws(e,n)}}function eu(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pi(){if(_p){var e=ll;if(e!==null)throw e}}function hi(e,t,n,s){_p=!1;var r=e.updateQueue;eo=!1,Hp=r.shared;var o=r.firstBaseUpdate,u=r.lastBaseUpdate,m=r.shared.pending;if(m!==null){r.shared.pending=null;var b=m,x=b.next;b.next=null,u===null?o=x:u.next=x,u=b;var P=e.alternate;P!==null&&(P=P.updateQueue,m=P.lastBaseUpdate,m!==u&&(m===null?P.firstBaseUpdate=x:m.next=x,P.lastBaseUpdate=b))}if(o!==null){var L=r.baseState;u=0,P=x=b=null,m=o;do{var O=m.lane&-536870913,
|
|
138
|
+
Please update the following component: %s`,r),Gy=!0}return(rt&pn)!==$n?(r=s.pending,r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,t=Gc(e),Yb(e,null,n),t):(Yc(e,s,t,n),Gc(e))}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ws(e,n)}}function eu(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pi(){if(_p){var e=ll;if(e!==null)throw e}}function hi(e,t,n,s){_p=!1;var r=e.updateQueue;eo=!1,Hp=r.shared;var o=r.firstBaseUpdate,u=r.lastBaseUpdate,m=r.shared.pending;if(m!==null){r.shared.pending=null;var b=m,x=b.next;b.next=null,u===null?o=x:u.next=x,u=b;var P=e.alternate;P!==null&&(P=P.updateQueue,m=P.lastBaseUpdate,m!==u&&(m===null?P.firstBaseUpdate=x:m.next=x,P.lastBaseUpdate=b))}if(o!==null){var L=r.baseState;u=0,P=x=b=null,m=o;do{var O=m.lane&-536870913,F=O!==m.lane;if(F?(Ze&O)===O:(s&O)===O){O!==0&&O===Ko&&(_p=!0),P!==null&&(P=P.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{O=e;var ve=m,Ae=t,pt=n;switch(ve.tag){case Fy:if(ve=ve.payload,typeof ve=="function"){ol=!0;var Je=ve.call(pt,L,Ae);if(O.mode&nn){be(!0);try{ve.call(pt,L,Ae)}finally{be(!1)}}ol=!1,L=Je;break e}L=ve;break e;case zp:O.flags=O.flags&-65537|128;case qy:if(Je=ve.payload,typeof Je=="function"){if(ol=!0,ve=Je.call(pt,L,Ae),O.mode&nn){be(!0);try{Je.call(pt,L,Ae)}finally{be(!1)}}ol=!1}else ve=Je;if(ve==null)break e;L=qe({},L,ve);break e;case Yy:eo=!0}}O=m.callback,O!==null&&(e.flags|=64,F&&(e.flags|=8192),F=r.callbacks,F===null?r.callbacks=[O]:F.push(O))}else F={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},P===null?(x=P=F,b=L):P=P.next=F,u|=O;if(m=m.next,m===null){if(m=r.shared.pending,m===null)break;F=m,m=F.next,F.next=null,r.lastBaseUpdate=F,r.shared.pending=null}}while(!0);P===null&&(b=L),r.baseState=b,r.firstBaseUpdate=x,r.lastBaseUpdate=P,o===null&&(r.shared.lanes=0),ro|=u,e.lanes=u,e.memoizedState=L}Hp=null}function iv(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Hw(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)iv(n[e],t)}function cv(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)iv(n[e],t)}function uv(e,t){var n=$s;Ne(sd,n,e),Ne(il,t,e),$s=n|t.baseLanes}function Um(e){Ne(sd,$s,e),Ne(il,il.current,e)}function Cm(e){$s=sd.current,oe(il,e),oe(sd,e)}function Xe(){var e=_;ls===null?ls=[e]:ls.push(e)}function te(){var e=_;if(ls!==null&&(xr++,ls[xr]!==e)){var t=J(Ve);if(!$y.has(t)&&($y.add(t),ls!==null)){for(var n="",s=0;s<=xr;s++){var r=ls[s],o=s===xr?e:r;for(r=s+1+". "+r;30>r.length;)r+=" ";r+=o+`
|
|
139
139
|
`,n+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
140
140
|
|
|
141
141
|
Previous render Next render
|
|
@@ -155,7 +155,7 @@ Incoming: %s`,_,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.lengt
|
|
|
155
155
|
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
156
156
|
<%s>{%s}</%s>`,t,t,n,t,n))}function hu(e,t){var n=J(e)||"Component";m0[n]||(m0[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
157
157
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
158
|
-
<%s>%s</%s>`,n,t,n))}function Hv(e){function t(S,E){if(e){var U=S.deletions;U===null?(S.deletions=[E],S.flags|=16):U.push(E)}}function n(S,E){if(!e)return null;for(;E!==null;)t(S,E),E=E.sibling;return null}function s(S){for(var E=new Map;S!==null;)S.key!==null?E.set(S.key,S):E.set(S.index,S),S=S.sibling;return E}function r(S,E){return S=tr(S,E),S.index=0,S.sibling=null,S}function o(S,E,U){return S.index=U,e?(U=S.alternate,U!==null?(U=U.index,U<E?(S.flags|=67108866,E):U):(S.flags|=67108866,E)):(S.flags|=1048576,E)}function u(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function m(S,E,U,F){return E===null||E.tag!==6?(E=hm(U,S.mode,F),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E):(E=r(E,U),E.return=S,E._debugInfo=Le,E)}function b(S,E,U,F){var ae=U.type;return ae===Fa?(E=P(S,E,U.props.children,F,U.key),du(U,E,S),E):E!==null&&(E.elementType===ae||Gb(E,U)||typeof ae=="object"&&ae!==null&&ae.$$typeof===Yn&&no(ae)===E.type)?(E=r(E,U.props),gi(E,U),E.return=S,E._debugOwner=U._owner,E._debugInfo=Le,E):(E=$c(U,S.mode,F),gi(E,U),E.return=S,E._debugInfo=Le,E)}function x(S,E,U,F){return E===null||E.tag!==4||E.stateNode.containerInfo!==U.containerInfo||E.stateNode.implementation!==U.implementation?(E=bm(U,S.mode,F),E.return=S,E._debugInfo=Le,E):(E=r(E,U.children||[]),E.return=S,E._debugInfo=Le,E)}function P(S,E,U,F,ae){return E===null||E.tag!==7?(E=Oo(U,S.mode,F,ae),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E):(E=r(E,U),E.return=S,E._debugInfo=Le,E)}function L(S,E,U){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=hm(""+E,S.mode,U),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Qr:return U=$c(E,S.mode,U),gi(U,E),U.return=S,S=Qt(E._debugInfo),U._debugInfo=Le,Le=S,U;case qa:return E=bm(E,S.mode,U),E.return=S,E._debugInfo=Le,E;case Yn:var F=Qt(E._debugInfo);return E=no(E),S=L(S,E,U),Le=F,S}if(Zt(E)||Ee(E))return U=Oo(E,S.mode,U,null),U.return=S,U._debugOwner=S,U._debugTask=S._debugTask,S=Qt(E._debugInfo),U._debugInfo=Le,Le=S,U;if(typeof E.then=="function")return F=Qt(E._debugInfo),S=L(S,mu(E),U),Le=F,S;if(E.$$typeof===zs)return L(S,Xc(S,E),U);fu(S,E)}return typeof E=="function"&&pu(S,E),typeof E=="symbol"&&hu(S,E),null}function O(S,E,U,F){var ae=E!==null?E.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ae!==null?null:m(S,E,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Qr:return U.key===ae?(ae=Qt(U._debugInfo),S=b(S,E,U,F),Le=ae,S):null;case qa:return U.key===ae?x(S,E,U,F):null;case Yn:return ae=Qt(U._debugInfo),U=no(U),S=O(S,E,U,F),Le=ae,S}if(Zt(U)||Ee(U))return ae!==null?null:(ae=Qt(U._debugInfo),S=P(S,E,U,F,null),Le=ae,S);if(typeof U.then=="function")return ae=Qt(U._debugInfo),S=O(S,E,mu(U),F),Le=ae,S;if(U.$$typeof===zs)return O(S,E,Xc(S,U),F);fu(S,U)}return typeof U=="function"&&pu(S,U),typeof U=="symbol"&&hu(S,U),null}function q(S,E,U,F,ae){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return S=S.get(U)||null,m(E,S,""+F,ae);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case Qr:return U=S.get(F.key===null?U:F.key)||null,S=Qt(F._debugInfo),E=b(E,U,F,ae),Le=S,E;case qa:return S=S.get(F.key===null?U:F.key)||null,x(E,S,F,ae);case Yn:var Oe=Qt(F._debugInfo);return F=no(F),E=q(S,E,U,F,ae),Le=Oe,E}if(Zt(F)||Ee(F))return U=S.get(U)||null,S=Qt(F._debugInfo),E=P(E,U,F,ae,null),Le=S,E;if(typeof F.then=="function")return Oe=Qt(F._debugInfo),E=q(S,E,U,mu(F),ae),Le=Oe,E;if(F.$$typeof===zs)return q(S,E,U,Xc(E,F),ae);fu(E,F)}return typeof F=="function"&&pu(E,F),typeof F=="symbol"&&hu(E,F),null}function ve(S,E,U,F){if(typeof U!="object"||U===null)return F;switch(U.$$typeof){case Qr:case qa:j(S,E,U);var ae=U.key;if(typeof ae!="string")break;if(F===null){F=new Set,F.add(ae);break}if(!F.has(ae)){F.add(ae);break}Ue(E,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ae)});break;case Yn:U=no(U),ve(S,E,U,F)}return F}function Ae(S,E,U,F){for(var ae=null,Oe=null,xe=null,Pe=E,He=E=0,bt=null;Pe!==null&&He<U.length;He++){Pe.index>He?(bt=Pe,Pe=null):bt=Pe.sibling;var Ot=O(S,Pe,U[He],F);if(Ot===null){Pe===null&&(Pe=bt);break}ae=ve(S,Ot,U[He],ae),e&&Pe&&Ot.alternate===null&&t(S,Pe),E=o(Ot,E,He),xe===null?Oe=Ot:xe.sibling=Ot,xe=Ot,Pe=bt}if(He===U.length)return n(S,Pe),tt&&Po(S,He),Oe;if(Pe===null){for(;He<U.length;He++)Pe=L(S,U[He],F),Pe!==null&&(ae=ve(S,Pe,U[He],ae),E=o(Pe,E,He),xe===null?Oe=Pe:xe.sibling=Pe,xe=Pe);return tt&&Po(S,He),Oe}for(Pe=s(Pe);He<U.length;He++)bt=q(Pe,S,He,U[He],F),bt!==null&&(ae=ve(S,bt,U[He],ae),e&&bt.alternate!==null&&Pe.delete(bt.key===null?He:bt.key),E=o(bt,E,He),xe===null?Oe=bt:xe.sibling=bt,xe=bt);return e&&Pe.forEach(function(Er){return t(S,Er)}),tt&&Po(S,He),Oe}function pt(S,E,U,F){if(U==null)throw Error("An iterable object provided no iterator.");for(var ae=null,Oe=null,xe=E,Pe=E=0,He=null,bt=null,Ot=U.next();xe!==null&&!Ot.done;Pe++,Ot=U.next()){xe.index>Pe?(He=xe,xe=null):He=xe.sibling;var Er=O(S,xe,Ot.value,F);if(Er===null){xe===null&&(xe=He);break}bt=ve(S,Er,Ot.value,bt),e&&xe&&Er.alternate===null&&t(S,xe),E=o(Er,E,Pe),Oe===null?ae=Er:Oe.sibling=Er,Oe=Er,xe=He}if(Ot.done)return n(S,xe),tt&&Po(S,Pe),ae;if(xe===null){for(;!Ot.done;Pe++,Ot=U.next())xe=L(S,Ot.value,F),xe!==null&&(bt=ve(S,xe,Ot.value,bt),E=o(xe,E,Pe),Oe===null?ae=xe:Oe.sibling=xe,Oe=xe);return tt&&Po(S,Pe),ae}for(xe=s(xe);!Ot.done;Pe++,Ot=U.next())He=q(xe,S,Pe,Ot.value,F),He!==null&&(bt=ve(S,He,Ot.value,bt),e&&He.alternate!==null&&xe.delete(He.key===null?Pe:He.key),E=o(He,E,Pe),Oe===null?ae=He:Oe.sibling=He,Oe=He);return e&&xe.forEach(function(kj){return t(S,kj)}),tt&&Po(S,Pe),ae}function Je(S,E,U,F){if(typeof U=="object"&&U!==null&&U.type===Fa&&U.key===null&&(du(U,null,S),U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case Qr:var ae=Qt(U._debugInfo);e:{for(var Oe=U.key;E!==null;){if(E.key===Oe){if(Oe=U.type,Oe===Fa){if(E.tag===7){n(S,E.sibling),F=r(E,U.props.children),F.return=S,F._debugOwner=U._owner,F._debugInfo=Le,du(U,F,S),S=F;break e}}else if(E.elementType===Oe||Gb(E,U)||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===Yn&&no(Oe)===E.type){n(S,E.sibling),F=r(E,U.props),gi(F,U),F.return=S,F._debugOwner=U._owner,F._debugInfo=Le,S=F;break e}n(S,E);break}else t(S,E);E=E.sibling}U.type===Fa?(F=Oo(U.props.children,S.mode,F,U.key),F.return=S,F._debugOwner=S,F._debugTask=S._debugTask,F._debugInfo=Le,du(U,F,S),S=F):(F=$c(U,S.mode,F),gi(F,U),F.return=S,F._debugInfo=Le,S=F)}return S=u(S),Le=ae,S;case qa:e:{for(ae=U,U=ae.key;E!==null;){if(E.key===U)if(E.tag===4&&E.stateNode.containerInfo===ae.containerInfo&&E.stateNode.implementation===ae.implementation){n(S,E.sibling),F=r(E,ae.children||[]),F.return=S,S=F;break e}else{n(S,E);break}else t(S,E);E=E.sibling}F=bm(ae,S.mode,F),F.return=S,S=F}return u(S);case Yn:return ae=Qt(U._debugInfo),U=no(U),S=Je(S,E,U,F),Le=ae,S}if(Zt(U))return ae=Qt(U._debugInfo),S=Ae(S,E,U,F),Le=ae,S;if(Ee(U)){if(ae=Qt(U._debugInfo),Oe=Ee(U),typeof Oe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var xe=Oe.call(U);return xe===U?(S.tag!==0||Object.prototype.toString.call(S.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(xe)!=="[object Generator]")&&(c0||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),c0=!0):U.entries!==Oe||Gp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Gp=!0),S=pt(S,E,xe,F),Le=ae,S}if(typeof U.then=="function")return ae=Qt(U._debugInfo),S=Je(S,E,mu(U),F),Le=ae,S;if(U.$$typeof===zs)return Je(S,E,Xc(S,U),F);fu(S,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(ae=""+U,E!==null&&E.tag===6?(n(S,E.sibling),F=r(E,ae),F.return=S,S=F):(n(S,E),F=hm(ae,S.mode,F),F.return=S,F._debugOwner=S,F._debugTask=S._debugTask,F._debugInfo=Le,S=F),u(S)):(typeof U=="function"&&pu(S,U),typeof U=="symbol"&&hu(S,U),n(S,E))}return function(S,E,U,F){var ae=Le;Le=null;try{sc=0;var Oe=Je(S,E,U,F);return dl=null,Oe}catch(bt){if(bt===Wi||bt===td)throw bt;var xe=g(29,bt,null,S.mode);xe.lanes=F,xe.return=S;var Pe=xe._debugInfo=Le;if(xe._debugOwner=S._debugOwner,xe._debugTask=S._debugTask,Pe!=null){for(var He=Pe.length-1;0<=He;He--)if(typeof Pe[He].stack=="string"){xe._debugOwner=Pe[He],xe._debugTask=Pe[He].debugTask;break}}return xe}finally{Le=ae}}}function qr(e){var t=e.alternate;Ne(Lt,Lt.current&fl,e),Ne(is,e,e),Gs===null&&(t===null||il.current!==null||t.memoizedState!==null)&&(Gs=e)}function _v(e){if(e.tag===22){if(Ne(Lt,Lt.current,e),Ne(is,e,e),Gs===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Gs=e)}}else Fr(e)}function Fr(e){Ne(Lt,Lt.current,e),Ne(is,is.current,e)}function rr(e){oe(is,e),Gs===e&&(Gs=null),oe(Lt,e)}function bu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===Nr||Yf(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function nf(e){if(e!==null&&typeof e!="function"){var t=String(e);E0.has(t)||(E0.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function sf(e,t,n,s){var r=e.memoizedState,o=n(s,r);if(e.mode&nn){be(!0);try{o=n(s,r)}finally{be(!1)}}o===void 0&&(t=je(t)||"Component",y0.has(t)||(y0.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=o==null?r:qe({},r,o),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function Bv(e,t,n,s,r,o,u){var m=e.stateNode;if(typeof m.shouldComponentUpdate=="function"){if(n=m.shouldComponentUpdate(s,o,u),e.mode&nn){be(!0);try{n=m.shouldComponentUpdate(s,o,u)}finally{be(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",je(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!ai(n,s)||!ai(r,o):!0}function Lv(e,t,n,s){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==r&&(e=J(e)||"Component",h0.has(e)||(h0.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),$p.enqueueReplaceState(t,t.state,null))}function Yo(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=qe({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function qv(e){Qp(e),console.warn(`%s
|
|
158
|
+
<%s>%s</%s>`,n,t,n))}function Hv(e){function t(S,E){if(e){var U=S.deletions;U===null?(S.deletions=[E],S.flags|=16):U.push(E)}}function n(S,E){if(!e)return null;for(;E!==null;)t(S,E),E=E.sibling;return null}function s(S){for(var E=new Map;S!==null;)S.key!==null?E.set(S.key,S):E.set(S.index,S),S=S.sibling;return E}function r(S,E){return S=tr(S,E),S.index=0,S.sibling=null,S}function o(S,E,U){return S.index=U,e?(U=S.alternate,U!==null?(U=U.index,U<E?(S.flags|=67108866,E):U):(S.flags|=67108866,E)):(S.flags|=1048576,E)}function u(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function m(S,E,U,Y){return E===null||E.tag!==6?(E=hm(U,S.mode,Y),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E):(E=r(E,U),E.return=S,E._debugInfo=Le,E)}function b(S,E,U,Y){var le=U.type;return le===Fa?(E=P(S,E,U.props.children,Y,U.key),du(U,E,S),E):E!==null&&(E.elementType===le||Gb(E,U)||typeof le=="object"&&le!==null&&le.$$typeof===Yn&&no(le)===E.type)?(E=r(E,U.props),gi(E,U),E.return=S,E._debugOwner=U._owner,E._debugInfo=Le,E):(E=$c(U,S.mode,Y),gi(E,U),E.return=S,E._debugInfo=Le,E)}function x(S,E,U,Y){return E===null||E.tag!==4||E.stateNode.containerInfo!==U.containerInfo||E.stateNode.implementation!==U.implementation?(E=bm(U,S.mode,Y),E.return=S,E._debugInfo=Le,E):(E=r(E,U.children||[]),E.return=S,E._debugInfo=Le,E)}function P(S,E,U,Y,le){return E===null||E.tag!==7?(E=Oo(U,S.mode,Y,le),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E):(E=r(E,U),E.return=S,E._debugInfo=Le,E)}function L(S,E,U){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=hm(""+E,S.mode,U),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Qr:return U=$c(E,S.mode,U),gi(U,E),U.return=S,S=Qt(E._debugInfo),U._debugInfo=Le,Le=S,U;case qa:return E=bm(E,S.mode,U),E.return=S,E._debugInfo=Le,E;case Yn:var Y=Qt(E._debugInfo);return E=no(E),S=L(S,E,U),Le=Y,S}if(Zt(E)||Ee(E))return U=Oo(E,S.mode,U,null),U.return=S,U._debugOwner=S,U._debugTask=S._debugTask,S=Qt(E._debugInfo),U._debugInfo=Le,Le=S,U;if(typeof E.then=="function")return Y=Qt(E._debugInfo),S=L(S,mu(E),U),Le=Y,S;if(E.$$typeof===zs)return L(S,Xc(S,E),U);fu(S,E)}return typeof E=="function"&&pu(S,E),typeof E=="symbol"&&hu(S,E),null}function O(S,E,U,Y){var le=E!==null?E.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return le!==null?null:m(S,E,""+U,Y);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Qr:return U.key===le?(le=Qt(U._debugInfo),S=b(S,E,U,Y),Le=le,S):null;case qa:return U.key===le?x(S,E,U,Y):null;case Yn:return le=Qt(U._debugInfo),U=no(U),S=O(S,E,U,Y),Le=le,S}if(Zt(U)||Ee(U))return le!==null?null:(le=Qt(U._debugInfo),S=P(S,E,U,Y,null),Le=le,S);if(typeof U.then=="function")return le=Qt(U._debugInfo),S=O(S,E,mu(U),Y),Le=le,S;if(U.$$typeof===zs)return O(S,E,Xc(S,U),Y);fu(S,U)}return typeof U=="function"&&pu(S,U),typeof U=="symbol"&&hu(S,U),null}function F(S,E,U,Y,le){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return S=S.get(U)||null,m(E,S,""+Y,le);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Qr:return U=S.get(Y.key===null?U:Y.key)||null,S=Qt(Y._debugInfo),E=b(E,U,Y,le),Le=S,E;case qa:return S=S.get(Y.key===null?U:Y.key)||null,x(E,S,Y,le);case Yn:var Oe=Qt(Y._debugInfo);return Y=no(Y),E=F(S,E,U,Y,le),Le=Oe,E}if(Zt(Y)||Ee(Y))return U=S.get(U)||null,S=Qt(Y._debugInfo),E=P(E,U,Y,le,null),Le=S,E;if(typeof Y.then=="function")return Oe=Qt(Y._debugInfo),E=F(S,E,U,mu(Y),le),Le=Oe,E;if(Y.$$typeof===zs)return F(S,E,U,Xc(E,Y),le);fu(E,Y)}return typeof Y=="function"&&pu(E,Y),typeof Y=="symbol"&&hu(E,Y),null}function ve(S,E,U,Y){if(typeof U!="object"||U===null)return Y;switch(U.$$typeof){case Qr:case qa:j(S,E,U);var le=U.key;if(typeof le!="string")break;if(Y===null){Y=new Set,Y.add(le);break}if(!Y.has(le)){Y.add(le);break}Ue(E,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",le)});break;case Yn:U=no(U),ve(S,E,U,Y)}return Y}function Ae(S,E,U,Y){for(var le=null,Oe=null,xe=null,Pe=E,He=E=0,bt=null;Pe!==null&&He<U.length;He++){Pe.index>He?(bt=Pe,Pe=null):bt=Pe.sibling;var Ot=O(S,Pe,U[He],Y);if(Ot===null){Pe===null&&(Pe=bt);break}le=ve(S,Ot,U[He],le),e&&Pe&&Ot.alternate===null&&t(S,Pe),E=o(Ot,E,He),xe===null?Oe=Ot:xe.sibling=Ot,xe=Ot,Pe=bt}if(He===U.length)return n(S,Pe),tt&&Po(S,He),Oe;if(Pe===null){for(;He<U.length;He++)Pe=L(S,U[He],Y),Pe!==null&&(le=ve(S,Pe,U[He],le),E=o(Pe,E,He),xe===null?Oe=Pe:xe.sibling=Pe,xe=Pe);return tt&&Po(S,He),Oe}for(Pe=s(Pe);He<U.length;He++)bt=F(Pe,S,He,U[He],Y),bt!==null&&(le=ve(S,bt,U[He],le),e&&bt.alternate!==null&&Pe.delete(bt.key===null?He:bt.key),E=o(bt,E,He),xe===null?Oe=bt:xe.sibling=bt,xe=bt);return e&&Pe.forEach(function(Er){return t(S,Er)}),tt&&Po(S,He),Oe}function pt(S,E,U,Y){if(U==null)throw Error("An iterable object provided no iterator.");for(var le=null,Oe=null,xe=E,Pe=E=0,He=null,bt=null,Ot=U.next();xe!==null&&!Ot.done;Pe++,Ot=U.next()){xe.index>Pe?(He=xe,xe=null):He=xe.sibling;var Er=O(S,xe,Ot.value,Y);if(Er===null){xe===null&&(xe=He);break}bt=ve(S,Er,Ot.value,bt),e&&xe&&Er.alternate===null&&t(S,xe),E=o(Er,E,Pe),Oe===null?le=Er:Oe.sibling=Er,Oe=Er,xe=He}if(Ot.done)return n(S,xe),tt&&Po(S,Pe),le;if(xe===null){for(;!Ot.done;Pe++,Ot=U.next())xe=L(S,Ot.value,Y),xe!==null&&(bt=ve(S,xe,Ot.value,bt),E=o(xe,E,Pe),Oe===null?le=xe:Oe.sibling=xe,Oe=xe);return tt&&Po(S,Pe),le}for(xe=s(xe);!Ot.done;Pe++,Ot=U.next())He=F(xe,S,Pe,Ot.value,Y),He!==null&&(bt=ve(S,He,Ot.value,bt),e&&He.alternate!==null&&xe.delete(He.key===null?Pe:He.key),E=o(He,E,Pe),Oe===null?le=He:Oe.sibling=He,Oe=He);return e&&xe.forEach(function(kj){return t(S,kj)}),tt&&Po(S,Pe),le}function Je(S,E,U,Y){if(typeof U=="object"&&U!==null&&U.type===Fa&&U.key===null&&(du(U,null,S),U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case Qr:var le=Qt(U._debugInfo);e:{for(var Oe=U.key;E!==null;){if(E.key===Oe){if(Oe=U.type,Oe===Fa){if(E.tag===7){n(S,E.sibling),Y=r(E,U.props.children),Y.return=S,Y._debugOwner=U._owner,Y._debugInfo=Le,du(U,Y,S),S=Y;break e}}else if(E.elementType===Oe||Gb(E,U)||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===Yn&&no(Oe)===E.type){n(S,E.sibling),Y=r(E,U.props),gi(Y,U),Y.return=S,Y._debugOwner=U._owner,Y._debugInfo=Le,S=Y;break e}n(S,E);break}else t(S,E);E=E.sibling}U.type===Fa?(Y=Oo(U.props.children,S.mode,Y,U.key),Y.return=S,Y._debugOwner=S,Y._debugTask=S._debugTask,Y._debugInfo=Le,du(U,Y,S),S=Y):(Y=$c(U,S.mode,Y),gi(Y,U),Y.return=S,Y._debugInfo=Le,S=Y)}return S=u(S),Le=le,S;case qa:e:{for(le=U,U=le.key;E!==null;){if(E.key===U)if(E.tag===4&&E.stateNode.containerInfo===le.containerInfo&&E.stateNode.implementation===le.implementation){n(S,E.sibling),Y=r(E,le.children||[]),Y.return=S,S=Y;break e}else{n(S,E);break}else t(S,E);E=E.sibling}Y=bm(le,S.mode,Y),Y.return=S,S=Y}return u(S);case Yn:return le=Qt(U._debugInfo),U=no(U),S=Je(S,E,U,Y),Le=le,S}if(Zt(U))return le=Qt(U._debugInfo),S=Ae(S,E,U,Y),Le=le,S;if(Ee(U)){if(le=Qt(U._debugInfo),Oe=Ee(U),typeof Oe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var xe=Oe.call(U);return xe===U?(S.tag!==0||Object.prototype.toString.call(S.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(xe)!=="[object Generator]")&&(c0||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),c0=!0):U.entries!==Oe||Gp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Gp=!0),S=pt(S,E,xe,Y),Le=le,S}if(typeof U.then=="function")return le=Qt(U._debugInfo),S=Je(S,E,mu(U),Y),Le=le,S;if(U.$$typeof===zs)return Je(S,E,Xc(S,U),Y);fu(S,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(le=""+U,E!==null&&E.tag===6?(n(S,E.sibling),Y=r(E,le),Y.return=S,S=Y):(n(S,E),Y=hm(le,S.mode,Y),Y.return=S,Y._debugOwner=S,Y._debugTask=S._debugTask,Y._debugInfo=Le,S=Y),u(S)):(typeof U=="function"&&pu(S,U),typeof U=="symbol"&&hu(S,U),n(S,E))}return function(S,E,U,Y){var le=Le;Le=null;try{sc=0;var Oe=Je(S,E,U,Y);return dl=null,Oe}catch(bt){if(bt===Wi||bt===td)throw bt;var xe=g(29,bt,null,S.mode);xe.lanes=Y,xe.return=S;var Pe=xe._debugInfo=Le;if(xe._debugOwner=S._debugOwner,xe._debugTask=S._debugTask,Pe!=null){for(var He=Pe.length-1;0<=He;He--)if(typeof Pe[He].stack=="string"){xe._debugOwner=Pe[He],xe._debugTask=Pe[He].debugTask;break}}return xe}finally{Le=le}}}function qr(e){var t=e.alternate;Ne(Lt,Lt.current&fl,e),Ne(is,e,e),Gs===null&&(t===null||il.current!==null||t.memoizedState!==null)&&(Gs=e)}function _v(e){if(e.tag===22){if(Ne(Lt,Lt.current,e),Ne(is,e,e),Gs===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Gs=e)}}else Fr(e)}function Fr(e){Ne(Lt,Lt.current,e),Ne(is,is.current,e)}function rr(e){oe(is,e),Gs===e&&(Gs=null),oe(Lt,e)}function bu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===Nr||Yf(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function nf(e){if(e!==null&&typeof e!="function"){var t=String(e);E0.has(t)||(E0.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function sf(e,t,n,s){var r=e.memoizedState,o=n(s,r);if(e.mode&nn){be(!0);try{o=n(s,r)}finally{be(!1)}}o===void 0&&(t=je(t)||"Component",y0.has(t)||(y0.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=o==null?r:qe({},r,o),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function Bv(e,t,n,s,r,o,u){var m=e.stateNode;if(typeof m.shouldComponentUpdate=="function"){if(n=m.shouldComponentUpdate(s,o,u),e.mode&nn){be(!0);try{n=m.shouldComponentUpdate(s,o,u)}finally{be(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",je(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!ai(n,s)||!ai(r,o):!0}function Lv(e,t,n,s){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==r&&(e=J(e)||"Component",h0.has(e)||(h0.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),$p.enqueueReplaceState(t,t.state,null))}function Yo(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=qe({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function qv(e){Qp(e),console.warn(`%s
|
|
159
159
|
|
|
160
160
|
%s
|
|
161
161
|
`,pl?"An error occurred in the <"+pl+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
@@ -169,7 +169,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
169
169
|
%s
|
|
170
170
|
|
|
171
171
|
%s
|
|
172
|
-
`,e,t,n)}function Yv(e){Qp(e)}function vu(e,t){try{pl=t.source?J(t.source):null,Ip=null;var n=t.value;if(B.actQueue!==null)B.thrownErrors.push(n);else{var s=e.onUncaughtError;s(n,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function Gv(e,t,n){try{pl=n.source?J(n.source):null,Ip=J(t);var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function rf(e,t,n){return n=_r(n),n.tag=zp,n.payload={element:null},n.callback=function(){Ue(t.source,vu,e,t)},n}function of(e){return e=_r(e),e.tag=zp,e}function af(e,t,n,s){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=s.value;e.payload=function(){return r(o)},e.callback=function(){$b(n),Ue(s.source,Gv,t,n,s)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){$b(n),Ue(s.source,Gv,t,n,s),typeof r!="function"&&(ao===null?ao=new Set([this]):ao.add(this)),dj(this,s),typeof r=="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",J(n)||"Unknown")})}function Yw(e,t,n,s,r){if(n.flags|=32768,bs&&Di(e,r),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&ui(t,n,r,!0),tt&&(br=!0),n=is.current,n!==null){switch(n.tag){case 13:return Gs===null?Df():n.alternate===null&&Tt===yr&&(Tt=Jp),n.flags&=-257,n.flags|=65536,n.lanes=r,s===kp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),Cf(e,s,r)),!1;case 22:return n.flags|=65536,s===kp?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),Cf(e,s,r)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return Cf(e,s,r),Df(),!1}if(tt)return br=!0,t=is.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,s!==Vp&&ci(Bn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),n))):(s!==Vp&&ci(Bn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),n)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,s=Bn(s,n),r=rf(e.stateNode,s,r),eu(e,r),Tt!==ta&&(Tt=xl)),!1;var o=Bn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),n);if(dc===null?dc=[o]:dc.push(o),Tt!==ta&&(Tt=xl),t===null)return!0;s=Bn(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=rf(n.stateNode,s,e),eu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ao===null||!ao.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=of(r),af(r,e,n,s),eu(n,r),!1}n=n.return}while(n!==null);return!1}function It(e,t,n,s){t.child=e===null?f0(t,null,n,s):ml(t,e.child,n,s)}function $v(e,t,n,s,r){n=n.render;var o=t.ref;if("ref"in s){var u={};for(var m in s)m!=="ref"&&(u[m]=s[m])}else u=s;return _o(t),_e(t),s=Am(e,t,n,u,o,r),m=Mm(),Ie(),e!==null&&!Gt?(Om(e,t,r),or(e,t,r)):(tt&&m&&vm(t),t.flags|=1,It(e,t,s,r),t.child)}function Qv(e,t,n,s,r){if(e===null){var o=n.type;return typeof o=="function"&&!fm(o)&&o.defaultProps===void 0&&n.compare===null?(n=Mo(o),t.tag=15,t.type=n,cf(t,o),Iv(e,t,n,s,r)):(e=pm(n.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!hf(e,r)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(u,s)&&e.ref===t.ref)return or(e,t,r)}return t.flags|=1,e=tr(o,s),e.ref=t.ref,e.return=t,t.child=e}function Iv(e,t,n,s,r){if(e!==null){var o=e.memoizedProps;if(ai(o,s)&&e.ref===t.ref&&t.type===e.type)if(Gt=!1,t.pendingProps=s=o,hf(e,r))(e.flags&131072)!==0&&(Gt=!0);else return t.lanes=e.lanes,or(e,t,r)}return lf(e,t,n,s,r)}function Xv(e,t,n){var s=t.pendingProps,r=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;t.childLanes=o&~s}else t.childLanes=0,t.child=null;return Zv(e,t,s,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jc(t,o!==null?o.cachePool:null),o!==null?uv(t,o):Um(t),_v(t);else return t.lanes=t.childLanes=536870912,Zv(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Jc(t,o.cachePool),uv(t,o),Fr(t),t.memoizedState=null):(e!==null&&Jc(t,null),Um(t),Fr(t));return It(e,t,r,n),t.child}function Zv(e,t,n,s){var r=jm();return r=r===null?null:{parent:_t._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Jc(t,null),Um(t),_v(t),e!==null&&ui(e,t,s,!0),null}function xu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lf(e,t,n,s,r){if(n.prototype&&typeof n.prototype.render=="function"){var o=je(n)||"Unknown";D0[o]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",o,o),D0[o]=!0)}return t.mode&nn&&xs.recordLegacyContextWarning(t,null),e===null&&(cf(t,t.type),n.contextTypes&&(o=je(n)||"Unknown",U0[o]||(U0[o]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",o)))),_o(t),_e(t),n=Am(e,t,n,s,void 0,r),s=Mm(),Ie(),e!==null&&!Gt?(Om(e,t,r),or(e,t,r)):(tt&&s&&vm(t),t.flags|=1,It(e,t,n,r),t.child)}function Kv(e,t,n,s,r,o){return _o(t),_e(t),xr=-1,nc=e!==null&&e.type!==t.type,t.updateQueue=null,n=Vm(t,s,n,r),dv(e,t),s=Mm(),Ie(),e!==null&&!Gt?(Om(e,t,o),or(e,t,o)):(tt&&s&&vm(t),t.flags|=1,It(e,t,n,o),t.child)}function Jv(e,t,n,s,r){switch(
|
|
172
|
+
`,e,t,n)}function Yv(e){Qp(e)}function vu(e,t){try{pl=t.source?J(t.source):null,Ip=null;var n=t.value;if(B.actQueue!==null)B.thrownErrors.push(n);else{var s=e.onUncaughtError;s(n,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function Gv(e,t,n){try{pl=n.source?J(n.source):null,Ip=J(t);var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function rf(e,t,n){return n=_r(n),n.tag=zp,n.payload={element:null},n.callback=function(){Ue(t.source,vu,e,t)},n}function of(e){return e=_r(e),e.tag=zp,e}function af(e,t,n,s){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=s.value;e.payload=function(){return r(o)},e.callback=function(){$b(n),Ue(s.source,Gv,t,n,s)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){$b(n),Ue(s.source,Gv,t,n,s),typeof r!="function"&&(ao===null?ao=new Set([this]):ao.add(this)),dj(this,s),typeof r=="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",J(n)||"Unknown")})}function Yw(e,t,n,s,r){if(n.flags|=32768,bs&&Di(e,r),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&ui(t,n,r,!0),tt&&(br=!0),n=is.current,n!==null){switch(n.tag){case 13:return Gs===null?Df():n.alternate===null&&Tt===yr&&(Tt=Jp),n.flags&=-257,n.flags|=65536,n.lanes=r,s===kp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),Cf(e,s,r)),!1;case 22:return n.flags|=65536,s===kp?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),Cf(e,s,r)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return Cf(e,s,r),Df(),!1}if(tt)return br=!0,t=is.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,s!==Vp&&ci(Bn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),n))):(s!==Vp&&ci(Bn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),n)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,s=Bn(s,n),r=rf(e.stateNode,s,r),eu(e,r),Tt!==ta&&(Tt=xl)),!1;var o=Bn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),n);if(dc===null?dc=[o]:dc.push(o),Tt!==ta&&(Tt=xl),t===null)return!0;s=Bn(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=rf(n.stateNode,s,e),eu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ao===null||!ao.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=of(r),af(r,e,n,s),eu(n,r),!1}n=n.return}while(n!==null);return!1}function It(e,t,n,s){t.child=e===null?f0(t,null,n,s):ml(t,e.child,n,s)}function $v(e,t,n,s,r){n=n.render;var o=t.ref;if("ref"in s){var u={};for(var m in s)m!=="ref"&&(u[m]=s[m])}else u=s;return _o(t),_e(t),s=Am(e,t,n,u,o,r),m=Mm(),Ie(),e!==null&&!Gt?(Om(e,t,r),or(e,t,r)):(tt&&m&&vm(t),t.flags|=1,It(e,t,s,r),t.child)}function Qv(e,t,n,s,r){if(e===null){var o=n.type;return typeof o=="function"&&!fm(o)&&o.defaultProps===void 0&&n.compare===null?(n=Mo(o),t.tag=15,t.type=n,cf(t,o),Iv(e,t,n,s,r)):(e=pm(n.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!hf(e,r)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(u,s)&&e.ref===t.ref)return or(e,t,r)}return t.flags|=1,e=tr(o,s),e.ref=t.ref,e.return=t,t.child=e}function Iv(e,t,n,s,r){if(e!==null){var o=e.memoizedProps;if(ai(o,s)&&e.ref===t.ref&&t.type===e.type)if(Gt=!1,t.pendingProps=s=o,hf(e,r))(e.flags&131072)!==0&&(Gt=!0);else return t.lanes=e.lanes,or(e,t,r)}return lf(e,t,n,s,r)}function Xv(e,t,n){var s=t.pendingProps,r=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;t.childLanes=o&~s}else t.childLanes=0,t.child=null;return Zv(e,t,s,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jc(t,o!==null?o.cachePool:null),o!==null?uv(t,o):Um(t),_v(t);else return t.lanes=t.childLanes=536870912,Zv(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Jc(t,o.cachePool),uv(t,o),Fr(t),t.memoizedState=null):(e!==null&&Jc(t,null),Um(t),Fr(t));return It(e,t,r,n),t.child}function Zv(e,t,n,s){var r=jm();return r=r===null?null:{parent:_t._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Jc(t,null),Um(t),_v(t),e!==null&&ui(e,t,s,!0),null}function xu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lf(e,t,n,s,r){if(n.prototype&&typeof n.prototype.render=="function"){var o=je(n)||"Unknown";D0[o]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",o,o),D0[o]=!0)}return t.mode&nn&&xs.recordLegacyContextWarning(t,null),e===null&&(cf(t,t.type),n.contextTypes&&(o=je(n)||"Unknown",U0[o]||(U0[o]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",o)))),_o(t),_e(t),n=Am(e,t,n,s,void 0,r),s=Mm(),Ie(),e!==null&&!Gt?(Om(e,t,r),or(e,t,r)):(tt&&s&&vm(t),t.flags|=1,It(e,t,n,r),t.child)}function Kv(e,t,n,s,r,o){return _o(t),_e(t),xr=-1,nc=e!==null&&e.type!==t.type,t.updateQueue=null,n=Vm(t,s,n,r),dv(e,t),s=Mm(),Ie(),e!==null&&!Gt?(Om(e,t,o),or(e,t,o)):(tt&&s&&vm(t),t.flags|=1,It(e,t,n,o),t.child)}function Jv(e,t,n,s,r){switch(w(t)){case!1:var o=t.stateNode,u=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,u,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var m=r&-r;if(t.lanes|=m,u=ft,u===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m=of(m),af(m,u,t,Bn(o,t)),eu(t,m)}if(_o(t),t.stateNode===null){if(u=Wr,o=n.contextType,"contextType"in n&&o!==null&&(o===void 0||o.$$typeof!==zs)&&!S0.has(n)&&(S0.add(n),m=o===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?" However, it is set to a "+typeof o+".":o.$$typeof===np?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",je(n)||"Component",m)),typeof o=="object"&&o!==null&&(u=Nt(o)),o=new n(s,u),t.mode&nn){be(!0);try{o=new n(s,u)}finally{be(!1)}}if(u=t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=$p,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=p0,typeof n.getDerivedStateFromProps=="function"&&u===null&&(u=je(n)||"Component",b0.has(u)||(b0.add(u),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",u,o.state===null?"null":"undefined",u))),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"){var b=m=u=null;if(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0?u="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0?m="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(m="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),u!==null||m!==null||b!==null){o=je(n)||"Component";var x=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";x0.has(o)||(x0.add(o),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
173
173
|
|
|
174
174
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
175
175
|
|
|
@@ -177,7 +177,7 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
177
177
|
https://react.dev/link/unsafe-component-lifecycles`,o,x,u!==null?`
|
|
178
178
|
`+u:"",m!==null?`
|
|
179
179
|
`+m:"",b!==null?`
|
|
180
|
-
`+b:""))}}o=t.stateNode,u=je(n)||"Component",o.render||(n.prototype&&typeof n.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",u):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",u)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",u),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",u),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),n.childContextTypes&&!w0.has(n)&&(w0.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",u)),n.contextTypes&&!N0.has(n)&&(N0.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",u)),typeof o.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",u),n.prototype&&n.prototype.isPureReactComponent&&typeof o.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",je(n)||"A pure component"),typeof o.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof o.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",u),typeof o.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof o.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u),m=o.props!==s,o.props!==void 0&&m&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u),o.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",u,u),typeof o.getSnapshotBeforeUpdate!="function"||typeof o.componentDidUpdate=="function"||v0.has(n)||(v0.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",je(n))),typeof o.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof o.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof n.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",u),(m=o.state)&&(typeof m!="object"||Zt(m))&&console.error("%s.state: must be set to an object or null",u),typeof o.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u),o=t.stateNode,o.props=s,o.state=t.memoizedState,o.refs={},Dm(t),u=n.contextType,o.context=typeof u=="object"&&u!==null?Nt(u):Wr,o.state===s&&(u=je(n)||"Component",g0.has(u)||(g0.add(u),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",u))),t.mode&nn&&xs.recordLegacyContextWarning(t,o),xs.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(sf(t,n,u,s),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(u=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),u!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",J(t)||"Component"),$p.enqueueReplaceState(o,o.state,null)),hi(t,s,o,r),pi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),o=!0}else if(e===null){o=t.stateNode;var P=t.memoizedProps;m=Yo(n,P),o.props=m;var L=o.context;b=n.contextType,u=Wr,typeof b=="object"&&b!==null&&(u=Nt(b)),x=n.getDerivedStateFromProps,b=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function",P=t.pendingProps!==P,b||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(P||L!==u)&&Lv(t,o,s,u),eo=!1;var O=t.memoizedState;o.state=O,hi(t,s,o,r),pi(),L=t.memoizedState,P||O!==L||eo?(typeof x=="function"&&(sf(t,n,x,s),L=t.memoizedState),(m=eo||Bv(t,n,m,s,O,L,u))?(b||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),t.memoizedProps=s,t.memoizedState=L),o.props=s,o.state=L,o.context=u,o=m):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,Tm(e,t),u=t.memoizedProps,b=Yo(n,u),o.props=b,x=t.pendingProps,O=o.context,L=n.contextType,m=Wr,typeof L=="object"&&L!==null&&(m=Nt(L)),P=n.getDerivedStateFromProps,(L=typeof P=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==x||O!==m)&&Lv(t,o,s,m),eo=!1,O=t.memoizedState,o.state=O,hi(t,s,o,r),pi();var
|
|
180
|
+
`+b:""))}}o=t.stateNode,u=je(n)||"Component",o.render||(n.prototype&&typeof n.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",u):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",u)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",u),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",u),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),n.childContextTypes&&!w0.has(n)&&(w0.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",u)),n.contextTypes&&!N0.has(n)&&(N0.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",u)),typeof o.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",u),n.prototype&&n.prototype.isPureReactComponent&&typeof o.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",je(n)||"A pure component"),typeof o.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof o.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",u),typeof o.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof o.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u),m=o.props!==s,o.props!==void 0&&m&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u),o.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",u,u),typeof o.getSnapshotBeforeUpdate!="function"||typeof o.componentDidUpdate=="function"||v0.has(n)||(v0.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",je(n))),typeof o.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof o.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof n.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",u),(m=o.state)&&(typeof m!="object"||Zt(m))&&console.error("%s.state: must be set to an object or null",u),typeof o.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u),o=t.stateNode,o.props=s,o.state=t.memoizedState,o.refs={},Dm(t),u=n.contextType,o.context=typeof u=="object"&&u!==null?Nt(u):Wr,o.state===s&&(u=je(n)||"Component",g0.has(u)||(g0.add(u),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",u))),t.mode&nn&&xs.recordLegacyContextWarning(t,o),xs.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(sf(t,n,u,s),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(u=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),u!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",J(t)||"Component"),$p.enqueueReplaceState(o,o.state,null)),hi(t,s,o,r),pi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),o=!0}else if(e===null){o=t.stateNode;var P=t.memoizedProps;m=Yo(n,P),o.props=m;var L=o.context;b=n.contextType,u=Wr,typeof b=="object"&&b!==null&&(u=Nt(b)),x=n.getDerivedStateFromProps,b=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function",P=t.pendingProps!==P,b||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(P||L!==u)&&Lv(t,o,s,u),eo=!1;var O=t.memoizedState;o.state=O,hi(t,s,o,r),pi(),L=t.memoizedState,P||O!==L||eo?(typeof x=="function"&&(sf(t,n,x,s),L=t.memoizedState),(m=eo||Bv(t,n,m,s,O,L,u))?(b||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),t.memoizedProps=s,t.memoizedState=L),o.props=s,o.state=L,o.context=u,o=m):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,Tm(e,t),u=t.memoizedProps,b=Yo(n,u),o.props=b,x=t.pendingProps,O=o.context,L=n.contextType,m=Wr,typeof L=="object"&&L!==null&&(m=Nt(L)),P=n.getDerivedStateFromProps,(L=typeof P=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==x||O!==m)&&Lv(t,o,s,m),eo=!1,O=t.memoizedState,o.state=O,hi(t,s,o,r),pi();var F=t.memoizedState;u!==x||O!==F||eo||e!==null&&e.dependencies!==null&&Ic(e.dependencies)?(typeof P=="function"&&(sf(t,n,P,s),F=t.memoizedState),(b=eo||Bv(t,n,b,s,O,F,m)||e!==null&&e.dependencies!==null&&Ic(e.dependencies))?(L||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,F,m),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,F,m)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=F),o.props=s,o.state=F,o.context=m,o=b):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),o=!1)}if(m=o,xu(e,t),u=(t.flags&128)!==0,m||u){if(m=t.stateNode,Wd(t),u&&typeof n.getDerivedStateFromError!="function")n=null,Dn=-1;else{if(_e(t),n=Wy(m),t.mode&nn){be(!0);try{Wy(m)}finally{be(!1)}}Ie()}t.flags|=1,e!==null&&u?(t.child=ml(t,e.child,null,r),t.child=ml(t,null,n,r)):It(e,t,n,r),t.memoizedState=m.state,e=t.child}else e=or(e,t,r);return r=t.stateNode,o&&r.props!==s&&(hl||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",J(t)||"a component"),hl=!0),e}function Wv(e,t,n,s){return ii(),t.flags|=256,It(e,t,n,s),t.child}function cf(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
181
181
|
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=je(t)||"Unknown",C0[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),C0[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=je(t)||"Unknown",T0[t]||(console.error("%s: Function components do not support contextType.",t),T0[t]=!0))}function uf(e){return{baseLanes:e,cachePool:nv()}}function df(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=In),e}function ex(e,t,n){var s,r=t.pendingProps;v(t)&&(t.flags|=128);var o=!1,u=(t.flags&128)!==0;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(Lt.current&rc)!==0),s&&(o=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(tt){if(o?qr(t):Fr(t),tt){var m=Dt,b;if(!(b=!m)){e:{var x=m;for(b=Fs;x.nodeType!==8;){if(!b){b=null;break e}if(x=Jn(x.nextSibling),x===null){b=null;break e}}b=x}b!==null?(ko(),t.memoizedState={dehydrated:b,treeContext:Io!==null?{id:pr,overflow:hr}:null,retryLane:536870912,hydrationErrors:null},x=g(18,null,null,ht),x.stateNode=b,x.return=t,t.child=x,mn=t,Dt=null,b=!0):b=!1,b=!b}b&&(gm(t,m),Ho(t))}if(m=t.memoizedState,m!==null&&(m=m.dehydrated,m!==null))return Yf(m)?t.lanes=32:t.lanes=536870912,null;rr(t)}return m=r.children,r=r.fallback,o?(Fr(t),o=t.mode,m=gu({mode:"hidden",children:m},o),r=Oo(r,o,n,null),m.return=t,r.return=t,m.sibling=r,t.child=m,o=t.child,o.memoizedState=uf(n),o.childLanes=df(e,s,n),t.memoizedState=Zp,r):(qr(t),mf(t,m))}var P=e.memoizedState;if(P!==null&&(m=P.dehydrated,m!==null)){if(u)t.flags&256?(qr(t),t.flags&=-257,t=ff(e,t,n)):t.memoizedState!==null?(Fr(t),t.child=e.child,t.flags|=128,t=null):(Fr(t),o=r.fallback,m=t.mode,r=gu({mode:"visible",children:r.children},m),o=Oo(o,m,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,ml(t,e.child,null,n),r=t.child,r.memoizedState=uf(n),r.childLanes=df(e,s,n),t.memoizedState=Zp,t=o);else if(qr(t),tt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Yf(m)){if(s=m.nextSibling&&m.nextSibling.dataset,s){b=s.dgst;var L=s.msg;x=s.stck;var O=s.cstck}m=L,s=b,r=x,b=o=O,o=Error(m||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),o.stack=r||"",o.digest=s,s=b===void 0?null:b,r={value:o,source:null,stack:s},typeof s=="string"&&Rp.set(o,r),ci(r),t=ff(e,t,n)}else if(Gt||ui(e,t,n,!1),s=(n&e.childLanes)!==0,Gt||s){if(s=ft,s!==null&&(r=n&-n,r=(r&42)!==0?1:Co(r),r=(r&(s.suspendedLanes|n))!==0?0:r,r!==0&&r!==P.retryLane))throw P.retryLane=r,wn(e,r),Vt(s,e,r),j0;m.data===Nr||Df(),t=ff(e,t,n)}else m.data===Nr?(t.flags|=192,t.child=e.child,t=null):(e=P.treeContext,Dt=Jn(m.nextSibling),mn=t,tt=!0,Xo=null,br=!1,rs=null,Fs=!1,e!==null&&(ko(),ns[ss++]=pr,ns[ss++]=hr,ns[ss++]=Io,pr=e.id,hr=e.overflow,Io=t),t=mf(t,r.children),t.flags|=4096);return t}return o?(Fr(t),o=r.fallback,m=t.mode,b=e.child,x=b.sibling,r=tr(b,{mode:"hidden",children:r.children}),r.subtreeFlags=b.subtreeFlags&65011712,x!==null?o=tr(x,o):(o=Oo(o,m,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,m=e.child.memoizedState,m===null?m=uf(n):(b=m.cachePool,b!==null?(x=_t._currentValue,b=b.parent!==x?{parent:x,pool:x}:b):b=nv(),m={baseLanes:m.baseLanes|n,cachePool:b}),o.memoizedState=m,o.childLanes=df(e,s,n),t.memoizedState=Zp,r):(qr(t),n=e.child,e=n.sibling,n=tr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function mf(e,t){return t=gu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gu(e,t){return e=g(22,e,null,t),e.lanes=0,e.stateNode={_visibility:Qu,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ff(e,t,n){return ml(t,e.child,null,n),e=mf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tx(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),ym(e.return,t,n)}function nx(e,t){var n=Zt(e);return e=!n&&typeof Ee(e)=="function",n||e?(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1):!0}function pf(e,t,n,s,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=s,o.tail=n,o.tailMode=r)}function sx(e,t,n){var s=t.pendingProps,r=s.revealOrder,o=s.tail;if(s=s.children,r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!R0[r])if(R0[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);o===void 0||Xp[o]||(o!=="collapsed"&&o!=="hidden"?(Xp[o]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):r!=="forwards"&&r!=="backwards"&&(Xp[o]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if((r==="forwards"||r==="backwards")&&s!==void 0&&s!==null&&s!==!1)if(Zt(s)){for(var u=0;u<s.length;u++)if(!nx(s[u],u))break e}else if(u=Ee(s),typeof u=="function"){if(u=u.call(s))for(var m=u.next(),b=0;!m.done;m=u.next()){if(!nx(m.value,b))break e;b++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(It(e,t,s,n),s=Lt.current,(s&rc)!==0)s=s&fl|rc,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tx(e,n,t);else if(e.tag===19)tx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=fl}switch(Ne(Lt,s,t),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&bu(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),pf(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&bu(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}pf(t,!0,n,null,o);break;case"together":pf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dn=-1,ro|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ui(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,n=tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ic(e)))}function Gw(e,t,n){switch(t.tag){case 3:W(t,t.stateNode.containerInfo),Hr(t,_t,e.memoizedState.cache),ii();break;case 27:case 5:k(t);break;case 4:W(t,t.stateNode.containerInfo);break;case 10:Hr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var s=t.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(qr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ex(e,t,n):(qr(t),e=or(e,t,n),e!==null?e.sibling:null);qr(t);break;case 19:var r=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(ui(e,t,n,!1),s=(n&t.childLanes)!==0),r){if(s)return sx(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ne(Lt,Lt.current,t),s)break;return null;case 22:case 23:return t.lanes=0,Xv(e,t,n);case 24:Hr(t,_t,e.memoizedState.cache)}return or(e,t,n)}function bf(e,t,n){if(t._debugNeedsRemount&&e!==null){n=pm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var s=t.return;if(s===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===s.child)s.child=n;else{var r=s.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=n}return t=s.deletions,t===null?(s.deletions=[e],s.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Gt=!0;else{if(!hf(e,n)&&(t.flags&128)===0)return Gt=!1,Gw(e,t,n);Gt=(e.flags&131072)!==0}else Gt=!1,(s=tt)&&(ko(),s=(t.flags&1048576)!==0),s&&(s=t.index,ko(),Ib(t,Xu,s));switch(t.lanes=0,t.tag){case 16:e:if(s=t.pendingProps,e=no(t.elementType),t.type=e,typeof e=="function")fm(e)?(s=Yo(e,s),t.tag=1,t.type=e=Mo(e),t=Jv(null,t,e,s,n)):(t.tag=0,cf(t,e),t.type=e=Mo(e),t=lf(null,t,e,s,n));else{if(e!=null){if(r=e.$$typeof,r===Oi){t.tag=11,t.type=e=dm(e),t=$v(null,t,e,s,n);break e}else if(r===ku){t.tag=14,t=Qv(null,t,e,s,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Yn&&(t=" Did you wrap a component in React.lazy() more than once?"),e=je(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return lf(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,r=Yo(s,t.pendingProps),Jv(e,t,s,r,n);case 3:e:{if(W(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");s=t.pendingProps;var o=t.memoizedState;r=o.element,Tm(e,t),hi(t,s,null,n);var u=t.memoizedState;if(s=u.cache,Hr(t,_t,s),s!==o.cache&&Nm(t,[_t],n,!0),pi(),s=u.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Wv(e,t,s,n);break e}else if(s!==r){r=Bn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),ci(r),t=Wv(e,t,s,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Dt=Jn(e.firstChild),mn=t,tt=!0,Xo=null,br=!1,rs=null,Fs=!0,e=f0(t,null,s,n),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(ii(),s===r){t=or(e,t,n);break e}It(e,t,s,n)}t=t.child}return t;case 26:return xu(e,t),e===null?(e=wg(t.type,null,t.pendingProps,null))?t.memoizedState=e:tt||(e=t.type,n=t.pendingProps,s=X(Xr.current),s=Tu(s).createElement(e),s[tn]=t,s[jn]=n,Xt(s,e,n),R(s),t.stateNode=s):t.memoizedState=wg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return k(t),e===null&&tt&&(s=X(Xr.current),r=T(),s=t.stateNode=yg(t.type,t.pendingProps,s,r,!1),br||(r=dg(s,t.type,t.pendingProps,r),r!==null&&(zo(t,0).serverProps=r)),mn=t,Fs=!0,r=Dt,$r(t.type)?(gh=r,Dt=Jn(s.firstChild)):Dt=r),It(e,t,t.pendingProps.children,n),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&tt&&(o=T(),s=am(t.type,o.ancestorInfo),r=Dt,(u=!r)||(u=US(r,t.type,t.pendingProps,Fs),u!==null?(t.stateNode=u,br||(o=dg(u,t.type,t.pendingProps,o),o!==null&&(zo(t,0).serverProps=o)),mn=t,Dt=Jn(u.firstChild),Fs=!1,o=!0):o=!1,u=!o),u&&(s&&gm(t,r),Ho(t))),k(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,s=o.children,qf(r,o)?s=null:u!==null&&qf(r,u)&&(t.flags|=32),t.memoizedState!==null&&(r=Am(e,t,_w,null,null,n),gc._currentValue=r),xu(e,t),It(e,t,s,n),t.child;case 6:return e===null&&tt&&(e=t.pendingProps,n=T(),s=n.ancestorInfo.current,e=s!=null?_c(e,s.tag,n.ancestorInfo.implicitRootScope):!0,n=Dt,(s=!n)||(s=CS(n,t.pendingProps,Fs),s!==null?(t.stateNode=s,mn=t,Dt=null,s=!0):s=!1,s=!s),s&&(e&&gm(t,n),Ho(t))),null;case 13:return ex(e,t,n);case 4:return W(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ml(t,null,s,n):It(e,t,s,n),t.child;case 11:return $v(e,t,t.type,t.pendingProps,n);case 7:return It(e,t,t.pendingProps,n),t.child;case 8:return It(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,s=t.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,It(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.type,r=t.pendingProps,o=r.value,"value"in r||A0||(A0=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Hr(t,s,o),It(e,t,r.children,n),t.child;case 9:return r=t.type._context,s=t.pendingProps.children,typeof s!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),_o(t),r=Nt(r),_e(t),s=Fp(s,r,void 0),Ie(),t.flags|=1,It(e,t,s,n),t.child;case 14:return Qv(e,t,t.type,t.pendingProps,n);case 15:return Iv(e,t,t.type,t.pendingProps,n);case 19:return sx(e,t,n);case 31:return s=t.pendingProps,n=t.mode,s={mode:s.mode,children:s.children},e===null?(e=gu(s,n),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=tr(e.child,s),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Xv(e,t,n);case 24:return _o(t),s=Nt(_t),e===null?(r=jm(),r===null&&(r=ft,o=wm(),r.pooledCache=o,Bo(o),o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:s,cache:r},Dm(t),Hr(t,_t,r)):((e.lanes&n)!==0&&(Tm(e,t),hi(t,null,null,n),pi()),r=e.memoizedState,o=t.memoizedState,r.parent!==s?(r={parent:s,cache:s},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Hr(t,_t,s)):(s=o.cache,Hr(t,_t,s),s!==r.cache&&Nm(t,[_t],n,!0))),It(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ar(e){e.flags|=4}function rx(e,t){if(t.type!=="stylesheet"||(t.state.loading&cs)!==ua)e.flags&=-16777217;else if(e.flags|=16777216,!Tg(t)){if(t=is.current,t!==null&&((Ze&4194048)===Ze?Gs!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||t!==Gs))throw ec=kp,Ly;e.flags|=8192}}function yu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Js():536870912,e.lanes|=t,ra|=t)}function yi(e,t){if(!tt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)if((e.mode&Kt)!==ht){for(var r=e.selfBaseDuration,o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,r+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Kt)!==ht){r=e.actualDuration,o=e.selfBaseDuration;for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,r+=u.actualDuration,o+=u.treeBaseDuration,u=u.sibling;e.actualDuration=r,e.treeBaseDuration=o}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function $w(e,t,n){var s=t.pendingProps;switch(xm(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),nr(_t,t),V(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(li(t)?(Jb(),ar(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kb())),wt(t),null;case 26:return n=t.memoizedState,e===null?(ar(t),n!==null?(wt(t),rx(t,n)):(wt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ar(t),wt(t),rx(t,n)):(wt(t),t.flags&=-16777217):(e.memoizedProps!==s&&ar(t),wt(t),t.flags&=-16777217),null;case 27:z(t),n=X(Xr.current);var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ar(t);else{if(!s){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wt(t),null}e=T(),li(t)?Xb(t):(e=yg(r,s,n,e,!0),t.stateNode=e,ar(t))}return wt(t),null;case 5:if(z(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ar(t);else{if(!s){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wt(t),null}if(r=T(),li(t))Xb(t);else{switch(e=X(Xr.current),am(n,r.ancestorInfo),r=r.context,e=Tu(e),r){case El:e=e.createElementNS(Qa,n);break;case wd:e=e.createElementNS(qu,n);break;default:switch(n){case"svg":e=e.createElementNS(Qa,n);break;case"math":e=e.createElementNS(qu,n);break;case"script":e=e.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?e.createElement("select",{is:s.is}):e.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?e.createElement(n,{is:s.is}):e.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(e)!=="[object HTMLUnknownElement]"||dr.call(Z0,n)||(Z0[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}e[tn]=t,e[jn]=s;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Xt(e,n,s),n){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ar(t)}}return wt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ar(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=X(Xr.current),n=T(),li(t)){e=t.stateNode,n=t.memoizedProps,r=!br,s=null;var o=mn;if(o!==null)switch(o.tag){case 3:r&&(r=vg(e,n,s),r!==null&&(zo(t,0).serverProps=r));break;case 27:case 5:s=o.memoizedProps,r&&(r=vg(e,n,s),r!==null&&(zo(t,0).serverProps=r))}e[tn]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||ag(e.nodeValue,n)),e||Ho(t)}else r=n.ancestorInfo.current,r!=null&&_c(s,r.tag,n.ancestorInfo.implicitRootScope),e=Tu(e).createTextNode(s),e[tn]=t,t.stateNode=e}return wt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=li(t),s!==null&&s.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[tn]=t,wt(t),(t.mode&Kt)!==ht&&s!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else Jb(),ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,wt(t),(t.mode&Kt)!==ht&&s!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=Kb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(rr(t),t):(rr(t),null)}return rr(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&Kt)!==ht&&Kc(t),t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==r&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),yu(t,t.updateQueue),wt(t),(t.mode&Kt)!==ht&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return V(t),e===null&&Pf(t.stateNode.containerInfo),wt(t),null;case 10:return nr(t.type,t),wt(t),null;case 19:if(oe(Lt,t),r=t.memoizedState,r===null)return wt(t),null;if(s=(t.flags&128)!==0,o=r.rendering,o===null)if(s)yi(r,!1);else{if(Tt!==yr||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=bu(e),o!==null){for(t.flags|=128,yi(r,!1),e=o.updateQueue,t.updateQueue=e,yu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qb(n,e),n=n.sibling;return Ne(Lt,Lt.current&fl|rc,t),t.child}e=e.sibling}r.tail!==null&&Hs()>ud&&(t.flags|=128,s=!0,yi(r,!1),t.lanes=4194304)}else{if(!s)if(e=bu(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,yu(t,e),yi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!tt)return wt(t),null}else 2*Hs()-r.renderingStartTime>ud&&n!==536870912&&(t.flags|=128,s=!0,yi(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Hs(),e.sibling=null,n=Lt.current,n=s?n&fl|rc:n&fl,Ne(Lt,n,t),e):(wt(t),null);case 22:case 23:return rr(t),Cm(t),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),n=t.updateQueue,n!==null&&yu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&oe(Jo,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),nr(_t,t),wt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Qw(e,t){switch(xm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Kt)!==ht&&Kc(t),t):null;case 3:return nr(_t,t),V(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return z(t),null;case 13:if(rr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Kt)!==ht&&Kc(t),t):null;case 19:return oe(Lt,t),null;case 4:return V(t),null;case 10:return nr(t.type,t),null;case 22:case 23:return rr(t),Cm(t),e!==null&&oe(Jo,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Kt)!==ht&&Kc(t),t):null;case 24:return nr(_t,t),null;case 25:return null;default:return null}}function ox(e,t){switch(xm(t),t.tag){case 3:nr(_t,t),V(t);break;case 26:case 27:case 5:z(t);break;case 4:V(t);break;case 13:rr(t);break;case 19:oe(Lt,t);break;case 10:nr(t.type,t);break;case 22:case 23:rr(t),Cm(t),e!==null&&oe(Jo,t);break;case 24:nr(_t,t)}}function Vs(e){return(e.mode&Kt)!==ht}function ax(e,t){Vs(e)?(As(),Ni(t,e),Rs()):Ni(t,e)}function vf(e,t,n){Vs(e)?(As(),Ma(n,e,t),Rs()):Ma(n,e,t)}function Ni(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var r=s.next;n=r;do{if((n.tag&e)===e&&((e&Bt)!==os?me!==null&&typeof me.markComponentPassiveEffectMountStarted=="function"&&me.markComponentPassiveEffectMountStarted(t):(e&Jt)!==os&&me!==null&&typeof me.markComponentLayoutEffectMountStarted=="function"&&me.markComponentLayoutEffectMountStarted(t),s=void 0,(e&fn)!==os&&(wl=!0),s=Ue(t,mj,n),(e&fn)!==os&&(wl=!1),(e&Bt)!==os?me!==null&&typeof me.markComponentPassiveEffectMountStopped=="function"&&me.markComponentPassiveEffectMountStopped():(e&Jt)!==os&&me!==null&&typeof me.markComponentLayoutEffectMountStopped=="function"&&me.markComponentLayoutEffectMountStopped(),s!==void 0&&typeof s!="function")){var o=void 0;o=(n.tag&Jt)!==0?"useLayoutEffect":(n.tag&fn)!==0?"useInsertionEffect":"useEffect";var u=void 0;u=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
|
|
182
182
|
|
|
183
183
|
It looks like you wrote `+o+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
@@ -191,7 +191,7 @@ It looks like you wrote `+o+`(async () => ...) or returned a Promise. Instead, w
|
|
|
191
191
|
fetchData();
|
|
192
192
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
193
193
|
|
|
194
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,Ue(t,function(m,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",m,b)},o,u)}n=n.next}while(n!==r)}}catch(m){ut(t,t.return,m)}}function Ma(e,t,n){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var o=r.next;s=o;do{if((s.tag&e)===e){var u=s.inst,m=u.destroy;m!==void 0&&(u.destroy=void 0,(e&Bt)!==os?me!==null&&typeof me.markComponentPassiveEffectUnmountStarted=="function"&&me.markComponentPassiveEffectUnmountStarted(t):(e&Jt)!==os&&me!==null&&typeof me.markComponentLayoutEffectUnmountStarted=="function"&&me.markComponentLayoutEffectUnmountStarted(t),(e&fn)!==os&&(wl=!0),r=t,Ue(r,fj,r,n,m),(e&fn)!==os&&(wl=!1),(e&Bt)!==os?me!==null&&typeof me.markComponentPassiveEffectUnmountStopped=="function"&&me.markComponentPassiveEffectUnmountStopped():(e&Jt)!==os&&me!==null&&typeof me.markComponentLayoutEffectUnmountStopped=="function"&&me.markComponentLayoutEffectUnmountStopped())}s=s.next}while(s!==o)}}catch(b){ut(t,t.return,b)}}function lx(e,t){Vs(e)?(As(),Ni(t,e),Rs()):Ni(t,e)}function xf(e,t,n){Vs(e)?(As(),Ma(n,e,t),Rs()):Ma(n,e,t)}function ix(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||hl||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{Ue(e,cv,t,n)}catch(s){ut(e,e.return,s)}}}function Iw(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Xw(e,t){var n=t.memoizedProps,s=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||hl||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{var r=Yo(e.type,n,e.elementType===e.type),o=Ue(e,Iw,t,r,s);n=V0,o!==void 0||n.has(e.type)||(n.add(e.type),Ue(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",J(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(u){ut(e,e.return,u)}}function cx(e,t,n){n.props=Yo(e.type,e.memoizedProps),n.state=e.memoizedState,Vs(e)?(As(),Ue(e,o0,e,t,n),Rs()):Ue(e,o0,e,t,n)}function Zw(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t=="function")if(Vs(e))try{As(),e.refCleanup=t(n)}finally{Rs()}else e.refCleanup=t(n);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",J(e)),t.current=n}}function wi(e,t){try{Ue(e,Zw,e)}catch(n){ut(e,t,n)}}function Ms(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{if(Vs(e))try{As(),Ue(e,s)}finally{Rs(e)}else Ue(e,s)}catch(r){ut(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(Vs(e))try{As(),Ue(e,n,null)}finally{Rs(e)}else Ue(e,n,null)}catch(r){ut(e,t,r)}else n.current=null}function ux(e,t,n,s){var r=e.memoizedProps,o=r.id,u=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Ju&&(t="nested-update"),typeof r=="function"&&r(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof u=="function"&&u(e.memoizedProps.id,t,s,n)}function Kw(e,t,n,s){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Ju&&(t="nested-update"),typeof r=="function"&&r(e,t,s,n)}function dx(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{Ue(e,gS,s,t,n,e)}catch(r){ut(e,e.return,r)}}function gf(e,t,n){try{Ue(e,yS,e.stateNode,e.type,n,t,e)}catch(s){ut(e,e.return,s)}}function mx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$r(e.type)||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mx(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.tag===27&&$r(e.type)||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 Nf(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Du));else if(s!==4&&(s===27&&$r(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nf(e,t,n),e=e.sibling;e!==null;)Nf(e,t,n),e=e.sibling}function Nu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&$r(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}function Jw(e){for(var t,n=e.return;n!==null;){if(mx(n)){t=n;break}n=n.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,n=yf(e),Nu(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(pg(n),t.flags&=-33),t=yf(e),Nu(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=yf(e),Nf(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function fx(e){var t=e.stateNode,n=e.memoizedProps;try{Ue(e,MS,e.type,n,t,e)}catch(s){ut(e,e.return,s)}}function Ww(e,t){if(e=e.containerInfo,bh=Dd,e=qb(e),cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,m=-1,b=-1,x=0,P=0,L=e,O=null;t:for(;;){for(var q;L!==n||r!==0&&L.nodeType!==3||(m=u+r),L!==o||s!==0&&L.nodeType!==3||(b=u+s),L.nodeType===3&&(u+=L.nodeValue.length),(q=L.firstChild)!==null;)O=L,L=q;for(;;){if(L===e)break t;if(O===n&&++x===r&&(m=u),O===o&&++P===s&&(b=u),(q=L.nextSibling)!==null)break;L=O,O=L.parentNode}L=q}n=m===-1||b===-1?null:{start:m,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(vh={focusedElem:e,selectionRange:n},Dd=!1,$t=t;$t!==null;)if(t=$t,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,$t=e;else for(;$t!==null;){switch(e=t=$t,n=e.alternate,r=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(r&1024)!==0&&n!==null&&Xw(e,n);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)Ff(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ff(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,$t=e;break}$t=t.return}}function px(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:ir(e,n),s&4&&ax(n,Jt|as);break;case 1:if(ir(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||hl||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(n)||"instance")),Vs(n)?(As(),Ue(n,Yp,n,e),Rs()):Ue(n,Yp,n,e);else{var r=Yo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||hl||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(n)||"instance")),Vs(n)?(As(),Ue(n,n0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate),Rs()):Ue(n,n0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&ix(n),s&512&&wi(n,n.return);break;case 3:if(t=sr(),ir(e,n),s&64&&(s=n.updateQueue,s!==null)){if(r=null,n.child!==null)switch(n.child.tag){case 27:case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}try{Ue(n,cv,s,r)}catch(u){ut(n,n.return,u)}}e.effectDuration+=Zc(t);break;case 27:t===null&&s&4&&fx(n);case 26:case 5:ir(e,n),t===null&&s&4&&dx(n),s&512&&wi(n,n.return);break;case 12:if(s&4){s=sr(),ir(e,n),e=n.stateNode,e.effectDuration+=mi(s);try{Ue(n,ux,n,t,Ku,e.effectDuration)}catch(u){ut(n,n.return,u)}}else ir(e,n);break;case 13:ir(e,n),s&4&&vx(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=iS.bind(null,n),RS(e,n))));break;case 22:if(s=n.memoizedState!==null||gr,!s){t=t!==null&&t.memoizedState!==null||Mt,r=gr;var o=Mt;gr=s,(Mt=t)&&!o?cr(e,n,(n.subtreeFlags&8772)!==0):ir(e,n),gr=r,Mt=o}break;case 30:break;default:ir(e,n)}}function hx(e){var t=e.alternate;t!==null&&(e.alternate=null,hx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Us(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lr(e,t,n){for(n=n.child;n!==null;)bx(e,t,n),n=n.sibling}function bx(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ga,n)}catch(o){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",o))}switch(n.tag){case 26:Mt||Ms(n,t),lr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Mt||Ms(n,t);var s=Ht,r=Tn;$r(n.type)&&(Ht=n.stateNode,Tn=!1),lr(e,t,n),Ue(n,Ci,n.stateNode),Ht=s,Tn=r;break;case 5:Mt||Ms(n,t);case 6:if(s=Ht,r=Tn,Ht=null,lr(e,t,n),Ht=s,Tn=r,Ht!==null)if(Tn)try{Ue(n,SS,Ht,n.stateNode)}catch(o){ut(n,t,o)}else try{Ue(n,wS,Ht,n.stateNode)}catch(o){ut(n,t,o)}break;case 18:Ht!==null&&(Tn?(e=Ht,hg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Mi(e)):hg(Ht,n.stateNode));break;case 4:s=Ht,r=Tn,Ht=n.stateNode.containerInfo,Tn=!0,lr(e,t,n),Ht=s,Tn=r;break;case 0:case 11:case 14:case 15:Mt||Ma(fn,n,t),Mt||vf(n,t,Jt),lr(e,t,n);break;case 1:Mt||(Ms(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&cx(n,t,s)),lr(e,t,n);break;case 21:lr(e,t,n);break;case 22:Mt=(s=Mt)||n.memoizedState!==null,lr(e,t,n),Mt=s;break;default:lr(e,t,n)}}function vx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ue(t,VS,e)}catch(n){ut(t,t.return,n)}}function eS(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new M0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new M0),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function wf(e,t){var n=eS(e);t.forEach(function(s){var r=cS.bind(null,e,s);if(!n.has(s)){if(n.add(s),bs)if(bl!==null&&vl!==null)Di(vl,bl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(r,r)}})}function Ln(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=e,o=t,u=n[s],m=o;e:for(;m!==null;){switch(m.tag){case 27:if($r(m.type)){Ht=m.stateNode,Tn=!1;break e}break;case 5:Ht=m.stateNode,Tn=!1;break e;case 3:case 4:Ht=m.stateNode.containerInfo,Tn=!0;break e}m=m.return}if(Ht===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bx(r,o,u),Ht=null,Tn=!1,r=u,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)xx(t,e),t=t.sibling}function xx(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ln(t,e),qn(e),s&4&&(Ma(fn|as,e,e.return),Ni(fn|as,e),vf(e,e.return,Jt|as));break;case 1:Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),s&64&&gr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var r=ys;if(Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),s&4)if(t=n!==null?n.memoizedState:null,s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,t=r.ownerDocument||r;t:switch(s){case"title":r=t.getElementsByTagName("title")[0],(!r||r[ki]||r[tn]||r.namespaceURI===Qa||r.hasAttribute("itemprop"))&&(r=t.createElement(s),t.head.insertBefore(r,t.querySelector("head > title"))),Xt(r,s,n),r[tn]=e,R(r),s=r;break e;case"link":var o=jg("link","href",t).get(s+(n.href||""));if(o){for(var u=0;u<o.length;u++)if(r=o[u],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(u,1);break t}}r=t.createElement(s),Xt(r,s,n),t.head.appendChild(r);break;case"meta":if(o=jg("meta","content",t).get(s+(n.content||""))){for(u=0;u<o.length;u++)if(r=o[u],Z(n.content,"content"),r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(u,1);break t}}r=t.createElement(s),Xt(r,s,n),t.head.appendChild(r);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}r[tn]=e,R(r),s=r}e.stateNode=s}else Dg(r,e.type,e.stateNode);else e.stateNode=Eg(r,s,e.memoizedProps);else t!==s?(t===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):t.count--,s===null?Dg(r,e.type,e.stateNode):Eg(r,s,e.memoizedProps)):s===null&&e.stateNode!==null&&gf(e,e.memoizedProps,n.memoizedProps);break;case 27:Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),n!==null&&s&4&&gf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),e.flags&32){t=e.stateNode;try{Ue(e,pg,t)}catch(P){ut(e,e.return,P)}}s&4&&e.stateNode!=null&&(t=e.memoizedProps,gf(e,t,n!==null?n.memoizedProps:t)),s&1024&&(Kp=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ln(t,e),qn(e),s&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");s=e.memoizedProps,n=n!==null?n.memoizedProps:s,t=e.stateNode;try{Ue(e,NS,t,n,s)}catch(P){ut(e,e.return,P)}}break;case 3:if(r=sr(),Sd=null,o=ys,ys=Uu(t.containerInfo),Ln(t,e),ys=o,qn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ue(e,AS,t.containerInfo)}catch(P){ut(e,e.return,P)}Kp&&(Kp=!1,gx(e)),t.effectDuration+=Zc(r);break;case 4:s=ys,ys=Uu(e.stateNode.containerInfo),Ln(t,e),qn(e),ys=s;break;case 12:s=sr(),Ln(t,e),qn(e),e.stateNode.effectDuration+=mi(s);break;case 13:Ln(t,e),qn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sh=Hs()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,wf(e,s)));break;case 22:r=e.memoizedState!==null;var m=n!==null&&n.memoizedState!==null,b=gr,x=Mt;if(gr=b||r,Mt=x||m,Ln(t,e),Mt=x,gr=b,qn(e),s&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&~Qu:t._visibility|Qu,r&&(n===null||m||gr||Mt||Go(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){m=n=t;try{o=m.stateNode,r?Ue(m,ES,o):Ue(m,DS,m.stateNode,m.memoizedProps)}catch(P){ut(m,m.return,P)}}}else if(t.tag===6){if(n===null){m=t;try{u=m.stateNode,r?Ue(m,jS,u):Ue(m,TS,u,m.memoizedProps)}catch(P){ut(m,m.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,wf(e,n))));break;case 19:Ln(t,e),qn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,wf(e,s)));break;case 30:break;case 21:break;default:Ln(t,e),qn(e)}}function qn(e){var t=e.flags;if(t&2){try{Ue(e,Jw,e)}catch(n){ut(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ir(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)px(e,t.alternate,t),t=t.sibling}function yx(e){switch(e.tag){case 0:case 11:case 14:case 15:vf(e,e.return,Jt),Go(e);break;case 1:Ms(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&cx(e,e.return,t),Go(e);break;case 27:Ue(e,Ci,e.stateNode);case 26:case 5:Ms(e,e.return),Go(e);break;case 22:e.memoizedState===null&&Go(e);break;case 30:Go(e);break;default:Go(e)}}function Go(e){for(e=e.child;e!==null;)yx(e),e=e.sibling}function Nx(e,t,n,s){var r=n.flags;switch(n.tag){case 0:case 11:case 15:cr(e,n,s),ax(n,Jt);break;case 1:if(cr(e,n,s),t=n.stateNode,typeof t.componentDidMount=="function"&&Ue(n,Yp,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{Ue(n,Hw,t,e)}catch(o){ut(n,n.return,o)}}s&&r&64&&ix(n),wi(n,n.return);break;case 27:fx(n);case 26:case 5:cr(e,n,s),s&&t===null&&r&4&&dx(n),wi(n,n.return);break;case 12:if(s&&r&4){r=sr(),cr(e,n,s),s=n.stateNode,s.effectDuration+=mi(r);try{Ue(n,ux,n,t,Ku,s.effectDuration)}catch(o){ut(n,n.return,o)}}else cr(e,n,s);break;case 13:cr(e,n,s),s&&r&4&&vx(e,n);break;case 22:n.memoizedState===null&&cr(e,n,s),wi(n,n.return);break;case 30:break;default:cr(e,n,s)}}function cr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Nx(e,t.alternate,t,n),t=t.sibling}function Sf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Bo(e),n!=null&&di(n))}function Ef(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Bo(t),e!=null&&di(e))}function Os(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wx(e,t,n,s),t=t.sibling}function wx(e,t,n,s){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Os(e,t,n,s),r&2048&&lx(t,Bt|as);break;case 1:Os(e,t,n,s);break;case 3:var o=sr();Os(e,t,n,s),r&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(Bo(t),n!=null&&di(n))),e.passiveEffectDuration+=Zc(o);break;case 12:if(r&2048){r=sr(),Os(e,t,n,s),e=t.stateNode,e.passiveEffectDuration+=mi(r);try{Ue(t,Kw,t,t.alternate,Ku,e.passiveEffectDuration)}catch(m){ut(t,t.return,m)}}else Os(e,t,n,s);break;case 13:Os(e,t,n,s);break;case 23:break;case 22:o=t.stateNode;var u=t.alternate;t.memoizedState!==null?o._visibility&fr?Os(e,t,n,s):Si(e,t):o._visibility&fr?Os(e,t,n,s):(o._visibility|=fr,Oa(e,t,n,s,(t.subtreeFlags&10256)!==0)),r&2048&&Sf(u,t);break;case 24:Os(e,t,n,s),r&2048&&Ef(t.alternate,t);break;default:Os(e,t,n,s)}}function Oa(e,t,n,s,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)Sx(e,t,n,s,r),t=t.sibling}function Sx(e,t,n,s,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Oa(e,t,n,s,r),lx(t,Bt);break;case 23:break;case 22:var u=t.stateNode;t.memoizedState!==null?u._visibility&fr?Oa(e,t,n,s,r):Si(e,t):(u._visibility|=fr,Oa(e,t,n,s,r)),r&&o&2048&&Sf(t.alternate,t);break;case 24:Oa(e,t,n,s,r),r&&o&2048&&Ef(t.alternate,t);break;default:Oa(e,t,n,s,r)}}function Si(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,r=s.flags;switch(s.tag){case 22:Si(n,s),r&2048&&Sf(s.alternate,s);break;case 24:Si(n,s),r&2048&&Ef(s.alternate,s);break;default:Si(n,s)}t=t.sibling}}function Pa(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)Ex(e),e=e.sibling}function Ex(e){switch(e.tag){case 26:Pa(e),e.flags&oc&&e.memoizedState!==null&&zS(ys,e.memoizedState,e.memoizedProps);break;case 5:Pa(e);break;case 3:case 4:var t=ys;ys=Uu(e.stateNode.containerInfo),Pa(e),ys=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,Pa(e),oc=t):Pa(e));break;default:Pa(e)}}function jx(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];$t=s,Ux(s,e)}jx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dx(e),e=e.sibling}function Dx(e){switch(e.tag){case 0:case 11:case 15:Ei(e),e.flags&2048&&xf(e,e.return,Bt|as);break;case 3:var t=sr();Ei(e),e.stateNode.passiveEffectDuration+=Zc(t);break;case 12:t=sr(),Ei(e),e.stateNode.passiveEffectDuration+=mi(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&fr&&(e.return===null||e.return.tag!==13)?(t._visibility&=~fr,wu(e)):Ei(e);break;default:Ei(e)}}function wu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];$t=s,Ux(s,e)}jx(e)}for(e=e.child;e!==null;)Tx(e),e=e.sibling}function Tx(e){switch(e.tag){case 0:case 11:case 15:xf(e,e.return,Bt),wu(e);break;case 22:var t=e.stateNode;t._visibility&fr&&(t._visibility&=~fr,wu(e));break;default:wu(e)}}function Ux(e,t){for(;$t!==null;){var n=$t,s=n;switch(s.tag){case 0:case 11:case 15:xf(s,t,Bt);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(s=s.memoizedState.cachePool.pool,s!=null&&Bo(s));break;case 24:di(s.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,$t=s;else e:for(n=e;$t!==null;){s=$t;var r=s.sibling,o=s.return;if(hx(s),s===n){$t=null;break e}if(r!==null){r.return=o,$t=r;break e}$t=o}}}function tS(){hj.forEach(function(e){return e()})}function Cx(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||B.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Fn(e){if((rt&pn)!==$n&&Ze!==0)return Ze&-Ze;var t=B.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Ko,e!==0?e:Mf()):Pr()}function Rx(){In===0&&(In=(Ze&536870912)===0||tt?Be():536870912);var e=is.current;return e!==null&&(e.flags|=32),In}function Vt(e,t,n){if(wl&&console.error("useInsertionEffect must not schedule updates."),ih&&(dd=!0),(e===ft&&(lt===na||lt===sa)||e.cancelPendingCommit!==null)&&(za(e,0),Yr(e,Ze,In,!1)),ln(e,n),(rt&pn)!==0&&e===ft){if(Ls)switch(t.tag){case 0:case 11:case 15:e=$e&&J($e)||"Unknown",F0.has(e)||(F0.add(e),t=J(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:q0||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),q0=!0)}}else bs&&Or(e,t,n),dS(t),e===ft&&((rt&pn)===$n&&(oo|=n),Tt===ta&&Yr(e,Ze,In,!1)),Ps(e)}function Ax(e,t,n){if((rt&(pn|Ns))!==$n)throw Error("Should not already be working.");var s=!n&&(t&124)===0&&(t&e.expiredLanes)===0||ms(e,t),r=s?sS(e,t):Tf(e,t,!0),o=s;do{if(r===yr){yl&&!s&&Yr(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!nS(n)){r=Tf(e,t,!1),o=!1;continue}if(r===xl){if(o=t,e.errorRecoveryDisabledLanes&o)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{r=e;var m=u;u=dc;var b=r.current.memoizedState.isDehydrated;if(b&&(za(r,m).flags|=256),m=Tf(r,m,!1),m!==xl){if(th&&!b){r.errorRecoveryDisabledLanes|=o,oo|=o,r=ta;break e}r=hn,hn=u,r!==null&&(hn===null?hn=r:hn.push.apply(hn,r))}r=m}if(o=!1,r!==xl)continue}}if(r===lc){za(e,0),Yr(e,t,0,!0);break}e:{switch(s=e,r){case yr:case lc:throw Error("Root did not complete. This is a bug in React.");case ta:if((t&4194048)!==t)break;case id:Yr(s,t,In,!so);break e;case xl:hn=null;break;case Jp:case O0:break;default:throw Error("Unknown root exit status.")}if(B.actQueue!==null)Uf(s,n,t,hn,mc,cd,In,oo,ra);else{if((t&62914560)===t&&(o=sh+k0-Hs(),10<o)){if(Yr(s,t,In,!so),an(s,0,!0)!==0)break e;s.timeoutHandle=K0(Vx.bind(null,s,n,hn,mc,cd,t,In,oo,ra,so,r,gj,Hy,0),o);break e}Vx(s,n,hn,mc,cd,t,In,oo,ra,so,r,vj,Hy,0)}}}break}while(!0);Ps(e)}function Vx(e,t,n,s,r,o,u,m,b,x,P,L,O,q){if(e.timeoutHandle=ca,L=t.subtreeFlags,(L&8192||(L&16785408)===16785408)&&(xc={stylesheets:null,count:0,unsuspend:kS},Ex(t),L=HS(),L!==null)){e.cancelPendingCommit=L(Uf.bind(null,e,t,o,n,s,r,u,m,b,P,xj,O,q)),Yr(e,o,u,!x);return}Uf(e,t,o,n,s,r,u,m,b)}function nS(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var r=n[s],o=r.getSnapshot;r=r.value;try{if(!dn(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yr(e,t,n,s){t&=~nh,t&=~oo,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var r=t;0<r;){var o=31-cn(r),u=1<<o;s[o]=-1,r&=~u}n!==0&&Uo(e,n,t)}function ka(){return(rt&(pn|Ns))===$n?(Ti(0),!1):!0}function jf(){if($e!==null){if(lt===Un)var e=$e.return;else e=$e,Qc(),Pm(e),dl=null,sc=0,e=$e;for(;e!==null;)ox(e.alternate,e),e=e.return;$e=null}}function za(e,t){var n=e.timeoutHandle;n!==ca&&(e.timeoutHandle=ca,Vj(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jf(),ft=e,$e=n=tr(e.current,null),Ze=t,lt=Un,Qn=null,so=!1,yl=ms(e,t),th=!1,Tt=yr,ra=In=nh=oo=ro=0,hn=dc=null,cd=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var r=31-cn(s),o=1<<r;t|=e[r],s&=~o}return $s=t,Fc(),t=ky(),1e3<t-Py&&(B.recentlyCreatedOwnerStacks=0,Py=t),xs.discardPendingWarnings(),n}function Mx(e,t){Ve=null,B.H=ad,B.getCurrentStack=null,Ls=!1,Gn=null,t===Wi||t===td?(t=av(),lt=cc):t===Ly?(t=av(),lt=P0):lt=t===j0?eh:t!==null&&typeof t=="object"&&typeof t.then=="function"?gl:ic,Qn=t;var n=$e;if(n===null)Tt=lc,vu(e,Bn(t,e.current));else switch(n.mode&Kt&&Em(n),Ie(),lt){case ic:me!==null&&typeof me.markComponentErrored=="function"&&me.markComponentErrored(n,t,Ze);break;case na:case sa:case cc:case gl:case uc:me!==null&&typeof me.markComponentSuspended=="function"&&me.markComponentSuspended(n,t,Ze)}}function Ox(){var e=B.H;return B.H=ad,e===null?ad:e}function Px(){var e=B.A;return B.A=pj,e}function Df(){Tt=ta,so||(Ze&4194048)!==Ze&&is.current!==null||(yl=!0),(ro&134217727)===0&&(oo&134217727)===0||ft===null||Yr(ft,Ze,In,!1)}function Tf(e,t,n){var s=rt;rt|=pn;var r=Ox(),o=Px();if(ft!==e||Ze!==t){if(bs){var u=e.memoizedUpdaters;0<u.size&&(Di(e,Ze),u.clear()),er(e,t)}mc=null,za(e,t)}Ct(t),t=!1,u=Tt;e:do try{if(lt!==Un&&$e!==null){var m=$e,b=Qn;switch(lt){case eh:jf(),u=id;break e;case cc:case na:case sa:case gl:is.current===null&&(t=!0);var x=lt;if(lt=Un,Qn=null,Ha(e,m,b,x),n&&yl){u=yr;break e}break;default:x=lt,lt=Un,Qn=null,Ha(e,m,b,x)}}kx(),u=Tt;break}catch(P){Mx(e,P)}while(!0);return t&&e.shellSuspendCounter++,Qc(),rt=s,B.H=r,B.A=o,on(),$e===null&&(ft=null,Ze=0,Fc()),u}function kx(){for(;$e!==null;)zx($e)}function sS(e,t){var n=rt;rt|=pn;var s=Ox(),r=Px();if(ft!==e||Ze!==t){if(bs){var o=e.memoizedUpdaters;0<o.size&&(Di(e,Ze),o.clear()),er(e,t)}mc=null,ud=Hs()+z0,za(e,t)}else yl=ms(e,t);Ct(t);e:do try{if(lt!==Un&&$e!==null)t:switch(t=$e,o=Qn,lt){case ic:lt=Un,Qn=null,Ha(e,t,o,ic);break;case na:case sa:if(rv(o)){lt=Un,Qn=null,Hx(t);break}t=function(){lt!==na&<!==sa||ft!==e||(lt=uc),Ps(e)},o.then(t,t);break e;case cc:lt=uc;break e;case P0:lt=Wp;break e;case uc:rv(o)?(lt=Un,Qn=null,Hx(t)):(lt=Un,Qn=null,Ha(e,t,o,uc));break;case Wp:var u=null;switch($e.tag){case 26:u=$e.memoizedState;case 5:case 27:var m=$e;if(!u||Tg(u)){lt=Un,Qn=null;var b=m.sibling;if(b!==null)$e=b;else{var x=m.return;x!==null?($e=x,Su(x)):$e=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}lt=Un,Qn=null,Ha(e,t,o,Wp);break;case gl:lt=Un,Qn=null,Ha(e,t,o,gl);break;case eh:jf(),Tt=id;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}B.actQueue!==null?kx():rS();break}catch(P){Mx(e,P)}while(!0);return Qc(),B.H=s,B.A=r,rt=n,$e!==null?(me!==null&&typeof me.markRenderYielded=="function"&&me.markRenderYielded(),yr):(on(),ft=null,Ze=0,Fc(),Tt)}function rS(){for(;$e!==null&&!eE();)zx($e)}function zx(e){var t=e.alternate;(e.mode&Kt)!==ht?(Sm(e),t=Ue(e,bf,t,e,$s),Em(e)):t=Ue(e,bf,t,e,$s),e.memoizedProps=e.pendingProps,t===null?Su(e):$e=t}function Hx(e){var t=Ue(e,oS,e);e.memoizedProps=e.pendingProps,t===null?Su(e):$e=t}function oS(e){var t=e.alternate,n=(e.mode&Kt)!==ht;switch(n&&Sm(e),e.tag){case 15:case 0:t=Kv(t,e,e.pendingProps,e.type,void 0,Ze);break;case 11:t=Kv(t,e,e.pendingProps,e.type.render,e.ref,Ze);break;case 5:Pm(e);default:ox(t,e),e=$e=Qb(e,$s),t=bf(t,e,$s)}return n&&Em(e),t}function Ha(e,t,n,s){Qc(),Pm(t),dl=null,sc=0;var r=t.return;try{if(Yw(e,r,t,n,Ze)){Tt=lc,vu(e,Bn(n,e.current)),$e=null;return}}catch(o){if(r!==null)throw $e=r,o;Tt=lc,vu(e,Bn(n,e.current)),$e=null;return}t.flags&32768?(tt||s===ic?e=!0:yl||(Ze&536870912)!==0?e=!1:(so=e=!0,(s===na||s===sa||s===cc||s===gl)&&(s=is.current,s!==null&&s.tag===13&&(s.flags|=16384))),_x(t,e)):Su(t)}function Su(e){var t=e;do{if((t.flags&32768)!==0){_x(t,so);return}var n=t.alternate;if(e=t.return,Sm(t),n=Ue(t,$w,n,t,$s),(t.mode&Kt)!==ht&&ev(t),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Tt===yr&&(Tt=O0)}function _x(e,t){do{var n=Qw(e.alternate,e);if(n!==null){n.flags&=32767,$e=n;return}if((e.mode&Kt)!==ht){ev(e),n=e.actualDuration;for(var s=e.child;s!==null;)n+=s.actualDuration,s=s.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$e=e;return}$e=e=n}while(e!==null);Tt=id,$e=null}function Uf(e,t,n,s,r,o,u,m,b){e.cancelPendingCommit=null;do ji();while(Wt!==oa);if(xs.flushLegacyContextWarning(),xs.flushPendingUnsafeLifecycleWarnings(),(rt&(pn|Ns))!==$n)throw Error("Should not already be working.");if(me!==null&&typeof me.markCommitStarted=="function"&&me.markCommitStarted(n),t===null)pe();else{if(n===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(o=t.lanes|t.childLanes,o|=Ap,ja(e,n,o,u,m,b),e===ft&&($e=ft=null,Ze=0),Nl=t,lo=e,io=n,oh=o,ah=r,L0=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uS(Ya,function(){return Yx(),null})):(e.callbackNode=null,e.callbackPriority=0),Ku=al(),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null,r=st.p,st.p=Wn,u=rt,rt|=Ns;try{Ww(e,t,n)}finally{rt=u,st.p=r,B.T=s}}Wt=H0,Bx(),Lx(),qx()}}function Bx(){if(Wt===H0){Wt=oa;var e=lo,t=Nl,n=io,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null;var r=st.p;st.p=Wn;var o=rt;rt|=Ns;try{bl=n,vl=e,xx(t,e),vl=bl=null,n=vh;var u=qb(e.containerInfo),m=n.focusedElem,b=n.selectionRange;if(u!==m&&m&&m.ownerDocument&&Lb(m.ownerDocument.documentElement,m)){if(b!==null&&cm(m)){var x=b.start,P=b.end;if(P===void 0&&(P=x),"selectionStart"in m)m.selectionStart=x,m.selectionEnd=Math.min(P,m.value.length);else{var L=m.ownerDocument||document,O=L&&L.defaultView||window;if(O.getSelection){var q=O.getSelection(),ve=m.textContent.length,Ae=Math.min(b.start,ve),pt=b.end===void 0?Ae:Math.min(b.end,ve);!q.extend&&Ae>pt&&(u=pt,pt=Ae,Ae=u);var Je=Bb(m,Ae),S=Bb(m,pt);if(Je&&S&&(q.rangeCount!==1||q.anchorNode!==Je.node||q.anchorOffset!==Je.offset||q.focusNode!==S.node||q.focusOffset!==S.offset)){var E=L.createRange();E.setStart(Je.node,Je.offset),q.removeAllRanges(),Ae>pt?(q.addRange(E),q.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),q.addRange(E))}}}}for(L=[],q=m;q=q.parentNode;)q.nodeType===1&&L.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<L.length;m++){var U=L[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Dd=!!bh,vh=bh=null}finally{rt=o,st.p=r,B.T=s}}e.current=t,Wt=_0}}function Lx(){if(Wt===_0){Wt=oa;var e=lo,t=Nl,n=io,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=B.T,B.T=null;var r=st.p;st.p=Wn;var o=rt;rt|=Ns;try{me!==null&&typeof me.markLayoutEffectsStarted=="function"&&me.markLayoutEffectsStarted(n),bl=n,vl=e,px(e,t.alternate,t),vl=bl=null,me!==null&&typeof me.markLayoutEffectsStopped=="function"&&me.markLayoutEffectsStopped()}finally{rt=o,st.p=r,B.T=s}}Wt=B0}}function qx(){if(Wt===yj||Wt===B0){Wt=oa,tE();var e=lo,t=Nl,n=io,s=L0,r=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;r?Wt=rh:(Wt=oa,Nl=lo=null,Fx(e,e.pendingLanes),aa=0,pc=null);var o=e.pendingLanes;if(o===0&&(ao=null),r||Ix(e),r=Pn(n),t=t.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{var u=(t.current.flags&128)===128;switch(r){case Wn:var m=cp;break;case Bs:m=up;break;case mr:m=Ya;break;case Bu:m=dp;break;default:m=Ya}en.onCommitFiberRoot(Ga,t,m,u)}catch(L){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",L))}if(bs&&e.memoizedUpdaters.clear(),tS(),s!==null){u=B.T,m=st.p,st.p=Wn,B.T=null;try{var b=e.onRecoverableError;for(t=0;t<s.length;t++){var x=s[t],P=aS(x.stack);Ue(x.source,b,x.value,P)}}finally{B.T=u,st.p=m}}(io&3)!==0&&ji(),Ps(e),o=e.pendingLanes,(n&4194090)!==0&&(o&42)!==0?(Wu=!0,e===lh?fc++:(fc=0,lh=e)):fc=0,Ti(0),pe()}}function aS(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Fx(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,di(t)))}function ji(e){return Bx(),Lx(),qx(),Yx()}function Yx(){if(Wt!==rh)return!1;var e=lo,t=oh;oh=0;var n=Pn(io),s=mr>n?mr:n;n=B.T;var r=st.p;try{st.p=s,B.T=null,s=ah,ah=null;var o=lo,u=io;if(Wt=oa,Nl=lo=null,io=0,(rt&(pn|Ns))!==$n)throw Error("Cannot flush passive effects while already rendering.");ih=!0,dd=!1,me!==null&&typeof me.markPassiveEffectsStarted=="function"&&me.markPassiveEffectsStarted(u);var m=rt;if(rt|=Ns,Dx(o.current),wx(o,o.current,u,s),me!==null&&typeof me.markPassiveEffectsStopped=="function"&&me.markPassiveEffectsStopped(),Ix(o),rt=m,Ti(0,!1),dd?o===pc?aa++:(aa=0,pc=o):aa=0,dd=ih=!1,en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Ga,o)}catch(x){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",x))}var b=o.current.stateNode;return b.effectDuration=0,b.passiveEffectDuration=0,!0}finally{st.p=r,B.T=n,Fx(e,t)}}function Gx(e,t,n){t=Bn(n,t),t=rf(e.stateNode,t,2),e=Br(e,t,2),e!==null&&(ln(e,2),Ps(e))}function ut(e,t,n){if(wl=!1,e.tag===3)Gx(e,e,n);else{for(;t!==null;){if(t.tag===3){Gx(t,e,n);return}if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ao===null||!ao.has(s))){e=Bn(n,e),n=of(2),s=Br(t,n,2),s!==null&&(af(n,s,t,e),ln(s,2),Ps(s));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
194
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,Ue(t,function(m,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",m,b)},o,u)}n=n.next}while(n!==r)}}catch(m){ut(t,t.return,m)}}function Ma(e,t,n){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var o=r.next;s=o;do{if((s.tag&e)===e){var u=s.inst,m=u.destroy;m!==void 0&&(u.destroy=void 0,(e&Bt)!==os?me!==null&&typeof me.markComponentPassiveEffectUnmountStarted=="function"&&me.markComponentPassiveEffectUnmountStarted(t):(e&Jt)!==os&&me!==null&&typeof me.markComponentLayoutEffectUnmountStarted=="function"&&me.markComponentLayoutEffectUnmountStarted(t),(e&fn)!==os&&(wl=!0),r=t,Ue(r,fj,r,n,m),(e&fn)!==os&&(wl=!1),(e&Bt)!==os?me!==null&&typeof me.markComponentPassiveEffectUnmountStopped=="function"&&me.markComponentPassiveEffectUnmountStopped():(e&Jt)!==os&&me!==null&&typeof me.markComponentLayoutEffectUnmountStopped=="function"&&me.markComponentLayoutEffectUnmountStopped())}s=s.next}while(s!==o)}}catch(b){ut(t,t.return,b)}}function lx(e,t){Vs(e)?(As(),Ni(t,e),Rs()):Ni(t,e)}function xf(e,t,n){Vs(e)?(As(),Ma(n,e,t),Rs()):Ma(n,e,t)}function ix(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||hl||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{Ue(e,cv,t,n)}catch(s){ut(e,e.return,s)}}}function Iw(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Xw(e,t){var n=t.memoizedProps,s=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||hl||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{var r=Yo(e.type,n,e.elementType===e.type),o=Ue(e,Iw,t,r,s);n=V0,o!==void 0||n.has(e.type)||(n.add(e.type),Ue(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",J(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(u){ut(e,e.return,u)}}function cx(e,t,n){n.props=Yo(e.type,e.memoizedProps),n.state=e.memoizedState,Vs(e)?(As(),Ue(e,o0,e,t,n),Rs()):Ue(e,o0,e,t,n)}function Zw(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t=="function")if(Vs(e))try{As(),e.refCleanup=t(n)}finally{Rs()}else e.refCleanup=t(n);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",J(e)),t.current=n}}function wi(e,t){try{Ue(e,Zw,e)}catch(n){ut(e,t,n)}}function Ms(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{if(Vs(e))try{As(),Ue(e,s)}finally{Rs(e)}else Ue(e,s)}catch(r){ut(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(Vs(e))try{As(),Ue(e,n,null)}finally{Rs(e)}else Ue(e,n,null)}catch(r){ut(e,t,r)}else n.current=null}function ux(e,t,n,s){var r=e.memoizedProps,o=r.id,u=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Ju&&(t="nested-update"),typeof r=="function"&&r(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof u=="function"&&u(e.memoizedProps.id,t,s,n)}function Kw(e,t,n,s){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Ju&&(t="nested-update"),typeof r=="function"&&r(e,t,s,n)}function dx(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{Ue(e,gS,s,t,n,e)}catch(r){ut(e,e.return,r)}}function gf(e,t,n){try{Ue(e,yS,e.stateNode,e.type,n,t,e)}catch(s){ut(e,e.return,s)}}function mx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$r(e.type)||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mx(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.tag===27&&$r(e.type)||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 Nf(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Du));else if(s!==4&&(s===27&&$r(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nf(e,t,n),e=e.sibling;e!==null;)Nf(e,t,n),e=e.sibling}function Nu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&$r(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}function Jw(e){for(var t,n=e.return;n!==null;){if(mx(n)){t=n;break}n=n.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,n=yf(e),Nu(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(pg(n),t.flags&=-33),t=yf(e),Nu(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=yf(e),Nf(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function fx(e){var t=e.stateNode,n=e.memoizedProps;try{Ue(e,MS,e.type,n,t,e)}catch(s){ut(e,e.return,s)}}function Ww(e,t){if(e=e.containerInfo,bh=Dd,e=qb(e),cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,m=-1,b=-1,x=0,P=0,L=e,O=null;t:for(;;){for(var F;L!==n||r!==0&&L.nodeType!==3||(m=u+r),L!==o||s!==0&&L.nodeType!==3||(b=u+s),L.nodeType===3&&(u+=L.nodeValue.length),(F=L.firstChild)!==null;)O=L,L=F;for(;;){if(L===e)break t;if(O===n&&++x===r&&(m=u),O===o&&++P===s&&(b=u),(F=L.nextSibling)!==null)break;L=O,O=L.parentNode}L=F}n=m===-1||b===-1?null:{start:m,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(vh={focusedElem:e,selectionRange:n},Dd=!1,$t=t;$t!==null;)if(t=$t,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,$t=e;else for(;$t!==null;){switch(e=t=$t,n=e.alternate,r=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(r&1024)!==0&&n!==null&&Xw(e,n);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)Ff(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ff(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,$t=e;break}$t=t.return}}function px(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:ir(e,n),s&4&&ax(n,Jt|as);break;case 1:if(ir(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||hl||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(n)||"instance")),Vs(n)?(As(),Ue(n,Yp,n,e),Rs()):Ue(n,Yp,n,e);else{var r=Yo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||hl||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(n)||"instance")),Vs(n)?(As(),Ue(n,n0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate),Rs()):Ue(n,n0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&ix(n),s&512&&wi(n,n.return);break;case 3:if(t=sr(),ir(e,n),s&64&&(s=n.updateQueue,s!==null)){if(r=null,n.child!==null)switch(n.child.tag){case 27:case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}try{Ue(n,cv,s,r)}catch(u){ut(n,n.return,u)}}e.effectDuration+=Zc(t);break;case 27:t===null&&s&4&&fx(n);case 26:case 5:ir(e,n),t===null&&s&4&&dx(n),s&512&&wi(n,n.return);break;case 12:if(s&4){s=sr(),ir(e,n),e=n.stateNode,e.effectDuration+=mi(s);try{Ue(n,ux,n,t,Ku,e.effectDuration)}catch(u){ut(n,n.return,u)}}else ir(e,n);break;case 13:ir(e,n),s&4&&vx(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=iS.bind(null,n),RS(e,n))));break;case 22:if(s=n.memoizedState!==null||gr,!s){t=t!==null&&t.memoizedState!==null||Mt,r=gr;var o=Mt;gr=s,(Mt=t)&&!o?cr(e,n,(n.subtreeFlags&8772)!==0):ir(e,n),gr=r,Mt=o}break;case 30:break;default:ir(e,n)}}function hx(e){var t=e.alternate;t!==null&&(e.alternate=null,hx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Us(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lr(e,t,n){for(n=n.child;n!==null;)bx(e,t,n),n=n.sibling}function bx(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ga,n)}catch(o){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",o))}switch(n.tag){case 26:Mt||Ms(n,t),lr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Mt||Ms(n,t);var s=Ht,r=Tn;$r(n.type)&&(Ht=n.stateNode,Tn=!1),lr(e,t,n),Ue(n,Ci,n.stateNode),Ht=s,Tn=r;break;case 5:Mt||Ms(n,t);case 6:if(s=Ht,r=Tn,Ht=null,lr(e,t,n),Ht=s,Tn=r,Ht!==null)if(Tn)try{Ue(n,SS,Ht,n.stateNode)}catch(o){ut(n,t,o)}else try{Ue(n,wS,Ht,n.stateNode)}catch(o){ut(n,t,o)}break;case 18:Ht!==null&&(Tn?(e=Ht,hg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Mi(e)):hg(Ht,n.stateNode));break;case 4:s=Ht,r=Tn,Ht=n.stateNode.containerInfo,Tn=!0,lr(e,t,n),Ht=s,Tn=r;break;case 0:case 11:case 14:case 15:Mt||Ma(fn,n,t),Mt||vf(n,t,Jt),lr(e,t,n);break;case 1:Mt||(Ms(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&cx(n,t,s)),lr(e,t,n);break;case 21:lr(e,t,n);break;case 22:Mt=(s=Mt)||n.memoizedState!==null,lr(e,t,n),Mt=s;break;default:lr(e,t,n)}}function vx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ue(t,VS,e)}catch(n){ut(t,t.return,n)}}function eS(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new M0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new M0),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function wf(e,t){var n=eS(e);t.forEach(function(s){var r=cS.bind(null,e,s);if(!n.has(s)){if(n.add(s),bs)if(bl!==null&&vl!==null)Di(vl,bl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(r,r)}})}function Ln(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=e,o=t,u=n[s],m=o;e:for(;m!==null;){switch(m.tag){case 27:if($r(m.type)){Ht=m.stateNode,Tn=!1;break e}break;case 5:Ht=m.stateNode,Tn=!1;break e;case 3:case 4:Ht=m.stateNode.containerInfo,Tn=!0;break e}m=m.return}if(Ht===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bx(r,o,u),Ht=null,Tn=!1,r=u,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)xx(t,e),t=t.sibling}function xx(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ln(t,e),qn(e),s&4&&(Ma(fn|as,e,e.return),Ni(fn|as,e),vf(e,e.return,Jt|as));break;case 1:Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),s&64&&gr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var r=ys;if(Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),s&4)if(t=n!==null?n.memoizedState:null,s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,t=r.ownerDocument||r;t:switch(s){case"title":r=t.getElementsByTagName("title")[0],(!r||r[ki]||r[tn]||r.namespaceURI===Qa||r.hasAttribute("itemprop"))&&(r=t.createElement(s),t.head.insertBefore(r,t.querySelector("head > title"))),Xt(r,s,n),r[tn]=e,R(r),s=r;break e;case"link":var o=jg("link","href",t).get(s+(n.href||""));if(o){for(var u=0;u<o.length;u++)if(r=o[u],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(u,1);break t}}r=t.createElement(s),Xt(r,s,n),t.head.appendChild(r);break;case"meta":if(o=jg("meta","content",t).get(s+(n.content||""))){for(u=0;u<o.length;u++)if(r=o[u],Z(n.content,"content"),r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(u,1);break t}}r=t.createElement(s),Xt(r,s,n),t.head.appendChild(r);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}r[tn]=e,R(r),s=r}e.stateNode=s}else Dg(r,e.type,e.stateNode);else e.stateNode=Eg(r,s,e.memoizedProps);else t!==s?(t===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):t.count--,s===null?Dg(r,e.type,e.stateNode):Eg(r,s,e.memoizedProps)):s===null&&e.stateNode!==null&&gf(e,e.memoizedProps,n.memoizedProps);break;case 27:Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),n!==null&&s&4&&gf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ln(t,e),qn(e),s&512&&(Mt||n===null||Ms(n,n.return)),e.flags&32){t=e.stateNode;try{Ue(e,pg,t)}catch(P){ut(e,e.return,P)}}s&4&&e.stateNode!=null&&(t=e.memoizedProps,gf(e,t,n!==null?n.memoizedProps:t)),s&1024&&(Kp=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ln(t,e),qn(e),s&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");s=e.memoizedProps,n=n!==null?n.memoizedProps:s,t=e.stateNode;try{Ue(e,NS,t,n,s)}catch(P){ut(e,e.return,P)}}break;case 3:if(r=sr(),Sd=null,o=ys,ys=Uu(t.containerInfo),Ln(t,e),ys=o,qn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ue(e,AS,t.containerInfo)}catch(P){ut(e,e.return,P)}Kp&&(Kp=!1,gx(e)),t.effectDuration+=Zc(r);break;case 4:s=ys,ys=Uu(e.stateNode.containerInfo),Ln(t,e),qn(e),ys=s;break;case 12:s=sr(),Ln(t,e),qn(e),e.stateNode.effectDuration+=mi(s);break;case 13:Ln(t,e),qn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sh=Hs()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,wf(e,s)));break;case 22:r=e.memoizedState!==null;var m=n!==null&&n.memoizedState!==null,b=gr,x=Mt;if(gr=b||r,Mt=x||m,Ln(t,e),Mt=x,gr=b,qn(e),s&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&~Qu:t._visibility|Qu,r&&(n===null||m||gr||Mt||Go(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){m=n=t;try{o=m.stateNode,r?Ue(m,ES,o):Ue(m,DS,m.stateNode,m.memoizedProps)}catch(P){ut(m,m.return,P)}}}else if(t.tag===6){if(n===null){m=t;try{u=m.stateNode,r?Ue(m,jS,u):Ue(m,TS,u,m.memoizedProps)}catch(P){ut(m,m.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,wf(e,n))));break;case 19:Ln(t,e),qn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,wf(e,s)));break;case 30:break;case 21:break;default:Ln(t,e),qn(e)}}function qn(e){var t=e.flags;if(t&2){try{Ue(e,Jw,e)}catch(n){ut(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ir(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)px(e,t.alternate,t),t=t.sibling}function yx(e){switch(e.tag){case 0:case 11:case 14:case 15:vf(e,e.return,Jt),Go(e);break;case 1:Ms(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&cx(e,e.return,t),Go(e);break;case 27:Ue(e,Ci,e.stateNode);case 26:case 5:Ms(e,e.return),Go(e);break;case 22:e.memoizedState===null&&Go(e);break;case 30:Go(e);break;default:Go(e)}}function Go(e){for(e=e.child;e!==null;)yx(e),e=e.sibling}function Nx(e,t,n,s){var r=n.flags;switch(n.tag){case 0:case 11:case 15:cr(e,n,s),ax(n,Jt);break;case 1:if(cr(e,n,s),t=n.stateNode,typeof t.componentDidMount=="function"&&Ue(n,Yp,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{Ue(n,Hw,t,e)}catch(o){ut(n,n.return,o)}}s&&r&64&&ix(n),wi(n,n.return);break;case 27:fx(n);case 26:case 5:cr(e,n,s),s&&t===null&&r&4&&dx(n),wi(n,n.return);break;case 12:if(s&&r&4){r=sr(),cr(e,n,s),s=n.stateNode,s.effectDuration+=mi(r);try{Ue(n,ux,n,t,Ku,s.effectDuration)}catch(o){ut(n,n.return,o)}}else cr(e,n,s);break;case 13:cr(e,n,s),s&&r&4&&vx(e,n);break;case 22:n.memoizedState===null&&cr(e,n,s),wi(n,n.return);break;case 30:break;default:cr(e,n,s)}}function cr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Nx(e,t.alternate,t,n),t=t.sibling}function Sf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Bo(e),n!=null&&di(n))}function Ef(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Bo(t),e!=null&&di(e))}function Os(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wx(e,t,n,s),t=t.sibling}function wx(e,t,n,s){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Os(e,t,n,s),r&2048&&lx(t,Bt|as);break;case 1:Os(e,t,n,s);break;case 3:var o=sr();Os(e,t,n,s),r&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(Bo(t),n!=null&&di(n))),e.passiveEffectDuration+=Zc(o);break;case 12:if(r&2048){r=sr(),Os(e,t,n,s),e=t.stateNode,e.passiveEffectDuration+=mi(r);try{Ue(t,Kw,t,t.alternate,Ku,e.passiveEffectDuration)}catch(m){ut(t,t.return,m)}}else Os(e,t,n,s);break;case 13:Os(e,t,n,s);break;case 23:break;case 22:o=t.stateNode;var u=t.alternate;t.memoizedState!==null?o._visibility&fr?Os(e,t,n,s):Si(e,t):o._visibility&fr?Os(e,t,n,s):(o._visibility|=fr,Oa(e,t,n,s,(t.subtreeFlags&10256)!==0)),r&2048&&Sf(u,t);break;case 24:Os(e,t,n,s),r&2048&&Ef(t.alternate,t);break;default:Os(e,t,n,s)}}function Oa(e,t,n,s,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)Sx(e,t,n,s,r),t=t.sibling}function Sx(e,t,n,s,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Oa(e,t,n,s,r),lx(t,Bt);break;case 23:break;case 22:var u=t.stateNode;t.memoizedState!==null?u._visibility&fr?Oa(e,t,n,s,r):Si(e,t):(u._visibility|=fr,Oa(e,t,n,s,r)),r&&o&2048&&Sf(t.alternate,t);break;case 24:Oa(e,t,n,s,r),r&&o&2048&&Ef(t.alternate,t);break;default:Oa(e,t,n,s,r)}}function Si(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,r=s.flags;switch(s.tag){case 22:Si(n,s),r&2048&&Sf(s.alternate,s);break;case 24:Si(n,s),r&2048&&Ef(s.alternate,s);break;default:Si(n,s)}t=t.sibling}}function Pa(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)Ex(e),e=e.sibling}function Ex(e){switch(e.tag){case 26:Pa(e),e.flags&oc&&e.memoizedState!==null&&zS(ys,e.memoizedState,e.memoizedProps);break;case 5:Pa(e);break;case 3:case 4:var t=ys;ys=Uu(e.stateNode.containerInfo),Pa(e),ys=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,Pa(e),oc=t):Pa(e));break;default:Pa(e)}}function jx(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];$t=s,Ux(s,e)}jx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dx(e),e=e.sibling}function Dx(e){switch(e.tag){case 0:case 11:case 15:Ei(e),e.flags&2048&&xf(e,e.return,Bt|as);break;case 3:var t=sr();Ei(e),e.stateNode.passiveEffectDuration+=Zc(t);break;case 12:t=sr(),Ei(e),e.stateNode.passiveEffectDuration+=mi(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&fr&&(e.return===null||e.return.tag!==13)?(t._visibility&=~fr,wu(e)):Ei(e);break;default:Ei(e)}}function wu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];$t=s,Ux(s,e)}jx(e)}for(e=e.child;e!==null;)Tx(e),e=e.sibling}function Tx(e){switch(e.tag){case 0:case 11:case 15:xf(e,e.return,Bt),wu(e);break;case 22:var t=e.stateNode;t._visibility&fr&&(t._visibility&=~fr,wu(e));break;default:wu(e)}}function Ux(e,t){for(;$t!==null;){var n=$t,s=n;switch(s.tag){case 0:case 11:case 15:xf(s,t,Bt);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(s=s.memoizedState.cachePool.pool,s!=null&&Bo(s));break;case 24:di(s.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,$t=s;else e:for(n=e;$t!==null;){s=$t;var r=s.sibling,o=s.return;if(hx(s),s===n){$t=null;break e}if(r!==null){r.return=o,$t=r;break e}$t=o}}}function tS(){hj.forEach(function(e){return e()})}function Cx(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||B.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Fn(e){if((rt&pn)!==$n&&Ze!==0)return Ze&-Ze;var t=B.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Ko,e!==0?e:Mf()):Pr()}function Rx(){In===0&&(In=(Ze&536870912)===0||tt?Be():536870912);var e=is.current;return e!==null&&(e.flags|=32),In}function Vt(e,t,n){if(wl&&console.error("useInsertionEffect must not schedule updates."),ih&&(dd=!0),(e===ft&&(lt===na||lt===sa)||e.cancelPendingCommit!==null)&&(za(e,0),Yr(e,Ze,In,!1)),ln(e,n),(rt&pn)!==0&&e===ft){if(Ls)switch(t.tag){case 0:case 11:case 15:e=$e&&J($e)||"Unknown",F0.has(e)||(F0.add(e),t=J(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:q0||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),q0=!0)}}else bs&&Or(e,t,n),dS(t),e===ft&&((rt&pn)===$n&&(oo|=n),Tt===ta&&Yr(e,Ze,In,!1)),Ps(e)}function Ax(e,t,n){if((rt&(pn|Ns))!==$n)throw Error("Should not already be working.");var s=!n&&(t&124)===0&&(t&e.expiredLanes)===0||ms(e,t),r=s?sS(e,t):Tf(e,t,!0),o=s;do{if(r===yr){yl&&!s&&Yr(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!nS(n)){r=Tf(e,t,!1),o=!1;continue}if(r===xl){if(o=t,e.errorRecoveryDisabledLanes&o)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{r=e;var m=u;u=dc;var b=r.current.memoizedState.isDehydrated;if(b&&(za(r,m).flags|=256),m=Tf(r,m,!1),m!==xl){if(th&&!b){r.errorRecoveryDisabledLanes|=o,oo|=o,r=ta;break e}r=hn,hn=u,r!==null&&(hn===null?hn=r:hn.push.apply(hn,r))}r=m}if(o=!1,r!==xl)continue}}if(r===lc){za(e,0),Yr(e,t,0,!0);break}e:{switch(s=e,r){case yr:case lc:throw Error("Root did not complete. This is a bug in React.");case ta:if((t&4194048)!==t)break;case id:Yr(s,t,In,!so);break e;case xl:hn=null;break;case Jp:case O0:break;default:throw Error("Unknown root exit status.")}if(B.actQueue!==null)Uf(s,n,t,hn,mc,cd,In,oo,ra);else{if((t&62914560)===t&&(o=sh+k0-Hs(),10<o)){if(Yr(s,t,In,!so),an(s,0,!0)!==0)break e;s.timeoutHandle=K0(Vx.bind(null,s,n,hn,mc,cd,t,In,oo,ra,so,r,gj,Hy,0),o);break e}Vx(s,n,hn,mc,cd,t,In,oo,ra,so,r,vj,Hy,0)}}}break}while(!0);Ps(e)}function Vx(e,t,n,s,r,o,u,m,b,x,P,L,O,F){if(e.timeoutHandle=ca,L=t.subtreeFlags,(L&8192||(L&16785408)===16785408)&&(xc={stylesheets:null,count:0,unsuspend:kS},Ex(t),L=HS(),L!==null)){e.cancelPendingCommit=L(Uf.bind(null,e,t,o,n,s,r,u,m,b,P,xj,O,F)),Yr(e,o,u,!x);return}Uf(e,t,o,n,s,r,u,m,b)}function nS(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var r=n[s],o=r.getSnapshot;r=r.value;try{if(!dn(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yr(e,t,n,s){t&=~nh,t&=~oo,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var r=t;0<r;){var o=31-cn(r),u=1<<o;s[o]=-1,r&=~u}n!==0&&Uo(e,n,t)}function ka(){return(rt&(pn|Ns))===$n?(Ti(0),!1):!0}function jf(){if($e!==null){if(lt===Un)var e=$e.return;else e=$e,Qc(),Pm(e),dl=null,sc=0,e=$e;for(;e!==null;)ox(e.alternate,e),e=e.return;$e=null}}function za(e,t){var n=e.timeoutHandle;n!==ca&&(e.timeoutHandle=ca,Vj(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jf(),ft=e,$e=n=tr(e.current,null),Ze=t,lt=Un,Qn=null,so=!1,yl=ms(e,t),th=!1,Tt=yr,ra=In=nh=oo=ro=0,hn=dc=null,cd=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var r=31-cn(s),o=1<<r;t|=e[r],s&=~o}return $s=t,Fc(),t=ky(),1e3<t-Py&&(B.recentlyCreatedOwnerStacks=0,Py=t),xs.discardPendingWarnings(),n}function Mx(e,t){Ve=null,B.H=ad,B.getCurrentStack=null,Ls=!1,Gn=null,t===Wi||t===td?(t=av(),lt=cc):t===Ly?(t=av(),lt=P0):lt=t===j0?eh:t!==null&&typeof t=="object"&&typeof t.then=="function"?gl:ic,Qn=t;var n=$e;if(n===null)Tt=lc,vu(e,Bn(t,e.current));else switch(n.mode&Kt&&Em(n),Ie(),lt){case ic:me!==null&&typeof me.markComponentErrored=="function"&&me.markComponentErrored(n,t,Ze);break;case na:case sa:case cc:case gl:case uc:me!==null&&typeof me.markComponentSuspended=="function"&&me.markComponentSuspended(n,t,Ze)}}function Ox(){var e=B.H;return B.H=ad,e===null?ad:e}function Px(){var e=B.A;return B.A=pj,e}function Df(){Tt=ta,so||(Ze&4194048)!==Ze&&is.current!==null||(yl=!0),(ro&134217727)===0&&(oo&134217727)===0||ft===null||Yr(ft,Ze,In,!1)}function Tf(e,t,n){var s=rt;rt|=pn;var r=Ox(),o=Px();if(ft!==e||Ze!==t){if(bs){var u=e.memoizedUpdaters;0<u.size&&(Di(e,Ze),u.clear()),er(e,t)}mc=null,za(e,t)}Ct(t),t=!1,u=Tt;e:do try{if(lt!==Un&&$e!==null){var m=$e,b=Qn;switch(lt){case eh:jf(),u=id;break e;case cc:case na:case sa:case gl:is.current===null&&(t=!0);var x=lt;if(lt=Un,Qn=null,Ha(e,m,b,x),n&&yl){u=yr;break e}break;default:x=lt,lt=Un,Qn=null,Ha(e,m,b,x)}}kx(),u=Tt;break}catch(P){Mx(e,P)}while(!0);return t&&e.shellSuspendCounter++,Qc(),rt=s,B.H=r,B.A=o,on(),$e===null&&(ft=null,Ze=0,Fc()),u}function kx(){for(;$e!==null;)zx($e)}function sS(e,t){var n=rt;rt|=pn;var s=Ox(),r=Px();if(ft!==e||Ze!==t){if(bs){var o=e.memoizedUpdaters;0<o.size&&(Di(e,Ze),o.clear()),er(e,t)}mc=null,ud=Hs()+z0,za(e,t)}else yl=ms(e,t);Ct(t);e:do try{if(lt!==Un&&$e!==null)t:switch(t=$e,o=Qn,lt){case ic:lt=Un,Qn=null,Ha(e,t,o,ic);break;case na:case sa:if(rv(o)){lt=Un,Qn=null,Hx(t);break}t=function(){lt!==na&<!==sa||ft!==e||(lt=uc),Ps(e)},o.then(t,t);break e;case cc:lt=uc;break e;case P0:lt=Wp;break e;case uc:rv(o)?(lt=Un,Qn=null,Hx(t)):(lt=Un,Qn=null,Ha(e,t,o,uc));break;case Wp:var u=null;switch($e.tag){case 26:u=$e.memoizedState;case 5:case 27:var m=$e;if(!u||Tg(u)){lt=Un,Qn=null;var b=m.sibling;if(b!==null)$e=b;else{var x=m.return;x!==null?($e=x,Su(x)):$e=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}lt=Un,Qn=null,Ha(e,t,o,Wp);break;case gl:lt=Un,Qn=null,Ha(e,t,o,gl);break;case eh:jf(),Tt=id;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}B.actQueue!==null?kx():rS();break}catch(P){Mx(e,P)}while(!0);return Qc(),B.H=s,B.A=r,rt=n,$e!==null?(me!==null&&typeof me.markRenderYielded=="function"&&me.markRenderYielded(),yr):(on(),ft=null,Ze=0,Fc(),Tt)}function rS(){for(;$e!==null&&!eE();)zx($e)}function zx(e){var t=e.alternate;(e.mode&Kt)!==ht?(Sm(e),t=Ue(e,bf,t,e,$s),Em(e)):t=Ue(e,bf,t,e,$s),e.memoizedProps=e.pendingProps,t===null?Su(e):$e=t}function Hx(e){var t=Ue(e,oS,e);e.memoizedProps=e.pendingProps,t===null?Su(e):$e=t}function oS(e){var t=e.alternate,n=(e.mode&Kt)!==ht;switch(n&&Sm(e),e.tag){case 15:case 0:t=Kv(t,e,e.pendingProps,e.type,void 0,Ze);break;case 11:t=Kv(t,e,e.pendingProps,e.type.render,e.ref,Ze);break;case 5:Pm(e);default:ox(t,e),e=$e=Qb(e,$s),t=bf(t,e,$s)}return n&&Em(e),t}function Ha(e,t,n,s){Qc(),Pm(t),dl=null,sc=0;var r=t.return;try{if(Yw(e,r,t,n,Ze)){Tt=lc,vu(e,Bn(n,e.current)),$e=null;return}}catch(o){if(r!==null)throw $e=r,o;Tt=lc,vu(e,Bn(n,e.current)),$e=null;return}t.flags&32768?(tt||s===ic?e=!0:yl||(Ze&536870912)!==0?e=!1:(so=e=!0,(s===na||s===sa||s===cc||s===gl)&&(s=is.current,s!==null&&s.tag===13&&(s.flags|=16384))),_x(t,e)):Su(t)}function Su(e){var t=e;do{if((t.flags&32768)!==0){_x(t,so);return}var n=t.alternate;if(e=t.return,Sm(t),n=Ue(t,$w,n,t,$s),(t.mode&Kt)!==ht&&ev(t),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Tt===yr&&(Tt=O0)}function _x(e,t){do{var n=Qw(e.alternate,e);if(n!==null){n.flags&=32767,$e=n;return}if((e.mode&Kt)!==ht){ev(e),n=e.actualDuration;for(var s=e.child;s!==null;)n+=s.actualDuration,s=s.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$e=e;return}$e=e=n}while(e!==null);Tt=id,$e=null}function Uf(e,t,n,s,r,o,u,m,b){e.cancelPendingCommit=null;do ji();while(Wt!==oa);if(xs.flushLegacyContextWarning(),xs.flushPendingUnsafeLifecycleWarnings(),(rt&(pn|Ns))!==$n)throw Error("Should not already be working.");if(me!==null&&typeof me.markCommitStarted=="function"&&me.markCommitStarted(n),t===null)pe();else{if(n===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(o=t.lanes|t.childLanes,o|=Ap,ja(e,n,o,u,m,b),e===ft&&($e=ft=null,Ze=0),Nl=t,lo=e,io=n,oh=o,ah=r,L0=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uS(Ya,function(){return Yx(),null})):(e.callbackNode=null,e.callbackPriority=0),Ku=al(),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null,r=st.p,st.p=Wn,u=rt,rt|=Ns;try{Ww(e,t,n)}finally{rt=u,st.p=r,B.T=s}}Wt=H0,Bx(),Lx(),qx()}}function Bx(){if(Wt===H0){Wt=oa;var e=lo,t=Nl,n=io,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null;var r=st.p;st.p=Wn;var o=rt;rt|=Ns;try{bl=n,vl=e,xx(t,e),vl=bl=null,n=vh;var u=qb(e.containerInfo),m=n.focusedElem,b=n.selectionRange;if(u!==m&&m&&m.ownerDocument&&Lb(m.ownerDocument.documentElement,m)){if(b!==null&&cm(m)){var x=b.start,P=b.end;if(P===void 0&&(P=x),"selectionStart"in m)m.selectionStart=x,m.selectionEnd=Math.min(P,m.value.length);else{var L=m.ownerDocument||document,O=L&&L.defaultView||window;if(O.getSelection){var F=O.getSelection(),ve=m.textContent.length,Ae=Math.min(b.start,ve),pt=b.end===void 0?Ae:Math.min(b.end,ve);!F.extend&&Ae>pt&&(u=pt,pt=Ae,Ae=u);var Je=Bb(m,Ae),S=Bb(m,pt);if(Je&&S&&(F.rangeCount!==1||F.anchorNode!==Je.node||F.anchorOffset!==Je.offset||F.focusNode!==S.node||F.focusOffset!==S.offset)){var E=L.createRange();E.setStart(Je.node,Je.offset),F.removeAllRanges(),Ae>pt?(F.addRange(E),F.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),F.addRange(E))}}}}for(L=[],F=m;F=F.parentNode;)F.nodeType===1&&L.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<L.length;m++){var U=L[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Dd=!!bh,vh=bh=null}finally{rt=o,st.p=r,B.T=s}}e.current=t,Wt=_0}}function Lx(){if(Wt===_0){Wt=oa;var e=lo,t=Nl,n=io,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=B.T,B.T=null;var r=st.p;st.p=Wn;var o=rt;rt|=Ns;try{me!==null&&typeof me.markLayoutEffectsStarted=="function"&&me.markLayoutEffectsStarted(n),bl=n,vl=e,px(e,t.alternate,t),vl=bl=null,me!==null&&typeof me.markLayoutEffectsStopped=="function"&&me.markLayoutEffectsStopped()}finally{rt=o,st.p=r,B.T=s}}Wt=B0}}function qx(){if(Wt===yj||Wt===B0){Wt=oa,tE();var e=lo,t=Nl,n=io,s=L0,r=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;r?Wt=rh:(Wt=oa,Nl=lo=null,Fx(e,e.pendingLanes),aa=0,pc=null);var o=e.pendingLanes;if(o===0&&(ao=null),r||Ix(e),r=Pn(n),t=t.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{var u=(t.current.flags&128)===128;switch(r){case Wn:var m=cp;break;case Bs:m=up;break;case mr:m=Ya;break;case Bu:m=dp;break;default:m=Ya}en.onCommitFiberRoot(Ga,t,m,u)}catch(L){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",L))}if(bs&&e.memoizedUpdaters.clear(),tS(),s!==null){u=B.T,m=st.p,st.p=Wn,B.T=null;try{var b=e.onRecoverableError;for(t=0;t<s.length;t++){var x=s[t],P=aS(x.stack);Ue(x.source,b,x.value,P)}}finally{B.T=u,st.p=m}}(io&3)!==0&&ji(),Ps(e),o=e.pendingLanes,(n&4194090)!==0&&(o&42)!==0?(Wu=!0,e===lh?fc++:(fc=0,lh=e)):fc=0,Ti(0),pe()}}function aS(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Fx(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,di(t)))}function ji(e){return Bx(),Lx(),qx(),Yx()}function Yx(){if(Wt!==rh)return!1;var e=lo,t=oh;oh=0;var n=Pn(io),s=mr>n?mr:n;n=B.T;var r=st.p;try{st.p=s,B.T=null,s=ah,ah=null;var o=lo,u=io;if(Wt=oa,Nl=lo=null,io=0,(rt&(pn|Ns))!==$n)throw Error("Cannot flush passive effects while already rendering.");ih=!0,dd=!1,me!==null&&typeof me.markPassiveEffectsStarted=="function"&&me.markPassiveEffectsStarted(u);var m=rt;if(rt|=Ns,Dx(o.current),wx(o,o.current,u,s),me!==null&&typeof me.markPassiveEffectsStopped=="function"&&me.markPassiveEffectsStopped(),Ix(o),rt=m,Ti(0,!1),dd?o===pc?aa++:(aa=0,pc=o):aa=0,dd=ih=!1,en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Ga,o)}catch(x){_s||(_s=!0,console.error("React instrumentation encountered an error: %s",x))}var b=o.current.stateNode;return b.effectDuration=0,b.passiveEffectDuration=0,!0}finally{st.p=r,B.T=n,Fx(e,t)}}function Gx(e,t,n){t=Bn(n,t),t=rf(e.stateNode,t,2),e=Br(e,t,2),e!==null&&(ln(e,2),Ps(e))}function ut(e,t,n){if(wl=!1,e.tag===3)Gx(e,e,n);else{for(;t!==null;){if(t.tag===3){Gx(t,e,n);return}if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ao===null||!ao.has(s))){e=Bn(n,e),n=of(2),s=Br(t,n,2),s!==null&&(af(n,s,t,e),ln(s,2),Ps(s));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
195
195
|
|
|
196
196
|
Error message:
|
|
197
197
|
|
|
@@ -213,8 +213,8 @@ act(() => {
|
|
|
213
213
|
});
|
|
214
214
|
/* assert on the output */
|
|
215
215
|
|
|
216
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,J(e))})}function Ps(e){e!==Sl&&e.next===null&&(Sl===null?fd=Sl=e:Sl=Sl.next=e),pd=!0,B.actQueue!==null?uh||(uh=!0,Wx()):ch||(ch=!0,Wx())}function Ti(e,t){if(!dh&&pd){dh=!0;do for(var n=!1,s=fd;s!==null;){if(e!==0){var r=s.pendingLanes;if(r===0)var o=0;else{var u=s.suspendedLanes,m=s.pingedLanes;o=(1<<31-cn(42|e)+1)-1,o&=r&~(u&~m),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Jx(s,o))}else o=Ze,o=an(s,s===ft?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==ca),(o&3)===0||ms(s,o)||(n=!0,Jx(s,o));s=s.next}while(n);dh=!1}}function mS(){Af()}function Af(){pd=uh=ch=!1;var e=0;la!==0&&(vS()&&(e=la),la=0);for(var t=Hs(),n=null,s=fd;s!==null;){var r=s.next,o=Zx(s,t);o===0?(s.next=null,n===null?fd=r:n.next=r,r===null&&(Sl=n)):(n=s,(e!==0||(o&3)!==0)&&(pd=!0)),s=r}Ti(e)}function Zx(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var u=31-cn(o),m=1<<u,b=r[u];b===-1?((m&n)===0||(m&s)!==0)&&(r[u]=On(m,t)):b<=t&&(e.expiredLanes|=m),o&=~m}if(t=ft,n=Ze,n=an(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ca),s=e.callbackNode,n===0||e===t&&(lt===na||lt===sa)||e.cancelPendingCommit!==null)return s!==null&&Vf(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ms(e,n)){if(t=n&-n,t!==e.callbackPriority||B.actQueue!==null&&s!==mh)Vf(s);else return t;switch(Pn(n)){case Wn:case Bs:n=up;break;case mr:n=Ya;break;case Bu:n=dp;break;default:n=Ya}return s=Kx.bind(null,e),B.actQueue!==null?(B.actQueue.push(s),n=mh):n=ip(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&Vf(s),e.callbackPriority=2,e.callbackNode=null,2}function Kx(e,t){if(Wu=Ju=!1,Wt!==oa&&Wt!==rh)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ji()&&e.callbackNode!==n)return null;var s=Ze;return s=an(e,e===ft?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ca),s===0?null:(Ax(e,s,t),Zx(e,Hs()),e.callbackNode!=null&&e.callbackNode===n?Kx.bind(null,e):null)}function Jx(e,t){if(ji())return null;Ju=Wu,Wu=!1,Ax(e,t,!0)}function Vf(e){e!==mh&&e!==null&&WS(e)}function Wx(){B.actQueue!==null&&B.actQueue.push(function(){return Af(),null}),Mj(function(){(rt&(pn|Ns))!==$n?ip(cp,mS):Af()})}function Mf(){return la===0&&(la=Be()),la}function eg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Z(e,"action"),ri(""+e))}function tg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function fS(e,t,n,s,r){if(t==="submit"&&n&&n.stateNode===r){var o=eg((r[jn]||null).action),u=s.submitter;u&&(t=(t=u[jn]||null)?eg(t.formAction):u.getAttribute("formAction"),t!==null&&(o=t,u=null));var m=new Gu("action","action",null,s,r);e.push({event:m,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(la!==0){var b=u?tg(r,u):new FormData(r),x={pending:!0,data:b,method:r.method,action:o};Object.freeze(x),Km(n,x,null,b)}}else typeof o=="function"&&(m.preventDefault(),b=u?tg(r,u):new FormData(r),x={pending:!0,data:b,method:r.method,action:o},Object.freeze(x),Km(n,x,o,b))},currentTarget:r}]})}}function Eu(e,t,n){e.currentTarget=n;try{t(e)}catch(s){Qp(s)}e.currentTarget=null}function ng(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n];e:{var r=void 0,o=s.event;if(s=s.listeners,t)for(var u=s.length-1;0<=u;u--){var m=s[u],b=m.instance,x=m.currentTarget;if(m=m.listener,b!==r&&o.isPropagationStopped())break e;b!==null?Ue(b,Eu,o,m,x):Eu(o,m,x),r=b}else for(u=0;u<s.length;u++){if(m=s[u],b=m.instance,x=m.currentTarget,m=m.listener,b!==r&&o.isPropagationStopped())break e;b!==null?Ue(b,Eu,o,m,x):Eu(o,m,x),r=b}}}}function Ke(e,t){fh.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[mp];n===void 0&&(n=t[mp]=new Set);var s=e+"__bubble";n.has(s)||(sg(t,e,2,!1),n.add(s))}function Of(e,t,n){fh.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var s=0;t&&(s|=4),sg(n,e,s,t)}function Pf(e){if(!e[hd]){e[hd]=!0,Bg.forEach(function(n){n!=="selectionchange"&&(fh.has(n)||Of(n,!1,e),Of(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hd]||(t[hd]=!0,Of("selectionchange",!1,t))}}function sg(e,t,n,s){switch(Vg(t)){case Wn:var r=FS;break;case Bs:r=YS;break;default:r=Zf}n=r.bind(null,t,n,e),r=void 0,!yp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function kf(e,t,n,s,r){var o=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var u=s.tag;if(u===3||u===4){var m=s.stateNode.containerInfo;if(m===r)break;if(u===4)for(u=s.return;u!==null;){var b=u.tag;if((b===3||b===4)&&u.stateNode.containerInfo===r)return;u=u.return}for(;m!==null;){if(u=zn(m),u===null)return;if(b=u.tag,b===5||b===6||b===26||b===27){s=o=u;continue e}m=m.parentNode}}s=s.return}Cb(function(){var x=o,P=lm(n),L=[];e:{var O=Ay.get(e);if(O!==void 0){var q=Gu,ve=e;switch(e){case"keypress":if(Bc(n)===0)break e;case"keydown":case"keyup":q=BE;break;case"focusin":ve="focus",q=Ep;break;case"focusout":ve="blur",q=Ep;break;case"beforeblur":case"afterblur":q=Ep;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=vy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=UE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=FE;break;case Ty:case Uy:case Cy:q=AE;break;case Ry:q=GE;break;case"scroll":case"scrollend":q=DE;break;case"wheel":q=QE;break;case"copy":case"cut":case"paste":q=ME;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=gy;break;case"toggle":case"beforetoggle":q=XE}var Ae=(t&4)!==0,pt=!Ae&&(e==="scroll"||e==="scrollend"),Je=Ae?O!==null?O+"Capture":null:O;Ae=[];for(var S=x,E;S!==null;){var U=S;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||Je===null||(U=oi(S,Je),U!=null&&Ae.push(Ui(S,U,E))),pt)break;S=S.return}0<Ae.length&&(O=new q(O,ve,null,n,P),L.push({event:O,listeners:Ae}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",O&&n!==Hi&&(ve=n.relatedTarget||n.fromElement)&&(zn(ve)||ve[Kr]))break e;if((q||O)&&(O=P.window===P?P:(O=P.ownerDocument)?O.defaultView||O.parentWindow:window,q?(ve=n.relatedTarget||n.toElement,q=x,ve=ve?zn(ve):null,ve!==null&&(pt=I(ve),Ae=ve.tag,ve!==pt||Ae!==5&&Ae!==27&&Ae!==6)&&(ve=null)):(q=null,ve=x),q!==ve)){if(Ae=vy,U="onMouseLeave",Je="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=gy,U="onPointerLeave",Je="onPointerEnter",S="pointer"),pt=q==null?O:fs(q),E=ve==null?O:fs(ve),O=new Ae(U,S+"leave",q,n,P),O.target=pt,O.relatedTarget=E,U=null,zn(P)===x&&(Ae=new Ae(Je,S+"enter",ve,n,P),Ae.target=E,Ae.relatedTarget=pt,U=Ae),pt=U,q&&ve)t:{for(Ae=q,Je=ve,S=0,E=Ae;E;E=_a(E))S++;for(E=0,U=Je;U;U=_a(U))E++;for(;0<S-E;)Ae=_a(Ae),S--;for(;0<E-S;)Je=_a(Je),E--;for(;S--;){if(Ae===Je||Je!==null&&Ae===Je.alternate)break t;Ae=_a(Ae),Je=_a(Je)}Ae=null}else Ae=null;q!==null&&rg(L,O,q,Ae,!1),ve!==null&&pt!==null&&rg(L,pt,ve,Ae,!0)}}e:{if(O=x?fs(x):window,q=O.nodeName&&O.nodeName.toLowerCase(),q==="select"||q==="input"&&O.type==="file")var F=kb;else if(Ob(O))if(jy)F=Mw;else{F=Aw;var ae=Rw}else q=O.nodeName,!q||q.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?x&&si(x.elementType)&&(F=kb):F=Vw;if(F&&(F=F(e,x))){Pb(L,F,n,P);break e}ae&&ae(e,O,x),e==="focusout"&&x&&O.type==="number"&&x.memoizedProps.value!=null&&tm(O,"number",O.value)}switch(ae=x?fs(x):window,e){case"focusin":(Ob(ae)||ae.contentEditable==="true")&&(Ja=ae,Dp=x,Gi=null);break;case"focusout":Gi=Dp=Ja=null;break;case"mousedown":Tp=!0;break;case"contextmenu":case"mouseup":case"dragend":Tp=!1,Fb(L,n,P);break;case"selectionchange":if(WE)break;case"keydown":case"keyup":Fb(L,n,P)}var Oe;if(jp)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Ka?Vb(e,n)&&(xe="onCompositionEnd"):e==="keydown"&&n.keyCode===yy&&(xe="onCompositionStart");xe&&(Ny&&n.locale!=="ko"&&(Ka||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Ka&&(Oe=Rb()):(Jr=P,Np="value"in Jr?Jr.value:Jr.textContent,Ka=!0)),ae=ju(x,xe),0<ae.length&&(xe=new xy(xe,e,null,n,P),L.push({event:xe,listeners:ae}),Oe?xe.data=Oe:(Oe=Mb(n),Oe!==null&&(xe.data=Oe)))),(Oe=KE?Dw(e,n):Tw(e,n))&&(xe=ju(x,"onBeforeInput"),0<xe.length&&(ae=new PE("onBeforeInput","beforeinput",null,n,P),L.push({event:ae,listeners:xe}),ae.data=Oe)),fS(L,e,x,n,P)}ng(L,t)})}function Ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ju(e,t){for(var n=t+"Capture",s=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=oi(e,n),r!=null&&s.unshift(Ui(e,r,o)),r=oi(e,t),r!=null&&s.push(Ui(e,r,o))),e.tag===3)return s;e=e.return}return[]}function _a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rg(e,t,n,s,r){for(var o=t._reactName,u=[];n!==null&&n!==s;){var m=n,b=m.alternate,x=m.stateNode;if(m=m.tag,b!==null&&b===s)break;m!==5&&m!==26&&m!==27||x===null||(b=x,r?(x=oi(n,o),x!=null&&u.unshift(Ui(n,x,b))):r||(x=oi(n,o),x!=null&&u.push(Ui(n,x,b)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}function zf(e,t){ww(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||hy||(hy=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:$o,possibleRegistrationNames:fp};si(e)||typeof t.is=="string"||Ew(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Yt(e,t,n,s){t!==n&&(n=Gr(n),Gr(t)!==n&&(s[e]=t))}function pS(e,t,n){t.forEach(function(s){n[lg(s)]=s==="style"?_f(e):e.getAttribute(s)})}function ks(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function og(e,t){return e=e.namespaceURI===qu||e.namespaceURI===Qa?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Gr(e){return w(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ie(e)),Y(e)),(typeof e=="string"?e:""+e).replace(Ej,`
|
|
217
|
-
`).replace(jj,"")}function ag(e,t){return t=Gr(t),Gr(e)===t}function Du(){}function dt(e,t,n,s,r,o){switch(n){case"children":typeof s=="string"?(_c(s,t,!1),t==="body"||t==="textarea"&&s===""||ni(e,s)):(typeof s=="number"||typeof s=="bigint")&&(_c(""+s,t,!1),t!=="body"&&ni(e,""+s));break;case"className":Te(e,"class",s);break;case"tabIndex":Te(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Te(e,n,s);break;case"style":Db(e,s,o);break;case"data":if(t!=="object"){Te(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){console.error(n==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}Z(s,n),s=ri(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(s!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(r.encType==null&&r.method==null||xd||(xd=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||vd||(vd=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||bd?t!=="button"||r.type==null||r.type==="submit"||bd?typeof s=="function"&&(r.name==null||$0||($0=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||xd||(xd=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||vd||(vd=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(bd=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(bd=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(n==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&dt(e,t,"name",r.name,r,null),dt(e,t,"formEncType",r.formEncType,r,null),dt(e,t,"formMethod",r.formMethod,r,null),dt(e,t,"formTarget",r.formTarget,r,null)):(dt(e,t,"encType",r.encType,r,null),dt(e,t,"method",r.method,r,null),dt(e,t,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}Z(s,n),s=ri(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(typeof s!="function"&&ks(n,s),e.onclick=Du);break;case"onScroll":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scrollend",e));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}Z(s,n),n=ri(""+s),e.setAttributeNS(ia,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(Z(s,n),e.setAttribute(n,""+s)):e.removeAttribute(n);break;case"inert":s!==""||gd[n]||(gd[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(Z(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(Z(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):(Z(s,n),e.setAttribute(n,s));break;case"popover":Ke("beforetoggle",e),Ke("toggle",e),ue(e,"popover",s);break;case"xlinkActuate":We(e,ia,"xlink:actuate",s);break;case"xlinkArcrole":We(e,ia,"xlink:arcrole",s);break;case"xlinkRole":We(e,ia,"xlink:role",s);break;case"xlinkShow":We(e,ia,"xlink:show",s);break;case"xlinkTitle":We(e,ia,"xlink:title",s);break;case"xlinkType":We(e,ia,"xlink:type",s);break;case"xmlBase":We(e,ph,"xml:base",s);break;case"xmlLang":We(e,ph,"xml:lang",s);break;case"xmlSpace":We(e,ph,"xml:space",s);break;case"is":o!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),ue(e,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":Q0||s==null||typeof s!="object"||(Q0=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=Tb(n),ue(e,n,s)):$o.hasOwnProperty(n)&&s!=null&&typeof s!="function"&&ks(n,s)}}function Hf(e,t,n,s,r,o){switch(n){case"style":Db(e,s,o);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof s=="string"?ni(e,s):(typeof s=="number"||typeof s=="bigint")&&ni(e,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scrollend",e));break;case"onClick":s!=null&&(typeof s!="function"&&ks(n,s),e.onclick=Du);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if($o.hasOwnProperty(n))s!=null&&typeof s!="function"&&ks(n,s);else e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[jn]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof s=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,r);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):ue(e,n,s)}}}function Xt(e,t,n){switch(zf(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",e),Ke("load",e);var s=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var u=n[o];if(u!=null)switch(o){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,o,u,n,null)}}r&&dt(e,t,"srcSet",n.srcSet,n,null),s&&dt(e,t,"src",n.src,n,null);return;case"input":we("input",n),Ke("invalid",e);var m=o=u=r=null,b=null,x=null;for(s in n)if(n.hasOwnProperty(s)){var P=n[s];if(P!=null)switch(s){case"name":r=P;break;case"type":u=P;break;case"checked":b=P;break;case"defaultChecked":x=P;break;case"value":o=P;break;case"defaultValue":m=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,s,P,n,null)}}ub(e,n),db(e,o,m,b,x,u,r,!1),kc(e);return;case"select":we("select",n),Ke("invalid",e),s=u=o=null;for(r in n)if(n.hasOwnProperty(r)&&(m=n[r],m!=null))switch(r){case"value":o=m;break;case"defaultValue":u=m;break;case"multiple":s=m;default:dt(e,t,r,m,n,null)}pb(e,n),t=o,n=u,e.multiple=!!s,t!=null?Da(e,!!s,t,!1):n!=null&&Da(e,!!s,n,!0);return;case"textarea":we("textarea",n),Ke("invalid",e),o=r=s=null;for(u in n)if(n.hasOwnProperty(u)&&(m=n[u],m!=null))switch(u){case"value":s=m;break;case"defaultValue":r=m;break;case"children":o=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:dt(e,t,u,m,n,null)}hb(e,n),vb(e,s,r,o),kc(e);return;case"option":mb(e,n);for(b in n)if(n.hasOwnProperty(b)&&(s=n[b],s!=null))switch(b){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:dt(e,t,b,s,n,null)}return;case"dialog":Ke("beforetoggle",e),Ke("toggle",e),Ke("cancel",e),Ke("close",e);break;case"iframe":case"object":Ke("load",e);break;case"video":case"audio":for(s=0;s<hc.length;s++)Ke(hc[s],e);break;case"image":Ke("error",e),Ke("load",e);break;case"details":Ke("toggle",e);break;case"embed":case"source":case"link":Ke("error",e),Ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(s=n[x],s!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,x,s,n,null)}return;default:if(si(t)){for(P in n)n.hasOwnProperty(P)&&(s=n[P],s!==void 0&&Hf(e,t,P,s,n,void 0));return}}for(m in n)n.hasOwnProperty(m)&&(s=n[m],s!=null&&dt(e,t,m,s,n,null))}function hS(e,t,n,s){switch(zf(t,s),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,u=null,m=null,b=null,x=null,P=null;for(q in n){var L=n[q];if(n.hasOwnProperty(q)&&L!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":b=L;default:s.hasOwnProperty(q)||dt(e,t,q,null,s,L)}}for(var O in s){var q=s[O];if(L=n[O],s.hasOwnProperty(O)&&(q!=null||L!=null))switch(O){case"type":o=q;break;case"name":r=q;break;case"checked":x=q;break;case"defaultChecked":P=q;break;case"value":u=q;break;case"defaultValue":m=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q!==L&&dt(e,t,O,q,s,L)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,t||!s||G0||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),G0=!0),!t||s||Y0||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Y0=!0),em(e,u,m,b,x,P,o,r);return;case"select":q=u=m=O=null;for(o in n)if(b=n[o],n.hasOwnProperty(o)&&b!=null)switch(o){case"value":break;case"multiple":q=b;default:s.hasOwnProperty(o)||dt(e,t,o,null,s,b)}for(r in s)if(o=s[r],b=n[r],s.hasOwnProperty(r)&&(o!=null||b!=null))switch(r){case"value":O=o;break;case"defaultValue":m=o;break;case"multiple":u=o;default:o!==b&&dt(e,t,r,o,s,b)}s=m,t=u,n=q,O!=null?Da(e,!!t,O,!1):!!n!=!!t&&(s!=null?Da(e,!!t,s,!0):Da(e,!!t,t?[]:"",!1));return;case"textarea":q=O=null;for(m in n)if(r=n[m],n.hasOwnProperty(m)&&r!=null&&!s.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:dt(e,t,m,null,s,r)}for(u in s)if(r=s[u],o=n[u],s.hasOwnProperty(u)&&(r!=null||o!=null))switch(u){case"value":O=r;break;case"defaultValue":q=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==o&&dt(e,t,u,r,s,o)}bb(e,O,q);return;case"option":for(var ve in n)if(O=n[ve],n.hasOwnProperty(ve)&&O!=null&&!s.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:dt(e,t,ve,null,s,O)}for(b in s)if(O=s[b],q=n[b],s.hasOwnProperty(b)&&O!==q&&(O!=null||q!=null))switch(b){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:dt(e,t,b,O,s,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in n)O=n[Ae],n.hasOwnProperty(Ae)&&O!=null&&!s.hasOwnProperty(Ae)&&dt(e,t,Ae,null,s,O);for(x in s)if(O=s[x],q=n[x],s.hasOwnProperty(x)&&O!==q&&(O!=null||q!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,x,O,s,q)}return;default:if(si(t)){for(var pt in n)O=n[pt],n.hasOwnProperty(pt)&&O!==void 0&&!s.hasOwnProperty(pt)&&Hf(e,t,pt,void 0,s,O);for(P in s)O=s[P],q=n[P],!s.hasOwnProperty(P)||O===q||O===void 0&&q===void 0||Hf(e,t,P,O,s,q);return}}for(var Je in n)O=n[Je],n.hasOwnProperty(Je)&&O!=null&&!s.hasOwnProperty(Je)&&dt(e,t,Je,null,s,O);for(L in s)O=s[L],q=n[L],!s.hasOwnProperty(L)||O===q||O==null&&q==null||dt(e,t,L,O,s,q)}function lg(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function _f(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var s=e[n];t[s]=e.getPropertyValue(s)}return t}function ig(e,t,n){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var s,r=s="",o;for(o in t)if(t.hasOwnProperty(o)){var u=t[o];u!=null&&typeof u!="boolean"&&u!==""&&(o.indexOf("--")===0?(re(u,o),s+=r+o+":"+(""+u).trim()):typeof u!="number"||u===0||fy.has(o)?(re(u,o),s+=r+o.replace(iy,"-$1").toLowerCase().replace(cy,"-ms-")+":"+(""+u).trim()):s+=r+o.replace(iy,"-$1").toLowerCase().replace(cy,"-ms-")+":"+u+"px",r=";")}s=s||null,t=e.getAttribute("style"),t!==s&&(s=Gr(s),Gr(t)!==s&&(n.style=_f(e)))}}function Kn(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Z(s,t),e===""+s)return}Yt(t,e,s,o)}function cg(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}Yt(t,e,s,o)}function Bf(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(Z(s,n),e===""+s)return}Yt(t,e,s,o)}function ug(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(Z(s,t),e===""+s))return}Yt(t,e,s,o)}function Lf(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Z(s,t),n=ri(""+s),e===n)return}Yt(t,e,s,o)}function dg(e,t,n,s){for(var r={},o=new Set,u=e.attributes,m=0;m<u.length;m++)switch(u[m].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:o.add(u[m].name)}if(si(t)){for(var b in n)if(n.hasOwnProperty(b)){var x=n[b];if(x!=null){if($o.hasOwnProperty(b))typeof x!="function"&&ks(b,x);else if(n.suppressHydrationWarning!==!0)switch(b){case"children":typeof x!="string"&&typeof x!="number"||Yt("children",e.textContent,x,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=og(e,x),Yt(b,u,x,r));continue;case"style":o.delete(b),ig(e,x,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":o.delete("class"),u=Me(e,"class",x),Yt("className",u,x,r);continue;default:s.context===wr&&t!=="svg"&&t!=="math"?o.delete(b.toLowerCase()):o.delete(b),u=Me(e,b,x),Yt(b,u,x,r)}}}}else for(x in n)if(n.hasOwnProperty(x)&&(b=n[x],b!=null)){if($o.hasOwnProperty(x))typeof b!="function"&&ks(x,b);else if(n.suppressHydrationWarning!==!0)switch(x){case"children":typeof b!="string"&&typeof b!="number"||Yt("children",e.textContent,b,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=og(e,b),u!==b&&(r[x]={__html:u}));continue;case"className":Kn(e,x,"class",b,o,r);continue;case"tabIndex":Kn(e,x,"tabindex",b,o,r);continue;case"style":o.delete(x),ig(e,b,r);continue;case"multiple":o.delete(x),Yt(x,e.multiple,b,r);continue;case"muted":o.delete(x),Yt(x,e.muted,b,r);continue;case"autoFocus":o.delete("autofocus"),Yt(x,e.autofocus,b,r);continue;case"data":if(t!=="object"){o.delete(x),u=e.getAttribute("data"),Yt(x,u,b,r);continue}case"src":case"href":if(!(b!==""||t==="a"&&x==="href"||t==="object"&&x==="data")){console.error(x==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',x,x);continue}Lf(e,x,x,b,o,r);continue;case"action":case"formAction":if(u=e.getAttribute(x),typeof b=="function"){o.delete(x.toLowerCase()),x==="formAction"?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}else if(u===Dj){o.delete(x.toLowerCase()),Yt(x,"function",b,r);continue}Lf(e,x,x.toLowerCase(),b,o,r);continue;case"xlinkHref":Lf(e,x,"xlink:href",b,o,r);continue;case"contentEditable":Bf(e,x,"contenteditable",b,o,r);continue;case"spellCheck":Bf(e,x,"spellcheck",b,o,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Bf(e,x,x,b,o,r);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":cg(e,x,x.toLowerCase(),b,o,r);continue;case"capture":case"download":e:{m=e;var P=u=x,L=r;if(o.delete(P),m=m.getAttribute(P),m===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&m==="")break e;break;default:if(Z(b,u),m===""+b)break e}Yt(u,m,b,L)}continue;case"cols":case"rows":case"size":case"span":e:{if(m=e,P=u=x,L=r,o.delete(P),m=m.getAttribute(P),m===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(Z(b,u),m===""+b))break e}Yt(u,m,b,L)}continue;case"rowSpan":ug(e,x,"rowspan",b,o,r);continue;case"start":ug(e,x,x,b,o,r);continue;case"xHeight":Kn(e,x,"x-height",b,o,r);continue;case"xlinkActuate":Kn(e,x,"xlink:actuate",b,o,r);continue;case"xlinkArcrole":Kn(e,x,"xlink:arcrole",b,o,r);continue;case"xlinkRole":Kn(e,x,"xlink:role",b,o,r);continue;case"xlinkShow":Kn(e,x,"xlink:show",b,o,r);continue;case"xlinkTitle":Kn(e,x,"xlink:title",b,o,r);continue;case"xlinkType":Kn(e,x,"xlink:type",b,o,r);continue;case"xmlBase":Kn(e,x,"xml:base",b,o,r);continue;case"xmlLang":Kn(e,x,"xml:lang",b,o,r);continue;case"xmlSpace":Kn(e,x,"xml:space",b,o,r);continue;case"inert":b!==""||gd[x]||(gd[x]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",x)),cg(e,x,x,b,o,r);continue;default:if(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N"){m=Tb(x),u=!1,s.context===wr&&t!=="svg"&&t!=="math"?o.delete(m.toLowerCase()):(P=x.toLowerCase(),P=Fu.hasOwnProperty(P)&&Fu[P]||null,P!==null&&P!==x&&(u=!0,o.delete(P)),o.delete(m));e:if(P=e,L=m,m=b,ze(L))if(P.hasAttribute(L))P=P.getAttribute(L),Z(m,L),m=P===""+m?m:P;else{switch(typeof m){case"function":case"symbol":break e;case"boolean":if(P=L.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")break e}m=m===void 0?void 0:null}else m=void 0;u||Yt(x,m,b,r)}}}return 0<o.size&&n.suppressHydrationWarning!==!0&&pS(e,o,r),Object.keys(r).length===0?null:r}function bS(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Tu(e){return e.nodeType===9?e:e.ownerDocument}function mg(e){switch(e){case Qa:return El;case qu:return wd;default:return wr}}function fg(e,t){if(e===wr)switch(t){case"svg":return El;case"math":return wd;default:return wr}return e===El&&t==="foreignObject"?wr:e}function qf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function vS(){var e=window.event;return e&&e.type==="popstate"?e===xh?!1:(xh=e,!0):(xh=null,!1)}function xS(e){setTimeout(function(){throw e})}function gS(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function yS(e,t,n,s){hS(e,t,n,s),e[jn]=s}function pg(e){ni(e,"")}function NS(e,t,n){e.nodeValue=n}function $r(e){return e==="head"}function wS(e,t){e.removeChild(t)}function SS(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function hg(e,t){var n=t,s=0,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n===Nd){if(0<s&&8>s){n=s;var u=e.ownerDocument;if(n&Uj&&Ci(u.documentElement),n&Cj&&Ci(u.body),n&Rj)for(n=u.head,Ci(n),u=n.firstChild;u;){var m=u.nextSibling,b=u.nodeName;u[ki]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}if(r===0){e.removeChild(o),Mi(t);return}r--}else n===yd||n===Nr||n===bc?r++:s=n.charCodeAt(0)-48;else s=0;n=o}while(n);Mi(t)}function ES(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function jS(e){e.nodeValue=""}function DS(e,t){t=t[Aj],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function TS(e,t){e.nodeValue=t}function Ff(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ff(n),Us(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function US(e,t,n,s){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ki])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Z(r.name,"name");var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Jn(e.nextSibling),e===null)break}return null}function CS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Jn(e.nextSibling),e===null))return null;return e}function Yf(e){return e.data===bc||e.data===Nr&&e.ownerDocument.readyState===X0}function RS(e,t){var n=e.ownerDocument;if(e.data!==Nr||n.readyState===X0)t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Jn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===yd||t===bc||t===Nr||t===hh||t===I0)break;if(t===Nd)return null}}return e}function bg(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},s=e.attributes,r=0;r<s.length;r++){var o=s[r];n[lg(o.name)]=o.name.toLowerCase()==="style"?_f(e):o.value}return{type:t,props:n}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function vg(e,t,n){return n===null||n[Tj]!==!0?(e.nodeValue===t?e=null:(t=Gr(t),e=Gr(e.nodeValue)===t?null:e.nodeValue),e):null}function xg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Nd){if(t===0)return Jn(e.nextSibling);t--}else n!==yd&&n!==bc&&n!==Nr||t++}e=e.nextSibling}return null}function gg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===yd||n===bc||n===Nr){if(t===0)return e;t--}else n===Nd&&t++}e=e.previousSibling}return null}function AS(e){Mi(e)}function VS(e){Mi(e)}function yg(e,t,n,s,r){switch(r&&am(e,s.ancestorInfo),t=Tu(n),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function MS(e,t,n,s){if(!n[Kr]&&gn(n)){var r=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=n.attributes;r.length;)n.removeAttributeNode(r[0]);Xt(n,e,t),n[tn]=s,n[jn]=t}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Us(e)}function Uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Ng(e,t,n){var s=jl;if(s&&typeof t=="string"&&t){var r=Zn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),tN.has(r)||(tN.add(r),e={rel:e,crossOrigin:n,href:t},s.querySelector(r)===null&&(t=s.createElement("link"),Xt(t,"link",e),R(t),s.head.appendChild(t)))}}function wg(e,t,n,s){var r=(r=Xr.current)?Uu(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ba(n.href),t=h(r).hoistableStyles,s=t.get(n),s||(s={type:"style",instance:null,count:0,state:null},t.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ba(n.href);var o=h(r).hoistableStyles,u=o.get(e);if(!u&&(r=r.ownerDocument||r,u={type:"stylesheet",instance:null,count:0,state:{loading:ua,preload:null}},o.set(e,u),(o=r.querySelector(Ri(e)))&&!o._p&&(u.instance=o,u.state.loading=vc|cs),!us.has(e))){var m={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};us.set(e,m),o||OS(r,e,m,u.state)}if(t&&s===null)throw n=`
|
|
216
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,J(e))})}function Ps(e){e!==Sl&&e.next===null&&(Sl===null?fd=Sl=e:Sl=Sl.next=e),pd=!0,B.actQueue!==null?uh||(uh=!0,Wx()):ch||(ch=!0,Wx())}function Ti(e,t){if(!dh&&pd){dh=!0;do for(var n=!1,s=fd;s!==null;){if(e!==0){var r=s.pendingLanes;if(r===0)var o=0;else{var u=s.suspendedLanes,m=s.pingedLanes;o=(1<<31-cn(42|e)+1)-1,o&=r&~(u&~m),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Jx(s,o))}else o=Ze,o=an(s,s===ft?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==ca),(o&3)===0||ms(s,o)||(n=!0,Jx(s,o));s=s.next}while(n);dh=!1}}function mS(){Af()}function Af(){pd=uh=ch=!1;var e=0;la!==0&&(vS()&&(e=la),la=0);for(var t=Hs(),n=null,s=fd;s!==null;){var r=s.next,o=Zx(s,t);o===0?(s.next=null,n===null?fd=r:n.next=r,r===null&&(Sl=n)):(n=s,(e!==0||(o&3)!==0)&&(pd=!0)),s=r}Ti(e)}function Zx(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var u=31-cn(o),m=1<<u,b=r[u];b===-1?((m&n)===0||(m&s)!==0)&&(r[u]=On(m,t)):b<=t&&(e.expiredLanes|=m),o&=~m}if(t=ft,n=Ze,n=an(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ca),s=e.callbackNode,n===0||e===t&&(lt===na||lt===sa)||e.cancelPendingCommit!==null)return s!==null&&Vf(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ms(e,n)){if(t=n&-n,t!==e.callbackPriority||B.actQueue!==null&&s!==mh)Vf(s);else return t;switch(Pn(n)){case Wn:case Bs:n=up;break;case mr:n=Ya;break;case Bu:n=dp;break;default:n=Ya}return s=Kx.bind(null,e),B.actQueue!==null?(B.actQueue.push(s),n=mh):n=ip(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&Vf(s),e.callbackPriority=2,e.callbackNode=null,2}function Kx(e,t){if(Wu=Ju=!1,Wt!==oa&&Wt!==rh)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ji()&&e.callbackNode!==n)return null;var s=Ze;return s=an(e,e===ft?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ca),s===0?null:(Ax(e,s,t),Zx(e,Hs()),e.callbackNode!=null&&e.callbackNode===n?Kx.bind(null,e):null)}function Jx(e,t){if(ji())return null;Ju=Wu,Wu=!1,Ax(e,t,!0)}function Vf(e){e!==mh&&e!==null&&WS(e)}function Wx(){B.actQueue!==null&&B.actQueue.push(function(){return Af(),null}),Mj(function(){(rt&(pn|Ns))!==$n?ip(cp,mS):Af()})}function Mf(){return la===0&&(la=Be()),la}function eg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Z(e,"action"),ri(""+e))}function tg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function fS(e,t,n,s,r){if(t==="submit"&&n&&n.stateNode===r){var o=eg((r[jn]||null).action),u=s.submitter;u&&(t=(t=u[jn]||null)?eg(t.formAction):u.getAttribute("formAction"),t!==null&&(o=t,u=null));var m=new Gu("action","action",null,s,r);e.push({event:m,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(la!==0){var b=u?tg(r,u):new FormData(r),x={pending:!0,data:b,method:r.method,action:o};Object.freeze(x),Km(n,x,null,b)}}else typeof o=="function"&&(m.preventDefault(),b=u?tg(r,u):new FormData(r),x={pending:!0,data:b,method:r.method,action:o},Object.freeze(x),Km(n,x,o,b))},currentTarget:r}]})}}function Eu(e,t,n){e.currentTarget=n;try{t(e)}catch(s){Qp(s)}e.currentTarget=null}function ng(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n];e:{var r=void 0,o=s.event;if(s=s.listeners,t)for(var u=s.length-1;0<=u;u--){var m=s[u],b=m.instance,x=m.currentTarget;if(m=m.listener,b!==r&&o.isPropagationStopped())break e;b!==null?Ue(b,Eu,o,m,x):Eu(o,m,x),r=b}else for(u=0;u<s.length;u++){if(m=s[u],b=m.instance,x=m.currentTarget,m=m.listener,b!==r&&o.isPropagationStopped())break e;b!==null?Ue(b,Eu,o,m,x):Eu(o,m,x),r=b}}}}function Ke(e,t){fh.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[mp];n===void 0&&(n=t[mp]=new Set);var s=e+"__bubble";n.has(s)||(sg(t,e,2,!1),n.add(s))}function Of(e,t,n){fh.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var s=0;t&&(s|=4),sg(n,e,s,t)}function Pf(e){if(!e[hd]){e[hd]=!0,Bg.forEach(function(n){n!=="selectionchange"&&(fh.has(n)||Of(n,!1,e),Of(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hd]||(t[hd]=!0,Of("selectionchange",!1,t))}}function sg(e,t,n,s){switch(Vg(t)){case Wn:var r=FS;break;case Bs:r=YS;break;default:r=Zf}n=r.bind(null,t,n,e),r=void 0,!yp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function kf(e,t,n,s,r){var o=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var u=s.tag;if(u===3||u===4){var m=s.stateNode.containerInfo;if(m===r)break;if(u===4)for(u=s.return;u!==null;){var b=u.tag;if((b===3||b===4)&&u.stateNode.containerInfo===r)return;u=u.return}for(;m!==null;){if(u=zn(m),u===null)return;if(b=u.tag,b===5||b===6||b===26||b===27){s=o=u;continue e}m=m.parentNode}}s=s.return}Cb(function(){var x=o,P=lm(n),L=[];e:{var O=Ay.get(e);if(O!==void 0){var F=Gu,ve=e;switch(e){case"keypress":if(Bc(n)===0)break e;case"keydown":case"keyup":F=BE;break;case"focusin":ve="focus",F=Ep;break;case"focusout":ve="blur",F=Ep;break;case"beforeblur":case"afterblur":F=Ep;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=vy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=UE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=FE;break;case Ty:case Uy:case Cy:F=AE;break;case Ry:F=GE;break;case"scroll":case"scrollend":F=DE;break;case"wheel":F=QE;break;case"copy":case"cut":case"paste":F=ME;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=gy;break;case"toggle":case"beforetoggle":F=XE}var Ae=(t&4)!==0,pt=!Ae&&(e==="scroll"||e==="scrollend"),Je=Ae?O!==null?O+"Capture":null:O;Ae=[];for(var S=x,E;S!==null;){var U=S;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||Je===null||(U=oi(S,Je),U!=null&&Ae.push(Ui(S,U,E))),pt)break;S=S.return}0<Ae.length&&(O=new F(O,ve,null,n,P),L.push({event:O,listeners:Ae}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",O&&n!==Hi&&(ve=n.relatedTarget||n.fromElement)&&(zn(ve)||ve[Kr]))break e;if((F||O)&&(O=P.window===P?P:(O=P.ownerDocument)?O.defaultView||O.parentWindow:window,F?(ve=n.relatedTarget||n.toElement,F=x,ve=ve?zn(ve):null,ve!==null&&(pt=I(ve),Ae=ve.tag,ve!==pt||Ae!==5&&Ae!==27&&Ae!==6)&&(ve=null)):(F=null,ve=x),F!==ve)){if(Ae=vy,U="onMouseLeave",Je="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=gy,U="onPointerLeave",Je="onPointerEnter",S="pointer"),pt=F==null?O:fs(F),E=ve==null?O:fs(ve),O=new Ae(U,S+"leave",F,n,P),O.target=pt,O.relatedTarget=E,U=null,zn(P)===x&&(Ae=new Ae(Je,S+"enter",ve,n,P),Ae.target=E,Ae.relatedTarget=pt,U=Ae),pt=U,F&&ve)t:{for(Ae=F,Je=ve,S=0,E=Ae;E;E=_a(E))S++;for(E=0,U=Je;U;U=_a(U))E++;for(;0<S-E;)Ae=_a(Ae),S--;for(;0<E-S;)Je=_a(Je),E--;for(;S--;){if(Ae===Je||Je!==null&&Ae===Je.alternate)break t;Ae=_a(Ae),Je=_a(Je)}Ae=null}else Ae=null;F!==null&&rg(L,O,F,Ae,!1),ve!==null&&pt!==null&&rg(L,pt,ve,Ae,!0)}}e:{if(O=x?fs(x):window,F=O.nodeName&&O.nodeName.toLowerCase(),F==="select"||F==="input"&&O.type==="file")var Y=kb;else if(Ob(O))if(jy)Y=Mw;else{Y=Aw;var le=Rw}else F=O.nodeName,!F||F.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?x&&si(x.elementType)&&(Y=kb):Y=Vw;if(Y&&(Y=Y(e,x))){Pb(L,Y,n,P);break e}le&&le(e,O,x),e==="focusout"&&x&&O.type==="number"&&x.memoizedProps.value!=null&&tm(O,"number",O.value)}switch(le=x?fs(x):window,e){case"focusin":(Ob(le)||le.contentEditable==="true")&&(Ja=le,Dp=x,Gi=null);break;case"focusout":Gi=Dp=Ja=null;break;case"mousedown":Tp=!0;break;case"contextmenu":case"mouseup":case"dragend":Tp=!1,Fb(L,n,P);break;case"selectionchange":if(WE)break;case"keydown":case"keyup":Fb(L,n,P)}var Oe;if(jp)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Ka?Vb(e,n)&&(xe="onCompositionEnd"):e==="keydown"&&n.keyCode===yy&&(xe="onCompositionStart");xe&&(Ny&&n.locale!=="ko"&&(Ka||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Ka&&(Oe=Rb()):(Jr=P,Np="value"in Jr?Jr.value:Jr.textContent,Ka=!0)),le=ju(x,xe),0<le.length&&(xe=new xy(xe,e,null,n,P),L.push({event:xe,listeners:le}),Oe?xe.data=Oe:(Oe=Mb(n),Oe!==null&&(xe.data=Oe)))),(Oe=KE?Dw(e,n):Tw(e,n))&&(xe=ju(x,"onBeforeInput"),0<xe.length&&(le=new PE("onBeforeInput","beforeinput",null,n,P),L.push({event:le,listeners:xe}),le.data=Oe)),fS(L,e,x,n,P)}ng(L,t)})}function Ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ju(e,t){for(var n=t+"Capture",s=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=oi(e,n),r!=null&&s.unshift(Ui(e,r,o)),r=oi(e,t),r!=null&&s.push(Ui(e,r,o))),e.tag===3)return s;e=e.return}return[]}function _a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rg(e,t,n,s,r){for(var o=t._reactName,u=[];n!==null&&n!==s;){var m=n,b=m.alternate,x=m.stateNode;if(m=m.tag,b!==null&&b===s)break;m!==5&&m!==26&&m!==27||x===null||(b=x,r?(x=oi(n,o),x!=null&&u.unshift(Ui(n,x,b))):r||(x=oi(n,o),x!=null&&u.push(Ui(n,x,b)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}function zf(e,t){ww(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||hy||(hy=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:$o,possibleRegistrationNames:fp};si(e)||typeof t.is=="string"||Ew(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Yt(e,t,n,s){t!==n&&(n=Gr(n),Gr(t)!==n&&(s[e]=t))}function pS(e,t,n){t.forEach(function(s){n[lg(s)]=s==="style"?_f(e):e.getAttribute(s)})}function ks(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function og(e,t){return e=e.namespaceURI===qu||e.namespaceURI===Qa?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Gr(e){return N(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ae(e)),q(e)),(typeof e=="string"?e:""+e).replace(Ej,`
|
|
217
|
+
`).replace(jj,"")}function ag(e,t){return t=Gr(t),Gr(e)===t}function Du(){}function dt(e,t,n,s,r,o){switch(n){case"children":typeof s=="string"?(_c(s,t,!1),t==="body"||t==="textarea"&&s===""||ni(e,s)):(typeof s=="number"||typeof s=="bigint")&&(_c(""+s,t,!1),t!=="body"&&ni(e,""+s));break;case"className":Te(e,"class",s);break;case"tabIndex":Te(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Te(e,n,s);break;case"style":Db(e,s,o);break;case"data":if(t!=="object"){Te(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){console.error(n==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}Z(s,n),s=ri(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(s!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(r.encType==null&&r.method==null||xd||(xd=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||vd||(vd=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||bd?t!=="button"||r.type==null||r.type==="submit"||bd?typeof s=="function"&&(r.name==null||$0||($0=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||xd||(xd=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||vd||(vd=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(bd=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(bd=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(n==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&dt(e,t,"name",r.name,r,null),dt(e,t,"formEncType",r.formEncType,r,null),dt(e,t,"formMethod",r.formMethod,r,null),dt(e,t,"formTarget",r.formTarget,r,null)):(dt(e,t,"encType",r.encType,r,null),dt(e,t,"method",r.method,r,null),dt(e,t,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}Z(s,n),s=ri(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(typeof s!="function"&&ks(n,s),e.onclick=Du);break;case"onScroll":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scrollend",e));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}Z(s,n),n=ri(""+s),e.setAttributeNS(ia,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(Z(s,n),e.setAttribute(n,""+s)):e.removeAttribute(n);break;case"inert":s!==""||gd[n]||(gd[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(Z(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(Z(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):(Z(s,n),e.setAttribute(n,s));break;case"popover":Ke("beforetoggle",e),Ke("toggle",e),ue(e,"popover",s);break;case"xlinkActuate":We(e,ia,"xlink:actuate",s);break;case"xlinkArcrole":We(e,ia,"xlink:arcrole",s);break;case"xlinkRole":We(e,ia,"xlink:role",s);break;case"xlinkShow":We(e,ia,"xlink:show",s);break;case"xlinkTitle":We(e,ia,"xlink:title",s);break;case"xlinkType":We(e,ia,"xlink:type",s);break;case"xmlBase":We(e,ph,"xml:base",s);break;case"xmlLang":We(e,ph,"xml:lang",s);break;case"xmlSpace":We(e,ph,"xml:space",s);break;case"is":o!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),ue(e,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":Q0||s==null||typeof s!="object"||(Q0=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=Tb(n),ue(e,n,s)):$o.hasOwnProperty(n)&&s!=null&&typeof s!="function"&&ks(n,s)}}function Hf(e,t,n,s,r,o){switch(n){case"style":Db(e,s,o);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof s=="string"?ni(e,s):(typeof s=="number"||typeof s=="bigint")&&ni(e,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&ks(n,s),Ke("scrollend",e));break;case"onClick":s!=null&&(typeof s!="function"&&ks(n,s),e.onclick=Du);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if($o.hasOwnProperty(n))s!=null&&typeof s!="function"&&ks(n,s);else e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[jn]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof s=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,r);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):ue(e,n,s)}}}function Xt(e,t,n){switch(zf(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",e),Ke("load",e);var s=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var u=n[o];if(u!=null)switch(o){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,o,u,n,null)}}r&&dt(e,t,"srcSet",n.srcSet,n,null),s&&dt(e,t,"src",n.src,n,null);return;case"input":we("input",n),Ke("invalid",e);var m=o=u=r=null,b=null,x=null;for(s in n)if(n.hasOwnProperty(s)){var P=n[s];if(P!=null)switch(s){case"name":r=P;break;case"type":u=P;break;case"checked":b=P;break;case"defaultChecked":x=P;break;case"value":o=P;break;case"defaultValue":m=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,s,P,n,null)}}ub(e,n),db(e,o,m,b,x,u,r,!1),kc(e);return;case"select":we("select",n),Ke("invalid",e),s=u=o=null;for(r in n)if(n.hasOwnProperty(r)&&(m=n[r],m!=null))switch(r){case"value":o=m;break;case"defaultValue":u=m;break;case"multiple":s=m;default:dt(e,t,r,m,n,null)}pb(e,n),t=o,n=u,e.multiple=!!s,t!=null?Da(e,!!s,t,!1):n!=null&&Da(e,!!s,n,!0);return;case"textarea":we("textarea",n),Ke("invalid",e),o=r=s=null;for(u in n)if(n.hasOwnProperty(u)&&(m=n[u],m!=null))switch(u){case"value":s=m;break;case"defaultValue":r=m;break;case"children":o=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:dt(e,t,u,m,n,null)}hb(e,n),vb(e,s,r,o),kc(e);return;case"option":mb(e,n);for(b in n)if(n.hasOwnProperty(b)&&(s=n[b],s!=null))switch(b){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:dt(e,t,b,s,n,null)}return;case"dialog":Ke("beforetoggle",e),Ke("toggle",e),Ke("cancel",e),Ke("close",e);break;case"iframe":case"object":Ke("load",e);break;case"video":case"audio":for(s=0;s<hc.length;s++)Ke(hc[s],e);break;case"image":Ke("error",e),Ke("load",e);break;case"details":Ke("toggle",e);break;case"embed":case"source":case"link":Ke("error",e),Ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(s=n[x],s!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,x,s,n,null)}return;default:if(si(t)){for(P in n)n.hasOwnProperty(P)&&(s=n[P],s!==void 0&&Hf(e,t,P,s,n,void 0));return}}for(m in n)n.hasOwnProperty(m)&&(s=n[m],s!=null&&dt(e,t,m,s,n,null))}function hS(e,t,n,s){switch(zf(t,s),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,u=null,m=null,b=null,x=null,P=null;for(F in n){var L=n[F];if(n.hasOwnProperty(F)&&L!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":b=L;default:s.hasOwnProperty(F)||dt(e,t,F,null,s,L)}}for(var O in s){var F=s[O];if(L=n[O],s.hasOwnProperty(O)&&(F!=null||L!=null))switch(O){case"type":o=F;break;case"name":r=F;break;case"checked":x=F;break;case"defaultChecked":P=F;break;case"value":u=F;break;case"defaultValue":m=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F!==L&&dt(e,t,O,F,s,L)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,t||!s||G0||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),G0=!0),!t||s||Y0||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Y0=!0),em(e,u,m,b,x,P,o,r);return;case"select":F=u=m=O=null;for(o in n)if(b=n[o],n.hasOwnProperty(o)&&b!=null)switch(o){case"value":break;case"multiple":F=b;default:s.hasOwnProperty(o)||dt(e,t,o,null,s,b)}for(r in s)if(o=s[r],b=n[r],s.hasOwnProperty(r)&&(o!=null||b!=null))switch(r){case"value":O=o;break;case"defaultValue":m=o;break;case"multiple":u=o;default:o!==b&&dt(e,t,r,o,s,b)}s=m,t=u,n=F,O!=null?Da(e,!!t,O,!1):!!n!=!!t&&(s!=null?Da(e,!!t,s,!0):Da(e,!!t,t?[]:"",!1));return;case"textarea":F=O=null;for(m in n)if(r=n[m],n.hasOwnProperty(m)&&r!=null&&!s.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:dt(e,t,m,null,s,r)}for(u in s)if(r=s[u],o=n[u],s.hasOwnProperty(u)&&(r!=null||o!=null))switch(u){case"value":O=r;break;case"defaultValue":F=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==o&&dt(e,t,u,r,s,o)}bb(e,O,F);return;case"option":for(var ve in n)if(O=n[ve],n.hasOwnProperty(ve)&&O!=null&&!s.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:dt(e,t,ve,null,s,O)}for(b in s)if(O=s[b],F=n[b],s.hasOwnProperty(b)&&O!==F&&(O!=null||F!=null))switch(b){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:dt(e,t,b,O,s,F)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in n)O=n[Ae],n.hasOwnProperty(Ae)&&O!=null&&!s.hasOwnProperty(Ae)&&dt(e,t,Ae,null,s,O);for(x in s)if(O=s[x],F=n[x],s.hasOwnProperty(x)&&O!==F&&(O!=null||F!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,x,O,s,F)}return;default:if(si(t)){for(var pt in n)O=n[pt],n.hasOwnProperty(pt)&&O!==void 0&&!s.hasOwnProperty(pt)&&Hf(e,t,pt,void 0,s,O);for(P in s)O=s[P],F=n[P],!s.hasOwnProperty(P)||O===F||O===void 0&&F===void 0||Hf(e,t,P,O,s,F);return}}for(var Je in n)O=n[Je],n.hasOwnProperty(Je)&&O!=null&&!s.hasOwnProperty(Je)&&dt(e,t,Je,null,s,O);for(L in s)O=s[L],F=n[L],!s.hasOwnProperty(L)||O===F||O==null&&F==null||dt(e,t,L,O,s,F)}function lg(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function _f(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var s=e[n];t[s]=e.getPropertyValue(s)}return t}function ig(e,t,n){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var s,r=s="",o;for(o in t)if(t.hasOwnProperty(o)){var u=t[o];u!=null&&typeof u!="boolean"&&u!==""&&(o.indexOf("--")===0?(se(u,o),s+=r+o+":"+(""+u).trim()):typeof u!="number"||u===0||fy.has(o)?(se(u,o),s+=r+o.replace(iy,"-$1").toLowerCase().replace(cy,"-ms-")+":"+(""+u).trim()):s+=r+o.replace(iy,"-$1").toLowerCase().replace(cy,"-ms-")+":"+u+"px",r=";")}s=s||null,t=e.getAttribute("style"),t!==s&&(s=Gr(s),Gr(t)!==s&&(n.style=_f(e)))}}function Kn(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Z(s,t),e===""+s)return}Yt(t,e,s,o)}function cg(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}Yt(t,e,s,o)}function Bf(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(Z(s,n),e===""+s)return}Yt(t,e,s,o)}function ug(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(Z(s,t),e===""+s))return}Yt(t,e,s,o)}function Lf(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Z(s,t),n=ri(""+s),e===n)return}Yt(t,e,s,o)}function dg(e,t,n,s){for(var r={},o=new Set,u=e.attributes,m=0;m<u.length;m++)switch(u[m].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:o.add(u[m].name)}if(si(t)){for(var b in n)if(n.hasOwnProperty(b)){var x=n[b];if(x!=null){if($o.hasOwnProperty(b))typeof x!="function"&&ks(b,x);else if(n.suppressHydrationWarning!==!0)switch(b){case"children":typeof x!="string"&&typeof x!="number"||Yt("children",e.textContent,x,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=og(e,x),Yt(b,u,x,r));continue;case"style":o.delete(b),ig(e,x,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":o.delete("class"),u=Me(e,"class",x),Yt("className",u,x,r);continue;default:s.context===wr&&t!=="svg"&&t!=="math"?o.delete(b.toLowerCase()):o.delete(b),u=Me(e,b,x),Yt(b,u,x,r)}}}}else for(x in n)if(n.hasOwnProperty(x)&&(b=n[x],b!=null)){if($o.hasOwnProperty(x))typeof b!="function"&&ks(x,b);else if(n.suppressHydrationWarning!==!0)switch(x){case"children":typeof b!="string"&&typeof b!="number"||Yt("children",e.textContent,b,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=og(e,b),u!==b&&(r[x]={__html:u}));continue;case"className":Kn(e,x,"class",b,o,r);continue;case"tabIndex":Kn(e,x,"tabindex",b,o,r);continue;case"style":o.delete(x),ig(e,b,r);continue;case"multiple":o.delete(x),Yt(x,e.multiple,b,r);continue;case"muted":o.delete(x),Yt(x,e.muted,b,r);continue;case"autoFocus":o.delete("autofocus"),Yt(x,e.autofocus,b,r);continue;case"data":if(t!=="object"){o.delete(x),u=e.getAttribute("data"),Yt(x,u,b,r);continue}case"src":case"href":if(!(b!==""||t==="a"&&x==="href"||t==="object"&&x==="data")){console.error(x==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',x,x);continue}Lf(e,x,x,b,o,r);continue;case"action":case"formAction":if(u=e.getAttribute(x),typeof b=="function"){o.delete(x.toLowerCase()),x==="formAction"?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}else if(u===Dj){o.delete(x.toLowerCase()),Yt(x,"function",b,r);continue}Lf(e,x,x.toLowerCase(),b,o,r);continue;case"xlinkHref":Lf(e,x,"xlink:href",b,o,r);continue;case"contentEditable":Bf(e,x,"contenteditable",b,o,r);continue;case"spellCheck":Bf(e,x,"spellcheck",b,o,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Bf(e,x,x,b,o,r);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":cg(e,x,x.toLowerCase(),b,o,r);continue;case"capture":case"download":e:{m=e;var P=u=x,L=r;if(o.delete(P),m=m.getAttribute(P),m===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&m==="")break e;break;default:if(Z(b,u),m===""+b)break e}Yt(u,m,b,L)}continue;case"cols":case"rows":case"size":case"span":e:{if(m=e,P=u=x,L=r,o.delete(P),m=m.getAttribute(P),m===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(Z(b,u),m===""+b))break e}Yt(u,m,b,L)}continue;case"rowSpan":ug(e,x,"rowspan",b,o,r);continue;case"start":ug(e,x,x,b,o,r);continue;case"xHeight":Kn(e,x,"x-height",b,o,r);continue;case"xlinkActuate":Kn(e,x,"xlink:actuate",b,o,r);continue;case"xlinkArcrole":Kn(e,x,"xlink:arcrole",b,o,r);continue;case"xlinkRole":Kn(e,x,"xlink:role",b,o,r);continue;case"xlinkShow":Kn(e,x,"xlink:show",b,o,r);continue;case"xlinkTitle":Kn(e,x,"xlink:title",b,o,r);continue;case"xlinkType":Kn(e,x,"xlink:type",b,o,r);continue;case"xmlBase":Kn(e,x,"xml:base",b,o,r);continue;case"xmlLang":Kn(e,x,"xml:lang",b,o,r);continue;case"xmlSpace":Kn(e,x,"xml:space",b,o,r);continue;case"inert":b!==""||gd[x]||(gd[x]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",x)),cg(e,x,x,b,o,r);continue;default:if(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N"){m=Tb(x),u=!1,s.context===wr&&t!=="svg"&&t!=="math"?o.delete(m.toLowerCase()):(P=x.toLowerCase(),P=Fu.hasOwnProperty(P)&&Fu[P]||null,P!==null&&P!==x&&(u=!0,o.delete(P)),o.delete(m));e:if(P=e,L=m,m=b,ze(L))if(P.hasAttribute(L))P=P.getAttribute(L),Z(m,L),m=P===""+m?m:P;else{switch(typeof m){case"function":case"symbol":break e;case"boolean":if(P=L.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")break e}m=m===void 0?void 0:null}else m=void 0;u||Yt(x,m,b,r)}}}return 0<o.size&&n.suppressHydrationWarning!==!0&&pS(e,o,r),Object.keys(r).length===0?null:r}function bS(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Tu(e){return e.nodeType===9?e:e.ownerDocument}function mg(e){switch(e){case Qa:return El;case qu:return wd;default:return wr}}function fg(e,t){if(e===wr)switch(t){case"svg":return El;case"math":return wd;default:return wr}return e===El&&t==="foreignObject"?wr:e}function qf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function vS(){var e=window.event;return e&&e.type==="popstate"?e===xh?!1:(xh=e,!0):(xh=null,!1)}function xS(e){setTimeout(function(){throw e})}function gS(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function yS(e,t,n,s){hS(e,t,n,s),e[jn]=s}function pg(e){ni(e,"")}function NS(e,t,n){e.nodeValue=n}function $r(e){return e==="head"}function wS(e,t){e.removeChild(t)}function SS(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function hg(e,t){var n=t,s=0,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n===Nd){if(0<s&&8>s){n=s;var u=e.ownerDocument;if(n&Uj&&Ci(u.documentElement),n&Cj&&Ci(u.body),n&Rj)for(n=u.head,Ci(n),u=n.firstChild;u;){var m=u.nextSibling,b=u.nodeName;u[ki]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}if(r===0){e.removeChild(o),Mi(t);return}r--}else n===yd||n===Nr||n===bc?r++:s=n.charCodeAt(0)-48;else s=0;n=o}while(n);Mi(t)}function ES(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function jS(e){e.nodeValue=""}function DS(e,t){t=t[Aj],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function TS(e,t){e.nodeValue=t}function Ff(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ff(n),Us(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function US(e,t,n,s){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ki])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Z(r.name,"name");var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Jn(e.nextSibling),e===null)break}return null}function CS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Jn(e.nextSibling),e===null))return null;return e}function Yf(e){return e.data===bc||e.data===Nr&&e.ownerDocument.readyState===X0}function RS(e,t){var n=e.ownerDocument;if(e.data!==Nr||n.readyState===X0)t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Jn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===yd||t===bc||t===Nr||t===hh||t===I0)break;if(t===Nd)return null}}return e}function bg(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},s=e.attributes,r=0;r<s.length;r++){var o=s[r];n[lg(o.name)]=o.name.toLowerCase()==="style"?_f(e):o.value}return{type:t,props:n}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function vg(e,t,n){return n===null||n[Tj]!==!0?(e.nodeValue===t?e=null:(t=Gr(t),e=Gr(e.nodeValue)===t?null:e.nodeValue),e):null}function xg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Nd){if(t===0)return Jn(e.nextSibling);t--}else n!==yd&&n!==bc&&n!==Nr||t++}e=e.nextSibling}return null}function gg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===yd||n===bc||n===Nr){if(t===0)return e;t--}else n===Nd&&t++}e=e.previousSibling}return null}function AS(e){Mi(e)}function VS(e){Mi(e)}function yg(e,t,n,s,r){switch(r&&am(e,s.ancestorInfo),t=Tu(n),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function MS(e,t,n,s){if(!n[Kr]&&gn(n)){var r=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=n.attributes;r.length;)n.removeAttributeNode(r[0]);Xt(n,e,t),n[tn]=s,n[jn]=t}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Us(e)}function Uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Ng(e,t,n){var s=jl;if(s&&typeof t=="string"&&t){var r=Zn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),tN.has(r)||(tN.add(r),e={rel:e,crossOrigin:n,href:t},s.querySelector(r)===null&&(t=s.createElement("link"),Xt(t,"link",e),R(t),s.head.appendChild(t)))}}function wg(e,t,n,s){var r=(r=Xr.current)?Uu(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ba(n.href),t=h(r).hoistableStyles,s=t.get(n),s||(s={type:"style",instance:null,count:0,state:null},t.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ba(n.href);var o=h(r).hoistableStyles,u=o.get(e);if(!u&&(r=r.ownerDocument||r,u={type:"stylesheet",instance:null,count:0,state:{loading:ua,preload:null}},o.set(e,u),(o=r.querySelector(Ri(e)))&&!o._p&&(u.instance=o,u.state.loading=vc|cs),!us.has(e))){var m={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};us.set(e,m),o||OS(r,e,m,u.state)}if(t&&s===null)throw n=`
|
|
218
218
|
|
|
219
219
|
- `+Cu(t)+`
|
|
220
220
|
+ `+Cu(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return u}if(t&&s!==null)throw n=`
|
|
@@ -261,14 +261,14 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}
|
|
|
261
261
|
|
|
262
262
|
Check the render method of \``+r+"`."),o||s&&(o=`
|
|
263
263
|
|
|
264
|
-
Check the top-level render call using <`+s+">.");var u="";n!=null&&e!==n&&(s=null,typeof n.tag=="number"?s=J(n):typeof n.name=="string"&&(s=n.name),s&&(u=" It was passed a child from "+s+".")),Ue(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',o,u)})}}};var ml=Hv(!0),f0=Hv(!1),is=ce(null),Gs=null,fl=1,rc=2,Lt=ce(0),p0={},h0=new Set,b0=new Set,v0=new Set,x0=new Set,g0=new Set,y0=new Set,N0=new Set,w0=new Set,S0=new Set,E0=new Set;Object.freeze(p0);var $p={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Fn(e),r=_r(s);r.payload=t,n!=null&&(nf(n),r.callback=n),t=Br(e,r,s),t!==null&&(Vt(t,e,s),fi(t,e,s)),Mn(e,s)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Fn(e),r=_r(s);r.tag=Fy,r.payload=t,n!=null&&(nf(n),r.callback=n),t=Br(e,r,s),t!==null&&(Vt(t,e,s),fi(t,e,s)),Mn(e,s)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fn(e),s=_r(n);s.tag=Yy,t!=null&&(nf(t),s.callback=t),t=Br(e,s,n),t!==null&&(Vt(t,e,n),fi(t,e,n)),me!==null&&typeof me.markForceUpdateScheduled=="function"&&me.markForceUpdateScheduled(e,n)}},Qp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pl=null,Ip=null,j0=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Gt=!1,D0={},T0={},U0={},C0={},hl=!1,R0={},Xp={},Zp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},A0=!1,V0=null;V0=new Set;var gr=!1,Mt=!1,Kp=!1,M0=typeof WeakSet=="function"?WeakSet:Set,$t=null,bl=null,vl=null,Ht=null,Tn=!1,ys=null,oc=8192,pj={getCacheForType:function(e){var t=Nt(_t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return Gn}};if(typeof Symbol=="function"&&Symbol.for){var ac=Symbol.for;ac("selector.component"),ac("selector.has_pseudo_class"),ac("selector.role"),ac("selector.test_id"),ac("selector.text")}var hj=[],bj=typeof WeakMap=="function"?WeakMap:Map,$n=0,pn=2,Ns=4,yr=0,lc=1,xl=2,Jp=3,ta=4,id=6,O0=5,rt=$n,ft=null,$e=null,Ze=0,Un=0,ic=1,na=2,cc=3,P0=4,Wp=5,gl=6,uc=7,eh=8,sa=9,lt=Un,Qn=null,so=!1,yl=!1,th=!1,$s=0,Tt=yr,ro=0,oo=0,nh=0,In=0,ra=0,dc=null,hn=null,cd=!1,sh=0,k0=300,ud=1/0,z0=500,mc=null,ao=null,vj=0,xj=1,gj=2,oa=0,H0=1,_0=2,B0=3,yj=4,rh=5,Wt=0,lo=null,Nl=null,io=0,oh=0,ah=null,L0=null,Nj=50,fc=0,lh=null,ih=!1,dd=!1,wj=50,aa=0,pc=null,wl=!1,md=null,q0=!1,F0=new Set,Sj={},fd=null,Sl=null,ch=!1,uh=!1,pd=!1,dh=!1,la=0,mh={};(function(){for(var e=0;e<Cp.length;e++){var t=Cp[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ps(n,"on"+t)}ps(Ty,"onAnimationEnd"),ps(Uy,"onAnimationIteration"),ps(Cy,"onAnimationStart"),ps("dblclick","onDoubleClick"),ps("focusin","onFocus"),ps("focusout","onBlur"),ps(ej,"onTransitionRun"),ps(tj,"onTransitionStart"),ps(nj,"onTransitionCancel"),ps(Ry,"onTransitionEnd")})(),le("onMouseEnter",["mouseout","mouseover"]),le("onMouseLeave",["mouseout","mouseover"]),le("onPointerEnter",["pointerout","pointerover"]),le("onPointerLeave",["pointerout","pointerover"]),ee("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ee("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ee("onBeforeInput",["compositionend","keypress","textInput","paste"]),ee("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hc)),hd="_reactListening"+Math.random().toString(36).slice(2),Y0=!1,G0=!1,bd=!1,$0=!1,vd=!1,xd=!1,Q0=!1,gd={},Ej=/\r\n?/g,jj=/\u0000|\uFFFD/g,ia="http://www.w3.org/1999/xlink",ph="http://www.w3.org/XML/1998/namespace",Dj="javascript:throw new Error('React form unexpectedly submitted.')",Tj="suppressHydrationWarning",yd="$",Nd="/$",Nr="$?",bc="$!",Uj=1,Cj=2,Rj=4,hh="F!",I0="F",X0="complete",Aj="style",wr=0,El=1,wd=2,bh=null,vh=null,Z0={dialog:!0,webview:!0},xh=null,K0=typeof setTimeout=="function"?setTimeout:void 0,Vj=typeof clearTimeout=="function"?clearTimeout:void 0,ca=-1,J0=typeof Promise=="function"?Promise:void 0,Mj=typeof queueMicrotask=="function"?queueMicrotask:typeof J0<"u"?function(e){return J0.resolve(null).then(e).catch(xS)}:K0,gh=null,ua=0,vc=1,W0=2,eN=3,cs=4,us=new Map,tN=new Set,Sr=st.d;st.d={f:function(){var e=Sr.f(),t=ka();return e||t},r:function(e){var t=gn(e);t!==null&&t.tag===5&&t.type==="form"?Vv(t):Sr.r(e)},D:function(e){Sr.D(e),Ng("dns-prefetch",e,null)},C:function(e,t){Sr.C(e,t),Ng("preconnect",e,t)},L:function(e,t,n){Sr.L(e,t,n);var s=jl;if(s&&e&&t){var r='link[rel="preload"][as="'+Zn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Zn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Zn(n.imageSizes)+'"]')):r+='[href="'+Zn(e)+'"]';var o=r;switch(t){case"style":o=Ba(e);break;case"script":o=La(e)}us.has(o)||(e=qe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),us.set(o,e),s.querySelector(r)!==null||t==="style"&&s.querySelector(Ri(o))||t==="script"&&s.querySelector(Ai(o))||(t=s.createElement("link"),Xt(t,"link",e),R(t),s.head.appendChild(t)))}},m:function(e,t){Sr.m(e,t);var n=jl;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Zn(s)+'"][href="'+Zn(e)+'"]',o=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=La(e)}if(!us.has(o)&&(e=qe({rel:"modulepreload",href:e},t),us.set(o,e),n.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ai(o)))return}s=n.createElement("link"),Xt(s,"link",e),R(s),n.head.appendChild(s)}}},X:function(e,t){Sr.X(e,t);var n=jl;if(n&&e){var s=h(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(Ai(r)),o||(e=qe({src:e,async:!0},t),(t=us.get(r))&&$f(e,t),o=n.createElement("script"),R(o),Xt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}},S:function(e,t,n){Sr.S(e,t,n);var s=jl;if(s&&e){var r=h(s).hoistableStyles,o=Ba(e);t=t||"default";var u=r.get(o);if(!u){var m={loading:ua,preload:null};if(u=s.querySelector(Ri(o)))m.loading=vc|cs;else{e=qe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=us.get(o))&&Gf(e,n);var b=u=s.createElement("link");R(b),Xt(b,"link",e),b._p=new Promise(function(x,P){b.onload=x,b.onerror=P}),b.addEventListener("load",function(){m.loading|=vc}),b.addEventListener("error",function(){m.loading|=W0}),m.loading|=cs,Ru(u,t,s)}u={type:"stylesheet",instance:u,count:1,state:m},r.set(o,u)}}},M:function(e,t){Sr.M(e,t);var n=jl;if(n&&e){var s=h(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(Ai(r)),o||(e=qe({src:e,async:!0,type:"module"},t),(t=us.get(r))&&$f(e,t),o=n.createElement("script"),R(o),Xt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}}};var jl=typeof document>"u"?null:document,Sd=null,xc=null,yh=null,Ed=null,da=JS,gc={$$typeof:zs,Provider:null,Consumer:null,_currentValue:da,_currentValue2:da,_threadCount:0},nN="%c%s%c ",sN="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",rN="",jd=" ",Oj=Function.prototype.bind,oN=!1,aN=null,lN=null,iN=null,cN=null,uN=null,dN=null,mN=null,fN=null,pN=null;aN=function(e,t,n,s){t=i(e,t),t!==null&&(n=a(t.memoizedState,n,0,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=wn(e,2),n!==null&&Vt(n,e,2))},lN=function(e,t,n){t=i(e,t),t!==null&&(n=p(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=wn(e,2),n!==null&&Vt(n,e,2))},iN=function(e,t,n,s){t=i(e,t),t!==null&&(n=c(t.memoizedState,n,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=wn(e,2),n!==null&&Vt(n,e,2))},cN=function(e,t,n){e.pendingProps=a(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&Vt(t,e,2)},uN=function(e,t){e.pendingProps=p(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&Vt(t,e,2)},dN=function(e,t,n){e.pendingProps=c(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&Vt(t,e,2)},mN=function(e){var t=wn(e,2);t!==null&&Vt(t,e,2)},fN=function(e){N=e},pN=function(e){v=e};var Dd=!0,Td=null,Nh=!1,co=null,uo=null,mo=null,yc=new Map,Nc=new Map,fo=[],Pj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Ud=null;if(Ou.prototype.render=Wf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):H(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var s=t.current,r=Fn(s);If(s,r,n,t,null,null)},Ou.prototype.unmount=Wf.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(rt&(pn|Ns))!==$n&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),If(e.current,2,null,e,null,null),ka(),t[Kr]=null}},Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fo.length&&t!==0&&t<fo[n].priority;n++);fo.splice(n,0,e),n===0&&Og(e)}},function(){var e=ep.version;if(e!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
264
|
+
Check the top-level render call using <`+s+">.");var u="";n!=null&&e!==n&&(s=null,typeof n.tag=="number"?s=J(n):typeof n.name=="string"&&(s=n.name),s&&(u=" It was passed a child from "+s+".")),Ue(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',o,u)})}}};var ml=Hv(!0),f0=Hv(!1),is=ce(null),Gs=null,fl=1,rc=2,Lt=ce(0),p0={},h0=new Set,b0=new Set,v0=new Set,x0=new Set,g0=new Set,y0=new Set,N0=new Set,w0=new Set,S0=new Set,E0=new Set;Object.freeze(p0);var $p={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Fn(e),r=_r(s);r.payload=t,n!=null&&(nf(n),r.callback=n),t=Br(e,r,s),t!==null&&(Vt(t,e,s),fi(t,e,s)),Mn(e,s)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Fn(e),r=_r(s);r.tag=Fy,r.payload=t,n!=null&&(nf(n),r.callback=n),t=Br(e,r,s),t!==null&&(Vt(t,e,s),fi(t,e,s)),Mn(e,s)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fn(e),s=_r(n);s.tag=Yy,t!=null&&(nf(t),s.callback=t),t=Br(e,s,n),t!==null&&(Vt(t,e,n),fi(t,e,n)),me!==null&&typeof me.markForceUpdateScheduled=="function"&&me.markForceUpdateScheduled(e,n)}},Qp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pl=null,Ip=null,j0=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Gt=!1,D0={},T0={},U0={},C0={},hl=!1,R0={},Xp={},Zp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},A0=!1,V0=null;V0=new Set;var gr=!1,Mt=!1,Kp=!1,M0=typeof WeakSet=="function"?WeakSet:Set,$t=null,bl=null,vl=null,Ht=null,Tn=!1,ys=null,oc=8192,pj={getCacheForType:function(e){var t=Nt(_t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return Gn}};if(typeof Symbol=="function"&&Symbol.for){var ac=Symbol.for;ac("selector.component"),ac("selector.has_pseudo_class"),ac("selector.role"),ac("selector.test_id"),ac("selector.text")}var hj=[],bj=typeof WeakMap=="function"?WeakMap:Map,$n=0,pn=2,Ns=4,yr=0,lc=1,xl=2,Jp=3,ta=4,id=6,O0=5,rt=$n,ft=null,$e=null,Ze=0,Un=0,ic=1,na=2,cc=3,P0=4,Wp=5,gl=6,uc=7,eh=8,sa=9,lt=Un,Qn=null,so=!1,yl=!1,th=!1,$s=0,Tt=yr,ro=0,oo=0,nh=0,In=0,ra=0,dc=null,hn=null,cd=!1,sh=0,k0=300,ud=1/0,z0=500,mc=null,ao=null,vj=0,xj=1,gj=2,oa=0,H0=1,_0=2,B0=3,yj=4,rh=5,Wt=0,lo=null,Nl=null,io=0,oh=0,ah=null,L0=null,Nj=50,fc=0,lh=null,ih=!1,dd=!1,wj=50,aa=0,pc=null,wl=!1,md=null,q0=!1,F0=new Set,Sj={},fd=null,Sl=null,ch=!1,uh=!1,pd=!1,dh=!1,la=0,mh={};(function(){for(var e=0;e<Cp.length;e++){var t=Cp[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ps(n,"on"+t)}ps(Ty,"onAnimationEnd"),ps(Uy,"onAnimationIteration"),ps(Cy,"onAnimationStart"),ps("dblclick","onDoubleClick"),ps("focusin","onFocus"),ps("focusout","onBlur"),ps(ej,"onTransitionRun"),ps(tj,"onTransitionStart"),ps(nj,"onTransitionCancel"),ps(Ry,"onTransitionEnd")})(),ie("onMouseEnter",["mouseout","mouseover"]),ie("onMouseLeave",["mouseout","mouseover"]),ie("onPointerEnter",["pointerout","pointerover"]),ie("onPointerLeave",["pointerout","pointerover"]),ee("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ee("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ee("onBeforeInput",["compositionend","keypress","textInput","paste"]),ee("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hc)),hd="_reactListening"+Math.random().toString(36).slice(2),Y0=!1,G0=!1,bd=!1,$0=!1,vd=!1,xd=!1,Q0=!1,gd={},Ej=/\r\n?/g,jj=/\u0000|\uFFFD/g,ia="http://www.w3.org/1999/xlink",ph="http://www.w3.org/XML/1998/namespace",Dj="javascript:throw new Error('React form unexpectedly submitted.')",Tj="suppressHydrationWarning",yd="$",Nd="/$",Nr="$?",bc="$!",Uj=1,Cj=2,Rj=4,hh="F!",I0="F",X0="complete",Aj="style",wr=0,El=1,wd=2,bh=null,vh=null,Z0={dialog:!0,webview:!0},xh=null,K0=typeof setTimeout=="function"?setTimeout:void 0,Vj=typeof clearTimeout=="function"?clearTimeout:void 0,ca=-1,J0=typeof Promise=="function"?Promise:void 0,Mj=typeof queueMicrotask=="function"?queueMicrotask:typeof J0<"u"?function(e){return J0.resolve(null).then(e).catch(xS)}:K0,gh=null,ua=0,vc=1,W0=2,eN=3,cs=4,us=new Map,tN=new Set,Sr=st.d;st.d={f:function(){var e=Sr.f(),t=ka();return e||t},r:function(e){var t=gn(e);t!==null&&t.tag===5&&t.type==="form"?Vv(t):Sr.r(e)},D:function(e){Sr.D(e),Ng("dns-prefetch",e,null)},C:function(e,t){Sr.C(e,t),Ng("preconnect",e,t)},L:function(e,t,n){Sr.L(e,t,n);var s=jl;if(s&&e&&t){var r='link[rel="preload"][as="'+Zn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Zn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Zn(n.imageSizes)+'"]')):r+='[href="'+Zn(e)+'"]';var o=r;switch(t){case"style":o=Ba(e);break;case"script":o=La(e)}us.has(o)||(e=qe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),us.set(o,e),s.querySelector(r)!==null||t==="style"&&s.querySelector(Ri(o))||t==="script"&&s.querySelector(Ai(o))||(t=s.createElement("link"),Xt(t,"link",e),R(t),s.head.appendChild(t)))}},m:function(e,t){Sr.m(e,t);var n=jl;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Zn(s)+'"][href="'+Zn(e)+'"]',o=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=La(e)}if(!us.has(o)&&(e=qe({rel:"modulepreload",href:e},t),us.set(o,e),n.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ai(o)))return}s=n.createElement("link"),Xt(s,"link",e),R(s),n.head.appendChild(s)}}},X:function(e,t){Sr.X(e,t);var n=jl;if(n&&e){var s=h(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(Ai(r)),o||(e=qe({src:e,async:!0},t),(t=us.get(r))&&$f(e,t),o=n.createElement("script"),R(o),Xt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}},S:function(e,t,n){Sr.S(e,t,n);var s=jl;if(s&&e){var r=h(s).hoistableStyles,o=Ba(e);t=t||"default";var u=r.get(o);if(!u){var m={loading:ua,preload:null};if(u=s.querySelector(Ri(o)))m.loading=vc|cs;else{e=qe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=us.get(o))&&Gf(e,n);var b=u=s.createElement("link");R(b),Xt(b,"link",e),b._p=new Promise(function(x,P){b.onload=x,b.onerror=P}),b.addEventListener("load",function(){m.loading|=vc}),b.addEventListener("error",function(){m.loading|=W0}),m.loading|=cs,Ru(u,t,s)}u={type:"stylesheet",instance:u,count:1,state:m},r.set(o,u)}}},M:function(e,t){Sr.M(e,t);var n=jl;if(n&&e){var s=h(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(Ai(r)),o||(e=qe({src:e,async:!0,type:"module"},t),(t=us.get(r))&&$f(e,t),o=n.createElement("script"),R(o),Xt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}}};var jl=typeof document>"u"?null:document,Sd=null,xc=null,yh=null,Ed=null,da=JS,gc={$$typeof:zs,Provider:null,Consumer:null,_currentValue:da,_currentValue2:da,_threadCount:0},nN="%c%s%c ",sN="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",rN="",jd=" ",Oj=Function.prototype.bind,oN=!1,aN=null,lN=null,iN=null,cN=null,uN=null,dN=null,mN=null,fN=null,pN=null;aN=function(e,t,n,s){t=i(e,t),t!==null&&(n=a(t.memoizedState,n,0,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=wn(e,2),n!==null&&Vt(n,e,2))},lN=function(e,t,n){t=i(e,t),t!==null&&(n=p(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=wn(e,2),n!==null&&Vt(n,e,2))},iN=function(e,t,n,s){t=i(e,t),t!==null&&(n=c(t.memoizedState,n,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=wn(e,2),n!==null&&Vt(n,e,2))},cN=function(e,t,n){e.pendingProps=a(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&Vt(t,e,2)},uN=function(e,t){e.pendingProps=p(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&Vt(t,e,2)},dN=function(e,t,n){e.pendingProps=c(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&Vt(t,e,2)},mN=function(e){var t=wn(e,2);t!==null&&Vt(t,e,2)},fN=function(e){w=e},pN=function(e){v=e};var Dd=!0,Td=null,Nh=!1,co=null,uo=null,mo=null,yc=new Map,Nc=new Map,fo=[],Pj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Ud=null;if(Ou.prototype.render=Wf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):H(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var s=t.current,r=Fn(s);If(s,r,n,t,null,null)},Ou.prototype.unmount=Wf.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(rt&(pn|Ns))!==$n&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),If(e.current,2,null,e,null,null),ka(),t[Kr]=null}},Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fo.length&&t!==0&&t<fo[n].priority;n++);fo.splice(n,0,e),n===0&&Og(e)}},function(){var e=ep.version;if(e!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
265
265
|
- react: `+(e+`
|
|
266
266
|
- react-dom: 19.1.0
|
|
267
267
|
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),st.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=fe(t),e=e!==null?de(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};return e.overrideHookState=aN,e.overrideHookStateDeletePath=lN,e.overrideHookStateRenamePath=iN,e.overrideProps=cN,e.overridePropsDeletePath=uN,e.overridePropsRenamePath=dN,e.scheduleUpdate=mN,e.setErrorHandler=fN,e.setSuspenseHandler=pN,e.scheduleRefresh=G,e.scheduleRoot=A,e.setRefreshHandler=$,e.getCurrentFiber=LS,e.getLaneLabelMap=qS,e.injectProfilingHooks=Ge,ke(e)}()&&qs&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var hN=window.location.protocol;/^(https?|file):$/.test(hN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(hN==="file:"?`
|
|
268
268
|
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}wc.createRoot=function(e,t){if(!H(e))throw Error("Target container is not a DOM element.");zg(e);var n=!1,s="",r=qv,o=Fv,u=Yv,m=null;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Qr&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
269
269
|
|
|
270
270
|
let root = createRoot(domContainer);
|
|
271
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(m=t.unstable_transitionCallbacks)),t=Ug(e,1,!1,null,null,n,s,r,o,u,m,null),e[Kr]=t.current,Pf(e),new Wf(t)},wc.hydrateRoot=function(e,t,n){if(!H(e))throw Error("Target container is not a DOM element.");zg(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,r="",o=qv,u=Fv,m=Yv,b=null,x=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(b=n.unstable_transitionCallbacks),n.formState!==void 0&&(x=n.formState)),t=Ug(e,1,!0,t,n??null,s,r,o,u,m,b,x),t.context=Cg(null),n=t.current,s=Fn(n),s=Co(s),r=_r(s),r.callback=null,Br(n,r,s),n=s,t.current.lanes=n,ln(t,n),Ps(t),e[Kr]=t.current,Pf(e),new Ou(t)},wc.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),wc}var DN;function Gj(){return DN||(DN=1,jh.exports=Yj()),jh.exports}var $j=Gj(),Ql=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sa=typeof window>"u"||"Deno"in globalThis;function xn(){}function Qj(i,a){return typeof i=="function"?i(a):i}function Oh(i){return typeof i=="number"&&i>=0&&i!==1/0}function f1(i,a){return Math.max(i+(a||0)-Date.now(),0)}function Do(i,a){return typeof i=="function"?i(a):i}function Es(i,a){return typeof i=="function"?i(a):i}function TN(i,a){const{type:c="all",exact:d,fetchStatus:p,predicate:v,queryKey:N,stale:j}=i;if(N){if(d){if(a.queryHash!==tb(N,a.options))return!1}else if(!Uc(a.queryKey,N))return!1}if(c!=="all"){const y=a.isActive();if(c==="active"&&!y||c==="inactive"&&y)return!1}return!(typeof j=="boolean"&&a.isStale()!==j||p&&p!==a.state.fetchStatus||v&&!v(a))}function UN(i,a){const{exact:c,status:d,predicate:p,mutationKey:v}=i;if(v){if(!a.options.mutationKey)return!1;if(c){if(Ea(a.options.mutationKey)!==Ea(v))return!1}else if(!Uc(a.options.mutationKey,v))return!1}return!(d&&a.state.status!==d||p&&!p(a))}function tb(i,a){return((a==null?void 0:a.queryKeyHashFn)||Ea)(i)}function Ea(i){return JSON.stringify(i,(a,c)=>kh(c)?Object.keys(c).sort().reduce((d,p)=>(d[p]=c[p],d),{}):c)}function Uc(i,a){return i===a?!0:typeof i!=typeof a?!1:i&&a&&typeof i=="object"&&typeof a=="object"?Object.keys(a).every(c=>Uc(i[c],a[c])):!1}function Ph(i,a){if(i===a)return i;const c=CN(i)&&CN(a);if(c||kh(i)&&kh(a)){const d=c?i:Object.keys(i),p=d.length,v=c?a:Object.keys(a),N=v.length,j=c?[]:{},y=new Set(d);let C=0;for(let M=0;M<N;M++){const f=c?M:v[M];(!c&&y.has(f)||c)&&i[f]===void 0&&a[f]===void 0?(j[f]=void 0,C++):(j[f]=Ph(i[f],a[f]),j[f]===i[f]&&i[f]!==void 0&&C++)}return p===N&&C===p?i:j}return a}function Ld(i,a){if(!a||Object.keys(i).length!==Object.keys(a).length)return!1;for(const c in i)if(i[c]!==a[c])return!1;return!0}function CN(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function kh(i){if(!RN(i))return!1;const a=i.constructor;if(a===void 0)return!0;const c=a.prototype;return!(!RN(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function RN(i){return Object.prototype.toString.call(i)==="[object Object]"}function Ij(i){return new Promise(a=>{setTimeout(a,i)})}function zh(i,a,c){if(typeof c.structuralSharing=="function")return c.structuralSharing(i,a);if(c.structuralSharing!==!1){try{return Ph(i,a)}catch(d){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${c.queryHash}]: ${d}`),d}return Ph(i,a)}return a}function Xj(i,a,c=0){const d=[...i,a];return c&&d.length>c?d.slice(1):d}function Zj(i,a,c=0){const d=[a,...i];return c&&d.length>c?d.slice(0,-1):d}var qd=Symbol();function p1(i,a){return i.queryFn===qd&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${i.queryHash}'`),!i.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!i.queryFn||i.queryFn===qd?()=>Promise.reject(new Error(`Missing queryFn: '${i.queryHash}'`)):i.queryFn}function h1(i,a){return typeof i=="function"?i(...a):!!i}var pa,bo,Ml,e1,Kj=(e1=class extends Ql{constructor(){super();Re(this,pa);Re(this,bo);Re(this,Ml);he(this,Ml,a=>{if(!Sa&&window.addEventListener){const c=()=>a();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){D(this,bo)||this.setEventListener(D(this,Ml))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,bo))==null||a.call(this),he(this,bo,void 0))}setEventListener(a){var c;he(this,Ml,a),(c=D(this,bo))==null||c.call(this),he(this,bo,a(d=>{typeof d=="boolean"?this.setFocused(d):this.onFocus()}))}setFocused(a){D(this,pa)!==a&&(he(this,pa,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(c=>{c(a)})}isFocused(){var a;return typeof D(this,pa)=="boolean"?D(this,pa):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},pa=new WeakMap,bo=new WeakMap,Ml=new WeakMap,e1),nb=new Kj,Ol,vo,Pl,t1,Jj=(t1=class extends Ql{constructor(){super();Re(this,Ol,!0);Re(this,vo);Re(this,Pl);he(this,Pl,a=>{if(!Sa&&window.addEventListener){const c=()=>a(!0),d=()=>a(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",d,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",d)}}})}onSubscribe(){D(this,vo)||this.setEventListener(D(this,Pl))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,vo))==null||a.call(this),he(this,vo,void 0))}setEventListener(a){var c;he(this,Pl,a),(c=D(this,vo))==null||c.call(this),he(this,vo,a(this.setOnline.bind(this)))}setOnline(a){D(this,Ol)!==a&&(he(this,Ol,a),this.listeners.forEach(d=>{d(a)}))}isOnline(){return D(this,Ol)}},Ol=new WeakMap,vo=new WeakMap,Pl=new WeakMap,t1),Fd=new Jj;function Hh(){let i,a;const c=new Promise((p,v)=>{i=p,a=v});c.status="pending",c.catch(()=>{});function d(p){Object.assign(c,p),delete c.resolve,delete c.reject}return c.resolve=p=>{d({status:"fulfilled",value:p}),i(p)},c.reject=p=>{d({status:"rejected",reason:p}),a(p)},c}function Wj(i){return Math.min(1e3*2**i,3e4)}function b1(i){return(i??"online")==="online"?Fd.isOnline():!0}var v1=class extends Error{constructor(i){super("CancelledError"),this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}};function Ch(i){return i instanceof v1}function x1(i){let a=!1,c=0,d=!1,p;const v=Hh(),N=$=>{var H;d||(g(new v1($)),(H=i.abort)==null||H.call(i))},j=()=>{a=!0},y=()=>{a=!1},C=()=>nb.isFocused()&&(i.networkMode==="always"||Fd.isOnline())&&i.canRun(),M=()=>b1(i.networkMode)&&i.canRun(),f=$=>{var H;d||(d=!0,(H=i.onSuccess)==null||H.call(i,$),p==null||p(),v.resolve($))},g=$=>{var H;d||(d=!0,(H=i.onError)==null||H.call(i,$),p==null||p(),v.reject($))},A=()=>new Promise($=>{var H;p=I=>{(d||C())&&$(I)},(H=i.onPause)==null||H.call(i)}).then(()=>{var $;p=void 0,d||($=i.onContinue)==null||$.call(i)}),G=()=>{if(d)return;let $;const H=c===0?i.initialPromise:void 0;try{$=H??i.fn()}catch(I){$=Promise.reject(I)}Promise.resolve($).then(f).catch(I=>{var Ee;if(d)return;const Se=i.retry??(Sa?0:3),ne=i.retryDelay??Wj,fe=typeof ne=="function"?ne(c,I):ne,de=Se===!0||typeof Se=="number"&&c<Se||typeof Se=="function"&&Se(c,I);if(a||!de){g(I);return}c++,(Ee=i.onFail)==null||Ee.call(i,c,I),Ij(fe).then(()=>C()?void 0:A()).then(()=>{a?g(I):G()})})};return{promise:v,cancel:N,continue:()=>(p==null||p(),v),cancelRetry:j,continueRetry:y,canStart:M,start:()=>(M()?G():A().then(G),v)}}var eD=i=>setTimeout(i,0);function tD(){let i=[],a=0,c=j=>{j()},d=j=>{j()},p=eD;const v=j=>{a?i.push(j):p(()=>{c(j)})},N=()=>{const j=i;i=[],j.length&&p(()=>{d(()=>{j.forEach(y=>{c(y)})})})};return{batch:j=>{let y;a++;try{y=j()}finally{a--,a||N()}return y},batchCalls:j=>(...y)=>{v(()=>{j(...y)})},schedule:v,setNotifyFunction:j=>{c=j},setBatchNotifyFunction:j=>{d=j},setScheduler:j=>{p=j}}}var Ft=tD(),ha,n1,g1=(n1=class{constructor(){Re(this,ha)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oh(this.gcTime)&&he(this,ha,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(i){this.gcTime=Math.max(this.gcTime||0,i??(Sa?1/0:5*60*1e3))}clearGcTimeout(){D(this,ha)&&(clearTimeout(D(this,ha)),he(this,ha,void 0))}},ha=new WeakMap,n1),kl,zl,ds,ba,rn,Rc,va,ws,Dr,s1,nD=(s1=class extends g1{constructor(a){super();Re(this,ws);Re(this,kl);Re(this,zl);Re(this,ds);Re(this,ba);Re(this,rn);Re(this,Rc);Re(this,va);he(this,va,!1),he(this,Rc,a.defaultOptions),this.setOptions(a.options),this.observers=[],he(this,ba,a.client),he(this,ds,D(this,ba).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,he(this,kl,sD(this.options)),this.state=a.state??D(this,kl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=D(this,rn))==null?void 0:a.promise}setOptions(a){this.options={...D(this,Rc),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,ds).remove(this)}setData(a,c){const d=zh(this.state.data,a,this.options);return Fe(this,ws,Dr).call(this,{data:d,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),d}setState(a,c){Fe(this,ws,Dr).call(this,{type:"setState",state:a,setStateOptions:c})}cancel(a){var d,p;const c=(d=D(this,rn))==null?void 0:d.promise;return(p=D(this,rn))==null||p.cancel(a),c?c.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,kl))}isActive(){return this.observers.some(a=>Es(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Do(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!f1(this.state.dataUpdatedAt,a)}onFocus(){var c;const a=this.observers.find(d=>d.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(c=D(this,rn))==null||c.continue()}onOnline(){var c;const a=this.observers.find(d=>d.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(c=D(this,rn))==null||c.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),D(this,ds).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(c=>c!==a),this.observers.length||(D(this,rn)&&(D(this,va)?D(this,rn).cancel({revert:!0}):D(this,rn).cancelRetry()),this.scheduleGc()),D(this,ds).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,ws,Dr).call(this,{type:"invalidate"})}fetch(a,c){var C,M,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(D(this,rn))return D(this,rn).continueRetry(),D(this,rn).promise}if(a&&this.setOptions(a),!this.options.queryFn){const g=this.observers.find(A=>A.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const d=new AbortController,p=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(he(this,va,!0),d.signal)})},v=()=>{const g=p1(this.options,c),G=(()=>{const $={client:D(this,ba),queryKey:this.queryKey,meta:this.meta};return p($),$})();return he(this,va,!1),this.options.persister?this.options.persister(g,G,this):g(G)},j=(()=>{const g={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:D(this,ba),state:this.state,fetchFn:v};return p(g),g})();(C=this.options.behavior)==null||C.onFetch(j,this),he(this,zl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((M=j.fetchOptions)==null?void 0:M.meta))&&Fe(this,ws,Dr).call(this,{type:"fetch",meta:(f=j.fetchOptions)==null?void 0:f.meta});const y=g=>{var A,G,$,H;Ch(g)&&g.silent||Fe(this,ws,Dr).call(this,{type:"error",error:g}),Ch(g)||((G=(A=D(this,ds).config).onError)==null||G.call(A,g,this),(H=($=D(this,ds).config).onSettled)==null||H.call($,this.state.data,g,this)),this.scheduleGc()};return he(this,rn,x1({initialPromise:c==null?void 0:c.initialPromise,fn:j.fetchFn,abort:d.abort.bind(d),onSuccess:g=>{var A,G,$,H;if(g===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),y(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(I){y(I);return}(G=(A=D(this,ds).config).onSuccess)==null||G.call(A,g,this),(H=($=D(this,ds).config).onSettled)==null||H.call($,g,this.state.error,this),this.scheduleGc()},onError:y,onFail:(g,A)=>{Fe(this,ws,Dr).call(this,{type:"failed",failureCount:g,error:A})},onPause:()=>{Fe(this,ws,Dr).call(this,{type:"pause"})},onContinue:()=>{Fe(this,ws,Dr).call(this,{type:"continue"})},retry:j.options.retry,retryDelay:j.options.retryDelay,networkMode:j.options.networkMode,canRun:()=>!0})),D(this,rn).start()}},kl=new WeakMap,zl=new WeakMap,ds=new WeakMap,ba=new WeakMap,rn=new WeakMap,Rc=new WeakMap,va=new WeakMap,ws=new WeakSet,Dr=function(a){const c=d=>{switch(a.type){case"failed":return{...d,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...d,fetchStatus:"paused"};case"continue":return{...d,fetchStatus:"fetching"};case"fetch":return{...d,...y1(d.data,this.options),fetchMeta:a.meta??null};case"success":return{...d,data:a.data,dataUpdateCount:d.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const p=a.error;return Ch(p)&&p.revert&&D(this,zl)?{...D(this,zl),fetchStatus:"idle"}:{...d,error:p,errorUpdateCount:d.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:d.fetchFailureCount+1,fetchFailureReason:p,fetchStatus:"idle",status:"error"};case"invalidate":return{...d,isInvalidated:!0};case"setState":return{...d,...a.state}}};this.state=c(this.state),Ft.batch(()=>{this.observers.forEach(d=>{d.onQueryUpdate()}),D(this,ds).notify({query:this,type:"updated",action:a})})},s1);function y1(i,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:b1(a.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function sD(i){const a=typeof i.initialData=="function"?i.initialData():i.initialData,c=a!==void 0,d=c?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:c?d??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Is,r1,rD=(r1=class extends Ql{constructor(a={}){super();Re(this,Is);this.config=a,he(this,Is,new Map)}build(a,c,d){const p=c.queryKey,v=c.queryHash??tb(p,c);let N=this.get(v);return N||(N=new nD({client:a,queryKey:p,queryHash:v,options:a.defaultQueryOptions(c),state:d,defaultOptions:a.getQueryDefaults(p)}),this.add(N)),N}add(a){D(this,Is).has(a.queryHash)||(D(this,Is).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const c=D(this,Is).get(a.queryHash);c&&(a.destroy(),c===a&&D(this,Is).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Ft.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return D(this,Is).get(a)}getAll(){return[...D(this,Is).values()]}find(a){const c={exact:!0,...a};return this.getAll().find(d=>TN(c,d))}findAll(a={}){const c=this.getAll();return Object.keys(a).length>0?c.filter(d=>TN(a,d)):c}notify(a){Ft.batch(()=>{this.listeners.forEach(c=>{c(a)})})}onFocus(){Ft.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Ft.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Is=new WeakMap,r1),Xs,bn,xa,Zs,ho,o1,oD=(o1=class extends g1{constructor(a){super();Re(this,Zs);Re(this,Xs);Re(this,bn);Re(this,xa);this.mutationId=a.mutationId,he(this,bn,a.mutationCache),he(this,Xs,[]),this.state=a.state||N1(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){D(this,Xs).includes(a)||(D(this,Xs).push(a),this.clearGcTimeout(),D(this,bn).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){he(this,Xs,D(this,Xs).filter(c=>c!==a)),this.scheduleGc(),D(this,bn).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){D(this,Xs).length||(this.state.status==="pending"?this.scheduleGc():D(this,bn).remove(this))}continue(){var a;return((a=D(this,xa))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var v,N,j,y,C,M,f,g,A,G,$,H,I,Se,ne,fe,de,Ee,je,K;const c=()=>{Fe(this,Zs,ho).call(this,{type:"continue"})};he(this,xa,x1({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(J,ce)=>{Fe(this,Zs,ho).call(this,{type:"failed",failureCount:J,error:ce})},onPause:()=>{Fe(this,Zs,ho).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,bn).canRun(this)}));const d=this.state.status==="pending",p=!D(this,xa).canStart();try{if(d)c();else{Fe(this,Zs,ho).call(this,{type:"pending",variables:a,isPaused:p}),await((N=(v=D(this,bn).config).onMutate)==null?void 0:N.call(v,a,this));const ce=await((y=(j=this.options).onMutate)==null?void 0:y.call(j,a));ce!==this.state.context&&Fe(this,Zs,ho).call(this,{type:"pending",context:ce,variables:a,isPaused:p})}const J=await D(this,xa).start();return await((M=(C=D(this,bn).config).onSuccess)==null?void 0:M.call(C,J,a,this.state.context,this)),await((g=(f=this.options).onSuccess)==null?void 0:g.call(f,J,a,this.state.context)),await((G=(A=D(this,bn).config).onSettled)==null?void 0:G.call(A,J,null,this.state.variables,this.state.context,this)),await((H=($=this.options).onSettled)==null?void 0:H.call($,J,null,a,this.state.context)),Fe(this,Zs,ho).call(this,{type:"success",data:J}),J}catch(J){try{throw await((Se=(I=D(this,bn).config).onError)==null?void 0:Se.call(I,J,a,this.state.context,this)),await((fe=(ne=this.options).onError)==null?void 0:fe.call(ne,J,a,this.state.context)),await((Ee=(de=D(this,bn).config).onSettled)==null?void 0:Ee.call(de,void 0,J,this.state.variables,this.state.context,this)),await((K=(je=this.options).onSettled)==null?void 0:K.call(je,void 0,J,a,this.state.context)),J}finally{Fe(this,Zs,ho).call(this,{type:"error",error:J})}}finally{D(this,bn).runNext(this)}}},Xs=new WeakMap,bn=new WeakMap,xa=new WeakMap,Zs=new WeakSet,ho=function(a){const c=d=>{switch(a.type){case"failed":return{...d,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...d,isPaused:!0};case"continue":return{...d,isPaused:!1};case"pending":return{...d,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...d,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...d,data:void 0,error:a.error,failureCount:d.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=c(this.state),Ft.batch(()=>{D(this,Xs).forEach(d=>{d.onMutationUpdate(a)}),D(this,bn).notify({mutation:this,type:"updated",action:a})})},o1);function N1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tr,Ss,Ac,a1,aD=(a1=class extends Ql{constructor(a={}){super();Re(this,Tr);Re(this,Ss);Re(this,Ac);this.config=a,he(this,Tr,new Set),he(this,Ss,new Map),he(this,Ac,0)}build(a,c,d){const p=new oD({mutationCache:this,mutationId:++Cd(this,Ac)._,options:a.defaultMutationOptions(c),state:d});return this.add(p),p}add(a){D(this,Tr).add(a);const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c);d?d.push(a):D(this,Ss).set(c,[a])}this.notify({type:"added",mutation:a})}remove(a){if(D(this,Tr).delete(a)){const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c);if(d)if(d.length>1){const p=d.indexOf(a);p!==-1&&d.splice(p,1)}else d[0]===a&&D(this,Ss).delete(c)}}this.notify({type:"removed",mutation:a})}canRun(a){const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c),p=d==null?void 0:d.find(v=>v.state.status==="pending");return!p||p===a}else return!0}runNext(a){var d;const c=Ad(a);if(typeof c=="string"){const p=(d=D(this,Ss).get(c))==null?void 0:d.find(v=>v!==a&&v.state.isPaused);return(p==null?void 0:p.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ft.batch(()=>{D(this,Tr).forEach(a=>{this.notify({type:"removed",mutation:a})}),D(this,Tr).clear(),D(this,Ss).clear()})}getAll(){return Array.from(D(this,Tr))}find(a){const c={exact:!0,...a};return this.getAll().find(d=>UN(c,d))}findAll(a={}){return this.getAll().filter(c=>UN(a,c))}notify(a){Ft.batch(()=>{this.listeners.forEach(c=>{c(a)})})}resumePausedMutations(){const a=this.getAll().filter(c=>c.state.isPaused);return Ft.batch(()=>Promise.all(a.map(c=>c.continue().catch(xn))))}},Tr=new WeakMap,Ss=new WeakMap,Ac=new WeakMap,a1);function Ad(i){var a;return(a=i.options.scope)==null?void 0:a.id}function AN(i){return{onFetch:(a,c)=>{var M,f,g,A,G;const d=a.options,p=(g=(f=(M=a.fetchOptions)==null?void 0:M.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,v=((A=a.state.data)==null?void 0:A.pages)||[],N=((G=a.state.data)==null?void 0:G.pageParams)||[];let j={pages:[],pageParams:[]},y=0;const C=async()=>{let $=!1;const H=ne=>{Object.defineProperty(ne,"signal",{enumerable:!0,get:()=>(a.signal.aborted?$=!0:a.signal.addEventListener("abort",()=>{$=!0}),a.signal)})},I=p1(a.options,a.fetchOptions),Se=async(ne,fe,de)=>{if($)return Promise.reject();if(fe==null&&ne.pages.length)return Promise.resolve(ne);const je=(()=>{const oe={client:a.client,queryKey:a.queryKey,pageParam:fe,direction:de?"backward":"forward",meta:a.options.meta};return H(oe),oe})(),K=await I(je),{maxPages:J}=a.options,ce=de?Zj:Xj;return{pages:ce(ne.pages,K,J),pageParams:ce(ne.pageParams,fe,J)}};if(p&&v.length){const ne=p==="backward",fe=ne?lD:VN,de={pages:v,pageParams:N},Ee=fe(d,de);j=await Se(de,Ee,ne)}else{const ne=i??v.length;do{const fe=y===0?N[0]??d.initialPageParam:VN(d,j);if(y>0&&fe==null)break;j=await Se(j,fe),y++}while(y<ne)}return j};a.options.persister?a.fetchFn=()=>{var $,H;return(H=($=a.options).persister)==null?void 0:H.call($,C,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},c)}:a.fetchFn=C}}}function VN(i,{pages:a,pageParams:c}){const d=a.length-1;return a.length>0?i.getNextPageParam(a[d],a,c[d],c):void 0}function lD(i,{pages:a,pageParams:c}){var d;return a.length>0?(d=i.getPreviousPageParam)==null?void 0:d.call(i,a[0],a,c[0],c):void 0}var Ut,xo,go,Hl,_l,yo,Bl,Ll,l1,iD=(l1=class{constructor(i={}){Re(this,Ut);Re(this,xo);Re(this,go);Re(this,Hl);Re(this,_l);Re(this,yo);Re(this,Bl);Re(this,Ll);he(this,Ut,i.queryCache||new rD),he(this,xo,i.mutationCache||new aD),he(this,go,i.defaultOptions||{}),he(this,Hl,new Map),he(this,_l,new Map),he(this,yo,0)}mount(){Cd(this,yo)._++,D(this,yo)===1&&(he(this,Bl,nb.subscribe(async i=>{i&&(await this.resumePausedMutations(),D(this,Ut).onFocus())})),he(this,Ll,Fd.subscribe(async i=>{i&&(await this.resumePausedMutations(),D(this,Ut).onOnline())})))}unmount(){var i,a;Cd(this,yo)._--,D(this,yo)===0&&((i=D(this,Bl))==null||i.call(this),he(this,Bl,void 0),(a=D(this,Ll))==null||a.call(this),he(this,Ll,void 0))}isFetching(i){return D(this,Ut).findAll({...i,fetchStatus:"fetching"}).length}isMutating(i){return D(this,xo).findAll({...i,status:"pending"}).length}getQueryData(i){var c;const a=this.defaultQueryOptions({queryKey:i});return(c=D(this,Ut).get(a.queryHash))==null?void 0:c.state.data}ensureQueryData(i){const a=this.defaultQueryOptions(i),c=D(this,Ut).build(this,a),d=c.state.data;return d===void 0?this.fetchQuery(i):(i.revalidateIfStale&&c.isStaleByTime(Do(a.staleTime,c))&&this.prefetchQuery(a),Promise.resolve(d))}getQueriesData(i){return D(this,Ut).findAll(i).map(({queryKey:a,state:c})=>{const d=c.data;return[a,d]})}setQueryData(i,a,c){const d=this.defaultQueryOptions({queryKey:i}),p=D(this,Ut).get(d.queryHash),v=p==null?void 0:p.state.data,N=Qj(a,v);if(N!==void 0)return D(this,Ut).build(this,d).setData(N,{...c,manual:!0})}setQueriesData(i,a,c){return Ft.batch(()=>D(this,Ut).findAll(i).map(({queryKey:d})=>[d,this.setQueryData(d,a,c)]))}getQueryState(i){var c;const a=this.defaultQueryOptions({queryKey:i});return(c=D(this,Ut).get(a.queryHash))==null?void 0:c.state}removeQueries(i){const a=D(this,Ut);Ft.batch(()=>{a.findAll(i).forEach(c=>{a.remove(c)})})}resetQueries(i,a){const c=D(this,Ut);return Ft.batch(()=>(c.findAll(i).forEach(d=>{d.reset()}),this.refetchQueries({type:"active",...i},a)))}cancelQueries(i,a={}){const c={revert:!0,...a},d=Ft.batch(()=>D(this,Ut).findAll(i).map(p=>p.cancel(c)));return Promise.all(d).then(xn).catch(xn)}invalidateQueries(i,a={}){return Ft.batch(()=>(D(this,Ut).findAll(i).forEach(c=>{c.invalidate()}),(i==null?void 0:i.refetchType)==="none"?Promise.resolve():this.refetchQueries({...i,type:(i==null?void 0:i.refetchType)??(i==null?void 0:i.type)??"active"},a)))}refetchQueries(i,a={}){const c={...a,cancelRefetch:a.cancelRefetch??!0},d=Ft.batch(()=>D(this,Ut).findAll(i).filter(p=>!p.isDisabled()&&!p.isStatic()).map(p=>{let v=p.fetch(void 0,c);return c.throwOnError||(v=v.catch(xn)),p.state.fetchStatus==="paused"?Promise.resolve():v}));return Promise.all(d).then(xn)}fetchQuery(i){const a=this.defaultQueryOptions(i);a.retry===void 0&&(a.retry=!1);const c=D(this,Ut).build(this,a);return c.isStaleByTime(Do(a.staleTime,c))?c.fetch(a):Promise.resolve(c.state.data)}prefetchQuery(i){return this.fetchQuery(i).then(xn).catch(xn)}fetchInfiniteQuery(i){return i.behavior=AN(i.pages),this.fetchQuery(i)}prefetchInfiniteQuery(i){return this.fetchInfiniteQuery(i).then(xn).catch(xn)}ensureInfiniteQueryData(i){return i.behavior=AN(i.pages),this.ensureQueryData(i)}resumePausedMutations(){return Fd.isOnline()?D(this,xo).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Ut)}getMutationCache(){return D(this,xo)}getDefaultOptions(){return D(this,go)}setDefaultOptions(i){he(this,go,i)}setQueryDefaults(i,a){D(this,Hl).set(Ea(i),{queryKey:i,defaultOptions:a})}getQueryDefaults(i){const a=[...D(this,Hl).values()],c={};return a.forEach(d=>{Uc(i,d.queryKey)&&Object.assign(c,d.defaultOptions)}),c}setMutationDefaults(i,a){D(this,_l).set(Ea(i),{mutationKey:i,defaultOptions:a})}getMutationDefaults(i){const a=[...D(this,_l).values()],c={};return a.forEach(d=>{Uc(i,d.mutationKey)&&Object.assign(c,d.defaultOptions)}),c}defaultQueryOptions(i){if(i._defaulted)return i;const a={...D(this,go).queries,...this.getQueryDefaults(i.queryKey),...i,_defaulted:!0};return a.queryHash||(a.queryHash=tb(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===qd&&(a.enabled=!1),a}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{...D(this,go).mutations,...(i==null?void 0:i.mutationKey)&&this.getMutationDefaults(i.mutationKey),...i,_defaulted:!0}}clear(){D(this,Ut).clear(),D(this,xo).clear()}},Ut=new WeakMap,xo=new WeakMap,go=new WeakMap,Hl=new WeakMap,_l=new WeakMap,yo=new WeakMap,Bl=new WeakMap,Ll=new WeakMap,l1),Cn,et,Vc,vn,ga,ql,No,wo,Mc,Fl,Yl,ya,Na,So,Gl,it,Tc,_h,Bh,Lh,qh,Fh,Yh,Gh,w1,i1,cD=(i1=class extends Ql{constructor(a,c){super();Re(this,it);Re(this,Cn);Re(this,et);Re(this,Vc);Re(this,vn);Re(this,ga);Re(this,ql);Re(this,No);Re(this,wo);Re(this,Mc);Re(this,Fl);Re(this,Yl);Re(this,ya);Re(this,Na);Re(this,So);Re(this,Gl,new Set);this.options=c,he(this,Cn,a),he(this,wo,null),he(this,No,Hh()),this.options.experimental_prefetchInRender||D(this,No).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,et).addObserver(this),MN(D(this,et),this.options)?Fe(this,it,Tc).call(this):this.updateResult(),Fe(this,it,qh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $h(D(this,et),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $h(D(this,et),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,it,Fh).call(this),Fe(this,it,Yh).call(this),D(this,et).removeObserver(this)}setOptions(a){const c=this.options,d=D(this,et);if(this.options=D(this,Cn).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Es(this.options.enabled,D(this,et))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,it,Gh).call(this),D(this,et).setOptions(this.options),c._defaulted&&!Ld(this.options,c)&&D(this,Cn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,et),observer:this});const p=this.hasListeners();p&&ON(D(this,et),d,this.options,c)&&Fe(this,it,Tc).call(this),this.updateResult(),p&&(D(this,et)!==d||Es(this.options.enabled,D(this,et))!==Es(c.enabled,D(this,et))||Do(this.options.staleTime,D(this,et))!==Do(c.staleTime,D(this,et)))&&Fe(this,it,_h).call(this);const v=Fe(this,it,Bh).call(this);p&&(D(this,et)!==d||Es(this.options.enabled,D(this,et))!==Es(c.enabled,D(this,et))||v!==D(this,So))&&Fe(this,it,Lh).call(this,v)}getOptimisticResult(a){const c=D(this,Cn).getQueryCache().build(D(this,Cn),a),d=this.createResult(c,a);return dD(this,d)&&(he(this,vn,d),he(this,ql,this.options),he(this,ga,D(this,et).state)),d}getCurrentResult(){return D(this,vn)}trackResult(a,c){return new Proxy(a,{get:(d,p)=>(this.trackProp(p),c==null||c(p),Reflect.get(d,p))})}trackProp(a){D(this,Gl).add(a)}getCurrentQuery(){return D(this,et)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const c=D(this,Cn).defaultQueryOptions(a),d=D(this,Cn).getQueryCache().build(D(this,Cn),c);return d.fetch().then(()=>this.createResult(d,c))}fetch(a){return Fe(this,it,Tc).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,vn)))}createResult(a,c){var J;const d=D(this,et),p=this.options,v=D(this,vn),N=D(this,ga),j=D(this,ql),C=a!==d?a.state:D(this,Vc),{state:M}=a;let f={...M},g=!1,A;if(c._optimisticResults){const ce=this.hasListeners(),oe=!ce&&MN(a,c),Ne=ce&&ON(a,d,c,p);(oe||Ne)&&(f={...f,...y1(M.data,a.options)}),c._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:G,errorUpdatedAt:$,status:H}=f;A=f.data;let I=!1;if(c.placeholderData!==void 0&&A===void 0&&H==="pending"){let ce;v!=null&&v.isPlaceholderData&&c.placeholderData===(j==null?void 0:j.placeholderData)?(ce=v.data,I=!0):ce=typeof c.placeholderData=="function"?c.placeholderData((J=D(this,Yl))==null?void 0:J.state.data,D(this,Yl)):c.placeholderData,ce!==void 0&&(H="success",A=zh(v==null?void 0:v.data,ce,c),g=!0)}if(c.select&&A!==void 0&&!I)if(v&&A===(N==null?void 0:N.data)&&c.select===D(this,Mc))A=D(this,Fl);else try{he(this,Mc,c.select),A=c.select(A),A=zh(v==null?void 0:v.data,A,c),he(this,Fl,A),he(this,wo,null)}catch(ce){he(this,wo,ce)}D(this,wo)&&(G=D(this,wo),A=D(this,Fl),$=Date.now(),H="error");const Se=f.fetchStatus==="fetching",ne=H==="pending",fe=H==="error",de=ne&&Se,Ee=A!==void 0,K={status:H,fetchStatus:f.fetchStatus,isPending:ne,isSuccess:H==="success",isError:fe,isInitialLoading:de,isLoading:de,data:A,dataUpdatedAt:f.dataUpdatedAt,error:G,errorUpdatedAt:$,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>C.dataUpdateCount||f.errorUpdateCount>C.errorUpdateCount,isFetching:Se,isRefetching:Se&&!ne,isLoadingError:fe&&!Ee,isPaused:f.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:fe&&Ee,isStale:sb(a,c),refetch:this.refetch,promise:D(this,No)};if(this.options.experimental_prefetchInRender){const ce=X=>{K.status==="error"?X.reject(K.error):K.data!==void 0&&X.resolve(K.data)},oe=()=>{const X=he(this,No,K.promise=Hh());ce(X)},Ne=D(this,No);switch(Ne.status){case"pending":a.queryHash===d.queryHash&&ce(Ne);break;case"fulfilled":(K.status==="error"||K.data!==Ne.value)&&oe();break;case"rejected":(K.status!=="error"||K.error!==Ne.reason)&&oe();break}}return K}updateResult(){const a=D(this,vn),c=this.createResult(D(this,et),this.options);if(he(this,ga,D(this,et).state),he(this,ql,this.options),D(this,ga).data!==void 0&&he(this,Yl,D(this,et)),Ld(c,a))return;he(this,vn,c);const d=()=>{if(!a)return!0;const{notifyOnChangeProps:p}=this.options,v=typeof p=="function"?p():p;if(v==="all"||!v&&!D(this,Gl).size)return!0;const N=new Set(v??D(this,Gl));return this.options.throwOnError&&N.add("error"),Object.keys(D(this,vn)).some(j=>{const y=j;return D(this,vn)[y]!==a[y]&&N.has(y)})};Fe(this,it,w1).call(this,{listeners:d()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,it,qh).call(this)}},Cn=new WeakMap,et=new WeakMap,Vc=new WeakMap,vn=new WeakMap,ga=new WeakMap,ql=new WeakMap,No=new WeakMap,wo=new WeakMap,Mc=new WeakMap,Fl=new WeakMap,Yl=new WeakMap,ya=new WeakMap,Na=new WeakMap,So=new WeakMap,Gl=new WeakMap,it=new WeakSet,Tc=function(a){Fe(this,it,Gh).call(this);let c=D(this,et).fetch(this.options,a);return a!=null&&a.throwOnError||(c=c.catch(xn)),c},_h=function(){Fe(this,it,Fh).call(this);const a=Do(this.options.staleTime,D(this,et));if(Sa||D(this,vn).isStale||!Oh(a))return;const d=f1(D(this,vn).dataUpdatedAt,a)+1;he(this,ya,setTimeout(()=>{D(this,vn).isStale||this.updateResult()},d))},Bh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,et)):this.options.refetchInterval)??!1},Lh=function(a){Fe(this,it,Yh).call(this),he(this,So,a),!(Sa||Es(this.options.enabled,D(this,et))===!1||!Oh(D(this,So))||D(this,So)===0)&&he(this,Na,setInterval(()=>{(this.options.refetchIntervalInBackground||nb.isFocused())&&Fe(this,it,Tc).call(this)},D(this,So)))},qh=function(){Fe(this,it,_h).call(this),Fe(this,it,Lh).call(this,Fe(this,it,Bh).call(this))},Fh=function(){D(this,ya)&&(clearTimeout(D(this,ya)),he(this,ya,void 0))},Yh=function(){D(this,Na)&&(clearInterval(D(this,Na)),he(this,Na,void 0))},Gh=function(){const a=D(this,Cn).getQueryCache().build(D(this,Cn),this.options);if(a===D(this,et))return;const c=D(this,et);he(this,et,a),he(this,Vc,a.state),this.hasListeners()&&(c==null||c.removeObserver(this),a.addObserver(this))},w1=function(a){Ft.batch(()=>{a.listeners&&this.listeners.forEach(c=>{c(D(this,vn))}),D(this,Cn).getQueryCache().notify({query:D(this,et),type:"observerResultsUpdated"})})},i1);function uD(i,a){return Es(a.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&a.retryOnMount===!1)}function MN(i,a){return uD(i,a)||i.state.data!==void 0&&$h(i,a,a.refetchOnMount)}function $h(i,a,c){if(Es(a.enabled,i)!==!1&&Do(a.staleTime,i)!=="static"){const d=typeof c=="function"?c(i):c;return d==="always"||d!==!1&&sb(i,a)}return!1}function ON(i,a,c,d){return(i!==a||Es(d.enabled,i)===!1)&&(!c.suspense||i.state.status!=="error")&&sb(i,c)}function sb(i,a){return Es(a.enabled,i)!==!1&&i.isStaleByTime(Do(a.staleTime,i))}function dD(i,a){return!Ld(i.getCurrentResult(),a)}var Eo,jo,Rn,Ur,Vr,zd,Qh,c1,mD=(c1=class extends Ql{constructor(c,d){super();Re(this,Vr);Re(this,Eo);Re(this,jo);Re(this,Rn);Re(this,Ur);he(this,Eo,c),this.setOptions(d),this.bindMethods(),Fe(this,Vr,zd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var p;const d=this.options;this.options=D(this,Eo).defaultMutationOptions(c),Ld(this.options,d)||D(this,Eo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Rn),observer:this}),d!=null&&d.mutationKey&&this.options.mutationKey&&Ea(d.mutationKey)!==Ea(this.options.mutationKey)?this.reset():((p=D(this,Rn))==null?void 0:p.state.status)==="pending"&&D(this,Rn).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=D(this,Rn))==null||c.removeObserver(this)}onMutationUpdate(c){Fe(this,Vr,zd).call(this),Fe(this,Vr,Qh).call(this,c)}getCurrentResult(){return D(this,jo)}reset(){var c;(c=D(this,Rn))==null||c.removeObserver(this),he(this,Rn,void 0),Fe(this,Vr,zd).call(this),Fe(this,Vr,Qh).call(this)}mutate(c,d){var p;return he(this,Ur,d),(p=D(this,Rn))==null||p.removeObserver(this),he(this,Rn,D(this,Eo).getMutationCache().build(D(this,Eo),this.options)),D(this,Rn).addObserver(this),D(this,Rn).execute(c)}},Eo=new WeakMap,jo=new WeakMap,Rn=new WeakMap,Ur=new WeakMap,Vr=new WeakSet,zd=function(){var d;const c=((d=D(this,Rn))==null?void 0:d.state)??N1();he(this,jo,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},Qh=function(c){Ft.batch(()=>{var d,p,v,N,j,y,C,M;if(D(this,Ur)&&this.hasListeners()){const f=D(this,jo).variables,g=D(this,jo).context;(c==null?void 0:c.type)==="success"?((p=(d=D(this,Ur)).onSuccess)==null||p.call(d,c.data,f,g),(N=(v=D(this,Ur)).onSettled)==null||N.call(v,c.data,null,f,g)):(c==null?void 0:c.type)==="error"&&((y=(j=D(this,Ur)).onError)==null||y.call(j,c.error,f,g),(M=(C=D(this,Ur)).onSettled)==null||M.call(C,void 0,c.error,f,g))}this.listeners.forEach(f=>{f(D(this,jo))})})},c1),Rh={exports:{}},Sc={},PN;function fD(){if(PN)return Sc;PN=1;/**
|
|
271
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(m=t.unstable_transitionCallbacks)),t=Ug(e,1,!1,null,null,n,s,r,o,u,m,null),e[Kr]=t.current,Pf(e),new Wf(t)},wc.hydrateRoot=function(e,t,n){if(!H(e))throw Error("Target container is not a DOM element.");zg(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,r="",o=qv,u=Fv,m=Yv,b=null,x=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(b=n.unstable_transitionCallbacks),n.formState!==void 0&&(x=n.formState)),t=Ug(e,1,!0,t,n??null,s,r,o,u,m,b,x),t.context=Cg(null),n=t.current,s=Fn(n),s=Co(s),r=_r(s),r.callback=null,Br(n,r,s),n=s,t.current.lanes=n,ln(t,n),Ps(t),e[Kr]=t.current,Pf(e),new Ou(t)},wc.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),wc}var DN;function Gj(){return DN||(DN=1,jh.exports=Yj()),jh.exports}var $j=Gj(),Ql=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sa=typeof window>"u"||"Deno"in globalThis;function xn(){}function Qj(i,a){return typeof i=="function"?i(a):i}function Oh(i){return typeof i=="number"&&i>=0&&i!==1/0}function f1(i,a){return Math.max(i+(a||0)-Date.now(),0)}function Do(i,a){return typeof i=="function"?i(a):i}function Es(i,a){return typeof i=="function"?i(a):i}function TN(i,a){const{type:c="all",exact:d,fetchStatus:p,predicate:v,queryKey:w,stale:j}=i;if(w){if(d){if(a.queryHash!==tb(w,a.options))return!1}else if(!Uc(a.queryKey,w))return!1}if(c!=="all"){const y=a.isActive();if(c==="active"&&!y||c==="inactive"&&y)return!1}return!(typeof j=="boolean"&&a.isStale()!==j||p&&p!==a.state.fetchStatus||v&&!v(a))}function UN(i,a){const{exact:c,status:d,predicate:p,mutationKey:v}=i;if(v){if(!a.options.mutationKey)return!1;if(c){if(Ea(a.options.mutationKey)!==Ea(v))return!1}else if(!Uc(a.options.mutationKey,v))return!1}return!(d&&a.state.status!==d||p&&!p(a))}function tb(i,a){return((a==null?void 0:a.queryKeyHashFn)||Ea)(i)}function Ea(i){return JSON.stringify(i,(a,c)=>kh(c)?Object.keys(c).sort().reduce((d,p)=>(d[p]=c[p],d),{}):c)}function Uc(i,a){return i===a?!0:typeof i!=typeof a?!1:i&&a&&typeof i=="object"&&typeof a=="object"?Object.keys(a).every(c=>Uc(i[c],a[c])):!1}function Ph(i,a){if(i===a)return i;const c=CN(i)&&CN(a);if(c||kh(i)&&kh(a)){const d=c?i:Object.keys(i),p=d.length,v=c?a:Object.keys(a),w=v.length,j=c?[]:{},y=new Set(d);let C=0;for(let M=0;M<w;M++){const f=c?M:v[M];(!c&&y.has(f)||c)&&i[f]===void 0&&a[f]===void 0?(j[f]=void 0,C++):(j[f]=Ph(i[f],a[f]),j[f]===i[f]&&i[f]!==void 0&&C++)}return p===w&&C===p?i:j}return a}function Ld(i,a){if(!a||Object.keys(i).length!==Object.keys(a).length)return!1;for(const c in i)if(i[c]!==a[c])return!1;return!0}function CN(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function kh(i){if(!RN(i))return!1;const a=i.constructor;if(a===void 0)return!0;const c=a.prototype;return!(!RN(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function RN(i){return Object.prototype.toString.call(i)==="[object Object]"}function Ij(i){return new Promise(a=>{setTimeout(a,i)})}function zh(i,a,c){if(typeof c.structuralSharing=="function")return c.structuralSharing(i,a);if(c.structuralSharing!==!1){try{return Ph(i,a)}catch(d){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${c.queryHash}]: ${d}`),d}return Ph(i,a)}return a}function Xj(i,a,c=0){const d=[...i,a];return c&&d.length>c?d.slice(1):d}function Zj(i,a,c=0){const d=[a,...i];return c&&d.length>c?d.slice(0,-1):d}var qd=Symbol();function p1(i,a){return i.queryFn===qd&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${i.queryHash}'`),!i.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!i.queryFn||i.queryFn===qd?()=>Promise.reject(new Error(`Missing queryFn: '${i.queryHash}'`)):i.queryFn}function h1(i,a){return typeof i=="function"?i(...a):!!i}var pa,bo,Ml,e1,Kj=(e1=class extends Ql{constructor(){super();Re(this,pa);Re(this,bo);Re(this,Ml);he(this,Ml,a=>{if(!Sa&&window.addEventListener){const c=()=>a();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){D(this,bo)||this.setEventListener(D(this,Ml))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,bo))==null||a.call(this),he(this,bo,void 0))}setEventListener(a){var c;he(this,Ml,a),(c=D(this,bo))==null||c.call(this),he(this,bo,a(d=>{typeof d=="boolean"?this.setFocused(d):this.onFocus()}))}setFocused(a){D(this,pa)!==a&&(he(this,pa,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(c=>{c(a)})}isFocused(){var a;return typeof D(this,pa)=="boolean"?D(this,pa):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},pa=new WeakMap,bo=new WeakMap,Ml=new WeakMap,e1),nb=new Kj,Ol,vo,Pl,t1,Jj=(t1=class extends Ql{constructor(){super();Re(this,Ol,!0);Re(this,vo);Re(this,Pl);he(this,Pl,a=>{if(!Sa&&window.addEventListener){const c=()=>a(!0),d=()=>a(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",d,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",d)}}})}onSubscribe(){D(this,vo)||this.setEventListener(D(this,Pl))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,vo))==null||a.call(this),he(this,vo,void 0))}setEventListener(a){var c;he(this,Pl,a),(c=D(this,vo))==null||c.call(this),he(this,vo,a(this.setOnline.bind(this)))}setOnline(a){D(this,Ol)!==a&&(he(this,Ol,a),this.listeners.forEach(d=>{d(a)}))}isOnline(){return D(this,Ol)}},Ol=new WeakMap,vo=new WeakMap,Pl=new WeakMap,t1),Fd=new Jj;function Hh(){let i,a;const c=new Promise((p,v)=>{i=p,a=v});c.status="pending",c.catch(()=>{});function d(p){Object.assign(c,p),delete c.resolve,delete c.reject}return c.resolve=p=>{d({status:"fulfilled",value:p}),i(p)},c.reject=p=>{d({status:"rejected",reason:p}),a(p)},c}function Wj(i){return Math.min(1e3*2**i,3e4)}function b1(i){return(i??"online")==="online"?Fd.isOnline():!0}var v1=class extends Error{constructor(i){super("CancelledError"),this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}};function Ch(i){return i instanceof v1}function x1(i){let a=!1,c=0,d=!1,p;const v=Hh(),w=$=>{var H;d||(g(new v1($)),(H=i.abort)==null||H.call(i))},j=()=>{a=!0},y=()=>{a=!1},C=()=>nb.isFocused()&&(i.networkMode==="always"||Fd.isOnline())&&i.canRun(),M=()=>b1(i.networkMode)&&i.canRun(),f=$=>{var H;d||(d=!0,(H=i.onSuccess)==null||H.call(i,$),p==null||p(),v.resolve($))},g=$=>{var H;d||(d=!0,(H=i.onError)==null||H.call(i,$),p==null||p(),v.reject($))},A=()=>new Promise($=>{var H;p=I=>{(d||C())&&$(I)},(H=i.onPause)==null||H.call(i)}).then(()=>{var $;p=void 0,d||($=i.onContinue)==null||$.call(i)}),G=()=>{if(d)return;let $;const H=c===0?i.initialPromise:void 0;try{$=H??i.fn()}catch(I){$=Promise.reject(I)}Promise.resolve($).then(f).catch(I=>{var Ee;if(d)return;const Se=i.retry??(Sa?0:3),ne=i.retryDelay??Wj,fe=typeof ne=="function"?ne(c,I):ne,de=Se===!0||typeof Se=="number"&&c<Se||typeof Se=="function"&&Se(c,I);if(a||!de){g(I);return}c++,(Ee=i.onFail)==null||Ee.call(i,c,I),Ij(fe).then(()=>C()?void 0:A()).then(()=>{a?g(I):G()})})};return{promise:v,cancel:w,continue:()=>(p==null||p(),v),cancelRetry:j,continueRetry:y,canStart:M,start:()=>(M()?G():A().then(G),v)}}var eD=i=>setTimeout(i,0);function tD(){let i=[],a=0,c=j=>{j()},d=j=>{j()},p=eD;const v=j=>{a?i.push(j):p(()=>{c(j)})},w=()=>{const j=i;i=[],j.length&&p(()=>{d(()=>{j.forEach(y=>{c(y)})})})};return{batch:j=>{let y;a++;try{y=j()}finally{a--,a||w()}return y},batchCalls:j=>(...y)=>{v(()=>{j(...y)})},schedule:v,setNotifyFunction:j=>{c=j},setBatchNotifyFunction:j=>{d=j},setScheduler:j=>{p=j}}}var Ft=tD(),ha,n1,g1=(n1=class{constructor(){Re(this,ha)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oh(this.gcTime)&&he(this,ha,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(i){this.gcTime=Math.max(this.gcTime||0,i??(Sa?1/0:5*60*1e3))}clearGcTimeout(){D(this,ha)&&(clearTimeout(D(this,ha)),he(this,ha,void 0))}},ha=new WeakMap,n1),kl,zl,ds,ba,rn,Rc,va,ws,Dr,s1,nD=(s1=class extends g1{constructor(a){super();Re(this,ws);Re(this,kl);Re(this,zl);Re(this,ds);Re(this,ba);Re(this,rn);Re(this,Rc);Re(this,va);he(this,va,!1),he(this,Rc,a.defaultOptions),this.setOptions(a.options),this.observers=[],he(this,ba,a.client),he(this,ds,D(this,ba).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,he(this,kl,sD(this.options)),this.state=a.state??D(this,kl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=D(this,rn))==null?void 0:a.promise}setOptions(a){this.options={...D(this,Rc),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,ds).remove(this)}setData(a,c){const d=zh(this.state.data,a,this.options);return Fe(this,ws,Dr).call(this,{data:d,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),d}setState(a,c){Fe(this,ws,Dr).call(this,{type:"setState",state:a,setStateOptions:c})}cancel(a){var d,p;const c=(d=D(this,rn))==null?void 0:d.promise;return(p=D(this,rn))==null||p.cancel(a),c?c.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,kl))}isActive(){return this.observers.some(a=>Es(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Do(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!f1(this.state.dataUpdatedAt,a)}onFocus(){var c;const a=this.observers.find(d=>d.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(c=D(this,rn))==null||c.continue()}onOnline(){var c;const a=this.observers.find(d=>d.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(c=D(this,rn))==null||c.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),D(this,ds).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(c=>c!==a),this.observers.length||(D(this,rn)&&(D(this,va)?D(this,rn).cancel({revert:!0}):D(this,rn).cancelRetry()),this.scheduleGc()),D(this,ds).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,ws,Dr).call(this,{type:"invalidate"})}fetch(a,c){var C,M,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(D(this,rn))return D(this,rn).continueRetry(),D(this,rn).promise}if(a&&this.setOptions(a),!this.options.queryFn){const g=this.observers.find(A=>A.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const d=new AbortController,p=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(he(this,va,!0),d.signal)})},v=()=>{const g=p1(this.options,c),G=(()=>{const $={client:D(this,ba),queryKey:this.queryKey,meta:this.meta};return p($),$})();return he(this,va,!1),this.options.persister?this.options.persister(g,G,this):g(G)},j=(()=>{const g={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:D(this,ba),state:this.state,fetchFn:v};return p(g),g})();(C=this.options.behavior)==null||C.onFetch(j,this),he(this,zl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((M=j.fetchOptions)==null?void 0:M.meta))&&Fe(this,ws,Dr).call(this,{type:"fetch",meta:(f=j.fetchOptions)==null?void 0:f.meta});const y=g=>{var A,G,$,H;Ch(g)&&g.silent||Fe(this,ws,Dr).call(this,{type:"error",error:g}),Ch(g)||((G=(A=D(this,ds).config).onError)==null||G.call(A,g,this),(H=($=D(this,ds).config).onSettled)==null||H.call($,this.state.data,g,this)),this.scheduleGc()};return he(this,rn,x1({initialPromise:c==null?void 0:c.initialPromise,fn:j.fetchFn,abort:d.abort.bind(d),onSuccess:g=>{var A,G,$,H;if(g===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),y(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(I){y(I);return}(G=(A=D(this,ds).config).onSuccess)==null||G.call(A,g,this),(H=($=D(this,ds).config).onSettled)==null||H.call($,g,this.state.error,this),this.scheduleGc()},onError:y,onFail:(g,A)=>{Fe(this,ws,Dr).call(this,{type:"failed",failureCount:g,error:A})},onPause:()=>{Fe(this,ws,Dr).call(this,{type:"pause"})},onContinue:()=>{Fe(this,ws,Dr).call(this,{type:"continue"})},retry:j.options.retry,retryDelay:j.options.retryDelay,networkMode:j.options.networkMode,canRun:()=>!0})),D(this,rn).start()}},kl=new WeakMap,zl=new WeakMap,ds=new WeakMap,ba=new WeakMap,rn=new WeakMap,Rc=new WeakMap,va=new WeakMap,ws=new WeakSet,Dr=function(a){const c=d=>{switch(a.type){case"failed":return{...d,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...d,fetchStatus:"paused"};case"continue":return{...d,fetchStatus:"fetching"};case"fetch":return{...d,...y1(d.data,this.options),fetchMeta:a.meta??null};case"success":return{...d,data:a.data,dataUpdateCount:d.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const p=a.error;return Ch(p)&&p.revert&&D(this,zl)?{...D(this,zl),fetchStatus:"idle"}:{...d,error:p,errorUpdateCount:d.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:d.fetchFailureCount+1,fetchFailureReason:p,fetchStatus:"idle",status:"error"};case"invalidate":return{...d,isInvalidated:!0};case"setState":return{...d,...a.state}}};this.state=c(this.state),Ft.batch(()=>{this.observers.forEach(d=>{d.onQueryUpdate()}),D(this,ds).notify({query:this,type:"updated",action:a})})},s1);function y1(i,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:b1(a.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function sD(i){const a=typeof i.initialData=="function"?i.initialData():i.initialData,c=a!==void 0,d=c?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:c?d??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Is,r1,rD=(r1=class extends Ql{constructor(a={}){super();Re(this,Is);this.config=a,he(this,Is,new Map)}build(a,c,d){const p=c.queryKey,v=c.queryHash??tb(p,c);let w=this.get(v);return w||(w=new nD({client:a,queryKey:p,queryHash:v,options:a.defaultQueryOptions(c),state:d,defaultOptions:a.getQueryDefaults(p)}),this.add(w)),w}add(a){D(this,Is).has(a.queryHash)||(D(this,Is).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const c=D(this,Is).get(a.queryHash);c&&(a.destroy(),c===a&&D(this,Is).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Ft.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return D(this,Is).get(a)}getAll(){return[...D(this,Is).values()]}find(a){const c={exact:!0,...a};return this.getAll().find(d=>TN(c,d))}findAll(a={}){const c=this.getAll();return Object.keys(a).length>0?c.filter(d=>TN(a,d)):c}notify(a){Ft.batch(()=>{this.listeners.forEach(c=>{c(a)})})}onFocus(){Ft.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Ft.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Is=new WeakMap,r1),Xs,bn,xa,Zs,ho,o1,oD=(o1=class extends g1{constructor(a){super();Re(this,Zs);Re(this,Xs);Re(this,bn);Re(this,xa);this.mutationId=a.mutationId,he(this,bn,a.mutationCache),he(this,Xs,[]),this.state=a.state||N1(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){D(this,Xs).includes(a)||(D(this,Xs).push(a),this.clearGcTimeout(),D(this,bn).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){he(this,Xs,D(this,Xs).filter(c=>c!==a)),this.scheduleGc(),D(this,bn).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){D(this,Xs).length||(this.state.status==="pending"?this.scheduleGc():D(this,bn).remove(this))}continue(){var a;return((a=D(this,xa))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var v,w,j,y,C,M,f,g,A,G,$,H,I,Se,ne,fe,de,Ee,je,K;const c=()=>{Fe(this,Zs,ho).call(this,{type:"continue"})};he(this,xa,x1({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(J,ce)=>{Fe(this,Zs,ho).call(this,{type:"failed",failureCount:J,error:ce})},onPause:()=>{Fe(this,Zs,ho).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,bn).canRun(this)}));const d=this.state.status==="pending",p=!D(this,xa).canStart();try{if(d)c();else{Fe(this,Zs,ho).call(this,{type:"pending",variables:a,isPaused:p}),await((w=(v=D(this,bn).config).onMutate)==null?void 0:w.call(v,a,this));const ce=await((y=(j=this.options).onMutate)==null?void 0:y.call(j,a));ce!==this.state.context&&Fe(this,Zs,ho).call(this,{type:"pending",context:ce,variables:a,isPaused:p})}const J=await D(this,xa).start();return await((M=(C=D(this,bn).config).onSuccess)==null?void 0:M.call(C,J,a,this.state.context,this)),await((g=(f=this.options).onSuccess)==null?void 0:g.call(f,J,a,this.state.context)),await((G=(A=D(this,bn).config).onSettled)==null?void 0:G.call(A,J,null,this.state.variables,this.state.context,this)),await((H=($=this.options).onSettled)==null?void 0:H.call($,J,null,a,this.state.context)),Fe(this,Zs,ho).call(this,{type:"success",data:J}),J}catch(J){try{throw await((Se=(I=D(this,bn).config).onError)==null?void 0:Se.call(I,J,a,this.state.context,this)),await((fe=(ne=this.options).onError)==null?void 0:fe.call(ne,J,a,this.state.context)),await((Ee=(de=D(this,bn).config).onSettled)==null?void 0:Ee.call(de,void 0,J,this.state.variables,this.state.context,this)),await((K=(je=this.options).onSettled)==null?void 0:K.call(je,void 0,J,a,this.state.context)),J}finally{Fe(this,Zs,ho).call(this,{type:"error",error:J})}}finally{D(this,bn).runNext(this)}}},Xs=new WeakMap,bn=new WeakMap,xa=new WeakMap,Zs=new WeakSet,ho=function(a){const c=d=>{switch(a.type){case"failed":return{...d,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...d,isPaused:!0};case"continue":return{...d,isPaused:!1};case"pending":return{...d,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...d,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...d,data:void 0,error:a.error,failureCount:d.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=c(this.state),Ft.batch(()=>{D(this,Xs).forEach(d=>{d.onMutationUpdate(a)}),D(this,bn).notify({mutation:this,type:"updated",action:a})})},o1);function N1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tr,Ss,Ac,a1,aD=(a1=class extends Ql{constructor(a={}){super();Re(this,Tr);Re(this,Ss);Re(this,Ac);this.config=a,he(this,Tr,new Set),he(this,Ss,new Map),he(this,Ac,0)}build(a,c,d){const p=new oD({mutationCache:this,mutationId:++Cd(this,Ac)._,options:a.defaultMutationOptions(c),state:d});return this.add(p),p}add(a){D(this,Tr).add(a);const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c);d?d.push(a):D(this,Ss).set(c,[a])}this.notify({type:"added",mutation:a})}remove(a){if(D(this,Tr).delete(a)){const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c);if(d)if(d.length>1){const p=d.indexOf(a);p!==-1&&d.splice(p,1)}else d[0]===a&&D(this,Ss).delete(c)}}this.notify({type:"removed",mutation:a})}canRun(a){const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c),p=d==null?void 0:d.find(v=>v.state.status==="pending");return!p||p===a}else return!0}runNext(a){var d;const c=Ad(a);if(typeof c=="string"){const p=(d=D(this,Ss).get(c))==null?void 0:d.find(v=>v!==a&&v.state.isPaused);return(p==null?void 0:p.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ft.batch(()=>{D(this,Tr).forEach(a=>{this.notify({type:"removed",mutation:a})}),D(this,Tr).clear(),D(this,Ss).clear()})}getAll(){return Array.from(D(this,Tr))}find(a){const c={exact:!0,...a};return this.getAll().find(d=>UN(c,d))}findAll(a={}){return this.getAll().filter(c=>UN(a,c))}notify(a){Ft.batch(()=>{this.listeners.forEach(c=>{c(a)})})}resumePausedMutations(){const a=this.getAll().filter(c=>c.state.isPaused);return Ft.batch(()=>Promise.all(a.map(c=>c.continue().catch(xn))))}},Tr=new WeakMap,Ss=new WeakMap,Ac=new WeakMap,a1);function Ad(i){var a;return(a=i.options.scope)==null?void 0:a.id}function AN(i){return{onFetch:(a,c)=>{var M,f,g,A,G;const d=a.options,p=(g=(f=(M=a.fetchOptions)==null?void 0:M.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,v=((A=a.state.data)==null?void 0:A.pages)||[],w=((G=a.state.data)==null?void 0:G.pageParams)||[];let j={pages:[],pageParams:[]},y=0;const C=async()=>{let $=!1;const H=ne=>{Object.defineProperty(ne,"signal",{enumerable:!0,get:()=>(a.signal.aborted?$=!0:a.signal.addEventListener("abort",()=>{$=!0}),a.signal)})},I=p1(a.options,a.fetchOptions),Se=async(ne,fe,de)=>{if($)return Promise.reject();if(fe==null&&ne.pages.length)return Promise.resolve(ne);const je=(()=>{const oe={client:a.client,queryKey:a.queryKey,pageParam:fe,direction:de?"backward":"forward",meta:a.options.meta};return H(oe),oe})(),K=await I(je),{maxPages:J}=a.options,ce=de?Zj:Xj;return{pages:ce(ne.pages,K,J),pageParams:ce(ne.pageParams,fe,J)}};if(p&&v.length){const ne=p==="backward",fe=ne?lD:VN,de={pages:v,pageParams:w},Ee=fe(d,de);j=await Se(de,Ee,ne)}else{const ne=i??v.length;do{const fe=y===0?w[0]??d.initialPageParam:VN(d,j);if(y>0&&fe==null)break;j=await Se(j,fe),y++}while(y<ne)}return j};a.options.persister?a.fetchFn=()=>{var $,H;return(H=($=a.options).persister)==null?void 0:H.call($,C,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},c)}:a.fetchFn=C}}}function VN(i,{pages:a,pageParams:c}){const d=a.length-1;return a.length>0?i.getNextPageParam(a[d],a,c[d],c):void 0}function lD(i,{pages:a,pageParams:c}){var d;return a.length>0?(d=i.getPreviousPageParam)==null?void 0:d.call(i,a[0],a,c[0],c):void 0}var Ut,xo,go,Hl,_l,yo,Bl,Ll,l1,iD=(l1=class{constructor(i={}){Re(this,Ut);Re(this,xo);Re(this,go);Re(this,Hl);Re(this,_l);Re(this,yo);Re(this,Bl);Re(this,Ll);he(this,Ut,i.queryCache||new rD),he(this,xo,i.mutationCache||new aD),he(this,go,i.defaultOptions||{}),he(this,Hl,new Map),he(this,_l,new Map),he(this,yo,0)}mount(){Cd(this,yo)._++,D(this,yo)===1&&(he(this,Bl,nb.subscribe(async i=>{i&&(await this.resumePausedMutations(),D(this,Ut).onFocus())})),he(this,Ll,Fd.subscribe(async i=>{i&&(await this.resumePausedMutations(),D(this,Ut).onOnline())})))}unmount(){var i,a;Cd(this,yo)._--,D(this,yo)===0&&((i=D(this,Bl))==null||i.call(this),he(this,Bl,void 0),(a=D(this,Ll))==null||a.call(this),he(this,Ll,void 0))}isFetching(i){return D(this,Ut).findAll({...i,fetchStatus:"fetching"}).length}isMutating(i){return D(this,xo).findAll({...i,status:"pending"}).length}getQueryData(i){var c;const a=this.defaultQueryOptions({queryKey:i});return(c=D(this,Ut).get(a.queryHash))==null?void 0:c.state.data}ensureQueryData(i){const a=this.defaultQueryOptions(i),c=D(this,Ut).build(this,a),d=c.state.data;return d===void 0?this.fetchQuery(i):(i.revalidateIfStale&&c.isStaleByTime(Do(a.staleTime,c))&&this.prefetchQuery(a),Promise.resolve(d))}getQueriesData(i){return D(this,Ut).findAll(i).map(({queryKey:a,state:c})=>{const d=c.data;return[a,d]})}setQueryData(i,a,c){const d=this.defaultQueryOptions({queryKey:i}),p=D(this,Ut).get(d.queryHash),v=p==null?void 0:p.state.data,w=Qj(a,v);if(w!==void 0)return D(this,Ut).build(this,d).setData(w,{...c,manual:!0})}setQueriesData(i,a,c){return Ft.batch(()=>D(this,Ut).findAll(i).map(({queryKey:d})=>[d,this.setQueryData(d,a,c)]))}getQueryState(i){var c;const a=this.defaultQueryOptions({queryKey:i});return(c=D(this,Ut).get(a.queryHash))==null?void 0:c.state}removeQueries(i){const a=D(this,Ut);Ft.batch(()=>{a.findAll(i).forEach(c=>{a.remove(c)})})}resetQueries(i,a){const c=D(this,Ut);return Ft.batch(()=>(c.findAll(i).forEach(d=>{d.reset()}),this.refetchQueries({type:"active",...i},a)))}cancelQueries(i,a={}){const c={revert:!0,...a},d=Ft.batch(()=>D(this,Ut).findAll(i).map(p=>p.cancel(c)));return Promise.all(d).then(xn).catch(xn)}invalidateQueries(i,a={}){return Ft.batch(()=>(D(this,Ut).findAll(i).forEach(c=>{c.invalidate()}),(i==null?void 0:i.refetchType)==="none"?Promise.resolve():this.refetchQueries({...i,type:(i==null?void 0:i.refetchType)??(i==null?void 0:i.type)??"active"},a)))}refetchQueries(i,a={}){const c={...a,cancelRefetch:a.cancelRefetch??!0},d=Ft.batch(()=>D(this,Ut).findAll(i).filter(p=>!p.isDisabled()&&!p.isStatic()).map(p=>{let v=p.fetch(void 0,c);return c.throwOnError||(v=v.catch(xn)),p.state.fetchStatus==="paused"?Promise.resolve():v}));return Promise.all(d).then(xn)}fetchQuery(i){const a=this.defaultQueryOptions(i);a.retry===void 0&&(a.retry=!1);const c=D(this,Ut).build(this,a);return c.isStaleByTime(Do(a.staleTime,c))?c.fetch(a):Promise.resolve(c.state.data)}prefetchQuery(i){return this.fetchQuery(i).then(xn).catch(xn)}fetchInfiniteQuery(i){return i.behavior=AN(i.pages),this.fetchQuery(i)}prefetchInfiniteQuery(i){return this.fetchInfiniteQuery(i).then(xn).catch(xn)}ensureInfiniteQueryData(i){return i.behavior=AN(i.pages),this.ensureQueryData(i)}resumePausedMutations(){return Fd.isOnline()?D(this,xo).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Ut)}getMutationCache(){return D(this,xo)}getDefaultOptions(){return D(this,go)}setDefaultOptions(i){he(this,go,i)}setQueryDefaults(i,a){D(this,Hl).set(Ea(i),{queryKey:i,defaultOptions:a})}getQueryDefaults(i){const a=[...D(this,Hl).values()],c={};return a.forEach(d=>{Uc(i,d.queryKey)&&Object.assign(c,d.defaultOptions)}),c}setMutationDefaults(i,a){D(this,_l).set(Ea(i),{mutationKey:i,defaultOptions:a})}getMutationDefaults(i){const a=[...D(this,_l).values()],c={};return a.forEach(d=>{Uc(i,d.mutationKey)&&Object.assign(c,d.defaultOptions)}),c}defaultQueryOptions(i){if(i._defaulted)return i;const a={...D(this,go).queries,...this.getQueryDefaults(i.queryKey),...i,_defaulted:!0};return a.queryHash||(a.queryHash=tb(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===qd&&(a.enabled=!1),a}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{...D(this,go).mutations,...(i==null?void 0:i.mutationKey)&&this.getMutationDefaults(i.mutationKey),...i,_defaulted:!0}}clear(){D(this,Ut).clear(),D(this,xo).clear()}},Ut=new WeakMap,xo=new WeakMap,go=new WeakMap,Hl=new WeakMap,_l=new WeakMap,yo=new WeakMap,Bl=new WeakMap,Ll=new WeakMap,l1),Cn,et,Vc,vn,ga,ql,No,wo,Mc,Fl,Yl,ya,Na,So,Gl,it,Tc,_h,Bh,Lh,qh,Fh,Yh,Gh,w1,i1,cD=(i1=class extends Ql{constructor(a,c){super();Re(this,it);Re(this,Cn);Re(this,et);Re(this,Vc);Re(this,vn);Re(this,ga);Re(this,ql);Re(this,No);Re(this,wo);Re(this,Mc);Re(this,Fl);Re(this,Yl);Re(this,ya);Re(this,Na);Re(this,So);Re(this,Gl,new Set);this.options=c,he(this,Cn,a),he(this,wo,null),he(this,No,Hh()),this.options.experimental_prefetchInRender||D(this,No).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,et).addObserver(this),MN(D(this,et),this.options)?Fe(this,it,Tc).call(this):this.updateResult(),Fe(this,it,qh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $h(D(this,et),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $h(D(this,et),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,it,Fh).call(this),Fe(this,it,Yh).call(this),D(this,et).removeObserver(this)}setOptions(a){const c=this.options,d=D(this,et);if(this.options=D(this,Cn).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Es(this.options.enabled,D(this,et))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,it,Gh).call(this),D(this,et).setOptions(this.options),c._defaulted&&!Ld(this.options,c)&&D(this,Cn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,et),observer:this});const p=this.hasListeners();p&&ON(D(this,et),d,this.options,c)&&Fe(this,it,Tc).call(this),this.updateResult(),p&&(D(this,et)!==d||Es(this.options.enabled,D(this,et))!==Es(c.enabled,D(this,et))||Do(this.options.staleTime,D(this,et))!==Do(c.staleTime,D(this,et)))&&Fe(this,it,_h).call(this);const v=Fe(this,it,Bh).call(this);p&&(D(this,et)!==d||Es(this.options.enabled,D(this,et))!==Es(c.enabled,D(this,et))||v!==D(this,So))&&Fe(this,it,Lh).call(this,v)}getOptimisticResult(a){const c=D(this,Cn).getQueryCache().build(D(this,Cn),a),d=this.createResult(c,a);return dD(this,d)&&(he(this,vn,d),he(this,ql,this.options),he(this,ga,D(this,et).state)),d}getCurrentResult(){return D(this,vn)}trackResult(a,c){return new Proxy(a,{get:(d,p)=>(this.trackProp(p),c==null||c(p),Reflect.get(d,p))})}trackProp(a){D(this,Gl).add(a)}getCurrentQuery(){return D(this,et)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const c=D(this,Cn).defaultQueryOptions(a),d=D(this,Cn).getQueryCache().build(D(this,Cn),c);return d.fetch().then(()=>this.createResult(d,c))}fetch(a){return Fe(this,it,Tc).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,vn)))}createResult(a,c){var J;const d=D(this,et),p=this.options,v=D(this,vn),w=D(this,ga),j=D(this,ql),C=a!==d?a.state:D(this,Vc),{state:M}=a;let f={...M},g=!1,A;if(c._optimisticResults){const ce=this.hasListeners(),oe=!ce&&MN(a,c),Ne=ce&&ON(a,d,c,p);(oe||Ne)&&(f={...f,...y1(M.data,a.options)}),c._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:G,errorUpdatedAt:$,status:H}=f;A=f.data;let I=!1;if(c.placeholderData!==void 0&&A===void 0&&H==="pending"){let ce;v!=null&&v.isPlaceholderData&&c.placeholderData===(j==null?void 0:j.placeholderData)?(ce=v.data,I=!0):ce=typeof c.placeholderData=="function"?c.placeholderData((J=D(this,Yl))==null?void 0:J.state.data,D(this,Yl)):c.placeholderData,ce!==void 0&&(H="success",A=zh(v==null?void 0:v.data,ce,c),g=!0)}if(c.select&&A!==void 0&&!I)if(v&&A===(w==null?void 0:w.data)&&c.select===D(this,Mc))A=D(this,Fl);else try{he(this,Mc,c.select),A=c.select(A),A=zh(v==null?void 0:v.data,A,c),he(this,Fl,A),he(this,wo,null)}catch(ce){he(this,wo,ce)}D(this,wo)&&(G=D(this,wo),A=D(this,Fl),$=Date.now(),H="error");const Se=f.fetchStatus==="fetching",ne=H==="pending",fe=H==="error",de=ne&&Se,Ee=A!==void 0,K={status:H,fetchStatus:f.fetchStatus,isPending:ne,isSuccess:H==="success",isError:fe,isInitialLoading:de,isLoading:de,data:A,dataUpdatedAt:f.dataUpdatedAt,error:G,errorUpdatedAt:$,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>C.dataUpdateCount||f.errorUpdateCount>C.errorUpdateCount,isFetching:Se,isRefetching:Se&&!ne,isLoadingError:fe&&!Ee,isPaused:f.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:fe&&Ee,isStale:sb(a,c),refetch:this.refetch,promise:D(this,No)};if(this.options.experimental_prefetchInRender){const ce=X=>{K.status==="error"?X.reject(K.error):K.data!==void 0&&X.resolve(K.data)},oe=()=>{const X=he(this,No,K.promise=Hh());ce(X)},Ne=D(this,No);switch(Ne.status){case"pending":a.queryHash===d.queryHash&&ce(Ne);break;case"fulfilled":(K.status==="error"||K.data!==Ne.value)&&oe();break;case"rejected":(K.status!=="error"||K.error!==Ne.reason)&&oe();break}}return K}updateResult(){const a=D(this,vn),c=this.createResult(D(this,et),this.options);if(he(this,ga,D(this,et).state),he(this,ql,this.options),D(this,ga).data!==void 0&&he(this,Yl,D(this,et)),Ld(c,a))return;he(this,vn,c);const d=()=>{if(!a)return!0;const{notifyOnChangeProps:p}=this.options,v=typeof p=="function"?p():p;if(v==="all"||!v&&!D(this,Gl).size)return!0;const w=new Set(v??D(this,Gl));return this.options.throwOnError&&w.add("error"),Object.keys(D(this,vn)).some(j=>{const y=j;return D(this,vn)[y]!==a[y]&&w.has(y)})};Fe(this,it,w1).call(this,{listeners:d()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,it,qh).call(this)}},Cn=new WeakMap,et=new WeakMap,Vc=new WeakMap,vn=new WeakMap,ga=new WeakMap,ql=new WeakMap,No=new WeakMap,wo=new WeakMap,Mc=new WeakMap,Fl=new WeakMap,Yl=new WeakMap,ya=new WeakMap,Na=new WeakMap,So=new WeakMap,Gl=new WeakMap,it=new WeakSet,Tc=function(a){Fe(this,it,Gh).call(this);let c=D(this,et).fetch(this.options,a);return a!=null&&a.throwOnError||(c=c.catch(xn)),c},_h=function(){Fe(this,it,Fh).call(this);const a=Do(this.options.staleTime,D(this,et));if(Sa||D(this,vn).isStale||!Oh(a))return;const d=f1(D(this,vn).dataUpdatedAt,a)+1;he(this,ya,setTimeout(()=>{D(this,vn).isStale||this.updateResult()},d))},Bh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,et)):this.options.refetchInterval)??!1},Lh=function(a){Fe(this,it,Yh).call(this),he(this,So,a),!(Sa||Es(this.options.enabled,D(this,et))===!1||!Oh(D(this,So))||D(this,So)===0)&&he(this,Na,setInterval(()=>{(this.options.refetchIntervalInBackground||nb.isFocused())&&Fe(this,it,Tc).call(this)},D(this,So)))},qh=function(){Fe(this,it,_h).call(this),Fe(this,it,Lh).call(this,Fe(this,it,Bh).call(this))},Fh=function(){D(this,ya)&&(clearTimeout(D(this,ya)),he(this,ya,void 0))},Yh=function(){D(this,Na)&&(clearInterval(D(this,Na)),he(this,Na,void 0))},Gh=function(){const a=D(this,Cn).getQueryCache().build(D(this,Cn),this.options);if(a===D(this,et))return;const c=D(this,et);he(this,et,a),he(this,Vc,a.state),this.hasListeners()&&(c==null||c.removeObserver(this),a.addObserver(this))},w1=function(a){Ft.batch(()=>{a.listeners&&this.listeners.forEach(c=>{c(D(this,vn))}),D(this,Cn).getQueryCache().notify({query:D(this,et),type:"observerResultsUpdated"})})},i1);function uD(i,a){return Es(a.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&a.retryOnMount===!1)}function MN(i,a){return uD(i,a)||i.state.data!==void 0&&$h(i,a,a.refetchOnMount)}function $h(i,a,c){if(Es(a.enabled,i)!==!1&&Do(a.staleTime,i)!=="static"){const d=typeof c=="function"?c(i):c;return d==="always"||d!==!1&&sb(i,a)}return!1}function ON(i,a,c,d){return(i!==a||Es(d.enabled,i)===!1)&&(!c.suspense||i.state.status!=="error")&&sb(i,c)}function sb(i,a){return Es(a.enabled,i)!==!1&&i.isStaleByTime(Do(a.staleTime,i))}function dD(i,a){return!Ld(i.getCurrentResult(),a)}var Eo,jo,Rn,Ur,Vr,zd,Qh,c1,mD=(c1=class extends Ql{constructor(c,d){super();Re(this,Vr);Re(this,Eo);Re(this,jo);Re(this,Rn);Re(this,Ur);he(this,Eo,c),this.setOptions(d),this.bindMethods(),Fe(this,Vr,zd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var p;const d=this.options;this.options=D(this,Eo).defaultMutationOptions(c),Ld(this.options,d)||D(this,Eo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Rn),observer:this}),d!=null&&d.mutationKey&&this.options.mutationKey&&Ea(d.mutationKey)!==Ea(this.options.mutationKey)?this.reset():((p=D(this,Rn))==null?void 0:p.state.status)==="pending"&&D(this,Rn).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=D(this,Rn))==null||c.removeObserver(this)}onMutationUpdate(c){Fe(this,Vr,zd).call(this),Fe(this,Vr,Qh).call(this,c)}getCurrentResult(){return D(this,jo)}reset(){var c;(c=D(this,Rn))==null||c.removeObserver(this),he(this,Rn,void 0),Fe(this,Vr,zd).call(this),Fe(this,Vr,Qh).call(this)}mutate(c,d){var p;return he(this,Ur,d),(p=D(this,Rn))==null||p.removeObserver(this),he(this,Rn,D(this,Eo).getMutationCache().build(D(this,Eo),this.options)),D(this,Rn).addObserver(this),D(this,Rn).execute(c)}},Eo=new WeakMap,jo=new WeakMap,Rn=new WeakMap,Ur=new WeakMap,Vr=new WeakSet,zd=function(){var d;const c=((d=D(this,Rn))==null?void 0:d.state)??N1();he(this,jo,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},Qh=function(c){Ft.batch(()=>{var d,p,v,w,j,y,C,M;if(D(this,Ur)&&this.hasListeners()){const f=D(this,jo).variables,g=D(this,jo).context;(c==null?void 0:c.type)==="success"?((p=(d=D(this,Ur)).onSuccess)==null||p.call(d,c.data,f,g),(w=(v=D(this,Ur)).onSettled)==null||w.call(v,c.data,null,f,g)):(c==null?void 0:c.type)==="error"&&((y=(j=D(this,Ur)).onError)==null||y.call(j,c.error,f,g),(M=(C=D(this,Ur)).onSettled)==null||M.call(C,void 0,c.error,f,g))}this.listeners.forEach(f=>{f(D(this,jo))})})},c1),Rh={exports:{}},Sc={},PN;function fD(){if(PN)return Sc;PN=1;/**
|
|
272
272
|
* @license React
|
|
273
273
|
* react-jsx-runtime.development.js
|
|
274
274
|
*
|
|
@@ -276,12 +276,12 @@ You might need to use a local HTTP server (instead of file://): https://react.de
|
|
|
276
276
|
*
|
|
277
277
|
* This source code is licensed under the MIT license found in the
|
|
278
278
|
* LICENSE file in the root directory of this source tree.
|
|
279
|
-
*/return function(){function i(
|
|
279
|
+
*/return function(){function i(N){if(N==null)return null;if(typeof N=="function")return N.$$typeof===ce?null:N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case $:return"Fragment";case I:return"Profiler";case H:return"StrictMode";case de:return"Suspense";case Ee:return"SuspenseList";case J:return"Activity"}if(typeof N=="object")switch(typeof N.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),N.$$typeof){case G:return"Portal";case ne:return(N.displayName||"Context")+".Provider";case Se:return(N._context.displayName||"Context")+".Consumer";case fe:var q=N.render;return N=N.displayName,N||(N=q.displayName||q.name||"",N=N!==""?"ForwardRef("+N+")":"ForwardRef"),N;case je:return q=N.displayName||null,q!==null?q:i(N.type)||"Memo";case K:q=N._payload,N=N._init;try{return i(N(q))}catch{}}return null}function a(N){return""+N}function c(N){try{a(N);var q=!1}catch{q=!0}if(q){q=console;var Z=q.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&N[Symbol.toStringTag]||N.constructor.name||"Object";return Z.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),a(N)}}function d(N){if(N===$)return"<>";if(typeof N=="object"&&N!==null&&N.$$typeof===K)return"<...>";try{var q=i(N);return q?"<"+q+">":"<...>"}catch{return"<...>"}}function p(){var N=oe.A;return N===null?null:N.getOwner()}function v(){return Error("react-stack-top-frame")}function w(N){if(Ne.call(N,"key")){var q=Object.getOwnPropertyDescriptor(N,"key").get;if(q&&q.isReactWarning)return!1}return N.key!==void 0}function j(N,q){function Z(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",q))}Z.isReactWarning=!0,Object.defineProperty(N,"key",{get:Z,configurable:!0})}function y(){var N=i(this.type);return T[N]||(T[N]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),N=this.props.ref,N!==void 0?N:null}function C(N,q,Z,se,De,ke,be,Ge){return Z=ke.ref,N={$$typeof:A,type:N,key:q,props:ke,_owner:De},(Z!==void 0?Z:null)!==null?Object.defineProperty(N,"ref",{enumerable:!1,get:y}):Object.defineProperty(N,"ref",{enumerable:!1,value:null}),N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(N,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(N,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:be}),Object.defineProperty(N,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N}function M(N,q,Z,se,De,ke,be,Ge){var pe=q.children;if(pe!==void 0)if(se)if(X(pe)){for(se=0;se<pe.length;se++)f(pe[se]);Object.freeze&&Object.freeze(pe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(pe);if(Ne.call(q,"key")){pe=i(N);var _e=Object.keys(q).filter(function(Ct){return Ct!=="key"});se=0<_e.length?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}",ae[pe+se]||(_e=0<_e.length?"{"+_e.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
280
280
|
let props = %s;
|
|
281
281
|
<%s {...props} />
|
|
282
282
|
React keys must be passed directly to JSX without using spread:
|
|
283
283
|
let props = %s;
|
|
284
|
-
<%s key={someKey} {...props} />`,re,pe,_e,pe),ie[pe+re]=!0)}if(pe=null,Z!==void 0&&(c(Z),pe=""+Z),N(Y)&&(c(Y.key),pe=""+Y.key),"key"in Y){Z={};for(var Ie in Y)Ie!=="key"&&(Z[Ie]=Y[Ie])}else Z=Y;return pe&&j(Z,typeof w=="function"?w.displayName||w.name||"Unknown":w),C(w,pe,ke,De,p(),Z,be,Ge)}function f(w){typeof w=="object"&&w!==null&&w.$$typeof===A&&w._store&&(w._store.validated=1)}var g=Oc(),A=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),Se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),oe=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,X=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(w){return w()}};var V,T={},k=g["react-stack-bottom-frame"].bind(g,v)(),z=W(d(v)),ie={};Sc.Fragment=$,Sc.jsx=function(w,Y,Z,re,De){var ke=1e4>oe.recentlyCreatedOwnerStacks++;return M(w,Y,Z,!1,re,De,ke?Error("react-stack-top-frame"):k,ke?W(d(w)):z)},Sc.jsxs=function(w,Y,Z,re,De){var ke=1e4>oe.recentlyCreatedOwnerStacks++;return M(w,Y,Z,!0,re,De,ke?Error("react-stack-top-frame"):k,ke?W(d(w)):z)}}(),Sc}var kN;function pD(){return kN||(kN=1,Rh.exports=fD()),Rh.exports}var jt=pD(),S1=Q.createContext(void 0),Il=i=>{const a=Q.useContext(S1);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},zN=({client:i,children:a})=>(Q.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),jt.jsx(S1.Provider,{value:i,children:a})),E1=Q.createContext(!1),hD=()=>Q.useContext(E1);E1.Provider;function bD(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var vD=Q.createContext(bD()),xD=()=>Q.useContext(vD),gD=(i,a)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(a.isReset()||(i.retryOnMount=!1))},yD=i=>{Q.useEffect(()=>{i.clearReset()},[i])},ND=({result:i,errorResetBoundary:a,throwOnError:c,query:d,suspense:p})=>i.isError&&!a.isReset()&&!i.isFetching&&d&&(p&&i.data===void 0||h1(c,[i.error,d])),wD=i=>{if(i.suspense){const a=d=>d==="static"?d:Math.max(d??1e3,1e3),c=i.staleTime;i.staleTime=typeof c=="function"?(...d)=>a(c(...d)):a(c),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},SD=(i,a)=>i.isLoading&&i.isFetching&&!a,ED=(i,a)=>(i==null?void 0:i.suspense)&&a.isPending,HN=(i,a,c)=>a.fetchOptimistic(i).catch(()=>{c.clearReset()});function jD(i,a,c){var f,g,A,G,$;if(typeof i!="object"||Array.isArray(i))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const d=hD(),p=xD(),v=Il(),N=v.defaultQueryOptions(i);(g=(f=v.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||g.call(f,N),N.queryFn||console.error(`[${N.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),N._optimisticResults=d?"isRestoring":"optimistic",wD(N),gD(N,p),yD(p);const j=!v.getQueryCache().get(N.queryHash),[y]=Q.useState(()=>new a(v,N)),C=y.getOptimisticResult(N),M=!d&&i.subscribed!==!1;if(Q.useSyncExternalStore(Q.useCallback(H=>{const I=M?y.subscribe(Ft.batchCalls(H)):xn;return y.updateResult(),I},[y,M]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),Q.useEffect(()=>{y.setOptions(N)},[N,y]),ED(N,C))throw HN(N,y,p);if(ND({result:C,errorResetBoundary:p,throwOnError:N.throwOnError,query:v.getQueryCache().get(N.queryHash),suspense:N.suspense}))throw C.error;if((G=(A=v.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||G.call(A,N,C),N.experimental_prefetchInRender&&!Sa&&SD(C,d)){const H=j?HN(N,y,p):($=v.getQueryCache().get(N.queryHash))==null?void 0:$.promise;H==null||H.catch(xn).finally(()=>{y.updateResult()})}return N.notifyOnChangeProps?C:y.trackResult(C)}function js(i,a){return jD(i,cD)}function fa(i,a){const c=Il(),[d]=Q.useState(()=>new mD(c,i));Q.useEffect(()=>{d.setOptions(i)},[d,i]);const p=Q.useSyncExternalStore(Q.useCallback(N=>d.subscribe(Ft.batchCalls(N)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),v=Q.useCallback((N,j)=>{d.mutate(N,j).catch(xn)},[d]);if(p.error&&h1(d.options.throwOnError,[p.error]))throw p.error;return{...p,mutate:v,mutateAsync:p.mutate}}function j1(i){var a,c,d="";if(typeof i=="string"||typeof i=="number")d+=i;else if(typeof i=="object")if(Array.isArray(i)){var p=i.length;for(a=0;a<p;a++)i[a]&&(c=j1(i[a]))&&(d&&(d+=" "),d+=c)}else for(c in i)i[c]&&(d&&(d+=" "),d+=c);return d}function D1(){for(var i,a,c=0,d="",p=arguments.length;c<p;c++)(i=arguments[c])&&(a=j1(i))&&(d&&(d+=" "),d+=a);return d}const rb="-",DD=i=>{const a=UD(i),{conflictingClassGroups:c,conflictingClassGroupModifiers:d}=i;return{getClassGroupId:N=>{const j=N.split(rb);return j[0]===""&&j.length!==1&&j.shift(),T1(j,a)||TD(N)},getConflictingClassGroupIds:(N,j)=>{const y=c[N]||[];return j&&d[N]?[...y,...d[N]]:y}}},T1=(i,a)=>{var N;if(i.length===0)return a.classGroupId;const c=i[0],d=a.nextPart.get(c),p=d?T1(i.slice(1),d):void 0;if(p)return p;if(a.validators.length===0)return;const v=i.join(rb);return(N=a.validators.find(({validator:j})=>j(v)))==null?void 0:N.classGroupId},_N=/^\[(.+)\]$/,TD=i=>{if(_N.test(i)){const a=_N.exec(i)[1],c=a==null?void 0:a.substring(0,a.indexOf(":"));if(c)return"arbitrary.."+c}},UD=i=>{const{theme:a,classGroups:c}=i,d={nextPart:new Map,validators:[]};for(const p in c)Ih(c[p],d,p,a);return d},Ih=(i,a,c,d)=>{i.forEach(p=>{if(typeof p=="string"){const v=p===""?a:BN(a,p);v.classGroupId=c;return}if(typeof p=="function"){if(CD(p)){Ih(p(d),a,c,d);return}a.validators.push({validator:p,classGroupId:c});return}Object.entries(p).forEach(([v,N])=>{Ih(N,BN(a,v),c,d)})})},BN=(i,a)=>{let c=i;return a.split(rb).forEach(d=>{c.nextPart.has(d)||c.nextPart.set(d,{nextPart:new Map,validators:[]}),c=c.nextPart.get(d)}),c},CD=i=>i.isThemeGetter,RD=i=>{if(i<1)return{get:()=>{},set:()=>{}};let a=0,c=new Map,d=new Map;const p=(v,N)=>{c.set(v,N),a++,a>i&&(a=0,d=c,c=new Map)};return{get(v){let N=c.get(v);if(N!==void 0)return N;if((N=d.get(v))!==void 0)return p(v,N),N},set(v,N){c.has(v)?c.set(v,N):p(v,N)}}},Xh="!",Zh=":",AD=Zh.length,VD=i=>{const{prefix:a,experimentalParseClassName:c}=i;let d=p=>{const v=[];let N=0,j=0,y=0,C;for(let G=0;G<p.length;G++){let $=p[G];if(N===0&&j===0){if($===Zh){v.push(p.slice(y,G)),y=G+AD;continue}if($==="/"){C=G;continue}}$==="["?N++:$==="]"?N--:$==="("?j++:$===")"&&j--}const M=v.length===0?p:p.substring(y),f=MD(M),g=f!==M,A=C&&C>y?C-y:void 0;return{modifiers:v,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:A}};if(a){const p=a+Zh,v=d;d=N=>N.startsWith(p)?v(N.substring(p.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:N,maybePostfixModifierPosition:void 0}}if(c){const p=d;d=v=>c({className:v,parseClassName:p})}return d},MD=i=>i.endsWith(Xh)?i.substring(0,i.length-1):i.startsWith(Xh)?i.substring(1):i,OD=i=>{const a=Object.fromEntries(i.orderSensitiveModifiers.map(d=>[d,!0]));return d=>{if(d.length<=1)return d;const p=[];let v=[];return d.forEach(N=>{N[0]==="["||a[N]?(p.push(...v.sort(),N),v=[]):v.push(N)}),p.push(...v.sort()),p}},PD=i=>({cache:RD(i.cacheSize),parseClassName:VD(i),sortModifiers:OD(i),...DD(i)}),kD=/\s+/,zD=(i,a)=>{const{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:p,sortModifiers:v}=a,N=[],j=i.trim().split(kD);let y="";for(let C=j.length-1;C>=0;C-=1){const M=j[C],{isExternal:f,modifiers:g,hasImportantModifier:A,baseClassName:G,maybePostfixModifierPosition:$}=c(M);if(f){y=M+(y.length>0?" "+y:y);continue}let H=!!$,I=d(H?G.substring(0,$):G);if(!I){if(!H){y=M+(y.length>0?" "+y:y);continue}if(I=d(G),!I){y=M+(y.length>0?" "+y:y);continue}H=!1}const Se=v(g).join(":"),ne=A?Se+Xh:Se,fe=ne+I;if(N.includes(fe))continue;N.push(fe);const de=p(I,H);for(let Ee=0;Ee<de.length;++Ee){const je=de[Ee];N.push(ne+je)}y=M+(y.length>0?" "+y:y)}return y};function HD(){let i=0,a,c,d="";for(;i<arguments.length;)(a=arguments[i++])&&(c=U1(a))&&(d&&(d+=" "),d+=c);return d}const U1=i=>{if(typeof i=="string")return i;let a,c="";for(let d=0;d<i.length;d++)i[d]&&(a=U1(i[d]))&&(c&&(c+=" "),c+=a);return c};function _D(i,...a){let c,d,p,v=N;function N(y){const C=a.reduce((M,f)=>f(M),i());return c=PD(C),d=c.cache.get,p=c.cache.set,v=j,j(y)}function j(y){const C=d(y);if(C)return C;const M=zD(y,c);return p(y,M),M}return function(){return v(HD.apply(null,arguments))}}const qt=i=>{const a=c=>c[i]||[];return a.isThemeGetter=!0,a},C1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BD=/^\d+\/\d+$/,LD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qD=/\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$/,FD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,YD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dl=i=>BD.test(i),Qe=i=>!!i&&!Number.isNaN(Number(i)),po=i=>!!i&&Number.isInteger(Number(i)),Ah=i=>i.endsWith("%")&&Qe(i.slice(0,-1)),jr=i=>LD.test(i),$D=()=>!0,QD=i=>qD.test(i)&&!FD.test(i),A1=()=>!1,ID=i=>YD.test(i),XD=i=>GD.test(i),ZD=i=>!ge(i)&&!ye(i),KD=i=>Xl(i,O1,A1),ge=i=>C1.test(i),ma=i=>Xl(i,P1,QD),Vh=i=>Xl(i,nT,Qe),LN=i=>Xl(i,V1,A1),JD=i=>Xl(i,M1,XD),Vd=i=>Xl(i,k1,ID),ye=i=>R1.test(i),Ec=i=>Zl(i,P1),WD=i=>Zl(i,sT),qN=i=>Zl(i,V1),eT=i=>Zl(i,O1),tT=i=>Zl(i,M1),Md=i=>Zl(i,k1,!0),Xl=(i,a,c)=>{const d=C1.exec(i);return d?d[1]?a(d[1]):c(d[2]):!1},Zl=(i,a,c=!1)=>{const d=R1.exec(i);return d?d[1]?a(d[1]):c:!1},V1=i=>i==="position"||i==="percentage",M1=i=>i==="image"||i==="url",O1=i=>i==="length"||i==="size"||i==="bg-size",P1=i=>i==="length",nT=i=>i==="number",sT=i=>i==="family-name",k1=i=>i==="shadow",rT=()=>{const i=qt("color"),a=qt("font"),c=qt("text"),d=qt("font-weight"),p=qt("tracking"),v=qt("leading"),N=qt("breakpoint"),j=qt("container"),y=qt("spacing"),C=qt("radius"),M=qt("shadow"),f=qt("inset-shadow"),g=qt("text-shadow"),A=qt("drop-shadow"),G=qt("blur"),$=qt("perspective"),H=qt("aspect"),I=qt("ease"),Se=qt("animate"),ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],de=()=>[...fe(),ye,ge],Ee=()=>["auto","hidden","clip","visible","scroll"],je=()=>["auto","contain","none"],K=()=>[ye,ge,y],J=()=>[Dl,"full","auto",...K()],ce=()=>[po,"none","subgrid",ye,ge],oe=()=>["auto",{span:["full",po,ye,ge]},po,ye,ge],Ne=()=>[po,"auto",ye,ge],X=()=>["auto","min","max","fr",ye,ge],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...K()],k=()=>[Dl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],z=()=>[i,ye,ge],ie=()=>[...fe(),qN,LN,{position:[ye,ge]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",eT,KD,{size:[ye,ge]}],Z=()=>[Ah,Ec,ma],re=()=>["","none","full",C,ye,ge],De=()=>["",Qe,Ec,ma],ke=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ge=()=>[Qe,Ah,qN,LN],pe=()=>["","none",G,ye,ge],_e=()=>["none",Qe,ye,ge],Ie=()=>["none",Qe,ye,ge],Ct=()=>[Qe,ye,ge],on=()=>[Dl,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[jr],breakpoint:[jr],color:[$D],container:[jr],"drop-shadow":[jr],ease:["in","out","in-out"],font:[ZD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[jr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[jr],shadow:[jr],spacing:["px",Qe],text:[jr],"text-shadow":[jr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dl,ge,ye,H]}],container:["container"],columns:[{columns:[Qe,ge,ye,j]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:de()}],overflow:[{overflow:Ee()}],"overflow-x":[{"overflow-x":Ee()}],"overflow-y":[{"overflow-y":Ee()}],overscroll:[{overscroll:je()}],"overscroll-x":[{"overscroll-x":je()}],"overscroll-y":[{"overscroll-y":je()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[po,"auto",ye,ge]}],basis:[{basis:[Dl,"full","auto",j,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Dl,"auto","initial","none",ge]}],grow:[{grow:["",Qe,ye,ge]}],shrink:[{shrink:["",Qe,ye,ge]}],order:[{order:[po,"first","last","none",ye,ge]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[j,"screen",...k()]}],"min-w":[{"min-w":[j,"screen","none",...k()]}],"max-w":[{"max-w":[j,"screen","none","prose",{screen:[N]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",c,Ec,ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,ye,Vh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ah,ge]}],"font-family":[{font:[WD,ge,a]}],"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:[p,ye,ge]}],"line-clamp":[{"line-clamp":[Qe,"none",ye,Vh]}],leading:[{leading:[v,...K()]}],"list-image":[{"list-image":["none",ye,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",ye,ma]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Qe,"auto",ye,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ge]}],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",ye,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},po,ye,ge],radial:["",ye,ge],conic:[po,ye,ge]},tT,JD]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:De()}],"border-w-x":[{"border-x":De()}],"border-w-y":[{"border-y":De()}],"border-w-s":[{"border-s":De()}],"border-w-e":[{"border-e":De()}],"border-w-t":[{"border-t":De()}],"border-w-r":[{"border-r":De()}],"border-w-b":[{"border-b":De()}],"border-w-l":[{"border-l":De()}],"divide-x":[{"divide-x":De()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":De()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,ye,ge]}],"outline-w":[{outline:["",Qe,Ec,ma]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",M,Md,Vd]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",f,Md,Vd]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:De()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Qe,ma]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":De()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",g,Md,Vd]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Qe,ye,ge]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ge()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":Ge()}],"mask-image-t-to-pos":[{"mask-t-to":Ge()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":Ge()}],"mask-image-r-to-pos":[{"mask-r-to":Ge()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":Ge()}],"mask-image-b-to-pos":[{"mask-b-to":Ge()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":Ge()}],"mask-image-l-to-pos":[{"mask-l-to":Ge()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":Ge()}],"mask-image-x-to-pos":[{"mask-x-to":Ge()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":Ge()}],"mask-image-y-to-pos":[{"mask-y-to":Ge()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ye,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ge()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":fe()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ge()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ge]}],filter:[{filter:["","none",ye,ge]}],blur:[{blur:pe()}],brightness:[{brightness:[Qe,ye,ge]}],contrast:[{contrast:[Qe,ye,ge]}],"drop-shadow":[{"drop-shadow":["","none",A,Md,Vd]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Qe,ye,ge]}],"hue-rotate":[{"hue-rotate":[Qe,ye,ge]}],invert:[{invert:["",Qe,ye,ge]}],saturate:[{saturate:[Qe,ye,ge]}],sepia:[{sepia:["",Qe,ye,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ge]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,ye,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,ye,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,ye,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,ye,ge]}],"backdrop-invert":[{"backdrop-invert":["",Qe,ye,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,ye,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,ye,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,ye,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",ye,ge]}],ease:[{ease:["linear","initial",I,ye,ge]}],delay:[{delay:[Qe,ye,ge]}],animate:[{animate:["none",Se,ye,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[$,ye,ge]}],"perspective-origin":[{"perspective-origin":de()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[ye,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:de()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:on()}],"translate-x":[{"translate-x":on()}],"translate-y":[{"translate-y":on()}],"translate-z":[{"translate-z":on()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",ye,ge]}],"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":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",ye,ge]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Qe,Ec,ma,Vh]}],stroke:[{stroke:["none",...z()]}],"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"]}},oT=_D(rT);function Vn(...i){return oT(D1(i))}function nt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card",className:Vn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:7,columnNumber:5},this)}function gt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-header",className:Vn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:20,columnNumber:5},this)}function yt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-title",className:Vn("leading-none font-semibold",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:33,columnNumber:5},this)}function at({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-content",className:Vn("px-6",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:66,columnNumber:5},this)}function FN(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function z1(...i){return a=>{let c=!1;const d=i.map(p=>{const v=FN(p,a);return!c&&typeof v=="function"&&(c=!0),v});if(c)return()=>{for(let p=0;p<d.length;p++){const v=d[p];typeof v=="function"?v():FN(i[p],null)}}}}function Yd(...i){return Q.useCallback(z1(...i),i)}function Gd(i){const a=aT(i),c=Q.forwardRef((d,p)=>{const{children:v,...N}=d,j=Q.Children.toArray(v),y=j.find(iT);if(y){const C=y.props.children,M=j.map(f=>f===y?Q.Children.count(C)>1?Q.Children.only(null):Q.isValidElement(C)?C.props.children:null:f);return jt.jsx(a,{...N,ref:p,children:Q.isValidElement(C)?Q.cloneElement(C,void 0,M):null})}return jt.jsx(a,{...N,ref:p,children:v})});return c.displayName=`${i}.Slot`,c}var H1=Gd("Slot");function aT(i){const a=Q.forwardRef((c,d)=>{const{children:p,...v}=c;if(Q.isValidElement(p)){const N=uT(p),j=cT(v,p.props);return p.type!==Q.Fragment&&(j.ref=d?z1(d,N):N),Q.cloneElement(p,j)}return Q.Children.count(p)>1?Q.Children.only(null):null});return a.displayName=`${i}.SlotClone`,a}var lT=Symbol("radix.slottable");function iT(i){return Q.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===lT}function cT(i,a){const c={...a};for(const d in a){const p=i[d],v=a[d];/^on[A-Z]/.test(d)?p&&v?c[d]=(...j)=>{const y=v(...j);return p(...j),y}:p&&(c[d]=p):d==="style"?c[d]={...p,...v}:d==="className"&&(c[d]=[p,v].filter(Boolean).join(" "))}return{...i,...c}}function uT(i){var d,p;let a=(d=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:d.get,c=a&&"isReactWarning"in a&&a.isReactWarning;return c?i.ref:(a=(p=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:p.get,c=a&&"isReactWarning"in a&&a.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}const YN=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,GN=D1,ob=(i,a)=>c=>{var d;if((a==null?void 0:a.variants)==null)return GN(i,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:p,defaultVariants:v}=a,N=Object.keys(p).map(C=>{const M=c==null?void 0:c[C],f=v==null?void 0:v[C];if(M===null)return null;const g=YN(M)||YN(f);return p[C][g]}),j=c&&Object.entries(c).reduce((C,M)=>{let[f,g]=M;return g===void 0||(C[f]=g),C},{}),y=a==null||(d=a.compoundVariants)===null||d===void 0?void 0:d.reduce((C,M)=>{let{class:f,className:g,...A}=M;return Object.entries(A).every(G=>{let[$,H]=G;return Array.isArray(H)?H.includes({...v,...j}[$]):{...v,...j}[$]===H})?[...C,f,g]:C},[]);return GN(i,N,y,c==null?void 0:c.class,c==null?void 0:c.className)},dT=ob("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ce({className:i,variant:a,size:c,asChild:d=!1,...p}){const v=d?H1:"button";return l.jsxDEV(v,{"data-slot":"button",className:Vn(dT({variant:a,size:c,className:i})),...p},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/button.tsx",lineNumber:51,columnNumber:5},this)}const mT=ob("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function vt({className:i,variant:a,asChild:c=!1,...d}){const p=c?H1:"span";return l.jsxDEV(p,{"data-slot":"badge",className:Vn(mT({variant:a}),i),...d},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}/**
|
|
284
|
+
<%s key={someKey} {...props} />`,se,pe,_e,pe),ae[pe+se]=!0)}if(pe=null,Z!==void 0&&(c(Z),pe=""+Z),w(q)&&(c(q.key),pe=""+q.key),"key"in q){Z={};for(var Ie in q)Ie!=="key"&&(Z[Ie]=q[Ie])}else Z=q;return pe&&j(Z,typeof N=="function"?N.displayName||N.name||"Unknown":N),C(N,pe,ke,De,p(),Z,be,Ge)}function f(N){typeof N=="object"&&N!==null&&N.$$typeof===A&&N._store&&(N._store.validated=1)}var g=Oc(),A=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),Se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),oe=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,X=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(N){return N()}};var V,T={},k=g["react-stack-bottom-frame"].bind(g,v)(),z=W(d(v)),ae={};Sc.Fragment=$,Sc.jsx=function(N,q,Z,se,De){var ke=1e4>oe.recentlyCreatedOwnerStacks++;return M(N,q,Z,!1,se,De,ke?Error("react-stack-top-frame"):k,ke?W(d(N)):z)},Sc.jsxs=function(N,q,Z,se,De){var ke=1e4>oe.recentlyCreatedOwnerStacks++;return M(N,q,Z,!0,se,De,ke?Error("react-stack-top-frame"):k,ke?W(d(N)):z)}}(),Sc}var kN;function pD(){return kN||(kN=1,Rh.exports=fD()),Rh.exports}var jt=pD(),S1=Q.createContext(void 0),Il=i=>{const a=Q.useContext(S1);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},zN=({client:i,children:a})=>(Q.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),jt.jsx(S1.Provider,{value:i,children:a})),E1=Q.createContext(!1),hD=()=>Q.useContext(E1);E1.Provider;function bD(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var vD=Q.createContext(bD()),xD=()=>Q.useContext(vD),gD=(i,a)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(a.isReset()||(i.retryOnMount=!1))},yD=i=>{Q.useEffect(()=>{i.clearReset()},[i])},ND=({result:i,errorResetBoundary:a,throwOnError:c,query:d,suspense:p})=>i.isError&&!a.isReset()&&!i.isFetching&&d&&(p&&i.data===void 0||h1(c,[i.error,d])),wD=i=>{if(i.suspense){const a=d=>d==="static"?d:Math.max(d??1e3,1e3),c=i.staleTime;i.staleTime=typeof c=="function"?(...d)=>a(c(...d)):a(c),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},SD=(i,a)=>i.isLoading&&i.isFetching&&!a,ED=(i,a)=>(i==null?void 0:i.suspense)&&a.isPending,HN=(i,a,c)=>a.fetchOptimistic(i).catch(()=>{c.clearReset()});function jD(i,a,c){var f,g,A,G,$;if(typeof i!="object"||Array.isArray(i))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const d=hD(),p=xD(),v=Il(),w=v.defaultQueryOptions(i);(g=(f=v.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||g.call(f,w),w.queryFn||console.error(`[${w.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),w._optimisticResults=d?"isRestoring":"optimistic",wD(w),gD(w,p),yD(p);const j=!v.getQueryCache().get(w.queryHash),[y]=Q.useState(()=>new a(v,w)),C=y.getOptimisticResult(w),M=!d&&i.subscribed!==!1;if(Q.useSyncExternalStore(Q.useCallback(H=>{const I=M?y.subscribe(Ft.batchCalls(H)):xn;return y.updateResult(),I},[y,M]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),Q.useEffect(()=>{y.setOptions(w)},[w,y]),ED(w,C))throw HN(w,y,p);if(ND({result:C,errorResetBoundary:p,throwOnError:w.throwOnError,query:v.getQueryCache().get(w.queryHash),suspense:w.suspense}))throw C.error;if((G=(A=v.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||G.call(A,w,C),w.experimental_prefetchInRender&&!Sa&&SD(C,d)){const H=j?HN(w,y,p):($=v.getQueryCache().get(w.queryHash))==null?void 0:$.promise;H==null||H.catch(xn).finally(()=>{y.updateResult()})}return w.notifyOnChangeProps?C:y.trackResult(C)}function js(i,a){return jD(i,cD)}function fa(i,a){const c=Il(),[d]=Q.useState(()=>new mD(c,i));Q.useEffect(()=>{d.setOptions(i)},[d,i]);const p=Q.useSyncExternalStore(Q.useCallback(w=>d.subscribe(Ft.batchCalls(w)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),v=Q.useCallback((w,j)=>{d.mutate(w,j).catch(xn)},[d]);if(p.error&&h1(d.options.throwOnError,[p.error]))throw p.error;return{...p,mutate:v,mutateAsync:p.mutate}}function j1(i){var a,c,d="";if(typeof i=="string"||typeof i=="number")d+=i;else if(typeof i=="object")if(Array.isArray(i)){var p=i.length;for(a=0;a<p;a++)i[a]&&(c=j1(i[a]))&&(d&&(d+=" "),d+=c)}else for(c in i)i[c]&&(d&&(d+=" "),d+=c);return d}function D1(){for(var i,a,c=0,d="",p=arguments.length;c<p;c++)(i=arguments[c])&&(a=j1(i))&&(d&&(d+=" "),d+=a);return d}const rb="-",DD=i=>{const a=UD(i),{conflictingClassGroups:c,conflictingClassGroupModifiers:d}=i;return{getClassGroupId:w=>{const j=w.split(rb);return j[0]===""&&j.length!==1&&j.shift(),T1(j,a)||TD(w)},getConflictingClassGroupIds:(w,j)=>{const y=c[w]||[];return j&&d[w]?[...y,...d[w]]:y}}},T1=(i,a)=>{var w;if(i.length===0)return a.classGroupId;const c=i[0],d=a.nextPart.get(c),p=d?T1(i.slice(1),d):void 0;if(p)return p;if(a.validators.length===0)return;const v=i.join(rb);return(w=a.validators.find(({validator:j})=>j(v)))==null?void 0:w.classGroupId},_N=/^\[(.+)\]$/,TD=i=>{if(_N.test(i)){const a=_N.exec(i)[1],c=a==null?void 0:a.substring(0,a.indexOf(":"));if(c)return"arbitrary.."+c}},UD=i=>{const{theme:a,classGroups:c}=i,d={nextPart:new Map,validators:[]};for(const p in c)Ih(c[p],d,p,a);return d},Ih=(i,a,c,d)=>{i.forEach(p=>{if(typeof p=="string"){const v=p===""?a:BN(a,p);v.classGroupId=c;return}if(typeof p=="function"){if(CD(p)){Ih(p(d),a,c,d);return}a.validators.push({validator:p,classGroupId:c});return}Object.entries(p).forEach(([v,w])=>{Ih(w,BN(a,v),c,d)})})},BN=(i,a)=>{let c=i;return a.split(rb).forEach(d=>{c.nextPart.has(d)||c.nextPart.set(d,{nextPart:new Map,validators:[]}),c=c.nextPart.get(d)}),c},CD=i=>i.isThemeGetter,RD=i=>{if(i<1)return{get:()=>{},set:()=>{}};let a=0,c=new Map,d=new Map;const p=(v,w)=>{c.set(v,w),a++,a>i&&(a=0,d=c,c=new Map)};return{get(v){let w=c.get(v);if(w!==void 0)return w;if((w=d.get(v))!==void 0)return p(v,w),w},set(v,w){c.has(v)?c.set(v,w):p(v,w)}}},Xh="!",Zh=":",AD=Zh.length,VD=i=>{const{prefix:a,experimentalParseClassName:c}=i;let d=p=>{const v=[];let w=0,j=0,y=0,C;for(let G=0;G<p.length;G++){let $=p[G];if(w===0&&j===0){if($===Zh){v.push(p.slice(y,G)),y=G+AD;continue}if($==="/"){C=G;continue}}$==="["?w++:$==="]"?w--:$==="("?j++:$===")"&&j--}const M=v.length===0?p:p.substring(y),f=MD(M),g=f!==M,A=C&&C>y?C-y:void 0;return{modifiers:v,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:A}};if(a){const p=a+Zh,v=d;d=w=>w.startsWith(p)?v(w.substring(p.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:w,maybePostfixModifierPosition:void 0}}if(c){const p=d;d=v=>c({className:v,parseClassName:p})}return d},MD=i=>i.endsWith(Xh)?i.substring(0,i.length-1):i.startsWith(Xh)?i.substring(1):i,OD=i=>{const a=Object.fromEntries(i.orderSensitiveModifiers.map(d=>[d,!0]));return d=>{if(d.length<=1)return d;const p=[];let v=[];return d.forEach(w=>{w[0]==="["||a[w]?(p.push(...v.sort(),w),v=[]):v.push(w)}),p.push(...v.sort()),p}},PD=i=>({cache:RD(i.cacheSize),parseClassName:VD(i),sortModifiers:OD(i),...DD(i)}),kD=/\s+/,zD=(i,a)=>{const{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:p,sortModifiers:v}=a,w=[],j=i.trim().split(kD);let y="";for(let C=j.length-1;C>=0;C-=1){const M=j[C],{isExternal:f,modifiers:g,hasImportantModifier:A,baseClassName:G,maybePostfixModifierPosition:$}=c(M);if(f){y=M+(y.length>0?" "+y:y);continue}let H=!!$,I=d(H?G.substring(0,$):G);if(!I){if(!H){y=M+(y.length>0?" "+y:y);continue}if(I=d(G),!I){y=M+(y.length>0?" "+y:y);continue}H=!1}const Se=v(g).join(":"),ne=A?Se+Xh:Se,fe=ne+I;if(w.includes(fe))continue;w.push(fe);const de=p(I,H);for(let Ee=0;Ee<de.length;++Ee){const je=de[Ee];w.push(ne+je)}y=M+(y.length>0?" "+y:y)}return y};function HD(){let i=0,a,c,d="";for(;i<arguments.length;)(a=arguments[i++])&&(c=U1(a))&&(d&&(d+=" "),d+=c);return d}const U1=i=>{if(typeof i=="string")return i;let a,c="";for(let d=0;d<i.length;d++)i[d]&&(a=U1(i[d]))&&(c&&(c+=" "),c+=a);return c};function _D(i,...a){let c,d,p,v=w;function w(y){const C=a.reduce((M,f)=>f(M),i());return c=PD(C),d=c.cache.get,p=c.cache.set,v=j,j(y)}function j(y){const C=d(y);if(C)return C;const M=zD(y,c);return p(y,M),M}return function(){return v(HD.apply(null,arguments))}}const qt=i=>{const a=c=>c[i]||[];return a.isThemeGetter=!0,a},C1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BD=/^\d+\/\d+$/,LD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qD=/\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$/,FD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,YD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dl=i=>BD.test(i),Qe=i=>!!i&&!Number.isNaN(Number(i)),po=i=>!!i&&Number.isInteger(Number(i)),Ah=i=>i.endsWith("%")&&Qe(i.slice(0,-1)),jr=i=>LD.test(i),$D=()=>!0,QD=i=>qD.test(i)&&!FD.test(i),A1=()=>!1,ID=i=>YD.test(i),XD=i=>GD.test(i),ZD=i=>!ge(i)&&!ye(i),KD=i=>Xl(i,O1,A1),ge=i=>C1.test(i),ma=i=>Xl(i,P1,QD),Vh=i=>Xl(i,nT,Qe),LN=i=>Xl(i,V1,A1),JD=i=>Xl(i,M1,XD),Vd=i=>Xl(i,k1,ID),ye=i=>R1.test(i),Ec=i=>Zl(i,P1),WD=i=>Zl(i,sT),qN=i=>Zl(i,V1),eT=i=>Zl(i,O1),tT=i=>Zl(i,M1),Md=i=>Zl(i,k1,!0),Xl=(i,a,c)=>{const d=C1.exec(i);return d?d[1]?a(d[1]):c(d[2]):!1},Zl=(i,a,c=!1)=>{const d=R1.exec(i);return d?d[1]?a(d[1]):c:!1},V1=i=>i==="position"||i==="percentage",M1=i=>i==="image"||i==="url",O1=i=>i==="length"||i==="size"||i==="bg-size",P1=i=>i==="length",nT=i=>i==="number",sT=i=>i==="family-name",k1=i=>i==="shadow",rT=()=>{const i=qt("color"),a=qt("font"),c=qt("text"),d=qt("font-weight"),p=qt("tracking"),v=qt("leading"),w=qt("breakpoint"),j=qt("container"),y=qt("spacing"),C=qt("radius"),M=qt("shadow"),f=qt("inset-shadow"),g=qt("text-shadow"),A=qt("drop-shadow"),G=qt("blur"),$=qt("perspective"),H=qt("aspect"),I=qt("ease"),Se=qt("animate"),ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],de=()=>[...fe(),ye,ge],Ee=()=>["auto","hidden","clip","visible","scroll"],je=()=>["auto","contain","none"],K=()=>[ye,ge,y],J=()=>[Dl,"full","auto",...K()],ce=()=>[po,"none","subgrid",ye,ge],oe=()=>["auto",{span:["full",po,ye,ge]},po,ye,ge],Ne=()=>[po,"auto",ye,ge],X=()=>["auto","min","max","fr",ye,ge],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...K()],k=()=>[Dl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],z=()=>[i,ye,ge],ae=()=>[...fe(),qN,LN,{position:[ye,ge]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",eT,KD,{size:[ye,ge]}],Z=()=>[Ah,Ec,ma],se=()=>["","none","full",C,ye,ge],De=()=>["",Qe,Ec,ma],ke=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ge=()=>[Qe,Ah,qN,LN],pe=()=>["","none",G,ye,ge],_e=()=>["none",Qe,ye,ge],Ie=()=>["none",Qe,ye,ge],Ct=()=>[Qe,ye,ge],on=()=>[Dl,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[jr],breakpoint:[jr],color:[$D],container:[jr],"drop-shadow":[jr],ease:["in","out","in-out"],font:[ZD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[jr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[jr],shadow:[jr],spacing:["px",Qe],text:[jr],"text-shadow":[jr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dl,ge,ye,H]}],container:["container"],columns:[{columns:[Qe,ge,ye,j]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:de()}],overflow:[{overflow:Ee()}],"overflow-x":[{"overflow-x":Ee()}],"overflow-y":[{"overflow-y":Ee()}],overscroll:[{overscroll:je()}],"overscroll-x":[{"overscroll-x":je()}],"overscroll-y":[{"overscroll-y":je()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[po,"auto",ye,ge]}],basis:[{basis:[Dl,"full","auto",j,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Dl,"auto","initial","none",ge]}],grow:[{grow:["",Qe,ye,ge]}],shrink:[{shrink:["",Qe,ye,ge]}],order:[{order:[po,"first","last","none",ye,ge]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[j,"screen",...k()]}],"min-w":[{"min-w":[j,"screen","none",...k()]}],"max-w":[{"max-w":[j,"screen","none","prose",{screen:[w]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",c,Ec,ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,ye,Vh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ah,ge]}],"font-family":[{font:[WD,ge,a]}],"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:[p,ye,ge]}],"line-clamp":[{"line-clamp":[Qe,"none",ye,Vh]}],leading:[{leading:[v,...K()]}],"list-image":[{"list-image":["none",ye,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",ye,ma]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Qe,"auto",ye,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ge]}],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",ye,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},po,ye,ge],radial:["",ye,ge],conic:[po,ye,ge]},tT,JD]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],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:De()}],"border-w-x":[{"border-x":De()}],"border-w-y":[{"border-y":De()}],"border-w-s":[{"border-s":De()}],"border-w-e":[{"border-e":De()}],"border-w-t":[{"border-t":De()}],"border-w-r":[{"border-r":De()}],"border-w-b":[{"border-b":De()}],"border-w-l":[{"border-l":De()}],"divide-x":[{"divide-x":De()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":De()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,ye,ge]}],"outline-w":[{outline:["",Qe,Ec,ma]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",M,Md,Vd]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",f,Md,Vd]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:De()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Qe,ma]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":De()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",g,Md,Vd]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Qe,ye,ge]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ge()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":Ge()}],"mask-image-t-to-pos":[{"mask-t-to":Ge()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":Ge()}],"mask-image-r-to-pos":[{"mask-r-to":Ge()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":Ge()}],"mask-image-b-to-pos":[{"mask-b-to":Ge()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":Ge()}],"mask-image-l-to-pos":[{"mask-l-to":Ge()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":Ge()}],"mask-image-x-to-pos":[{"mask-x-to":Ge()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":Ge()}],"mask-image-y-to-pos":[{"mask-y-to":Ge()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ye,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ge()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":fe()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ge()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ge]}],filter:[{filter:["","none",ye,ge]}],blur:[{blur:pe()}],brightness:[{brightness:[Qe,ye,ge]}],contrast:[{contrast:[Qe,ye,ge]}],"drop-shadow":[{"drop-shadow":["","none",A,Md,Vd]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Qe,ye,ge]}],"hue-rotate":[{"hue-rotate":[Qe,ye,ge]}],invert:[{invert:["",Qe,ye,ge]}],saturate:[{saturate:[Qe,ye,ge]}],sepia:[{sepia:["",Qe,ye,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ge]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,ye,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,ye,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,ye,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,ye,ge]}],"backdrop-invert":[{"backdrop-invert":["",Qe,ye,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,ye,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,ye,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,ye,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",ye,ge]}],ease:[{ease:["linear","initial",I,ye,ge]}],delay:[{delay:[Qe,ye,ge]}],animate:[{animate:["none",Se,ye,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[$,ye,ge]}],"perspective-origin":[{"perspective-origin":de()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[ye,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:de()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:on()}],"translate-x":[{"translate-x":on()}],"translate-y":[{"translate-y":on()}],"translate-z":[{"translate-z":on()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",ye,ge]}],"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":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",ye,ge]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Qe,Ec,ma,Vh]}],stroke:[{stroke:["none",...z()]}],"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"]}},oT=_D(rT);function Vn(...i){return oT(D1(i))}function nt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card",className:Vn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:7,columnNumber:5},this)}function gt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-header",className:Vn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:20,columnNumber:5},this)}function yt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-title",className:Vn("leading-none font-semibold",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:33,columnNumber:5},this)}function at({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-content",className:Vn("px-6",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:66,columnNumber:5},this)}function FN(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function z1(...i){return a=>{let c=!1;const d=i.map(p=>{const v=FN(p,a);return!c&&typeof v=="function"&&(c=!0),v});if(c)return()=>{for(let p=0;p<d.length;p++){const v=d[p];typeof v=="function"?v():FN(i[p],null)}}}}function Yd(...i){return Q.useCallback(z1(...i),i)}function Gd(i){const a=aT(i),c=Q.forwardRef((d,p)=>{const{children:v,...w}=d,j=Q.Children.toArray(v),y=j.find(iT);if(y){const C=y.props.children,M=j.map(f=>f===y?Q.Children.count(C)>1?Q.Children.only(null):Q.isValidElement(C)?C.props.children:null:f);return jt.jsx(a,{...w,ref:p,children:Q.isValidElement(C)?Q.cloneElement(C,void 0,M):null})}return jt.jsx(a,{...w,ref:p,children:v})});return c.displayName=`${i}.Slot`,c}var H1=Gd("Slot");function aT(i){const a=Q.forwardRef((c,d)=>{const{children:p,...v}=c;if(Q.isValidElement(p)){const w=uT(p),j=cT(v,p.props);return p.type!==Q.Fragment&&(j.ref=d?z1(d,w):w),Q.cloneElement(p,j)}return Q.Children.count(p)>1?Q.Children.only(null):null});return a.displayName=`${i}.SlotClone`,a}var lT=Symbol("radix.slottable");function iT(i){return Q.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===lT}function cT(i,a){const c={...a};for(const d in a){const p=i[d],v=a[d];/^on[A-Z]/.test(d)?p&&v?c[d]=(...j)=>{const y=v(...j);return p(...j),y}:p&&(c[d]=p):d==="style"?c[d]={...p,...v}:d==="className"&&(c[d]=[p,v].filter(Boolean).join(" "))}return{...i,...c}}function uT(i){var d,p;let a=(d=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:d.get,c=a&&"isReactWarning"in a&&a.isReactWarning;return c?i.ref:(a=(p=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:p.get,c=a&&"isReactWarning"in a&&a.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}const YN=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,GN=D1,ob=(i,a)=>c=>{var d;if((a==null?void 0:a.variants)==null)return GN(i,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:p,defaultVariants:v}=a,w=Object.keys(p).map(C=>{const M=c==null?void 0:c[C],f=v==null?void 0:v[C];if(M===null)return null;const g=YN(M)||YN(f);return p[C][g]}),j=c&&Object.entries(c).reduce((C,M)=>{let[f,g]=M;return g===void 0||(C[f]=g),C},{}),y=a==null||(d=a.compoundVariants)===null||d===void 0?void 0:d.reduce((C,M)=>{let{class:f,className:g,...A}=M;return Object.entries(A).every(G=>{let[$,H]=G;return Array.isArray(H)?H.includes({...v,...j}[$]):{...v,...j}[$]===H})?[...C,f,g]:C},[]);return GN(i,w,y,c==null?void 0:c.class,c==null?void 0:c.className)},dT=ob("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ce({className:i,variant:a,size:c,asChild:d=!1,...p}){const v=d?H1:"button";return l.jsxDEV(v,{"data-slot":"button",className:Vn(dT({variant:a,size:c,className:i})),...p},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/button.tsx",lineNumber:51,columnNumber:5},this)}const mT=ob("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function vt({className:i,variant:a,asChild:c=!1,...d}){const p=c?H1:"span";return l.jsxDEV(p,{"data-slot":"badge",className:Vn(mT({variant:a}),i),...d},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}/**
|
|
285
285
|
* @license lucide-react v0.513.0 - ISC
|
|
286
286
|
*
|
|
287
287
|
* This source code is licensed under the ISC license.
|
|
@@ -296,7 +296,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
296
296
|
*
|
|
297
297
|
* This source code is licensed under the ISC license.
|
|
298
298
|
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
-
*/const vT=Q.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:p="",children:v,iconNode:
|
|
299
|
+
*/const vT=Q.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:p="",children:v,iconNode:w,...j},y)=>Q.createElement("svg",{ref:y,...bT,width:a,height:a,stroke:i,strokeWidth:d?Number(c)*24/Number(a):c,className:_1("lucide",p),...!v&&!hT(j)&&{"aria-hidden":"true"},...j},[...w.map(([C,M])=>Q.createElement(C,M)),...Array.isArray(v)?v:[v]]));/**
|
|
300
300
|
* @license lucide-react v0.513.0 - ISC
|
|
301
301
|
*
|
|
302
302
|
* This source code is licensed under the ISC license.
|
|
@@ -501,7 +501,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
501
501
|
*
|
|
502
502
|
* This source code is licensed under the ISC license.
|
|
503
503
|
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
-
*/const hU=[["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"}]],IN=Ye("zap",hU);var bU=m1();const vU=u1(bU);function xU(i){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css",a.appendChild(c),c.styleSheet?c.styleSheet.cssText=i:c.appendChild(document.createTextNode(i))}const gU=i=>{switch(i){case"success":return wU;case"info":return EU;case"warning":return SU;case"error":return jU;default:return null}},yU=Array(12).fill(0),NU=({visible:i,className:a})=>se.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":i},se.createElement("div",{className:"sonner-spinner"},yU.map((c,d)=>se.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${d}`})))),wU=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),SU=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),EU=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),jU=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),DU=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},se.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),se.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),TU=()=>{const[i,a]=se.useState(document.hidden);return se.useEffect(()=>{const c=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",c),()=>window.removeEventListener("visibilitychange",c)},[]),i};let Wh=1;class UU{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const c=this.subscribers.indexOf(a);this.subscribers.splice(c,1)}),this.publish=a=>{this.subscribers.forEach(c=>c(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var c;const{message:d,...p}=a,v=typeof(a==null?void 0:a.id)=="number"||((c=a.id)==null?void 0:c.length)>0?a.id:Wh++,N=this.toasts.find(y=>y.id===v),j=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(v)&&this.dismissedToasts.delete(v),N?this.toasts=this.toasts.map(y=>y.id===v?(this.publish({...y,...a,id:v,title:d}),{...y,...a,id:v,dismissible:j,title:d}):y):this.addToast({title:d,...p,dismissible:j,id:v}),v},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(c=>c({id:a,dismiss:!0})))):this.toasts.forEach(c=>{this.subscribers.forEach(d=>d({id:c.id,dismiss:!0}))}),a),this.message=(a,c)=>this.create({...c,message:a}),this.error=(a,c)=>this.create({...c,message:a,type:"error"}),this.success=(a,c)=>this.create({...c,type:"success",message:a}),this.info=(a,c)=>this.create({...c,type:"info",message:a}),this.warning=(a,c)=>this.create({...c,type:"warning",message:a}),this.loading=(a,c)=>this.create({...c,type:"loading",message:a}),this.promise=(a,c)=>{if(!c)return;let d;c.loading!==void 0&&(d=this.create({...c,promise:a,type:"loading",message:c.loading,description:typeof c.description!="function"?c.description:void 0}));const p=Promise.resolve(a instanceof Function?a():a);let v=d!==void 0,N;const j=p.then(async C=>{if(N=["resolve",C],se.isValidElement(C))v=!1,this.create({id:d,type:"default",message:C});else if(RU(C)&&!C.ok){v=!1;const f=typeof c.error=="function"?await c.error(`HTTP error! status: ${C.status}`):c.error,g=typeof c.description=="function"?await c.description(`HTTP error! status: ${C.status}`):c.description,G=typeof f=="object"&&!se.isValidElement(f)?f:{message:f};this.create({id:d,type:"error",description:g,...G})}else if(C instanceof Error){v=!1;const f=typeof c.error=="function"?await c.error(C):c.error,g=typeof c.description=="function"?await c.description(C):c.description,G=typeof f=="object"&&!se.isValidElement(f)?f:{message:f};this.create({id:d,type:"error",description:g,...G})}else if(c.success!==void 0){v=!1;const f=typeof c.success=="function"?await c.success(C):c.success,g=typeof c.description=="function"?await c.description(C):c.description,G=typeof f=="object"&&!se.isValidElement(f)?f:{message:f};this.create({id:d,type:"success",description:g,...G})}}).catch(async C=>{if(N=["reject",C],c.error!==void 0){v=!1;const M=typeof c.error=="function"?await c.error(C):c.error,f=typeof c.description=="function"?await c.description(C):c.description,A=typeof M=="object"&&!se.isValidElement(M)?M:{message:M};this.create({id:d,type:"error",description:f,...A})}}).finally(()=>{v&&(this.dismiss(d),d=void 0),c.finally==null||c.finally.call(c)}),y=()=>new Promise((C,M)=>j.then(()=>N[0]==="reject"?M(N[1]):C(N[1])).catch(M));return typeof d!="string"&&typeof d!="number"?{unwrap:y}:Object.assign(d,{unwrap:y})},this.custom=(a,c)=>{const d=(c==null?void 0:c.id)||Wh++;return this.create({jsx:a(d),id:d,...c}),d},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const An=new UU,CU=(i,a)=>{const c=(a==null?void 0:a.id)||Wh++;return An.addToast({title:i,...a,id:c}),c},RU=i=>i&&typeof i=="object"&&"ok"in i&&typeof i.ok=="boolean"&&"status"in i&&typeof i.status=="number",AU=CU,VU=()=>An.toasts,MU=()=>An.getActiveToasts(),ot=Object.assign(AU,{success:An.success,info:An.info,warning:An.warning,error:An.error,custom:An.custom,message:An.message,promise:An.promise,dismiss:An.dismiss,loading:An.loading},{getHistory:VU,getToasts:MU});xU("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Pd(i){return i.label!==void 0}const OU=3,PU="24px",kU="16px",XN=4e3,zU=356,HU=14,_U=45,BU=200;function Qs(...i){return i.filter(Boolean).join(" ")}function LU(i){const[a,c]=i.split("-"),d=[];return a&&d.push(a),c&&d.push(c),d}const qU=i=>{var a,c,d,p,v,N,j,y,C;const{invert:M,toast:f,unstyled:g,interacting:A,setHeights:G,visibleToasts:$,heights:H,index:I,toasts:Se,expanded:ne,removeToast:fe,defaultRichColors:de,closeButton:Ee,style:je,cancelButtonStyle:K,actionButtonStyle:J,className:ce="",descriptionClassName:oe="",duration:Ne,position:X,gap:W,expandByDefault:V,classNames:T,icons:k,closeButtonAriaLabel:z="Close toast"}=i,[ie,w]=se.useState(null),[Y,Z]=se.useState(null),[re,De]=se.useState(!1),[ke,be]=se.useState(!1),[Ge,pe]=se.useState(!1),[_e,Ie]=se.useState(!1),[Ct,on]=se.useState(!1),[Mn,Mr]=se.useState(0),[To,St]=se.useState(0),an=se.useRef(f.duration||Ne||XN),ms=se.useRef(null),On=se.useRef(null),Be=I===0,Js=I+1<=$,Pt=f.type,ln=f.dismissible!==!1,ja=f.className||"",Uo=f.descriptionClassName||"",Ws=se.useMemo(()=>H.findIndex(ue=>ue.toastId===f.id)||0,[H,f.id]),Co=se.useMemo(()=>{var ue;return(ue=f.closeButton)!=null?ue:Ee},[f.closeButton,Ee]),Or=se.useMemo(()=>f.duration||Ne||XN,[f.duration,Ne]),er=se.useRef(0),Pn=se.useRef(0),Pr=se.useRef(0),kn=se.useRef(null),[Us,zn]=X.split("-"),gn=se.useMemo(()=>H.reduce((ue,Te,We)=>We>=Ws?ue:ue+Te.height,0),[H,Ws]),fs=TU(),h=f.invert||M,R=Pt==="loading";Pn.current=se.useMemo(()=>Ws*W+gn,[Ws,gn]),se.useEffect(()=>{an.current=Or},[Or]),se.useEffect(()=>{De(!0)},[]),se.useEffect(()=>{const ue=On.current;if(ue){const Te=ue.getBoundingClientRect().height;return St(Te),G(We=>[{toastId:f.id,height:Te,position:f.position},...We]),()=>G(We=>We.filter(Et=>Et.toastId!==f.id))}},[G,f.id]),se.useLayoutEffect(()=>{if(!re)return;const ue=On.current,Te=ue.style.height;ue.style.height="auto";const We=ue.getBoundingClientRect().height;ue.style.height=Te,St(We),G(Et=>Et.find(Rt=>Rt.toastId===f.id)?Et.map(Rt=>Rt.toastId===f.id?{...Rt,height:We}:Rt):[{toastId:f.id,height:We,position:f.position},...Et])},[re,f.title,f.description,G,f.id,f.jsx,f.action,f.cancel]);const ee=se.useCallback(()=>{be(!0),Mr(Pn.current),G(ue=>ue.filter(Te=>Te.toastId!==f.id)),setTimeout(()=>{fe(f)},BU)},[f,fe,G,Pn]);se.useEffect(()=>{if(f.promise&&Pt==="loading"||f.duration===1/0||f.type==="loading")return;let ue;return ne||A||fs?(()=>{if(Pr.current<er.current){const Et=new Date().getTime()-er.current;an.current=an.current-Et}Pr.current=new Date().getTime()})():(()=>{an.current!==1/0&&(er.current=new Date().getTime(),ue=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),ee()},an.current))})(),()=>clearTimeout(ue)},[ne,A,f,Pt,fs,ee]),se.useEffect(()=>{f.delete&&(ee(),f.onDismiss==null||f.onDismiss.call(f,f))},[ee,f.delete]);function le(){var ue;if(k!=null&&k.loading){var Te;return se.createElement("div",{className:Qs(T==null?void 0:T.loader,f==null||(Te=f.classNames)==null?void 0:Te.loader,"sonner-loader"),"data-visible":Pt==="loading"},k.loading)}return se.createElement(NU,{className:Qs(T==null?void 0:T.loader,f==null||(ue=f.classNames)==null?void 0:ue.loader),visible:Pt==="loading"})}const we=f.icon||(k==null?void 0:k[Pt])||gU(Pt);var ze,Me;return se.createElement("li",{tabIndex:0,ref:On,className:Qs(ce,ja,T==null?void 0:T.toast,f==null||(a=f.classNames)==null?void 0:a.toast,T==null?void 0:T.default,T==null?void 0:T[Pt],f==null||(c=f.classNames)==null?void 0:c[Pt]),"data-sonner-toast":"","data-rich-colors":(ze=f.richColors)!=null?ze:de,"data-styled":!(f.jsx||f.unstyled||g),"data-mounted":re,"data-promise":!!f.promise,"data-swiped":Ct,"data-removed":ke,"data-visible":Js,"data-y-position":Us,"data-x-position":zn,"data-index":I,"data-front":Be,"data-swiping":Ge,"data-dismissible":ln,"data-type":Pt,"data-invert":h,"data-swipe-out":_e,"data-swipe-direction":Y,"data-expanded":!!(ne||V&&re),style:{"--index":I,"--toasts-before":I,"--z-index":Se.length-I,"--offset":`${ke?Mn:Pn.current}px`,"--initial-height":V?"auto":`${To}px`,...je,...f.style},onDragEnd:()=>{pe(!1),w(null),kn.current=null},onPointerDown:ue=>{R||!ln||(ms.current=new Date,Mr(Pn.current),ue.target.setPointerCapture(ue.pointerId),ue.target.tagName!=="BUTTON"&&(pe(!0),kn.current={x:ue.clientX,y:ue.clientY}))},onPointerUp:()=>{var ue,Te,We;if(_e||!ln)return;kn.current=null;const Et=Number(((ue=On.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),kr=Number(((Te=On.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Rt=new Date().getTime()-((We=ms.current)==null?void 0:We.getTime()),xt=ie==="x"?Et:kr,zr=Math.abs(xt)/Rt;if(Math.abs(xt)>=_U||zr>.11){Mr(Pn.current),f.onDismiss==null||f.onDismiss.call(f,f),Z(ie==="x"?Et>0?"right":"left":kr>0?"down":"up"),ee(),Ie(!0);return}else{var yn,Hn;(yn=On.current)==null||yn.style.setProperty("--swipe-amount-x","0px"),(Hn=On.current)==null||Hn.style.setProperty("--swipe-amount-y","0px")}on(!1),pe(!1),w(null)},onPointerMove:ue=>{var Te,We,Et;if(!kn.current||!ln||((Te=window.getSelection())==null?void 0:Te.toString().length)>0)return;const Rt=ue.clientY-kn.current.y,xt=ue.clientX-kn.current.x;var zr;const yn=(zr=i.swipeDirections)!=null?zr:LU(X);!ie&&(Math.abs(xt)>1||Math.abs(Rt)>1)&&w(Math.abs(xt)>Math.abs(Rt)?"x":"y");let Hn={x:0,y:0};const Jl=Cs=>1/(1.5+Math.abs(Cs)/20);if(ie==="y"){if(yn.includes("top")||yn.includes("bottom"))if(yn.includes("top")&&Rt<0||yn.includes("bottom")&&Rt>0)Hn.y=Rt;else{const Cs=Rt*Jl(Rt);Hn.y=Math.abs(Cs)<Math.abs(Rt)?Cs:Rt}}else if(ie==="x"&&(yn.includes("left")||yn.includes("right")))if(yn.includes("left")&&xt<0||yn.includes("right")&&xt>0)Hn.x=xt;else{const Cs=xt*Jl(xt);Hn.x=Math.abs(Cs)<Math.abs(xt)?Cs:xt}(Math.abs(Hn.x)>0||Math.abs(Hn.y)>0)&&on(!0),(We=On.current)==null||We.style.setProperty("--swipe-amount-x",`${Hn.x}px`),(Et=On.current)==null||Et.style.setProperty("--swipe-amount-y",`${Hn.y}px`)}},Co&&!f.jsx&&Pt!=="loading"?se.createElement("button",{"aria-label":z,"data-disabled":R,"data-close-button":!0,onClick:R||!ln?()=>{}:()=>{ee(),f.onDismiss==null||f.onDismiss.call(f,f)},className:Qs(T==null?void 0:T.closeButton,f==null||(d=f.classNames)==null?void 0:d.closeButton)},(Me=k==null?void 0:k.close)!=null?Me:DU):null,(Pt||f.icon||f.promise)&&f.icon!==null&&((k==null?void 0:k[Pt])!==null||f.icon)?se.createElement("div",{"data-icon":"",className:Qs(T==null?void 0:T.icon,f==null||(p=f.classNames)==null?void 0:p.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||le():null,f.type!=="loading"?we:null):null,se.createElement("div",{"data-content":"",className:Qs(T==null?void 0:T.content,f==null||(v=f.classNames)==null?void 0:v.content)},se.createElement("div",{"data-title":"",className:Qs(T==null?void 0:T.title,f==null||(N=f.classNames)==null?void 0:N.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?se.createElement("div",{"data-description":"",className:Qs(oe,Uo,T==null?void 0:T.description,f==null||(j=f.classNames)==null?void 0:j.description)},typeof f.description=="function"?f.description():f.description):null),se.isValidElement(f.cancel)?f.cancel:f.cancel&&Pd(f.cancel)?se.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||K,onClick:ue=>{Pd(f.cancel)&&ln&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ue),ee())},className:Qs(T==null?void 0:T.cancelButton,f==null||(y=f.classNames)==null?void 0:y.cancelButton)},f.cancel.label):null,se.isValidElement(f.action)?f.action:f.action&&Pd(f.action)?se.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||J,onClick:ue=>{Pd(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ue),!ue.defaultPrevented&&ee())},className:Qs(T==null?void 0:T.actionButton,f==null||(C=f.classNames)==null?void 0:C.actionButton)},f.action.label):null)};function ZN(){if(typeof window>"u"||typeof document>"u")return"ltr";const i=document.documentElement.getAttribute("dir");return i==="auto"||!i?window.getComputedStyle(document.documentElement).direction:i}function FU(i,a){const c={};return[i,a].forEach((d,p)=>{const v=p===1,N=v?"--mobile-offset":"--offset",j=v?kU:PU;function y(C){["top","right","bottom","left"].forEach(M=>{c[`${N}-${M}`]=typeof C=="number"?`${C}px`:C})}typeof d=="number"||typeof d=="string"?y(d):typeof d=="object"?["top","right","bottom","left"].forEach(C=>{d[C]===void 0?c[`${N}-${C}`]=j:c[`${N}-${C}`]=typeof d[C]=="number"?`${d[C]}px`:d[C]}):y(j)}),c}const YU=se.forwardRef(function(a,c){const{invert:d,position:p="bottom-right",hotkey:v=["altKey","KeyT"],expand:N,closeButton:j,className:y,offset:C,mobileOffset:M,theme:f="light",richColors:g,duration:A,style:G,visibleToasts:$=OU,toastOptions:H,dir:I=ZN(),gap:Se=HU,icons:ne,containerAriaLabel:fe="Notifications"}=a,[de,Ee]=se.useState([]),je=se.useMemo(()=>Array.from(new Set([p].concat(de.filter(Y=>Y.position).map(Y=>Y.position)))),[de,p]),[K,J]=se.useState([]),[ce,oe]=se.useState(!1),[Ne,X]=se.useState(!1),[W,V]=se.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),T=se.useRef(null),k=v.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=se.useRef(null),ie=se.useRef(!1),w=se.useCallback(Y=>{Ee(Z=>{var re;return(re=Z.find(De=>De.id===Y.id))!=null&&re.delete||An.dismiss(Y.id),Z.filter(({id:De})=>De!==Y.id)})},[]);return se.useEffect(()=>An.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{Ee(Z=>Z.map(re=>re.id===Y.id?{...re,delete:!0}:re))});return}setTimeout(()=>{vU.flushSync(()=>{Ee(Z=>{const re=Z.findIndex(De=>De.id===Y.id);return re!==-1?[...Z.slice(0,re),{...Z[re],...Y},...Z.slice(re+1)]:[Y,...Z]})})})}),[de]),se.useEffect(()=>{if(f!=="system"){V(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:Z})=>{V(Z?"dark":"light")})}catch{Y.addListener(({matches:re})=>{try{V(re?"dark":"light")}catch(De){console.error(De)}})}},[f]),se.useEffect(()=>{de.length<=1&&oe(!1)},[de]),se.useEffect(()=>{const Y=Z=>{var re;if(v.every(be=>Z[be]||Z.code===be)){var ke;oe(!0),(ke=T.current)==null||ke.focus()}Z.code==="Escape"&&(document.activeElement===T.current||(re=T.current)!=null&&re.contains(document.activeElement))&&oe(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[v]),se.useEffect(()=>{if(T.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,ie.current=!1)}},[T.current]),se.createElement("section",{ref:c,"aria-label":`${fe} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},je.map((Y,Z)=>{var re;const[De,ke]=Y.split("-");return de.length?se.createElement("ol",{key:Y,dir:I==="auto"?ZN():I,tabIndex:-1,ref:T,className:y,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":De,"data-x-position":ke,style:{"--front-toast-height":`${((re=K[0])==null?void 0:re.height)||0}px`,"--width":`${zU}px`,"--gap":`${Se}px`,...G,...FU(C,M)},onBlur:be=>{ie.current&&!be.currentTarget.contains(be.relatedTarget)&&(ie.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||ie.current||(ie.current=!0,z.current=be.relatedTarget)},onMouseEnter:()=>oe(!0),onMouseMove:()=>oe(!0),onMouseLeave:()=>{Ne||oe(!1)},onDragEnd:()=>oe(!1),onPointerDown:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},de.filter(be=>!be.position&&Z===0||be.position===Y).map((be,Ge)=>{var pe,_e;return se.createElement(qU,{key:be.id,icons:ne,index:Ge,toast:be,defaultRichColors:g,duration:(pe=H==null?void 0:H.duration)!=null?pe:A,className:H==null?void 0:H.className,descriptionClassName:H==null?void 0:H.descriptionClassName,invert:d,visibleToasts:$,closeButton:(_e=H==null?void 0:H.closeButton)!=null?_e:j,interacting:Ne,position:Y,style:H==null?void 0:H.style,unstyled:H==null?void 0:H.unstyled,classNames:H==null?void 0:H.classNames,cancelButtonStyle:H==null?void 0:H.cancelButtonStyle,actionButtonStyle:H==null?void 0:H.actionButtonStyle,closeButtonAriaLabel:H==null?void 0:H.closeButtonAriaLabel,removeToast:w,toasts:de.filter(Ie=>Ie.position==be.position),heights:K.filter(Ie=>Ie.position==be.position),setHeights:J,expandByDefault:N,gap:Se,expanded:ce,swipeDirections:a.swipeDirections})})):null}))}),GU=async()=>{const i=await fetch("http://localhost:3333/api/bundles");if(!i.ok)throw new Error("Failed to fetch bundles");return i.json()},$U=async i=>{const a=await fetch(`http://localhost:3333/api/bundle-categories/${i}`);if(!a.ok)throw new Error("Failed to fetch bundle categories");return a.json()},QU=async()=>{const i=await fetch("http://localhost:3333/api/files");if(!i.ok)throw new Error("Failed to fetch files");return(await i.json()).map(c=>c.path)};function IU(){const i=Il(),[a,c]=Q.useState(new Set),[d,p]=Q.useState({}),[v,N]=Q.useState(new Set),[j,y]=Q.useState([]),[C,M]=Q.useState(new Set),[f,g]=Q.useState(new Set),[A,G]=Q.useState(new Set),{data:$=[],isLoading:H,refetch:I}=js({queryKey:["bundles"],queryFn:GU,refetchInterval:5e3,refetchOnWindowFocus:!0}),Se=async V=>{const T=new Set(a);if(T.has(V))T.delete(V);else if(T.add(V),!d[V])try{const k=await $U(V);p(z=>({...z,[V]:k}))}catch(k){console.error("Failed to fetch bundle categories:",k),ot.error("Failed to load file categories")}c(T)},ne=V=>{switch(V){case"components":return l.jsxDEV(AT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:90,columnNumber:33},this);case"hooks":return l.jsxDEV(GT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:91,columnNumber:28},this);case"utilities":return l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:92,columnNumber:32},this);case"configuration":return l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:93,columnNumber:36},this);case"styles":return l.jsxDEV(F1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:94,columnNumber:29},this);case"types":return l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:95,columnNumber:28},this);case"tests":return l.jsxDEV(dU,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:96,columnNumber:28},this);case"documentation":return l.jsxDEV(yT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:97,columnNumber:36},this);default:return l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:98,columnNumber:23},this)}},fe=V=>{switch(V){case"components":return"bg-blue-100 text-blue-800 border-blue-200";case"hooks":return"bg-purple-100 text-purple-800 border-purple-200";case"utilities":return"bg-green-100 text-green-800 border-green-200";case"configuration":return"bg-orange-100 text-orange-800 border-orange-200";case"styles":return"bg-pink-100 text-pink-800 border-pink-200";case"types":return"bg-indigo-100 text-indigo-800 border-indigo-200";case"tests":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"documentation":return"bg-gray-100 text-gray-800 border-gray-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},de=async V=>{const T=new Set(v);if(T.has(V))T.delete(V);else if(T.add(V),j.length===0)try{const k=await QU();y(k)}catch(k){console.error("Failed to fetch files:",k),ot.error("Failed to load file list")}N(T)},Ee=(V,T)=>T.files.includes(V),je=(V,T)=>!$||!Array.isArray($)?[]:$.filter(k=>k.name!==T&&k.files.includes(V)).map(k=>k.name),K=async(V,T)=>{try{if(ce(`remove-${T}-${V}`,"loading"),console.log(`Removing ${V} from ${T}`),T==="master"){ce(`remove-${T}-${V}`,"error"),ot.error("Cannot modify master bundle files");return}const k=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:V,bundleName:T,forceHide:!0})});if(!k.ok){const ie=await k.text();throw console.error("API Error:",ie),new Error(`Failed to remove file: ${ie}`)}const z=await k.json();console.log("Remove API Response:",z),i.setQueryData(["bundles"],ie=>ie&&ie.map(w=>w.name===T?{...w,files:w.files.filter(Y=>Y!==V)}:w)),i.invalidateQueries({queryKey:["bundles"]}),i.invalidateQueries({queryKey:["hidden-files"]}),ce(`remove-${T}-${V}`,"success"),ot.success(`Hidden ${V} from ${T} bundle`)}catch(k){console.error("Failed to remove file:",k),ce(`remove-${T}-${V}`,"error"),ot.error(`Failed to remove file: ${k instanceof Error?k.message:"Unknown error"}`)}},J=async(V,T)=>{try{if(ce(`add-${T}-${V}`,"loading"),console.log(`Adding ${V} to ${T}`),T==="master"){ce(`add-${T}-${V}`,"error"),ot.error("Cannot modify master bundle files");return}const k=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:V,bundleName:T,forceHide:!1})});if(!k.ok){const ie=await k.text();throw console.error("API Error:",ie),new Error(`Failed to add file: ${ie}`)}const z=await k.json();console.log("Add API Response:",z),i.invalidateQueries({queryKey:["bundles"]}),await I(),ce(`add-${T}-${V}`,"success"),ot.success(`Added ${V}`)}catch(k){console.error("Failed to add file:",k),ce(`add-${T}-${V}`,"error"),ot.error(`Failed to add file: ${k instanceof Error?k.message:"Unknown error"}`)}},ce=(V,T)=>{M(k=>{const z=new Set(k);return T==="loading"?z.add(V):z.delete(V),z}),g(k=>{const z=new Set(k);return T==="success"?(z.add(V),setTimeout(()=>g(ie=>{const w=new Set(ie);return w.delete(V),w}),2e3)):z.delete(V),z}),G(k=>{const z=new Set(k);return T==="error"?(z.add(V),setTimeout(()=>G(ie=>{const w=new Set(ie);return w.delete(V),w}),3e3)):z.delete(V),z})},oe=async V=>{const T=`copy-${V}`;ce(T,"loading");try{const k=await fetch(`http://localhost:3333/api/bundles/${V}`);if(!k.ok)throw new Error("Failed to fetch bundle content");const z=await k.text();await navigator.clipboard.writeText(z),ce(T,"success"),ot.success(`Bundle "${V}" copied to clipboard!`)}catch(k){ce(T,"error"),ot.error(`Failed to copy bundle: ${k instanceof Error?k.message:"Unknown error"}`)}},Ne=async V=>{const T=`download-${V}`;ce(T,"loading");try{const k=await fetch(`http://localhost:3333/api/bundles/${V}`);if(!k.ok)throw new Error("Failed to fetch bundle content");const z=await k.text(),ie=new Blob([z],{type:"application/xml"}),w=URL.createObjectURL(ie),Y=document.createElement("a");Y.href=w,Y.download=`${V}-bundle.xml`,Y.click(),URL.revokeObjectURL(w),ce(T,"success"),ot.success(`Bundle "${V}" downloaded!`)}catch(k){ce(T,"error"),ot.error(`Failed to download bundle: ${k instanceof Error?k.message:"Unknown error"}`)}},X=async V=>{const T=`regen-${V}`;ce(T,"loading");try{if(!(await fetch(`http://localhost:3333/api/regenerate/${V}`,{method:"POST"})).ok)throw new Error("Failed to regenerate bundle");await I(),ce(T,"success"),ot.success(`Bundle "${V}" regenerated successfully!`)}catch(k){ce(T,"error"),ot.error(`Failed to regenerate bundle: ${k instanceof Error?k.message:"Unknown error"}`)}};if(H)return l.jsxDEV("div",{children:"Loading bundles..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:361,columnNumber:25},this);if(!$)return l.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:362,columnNumber:24},this);const W=async()=>{console.log("Manual refresh triggered"),i.removeQueries({queryKey:["bundles"]});const V=await I();console.log("Fresh bundles data:",V.data)};return l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("h2",{className:"text-lg font-semibold",children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:374,columnNumber:9},this),l.jsxDEV(Ce,{onClick:W,variant:"outline",size:"sm",children:[l.jsxDEV(Qd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:376,columnNumber:11},this),"Force Refresh"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:375,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:373,columnNumber:7},this),$&&Array.isArray($)?$.map(V=>{const T=`copy-${V.name}`,k=`download-${V.name}`,z=`regen-${V.name}`,ie=C.has(T),w=C.has(k),Y=C.has(z),Z=f.has(T),re=f.has(k),De=f.has(z),ke=A.has(T),be=A.has(k),Ge=A.has(z);return l.jsxDEV(nt,{className:V.changed?"border-yellow-500":"",children:[l.jsxDEV(gt,{children:l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV(yt,{className:"flex items-center gap-2",children:[V.name,l.jsxDEV(vt,{variant:V.changed?"destructive":"secondary",children:V.changed?"CHANGED":"SYNCED"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:400,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:398,columnNumber:17},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>de(V.name),disabled:V.name==="master",className:v.has(V.name)?"bg-blue-50 border-blue-200 text-blue-700":"",children:[v.has(V.name)?l.jsxDEV($1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:413,columnNumber:23},this):l.jsxDEV(JT,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:415,columnNumber:23},this),V.name==="master"?"Read Only":v.has(V.name)?"Cancel":"Edit Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:405,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>X(V.name),disabled:Y,className:`transition-all duration-200 ${De?"border-green-500 bg-green-50 text-green-700":Ge?"border-red-500 bg-red-50 text-red-700":Y?"opacity-75":""}`,children:[Y?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:430,columnNumber:23},this):De?l.jsxDEV(Ks,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:432,columnNumber:23},this):Ge?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:434,columnNumber:23},this):l.jsxDEV(Qd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:436,columnNumber:23},this),"Regenerate"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:419,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>oe(V.name),disabled:ie,className:`transition-all duration-200 ${Z?"border-green-500 bg-green-50 text-green-700":ke?"border-red-500 bg-red-50 text-red-700":ie?"opacity-75":""}`,children:[ie?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:451,columnNumber:23},this):Z?l.jsxDEV(Ks,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:453,columnNumber:23},this):ke?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:455,columnNumber:23},this):l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:457,columnNumber:23},this),"Copy XML"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:440,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ne(V.name),disabled:w,className:`transition-all duration-200 ${re?"border-green-500 bg-green-50 text-green-700":be?"border-red-500 bg-red-50 text-red-700":w?"opacity-75":""}`,children:[w?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:472,columnNumber:23},this):re?l.jsxDEV(Ks,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:474,columnNumber:23},this):be?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:476,columnNumber:23},this):l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:478,columnNumber:23},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:461,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:404,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:397,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:396,columnNumber:13},this),l.jsxDEV(at,{children:[l.jsxDEV("div",{className:"text-sm text-muted-foreground mb-3",children:[V.fileCount," files • ",(V.size/1024).toFixed(1),"kb",V.lastGenerated&&` • Generated ${new Date(V.lastGenerated).toLocaleTimeString()}`]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:486,columnNumber:15},this),l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:()=>Se(V.name),className:"p-0 h-auto font-normal",children:[a.has(V.name)?l.jsxDEV(B1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:501,columnNumber:21},this):l.jsxDEV(L1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:503,columnNumber:21},this),"View Files (",V.files.length,")"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:494,columnNumber:17},this),a.has(V.name)&&l.jsxDEV("div",{className:"ml-5 space-y-3",children:d[V.name]?l.jsxDEV(l.Fragment,{children:[l.jsxDEV("div",{className:"text-sm text-muted-foreground italic",children:d[V.name].purpose},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:513,columnNumber:25},this),d[V.name].entryPoints.length>0&&l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"bg-red-50 text-red-700 border-red-200",children:[l.jsxDEV(Al,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:522,columnNumber:33},this),"Entry Points"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:521,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",d[V.name].entryPoints.length,")"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:525,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:520,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1",children:d[V.name].entryPoints.map(pe=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:pe},pe,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:531,columnNumber:33},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:529,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:519,columnNumber:27},this),Object.entries(d[V.name].filesByType).map(([pe,_e])=>l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:fe(pe),children:[ne(pe),l.jsxDEV("span",{className:"ml-1 capitalize",children:pe},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:545,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:543,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",_e.length," files)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:547,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:542,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1 max-h-32 overflow-y-auto",children:v.has(V.name)?_e.map(Ie=>{const Ct=je(Ie,V.name),on=`remove-${V.name}-${Ie}`,Mn=C.has(on);return l.jsxDEV("div",{className:"flex items-center gap-2 text-sm",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>K(Ie,V.name),disabled:Mn,className:"h-6 w-6 p-0 border-red-200 hover:bg-red-50 hover:border-red-300",children:Mn?l.jsxDEV(jc,{className:"w-3 h-3 animate-spin"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:568,columnNumber:43},this):l.jsxDEV(XT,{className:"w-3 h-3 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:570,columnNumber:43},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:560,columnNumber:39},this),l.jsxDEV("span",{className:"font-mono flex-1 text-foreground",children:Ie},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:573,columnNumber:39},this),Ct.length>0&&l.jsxDEV(vt,{variant:"outline",className:"text-xs bg-yellow-50 text-yellow-700",children:["Also in: ",Ct.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:577,columnNumber:41},this)]},Ie,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:559,columnNumber:37},this)}):_e.map(Ie=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:Ie},Ie,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:587,columnNumber:35},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:551,columnNumber:29},this)]},pe,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:541,columnNumber:27},this)),v.has(V.name)&&l.jsxDEV("div",{className:"space-y-2 mt-6 pt-4 border-t border-gray-200",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-300",children:[l.jsxDEV(Vl,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:601,columnNumber:33},this),"Available Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:600,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:"(Click + to add to bundle)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:604,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:599,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1 max-h-40 overflow-y-auto",children:j.filter(pe=>!Ee(pe,V)).map(pe=>{const _e=je(pe,V.name),Ie=`add-${V.name}-${pe}`,Ct=C.has(Ie);return l.jsxDEV("div",{className:"flex items-center gap-2 text-sm",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>J(pe,V.name),disabled:Ct,className:"h-6 w-6 p-0 border-green-200 hover:bg-green-50 hover:border-green-300",children:Ct?l.jsxDEV(jc,{className:"w-3 h-3 animate-spin"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:625,columnNumber:43},this):l.jsxDEV(Vl,{className:"w-3 h-3 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:627,columnNumber:43},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:617,columnNumber:39},this),l.jsxDEV("span",{className:"font-mono flex-1 text-muted-foreground",children:pe},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:630,columnNumber:39},this),_e.length>0&&l.jsxDEV(vt,{variant:"outline",className:"text-xs bg-yellow-50 text-yellow-700",children:["In: ",_e.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:634,columnNumber:41},this)]},pe,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:616,columnNumber:37},this)})},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:608,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:598,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:511,columnNumber:23},this):l.jsxDEV("div",{className:"space-y-1 max-h-40 overflow-y-auto",children:V.files.map(pe=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:pe},pe,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:650,columnNumber:27},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:648,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:509,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:493,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:485,columnNumber:13},this)]},V.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:395,columnNumber:11},this)}):l.jsxDEV("div",{children:"No bundles available"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:662,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:372,columnNumber:5},this)}const XU=async()=>{const i=await fetch("http://localhost:3333/api/bundles");if(!i.ok)throw new Error("Failed to fetch bundles");return i.json()},KN=i=>{const a={name:"",path:"",type:"directory",children:[]},c=new Set,d=new Map;i.forEach(v=>{v.files.forEach(N=>{c.add(N),d.has(N)||d.set(N,[]),d.get(N).push(v.name)})}),c.forEach(v=>{const N=v.split("/");let j=a;N.forEach((y,C)=>{const M=C===N.length-1,f=N.slice(0,C+1).join("/");j.children||(j.children=[]);let g=j.children.find(A=>A.name===y);g||(g={name:y,path:f,type:M?"file":"directory",children:M?void 0:[],bundles:M?d.get(v):void 0},j.children.push(g)),M||(j=g)})});const p=v=>{v.children&&(v.children.sort((N,j)=>N.type!==j.type?N.type==="directory"?-1:1:N.name.localeCompare(j.name)),v.children.forEach(p))};return p(a),a},ZU=i=>{if(i===0)return"0 B";const a=1024,c=["B","KB","MB","GB"],d=Math.floor(Math.log(i)/Math.log(a));return parseFloat((i/Math.pow(a,d)).toFixed(1))+" "+c[d]};function Q1({node:i,level:a,expandedDirs:c,onToggleDir:d}){const p=c.has(i.path),v=a*16;if(i.type==="directory")return l.jsxDEV("div",{children:[l.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded cursor-pointer",style:{paddingLeft:`${v+8}px`},onClick:()=>d(i.path),children:[p?l.jsxDEV(B1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:119,columnNumber:13},this):l.jsxDEV(L1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:121,columnNumber:13},this),p?l.jsxDEV(_d,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:124,columnNumber:13},this):l.jsxDEV(F1,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:126,columnNumber:13},this),l.jsxDEV("span",{className:"text-sm font-medium",children:i.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:128,columnNumber:11},this),i.children&&l.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:[i.children.length," items"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:130,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:113,columnNumber:9},this),p&&i.children&&l.jsxDEV("div",{children:i.children.map(j=>l.jsxDEV(Q1,{node:j,level:a+1,expandedDirs:c,onToggleDir:d},j.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:139,columnNumber:15},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:112,columnNumber:7},this);const N=j=>{var M;const y=(M=j.split(".").pop())==null?void 0:M.toLowerCase(),C="w-4 h-4";switch(y){case"js":case"ts":case"jsx":case"tsx":return l.jsxDEV(Tl,{className:`${C} text-yellow-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:163,columnNumber:16},this);case"json":return l.jsxDEV(Tl,{className:`${C} text-green-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:165,columnNumber:16},this);case"md":return l.jsxDEV(Tl,{className:`${C} text-blue-400`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:167,columnNumber:16},this);case"css":case"scss":return l.jsxDEV(Tl,{className:`${C} text-pink-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:170,columnNumber:16},this);case"html":return l.jsxDEV(Tl,{className:`${C} text-orange-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:172,columnNumber:16},this);default:return l.jsxDEV(Tl,{className:`${C} text-muted-foreground`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:174,columnNumber:16},this)}};return l.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded",style:{paddingLeft:`${v+24}px`},children:[N(i.name),l.jsxDEV("span",{className:"text-sm font-mono",children:i.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:184,columnNumber:7},this),i.bundles&&i.bundles.length>0&&l.jsxDEV("div",{className:"flex gap-1 ml-2",children:i.bundles.map(j=>l.jsxDEV(vt,{variant:"outline",className:"text-xs px-1 py-0",children:j},j,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:189,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:187,columnNumber:9},this),i.size&&l.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:ZU(i.size)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:201,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:179,columnNumber:5},this)}function KU(){const[i,a]=Q.useState(new Set([""])),{data:c,isLoading:d}=js({queryKey:["bundles"],queryFn:XU,refetchInterval:5e3}),p=C=>{const M=new Set(i);M.has(C)?M.delete(C):M.add(C),a(M)},v=()=>{if(!c)return;const C=KN(c),M=new Set,f=g=>{var A;g.type==="directory"&&(M.add(g.path),(A=g.children)==null||A.forEach(f))};f(C),a(M)},N=()=>{a(new Set([""]))};if(d)return l.jsxDEV("div",{children:"Loading file tree..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:250,columnNumber:25},this);if(!c)return l.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:251,columnNumber:24},this);const j=KN(c),y=c.reduce((C,M)=>C+M.files.length,0);return l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:v,children:"Expand All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:261,columnNumber:11},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:N,children:"Collapse All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:264,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:260,columnNumber:9},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:[y," files tracked"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:259,columnNumber:7},this),l.jsxDEV(nt,{className:"p-4",children:l.jsxDEV("div",{className:"space-y-1 max-h-96 overflow-y-auto",children:j.children&&j.children.length>0?j.children.map(C=>l.jsxDEV(Q1,{node:C,level:0,expandedDirs:i,onToggleDir:p},C.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:279,columnNumber:15},this)):l.jsxDEV("div",{className:"text-center text-muted-foreground py-8",children:"No files found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:288,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:276,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:275,columnNumber:7},this),l.jsxDEV(nt,{className:"p-4",children:[l.jsxDEV("h3",{className:"text-sm font-medium mb-2",children:"Bundle Legend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:297,columnNumber:9},this),l.jsxDEV("div",{className:"flex flex-wrap gap-2",children:c.map(C=>l.jsxDEV(vt,{variant:"outline",children:[C.name," (",C.files.length,")"]},C.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:300,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:298,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:296,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:257,columnNumber:5},this)}function Rl({className:i,type:a,...c}){return l.jsxDEV("input",{type:a,"data-slot":"input",className:Vn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...c},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/input.tsx",lineNumber:7,columnNumber:5},this)}function Ar(i,a,{checkForDefaultPrevented:c=!0}={}){return function(p){if(i==null||i(p),c===!1||!p.defaultPrevented)return a==null?void 0:a(p)}}function ab(i,a=[]){let c=[];function d(v,N){const j=Q.createContext(N),y=c.length;c=[...c,N];const C=f=>{var I;const{scope:g,children:A,...G}=f,$=((I=g==null?void 0:g[i])==null?void 0:I[y])||j,H=Q.useMemo(()=>G,Object.values(G));return jt.jsx($.Provider,{value:H,children:A})};C.displayName=v+"Provider";function M(f,g){var $;const A=(($=g==null?void 0:g[i])==null?void 0:$[y])||j,G=Q.useContext(A);if(G)return G;if(N!==void 0)return N;throw new Error(`\`${f}\` must be used within \`${v}\``)}return[C,M]}const p=()=>{const v=c.map(N=>Q.createContext(N));return function(j){const y=(j==null?void 0:j[i])||v;return Q.useMemo(()=>({[`__scope${i}`]:{...j,[i]:y}}),[j,y])}};return p.scopeName=i,[d,JU(p,...a)]}function JU(...i){const a=i[0];if(i.length===1)return a;const c=()=>{const d=i.map(p=>({useScope:p(),scopeName:p.scopeName}));return function(v){const N=d.reduce((j,{useScope:y,scopeName:C})=>{const f=y(v)[`__scope${C}`];return{...j,...f}},{});return Q.useMemo(()=>({[`__scope${a.scopeName}`]:N}),[N])}};return c.scopeName=a.scopeName,c}function WU(i){const a=i+"CollectionProvider",[c,d]=ab(a),[p,v]=c(a,{collectionRef:{current:null},itemMap:new Map}),N=$=>{const{scope:H,children:I}=$,Se=se.useRef(null),ne=se.useRef(new Map).current;return jt.jsx(p,{scope:H,itemMap:ne,collectionRef:Se,children:I})};N.displayName=a;const j=i+"CollectionSlot",y=Gd(j),C=se.forwardRef(($,H)=>{const{scope:I,children:Se}=$,ne=v(j,I),fe=Yd(H,ne.collectionRef);return jt.jsx(y,{ref:fe,children:Se})});C.displayName=j;const M=i+"CollectionItemSlot",f="data-radix-collection-item",g=Gd(M),A=se.forwardRef(($,H)=>{const{scope:I,children:Se,...ne}=$,fe=se.useRef(null),de=Yd(H,fe),Ee=v(M,I);return se.useEffect(()=>(Ee.itemMap.set(fe,{ref:fe,...ne}),()=>void Ee.itemMap.delete(fe))),jt.jsx(g,{[f]:"",ref:de,children:Se})});A.displayName=M;function G($){const H=v(i+"CollectionConsumer",$);return se.useCallback(()=>{const Se=H.collectionRef.current;if(!Se)return[];const ne=Array.from(Se.querySelectorAll(`[${f}]`));return Array.from(H.itemMap.values()).sort((Ee,je)=>ne.indexOf(Ee.ref.current)-ne.indexOf(je.ref.current))},[H.collectionRef,H.itemMap])}return[{Provider:N,Slot:C,ItemSlot:A},G,d]}var Xd=globalThis!=null&&globalThis.document?Q.useLayoutEffect:()=>{},e3=d1[" useId ".trim().toString()]||(()=>{}),t3=0;function I1(i){const[a,c]=Q.useState(e3());return Xd(()=>{c(d=>d??String(t3++))},[i]),i||(a?`radix-${a}`:"")}var n3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kl=n3.reduce((i,a)=>{const c=Gd(`Primitive.${a}`),d=Q.forwardRef((p,v)=>{const{asChild:N,...j}=p,y=N?c:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jt.jsx(y,{...j,ref:v})});return d.displayName=`Primitive.${a}`,{...i,[a]:d}},{});function s3(i){const a=Q.useRef(i);return Q.useEffect(()=>{a.current=i}),Q.useMemo(()=>(...c)=>{var d;return(d=a.current)==null?void 0:d.call(a,...c)},[])}var r3=d1[" useInsertionEffect ".trim().toString()]||Xd;function X1({prop:i,defaultProp:a,onChange:c=()=>{},caller:d}){const[p,v,N]=o3({defaultProp:a,onChange:c}),j=i!==void 0,y=j?i:p;{const M=Q.useRef(i!==void 0);Q.useEffect(()=>{const f=M.current;f!==j&&console.warn(`${d} is changing from ${f?"controlled":"uncontrolled"} to ${j?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),M.current=j},[j,d])}const C=Q.useCallback(M=>{var f;if(j){const g=a3(M)?M(i):M;g!==i&&((f=N.current)==null||f.call(N,g))}else v(M)},[j,i,v,N]);return[y,C]}function o3({defaultProp:i,onChange:a}){const[c,d]=Q.useState(i),p=Q.useRef(c),v=Q.useRef(a);return r3(()=>{v.current=a},[a]),Q.useEffect(()=>{var N;p.current!==c&&((N=v.current)==null||N.call(v,c),p.current=c)},[c,p]),[c,d,v]}function a3(i){return typeof i=="function"}var l3=Q.createContext(void 0);function Z1(i){const a=Q.useContext(l3);return i||a||"ltr"}var Mh="rovingFocusGroup.onEntryFocus",i3={bubbles:!1,cancelable:!0},Pc="RovingFocusGroup",[eb,K1,c3]=WU(Pc),[u3,J1]=ab(Pc,[c3]),[d3,m3]=u3(Pc),W1=Q.forwardRef((i,a)=>jt.jsx(eb.Provider,{scope:i.__scopeRovingFocusGroup,children:jt.jsx(eb.Slot,{scope:i.__scopeRovingFocusGroup,children:jt.jsx(f3,{...i,ref:a})})}));W1.displayName=Pc;var f3=Q.forwardRef((i,a)=>{const{__scopeRovingFocusGroup:c,orientation:d,loop:p=!1,dir:v,currentTabStopId:N,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:y,onEntryFocus:C,preventScrollOnEntryFocus:M=!1,...f}=i,g=Q.useRef(null),A=Yd(a,g),G=Z1(v),[$,H]=X1({prop:N,defaultProp:j??null,onChange:y,caller:Pc}),[I,Se]=Q.useState(!1),ne=s3(C),fe=K1(c),de=Q.useRef(!1),[Ee,je]=Q.useState(0);return Q.useEffect(()=>{const K=g.current;if(K)return K.addEventListener(Mh,ne),()=>K.removeEventListener(Mh,ne)},[ne]),jt.jsx(d3,{scope:c,orientation:d,dir:G,loop:p,currentTabStopId:$,onItemFocus:Q.useCallback(K=>H(K),[H]),onItemShiftTab:Q.useCallback(()=>Se(!0),[]),onFocusableItemAdd:Q.useCallback(()=>je(K=>K+1),[]),onFocusableItemRemove:Q.useCallback(()=>je(K=>K-1),[]),children:jt.jsx(Kl.div,{tabIndex:I||Ee===0?-1:0,"data-orientation":d,...f,ref:A,style:{outline:"none",...i.style},onMouseDown:Ar(i.onMouseDown,()=>{de.current=!0}),onFocus:Ar(i.onFocus,K=>{const J=!de.current;if(K.target===K.currentTarget&&J&&!I){const ce=new CustomEvent(Mh,i3);if(K.currentTarget.dispatchEvent(ce),!ce.defaultPrevented){const oe=fe().filter(T=>T.focusable),Ne=oe.find(T=>T.active),X=oe.find(T=>T.id===$),V=[Ne,X,...oe].filter(Boolean).map(T=>T.ref.current);nw(V,M)}}de.current=!1}),onBlur:Ar(i.onBlur,()=>Se(!1))})})}),ew="RovingFocusGroupItem",tw=Q.forwardRef((i,a)=>{const{__scopeRovingFocusGroup:c,focusable:d=!0,active:p=!1,tabStopId:v,children:N,...j}=i,y=I1(),C=v||y,M=m3(ew,c),f=M.currentTabStopId===C,g=K1(c),{onFocusableItemAdd:A,onFocusableItemRemove:G,currentTabStopId:$}=M;return Q.useEffect(()=>{if(d)return A(),()=>G()},[d,A,G]),jt.jsx(eb.ItemSlot,{scope:c,id:C,focusable:d,active:p,children:jt.jsx(Kl.span,{tabIndex:f?0:-1,"data-orientation":M.orientation,...j,ref:a,onMouseDown:Ar(i.onMouseDown,H=>{d?M.onItemFocus(C):H.preventDefault()}),onFocus:Ar(i.onFocus,()=>M.onItemFocus(C)),onKeyDown:Ar(i.onKeyDown,H=>{if(H.key==="Tab"&&H.shiftKey){M.onItemShiftTab();return}if(H.target!==H.currentTarget)return;const I=b3(H,M.orientation,M.dir);if(I!==void 0){if(H.metaKey||H.ctrlKey||H.altKey||H.shiftKey)return;H.preventDefault();let ne=g().filter(fe=>fe.focusable).map(fe=>fe.ref.current);if(I==="last")ne.reverse();else if(I==="prev"||I==="next"){I==="prev"&&ne.reverse();const fe=ne.indexOf(H.currentTarget);ne=M.loop?v3(ne,fe+1):ne.slice(fe+1)}setTimeout(()=>nw(ne))}}),children:typeof N=="function"?N({isCurrentTabStop:f,hasTabStop:$!=null}):N})})});tw.displayName=ew;var p3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function h3(i,a){return a!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function b3(i,a,c){const d=h3(i.key,c);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(d))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(d)))return p3[d]}function nw(i,a=!1){const c=document.activeElement;for(const d of i)if(d===c||(d.focus({preventScroll:a}),document.activeElement!==c))return}function v3(i,a){return i.map((c,d)=>i[(a+d)%i.length])}var x3=W1,g3=tw;function y3(i,a){return Q.useReducer((c,d)=>a[c][d]??c,i)}var sw=i=>{const{present:a,children:c}=i,d=N3(a),p=typeof c=="function"?c({present:d.isPresent}):Q.Children.only(c),v=Yd(d.ref,w3(p));return typeof c=="function"||d.isPresent?Q.cloneElement(p,{ref:v}):null};sw.displayName="Presence";function N3(i){const[a,c]=Q.useState(),d=Q.useRef(null),p=Q.useRef(i),v=Q.useRef("none"),N=i?"mounted":"unmounted",[j,y]=y3(N,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const C=kd(d.current);v.current=j==="mounted"?C:"none"},[j]),Xd(()=>{const C=d.current,M=p.current;if(M!==i){const g=v.current,A=kd(C);i?y("MOUNT"):A==="none"||(C==null?void 0:C.display)==="none"?y("UNMOUNT"):y(M&&g!==A?"ANIMATION_OUT":"UNMOUNT"),p.current=i}},[i,y]),Xd(()=>{if(a){let C;const M=a.ownerDocument.defaultView??window,f=A=>{const $=kd(d.current).includes(A.animationName);if(A.target===a&&$&&(y("ANIMATION_END"),!p.current)){const H=a.style.animationFillMode;a.style.animationFillMode="forwards",C=M.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=H)})}},g=A=>{A.target===a&&(v.current=kd(d.current))};return a.addEventListener("animationstart",g),a.addEventListener("animationcancel",f),a.addEventListener("animationend",f),()=>{M.clearTimeout(C),a.removeEventListener("animationstart",g),a.removeEventListener("animationcancel",f),a.removeEventListener("animationend",f)}}else y("ANIMATION_END")},[a,y]),{isPresent:["mounted","unmountSuspended"].includes(j),ref:Q.useCallback(C=>{d.current=C?getComputedStyle(C):null,c(C)},[])}}function kd(i){return(i==null?void 0:i.animationName)||"none"}function w3(i){var d,p;let a=(d=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:d.get,c=a&&"isReactWarning"in a&&a.isReactWarning;return c?i.ref:(a=(p=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:p.get,c=a&&"isReactWarning"in a&&a.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}var Zd="Tabs",[S3,sC]=ab(Zd,[J1]),rw=J1(),[E3,lb]=S3(Zd),ow=Q.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,onValueChange:p,defaultValue:v,orientation:N="horizontal",dir:j,activationMode:y="automatic",...C}=i,M=Z1(j),[f,g]=X1({prop:d,onChange:p,defaultProp:v??"",caller:Zd});return jt.jsx(E3,{scope:c,baseId:I1(),value:f,onValueChange:g,orientation:N,dir:M,activationMode:y,children:jt.jsx(Kl.div,{dir:M,"data-orientation":N,...C,ref:a})})});ow.displayName=Zd;var aw="TabsList",lw=Q.forwardRef((i,a)=>{const{__scopeTabs:c,loop:d=!0,...p}=i,v=lb(aw,c),N=rw(c);return jt.jsx(x3,{asChild:!0,...N,orientation:v.orientation,dir:v.dir,loop:d,children:jt.jsx(Kl.div,{role:"tablist","aria-orientation":v.orientation,...p,ref:a})})});lw.displayName=aw;var iw="TabsTrigger",cw=Q.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,disabled:p=!1,...v}=i,N=lb(iw,c),j=rw(c),y=mw(N.baseId,d),C=fw(N.baseId,d),M=d===N.value;return jt.jsx(g3,{asChild:!0,...j,focusable:!p,active:M,children:jt.jsx(Kl.button,{type:"button",role:"tab","aria-selected":M,"aria-controls":C,"data-state":M?"active":"inactive","data-disabled":p?"":void 0,disabled:p,id:y,...v,ref:a,onMouseDown:Ar(i.onMouseDown,f=>{!p&&f.button===0&&f.ctrlKey===!1?N.onValueChange(d):f.preventDefault()}),onKeyDown:Ar(i.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&N.onValueChange(d)}),onFocus:Ar(i.onFocus,()=>{const f=N.activationMode!=="manual";!M&&!p&&f&&N.onValueChange(d)})})})});cw.displayName=iw;var uw="TabsContent",dw=Q.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,forceMount:p,children:v,...N}=i,j=lb(uw,c),y=mw(j.baseId,d),C=fw(j.baseId,d),M=d===j.value,f=Q.useRef(M);return Q.useEffect(()=>{const g=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(g)},[]),jt.jsx(sw,{present:p||M,children:({present:g})=>jt.jsx(Kl.div,{"data-state":M?"active":"inactive","data-orientation":j.orientation,role:"tabpanel","aria-labelledby":y,hidden:!g,id:C,tabIndex:0,...N,ref:a,style:{...i.style,animationDuration:f.current?"0s":void 0},children:g&&v})})});dw.displayName=uw;function mw(i,a){return`${i}-trigger-${a}`}function fw(i,a){return`${i}-content-${a}`}var j3=ow,D3=lw,T3=cw,U3=dw;function Kd({className:i,...a}){return l.jsxDEV(j3,{"data-slot":"tabs",className:Vn("flex flex-col gap-2",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:11,columnNumber:5},this)}function Jd({className:i,...a}){return l.jsxDEV(D3,{"data-slot":"tabs-list",className:Vn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:24,columnNumber:5},this)}function Ds({className:i,...a}){return l.jsxDEV(T3,{"data-slot":"tabs-trigger",className:Vn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:40,columnNumber:5},this)}function Ts({className:i,...a}){return l.jsxDEV(U3,{"data-slot":"tabs-content",className:Vn("flex-1 outline-none",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:56,columnNumber:5},this)}const C3=async()=>{const i=await fetch("http://localhost:3333/api/config");if(!i.ok)throw new Error("Failed to fetch config");return i.json()},R3=async i=>{if(!(await fetch("http://localhost:3333/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok)throw new Error("Failed to save config")},A3=async()=>{const i=await fetch("http://localhost:3333/api/files");if(!i.ok)throw new Error("Failed to fetch files");return i.json()},V3=async i=>{const a=await fetch("http://localhost:3333/api/test-pattern",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pattern:i})});if(!a.ok)throw new Error("Failed to test pattern");return a.json()};function M3(){const i=Il(),[a,c]=Q.useState(null),[d,p]=Q.useState(!1),[v,N]=Q.useState("name"),[j,y]=Q.useState(""),[C,M]=Q.useState(new Set),[f,g]=Q.useState([]),[A,G]=Q.useState(-1),[$,H]=Q.useState(""),[I,Se]=Q.useState([]),{data:ne,isLoading:fe}=js({queryKey:["config"],queryFn:C3}),{data:de,isLoading:Ee}=js({queryKey:["project-files"],queryFn:A3}),je=fa({mutationFn:R3,onSuccess:()=>{i.invalidateQueries({queryKey:["config"]}),i.invalidateQueries({queryKey:["bundles"]}),c(null),p(!1),y(""),M(new Set),g([]),N("name"),ot.success("Bundle configuration saved!")},onError:W=>{ot.error(`Failed to save: ${W.message}`)}}),K=W=>{const V=[],T=new Set;return W.forEach(k=>{const z=k.split("/").slice(0,-1).join("/");z&&T.add(z)}),T.forEach(k=>{W.filter(ie=>ie.startsWith(k+"/")).length>1&&V.push(`${k}/**/*`)}),W.forEach(k=>{V.some(ie=>new RegExp(ie.replace(/\*\*/g,".*").replace(/\*/g,"[^/]*")).test(k))||V.push(k)}),V.length>0?V:W},J=()=>{if(!ne||!j.trim())return;const W=f.length>0?f:Array.from(C),V={...ne,bundles:{...ne.bundles,[j]:W}};je.mutate(V)},ce=W=>{if(!ne)return;const{[W]:V,...T}=ne.bundles,k={...ne,bundles:T};je.mutate(k)},oe=(W,V)=>{if(!ne)return;const T={...ne,bundles:{...ne.bundles,[W]:V}};je.mutate(T)},Ne=async()=>{if($.trim())try{const W=await V3($);Se(W)}catch{ot.error("Failed to test pattern")}},X=(W,V,T)=>{const k=new Set(C);if(T!=null&&T.shiftKey&&A>=0&&de){const z=Math.min(A,V),ie=Math.max(A,V);for(let w=z;w<=ie;w++)de[w]&&k.add(de[w].path)}else k.has(W)?k.delete(W):k.add(W);if(M(k),G(V),k.size>0){const z=K(Array.from(k));g(z)}else g([])};return fe||Ee?l.jsxDEV("div",{className:"p-4",children:"Loading..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:216,columnNumber:12},this):l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center justify-between",children:["Bundle Configuration",l.jsxDEV(Ce,{onClick:()=>p(!0),size:"sm",children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:228,columnNumber:13},this),"Create Bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:224,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:222,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:221,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-6",children:[d&&l.jsxDEV(nt,{className:"border-2 border-blue-200 bg-blue-50/50",children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"text-lg",children:"Create New Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:238,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:237,columnNumber:13},this),l.jsxDEV(at,{children:l.jsxDEV(Kd,{value:v,onValueChange:W=>N(W),children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-3",children:[l.jsxDEV(Ds,{value:"name",children:"1. Name"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:243,columnNumber:19},this),l.jsxDEV(Ds,{value:"files",disabled:!j.trim(),children:"2. Select Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:244,columnNumber:19},this),l.jsxDEV(Ds,{value:"patterns",disabled:C.size===0,children:"3. Review"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:245,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:242,columnNumber:17},this),l.jsxDEV(Ts,{value:"name",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Bundle Name"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:250,columnNumber:21},this),l.jsxDEV(Rl,{placeholder:"e.g., frontend, api, components",value:j,onChange:W=>y(W.target.value)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:251,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:249,columnNumber:19},this),l.jsxDEV(Ce,{onClick:()=>N("files"),disabled:!j.trim(),children:"Next: Select Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:257,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:248,columnNumber:17},this),l.jsxDEV(Ts,{value:"files",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[l.jsxDEV("label",{className:"text-sm font-medium",children:['Select Files for "',j,'"']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:268,columnNumber:23},this),l.jsxDEV(vt,{variant:"outline",children:[C.size," selected"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:269,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:267,columnNumber:21},this),l.jsxDEV("div",{className:"text-xs text-muted-foreground mb-2",children:"Click to select files. Hold Shift and click to select ranges."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:272,columnNumber:21},this),l.jsxDEV("div",{className:"max-h-64 overflow-y-auto border rounded-lg p-3 space-y-1",children:de==null?void 0:de.map((W,V)=>l.jsxDEV("div",{className:"flex items-center gap-2 p-2 hover:bg-gray-50 rounded cursor-pointer select-none",onClick:T=>X(W.path,V,T),children:[C.has(W.path)?l.jsxDEV(DT,{className:"w-4 h-4 text-blue-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:284,columnNumber:29},this):l.jsxDEV(q1,{className:"w-4 h-4 text-gray-400"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:286,columnNumber:29},this),l.jsxDEV("span",{className:"text-sm font-mono flex-1",children:W.path},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:288,columnNumber:27},this),l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:W.type},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:289,columnNumber:27},this)]},W.path,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:278,columnNumber:25},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:276,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:266,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>N("name"),children:"Back"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:296,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>N("patterns"),disabled:C.size===0,children:"Next: Review Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:299,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:295,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:265,columnNumber:17},this),l.jsxDEV(Ts,{value:"patterns",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Generated Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:310,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-2 mt-2",children:[f.map((W,V)=>l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{value:W,onChange:T=>{const k=[...f];k[V]=T.target.value,g(k)},className:"font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:314,columnNumber:27},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>{const T=f.filter((k,z)=>z!==V);g(T)},children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:331,columnNumber:29},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:323,columnNumber:27},this)]},V,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:313,columnNumber:25},this)),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>g([...f,"**/*"]),children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:340,columnNumber:25},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:335,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:311,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:309,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>N("files"),children:"Back"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:347,columnNumber:21},this),l.jsxDEV(Ce,{variant:"outline",onClick:()=>p(!1),children:"Cancel"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:350,columnNumber:21},this),l.jsxDEV(Ce,{onClick:J,disabled:je.isPending,children:"Create Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:353,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:346,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:308,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:241,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:240,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:236,columnNumber:11},this),l.jsxDEV("div",{className:"space-y-4",children:ne&&Object.entries(ne.bundles).map(([W,V])=>l.jsxDEV("div",{className:"border rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[l.jsxDEV("h3",{className:"font-medium",children:W},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:368,columnNumber:17},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>c(a===W?null:W),children:a===W?"Done":"Edit"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:370,columnNumber:19},this),W!=="master"&&l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>ce(W),children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:383,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:378,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:369,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:367,columnNumber:15},this),a===W?l.jsxDEV("div",{className:"space-y-2",children:[V.map((T,k)=>l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{value:T,onChange:z=>{const ie=[...V];ie[k]=z.target.value,oe(W,ie)},placeholder:"e.g., src/**/*.ts",className:"font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:393,columnNumber:23},this),V.length>1&&l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>{const z=V.filter((ie,w)=>w!==k);oe(W,z)},children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:412,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:404,columnNumber:25},this)]},k,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:392,columnNumber:21},this)),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>oe(W,[...V,"**/*"]),children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:422,columnNumber:21},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:417,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:390,columnNumber:17},this):l.jsxDEV("div",{className:"flex flex-wrap gap-1",children:V.map((T,k)=>l.jsxDEV(vt,{variant:"secondary",className:"font-mono text-xs",children:T},k,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:429,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:427,columnNumber:17},this)]},W,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:366,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:364,columnNumber:9},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Test a Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:442,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:441,columnNumber:11},this),l.jsxDEV(at,{className:"space-y-3",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{placeholder:"e.g., src/**/*.ts",value:$,onChange:W=>H(W.target.value),className:"font-mono"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:446,columnNumber:15},this),l.jsxDEV(Ce,{onClick:Ne,children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:453,columnNumber:17},this),"Test"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:452,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:445,columnNumber:13},this),I.length>0&&l.jsxDEV("div",{className:"mt-3",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground mb-2",children:["Found ",I.length," files:"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:460,columnNumber:17},this),l.jsxDEV("div",{className:"max-h-32 overflow-y-auto text-xs space-y-1 bg-muted/50 p-2 rounded font-mono",children:[I.slice(0,20).map((W,V)=>l.jsxDEV("div",{children:W},V,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:465,columnNumber:21},this)),I.length>20&&l.jsxDEV("div",{className:"text-muted-foreground",children:["... and ",I.length-20," more files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:468,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:463,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:459,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:444,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:440,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:233,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:220,columnNumber:5},this)}function JN({className:i,...a}){return l.jsxDEV("textarea",{"data-slot":"textarea",className:Vn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/textarea.tsx",lineNumber:7,columnNumber:5},this)}const O3=ob("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function Cr({className:i,variant:a,...c}){return l.jsxDEV("div",{"data-slot":"alert",role:"alert",className:Vn(O3({variant:a}),i),...c},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function Rr({className:i,...a}){return l.jsxDEV("div",{"data-slot":"alert-description",className:Vn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:55,columnNumber:5},this)}const P3=async()=>{const i=await fetch("http://localhost:3333/api/cursor-rules");if(!i.ok)throw new Error("Failed to fetch cursor rules");return i.text()},k3=async i=>{if(!(await fetch("http://localhost:3333/api/cursor-rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})})).ok)throw new Error("Failed to save cursor rules")},z3=async()=>{const i=await fetch("http://localhost:3333/api/claude-md");if(!i.ok)throw new Error("Failed to fetch CLAUDE.md");return i.text()},H3=async i=>{if(!(await fetch("http://localhost:3333/api/claude-md",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})})).ok)throw new Error("Failed to save CLAUDE.md")};function _3(){const i=Il(),[a,c]=Q.useState(""),[d,p]=Q.useState(""),[v,N]=Q.useState("cursor"),{data:j,isLoading:y}=js({queryKey:["cursor-rules"],queryFn:P3}),C=fa({mutationFn:k3,onSuccess:()=>{i.invalidateQueries({queryKey:["cursor-rules"]}),ot.success(".cursorrules saved successfully!")},onError:I=>{ot.error(`Failed to save .cursorrules: ${I.message}`)}}),{data:M,isLoading:f}=js({queryKey:["claude-md"],queryFn:z3}),g=fa({mutationFn:H3,onSuccess:()=>{i.invalidateQueries({queryKey:["claude-md"]}),ot.success("CLAUDE.md saved successfully!")},onError:I=>{ot.error(`Failed to save CLAUDE.md: ${I.message}`)}});Q.useEffect(()=>{j&&!a&&c(j)},[j]),Q.useEffect(()=>{M&&!d&&p(M)},[M]);const A=()=>{C.mutate(a)},G=()=>{g.mutate(d)},$=(I,Se)=>{navigator.clipboard.writeText(I),ot.success(`${Se} copied to clipboard!`)},H=(I,Se)=>{const ne=new Blob([I],{type:"text/plain"}),fe=URL.createObjectURL(ne),de=document.createElement("a");de.href=fe,de.download=Se,document.body.appendChild(de),de.click(),document.body.removeChild(de),URL.revokeObjectURL(fe),ot.success(`${Se} downloaded!`)};return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:126,columnNumber:11},this),"AI Rules & Context"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:125,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:124,columnNumber:7},this),l.jsxDEV(at,{children:[l.jsxDEV(Cr,{className:"mb-4",children:[l.jsxDEV(Kh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:132,columnNumber:11},this),l.jsxDEV(Rr,{children:["Configure AI context files for better assistance. ",l.jsxDEV("strong",{children:".cursorrules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:134,columnNumber:63},this)," works with Cursor, while ",l.jsxDEV("strong",{children:"CLAUDE.md"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:135,columnNumber:19},this)," provides project context for Claude."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:133,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:131,columnNumber:9},this),l.jsxDEV(Kd,{value:v,onValueChange:I=>N(I),className:"space-y-4",children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-2",children:[l.jsxDEV(Ds,{value:"cursor",className:"flex items-center gap-2",children:[l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:142,columnNumber:15},this),".cursorrules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:141,columnNumber:13},this),l.jsxDEV(Ds,{value:"claude",className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:146,columnNumber:15},this),"CLAUDE.md"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:145,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:140,columnNumber:11},this),l.jsxDEV(Ts,{value:"cursor",className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h3",{className:"font-medium",children:"Cursor AI Assistant Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:154,columnNumber:17},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Configure how Cursor's AI understands your project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:155,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:153,columnNumber:15},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>$(a,".cursorrules"),children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:165,columnNumber:19},this),"Copy"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:160,columnNumber:17},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>H(a,".cursorrules"),children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:173,columnNumber:19},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:168,columnNumber:17},this),l.jsxDEV(Ce,{onClick:A,disabled:C.isPending,size:"sm",children:[l.jsxDEV(QN,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:181,columnNumber:19},this),"Save"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:176,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:159,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:152,columnNumber:13},this),y?l.jsxDEV("div",{className:"flex items-center justify-center p-8",children:[l.jsxDEV(Qd,{className:"w-6 h-6 animate-spin mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:189,columnNumber:17},this),"Loading..."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:188,columnNumber:15},this):l.jsxDEV(JN,{value:a,onChange:I=>c(I.target.value),placeholder:"Enter your Cursor AI rules here...",className:"min-h-[300px] font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:193,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:151,columnNumber:11},this),l.jsxDEV(Ts,{value:"claude",className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h3",{className:"font-medium",children:"Claude Project Context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:205,columnNumber:17},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Markdown file explaining your project structure and guidelines"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:206,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:204,columnNumber:15},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>$(d,"CLAUDE.md"),children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:216,columnNumber:19},this),"Copy"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:211,columnNumber:17},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>H(d,"CLAUDE.md"),children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:224,columnNumber:19},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:219,columnNumber:17},this),l.jsxDEV(Ce,{onClick:G,disabled:g.isPending,size:"sm",children:[l.jsxDEV(QN,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:232,columnNumber:19},this),"Save"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:227,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:210,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:203,columnNumber:13},this),f?l.jsxDEV("div",{className:"flex items-center justify-center p-8",children:[l.jsxDEV(Qd,{className:"w-6 h-6 animate-spin mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:240,columnNumber:17},this),"Loading..."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:239,columnNumber:15},this):l.jsxDEV(JN,{value:d,onChange:I=>p(I.target.value),placeholder:"Enter your Claude project context here...",className:"min-h-[300px] font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:244,columnNumber:15},this),l.jsxDEV(Cr,{children:[l.jsxDEV(Kh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:253,columnNumber:15},this),l.jsxDEV(Rr,{children:"This file helps Claude understand your project. Include project structure, coding conventions, key concepts, and any important context."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:254,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:252,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:202,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:130,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:123,columnNumber:5},this)}const B3=async(i=null)=>{const a=i?`http://localhost:3333/api/files-with-visibility?bundle=${i}`:"http://localhost:3333/api/files-with-visibility",c=await fetch(a);if(!c.ok)throw new Error("Failed to fetch files");return c.json()},L3=async()=>{const i=await fetch("http://localhost:3333/api/ignore-patterns");if(!i.ok)throw new Error("Failed to fetch ignore patterns");return i.json()},q3=async()=>{const i=await fetch("http://localhost:3333/api/bundle-visibility-stats");if(!i.ok)throw new Error("Failed to fetch bundle stats");return i.json()},F3=async({filePath:i,bundleName:a=null,forceHide:c=null})=>{const d=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:i,bundleName:a,forceHide:c})});if(!d.ok)throw new Error("Failed to toggle file visibility");return d.json()},Y3=async({filePaths:i,bundleName:a=null,forceHide:c})=>{const d=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"bulk-toggle",filePaths:i,bundleName:a,forceHide:c})});if(!d.ok)throw new Error("Failed to bulk toggle visibility");return d.json()},G3=async({action:i,pattern:a})=>{const c=await fetch("http://localhost:3333/api/ignore-patterns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:i,pattern:a})});if(!c.ok)throw new Error("Failed to manage ignore pattern");return c.json()},$3=async({scope:i,bundleName:a=null})=>{const c=await fetch("http://localhost:3333/api/reset-hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scope:i,bundleName:a})});if(!c.ok)throw new Error("Failed to reset hidden files");return c.json()};function Q3(){const i=Il(),[a,c]=Q.useState(null),[d,p]=Q.useState(""),[v,N]=Q.useState(!1),[j,y]=Q.useState("all"),[C,M]=Q.useState(""),[f,g]=Q.useState([]),{data:A=[],isLoading:G}=js({queryKey:["files-with-visibility",a],queryFn:()=>B3(a),refetchInterval:5e3}),{data:$={system:[],user:[],file:[]},isLoading:H}=js({queryKey:["ignore-patterns"],queryFn:L3,refetchInterval:1e4}),{data:I={},isLoading:Se}=js({queryKey:["bundle-visibility-stats"],queryFn:q3,refetchInterval:5e3}),ne=fa({mutationFn:F3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("File visibility updated")},onError:X=>ot.error(`Failed to update file visibility: ${X.message}`)}),fe=fa({mutationFn:Y3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),g([]),ot.success("Bulk visibility update completed")},onError:X=>ot.error(`Failed to bulk update visibility: ${X.message}`)}),de=fa({mutationFn:G3,onSuccess:()=>{i.invalidateQueries({queryKey:["ignore-patterns"]}),i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("Ignore pattern updated")},onError:X=>ot.error(`Failed to update ignore pattern: ${X.message}`)}),Ee=fa({mutationFn:$3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("Hidden files reset successfully")},onError:X=>ot.error(`Failed to reset hidden files: ${X.message}`)}),je=A.filter(X=>{const W=X.path.toLowerCase().includes(d.toLowerCase()),V=j==="all"||j==="hidden"&&!X.visible||j==="visible"&&X.visible,T=v||X.visible;return W&&V&&T}),K=X=>{ne.mutate({filePath:X,bundleName:a})},J=X=>{fe.mutate({filePaths:f,bundleName:a,forceHide:X})},ce=()=>{C.trim()&&(de.mutate({action:"add",pattern:C.trim()}),M(""))},oe=(X,W=!1)=>{const V=W?"toggle-system":"remove";de.mutate({action:V,pattern:X})},Ne=[...($.system||[]).map(X=>({...X,source:"system"})),...($.user||[]).map(X=>({...X,source:"user"})),...($.file||[]).map(X=>({...X,source:"file"}))];return l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h2",{className:"text-lg font-semibold",children:"File Visibility & Ignore Management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:259,columnNumber:11},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Control which files appear in bundles and manage ignore patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:260,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:258,columnNumber:9},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"flex items-center gap-1",children:[l.jsxDEV(Cl,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:266,columnNumber:13},this),je.filter(X=>X.visible).length," visible"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:265,columnNumber:11},this),l.jsxDEV(vt,{variant:"outline",className:"flex items-center gap-1",children:[l.jsxDEV(Ul,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:270,columnNumber:13},this),je.filter(X=>!X.visible).length," hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:269,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:264,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:257,columnNumber:7},this),l.jsxDEV(Kd,{defaultValue:"files",className:"space-y-6",children:[l.jsxDEV(Jd,{children:[l.jsxDEV(Ds,{value:"files",children:"File Visibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:278,columnNumber:11},this),l.jsxDEV(Ds,{value:"patterns",children:"Ignore Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:279,columnNumber:11},this),l.jsxDEV(Ds,{value:"bundles",children:"Bundle Overview"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:280,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:277,columnNumber:9},this),l.jsxDEV(Ts,{value:"files",className:"space-y-4",children:[l.jsxDEV(nt,{children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV("div",{className:"flex items-center gap-4 mb-4",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Bundle:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:290,columnNumber:19},this),l.jsxDEV("select",{value:a||"",onChange:X=>c(X.target.value||null),className:"px-3 py-2 border rounded-md text-sm",children:[l.jsxDEV("option",{value:"",children:"All Bundles (Global)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:296,columnNumber:21},this),Object.keys(I).map(X=>l.jsxDEV("option",{value:X,children:X},X,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:298,columnNumber:23},this))]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:291,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:289,columnNumber:17},this),a&&l.jsxDEV(vt,{variant:"secondary",children:["Bundle-specific visibility for ",a]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:304,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:288,columnNumber:15},this),l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV("div",{className:"flex-1",children:l.jsxDEV("div",{className:"relative",children:[l.jsxDEV(aU,{className:"absolute left-2 top-2.5 h-4 w-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:313,columnNumber:21},this),l.jsxDEV(Rl,{placeholder:"Search files...",value:d,onChange:X=>p(X.target.value),className:"pl-8"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:314,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:312,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:311,columnNumber:17},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>N(!v),className:v?"bg-blue-50 border-blue-200":"",children:[v?l.jsxDEV(Cl,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:330,columnNumber:35},this):l.jsxDEV(Ul,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:330,columnNumber:65},this),v?"Hide Hidden":"Show Hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:324,columnNumber:19},this),l.jsxDEV("select",{value:j,onChange:X=>y(X.target.value),className:"px-3 py-2 border rounded-md text-sm",children:[l.jsxDEV("option",{value:"all",children:"All Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:339,columnNumber:21},this),l.jsxDEV("option",{value:"visible",children:"Visible Only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:340,columnNumber:21},this),l.jsxDEV("option",{value:"hidden",children:"Hidden Only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:341,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:334,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:323,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:310,columnNumber:15},this),f.length>0&&l.jsxDEV("div",{className:"flex items-center gap-2 p-3 bg-blue-50 rounded-md border border-blue-200 mt-4",children:[l.jsxDEV(Kh,{className:"w-4 h-4 text-blue-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:349,columnNumber:19},this),l.jsxDEV("span",{className:"text-sm text-blue-800",children:[f.length," files selected"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:350,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2 ml-auto",children:[l.jsxDEV(Ce,{size:"sm",onClick:()=>J(!1),children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:355,columnNumber:23},this),"Show All"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:354,columnNumber:21},this),l.jsxDEV(Ce,{size:"sm",variant:"outline",onClick:()=>J(!0),children:[l.jsxDEV(Ul,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:359,columnNumber:23},this),"Hide All"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:358,columnNumber:21},this),l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>g([]),children:"Cancel"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:362,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:353,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:348,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:287,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:286,columnNumber:11},this),l.jsxDEV(nt,{children:l.jsxDEV(at,{className:"pt-6",children:[G?l.jsxDEV("div",{className:"text-center py-8",children:"Loading files..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:379,columnNumber:17},this):l.jsxDEV("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:je.map(X=>l.jsxDEV("div",{className:`flex items-center gap-3 p-2 rounded-md border transition-colors ${X.visible?"hover:bg-gray-50":"opacity-60 bg-gray-50"}`,children:[l.jsxDEV("input",{type:"checkbox",checked:f.includes(X.path),onChange:W=>{W.target.checked?g([...f,X.path]):g(f.filter(V=>V!==X.path))},className:"rounded"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:388,columnNumber:23},this),l.jsxDEV(Al,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:401,columnNumber:23},this),l.jsxDEV("div",{className:"flex-1 min-w-0",children:[l.jsxDEV("div",{className:"font-mono text-sm truncate",children:X.path},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:404,columnNumber:25},this),l.jsxDEV("div",{className:"flex items-center gap-2 mt-1",children:[X.inBundles.map(W=>l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:W},W,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:407,columnNumber:29},this)),X.globallyHidden&&l.jsxDEV(vt,{variant:"destructive",className:"text-xs",children:"Globally Hidden"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:412,columnNumber:29},this),X.bundleHidden&&a&&l.jsxDEV(vt,{variant:"secondary",className:"text-xs",children:["Hidden in ",a]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:417,columnNumber:29},this),X.matchesIgnorePattern&&l.jsxDEV(vt,{variant:"outline",className:"text-xs text-gray-500",children:"Ignored"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:422,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:405,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:403,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs text-muted-foreground",children:[(X.size/1024).toFixed(1),"kb"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:429,columnNumber:23},this),l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>K(X.path),disabled:ne.isPending,className:"flex-shrink-0",children:X.visible?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Ul,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:442,columnNumber:29},this),"Hide"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:441,columnNumber:27},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:447,columnNumber:29},this),"Show"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:446,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:433,columnNumber:23},this)]},X.path,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:383,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:381,columnNumber:17},this),je.length===0&&!G&&l.jsxDEV("div",{className:"text-center py-8 text-muted-foreground",children:"No files match your current filters"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:458,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:377,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:376,columnNumber:11},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(sU,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:469,columnNumber:17},this),"Reset Options"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:468,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:467,columnNumber:13},this),l.jsxDEV(at,{className:"space-y-3",children:l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ee.mutate({scope:"global"}),disabled:Ee.isPending,children:"Reset Global Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:475,columnNumber:17},this),a&&l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ee.mutate({scope:"bundle",bundleName:a}),disabled:Ee.isPending,children:["Reset ",a," Bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:485,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ee.mutate({scope:"all"}),disabled:Ee.isPending,className:"text-red-600 border-red-200 hover:bg-red-50",children:"Reset All Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:495,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:474,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:473,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:466,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:284,columnNumber:9},this),l.jsxDEV(Ts,{value:"patterns",className:"space-y-4",children:[l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Add Ignore Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:514,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:513,columnNumber:13},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{placeholder:"Enter glob pattern (e.g., *.log, src/debug/**)",value:C,onChange:X=>M(X.target.value),className:"flex-1",onKeyDown:X=>X.key==="Enter"&&ce()},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:518,columnNumber:17},this),l.jsxDEV(Ce,{onClick:ce,disabled:!C.trim()||de.isPending,children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:529,columnNumber:19},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:525,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:517,columnNumber:15},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:["Examples: ",l.jsxDEV("code",{children:"*.log"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:27},this),", ",l.jsxDEV("code",{children:"node_modules/**"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:47},this),", ",l.jsxDEV("code",{children:"src/debug.ts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:77},this),", ",l.jsxDEV("code",{children:"**/*.test.*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:104},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:534,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:516,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:512,columnNumber:11},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Current Ignore Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:543,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:542,columnNumber:13},this),l.jsxDEV(at,{children:H?l.jsxDEV("div",{className:"text-center py-4",children:"Loading patterns..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:547,columnNumber:17},this):l.jsxDEV("div",{className:"space-y-3",children:Ne.map((X,W)=>l.jsxDEV("div",{className:`flex items-center gap-3 p-3 rounded-md border ${X.active?"":"opacity-60 bg-gray-50"}`,children:[l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:"font-mono text-sm",children:X.pattern},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:557,columnNumber:25},this),l.jsxDEV("div",{className:"flex items-center gap-2 mt-1",children:[l.jsxDEV(vt,{variant:X.source==="system"?"secondary":X.source==="user"?"default":"outline",className:"text-xs",children:X.source==="system"?"System Default":X.source==="user"?"User Added":"File Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:559,columnNumber:27},this),X.active?l.jsxDEV(vt,{variant:"outline",className:"text-xs text-green-700",children:[l.jsxDEV(Ks,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:569,columnNumber:31},this),"Active"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:568,columnNumber:29},this):l.jsxDEV(vt,{variant:"outline",className:"text-xs text-gray-500",children:[l.jsxDEV(Hd,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:574,columnNumber:31},this),"Disabled"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:573,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:558,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:556,columnNumber:23},this),l.jsxDEV("div",{className:"flex gap-2",children:X.source==="system"?l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>oe(X.pattern,!0),disabled:de.isPending,children:X.active?"Disable":"Enable"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:583,columnNumber:27},this):l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>oe(X.pattern,!1),disabled:de.isPending,children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:598,columnNumber:29},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:592,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:581,columnNumber:23},this)]},W,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:551,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:549,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:545,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:541,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:510,columnNumber:9},this),l.jsxDEV(Ts,{value:"bundles",className:"space-y-4",children:Se?l.jsxDEV("div",{className:"text-center py-8",children:"Loading bundle statistics..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:613,columnNumber:13},this):l.jsxDEV("div",{className:"grid gap-4",children:Object.entries(I).map(([X,W])=>l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV(yt,{children:X},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:620,columnNumber:23},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",children:[W.visible," / ",W.total," visible"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:622,columnNumber:25},this),W.hidden>0&&l.jsxDEV(vt,{variant:"secondary",children:[W.hidden," hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:626,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:621,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:619,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:618,columnNumber:19},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:l.jsxDEV("div",{className:"bg-blue-600 h-2 rounded-full",style:{width:`${W.total>0?W.visible/W.total*100:0}%`}},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:637,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:636,columnNumber:25},this),l.jsxDEV(Ce,{size:"sm",variant:"outline",onClick:()=>c(X),children:[l.jsxDEV($l,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:649,columnNumber:27},this),"Manage Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:644,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:635,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:l.jsxDEV("div",{children:["Patterns: ",W.patterns.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:655,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:654,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:634,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:633,columnNumber:19},this)]},X,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:617,columnNumber:17},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:615,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:611,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:276,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:255,columnNumber:5},this)}const pw=async()=>{try{const[i,a,c]=await Promise.all([fetch("http://localhost:3333/api/config"),fetch("http://localhost:3333/api/bundles"),fetch("http://localhost:3333/api/cursor-rules")]),d=i.ok,p=a.ok?await a.json():[],v=c.ok;return{hasConfig:d,hasIgnoreFile:!0,bundleCount:p.length||0,hasCursorRules:v,isFirstTime:!d||p.length===0}}catch{return{hasConfig:!1,hasIgnoreFile:!1,bundleCount:0,hasCursorRules:!1,isFirstTime:!0}}};function I3({onStartSetup:i}){const{data:a,isLoading:c}=js({queryKey:["setup-status"],queryFn:pw,refetchInterval:5e3});return c||!(a!=null&&a.isFirstTime)?null:l.jsxDEV(Cr,{className:"mb-6 border-blue-200 bg-blue-50",children:[l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:64,columnNumber:7},this),l.jsxDEV(Rr,{className:"flex items-center justify-between",children:[l.jsxDEV("div",{children:[l.jsxDEV("strong",{children:"Welcome to cntx-ui!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:67,columnNumber:11},this)," This looks like your first time. The web interface is already running - let's help you get set up properly."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:66,columnNumber:9},this),l.jsxDEV(Ce,{onClick:i,size:"sm",children:"Start Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:65,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:63,columnNumber:5},this)}function X3({onOpenFullSetup:i}){const{data:a,isLoading:c}=js({queryKey:["setup-status"],queryFn:pw,refetchInterval:1e4});if(c)return l.jsxDEV("div",{children:"Checking setup status..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:90,columnNumber:12},this);const d=[{label:"Configuration file exists",passed:(a==null?void 0:a.hasConfig)||!1,description:".cntx/config.json with bundle definitions"},{label:"Ignore patterns configured",passed:(a==null?void 0:a.hasIgnoreFile)||!1,description:".cntxignore file to exclude unnecessary files"},{label:"Bundles generated",passed:((a==null?void 0:a.bundleCount)||0)>0,description:`${(a==null?void 0:a.bundleCount)||0} bundles currently configured`},{label:"Cursor rules created",passed:(a==null?void 0:a.hasCursorRules)||!1,description:".cursorrules file for AI assistant context"}],p=d.every(v=>v.passed);return l.jsxDEV(nt,{className:p?"":"border-yellow-200",children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV($l,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:122,columnNumber:11},this),"Setup Status",p?l.jsxDEV(Ks,{className:"w-5 h-5 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:125,columnNumber:13},this):l.jsxDEV(Id,{className:"w-5 h-5 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:120,columnNumber:7},this),l.jsxDEV(at,{children:[l.jsxDEV("div",{className:"space-y-3",children:d.map((v,N)=>l.jsxDEV("div",{className:"flex items-start gap-3",children:[l.jsxDEV("div",{className:"flex-shrink-0 mt-0.5",children:v.passed?l.jsxDEV(Ks,{className:"w-4 h-4 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:137,columnNumber:19},this):l.jsxDEV(Id,{className:"w-4 h-4 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:139,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:135,columnNumber:15},this),l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:`font-medium ${v.passed?"text-green-700":"text-yellow-700"}`,children:v.label},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:143,columnNumber:17},this),l.jsxDEV("div",{className:"text-sm text-gray-600",children:v.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:146,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:142,columnNumber:15},this)]},N,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:134,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:132,columnNumber:9},this),!p&&l.jsxDEV("div",{className:"mt-4 pt-4 border-t",children:l.jsxDEV(Ce,{onClick:i,variant:"outline",className:"w-full",children:[l.jsxDEV(Y1,{className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:155,columnNumber:15},this),"Complete Setup Guide"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:154,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:153,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:119,columnNumber:5},this)}function Z3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Jh,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:171,columnNumber:11},this),"How to Use cntx-ui"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:170,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:169,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV(Cr,{className:"border-blue-200 bg-blue-50",children:[l.jsxDEV(G1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:177,columnNumber:11},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"You're already running!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:179,columnNumber:13},this)," The web interface provides full functionality. CLI commands are available for automation and advanced workflows."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:178,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:176,columnNumber:9},this),l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2 flex items-center gap-2",children:[l.jsxDEV(Jh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:187,columnNumber:15},this),"Web Interface (Recommended)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:186,columnNumber:13},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-2",children:[l.jsxDEV("p",{children:"Perfect for interactive use and project management:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:191,columnNumber:15},this),l.jsxDEV("div",{className:"ml-4 space-y-1",children:[l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Bundle Management:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:193,columnNumber:24},this)," View, create, and manage bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:193,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Configuration:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:194,columnNumber:24},this)," Edit bundle patterns visually"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:194,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Hidden Files:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:195,columnNumber:24},this)," Control file visibility per bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:195,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Cursor Rules:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:196,columnNumber:24},this)," Manage AI assistant context"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:196,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Real-time Updates:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:197,columnNumber:24},this)," See changes immediately"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:197,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:192,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:185,columnNumber:11},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2 flex items-center gap-2",children:[l.jsxDEV(MT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:204,columnNumber:15},this),"Command Line Interface"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:203,columnNumber:13},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-2",children:[l.jsxDEV("p",{children:"Great for automation, scripts, and CI/CD:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:208,columnNumber:15},this),l.jsxDEV("div",{className:"ml-4 space-y-1",children:[l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Quick bundle generation:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:24},this)," ",l.jsxDEV("code",{className:"bg-gray-100 px-1 rounded",children:"cntx-ui bundle master"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:66},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Status checking:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:24},this)," ",l.jsxDEV("code",{className:"bg-gray-100 px-1 rounded",children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Scripting workflows:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:212,columnNumber:24},this)," Integrate with build processes"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:212,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:209,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:207,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:202,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:184,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:175,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:168,columnNumber:5},this)}function K3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(G1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:228,columnNumber:11},this),"CLI Reference"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:227,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:226,columnNumber:7},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"space-y-3 text-sm font-mono",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui watch"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:235,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Start server (already running)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:236,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:234,columnNumber:11},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:239,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Check configuration status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:240,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:238,columnNumber:11},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui bundle [name]"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:243,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Generate specific bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:244,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:242,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:233,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:232,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:225,columnNumber:5},this)}function J3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Al,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:258,columnNumber:11},this),"Common Workflows"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:257,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:256,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"🎯 For AI Development"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:264,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Create focused bundles (api, ui, core)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:266,columnNumber:13},this),l.jsxDEV("div",{children:"2. Hide debug/temp files from bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:267,columnNumber:13},this),l.jsxDEV("div",{children:"3. Copy bundle XML for AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:268,columnNumber:13},this),l.jsxDEV("div",{children:"4. Use Cursor Rules for project context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:269,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:263,columnNumber:9},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"📁 For Project Organization"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:274,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Configure ignore patterns for unwanted files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:276,columnNumber:13},this),l.jsxDEV("div",{children:"2. Create bundles by feature or responsibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:277,columnNumber:13},this),l.jsxDEV("div",{children:"3. Use hidden files to trim bundle scope"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:278,columnNumber:13},this),l.jsxDEV("div",{children:"4. Monitor bundle sizes and file counts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:279,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:275,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:273,columnNumber:9},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"🤖 For CI/CD Integration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:284,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Use CLI commands in build scripts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:286,columnNumber:13},this),l.jsxDEV("div",{children:"2. Generate bundles for automated testing"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:287,columnNumber:13},this),l.jsxDEV("div",{children:"3. Export project context for deployment"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:288,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:283,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:262,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:255,columnNumber:5},this)}function W3(){const[i,a]=Q.useState(0),[c,d]=Q.useState([{id:"welcome",title:"Welcome to cntx-ui",description:"Organize your code into focused bundles for AI assistance",completed:!1,required:!0},{id:"bundles",title:"Create Your First Bundles",description:"Set up focused file collections and learn the basics",completed:!1,required:!0},{id:"ai-analysis",title:"AI Bundle Analysis (Optional)",description:"Let AI analyze your code and suggest optimal bundles",completed:!1,required:!1},{id:"mcp-integration",title:"MCP Integration (Enhanced)",description:"Set up seamless AI integration with Claude Desktop",completed:!1,required:!1},{id:"workflows",title:"Choose Your Workflow",description:"Manual copy/paste or seamless MCP integration",completed:!1,required:!1}]),[p,v]=Q.useState(!1),[N,j]=Q.useState(!1),y=async()=>{const A=`Analyze this codebase bundle and suggest an optimal bundle configuration for cntx-ui.
|
|
504
|
+
*/const hU=[["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"}]],IN=Ye("zap",hU);var bU=m1();const vU=u1(bU);function xU(i){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css",a.appendChild(c),c.styleSheet?c.styleSheet.cssText=i:c.appendChild(document.createTextNode(i))}const gU=i=>{switch(i){case"success":return wU;case"info":return EU;case"warning":return SU;case"error":return jU;default:return null}},yU=Array(12).fill(0),NU=({visible:i,className:a})=>re.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":i},re.createElement("div",{className:"sonner-spinner"},yU.map((c,d)=>re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${d}`})))),wU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),SU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),EU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),jU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),DU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),TU=()=>{const[i,a]=re.useState(document.hidden);return re.useEffect(()=>{const c=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",c),()=>window.removeEventListener("visibilitychange",c)},[]),i};let Wh=1;class UU{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const c=this.subscribers.indexOf(a);this.subscribers.splice(c,1)}),this.publish=a=>{this.subscribers.forEach(c=>c(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var c;const{message:d,...p}=a,v=typeof(a==null?void 0:a.id)=="number"||((c=a.id)==null?void 0:c.length)>0?a.id:Wh++,w=this.toasts.find(y=>y.id===v),j=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(v)&&this.dismissedToasts.delete(v),w?this.toasts=this.toasts.map(y=>y.id===v?(this.publish({...y,...a,id:v,title:d}),{...y,...a,id:v,dismissible:j,title:d}):y):this.addToast({title:d,...p,dismissible:j,id:v}),v},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(c=>c({id:a,dismiss:!0})))):this.toasts.forEach(c=>{this.subscribers.forEach(d=>d({id:c.id,dismiss:!0}))}),a),this.message=(a,c)=>this.create({...c,message:a}),this.error=(a,c)=>this.create({...c,message:a,type:"error"}),this.success=(a,c)=>this.create({...c,type:"success",message:a}),this.info=(a,c)=>this.create({...c,type:"info",message:a}),this.warning=(a,c)=>this.create({...c,type:"warning",message:a}),this.loading=(a,c)=>this.create({...c,type:"loading",message:a}),this.promise=(a,c)=>{if(!c)return;let d;c.loading!==void 0&&(d=this.create({...c,promise:a,type:"loading",message:c.loading,description:typeof c.description!="function"?c.description:void 0}));const p=Promise.resolve(a instanceof Function?a():a);let v=d!==void 0,w;const j=p.then(async C=>{if(w=["resolve",C],re.isValidElement(C))v=!1,this.create({id:d,type:"default",message:C});else if(RU(C)&&!C.ok){v=!1;const f=typeof c.error=="function"?await c.error(`HTTP error! status: ${C.status}`):c.error,g=typeof c.description=="function"?await c.description(`HTTP error! status: ${C.status}`):c.description,G=typeof f=="object"&&!re.isValidElement(f)?f:{message:f};this.create({id:d,type:"error",description:g,...G})}else if(C instanceof Error){v=!1;const f=typeof c.error=="function"?await c.error(C):c.error,g=typeof c.description=="function"?await c.description(C):c.description,G=typeof f=="object"&&!re.isValidElement(f)?f:{message:f};this.create({id:d,type:"error",description:g,...G})}else if(c.success!==void 0){v=!1;const f=typeof c.success=="function"?await c.success(C):c.success,g=typeof c.description=="function"?await c.description(C):c.description,G=typeof f=="object"&&!re.isValidElement(f)?f:{message:f};this.create({id:d,type:"success",description:g,...G})}}).catch(async C=>{if(w=["reject",C],c.error!==void 0){v=!1;const M=typeof c.error=="function"?await c.error(C):c.error,f=typeof c.description=="function"?await c.description(C):c.description,A=typeof M=="object"&&!re.isValidElement(M)?M:{message:M};this.create({id:d,type:"error",description:f,...A})}}).finally(()=>{v&&(this.dismiss(d),d=void 0),c.finally==null||c.finally.call(c)}),y=()=>new Promise((C,M)=>j.then(()=>w[0]==="reject"?M(w[1]):C(w[1])).catch(M));return typeof d!="string"&&typeof d!="number"?{unwrap:y}:Object.assign(d,{unwrap:y})},this.custom=(a,c)=>{const d=(c==null?void 0:c.id)||Wh++;return this.create({jsx:a(d),id:d,...c}),d},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const An=new UU,CU=(i,a)=>{const c=(a==null?void 0:a.id)||Wh++;return An.addToast({title:i,...a,id:c}),c},RU=i=>i&&typeof i=="object"&&"ok"in i&&typeof i.ok=="boolean"&&"status"in i&&typeof i.status=="number",AU=CU,VU=()=>An.toasts,MU=()=>An.getActiveToasts(),ot=Object.assign(AU,{success:An.success,info:An.info,warning:An.warning,error:An.error,custom:An.custom,message:An.message,promise:An.promise,dismiss:An.dismiss,loading:An.loading},{getHistory:VU,getToasts:MU});xU("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Pd(i){return i.label!==void 0}const OU=3,PU="24px",kU="16px",XN=4e3,zU=356,HU=14,_U=45,BU=200;function Qs(...i){return i.filter(Boolean).join(" ")}function LU(i){const[a,c]=i.split("-"),d=[];return a&&d.push(a),c&&d.push(c),d}const qU=i=>{var a,c,d,p,v,w,j,y,C;const{invert:M,toast:f,unstyled:g,interacting:A,setHeights:G,visibleToasts:$,heights:H,index:I,toasts:Se,expanded:ne,removeToast:fe,defaultRichColors:de,closeButton:Ee,style:je,cancelButtonStyle:K,actionButtonStyle:J,className:ce="",descriptionClassName:oe="",duration:Ne,position:X,gap:W,expandByDefault:V,classNames:T,icons:k,closeButtonAriaLabel:z="Close toast"}=i,[ae,N]=re.useState(null),[q,Z]=re.useState(null),[se,De]=re.useState(!1),[ke,be]=re.useState(!1),[Ge,pe]=re.useState(!1),[_e,Ie]=re.useState(!1),[Ct,on]=re.useState(!1),[Mn,Mr]=re.useState(0),[To,St]=re.useState(0),an=re.useRef(f.duration||Ne||XN),ms=re.useRef(null),On=re.useRef(null),Be=I===0,Js=I+1<=$,Pt=f.type,ln=f.dismissible!==!1,ja=f.className||"",Uo=f.descriptionClassName||"",Ws=re.useMemo(()=>H.findIndex(ue=>ue.toastId===f.id)||0,[H,f.id]),Co=re.useMemo(()=>{var ue;return(ue=f.closeButton)!=null?ue:Ee},[f.closeButton,Ee]),Or=re.useMemo(()=>f.duration||Ne||XN,[f.duration,Ne]),er=re.useRef(0),Pn=re.useRef(0),Pr=re.useRef(0),kn=re.useRef(null),[Us,zn]=X.split("-"),gn=re.useMemo(()=>H.reduce((ue,Te,We)=>We>=Ws?ue:ue+Te.height,0),[H,Ws]),fs=TU(),h=f.invert||M,R=Pt==="loading";Pn.current=re.useMemo(()=>Ws*W+gn,[Ws,gn]),re.useEffect(()=>{an.current=Or},[Or]),re.useEffect(()=>{De(!0)},[]),re.useEffect(()=>{const ue=On.current;if(ue){const Te=ue.getBoundingClientRect().height;return St(Te),G(We=>[{toastId:f.id,height:Te,position:f.position},...We]),()=>G(We=>We.filter(Et=>Et.toastId!==f.id))}},[G,f.id]),re.useLayoutEffect(()=>{if(!se)return;const ue=On.current,Te=ue.style.height;ue.style.height="auto";const We=ue.getBoundingClientRect().height;ue.style.height=Te,St(We),G(Et=>Et.find(Rt=>Rt.toastId===f.id)?Et.map(Rt=>Rt.toastId===f.id?{...Rt,height:We}:Rt):[{toastId:f.id,height:We,position:f.position},...Et])},[se,f.title,f.description,G,f.id,f.jsx,f.action,f.cancel]);const ee=re.useCallback(()=>{be(!0),Mr(Pn.current),G(ue=>ue.filter(Te=>Te.toastId!==f.id)),setTimeout(()=>{fe(f)},BU)},[f,fe,G,Pn]);re.useEffect(()=>{if(f.promise&&Pt==="loading"||f.duration===1/0||f.type==="loading")return;let ue;return ne||A||fs?(()=>{if(Pr.current<er.current){const Et=new Date().getTime()-er.current;an.current=an.current-Et}Pr.current=new Date().getTime()})():(()=>{an.current!==1/0&&(er.current=new Date().getTime(),ue=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),ee()},an.current))})(),()=>clearTimeout(ue)},[ne,A,f,Pt,fs,ee]),re.useEffect(()=>{f.delete&&(ee(),f.onDismiss==null||f.onDismiss.call(f,f))},[ee,f.delete]);function ie(){var ue;if(k!=null&&k.loading){var Te;return re.createElement("div",{className:Qs(T==null?void 0:T.loader,f==null||(Te=f.classNames)==null?void 0:Te.loader,"sonner-loader"),"data-visible":Pt==="loading"},k.loading)}return re.createElement(NU,{className:Qs(T==null?void 0:T.loader,f==null||(ue=f.classNames)==null?void 0:ue.loader),visible:Pt==="loading"})}const we=f.icon||(k==null?void 0:k[Pt])||gU(Pt);var ze,Me;return re.createElement("li",{tabIndex:0,ref:On,className:Qs(ce,ja,T==null?void 0:T.toast,f==null||(a=f.classNames)==null?void 0:a.toast,T==null?void 0:T.default,T==null?void 0:T[Pt],f==null||(c=f.classNames)==null?void 0:c[Pt]),"data-sonner-toast":"","data-rich-colors":(ze=f.richColors)!=null?ze:de,"data-styled":!(f.jsx||f.unstyled||g),"data-mounted":se,"data-promise":!!f.promise,"data-swiped":Ct,"data-removed":ke,"data-visible":Js,"data-y-position":Us,"data-x-position":zn,"data-index":I,"data-front":Be,"data-swiping":Ge,"data-dismissible":ln,"data-type":Pt,"data-invert":h,"data-swipe-out":_e,"data-swipe-direction":q,"data-expanded":!!(ne||V&&se),style:{"--index":I,"--toasts-before":I,"--z-index":Se.length-I,"--offset":`${ke?Mn:Pn.current}px`,"--initial-height":V?"auto":`${To}px`,...je,...f.style},onDragEnd:()=>{pe(!1),N(null),kn.current=null},onPointerDown:ue=>{R||!ln||(ms.current=new Date,Mr(Pn.current),ue.target.setPointerCapture(ue.pointerId),ue.target.tagName!=="BUTTON"&&(pe(!0),kn.current={x:ue.clientX,y:ue.clientY}))},onPointerUp:()=>{var ue,Te,We;if(_e||!ln)return;kn.current=null;const Et=Number(((ue=On.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),kr=Number(((Te=On.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Rt=new Date().getTime()-((We=ms.current)==null?void 0:We.getTime()),xt=ae==="x"?Et:kr,zr=Math.abs(xt)/Rt;if(Math.abs(xt)>=_U||zr>.11){Mr(Pn.current),f.onDismiss==null||f.onDismiss.call(f,f),Z(ae==="x"?Et>0?"right":"left":kr>0?"down":"up"),ee(),Ie(!0);return}else{var yn,Hn;(yn=On.current)==null||yn.style.setProperty("--swipe-amount-x","0px"),(Hn=On.current)==null||Hn.style.setProperty("--swipe-amount-y","0px")}on(!1),pe(!1),N(null)},onPointerMove:ue=>{var Te,We,Et;if(!kn.current||!ln||((Te=window.getSelection())==null?void 0:Te.toString().length)>0)return;const Rt=ue.clientY-kn.current.y,xt=ue.clientX-kn.current.x;var zr;const yn=(zr=i.swipeDirections)!=null?zr:LU(X);!ae&&(Math.abs(xt)>1||Math.abs(Rt)>1)&&N(Math.abs(xt)>Math.abs(Rt)?"x":"y");let Hn={x:0,y:0};const Jl=Cs=>1/(1.5+Math.abs(Cs)/20);if(ae==="y"){if(yn.includes("top")||yn.includes("bottom"))if(yn.includes("top")&&Rt<0||yn.includes("bottom")&&Rt>0)Hn.y=Rt;else{const Cs=Rt*Jl(Rt);Hn.y=Math.abs(Cs)<Math.abs(Rt)?Cs:Rt}}else if(ae==="x"&&(yn.includes("left")||yn.includes("right")))if(yn.includes("left")&&xt<0||yn.includes("right")&&xt>0)Hn.x=xt;else{const Cs=xt*Jl(xt);Hn.x=Math.abs(Cs)<Math.abs(xt)?Cs:xt}(Math.abs(Hn.x)>0||Math.abs(Hn.y)>0)&&on(!0),(We=On.current)==null||We.style.setProperty("--swipe-amount-x",`${Hn.x}px`),(Et=On.current)==null||Et.style.setProperty("--swipe-amount-y",`${Hn.y}px`)}},Co&&!f.jsx&&Pt!=="loading"?re.createElement("button",{"aria-label":z,"data-disabled":R,"data-close-button":!0,onClick:R||!ln?()=>{}:()=>{ee(),f.onDismiss==null||f.onDismiss.call(f,f)},className:Qs(T==null?void 0:T.closeButton,f==null||(d=f.classNames)==null?void 0:d.closeButton)},(Me=k==null?void 0:k.close)!=null?Me:DU):null,(Pt||f.icon||f.promise)&&f.icon!==null&&((k==null?void 0:k[Pt])!==null||f.icon)?re.createElement("div",{"data-icon":"",className:Qs(T==null?void 0:T.icon,f==null||(p=f.classNames)==null?void 0:p.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||ie():null,f.type!=="loading"?we:null):null,re.createElement("div",{"data-content":"",className:Qs(T==null?void 0:T.content,f==null||(v=f.classNames)==null?void 0:v.content)},re.createElement("div",{"data-title":"",className:Qs(T==null?void 0:T.title,f==null||(w=f.classNames)==null?void 0:w.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?re.createElement("div",{"data-description":"",className:Qs(oe,Uo,T==null?void 0:T.description,f==null||(j=f.classNames)==null?void 0:j.description)},typeof f.description=="function"?f.description():f.description):null),re.isValidElement(f.cancel)?f.cancel:f.cancel&&Pd(f.cancel)?re.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||K,onClick:ue=>{Pd(f.cancel)&&ln&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ue),ee())},className:Qs(T==null?void 0:T.cancelButton,f==null||(y=f.classNames)==null?void 0:y.cancelButton)},f.cancel.label):null,re.isValidElement(f.action)?f.action:f.action&&Pd(f.action)?re.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||J,onClick:ue=>{Pd(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ue),!ue.defaultPrevented&&ee())},className:Qs(T==null?void 0:T.actionButton,f==null||(C=f.classNames)==null?void 0:C.actionButton)},f.action.label):null)};function ZN(){if(typeof window>"u"||typeof document>"u")return"ltr";const i=document.documentElement.getAttribute("dir");return i==="auto"||!i?window.getComputedStyle(document.documentElement).direction:i}function FU(i,a){const c={};return[i,a].forEach((d,p)=>{const v=p===1,w=v?"--mobile-offset":"--offset",j=v?kU:PU;function y(C){["top","right","bottom","left"].forEach(M=>{c[`${w}-${M}`]=typeof C=="number"?`${C}px`:C})}typeof d=="number"||typeof d=="string"?y(d):typeof d=="object"?["top","right","bottom","left"].forEach(C=>{d[C]===void 0?c[`${w}-${C}`]=j:c[`${w}-${C}`]=typeof d[C]=="number"?`${d[C]}px`:d[C]}):y(j)}),c}const YU=re.forwardRef(function(a,c){const{invert:d,position:p="bottom-right",hotkey:v=["altKey","KeyT"],expand:w,closeButton:j,className:y,offset:C,mobileOffset:M,theme:f="light",richColors:g,duration:A,style:G,visibleToasts:$=OU,toastOptions:H,dir:I=ZN(),gap:Se=HU,icons:ne,containerAriaLabel:fe="Notifications"}=a,[de,Ee]=re.useState([]),je=re.useMemo(()=>Array.from(new Set([p].concat(de.filter(q=>q.position).map(q=>q.position)))),[de,p]),[K,J]=re.useState([]),[ce,oe]=re.useState(!1),[Ne,X]=re.useState(!1),[W,V]=re.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),T=re.useRef(null),k=v.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=re.useRef(null),ae=re.useRef(!1),N=re.useCallback(q=>{Ee(Z=>{var se;return(se=Z.find(De=>De.id===q.id))!=null&&se.delete||An.dismiss(q.id),Z.filter(({id:De})=>De!==q.id)})},[]);return re.useEffect(()=>An.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{Ee(Z=>Z.map(se=>se.id===q.id?{...se,delete:!0}:se))});return}setTimeout(()=>{vU.flushSync(()=>{Ee(Z=>{const se=Z.findIndex(De=>De.id===q.id);return se!==-1?[...Z.slice(0,se),{...Z[se],...q},...Z.slice(se+1)]:[q,...Z]})})})}),[de]),re.useEffect(()=>{if(f!=="system"){V(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:Z})=>{V(Z?"dark":"light")})}catch{q.addListener(({matches:se})=>{try{V(se?"dark":"light")}catch(De){console.error(De)}})}},[f]),re.useEffect(()=>{de.length<=1&&oe(!1)},[de]),re.useEffect(()=>{const q=Z=>{var se;if(v.every(be=>Z[be]||Z.code===be)){var ke;oe(!0),(ke=T.current)==null||ke.focus()}Z.code==="Escape"&&(document.activeElement===T.current||(se=T.current)!=null&&se.contains(document.activeElement))&&oe(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[v]),re.useEffect(()=>{if(T.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,ae.current=!1)}},[T.current]),re.createElement("section",{ref:c,"aria-label":`${fe} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},je.map((q,Z)=>{var se;const[De,ke]=q.split("-");return de.length?re.createElement("ol",{key:q,dir:I==="auto"?ZN():I,tabIndex:-1,ref:T,className:y,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":De,"data-x-position":ke,style:{"--front-toast-height":`${((se=K[0])==null?void 0:se.height)||0}px`,"--width":`${zU}px`,"--gap":`${Se}px`,...G,...FU(C,M)},onBlur:be=>{ae.current&&!be.currentTarget.contains(be.relatedTarget)&&(ae.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||ae.current||(ae.current=!0,z.current=be.relatedTarget)},onMouseEnter:()=>oe(!0),onMouseMove:()=>oe(!0),onMouseLeave:()=>{Ne||oe(!1)},onDragEnd:()=>oe(!1),onPointerDown:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},de.filter(be=>!be.position&&Z===0||be.position===q).map((be,Ge)=>{var pe,_e;return re.createElement(qU,{key:be.id,icons:ne,index:Ge,toast:be,defaultRichColors:g,duration:(pe=H==null?void 0:H.duration)!=null?pe:A,className:H==null?void 0:H.className,descriptionClassName:H==null?void 0:H.descriptionClassName,invert:d,visibleToasts:$,closeButton:(_e=H==null?void 0:H.closeButton)!=null?_e:j,interacting:Ne,position:q,style:H==null?void 0:H.style,unstyled:H==null?void 0:H.unstyled,classNames:H==null?void 0:H.classNames,cancelButtonStyle:H==null?void 0:H.cancelButtonStyle,actionButtonStyle:H==null?void 0:H.actionButtonStyle,closeButtonAriaLabel:H==null?void 0:H.closeButtonAriaLabel,removeToast:N,toasts:de.filter(Ie=>Ie.position==be.position),heights:K.filter(Ie=>Ie.position==be.position),setHeights:J,expandByDefault:w,gap:Se,expanded:ce,swipeDirections:a.swipeDirections})})):null}))}),GU=async()=>{const i=await fetch("http://localhost:3333/api/bundles");if(!i.ok)throw new Error("Failed to fetch bundles");return i.json()},$U=async i=>{const a=await fetch(`http://localhost:3333/api/bundle-categories/${i}`);if(!a.ok)throw new Error("Failed to fetch bundle categories");return a.json()},QU=async()=>{const i=await fetch("http://localhost:3333/api/files");if(!i.ok)throw new Error("Failed to fetch files");return(await i.json()).map(c=>c.path)};function IU(){const i=Il(),[a,c]=Q.useState(new Set),[d,p]=Q.useState({}),[v,w]=Q.useState(new Set),[j,y]=Q.useState([]),[C,M]=Q.useState(new Set),[f,g]=Q.useState(new Set),[A,G]=Q.useState(new Set),{data:$=[],isLoading:H,refetch:I}=js({queryKey:["bundles"],queryFn:GU,refetchInterval:5e3,refetchOnWindowFocus:!0}),Se=async V=>{const T=new Set(a);if(T.has(V))T.delete(V);else if(T.add(V),!d[V])try{const k=await $U(V);p(z=>({...z,[V]:k}))}catch(k){console.error("Failed to fetch bundle categories:",k),ot.error("Failed to load file categories")}c(T)},ne=V=>{switch(V){case"components":return l.jsxDEV(AT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:90,columnNumber:33},this);case"hooks":return l.jsxDEV(GT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:91,columnNumber:28},this);case"utilities":return l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:92,columnNumber:32},this);case"configuration":return l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:93,columnNumber:36},this);case"styles":return l.jsxDEV(F1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:94,columnNumber:29},this);case"types":return l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:95,columnNumber:28},this);case"tests":return l.jsxDEV(dU,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:96,columnNumber:28},this);case"documentation":return l.jsxDEV(yT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:97,columnNumber:36},this);default:return l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:98,columnNumber:23},this)}},fe=V=>{switch(V){case"components":return"bg-blue-100 text-blue-800 border-blue-200";case"hooks":return"bg-purple-100 text-purple-800 border-purple-200";case"utilities":return"bg-green-100 text-green-800 border-green-200";case"configuration":return"bg-orange-100 text-orange-800 border-orange-200";case"styles":return"bg-pink-100 text-pink-800 border-pink-200";case"types":return"bg-indigo-100 text-indigo-800 border-indigo-200";case"tests":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"documentation":return"bg-gray-100 text-gray-800 border-gray-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},de=async V=>{const T=new Set(v);if(T.has(V))T.delete(V);else if(T.add(V),j.length===0)try{const k=await QU();y(k)}catch(k){console.error("Failed to fetch files:",k),ot.error("Failed to load file list")}w(T)},Ee=(V,T)=>T.files.includes(V),je=(V,T)=>!$||!Array.isArray($)?[]:$.filter(k=>k.name!==T&&k.files.includes(V)).map(k=>k.name),K=async(V,T)=>{try{if(ce(`remove-${T}-${V}`,"loading"),console.log(`Removing ${V} from ${T}`),T==="master"){ce(`remove-${T}-${V}`,"error"),ot.error("Cannot modify master bundle files");return}const k=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:V,bundleName:T,forceHide:!0})});if(!k.ok){const ae=await k.text();throw console.error("API Error:",ae),new Error(`Failed to remove file: ${ae}`)}const z=await k.json();console.log("Remove API Response:",z),i.setQueryData(["bundles"],ae=>ae&&ae.map(N=>N.name===T?{...N,files:N.files.filter(q=>q!==V)}:N)),p(ae=>{if(!ae[T])return ae;const N={...ae},q=N[T];return Object.keys(q.filesByType).forEach(Z=>{q.filesByType[Z]=q.filesByType[Z].filter(se=>se!==V)}),q.entryPoints=q.entryPoints.filter(Z=>Z!==V),N}),i.invalidateQueries({queryKey:["bundles"]}),i.invalidateQueries({queryKey:["hidden-files"]}),ce(`remove-${T}-${V}`,"success"),ot.success(`Hidden ${V} from ${T} bundle`)}catch(k){console.error("Failed to remove file:",k),ce(`remove-${T}-${V}`,"error"),ot.error(`Failed to remove file: ${k instanceof Error?k.message:"Unknown error"}`)}},J=async(V,T)=>{try{if(ce(`add-${T}-${V}`,"loading"),console.log(`Adding ${V} to ${T}`),T==="master"){ce(`add-${T}-${V}`,"error"),ot.error("Cannot modify master bundle files");return}const k=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:V,bundleName:T,forceHide:!1})});if(!k.ok){const ae=await k.text();throw console.error("API Error:",ae),new Error(`Failed to add file: ${ae}`)}const z=await k.json();console.log("Add API Response:",z),i.invalidateQueries({queryKey:["bundles"]}),await I(),ce(`add-${T}-${V}`,"success"),ot.success(`Added ${V}`)}catch(k){console.error("Failed to add file:",k),ce(`add-${T}-${V}`,"error"),ot.error(`Failed to add file: ${k instanceof Error?k.message:"Unknown error"}`)}},ce=(V,T)=>{M(k=>{const z=new Set(k);return T==="loading"?z.add(V):z.delete(V),z}),g(k=>{const z=new Set(k);return T==="success"?(z.add(V),setTimeout(()=>g(ae=>{const N=new Set(ae);return N.delete(V),N}),2e3)):z.delete(V),z}),G(k=>{const z=new Set(k);return T==="error"?(z.add(V),setTimeout(()=>G(ae=>{const N=new Set(ae);return N.delete(V),N}),3e3)):z.delete(V),z})},oe=async V=>{const T=`copy-${V}`;ce(T,"loading");try{const k=await fetch(`http://localhost:3333/api/bundles/${V}`);if(!k.ok)throw new Error("Failed to fetch bundle content");const z=await k.text();await navigator.clipboard.writeText(z),ce(T,"success"),ot.success(`Bundle "${V}" copied to clipboard!`)}catch(k){ce(T,"error"),ot.error(`Failed to copy bundle: ${k instanceof Error?k.message:"Unknown error"}`)}},Ne=async V=>{const T=`download-${V}`;ce(T,"loading");try{const k=await fetch(`http://localhost:3333/api/bundles/${V}`);if(!k.ok)throw new Error("Failed to fetch bundle content");const z=await k.text(),ae=new Blob([z],{type:"application/xml"}),N=URL.createObjectURL(ae),q=document.createElement("a");q.href=N,q.download=`${V}-bundle.xml`,q.click(),URL.revokeObjectURL(N),ce(T,"success"),ot.success(`Bundle "${V}" downloaded!`)}catch(k){ce(T,"error"),ot.error(`Failed to download bundle: ${k instanceof Error?k.message:"Unknown error"}`)}},X=async V=>{const T=`regen-${V}`;ce(T,"loading");try{if(!(await fetch(`http://localhost:3333/api/regenerate/${V}`,{method:"POST"})).ok)throw new Error("Failed to regenerate bundle");await I(),ce(T,"success"),ot.success(`Bundle "${V}" regenerated successfully!`)}catch(k){ce(T,"error"),ot.error(`Failed to regenerate bundle: ${k instanceof Error?k.message:"Unknown error"}`)}};if(H)return l.jsxDEV("div",{children:"Loading bundles..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:379,columnNumber:25},this);if(!$)return l.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:380,columnNumber:24},this);const W=async()=>{console.log("Manual refresh triggered"),i.removeQueries({queryKey:["bundles"]});const V=await I();console.log("Fresh bundles data:",V.data)};return l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("h2",{className:"text-lg font-semibold",children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:392,columnNumber:9},this),l.jsxDEV(Ce,{onClick:W,variant:"outline",size:"sm",children:[l.jsxDEV(Qd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:394,columnNumber:11},this),"Force Refresh"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:393,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:391,columnNumber:7},this),$&&Array.isArray($)?$.map(V=>{const T=`copy-${V.name}`,k=`download-${V.name}`,z=`regen-${V.name}`,ae=C.has(T),N=C.has(k),q=C.has(z),Z=f.has(T),se=f.has(k),De=f.has(z),ke=A.has(T),be=A.has(k),Ge=A.has(z);return l.jsxDEV(nt,{className:V.changed?"border-yellow-500":"",children:[l.jsxDEV(gt,{children:l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV(yt,{className:"flex items-center gap-2",children:[V.name,l.jsxDEV(vt,{variant:V.changed?"destructive":"secondary",children:V.changed?"CHANGED":"SYNCED"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:418,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:416,columnNumber:17},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>de(V.name),disabled:V.name==="master",className:v.has(V.name)?"bg-blue-50 border-blue-200 text-blue-700":"",children:[v.has(V.name)?l.jsxDEV($1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:431,columnNumber:23},this):l.jsxDEV(JT,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:433,columnNumber:23},this),V.name==="master"?"Read Only":v.has(V.name)?"Cancel":"Edit Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:423,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>X(V.name),disabled:q,className:`transition-all duration-200 ${De?"border-green-500 bg-green-50 text-green-700":Ge?"border-red-500 bg-red-50 text-red-700":q?"opacity-75":""}`,children:[q?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:448,columnNumber:23},this):De?l.jsxDEV(Ks,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:450,columnNumber:23},this):Ge?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:452,columnNumber:23},this):l.jsxDEV(Qd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:454,columnNumber:23},this),"Regenerate"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:437,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>oe(V.name),disabled:ae,className:`transition-all duration-200 ${Z?"border-green-500 bg-green-50 text-green-700":ke?"border-red-500 bg-red-50 text-red-700":ae?"opacity-75":""}`,children:[ae?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:469,columnNumber:23},this):Z?l.jsxDEV(Ks,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:471,columnNumber:23},this):ke?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:473,columnNumber:23},this):l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:475,columnNumber:23},this),"Copy XML"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:458,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ne(V.name),disabled:N,className:`transition-all duration-200 ${se?"border-green-500 bg-green-50 text-green-700":be?"border-red-500 bg-red-50 text-red-700":N?"opacity-75":""}`,children:[N?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:490,columnNumber:23},this):se?l.jsxDEV(Ks,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:492,columnNumber:23},this):be?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:494,columnNumber:23},this):l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:496,columnNumber:23},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:479,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:422,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:415,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:414,columnNumber:13},this),l.jsxDEV(at,{children:[l.jsxDEV("div",{className:"text-sm text-muted-foreground mb-3",children:[V.fileCount," files • ",(V.size/1024).toFixed(1),"kb",V.lastGenerated&&` • Generated ${new Date(V.lastGenerated).toLocaleTimeString()}`]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:504,columnNumber:15},this),l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:()=>Se(V.name),className:"p-0 h-auto font-normal",children:[a.has(V.name)?l.jsxDEV(B1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:519,columnNumber:21},this):l.jsxDEV(L1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:521,columnNumber:21},this),"View Files (",V.files.length,")"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:512,columnNumber:17},this),a.has(V.name)&&l.jsxDEV("div",{className:"ml-5 space-y-3",children:d[V.name]?l.jsxDEV(l.Fragment,{children:[l.jsxDEV("div",{className:"text-sm text-muted-foreground italic",children:d[V.name].purpose},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:531,columnNumber:25},this),d[V.name].entryPoints.length>0&&l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"bg-red-50 text-red-700 border-red-200",children:[l.jsxDEV(Al,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:540,columnNumber:33},this),"Entry Points"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:539,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",d[V.name].entryPoints.length,")"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:543,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:538,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1",children:d[V.name].entryPoints.map(pe=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:pe},pe,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:549,columnNumber:33},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:547,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:537,columnNumber:27},this),Object.entries(d[V.name].filesByType).map(([pe,_e])=>l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:fe(pe),children:[ne(pe),l.jsxDEV("span",{className:"ml-1 capitalize",children:pe},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:563,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:561,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",_e.length," files)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:565,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:560,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1 max-h-32 overflow-y-auto",children:v.has(V.name)?_e.map(Ie=>{const Ct=je(Ie,V.name),on=`remove-${V.name}-${Ie}`,Mn=C.has(on);return l.jsxDEV("div",{className:"flex items-center gap-2 text-sm",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>K(Ie,V.name),disabled:Mn,className:"h-6 w-6 p-0 border-red-200 hover:bg-red-50 hover:border-red-300",children:Mn?l.jsxDEV(jc,{className:"w-3 h-3 animate-spin"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:586,columnNumber:43},this):l.jsxDEV(XT,{className:"w-3 h-3 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:588,columnNumber:43},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:578,columnNumber:39},this),l.jsxDEV("span",{className:"font-mono flex-1 text-foreground",children:Ie},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:591,columnNumber:39},this),Ct.length>0&&l.jsxDEV(vt,{variant:"outline",className:"text-xs bg-yellow-50 text-yellow-700",children:["Also in: ",Ct.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:595,columnNumber:41},this)]},Ie,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:577,columnNumber:37},this)}):_e.map(Ie=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:Ie},Ie,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:605,columnNumber:35},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:569,columnNumber:29},this)]},pe,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:559,columnNumber:27},this)),v.has(V.name)&&l.jsxDEV("div",{className:"space-y-2 mt-6 pt-4 border-t border-gray-200",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-300",children:[l.jsxDEV(Vl,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:619,columnNumber:33},this),"Available Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:618,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:"(Click + to add to bundle)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:622,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:617,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1 max-h-40 overflow-y-auto",children:j.filter(pe=>!Ee(pe,V)).map(pe=>{const _e=je(pe,V.name),Ie=`add-${V.name}-${pe}`,Ct=C.has(Ie);return l.jsxDEV("div",{className:"flex items-center gap-2 text-sm",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>J(pe,V.name),disabled:Ct,className:"h-6 w-6 p-0 border-green-200 hover:bg-green-50 hover:border-green-300",children:Ct?l.jsxDEV(jc,{className:"w-3 h-3 animate-spin"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:643,columnNumber:43},this):l.jsxDEV(Vl,{className:"w-3 h-3 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:645,columnNumber:43},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:635,columnNumber:39},this),l.jsxDEV("span",{className:"font-mono flex-1 text-muted-foreground",children:pe},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:648,columnNumber:39},this),_e.length>0&&l.jsxDEV(vt,{variant:"outline",className:"text-xs bg-yellow-50 text-yellow-700",children:["In: ",_e.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:652,columnNumber:41},this)]},pe,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:634,columnNumber:37},this)})},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:626,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:616,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:529,columnNumber:23},this):l.jsxDEV("div",{className:"space-y-1 max-h-40 overflow-y-auto",children:V.files.map(pe=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:pe},pe,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:668,columnNumber:27},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:666,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:527,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:511,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:503,columnNumber:13},this)]},V.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:413,columnNumber:11},this)}):l.jsxDEV("div",{children:"No bundles available"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:680,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:390,columnNumber:5},this)}const XU=async()=>{const i=await fetch("http://localhost:3333/api/bundles");if(!i.ok)throw new Error("Failed to fetch bundles");return i.json()},KN=i=>{const a={name:"",path:"",type:"directory",children:[]},c=new Set,d=new Map;i.forEach(v=>{v.files.forEach(w=>{c.add(w),d.has(w)||d.set(w,[]),d.get(w).push(v.name)})}),c.forEach(v=>{const w=v.split("/");let j=a;w.forEach((y,C)=>{const M=C===w.length-1,f=w.slice(0,C+1).join("/");j.children||(j.children=[]);let g=j.children.find(A=>A.name===y);g||(g={name:y,path:f,type:M?"file":"directory",children:M?void 0:[],bundles:M?d.get(v):void 0},j.children.push(g)),M||(j=g)})});const p=v=>{v.children&&(v.children.sort((w,j)=>w.type!==j.type?w.type==="directory"?-1:1:w.name.localeCompare(j.name)),v.children.forEach(p))};return p(a),a},ZU=i=>{if(i===0)return"0 B";const a=1024,c=["B","KB","MB","GB"],d=Math.floor(Math.log(i)/Math.log(a));return parseFloat((i/Math.pow(a,d)).toFixed(1))+" "+c[d]};function Q1({node:i,level:a,expandedDirs:c,onToggleDir:d}){const p=c.has(i.path),v=a*16;if(i.type==="directory")return l.jsxDEV("div",{children:[l.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded cursor-pointer",style:{paddingLeft:`${v+8}px`},onClick:()=>d(i.path),children:[p?l.jsxDEV(B1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:119,columnNumber:13},this):l.jsxDEV(L1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:121,columnNumber:13},this),p?l.jsxDEV(_d,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:124,columnNumber:13},this):l.jsxDEV(F1,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:126,columnNumber:13},this),l.jsxDEV("span",{className:"text-sm font-medium",children:i.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:128,columnNumber:11},this),i.children&&l.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:[i.children.length," items"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:130,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:113,columnNumber:9},this),p&&i.children&&l.jsxDEV("div",{children:i.children.map(j=>l.jsxDEV(Q1,{node:j,level:a+1,expandedDirs:c,onToggleDir:d},j.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:139,columnNumber:15},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:112,columnNumber:7},this);const w=j=>{var M;const y=(M=j.split(".").pop())==null?void 0:M.toLowerCase(),C="w-4 h-4";switch(y){case"js":case"ts":case"jsx":case"tsx":return l.jsxDEV(Tl,{className:`${C} text-yellow-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:163,columnNumber:16},this);case"json":return l.jsxDEV(Tl,{className:`${C} text-green-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:165,columnNumber:16},this);case"md":return l.jsxDEV(Tl,{className:`${C} text-blue-400`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:167,columnNumber:16},this);case"css":case"scss":return l.jsxDEV(Tl,{className:`${C} text-pink-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:170,columnNumber:16},this);case"html":return l.jsxDEV(Tl,{className:`${C} text-orange-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:172,columnNumber:16},this);default:return l.jsxDEV(Tl,{className:`${C} text-muted-foreground`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:174,columnNumber:16},this)}};return l.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded",style:{paddingLeft:`${v+24}px`},children:[w(i.name),l.jsxDEV("span",{className:"text-sm font-mono",children:i.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:184,columnNumber:7},this),i.bundles&&i.bundles.length>0&&l.jsxDEV("div",{className:"flex gap-1 ml-2",children:i.bundles.map(j=>l.jsxDEV(vt,{variant:"outline",className:"text-xs px-1 py-0",children:j},j,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:189,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:187,columnNumber:9},this),i.size&&l.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:ZU(i.size)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:201,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:179,columnNumber:5},this)}function KU(){const[i,a]=Q.useState(new Set([""])),{data:c,isLoading:d}=js({queryKey:["bundles"],queryFn:XU,refetchInterval:5e3}),p=C=>{const M=new Set(i);M.has(C)?M.delete(C):M.add(C),a(M)},v=()=>{if(!c)return;const C=KN(c),M=new Set,f=g=>{var A;g.type==="directory"&&(M.add(g.path),(A=g.children)==null||A.forEach(f))};f(C),a(M)},w=()=>{a(new Set([""]))};if(d)return l.jsxDEV("div",{children:"Loading file tree..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:250,columnNumber:25},this);if(!c)return l.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:251,columnNumber:24},this);const j=KN(c),y=c.reduce((C,M)=>C+M.files.length,0);return l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:v,children:"Expand All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:261,columnNumber:11},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:w,children:"Collapse All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:264,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:260,columnNumber:9},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:[y," files tracked"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:259,columnNumber:7},this),l.jsxDEV(nt,{className:"p-4",children:l.jsxDEV("div",{className:"space-y-1 max-h-96 overflow-y-auto",children:j.children&&j.children.length>0?j.children.map(C=>l.jsxDEV(Q1,{node:C,level:0,expandedDirs:i,onToggleDir:p},C.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:279,columnNumber:15},this)):l.jsxDEV("div",{className:"text-center text-muted-foreground py-8",children:"No files found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:288,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:276,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:275,columnNumber:7},this),l.jsxDEV(nt,{className:"p-4",children:[l.jsxDEV("h3",{className:"text-sm font-medium mb-2",children:"Bundle Legend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:297,columnNumber:9},this),l.jsxDEV("div",{className:"flex flex-wrap gap-2",children:c.map(C=>l.jsxDEV(vt,{variant:"outline",children:[C.name," (",C.files.length,")"]},C.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:300,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:298,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:296,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:257,columnNumber:5},this)}function Rl({className:i,type:a,...c}){return l.jsxDEV("input",{type:a,"data-slot":"input",className:Vn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...c},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/input.tsx",lineNumber:7,columnNumber:5},this)}function Ar(i,a,{checkForDefaultPrevented:c=!0}={}){return function(p){if(i==null||i(p),c===!1||!p.defaultPrevented)return a==null?void 0:a(p)}}function ab(i,a=[]){let c=[];function d(v,w){const j=Q.createContext(w),y=c.length;c=[...c,w];const C=f=>{var I;const{scope:g,children:A,...G}=f,$=((I=g==null?void 0:g[i])==null?void 0:I[y])||j,H=Q.useMemo(()=>G,Object.values(G));return jt.jsx($.Provider,{value:H,children:A})};C.displayName=v+"Provider";function M(f,g){var $;const A=(($=g==null?void 0:g[i])==null?void 0:$[y])||j,G=Q.useContext(A);if(G)return G;if(w!==void 0)return w;throw new Error(`\`${f}\` must be used within \`${v}\``)}return[C,M]}const p=()=>{const v=c.map(w=>Q.createContext(w));return function(j){const y=(j==null?void 0:j[i])||v;return Q.useMemo(()=>({[`__scope${i}`]:{...j,[i]:y}}),[j,y])}};return p.scopeName=i,[d,JU(p,...a)]}function JU(...i){const a=i[0];if(i.length===1)return a;const c=()=>{const d=i.map(p=>({useScope:p(),scopeName:p.scopeName}));return function(v){const w=d.reduce((j,{useScope:y,scopeName:C})=>{const f=y(v)[`__scope${C}`];return{...j,...f}},{});return Q.useMemo(()=>({[`__scope${a.scopeName}`]:w}),[w])}};return c.scopeName=a.scopeName,c}function WU(i){const a=i+"CollectionProvider",[c,d]=ab(a),[p,v]=c(a,{collectionRef:{current:null},itemMap:new Map}),w=$=>{const{scope:H,children:I}=$,Se=re.useRef(null),ne=re.useRef(new Map).current;return jt.jsx(p,{scope:H,itemMap:ne,collectionRef:Se,children:I})};w.displayName=a;const j=i+"CollectionSlot",y=Gd(j),C=re.forwardRef(($,H)=>{const{scope:I,children:Se}=$,ne=v(j,I),fe=Yd(H,ne.collectionRef);return jt.jsx(y,{ref:fe,children:Se})});C.displayName=j;const M=i+"CollectionItemSlot",f="data-radix-collection-item",g=Gd(M),A=re.forwardRef(($,H)=>{const{scope:I,children:Se,...ne}=$,fe=re.useRef(null),de=Yd(H,fe),Ee=v(M,I);return re.useEffect(()=>(Ee.itemMap.set(fe,{ref:fe,...ne}),()=>void Ee.itemMap.delete(fe))),jt.jsx(g,{[f]:"",ref:de,children:Se})});A.displayName=M;function G($){const H=v(i+"CollectionConsumer",$);return re.useCallback(()=>{const Se=H.collectionRef.current;if(!Se)return[];const ne=Array.from(Se.querySelectorAll(`[${f}]`));return Array.from(H.itemMap.values()).sort((Ee,je)=>ne.indexOf(Ee.ref.current)-ne.indexOf(je.ref.current))},[H.collectionRef,H.itemMap])}return[{Provider:w,Slot:C,ItemSlot:A},G,d]}var Xd=globalThis!=null&&globalThis.document?Q.useLayoutEffect:()=>{},e3=d1[" useId ".trim().toString()]||(()=>{}),t3=0;function I1(i){const[a,c]=Q.useState(e3());return Xd(()=>{c(d=>d??String(t3++))},[i]),i||(a?`radix-${a}`:"")}var n3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kl=n3.reduce((i,a)=>{const c=Gd(`Primitive.${a}`),d=Q.forwardRef((p,v)=>{const{asChild:w,...j}=p,y=w?c:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jt.jsx(y,{...j,ref:v})});return d.displayName=`Primitive.${a}`,{...i,[a]:d}},{});function s3(i){const a=Q.useRef(i);return Q.useEffect(()=>{a.current=i}),Q.useMemo(()=>(...c)=>{var d;return(d=a.current)==null?void 0:d.call(a,...c)},[])}var r3=d1[" useInsertionEffect ".trim().toString()]||Xd;function X1({prop:i,defaultProp:a,onChange:c=()=>{},caller:d}){const[p,v,w]=o3({defaultProp:a,onChange:c}),j=i!==void 0,y=j?i:p;{const M=Q.useRef(i!==void 0);Q.useEffect(()=>{const f=M.current;f!==j&&console.warn(`${d} is changing from ${f?"controlled":"uncontrolled"} to ${j?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),M.current=j},[j,d])}const C=Q.useCallback(M=>{var f;if(j){const g=a3(M)?M(i):M;g!==i&&((f=w.current)==null||f.call(w,g))}else v(M)},[j,i,v,w]);return[y,C]}function o3({defaultProp:i,onChange:a}){const[c,d]=Q.useState(i),p=Q.useRef(c),v=Q.useRef(a);return r3(()=>{v.current=a},[a]),Q.useEffect(()=>{var w;p.current!==c&&((w=v.current)==null||w.call(v,c),p.current=c)},[c,p]),[c,d,v]}function a3(i){return typeof i=="function"}var l3=Q.createContext(void 0);function Z1(i){const a=Q.useContext(l3);return i||a||"ltr"}var Mh="rovingFocusGroup.onEntryFocus",i3={bubbles:!1,cancelable:!0},Pc="RovingFocusGroup",[eb,K1,c3]=WU(Pc),[u3,J1]=ab(Pc,[c3]),[d3,m3]=u3(Pc),W1=Q.forwardRef((i,a)=>jt.jsx(eb.Provider,{scope:i.__scopeRovingFocusGroup,children:jt.jsx(eb.Slot,{scope:i.__scopeRovingFocusGroup,children:jt.jsx(f3,{...i,ref:a})})}));W1.displayName=Pc;var f3=Q.forwardRef((i,a)=>{const{__scopeRovingFocusGroup:c,orientation:d,loop:p=!1,dir:v,currentTabStopId:w,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:y,onEntryFocus:C,preventScrollOnEntryFocus:M=!1,...f}=i,g=Q.useRef(null),A=Yd(a,g),G=Z1(v),[$,H]=X1({prop:w,defaultProp:j??null,onChange:y,caller:Pc}),[I,Se]=Q.useState(!1),ne=s3(C),fe=K1(c),de=Q.useRef(!1),[Ee,je]=Q.useState(0);return Q.useEffect(()=>{const K=g.current;if(K)return K.addEventListener(Mh,ne),()=>K.removeEventListener(Mh,ne)},[ne]),jt.jsx(d3,{scope:c,orientation:d,dir:G,loop:p,currentTabStopId:$,onItemFocus:Q.useCallback(K=>H(K),[H]),onItemShiftTab:Q.useCallback(()=>Se(!0),[]),onFocusableItemAdd:Q.useCallback(()=>je(K=>K+1),[]),onFocusableItemRemove:Q.useCallback(()=>je(K=>K-1),[]),children:jt.jsx(Kl.div,{tabIndex:I||Ee===0?-1:0,"data-orientation":d,...f,ref:A,style:{outline:"none",...i.style},onMouseDown:Ar(i.onMouseDown,()=>{de.current=!0}),onFocus:Ar(i.onFocus,K=>{const J=!de.current;if(K.target===K.currentTarget&&J&&!I){const ce=new CustomEvent(Mh,i3);if(K.currentTarget.dispatchEvent(ce),!ce.defaultPrevented){const oe=fe().filter(T=>T.focusable),Ne=oe.find(T=>T.active),X=oe.find(T=>T.id===$),V=[Ne,X,...oe].filter(Boolean).map(T=>T.ref.current);nw(V,M)}}de.current=!1}),onBlur:Ar(i.onBlur,()=>Se(!1))})})}),ew="RovingFocusGroupItem",tw=Q.forwardRef((i,a)=>{const{__scopeRovingFocusGroup:c,focusable:d=!0,active:p=!1,tabStopId:v,children:w,...j}=i,y=I1(),C=v||y,M=m3(ew,c),f=M.currentTabStopId===C,g=K1(c),{onFocusableItemAdd:A,onFocusableItemRemove:G,currentTabStopId:$}=M;return Q.useEffect(()=>{if(d)return A(),()=>G()},[d,A,G]),jt.jsx(eb.ItemSlot,{scope:c,id:C,focusable:d,active:p,children:jt.jsx(Kl.span,{tabIndex:f?0:-1,"data-orientation":M.orientation,...j,ref:a,onMouseDown:Ar(i.onMouseDown,H=>{d?M.onItemFocus(C):H.preventDefault()}),onFocus:Ar(i.onFocus,()=>M.onItemFocus(C)),onKeyDown:Ar(i.onKeyDown,H=>{if(H.key==="Tab"&&H.shiftKey){M.onItemShiftTab();return}if(H.target!==H.currentTarget)return;const I=b3(H,M.orientation,M.dir);if(I!==void 0){if(H.metaKey||H.ctrlKey||H.altKey||H.shiftKey)return;H.preventDefault();let ne=g().filter(fe=>fe.focusable).map(fe=>fe.ref.current);if(I==="last")ne.reverse();else if(I==="prev"||I==="next"){I==="prev"&&ne.reverse();const fe=ne.indexOf(H.currentTarget);ne=M.loop?v3(ne,fe+1):ne.slice(fe+1)}setTimeout(()=>nw(ne))}}),children:typeof w=="function"?w({isCurrentTabStop:f,hasTabStop:$!=null}):w})})});tw.displayName=ew;var p3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function h3(i,a){return a!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function b3(i,a,c){const d=h3(i.key,c);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(d))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(d)))return p3[d]}function nw(i,a=!1){const c=document.activeElement;for(const d of i)if(d===c||(d.focus({preventScroll:a}),document.activeElement!==c))return}function v3(i,a){return i.map((c,d)=>i[(a+d)%i.length])}var x3=W1,g3=tw;function y3(i,a){return Q.useReducer((c,d)=>a[c][d]??c,i)}var sw=i=>{const{present:a,children:c}=i,d=N3(a),p=typeof c=="function"?c({present:d.isPresent}):Q.Children.only(c),v=Yd(d.ref,w3(p));return typeof c=="function"||d.isPresent?Q.cloneElement(p,{ref:v}):null};sw.displayName="Presence";function N3(i){const[a,c]=Q.useState(),d=Q.useRef(null),p=Q.useRef(i),v=Q.useRef("none"),w=i?"mounted":"unmounted",[j,y]=y3(w,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const C=kd(d.current);v.current=j==="mounted"?C:"none"},[j]),Xd(()=>{const C=d.current,M=p.current;if(M!==i){const g=v.current,A=kd(C);i?y("MOUNT"):A==="none"||(C==null?void 0:C.display)==="none"?y("UNMOUNT"):y(M&&g!==A?"ANIMATION_OUT":"UNMOUNT"),p.current=i}},[i,y]),Xd(()=>{if(a){let C;const M=a.ownerDocument.defaultView??window,f=A=>{const $=kd(d.current).includes(A.animationName);if(A.target===a&&$&&(y("ANIMATION_END"),!p.current)){const H=a.style.animationFillMode;a.style.animationFillMode="forwards",C=M.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=H)})}},g=A=>{A.target===a&&(v.current=kd(d.current))};return a.addEventListener("animationstart",g),a.addEventListener("animationcancel",f),a.addEventListener("animationend",f),()=>{M.clearTimeout(C),a.removeEventListener("animationstart",g),a.removeEventListener("animationcancel",f),a.removeEventListener("animationend",f)}}else y("ANIMATION_END")},[a,y]),{isPresent:["mounted","unmountSuspended"].includes(j),ref:Q.useCallback(C=>{d.current=C?getComputedStyle(C):null,c(C)},[])}}function kd(i){return(i==null?void 0:i.animationName)||"none"}function w3(i){var d,p;let a=(d=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:d.get,c=a&&"isReactWarning"in a&&a.isReactWarning;return c?i.ref:(a=(p=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:p.get,c=a&&"isReactWarning"in a&&a.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}var Zd="Tabs",[S3,sC]=ab(Zd,[J1]),rw=J1(),[E3,lb]=S3(Zd),ow=Q.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,onValueChange:p,defaultValue:v,orientation:w="horizontal",dir:j,activationMode:y="automatic",...C}=i,M=Z1(j),[f,g]=X1({prop:d,onChange:p,defaultProp:v??"",caller:Zd});return jt.jsx(E3,{scope:c,baseId:I1(),value:f,onValueChange:g,orientation:w,dir:M,activationMode:y,children:jt.jsx(Kl.div,{dir:M,"data-orientation":w,...C,ref:a})})});ow.displayName=Zd;var aw="TabsList",lw=Q.forwardRef((i,a)=>{const{__scopeTabs:c,loop:d=!0,...p}=i,v=lb(aw,c),w=rw(c);return jt.jsx(x3,{asChild:!0,...w,orientation:v.orientation,dir:v.dir,loop:d,children:jt.jsx(Kl.div,{role:"tablist","aria-orientation":v.orientation,...p,ref:a})})});lw.displayName=aw;var iw="TabsTrigger",cw=Q.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,disabled:p=!1,...v}=i,w=lb(iw,c),j=rw(c),y=mw(w.baseId,d),C=fw(w.baseId,d),M=d===w.value;return jt.jsx(g3,{asChild:!0,...j,focusable:!p,active:M,children:jt.jsx(Kl.button,{type:"button",role:"tab","aria-selected":M,"aria-controls":C,"data-state":M?"active":"inactive","data-disabled":p?"":void 0,disabled:p,id:y,...v,ref:a,onMouseDown:Ar(i.onMouseDown,f=>{!p&&f.button===0&&f.ctrlKey===!1?w.onValueChange(d):f.preventDefault()}),onKeyDown:Ar(i.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&w.onValueChange(d)}),onFocus:Ar(i.onFocus,()=>{const f=w.activationMode!=="manual";!M&&!p&&f&&w.onValueChange(d)})})})});cw.displayName=iw;var uw="TabsContent",dw=Q.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,forceMount:p,children:v,...w}=i,j=lb(uw,c),y=mw(j.baseId,d),C=fw(j.baseId,d),M=d===j.value,f=Q.useRef(M);return Q.useEffect(()=>{const g=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(g)},[]),jt.jsx(sw,{present:p||M,children:({present:g})=>jt.jsx(Kl.div,{"data-state":M?"active":"inactive","data-orientation":j.orientation,role:"tabpanel","aria-labelledby":y,hidden:!g,id:C,tabIndex:0,...w,ref:a,style:{...i.style,animationDuration:f.current?"0s":void 0},children:g&&v})})});dw.displayName=uw;function mw(i,a){return`${i}-trigger-${a}`}function fw(i,a){return`${i}-content-${a}`}var j3=ow,D3=lw,T3=cw,U3=dw;function Kd({className:i,...a}){return l.jsxDEV(j3,{"data-slot":"tabs",className:Vn("flex flex-col gap-2",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:11,columnNumber:5},this)}function Jd({className:i,...a}){return l.jsxDEV(D3,{"data-slot":"tabs-list",className:Vn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:24,columnNumber:5},this)}function Ds({className:i,...a}){return l.jsxDEV(T3,{"data-slot":"tabs-trigger",className:Vn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:40,columnNumber:5},this)}function Ts({className:i,...a}){return l.jsxDEV(U3,{"data-slot":"tabs-content",className:Vn("flex-1 outline-none",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:56,columnNumber:5},this)}const C3=async()=>{const i=await fetch("http://localhost:3333/api/config");if(!i.ok)throw new Error("Failed to fetch config");return i.json()},R3=async i=>{if(!(await fetch("http://localhost:3333/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok)throw new Error("Failed to save config")},A3=async()=>{const i=await fetch("http://localhost:3333/api/files");if(!i.ok)throw new Error("Failed to fetch files");return i.json()},V3=async i=>{const a=await fetch("http://localhost:3333/api/test-pattern",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pattern:i})});if(!a.ok)throw new Error("Failed to test pattern");return a.json()};function M3(){const i=Il(),[a,c]=Q.useState(null),[d,p]=Q.useState(!1),[v,w]=Q.useState("name"),[j,y]=Q.useState(""),[C,M]=Q.useState(new Set),[f,g]=Q.useState([]),[A,G]=Q.useState(-1),[$,H]=Q.useState(""),[I,Se]=Q.useState([]),{data:ne,isLoading:fe}=js({queryKey:["config"],queryFn:C3}),{data:de,isLoading:Ee}=js({queryKey:["project-files"],queryFn:A3}),je=fa({mutationFn:R3,onSuccess:()=>{i.invalidateQueries({queryKey:["config"]}),i.invalidateQueries({queryKey:["bundles"]}),c(null),p(!1),y(""),M(new Set),g([]),w("name"),ot.success("Bundle configuration saved!")},onError:W=>{ot.error(`Failed to save: ${W.message}`)}}),K=W=>{const V=[],T=new Set;return W.forEach(k=>{const z=k.split("/").slice(0,-1).join("/");z&&T.add(z)}),T.forEach(k=>{W.filter(ae=>ae.startsWith(k+"/")).length>1&&V.push(`${k}/**/*`)}),W.forEach(k=>{V.some(ae=>new RegExp(ae.replace(/\*\*/g,".*").replace(/\*/g,"[^/]*")).test(k))||V.push(k)}),V.length>0?V:W},J=()=>{if(!ne||!j.trim())return;const W=f.length>0?f:Array.from(C),V={...ne,bundles:{...ne.bundles,[j]:W}};je.mutate(V)},ce=W=>{if(!ne)return;const{[W]:V,...T}=ne.bundles,k={...ne,bundles:T};je.mutate(k)},oe=(W,V)=>{if(!ne)return;const T={...ne,bundles:{...ne.bundles,[W]:V}};je.mutate(T)},Ne=async()=>{if($.trim())try{const W=await V3($);Se(W)}catch{ot.error("Failed to test pattern")}},X=(W,V,T)=>{const k=new Set(C);if(T!=null&&T.shiftKey&&A>=0&&de){const z=Math.min(A,V),ae=Math.max(A,V);for(let N=z;N<=ae;N++)de[N]&&k.add(de[N].path)}else k.has(W)?k.delete(W):k.add(W);if(M(k),G(V),k.size>0){const z=K(Array.from(k));g(z)}else g([])};return fe||Ee?l.jsxDEV("div",{className:"p-4",children:"Loading..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:216,columnNumber:12},this):l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center justify-between",children:["Bundle Configuration",l.jsxDEV(Ce,{onClick:()=>p(!0),size:"sm",children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:228,columnNumber:13},this),"Create Bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:224,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:222,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:221,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-6",children:[d&&l.jsxDEV(nt,{className:"border-2 border-blue-200 bg-blue-50/50",children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"text-lg",children:"Create New Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:238,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:237,columnNumber:13},this),l.jsxDEV(at,{children:l.jsxDEV(Kd,{value:v,onValueChange:W=>w(W),children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-3",children:[l.jsxDEV(Ds,{value:"name",children:"1. Name"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:243,columnNumber:19},this),l.jsxDEV(Ds,{value:"files",disabled:!j.trim(),children:"2. Select Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:244,columnNumber:19},this),l.jsxDEV(Ds,{value:"patterns",disabled:C.size===0,children:"3. Review"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:245,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:242,columnNumber:17},this),l.jsxDEV(Ts,{value:"name",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Bundle Name"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:250,columnNumber:21},this),l.jsxDEV(Rl,{placeholder:"e.g., frontend, api, components",value:j,onChange:W=>y(W.target.value)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:251,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:249,columnNumber:19},this),l.jsxDEV(Ce,{onClick:()=>w("files"),disabled:!j.trim(),children:"Next: Select Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:257,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:248,columnNumber:17},this),l.jsxDEV(Ts,{value:"files",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[l.jsxDEV("label",{className:"text-sm font-medium",children:['Select Files for "',j,'"']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:268,columnNumber:23},this),l.jsxDEV(vt,{variant:"outline",children:[C.size," selected"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:269,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:267,columnNumber:21},this),l.jsxDEV("div",{className:"text-xs text-muted-foreground mb-2",children:"Click to select files. Hold Shift and click to select ranges."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:272,columnNumber:21},this),l.jsxDEV("div",{className:"max-h-64 overflow-y-auto border rounded-lg p-3 space-y-1",children:de==null?void 0:de.map((W,V)=>l.jsxDEV("div",{className:"flex items-center gap-2 p-2 hover:bg-gray-50 rounded cursor-pointer select-none",onClick:T=>X(W.path,V,T),children:[C.has(W.path)?l.jsxDEV(DT,{className:"w-4 h-4 text-blue-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:284,columnNumber:29},this):l.jsxDEV(q1,{className:"w-4 h-4 text-gray-400"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:286,columnNumber:29},this),l.jsxDEV("span",{className:"text-sm font-mono flex-1",children:W.path},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:288,columnNumber:27},this),l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:W.type},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:289,columnNumber:27},this)]},W.path,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:278,columnNumber:25},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:276,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:266,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>w("name"),children:"Back"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:296,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>w("patterns"),disabled:C.size===0,children:"Next: Review Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:299,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:295,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:265,columnNumber:17},this),l.jsxDEV(Ts,{value:"patterns",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Generated Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:310,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-2 mt-2",children:[f.map((W,V)=>l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{value:W,onChange:T=>{const k=[...f];k[V]=T.target.value,g(k)},className:"font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:314,columnNumber:27},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>{const T=f.filter((k,z)=>z!==V);g(T)},children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:331,columnNumber:29},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:323,columnNumber:27},this)]},V,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:313,columnNumber:25},this)),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>g([...f,"**/*"]),children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:340,columnNumber:25},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:335,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:311,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:309,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>w("files"),children:"Back"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:347,columnNumber:21},this),l.jsxDEV(Ce,{variant:"outline",onClick:()=>p(!1),children:"Cancel"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:350,columnNumber:21},this),l.jsxDEV(Ce,{onClick:J,disabled:je.isPending,children:"Create Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:353,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:346,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:308,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:241,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:240,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:236,columnNumber:11},this),l.jsxDEV("div",{className:"space-y-4",children:ne&&Object.entries(ne.bundles).map(([W,V])=>l.jsxDEV("div",{className:"border rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[l.jsxDEV("h3",{className:"font-medium",children:W},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:368,columnNumber:17},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>c(a===W?null:W),children:a===W?"Done":"Edit"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:370,columnNumber:19},this),W!=="master"&&l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>ce(W),children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:383,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:378,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:369,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:367,columnNumber:15},this),a===W?l.jsxDEV("div",{className:"space-y-2",children:[V.map((T,k)=>l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{value:T,onChange:z=>{const ae=[...V];ae[k]=z.target.value,oe(W,ae)},placeholder:"e.g., src/**/*.ts",className:"font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:393,columnNumber:23},this),V.length>1&&l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>{const z=V.filter((ae,N)=>N!==k);oe(W,z)},children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:412,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:404,columnNumber:25},this)]},k,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:392,columnNumber:21},this)),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>oe(W,[...V,"**/*"]),children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:422,columnNumber:21},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:417,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:390,columnNumber:17},this):l.jsxDEV("div",{className:"flex flex-wrap gap-1",children:V.map((T,k)=>l.jsxDEV(vt,{variant:"secondary",className:"font-mono text-xs",children:T},k,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:429,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:427,columnNumber:17},this)]},W,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:366,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:364,columnNumber:9},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Test a Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:442,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:441,columnNumber:11},this),l.jsxDEV(at,{className:"space-y-3",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{placeholder:"e.g., src/**/*.ts",value:$,onChange:W=>H(W.target.value),className:"font-mono"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:446,columnNumber:15},this),l.jsxDEV(Ce,{onClick:Ne,children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:453,columnNumber:17},this),"Test"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:452,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:445,columnNumber:13},this),I.length>0&&l.jsxDEV("div",{className:"mt-3",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground mb-2",children:["Found ",I.length," files:"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:460,columnNumber:17},this),l.jsxDEV("div",{className:"max-h-32 overflow-y-auto text-xs space-y-1 bg-muted/50 p-2 rounded font-mono",children:[I.slice(0,20).map((W,V)=>l.jsxDEV("div",{children:W},V,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:465,columnNumber:21},this)),I.length>20&&l.jsxDEV("div",{className:"text-muted-foreground",children:["... and ",I.length-20," more files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:468,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:463,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:459,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:444,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:440,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:233,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:220,columnNumber:5},this)}function JN({className:i,...a}){return l.jsxDEV("textarea",{"data-slot":"textarea",className:Vn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/textarea.tsx",lineNumber:7,columnNumber:5},this)}const O3=ob("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function Cr({className:i,variant:a,...c}){return l.jsxDEV("div",{"data-slot":"alert",role:"alert",className:Vn(O3({variant:a}),i),...c},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function Rr({className:i,...a}){return l.jsxDEV("div",{"data-slot":"alert-description",className:Vn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:55,columnNumber:5},this)}const P3=async()=>{const i=await fetch("http://localhost:3333/api/cursor-rules");if(!i.ok)throw new Error("Failed to fetch cursor rules");return i.text()},k3=async i=>{if(!(await fetch("http://localhost:3333/api/cursor-rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})})).ok)throw new Error("Failed to save cursor rules")},z3=async()=>{const i=await fetch("http://localhost:3333/api/claude-md");if(!i.ok)throw new Error("Failed to fetch CLAUDE.md");return i.text()},H3=async i=>{if(!(await fetch("http://localhost:3333/api/claude-md",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})})).ok)throw new Error("Failed to save CLAUDE.md")};function _3(){const i=Il(),[a,c]=Q.useState(""),[d,p]=Q.useState(""),[v,w]=Q.useState("cursor"),{data:j,isLoading:y}=js({queryKey:["cursor-rules"],queryFn:P3}),C=fa({mutationFn:k3,onSuccess:()=>{i.invalidateQueries({queryKey:["cursor-rules"]}),ot.success(".cursorrules saved successfully!")},onError:I=>{ot.error(`Failed to save .cursorrules: ${I.message}`)}}),{data:M,isLoading:f}=js({queryKey:["claude-md"],queryFn:z3}),g=fa({mutationFn:H3,onSuccess:()=>{i.invalidateQueries({queryKey:["claude-md"]}),ot.success("CLAUDE.md saved successfully!")},onError:I=>{ot.error(`Failed to save CLAUDE.md: ${I.message}`)}});Q.useEffect(()=>{j&&!a&&c(j)},[j]),Q.useEffect(()=>{M&&!d&&p(M)},[M]);const A=()=>{C.mutate(a)},G=()=>{g.mutate(d)},$=(I,Se)=>{navigator.clipboard.writeText(I),ot.success(`${Se} copied to clipboard!`)},H=(I,Se)=>{const ne=new Blob([I],{type:"text/plain"}),fe=URL.createObjectURL(ne),de=document.createElement("a");de.href=fe,de.download=Se,document.body.appendChild(de),de.click(),document.body.removeChild(de),URL.revokeObjectURL(fe),ot.success(`${Se} downloaded!`)};return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:126,columnNumber:11},this),"AI Rules & Context"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:125,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:124,columnNumber:7},this),l.jsxDEV(at,{children:[l.jsxDEV(Cr,{className:"mb-4",children:[l.jsxDEV(Kh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:132,columnNumber:11},this),l.jsxDEV(Rr,{children:["Configure AI context files for better assistance. ",l.jsxDEV("strong",{children:".cursorrules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:134,columnNumber:63},this)," works with Cursor, while ",l.jsxDEV("strong",{children:"CLAUDE.md"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:135,columnNumber:19},this)," provides project context for Claude."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:133,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:131,columnNumber:9},this),l.jsxDEV(Kd,{value:v,onValueChange:I=>w(I),className:"space-y-4",children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-2",children:[l.jsxDEV(Ds,{value:"cursor",className:"flex items-center gap-2",children:[l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:142,columnNumber:15},this),".cursorrules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:141,columnNumber:13},this),l.jsxDEV(Ds,{value:"claude",className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:146,columnNumber:15},this),"CLAUDE.md"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:145,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:140,columnNumber:11},this),l.jsxDEV(Ts,{value:"cursor",className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h3",{className:"font-medium",children:"Cursor AI Assistant Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:154,columnNumber:17},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Configure how Cursor's AI understands your project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:155,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:153,columnNumber:15},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>$(a,".cursorrules"),children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:165,columnNumber:19},this),"Copy"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:160,columnNumber:17},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>H(a,".cursorrules"),children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:173,columnNumber:19},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:168,columnNumber:17},this),l.jsxDEV(Ce,{onClick:A,disabled:C.isPending,size:"sm",children:[l.jsxDEV(QN,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:181,columnNumber:19},this),"Save"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:176,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:159,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:152,columnNumber:13},this),y?l.jsxDEV("div",{className:"flex items-center justify-center p-8",children:[l.jsxDEV(Qd,{className:"w-6 h-6 animate-spin mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:189,columnNumber:17},this),"Loading..."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:188,columnNumber:15},this):l.jsxDEV(JN,{value:a,onChange:I=>c(I.target.value),placeholder:"Enter your Cursor AI rules here...",className:"min-h-[300px] font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:193,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:151,columnNumber:11},this),l.jsxDEV(Ts,{value:"claude",className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h3",{className:"font-medium",children:"Claude Project Context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:205,columnNumber:17},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Markdown file explaining your project structure and guidelines"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:206,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:204,columnNumber:15},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>$(d,"CLAUDE.md"),children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:216,columnNumber:19},this),"Copy"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:211,columnNumber:17},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>H(d,"CLAUDE.md"),children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:224,columnNumber:19},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:219,columnNumber:17},this),l.jsxDEV(Ce,{onClick:G,disabled:g.isPending,size:"sm",children:[l.jsxDEV(QN,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:232,columnNumber:19},this),"Save"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:227,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:210,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:203,columnNumber:13},this),f?l.jsxDEV("div",{className:"flex items-center justify-center p-8",children:[l.jsxDEV(Qd,{className:"w-6 h-6 animate-spin mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:240,columnNumber:17},this),"Loading..."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:239,columnNumber:15},this):l.jsxDEV(JN,{value:d,onChange:I=>p(I.target.value),placeholder:"Enter your Claude project context here...",className:"min-h-[300px] font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:244,columnNumber:15},this),l.jsxDEV(Cr,{children:[l.jsxDEV(Kh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:253,columnNumber:15},this),l.jsxDEV(Rr,{children:"This file helps Claude understand your project. Include project structure, coding conventions, key concepts, and any important context."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:254,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:252,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:202,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:130,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:123,columnNumber:5},this)}const B3=async(i=null)=>{const a=i?`http://localhost:3333/api/files-with-visibility?bundle=${i}`:"http://localhost:3333/api/files-with-visibility",c=await fetch(a);if(!c.ok)throw new Error("Failed to fetch files");return c.json()},L3=async()=>{const i=await fetch("http://localhost:3333/api/ignore-patterns");if(!i.ok)throw new Error("Failed to fetch ignore patterns");return i.json()},q3=async()=>{const i=await fetch("http://localhost:3333/api/bundle-visibility-stats");if(!i.ok)throw new Error("Failed to fetch bundle stats");return i.json()},F3=async({filePath:i,bundleName:a=null,forceHide:c=null})=>{const d=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:i,bundleName:a,forceHide:c})});if(!d.ok)throw new Error("Failed to toggle file visibility");return d.json()},Y3=async({filePaths:i,bundleName:a=null,forceHide:c})=>{const d=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"bulk-toggle",filePaths:i,bundleName:a,forceHide:c})});if(!d.ok)throw new Error("Failed to bulk toggle visibility");return d.json()},G3=async({action:i,pattern:a})=>{const c=await fetch("http://localhost:3333/api/ignore-patterns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:i,pattern:a})});if(!c.ok)throw new Error("Failed to manage ignore pattern");return c.json()},$3=async({scope:i,bundleName:a=null})=>{const c=await fetch("http://localhost:3333/api/reset-hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scope:i,bundleName:a})});if(!c.ok)throw new Error("Failed to reset hidden files");return c.json()};function Q3(){const i=Il(),[a,c]=Q.useState(null),[d,p]=Q.useState(""),[v,w]=Q.useState(!1),[j,y]=Q.useState("all"),[C,M]=Q.useState(""),[f,g]=Q.useState([]),{data:A=[],isLoading:G}=js({queryKey:["files-with-visibility",a],queryFn:()=>B3(a),refetchInterval:5e3}),{data:$={system:[],user:[],file:[]},isLoading:H}=js({queryKey:["ignore-patterns"],queryFn:L3,refetchInterval:1e4}),{data:I={},isLoading:Se}=js({queryKey:["bundle-visibility-stats"],queryFn:q3,refetchInterval:5e3}),ne=fa({mutationFn:F3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("File visibility updated")},onError:X=>ot.error(`Failed to update file visibility: ${X.message}`)}),fe=fa({mutationFn:Y3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),g([]),ot.success("Bulk visibility update completed")},onError:X=>ot.error(`Failed to bulk update visibility: ${X.message}`)}),de=fa({mutationFn:G3,onSuccess:()=>{i.invalidateQueries({queryKey:["ignore-patterns"]}),i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("Ignore pattern updated")},onError:X=>ot.error(`Failed to update ignore pattern: ${X.message}`)}),Ee=fa({mutationFn:$3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("Hidden files reset successfully")},onError:X=>ot.error(`Failed to reset hidden files: ${X.message}`)}),je=A.filter(X=>{const W=X.path.toLowerCase().includes(d.toLowerCase()),V=j==="all"||j==="hidden"&&!X.visible||j==="visible"&&X.visible,T=v||X.visible;return W&&V&&T}),K=X=>{ne.mutate({filePath:X,bundleName:a})},J=X=>{fe.mutate({filePaths:f,bundleName:a,forceHide:X})},ce=()=>{C.trim()&&(de.mutate({action:"add",pattern:C.trim()}),M(""))},oe=(X,W=!1)=>{const V=W?"toggle-system":"remove";de.mutate({action:V,pattern:X})},Ne=[...($.system||[]).map(X=>({...X,source:"system"})),...($.user||[]).map(X=>({...X,source:"user"})),...($.file||[]).map(X=>({...X,source:"file"}))];return l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h2",{className:"text-lg font-semibold",children:"File Visibility & Ignore Management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:259,columnNumber:11},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Control which files appear in bundles and manage ignore patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:260,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:258,columnNumber:9},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"flex items-center gap-1",children:[l.jsxDEV(Cl,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:266,columnNumber:13},this),je.filter(X=>X.visible).length," visible"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:265,columnNumber:11},this),l.jsxDEV(vt,{variant:"outline",className:"flex items-center gap-1",children:[l.jsxDEV(Ul,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:270,columnNumber:13},this),je.filter(X=>!X.visible).length," hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:269,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:264,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:257,columnNumber:7},this),l.jsxDEV(Kd,{defaultValue:"files",className:"space-y-6",children:[l.jsxDEV(Jd,{children:[l.jsxDEV(Ds,{value:"files",children:"File Visibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:278,columnNumber:11},this),l.jsxDEV(Ds,{value:"patterns",children:"Ignore Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:279,columnNumber:11},this),l.jsxDEV(Ds,{value:"bundles",children:"Bundle Overview"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:280,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:277,columnNumber:9},this),l.jsxDEV(Ts,{value:"files",className:"space-y-4",children:[l.jsxDEV(nt,{children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV("div",{className:"flex items-center gap-4 mb-4",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Bundle:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:290,columnNumber:19},this),l.jsxDEV("select",{value:a||"",onChange:X=>c(X.target.value||null),className:"px-3 py-2 border rounded-md text-sm",children:[l.jsxDEV("option",{value:"",children:"All Bundles (Global)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:296,columnNumber:21},this),Object.keys(I).map(X=>l.jsxDEV("option",{value:X,children:X},X,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:298,columnNumber:23},this))]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:291,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:289,columnNumber:17},this),a&&l.jsxDEV(vt,{variant:"secondary",children:["Bundle-specific visibility for ",a]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:304,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:288,columnNumber:15},this),l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV("div",{className:"flex-1",children:l.jsxDEV("div",{className:"relative",children:[l.jsxDEV(aU,{className:"absolute left-2 top-2.5 h-4 w-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:313,columnNumber:21},this),l.jsxDEV(Rl,{placeholder:"Search files...",value:d,onChange:X=>p(X.target.value),className:"pl-8"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:314,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:312,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:311,columnNumber:17},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>w(!v),className:v?"bg-blue-50 border-blue-200":"",children:[v?l.jsxDEV(Cl,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:330,columnNumber:35},this):l.jsxDEV(Ul,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:330,columnNumber:65},this),v?"Hide Hidden":"Show Hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:324,columnNumber:19},this),l.jsxDEV("select",{value:j,onChange:X=>y(X.target.value),className:"px-3 py-2 border rounded-md text-sm",children:[l.jsxDEV("option",{value:"all",children:"All Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:339,columnNumber:21},this),l.jsxDEV("option",{value:"visible",children:"Visible Only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:340,columnNumber:21},this),l.jsxDEV("option",{value:"hidden",children:"Hidden Only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:341,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:334,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:323,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:310,columnNumber:15},this),f.length>0&&l.jsxDEV("div",{className:"flex items-center gap-2 p-3 bg-blue-50 rounded-md border border-blue-200 mt-4",children:[l.jsxDEV(Kh,{className:"w-4 h-4 text-blue-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:349,columnNumber:19},this),l.jsxDEV("span",{className:"text-sm text-blue-800",children:[f.length," files selected"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:350,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2 ml-auto",children:[l.jsxDEV(Ce,{size:"sm",onClick:()=>J(!1),children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:355,columnNumber:23},this),"Show All"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:354,columnNumber:21},this),l.jsxDEV(Ce,{size:"sm",variant:"outline",onClick:()=>J(!0),children:[l.jsxDEV(Ul,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:359,columnNumber:23},this),"Hide All"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:358,columnNumber:21},this),l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>g([]),children:"Cancel"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:362,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:353,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:348,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:287,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:286,columnNumber:11},this),l.jsxDEV(nt,{children:l.jsxDEV(at,{className:"pt-6",children:[G?l.jsxDEV("div",{className:"text-center py-8",children:"Loading files..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:379,columnNumber:17},this):l.jsxDEV("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:je.map(X=>l.jsxDEV("div",{className:`flex items-center gap-3 p-2 rounded-md border transition-colors ${X.visible?"hover:bg-gray-50":"opacity-60 bg-gray-50"}`,children:[l.jsxDEV("input",{type:"checkbox",checked:f.includes(X.path),onChange:W=>{W.target.checked?g([...f,X.path]):g(f.filter(V=>V!==X.path))},className:"rounded"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:388,columnNumber:23},this),l.jsxDEV(Al,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:401,columnNumber:23},this),l.jsxDEV("div",{className:"flex-1 min-w-0",children:[l.jsxDEV("div",{className:"font-mono text-sm truncate",children:X.path},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:404,columnNumber:25},this),l.jsxDEV("div",{className:"flex items-center gap-2 mt-1",children:[X.inBundles.map(W=>l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:W},W,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:407,columnNumber:29},this)),X.globallyHidden&&l.jsxDEV(vt,{variant:"destructive",className:"text-xs",children:"Globally Hidden"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:412,columnNumber:29},this),X.bundleHidden&&a&&l.jsxDEV(vt,{variant:"secondary",className:"text-xs",children:["Hidden in ",a]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:417,columnNumber:29},this),X.matchesIgnorePattern&&l.jsxDEV(vt,{variant:"outline",className:"text-xs text-gray-500",children:"Ignored"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:422,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:405,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:403,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs text-muted-foreground",children:[(X.size/1024).toFixed(1),"kb"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:429,columnNumber:23},this),l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>K(X.path),disabled:ne.isPending,className:"flex-shrink-0",children:X.visible?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Ul,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:442,columnNumber:29},this),"Hide"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:441,columnNumber:27},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:447,columnNumber:29},this),"Show"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:446,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:433,columnNumber:23},this)]},X.path,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:383,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:381,columnNumber:17},this),je.length===0&&!G&&l.jsxDEV("div",{className:"text-center py-8 text-muted-foreground",children:"No files match your current filters"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:458,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:377,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:376,columnNumber:11},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(sU,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:469,columnNumber:17},this),"Reset Options"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:468,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:467,columnNumber:13},this),l.jsxDEV(at,{className:"space-y-3",children:l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ee.mutate({scope:"global"}),disabled:Ee.isPending,children:"Reset Global Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:475,columnNumber:17},this),a&&l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ee.mutate({scope:"bundle",bundleName:a}),disabled:Ee.isPending,children:["Reset ",a," Bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:485,columnNumber:19},this),l.jsxDEV(Ce,{variant:"outline",size:"sm",onClick:()=>Ee.mutate({scope:"all"}),disabled:Ee.isPending,className:"text-red-600 border-red-200 hover:bg-red-50",children:"Reset All Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:495,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:474,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:473,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:466,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:284,columnNumber:9},this),l.jsxDEV(Ts,{value:"patterns",className:"space-y-4",children:[l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Add Ignore Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:514,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:513,columnNumber:13},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{placeholder:"Enter glob pattern (e.g., *.log, src/debug/**)",value:C,onChange:X=>M(X.target.value),className:"flex-1",onKeyDown:X=>X.key==="Enter"&&ce()},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:518,columnNumber:17},this),l.jsxDEV(Ce,{onClick:ce,disabled:!C.trim()||de.isPending,children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:529,columnNumber:19},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:525,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:517,columnNumber:15},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:["Examples: ",l.jsxDEV("code",{children:"*.log"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:27},this),", ",l.jsxDEV("code",{children:"node_modules/**"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:47},this),", ",l.jsxDEV("code",{children:"src/debug.ts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:77},this),", ",l.jsxDEV("code",{children:"**/*.test.*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:104},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:534,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:516,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:512,columnNumber:11},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Current Ignore Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:543,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:542,columnNumber:13},this),l.jsxDEV(at,{children:H?l.jsxDEV("div",{className:"text-center py-4",children:"Loading patterns..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:547,columnNumber:17},this):l.jsxDEV("div",{className:"space-y-3",children:Ne.map((X,W)=>l.jsxDEV("div",{className:`flex items-center gap-3 p-3 rounded-md border ${X.active?"":"opacity-60 bg-gray-50"}`,children:[l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:"font-mono text-sm",children:X.pattern},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:557,columnNumber:25},this),l.jsxDEV("div",{className:"flex items-center gap-2 mt-1",children:[l.jsxDEV(vt,{variant:X.source==="system"?"secondary":X.source==="user"?"default":"outline",className:"text-xs",children:X.source==="system"?"System Default":X.source==="user"?"User Added":"File Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:559,columnNumber:27},this),X.active?l.jsxDEV(vt,{variant:"outline",className:"text-xs text-green-700",children:[l.jsxDEV(Ks,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:569,columnNumber:31},this),"Active"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:568,columnNumber:29},this):l.jsxDEV(vt,{variant:"outline",className:"text-xs text-gray-500",children:[l.jsxDEV(Hd,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:574,columnNumber:31},this),"Disabled"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:573,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:558,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:556,columnNumber:23},this),l.jsxDEV("div",{className:"flex gap-2",children:X.source==="system"?l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>oe(X.pattern,!0),disabled:de.isPending,children:X.active?"Disable":"Enable"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:583,columnNumber:27},this):l.jsxDEV(Ce,{size:"sm",variant:"ghost",onClick:()=>oe(X.pattern,!1),disabled:de.isPending,children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:598,columnNumber:29},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:592,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:581,columnNumber:23},this)]},W,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:551,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:549,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:545,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:541,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:510,columnNumber:9},this),l.jsxDEV(Ts,{value:"bundles",className:"space-y-4",children:Se?l.jsxDEV("div",{className:"text-center py-8",children:"Loading bundle statistics..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:613,columnNumber:13},this):l.jsxDEV("div",{className:"grid gap-4",children:Object.entries(I).map(([X,W])=>l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV(yt,{children:X},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:620,columnNumber:23},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",children:[W.visible," / ",W.total," visible"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:622,columnNumber:25},this),W.hidden>0&&l.jsxDEV(vt,{variant:"secondary",children:[W.hidden," hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:626,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:621,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:619,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:618,columnNumber:19},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:l.jsxDEV("div",{className:"bg-blue-600 h-2 rounded-full",style:{width:`${W.total>0?W.visible/W.total*100:0}%`}},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:637,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:636,columnNumber:25},this),l.jsxDEV(Ce,{size:"sm",variant:"outline",onClick:()=>c(X),children:[l.jsxDEV($l,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:649,columnNumber:27},this),"Manage Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:644,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:635,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:l.jsxDEV("div",{children:["Patterns: ",W.patterns.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:655,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:654,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:634,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:633,columnNumber:19},this)]},X,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:617,columnNumber:17},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:615,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:611,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:276,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:255,columnNumber:5},this)}const pw=async()=>{try{const[i,a,c]=await Promise.all([fetch("http://localhost:3333/api/config"),fetch("http://localhost:3333/api/bundles"),fetch("http://localhost:3333/api/cursor-rules")]),d=i.ok,p=a.ok?await a.json():[],v=c.ok;return{hasConfig:d,hasIgnoreFile:!0,bundleCount:p.length||0,hasCursorRules:v,isFirstTime:!d||p.length===0}}catch{return{hasConfig:!1,hasIgnoreFile:!1,bundleCount:0,hasCursorRules:!1,isFirstTime:!0}}};function I3({onStartSetup:i}){const{data:a,isLoading:c}=js({queryKey:["setup-status"],queryFn:pw,refetchInterval:5e3});return c||!(a!=null&&a.isFirstTime)?null:l.jsxDEV(Cr,{className:"mb-6 border-blue-200 bg-blue-50",children:[l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:64,columnNumber:7},this),l.jsxDEV(Rr,{className:"flex items-center justify-between",children:[l.jsxDEV("div",{children:[l.jsxDEV("strong",{children:"Welcome to cntx-ui!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:67,columnNumber:11},this)," This looks like your first time. The web interface is already running - let's help you get set up properly."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:66,columnNumber:9},this),l.jsxDEV(Ce,{onClick:i,size:"sm",children:"Start Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:65,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:63,columnNumber:5},this)}function X3({onOpenFullSetup:i}){const{data:a,isLoading:c}=js({queryKey:["setup-status"],queryFn:pw,refetchInterval:1e4});if(c)return l.jsxDEV("div",{children:"Checking setup status..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:90,columnNumber:12},this);const d=[{label:"Configuration file exists",passed:(a==null?void 0:a.hasConfig)||!1,description:".cntx/config.json with bundle definitions"},{label:"Ignore patterns configured",passed:(a==null?void 0:a.hasIgnoreFile)||!1,description:".cntxignore file to exclude unnecessary files"},{label:"Bundles generated",passed:((a==null?void 0:a.bundleCount)||0)>0,description:`${(a==null?void 0:a.bundleCount)||0} bundles currently configured`},{label:"Cursor rules created",passed:(a==null?void 0:a.hasCursorRules)||!1,description:".cursorrules file for AI assistant context"}],p=d.every(v=>v.passed);return l.jsxDEV(nt,{className:p?"":"border-yellow-200",children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV($l,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:122,columnNumber:11},this),"Setup Status",p?l.jsxDEV(Ks,{className:"w-5 h-5 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:125,columnNumber:13},this):l.jsxDEV(Id,{className:"w-5 h-5 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:120,columnNumber:7},this),l.jsxDEV(at,{children:[l.jsxDEV("div",{className:"space-y-3",children:d.map((v,w)=>l.jsxDEV("div",{className:"flex items-start gap-3",children:[l.jsxDEV("div",{className:"flex-shrink-0 mt-0.5",children:v.passed?l.jsxDEV(Ks,{className:"w-4 h-4 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:137,columnNumber:19},this):l.jsxDEV(Id,{className:"w-4 h-4 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:139,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:135,columnNumber:15},this),l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:`font-medium ${v.passed?"text-green-700":"text-yellow-700"}`,children:v.label},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:143,columnNumber:17},this),l.jsxDEV("div",{className:"text-sm text-gray-600",children:v.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:146,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:142,columnNumber:15},this)]},w,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:134,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:132,columnNumber:9},this),!p&&l.jsxDEV("div",{className:"mt-4 pt-4 border-t",children:l.jsxDEV(Ce,{onClick:i,variant:"outline",className:"w-full",children:[l.jsxDEV(Y1,{className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:155,columnNumber:15},this),"Complete Setup Guide"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:154,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:153,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:119,columnNumber:5},this)}function Z3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Jh,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:171,columnNumber:11},this),"How to Use cntx-ui"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:170,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:169,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV(Cr,{className:"border-blue-200 bg-blue-50",children:[l.jsxDEV(G1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:177,columnNumber:11},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"You're already running!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:179,columnNumber:13},this)," The web interface provides full functionality. CLI commands are available for automation and advanced workflows."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:178,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:176,columnNumber:9},this),l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2 flex items-center gap-2",children:[l.jsxDEV(Jh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:187,columnNumber:15},this),"Web Interface (Recommended)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:186,columnNumber:13},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-2",children:[l.jsxDEV("p",{children:"Perfect for interactive use and project management:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:191,columnNumber:15},this),l.jsxDEV("div",{className:"ml-4 space-y-1",children:[l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Bundle Management:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:193,columnNumber:24},this)," View, create, and manage bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:193,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Configuration:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:194,columnNumber:24},this)," Edit bundle patterns visually"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:194,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Hidden Files:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:195,columnNumber:24},this)," Control file visibility per bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:195,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Cursor Rules:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:196,columnNumber:24},this)," Manage AI assistant context"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:196,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Real-time Updates:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:197,columnNumber:24},this)," See changes immediately"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:197,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:192,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:185,columnNumber:11},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2 flex items-center gap-2",children:[l.jsxDEV(MT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:204,columnNumber:15},this),"Command Line Interface"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:203,columnNumber:13},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-2",children:[l.jsxDEV("p",{children:"Great for automation, scripts, and CI/CD:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:208,columnNumber:15},this),l.jsxDEV("div",{className:"ml-4 space-y-1",children:[l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Quick bundle generation:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:24},this)," ",l.jsxDEV("code",{className:"bg-gray-100 px-1 rounded",children:"cntx-ui bundle master"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:66},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Status checking:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:24},this)," ",l.jsxDEV("code",{className:"bg-gray-100 px-1 rounded",children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Scripting workflows:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:212,columnNumber:24},this)," Integrate with build processes"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:212,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:209,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:207,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:202,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:184,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:175,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:168,columnNumber:5},this)}function K3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(G1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:228,columnNumber:11},this),"CLI Reference"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:227,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:226,columnNumber:7},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"space-y-3 text-sm font-mono",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui watch"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:235,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Start server (already running)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:236,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:234,columnNumber:11},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:239,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Check configuration status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:240,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:238,columnNumber:11},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui bundle [name]"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:243,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Generate specific bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:244,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:242,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:233,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:232,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:225,columnNumber:5},this)}function J3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Al,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:258,columnNumber:11},this),"Common Workflows"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:257,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:256,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"🎯 For AI Development"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:264,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Create focused bundles (api, ui, core)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:266,columnNumber:13},this),l.jsxDEV("div",{children:"2. Hide debug/temp files from bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:267,columnNumber:13},this),l.jsxDEV("div",{children:"3. Copy bundle XML for AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:268,columnNumber:13},this),l.jsxDEV("div",{children:"4. Use Cursor Rules for project context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:269,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:263,columnNumber:9},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"📁 For Project Organization"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:274,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Configure ignore patterns for unwanted files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:276,columnNumber:13},this),l.jsxDEV("div",{children:"2. Create bundles by feature or responsibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:277,columnNumber:13},this),l.jsxDEV("div",{children:"3. Use hidden files to trim bundle scope"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:278,columnNumber:13},this),l.jsxDEV("div",{children:"4. Monitor bundle sizes and file counts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:279,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:275,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:273,columnNumber:9},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"🤖 For CI/CD Integration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:284,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Use CLI commands in build scripts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:286,columnNumber:13},this),l.jsxDEV("div",{children:"2. Generate bundles for automated testing"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:287,columnNumber:13},this),l.jsxDEV("div",{children:"3. Export project context for deployment"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:288,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:283,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:262,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:255,columnNumber:5},this)}function W3(){const[i,a]=Q.useState(0),[c,d]=Q.useState([{id:"welcome",title:"Welcome to cntx-ui",description:"Organize your code into focused bundles for AI assistance",completed:!1,required:!0},{id:"bundles",title:"Create Your First Bundles",description:"Set up focused file collections and learn the basics",completed:!1,required:!0},{id:"ai-analysis",title:"AI Bundle Analysis (Optional)",description:"Let AI analyze your code and suggest optimal bundles",completed:!1,required:!1},{id:"mcp-integration",title:"MCP Integration (Enhanced)",description:"Set up seamless AI integration with Claude Desktop",completed:!1,required:!1},{id:"workflows",title:"Choose Your Workflow",description:"Manual copy/paste or seamless MCP integration",completed:!1,required:!1}]),[p,v]=Q.useState(!1),[w,j]=Q.useState(!1),y=async()=>{const A=`Analyze this codebase bundle and suggest an optimal bundle configuration for cntx-ui.
|
|
505
505
|
|
|
506
506
|
Based on the file structure and content, recommend 3-6 meaningful bundles with glob patterns that group related files logically.
|
|
507
507
|
|
|
@@ -528,4 +528,4 @@ Return ONLY a JSON configuration in this exact format:
|
|
|
528
528
|
|
|
529
529
|
Please analyze the following master bundle and suggest appropriate bundles:
|
|
530
530
|
|
|
531
|
-
[PASTE YOUR MASTER BUNDLE XML CONTENT HERE]`;try{await navigator.clipboard.writeText(A),v(!0),setTimeout(()=>v(!1),3e3)}catch(G){console.error("Failed to copy AI prompt:",G)}},C=async()=>{try{const A=await fetch("http://localhost:3333/api/bundles/master");if(!A.ok)throw new Error("Failed to fetch master bundle");const G=await A.text();await navigator.clipboard.writeText(G),j(!0),setTimeout(()=>j(!1),3e3)}catch(A){console.error("Failed to copy master bundle:",A)}},M=async()=>{try{const A=await fetch("http://localhost:3333/api/bundles/master");if(!A.ok)throw new Error("Failed to fetch master bundle");const G=await A.text(),$=new Blob([G],{type:"application/xml"}),H=URL.createObjectURL($),I=document.createElement("a");I.href=H,I.download="master-bundle.xml",I.click(),URL.revokeObjectURL(H)}catch(A){console.error("Failed to download master bundle:",A)}},f=A=>{d(G=>G.map($=>$.id===A?{...$,completed:!0}:$))},g=({step:A,isActive:G})=>l.jsxDEV("div",{className:`flex items-center gap-3 p-3 rounded-lg transition-colors ${G?"bg-blue-50 border border-blue-200":"hover:bg-gray-50"}`,children:[l.jsxDEV("div",{className:"flex-shrink-0",children:A.completed?l.jsxDEV(Ks,{className:"w-6 h-6 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:142,columnNumber:11},this):l.jsxDEV(q1,{className:`w-6 h-6 ${G?"text-blue-500":"text-gray-300"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:144,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:140,columnNumber:7},this),l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("h3",{className:`font-medium ${G?"text-blue-900":"text-gray-900"}`,children:A.title},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:149,columnNumber:11},this),A.required&&l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:"Required"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:153,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:148,columnNumber:9},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:A.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:156,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:147,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:138,columnNumber:5},this);return l.jsxDEV("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100",children:l.jsxDEV("div",{className:"container mx-auto px-4 py-8",children:[l.jsxDEV("div",{className:"text-center mb-8",children:[l.jsxDEV("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Welcome to cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:166,columnNumber:11},this),l.jsxDEV("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"You're already up and running! Let's explore what you can do with the web interface."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:165,columnNumber:9},this),l.jsxDEV("div",{className:"grid lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:[l.jsxDEV("div",{className:"lg:col-span-1",children:l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV($l,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:178,columnNumber:19},this),"Quick Tour"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:177,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:176,columnNumber:15},this),l.jsxDEV(at,{className:"space-y-2",children:c.map((A,G)=>l.jsxDEV("div",{onClick:()=>a(G),className:"cursor-pointer",children:l.jsxDEV(g,{step:A,isActive:i===G},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:189,columnNumber:21},this)},A.id,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:184,columnNumber:19},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:182,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:175,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:174,columnNumber:11},this),l.jsxDEV("div",{className:"lg:col-span-2 space-y-6",children:[i===0&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:203,columnNumber:21},this),"Welcome to cntx-ui"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:202,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:201,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV(Cr,{className:"border-green-200 bg-green-50",children:[l.jsxDEV(Ks,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:209,columnNumber:21},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"You're all set!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:211,columnNumber:23},this)," cntx-ui is running and ready to organize your code for AI assistance. Start with basic bundle management, then optionally enhance with seamless AI integration."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:210,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:208,columnNumber:19},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"What is cntx-ui?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:217,columnNumber:21},this),l.jsxDEV("p",{className:"text-sm text-blue-800 mb-3",children:"cntx-ui organizes your codebase into focused bundles for AI development. Create meaningful file collections, copy them to AI tools, or use advanced MCP integration for seamless workflows."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:218,columnNumber:21},this),l.jsxDEV("div",{className:"grid grid-cols-2 gap-2 text-sm text-blue-800",children:[l.jsxDEV("div",{children:"• Bundle files by purpose or feature"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:223,columnNumber:23},this),l.jsxDEV("div",{children:"• Hide irrelevant files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:224,columnNumber:23},this),l.jsxDEV("div",{children:"• Copy bundles to any AI tool"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:225,columnNumber:23},this),l.jsxDEV("div",{children:"• Optional seamless AI integration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:226,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:222,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:216,columnNumber:19},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV(nt,{className:"border-blue-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(Jh,{className:"w-8 h-8 text-blue-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:233,columnNumber:25},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Core Experience"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:234,columnNumber:25},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:"Organize bundles in the web interface, copy XML to Claude, ChatGPT, or any AI tool."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:235,columnNumber:25},this),l.jsxDEV(vt,{variant:"outline",className:"mt-2",children:"Works everywhere"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:238,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:232,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:231,columnNumber:21},this),l.jsxDEV(nt,{className:"border-purple-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(IN,{className:"w-8 h-8 text-purple-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:244,columnNumber:25},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Enhanced Experience"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:245,columnNumber:25},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:"Optional MCP server integration for seamless access in Claude Desktop and other MCP clients."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:246,columnNumber:25},this),l.jsxDEV(vt,{variant:"outline",className:"mt-2",children:"Progressive enhancement"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:249,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:243,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:242,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:230,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",disabled:!0,children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:255,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("welcome"),a(1)},children:["Create Your First Bundles ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:257,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:256,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:254,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:207,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:200,columnNumber:15},this),i===1&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(_d,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:269,columnNumber:21},this),"Create Your First Bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:268,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:267,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:`cntx-ui starts with a "master" bundle containing all your files. Let's explore the basics and learn how to create focused bundles for better AI assistance.`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:275,columnNumber:21},this),l.jsxDEV(Cr,{className:"border-blue-200 bg-blue-50",children:[l.jsxDEV(_d,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:281,columnNumber:23},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"✅ You're ready to go!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:283,columnNumber:25},this)," cntx-ui has already created a master bundle with all your project files. Now let's organize them into meaningful collections."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:282,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:280,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:274,columnNumber:19},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-3",children:"Here's the workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:290,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-blue-800 space-y-2 list-decimal list-inside",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy the AI analysis prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:292,columnNumber:27},this)," (button below)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:292,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Bundles tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:293,columnNumber:27},this),' → Copy the "master" bundle XML']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:293,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Open Claude/ChatGPT"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:294,columnNumber:27},this)," → Paste the prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:294,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Paste your master bundle XML"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:295,columnNumber:27},this)," after the prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:295,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"AI returns perfect bundle JSON"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:296,columnNumber:27},this)," tailored to your code!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:296,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:297,columnNumber:27},this)," → Paste the JSON → Apply!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:297,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:291,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:289,columnNumber:19},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Step 1: Copy AI Prompt & Master Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:302,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[l.jsxDEV("span",{className:"text-green-400 text-sm",children:"🤖 Smart Bundle Analysis Prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:306,columnNumber:27},this),l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:y,className:"text-gray-400 hover:text-white",children:p?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Ks,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:315,columnNumber:33},this),"Copied!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:314,columnNumber:31},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:320,columnNumber:33},this),"Copy Prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:319,columnNumber:31},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:307,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:305,columnNumber:25},this),l.jsxDEV("div",{className:"text-gray-300 text-sm",children:"Intelligent prompt that guides AI to analyze your code structure"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:326,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:304,columnNumber:23},this),l.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[l.jsxDEV("span",{className:"text-blue-400 text-sm",children:"📦 Master Bundle XML"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:333,columnNumber:27},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:C,className:"text-gray-400 hover:text-white",children:N?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Ks,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:343,columnNumber:35},this),"Copied!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:342,columnNumber:33},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:348,columnNumber:35},this),"Copy XML"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:347,columnNumber:33},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:335,columnNumber:29},this),l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:M,className:"text-gray-400 hover:text-white",children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:359,columnNumber:31},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:353,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:334,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:332,columnNumber:25},this),l.jsxDEV("div",{className:"text-gray-300 text-sm",children:"Your complete codebase bundle for AI analysis"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:364,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:331,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:303,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:301,columnNumber:19},this),l.jsxDEV("div",{className:"bg-purple-50 p-4 rounded-lg border border-purple-200",children:[l.jsxDEV("h4",{className:"font-medium text-purple-900 mb-2",children:"🚀 Complete AI Workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:372,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy the prompt above"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:374,columnNumber:27},this)," → Paste into Claude/ChatGPT"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:374,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy/download master bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:375,columnNumber:27},this)," → Add to your AI conversation"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:375,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"AI analyzes your code"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:376,columnNumber:27},this)," → Returns perfect bundle configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:376,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:377,columnNumber:27},this)," → Paste AI's JSON → Apply configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:377,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"🎉 Optimized bundles ready!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:378,columnNumber:27},this)," → Tailored to your project structure"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:378,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:373,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:371,columnNumber:19},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"What AI Analyzes:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:384,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm space-y-1",children:[l.jsxDEV("div",{children:["🗂️ ",l.jsxDEV("strong",{children:"File organization patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:386,columnNumber:34},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:386,columnNumber:25},this),l.jsxDEV("div",{children:["🔗 ",l.jsxDEV("strong",{children:"Import/dependency relationships"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:387,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:387,columnNumber:25},this),l.jsxDEV("div",{children:["⚙️ ",l.jsxDEV("strong",{children:"Technology stack detection"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:388,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:388,columnNumber:25},this),l.jsxDEV("div",{children:["📁 ",l.jsxDEV("strong",{children:"Logical grouping opportunities"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:389,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:389,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:385,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:383,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"AI Suggests Bundles Like:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:394,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm space-y-1",children:[l.jsxDEV("div",{children:["🎨 ",l.jsxDEV("strong",{children:"frontend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:396,columnNumber:33},this)," - Components, pages, styles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:396,columnNumber:25},this),l.jsxDEV("div",{children:["🔌 ",l.jsxDEV("strong",{children:"api"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:397,columnNumber:33},this)," - Routes, controllers, models"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:397,columnNumber:25},this),l.jsxDEV("div",{children:["🧪 ",l.jsxDEV("strong",{children:"tests"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:398,columnNumber:33},this)," - All test files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:398,columnNumber:25},this),l.jsxDEV("div",{children:["⚙️ ",l.jsxDEV("strong",{children:"config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:399,columnNumber:33},this)," - Configuration files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:399,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:395,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:393,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:382,columnNumber:19},this),l.jsxDEV(Cr,{children:[l.jsxDEV(Id,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:405,columnNumber:21},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"Why this works so well:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:407,columnNumber:23},this)," AI understands code patterns and can see relationships between files that aren't obvious. It creates bundles that actually make sense for your specific project."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:406,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:404,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(0),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:413,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("ai-analysis"),a(2)},children:["Continue to Bundle Management ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:415,columnNumber:53},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:414,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:412,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:273,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:266,columnNumber:15},this),i===2&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(_d,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:427,columnNumber:21},this),"Create & Manage Your Bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:426,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:425,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Whether you used AI suggestions or want to create bundles manually, here's how to manage your bundle collection."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:433,columnNumber:21},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg mb-4",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"If you used AI analysis:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:439,columnNumber:23},this),l.jsxDEV("ol",{className:"text-sm text-green-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to the ",l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:441,columnNumber:39},this)," tab above"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:441,columnNumber:25},this),l.jsxDEV("li",{children:["Scroll to ",l.jsxDEV("strong",{children:'"Paste Bundle Configuration"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:442,columnNumber:39},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:442,columnNumber:25},this),l.jsxDEV("li",{children:"Paste the AI-generated JSON"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:443,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Apply Configuration"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:444,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:444,columnNumber:25},this),l.jsxDEV("li",{children:"🎉 Your optimized bundles are ready!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:445,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:440,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:438,columnNumber:21},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg mb-4",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"To create bundles manually:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:450,columnNumber:23},this),l.jsxDEV("ol",{className:"text-sm text-blue-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to the ",l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:452,columnNumber:39},this)," tab above"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:452,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Add New Bundle"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:453,columnNumber:35},this)," at the bottom"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:453,columnNumber:25},this),l.jsxDEV("li",{children:'Name it something meaningful (e.g., "frontend", "api", "core")'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:454,columnNumber:25},this),l.jsxDEV("li",{children:["Add patterns like ",l.jsxDEV("code",{className:"bg-blue-100 px-1 rounded",children:"src/components/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:455,columnNumber:47},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:455,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Create Bundle"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:456,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:456,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:451,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:449,columnNumber:21},this),l.jsxDEV(Cr,{children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:461,columnNumber:23},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"Pro tip:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:463,columnNumber:25},this),' You can test patterns before adding them! Use the "Pattern Tester" in the Config tab to see which files match.']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:462,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:460,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:432,columnNumber:19},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"Popular Manual Bundle Examples:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:470,columnNumber:21},this),l.jsxDEV("div",{className:"grid gap-3",children:[l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"Frontend Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:473,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"src/components/**/* • src/pages/**/* • *.css"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:474,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:472,columnNumber:23},this),l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"API Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:477,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"src/api/**/* • src/routes/**/* • src/models/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:478,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:476,columnNumber:23},this),l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"Tests Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:481,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"**/*.test.* • **/*.spec.* • __tests__/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:482,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:480,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:471,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:469,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(1),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:488,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("bundles"),a(3)},children:["Continue to Optimization ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:490,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:489,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:487,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:431,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:424,columnNumber:15},this),i===3&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(IN,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:502,columnNumber:21},this),"Optimize for AI Development"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:501,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:500,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Now let's make your bundles perfect for AI assistants by controlling what they see."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:508,columnNumber:21},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV(nt,{className:"border-purple-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(Cl,{className:"w-8 h-8 text-purple-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:515,columnNumber:27},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Hidden Files Tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:516,columnNumber:27},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"• Hide debug files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:518,columnNumber:29},this),l.jsxDEV("div",{children:"• Remove temp/generated files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:519,columnNumber:29},this),l.jsxDEV("div",{children:"• Create clean, focused bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:520,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:517,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:514,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:513,columnNumber:23},this),l.jsxDEV(nt,{className:"border-green-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(wa,{className:"w-8 h-8 text-green-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:527,columnNumber:27},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Cursor Rules Tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:528,columnNumber:27},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"• Set coding standards"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:530,columnNumber:29},this),l.jsxDEV("div",{children:"• Define project context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:531,columnNumber:29},this),l.jsxDEV("div",{children:"• Guide AI assistant behavior"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:532,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:529,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:526,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:525,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:512,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:507,columnNumber:19},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"Try this workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:540,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-green-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to ",l.jsxDEV("strong",{children:"Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:542,columnNumber:33},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:542,columnNumber:23},this),l.jsxDEV("li",{children:'Search for "debug" or "test" files'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:543,columnNumber:23},this),l.jsxDEV("li",{children:"Hide them from your main bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:544,columnNumber:23},this),l.jsxDEV("li",{children:["Go to ",l.jsxDEV("strong",{children:"Cursor Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:545,columnNumber:33},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:545,columnNumber:23},this),l.jsxDEV("li",{children:"Choose a template that matches your project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:546,columnNumber:23},this),l.jsxDEV("li",{children:"Customize the rules for your team's preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:547,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:541,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:539,columnNumber:19},this),l.jsxDEV(Cr,{children:[l.jsxDEV(Id,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:552,columnNumber:21},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"Why this matters:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:554,columnNumber:23},this)," Clean bundles = better AI responses. Removing noise helps AI focus on what's actually important in your code."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:553,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:551,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(2),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:560,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("optimization"),a(4)},children:["Continue ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:562,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:561,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:559,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:506,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:499,columnNumber:15},this),i===4&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Y1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:574,columnNumber:21},this),"Common Workflows & Next Steps"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:573,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:572,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{className:"grid gap-4",children:[l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"🤖 Using with AI Assistants"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:581,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-blue-800 space-y-1",children:[l.jsxDEV("div",{children:"1. Create a focused bundle for your current task"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:583,columnNumber:25},this),l.jsxDEV("div",{children:["2. Copy the XML from the ",l.jsxDEV("strong",{children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:55},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:25},this),l.jsxDEV("div",{children:"3. Paste into Claude, ChatGPT, or other AI tools"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:585,columnNumber:25},this),l.jsxDEV("div",{children:"4. Get more accurate, context-aware responses"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:586,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:582,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:580,columnNumber:21},this),l.jsxDEV("div",{className:"bg-purple-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-purple-900 mb-2",children:"📁 Organizing Large Projects"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:591,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-purple-800 space-y-1",children:[l.jsxDEV("div",{children:"1. Create bundles by feature or team responsibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:593,columnNumber:25},this),l.jsxDEV("div",{children:"2. Use hidden files to exclude work-in-progress code"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:594,columnNumber:25},this),l.jsxDEV("div",{children:"3. Monitor bundle sizes in the web interface"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:595,columnNumber:25},this),l.jsxDEV("div",{children:"4. Share specific bundles with team members"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:596,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:592,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:590,columnNumber:21},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"⚡ Advanced Tips"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:601,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-green-800 space-y-1",children:[l.jsxDEV("div",{children:"• Bundle-specific hiding: Hide files from specific bundles only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:603,columnNumber:25},this),l.jsxDEV("div",{children:"• Pattern testing: Use the pattern tester in Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:604,columnNumber:25},this),l.jsxDEV("div",{children:"• Real-time updates: Changes appear immediately"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:605,columnNumber:25},this),l.jsxDEV("div",{children:"• CLI integration: Use commands for automation"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:606,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:602,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:600,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:579,columnNumber:19},this),l.jsxDEV("div",{className:"bg-yellow-50 p-4 rounded-lg border border-yellow-200",children:[l.jsxDEV("h4",{className:"font-medium text-yellow-900 mb-2",children:"🎯 Quick Start Checklist"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:612,columnNumber:21},this),l.jsxDEV("div",{className:"text-sm text-yellow-800 space-y-1",children:[l.jsxDEV("div",{children:"✅ Create 2-3 focused bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:614,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Hide debug/temp files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:615,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Set up cursor rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:616,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Copy a bundle and try it with an AI assistant"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:617,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:613,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:611,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(3),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:622,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>f("workflows"),className:"bg-green-600 hover:bg-green-700",children:["Get Started! ",l.jsxDEV(zT,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:624,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:623,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:621,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:578,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:571,columnNumber:15},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Quick Reference"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:634,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:633,columnNumber:15},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Web Interface Tabs"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:639,columnNumber:21},this),l.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:641,columnNumber:27},this)," - View and copy bundle content"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:641,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:642,columnNumber:27},this)," - Browse your project files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:642,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:643,columnNumber:27},this)," - Create and edit bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:643,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Hidden"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:644,columnNumber:27},this)," - Control file visibility"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:644,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Cursor"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:645,columnNumber:27},this)," - Manage AI assistant rules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:645,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:640,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:638,columnNumber:19},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Key Features"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:649,columnNumber:21},this),l.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[l.jsxDEV("li",{children:"Real-time file watching and updates"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:651,columnNumber:23},this),l.jsxDEV("li",{children:"Bundle-specific file hiding"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:652,columnNumber:23},this),l.jsxDEV("li",{children:"Pattern testing and validation"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:653,columnNumber:23},this),l.jsxDEV("li",{children:"AI assistant context management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:654,columnNumber:23},this),l.jsxDEV("li",{children:"XML export for AI tools"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:655,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:650,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:648,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:637,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:636,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:632,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:197,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:163,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:162,columnNumber:5},this)}const WN=new iD;function eC(){const[i,a]=Q.useState("connecting"),[c,d]=Q.useState(!1),[p,v]=Q.useState(!1);return Q.useEffect(()=>{const N=new WebSocket("ws://localhost:3333");return N.onopen=()=>a("connected"),N.onclose=()=>a("disconnected"),()=>N.close()},[]),c?l.jsxDEV(zN,{client:WN,children:l.jsxDEV("div",{className:"relative",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:()=>d(!1),className:"absolute top-4 right-4 z-10",children:l.jsxDEV($1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:45,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:39,columnNumber:11},this),l.jsxDEV(W3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:38,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:37,columnNumber:7},this):l.jsxDEV(zN,{client:WN,children:l.jsxDEV("div",{className:"min-h-screen bg-background text-foreground",children:[l.jsxDEV("header",{className:"border-b",children:l.jsxDEV("div",{className:"container mx-auto px-4 py-4 flex justify-between items-center",children:[l.jsxDEV("h1",{className:"text-2xl font-bold",children:"cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:58,columnNumber:13},this),l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:()=>v(!p),children:[l.jsxDEV(UT,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:65,columnNumber:17},this),"Help"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:60,columnNumber:15},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("div",{className:`w-2 h-2 rounded-full ${i==="connected"?"bg-green-500":i==="connecting"?"bg-yellow-500":"bg-red-500"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:69,columnNumber:17},this),l.jsxDEV("span",{className:"text-sm text-muted-foreground",children:i==="connected"?"Connected • Watching files":i==="connecting"?"Connecting...":"Disconnected"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:72,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:68,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:59,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:57,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:56,columnNumber:9},this),l.jsxDEV("main",{className:"container mx-auto px-4 py-6",children:[l.jsxDEV(I3,{onStartSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:83,columnNumber:11},this),l.jsxDEV("div",{className:"flex flex-col lg:flex-row gap-6",children:[l.jsxDEV(YU,{position:"top-right"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:87,columnNumber:13},this),l.jsxDEV("div",{className:"flex-1 min-w-0",children:l.jsxDEV(Kd,{defaultValue:"bundles",className:"space-y-6",children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-3",children:[l.jsxDEV(Ds,{value:"bundles",children:"Bundles & Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:93,columnNumber:19},this),l.jsxDEV(Ds,{value:"settings",className:"flex items-center gap-1",children:[l.jsxDEV(Ul,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:95,columnNumber:21},this),l.jsxDEV("span",{children:"Settings"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:96,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:94,columnNumber:19},this),l.jsxDEV(Ds,{value:"cursor",className:"flex items-center gap-1",children:[l.jsxDEV(wa,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:99,columnNumber:21},this),l.jsxDEV("span",{children:"AI Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:100,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:92,columnNumber:17},this),l.jsxDEV(Ts,{value:"bundles",children:l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Bundle Management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:108,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:107,columnNumber:23},this),l.jsxDEV(at,{children:l.jsxDEV(IU,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:111,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:110,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:106,columnNumber:21},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Project Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:117,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:116,columnNumber:23},this),l.jsxDEV(at,{children:l.jsxDEV(KU,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:120,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:119,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:115,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:105,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:104,columnNumber:17},this),l.jsxDEV(Ts,{value:"settings",children:l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV(Q3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:128,columnNumber:21},this),l.jsxDEV(M3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:129,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:127,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:126,columnNumber:17},this),l.jsxDEV(Ts,{value:"cursor",children:l.jsxDEV(_3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:134,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:133,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:91,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:90,columnNumber:13},this),l.jsxDEV("div",{className:"w-full lg:w-80 xl:w-96 flex-shrink-0 space-y-6",children:[l.jsxDEV(X3,{onOpenFullSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:142,columnNumber:15},this),p&&l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV(Z3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:147,columnNumber:19},this),l.jsxDEV(J3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:148,columnNumber:19},this),l.jsxDEV(K3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:149,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Ul,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:155,columnNumber:25},this),"File Visibility"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:154,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:153,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-2",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Control which files appear in your bundles without changing ignore patterns."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:160,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs space-y-1",children:[l.jsxDEV("div",{children:"• Hide debug/temp files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:164,columnNumber:25},this),l.jsxDEV("div",{children:"• Create focused bundles for specific tasks"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:165,columnNumber:25},this),l.jsxDEV("div",{children:"• Bundle-specific or global hiding"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:166,columnNumber:25},this),l.jsxDEV("div",{children:"• Easy restore when needed"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:167,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:163,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:159,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:152,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:176,columnNumber:25},this),"AI Assistant"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:175,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:174,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-2",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Cursor rules help AI assistants understand your project context and coding preferences."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:181,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs space-y-1",children:[l.jsxDEV("div",{children:"• Project structure & bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:185,columnNumber:25},this),l.jsxDEV("div",{children:"• Coding standards & style"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:186,columnNumber:25},this),l.jsxDEV("div",{children:"• Framework preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:187,columnNumber:25},this),l.jsxDEV("div",{children:"• Team conventions"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:188,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:184,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:180,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:173,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Need More Help?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:195,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:194,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-3",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>d(!0),className:"w-full",children:"Open Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:198,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:"For detailed setup instructions and troubleshooting."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:205,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:197,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:193,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:146,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:140,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:81,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:55,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:54,columnNumber:5},this)}$j.createRoot(document.getElementById("root")).render(l.jsxDEV(Q.StrictMode,{children:l.jsxDEV(eC,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:7,columnNumber:3},void 0));
|
|
531
|
+
[PASTE YOUR MASTER BUNDLE XML CONTENT HERE]`;try{await navigator.clipboard.writeText(A),v(!0),setTimeout(()=>v(!1),3e3)}catch(G){console.error("Failed to copy AI prompt:",G)}},C=async()=>{try{const A=await fetch("http://localhost:3333/api/bundles/master");if(!A.ok)throw new Error("Failed to fetch master bundle");const G=await A.text();await navigator.clipboard.writeText(G),j(!0),setTimeout(()=>j(!1),3e3)}catch(A){console.error("Failed to copy master bundle:",A)}},M=async()=>{try{const A=await fetch("http://localhost:3333/api/bundles/master");if(!A.ok)throw new Error("Failed to fetch master bundle");const G=await A.text(),$=new Blob([G],{type:"application/xml"}),H=URL.createObjectURL($),I=document.createElement("a");I.href=H,I.download="master-bundle.xml",I.click(),URL.revokeObjectURL(H)}catch(A){console.error("Failed to download master bundle:",A)}},f=A=>{d(G=>G.map($=>$.id===A?{...$,completed:!0}:$))},g=({step:A,isActive:G})=>l.jsxDEV("div",{className:`flex items-center gap-3 p-3 rounded-lg transition-colors ${G?"bg-blue-50 border border-blue-200":"hover:bg-gray-50"}`,children:[l.jsxDEV("div",{className:"flex-shrink-0",children:A.completed?l.jsxDEV(Ks,{className:"w-6 h-6 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:142,columnNumber:11},this):l.jsxDEV(q1,{className:`w-6 h-6 ${G?"text-blue-500":"text-gray-300"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:144,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:140,columnNumber:7},this),l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("h3",{className:`font-medium ${G?"text-blue-900":"text-gray-900"}`,children:A.title},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:149,columnNumber:11},this),A.required&&l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:"Required"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:153,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:148,columnNumber:9},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:A.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:156,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:147,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:138,columnNumber:5},this);return l.jsxDEV("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100",children:l.jsxDEV("div",{className:"container mx-auto px-4 py-8",children:[l.jsxDEV("div",{className:"text-center mb-8",children:[l.jsxDEV("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Welcome to cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:166,columnNumber:11},this),l.jsxDEV("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"You're already up and running! Let's explore what you can do with the web interface."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:165,columnNumber:9},this),l.jsxDEV("div",{className:"grid lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:[l.jsxDEV("div",{className:"lg:col-span-1",children:l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV($l,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:178,columnNumber:19},this),"Quick Tour"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:177,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:176,columnNumber:15},this),l.jsxDEV(at,{className:"space-y-2",children:c.map((A,G)=>l.jsxDEV("div",{onClick:()=>a(G),className:"cursor-pointer",children:l.jsxDEV(g,{step:A,isActive:i===G},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:189,columnNumber:21},this)},A.id,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:184,columnNumber:19},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:182,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:175,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:174,columnNumber:11},this),l.jsxDEV("div",{className:"lg:col-span-2 space-y-6",children:[i===0&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:203,columnNumber:21},this),"Welcome to cntx-ui"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:202,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:201,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV(Cr,{className:"border-green-200 bg-green-50",children:[l.jsxDEV(Ks,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:209,columnNumber:21},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"You're all set!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:211,columnNumber:23},this)," cntx-ui is running and ready to organize your code for AI assistance. Start with basic bundle management, then optionally enhance with seamless AI integration."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:210,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:208,columnNumber:19},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"What is cntx-ui?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:217,columnNumber:21},this),l.jsxDEV("p",{className:"text-sm text-blue-800 mb-3",children:"cntx-ui organizes your codebase into focused bundles for AI development. Create meaningful file collections, copy them to AI tools, or use advanced MCP integration for seamless workflows."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:218,columnNumber:21},this),l.jsxDEV("div",{className:"grid grid-cols-2 gap-2 text-sm text-blue-800",children:[l.jsxDEV("div",{children:"• Bundle files by purpose or feature"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:223,columnNumber:23},this),l.jsxDEV("div",{children:"• Hide irrelevant files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:224,columnNumber:23},this),l.jsxDEV("div",{children:"• Copy bundles to any AI tool"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:225,columnNumber:23},this),l.jsxDEV("div",{children:"• Optional seamless AI integration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:226,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:222,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:216,columnNumber:19},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV(nt,{className:"border-blue-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(Jh,{className:"w-8 h-8 text-blue-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:233,columnNumber:25},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Core Experience"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:234,columnNumber:25},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:"Organize bundles in the web interface, copy XML to Claude, ChatGPT, or any AI tool."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:235,columnNumber:25},this),l.jsxDEV(vt,{variant:"outline",className:"mt-2",children:"Works everywhere"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:238,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:232,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:231,columnNumber:21},this),l.jsxDEV(nt,{className:"border-purple-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(IN,{className:"w-8 h-8 text-purple-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:244,columnNumber:25},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Enhanced Experience"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:245,columnNumber:25},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:"Optional MCP server integration for seamless access in Claude Desktop and other MCP clients."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:246,columnNumber:25},this),l.jsxDEV(vt,{variant:"outline",className:"mt-2",children:"Progressive enhancement"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:249,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:243,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:242,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:230,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",disabled:!0,children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:255,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("welcome"),a(1)},children:["Create Your First Bundles ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:257,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:256,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:254,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:207,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:200,columnNumber:15},this),i===1&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(_d,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:269,columnNumber:21},this),"Create Your First Bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:268,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:267,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:`cntx-ui starts with a "master" bundle containing all your files. Let's explore the basics and learn how to create focused bundles for better AI assistance.`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:275,columnNumber:21},this),l.jsxDEV(Cr,{className:"border-blue-200 bg-blue-50",children:[l.jsxDEV(_d,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:281,columnNumber:23},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"✅ You're ready to go!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:283,columnNumber:25},this)," cntx-ui has already created a master bundle with all your project files. Now let's organize them into meaningful collections."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:282,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:280,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:274,columnNumber:19},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-3",children:"Here's the workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:290,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-blue-800 space-y-2 list-decimal list-inside",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy the AI analysis prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:292,columnNumber:27},this)," (button below)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:292,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Bundles tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:293,columnNumber:27},this),' → Copy the "master" bundle XML']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:293,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Open Claude/ChatGPT"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:294,columnNumber:27},this)," → Paste the prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:294,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Paste your master bundle XML"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:295,columnNumber:27},this)," after the prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:295,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"AI returns perfect bundle JSON"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:296,columnNumber:27},this)," tailored to your code!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:296,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:297,columnNumber:27},this)," → Paste the JSON → Apply!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:297,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:291,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:289,columnNumber:19},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Step 1: Copy AI Prompt & Master Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:302,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[l.jsxDEV("span",{className:"text-green-400 text-sm",children:"🤖 Smart Bundle Analysis Prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:306,columnNumber:27},this),l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:y,className:"text-gray-400 hover:text-white",children:p?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Ks,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:315,columnNumber:33},this),"Copied!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:314,columnNumber:31},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:320,columnNumber:33},this),"Copy Prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:319,columnNumber:31},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:307,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:305,columnNumber:25},this),l.jsxDEV("div",{className:"text-gray-300 text-sm",children:"Intelligent prompt that guides AI to analyze your code structure"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:326,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:304,columnNumber:23},this),l.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[l.jsxDEV("span",{className:"text-blue-400 text-sm",children:"📦 Master Bundle XML"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:333,columnNumber:27},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:C,className:"text-gray-400 hover:text-white",children:w?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Ks,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:343,columnNumber:35},this),"Copied!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:342,columnNumber:33},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:348,columnNumber:35},this),"Copy XML"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:347,columnNumber:33},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:335,columnNumber:29},this),l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:M,className:"text-gray-400 hover:text-white",children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:359,columnNumber:31},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:353,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:334,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:332,columnNumber:25},this),l.jsxDEV("div",{className:"text-gray-300 text-sm",children:"Your complete codebase bundle for AI analysis"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:364,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:331,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:303,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:301,columnNumber:19},this),l.jsxDEV("div",{className:"bg-purple-50 p-4 rounded-lg border border-purple-200",children:[l.jsxDEV("h4",{className:"font-medium text-purple-900 mb-2",children:"🚀 Complete AI Workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:372,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy the prompt above"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:374,columnNumber:27},this)," → Paste into Claude/ChatGPT"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:374,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy/download master bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:375,columnNumber:27},this)," → Add to your AI conversation"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:375,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"AI analyzes your code"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:376,columnNumber:27},this)," → Returns perfect bundle configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:376,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:377,columnNumber:27},this)," → Paste AI's JSON → Apply configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:377,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"🎉 Optimized bundles ready!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:378,columnNumber:27},this)," → Tailored to your project structure"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:378,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:373,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:371,columnNumber:19},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"What AI Analyzes:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:384,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm space-y-1",children:[l.jsxDEV("div",{children:["🗂️ ",l.jsxDEV("strong",{children:"File organization patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:386,columnNumber:34},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:386,columnNumber:25},this),l.jsxDEV("div",{children:["🔗 ",l.jsxDEV("strong",{children:"Import/dependency relationships"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:387,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:387,columnNumber:25},this),l.jsxDEV("div",{children:["⚙️ ",l.jsxDEV("strong",{children:"Technology stack detection"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:388,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:388,columnNumber:25},this),l.jsxDEV("div",{children:["📁 ",l.jsxDEV("strong",{children:"Logical grouping opportunities"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:389,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:389,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:385,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:383,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"AI Suggests Bundles Like:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:394,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm space-y-1",children:[l.jsxDEV("div",{children:["🎨 ",l.jsxDEV("strong",{children:"frontend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:396,columnNumber:33},this)," - Components, pages, styles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:396,columnNumber:25},this),l.jsxDEV("div",{children:["🔌 ",l.jsxDEV("strong",{children:"api"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:397,columnNumber:33},this)," - Routes, controllers, models"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:397,columnNumber:25},this),l.jsxDEV("div",{children:["🧪 ",l.jsxDEV("strong",{children:"tests"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:398,columnNumber:33},this)," - All test files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:398,columnNumber:25},this),l.jsxDEV("div",{children:["⚙️ ",l.jsxDEV("strong",{children:"config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:399,columnNumber:33},this)," - Configuration files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:399,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:395,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:393,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:382,columnNumber:19},this),l.jsxDEV(Cr,{children:[l.jsxDEV(Id,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:405,columnNumber:21},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"Why this works so well:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:407,columnNumber:23},this)," AI understands code patterns and can see relationships between files that aren't obvious. It creates bundles that actually make sense for your specific project."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:406,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:404,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(0),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:413,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("ai-analysis"),a(2)},children:["Continue to Bundle Management ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:415,columnNumber:53},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:414,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:412,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:273,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:266,columnNumber:15},this),i===2&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(_d,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:427,columnNumber:21},this),"Create & Manage Your Bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:426,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:425,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Whether you used AI suggestions or want to create bundles manually, here's how to manage your bundle collection."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:433,columnNumber:21},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg mb-4",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"If you used AI analysis:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:439,columnNumber:23},this),l.jsxDEV("ol",{className:"text-sm text-green-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to the ",l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:441,columnNumber:39},this)," tab above"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:441,columnNumber:25},this),l.jsxDEV("li",{children:["Scroll to ",l.jsxDEV("strong",{children:'"Paste Bundle Configuration"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:442,columnNumber:39},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:442,columnNumber:25},this),l.jsxDEV("li",{children:"Paste the AI-generated JSON"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:443,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Apply Configuration"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:444,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:444,columnNumber:25},this),l.jsxDEV("li",{children:"🎉 Your optimized bundles are ready!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:445,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:440,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:438,columnNumber:21},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg mb-4",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"To create bundles manually:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:450,columnNumber:23},this),l.jsxDEV("ol",{className:"text-sm text-blue-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to the ",l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:452,columnNumber:39},this)," tab above"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:452,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Add New Bundle"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:453,columnNumber:35},this)," at the bottom"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:453,columnNumber:25},this),l.jsxDEV("li",{children:'Name it something meaningful (e.g., "frontend", "api", "core")'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:454,columnNumber:25},this),l.jsxDEV("li",{children:["Add patterns like ",l.jsxDEV("code",{className:"bg-blue-100 px-1 rounded",children:"src/components/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:455,columnNumber:47},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:455,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Create Bundle"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:456,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:456,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:451,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:449,columnNumber:21},this),l.jsxDEV(Cr,{children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:461,columnNumber:23},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"Pro tip:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:463,columnNumber:25},this),' You can test patterns before adding them! Use the "Pattern Tester" in the Config tab to see which files match.']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:462,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:460,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:432,columnNumber:19},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"Popular Manual Bundle Examples:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:470,columnNumber:21},this),l.jsxDEV("div",{className:"grid gap-3",children:[l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"Frontend Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:473,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"src/components/**/* • src/pages/**/* • *.css"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:474,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:472,columnNumber:23},this),l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"API Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:477,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"src/api/**/* • src/routes/**/* • src/models/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:478,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:476,columnNumber:23},this),l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"Tests Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:481,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"**/*.test.* • **/*.spec.* • __tests__/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:482,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:480,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:471,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:469,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(1),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:488,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("bundles"),a(3)},children:["Continue to Optimization ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:490,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:489,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:487,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:431,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:424,columnNumber:15},this),i===3&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(IN,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:502,columnNumber:21},this),"Optimize for AI Development"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:501,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:500,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Now let's make your bundles perfect for AI assistants by controlling what they see."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:508,columnNumber:21},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV(nt,{className:"border-purple-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(Cl,{className:"w-8 h-8 text-purple-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:515,columnNumber:27},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Hidden Files Tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:516,columnNumber:27},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"• Hide debug files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:518,columnNumber:29},this),l.jsxDEV("div",{children:"• Remove temp/generated files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:519,columnNumber:29},this),l.jsxDEV("div",{children:"• Create clean, focused bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:520,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:517,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:514,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:513,columnNumber:23},this),l.jsxDEV(nt,{className:"border-green-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(wa,{className:"w-8 h-8 text-green-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:527,columnNumber:27},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Cursor Rules Tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:528,columnNumber:27},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"• Set coding standards"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:530,columnNumber:29},this),l.jsxDEV("div",{children:"• Define project context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:531,columnNumber:29},this),l.jsxDEV("div",{children:"• Guide AI assistant behavior"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:532,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:529,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:526,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:525,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:512,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:507,columnNumber:19},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"Try this workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:540,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-green-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to ",l.jsxDEV("strong",{children:"Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:542,columnNumber:33},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:542,columnNumber:23},this),l.jsxDEV("li",{children:'Search for "debug" or "test" files'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:543,columnNumber:23},this),l.jsxDEV("li",{children:"Hide them from your main bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:544,columnNumber:23},this),l.jsxDEV("li",{children:["Go to ",l.jsxDEV("strong",{children:"Cursor Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:545,columnNumber:33},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:545,columnNumber:23},this),l.jsxDEV("li",{children:"Choose a template that matches your project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:546,columnNumber:23},this),l.jsxDEV("li",{children:"Customize the rules for your team's preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:547,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:541,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:539,columnNumber:19},this),l.jsxDEV(Cr,{children:[l.jsxDEV(Id,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:552,columnNumber:21},this),l.jsxDEV(Rr,{children:[l.jsxDEV("strong",{children:"Why this matters:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:554,columnNumber:23},this)," Clean bundles = better AI responses. Removing noise helps AI focus on what's actually important in your code."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:553,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:551,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(2),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:560,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>{f("optimization"),a(4)},children:["Continue ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:562,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:561,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:559,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:506,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:499,columnNumber:15},this),i===4&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Y1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:574,columnNumber:21},this),"Common Workflows & Next Steps"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:573,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:572,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{className:"grid gap-4",children:[l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"🤖 Using with AI Assistants"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:581,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-blue-800 space-y-1",children:[l.jsxDEV("div",{children:"1. Create a focused bundle for your current task"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:583,columnNumber:25},this),l.jsxDEV("div",{children:["2. Copy the XML from the ",l.jsxDEV("strong",{children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:55},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:25},this),l.jsxDEV("div",{children:"3. Paste into Claude, ChatGPT, or other AI tools"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:585,columnNumber:25},this),l.jsxDEV("div",{children:"4. Get more accurate, context-aware responses"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:586,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:582,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:580,columnNumber:21},this),l.jsxDEV("div",{className:"bg-purple-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-purple-900 mb-2",children:"📁 Organizing Large Projects"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:591,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-purple-800 space-y-1",children:[l.jsxDEV("div",{children:"1. Create bundles by feature or team responsibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:593,columnNumber:25},this),l.jsxDEV("div",{children:"2. Use hidden files to exclude work-in-progress code"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:594,columnNumber:25},this),l.jsxDEV("div",{children:"3. Monitor bundle sizes in the web interface"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:595,columnNumber:25},this),l.jsxDEV("div",{children:"4. Share specific bundles with team members"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:596,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:592,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:590,columnNumber:21},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"⚡ Advanced Tips"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:601,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-green-800 space-y-1",children:[l.jsxDEV("div",{children:"• Bundle-specific hiding: Hide files from specific bundles only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:603,columnNumber:25},this),l.jsxDEV("div",{children:"• Pattern testing: Use the pattern tester in Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:604,columnNumber:25},this),l.jsxDEV("div",{children:"• Real-time updates: Changes appear immediately"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:605,columnNumber:25},this),l.jsxDEV("div",{children:"• CLI integration: Use commands for automation"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:606,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:602,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:600,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:579,columnNumber:19},this),l.jsxDEV("div",{className:"bg-yellow-50 p-4 rounded-lg border border-yellow-200",children:[l.jsxDEV("h4",{className:"font-medium text-yellow-900 mb-2",children:"🎯 Quick Start Checklist"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:612,columnNumber:21},this),l.jsxDEV("div",{className:"text-sm text-yellow-800 space-y-1",children:[l.jsxDEV("div",{children:"✅ Create 2-3 focused bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:614,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Hide debug/temp files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:615,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Set up cursor rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:616,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Copy a bundle and try it with an AI assistant"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:617,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:613,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:611,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>a(3),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:622,columnNumber:21},this),l.jsxDEV(Ce,{onClick:()=>f("workflows"),className:"bg-green-600 hover:bg-green-700",children:["Get Started! ",l.jsxDEV(zT,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:624,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:623,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:621,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:578,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:571,columnNumber:15},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Quick Reference"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:634,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:633,columnNumber:15},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Web Interface Tabs"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:639,columnNumber:21},this),l.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:641,columnNumber:27},this)," - View and copy bundle content"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:641,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:642,columnNumber:27},this)," - Browse your project files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:642,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:643,columnNumber:27},this)," - Create and edit bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:643,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Hidden"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:644,columnNumber:27},this)," - Control file visibility"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:644,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Cursor"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:645,columnNumber:27},this)," - Manage AI assistant rules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:645,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:640,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:638,columnNumber:19},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Key Features"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:649,columnNumber:21},this),l.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[l.jsxDEV("li",{children:"Real-time file watching and updates"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:651,columnNumber:23},this),l.jsxDEV("li",{children:"Bundle-specific file hiding"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:652,columnNumber:23},this),l.jsxDEV("li",{children:"Pattern testing and validation"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:653,columnNumber:23},this),l.jsxDEV("li",{children:"AI assistant context management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:654,columnNumber:23},this),l.jsxDEV("li",{children:"XML export for AI tools"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:655,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:650,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:648,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:637,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:636,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:632,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:197,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:163,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:162,columnNumber:5},this)}const WN=new iD;function eC(){const[i,a]=Q.useState("connecting"),[c,d]=Q.useState(!1),[p,v]=Q.useState(!1);return Q.useEffect(()=>{const w=new WebSocket("ws://localhost:3333");return w.onopen=()=>a("connected"),w.onclose=()=>a("disconnected"),()=>w.close()},[]),c?l.jsxDEV(zN,{client:WN,children:l.jsxDEV("div",{className:"relative",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:()=>d(!1),className:"absolute top-4 right-4 z-10",children:l.jsxDEV($1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:45,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:39,columnNumber:11},this),l.jsxDEV(W3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:38,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:37,columnNumber:7},this):l.jsxDEV(zN,{client:WN,children:l.jsxDEV("div",{className:"min-h-screen bg-background text-foreground",children:[l.jsxDEV("header",{className:"border-b",children:l.jsxDEV("div",{className:"container mx-auto px-4 py-4 flex justify-between items-center",children:[l.jsxDEV("h1",{className:"text-2xl font-bold",children:"cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:58,columnNumber:13},this),l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV(Ce,{variant:"ghost",size:"sm",onClick:()=>v(!p),children:[l.jsxDEV(UT,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:65,columnNumber:17},this),"Help"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:60,columnNumber:15},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("div",{className:`w-2 h-2 rounded-full ${i==="connected"?"bg-green-500":i==="connecting"?"bg-yellow-500":"bg-red-500"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:69,columnNumber:17},this),l.jsxDEV("span",{className:"text-sm text-muted-foreground",children:i==="connected"?"Connected • Watching files":i==="connecting"?"Connecting...":"Disconnected"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:72,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:68,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:59,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:57,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:56,columnNumber:9},this),l.jsxDEV("main",{className:"container mx-auto px-4 py-6",children:[l.jsxDEV(I3,{onStartSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:83,columnNumber:11},this),l.jsxDEV("div",{className:"flex flex-col lg:flex-row gap-6",children:[l.jsxDEV(YU,{position:"top-right"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:87,columnNumber:13},this),l.jsxDEV("div",{className:"flex-1 min-w-0",children:l.jsxDEV(Kd,{defaultValue:"bundles",className:"space-y-6",children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-3",children:[l.jsxDEV(Ds,{value:"bundles",children:"Bundles & Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:93,columnNumber:19},this),l.jsxDEV(Ds,{value:"settings",className:"flex items-center gap-1",children:[l.jsxDEV(Ul,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:95,columnNumber:21},this),l.jsxDEV("span",{children:"Settings"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:96,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:94,columnNumber:19},this),l.jsxDEV(Ds,{value:"cursor",className:"flex items-center gap-1",children:[l.jsxDEV(wa,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:99,columnNumber:21},this),l.jsxDEV("span",{children:"AI Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:100,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:92,columnNumber:17},this),l.jsxDEV(Ts,{value:"bundles",children:l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Bundle Management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:108,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:107,columnNumber:23},this),l.jsxDEV(at,{children:l.jsxDEV(IU,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:111,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:110,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:106,columnNumber:21},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Project Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:117,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:116,columnNumber:23},this),l.jsxDEV(at,{children:l.jsxDEV(KU,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:120,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:119,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:115,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:105,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:104,columnNumber:17},this),l.jsxDEV(Ts,{value:"settings",children:l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV(Q3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:128,columnNumber:21},this),l.jsxDEV(M3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:129,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:127,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:126,columnNumber:17},this),l.jsxDEV(Ts,{value:"cursor",children:l.jsxDEV(_3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:134,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:133,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:91,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:90,columnNumber:13},this),l.jsxDEV("div",{className:"w-full lg:w-80 xl:w-96 flex-shrink-0 space-y-6",children:[l.jsxDEV(X3,{onOpenFullSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:142,columnNumber:15},this),p&&l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV(Z3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:147,columnNumber:19},this),l.jsxDEV(J3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:148,columnNumber:19},this),l.jsxDEV(K3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:149,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Ul,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:155,columnNumber:25},this),"File Visibility"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:154,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:153,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-2",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Control which files appear in your bundles without changing ignore patterns."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:160,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs space-y-1",children:[l.jsxDEV("div",{children:"• Hide debug/temp files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:164,columnNumber:25},this),l.jsxDEV("div",{children:"• Create focused bundles for specific tasks"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:165,columnNumber:25},this),l.jsxDEV("div",{children:"• Bundle-specific or global hiding"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:166,columnNumber:25},this),l.jsxDEV("div",{children:"• Easy restore when needed"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:167,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:163,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:159,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:152,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:176,columnNumber:25},this),"AI Assistant"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:175,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:174,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-2",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Cursor rules help AI assistants understand your project context and coding preferences."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:181,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs space-y-1",children:[l.jsxDEV("div",{children:"• Project structure & bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:185,columnNumber:25},this),l.jsxDEV("div",{children:"• Coding standards & style"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:186,columnNumber:25},this),l.jsxDEV("div",{children:"• Framework preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:187,columnNumber:25},this),l.jsxDEV("div",{children:"• Team conventions"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:188,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:184,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:180,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:173,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Need More Help?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:195,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:194,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-3",children:[l.jsxDEV(Ce,{variant:"outline",onClick:()=>d(!0),className:"w-full",children:"Open Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:198,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:"For detailed setup instructions and troubleshooting."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:205,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:197,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:193,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:146,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:140,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:81,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:55,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:54,columnNumber:5},this)}$j.createRoot(document.getElementById("root")).render(l.jsxDEV(Q.StrictMode,{children:l.jsxDEV(eC,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:7,columnNumber:3},void 0));
|