chisel-studio 0.1.1 → 0.1.3

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,2699 +0,0 @@
1
- function d1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function ah(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ch={exports:{}},Ui={},uh={exports:{}},le={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Js=Symbol.for("react.element"),f1=Symbol.for("react.portal"),p1=Symbol.for("react.fragment"),m1=Symbol.for("react.strict_mode"),h1=Symbol.for("react.profiler"),g1=Symbol.for("react.provider"),_1=Symbol.for("react.context"),y1=Symbol.for("react.forward_ref"),v1=Symbol.for("react.suspense"),x1=Symbol.for("react.memo"),w1=Symbol.for("react.lazy"),Gf=Symbol.iterator;function b1(e){return e===null||typeof e!="object"?null:(e=Gf&&e[Gf]||e["@@iterator"],typeof e=="function"?e:null)}var dh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fh=Object.assign,ph={};function Do(e,t,n){this.props=e,this.context=t,this.refs=ph,this.updater=n||dh}Do.prototype.isReactComponent={};Do.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Do.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mh(){}mh.prototype=Do.prototype;function Gu(e,t,n){this.props=e,this.context=t,this.refs=ph,this.updater=n||dh}var Ku=Gu.prototype=new mh;Ku.constructor=Gu;fh(Ku,Do.prototype);Ku.isPureReactComponent=!0;var Kf=Array.isArray,hh=Object.prototype.hasOwnProperty,Zu={current:null},gh={key:!0,ref:!0,__self:!0,__source:!0};function _h(e,t,n){var r,o={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)hh.call(t,r)&&!gh.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var c=Array(i),d=0;d<i;d++)c[d]=arguments[d+2];o.children=c}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Js,type:e,key:s,ref:l,props:o,_owner:Zu.current}}function k1(e,t){return{$$typeof:Js,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ju(e){return typeof e=="object"&&e!==null&&e.$$typeof===Js}function C1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Zf=/\/+/g;function Fa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?C1(""+e.key):t.toString(36)}function Ql(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Js:case f1:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Fa(l,0):r,Kf(o)?(n="",e!=null&&(n=e.replace(Zf,"$&/")+"/"),Ql(o,t,n,"",function(d){return d})):o!=null&&(Ju(o)&&(o=k1(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Zf,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Kf(e))for(var i=0;i<e.length;i++){s=e[i];var c=r+Fa(s,i);l+=Ql(s,t,n,c,o)}else if(c=b1(e),typeof c=="function")for(e=c.call(e),i=0;!(s=e.next()).done;)s=s.value,c=r+Fa(s,i++),l+=Ql(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function gl(e,t,n){if(e==null)return e;var r=[],o=0;return Ql(e,r,"","",function(s){return t.call(n,s,o++)}),r}function S1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ot={current:null},Gl={transition:null},E1={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:Gl,ReactCurrentOwner:Zu};function yh(){throw Error("act(...) is not supported in production builds of React.")}le.Children={map:gl,forEach:function(e,t,n){gl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gl(e,function(){t++}),t},toArray:function(e){return gl(e,function(t){return t})||[]},only:function(e){if(!Ju(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=Do;le.Fragment=p1;le.Profiler=h1;le.PureComponent=Gu;le.StrictMode=m1;le.Suspense=v1;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E1;le.act=yh;le.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=fh({},e.props),o=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=Zu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(c in t)hh.call(t,c)&&!gh.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&i!==void 0?i[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){i=Array(c);for(var d=0;d<c;d++)i[d]=arguments[d+2];r.children=i}return{$$typeof:Js,type:e.type,key:o,ref:s,props:r,_owner:l}};le.createContext=function(e){return e={$$typeof:_1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:g1,_context:e},e.Consumer=e};le.createElement=_h;le.createFactory=function(e){var t=_h.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:y1,render:e}};le.isValidElement=Ju;le.lazy=function(e){return{$$typeof:w1,_payload:{_status:-1,_result:e},_init:S1}};le.memo=function(e,t){return{$$typeof:x1,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=Gl.transition;Gl.transition={};try{e()}finally{Gl.transition=t}};le.unstable_act=yh;le.useCallback=function(e,t){return ot.current.useCallback(e,t)};le.useContext=function(e){return ot.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};le.useEffect=function(e,t){return ot.current.useEffect(e,t)};le.useId=function(){return ot.current.useId()};le.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return ot.current.useMemo(e,t)};le.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)};le.useRef=function(e){return ot.current.useRef(e)};le.useState=function(e){return ot.current.useState(e)};le.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)};le.useTransition=function(){return ot.current.useTransition()};le.version="18.3.1";uh.exports=le;var u=uh.exports;const at=ah(u),Vi=d1({__proto__:null,default:at},[u]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var N1=u,j1=Symbol.for("react.element"),P1=Symbol.for("react.fragment"),R1=Object.prototype.hasOwnProperty,T1=N1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L1={key:!0,ref:!0,__self:!0,__source:!0};function vh(e,t,n){var r,o={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)R1.call(t,r)&&!L1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:j1,type:e,key:s,ref:l,props:o,_owner:T1.current}}Ui.Fragment=P1;Ui.jsx=vh;Ui.jsxs=vh;ch.exports=Ui;var a=ch.exports,Dc={},xh={exports:{}},kt={},wh={exports:{}},bh={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(E,O){var B=E.length;E.push(O);e:for(;0<B;){var Q=B-1>>>1,he=E[Q];if(0<o(he,O))E[Q]=O,E[B]=he,B=Q;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var O=E[0],B=E.pop();if(B!==O){E[0]=B;e:for(var Q=0,he=E.length,Xt=he>>>1;Q<Xt;){var Qt=2*(Q+1)-1,An=E[Qt],St=Qt+1,ht=E[St];if(0>o(An,B))St<he&&0>o(ht,An)?(E[Q]=ht,E[St]=B,Q=St):(E[Q]=An,E[Qt]=B,Q=Qt);else if(St<he&&0>o(ht,B))E[Q]=ht,E[St]=B,Q=St;else break e}}return O}function o(E,O){var B=E.sortIndex-O.sortIndex;return B!==0?B:E.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,i=l.now();e.unstable_now=function(){return l.now()-i}}var c=[],d=[],f=1,p=null,m=3,y=!1,w=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var O=n(d);O!==null;){if(O.callback===null)r(d);else if(O.startTime<=E)r(d),O.sortIndex=O.expirationTime,t(c,O);else break;O=n(d)}}function S(E){if(_=!1,v(E),!w)if(n(c)!==null)w=!0,K(N);else{var O=n(d);O!==null&&me(S,O.startTime-E)}}function N(E,O){w=!1,_&&(_=!1,h(L),L=-1),y=!0;var B=m;try{for(v(O),p=n(c);p!==null&&(!(p.expirationTime>O)||E&&!U());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,m=p.priorityLevel;var he=Q(p.expirationTime<=O);O=e.unstable_now(),typeof he=="function"?p.callback=he:p===n(c)&&r(c),v(O)}else r(c);p=n(c)}if(p!==null)var Xt=!0;else{var Qt=n(d);Qt!==null&&me(S,Qt.startTime-O),Xt=!1}return Xt}finally{p=null,m=B,y=!1}}var T=!1,j=null,L=-1,D=5,M=-1;function U(){return!(e.unstable_now()-M<D)}function z(){if(j!==null){var E=e.unstable_now();M=E;var O=!0;try{O=j(!0,E)}finally{O?ee():(T=!1,j=null)}}else T=!1}var ee;if(typeof g=="function")ee=function(){g(z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,fe=G.port2;G.port1.onmessage=z,ee=function(){fe.postMessage(null)}}else ee=function(){k(z,0)};function K(E){j=E,T||(T=!0,ee())}function me(E,O){L=k(function(){E(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,K(N))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(E){switch(m){case 1:case 2:case 3:var O=3;break;default:O=m}var B=m;m=O;try{return E()}finally{m=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,O){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var B=m;m=E;try{return O()}finally{m=B}},e.unstable_scheduleCallback=function(E,O,B){var Q=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Q+B:Q):B=Q,E){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=B+he,E={id:f++,callback:O,priorityLevel:E,startTime:B,expirationTime:he,sortIndex:-1},B>Q?(E.sortIndex=B,t(d,E),n(c)===null&&E===n(d)&&(_?(h(L),L=-1):_=!0,me(S,B-Q))):(E.sortIndex=he,t(c,E),w||y||(w=!0,K(N))),E},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(E){var O=m;return function(){var B=m;m=O;try{return E.apply(this,arguments)}finally{m=B}}}})(bh);wh.exports=bh;var I1=wh.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var A1=u,bt=I1;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var kh=new Set,Rs={};function zr(e,t){No(e,t),No(e+"Capture",t)}function No(e,t){for(Rs[e]=t,e=0;e<t.length;e++)kh.add(t[e])}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zc=Object.prototype.hasOwnProperty,O1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Jf={},qf={};function M1(e){return zc.call(qf,e)?!0:zc.call(Jf,e)?!1:O1.test(e)?qf[e]=!0:(Jf[e]=!0,!1)}function $1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D1(e,t,n,r){if(t===null||typeof t>"u"||$1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function st(e,t,n,r,o,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var qu=/[\-:]([a-z])/g;function ed(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(qu,ed);Qe[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(qu,ed);Qe[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(qu,ed);Qe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function td(e,t,n,r){var o=Qe.hasOwnProperty(t)?Qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D1(t,n,o,r)&&(n=null),r||o===null?M1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ln=A1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_l=Symbol.for("react.element"),ro=Symbol.for("react.portal"),oo=Symbol.for("react.fragment"),nd=Symbol.for("react.strict_mode"),Fc=Symbol.for("react.profiler"),Ch=Symbol.for("react.provider"),Sh=Symbol.for("react.context"),rd=Symbol.for("react.forward_ref"),Bc=Symbol.for("react.suspense"),Wc=Symbol.for("react.suspense_list"),od=Symbol.for("react.memo"),Un=Symbol.for("react.lazy"),Eh=Symbol.for("react.offscreen"),ep=Symbol.iterator;function es(e){return e===null||typeof e!="object"?null:(e=ep&&e[ep]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Object.assign,Ba;function gs(e){if(Ba===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ba=t&&t[1]||""}return`
34
- `+Ba+e}var Wa=!1;function Ha(e,t){if(!e||Wa)return"";Wa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
35
- `),s=r.stack.split(`
36
- `),l=o.length-1,i=s.length-1;1<=l&&0<=i&&o[l]!==s[i];)i--;for(;1<=l&&0<=i;l--,i--)if(o[l]!==s[i]){if(l!==1||i!==1)do if(l--,i--,0>i||o[l]!==s[i]){var c=`
37
- `+o[l].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=l&&0<=i);break}}}finally{Wa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gs(e):""}function z1(e){switch(e.tag){case 5:return gs(e.type);case 16:return gs("Lazy");case 13:return gs("Suspense");case 19:return gs("SuspenseList");case 0:case 2:case 15:return e=Ha(e.type,!1),e;case 11:return e=Ha(e.type.render,!1),e;case 1:return e=Ha(e.type,!0),e;default:return""}}function Hc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oo:return"Fragment";case ro:return"Portal";case Fc:return"Profiler";case nd:return"StrictMode";case Bc:return"Suspense";case Wc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sh:return(e.displayName||"Context")+".Consumer";case Ch:return(e._context.displayName||"Context")+".Provider";case rd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case od:return t=e.displayName||null,t!==null?t:Hc(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return Hc(e(t))}catch{}}return null}function F1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hc(t);case 8:return t===nd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function B1(e){var t=Nh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yl(e){e._valueTracker||(e._valueTracker=B1(e))}function jh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Uc(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ph(e,t){t=t.checked,t!=null&&td(e,"checked",t,!1)}function Vc(e,t){Ph(e,t);var n=sr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yc(e,t.type,sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function np(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yc(e,t,n){(t!=="number"||ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _s=Array.isArray;function go(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Xc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(_s(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sr(n)}}function Rh(e,t){var n=sr(t.value),r=sr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function op(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Th(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Th(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var vl,Lh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(vl=vl||document.createElement("div"),vl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=vl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},W1=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){W1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function Ih(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function Ah(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ih(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var H1=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gc(e,t){if(t){if(H1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Kc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zc=null;function sd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jc=null,_o=null,yo=null;function sp(e){if(e=tl(e)){if(typeof Jc!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Ki(t),Jc(e.stateNode,e.type,t))}}function Oh(e){_o?yo?yo.push(e):yo=[e]:_o=e}function Mh(){if(_o){var e=_o,t=yo;if(yo=_o=null,sp(e),t)for(e=0;e<t.length;e++)sp(t[e])}}function $h(e,t){return e(t)}function Dh(){}var Ua=!1;function zh(e,t,n){if(Ua)return e(t,n);Ua=!0;try{return $h(e,t,n)}finally{Ua=!1,(_o!==null||yo!==null)&&(Dh(),Mh())}}function Ls(e,t){var n=e.stateNode;if(n===null)return null;var r=Ki(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var qc=!1;if(Sn)try{var ts={};Object.defineProperty(ts,"passive",{get:function(){qc=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}catch{qc=!1}function U1(e,t,n,r,o,s,l,i,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(f){this.onError(f)}}var ws=!1,di=null,fi=!1,eu=null,V1={onError:function(e){ws=!0,di=e}};function Y1(e,t,n,r,o,s,l,i,c){ws=!1,di=null,U1.apply(V1,arguments)}function X1(e,t,n,r,o,s,l,i,c){if(Y1.apply(this,arguments),ws){if(ws){var d=di;ws=!1,di=null}else throw Error(A(198));fi||(fi=!0,eu=d)}}function Fr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Fh(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 lp(e){if(Fr(e)!==e)throw Error(A(188))}function Q1(e){var t=e.alternate;if(!t){if(t=Fr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return lp(o),e;if(s===r)return lp(o),t;s=s.sibling}throw Error(A(188))}if(n.return!==r.return)n=o,r=s;else{for(var l=!1,i=o.child;i;){if(i===n){l=!0,n=o,r=s;break}if(i===r){l=!0,r=o,n=s;break}i=i.sibling}if(!l){for(i=s.child;i;){if(i===n){l=!0,n=s,r=o;break}if(i===r){l=!0,r=s,n=o;break}i=i.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Bh(e){return e=Q1(e),e!==null?Wh(e):null}function Wh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Wh(e);if(t!==null)return t;e=e.sibling}return null}var Hh=bt.unstable_scheduleCallback,ip=bt.unstable_cancelCallback,G1=bt.unstable_shouldYield,K1=bt.unstable_requestPaint,Ie=bt.unstable_now,Z1=bt.unstable_getCurrentPriorityLevel,ld=bt.unstable_ImmediatePriority,Uh=bt.unstable_UserBlockingPriority,pi=bt.unstable_NormalPriority,J1=bt.unstable_LowPriority,Vh=bt.unstable_IdlePriority,Yi=null,sn=null;function q1(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(Yi,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:nv,ev=Math.log,tv=Math.LN2;function nv(e){return e>>>=0,e===0?32:31-(ev(e)/tv|0)|0}var xl=64,wl=4194304;function ys(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var i=l&~o;i!==0?r=ys(i):(s&=l,s!==0&&(r=ys(s)))}else l=n&~o,l!==0?r=ys(l):s!==0&&(r=ys(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),o=1<<n,r|=e[n],t&=~o;return r}function rv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ov(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ft(s),i=1<<l,c=o[l];c===-1?(!(i&n)||i&r)&&(o[l]=rv(i,t)):c<=t&&(e.expiredLanes|=i),s&=~i}}function tu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Yh(){var e=xl;return xl<<=1,!(xl&4194240)&&(xl=64),e}function Va(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function sv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ft(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function id(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var _e=0;function Xh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qh,ad,Gh,Kh,Zh,nu=!1,bl=[],Zn=null,Jn=null,qn=null,Is=new Map,As=new Map,Yn=[],lv="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 submit".split(" ");function ap(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":Is.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":As.delete(t.pointerId)}}function ns(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=tl(t),t!==null&&ad(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function iv(e,t,n,r,o){switch(t){case"focusin":return Zn=ns(Zn,e,t,n,r,o),!0;case"dragenter":return Jn=ns(Jn,e,t,n,r,o),!0;case"mouseover":return qn=ns(qn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Is.set(s,ns(Is.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,As.set(s,ns(As.get(s)||null,e,t,n,r,o)),!0}return!1}function Jh(e){var t=Sr(e.target);if(t!==null){var n=Fr(t);if(n!==null){if(t=n.tag,t===13){if(t=Fh(n),t!==null){e.blockedOn=t,Zh(e.priority,function(){Gh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ru(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zc=r,n.target.dispatchEvent(r),Zc=null}else return t=tl(n),t!==null&&ad(t),e.blockedOn=n,!1;t.shift()}return!0}function cp(e,t,n){Kl(e)&&n.delete(t)}function av(){nu=!1,Zn!==null&&Kl(Zn)&&(Zn=null),Jn!==null&&Kl(Jn)&&(Jn=null),qn!==null&&Kl(qn)&&(qn=null),Is.forEach(cp),As.forEach(cp)}function rs(e,t){e.blockedOn===t&&(e.blockedOn=null,nu||(nu=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,av)))}function Os(e){function t(o){return rs(o,e)}if(0<bl.length){rs(bl[0],e);for(var n=1;n<bl.length;n++){var r=bl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Zn!==null&&rs(Zn,e),Jn!==null&&rs(Jn,e),qn!==null&&rs(qn,e),Is.forEach(t),As.forEach(t),n=0;n<Yn.length;n++)r=Yn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)Jh(n),n.blockedOn===null&&Yn.shift()}var vo=Ln.ReactCurrentBatchConfig,hi=!0;function cv(e,t,n,r){var o=_e,s=vo.transition;vo.transition=null;try{_e=1,cd(e,t,n,r)}finally{_e=o,vo.transition=s}}function uv(e,t,n,r){var o=_e,s=vo.transition;vo.transition=null;try{_e=4,cd(e,t,n,r)}finally{_e=o,vo.transition=s}}function cd(e,t,n,r){if(hi){var o=ru(e,t,n,r);if(o===null)tc(e,t,r,gi,n),ap(e,r);else if(iv(o,e,t,n,r))r.stopPropagation();else if(ap(e,r),t&4&&-1<lv.indexOf(e)){for(;o!==null;){var s=tl(o);if(s!==null&&Qh(s),s=ru(e,t,n,r),s===null&&tc(e,t,r,gi,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else tc(e,t,r,null,n)}}var gi=null;function ru(e,t,n,r){if(gi=null,e=sd(r),e=Sr(e),e!==null)if(t=Fr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gi=e,null}function qh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Z1()){case ld:return 1;case Uh:return 4;case pi:case J1:return 16;case Vh:return 536870912;default:return 16}default:return 16}}var Qn=null,ud=null,Zl=null;function eg(){if(Zl)return Zl;var e,t=ud,n=t.length,r,o="value"in Qn?Qn.value:Qn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[s-r];r++);return Zl=o.slice(e,1<r?1-r:void 0)}function Jl(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 kl(){return!0}function up(){return!1}function Ct(e){function t(n,r,o,s,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(s):s[i]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?kl:up,this.isPropagationStopped=up,this}return Re(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=kl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=kl)},persist:function(){},isPersistent:kl}),t}var zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dd=Ct(zo),el=Re({},zo,{view:0,detail:0}),dv=Ct(el),Ya,Xa,os,Xi=Re({},el,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==os&&(os&&e.type==="mousemove"?(Ya=e.screenX-os.screenX,Xa=e.screenY-os.screenY):Xa=Ya=0,os=e),Ya)},movementY:function(e){return"movementY"in e?e.movementY:Xa}}),dp=Ct(Xi),fv=Re({},Xi,{dataTransfer:0}),pv=Ct(fv),mv=Re({},el,{relatedTarget:0}),Qa=Ct(mv),hv=Re({},zo,{animationName:0,elapsedTime:0,pseudoElement:0}),gv=Ct(hv),_v=Re({},zo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yv=Ct(_v),vv=Re({},zo,{data:0}),fp=Ct(vv),xv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},bv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bv[e])?!!t[e]:!1}function fd(){return kv}var Cv=Re({},el,{key:function(e){if(e.key){var t=xv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fd,charCode:function(e){return e.type==="keypress"?Jl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sv=Ct(Cv),Ev=Re({},Xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pp=Ct(Ev),Nv=Re({},el,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fd}),jv=Ct(Nv),Pv=Re({},zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rv=Ct(Pv),Tv=Re({},Xi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lv=Ct(Tv),Iv=[9,13,27,32],pd=Sn&&"CompositionEvent"in window,bs=null;Sn&&"documentMode"in document&&(bs=document.documentMode);var Av=Sn&&"TextEvent"in window&&!bs,tg=Sn&&(!pd||bs&&8<bs&&11>=bs),mp=" ",hp=!1;function ng(e,t){switch(e){case"keyup":return Iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var so=!1;function Ov(e,t){switch(e){case"compositionend":return rg(t);case"keypress":return t.which!==32?null:(hp=!0,mp);case"textInput":return e=t.data,e===mp&&hp?null:e;default:return null}}function Mv(e,t){if(so)return e==="compositionend"||!pd&&ng(e,t)?(e=eg(),Zl=ud=Qn=null,so=!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 tg&&t.locale!=="ko"?null:t.data;default:return null}}var $v={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$v[e.type]:t==="textarea"}function og(e,t,n,r){Oh(r),t=_i(t,"onChange"),0<t.length&&(n=new dd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ks=null,Ms=null;function Dv(e){hg(e,0)}function Qi(e){var t=ao(e);if(jh(t))return e}function zv(e,t){if(e==="change")return t}var sg=!1;if(Sn){var Ga;if(Sn){var Ka="oninput"in document;if(!Ka){var _p=document.createElement("div");_p.setAttribute("oninput","return;"),Ka=typeof _p.oninput=="function"}Ga=Ka}else Ga=!1;sg=Ga&&(!document.documentMode||9<document.documentMode)}function yp(){ks&&(ks.detachEvent("onpropertychange",lg),Ms=ks=null)}function lg(e){if(e.propertyName==="value"&&Qi(Ms)){var t=[];og(t,Ms,e,sd(e)),zh(Dv,t)}}function Fv(e,t,n){e==="focusin"?(yp(),ks=t,Ms=n,ks.attachEvent("onpropertychange",lg)):e==="focusout"&&yp()}function Bv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qi(Ms)}function Wv(e,t){if(e==="click")return Qi(t)}function Hv(e,t){if(e==="input"||e==="change")return Qi(t)}function Uv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:Uv;function $s(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!zc.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function vp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xp(e,t){var n=vp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vp(n)}}function ig(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ig(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ag(){for(var e=window,t=ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ui(e.document)}return t}function md(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 Vv(e){var t=ag(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ig(n.ownerDocument.documentElement,n)){if(r!==null&&md(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=xp(n,s);var l=xp(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Yv=Sn&&"documentMode"in document&&11>=document.documentMode,lo=null,ou=null,Cs=null,su=!1;function wp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;su||lo==null||lo!==ui(r)||(r=lo,"selectionStart"in r&&md(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cs&&$s(Cs,r)||(Cs=r,r=_i(ou,"onSelect"),0<r.length&&(t=new dd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lo)))}function Cl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var io={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionend:Cl("Transition","TransitionEnd")},Za={},cg={};Sn&&(cg=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function Gi(e){if(Za[e])return Za[e];if(!io[e])return e;var t=io[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cg)return Za[e]=t[n];return e}var ug=Gi("animationend"),dg=Gi("animationiteration"),fg=Gi("animationstart"),pg=Gi("transitionend"),mg=new Map,bp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function cr(e,t){mg.set(e,t),zr(t,[e])}for(var Ja=0;Ja<bp.length;Ja++){var qa=bp[Ja],Xv=qa.toLowerCase(),Qv=qa[0].toUpperCase()+qa.slice(1);cr(Xv,"on"+Qv)}cr(ug,"onAnimationEnd");cr(dg,"onAnimationIteration");cr(fg,"onAnimationStart");cr("dblclick","onDoubleClick");cr("focusin","onFocus");cr("focusout","onBlur");cr(pg,"onTransitionEnd");No("onMouseEnter",["mouseout","mouseover"]);No("onMouseLeave",["mouseout","mouseover"]);No("onPointerEnter",["pointerout","pointerover"]);No("onPointerLeave",["pointerout","pointerover"]);zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zr("onBeforeInput",["compositionend","keypress","textInput","paste"]);zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="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(" "),Gv=new Set("cancel close invalid load scroll toggle".split(" ").concat(vs));function kp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,X1(r,t,void 0,e),e.currentTarget=null}function hg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],c=i.instance,d=i.currentTarget;if(i=i.listener,c!==s&&o.isPropagationStopped())break e;kp(o,i,d),s=c}else for(l=0;l<r.length;l++){if(i=r[l],c=i.instance,d=i.currentTarget,i=i.listener,c!==s&&o.isPropagationStopped())break e;kp(o,i,d),s=c}}}if(fi)throw e=eu,fi=!1,eu=null,e}function ke(e,t){var n=t[uu];n===void 0&&(n=t[uu]=new Set);var r=e+"__bubble";n.has(r)||(gg(t,e,2,!1),n.add(r))}function ec(e,t,n){var r=0;t&&(r|=4),gg(n,e,r,t)}var Sl="_reactListening"+Math.random().toString(36).slice(2);function Ds(e){if(!e[Sl]){e[Sl]=!0,kh.forEach(function(n){n!=="selectionchange"&&(Gv.has(n)||ec(n,!1,e),ec(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sl]||(t[Sl]=!0,ec("selectionchange",!1,t))}}function gg(e,t,n,r){switch(qh(t)){case 1:var o=cv;break;case 4:o=uv;break;default:o=cd}n=o.bind(null,t,n,e),o=void 0,!qc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function tc(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var c=l.tag;if((c===3||c===4)&&(c=l.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;l=l.return}for(;i!==null;){if(l=Sr(i),l===null)return;if(c=l.tag,c===5||c===6){r=s=l;continue e}i=i.parentNode}}r=r.return}zh(function(){var d=s,f=sd(n),p=[];e:{var m=mg.get(e);if(m!==void 0){var y=dd,w=e;switch(e){case"keypress":if(Jl(n)===0)break e;case"keydown":case"keyup":y=Sv;break;case"focusin":w="focus",y=Qa;break;case"focusout":w="blur",y=Qa;break;case"beforeblur":case"afterblur":y=Qa;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":y=dp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=pv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=jv;break;case ug:case dg:case fg:y=gv;break;case pg:y=Rv;break;case"scroll":y=dv;break;case"wheel":y=Lv;break;case"copy":case"cut":case"paste":y=yv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=pp}var _=(t&4)!==0,k=!_&&e==="scroll",h=_?m!==null?m+"Capture":null:m;_=[];for(var g=d,v;g!==null;){v=g;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,h!==null&&(S=Ls(g,h),S!=null&&_.push(zs(g,S,v)))),k)break;g=g.return}0<_.length&&(m=new y(m,w,null,n,f),p.push({event:m,listeners:_}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==Zc&&(w=n.relatedTarget||n.fromElement)&&(Sr(w)||w[En]))break e;if((y||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=d,w=w?Sr(w):null,w!==null&&(k=Fr(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=d),y!==w)){if(_=dp,S="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(_=pp,S="onPointerLeave",h="onPointerEnter",g="pointer"),k=y==null?m:ao(y),v=w==null?m:ao(w),m=new _(S,g+"leave",y,n,f),m.target=k,m.relatedTarget=v,S=null,Sr(f)===d&&(_=new _(h,g+"enter",w,n,f),_.target=v,_.relatedTarget=k,S=_),k=S,y&&w)t:{for(_=y,h=w,g=0,v=_;v;v=Gr(v))g++;for(v=0,S=h;S;S=Gr(S))v++;for(;0<g-v;)_=Gr(_),g--;for(;0<v-g;)h=Gr(h),v--;for(;g--;){if(_===h||h!==null&&_===h.alternate)break t;_=Gr(_),h=Gr(h)}_=null}else _=null;y!==null&&Cp(p,m,y,_,!1),w!==null&&k!==null&&Cp(p,k,w,_,!0)}}e:{if(m=d?ao(d):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var N=zv;else if(gp(m))if(sg)N=Hv;else{N=Bv;var T=Fv}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(N=Wv);if(N&&(N=N(e,d))){og(p,N,n,f);break e}T&&T(e,m,d),e==="focusout"&&(T=m._wrapperState)&&T.controlled&&m.type==="number"&&Yc(m,"number",m.value)}switch(T=d?ao(d):window,e){case"focusin":(gp(T)||T.contentEditable==="true")&&(lo=T,ou=d,Cs=null);break;case"focusout":Cs=ou=lo=null;break;case"mousedown":su=!0;break;case"contextmenu":case"mouseup":case"dragend":su=!1,wp(p,n,f);break;case"selectionchange":if(Yv)break;case"keydown":case"keyup":wp(p,n,f)}var j;if(pd)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else so?ng(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(tg&&n.locale!=="ko"&&(so||L!=="onCompositionStart"?L==="onCompositionEnd"&&so&&(j=eg()):(Qn=f,ud="value"in Qn?Qn.value:Qn.textContent,so=!0)),T=_i(d,L),0<T.length&&(L=new fp(L,e,null,n,f),p.push({event:L,listeners:T}),j?L.data=j:(j=rg(n),j!==null&&(L.data=j)))),(j=Av?Ov(e,n):Mv(e,n))&&(d=_i(d,"onBeforeInput"),0<d.length&&(f=new fp("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:d}),f.data=j))}hg(p,t)})}function zs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _i(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Ls(e,n),s!=null&&r.unshift(zs(e,s,o)),s=Ls(e,t),s!=null&&r.push(zs(e,s,o))),e=e.return}return r}function Gr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cp(e,t,n,r,o){for(var s=t._reactName,l=[];n!==null&&n!==r;){var i=n,c=i.alternate,d=i.stateNode;if(c!==null&&c===r)break;i.tag===5&&d!==null&&(i=d,o?(c=Ls(n,s),c!=null&&l.unshift(zs(n,c,i))):o||(c=Ls(n,s),c!=null&&l.push(zs(n,c,i)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Kv=/\r\n?/g,Zv=/\u0000|\uFFFD/g;function Sp(e){return(typeof e=="string"?e:""+e).replace(Kv,`
38
- `).replace(Zv,"")}function El(e,t,n){if(t=Sp(t),Sp(e)!==t&&n)throw Error(A(425))}function yi(){}var lu=null,iu=null;function au(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cu=typeof setTimeout=="function"?setTimeout:void 0,Jv=typeof clearTimeout=="function"?clearTimeout:void 0,Ep=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ep<"u"?function(e){return Ep.resolve(null).then(e).catch(ex)}:cu;function ex(e){setTimeout(function(){throw e})}function nc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Os(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Os(t)}function er(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==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Np(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Fo=Math.random().toString(36).slice(2),nn="__reactFiber$"+Fo,Fs="__reactProps$"+Fo,En="__reactContainer$"+Fo,uu="__reactEvents$"+Fo,tx="__reactListeners$"+Fo,nx="__reactHandles$"+Fo;function Sr(e){var t=e[nn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[En]||n[nn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Np(e);e!==null;){if(n=e[nn])return n;e=Np(e)}return t}e=n,n=e.parentNode}return null}function tl(e){return e=e[nn]||e[En],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ao(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function Ki(e){return e[Fs]||null}var du=[],co=-1;function ur(e){return{current:e}}function Ce(e){0>co||(e.current=du[co],du[co]=null,co--)}function we(e,t){co++,du[co]=e.current,e.current=t}var lr={},et=ur(lr),ft=ur(!1),Lr=lr;function jo(e,t){var n=e.type.contextTypes;if(!n)return lr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return e=e.childContextTypes,e!=null}function vi(){Ce(ft),Ce(et)}function jp(e,t,n){if(et.current!==lr)throw Error(A(168));we(et,t),we(ft,n)}function _g(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,F1(e)||"Unknown",o));return Re({},n,r)}function xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lr,Lr=et.current,we(et,e),we(ft,ft.current),!0}function Pp(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=_g(e,t,Lr),r.__reactInternalMemoizedMergedChildContext=e,Ce(ft),Ce(et),we(et,e)):Ce(ft),we(ft,n)}var wn=null,Zi=!1,rc=!1;function yg(e){wn===null?wn=[e]:wn.push(e)}function rx(e){Zi=!0,yg(e)}function dr(){if(!rc&&wn!==null){rc=!0;var e=0,t=_e;try{var n=wn;for(_e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Zi=!1}catch(o){throw wn!==null&&(wn=wn.slice(e+1)),Hh(ld,dr),o}finally{_e=t,rc=!1}}return null}var uo=[],fo=0,wi=null,bi=0,Nt=[],jt=0,Ir=null,bn=1,kn="";function br(e,t){uo[fo++]=bi,uo[fo++]=wi,wi=e,bi=t}function vg(e,t,n){Nt[jt++]=bn,Nt[jt++]=kn,Nt[jt++]=Ir,Ir=e;var r=bn;e=kn;var o=32-Ft(r)-1;r&=~(1<<o),n+=1;var s=32-Ft(t)+o;if(30<s){var l=o-o%5;s=(r&(1<<l)-1).toString(32),r>>=l,o-=l,bn=1<<32-Ft(t)+o|n<<o|r,kn=s+e}else bn=1<<s|n<<o|r,kn=e}function hd(e){e.return!==null&&(br(e,1),vg(e,1,0))}function gd(e){for(;e===wi;)wi=uo[--fo],uo[fo]=null,bi=uo[--fo],uo[fo]=null;for(;e===Ir;)Ir=Nt[--jt],Nt[jt]=null,kn=Nt[--jt],Nt[jt]=null,bn=Nt[--jt],Nt[jt]=null}var xt=null,vt=null,Ee=!1,Dt=null;function xg(e,t){var n=Pt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Rp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,vt=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ir!==null?{id:bn,overflow:kn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xt=e,vt=null,!0):!1;default:return!1}}function fu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pu(e){if(Ee){var t=vt;if(t){var n=t;if(!Rp(e,t)){if(fu(e))throw Error(A(418));t=er(n.nextSibling);var r=xt;t&&Rp(e,t)?xg(r,n):(e.flags=e.flags&-4097|2,Ee=!1,xt=e)}}else{if(fu(e))throw Error(A(418));e.flags=e.flags&-4097|2,Ee=!1,xt=e}}}function Tp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function Nl(e){if(e!==xt)return!1;if(!Ee)return Tp(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!au(e.type,e.memoizedProps)),t&&(t=vt)){if(fu(e))throw wg(),Error(A(418));for(;t;)xg(e,t),t=er(t.nextSibling)}if(Tp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){vt=er(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=xt?er(e.stateNode.nextSibling):null;return!0}function wg(){for(var e=vt;e;)e=er(e.nextSibling)}function Po(){vt=xt=null,Ee=!1}function _d(e){Dt===null?Dt=[e]:Dt.push(e)}var ox=Ln.ReactCurrentBatchConfig;function ss(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var i=o.refs;l===null?delete i[s]:i[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function jl(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lp(e){var t=e._init;return t(e._payload)}function bg(e){function t(h,g){if(e){var v=h.deletions;v===null?(h.deletions=[g],h.flags|=16):v.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function o(h,g){return h=or(h,g),h.index=0,h.sibling=null,h}function s(h,g,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<g?(h.flags|=2,g):v):(h.flags|=2,g)):(h.flags|=1048576,g)}function l(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,g,v,S){return g===null||g.tag!==6?(g=uc(v,h.mode,S),g.return=h,g):(g=o(g,v),g.return=h,g)}function c(h,g,v,S){var N=v.type;return N===oo?f(h,g,v.props.children,S,v.key):g!==null&&(g.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Un&&Lp(N)===g.type)?(S=o(g,v.props),S.ref=ss(h,g,v),S.return=h,S):(S=si(v.type,v.key,v.props,null,h.mode,S),S.ref=ss(h,g,v),S.return=h,S)}function d(h,g,v,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=dc(v,h.mode,S),g.return=h,g):(g=o(g,v.children||[]),g.return=h,g)}function f(h,g,v,S,N){return g===null||g.tag!==7?(g=Pr(v,h.mode,S,N),g.return=h,g):(g=o(g,v),g.return=h,g)}function p(h,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=uc(""+g,h.mode,v),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _l:return v=si(g.type,g.key,g.props,null,h.mode,v),v.ref=ss(h,null,g),v.return=h,v;case ro:return g=dc(g,h.mode,v),g.return=h,g;case Un:var S=g._init;return p(h,S(g._payload),v)}if(_s(g)||es(g))return g=Pr(g,h.mode,v,null),g.return=h,g;jl(h,g)}return null}function m(h,g,v,S){var N=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return N!==null?null:i(h,g,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _l:return v.key===N?c(h,g,v,S):null;case ro:return v.key===N?d(h,g,v,S):null;case Un:return N=v._init,m(h,g,N(v._payload),S)}if(_s(v)||es(v))return N!==null?null:f(h,g,v,S,null);jl(h,v)}return null}function y(h,g,v,S,N){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(v)||null,i(g,h,""+S,N);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _l:return h=h.get(S.key===null?v:S.key)||null,c(g,h,S,N);case ro:return h=h.get(S.key===null?v:S.key)||null,d(g,h,S,N);case Un:var T=S._init;return y(h,g,v,T(S._payload),N)}if(_s(S)||es(S))return h=h.get(v)||null,f(g,h,S,N,null);jl(g,S)}return null}function w(h,g,v,S){for(var N=null,T=null,j=g,L=g=0,D=null;j!==null&&L<v.length;L++){j.index>L?(D=j,j=null):D=j.sibling;var M=m(h,j,v[L],S);if(M===null){j===null&&(j=D);break}e&&j&&M.alternate===null&&t(h,j),g=s(M,g,L),T===null?N=M:T.sibling=M,T=M,j=D}if(L===v.length)return n(h,j),Ee&&br(h,L),N;if(j===null){for(;L<v.length;L++)j=p(h,v[L],S),j!==null&&(g=s(j,g,L),T===null?N=j:T.sibling=j,T=j);return Ee&&br(h,L),N}for(j=r(h,j);L<v.length;L++)D=y(j,h,L,v[L],S),D!==null&&(e&&D.alternate!==null&&j.delete(D.key===null?L:D.key),g=s(D,g,L),T===null?N=D:T.sibling=D,T=D);return e&&j.forEach(function(U){return t(h,U)}),Ee&&br(h,L),N}function _(h,g,v,S){var N=es(v);if(typeof N!="function")throw Error(A(150));if(v=N.call(v),v==null)throw Error(A(151));for(var T=N=null,j=g,L=g=0,D=null,M=v.next();j!==null&&!M.done;L++,M=v.next()){j.index>L?(D=j,j=null):D=j.sibling;var U=m(h,j,M.value,S);if(U===null){j===null&&(j=D);break}e&&j&&U.alternate===null&&t(h,j),g=s(U,g,L),T===null?N=U:T.sibling=U,T=U,j=D}if(M.done)return n(h,j),Ee&&br(h,L),N;if(j===null){for(;!M.done;L++,M=v.next())M=p(h,M.value,S),M!==null&&(g=s(M,g,L),T===null?N=M:T.sibling=M,T=M);return Ee&&br(h,L),N}for(j=r(h,j);!M.done;L++,M=v.next())M=y(j,h,L,M.value,S),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?L:M.key),g=s(M,g,L),T===null?N=M:T.sibling=M,T=M);return e&&j.forEach(function(z){return t(h,z)}),Ee&&br(h,L),N}function k(h,g,v,S){if(typeof v=="object"&&v!==null&&v.type===oo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case _l:e:{for(var N=v.key,T=g;T!==null;){if(T.key===N){if(N=v.type,N===oo){if(T.tag===7){n(h,T.sibling),g=o(T,v.props.children),g.return=h,h=g;break e}}else if(T.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Un&&Lp(N)===T.type){n(h,T.sibling),g=o(T,v.props),g.ref=ss(h,T,v),g.return=h,h=g;break e}n(h,T);break}else t(h,T);T=T.sibling}v.type===oo?(g=Pr(v.props.children,h.mode,S,v.key),g.return=h,h=g):(S=si(v.type,v.key,v.props,null,h.mode,S),S.ref=ss(h,g,v),S.return=h,h=S)}return l(h);case ro:e:{for(T=v.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(h,g.sibling),g=o(g,v.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=dc(v,h.mode,S),g.return=h,h=g}return l(h);case Un:return T=v._init,k(h,g,T(v._payload),S)}if(_s(v))return w(h,g,v,S);if(es(v))return _(h,g,v,S);jl(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,v),g.return=h,h=g):(n(h,g),g=uc(v,h.mode,S),g.return=h,h=g),l(h)):n(h,g)}return k}var Ro=bg(!0),kg=bg(!1),ki=ur(null),Ci=null,po=null,yd=null;function vd(){yd=po=Ci=null}function xd(e){var t=ki.current;Ce(ki),e._currentValue=t}function mu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xo(e,t){Ci=e,yd=po=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Tt(e){var t=e._currentValue;if(yd!==e)if(e={context:e,memoizedValue:t,next:null},po===null){if(Ci===null)throw Error(A(308));po=e,Ci.dependencies={lanes:0,firstContext:e}}else po=po.next=e;return t}var Er=null;function wd(e){Er===null?Er=[e]:Er.push(e)}function Cg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,wd(t)):(n.next=o.next,o.next=n),t.interleaved=n,Nn(e,r)}function Nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vn=!1;function bd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,de&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Nn(e,n)}return o=r.interleaved,o===null?(t.next=t,wd(r)):(t.next=o.next,o.next=t),r.interleaved=t,Nn(e,n)}function ql(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,id(e,n)}}function Ip(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Si(e,t,n,r){var o=e.updateQueue;Vn=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var c=i,d=c.next;c.next=null,l===null?s=d:l.next=d,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,i=f.lastBaseUpdate,i!==l&&(i===null?f.firstBaseUpdate=d:i.next=d,f.lastBaseUpdate=c))}if(s!==null){var p=o.baseState;l=0,f=d=c=null,i=s;do{var m=i.lane,y=i.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,_=i;switch(m=t,y=n,_.tag){case 1:if(w=_.payload,typeof w=="function"){p=w.call(y,p,m);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=_.payload,m=typeof w=="function"?w.call(y,p,m):w,m==null)break e;p=Re({},p,m);break e;case 2:Vn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[i]:m.push(i))}else y={eventTime:y,lane:m,tag:i.tag,payload:i.payload,callback:i.callback,next:null},f===null?(d=f=y,c=p):f=f.next=y,l|=m;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;m=i,i=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(f===null&&(c=p),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Or|=l,e.lanes=l,e.memoizedState=p}}function Ap(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(A(191,o));o.call(r)}}}var nl={},ln=ur(nl),Bs=ur(nl),Ws=ur(nl);function Nr(e){if(e===nl)throw Error(A(174));return e}function kd(e,t){switch(we(Ws,t),we(Bs,e),we(ln,nl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qc(t,e)}Ce(ln),we(ln,t)}function To(){Ce(ln),Ce(Bs),Ce(Ws)}function Eg(e){Nr(Ws.current);var t=Nr(ln.current),n=Qc(t,e.type);t!==n&&(we(Bs,e),we(ln,n))}function Cd(e){Bs.current===e&&(Ce(ln),Ce(Bs))}var je=ur(0);function Ei(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==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oc=[];function Sd(){for(var e=0;e<oc.length;e++)oc[e]._workInProgressVersionPrimary=null;oc.length=0}var ei=Ln.ReactCurrentDispatcher,sc=Ln.ReactCurrentBatchConfig,Ar=0,Pe=null,ze=null,He=null,Ni=!1,Ss=!1,Hs=0,sx=0;function Ze(){throw Error(A(321))}function Ed(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Nd(e,t,n,r,o,s){if(Ar=s,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ei.current=e===null||e.memoizedState===null?cx:ux,e=n(r,o),Ss){s=0;do{if(Ss=!1,Hs=0,25<=s)throw Error(A(301));s+=1,He=ze=null,t.updateQueue=null,ei.current=dx,e=n(r,o)}while(Ss)}if(ei.current=ji,t=ze!==null&&ze.next!==null,Ar=0,He=ze=Pe=null,Ni=!1,t)throw Error(A(300));return e}function jd(){var e=Hs!==0;return Hs=0,e}function tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?Pe.memoizedState=He=e:He=He.next=e,He}function Lt(){if(ze===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=He===null?Pe.memoizedState:He.next;if(t!==null)He=t,ze=e;else{if(e===null)throw Error(A(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},He===null?Pe.memoizedState=He=e:He=He.next=e}return He}function Us(e,t){return typeof t=="function"?t(e):t}function lc(e){var t=Lt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=ze,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var l=o.next;o.next=s.next,s.next=l}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var i=l=null,c=null,d=s;do{var f=d.lane;if((Ar&f)===f)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var p={lane:f,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(i=c=p,l=r):c=c.next=p,Pe.lanes|=f,Or|=f}d=d.next}while(d!==null&&d!==s);c===null?l=r:c.next=i,Ht(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Pe.lanes|=s,Or|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ic(e){var t=Lt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do s=e(s,l.action),l=l.next;while(l!==o);Ht(s,t.memoizedState)||(dt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ng(){}function jg(e,t){var n=Pe,r=Lt(),o=t(),s=!Ht(r.memoizedState,o);if(s&&(r.memoizedState=o,dt=!0),r=r.queue,Pd(Tg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||He!==null&&He.memoizedState.tag&1){if(n.flags|=2048,Vs(9,Rg.bind(null,n,r,o,t),void 0,null),Ue===null)throw Error(A(349));Ar&30||Pg(n,t,o)}return o}function Pg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Rg(e,t,n,r){t.value=n,t.getSnapshot=r,Lg(t)&&Ig(e)}function Tg(e,t,n){return n(function(){Lg(t)&&Ig(e)})}function Lg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function Ig(e){var t=Nn(e,1);t!==null&&Bt(t,e,1,-1)}function Op(e){var t=tn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Us,lastRenderedState:e},t.queue=e,e=e.dispatch=ax.bind(null,Pe,e),[t.memoizedState,e]}function Vs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ag(){return Lt().memoizedState}function ti(e,t,n,r){var o=tn();Pe.flags|=e,o.memoizedState=Vs(1|t,n,void 0,r===void 0?null:r)}function Ji(e,t,n,r){var o=Lt();r=r===void 0?null:r;var s=void 0;if(ze!==null){var l=ze.memoizedState;if(s=l.destroy,r!==null&&Ed(r,l.deps)){o.memoizedState=Vs(t,n,s,r);return}}Pe.flags|=e,o.memoizedState=Vs(1|t,n,s,r)}function Mp(e,t){return ti(8390656,8,e,t)}function Pd(e,t){return Ji(2048,8,e,t)}function Og(e,t){return Ji(4,2,e,t)}function Mg(e,t){return Ji(4,4,e,t)}function $g(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dg(e,t,n){return n=n!=null?n.concat([e]):null,Ji(4,4,$g.bind(null,t,e),n)}function Rd(){}function zg(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ed(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fg(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ed(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Bg(e,t,n){return Ar&21?(Ht(n,t)||(n=Yh(),Pe.lanes|=n,Or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function lx(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var r=sc.transition;sc.transition={};try{e(!1),t()}finally{_e=n,sc.transition=r}}function Wg(){return Lt().memoizedState}function ix(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hg(e))Ug(t,n);else if(n=Cg(e,t,n,r),n!==null){var o=rt();Bt(n,e,r,o),Vg(n,t,r)}}function ax(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hg(e))Ug(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,i=s(l,n);if(o.hasEagerState=!0,o.eagerState=i,Ht(i,l)){var c=t.interleaved;c===null?(o.next=o,wd(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Cg(e,t,o,r),n!==null&&(o=rt(),Bt(n,e,r,o),Vg(n,t,r))}}function Hg(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Ug(e,t){Ss=Ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,id(e,n)}}var ji={readContext:Tt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},cx={readContext:Tt,useCallback:function(e,t){return tn().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:Mp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ti(4194308,4,$g.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return ti(4,2,e,t)},useMemo:function(e,t){var n=tn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ix.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=tn();return e={current:e},t.memoizedState=e},useState:Op,useDebugValue:Rd,useDeferredValue:function(e){return tn().memoizedState=e},useTransition:function(){var e=Op(!1),t=e[0];return e=lx.bind(null,e[1]),tn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pe,o=tn();if(Ee){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ue===null)throw Error(A(349));Ar&30||Pg(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Mp(Tg.bind(null,r,s,e),[e]),r.flags|=2048,Vs(9,Rg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=tn(),t=Ue.identifierPrefix;if(Ee){var n=kn,r=bn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=sx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ux={readContext:Tt,useCallback:zg,useContext:Tt,useEffect:Pd,useImperativeHandle:Dg,useInsertionEffect:Og,useLayoutEffect:Mg,useMemo:Fg,useReducer:lc,useRef:Ag,useState:function(){return lc(Us)},useDebugValue:Rd,useDeferredValue:function(e){var t=Lt();return Bg(t,ze.memoizedState,e)},useTransition:function(){var e=lc(Us)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Ng,useSyncExternalStore:jg,useId:Wg,unstable_isNewReconciler:!1},dx={readContext:Tt,useCallback:zg,useContext:Tt,useEffect:Pd,useImperativeHandle:Dg,useInsertionEffect:Og,useLayoutEffect:Mg,useMemo:Fg,useReducer:ic,useRef:Ag,useState:function(){return ic(Us)},useDebugValue:Rd,useDeferredValue:function(e){var t=Lt();return ze===null?t.memoizedState=e:Bg(t,ze.memoizedState,e)},useTransition:function(){var e=ic(Us)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Ng,useSyncExternalStore:jg,useId:Wg,unstable_isNewReconciler:!1};function Mt(e,t){if(e&&e.defaultProps){t=Re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var qi={isMounted:function(e){return(e=e._reactInternals)?Fr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),o=rr(e),s=Cn(r,o);s.payload=t,n!=null&&(s.callback=n),t=tr(e,s,o),t!==null&&(Bt(t,e,o,r),ql(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),o=rr(e),s=Cn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=tr(e,s,o),t!==null&&(Bt(t,e,o,r),ql(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=rr(e),o=Cn(n,r);o.tag=2,t!=null&&(o.callback=t),t=tr(e,o,r),t!==null&&(Bt(t,e,r,n),ql(t,e,r))}};function $p(e,t,n,r,o,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!$s(n,r)||!$s(o,s):!0}function Yg(e,t,n){var r=!1,o=lr,s=t.contextType;return typeof s=="object"&&s!==null?s=Tt(s):(o=pt(t)?Lr:et.current,r=t.contextTypes,s=(r=r!=null)?jo(e,o):lr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=qi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Dp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qi.enqueueReplaceState(t,t.state,null)}function gu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},bd(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Tt(s):(s=pt(t)?Lr:et.current,o.context=jo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(hu(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&qi.enqueueReplaceState(o,o.state,null),Si(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Lo(e,t){try{var n="",r=t;do n+=z1(r),r=r.return;while(r);var o=n}catch(s){o=`
39
- Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:o,digest:null}}function ac(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function _u(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fx=typeof WeakMap=="function"?WeakMap:Map;function Xg(e,t,n){n=Cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ri||(Ri=!0,Nu=r),_u(e,t)},n}function Qg(e,t,n){n=Cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){_u(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){_u(e,t),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function zp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ex.bind(null,e,t,n),t.then(e,e))}function Fp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Cn(-1,1),t.tag=2,tr(n,t,1))),n.lanes|=1),e)}var px=Ln.ReactCurrentOwner,dt=!1;function nt(e,t,n,r){t.child=e===null?kg(t,null,n,r):Ro(t,e.child,n,r)}function Wp(e,t,n,r,o){n=n.render;var s=t.ref;return xo(t,o),r=Nd(e,t,n,r,s,o),n=jd(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jn(e,t,o)):(Ee&&n&&hd(t),t.flags|=1,nt(e,t,r,o),t.child)}function Hp(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Dd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Gg(e,t,s,r,o)):(e=si(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:$s,n(l,r)&&e.ref===t.ref)return jn(e,t,o)}return t.flags|=1,e=or(s,r),e.ref=t.ref,e.return=t,t.child=e}function Gg(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if($s(s,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,jn(e,t,o)}return yu(e,t,n,r,o)}function Kg(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(ho,_t),_t|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(ho,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,we(ho,_t),_t|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,we(ho,_t),_t|=r;return nt(e,t,o,n),t.child}function Zg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function yu(e,t,n,r,o){var s=pt(n)?Lr:et.current;return s=jo(t,s),xo(t,o),n=Nd(e,t,n,r,s,o),r=jd(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jn(e,t,o)):(Ee&&r&&hd(t),t.flags|=1,nt(e,t,n,o),t.child)}function Up(e,t,n,r,o){if(pt(n)){var s=!0;xi(t)}else s=!1;if(xo(t,o),t.stateNode===null)ni(e,t),Yg(t,n,r),gu(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,i=t.memoizedProps;l.props=i;var c=l.context,d=n.contextType;typeof d=="object"&&d!==null?d=Tt(d):(d=pt(n)?Lr:et.current,d=jo(t,d));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==r||c!==d)&&Dp(t,l,r,d),Vn=!1;var m=t.memoizedState;l.state=m,Si(t,r,l,o),c=t.memoizedState,i!==r||m!==c||ft.current||Vn?(typeof f=="function"&&(hu(t,n,f,r),c=t.memoizedState),(i=Vn||$p(t,n,i,r,m,c,d))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),l.props=r,l.state=c,l.context=d,r=i):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Sg(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:Mt(t.type,i),l.props=d,p=t.pendingProps,m=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=Tt(c):(c=pt(n)?Lr:et.current,c=jo(t,c));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==p||m!==c)&&Dp(t,l,r,c),Vn=!1,m=t.memoizedState,l.state=m,Si(t,r,l,o);var w=t.memoizedState;i!==p||m!==w||ft.current||Vn?(typeof y=="function"&&(hu(t,n,y,r),w=t.memoizedState),(d=Vn||$p(t,n,d,r,m,w,c)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,w,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,w,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),l.props=r,l.state=w,l.context=c,r=d):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return vu(e,t,n,r,s,o)}function vu(e,t,n,r,o,s){Zg(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Pp(t,n,!1),jn(e,t,s);r=t.stateNode,px.current=t;var i=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ro(t,e.child,null,s),t.child=Ro(t,null,i,s)):nt(e,t,i,s),t.memoizedState=r.state,o&&Pp(t,n,!0),t.child}function Jg(e){var t=e.stateNode;t.pendingContext?jp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jp(e,t.context,!1),kd(e,t.containerInfo)}function Vp(e,t,n,r,o){return Po(),_d(o),t.flags|=256,nt(e,t,n,r),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0};function wu(e){return{baseLanes:e,cachePool:null,transitions:null}}function qg(e,t,n){var r=t.pendingProps,o=je.current,s=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),we(je,o&1),e===null)return pu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=na(l,r,0,null),e=Pr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=wu(n),t.memoizedState=xu,e):Td(t,l));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return mx(e,t,l,r,i,o,n);if(s){s=r.fallback,l=t.mode,o=e.child,i=o.sibling;var c={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=or(o,c),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?s=or(i,s):(s=Pr(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?wu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=xu,r}return s=e.child,e=s.sibling,r=or(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Td(e,t){return t=na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pl(e,t,n,r){return r!==null&&_d(r),Ro(t,e.child,null,n),e=Td(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mx(e,t,n,r,o,s,l){if(n)return t.flags&256?(t.flags&=-257,r=ac(Error(A(422))),Pl(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=na({mode:"visible",children:r.children},o,0,null),s=Pr(s,o,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Ro(t,e.child,null,l),t.child.memoizedState=wu(l),t.memoizedState=xu,s);if(!(t.mode&1))return Pl(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,s=Error(A(419)),r=ac(s,r,void 0),Pl(e,t,l,r)}if(i=(l&e.childLanes)!==0,dt||i){if(r=Ue,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Nn(e,o),Bt(r,e,o,-1))}return $d(),r=ac(Error(A(421))),Pl(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Nx.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,vt=er(o.nextSibling),xt=t,Ee=!0,Dt=null,e!==null&&(Nt[jt++]=bn,Nt[jt++]=kn,Nt[jt++]=Ir,bn=e.id,kn=e.overflow,Ir=t),t=Td(t,r.children),t.flags|=4096,t)}function Yp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),mu(e.return,t,n)}function cc(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function e_(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(nt(e,t,r.children,n),r=je.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yp(e,n,t);else if(e.tag===19)Yp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(we(je,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ei(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),cc(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ei(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}cc(t,!0,n,null,s);break;case"together":cc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ni(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hx(e,t,n){switch(t.tag){case 3:Jg(t),Po();break;case 5:Eg(t);break;case 1:pt(t.type)&&xi(t);break;case 4:kd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;we(ki,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?qg(e,t,n):(we(je,je.current&1),e=jn(e,t,n),e!==null?e.sibling:null);we(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return e_(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),we(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,Kg(e,t,n)}return jn(e,t,n)}var t_,bu,n_,r_;t_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};bu=function(){};n_=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Nr(ln.current);var s=null;switch(n){case"input":o=Uc(e,o),r=Uc(e,r),s=[];break;case"select":o=Re({},o,{value:void 0}),r=Re({},r,{value:void 0}),s=[];break;case"textarea":o=Xc(e,o),r=Xc(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=yi)}Gc(n,r);var l;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var i=o[d];for(l in i)i.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Rs.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(i=o?.[d],r.hasOwnProperty(d)&&c!==i&&(c!=null||i!=null))if(d==="style")if(i){for(l in i)!i.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&i[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(s||(s=[]),s.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,i=i?i.__html:void 0,c!=null&&i!==c&&(s=s||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Rs.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&ke("scroll",e),s||i===c||(s=[])):(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};r_=function(e,t,n,r){n!==r&&(t.flags|=4)};function ls(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gx(e,t,n){var r=t.pendingProps;switch(gd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return pt(t.type)&&vi(),Je(t),null;case 3:return r=t.stateNode,To(),Ce(ft),Ce(et),Sd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Nl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(Ru(Dt),Dt=null))),bu(e,t),Je(t),null;case 5:Cd(t);var o=Nr(Ws.current);if(n=t.type,e!==null&&t.stateNode!=null)n_(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Je(t),null}if(e=Nr(ln.current),Nl(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[nn]=t,r[Fs]=s,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(o=0;o<vs.length;o++)ke(vs[o],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":tp(r,s),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ke("invalid",r);break;case"textarea":rp(r,s),ke("invalid",r)}Gc(n,s),o=null;for(var l in s)if(s.hasOwnProperty(l)){var i=s[l];l==="children"?typeof i=="string"?r.textContent!==i&&(s.suppressHydrationWarning!==!0&&El(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(s.suppressHydrationWarning!==!0&&El(r.textContent,i,e),o=["children",""+i]):Rs.hasOwnProperty(l)&&i!=null&&l==="onScroll"&&ke("scroll",r)}switch(n){case"input":yl(r),np(r,s,!0);break;case"textarea":yl(r),op(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=yi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Th(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[nn]=t,e[Fs]=r,t_(e,t,!1,!1),t.stateNode=e;e:{switch(l=Kc(n,r),n){case"dialog":ke("cancel",e),ke("close",e),o=r;break;case"iframe":case"object":case"embed":ke("load",e),o=r;break;case"video":case"audio":for(o=0;o<vs.length;o++)ke(vs[o],e);o=r;break;case"source":ke("error",e),o=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),o=r;break;case"details":ke("toggle",e),o=r;break;case"input":tp(e,r),o=Uc(e,r),ke("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Re({},r,{value:void 0}),ke("invalid",e);break;case"textarea":rp(e,r),o=Xc(e,r),ke("invalid",e);break;default:o=r}Gc(n,o),i=o;for(s in i)if(i.hasOwnProperty(s)){var c=i[s];s==="style"?Ah(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Lh(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Ts(e,c):typeof c=="number"&&Ts(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Rs.hasOwnProperty(s)?c!=null&&s==="onScroll"&&ke("scroll",e):c!=null&&td(e,s,c,l))}switch(n){case"input":yl(e),np(e,r,!1);break;case"textarea":yl(e),op(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?go(e,!!r.multiple,s,!1):r.defaultValue!=null&&go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=yi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Je(t),null;case 6:if(e&&t.stateNode!=null)r_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=Nr(Ws.current),Nr(ln.current),Nl(t)){if(r=t.stateNode,n=t.memoizedProps,r[nn]=t,(s=r.nodeValue!==n)&&(e=xt,e!==null))switch(e.tag){case 3:El(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&El(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nn]=t,t.stateNode=r}return Je(t),null;case 13:if(Ce(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&vt!==null&&t.mode&1&&!(t.flags&128))wg(),Po(),t.flags|=98560,s=!1;else if(s=Nl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(A(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(A(317));s[nn]=t}else Po(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Je(t),s=!1}else Dt!==null&&(Ru(Dt),Dt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||je.current&1?Fe===0&&(Fe=3):$d())),t.updateQueue!==null&&(t.flags|=4),Je(t),null);case 4:return To(),bu(e,t),e===null&&Ds(t.stateNode.containerInfo),Je(t),null;case 10:return xd(t.type._context),Je(t),null;case 17:return pt(t.type)&&vi(),Je(t),null;case 19:if(Ce(je),s=t.memoizedState,s===null)return Je(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)ls(s,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ei(e),l!==null){for(t.flags|=128,ls(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(je,je.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ie()>Io&&(t.flags|=128,r=!0,ls(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ei(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ls(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!Ee)return Je(t),null}else 2*Ie()-s.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,ls(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ie(),t.sibling=null,n=je.current,we(je,r?n&1|2:n&1),t):(Je(t),null);case 22:case 23:return Md(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_t&1073741824&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function _x(e,t){switch(gd(t),t.tag){case 1:return pt(t.type)&&vi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return To(),Ce(ft),Ce(et),Sd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cd(t),null;case 13:if(Ce(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Po()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(je),null;case 4:return To(),null;case 10:return xd(t.type._context),null;case 22:case 23:return Md(),null;case 24:return null;default:return null}}var Rl=!1,qe=!1,yx=typeof WeakSet=="function"?WeakSet:Set,F=null;function mo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function ku(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Xp=!1;function vx(e,t){if(lu=hi,e=ag(),md(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,i=-1,c=-1,d=0,f=0,p=e,m=null;t:for(;;){for(var y;p!==n||o!==0&&p.nodeType!==3||(i=l+o),p!==s||r!==0&&p.nodeType!==3||(c=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++d===o&&(i=l),m===s&&++f===r&&(c=l),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=i===-1||c===-1?null:{start:i,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},hi=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var _=w.memoizedProps,k=w.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?_:Mt(t.type,_),k);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){Le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return w=Xp,Xp=!1,w}function Es(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&ku(t,n,s)}o=o.next}while(o!==r)}}function ea(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function o_(e){var t=e.alternate;t!==null&&(e.alternate=null,o_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nn],delete t[Fs],delete t[uu],delete t[tx],delete t[nx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function s_(e){return e.tag===5||e.tag===3||e.tag===4}function Qp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||s_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Su(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yi));else if(r!==4&&(e=e.child,e!==null))for(Su(e,t,n),e=e.sibling;e!==null;)Su(e,t,n),e=e.sibling}function Eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}var Ye=null,$t=!1;function Dn(e,t,n){for(n=n.child;n!==null;)l_(e,t,n),n=n.sibling}function l_(e,t,n){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(Yi,n)}catch{}switch(n.tag){case 5:qe||mo(n,t);case 6:var r=Ye,o=$t;Ye=null,Dn(e,t,n),Ye=r,$t=o,Ye!==null&&($t?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&($t?(e=Ye,n=n.stateNode,e.nodeType===8?nc(e.parentNode,n):e.nodeType===1&&nc(e,n),Os(e)):nc(Ye,n.stateNode));break;case 4:r=Ye,o=$t,Ye=n.stateNode.containerInfo,$t=!0,Dn(e,t,n),Ye=r,$t=o;break;case 0:case 11:case 14:case 15:if(!qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&ku(n,t,l),o=o.next}while(o!==r)}Dn(e,t,n);break;case 1:if(!qe&&(mo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Le(n,t,i)}Dn(e,t,n);break;case 21:Dn(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,Dn(e,t,n),qe=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function Gp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yx),t.forEach(function(r){var o=jx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,l=t,i=l;e:for(;i!==null;){switch(i.tag){case 5:Ye=i.stateNode,$t=!1;break e;case 3:Ye=i.stateNode.containerInfo,$t=!0;break e;case 4:Ye=i.stateNode.containerInfo,$t=!0;break e}i=i.return}if(Ye===null)throw Error(A(160));l_(s,l,o),Ye=null,$t=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Le(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)i_(t,e),t=t.sibling}function i_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ot(t,e),qt(e),r&4){try{Es(3,e,e.return),ea(3,e)}catch(_){Le(e,e.return,_)}try{Es(5,e,e.return)}catch(_){Le(e,e.return,_)}}break;case 1:Ot(t,e),qt(e),r&512&&n!==null&&mo(n,n.return);break;case 5:if(Ot(t,e),qt(e),r&512&&n!==null&&mo(n,n.return),e.flags&32){var o=e.stateNode;try{Ts(o,"")}catch(_){Le(e,e.return,_)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,i=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{i==="input"&&s.type==="radio"&&s.name!=null&&Ph(o,s),Kc(i,l);var d=Kc(i,s);for(l=0;l<c.length;l+=2){var f=c[l],p=c[l+1];f==="style"?Ah(o,p):f==="dangerouslySetInnerHTML"?Lh(o,p):f==="children"?Ts(o,p):td(o,f,p,d)}switch(i){case"input":Vc(o,s);break;case"textarea":Rh(o,s);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?go(o,!!s.multiple,y,!1):m!==!!s.multiple&&(s.defaultValue!=null?go(o,!!s.multiple,s.defaultValue,!0):go(o,!!s.multiple,s.multiple?[]:"",!1))}o[Fs]=s}catch(_){Le(e,e.return,_)}}break;case 6:if(Ot(t,e),qt(e),r&4){if(e.stateNode===null)throw Error(A(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(_){Le(e,e.return,_)}}break;case 3:if(Ot(t,e),qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Os(t.containerInfo)}catch(_){Le(e,e.return,_)}break;case 4:Ot(t,e),qt(e);break;case 13:Ot(t,e),qt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Ad=Ie())),r&4&&Gp(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(d=qe)||f,Ot(t,e),qe=d):Ot(t,e),qt(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!f&&e.mode&1)for(F=e,f=e.child;f!==null;){for(p=F=f;F!==null;){switch(m=F,y=m.child,m.tag){case 0:case 11:case 14:case 15:Es(4,m,m.return);break;case 1:mo(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(_){Le(r,n,_)}}break;case 5:mo(m,m.return);break;case 22:if(m.memoizedState!==null){Zp(p);continue}}y!==null?(y.return=m,F=y):Zp(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,d?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(i=p.stateNode,c=p.memoizedProps.style,l=c!=null&&c.hasOwnProperty("display")?c.display:null,i.style.display=Ih("display",l))}catch(_){Le(e,e.return,_)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(_){Le(e,e.return,_)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ot(t,e),qt(e),r&4&&Gp(e);break;case 21:break;default:Ot(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(s_(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ts(o,""),r.flags&=-33);var s=Qp(e);Eu(e,s,o);break;case 3:case 4:var l=r.stateNode.containerInfo,i=Qp(e);Su(e,i,l);break;default:throw Error(A(161))}}catch(c){Le(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xx(e,t,n){F=e,a_(e)}function a_(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,s=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Rl;if(!l){var i=o.alternate,c=i!==null&&i.memoizedState!==null||qe;i=Rl;var d=qe;if(Rl=l,(qe=c)&&!d)for(F=o;F!==null;)l=F,c=l.child,l.tag===22&&l.memoizedState!==null?Jp(o):c!==null?(c.return=l,F=c):Jp(o);for(;s!==null;)F=s,a_(s),s=s.sibling;F=o,Rl=i,qe=d}Kp(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,F=s):Kp(e)}}function Kp(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||ea(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Mt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Ap(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ap(t,l,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var f=d.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Os(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}qe||t.flags&512&&Cu(t)}catch(m){Le(t,t.return,m)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Zp(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Jp(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ea(4,t)}catch(c){Le(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Le(t,o,c)}}var s=t.return;try{Cu(t)}catch(c){Le(t,s,c)}break;case 5:var l=t.return;try{Cu(t)}catch(c){Le(t,l,c)}}}catch(c){Le(t,t.return,c)}if(t===e){F=null;break}var i=t.sibling;if(i!==null){i.return=t.return,F=i;break}F=t.return}}var wx=Math.ceil,Pi=Ln.ReactCurrentDispatcher,Ld=Ln.ReactCurrentOwner,Rt=Ln.ReactCurrentBatchConfig,de=0,Ue=null,$e=null,Xe=0,_t=0,ho=ur(0),Fe=0,Ys=null,Or=0,ta=0,Id=0,Ns=null,ct=null,Ad=0,Io=1/0,xn=null,Ri=!1,Nu=null,nr=null,Tl=!1,Gn=null,Ti=0,js=0,ju=null,ri=-1,oi=0;function rt(){return de&6?Ie():ri!==-1?ri:ri=Ie()}function rr(e){return e.mode&1?de&2&&Xe!==0?Xe&-Xe:ox.transition!==null?(oi===0&&(oi=Yh()),oi):(e=_e,e!==0||(e=window.event,e=e===void 0?16:qh(e.type)),e):1}function Bt(e,t,n,r){if(50<js)throw js=0,ju=null,Error(A(185));qs(e,n,r),(!(de&2)||e!==Ue)&&(e===Ue&&(!(de&2)&&(ta|=n),Fe===4&&Xn(e,Xe)),mt(e,r),n===1&&de===0&&!(t.mode&1)&&(Io=Ie()+500,Zi&&dr()))}function mt(e,t){var n=e.callbackNode;ov(e,t);var r=mi(e,e===Ue?Xe:0);if(r===0)n!==null&&ip(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ip(n),t===1)e.tag===0?rx(qp.bind(null,e)):yg(qp.bind(null,e)),qv(function(){!(de&6)&&dr()}),n=null;else{switch(Xh(r)){case 1:n=ld;break;case 4:n=Uh;break;case 16:n=pi;break;case 536870912:n=Vh;break;default:n=pi}n=g_(n,c_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function c_(e,t){if(ri=-1,oi=0,de&6)throw Error(A(327));var n=e.callbackNode;if(wo()&&e.callbackNode!==n)return null;var r=mi(e,e===Ue?Xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Li(e,r);else{t=r;var o=de;de|=2;var s=d_();(Ue!==e||Xe!==t)&&(xn=null,Io=Ie()+500,jr(e,t));do try{Cx();break}catch(i){u_(e,i)}while(!0);vd(),Pi.current=s,de=o,$e!==null?t=0:(Ue=null,Xe=0,t=Fe)}if(t!==0){if(t===2&&(o=tu(e),o!==0&&(r=o,t=Pu(e,o))),t===1)throw n=Ys,jr(e,0),Xn(e,r),mt(e,Ie()),n;if(t===6)Xn(e,r);else{if(o=e.current.alternate,!(r&30)&&!bx(o)&&(t=Li(e,r),t===2&&(s=tu(e),s!==0&&(r=s,t=Pu(e,s))),t===1))throw n=Ys,jr(e,0),Xn(e,r),mt(e,Ie()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:kr(e,ct,xn);break;case 3:if(Xn(e,r),(r&130023424)===r&&(t=Ad+500-Ie(),10<t)){if(mi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=cu(kr.bind(null,e,ct,xn),t);break}kr(e,ct,xn);break;case 4:if(Xn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Ft(r);s=1<<l,l=t[l],l>o&&(o=l),r&=~s}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wx(r/1960))-r,10<r){e.timeoutHandle=cu(kr.bind(null,e,ct,xn),r);break}kr(e,ct,xn);break;case 5:kr(e,ct,xn);break;default:throw Error(A(329))}}}return mt(e,Ie()),e.callbackNode===n?c_.bind(null,e):null}function Pu(e,t){var n=Ns;return e.current.memoizedState.isDehydrated&&(jr(e,t).flags|=256),e=Li(e,t),e!==2&&(t=ct,ct=n,t!==null&&Ru(t)),e}function Ru(e){ct===null?ct=e:ct.push.apply(ct,e)}function bx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Ht(s(),o))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 Xn(e,t){for(t&=~Id,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function qp(e){if(de&6)throw Error(A(327));wo();var t=mi(e,0);if(!(t&1))return mt(e,Ie()),null;var n=Li(e,t);if(e.tag!==0&&n===2){var r=tu(e);r!==0&&(t=r,n=Pu(e,r))}if(n===1)throw n=Ys,jr(e,0),Xn(e,t),mt(e,Ie()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kr(e,ct,xn),mt(e,Ie()),null}function Od(e,t){var n=de;de|=1;try{return e(t)}finally{de=n,de===0&&(Io=Ie()+500,Zi&&dr())}}function Mr(e){Gn!==null&&Gn.tag===0&&!(de&6)&&wo();var t=de;de|=1;var n=Rt.transition,r=_e;try{if(Rt.transition=null,_e=1,e)return e()}finally{_e=r,Rt.transition=n,de=t,!(de&6)&&dr()}}function Md(){_t=ho.current,Ce(ho)}function jr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Jv(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(gd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vi();break;case 3:To(),Ce(ft),Ce(et),Sd();break;case 5:Cd(r);break;case 4:To();break;case 13:Ce(je);break;case 19:Ce(je);break;case 10:xd(r.type._context);break;case 22:case 23:Md()}n=n.return}if(Ue=e,$e=e=or(e.current,null),Xe=_t=t,Fe=0,Ys=null,Id=ta=Or=0,ct=Ns=null,Er!==null){for(t=0;t<Er.length;t++)if(n=Er[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=o,r.next=l}n.pending=r}Er=null}return e}function u_(e,t){do{var n=$e;try{if(vd(),ei.current=ji,Ni){for(var r=Pe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ni=!1}if(Ar=0,He=ze=Pe=null,Ss=!1,Hs=0,Ld.current=null,n===null||n.return===null){Fe=1,Ys=t,$e=null;break}e:{var s=e,l=n.return,i=n,c=t;if(t=Xe,i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,f=i,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=Fp(l);if(y!==null){y.flags&=-257,Bp(y,l,i,s,t),y.mode&1&&zp(s,d,t),t=y,c=d;var w=t.updateQueue;if(w===null){var _=new Set;_.add(c),t.updateQueue=_}else w.add(c);break e}else{if(!(t&1)){zp(s,d,t),$d();break e}c=Error(A(426))}}else if(Ee&&i.mode&1){var k=Fp(l);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Bp(k,l,i,s,t),_d(Lo(c,i));break e}}s=c=Lo(c,i),Fe!==4&&(Fe=2),Ns===null?Ns=[s]:Ns.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Xg(s,c,t);Ip(s,h);break e;case 1:i=c;var g=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(nr===null||!nr.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=Qg(s,i,t);Ip(s,S);break e}}s=s.return}while(s!==null)}p_(n)}catch(N){t=N,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function d_(){var e=Pi.current;return Pi.current=ji,e===null?ji:e}function $d(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Ue===null||!(Or&268435455)&&!(ta&268435455)||Xn(Ue,Xe)}function Li(e,t){var n=de;de|=2;var r=d_();(Ue!==e||Xe!==t)&&(xn=null,jr(e,t));do try{kx();break}catch(o){u_(e,o)}while(!0);if(vd(),de=n,Pi.current=r,$e!==null)throw Error(A(261));return Ue=null,Xe=0,Fe}function kx(){for(;$e!==null;)f_($e)}function Cx(){for(;$e!==null&&!G1();)f_($e)}function f_(e){var t=h_(e.alternate,e,_t);e.memoizedProps=e.pendingProps,t===null?p_(e):$e=t,Ld.current=null}function p_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_x(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,$e=null;return}}else if(n=gx(n,t,_t),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Fe===0&&(Fe=5)}function kr(e,t,n){var r=_e,o=Rt.transition;try{Rt.transition=null,_e=1,Sx(e,t,n,r)}finally{Rt.transition=o,_e=r}return null}function Sx(e,t,n,r){do wo();while(Gn!==null);if(de&6)throw Error(A(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(sv(e,s),e===Ue&&($e=Ue=null,Xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Tl||(Tl=!0,g_(pi,function(){return wo(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Rt.transition,Rt.transition=null;var l=_e;_e=1;var i=de;de|=4,Ld.current=null,vx(e,n),i_(n,e),Vv(iu),hi=!!lu,iu=lu=null,e.current=n,xx(n),K1(),de=i,_e=l,Rt.transition=s}else e.current=n;if(Tl&&(Tl=!1,Gn=e,Ti=o),s=e.pendingLanes,s===0&&(nr=null),q1(n.stateNode),mt(e,Ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ri)throw Ri=!1,e=Nu,Nu=null,e;return Ti&1&&e.tag!==0&&wo(),s=e.pendingLanes,s&1?e===ju?js++:(js=0,ju=e):js=0,dr(),null}function wo(){if(Gn!==null){var e=Xh(Ti),t=Rt.transition,n=_e;try{if(Rt.transition=null,_e=16>e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,Ti=0,de&6)throw Error(A(331));var o=de;for(de|=4,F=e.current;F!==null;){var s=F,l=s.child;if(F.flags&16){var i=s.deletions;if(i!==null){for(var c=0;c<i.length;c++){var d=i[c];for(F=d;F!==null;){var f=F;switch(f.tag){case 0:case 11:case 15:Es(8,f,s)}var p=f.child;if(p!==null)p.return=f,F=p;else for(;F!==null;){f=F;var m=f.sibling,y=f.return;if(o_(f),f===d){F=null;break}if(m!==null){m.return=y,F=m;break}F=y}}}var w=s.alternate;if(w!==null){var _=w.child;if(_!==null){w.child=null;do{var k=_.sibling;_.sibling=null,_=k}while(_!==null)}}F=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,F=l;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Es(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,F=h;break e}F=s.return}}var g=e.current;for(F=g;F!==null;){l=F;var v=l.child;if(l.subtreeFlags&2064&&v!==null)v.return=l,F=v;else e:for(l=g;F!==null;){if(i=F,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:ea(9,i)}}catch(N){Le(i,i.return,N)}if(i===l){F=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,F=S;break e}F=i.return}}if(de=o,dr(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(Yi,e)}catch{}r=!0}return r}finally{_e=n,Rt.transition=t}}return!1}function em(e,t,n){t=Lo(n,t),t=Xg(e,t,1),e=tr(e,t,1),t=rt(),e!==null&&(qs(e,1,t),mt(e,t))}function Le(e,t,n){if(e.tag===3)em(e,e,n);else for(;t!==null;){if(t.tag===3){em(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nr===null||!nr.has(r))){e=Lo(n,e),e=Qg(t,e,1),t=tr(t,e,1),e=rt(),t!==null&&(qs(t,1,e),mt(t,e));break}}t=t.return}}function Ex(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(Xe&n)===n&&(Fe===4||Fe===3&&(Xe&130023424)===Xe&&500>Ie()-Ad?jr(e,0):Id|=n),mt(e,t)}function m_(e,t){t===0&&(e.mode&1?(t=wl,wl<<=1,!(wl&130023424)&&(wl=4194304)):t=1);var n=rt();e=Nn(e,t),e!==null&&(qs(e,t,n),mt(e,n))}function Nx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),m_(e,n)}function jx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),m_(e,n)}var h_;h_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,hx(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Ee&&t.flags&1048576&&vg(t,bi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ni(e,t),e=t.pendingProps;var o=jo(t,et.current);xo(t,n),o=Nd(null,t,r,e,o,n);var s=jd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pt(r)?(s=!0,xi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bd(t),o.updater=qi,t.stateNode=o,o._reactInternals=t,gu(t,r,e,n),t=vu(null,t,r,!0,s,n)):(t.tag=0,Ee&&s&&hd(t),nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ni(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Rx(r),e=Mt(r,e),o){case 0:t=yu(null,t,r,e,n);break e;case 1:t=Up(null,t,r,e,n);break e;case 11:t=Wp(null,t,r,e,n);break e;case 14:t=Hp(null,t,r,Mt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),yu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Up(e,t,r,o,n);case 3:e:{if(Jg(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Sg(e,t),Si(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Lo(Error(A(423)),t),t=Vp(e,t,r,n,o);break e}else if(r!==o){o=Lo(Error(A(424)),t),t=Vp(e,t,r,n,o);break e}else for(vt=er(t.stateNode.containerInfo.firstChild),xt=t,Ee=!0,Dt=null,n=kg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Po(),r===o){t=jn(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return Eg(t),e===null&&pu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,au(r,o)?l=null:s!==null&&au(r,s)&&(t.flags|=32),Zg(e,t),nt(e,t,l,n),t.child;case 6:return e===null&&pu(t),null;case 13:return qg(e,t,n);case 4:return kd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ro(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Wp(e,t,r,o,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,l=o.value,we(ki,r._currentValue),r._currentValue=l,s!==null)if(Ht(s.value,l)){if(s.children===o.children&&!ft.current){t=jn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){l=s.child;for(var c=i.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Cn(-1,n&-n),c.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),mu(s.return,n,t),i.lanes|=n;break}c=c.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(A(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),mu(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,xo(t,n),o=Tt(o),r=r(o),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,o=Mt(r,t.pendingProps),o=Mt(r.type,o),Hp(e,t,r,o,n);case 15:return Gg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),ni(e,t),t.tag=1,pt(r)?(e=!0,xi(t)):e=!1,xo(t,n),Yg(t,r,o),gu(t,r,o,n),vu(null,t,r,!0,e,n);case 19:return e_(e,t,n);case 22:return Kg(e,t,n)}throw Error(A(156,t.tag))};function g_(e,t){return Hh(e,t)}function Px(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,r){return new Px(e,t,n,r)}function Dd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rx(e){if(typeof e=="function")return Dd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rd)return 11;if(e===od)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function si(e,t,n,r,o,s){var l=2;if(r=e,typeof e=="function")Dd(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case oo:return Pr(n.children,o,s,t);case nd:l=8,o|=8;break;case Fc:return e=Pt(12,n,t,o|2),e.elementType=Fc,e.lanes=s,e;case Bc:return e=Pt(13,n,t,o),e.elementType=Bc,e.lanes=s,e;case Wc:return e=Pt(19,n,t,o),e.elementType=Wc,e.lanes=s,e;case Eh:return na(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ch:l=10;break e;case Sh:l=9;break e;case rd:l=11;break e;case od:l=14;break e;case Un:l=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Pt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Pr(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function na(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=Eh,e.lanes=n,e.stateNode={isHidden:!1},e}function uc(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function dc(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Va(0),this.expirationTimes=Va(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zd(e,t,n,r,o,s,l,i,c){return e=new Tx(e,t,n,i,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bd(s),e}function Lx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ro,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function __(e){if(!e)return lr;e=e._reactInternals;e:{if(Fr(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(pt(n))return _g(e,n,t)}return t}function y_(e,t,n,r,o,s,l,i,c){return e=zd(n,r,!0,e,o,s,l,i,c),e.context=__(null),n=e.current,r=rt(),o=rr(n),s=Cn(r,o),s.callback=t??null,tr(n,s,o),e.current.lanes=o,qs(e,o,r),mt(e,r),e}function ra(e,t,n,r){var o=t.current,s=rt(),l=rr(o);return n=__(n),t.context===null?t.context=n:t.pendingContext=n,t=Cn(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tr(o,t,l),e!==null&&(Bt(e,o,l,s),ql(e,o,l)),l}function Ii(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fd(e,t){tm(e,t),(e=e.alternate)&&tm(e,t)}function Ix(){return null}var v_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bd(e){this._internalRoot=e}oa.prototype.render=Bd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));ra(e,t,null,null)};oa.prototype.unmount=Bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mr(function(){ra(null,e,null,null)}),t[En]=null}};function oa(e){this._internalRoot=e}oa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yn.length&&t!==0&&t<Yn[n].priority;n++);Yn.splice(n,0,e),n===0&&Jh(e)}};function Wd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function sa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nm(){}function Ax(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var d=Ii(l);s.call(d)}}var l=y_(t,r,e,0,null,!1,!1,"",nm);return e._reactRootContainer=l,e[En]=l.current,Ds(e.nodeType===8?e.parentNode:e),Mr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var d=Ii(c);i.call(d)}}var c=zd(e,0,!1,null,null,!1,!1,"",nm);return e._reactRootContainer=c,e[En]=c.current,Ds(e.nodeType===8?e.parentNode:e),Mr(function(){ra(t,c,n,r)}),c}function la(e,t,n,r,o){var s=n._reactRootContainer;if(s){var l=s;if(typeof o=="function"){var i=o;o=function(){var c=Ii(l);i.call(c)}}ra(t,l,e,o)}else l=Ax(n,t,e,o,r);return Ii(l)}Qh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ys(t.pendingLanes);n!==0&&(id(t,n|1),mt(t,Ie()),!(de&6)&&(Io=Ie()+500,dr()))}break;case 13:Mr(function(){var r=Nn(e,1);if(r!==null){var o=rt();Bt(r,e,1,o)}}),Fd(e,1)}};ad=function(e){if(e.tag===13){var t=Nn(e,134217728);if(t!==null){var n=rt();Bt(t,e,134217728,n)}Fd(e,134217728)}};Gh=function(e){if(e.tag===13){var t=rr(e),n=Nn(e,t);if(n!==null){var r=rt();Bt(n,e,t,r)}Fd(e,t)}};Kh=function(){return _e};Zh=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}};Jc=function(e,t,n){switch(t){case"input":if(Vc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ki(r);if(!o)throw Error(A(90));jh(r),Vc(r,o)}}}break;case"textarea":Rh(e,n);break;case"select":t=n.value,t!=null&&go(e,!!n.multiple,t,!1)}};$h=Od;Dh=Mr;var Ox={usingClientEntryPoint:!1,Events:[tl,ao,Ki,Oh,Mh,Od]},is={findFiberByHostInstance:Sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Mx={bundleType:is.bundleType,version:is.version,rendererPackageName:is.rendererPackageName,rendererConfig:is.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Bh(e),e===null?null:e.stateNode},findFiberByHostInstance:is.findFiberByHostInstance||Ix,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ll.isDisabled&&Ll.supportsFiber)try{Yi=Ll.inject(Mx),sn=Ll}catch{}}kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ox;kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wd(t))throw Error(A(200));return Lx(e,t,null,n)};kt.createRoot=function(e,t){if(!Wd(e))throw Error(A(299));var n=!1,r="",o=v_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=zd(e,1,!1,null,null,n,!1,r,o),e[En]=t.current,Ds(e.nodeType===8?e.parentNode:e),new Bd(t)};kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Bh(t),e=e===null?null:e.stateNode,e};kt.flushSync=function(e){return Mr(e)};kt.hydrate=function(e,t,n){if(!sa(t))throw Error(A(200));return la(null,e,t,!0,n)};kt.hydrateRoot=function(e,t,n){if(!Wd(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",l=v_;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=y_(t,null,e,1,n??null,o,!1,s,l),e[En]=t.current,Ds(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new oa(t)};kt.render=function(e,t,n){if(!sa(t))throw Error(A(200));return la(null,e,t,!1,n)};kt.unmountComponentAtNode=function(e){if(!sa(e))throw Error(A(40));return e._reactRootContainer?(Mr(function(){la(null,null,e,!1,function(){e._reactRootContainer=null,e[En]=null})}),!0):!1};kt.unstable_batchedUpdates=Od;kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!sa(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return la(e,t,n,!1,r)};kt.version="18.3.1-next-f1338f8080-20240426";function x_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x_)}catch(e){console.error(e)}}x_(),xh.exports=kt;var Bo=xh.exports;const $x=ah(Bo);var rm=Bo;Dc.createRoot=rm.createRoot,Dc.hydrateRoot=rm.hydrateRoot;/**
41
- * @remix-run/router v1.23.2
42
- *
43
- * Copyright (c) Remix Software Inc.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE.md file in the root directory of this source tree.
47
- *
48
- * @license MIT
49
- */function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(this,arguments)}var Kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Kn||(Kn={}));const om="popstate";function Dx(e){e===void 0&&(e={});function t(o,s){let{pathname:l="/",search:i="",hash:c=""}=Br(o.location.hash.substr(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),Tu("",{pathname:l,search:i,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){let l=o.document.querySelector("base"),i="";if(l&&l.getAttribute("href")){let c=o.location.href,d=c.indexOf("#");i=d===-1?c:c.slice(0,d)}return i+"#"+(typeof s=="string"?s:w_(s))}function r(o,s){ia(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return Fx(t,n,r,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ia(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zx(){return Math.random().toString(36).substr(2,8)}function sm(e,t){return{usr:e.state,key:e.key,idx:t}}function Tu(e,t,n,r){return n===void 0&&(n=null),Xs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Br(t):t,{state:n,key:t&&t.key||r||zx()})}function w_(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Br(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Fx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,i=Kn.Pop,c=null,d=f();d==null&&(d=0,l.replaceState(Xs({},l.state,{idx:d}),""));function f(){return(l.state||{idx:null}).idx}function p(){i=Kn.Pop;let k=f(),h=k==null?null:k-d;d=k,c&&c({action:i,location:_.location,delta:h})}function m(k,h){i=Kn.Push;let g=Tu(_.location,k,h);n&&n(g,k),d=f()+1;let v=sm(g,d),S=_.createHref(g);try{l.pushState(v,"",S)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(S)}s&&c&&c({action:i,location:_.location,delta:1})}function y(k,h){i=Kn.Replace;let g=Tu(_.location,k,h);n&&n(g,k),d=f();let v=sm(g,d),S=_.createHref(g);l.replaceState(v,"",S),s&&c&&c({action:i,location:_.location,delta:0})}function w(k){let h=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof k=="string"?k:w_(k);return g=g.replace(/ $/,"%20"),Be(h,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,h)}let _={get action(){return i},get location(){return e(o,l)},listen(k){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(om,p),c=k,()=>{o.removeEventListener(om,p),c=null}},createHref(k){return t(o,k)},createURL:w,encodeLocation(k){let h=w(k);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:y,go(k){return l.go(k)}};return _}var lm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lm||(lm={}));function Bx(e,t,n){return n===void 0&&(n="/"),Wx(e,t,n)}function Wx(e,t,n,r){let o=typeof t=="string"?Br(t):t,s=C_(o.pathname||"/",n);if(s==null)return null;let l=b_(e);Hx(l);let i=null;for(let c=0;i==null&&c<l.length;++c){let d=tw(s);i=Jx(l[c],d)}return i}function b_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,l,i)=>{let c={relativePath:i===void 0?s.path||"":i,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};c.relativePath.startsWith("/")&&(Be(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Rr([r,c.relativePath]),f=n.concat(c);s.children&&s.children.length>0&&(Be(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),b_(s.children,t,f,d)),!(s.path==null&&!s.index)&&t.push({path:d,score:Kx(d,s.index),routesMeta:f})};return e.forEach((s,l)=>{var i;if(s.path===""||!((i=s.path)!=null&&i.includes("?")))o(s,l);else for(let c of k_(s.path))o(s,l,c)}),t}function k_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=k_(r.join("/")),i=[];return i.push(...l.map(c=>c===""?s:[s,c].join("/"))),o&&i.push(...l),i.map(c=>e.startsWith("/")&&c===""?"/":c)}function Hx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Zx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ux=/^:[\w-]+$/,Vx=3,Yx=2,Xx=1,Qx=10,Gx=-2,im=e=>e==="*";function Kx(e,t){let n=e.split("/"),r=n.length;return n.some(im)&&(r+=Gx),t&&(r+=Yx),n.filter(o=>!im(o)).reduce((o,s)=>o+(Ux.test(s)?Vx:s===""?Xx:Qx),r)}function Zx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Jx(e,t,n){let{routesMeta:r}=e,o={},s="/",l=[];for(let i=0;i<r.length;++i){let c=r[i],d=i===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",p=qx({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),m=c.route;if(!p)return null;Object.assign(o,p.params),l.push({params:o,pathname:Rr([s,p.pathname]),pathnameBase:aw(Rr([s,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(s=Rr([s,p.pathnameBase]))}return l}function qx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ew(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),i=o.slice(1);return{params:r.reduce((d,f,p)=>{let{paramName:m,isOptional:y}=f;if(m==="*"){let _=i[p]||"";l=s.slice(0,s.length-_.length).replace(/(.)\/+$/,"$1")}const w=i[p];return y&&!w?d[m]=void 0:d[m]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function ew(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ia(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,c)=>(r.push({paramName:i,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function tw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ia(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function C_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const nw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rw=e=>nw.test(e);function ow(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Br(e):e,s;if(n)if(rw(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),ia(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?s=am(n.substring(1),"/"):s=am(n,t)}else s=t;return{pathname:s,search:cw(r),hash:uw(o)}}function am(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function fc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function sw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lw(e,t){let n=sw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function iw(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Br(e):(o=Xs({},e),Be(!o.pathname||!o.pathname.includes("?"),fc("?","pathname","search",o)),Be(!o.pathname||!o.pathname.includes("#"),fc("#","pathname","hash",o)),Be(!o.search||!o.search.includes("#"),fc("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,i;if(l==null)i=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}i=p>=0?t[p]:"/"}let c=ow(o,i),d=l&&l!=="/"&&l.endsWith("/"),f=(s||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Rr=e=>e.join("/").replace(/\/\/+/g,"/"),aw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const S_=["post","put","patch","delete"];new Set(S_);const fw=["get",...S_];new Set(fw);/**
50
- * React Router v6.30.3
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qs.apply(this,arguments)}const Hd=u.createContext(null),pw=u.createContext(null),aa=u.createContext(null),ca=u.createContext(null),fr=u.createContext({outlet:null,matches:[],isDataRoute:!1}),E_=u.createContext(null);function ua(){return u.useContext(ca)!=null}function Ud(){return ua()||Be(!1),u.useContext(ca).location}function N_(e){u.useContext(aa).static||u.useLayoutEffect(e)}function da(){let{isDataRoute:e}=u.useContext(fr);return e?jw():mw()}function mw(){ua()||Be(!1);let e=u.useContext(Hd),{basename:t,future:n,navigator:r}=u.useContext(aa),{matches:o}=u.useContext(fr),{pathname:s}=Ud(),l=JSON.stringify(lw(o,n.v7_relativeSplatPath)),i=u.useRef(!1);return N_(()=>{i.current=!0}),u.useCallback(function(d,f){if(f===void 0&&(f={}),!i.current)return;if(typeof d=="number"){r.go(d);return}let p=iw(d,JSON.parse(l),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Rr([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,l,s,e])}const hw=u.createContext(null);function gw(e){let t=u.useContext(fr).outlet;return t&&u.createElement(hw.Provider,{value:e},t)}function j_(){let{matches:e}=u.useContext(fr),t=e[e.length-1];return t?t.params:{}}function _w(e,t){return yw(e,t)}function yw(e,t,n,r){ua()||Be(!1);let{navigator:o}=u.useContext(aa),{matches:s}=u.useContext(fr),l=s[s.length-1],i=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=Ud(),f;if(t){var p;let k=typeof t=="string"?Br(t):t;c==="/"||(p=k.pathname)!=null&&p.startsWith(c)||Be(!1),f=k}else f=d;let m=f.pathname||"/",y=m;if(c!=="/"){let k=c.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let w=Bx(e,{pathname:y}),_=kw(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},i,k.params),pathname:Rr([c,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?c:Rr([c,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),s,n,r);return t&&_?u.createElement(ca.Provider,{value:{location:Qs({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Kn.Pop}},_):_}function vw(){let e=Nw(),t=dw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,null)}const xw=u.createElement(vw,null);class ww extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(fr.Provider,{value:this.props.routeContext},u.createElement(E_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bw(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Hd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(fr.Provider,{value:t},r)}function kw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,i=(o=n)==null?void 0:o.errors;if(i!=null){let f=l.findIndex(p=>p.route.id&&i?.[p.route.id]!==void 0);f>=0||Be(!1),l=l.slice(0,Math.min(l.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<l.length;f++){let p=l[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:m,errors:y}=n,w=p.route.loader&&m[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||w){c=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((f,p,m)=>{let y,w=!1,_=null,k=null;n&&(y=i&&p.route.id?i[p.route.id]:void 0,_=p.route.errorElement||xw,c&&(d<0&&m===0?(Pw("route-fallback"),w=!0,k=null):d===m&&(w=!0,k=p.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,m+1)),g=()=>{let v;return y?v=_:w?v=k:p.route.Component?v=u.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=f,u.createElement(bw,{match:p,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?u.createElement(ww,{location:n.location,revalidation:n.revalidation,component:_,error:y,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var P_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(P_||{}),R_=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(R_||{});function Cw(e){let t=u.useContext(Hd);return t||Be(!1),t}function Sw(e){let t=u.useContext(pw);return t||Be(!1),t}function Ew(e){let t=u.useContext(fr);return t||Be(!1),t}function T_(e){let t=Ew(),n=t.matches[t.matches.length-1];return n.route.id||Be(!1),n.route.id}function Nw(){var e;let t=u.useContext(E_),n=Sw(),r=T_();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jw(){let{router:e}=Cw(P_.UseNavigateStable),t=T_(R_.UseNavigateStable),n=u.useRef(!1);return N_(()=>{n.current=!0}),u.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Qs({fromRouteId:t},s)))},[e,t])}const cm={};function Pw(e,t,n){cm[e]||(cm[e]=!0)}function Rw(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Tw(e){return gw(e.context)}function no(e){Be(!1)}function Lw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Kn.Pop,navigator:s,static:l=!1,future:i}=e;ua()&&Be(!1);let c=t.replace(/^\/*/,"/"),d=u.useMemo(()=>({basename:c,navigator:s,static:l,future:Qs({v7_relativeSplatPath:!1},i)}),[c,i,s,l]);typeof r=="string"&&(r=Br(r));let{pathname:f="/",search:p="",hash:m="",state:y=null,key:w="default"}=r,_=u.useMemo(()=>{let k=C_(f,c);return k==null?null:{location:{pathname:k,search:p,hash:m,state:y,key:w},navigationType:o}},[c,f,p,m,y,w,o]);return _==null?null:u.createElement(aa.Provider,{value:d},u.createElement(ca.Provider,{children:n,value:_}))}function Iw(e){let{children:t,location:n}=e;return _w(Lu(t),n)}new Promise(()=>{});function Lu(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let s=[...t,o];if(r.type===u.Fragment){n.push.apply(n,Lu(r.props.children,s));return}r.type!==no&&Be(!1),!r.props.index||!r.props.children||Be(!1);let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Lu(r.props.children,s)),n.push(l)}),n}/**
59
- * React Router DOM v6.30.3
60
- *
61
- * Copyright (c) Remix Software Inc.
62
- *
63
- * This source code is licensed under the MIT license found in the
64
- * LICENSE.md file in the root directory of this source tree.
65
- *
66
- * @license MIT
67
- */const Aw="6";try{window.__reactRouterVersion=Aw}catch{}const Ow="startTransition",um=Vi[Ow];function Mw(e){let{basename:t,children:n,future:r,window:o}=e,s=u.useRef();s.current==null&&(s.current=Dx({window:o,v5Compat:!0}));let l=s.current,[i,c]=u.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},f=u.useCallback(p=>{d&&um?um(()=>c(p)):c(p)},[c,d]);return u.useLayoutEffect(()=>l.listen(f),[l,f]),u.useEffect(()=>Rw(r),[r]),u.createElement(Lw,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:l,future:r})}var dm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dm||(dm={}));var fm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fm||(fm={}));function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function pm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rl(...e){return t=>{let n=!1;const r=e.map(o=>{const s=pm(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():pm(e[o],null)}}}}function De(...e){return u.useCallback(rl(...e),e)}function $w(e,t){const n=u.createContext(t),r=s=>{const{children:l,...i}=s,c=u.useMemo(()=>i,Object.values(i));return a.jsx(n.Provider,{value:c,children:l})};r.displayName=e+"Provider";function o(s){const l=u.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Wr(e,t=[]){let n=[];function r(s,l){const i=u.createContext(l),c=n.length;n=[...n,l];const d=p=>{const{scope:m,children:y,...w}=p,_=m?.[e]?.[c]||i,k=u.useMemo(()=>w,Object.values(w));return a.jsx(_.Provider,{value:k,children:y})};d.displayName=s+"Provider";function f(p,m){const y=m?.[e]?.[c]||i,w=u.useContext(y);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(l=>u.createContext(l));return function(i){const c=i?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Dw(o,...t)]}function Dw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((i,{useScope:c,scopeName:d})=>{const p=c(s)[`__scope${d}`];return{...i,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function zw(e){const t=Fw(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(Ww);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Fw(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=Uw(o),i=Hw(s,o.props);return o.type!==u.Fragment&&(i.ref=r?rl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bw=Symbol("radix.slottable");function Ww(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bw}function Hw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Uw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Vw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=Vw.reduce((e,t)=>{const n=zw(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:l,...i}=o,c=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Yw(e,t){e&&Bo.flushSync(()=>e.dispatchEvent(t))}function ut(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>t.current?.(...n),[])}function Xw(e,t=globalThis?.document){const n=ut(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Qw="DismissableLayer",Iu="dismissableLayer.update",Gw="dismissableLayer.pointerDownOutside",Kw="dismissableLayer.focusOutside",mm,L_=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vd=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:i,...c}=e,d=u.useContext(L_),[f,p]=u.useState(null),m=f?.ownerDocument??globalThis?.document,[,y]=u.useState({}),w=De(t,j=>p(j)),_=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),h=_.indexOf(k),g=f?_.indexOf(f):-1,v=d.layersWithOutsidePointerEventsDisabled.size>0,S=g>=h,N=qw(j=>{const L=j.target,D=[...d.branches].some(M=>M.contains(L));!S||D||(o?.(j),l?.(j),j.defaultPrevented||i?.())},m),T=eb(j=>{const L=j.target;[...d.branches].some(M=>M.contains(L))||(s?.(j),l?.(j),j.defaultPrevented||i?.())},m);return Xw(j=>{g===d.layers.size-1&&(r?.(j),!j.defaultPrevented&&i&&(j.preventDefault(),i()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(mm=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hm(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=mm)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hm())},[f,d]),u.useEffect(()=>{const j=()=>y({});return document.addEventListener(Iu,j),()=>document.removeEventListener(Iu,j)},[]),a.jsx(Se.div,{...c,ref:w,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,N.onPointerDownCapture)})});Vd.displayName=Qw;var Zw="DismissableLayerBranch",Jw=u.forwardRef((e,t)=>{const n=u.useContext(L_),r=u.useRef(null),o=De(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(Se.div,{...e,ref:o})});Jw.displayName=Zw;function qw(e,t=globalThis?.document){const n=ut(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){I_(Gw,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function eb(e,t=globalThis?.document){const n=ut(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&I_(Kw,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hm(){const e=new CustomEvent(Iu);document.dispatchEvent(e)}function I_(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Yw(o,s):o.dispatchEvent(s)}var Pn=globalThis?.document?u.useLayoutEffect:()=>{},tb=Vi[" useId ".trim().toString()]||(()=>{}),nb=0;function bo(e){const[t,n]=u.useState(tb());return Pn(()=>{n(r=>r??String(nb++))},[e]),e||(t?`radix-${t}`:"")}const rb=["top","right","bottom","left"],ir=Math.min,yt=Math.max,Ai=Math.round,Il=Math.floor,an=e=>({x:e,y:e}),ob={left:"right",right:"left",bottom:"top",top:"bottom"};function Au(e,t,n){return yt(e,ir(t,n))}function Rn(e,t){return typeof e=="function"?e(t):e}function Tn(e){return e.split("-")[0]}function Wo(e){return e.split("-")[1]}function Yd(e){return e==="x"?"y":"x"}function Xd(e){return e==="y"?"height":"width"}function on(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qd(e){return Yd(on(e))}function sb(e,t,n){n===void 0&&(n=!1);const r=Wo(e),o=Qd(e),s=Xd(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Oi(l)),[l,Oi(l)]}function lb(e){const t=Oi(e);return[Ou(e),t,Ou(t)]}function Ou(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const gm=["left","right"],_m=["right","left"],ib=["top","bottom"],ab=["bottom","top"];function cb(e,t,n){switch(e){case"top":case"bottom":return n?t?_m:gm:t?gm:_m;case"left":case"right":return t?ib:ab;default:return[]}}function ub(e,t,n,r){const o=Wo(e);let s=cb(Tn(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(Ou)))),s}function Oi(e){const t=Tn(e);return ob[t]+e.slice(t.length)}function db(e){return{top:0,right:0,bottom:0,left:0,...e}}function A_(e){return typeof e!="number"?db(e):{top:e,right:e,bottom:e,left:e}}function Mi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ym(e,t,n){let{reference:r,floating:o}=e;const s=on(t),l=Qd(t),i=Xd(l),c=Tn(t),d=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let y;switch(c){case"top":y={x:f,y:r.y-o.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-o.width,y:p};break;default:y={x:r.x,y:r.y}}switch(Wo(t)){case"start":y[l]-=m*(n&&d?-1:1);break;case"end":y[l]+=m*(n&&d?-1:1);break}return y}async function fb(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=Rn(t,e),w=A_(y),k=i[m?p==="floating"?"reference":"floating":p],h=Mi(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(k)))==null||n?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),g=p==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},N=Mi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:v,strategy:c}):g);return{top:(h.top-N.top+w.top)/S.y,bottom:(N.bottom-h.bottom+w.bottom)/S.y,left:(h.left-N.left+w.left)/S.x,right:(N.right-h.right+w.right)/S.x}}const pb=50,mb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,i=l.detectOverflow?l:{...l,detectOverflow:fb},c=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=ym(d,r,c),m=r,y=0;const w={};for(let _=0;_<s.length;_++){const k=s[_];if(!k)continue;const{name:h,fn:g}=k,{x:v,y:S,data:N,reset:T}=await g({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:w,rects:d,platform:i,elements:{reference:e,floating:t}});f=v??f,p=S??p,w[h]={...w[h],...N},T&&y<pb&&(y++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(d=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:f,y:p}=ym(d,m,c)),_=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:w}},hb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=Rn(e,t)||{};if(d==null)return{};const p=A_(f),m={x:n,y:r},y=Qd(o),w=Xd(y),_=await l.getDimensions(d),k=y==="y",h=k?"top":"left",g=k?"bottom":"right",v=k?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[y]-m[y]-s.floating[w],N=m[y]-s.reference[y],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let j=T?T[v]:0;(!j||!await(l.isElement==null?void 0:l.isElement(T)))&&(j=i.floating[v]||s.floating[w]);const L=S/2-N/2,D=j/2-_[w]/2-1,M=ir(p[h],D),U=ir(p[g],D),z=M,ee=j-_[w]-U,G=j/2-_[w]/2+L,fe=Au(z,G,ee),K=!c.arrow&&Wo(o)!=null&&G!==fe&&s.reference[w]/2-(G<z?M:U)-_[w]/2<0,me=K?G<z?G-z:G-ee:0;return{[y]:m[y]+me,data:{[y]:fe,centerOffset:G-fe-me,...K&&{alignmentOffset:me}},reset:K}}}),gb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:_=!0,...k}=Rn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=Tn(o),g=on(i),v=Tn(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),N=m||(v||!_?[Oi(i)]:lb(i)),T=w!=="none";!m&&T&&N.push(...ub(i,_,w,S));const j=[i,...N],L=await c.detectOverflow(t,k),D=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(L[h]),p){const G=sb(o,l,S);D.push(L[G[0]],L[G[1]])}if(M=[...M,{placement:o,overflows:D}],!D.every(G=>G<=0)){var U,z;const G=(((U=s.flip)==null?void 0:U.index)||0)+1,fe=j[G];if(fe&&(!(p==="alignment"?g!==on(fe):!1)||M.every(E=>on(E.placement)===g?E.overflows[0]>0:!0)))return{data:{index:G,overflows:M},reset:{placement:fe}};let K=(z=M.filter(me=>me.overflows[0]<=0).sort((me,E)=>me.overflows[1]-E.overflows[1])[0])==null?void 0:z.placement;if(!K)switch(y){case"bestFit":{var ee;const me=(ee=M.filter(E=>{if(T){const O=on(E.placement);return O===g||O==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(O=>O>0).reduce((O,B)=>O+B,0)]).sort((E,O)=>E[1]-O[1])[0])==null?void 0:ee[0];me&&(K=me);break}case"initialPlacement":K=i;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function vm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xm(e){return rb.some(t=>e[t]>=0)}const _b=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Rn(e,t);switch(o){case"referenceHidden":{const l=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=vm(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:xm(i)}}}case"escaped":{const l=await r.detectOverflow(t,{...s,altBoundary:!0}),i=vm(l,n.floating);return{data:{escapedOffsets:i,escaped:xm(i)}}}default:return{}}}}},O_=new Set(["left","top"]);async function yb(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Tn(n),i=Wo(n),c=on(n)==="y",d=O_.has(l)?-1:1,f=s&&c?-1:1,p=Rn(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(y=i==="end"?w*-1:w),c?{x:y*f,y:m*d}:{x:m*d,y:y*f}}const vb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:i}=t,c=await yb(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:l}}}}},xb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:c={fn:h=>{let{x:g,y:v}=h;return{x:g,y:v}}},...d}=Rn(e,t),f={x:n,y:r},p=await s.detectOverflow(t,d),m=on(Tn(o)),y=Yd(m);let w=f[y],_=f[m];if(l){const h=y==="y"?"top":"left",g=y==="y"?"bottom":"right",v=w+p[h],S=w-p[g];w=Au(v,w,S)}if(i){const h=m==="y"?"top":"left",g=m==="y"?"bottom":"right",v=_+p[h],S=_-p[g];_=Au(v,_,S)}const k=c.fn({...t,[y]:w,[m]:_});return{...k,data:{x:k.x-n,y:k.y-r,enabled:{[y]:l,[m]:i}}}}}},wb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=Rn(e,t),f={x:n,y:r},p=on(o),m=Yd(p);let y=f[m],w=f[p];const _=Rn(i,t),k=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(c){const v=m==="y"?"height":"width",S=s.reference[m]-s.floating[v]+k.mainAxis,N=s.reference[m]+s.reference[v]-k.mainAxis;y<S?y=S:y>N&&(y=N)}if(d){var h,g;const v=m==="y"?"width":"height",S=O_.has(Tn(o)),N=s.reference[p]-s.floating[v]+(S&&((h=l.offset)==null?void 0:h[p])||0)+(S?0:k.crossAxis),T=s.reference[p]+s.reference[v]+(S?0:((g=l.offset)==null?void 0:g[p])||0)-(S?k.crossAxis:0);w<N?w=N:w>T&&(w=T)}return{[m]:y,[p]:w}}}},bb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:i}=t,{apply:c=()=>{},...d}=Rn(e,t),f=await l.detectOverflow(t,d),p=Tn(o),m=Wo(o),y=on(o)==="y",{width:w,height:_}=s.floating;let k,h;p==="top"||p==="bottom"?(k=p,h=m===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(h=p,k=m==="end"?"top":"bottom");const g=_-f.top-f.bottom,v=w-f.left-f.right,S=ir(_-f[k],g),N=ir(w-f[h],v),T=!t.middlewareData.shift;let j=S,L=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=g),T&&!m){const M=yt(f.left,0),U=yt(f.right,0),z=yt(f.top,0),ee=yt(f.bottom,0);y?L=w-2*(M!==0||U!==0?M+U:yt(f.left,f.right)):j=_-2*(z!==0||ee!==0?z+ee:yt(f.top,f.bottom))}await c({...t,availableWidth:L,availableHeight:j});const D=await l.getDimensions(i.floating);return w!==D.width||_!==D.height?{reset:{rects:!0}}:{}}}};function fa(){return typeof window<"u"}function Ho(e){return M_(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(M_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function M_(e){return fa()?e instanceof Node||e instanceof wt(e).Node:!1}function Ut(e){return fa()?e instanceof Element||e instanceof wt(e).Element:!1}function In(e){return fa()?e instanceof HTMLElement||e instanceof wt(e).HTMLElement:!1}function wm(e){return!fa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function ol(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function kb(e){return/^(table|td|th)$/.test(Ho(e))}function pa(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Cb=/transform|translate|scale|rotate|perspective|filter/,Sb=/paint|layout|strict|content/,vr=e=>!!e&&e!=="none";let pc;function Gd(e){const t=Ut(e)?Vt(e):e;return vr(t.transform)||vr(t.translate)||vr(t.scale)||vr(t.rotate)||vr(t.perspective)||!Kd()&&(vr(t.backdropFilter)||vr(t.filter))||Cb.test(t.willChange||"")||Sb.test(t.contain||"")}function Eb(e){let t=ar(e);for(;In(t)&&!Ao(t);){if(Gd(t))return t;if(pa(t))return null;t=ar(t)}return null}function Kd(){return pc==null&&(pc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),pc}function Ao(e){return/^(html|body|#document)$/.test(Ho(e))}function Vt(e){return wt(e).getComputedStyle(e)}function ma(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ar(e){if(Ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wm(e)&&e.host||un(e);return wm(t)?t.host:t}function $_(e){const t=ar(e);return Ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:In(t)&&ol(t)?t:$_(t)}function Gs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$_(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=wt(o);if(s){const i=Mu(l);return t.concat(l,l.visualViewport||[],ol(o)?o:[],i&&n?Gs(i):[])}else return t.concat(o,Gs(o,[],n))}function Mu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function D_(e){const t=Vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=In(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,i=Ai(n)!==s||Ai(r)!==l;return i&&(n=s,r=l),{width:n,height:r,$:i}}function Zd(e){return Ut(e)?e:e.contextElement}function ko(e){const t=Zd(e);if(!In(t))return an(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=D_(t);let l=(s?Ai(n.width):n.width)/r,i=(s?Ai(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const Nb=an(0);function z_(e){const t=wt(e);return!Kd()||!t.visualViewport?Nb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function $r(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Zd(e);let l=an(1);t&&(r?Ut(r)&&(l=ko(r)):l=ko(e));const i=jb(s,n,r)?z_(s):an(0);let c=(o.left+i.x)/l.x,d=(o.top+i.y)/l.y,f=o.width/l.x,p=o.height/l.y;if(s){const m=wt(s),y=r&&Ut(r)?wt(r):r;let w=m,_=Mu(w);for(;_&&r&&y!==w;){const k=ko(_),h=_.getBoundingClientRect(),g=Vt(_),v=h.left+(_.clientLeft+parseFloat(g.paddingLeft))*k.x,S=h.top+(_.clientTop+parseFloat(g.paddingTop))*k.y;c*=k.x,d*=k.y,f*=k.x,p*=k.y,c+=v,d+=S,w=wt(_),_=Mu(w)}}return Mi({width:f,height:p,x:c,y:d})}function ha(e,t){const n=ma(e).scrollLeft;return t?t.left+n:$r(un(e)).left+n}function F_(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ha(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Pb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=un(r),i=t?pa(t.floating):!1;if(r===l||i&&s)return n;let c={scrollLeft:0,scrollTop:0},d=an(1);const f=an(0),p=In(r);if((p||!p&&!s)&&((Ho(r)!=="body"||ol(l))&&(c=ma(r)),p)){const y=$r(r);d=ko(r),f.x=y.x+r.clientLeft,f.y=y.y+r.clientTop}const m=l&&!p&&!s?F_(l,c):an(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function Rb(e){return Array.from(e.getClientRects())}function Tb(e){const t=un(e),n=ma(e),r=e.ownerDocument.body,o=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+ha(e);const i=-n.scrollTop;return Vt(r).direction==="rtl"&&(l+=yt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:i}}const bm=25;function Lb(e,t){const n=wt(e),r=un(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,i=0,c=0;if(o){s=o.width,l=o.height;const f=Kd();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=ha(r);if(d<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),y=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-y);w<=bm&&(s-=w)}else d<=bm&&(s+=d);return{width:s,height:l,x:i,y:c}}function Ib(e,t){const n=$r(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=In(e)?ko(e):an(1),l=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:l,height:i,x:c,y:d}}function km(e,t,n){let r;if(t==="viewport")r=Lb(e,n);else if(t==="document")r=Tb(un(e));else if(Ut(t))r=Ib(t,n);else{const o=z_(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mi(r)}function B_(e,t){const n=ar(e);return n===t||!Ut(n)||Ao(n)?!1:Vt(n).position==="fixed"||B_(n,t)}function Ab(e,t){const n=t.get(e);if(n)return n;let r=Gs(e,[],!1).filter(i=>Ut(i)&&Ho(i)!=="body"),o=null;const s=Vt(e).position==="fixed";let l=s?ar(e):e;for(;Ut(l)&&!Ao(l);){const i=Vt(l),c=Gd(l);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ol(l)&&!c&&B_(e,l))?r=r.filter(f=>f!==l):o=i,l=ar(l)}return t.set(e,r),r}function Ob(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?pa(t)?[]:Ab(t,this._c):[].concat(n),r],i=km(t,l[0],o);let c=i.top,d=i.right,f=i.bottom,p=i.left;for(let m=1;m<l.length;m++){const y=km(t,l[m],o);c=yt(y.top,c),d=ir(y.right,d),f=ir(y.bottom,f),p=yt(y.left,p)}return{width:d-p,height:f-c,x:p,y:c}}function Mb(e){const{width:t,height:n}=D_(e);return{width:t,height:n}}function $b(e,t,n){const r=In(t),o=un(t),s=n==="fixed",l=$r(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=an(0);function d(){c.x=ha(o)}if(r||!r&&!s)if((Ho(t)!=="body"||ol(o))&&(i=ma(t)),r){const y=$r(t,!0,s,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?F_(o,i):an(0),p=l.left+i.scrollLeft-c.x-f.x,m=l.top+i.scrollTop-c.y-f.y;return{x:p,y:m,width:l.width,height:l.height}}function mc(e){return Vt(e).position==="static"}function Cm(e,t){if(!In(e)||Vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function W_(e,t){const n=wt(e);if(pa(e))return n;if(!In(e)){let o=ar(e);for(;o&&!Ao(o);){if(Ut(o)&&!mc(o))return o;o=ar(o)}return n}let r=Cm(e,t);for(;r&&kb(r)&&mc(r);)r=Cm(r,t);return r&&Ao(r)&&mc(r)&&!Gd(r)?n:r||Eb(e)||n}const Db=async function(e){const t=this.getOffsetParent||W_,n=this.getDimensions,r=await n(e.floating);return{reference:$b(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zb(e){return Vt(e).direction==="rtl"}const Fb={convertOffsetParentRelativeRectToViewportRelativeRect:Pb,getDocumentElement:un,getClippingRect:Ob,getOffsetParent:W_,getElementRects:Db,getClientRects:Rb,getDimensions:Mb,getScale:ko,isElement:Ut,isRTL:zb};function H_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Bb(e,t){let n=null,r;const o=un(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function l(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:y}=d;if(i||t(),!m||!y)return;const w=Il(p),_=Il(o.clientWidth-(f+m)),k=Il(o.clientHeight-(p+y)),h=Il(f),v={rootMargin:-w+"px "+-_+"px "+-k+"px "+-h+"px",threshold:yt(0,ir(1,c))||1};let S=!0;function N(T){const j=T[0].intersectionRatio;if(j!==c){if(!S)return l();j?l(!1,j):r=setTimeout(()=>{l(!1,1e-7)},1e3)}j===1&&!H_(d,e.getBoundingClientRect())&&l(),S=!1}try{n=new IntersectionObserver(N,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,v)}n.observe(e)}return l(!0),s}function Wb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Zd(e),f=o||s?[...d?Gs(d):[],...t?Gs(t):[]]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const p=d&&i?Bb(d,n):null;let m=-1,y=null;l&&(y=new ResizeObserver(h=>{let[g]=h;g&&g.target===d&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),d&&!c&&y.observe(d),t&&y.observe(t));let w,_=c?$r(e):null;c&&k();function k(){const h=$r(e);_&&!H_(_,h)&&n(),_=h,w=requestAnimationFrame(k)}return n(),()=>{var h;f.forEach(g=>{o&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),p?.(),(h=y)==null||h.disconnect(),y=null,c&&cancelAnimationFrame(w)}}const Hb=vb,Ub=xb,Vb=gb,Yb=bb,Xb=_b,Sm=hb,Qb=wb,Gb=(e,t,n)=>{const r=new Map,o={platform:Fb,...n},s={...o.platform,_c:r};return mb(e,t,{...o,platform:s})};var Kb=typeof document<"u",Zb=function(){},li=Kb?u.useLayoutEffect:Zb;function $i(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$i(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!$i(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function U_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Em(e,t){const n=U_(e);return Math.round(t*n)/n}function hc(e){const t=u.useRef(e);return li(()=>{t.current=e}),t}function Jb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=u.useState(r);$i(m,r)||y(r);const[w,_]=u.useState(null),[k,h]=u.useState(null),g=u.useCallback(E=>{E!==T.current&&(T.current=E,_(E))},[]),v=u.useCallback(E=>{E!==j.current&&(j.current=E,h(E))},[]),S=s||w,N=l||k,T=u.useRef(null),j=u.useRef(null),L=u.useRef(f),D=c!=null,M=hc(c),U=hc(o),z=hc(d),ee=u.useCallback(()=>{if(!T.current||!j.current)return;const E={placement:t,strategy:n,middleware:m};U.current&&(E.platform=U.current),Gb(T.current,j.current,E).then(O=>{const B={...O,isPositioned:z.current!==!1};G.current&&!$i(L.current,B)&&(L.current=B,Bo.flushSync(()=>{p(B)}))})},[m,t,n,U,z]);li(()=>{d===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[d]);const G=u.useRef(!1);li(()=>(G.current=!0,()=>{G.current=!1}),[]),li(()=>{if(S&&(T.current=S),N&&(j.current=N),S&&N){if(M.current)return M.current(S,N,ee);ee()}},[S,N,ee,M,D]);const fe=u.useMemo(()=>({reference:T,floating:j,setReference:g,setFloating:v}),[g,v]),K=u.useMemo(()=>({reference:S,floating:N}),[S,N]),me=u.useMemo(()=>{const E={position:n,left:0,top:0};if(!K.floating)return E;const O=Em(K.floating,f.x),B=Em(K.floating,f.y);return i?{...E,transform:"translate("+O+"px, "+B+"px)",...U_(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:B}},[n,i,K.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:ee,refs:fe,elements:K,floatingStyles:me}),[f,ee,fe,K,me])}const qb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Sm({element:r.current,padding:o}).fn(n):{}:r?Sm({element:r,padding:o}).fn(n):{}}}},e5=(e,t)=>{const n=Hb(e);return{name:n.name,fn:n.fn,options:[e,t]}},t5=(e,t)=>{const n=Ub(e);return{name:n.name,fn:n.fn,options:[e,t]}},n5=(e,t)=>({fn:Qb(e).fn,options:[e,t]}),r5=(e,t)=>{const n=Vb(e);return{name:n.name,fn:n.fn,options:[e,t]}},o5=(e,t)=>{const n=Yb(e);return{name:n.name,fn:n.fn,options:[e,t]}},s5=(e,t)=>{const n=Xb(e);return{name:n.name,fn:n.fn,options:[e,t]}},l5=(e,t)=>{const n=qb(e);return{name:n.name,fn:n.fn,options:[e,t]}};var i5="Arrow",V_=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(Se.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});V_.displayName=i5;var a5=V_;function c5(e){const[t,n]=u.useState(void 0);return Pn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,i;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;l=d.inlineSize,i=d.blockSize}else l=e.offsetWidth,i=e.offsetHeight;n({width:l,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Jd="Popper",[Y_,X_]=Wr(Jd),[u5,Q_]=Y_(Jd),G_=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return a.jsx(u5,{scope:t,anchor:r,onAnchorChange:o,children:n})};G_.displayName=Jd;var K_="PopperAnchor",Z_=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Q_(K_,n),l=u.useRef(null),i=De(t,l),c=u.useRef(null);return u.useEffect(()=>{const d=c.current;c.current=r?.current||l.current,d!==c.current&&s.onAnchorChange(c.current)}),r?null:a.jsx(Se.div,{...o,ref:i})});Z_.displayName=K_;var qd="PopperContent",[d5,f5]=Y_(qd),J_=u.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:w,..._}=e,k=Q_(qd,n),[h,g]=u.useState(null),v=De(t,ht=>g(ht)),[S,N]=u.useState(null),T=c5(S),j=T?.width??0,L=T?.height??0,D=r+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},U=Array.isArray(d)?d:[d],z=U.length>0,ee={padding:M,boundary:U.filter(m5),altBoundary:z},{refs:G,floatingStyles:fe,placement:K,isPositioned:me,middlewareData:E}=Jb({strategy:"fixed",placement:D,whileElementsMounted:(...ht)=>Wb(...ht,{animationFrame:y==="always"}),elements:{reference:k.anchor},middleware:[e5({mainAxis:o+L,alignmentAxis:l}),c&&t5({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?n5():void 0,...ee}),c&&r5({...ee}),o5({...ee,apply:({elements:ht,rects:pr,availableWidth:Vo,availableHeight:Yo})=>{const{width:pn,height:ll}=pr.reference,Gt=ht.floating.style;Gt.setProperty("--radix-popper-available-width",`${Vo}px`),Gt.setProperty("--radix-popper-available-height",`${Yo}px`),Gt.setProperty("--radix-popper-anchor-width",`${pn}px`),Gt.setProperty("--radix-popper-anchor-height",`${ll}px`)}}),S&&l5({element:S,padding:i}),h5({arrowWidth:j,arrowHeight:L}),m&&s5({strategy:"referenceHidden",...ee})]}),[O,B]=t0(K),Q=ut(w);Pn(()=>{me&&Q?.()},[me,Q]);const he=E.arrow?.x,Xt=E.arrow?.y,Qt=E.arrow?.centerOffset!==0,[An,St]=u.useState();return Pn(()=>{h&&St(window.getComputedStyle(h).zIndex)},[h]),a.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:me?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:An,"--radix-popper-transform-origin":[E.transformOrigin?.x,E.transformOrigin?.y].join(" "),...E.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(d5,{scope:n,placedSide:O,onArrowChange:N,arrowX:he,arrowY:Xt,shouldHideArrow:Qt,children:a.jsx(Se.div,{"data-side":O,"data-align":B,..._,ref:v,style:{..._.style,animation:me?void 0:"none"}})})})});J_.displayName=qd;var q_="PopperArrow",p5={top:"bottom",right:"left",bottom:"top",left:"right"},e0=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=f5(q_,r),l=p5[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(a5,{...o,ref:n,style:{...o.style,display:"block"}})})});e0.displayName=q_;function m5(e){return e!==null}var h5=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,l=o.arrow?.centerOffset!==0,i=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[d,f]=t0(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,y=(o.arrow?.y??0)+c/2;let w="",_="";return d==="bottom"?(w=l?p:`${m}px`,_=`${-c}px`):d==="top"?(w=l?p:`${m}px`,_=`${r.floating.height+c}px`):d==="right"?(w=`${-c}px`,_=l?p:`${y}px`):d==="left"&&(w=`${r.floating.width+c}px`,_=l?p:`${y}px`),{data:{x:w,y:_}}}});function t0(e){const[t,n="center"]=e.split("-");return[t,n]}var g5=G_,_5=Z_,y5=J_,v5=e0,x5="Portal",n0=u.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=u.useState(!1);Pn(()=>s(!0),[]);const l=n||o&&globalThis?.document?.body;return l?$x.createPortal(a.jsx(Se.div,{...r,ref:t}),l):null});n0.displayName=x5;function w5(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var dn=e=>{const{present:t,children:n}=e,r=b5(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=De(r.ref,k5(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};dn.displayName="Presence";function b5(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),l=e?"mounted":"unmounted",[i,c]=w5(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Al(r.current);s.current=i==="mounted"?d:"none"},[i]),Pn(()=>{const d=r.current,f=o.current;if(f!==e){const m=s.current,y=Al(d);e?c("MOUNT"):y==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&m!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Pn(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=y=>{const _=Al(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&_&&(c("ANIMATION_END"),!o.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},m=y=>{y.target===t&&(s.current=Al(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Al(e){return e?.animationName||"none"}function k5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C5=Symbol("radix.slottable");function S5(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=C5,t}var E5=Vi[" useInsertionEffect ".trim().toString()]||Pn;function ga({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,l]=N5({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${i?"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.`),f.current=i},[i,r])}const d=u.useCallback(f=>{if(i){const p=j5(f)?f(e):f;p!==e&&l.current?.(p)}else s(f)},[i,e,s,l]);return[c,d]}function N5({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return E5(()=>{s.current=t},[t]),u.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function j5(e){return typeof e=="function"}var P5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),R5="VisuallyHidden",r0=u.forwardRef((e,t)=>a.jsx(Se.span,{...e,ref:t,style:{...P5,...e.style}}));r0.displayName=R5;var T5=r0,[_a]=Wr("Tooltip",[X_]),ya=X_(),o0="TooltipProvider",L5=700,$u="tooltip.open",[I5,ef]=_a(o0),s0=e=>{const{__scopeTooltip:t,delayDuration:n=L5,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,l=u.useRef(!0),i=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),a.jsx(I5,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:s})};s0.displayName=o0;var Ks="Tooltip",[A5,va]=_a(Ks),l0=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:l,delayDuration:i}=e,c=ef(Ks,e.__scopeTooltip),d=ya(t),[f,p]=u.useState(null),m=bo(),y=u.useRef(0),w=l??c.disableHoverableContent,_=i??c.delayDuration,k=u.useRef(!1),[h,g]=ga({prop:r,defaultProp:o??!1,onChange:j=>{j?(c.onOpen(),document.dispatchEvent(new CustomEvent($u))):c.onClose(),s?.(j)},caller:Ks}),v=u.useMemo(()=>h?k.current?"delayed-open":"instant-open":"closed",[h]),S=u.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k.current=!1,g(!0)},[g]),N=u.useCallback(()=>{window.clearTimeout(y.current),y.current=0,g(!1)},[g]),T=u.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{k.current=!0,g(!0),y.current=0},_)},[_,g]);return u.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),a.jsx(g5,{...d,children:a.jsx(A5,{scope:t,contentId:m,open:h,stateAttribute:v,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?T():S()},[c.isOpenDelayedRef,T,S]),onTriggerLeave:u.useCallback(()=>{w?N():(window.clearTimeout(y.current),y.current=0)},[N,w]),onOpen:S,onClose:N,disableHoverableContent:w,children:n})})};l0.displayName=Ks;var Du="TooltipTrigger",i0=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=va(Du,n),s=ef(Du,n),l=ya(n),i=u.useRef(null),c=De(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),p=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),a.jsx(_5,{asChild:!0,...l,children:a.jsx(Se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ge(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ge(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ge(e.onBlur,o.onClose),onClick:ge(e.onClick,o.onClose)})})});i0.displayName=Du;var O5="TooltipPortal",[ZE,M5]=_a(O5,{forceMount:void 0}),Oo="TooltipContent",a0=u.forwardRef((e,t)=>{const n=M5(Oo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=va(Oo,e.__scopeTooltip);return a.jsx(dn,{present:r||l.open,children:l.disableHoverableContent?a.jsx(c0,{side:o,...s,ref:t}):a.jsx($5,{side:o,...s,ref:t})})}),$5=u.forwardRef((e,t)=>{const n=va(Oo,e.__scopeTooltip),r=ef(Oo,e.__scopeTooltip),o=u.useRef(null),s=De(t,o),[l,i]=u.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,m=u.useCallback(()=>{i(null),p(!1)},[p]),y=u.useCallback((w,_)=>{const k=w.currentTarget,h={x:w.clientX,y:w.clientY},g=W5(h,k.getBoundingClientRect()),v=H5(h,g),S=U5(_.getBoundingClientRect()),N=Y5([...v,...S]);i(N),p(!0)},[p]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(c&&f){const w=k=>y(k,f),_=k=>y(k,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",_),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",_)}}},[c,f,y,m]),u.useEffect(()=>{if(l){const w=_=>{const k=_.target,h={x:_.clientX,y:_.clientY},g=c?.contains(k)||f?.contains(k),v=!V5(h,l);g?m():v&&(m(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,l,d,m]),a.jsx(c0,{...e,ref:s})}),[D5,z5]=_a(Ks,{isInside:!1}),F5=S5("TooltipContent"),c0=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...i}=e,c=va(Oo,n),d=ya(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener($u,f),()=>document.removeEventListener($u,f)),[f]),u.useEffect(()=>{if(c.trigger){const p=m=>{m.target?.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),a.jsx(Vd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:a.jsxs(y5,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(F5,{children:r}),a.jsx(D5,{scope:n,isInside:!0,children:a.jsx(T5,{id:c.contentId,role:"tooltip",children:o||r})})]})})});a0.displayName=Oo;var u0="TooltipArrow",B5=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ya(n);return z5(u0,n).isInside?null:a.jsx(v5,{...o,...r,ref:t})});B5.displayName=u0;function W5(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function H5(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function U5(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function V5(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const i=t[s],c=t[l],d=i.x,f=i.y,p=c.x,m=c.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function Y5(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),X5(t)}function X5(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Q5=s0,G5=l0,K5=i0,d0=a0;function f0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=f0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function p0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=f0(e))&&(r&&(r+=" "),r+=t);return r}const tf="-",Z5=e=>{const t=q5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const i=l.split(tf);return i[0]===""&&i.length!==1&&i.shift(),m0(i,t)||J5(l)},getConflictingClassGroupIds:(l,i)=>{const c=n[l]||[];return i&&r[l]?[...c,...r[l]]:c}}},m0=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?m0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(tf);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Nm=/^\[(.+)\]$/,J5=e=>{if(Nm.test(e)){const t=Nm.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},q5=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return t2(Object.entries(e.classGroups),n).forEach(([s,l])=>{zu(l,r,s,t)}),r},zu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:jm(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(e2(o)){zu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,l])=>{zu(l,jm(t,s),n,r)})})},jm=(e,t)=>{let n=e;return t.split(tf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},e2=e=>e.isThemeGetter,t2=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[n,o]}):e,n2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return o(s,l),l},set(s,l){n.has(s)?n.set(s,l):o(s,l)}}},h0="!",r2=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,l=i=>{const c=[];let d=0,f=0,p;for(let k=0;k<i.length;k++){let h=i[k];if(d===0){if(h===o&&(r||i.slice(k,k+s)===t)){c.push(i.slice(f,k)),f=k+s;continue}if(h==="/"){p=k;continue}}h==="["?d++:h==="]"&&d--}const m=c.length===0?i:i.substring(f),y=m.startsWith(h0),w=y?m.substring(1):m,_=p&&p>f?p-f:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:_}};return n?i=>n({className:i,parseClassName:l}):l},o2=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},s2=e=>({cache:n2(e.cacheSize),parseClassName:r2(e),...Z5(e)}),l2=/\s+/,i2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],l=e.trim().split(l2);let i="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=n(d);let w=!!y,_=r(w?m.substring(0,y):m);if(!_){if(!w){i=d+(i.length>0?" "+i:i);continue}if(_=r(m),!_){i=d+(i.length>0?" "+i:i);continue}w=!1}const k=o2(f).join(":"),h=p?k+h0:k,g=h+_;if(s.includes(g))continue;s.push(g);const v=o(_,w);for(let S=0;S<v.length;++S){const N=v[S];s.push(h+N)}i=d+(i.length>0?" "+i:i)}return i};function a2(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=g0(t))&&(r&&(r+=" "),r+=n);return r}const g0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=g0(e[r]))&&(n&&(n+=" "),n+=t);return n};function c2(e,...t){let n,r,o,s=l;function l(c){const d=t.reduce((f,p)=>p(f),e());return n=s2(d),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const d=r(c);if(d)return d;const f=i2(c,n);return o(c,f),f}return function(){return s(a2.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},_0=/^\[(?:([a-z-]+):)?(.+)\]$/i,u2=/^\d+\/\d+$/,d2=new Set(["px","full","screen"]),f2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p2=/\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$/,m2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,h2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,g2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vn=e=>Co(e)||d2.has(e)||u2.test(e),zn=e=>Uo(e,"length",C2),Co=e=>!!e&&!Number.isNaN(Number(e)),gc=e=>Uo(e,"number",Co),as=e=>!!e&&Number.isInteger(Number(e)),_2=e=>e.endsWith("%")&&Co(e.slice(0,-1)),q=e=>_0.test(e),Fn=e=>f2.test(e),y2=new Set(["length","size","percentage"]),v2=e=>Uo(e,y2,y0),x2=e=>Uo(e,"position",y0),w2=new Set(["image","url"]),b2=e=>Uo(e,w2,E2),k2=e=>Uo(e,"",S2),cs=()=>!0,Uo=(e,t,n)=>{const r=_0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},C2=e=>p2.test(e)&&!m2.test(e),y0=()=>!1,S2=e=>h2.test(e),E2=e=>g2.test(e),N2=()=>{const e=be("colors"),t=be("spacing"),n=be("blur"),r=be("brightness"),o=be("borderColor"),s=be("borderRadius"),l=be("borderSpacing"),i=be("borderWidth"),c=be("contrast"),d=be("grayscale"),f=be("hueRotate"),p=be("invert"),m=be("gap"),y=be("gradientColorStops"),w=be("gradientColorStopPositions"),_=be("inset"),k=be("margin"),h=be("opacity"),g=be("padding"),v=be("saturate"),S=be("scale"),N=be("sepia"),T=be("skew"),j=be("space"),L=be("translate"),D=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",q,t],z=()=>[q,t],ee=()=>["",vn,zn],G=()=>["auto",Co,q],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",q],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[Co,q];return{cacheSize:500,separator:":",theme:{colors:[cs],spacing:[vn,zn],blur:["none","",Fn,q],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Fn,q],borderSpacing:z(),borderWidth:ee(),contrast:Q(),grayscale:O(),hueRotate:Q(),invert:O(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[_2,zn],inset:U(),margin:U(),opacity:Q(),padding:z(),saturate:Q(),scale:Q(),sepia:O(),skew:Q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[Fn]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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"],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:[...fe(),q]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",as,q]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",as,q]}],"grid-cols":[{"grid-cols":[cs]}],"col-start-end":[{col:["auto",{span:["full",as,q]},q]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[cs]}],"row-start-end":[{row:["auto",{span:[as,q]},q]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[Fn]},Fn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Fn,zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gc]}],"font-family":[{font:[cs]}],"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:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",Co,gc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vn,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",vn,zn]}],"underline-offset":[{"underline-offset":["auto",vn,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),x2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",v2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},b2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[vn,q]}],"outline-w":[{outline:[vn,zn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[vn,zn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Fn,k2]}],"shadow-color":[{shadow:[cs]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Fn,q]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[as,q]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[vn,zn,gc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},j2=c2(N2);function ie(...e){return j2(p0(e))}function Wt(e){if(e==null)return"—";if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;const t=Math.floor(e/6e4),n=Math.round(e%6e4/1e3);return`${t}m ${n}s`}function P2(e){if(!e)return"—";const t=Date.now()-e;return t<1e3?"just now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:`${Math.floor(t/864e5)}d ago`}function R2(e,t=12){return e.length<=t?e:e.slice(0,t)+"…"}const T2=Q5,L2=G5,I2=K5,v0=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(d0,{ref:r,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...n}));v0.displayName=d0.displayName;const x0=u.createContext({theme:"system",resolvedTheme:"dark",setTheme:()=>{}}),Pm="chisel-studio-theme";function w0(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Rm(e){return e==="system"?w0():e}function _c(e){const t=document.documentElement;t.classList.remove("light","dark"),t.classList.add(e)}function A2({children:e}){const[t,n]=u.useState(()=>typeof window>"u"?"system":localStorage.getItem(Pm)||"system"),[r,o]=u.useState(()=>Rm(t)),s=u.useCallback(l=>{n(l),localStorage.setItem(Pm,l);const i=Rm(l);o(i),_c(i)},[]);return u.useEffect(()=>{_c(r)},[]),u.useEffect(()=>{if(t!=="system")return;const l=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>{const c=w0();o(c),_c(c)};return l.addEventListener("change",i),()=>l.removeEventListener("change",i)},[t]),a.jsx(x0.Provider,{value:{theme:t,resolvedTheme:r,setTheme:s},children:e})}function O2(){return u.useContext(x0)}var M2=`.styles-module__popup___IhzrD svg[fill=none] {
68
- fill: none !important;
69
- }
70
- .styles-module__popup___IhzrD svg[fill=none] :not([fill]) {
71
- fill: none !important;
72
- }
73
-
74
- @keyframes styles-module__popupEnter___AuQDN {
75
- from {
76
- opacity: 0;
77
- transform: translateX(-50%) scale(0.95) translateY(4px);
78
- }
79
- to {
80
- opacity: 1;
81
- transform: translateX(-50%) scale(1) translateY(0);
82
- }
83
- }
84
- @keyframes styles-module__popupExit___JJKQX {
85
- from {
86
- opacity: 1;
87
- transform: translateX(-50%) scale(1) translateY(0);
88
- }
89
- to {
90
- opacity: 0;
91
- transform: translateX(-50%) scale(0.95) translateY(4px);
92
- }
93
- }
94
- @keyframes styles-module__shake___jdbWe {
95
- 0%, 100% {
96
- transform: translateX(-50%) scale(1) translateY(0) translateX(0);
97
- }
98
- 20% {
99
- transform: translateX(-50%) scale(1) translateY(0) translateX(-3px);
100
- }
101
- 40% {
102
- transform: translateX(-50%) scale(1) translateY(0) translateX(3px);
103
- }
104
- 60% {
105
- transform: translateX(-50%) scale(1) translateY(0) translateX(-2px);
106
- }
107
- 80% {
108
- transform: translateX(-50%) scale(1) translateY(0) translateX(2px);
109
- }
110
- }
111
- .styles-module__popup___IhzrD {
112
- position: fixed;
113
- transform: translateX(-50%);
114
- width: 280px;
115
- padding: 0.75rem 1rem 14px;
116
- background: #1a1a1a;
117
- border-radius: 16px;
118
- box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
119
- cursor: default;
120
- z-index: 100001;
121
- font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
122
- will-change: transform, opacity;
123
- opacity: 0;
124
- }
125
- .styles-module__popup___IhzrD.styles-module__enter___L7U7N {
126
- animation: styles-module__popupEnter___AuQDN 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
127
- }
128
- .styles-module__popup___IhzrD.styles-module__entered___COX-w {
129
- opacity: 1;
130
- transform: translateX(-50%) scale(1) translateY(0);
131
- }
132
- .styles-module__popup___IhzrD.styles-module__exit___5eGjE {
133
- animation: styles-module__popupExit___JJKQX 0.15s ease-in forwards;
134
- }
135
- .styles-module__popup___IhzrD.styles-module__entered___COX-w.styles-module__shake___jdbWe {
136
- animation: styles-module__shake___jdbWe 0.25s ease-out;
137
- }
138
-
139
- .styles-module__header___wWsSi {
140
- display: flex;
141
- align-items: center;
142
- justify-content: space-between;
143
- margin-bottom: 0.5625rem;
144
- }
145
-
146
- .styles-module__element___fTV2z {
147
- font-size: 0.75rem;
148
- font-weight: 400;
149
- color: rgba(255, 255, 255, 0.5);
150
- max-width: 100%;
151
- overflow: hidden;
152
- text-overflow: ellipsis;
153
- white-space: nowrap;
154
- flex: 1;
155
- }
156
-
157
- .styles-module__headerToggle___WpW0b {
158
- display: flex;
159
- align-items: center;
160
- gap: 0.25rem;
161
- background: none;
162
- border: none;
163
- padding: 0;
164
- cursor: pointer;
165
- flex: 1;
166
- min-width: 0;
167
- text-align: left;
168
- }
169
- .styles-module__headerToggle___WpW0b .styles-module__element___fTV2z {
170
- flex: 1;
171
- }
172
-
173
- .styles-module__chevron___ZZJlR {
174
- color: rgba(255, 255, 255, 0.5);
175
- transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
176
- flex-shrink: 0;
177
- }
178
- .styles-module__chevron___ZZJlR.styles-module__expanded___2Hxgv {
179
- transform: rotate(90deg);
180
- }
181
-
182
- .styles-module__stylesWrapper___pnHgy {
183
- display: grid;
184
- grid-template-rows: 0fr;
185
- transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
186
- }
187
- .styles-module__stylesWrapper___pnHgy.styles-module__expanded___2Hxgv {
188
- grid-template-rows: 1fr;
189
- }
190
-
191
- .styles-module__stylesInner___YYZe2 {
192
- overflow: hidden;
193
- }
194
-
195
- .styles-module__stylesBlock___VfQKn {
196
- background: rgba(255, 255, 255, 0.05);
197
- border-radius: 0.375rem;
198
- padding: 0.5rem 0.625rem;
199
- margin-bottom: 0.5rem;
200
- font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
201
- font-size: 0.6875rem;
202
- line-height: 1.5;
203
- }
204
-
205
- .styles-module__styleLine___1YQiD {
206
- color: rgba(255, 255, 255, 0.85);
207
- word-break: break-word;
208
- }
209
-
210
- .styles-module__styleProperty___84L1i {
211
- color: #c792ea;
212
- }
213
-
214
- .styles-module__styleValue___q51-h {
215
- color: rgba(255, 255, 255, 0.85);
216
- }
217
-
218
- .styles-module__timestamp___Dtpsv {
219
- font-size: 0.625rem;
220
- font-weight: 500;
221
- color: rgba(255, 255, 255, 0.35);
222
- font-variant-numeric: tabular-nums;
223
- margin-left: 0.5rem;
224
- flex-shrink: 0;
225
- }
226
-
227
- .styles-module__quote___mcMmQ {
228
- font-size: 12px;
229
- font-style: italic;
230
- color: rgba(255, 255, 255, 0.6);
231
- margin-bottom: 0.5rem;
232
- padding: 0.4rem 0.5rem;
233
- background: rgba(255, 255, 255, 0.05);
234
- border-radius: 0.25rem;
235
- line-height: 1.45;
236
- }
237
-
238
- .styles-module__textarea___jrSae {
239
- width: 100%;
240
- padding: 0.5rem 0.625rem;
241
- font-size: 0.8125rem;
242
- font-family: inherit;
243
- background: rgba(255, 255, 255, 0.05);
244
- color: #fff;
245
- border: 1px solid rgba(255, 255, 255, 0.15);
246
- border-radius: 8px;
247
- resize: none;
248
- outline: none;
249
- transition: border-color 0.15s ease;
250
- }
251
- .styles-module__textarea___jrSae:focus {
252
- border-color: var(--agentation-color-blue);
253
- }
254
- .styles-module__textarea___jrSae.styles-module__green___99l3h:focus {
255
- border-color: var(--agentation-color-green);
256
- }
257
- .styles-module__textarea___jrSae::placeholder {
258
- color: rgba(255, 255, 255, 0.35);
259
- }
260
- .styles-module__textarea___jrSae::-webkit-scrollbar {
261
- width: 6px;
262
- }
263
- .styles-module__textarea___jrSae::-webkit-scrollbar-track {
264
- background: transparent;
265
- }
266
- .styles-module__textarea___jrSae::-webkit-scrollbar-thumb {
267
- background: rgba(255, 255, 255, 0.2);
268
- border-radius: 3px;
269
- }
270
-
271
- .styles-module__actions___D6x3f {
272
- display: flex;
273
- justify-content: flex-end;
274
- gap: 0.375rem;
275
- margin-top: 0.5rem;
276
- }
277
-
278
- .styles-module__cancel___hRjnL,
279
- .styles-module__submit___K-mIR {
280
- padding: 0.4rem 0.875rem;
281
- font-size: 0.75rem;
282
- font-weight: 500;
283
- border-radius: 1rem;
284
- border: none;
285
- cursor: pointer;
286
- transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
287
- }
288
-
289
- .styles-module__cancel___hRjnL {
290
- background: transparent;
291
- color: rgba(255, 255, 255, 0.5);
292
- }
293
- .styles-module__cancel___hRjnL:hover {
294
- background: rgba(255, 255, 255, 0.1);
295
- color: rgba(255, 255, 255, 0.8);
296
- }
297
-
298
- .styles-module__submit___K-mIR {
299
- color: white;
300
- }
301
- .styles-module__submit___K-mIR:hover:not(:disabled) {
302
- filter: brightness(0.9);
303
- }
304
- .styles-module__submit___K-mIR:disabled {
305
- cursor: not-allowed;
306
- }
307
-
308
- .styles-module__deleteWrapper___oSjdo {
309
- margin-right: auto;
310
- }
311
-
312
- .styles-module__deleteButton___4VuAE {
313
- cursor: pointer;
314
- display: flex;
315
- align-items: center;
316
- justify-content: center;
317
- width: 28px;
318
- height: 28px;
319
- border-radius: 50%;
320
- border: none;
321
- background: transparent;
322
- color: rgba(255, 255, 255, 0.4);
323
- transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
324
- }
325
- .styles-module__deleteButton___4VuAE:hover {
326
- background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
327
- color: var(--agentation-color-red);
328
- }
329
- .styles-module__deleteButton___4VuAE:active {
330
- transform: scale(0.92);
331
- }
332
-
333
- .styles-module__light___6AaSQ.styles-module__popup___IhzrD {
334
- background: #fff;
335
- box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
336
- }
337
- .styles-module__light___6AaSQ .styles-module__element___fTV2z {
338
- color: rgba(0, 0, 0, 0.6);
339
- }
340
- .styles-module__light___6AaSQ .styles-module__timestamp___Dtpsv {
341
- color: rgba(0, 0, 0, 0.4);
342
- }
343
- .styles-module__light___6AaSQ .styles-module__chevron___ZZJlR {
344
- color: rgba(0, 0, 0, 0.4);
345
- }
346
- .styles-module__light___6AaSQ .styles-module__stylesBlock___VfQKn {
347
- background: rgba(0, 0, 0, 0.03);
348
- }
349
- .styles-module__light___6AaSQ .styles-module__styleLine___1YQiD {
350
- color: rgba(0, 0, 0, 0.75);
351
- }
352
- .styles-module__light___6AaSQ .styles-module__styleProperty___84L1i {
353
- color: #7c3aed;
354
- }
355
- .styles-module__light___6AaSQ .styles-module__styleValue___q51-h {
356
- color: rgba(0, 0, 0, 0.75);
357
- }
358
- .styles-module__light___6AaSQ .styles-module__quote___mcMmQ {
359
- color: rgba(0, 0, 0, 0.55);
360
- background: rgba(0, 0, 0, 0.04);
361
- }
362
- .styles-module__light___6AaSQ .styles-module__textarea___jrSae {
363
- background: rgba(0, 0, 0, 0.03);
364
- color: #1a1a1a;
365
- border-color: rgba(0, 0, 0, 0.12);
366
- }
367
- .styles-module__light___6AaSQ .styles-module__textarea___jrSae::placeholder {
368
- color: rgba(0, 0, 0, 0.4);
369
- }
370
- .styles-module__light___6AaSQ .styles-module__textarea___jrSae::-webkit-scrollbar-thumb {
371
- background: rgba(0, 0, 0, 0.15);
372
- }
373
- .styles-module__light___6AaSQ .styles-module__cancel___hRjnL {
374
- color: rgba(0, 0, 0, 0.5);
375
- }
376
- .styles-module__light___6AaSQ .styles-module__cancel___hRjnL:hover {
377
- background: rgba(0, 0, 0, 0.06);
378
- color: rgba(0, 0, 0, 0.75);
379
- }
380
- .styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE {
381
- color: rgba(0, 0, 0, 0.4);
382
- }
383
- .styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE:hover {
384
- background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
385
- color: var(--agentation-color-red);
386
- }`,$2={popup:"styles-module__popup___IhzrD",enter:"styles-module__enter___L7U7N",entered:"styles-module__entered___COX-w",exit:"styles-module__exit___5eGjE",shake:"styles-module__shake___jdbWe",header:"styles-module__header___wWsSi",element:"styles-module__element___fTV2z",headerToggle:"styles-module__headerToggle___WpW0b",chevron:"styles-module__chevron___ZZJlR",expanded:"styles-module__expanded___2Hxgv",stylesWrapper:"styles-module__stylesWrapper___pnHgy",stylesInner:"styles-module__stylesInner___YYZe2",stylesBlock:"styles-module__stylesBlock___VfQKn",styleLine:"styles-module__styleLine___1YQiD",styleProperty:"styles-module__styleProperty___84L1i",styleValue:"styles-module__styleValue___q51-h",timestamp:"styles-module__timestamp___Dtpsv",quote:"styles-module__quote___mcMmQ",textarea:"styles-module__textarea___jrSae",actions:"styles-module__actions___D6x3f",cancel:"styles-module__cancel___hRjnL",submit:"styles-module__submit___K-mIR",deleteWrapper:"styles-module__deleteWrapper___oSjdo",deleteButton:"styles-module__deleteButton___4VuAE",light:"styles-module__light___6AaSQ"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-annotation-popup-css-styles");e||(e=document.createElement("style"),e.id="feedback-tool-styles-annotation-popup-css-styles",e.textContent=M2,document.head.appendChild(e))}var xe=$2,D2=`.icon-transitions-module__iconState___uqK9J {
387
- transition: opacity 0.2s ease, transform 0.2s ease;
388
- transform-origin: center;
389
- }
390
-
391
- .icon-transitions-module__iconStateFast___HxlMm {
392
- transition: opacity 0.15s ease, transform 0.15s ease;
393
- transform-origin: center;
394
- }
395
-
396
- .icon-transitions-module__iconFade___nPwXg {
397
- transition: opacity 0.2s ease;
398
- }
399
-
400
- .icon-transitions-module__iconFadeFast___Ofb2t {
401
- transition: opacity 0.15s ease;
402
- }
403
-
404
- .icon-transitions-module__visible___PlHsU {
405
- opacity: 1 !important;
406
- }
407
-
408
- .icon-transitions-module__visibleScaled___8Qog- {
409
- opacity: 1 !important;
410
- transform: scale(1);
411
- }
412
-
413
- .icon-transitions-module__hidden___ETykt {
414
- opacity: 0 !important;
415
- }
416
-
417
- .icon-transitions-module__hiddenScaled___JXn-m {
418
- opacity: 0 !important;
419
- transform: scale(0.8);
420
- }
421
-
422
- .icon-transitions-module__sending___uaLN- {
423
- opacity: 0.5 !important;
424
- transform: scale(0.8);
425
- }`,z2={iconState:"icon-transitions-module__iconState___uqK9J",iconStateFast:"icon-transitions-module__iconStateFast___HxlMm",iconFade:"icon-transitions-module__iconFade___nPwXg",iconFadeFast:"icon-transitions-module__iconFadeFast___Ofb2t",visible:"icon-transitions-module__visible___PlHsU",visibleScaled:"icon-transitions-module__visibleScaled___8Qog-",hidden:"icon-transitions-module__hidden___ETykt",hiddenScaled:"icon-transitions-module__hiddenScaled___JXn-m",sending:"icon-transitions-module__sending___uaLN-"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-components-icon-transitions");e||(e=document.createElement("style"),e.id="feedback-tool-styles-components-icon-transitions",e.textContent=D2,document.head.appendChild(e))}var ye=z2,F2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",children:a.jsx("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),B2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",children:a.jsx("path",{d:"M8 3v10M3 8h10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),W2=({size:e=24,style:t={}})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:t,children:[a.jsxs("g",{clipPath:"url(#clip0_list_sparkle)",children:[a.jsx("path",{d:"M11.5 12L5.5 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M18.5 6.75L5.5 6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M9.25 17.25L5.5 17.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M16 12.75L16.5179 13.9677C16.8078 14.6494 17.3506 15.1922 18.0323 15.4821L19.25 16L18.0323 16.5179C17.3506 16.8078 16.8078 17.3506 16.5179 18.0323L16 19.25L15.4821 18.0323C15.1922 17.3506 14.6494 16.8078 13.9677 16.5179L12.75 16L13.9677 15.4821C14.6494 15.1922 15.1922 14.6494 15.4821 13.9677L16 12.75Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_list_sparkle",children:a.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),H2=({size:e=20,...t})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",...t,children:[a.jsx("circle",{cx:"10",cy:"10",r:"6",stroke:"currentColor",strokeWidth:"1.25"}),a.jsx("path",{d:"M8.24 8.19C8.38 7.78 8.66 7.44 9.03 7.23C9.4 7.01 9.84 6.93 10.26 7C10.68 7.07 11.06 7.29 11.34 7.62C11.61 7.95 11.76 8.36 11.76 8.79152C11.76 10 10 10.6 10 10.6V10.83",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:"10",cy:"13",r:"0.625",fill:"currentColor"})]}),Tm=({size:e=14})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("style",{children:`
426
- @keyframes checkDraw {
427
- 0% {
428
- stroke-dashoffset: 12;
429
- }
430
- 100% {
431
- stroke-dashoffset: 0;
432
- }
433
- }
434
- @keyframes checkBounce {
435
- 0% {
436
- transform: scale(0.5);
437
- opacity: 0;
438
- }
439
- 50% {
440
- transform: scale(1.12);
441
- opacity: 1;
442
- }
443
- 75% {
444
- transform: scale(0.95);
445
- }
446
- 100% {
447
- transform: scale(1);
448
- }
449
- }
450
- .check-path-animated {
451
- stroke-dasharray: 12;
452
- stroke-dashoffset: 0;
453
- transform-origin: center;
454
- animation: checkDraw 0.18s ease-out, checkBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
455
- }
456
- `}),a.jsx("path",{className:"check-path-animated",d:"M3.9375 7L6.125 9.1875L10.5 4.8125",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),U2=({size:e=24,copied:t=!1})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{className:`${ye.iconState} ${t?ye.hiddenScaled:ye.visibleScaled}`,children:[a.jsx("path",{d:"M4.75 11.25C4.75 10.4216 5.42157 9.75 6.25 9.75H12.75C13.5784 9.75 14.25 10.4216 14.25 11.25V17.75C14.25 18.5784 13.5784 19.25 12.75 19.25H6.25C5.42157 19.25 4.75 18.5784 4.75 17.75V11.25Z",stroke:"currentColor",strokeWidth:"1.5"}),a.jsx("path",{d:"M17.25 14.25H17.75C18.5784 14.25 19.25 13.5784 19.25 12.75V6.25C19.25 5.42157 18.5784 4.75 17.75 4.75H11.25C10.4216 4.75 9.75 5.42157 9.75 6.25V6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),a.jsxs("g",{className:`${ye.iconState} ${t?ye.visibleScaled:ye.hiddenScaled}`,children:[a.jsx("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),V2=({size:e=24,state:t="idle"})=>{const n=t==="idle",r=t==="sent",o=t==="failed",s=t==="sending";return a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsx("g",{className:`${ye.iconStateFast} ${n?ye.visibleScaled:s?ye.sending:ye.hiddenScaled}`,children:a.jsx("path",{d:"M9.875 14.125L12.3506 19.6951C12.7184 20.5227 13.9091 20.4741 14.2083 19.6193L18.8139 6.46032C19.0907 5.6695 18.3305 4.90933 17.5397 5.18611L4.38072 9.79174C3.52589 10.0909 3.47731 11.2816 4.30494 11.6494L9.875 14.125ZM9.875 14.125L13.375 10.625",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),a.jsxs("g",{className:`${ye.iconStateFast} ${r?ye.visibleScaled:ye.hiddenScaled}`,children:[a.jsx("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsxs("g",{className:`${ye.iconStateFast} ${o?ye.visibleScaled:ye.hiddenScaled}`,children:[a.jsx("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"var(--agentation-color-red)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M12 8V12",stroke:"var(--agentation-color-red)",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("circle",{cx:"12",cy:"15",r:"0.5",fill:"var(--agentation-color-red)",stroke:"var(--agentation-color-red)",strokeWidth:"1"})]})]})},Y2=({size:e=24,isOpen:t=!0})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{className:`${ye.iconFade} ${t?ye.visible:ye.hidden}`,children:[a.jsx("path",{d:"M3.91752 12.7539C3.65127 12.2996 3.65037 11.7515 3.9149 11.2962C4.9042 9.59346 7.72688 5.49994 12 5.49994C16.2731 5.49994 19.0958 9.59346 20.0851 11.2962C20.3496 11.7515 20.3487 12.2996 20.0825 12.7539C19.0908 14.4459 16.2694 18.4999 12 18.4999C7.73064 18.4999 4.90918 14.4459 3.91752 12.7539Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M12 14.8261C13.5608 14.8261 14.8261 13.5608 14.8261 12C14.8261 10.4392 13.5608 9.17392 12 9.17392C10.4392 9.17392 9.17391 10.4392 9.17391 12C9.17391 13.5608 10.4392 14.8261 12 14.8261Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsxs("g",{className:`${ye.iconFade} ${t?ye.hidden:ye.visible}`,children:[a.jsx("path",{d:"M18.6025 9.28503C18.9174 8.9701 19.4364 8.99481 19.7015 9.35271C20.1484 9.95606 20.4943 10.507 20.7342 10.9199C21.134 11.6086 21.1329 12.4454 20.7303 13.1328C20.2144 14.013 19.2151 15.5225 17.7723 16.8193C16.3293 18.1162 14.3852 19.2497 12.0008 19.25C11.4192 19.25 10.8638 19.1823 10.3355 19.0613C9.77966 18.934 9.63498 18.2525 10.0382 17.8493C10.2412 17.6463 10.5374 17.573 10.8188 17.6302C11.1993 17.7076 11.5935 17.75 12.0008 17.75C13.8848 17.7497 15.4867 16.8568 16.7693 15.7041C18.0522 14.5511 18.9606 13.1867 19.4363 12.375C19.5656 12.1543 19.5659 11.8943 19.4373 11.6729C19.2235 11.3049 18.921 10.8242 18.5364 10.3003C18.3085 9.98991 18.3302 9.5573 18.6025 9.28503ZM12.0008 4.75C12.5814 4.75006 13.1358 4.81803 13.6632 4.93953C14.2182 5.06741 14.362 5.74812 13.9593 6.15091C13.7558 6.35435 13.4589 6.42748 13.1771 6.36984C12.7983 6.29239 12.4061 6.25006 12.0008 6.25C10.1167 6.25 8.51415 7.15145 7.23028 8.31543C5.94678 9.47919 5.03918 10.8555 4.56426 11.6729C4.43551 11.8945 4.43582 12.1542 4.56524 12.375C4.77587 12.7343 5.07189 13.2012 5.44718 13.7105C5.67623 14.0213 5.65493 14.4552 5.38193 14.7282C5.0671 15.0431 4.54833 15.0189 4.28292 14.6614C3.84652 14.0736 3.50813 13.5369 3.27129 13.1328C2.86831 12.4451 2.86717 11.6088 3.26739 10.9199C3.78185 10.0345 4.77959 8.51239 6.22247 7.2041C7.66547 5.89584 9.61202 4.75 12.0008 4.75Z",fill:"currentColor"}),a.jsx("path",{d:"M5 19L19 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})]}),X2=({size:e=24,isPaused:t=!1})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{className:`${ye.iconFadeFast} ${t?ye.hidden:ye.visible}`,children:[a.jsx("path",{d:"M8 6L8 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M16 18L16 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),a.jsx("path",{className:`${ye.iconFadeFast} ${t?ye.visible:ye.hidden}`,d:"M17.75 10.701C18.75 11.2783 18.75 12.7217 17.75 13.299L8.75 18.4952C7.75 19.0725 6.5 18.3509 6.5 17.1962L6.5 6.80384C6.5 5.64914 7.75 4.92746 8.75 5.50481L17.75 10.701Z",stroke:"currentColor",strokeWidth:"1.5"})]}),Q2=({size:e=16})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M10.6504 5.81117C10.9939 4.39628 13.0061 4.39628 13.3496 5.81117C13.5715 6.72517 14.6187 7.15891 15.4219 6.66952C16.6652 5.91193 18.0881 7.33479 17.3305 8.57815C16.8411 9.38134 17.2748 10.4285 18.1888 10.6504C19.6037 10.9939 19.6037 13.0061 18.1888 13.3496C17.2748 13.5715 16.8411 14.6187 17.3305 15.4219C18.0881 16.6652 16.6652 18.0881 15.4219 17.3305C14.6187 16.8411 13.5715 17.2748 13.3496 18.1888C13.0061 19.6037 10.9939 19.6037 10.6504 18.1888C10.4285 17.2748 9.38135 16.8411 8.57815 17.3305C7.33479 18.0881 5.91193 16.6652 6.66952 15.4219C7.15891 14.6187 6.72517 13.5715 5.81117 13.3496C4.39628 13.0061 4.39628 10.9939 5.81117 10.6504C6.72517 10.4285 7.15891 9.38134 6.66952 8.57815C5.91193 7.33479 7.33479 5.91192 8.57815 6.66952C9.38135 7.15891 10.4285 6.72517 10.6504 5.81117Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"1.5"})]}),G2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M13.5 4C14.7426 4 15.75 5.00736 15.75 6.25V7H18.5C18.9142 7 19.25 7.33579 19.25 7.75C19.25 8.16421 18.9142 8.5 18.5 8.5H17.9678L17.6328 16.2217C17.61 16.7475 17.5912 17.1861 17.5469 17.543C17.5015 17.9087 17.4225 18.2506 17.2461 18.5723C16.9747 19.0671 16.5579 19.4671 16.0518 19.7168C15.7227 19.8791 15.3772 19.9422 15.0098 19.9717C14.6514 20.0004 14.2126 20 13.6865 20H10.3135C9.78735 20 9.34856 20.0004 8.99023 19.9717C8.62278 19.9422 8.27729 19.8791 7.94824 19.7168C7.44205 19.4671 7.02532 19.0671 6.75391 18.5723C6.57751 18.2506 6.49853 17.9087 6.45312 17.543C6.40883 17.1861 6.39005 16.7475 6.36719 16.2217L6.03223 8.5H5.5C5.08579 8.5 4.75 8.16421 4.75 7.75C4.75 7.33579 5.08579 7 5.5 7H8.25V6.25C8.25 5.00736 9.25736 4 10.5 4H13.5ZM7.86621 16.1562C7.89013 16.7063 7.90624 17.0751 7.94141 17.3584C7.97545 17.6326 8.02151 17.7644 8.06934 17.8516C8.19271 18.0763 8.38239 18.2577 8.6123 18.3711C8.70153 18.4151 8.83504 18.4545 9.11035 18.4766C9.39482 18.4994 9.76335 18.5 10.3135 18.5H13.6865C14.2367 18.5 14.6052 18.4994 14.8896 18.4766C15.165 18.4545 15.2985 18.4151 15.3877 18.3711C15.6176 18.2577 15.8073 18.0763 15.9307 17.8516C15.9785 17.7644 16.0245 17.6326 16.0586 17.3584C16.0938 17.0751 16.1099 16.7063 16.1338 16.1562L16.4668 8.5H7.5332L7.86621 16.1562ZM9.97656 10.75C10.3906 10.7371 10.7371 11.0626 10.75 11.4766L10.875 15.4766C10.8879 15.8906 10.5624 16.2371 10.1484 16.25C9.73443 16.2629 9.38794 15.9374 9.375 15.5234L9.25 11.5234C9.23706 11.1094 9.56255 10.7629 9.97656 10.75ZM14.0244 10.75C14.4384 10.7635 14.7635 11.1105 14.75 11.5244L14.6201 15.5244C14.6066 15.9384 14.2596 16.2634 13.8457 16.25C13.4317 16.2365 13.1067 15.8896 13.1201 15.4756L13.251 11.4756C13.2645 11.0617 13.6105 10.7366 14.0244 10.75ZM10.5 5.5C10.0858 5.5 9.75 5.83579 9.75 6.25V7H14.25V6.25C14.25 5.83579 13.9142 5.5 13.5 5.5H10.5Z",fill:"currentColor"})}),yc=({size:e=16})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{clipPath:"url(#clip0_2_53)",children:[a.jsx("path",{d:"M16.25 16.25L7.75 7.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M7.75 16.25L16.25 7.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_2_53",children:a.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),K2=({size:e=24})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M16.7198 6.21973C17.0127 5.92683 17.4874 5.92683 17.7803 6.21973C18.0732 6.51262 18.0732 6.9874 17.7803 7.28027L13.0606 12L17.7803 16.7197C18.0732 17.0126 18.0732 17.4874 17.7803 17.7803C17.4875 18.0731 17.0127 18.0731 16.7198 17.7803L12.0001 13.0605L7.28033 17.7803C6.98746 18.0731 6.51268 18.0731 6.21979 17.7803C5.92689 17.4874 5.92689 17.0126 6.21979 16.7197L10.9395 12L6.21979 7.28027C5.92689 6.98738 5.92689 6.51262 6.21979 6.21973C6.51268 5.92683 6.98744 5.92683 7.28033 6.21973L12.0001 10.9395L16.7198 6.21973Z",fill:"currentColor"})}),Z2=({size:e=16})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[a.jsx("path",{d:"M9.99999 12.7082C11.4958 12.7082 12.7083 11.4956 12.7083 9.99984C12.7083 8.50407 11.4958 7.2915 9.99999 7.2915C8.50422 7.2915 7.29166 8.50407 7.29166 9.99984C7.29166 11.4956 8.50422 12.7082 9.99999 12.7082Z",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M10 3.9585V5.05698",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M10 14.9429V16.0414",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M5.7269 5.72656L6.50682 6.50649",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M13.4932 13.4932L14.2731 14.2731",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M3.95834 10H5.05683",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M14.9432 10H16.0417",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M5.7269 14.2731L6.50682 13.4932",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M13.4932 6.50649L14.2731 5.72656",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})]}),J2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:a.jsx("path",{d:"M15.5 10.4955C15.4037 11.5379 15.0124 12.5314 14.3721 13.3596C13.7317 14.1878 12.8688 14.8165 11.8841 15.1722C10.8995 15.5278 9.83397 15.5957 8.81217 15.3679C7.79038 15.1401 6.8546 14.6259 6.11434 13.8857C5.37408 13.1454 4.85995 12.2096 4.63211 11.1878C4.40427 10.166 4.47215 9.10048 4.82781 8.11585C5.18346 7.13123 5.81218 6.26825 6.64039 5.62791C7.4686 4.98756 8.46206 4.59634 9.5045 4.5C8.89418 5.32569 8.60049 6.34302 8.67685 7.36695C8.75321 8.39087 9.19454 9.35339 9.92058 10.0794C10.6466 10.8055 11.6091 11.2468 12.6331 11.3231C13.657 11.3995 14.6743 11.1058 15.5 10.4955Z",stroke:"currentColor",strokeWidth:"1.13793",strokeLinecap:"round",strokeLinejoin:"round"})}),Lm=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M11.3799 6.9572L9.05645 4.63375M11.3799 6.9572L6.74949 11.5699C6.61925 11.6996 6.45577 11.791 6.277 11.8339L4.29549 12.3092C3.93194 12.3964 3.60478 12.0683 3.69297 11.705L4.16585 9.75693C4.20893 9.57947 4.29978 9.4172 4.42854 9.28771L9.05645 4.63375M11.3799 6.9572L12.3455 5.98759C12.9839 5.34655 12.9839 4.31002 12.3455 3.66897C11.7033 3.02415 10.6594 3.02415 10.0172 3.66897L9.06126 4.62892L9.05645 4.63375",stroke:"currentColor",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"})}),q2=({size:e=24})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M13.5 4C14.7426 4 15.75 5.00736 15.75 6.25V7H18.5C18.9142 7 19.25 7.33579 19.25 7.75C19.25 8.16421 18.9142 8.5 18.5 8.5H17.9678L17.6328 16.2217C17.61 16.7475 17.5912 17.1861 17.5469 17.543C17.5015 17.9087 17.4225 18.2506 17.2461 18.5723C16.9747 19.0671 16.5579 19.4671 16.0518 19.7168C15.7227 19.8791 15.3772 19.9422 15.0098 19.9717C14.6514 20.0004 14.2126 20 13.6865 20H10.3135C9.78735 20 9.34856 20.0004 8.99023 19.9717C8.62278 19.9422 8.27729 19.8791 7.94824 19.7168C7.44205 19.4671 7.02532 19.0671 6.75391 18.5723C6.57751 18.2506 6.49853 17.9087 6.45312 17.543C6.40883 17.1861 6.39005 16.7475 6.36719 16.2217L6.03223 8.5H5.5C5.08579 8.5 4.75 8.16421 4.75 7.75C4.75 7.33579 5.08579 7 5.5 7H8.25V6.25C8.25 5.00736 9.25736 4 10.5 4H13.5ZM7.86621 16.1562C7.89013 16.7063 7.90624 17.0751 7.94141 17.3584C7.97545 17.6326 8.02151 17.7644 8.06934 17.8516C8.19271 18.0763 8.38239 18.2577 8.6123 18.3711C8.70153 18.4151 8.83504 18.4545 9.11035 18.4766C9.39482 18.4994 9.76335 18.5 10.3135 18.5H13.6865C14.2367 18.5 14.6052 18.4994 14.8896 18.4766C15.165 18.4545 15.2985 18.4151 15.3877 18.3711C15.6176 18.2577 15.8073 18.0763 15.9307 17.8516C15.9785 17.7644 16.0245 17.6326 16.0586 17.3584C16.0938 17.0751 16.1099 16.7063 16.1338 16.1562L16.4668 8.5H7.5332L7.86621 16.1562ZM9.97656 10.75C10.3906 10.7371 10.7371 11.0626 10.75 11.4766L10.875 15.4766C10.8879 15.8906 10.5624 16.2371 10.1484 16.25C9.73443 16.2629 9.38794 15.9374 9.375 15.5234L9.25 11.5234C9.23706 11.1094 9.56255 10.7629 9.97656 10.75ZM14.0244 10.75C14.4383 10.7635 14.7635 11.1105 14.75 11.5244L14.6201 15.5244C14.6066 15.9384 14.2596 16.2634 13.8457 16.25C13.4317 16.2365 13.1067 15.8896 13.1201 15.4756L13.251 11.4756C13.2645 11.0617 13.6105 10.7366 14.0244 10.75ZM10.5 5.5C10.0858 5.5 9.75 5.83579 9.75 6.25V7H14.25V6.25C14.25 5.83579 13.9142 5.5 13.5 5.5H10.5Z",fill:"currentColor"})}),ek=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8.5 3.5L4 8L8.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),b0=["data-feedback-toolbar","data-annotation-popup","data-annotation-marker"],vc=b0.flatMap(e=>[`:not([${e}])`,`:not([${e}] *)`]).join(""),Fu="feedback-freeze-styles",xc="__agentation_freeze";function tk(){if(typeof window>"u")return{frozen:!1,installed:!0,origSetTimeout:setTimeout,origSetInterval:setInterval,origRAF:t=>0,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]};const e=window;return e[xc]||(e[xc]={frozen:!1,installed:!1,origSetTimeout:null,origSetInterval:null,origRAF:null,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]}),e[xc]}var se=tk();typeof window<"u"&&!se.installed&&(se.origSetTimeout=window.setTimeout.bind(window),se.origSetInterval=window.setInterval.bind(window),se.origRAF=window.requestAnimationFrame.bind(window),window.setTimeout=(e,t,...n)=>typeof e=="string"?se.origSetTimeout(e,t):se.origSetTimeout((...r)=>{se.frozen?se.frozenTimeoutQueue.push(()=>e(...r)):e(...r)},t,...n),window.setInterval=(e,t,...n)=>typeof e=="string"?se.origSetInterval(e,t):se.origSetInterval((...r)=>{se.frozen||e(...r)},t,...n),window.requestAnimationFrame=e=>se.origRAF(t=>{se.frozen?se.frozenRAFQueue.push(e):e(t)}),se.installed=!0);var ue=se.origSetTimeout,nk=se.origSetInterval;function rk(e){return e?b0.some(t=>!!e.closest?.(`[${t}]`)):!1}function ok(){if(typeof document>"u"||se.frozen)return;se.frozen=!0,se.frozenTimeoutQueue=[],se.frozenRAFQueue=[];let e=document.getElementById(Fu);e||(e=document.createElement("style"),e.id=Fu),e.textContent=`
457
- *${vc},
458
- *${vc}::before,
459
- *${vc}::after {
460
- animation-play-state: paused !important;
461
- transition: none !important;
462
- }
463
- `,document.head.appendChild(e),se.pausedAnimations=[];try{document.getAnimations().forEach(t=>{if(t.playState!=="running")return;const n=t.effect?.target;rk(n)||(t.pause(),se.pausedAnimations.push(t))})}catch{}document.querySelectorAll("video").forEach(t=>{t.paused||(t.dataset.wasPaused="false",t.pause())})}function Im(){if(typeof document>"u"||!se.frozen)return;se.frozen=!1;const e=se.frozenTimeoutQueue;se.frozenTimeoutQueue=[];for(const n of e)se.origSetTimeout(()=>{if(se.frozen){se.frozenTimeoutQueue.push(n);return}try{n()}catch(r){console.warn("[agentation] Error replaying queued timeout:",r)}},0);const t=se.frozenRAFQueue;se.frozenRAFQueue=[];for(const n of t)se.origRAF(r=>{if(se.frozen){se.frozenRAFQueue.push(n);return}n(r)});for(const n of se.pausedAnimations)try{n.play()}catch(r){console.warn("[agentation] Error resuming animation:",r)}se.pausedAnimations=[],document.getElementById(Fu)?.remove(),document.querySelectorAll("video").forEach(n=>{n.dataset.wasPaused==="false"&&(n.play().catch(()=>{}),delete n.dataset.wasPaused)})}function wc(e){if(!e)return;const t=n=>n.stopImmediatePropagation();document.addEventListener("focusin",t,!0),document.addEventListener("focusout",t,!0);try{e.focus()}finally{document.removeEventListener("focusin",t,!0),document.removeEventListener("focusout",t,!0)}}var Am=u.forwardRef(function({element:t,timestamp:n,selectedText:r,placeholder:o="What should change?",initialValue:s="",submitLabel:l="Add",onSubmit:i,onCancel:c,onDelete:d,style:f,accentColor:p="#3c82f7",isExiting:m=!1,lightMode:y=!1,computedStyles:w},_){const[k,h]=u.useState(s),[g,v]=u.useState(!1),[S,N]=u.useState("initial"),[T,j]=u.useState(!1),[L,D]=u.useState(!1),M=u.useRef(null),U=u.useRef(null),z=u.useRef(null),ee=u.useRef(null);u.useEffect(()=>{m&&S!=="exit"&&N("exit")},[m,S]),u.useEffect(()=>{ue(()=>{N("enter")},0);const O=ue(()=>{N("entered")},200),B=ue(()=>{const Q=M.current;Q&&(wc(Q),Q.selectionStart=Q.selectionEnd=Q.value.length,Q.scrollTop=Q.scrollHeight)},50);return()=>{clearTimeout(O),clearTimeout(B),z.current&&clearTimeout(z.current),ee.current&&clearTimeout(ee.current)}},[]);const G=u.useCallback(()=>{ee.current&&clearTimeout(ee.current),v(!0),ee.current=ue(()=>{v(!1),wc(M.current)},250)},[]);u.useImperativeHandle(_,()=>({shake:G}),[G]);const fe=u.useCallback(()=>{N("exit"),z.current=ue(()=>{c()},150)},[c]),K=u.useCallback(()=>{k.trim()&&i(k.trim())},[k,i]),me=u.useCallback(O=>{O.stopPropagation(),!O.nativeEvent.isComposing&&(O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),K()),O.key==="Escape"&&fe())},[K,fe]),E=[xe.popup,y?xe.light:"",S==="enter"?xe.enter:"",S==="entered"?xe.entered:"",S==="exit"?xe.exit:"",g?xe.shake:""].filter(Boolean).join(" ");return a.jsxs("div",{ref:U,className:E,"data-annotation-popup":!0,style:f,onClick:O=>O.stopPropagation(),children:[a.jsxs("div",{className:xe.header,children:[w&&Object.keys(w).length>0?a.jsxs("button",{className:xe.headerToggle,onClick:()=>{const O=L;D(!L),O&&ue(()=>wc(M.current),0)},type:"button",children:[a.jsx("svg",{className:`${xe.chevron} ${L?xe.expanded:""}`,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M5.5 10.25L9 7.25L5.75 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),a.jsx("span",{className:xe.element,children:t})]}):a.jsx("span",{className:xe.element,children:t}),n&&a.jsx("span",{className:xe.timestamp,children:n})]}),w&&Object.keys(w).length>0&&a.jsx("div",{className:`${xe.stylesWrapper} ${L?xe.expanded:""}`,children:a.jsx("div",{className:xe.stylesInner,children:a.jsx("div",{className:xe.stylesBlock,children:Object.entries(w).map(([O,B])=>a.jsxs("div",{className:xe.styleLine,children:[a.jsx("span",{className:xe.styleProperty,children:O.replace(/([A-Z])/g,"-$1").toLowerCase()}),": ",a.jsx("span",{className:xe.styleValue,children:B}),";"]},O))})})}),r&&a.jsxs("div",{className:xe.quote,children:["“",r.slice(0,80),r.length>80?"...":"","”"]}),a.jsx("textarea",{ref:M,className:xe.textarea,style:{borderColor:T?p:void 0},placeholder:o,value:k,onChange:O=>h(O.target.value),onFocus:()=>j(!0),onBlur:()=>j(!1),rows:2,onKeyDown:me}),a.jsxs("div",{className:xe.actions,children:[d&&a.jsx("div",{className:xe.deleteWrapper,children:a.jsx("button",{className:xe.deleteButton,onClick:d,type:"button",children:a.jsx(q2,{size:22})})}),a.jsx("button",{className:xe.cancel,onClick:fe,children:"Cancel"}),a.jsx("button",{className:xe.submit,style:{backgroundColor:p,opacity:k.trim()?1:.4},onClick:K,disabled:!k.trim(),children:l})]})]})});function Mo(e){if(e.parentElement)return e.parentElement;const t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}function it(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=Mo(n)}return null}function sk(e,t=4){const n=[];let r=e,o=0;for(;r&&o<t;){const s=r.tagName.toLowerCase();if(s==="html"||s==="body")break;let l=s;if(r.id)l=`#${r.id}`;else if(r.className&&typeof r.className=="string"){const c=r.className.split(/\s+/).find(d=>d.length>2&&!d.match(/^[a-z]{1,2}$/)&&!d.match(/[A-Z0-9]{5,}/));c&&(l=`.${c.split("_")[0]}`)}const i=Mo(r);!r.parentElement&&i&&(l=`⟨shadow⟩ ${l}`),n.unshift(l),r=i,o++}return n.join(" > ")}function Di(e){const t=sk(e);if(e.dataset.element)return{name:e.dataset.element,path:t};const n=e.tagName.toLowerCase();if(["path","circle","rect","line","g"].includes(n)){const r=it(e,"svg");if(r){const o=Mo(r);if(o instanceof HTMLElement)return{name:`graphic in ${Di(o).name}`,path:t}}return{name:"graphic element",path:t}}if(n==="svg"){const r=Mo(e);if(r?.tagName.toLowerCase()==="button"){const o=r.textContent?.trim();return{name:o?`icon in "${o}" button`:"button icon",path:t}}return{name:"icon",path:t}}if(n==="button"){const r=e.textContent?.trim(),o=e.getAttribute("aria-label");return o?{name:`button [${o}]`,path:t}:{name:r?`button "${r.slice(0,25)}"`:"button",path:t}}if(n==="a"){const r=e.textContent?.trim(),o=e.getAttribute("href");return r?{name:`link "${r.slice(0,25)}"`,path:t}:o?{name:`link to ${o.slice(0,30)}`,path:t}:{name:"link",path:t}}if(n==="input"){const r=e.getAttribute("type")||"text",o=e.getAttribute("placeholder"),s=e.getAttribute("name");return o?{name:`input "${o}"`,path:t}:s?{name:`input [${s}]`,path:t}:{name:`${r} input`,path:t}}if(["h1","h2","h3","h4","h5","h6"].includes(n)){const r=e.textContent?.trim();return{name:r?`${n} "${r.slice(0,35)}"`:n,path:t}}if(n==="p"){const r=e.textContent?.trim();return r?{name:`paragraph: "${r.slice(0,40)}${r.length>40?"...":""}"`,path:t}:{name:"paragraph",path:t}}if(n==="span"||n==="label"){const r=e.textContent?.trim();return r&&r.length<40?{name:`"${r}"`,path:t}:{name:n,path:t}}if(n==="li"){const r=e.textContent?.trim();return r&&r.length<40?{name:`list item: "${r.slice(0,35)}"`,path:t}:{name:"list item",path:t}}if(n==="blockquote")return{name:"blockquote",path:t};if(n==="code"){const r=e.textContent?.trim();return r&&r.length<30?{name:`code: \`${r}\``,path:t}:{name:"code",path:t}}if(n==="pre")return{name:"code block",path:t};if(n==="img"){const r=e.getAttribute("alt");return{name:r?`image "${r.slice(0,30)}"`:"image",path:t}}if(n==="video")return{name:"video",path:t};if(["div","section","article","nav","header","footer","aside","main"].includes(n)){const r=e.className,o=e.getAttribute("role"),s=e.getAttribute("aria-label");if(s)return{name:`${n} [${s}]`,path:t};if(o)return{name:`${o}`,path:t};if(typeof r=="string"&&r){const l=r.split(/[\s_-]+/).map(i=>i.replace(/[A-Z0-9]{5,}.*$/,"")).filter(i=>i.length>2&&!/^[a-z]{1,2}$/.test(i)).slice(0,2);if(l.length>0)return{name:l.join(" "),path:t}}return{name:n==="div"?"container":n,path:t}}return{name:n,path:t}}function us(e){const t=[],n=e.textContent?.trim();n&&n.length<100&&t.push(n);const r=e.previousElementSibling;if(r){const s=r.textContent?.trim();s&&s.length<50&&t.unshift(`[before: "${s.slice(0,40)}"]`)}const o=e.nextElementSibling;if(o){const s=o.textContent?.trim();s&&s.length<50&&t.push(`[after: "${s.slice(0,40)}"]`)}return t.join(" ")}function Ol(e){const t=Mo(e);if(!t)return"";const o=(e.getRootNode()instanceof ShadowRoot&&e.parentElement?Array.from(e.parentElement.children):Array.from(t.children)).filter(f=>f!==e&&f instanceof HTMLElement);if(o.length===0)return"";const s=o.slice(0,4).map(f=>{const p=f.tagName.toLowerCase(),m=f.className;let y="";if(typeof m=="string"&&m){const w=m.split(/\s+/).map(_=>_.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(_=>_.length>2&&!/^[a-z]{1,2}$/.test(_));w&&(y=`.${w}`)}if(p==="button"||p==="a"){const w=f.textContent?.trim().slice(0,15);if(w)return`${p}${y} "${w}"`}return`${p}${y}`});let i=t.tagName.toLowerCase();if(typeof t.className=="string"&&t.className){const f=t.className.split(/\s+/).map(p=>p.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(p=>p.length>2&&!/^[a-z]{1,2}$/.test(p));f&&(i=`.${f}`)}const c=t.children.length,d=c>s.length+1?` (${c} total in ${i})`:"";return s.join(", ")+d}function ds(e){const t=e.className;return typeof t!="string"||!t?"":t.split(/\s+/).filter(r=>r.length>0).map(r=>{const o=r.match(/^([a-zA-Z][a-zA-Z0-9_-]*?)(?:_[a-zA-Z0-9]{5,})?$/);return o?o[1]:r}).filter((r,o,s)=>s.indexOf(r)===o).join(", ")}var k0=new Set(["none","normal","auto","0px","rgba(0, 0, 0, 0)","transparent","static","visible"]),lk=new Set(["p","span","h1","h2","h3","h4","h5","h6","label","li","td","th","blockquote","figcaption","caption","legend","dt","dd","pre","code","em","strong","b","i","a","time","cite","q"]),ik=new Set(["input","textarea","select"]),ak=new Set(["img","video","canvas","svg"]),ck=new Set(["div","section","article","nav","header","footer","aside","main","ul","ol","form","fieldset"]);function Ml(e){if(typeof window>"u")return{};const t=window.getComputedStyle(e),n={},r=e.tagName.toLowerCase();let o;lk.has(r)?o=["color","fontSize","fontWeight","fontFamily","lineHeight"]:r==="button"||r==="a"&&e.getAttribute("role")==="button"?o=["backgroundColor","color","padding","borderRadius","fontSize"]:ik.has(r)?o=["backgroundColor","color","padding","borderRadius","fontSize"]:ak.has(r)?o=["width","height","objectFit","borderRadius"]:ck.has(r)?o=["display","padding","margin","gap","backgroundColor"]:o=["color","fontSize","margin","padding","backgroundColor"];for(const s of o){const l=s.replace(/([A-Z])/g,"-$1").toLowerCase(),i=t.getPropertyValue(l);i&&!k0.has(i)&&(n[s]=i)}return n}var uk=["color","backgroundColor","borderColor","fontSize","fontWeight","fontFamily","lineHeight","letterSpacing","textAlign","width","height","padding","margin","border","borderRadius","display","position","top","right","bottom","left","zIndex","flexDirection","justifyContent","alignItems","gap","opacity","visibility","overflow","boxShadow","transform"];function $l(e){if(typeof window>"u")return"";const t=window.getComputedStyle(e),n=[];for(const r of uk){const o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),s=t.getPropertyValue(o);s&&!k0.has(s)&&n.push(`${o}: ${s}`)}return n.join("; ")}function dk(e){if(!e)return;const t={},n=e.split(";").map(r=>r.trim()).filter(Boolean);for(const r of n){const o=r.indexOf(":");if(o>0){const s=r.slice(0,o).trim(),l=r.slice(o+1).trim();s&&l&&(t[s]=l)}}return Object.keys(t).length>0?t:void 0}function Dl(e){const t=[],n=e.getAttribute("role"),r=e.getAttribute("aria-label"),o=e.getAttribute("aria-describedby"),s=e.getAttribute("tabindex"),l=e.getAttribute("aria-hidden");return n&&t.push(`role="${n}"`),r&&t.push(`aria-label="${r}"`),o&&t.push(`aria-describedby="${o}"`),s&&t.push(`tabindex=${s}`),l==="true"&&t.push("aria-hidden"),e.matches("a, button, input, select, textarea, [tabindex]")&&t.push("focusable"),t.join(", ")}function zl(e){const t=[];let n=e;for(;n&&n.tagName.toLowerCase()!=="html";){const r=n.tagName.toLowerCase();let o=r;if(n.id)o=`${r}#${n.id}`;else if(n.className&&typeof n.className=="string"){const l=n.className.split(/\s+/).map(i=>i.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(i=>i.length>2);l&&(o=`${r}.${l}`)}const s=Mo(n);!n.parentElement&&s&&(o=`⟨shadow⟩ ${o}`),t.unshift(o),n=s}return t.join(" > ")}var Bu="feedback-annotations-",C0=7;function zi(e){return`${Bu}${e}`}function bc(e){if(typeof window>"u")return[];try{const t=localStorage.getItem(zi(e));if(!t)return[];const n=JSON.parse(t),r=Date.now()-C0*24*60*60*1e3;return n.filter(o=>!o.timestamp||o.timestamp>r)}catch{return[]}}function S0(e,t){if(!(typeof window>"u"))try{localStorage.setItem(zi(e),JSON.stringify(t))}catch{}}function fk(){const e=new Map;if(typeof window>"u")return e;try{const t=Date.now()-C0*24*60*60*1e3;for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(r?.startsWith(Bu)){const o=r.slice(Bu.length),s=localStorage.getItem(r);if(s){const i=JSON.parse(s).filter(c=>!c.timestamp||c.timestamp>t);i.length>0&&e.set(o,i)}}}}catch{}return e}function fs(e,t,n){const r=t.map(o=>({...o,_syncedTo:n}));S0(e,r)}var E0="agentation-session-";function nf(e){return`${E0}${e}`}function pk(e){if(typeof window>"u")return null;try{return localStorage.getItem(nf(e))}catch{return null}}function kc(e,t){if(!(typeof window>"u"))try{localStorage.setItem(nf(e),t)}catch{}}function mk(e){if(!(typeof window>"u"))try{localStorage.removeItem(nf(e))}catch{}}var N0=`${E0}toolbar-hidden`;function hk(){if(typeof window>"u")return!1;try{return sessionStorage.getItem(N0)==="1"}catch{return!1}}function gk(e){if(!(typeof window>"u"))try{e&&sessionStorage.setItem(N0,"1")}catch{}}async function Cc(e,t){const n=await fetch(`${e}/sessions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t})});if(!n.ok)throw new Error(`Failed to create session: ${n.status}`);return n.json()}async function Om(e,t){const n=await fetch(`${e}/sessions/${t}`);if(!n.ok)throw new Error(`Failed to get session: ${n.status}`);return n.json()}async function Fl(e,t,n){const r=await fetch(`${e}/sessions/${t}/annotations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to sync annotation: ${r.status}`);return r.json()}async function _k(e,t,n){const r=await fetch(`${e}/annotations/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to update annotation: ${r.status}`);return r.json()}async function Mm(e,t){const n=await fetch(`${e}/annotations/${t}`,{method:"DELETE"});if(!n.ok)throw new Error(`Failed to delete annotation: ${n.status}`)}var pe={FunctionComponent:0,ClassComponent:1,IndeterminateComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,Fragment:7,Mode:8,ContextConsumer:9,ContextProvider:10,ForwardRef:11,Profiler:12,SuspenseComponent:13,MemoComponent:14,SimpleMemoComponent:15,LazyComponent:16,IncompleteClassComponent:17,DehydratedFragment:18,SuspenseListComponent:19,ScopeComponent:21,OffscreenComponent:22,LegacyHiddenComponent:23,CacheComponent:24,TracingMarkerComponent:25,HostHoistable:26,HostSingleton:27,IncompleteFunctionComponent:28,Throw:29,ViewTransitionComponent:30,ActivityComponent:31},$m=new Set(["Component","PureComponent","Fragment","Suspense","Profiler","StrictMode","Routes","Route","Outlet","Root","ErrorBoundaryHandler","HotReload","Hot"]),Dm=[/Boundary$/,/BoundaryHandler$/,/Provider$/,/Consumer$/,/^(Inner|Outer)/,/Router$/,/^Client(Page|Segment|Root)/,/^Segment(ViewNode|Node)$/,/^LayoutSegment/,/^Server(Root|Component|Render)/,/^RSC/,/Context$/,/^Hot(Reload)?$/,/^(Dev|React)(Overlay|Tools|Root)/,/Overlay$/,/Handler$/,/^With[A-Z]/,/Wrapper$/,/^Root$/],yk=[/Page$/,/View$/,/Screen$/,/Section$/,/Card$/,/List$/,/Item$/,/Form$/,/Modal$/,/Dialog$/,/Button$/,/Nav$/,/Header$/,/Footer$/,/Layout$/,/Panel$/,/Tab$/,/Menu$/];function vk(e){const t=e?.mode??"filtered";let n=$m;if(e?.skipExact){const r=e.skipExact instanceof Set?e.skipExact:new Set(e.skipExact);n=new Set([...$m,...r])}return{maxComponents:e?.maxComponents??6,maxDepth:e?.maxDepth??30,mode:t,skipExact:n,skipPatterns:e?.skipPatterns?[...Dm,...e.skipPatterns]:Dm,userPatterns:e?.userPatterns??yk,filter:e?.filter}}function xk(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").toLowerCase()}function wk(e,t=10){const n=new Set;let r=e,o=0;for(;r&&o<t;)r.className&&typeof r.className=="string"&&r.className.split(/\s+/).forEach(s=>{if(s.length>1){const l=s.replace(/[_][a-zA-Z0-9]{5,}.*$/,"").toLowerCase();l.length>1&&n.add(l)}}),r=r.parentElement,o++;return n}function bk(e,t){const n=xk(e);for(const r of t){if(r===n)return!0;const o=n.split("-").filter(l=>l.length>2),s=r.split("-").filter(l=>l.length>2);for(const l of o)for(const i of s)if(l===i||l.includes(i)||i.includes(l))return!0}return!1}function kk(e,t,n,r){if(n.filter)return n.filter(e,t);switch(n.mode){case"all":return!0;case"filtered":return!(n.skipExact.has(e)||n.skipPatterns.some(o=>o.test(e)));case"smart":return n.skipExact.has(e)||n.skipPatterns.some(o=>o.test(e))?!1:!!(r&&bk(e,r)||n.userPatterns.some(o=>o.test(e)));default:return!0}}var Kr=null,Ck=new WeakMap;function Sc(e){return Object.keys(e).some(t=>t.startsWith("__reactFiber$")||t.startsWith("__reactInternalInstance$")||t.startsWith("__reactProps$"))}function Sk(){if(Kr!==null)return Kr;if(typeof document>"u")return!1;if(document.body&&Sc(document.body))return Kr=!0,!0;const e=["#root","#app","#__next","[data-reactroot]"];for(const t of e){const n=document.querySelector(t);if(n&&Sc(n))return Kr=!0,!0}if(document.body){for(const t of document.body.children)if(Sc(t))return Kr=!0,!0}return Kr=!1,!1}var ps={map:Ck};function Ek(e){return Object.keys(e).find(n=>n.startsWith("__reactFiber$")||n.startsWith("__reactInternalInstance$"))||null}function Nk(e){const t=Ek(e);return t?e[t]:null}function xr(e){return e?e.displayName?e.displayName:e.name?e.name:null:null}function jk(e){const{tag:t,type:n,elementType:r}=e;if(t===pe.HostComponent||t===pe.HostText||t===pe.HostHoistable||t===pe.HostSingleton||t===pe.Fragment||t===pe.Mode||t===pe.Profiler||t===pe.DehydratedFragment||t===pe.HostRoot||t===pe.HostPortal||t===pe.ScopeComponent||t===pe.OffscreenComponent||t===pe.LegacyHiddenComponent||t===pe.CacheComponent||t===pe.TracingMarkerComponent||t===pe.Throw||t===pe.ViewTransitionComponent||t===pe.ActivityComponent)return null;if(t===pe.ForwardRef){const o=r;if(o?.render){const s=xr(o.render);if(s)return s}return o?.displayName?o.displayName:xr(n)}if(t===pe.MemoComponent||t===pe.SimpleMemoComponent){const o=r;if(o?.type){const s=xr(o.type);if(s)return s}return o?.displayName?o.displayName:xr(n)}if(t===pe.ContextProvider){const o=n;return o?._context?.displayName?`${o._context.displayName}.Provider`:null}if(t===pe.ContextConsumer){const o=n;return o?.displayName?`${o.displayName}.Consumer`:null}if(t===pe.LazyComponent){const o=r;return o?._status===1&&o._result?xr(o._result):null}return t===pe.SuspenseComponent||t===pe.SuspenseListComponent?null:t===pe.IncompleteClassComponent||t===pe.IncompleteFunctionComponent||t===pe.FunctionComponent||t===pe.ClassComponent||t===pe.IndeterminateComponent?xr(n):null}function Pk(e){return e.length<=2||e.length<=3&&e===e.toLowerCase()}function Rk(e,t){const n=vk(t),r=n.mode==="all";if(r){const c=ps.map.get(e);if(c!==void 0)return c}if(!Sk()){const c={path:null,components:[]};return r&&ps.map.set(e,c),c}const o=n.mode==="smart"?wk(e):void 0,s=[];try{let c=Nk(e),d=0;for(;c&&d<n.maxDepth&&s.length<n.maxComponents;){const f=jk(c);f&&!Pk(f)&&kk(f,d,n,o)&&s.push(f),c=c.return,d++}}catch{const c={path:null,components:[]};return r&&ps.map.set(e,c),c}if(s.length===0){const c={path:null,components:[]};return r&&ps.map.set(e,c),c}const i={path:s.slice().reverse().map(c=>`<${c}>`).join(" "),components:s};return r&&ps.map.set(e,i),i}var ms={FunctionComponent:0,IndeterminateComponent:2,ForwardRef:11,MemoComponent:14,SimpleMemoComponent:15};function Tk(e){if(!e||typeof e!="object")return null;const t=Object.keys(e),n=t.find(s=>s.startsWith("__reactFiber$"));if(n)return e[n]||null;const r=t.find(s=>s.startsWith("__reactInternalInstance$"));if(r)return e[r]||null;const o=t.find(s=>{if(!s.startsWith("__react"))return!1;const l=e[s];return l&&typeof l=="object"&&"_debugSource"in l});return o&&e[o]||null}function Zs(e){if(!e.type||typeof e.type=="string")return null;if(typeof e.type=="object"||typeof e.type=="function"){const t=e.type;if(t.displayName)return t.displayName;if(t.name)return t.name}return null}function Lk(e,t=50){let n=e,r=0;for(;n&&r<t;){if(n._debugSource)return{source:n._debugSource,componentName:Zs(n)};if(n._debugOwner?._debugSource)return{source:n._debugOwner._debugSource,componentName:Zs(n._debugOwner)};n=n.return,r++}return null}function Ik(e){let t=e,n=0;const r=50;for(;t&&n<r;){const o=t,s=["_debugSource","__source","_source","debugSource"];for(const l of s){const i=o[l];if(i&&typeof i=="object"&&"fileName"in i)return{source:i,componentName:Zs(t)}}if(t.memoizedProps){const l=t.memoizedProps;if(l.__source&&typeof l.__source=="object"){const i=l.__source;if(i.fileName&&i.lineNumber)return{source:{fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber},componentName:Zs(t)}}}t=t.return,n++}return null}var Bl=new Map;function Ak(e){const t=e.tag,n=e.type,r=e.elementType;if(typeof n=="string"||n==null||typeof n=="function"&&n.prototype?.isReactComponent)return null;if((t===ms.FunctionComponent||t===ms.IndeterminateComponent)&&typeof n=="function")return n;if(t===ms.ForwardRef&&r){const o=r.render;if(typeof o=="function")return o}if((t===ms.MemoComponent||t===ms.SimpleMemoComponent)&&r){const o=r.type;if(typeof o=="function")return o}return typeof n=="function"?n:null}function Ok(){const e=at,t=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(t&&"H"in t)return{get:()=>t.H,set:r=>{t.H=r}};const n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;if(n){const r=n.ReactCurrentDispatcher;if(r&&"current"in r)return{get:()=>r.current,set:o=>{r.current=o}}}return null}function Mk(e){const t=e.split(`
464
- `),n=[/source-location/,/\/dist\/index\./,/node_modules\//,/react-dom/,/react\.development/,/react\.production/,/chunk-[A-Z0-9]+/i,/react-stack-bottom-frame/,/react-reconciler/,/scheduler/,/<anonymous>/],r=/^\s*at\s+(?:.*?\s+\()?(.+?):(\d+):(\d+)\)?$/,o=/^[^@]*@(.+?):(\d+):(\d+)$/;for(const s of t){const l=s.trim();if(!l||n.some(c=>c.test(l)))continue;const i=r.exec(l)||o.exec(l);if(i)return{fileName:i[1],line:parseInt(i[2],10),column:parseInt(i[3],10)}}return null}function $k(e){let t=e;return t=t.replace(/[?#].*$/,""),t=t.replace(/^turbopack:\/\/\/\[project\]\//,""),t=t.replace(/^webpack-internal:\/\/\/\.\//,""),t=t.replace(/^webpack-internal:\/\/\//,""),t=t.replace(/^webpack:\/\/\/\.\//,""),t=t.replace(/^webpack:\/\/\//,""),t=t.replace(/^turbopack:\/\/\//,""),t=t.replace(/^https?:\/\/[^/]+\//,""),t=t.replace(/^file:\/\/\//,"/"),t=t.replace(/^\([^)]+\)\/\.\//,""),t=t.replace(/^\.\//,""),t}function Dk(e){const t=Ak(e);if(!t)return null;if(Bl.has(t))return Bl.get(t);const n=Ok();if(!n)return Bl.set(t,null),null;const r=n.get();let o=null;try{const s=new Proxy({},{get(){throw new Error("probe")}});n.set(s);try{t({})}catch(l){if(l instanceof Error&&l.message==="probe"&&l.stack){const i=Mk(l.stack);i&&(o={fileName:$k(i.fileName),lineNumber:i.line,columnNumber:i.column,componentName:Zs(e)||void 0})}}}finally{n.set(r)}return Bl.set(t,o),o}function zk(e,t=15){let n=e,r=0;for(;n&&r<t;){const o=Dk(n);if(o)return o;n=n.return,r++}return null}function Wu(e){const t=Tk(e);if(!t)return{found:!1,reason:"no-fiber",isReactApp:!1,isProduction:!1};let n=Lk(t);if(n||(n=Ik(t)),n?.source)return{found:!0,source:{fileName:n.source.fileName,lineNumber:n.source.lineNumber,columnNumber:n.source.columnNumber,componentName:n.componentName||void 0},isReactApp:!0,isProduction:!1};const r=zk(t);return r?{found:!0,source:r,isReactApp:!0,isProduction:!1}:{found:!1,reason:"no-debug-source",isReactApp:!0,isProduction:!1}}function Fk(e,t="path"){const{fileName:n,lineNumber:r,columnNumber:o}=e;let s=`${n}:${r}`;return o!==void 0&&(s+=`:${o}`),t==="vscode"?`vscode://file${n.startsWith("/")?"":"/"}${s}`:s}function Bk(e,t=10){let n=e,r=0;for(;n&&r<t;){const o=Wu(n);if(o.found)return o;n=n.parentElement,r++}return Wu(e)}var Wk=`.styles-module__toolbar___wNsdK svg[fill=none],
465
- .styles-module__markersLayer___-25j1 svg[fill=none],
466
- .styles-module__fixedMarkersLayer___ffyX6 svg[fill=none] {
467
- fill: none !important;
468
- }
469
- .styles-module__toolbar___wNsdK svg[fill=none] :not([fill]),
470
- .styles-module__markersLayer___-25j1 svg[fill=none] :not([fill]),
471
- .styles-module__fixedMarkersLayer___ffyX6 svg[fill=none] :not([fill]) {
472
- fill: none !important;
473
- }
474
-
475
- .styles-module__toolbar___wNsdK :where(button, input, select, textarea, label) {
476
- background: unset;
477
- border: unset;
478
- border-radius: unset;
479
- padding: unset;
480
- margin: unset;
481
- color: unset;
482
- font: unset;
483
- letter-spacing: unset;
484
- text-transform: unset;
485
- text-decoration: unset;
486
- box-shadow: unset;
487
- outline: unset;
488
- }
489
-
490
- @keyframes styles-module__toolbarEnter___u8RRu {
491
- from {
492
- opacity: 0;
493
- transform: scale(0.5) rotate(90deg);
494
- }
495
- to {
496
- opacity: 1;
497
- transform: scale(1) rotate(0deg);
498
- }
499
- }
500
- @keyframes styles-module__toolbarHide___y8kaT {
501
- from {
502
- opacity: 1;
503
- transform: scale(1);
504
- }
505
- to {
506
- opacity: 0;
507
- transform: scale(0.8);
508
- }
509
- }
510
- @keyframes styles-module__badgeEnter___mVQLj {
511
- from {
512
- opacity: 0;
513
- transform: scale(0);
514
- }
515
- to {
516
- opacity: 1;
517
- transform: scale(1);
518
- }
519
- }
520
- @keyframes styles-module__scaleIn___c-r1K {
521
- from {
522
- opacity: 0;
523
- transform: scale(0.85);
524
- }
525
- to {
526
- opacity: 1;
527
- transform: scale(1);
528
- }
529
- }
530
- @keyframes styles-module__scaleOut___Wctwz {
531
- from {
532
- opacity: 1;
533
- transform: scale(1);
534
- }
535
- to {
536
- opacity: 0;
537
- transform: scale(0.85);
538
- }
539
- }
540
- @keyframes styles-module__slideUp___kgD36 {
541
- from {
542
- opacity: 0;
543
- transform: scale(0.85) translateY(8px);
544
- }
545
- to {
546
- opacity: 1;
547
- transform: scale(1) translateY(0);
548
- }
549
- }
550
- @keyframes styles-module__slideDown___zcdje {
551
- from {
552
- opacity: 1;
553
- transform: scale(1) translateY(0);
554
- }
555
- to {
556
- opacity: 0;
557
- transform: scale(0.85) translateY(8px);
558
- }
559
- }
560
- @keyframes styles-module__markerIn___5FaAP {
561
- 0% {
562
- opacity: 0;
563
- transform: translate(-50%, -50%) scale(0.3);
564
- }
565
- 100% {
566
- opacity: 1;
567
- transform: translate(-50%, -50%) scale(1);
568
- }
569
- }
570
- @keyframes styles-module__markerOut___GU5jX {
571
- 0% {
572
- opacity: 1;
573
- transform: translate(-50%, -50%) scale(1);
574
- }
575
- 100% {
576
- opacity: 0;
577
- transform: translate(-50%, -50%) scale(0.3);
578
- }
579
- }
580
- @keyframes styles-module__fadeIn___b9qmf {
581
- from {
582
- opacity: 0;
583
- }
584
- to {
585
- opacity: 1;
586
- }
587
- }
588
- @keyframes styles-module__fadeOut___6Ut6- {
589
- from {
590
- opacity: 1;
591
- }
592
- to {
593
- opacity: 0;
594
- }
595
- }
596
- @keyframes styles-module__tooltipIn___0N31w {
597
- from {
598
- opacity: 0;
599
- transform: translateX(-50%) translateY(2px) scale(0.891);
600
- }
601
- to {
602
- opacity: 1;
603
- transform: translateX(-50%) translateY(0) scale(0.909);
604
- }
605
- }
606
- @keyframes styles-module__hoverHighlightIn___6WYHY {
607
- from {
608
- opacity: 0;
609
- transform: scale(0.98);
610
- }
611
- to {
612
- opacity: 1;
613
- transform: scale(1);
614
- }
615
- }
616
- @keyframes styles-module__hoverTooltipIn___FYGQx {
617
- from {
618
- opacity: 0;
619
- transform: scale(0.95) translateY(4px);
620
- }
621
- to {
622
- opacity: 1;
623
- transform: scale(1) translateY(0);
624
- }
625
- }
626
- @keyframes styles-module__settingsPanelIn___MGfO8 {
627
- from {
628
- opacity: 0;
629
- transform: translateY(10px) scale(0.95);
630
- filter: blur(5px);
631
- }
632
- to {
633
- opacity: 1;
634
- transform: translateY(0) scale(1);
635
- filter: blur(0px);
636
- }
637
- }
638
- @keyframes styles-module__settingsPanelOut___Zfymi {
639
- from {
640
- opacity: 1;
641
- transform: translateY(0) scale(1);
642
- filter: blur(0px);
643
- }
644
- to {
645
- opacity: 0;
646
- transform: translateY(20px) scale(0.95);
647
- filter: blur(5px);
648
- }
649
- }
650
- .styles-module__disableTransitions___EopxO :is(*, *::before, *::after) {
651
- transition: none !important;
652
- }
653
-
654
- .styles-module__toolbar___wNsdK {
655
- position: fixed;
656
- width: 297px;
657
- z-index: 100000;
658
- font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
659
- pointer-events: none;
660
- transition: left 0s, top 0s, right 0s, bottom 0s;
661
- }
662
-
663
- :where(.styles-module__toolbar___wNsdK) {
664
- bottom: 1.25rem;
665
- right: 1.25rem;
666
- }
667
-
668
- .styles-module__toolbarContainer___dIhma {
669
- user-select: none;
670
- margin-left: auto;
671
- align-self: flex-end;
672
- display: flex;
673
- align-items: center;
674
- justify-content: center;
675
- background: #1a1a1a;
676
- color: #fff;
677
- border: none;
678
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
679
- pointer-events: auto;
680
- cursor: grab;
681
- transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
682
- }
683
- .styles-module__toolbarContainer___dIhma.styles-module__dragging___xrolZ {
684
- transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
685
- cursor: grabbing;
686
- }
687
- .styles-module__toolbarContainer___dIhma.styles-module__entrance___sgHd8 {
688
- animation: styles-module__toolbarEnter___u8RRu 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
689
- }
690
- .styles-module__toolbarContainer___dIhma.styles-module__hiding___1td44 {
691
- animation: styles-module__toolbarHide___y8kaT 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
692
- pointer-events: none;
693
- }
694
- .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn {
695
- width: 44px;
696
- height: 44px;
697
- border-radius: 22px;
698
- padding: 0;
699
- cursor: pointer;
700
- }
701
- .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn svg {
702
- margin-top: -1px;
703
- }
704
- .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {
705
- background: #2a2a2a;
706
- }
707
- .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:active {
708
- transform: scale(0.95);
709
- }
710
- .styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx {
711
- height: 44px;
712
- border-radius: 1.5rem;
713
- padding: 0.375rem;
714
- width: 257px;
715
- }
716
- .styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx.styles-module__serverConnected___Gfbou {
717
- width: 297px;
718
- }
719
-
720
- .styles-module__toggleContent___0yfyP {
721
- position: absolute;
722
- display: flex;
723
- align-items: center;
724
- justify-content: center;
725
- transition: opacity 0.1s cubic-bezier(0.19, 1, 0.22, 1);
726
- }
727
- .styles-module__toggleContent___0yfyP.styles-module__visible___KHwEW {
728
- opacity: 1;
729
- visibility: visible;
730
- pointer-events: auto;
731
- }
732
- .styles-module__toggleContent___0yfyP.styles-module__hidden___Ae8H4 {
733
- opacity: 0;
734
- pointer-events: none;
735
- }
736
-
737
- .styles-module__controlsContent___9GJWU {
738
- display: flex;
739
- align-items: center;
740
- gap: 0.375rem;
741
- transition: filter 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
742
- }
743
- .styles-module__controlsContent___9GJWU.styles-module__visible___KHwEW {
744
- opacity: 1;
745
- filter: blur(0px);
746
- transform: scale(1);
747
- visibility: visible;
748
- pointer-events: auto;
749
- }
750
- .styles-module__controlsContent___9GJWU.styles-module__hidden___Ae8H4 {
751
- pointer-events: none;
752
- opacity: 0;
753
- filter: blur(10px);
754
- transform: scale(0.4);
755
- }
756
-
757
- .styles-module__badge___2XsgF {
758
- position: absolute;
759
- top: -13px;
760
- right: -13px;
761
- user-select: none;
762
- min-width: 18px;
763
- height: 18px;
764
- padding: 0 5px;
765
- border-radius: 9px;
766
- background-color: var(--agentation-color-accent);
767
- color: white;
768
- font-size: 0.625rem;
769
- font-weight: 600;
770
- display: flex;
771
- align-items: center;
772
- justify-content: center;
773
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
774
- opacity: 1;
775
- transition: transform 0.3s ease, opacity 0.2s ease;
776
- transform: scale(1);
777
- }
778
- .styles-module__badge___2XsgF.styles-module__fadeOut___6Ut6- {
779
- opacity: 0;
780
- transform: scale(0);
781
- pointer-events: none;
782
- }
783
- .styles-module__badge___2XsgF.styles-module__entrance___sgHd8 {
784
- animation: styles-module__badgeEnter___mVQLj 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) 0.4s both;
785
- }
786
-
787
- .styles-module__controlButton___8Q0jc {
788
- position: relative;
789
- cursor: pointer !important;
790
- display: flex;
791
- align-items: center;
792
- justify-content: center;
793
- width: 34px;
794
- height: 34px;
795
- border-radius: 50%;
796
- border: none;
797
- background: transparent;
798
- color: rgba(255, 255, 255, 0.85);
799
- transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, opacity 0.2s ease;
800
- }
801
- .styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {
802
- background: rgba(255, 255, 255, 0.12);
803
- color: #fff;
804
- }
805
- .styles-module__controlButton___8Q0jc:active:not(:disabled) {
806
- transform: scale(0.92);
807
- }
808
- .styles-module__controlButton___8Q0jc:disabled {
809
- opacity: 0.35;
810
- cursor: not-allowed;
811
- }
812
- .styles-module__controlButton___8Q0jc[data-active=true] {
813
- color: var(--agentation-color-blue);
814
- background-color: color-mix(in srgb, var(--agentation-color-blue) 25%, transparent);
815
- }
816
- .styles-module__controlButton___8Q0jc[data-error=true] {
817
- color: var(--agentation-color-red);
818
- background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
819
- }
820
- .styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {
821
- background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
822
- color: var(--agentation-color-red);
823
- }
824
- .styles-module__controlButton___8Q0jc[data-no-hover=true], .styles-module__controlButton___8Q0jc.styles-module__statusShowing___te6iu {
825
- cursor: default !important;
826
- pointer-events: none;
827
- background: transparent !important;
828
- }
829
- .styles-module__controlButton___8Q0jc[data-auto-sync=true] {
830
- color: var(--agentation-color-green);
831
- background: transparent;
832
- cursor: default;
833
- }
834
- .styles-module__controlButton___8Q0jc[data-failed=true] {
835
- color: var(--agentation-color-red);
836
- background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
837
- }
838
-
839
- .styles-module__buttonBadge___NeFWb {
840
- position: absolute;
841
- top: 0px;
842
- right: 0px;
843
- min-width: 16px;
844
- height: 16px;
845
- padding: 0 4px;
846
- border-radius: 8px;
847
- background-color: var(--agentation-color-accent);
848
- color: white;
849
- font-size: 0.625rem;
850
- font-weight: 600;
851
- display: flex;
852
- align-items: center;
853
- justify-content: center;
854
- box-shadow: 0 0 0 2px #1a1a1a, 0 1px 3px rgba(0, 0, 0, 0.2);
855
- pointer-events: none;
856
- }
857
- [data-agentation-theme=light] .styles-module__buttonBadge___NeFWb {
858
- box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);
859
- }
860
-
861
- @keyframes styles-module__mcpIndicatorPulseConnected___EDodZ {
862
- 0%, 100% {
863
- box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-green) 50%, transparent);
864
- }
865
- 50% {
866
- box-shadow: 0 0 0 5px color-mix(in srgb, var(--agentation-color-green) 0%, transparent);
867
- }
868
- }
869
- @keyframes styles-module__mcpIndicatorPulseConnecting___cCYte {
870
- 0%, 100% {
871
- box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-yellow) 50%, transparent);
872
- }
873
- 50% {
874
- box-shadow: 0 0 0 5px color-mix(in srgb, var(--agentation-color-yellow) 0%, transparent);
875
- }
876
- }
877
- .styles-module__mcpIndicator___zGJeL {
878
- position: absolute;
879
- top: 3px;
880
- right: 3px;
881
- width: 6px;
882
- height: 6px;
883
- border-radius: 50%;
884
- pointer-events: none;
885
- transition: background-color 0.3s ease, opacity 0.15s ease, transform 0.15s ease;
886
- opacity: 1;
887
- transform: scale(1);
888
- }
889
- .styles-module__mcpIndicator___zGJeL.styles-module__connected___7c28g {
890
- background-color: var(--agentation-color-green);
891
- animation: styles-module__mcpIndicatorPulseConnected___EDodZ 2.5s ease-in-out infinite;
892
- }
893
- .styles-module__mcpIndicator___zGJeL.styles-module__connecting___uo-CW {
894
- background-color: var(--agentation-color-yellow);
895
- animation: styles-module__mcpIndicatorPulseConnecting___cCYte 1.5s ease-in-out infinite;
896
- }
897
- .styles-module__mcpIndicator___zGJeL.styles-module__hidden___Ae8H4 {
898
- opacity: 0;
899
- transform: scale(0);
900
- animation: none;
901
- }
902
-
903
- @keyframes styles-module__connectionPulse___-Zycw {
904
- 0%, 100% {
905
- opacity: 1;
906
- transform: scale(1);
907
- }
908
- 50% {
909
- opacity: 0.6;
910
- transform: scale(0.9);
911
- }
912
- }
913
- .styles-module__connectionIndicatorWrapper___L-e-3 {
914
- width: 8px;
915
- height: 34px;
916
- margin-left: 6px;
917
- margin-right: 6px;
918
- }
919
-
920
- .styles-module__connectionIndicator___afk9p {
921
- position: relative;
922
- width: 8px;
923
- height: 8px;
924
- border-radius: 50%;
925
- opacity: 0;
926
- transition: opacity 0.3s ease, background-color 0.3s ease;
927
- cursor: default;
928
- }
929
-
930
- .styles-module__connectionIndicatorVisible___C-i5B {
931
- opacity: 1;
932
- }
933
-
934
- .styles-module__connectionIndicatorConnected___IY8pR {
935
- background-color: var(--agentation-color-green);
936
- animation: styles-module__connectionPulse___-Zycw 2.5s ease-in-out infinite;
937
- }
938
-
939
- .styles-module__connectionIndicatorDisconnected___kmpaZ {
940
- background-color: var(--agentation-color-red);
941
- animation: none;
942
- }
943
-
944
- .styles-module__connectionIndicatorConnecting___QmSLH {
945
- background-color: var(--agentation-color-yellow);
946
- animation: styles-module__connectionPulse___-Zycw 1s ease-in-out infinite;
947
- }
948
-
949
- .styles-module__buttonWrapper___rBcdv {
950
- position: relative;
951
- display: flex;
952
- align-items: center;
953
- justify-content: center;
954
- }
955
- .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
956
- opacity: 1;
957
- visibility: visible;
958
- transform: translateX(-50%) scale(1);
959
- transition-delay: 0.85s;
960
- }
961
- .styles-module__buttonWrapper___rBcdv:has(.styles-module__controlButton___8Q0jc:disabled):hover .styles-module__buttonTooltip___Burd9 {
962
- opacity: 0;
963
- visibility: hidden;
964
- }
965
-
966
- .styles-module__tooltipsInSession___-0lHH .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
967
- transition-delay: 0s;
968
- }
969
-
970
- .styles-module__sendButtonWrapper___UUxG6 {
971
- width: 0;
972
- opacity: 0;
973
- overflow: hidden;
974
- pointer-events: none;
975
- margin-left: -0.375rem;
976
- transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1), margin 0.4s cubic-bezier(0.19, 1, 0.22, 1);
977
- }
978
- .styles-module__sendButtonWrapper___UUxG6 .styles-module__controlButton___8Q0jc {
979
- transform: scale(0.8);
980
- transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
981
- }
982
- .styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU {
983
- width: 34px;
984
- opacity: 1;
985
- overflow: visible;
986
- pointer-events: auto;
987
- margin-left: 0;
988
- }
989
- .styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU .styles-module__controlButton___8Q0jc {
990
- transform: scale(1);
991
- }
992
-
993
- .styles-module__buttonTooltip___Burd9 {
994
- position: absolute;
995
- bottom: calc(100% + 14px);
996
- left: 50%;
997
- transform: translateX(-50%) scale(0.95);
998
- padding: 6px 10px;
999
- background: #1a1a1a;
1000
- color: rgba(255, 255, 255, 0.9);
1001
- font-size: 12px;
1002
- font-weight: 500;
1003
- border-radius: 8px;
1004
- white-space: nowrap;
1005
- opacity: 0;
1006
- visibility: hidden;
1007
- pointer-events: none;
1008
- z-index: 100001;
1009
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
1010
- transition: opacity 0.135s ease, transform 0.135s ease, visibility 0.135s ease;
1011
- }
1012
- .styles-module__buttonTooltip___Burd9::after {
1013
- content: "";
1014
- position: absolute;
1015
- top: calc(100% - 4px);
1016
- left: 50%;
1017
- transform: translateX(-50%) rotate(45deg);
1018
- width: 8px;
1019
- height: 8px;
1020
- background: #1a1a1a;
1021
- border-radius: 0 0 2px 0;
1022
- }
1023
-
1024
- .styles-module__shortcut___lEAQk {
1025
- margin-left: 4px;
1026
- opacity: 0.5;
1027
- }
1028
-
1029
- .styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9 {
1030
- bottom: auto;
1031
- top: calc(100% + 14px);
1032
- transform: translateX(-50%) scale(0.95);
1033
- }
1034
- .styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9::after {
1035
- top: -4px;
1036
- bottom: auto;
1037
- border-radius: 2px 0 0 0;
1038
- }
1039
-
1040
- .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
1041
- transform: translateX(-50%) scale(1);
1042
- }
1043
-
1044
- .styles-module__tooltipsHidden___VtLJG .styles-module__buttonTooltip___Burd9 {
1045
- opacity: 0 !important;
1046
- visibility: hidden !important;
1047
- transition: none !important;
1048
- }
1049
-
1050
- .styles-module__tooltipVisible___0jcCv,
1051
- .styles-module__tooltipsHidden___VtLJG .styles-module__tooltipVisible___0jcCv {
1052
- opacity: 1 !important;
1053
- visibility: visible !important;
1054
- transform: translateX(-50%) scale(1) !important;
1055
- transition-delay: 0s !important;
1056
- }
1057
-
1058
- .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {
1059
- left: 50%;
1060
- transform: translateX(-12px) scale(0.95);
1061
- }
1062
- .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9::after {
1063
- left: 16px;
1064
- }
1065
- .styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {
1066
- transform: translateX(-12px) scale(1);
1067
- }
1068
-
1069
- .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {
1070
- transform: translateX(-12px) scale(0.95);
1071
- }
1072
- .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {
1073
- transform: translateX(-12px) scale(1);
1074
- }
1075
-
1076
- .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {
1077
- left: 50%;
1078
- transform: translateX(calc(-100% + 12px)) scale(0.95);
1079
- }
1080
- .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9::after {
1081
- left: auto;
1082
- right: 8px;
1083
- }
1084
- .styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {
1085
- transform: translateX(calc(-100% + 12px)) scale(1);
1086
- }
1087
-
1088
- .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {
1089
- transform: translateX(calc(-100% + 12px)) scale(0.95);
1090
- }
1091
- .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {
1092
- transform: translateX(calc(-100% + 12px)) scale(1);
1093
- }
1094
-
1095
- .styles-module__divider___c--s1 {
1096
- width: 1px;
1097
- height: 12px;
1098
- background: rgba(255, 255, 255, 0.15);
1099
- margin: 0 0.125rem;
1100
- }
1101
-
1102
- .styles-module__overlay___Q1O9y {
1103
- position: fixed;
1104
- inset: 0;
1105
- z-index: 99997;
1106
- pointer-events: none;
1107
- }
1108
- .styles-module__overlay___Q1O9y > * {
1109
- pointer-events: auto;
1110
- }
1111
-
1112
- .styles-module__hoverHighlight___ogakW {
1113
- position: fixed;
1114
- border: 2px solid color-mix(in srgb, var(--agentation-color-accent) 50%, transparent);
1115
- border-radius: 4px;
1116
- background-color: color-mix(in srgb, var(--agentation-color-accent) 4%, transparent);
1117
- pointer-events: none !important;
1118
- box-sizing: border-box;
1119
- will-change: opacity;
1120
- contain: layout style;
1121
- }
1122
- .styles-module__hoverHighlight___ogakW.styles-module__enter___WFIki {
1123
- animation: styles-module__hoverHighlightIn___6WYHY 0.12s ease-out forwards;
1124
- }
1125
-
1126
- .styles-module__multiSelectOutline___cSJ-m {
1127
- position: fixed;
1128
- border: 2px dashed color-mix(in srgb, var(--agentation-color-green) 60%, transparent);
1129
- border-radius: 4px;
1130
- pointer-events: none !important;
1131
- background-color: color-mix(in srgb, var(--agentation-color-green) 5%, transparent);
1132
- box-sizing: border-box;
1133
- will-change: opacity;
1134
- }
1135
- .styles-module__multiSelectOutline___cSJ-m.styles-module__enter___WFIki {
1136
- animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;
1137
- }
1138
- .styles-module__multiSelectOutline___cSJ-m.styles-module__exit___fyOJ0 {
1139
- animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;
1140
- }
1141
-
1142
- .styles-module__singleSelectOutline___QhX-O {
1143
- position: fixed;
1144
- border: 2px solid color-mix(in srgb, var(--agentation-color-blue) 60%, transparent);
1145
- border-radius: 4px;
1146
- pointer-events: none !important;
1147
- background-color: color-mix(in srgb, var(--agentation-color-blue) 5%, transparent);
1148
- box-sizing: border-box;
1149
- will-change: opacity;
1150
- }
1151
- .styles-module__singleSelectOutline___QhX-O.styles-module__enter___WFIki {
1152
- animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;
1153
- }
1154
- .styles-module__singleSelectOutline___QhX-O.styles-module__exit___fyOJ0 {
1155
- animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;
1156
- }
1157
-
1158
- .styles-module__hoverTooltip___bvLk7 {
1159
- position: fixed;
1160
- font-size: 0.6875rem;
1161
- font-weight: 500;
1162
- color: #fff;
1163
- background: rgba(0, 0, 0, 0.85);
1164
- padding: 0.35rem 0.6rem;
1165
- border-radius: 0.375rem;
1166
- pointer-events: none !important;
1167
- white-space: nowrap;
1168
- max-width: 280px;
1169
- overflow: hidden;
1170
- text-overflow: ellipsis;
1171
- }
1172
- .styles-module__hoverTooltip___bvLk7.styles-module__enter___WFIki {
1173
- animation: styles-module__hoverTooltipIn___FYGQx 0.1s ease-out forwards;
1174
- }
1175
-
1176
- .styles-module__hoverReactPath___gx1IJ {
1177
- font-size: 0.625rem;
1178
- color: rgba(255, 255, 255, 0.6);
1179
- margin-bottom: 0.15rem;
1180
- overflow: hidden;
1181
- text-overflow: ellipsis;
1182
- }
1183
-
1184
- .styles-module__hoverElementName___QMLMl {
1185
- overflow: hidden;
1186
- text-overflow: ellipsis;
1187
- }
1188
-
1189
- .styles-module__markersLayer___-25j1 {
1190
- position: absolute;
1191
- top: 0;
1192
- left: 0;
1193
- right: 0;
1194
- height: 0;
1195
- z-index: 99998;
1196
- pointer-events: none;
1197
- }
1198
- .styles-module__markersLayer___-25j1 > * {
1199
- pointer-events: auto;
1200
- }
1201
-
1202
- .styles-module__fixedMarkersLayer___ffyX6 {
1203
- position: fixed;
1204
- top: 0;
1205
- left: 0;
1206
- right: 0;
1207
- bottom: 0;
1208
- z-index: 99998;
1209
- pointer-events: none;
1210
- }
1211
- .styles-module__fixedMarkersLayer___ffyX6 > * {
1212
- pointer-events: auto;
1213
- }
1214
-
1215
- .styles-module__marker___6sQrs {
1216
- position: absolute;
1217
- width: 22px;
1218
- height: 22px;
1219
- background: var(--agentation-color-blue);
1220
- color: white;
1221
- border-radius: 50%;
1222
- display: flex;
1223
- align-items: center;
1224
- justify-content: center;
1225
- font-size: 0.6875rem;
1226
- font-weight: 600;
1227
- transform: translate(-50%, -50%) scale(1);
1228
- opacity: 1;
1229
- cursor: pointer;
1230
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
1231
- user-select: none;
1232
- will-change: transform, opacity;
1233
- contain: layout style;
1234
- z-index: 1;
1235
- }
1236
- .styles-module__marker___6sQrs:hover {
1237
- z-index: 2;
1238
- }
1239
- .styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7) {
1240
- transition: background-color 0.15s ease, transform 0.1s ease;
1241
- }
1242
- .styles-module__marker___6sQrs.styles-module__enter___WFIki {
1243
- animation: styles-module__markerIn___5FaAP 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
1244
- }
1245
- .styles-module__marker___6sQrs.styles-module__exit___fyOJ0 {
1246
- animation: styles-module__markerOut___GU5jX 0.2s ease-out both;
1247
- pointer-events: none;
1248
- }
1249
- .styles-module__marker___6sQrs.styles-module__clearing___FQ--7 {
1250
- animation: styles-module__markerOut___GU5jX 0.15s ease-out both;
1251
- pointer-events: none;
1252
- }
1253
- .styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7):hover {
1254
- transform: translate(-50%, -50%) scale(1.1);
1255
- }
1256
- .styles-module__marker___6sQrs.styles-module__pending___2IHLC {
1257
- position: fixed;
1258
- background-color: var(--agentation-color-blue);
1259
- }
1260
- .styles-module__marker___6sQrs.styles-module__fixed___dBMHC {
1261
- position: fixed;
1262
- }
1263
- .styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz {
1264
- background-color: var(--agentation-color-green);
1265
- width: 26px;
1266
- height: 26px;
1267
- border-radius: 6px;
1268
- font-size: 0.75rem;
1269
- }
1270
- .styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz.styles-module__pending___2IHLC {
1271
- background-color: var(--agentation-color-green);
1272
- }
1273
- .styles-module__marker___6sQrs.styles-module__hovered___ZgXIy {
1274
- background-color: var(--agentation-color-red);
1275
- }
1276
-
1277
- .styles-module__renumber___nCTxD {
1278
- display: block;
1279
- animation: styles-module__renumberRoll___Wgbq3 0.2s ease-out;
1280
- }
1281
-
1282
- @keyframes styles-module__renumberRoll___Wgbq3 {
1283
- 0% {
1284
- transform: translateX(-40%);
1285
- opacity: 0;
1286
- }
1287
- 100% {
1288
- transform: translateX(0);
1289
- opacity: 1;
1290
- }
1291
- }
1292
- .styles-module__markerTooltip___aLJID {
1293
- position: absolute;
1294
- top: calc(100% + 10px);
1295
- left: 50%;
1296
- transform: translateX(-50%) scale(0.909);
1297
- z-index: 100002;
1298
- background: #1a1a1a;
1299
- padding: 8px 0.75rem;
1300
- border-radius: 0.75rem;
1301
- font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
1302
- font-weight: 400;
1303
- color: #fff;
1304
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
1305
- min-width: 120px;
1306
- max-width: 200px;
1307
- pointer-events: none;
1308
- cursor: default;
1309
- }
1310
- .styles-module__markerTooltip___aLJID.styles-module__enter___WFIki {
1311
- animation: styles-module__tooltipIn___0N31w 0.1s ease-out forwards;
1312
- }
1313
-
1314
- .styles-module__markerQuote___FHmrz {
1315
- display: block;
1316
- font-size: 12px;
1317
- font-style: italic;
1318
- color: rgba(255, 255, 255, 0.6);
1319
- margin-bottom: 0.3125rem;
1320
- line-height: 1.4;
1321
- white-space: nowrap;
1322
- overflow: hidden;
1323
- text-overflow: ellipsis;
1324
- }
1325
-
1326
- .styles-module__markerNote___QkrrS {
1327
- display: block;
1328
- font-size: 13px;
1329
- font-weight: 400;
1330
- line-height: 1.4;
1331
- color: #fff;
1332
- white-space: nowrap;
1333
- overflow: hidden;
1334
- text-overflow: ellipsis;
1335
- padding-bottom: 2px;
1336
- }
1337
-
1338
- .styles-module__markerHint___2iF-6 {
1339
- display: block;
1340
- font-size: 0.625rem;
1341
- font-weight: 400;
1342
- color: rgba(255, 255, 255, 0.6);
1343
- margin-top: 0.375rem;
1344
- white-space: nowrap;
1345
- }
1346
-
1347
- .styles-module__settingsPanel___OxX3Y {
1348
- position: absolute;
1349
- right: 5px;
1350
- bottom: calc(100% + 0.5rem);
1351
- z-index: 1;
1352
- overflow: hidden;
1353
- background: #1c1c1c;
1354
- border-radius: 1rem;
1355
- padding: 13px 0 16px;
1356
- min-width: 205px;
1357
- cursor: default;
1358
- opacity: 1;
1359
- box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
1360
- transition: background-color 0.25s ease, box-shadow 0.25s ease;
1361
- }
1362
- .styles-module__settingsPanel___OxX3Y::before, .styles-module__settingsPanel___OxX3Y::after {
1363
- content: "";
1364
- position: absolute;
1365
- top: 0;
1366
- bottom: 0;
1367
- width: 16px;
1368
- z-index: 2;
1369
- pointer-events: none;
1370
- }
1371
- .styles-module__settingsPanel___OxX3Y::before {
1372
- left: 0;
1373
- background: linear-gradient(to right, #1c1c1c 0%, transparent 100%);
1374
- }
1375
- .styles-module__settingsPanel___OxX3Y::after {
1376
- right: 0;
1377
- background: linear-gradient(to left, #1c1c1c 0%, transparent 100%);
1378
- }
1379
- .styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9,
1380
- .styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM,
1381
- .styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18,
1382
- .styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq,
1383
- .styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2,
1384
- .styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX,
1385
- .styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw,
1386
- .styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY,
1387
- .styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz,
1388
- .styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa,
1389
- .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax,
1390
- .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr,
1391
- .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp,
1392
- .styles-module__settingsPanel___OxX3Y .styles-module__themeToggle___2rUjA {
1393
- transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
1394
- }
1395
- .styles-module__settingsPanel___OxX3Y.styles-module__enter___WFIki {
1396
- opacity: 1;
1397
- transform: translateY(0) scale(1);
1398
- filter: blur(0px);
1399
- transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
1400
- }
1401
- .styles-module__settingsPanel___OxX3Y.styles-module__exit___fyOJ0 {
1402
- opacity: 0;
1403
- transform: translateY(8px) scale(0.95);
1404
- filter: blur(5px);
1405
- pointer-events: none;
1406
- transition: opacity 0.1s ease, transform 0.1s ease, filter 0.1s ease;
1407
- }
1408
- [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y {
1409
- background: #1a1a1a;
1410
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
1411
- }
1412
- [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX {
1413
- color: rgba(255, 255, 255, 0.6);
1414
- }
1415
- [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsOption___UNa12 {
1416
- color: rgba(255, 255, 255, 0.85);
1417
- }
1418
- [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsOption___UNa12:hover {
1419
- background: rgba(255, 255, 255, 0.1);
1420
- }
1421
- [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {
1422
- background: rgba(255, 255, 255, 0.15);
1423
- color: #fff;
1424
- }
1425
- [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa {
1426
- color: rgba(255, 255, 255, 0.85);
1427
- }
1428
-
1429
- .styles-module__settingsPanelContainer___Xksv8 {
1430
- overflow: visible;
1431
- position: relative;
1432
- display: flex;
1433
- padding: 0 1rem;
1434
- }
1435
-
1436
- .styles-module__settingsPage___6YfHH {
1437
- min-width: 100%;
1438
- flex-shrink: 0;
1439
- transition: transform 0.2s ease, opacity 0.2s ease;
1440
- transition-delay: 0s;
1441
- opacity: 1;
1442
- }
1443
-
1444
- .styles-module__settingsPage___6YfHH.styles-module__slideLeft___Ps01J {
1445
- transform: translateX(-24px);
1446
- opacity: 0;
1447
- pointer-events: none;
1448
- }
1449
-
1450
- .styles-module__automationsPage___uvCq6 {
1451
- position: absolute;
1452
- top: 0;
1453
- left: 24px;
1454
- width: 100%;
1455
- height: 100%;
1456
- padding: 3px 1rem 0;
1457
- box-sizing: border-box;
1458
- display: flex;
1459
- flex-direction: column;
1460
- transition: transform 0.2s ease, opacity 0.2s ease;
1461
- opacity: 0;
1462
- pointer-events: none;
1463
- }
1464
-
1465
- .styles-module__automationsPage___uvCq6.styles-module__slideIn___4-qXe {
1466
- transform: translateX(-24px);
1467
- opacity: 1;
1468
- pointer-events: auto;
1469
- }
1470
-
1471
- .styles-module__settingsNavLink___wCzJt {
1472
- display: flex;
1473
- align-items: center;
1474
- justify-content: space-between;
1475
- width: 100%;
1476
- padding: 0;
1477
- border: none;
1478
- background: transparent;
1479
- font-family: inherit;
1480
- font-size: 0.8125rem;
1481
- font-weight: 400;
1482
- color: rgba(255, 255, 255, 0.5);
1483
- cursor: pointer;
1484
- transition: color 0.15s ease;
1485
- }
1486
- .styles-module__settingsNavLink___wCzJt:hover {
1487
- color: rgba(255, 255, 255, 0.9);
1488
- }
1489
- [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt {
1490
- color: rgba(0, 0, 0, 0.5);
1491
- }
1492
- [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt:hover {
1493
- color: rgba(0, 0, 0, 0.8);
1494
- }
1495
- .styles-module__settingsNavLink___wCzJt svg {
1496
- color: rgba(255, 255, 255, 0.4);
1497
- transition: color 0.15s ease;
1498
- }
1499
- .styles-module__settingsNavLink___wCzJt:hover svg {
1500
- color: #fff;
1501
- }
1502
- [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt svg {
1503
- color: rgba(0, 0, 0, 0.25);
1504
- }
1505
- [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt:hover svg {
1506
- color: rgba(0, 0, 0, 0.8);
1507
- }
1508
-
1509
- .styles-module__settingsNavLinkRight___ZWwhj {
1510
- display: flex;
1511
- align-items: center;
1512
- gap: 6px;
1513
- }
1514
-
1515
- .styles-module__mcpNavIndicator___cl9pO {
1516
- width: 8px;
1517
- height: 8px;
1518
- border-radius: 50%;
1519
- flex-shrink: 0;
1520
- }
1521
- .styles-module__mcpNavIndicator___cl9pO.styles-module__connected___7c28g {
1522
- background-color: var(--agentation-color-green);
1523
- animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;
1524
- }
1525
- .styles-module__mcpNavIndicator___cl9pO.styles-module__connecting___uo-CW {
1526
- background-color: var(--agentation-color-yellow);
1527
- animation: styles-module__mcpPulse___uNggr 1.5s ease-in-out infinite;
1528
- }
1529
-
1530
- .styles-module__settingsBackButton___bIe2j {
1531
- display: flex;
1532
- align-items: center;
1533
- gap: 4px;
1534
- padding: 6px 0 12px 0;
1535
- margin: -6px 0 0.5rem 0;
1536
- border: none;
1537
- border-bottom: 1px solid rgba(255, 255, 255, 0.07);
1538
- border-radius: 0;
1539
- background: transparent;
1540
- font-family: inherit;
1541
- font-size: 0.8125rem;
1542
- font-weight: 500;
1543
- letter-spacing: -0.15px;
1544
- color: #fff;
1545
- cursor: pointer;
1546
- transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1);
1547
- }
1548
- .styles-module__settingsBackButton___bIe2j svg {
1549
- opacity: 0.4;
1550
- flex-shrink: 0;
1551
- transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
1552
- }
1553
- .styles-module__settingsBackButton___bIe2j:hover {
1554
- border-bottom-color: rgba(255, 255, 255, 0.07);
1555
- }
1556
- .styles-module__settingsBackButton___bIe2j:hover svg {
1557
- opacity: 1;
1558
- }
1559
- [data-agentation-theme=light] .styles-module__settingsBackButton___bIe2j {
1560
- color: rgba(0, 0, 0, 0.85);
1561
- border-bottom-color: rgba(0, 0, 0, 0.08);
1562
- }
1563
- [data-agentation-theme=light] .styles-module__settingsBackButton___bIe2j:hover {
1564
- border-bottom-color: rgba(0, 0, 0, 0.08);
1565
- }
1566
-
1567
- .styles-module__automationHeader___InP0r {
1568
- display: flex;
1569
- align-items: center;
1570
- gap: 0.125rem;
1571
- font-size: 0.8125rem;
1572
- font-weight: 400;
1573
- color: #fff;
1574
- }
1575
- [data-agentation-theme=light] .styles-module__automationHeader___InP0r {
1576
- color: rgba(0, 0, 0, 0.85);
1577
- }
1578
-
1579
- .styles-module__automationDescription___NKlmo {
1580
- font-size: 0.6875rem;
1581
- font-weight: 300;
1582
- color: rgba(255, 255, 255, 0.5);
1583
- margin-top: 2px;
1584
- line-height: 14px;
1585
- }
1586
- [data-agentation-theme=light] .styles-module__automationDescription___NKlmo {
1587
- color: rgba(0, 0, 0, 0.5);
1588
- }
1589
-
1590
- .styles-module__learnMoreLink___8xv-x {
1591
- color: rgba(255, 255, 255, 0.8);
1592
- text-decoration: underline dotted;
1593
- text-decoration-color: rgba(255, 255, 255, 0.2);
1594
- text-underline-offset: 2px;
1595
- transition: color 0.15s ease;
1596
- }
1597
- .styles-module__learnMoreLink___8xv-x:hover {
1598
- color: #fff;
1599
- }
1600
- [data-agentation-theme=light] .styles-module__learnMoreLink___8xv-x {
1601
- color: rgba(0, 0, 0, 0.6);
1602
- text-decoration-color: rgba(0, 0, 0, 0.2);
1603
- }
1604
- [data-agentation-theme=light] .styles-module__learnMoreLink___8xv-x:hover {
1605
- color: rgba(0, 0, 0, 0.85);
1606
- }
1607
-
1608
- .styles-module__autoSendRow___UblX5 {
1609
- display: flex;
1610
- align-items: center;
1611
- gap: 8px;
1612
- }
1613
-
1614
- .styles-module__autoSendLabel___icDc2 {
1615
- font-size: 0.6875rem;
1616
- font-weight: 400;
1617
- color: rgba(255, 255, 255, 0.4);
1618
- transition: color 0.15s ease;
1619
- }
1620
- .styles-module__autoSendLabel___icDc2.styles-module__active___-zoN6 {
1621
- color: #66b8ff;
1622
- color: color(display-p3 0.4 0.72 1);
1623
- }
1624
- [data-agentation-theme=light] .styles-module__autoSendLabel___icDc2 {
1625
- color: rgba(0, 0, 0, 0.4);
1626
- }
1627
- [data-agentation-theme=light] .styles-module__autoSendLabel___icDc2.styles-module__active___-zoN6 {
1628
- color: var(--agentation-color-blue);
1629
- }
1630
-
1631
- .styles-module__webhookUrlInput___2375C {
1632
- display: block;
1633
- width: 100%;
1634
- flex: 1;
1635
- min-height: 60px;
1636
- box-sizing: border-box;
1637
- margin-top: 11px;
1638
- padding: 8px 10px;
1639
- border: 1px solid rgba(255, 255, 255, 0.1);
1640
- border-radius: 6px;
1641
- background: rgba(255, 255, 255, 0.03);
1642
- font-family: inherit;
1643
- font-size: 0.75rem;
1644
- font-weight: 400;
1645
- color: #fff;
1646
- outline: none;
1647
- resize: none;
1648
- cursor: text !important;
1649
- user-select: text;
1650
- transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
1651
- }
1652
- .styles-module__webhookUrlInput___2375C::placeholder {
1653
- color: rgba(255, 255, 255, 0.3);
1654
- }
1655
- .styles-module__webhookUrlInput___2375C:focus {
1656
- border-color: rgba(255, 255, 255, 0.3);
1657
- background: rgba(255, 255, 255, 0.08);
1658
- }
1659
- [data-agentation-theme=light] .styles-module__webhookUrlInput___2375C {
1660
- border-color: rgba(0, 0, 0, 0.1);
1661
- background: rgba(0, 0, 0, 0.03);
1662
- color: rgba(0, 0, 0, 0.85);
1663
- }
1664
- [data-agentation-theme=light] .styles-module__webhookUrlInput___2375C::placeholder {
1665
- color: rgba(0, 0, 0, 0.3);
1666
- }
1667
- [data-agentation-theme=light] .styles-module__webhookUrlInput___2375C:focus {
1668
- border-color: rgba(0, 0, 0, 0.25);
1669
- background: rgba(0, 0, 0, 0.05);
1670
- }
1671
-
1672
- .styles-module__settingsHeader___pwDY9 {
1673
- display: flex;
1674
- align-items: center;
1675
- justify-content: space-between;
1676
- min-height: 24px;
1677
- margin-bottom: 0.5rem;
1678
- padding-bottom: 9px;
1679
- border-bottom: 1px solid rgba(255, 255, 255, 0.07);
1680
- }
1681
-
1682
- .styles-module__settingsBrand___0gJeM {
1683
- font-size: 0.8125rem;
1684
- font-weight: 600;
1685
- letter-spacing: -0.0094em;
1686
- color: #fff;
1687
- }
1688
-
1689
- .styles-module__settingsBrandSlash___uTG18 {
1690
- color: var(--agentation-color-accent);
1691
- transition: color 0.2s ease;
1692
- }
1693
-
1694
- .styles-module__settingsVersion___TUcFq {
1695
- font-size: 11px;
1696
- font-weight: 400;
1697
- color: rgba(255, 255, 255, 0.4);
1698
- margin-left: auto;
1699
- letter-spacing: -0.0094em;
1700
- }
1701
-
1702
- .styles-module__settingsSection___m-YM2 + .styles-module__settingsSection___m-YM2 {
1703
- margin-top: 0.5rem;
1704
- padding-top: 0.5rem;
1705
- border-top: 1px solid rgba(255, 255, 255, 0.07);
1706
- }
1707
- .styles-module__settingsSection___m-YM2.styles-module__settingsSectionExtraPadding___jdhFV {
1708
- padding-top: calc(0.5rem + 4px);
1709
- }
1710
-
1711
- .styles-module__settingsSectionGrow___h-5HZ {
1712
- flex: 1;
1713
- display: flex;
1714
- flex-direction: column;
1715
- }
1716
-
1717
- .styles-module__settingsRow___3sdhc {
1718
- display: flex;
1719
- align-items: center;
1720
- justify-content: space-between;
1721
- min-height: 24px;
1722
- }
1723
- .styles-module__settingsRow___3sdhc.styles-module__settingsRowMarginTop___zA0Sp {
1724
- margin-top: 8px;
1725
- }
1726
-
1727
- .styles-module__dropdownContainer___BVnxe {
1728
- position: relative;
1729
- }
1730
-
1731
- .styles-module__dropdownButton___16NPz {
1732
- display: flex;
1733
- align-items: center;
1734
- gap: 0.5rem;
1735
- padding: 0.25rem 0.5rem;
1736
- border: none;
1737
- border-radius: 0.375rem;
1738
- background: transparent;
1739
- font-size: 0.8125rem;
1740
- font-weight: 600;
1741
- color: #fff;
1742
- cursor: pointer;
1743
- transition: background-color 0.15s ease, color 0.15s ease;
1744
- letter-spacing: -0.0094em;
1745
- }
1746
- .styles-module__dropdownButton___16NPz:hover {
1747
- background: rgba(255, 255, 255, 0.08);
1748
- }
1749
- .styles-module__dropdownButton___16NPz svg {
1750
- opacity: 0.6;
1751
- }
1752
-
1753
- .styles-module__cycleButton___FMKfw {
1754
- display: flex;
1755
- align-items: center;
1756
- gap: 0.5rem;
1757
- padding: 0;
1758
- border: none;
1759
- background: transparent;
1760
- font-size: 0.8125rem;
1761
- font-weight: 500;
1762
- color: #fff;
1763
- cursor: pointer;
1764
- letter-spacing: -0.0094em;
1765
- }
1766
- [data-agentation-theme=light] .styles-module__cycleButton___FMKfw {
1767
- color: rgba(0, 0, 0, 0.85);
1768
- }
1769
- .styles-module__cycleButton___FMKfw:disabled {
1770
- opacity: 0.35;
1771
- cursor: not-allowed;
1772
- }
1773
-
1774
- .styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX {
1775
- color: rgba(255, 255, 255, 0.2);
1776
- }
1777
- [data-agentation-theme=light] .styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX {
1778
- color: rgba(0, 0, 0, 0.2);
1779
- }
1780
- .styles-module__settingsRowDisabled___EgS0V .styles-module__toggleSwitch___l4Ygm {
1781
- opacity: 0.4;
1782
- cursor: not-allowed;
1783
- }
1784
-
1785
- @keyframes styles-module__cycleTextIn___Q6zJf {
1786
- 0% {
1787
- opacity: 0;
1788
- transform: translateY(-6px);
1789
- }
1790
- 100% {
1791
- opacity: 1;
1792
- transform: translateY(0);
1793
- }
1794
- }
1795
- .styles-module__cycleButtonText___fD1LR {
1796
- display: inline-block;
1797
- animation: styles-module__cycleTextIn___Q6zJf 0.2s ease-out;
1798
- }
1799
-
1800
- .styles-module__cycleDots___LWuoQ {
1801
- display: flex;
1802
- flex-direction: column;
1803
- gap: 2px;
1804
- }
1805
-
1806
- .styles-module__cycleDot___nPgLY {
1807
- width: 3px;
1808
- height: 3px;
1809
- border-radius: 50%;
1810
- background: rgba(255, 255, 255, 0.3);
1811
- transform: scale(0.667);
1812
- transition: background-color 0.25s ease-out, transform 0.25s ease-out;
1813
- }
1814
- .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
1815
- background: #fff;
1816
- transform: scale(1);
1817
- }
1818
- [data-agentation-theme=light] .styles-module__cycleDot___nPgLY {
1819
- background: rgba(0, 0, 0, 0.2);
1820
- }
1821
- [data-agentation-theme=light] .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
1822
- background: rgba(0, 0, 0, 0.7);
1823
- }
1824
-
1825
- .styles-module__dropdownMenu___k73ER {
1826
- position: absolute;
1827
- right: 0;
1828
- top: calc(100% + 0.25rem);
1829
- background: #1a1a1a;
1830
- border-radius: 0.5rem;
1831
- padding: 0.25rem;
1832
- min-width: 120px;
1833
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
1834
- z-index: 10;
1835
- animation: styles-module__scaleIn___c-r1K 0.15s ease-out;
1836
- }
1837
-
1838
- .styles-module__dropdownItem___ylsLj {
1839
- width: 100%;
1840
- display: flex;
1841
- align-items: center;
1842
- padding: 0.5rem 0.625rem;
1843
- border: none;
1844
- border-radius: 0.375rem;
1845
- background: transparent;
1846
- font-size: 0.8125rem;
1847
- font-weight: 500;
1848
- color: rgba(255, 255, 255, 0.85);
1849
- cursor: pointer;
1850
- text-align: left;
1851
- transition: background-color 0.15s ease, color 0.15s ease;
1852
- letter-spacing: -0.0094em;
1853
- }
1854
- .styles-module__dropdownItem___ylsLj:hover {
1855
- background: rgba(255, 255, 255, 0.08);
1856
- }
1857
- .styles-module__dropdownItem___ylsLj.styles-module__selected___OwRqP {
1858
- background: rgba(255, 255, 255, 0.12);
1859
- color: #fff;
1860
- font-weight: 600;
1861
- }
1862
-
1863
- .styles-module__settingsLabel___8UjfX {
1864
- font-size: 0.8125rem;
1865
- font-weight: 400;
1866
- letter-spacing: -0.0094em;
1867
- color: rgba(255, 255, 255, 0.5);
1868
- display: flex;
1869
- align-items: center;
1870
- gap: 0.125rem;
1871
- }
1872
- [data-agentation-theme=light] .styles-module__settingsLabel___8UjfX {
1873
- color: rgba(0, 0, 0, 0.5);
1874
- }
1875
-
1876
- .styles-module__settingsLabelMarker___ewdtV {
1877
- padding-top: 3px;
1878
- margin-bottom: 10px;
1879
- }
1880
-
1881
- .styles-module__settingsOptions___LyrBA {
1882
- display: flex;
1883
- gap: 0.25rem;
1884
- }
1885
-
1886
- .styles-module__settingsOption___UNa12 {
1887
- flex: 1;
1888
- display: flex;
1889
- align-items: center;
1890
- justify-content: center;
1891
- gap: 0.25rem;
1892
- padding: 0.375rem 0.5rem;
1893
- border: none;
1894
- border-radius: 0.375rem;
1895
- background: transparent;
1896
- font-size: 0.6875rem;
1897
- font-weight: 500;
1898
- color: rgba(0, 0, 0, 0.7);
1899
- cursor: pointer;
1900
- transition: background-color 0.15s ease, color 0.15s ease;
1901
- }
1902
- .styles-module__settingsOption___UNa12:hover {
1903
- background: rgba(0, 0, 0, 0.05);
1904
- }
1905
- .styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {
1906
- background: color-mix(in srgb, var(--agentation-color-blue) 15%, transparent);
1907
- color: var(--agentation-color-blue);
1908
- }
1909
-
1910
- .styles-module__sliderContainer___ducXj {
1911
- display: flex;
1912
- flex-direction: column;
1913
- gap: 0.5rem;
1914
- }
1915
-
1916
- .styles-module__slider___GLdxp {
1917
- -webkit-appearance: none;
1918
- appearance: none;
1919
- width: 100%;
1920
- height: 4px;
1921
- background: rgba(255, 255, 255, 0.15);
1922
- border-radius: 2px;
1923
- outline: none;
1924
- cursor: pointer;
1925
- }
1926
- .styles-module__slider___GLdxp::-webkit-slider-thumb {
1927
- -webkit-appearance: none;
1928
- appearance: none;
1929
- width: 14px;
1930
- height: 14px;
1931
- background: white;
1932
- border-radius: 50%;
1933
- cursor: pointer;
1934
- transition: transform 0.15s ease, box-shadow 0.15s ease;
1935
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
1936
- }
1937
- .styles-module__slider___GLdxp::-moz-range-thumb {
1938
- width: 14px;
1939
- height: 14px;
1940
- background: white;
1941
- border: none;
1942
- border-radius: 50%;
1943
- cursor: pointer;
1944
- transition: transform 0.15s ease, box-shadow 0.15s ease;
1945
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
1946
- }
1947
- .styles-module__slider___GLdxp:hover::-webkit-slider-thumb {
1948
- transform: scale(1.15);
1949
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
1950
- }
1951
- .styles-module__slider___GLdxp:hover::-moz-range-thumb {
1952
- transform: scale(1.15);
1953
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
1954
- }
1955
-
1956
- .styles-module__sliderLabels___FhLDB {
1957
- display: flex;
1958
- justify-content: space-between;
1959
- }
1960
-
1961
- .styles-module__sliderLabel___U8sPr {
1962
- font-size: 0.625rem;
1963
- font-weight: 500;
1964
- color: rgba(255, 255, 255, 0.4);
1965
- cursor: pointer;
1966
- transition: color 0.15s ease;
1967
- }
1968
- .styles-module__sliderLabel___U8sPr:hover {
1969
- color: rgba(255, 255, 255, 0.7);
1970
- }
1971
- .styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {
1972
- color: rgba(255, 255, 255, 0.9);
1973
- }
1974
-
1975
- .styles-module__colorOptions___iHCNX {
1976
- display: flex;
1977
- gap: 0.5rem;
1978
- margin-top: 0.375rem;
1979
- margin-bottom: 1px;
1980
- }
1981
-
1982
- .styles-module__colorOption___IodiY {
1983
- display: block;
1984
- width: 20px;
1985
- height: 20px;
1986
- border-radius: 50%;
1987
- border: 2px solid transparent;
1988
- background-color: var(--swatch);
1989
- cursor: pointer;
1990
- transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
1991
- }
1992
- @supports (color: color(display-p3 0 0 0)) {
1993
- .styles-module__colorOption___IodiY {
1994
- background-color: var(--swatch-p3);
1995
- }
1996
- }
1997
- .styles-module__colorOption___IodiY:hover {
1998
- transform: scale(1.15);
1999
- }
2000
- .styles-module__colorOption___IodiY.styles-module__selected___OwRqP {
2001
- transform: scale(0.83);
2002
- }
2003
-
2004
- .styles-module__colorOptionRing___U2xpo {
2005
- display: flex;
2006
- width: 24px;
2007
- height: 24px;
2008
- border: 2px solid transparent;
2009
- border-radius: 50%;
2010
- transition: border-color 0.3s ease;
2011
- }
2012
- .styles-module__colorOptionRing___U2xpo.styles-module__selected___OwRqP {
2013
- border-color: var(--swatch);
2014
- }
2015
- @supports (color: color(display-p3 0 0 0)) {
2016
- .styles-module__colorOptionRing___U2xpo.styles-module__selected___OwRqP {
2017
- border-color: var(--swatch-p3);
2018
- }
2019
- }
2020
-
2021
- .styles-module__settingsToggle___fBrFn {
2022
- display: flex;
2023
- align-items: center;
2024
- gap: 0.5rem;
2025
- cursor: pointer;
2026
- }
2027
- .styles-module__settingsToggle___fBrFn + .styles-module__settingsToggle___fBrFn {
2028
- margin-top: calc(0.5rem + 6px);
2029
- }
2030
- .styles-module__settingsToggle___fBrFn input[type=checkbox] {
2031
- position: absolute;
2032
- opacity: 0;
2033
- width: 0;
2034
- height: 0;
2035
- }
2036
- .styles-module__settingsToggle___fBrFn.styles-module__settingsToggleMarginBottom___MZUyF {
2037
- margin-bottom: calc(0.5rem + 6px);
2038
- }
2039
-
2040
- .styles-module__customCheckbox___U39ax {
2041
- position: relative;
2042
- width: 14px;
2043
- height: 14px;
2044
- border: 1px solid rgba(255, 255, 255, 0.2);
2045
- border-radius: 4px;
2046
- background: rgba(255, 255, 255, 0.05);
2047
- display: flex;
2048
- align-items: center;
2049
- justify-content: center;
2050
- flex-shrink: 0;
2051
- transition: background-color 0.25s ease, border-color 0.25s ease;
2052
- }
2053
- .styles-module__customCheckbox___U39ax svg {
2054
- color: #1a1a1a;
2055
- opacity: 1;
2056
- transition: opacity 0.15s ease;
2057
- }
2058
- input[type=checkbox]:checked + .styles-module__customCheckbox___U39ax {
2059
- border-color: rgba(255, 255, 255, 0.3);
2060
- background: rgb(255, 255, 255);
2061
- }
2062
- [data-agentation-theme=light] .styles-module__customCheckbox___U39ax {
2063
- border: 1px solid rgba(0, 0, 0, 0.15);
2064
- background: #fff;
2065
- }
2066
- [data-agentation-theme=light] .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo {
2067
- border-color: #1a1a1a;
2068
- background: #1a1a1a;
2069
- }
2070
- [data-agentation-theme=light] .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo svg {
2071
- color: #fff;
2072
- }
2073
-
2074
- .styles-module__toggleLabel___Xm8Aa {
2075
- font-size: 0.8125rem;
2076
- font-weight: 400;
2077
- color: rgba(255, 255, 255, 0.5);
2078
- letter-spacing: -0.0094em;
2079
- display: flex;
2080
- align-items: center;
2081
- gap: 0.25rem;
2082
- }
2083
- [data-agentation-theme=light] .styles-module__toggleLabel___Xm8Aa {
2084
- color: rgba(0, 0, 0, 0.5);
2085
- }
2086
-
2087
- .styles-module__toggleSwitch___l4Ygm {
2088
- position: relative;
2089
- display: inline-block;
2090
- width: 24px;
2091
- height: 16px;
2092
- flex-shrink: 0;
2093
- cursor: pointer;
2094
- transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
2095
- }
2096
- .styles-module__toggleSwitch___l4Ygm input {
2097
- opacity: 0;
2098
- width: 0;
2099
- height: 0;
2100
- }
2101
- .styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn {
2102
- background-color: var(--agentation-color-blue);
2103
- }
2104
- .styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn::before {
2105
- transform: translateX(8px);
2106
- }
2107
- .styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw {
2108
- opacity: 0.4;
2109
- pointer-events: none;
2110
- }
2111
- .styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw .styles-module__toggleSlider___wprIn {
2112
- cursor: not-allowed;
2113
- }
2114
-
2115
- .styles-module__toggleSlider___wprIn {
2116
- position: absolute;
2117
- cursor: pointer;
2118
- inset: 0;
2119
- border-radius: 16px;
2120
- background: #484848;
2121
- }
2122
- [data-agentation-theme=light] .styles-module__toggleSlider___wprIn {
2123
- background: #dddddd;
2124
- }
2125
- .styles-module__toggleSlider___wprIn::before {
2126
- content: "";
2127
- position: absolute;
2128
- height: 12px;
2129
- width: 12px;
2130
- left: 2px;
2131
- bottom: 2px;
2132
- background: white;
2133
- border-radius: 50%;
2134
- transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
2135
- }
2136
-
2137
- @keyframes styles-module__mcpPulse___uNggr {
2138
- 0% {
2139
- box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-green) 50%, transparent);
2140
- }
2141
- 70% {
2142
- box-shadow: 0 0 0 6px color-mix(in srgb, var(--agentation-color-green) 0%, transparent);
2143
- }
2144
- 100% {
2145
- box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-green) 0%, transparent);
2146
- }
2147
- }
2148
- @keyframes styles-module__mcpPulseError___fov9B {
2149
- 0% {
2150
- box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-red) 50%, transparent);
2151
- }
2152
- 70% {
2153
- box-shadow: 0 0 0 6px color-mix(in srgb, var(--agentation-color-red) 0%, transparent);
2154
- }
2155
- 100% {
2156
- box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-red) 0%, transparent);
2157
- }
2158
- }
2159
- .styles-module__mcpStatusDot___ibgkc {
2160
- width: 8px;
2161
- height: 8px;
2162
- border-radius: 50%;
2163
- flex-shrink: 0;
2164
- }
2165
- .styles-module__mcpStatusDot___ibgkc.styles-module__connecting___uo-CW {
2166
- background-color: var(--agentation-color-yellow);
2167
- animation: styles-module__mcpPulse___uNggr 1.5s infinite;
2168
- }
2169
- .styles-module__mcpStatusDot___ibgkc.styles-module__connected___7c28g {
2170
- background-color: var(--agentation-color-green);
2171
- animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;
2172
- }
2173
- .styles-module__mcpStatusDot___ibgkc.styles-module__disconnected___cHPxR {
2174
- background-color: var(--agentation-color-red);
2175
- animation: styles-module__mcpPulseError___fov9B 2s infinite;
2176
- }
2177
-
2178
- .styles-module__dragSelection___kZLq2 {
2179
- position: fixed;
2180
- top: 0;
2181
- left: 0;
2182
- border: 2px solid color-mix(in srgb, var(--agentation-color-green) 60%, transparent);
2183
- border-radius: 4px;
2184
- background-color: color-mix(in srgb, var(--agentation-color-green) 8%, transparent);
2185
- pointer-events: none;
2186
- z-index: 99997;
2187
- will-change: transform, width, height;
2188
- contain: layout style;
2189
- }
2190
-
2191
- .styles-module__dragCount___KM90j {
2192
- position: absolute;
2193
- top: 50%;
2194
- left: 50%;
2195
- transform: translate(-50%, -50%);
2196
- background-color: var(--agentation-color-green);
2197
- color: white;
2198
- font-size: 0.875rem;
2199
- font-weight: 600;
2200
- padding: 0.25rem 0.5rem;
2201
- border-radius: 1rem;
2202
- min-width: 1.5rem;
2203
- text-align: center;
2204
- }
2205
-
2206
- .styles-module__highlightsContainer___-0xzG {
2207
- position: fixed;
2208
- top: 0;
2209
- left: 0;
2210
- pointer-events: none;
2211
- z-index: 99996;
2212
- }
2213
-
2214
- .styles-module__selectedElementHighlight___fyVlI {
2215
- position: fixed;
2216
- top: 0;
2217
- left: 0;
2218
- border: 2px solid color-mix(in srgb, var(--agentation-color-green) 50%, transparent);
2219
- border-radius: 4px;
2220
- background: color-mix(in srgb, var(--agentation-color-green) 6%, transparent);
2221
- pointer-events: none;
2222
- will-change: transform, width, height;
2223
- contain: layout style;
2224
- }
2225
-
2226
- [data-agentation-theme=light] .styles-module__toolbarContainer___dIhma {
2227
- background: #fff;
2228
- color: rgba(0, 0, 0, 0.85);
2229
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
2230
- }
2231
- [data-agentation-theme=light] .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {
2232
- background: #f5f5f5;
2233
- }
2234
- [data-agentation-theme=light] .styles-module__controlButton___8Q0jc {
2235
- color: rgba(0, 0, 0, 0.5);
2236
- }
2237
- [data-agentation-theme=light] .styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {
2238
- background: rgba(0, 0, 0, 0.06);
2239
- color: rgba(0, 0, 0, 0.85);
2240
- }
2241
- [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-active=true] {
2242
- color: var(--agentation-color-blue);
2243
- background: color-mix(in srgb, var(--agentation-color-blue) 15%, transparent);
2244
- }
2245
- [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-error=true] {
2246
- color: var(--agentation-color-red);
2247
- background: color-mix(in srgb, var(--agentation-color-red) 15%, transparent);
2248
- }
2249
- [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {
2250
- color: var(--agentation-color-red);
2251
- background: color-mix(in srgb, var(--agentation-color-red) 15%, transparent);
2252
- }
2253
- [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-auto-sync=true] {
2254
- color: var(--agentation-color-green);
2255
- background: transparent;
2256
- }
2257
- [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-failed=true] {
2258
- color: var(--agentation-color-red);
2259
- background: color-mix(in srgb, var(--agentation-color-red) 15%, transparent);
2260
- }
2261
- [data-agentation-theme=light] .styles-module__buttonTooltip___Burd9 {
2262
- background: #fff;
2263
- color: rgba(0, 0, 0, 0.85);
2264
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
2265
- }
2266
- [data-agentation-theme=light] .styles-module__buttonTooltip___Burd9::after {
2267
- background: #fff;
2268
- }
2269
- [data-agentation-theme=light] .styles-module__divider___c--s1 {
2270
- background: rgba(0, 0, 0, 0.1);
2271
- }
2272
- [data-agentation-theme=light] .styles-module__markerTooltip___aLJID {
2273
- background: #fff;
2274
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
2275
- }
2276
- [data-agentation-theme=light] .styles-module__markerTooltip___aLJID .styles-module__markerQuote___FHmrz {
2277
- color: rgba(0, 0, 0, 0.5);
2278
- }
2279
- [data-agentation-theme=light] .styles-module__markerTooltip___aLJID .styles-module__markerNote___QkrrS {
2280
- color: rgba(0, 0, 0, 0.85);
2281
- }
2282
- [data-agentation-theme=light] .styles-module__markerTooltip___aLJID .styles-module__markerHint___2iF-6 {
2283
- color: rgba(0, 0, 0, 0.35);
2284
- }
2285
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y {
2286
- background: #fff;
2287
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
2288
- }
2289
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y::before {
2290
- background: linear-gradient(to right, #fff 0%, transparent 100%);
2291
- }
2292
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y::after {
2293
- background: linear-gradient(to left, #fff 0%, transparent 100%);
2294
- }
2295
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9 {
2296
- border-bottom-color: rgba(0, 0, 0, 0.08);
2297
- }
2298
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM {
2299
- color: rgba(0, 0, 0, 0.85);
2300
- }
2301
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq {
2302
- color: rgba(0, 0, 0, 0.4);
2303
- }
2304
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2 {
2305
- border-top-color: rgba(0, 0, 0, 0.08);
2306
- }
2307
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX {
2308
- color: rgba(0, 0, 0, 0.5);
2309
- }
2310
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw {
2311
- color: rgba(0, 0, 0, 0.85);
2312
- }
2313
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY {
2314
- background: rgba(0, 0, 0, 0.2);
2315
- }
2316
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
2317
- background: rgba(0, 0, 0, 0.7);
2318
- }
2319
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz {
2320
- color: rgba(0, 0, 0, 0.85);
2321
- }
2322
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz:hover {
2323
- background: rgba(0, 0, 0, 0.05);
2324
- }
2325
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa {
2326
- color: rgba(0, 0, 0, 0.5);
2327
- }
2328
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax {
2329
- border: 1px solid rgba(0, 0, 0, 0.15);
2330
- background: #fff;
2331
- }
2332
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo {
2333
- border-color: #1a1a1a;
2334
- background: #1a1a1a;
2335
- }
2336
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo svg {
2337
- color: #fff;
2338
- }
2339
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr {
2340
- color: rgba(0, 0, 0, 0.4);
2341
- }
2342
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr:hover {
2343
- color: rgba(0, 0, 0, 0.7);
2344
- }
2345
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {
2346
- color: rgba(0, 0, 0, 0.9);
2347
- }
2348
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp {
2349
- background: rgba(0, 0, 0, 0.1);
2350
- }
2351
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-webkit-slider-thumb {
2352
- background: #1a1a1a;
2353
- }
2354
- [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-moz-range-thumb {
2355
- background: #1a1a1a;
2356
- }
2357
-
2358
- .styles-module__themeToggle___2rUjA {
2359
- display: flex;
2360
- align-items: center;
2361
- justify-content: center;
2362
- width: 22px;
2363
- height: 22px;
2364
- margin-left: 0.5rem;
2365
- border: none;
2366
- border-radius: 6px;
2367
- background: transparent;
2368
- color: rgba(255, 255, 255, 0.4);
2369
- cursor: pointer;
2370
- transition: background-color 0.15s ease, color 0.15s ease;
2371
- }
2372
- .styles-module__themeToggle___2rUjA:hover {
2373
- background: rgba(255, 255, 255, 0.1);
2374
- color: rgba(255, 255, 255, 0.8);
2375
- }
2376
- [data-agentation-theme=light] .styles-module__themeToggle___2rUjA {
2377
- color: rgba(0, 0, 0, 0.4);
2378
- }
2379
- [data-agentation-theme=light] .styles-module__themeToggle___2rUjA:hover {
2380
- background: rgba(0, 0, 0, 0.06);
2381
- color: rgba(0, 0, 0, 0.7);
2382
- }
2383
-
2384
- .styles-module__themeIconWrapper___LsJIM {
2385
- display: flex;
2386
- align-items: center;
2387
- justify-content: center;
2388
- position: relative;
2389
- width: 20px;
2390
- height: 20px;
2391
- }
2392
-
2393
- .styles-module__themeIcon___lCCmo {
2394
- display: flex;
2395
- align-items: center;
2396
- justify-content: center;
2397
- animation: styles-module__themeIconIn___TU6ML 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
2398
- }
2399
-
2400
- @keyframes styles-module__themeIconIn___TU6ML {
2401
- 0% {
2402
- opacity: 0;
2403
- transform: scale(0.8) rotate(-30deg);
2404
- }
2405
- 100% {
2406
- opacity: 1;
2407
- transform: scale(1) rotate(0deg);
2408
- }
2409
- }`,Hk={toolbar:"styles-module__toolbar___wNsdK",markersLayer:"styles-module__markersLayer___-25j1",fixedMarkersLayer:"styles-module__fixedMarkersLayer___ffyX6",disableTransitions:"styles-module__disableTransitions___EopxO",toolbarContainer:"styles-module__toolbarContainer___dIhma",dragging:"styles-module__dragging___xrolZ",entrance:"styles-module__entrance___sgHd8",toolbarEnter:"styles-module__toolbarEnter___u8RRu",hiding:"styles-module__hiding___1td44",toolbarHide:"styles-module__toolbarHide___y8kaT",collapsed:"styles-module__collapsed___Rydsn",expanded:"styles-module__expanded___ofKPx",serverConnected:"styles-module__serverConnected___Gfbou",toggleContent:"styles-module__toggleContent___0yfyP",visible:"styles-module__visible___KHwEW",hidden:"styles-module__hidden___Ae8H4",controlsContent:"styles-module__controlsContent___9GJWU",badge:"styles-module__badge___2XsgF",fadeOut:"styles-module__fadeOut___6Ut6-",badgeEnter:"styles-module__badgeEnter___mVQLj",controlButton:"styles-module__controlButton___8Q0jc",statusShowing:"styles-module__statusShowing___te6iu",buttonBadge:"styles-module__buttonBadge___NeFWb",mcpIndicator:"styles-module__mcpIndicator___zGJeL",connected:"styles-module__connected___7c28g",mcpIndicatorPulseConnected:"styles-module__mcpIndicatorPulseConnected___EDodZ",connecting:"styles-module__connecting___uo-CW",mcpIndicatorPulseConnecting:"styles-module__mcpIndicatorPulseConnecting___cCYte",connectionIndicatorWrapper:"styles-module__connectionIndicatorWrapper___L-e-3",connectionIndicator:"styles-module__connectionIndicator___afk9p",connectionIndicatorVisible:"styles-module__connectionIndicatorVisible___C-i5B",connectionIndicatorConnected:"styles-module__connectionIndicatorConnected___IY8pR",connectionPulse:"styles-module__connectionPulse___-Zycw",connectionIndicatorDisconnected:"styles-module__connectionIndicatorDisconnected___kmpaZ",connectionIndicatorConnecting:"styles-module__connectionIndicatorConnecting___QmSLH",buttonWrapper:"styles-module__buttonWrapper___rBcdv",buttonTooltip:"styles-module__buttonTooltip___Burd9",tooltipsInSession:"styles-module__tooltipsInSession___-0lHH",sendButtonWrapper:"styles-module__sendButtonWrapper___UUxG6",sendButtonVisible:"styles-module__sendButtonVisible___WPSQU",shortcut:"styles-module__shortcut___lEAQk",tooltipBelow:"styles-module__tooltipBelow___m6ats",tooltipsHidden:"styles-module__tooltipsHidden___VtLJG",tooltipVisible:"styles-module__tooltipVisible___0jcCv",buttonWrapperAlignLeft:"styles-module__buttonWrapperAlignLeft___myzIp",buttonWrapperAlignRight:"styles-module__buttonWrapperAlignRight___HCQFR",divider:"styles-module__divider___c--s1",overlay:"styles-module__overlay___Q1O9y",hoverHighlight:"styles-module__hoverHighlight___ogakW",enter:"styles-module__enter___WFIki",hoverHighlightIn:"styles-module__hoverHighlightIn___6WYHY",multiSelectOutline:"styles-module__multiSelectOutline___cSJ-m",fadeIn:"styles-module__fadeIn___b9qmf",exit:"styles-module__exit___fyOJ0",singleSelectOutline:"styles-module__singleSelectOutline___QhX-O",hoverTooltip:"styles-module__hoverTooltip___bvLk7",hoverTooltipIn:"styles-module__hoverTooltipIn___FYGQx",hoverReactPath:"styles-module__hoverReactPath___gx1IJ",hoverElementName:"styles-module__hoverElementName___QMLMl",marker:"styles-module__marker___6sQrs",clearing:"styles-module__clearing___FQ--7",markerIn:"styles-module__markerIn___5FaAP",markerOut:"styles-module__markerOut___GU5jX",pending:"styles-module__pending___2IHLC",fixed:"styles-module__fixed___dBMHC",multiSelect:"styles-module__multiSelect___YWiuz",hovered:"styles-module__hovered___ZgXIy",renumber:"styles-module__renumber___nCTxD",renumberRoll:"styles-module__renumberRoll___Wgbq3",markerTooltip:"styles-module__markerTooltip___aLJID",tooltipIn:"styles-module__tooltipIn___0N31w",markerQuote:"styles-module__markerQuote___FHmrz",markerNote:"styles-module__markerNote___QkrrS",markerHint:"styles-module__markerHint___2iF-6",settingsPanel:"styles-module__settingsPanel___OxX3Y",settingsHeader:"styles-module__settingsHeader___pwDY9",settingsBrand:"styles-module__settingsBrand___0gJeM",settingsBrandSlash:"styles-module__settingsBrandSlash___uTG18",settingsVersion:"styles-module__settingsVersion___TUcFq",settingsSection:"styles-module__settingsSection___m-YM2",settingsLabel:"styles-module__settingsLabel___8UjfX",cycleButton:"styles-module__cycleButton___FMKfw",cycleDot:"styles-module__cycleDot___nPgLY",dropdownButton:"styles-module__dropdownButton___16NPz",toggleLabel:"styles-module__toggleLabel___Xm8Aa",customCheckbox:"styles-module__customCheckbox___U39ax",sliderLabel:"styles-module__sliderLabel___U8sPr",slider:"styles-module__slider___GLdxp",themeToggle:"styles-module__themeToggle___2rUjA",settingsOption:"styles-module__settingsOption___UNa12",selected:"styles-module__selected___OwRqP",settingsPanelContainer:"styles-module__settingsPanelContainer___Xksv8",settingsPage:"styles-module__settingsPage___6YfHH",slideLeft:"styles-module__slideLeft___Ps01J",automationsPage:"styles-module__automationsPage___uvCq6",slideIn:"styles-module__slideIn___4-qXe",settingsNavLink:"styles-module__settingsNavLink___wCzJt",settingsNavLinkRight:"styles-module__settingsNavLinkRight___ZWwhj",mcpNavIndicator:"styles-module__mcpNavIndicator___cl9pO",mcpPulse:"styles-module__mcpPulse___uNggr",settingsBackButton:"styles-module__settingsBackButton___bIe2j",automationHeader:"styles-module__automationHeader___InP0r",automationDescription:"styles-module__automationDescription___NKlmo",learnMoreLink:"styles-module__learnMoreLink___8xv-x",autoSendRow:"styles-module__autoSendRow___UblX5",autoSendLabel:"styles-module__autoSendLabel___icDc2",active:"styles-module__active___-zoN6",webhookUrlInput:"styles-module__webhookUrlInput___2375C",settingsSectionExtraPadding:"styles-module__settingsSectionExtraPadding___jdhFV",settingsSectionGrow:"styles-module__settingsSectionGrow___h-5HZ",settingsRow:"styles-module__settingsRow___3sdhc",settingsRowMarginTop:"styles-module__settingsRowMarginTop___zA0Sp",dropdownContainer:"styles-module__dropdownContainer___BVnxe",settingsRowDisabled:"styles-module__settingsRowDisabled___EgS0V",toggleSwitch:"styles-module__toggleSwitch___l4Ygm",cycleButtonText:"styles-module__cycleButtonText___fD1LR",cycleTextIn:"styles-module__cycleTextIn___Q6zJf",cycleDots:"styles-module__cycleDots___LWuoQ",dropdownMenu:"styles-module__dropdownMenu___k73ER",scaleIn:"styles-module__scaleIn___c-r1K",dropdownItem:"styles-module__dropdownItem___ylsLj",settingsLabelMarker:"styles-module__settingsLabelMarker___ewdtV",settingsOptions:"styles-module__settingsOptions___LyrBA",sliderContainer:"styles-module__sliderContainer___ducXj",sliderLabels:"styles-module__sliderLabels___FhLDB",colorOptions:"styles-module__colorOptions___iHCNX",colorOption:"styles-module__colorOption___IodiY",colorOptionRing:"styles-module__colorOptionRing___U2xpo",settingsToggle:"styles-module__settingsToggle___fBrFn",settingsToggleMarginBottom:"styles-module__settingsToggleMarginBottom___MZUyF",checked:"styles-module__checked___mnZLo",toggleSlider:"styles-module__toggleSlider___wprIn",disabled:"styles-module__disabled___332Jw",mcpStatusDot:"styles-module__mcpStatusDot___ibgkc",disconnected:"styles-module__disconnected___cHPxR",mcpPulseError:"styles-module__mcpPulseError___fov9B",dragSelection:"styles-module__dragSelection___kZLq2",dragCount:"styles-module__dragCount___KM90j",highlightsContainer:"styles-module__highlightsContainer___-0xzG",selectedElementHighlight:"styles-module__selectedElementHighlight___fyVlI",themeIconWrapper:"styles-module__themeIconWrapper___LsJIM",themeIcon:"styles-module__themeIcon___lCCmo",themeIconIn:"styles-module__themeIconIn___TU6ML",scaleOut:"styles-module__scaleOut___Wctwz",slideUp:"styles-module__slideUp___kgD36",slideDown:"styles-module__slideDown___zcdje",settingsPanelIn:"styles-module__settingsPanelIn___MGfO8",settingsPanelOut:"styles-module__settingsPanelOut___Zfymi"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-page-toolbar-css-styles");e||(e=document.createElement("style"),e.id="feedback-tool-styles-page-toolbar-css-styles",e.textContent=Wk,document.head.appendChild(e))}var C=Hk,Uk=({content:e,children:t,...n})=>{const[r,o]=u.useState(!1),[s,l]=u.useState(!1),[i,c]=u.useState({top:0,right:0}),d=u.useRef(null),f=u.useRef(null),p=u.useRef(null),m=()=>{if(d.current){const _=d.current.getBoundingClientRect();c({top:_.top+_.height/2,right:window.innerWidth-_.left+8})}},y=()=>{l(!0),p.current&&(clearTimeout(p.current),p.current=null),m(),f.current=ue(()=>{o(!0)},500)},w=()=>{f.current&&(clearTimeout(f.current),f.current=null),o(!1),p.current=ue(()=>{l(!1)},150)};return u.useEffect(()=>()=>{f.current&&clearTimeout(f.current),p.current&&clearTimeout(p.current)},[]),a.jsxs(a.Fragment,{children:[a.jsx("span",{ref:d,onMouseEnter:y,onMouseLeave:w,...n,children:t}),s&&Bo.createPortal(a.jsx("div",{"data-feedback-toolbar":!0,style:{position:"fixed",top:i.top,right:i.right,transform:"translateY(-50%)",padding:"6px 10px",background:"#383838",color:"rgba(255, 255, 255, 0.7)",fontSize:"11px",fontWeight:400,lineHeight:"14px",borderRadius:"10px",width:"180px",textAlign:"left",zIndex:100020,pointerEvents:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.28)",opacity:r?1:0,transition:"opacity 0.15s ease"},children:e}),document.body)]})},Vk=`.styles-module__tooltip___mcXL2 {
2410
- display: flex;
2411
- justify-content: center;
2412
- align-items: center;
2413
- cursor: help;
2414
- }
2415
-
2416
- .styles-module__tooltipIcon___Nq2nD {
2417
- transform: translateY(0.5px);
2418
- color: #fff;
2419
- opacity: 0.2;
2420
- transition: opacity 0.15s ease;
2421
- will-change: transform;
2422
- }
2423
- .styles-module__tooltip___mcXL2:hover .styles-module__tooltipIcon___Nq2nD {
2424
- opacity: 0.5;
2425
- }
2426
- [data-agentation-theme=light] .styles-module__tooltipIcon___Nq2nD {
2427
- color: #000;
2428
- }`,Yk={tooltip:"styles-module__tooltip___mcXL2",tooltipIcon:"styles-module__tooltipIcon___Nq2nD"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-help-tooltip-styles");e||(e=document.createElement("style"),e.id="feedback-tool-styles-help-tooltip-styles",e.textContent=Vk,document.head.appendChild(e))}var zm=Yk,Zr=({content:e})=>a.jsx(Uk,{className:zm.tooltip,content:e,children:a.jsx(H2,{className:zm.tooltipIcon})});function Ec(e,t="filtered"){const{name:n,path:r}=Di(e);if(t==="off")return{name:n,elementName:n,path:r,reactComponents:null};const o=Rk(e,{mode:t});return{name:o.path?`${o.path} ${n}`:n,elementName:n,path:r,reactComponents:o.path}}var Fm=!1,Nc={outputDetail:"standard",autoClearAfterCopy:!1,annotationColorId:"blue",blockInteractions:!0,reactEnabled:!0,markerClickBehavior:"edit",webhookUrl:"",webhooksEnabled:!0},en=e=>{if(!e||!e.trim())return!1;try{const t=new URL(e.trim());return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}},hs=[{value:"compact",label:"Compact"},{value:"standard",label:"Standard"},{value:"detailed",label:"Detailed"},{value:"forensic",label:"Forensic"}],Ps=[{id:"indigo",label:"Indigo",srgb:"#6155F5",p3:"color(display-p3 0.38 0.33 0.96)"},{id:"blue",label:"Blue",srgb:"#0088FF",p3:"color(display-p3 0.00 0.53 1.00)"},{id:"cyan",label:"Cyan",srgb:"#00C3D0",p3:"color(display-p3 0.00 0.76 0.82)"},{id:"green",label:"Green",srgb:"#34C759",p3:"color(display-p3 0.20 0.78 0.35)"},{id:"yellow",label:"Yellow",srgb:"#FFCC00",p3:"color(display-p3 1.00 0.80 0.00)"},{id:"orange",label:"Orange",srgb:"#FF8D28",p3:"color(display-p3 1.00 0.55 0.16)"},{id:"red",label:"Red",srgb:"#FF383C",p3:"color(display-p3 1.00 0.22 0.24)"}],Xk=()=>{if(typeof document>"u"||document.getElementById("agentation-color-tokens"))return;const e=document.createElement("style");e.id="agentation-color-tokens",e.textContent=[...Ps.map(t=>`
2429
- [data-agentation-accent="${t.id}"] {
2430
- --agentation-color-accent: ${t.srgb};
2431
- }
2432
-
2433
- @supports (color: color(display-p3 0 0 0)) {
2434
- [data-agentation-accent="${t.id}"] {
2435
- --agentation-color-accent: ${t.p3};
2436
- }
2437
- }
2438
- `),`:root {
2439
- ${Ps.map(t=>`--agentation-color-${t.id}: ${t.srgb};`).join(`
2440
- `)}
2441
- }`,`@supports (color: color(display-p3 0 0 0)) {
2442
- :root {
2443
- ${Ps.map(t=>`--agentation-color-${t.id}: ${t.p3};`).join(`
2444
- `)}
2445
- }
2446
- }`].join(""),document.head.appendChild(e)};Xk();function Jr(e,t){let n=document.elementFromPoint(e,t);if(!n)return null;for(;n?.shadowRoot;){const r=n.shadowRoot.elementFromPoint(e,t);if(!r||r===n)break;n=r}return n}function jc(e){let t=e;for(;t&&t!==document.body;){const r=window.getComputedStyle(t).position;if(r==="fixed"||r==="sticky")return!0;t=t.parentElement}return!1}function Bn(e){return e.status!=="resolved"&&e.status!=="dismissed"}function Wl(e){const t=Wu(e),n=t.found?t:Bk(e);if(n.found&&n.source)return Fk(n.source,"path")}function Bm(e,t,n="standard",r="filtered"){if(e.length===0)return"";const o=typeof window<"u"?`${window.innerWidth}×${window.innerHeight}`:"unknown";let s=`## Page Feedback: ${t}
2447
- `;return n==="forensic"?(s+=`
2448
- **Environment:**
2449
- `,s+=`- Viewport: ${o}
2450
- `,typeof window<"u"&&(s+=`- URL: ${window.location.href}
2451
- `,s+=`- User Agent: ${navigator.userAgent}
2452
- `,s+=`- Timestamp: ${new Date().toISOString()}
2453
- `,s+=`- Device Pixel Ratio: ${window.devicePixelRatio}
2454
- `),s+=`
2455
- ---
2456
- `):n!=="compact"&&(s+=`**Viewport:** ${o}
2457
- `),s+=`
2458
- `,e.forEach((l,i)=>{n==="compact"?(s+=`${i+1}. **${l.element}**${l.sourceFile?` (${l.sourceFile})`:""}: ${l.comment}`,l.selectedText&&(s+=` (re: "${l.selectedText.slice(0,30)}${l.selectedText.length>30?"...":""}")`),s+=`
2459
- `):n==="forensic"?(s+=`### ${i+1}. ${l.element}
2460
- `,l.isMultiSelect&&l.fullPath&&(s+=`*Forensic data shown for first element of selection*
2461
- `),l.fullPath&&(s+=`**Full DOM Path:** ${l.fullPath}
2462
- `),l.cssClasses&&(s+=`**CSS Classes:** ${l.cssClasses}
2463
- `),l.boundingBox&&(s+=`**Position:** x:${Math.round(l.boundingBox.x)}, y:${Math.round(l.boundingBox.y)} (${Math.round(l.boundingBox.width)}×${Math.round(l.boundingBox.height)}px)
2464
- `),s+=`**Annotation at:** ${l.x.toFixed(1)}% from left, ${Math.round(l.y)}px from top
2465
- `,l.selectedText&&(s+=`**Selected text:** "${l.selectedText}"
2466
- `),l.nearbyText&&!l.selectedText&&(s+=`**Context:** ${l.nearbyText.slice(0,100)}
2467
- `),l.computedStyles&&(s+=`**Computed Styles:** ${l.computedStyles}
2468
- `),l.accessibility&&(s+=`**Accessibility:** ${l.accessibility}
2469
- `),l.nearbyElements&&(s+=`**Nearby Elements:** ${l.nearbyElements}
2470
- `),l.sourceFile&&(s+=`**Source:** ${l.sourceFile}
2471
- `),l.reactComponents&&(s+=`**React:** ${l.reactComponents}
2472
- `),s+=`**Feedback:** ${l.comment}
2473
-
2474
- `):(s+=`### ${i+1}. ${l.element}
2475
- `,s+=`**Location:** ${l.elementPath}
2476
- `,l.sourceFile&&(s+=`**Source:** ${l.sourceFile}
2477
- `),l.reactComponents&&(s+=`**React:** ${l.reactComponents}
2478
- `),n==="detailed"&&(l.cssClasses&&(s+=`**Classes:** ${l.cssClasses}
2479
- `),l.boundingBox&&(s+=`**Position:** ${Math.round(l.boundingBox.x)}px, ${Math.round(l.boundingBox.y)}px (${Math.round(l.boundingBox.width)}×${Math.round(l.boundingBox.height)}px)
2480
- `)),l.selectedText&&(s+=`**Selected text:** "${l.selectedText}"
2481
- `),n==="detailed"&&l.nearbyText&&!l.selectedText&&(s+=`**Context:** ${l.nearbyText.slice(0,100)}
2482
- `),s+=`**Feedback:** ${l.comment}
2483
-
2484
- `)}),s.trim()}function Qk({demoAnnotations:e,demoDelay:t=1e3,enableDemoMode:n=!1,onAnnotationAdd:r,onAnnotationDelete:o,onAnnotationUpdate:s,onAnnotationsClear:l,onCopy:i,onSubmit:c,copyToClipboard:d=!0,endpoint:f,sessionId:p,onSessionCreated:m,webhookUrl:y,className:w}={}){const[_,k]=u.useState(!1),[h,g]=u.useState([]),[v,S]=u.useState(!0),[N,T]=u.useState(()=>hk()),[j,L]=u.useState(!1),D=u.useRef(null);u.useEffect(()=>{const x=R=>{const I=D.current;I&&I.contains(R.target)&&R.stopPropagation()},b=["mousedown","click","pointerdown"];return b.forEach(R=>document.body.addEventListener(R,x)),()=>{b.forEach(R=>document.body.removeEventListener(R,x))}},[]);const[M,U]=u.useState(!1),[z,ee]=u.useState(!1),[G,fe]=u.useState(null),[K,me]=u.useState({x:0,y:0}),[E,O]=u.useState(null),[B,Q]=u.useState(!1),[he,Xt]=u.useState("idle"),[Qt,An]=u.useState(!1),[St,ht]=u.useState(!1),[pr,Vo]=u.useState(null),[Yo,pn]=u.useState(null),[ll,Gt]=u.useState([]),[hf,gf]=u.useState(null),[il,_f]=u.useState(null),[oe,Xo]=u.useState(null),[ja,mn]=u.useState(null),[yf,mr]=u.useState([]),[hr,vf]=u.useState(0),[xf,wf]=u.useState(!1),[Ae,Yy]=u.useState(!1),[At,bf]=u.useState(!1),[Qo,Pa]=u.useState(!1),[Xy,kf]=u.useState(!1),[Cf,Ra]=u.useState("main"),[Qy,Ta]=u.useState(!1),[Sf,Ef]=u.useState(!1),Hr=u.useRef(null),[Oe,Ur]=u.useState([]),Kt=u.useRef({cmd:!1,shift:!1}),lt=()=>{Ta(!0)},Gy=()=>{Ta(!1)},Ky=()=>{Sf||(Hr.current=setTimeout(()=>Ef(!0),850))},Zy=()=>{Hr.current&&(clearTimeout(Hr.current),Hr.current=null),Ef(!1),Gy()};u.useEffect(()=>()=>{Hr.current&&clearTimeout(Hr.current)},[]);const[Y,gr]=u.useState(()=>{try{const x=JSON.parse(localStorage.getItem("feedback-toolbar-settings")??"");return{...Nc,...x,annotationColorId:Ps.find(b=>b.id===x.annotationColorId)?x.annotationColorId:Nc.annotationColorId}}catch{return Nc}}),[On,Nf]=u.useState(!0),[jf,Pf]=u.useState(!1),Jy=()=>{D.current?.classList.add(C.disableTransitions),Nf(x=>!x),requestAnimationFrame(()=>{D.current?.classList.remove(C.disableTransitions)})},Rf=!1,hn="off",[gt,La]=u.useState(p??null),Tf=u.useRef(!1),[tt,_r]=u.useState(f?"connecting":"disconnected"),[Ne,Ia]=u.useState(null),[gn,Lf]=u.useState(!1),[Vr,If]=u.useState(null),[qy,e1]=u.useState(0),Aa=u.useRef(!1),[Af,Go]=u.useState(new Set),[Of,al]=u.useState(new Set),[Ko,cl]=u.useState(!1),[t1,Yr]=u.useState(!1),[_n,Mf]=u.useState(!1),Xr=u.useRef(null),Zt=u.useRef(null),Zo=u.useRef(null),Jo=u.useRef(null),ul=u.useRef(!1),$f=u.useRef(0),dl=u.useRef(null),Df=u.useRef(null),Oa=8,n1=50,zf=u.useRef(null),Ff=u.useRef(null),qo=u.useRef(null),ve=typeof window<"u"?window.location.pathname:"/";u.useEffect(()=>{if(Qo)kf(!0);else{Ta(!1),Ra("main");const x=ue(()=>kf(!1),0);return()=>clearTimeout(x)}},[Qo]);const Bf=_&&v;u.useEffect(()=>{if(Bf){ee(!1),U(!0),Go(new Set);const x=ue(()=>{Go(b=>{const R=new Set(b);return h.forEach(I=>R.add(I.id)),R})},350);return()=>clearTimeout(x)}else if(M){ee(!0);const x=ue(()=>{U(!1),ee(!1)},250);return()=>clearTimeout(x)}},[Bf]),u.useEffect(()=>{Yy(!0),vf(window.scrollY);const x=bc(ve);g(x.filter(Bn)),Fm||(Pf(!0),Fm=!0,ue(()=>Pf(!1),750));try{const b=localStorage.getItem("feedback-toolbar-theme");b!==null&&Nf(b==="dark")}catch{}try{const b=localStorage.getItem("feedback-toolbar-position");if(b){const R=JSON.parse(b);typeof R.x=="number"&&typeof R.y=="number"&&Ia(R)}}catch{}},[ve]),u.useEffect(()=>{Ae&&localStorage.setItem("feedback-toolbar-settings",JSON.stringify(Y))},[Y,Ae]),u.useEffect(()=>{Ae&&localStorage.setItem("feedback-toolbar-theme",On?"dark":"light")},[On,Ae]);const Wf=u.useRef(!1);u.useEffect(()=>{const x=Wf.current;Wf.current=gn,x&&!gn&&Ne&&Ae&&localStorage.setItem("feedback-toolbar-position",JSON.stringify(Ne))},[gn,Ne,Ae]),u.useEffect(()=>{if(!f||!Ae||Tf.current)return;Tf.current=!0,_r("connecting"),(async()=>{try{const b=pk(ve),R=p||b;let I=!1;if(R)try{const P=await Om(f,R);La(P.id),_r("connected"),kc(ve,P.id),I=!0;const $=bc(ve),W=new Set(P.annotations.map(ne=>ne.id)),V=$.filter(ne=>!W.has(ne.id));if(V.length>0){const Z=`${typeof window<"u"?window.location.origin:""}${ve}`,te=(await Promise.allSettled(V.map(J=>Fl(f,P.id,{...J,sessionId:P.id,url:Z})))).map((J,H)=>J.status==="fulfilled"?J.value:(console.warn("[Agentation] Failed to sync annotation:",J.reason),V[H])),ae=[...P.annotations,...te];g(ae.filter(Bn)),fs(ve,ae.filter(Bn),P.id)}else g(P.annotations.filter(Bn)),fs(ve,P.annotations.filter(Bn),P.id)}catch(P){console.warn("[Agentation] Could not join session, creating new:",P),mk(ve)}if(!I){const P=typeof window<"u"?window.location.href:"/",$=await Cc(f,P);La($.id),_r("connected"),kc(ve,$.id),m?.($.id);const W=fk(),V=typeof window<"u"?window.location.origin:"",ne=[];for(const[Z,X]of W){const te=X.filter(H=>!H._syncedTo);if(te.length===0)continue;const ae=`${V}${Z}`,J=Z===ve;ne.push((async()=>{try{const H=J?$:await Cc(f,ae),Mn=(await Promise.allSettled(te.map(Ge=>Fl(f,H.id,{...Ge,sessionId:H.id,url:ae})))).map((Ge,Ke)=>Ge.status==="fulfilled"?Ge.value:(console.warn("[Agentation] Failed to sync annotation:",Ge.reason),te[Ke])).filter(Bn);if(fs(Z,Mn,H.id),J){const Ge=new Set(te.map(Ke=>Ke.id));g(Ke=>{const ce=Ke.filter(re=>!Ge.has(re.id));return[...Mn,...ce]})}}catch(H){console.warn(`[Agentation] Failed to sync annotations for ${Z}:`,H)}})())}await Promise.allSettled(ne)}}catch(b){_r("disconnected"),console.warn("[Agentation] Failed to initialize session, using local storage:",b)}})()},[f,p,Ae,m,ve]),u.useEffect(()=>{if(!f||!Ae)return;const x=async()=>{try{(await fetch(`${f}/health`)).ok?_r("connected"):_r("disconnected")}catch{_r("disconnected")}};x();const b=nk(x,1e4);return()=>clearInterval(b)},[f,Ae]),u.useEffect(()=>{if(!f||!Ae||!gt)return;const x=new EventSource(`${f}/sessions/${gt}/events`),b=["resolved","dismissed"],R=I=>{try{const P=JSON.parse(I.data);if(b.includes(P.payload?.status)){const $=P.payload.id;al(W=>new Set(W).add($)),ue(()=>{g(W=>W.filter(V=>V.id!==$)),al(W=>{const V=new Set(W);return V.delete($),V})},150)}}catch{}};return x.addEventListener("annotation.updated",R),()=>{x.removeEventListener("annotation.updated",R),x.close()}},[f,Ae,gt]),u.useEffect(()=>{if(!f||!Ae)return;const x=Df.current==="disconnected",b=tt==="connected";Df.current=tt,x&&b&&(async()=>{try{const I=bc(ve);if(I.length===0)return;const $=`${typeof window<"u"?window.location.origin:""}${ve}`;let W=gt,V=[];if(W)try{V=(await Om(f,W)).annotations}catch{W=null}W||(W=(await Cc(f,$)).id,La(W),kc(ve,W));const ne=new Set(V.map(X=>X.id)),Z=I.filter(X=>!ne.has(X.id));if(Z.length>0){const te=(await Promise.allSettled(Z.map(H=>Fl(f,W,{...H,sessionId:W,url:$})))).map((H,Et)=>H.status==="fulfilled"?H.value:(console.warn("[Agentation] Failed to sync annotation on reconnect:",H.reason),Z[Et])),J=[...V,...te].filter(Bn);g(J),fs(ve,J,W)}}catch(I){console.warn("[Agentation] Failed to sync on reconnect:",I)}})()},[tt,f,Ae,gt,ve]);const r1=u.useCallback(()=>{j||(L(!0),Pa(!1),k(!1),ue(()=>{gk(!0),T(!0),L(!1)},400))},[j]);u.useEffect(()=>{if(!n||!Ae||!e||e.length===0||h.length>0)return;const x=[];return x.push(ue(()=>{k(!0)},t-200)),e.forEach((b,R)=>{const I=t+R*300;x.push(ue(()=>{const P=document.querySelector(b.selector);if(!P)return;const $=P.getBoundingClientRect(),{name:W,path:V}=Di(P),ne={id:`demo-${Date.now()}-${R}`,x:($.left+$.width/2)/window.innerWidth*100,y:$.top+$.height/2+window.scrollY,comment:b.comment,element:W,elementPath:V,timestamp:Date.now(),selectedText:b.selectedText,boundingBox:{x:$.left,y:$.top+window.scrollY,width:$.width,height:$.height},nearbyText:us(P),cssClasses:ds(P)};g(Z=>[...Z,ne])},I))}),()=>{x.forEach(clearTimeout)}},[n,Ae,e,t]),u.useEffect(()=>{const x=()=>{vf(window.scrollY),wf(!0),qo.current&&clearTimeout(qo.current),qo.current=ue(()=>{wf(!1)},150)};return window.addEventListener("scroll",x,{passive:!0}),()=>{window.removeEventListener("scroll",x),qo.current&&clearTimeout(qo.current)}},[]),u.useEffect(()=>{Ae&&h.length>0?gt?fs(ve,h,gt):S0(ve,h):Ae&&h.length===0&&localStorage.removeItem(zi(ve))},[h,ve,Ae,gt]);const Hf=u.useCallback(()=>{At||(ok(),bf(!0))},[At]),fl=u.useCallback(()=>{At&&(Im(),bf(!1))},[At]),Ma=u.useCallback(()=>{At?fl():Hf()},[At,Hf,fl]),Uf=u.useCallback(()=>{if(Oe.length===0)return;const x=Oe[0],b=x.element,R=Oe.length>1,I=Oe.map(P=>P.element.getBoundingClientRect());if(R){const P={left:Math.min(...I.map(H=>H.left)),top:Math.min(...I.map(H=>H.top)),right:Math.max(...I.map(H=>H.right)),bottom:Math.max(...I.map(H=>H.bottom))},$=Oe.slice(0,5).map(H=>H.name).join(", "),W=Oe.length>5?` +${Oe.length-5} more`:"",V=I.map(H=>({x:H.left,y:H.top+window.scrollY,width:H.width,height:H.height})),Z=Oe[Oe.length-1].element,X=I[I.length-1],te=X.left+X.width/2,ae=X.top+X.height/2,J=jc(Z);O({x:te/window.innerWidth*100,y:J?ae:ae+window.scrollY,clientY:ae,element:`${Oe.length} elements: ${$}${W}`,elementPath:"multi-select",boundingBox:{x:P.left,y:P.top+window.scrollY,width:P.right-P.left,height:P.bottom-P.top},isMultiSelect:!0,isFixed:J,elementBoundingBoxes:V,multiSelectElements:Oe.map(H=>H.element),targetElement:Z,fullPath:zl(b),accessibility:Dl(b),computedStyles:$l(b),computedStylesObj:Ml(b),nearbyElements:Ol(b),cssClasses:ds(b),nearbyText:us(b),sourceFile:Wl(b)})}else{const P=I[0],$=jc(b);O({x:P.left/window.innerWidth*100,y:$?P.top:P.top+window.scrollY,clientY:P.top,element:x.name,elementPath:x.path,boundingBox:{x:P.left,y:$?P.top:P.top+window.scrollY,width:P.width,height:P.height},isFixed:$,fullPath:zl(b),accessibility:Dl(b),computedStyles:$l(b),computedStylesObj:Ml(b),nearbyElements:Ol(b),cssClasses:ds(b),nearbyText:us(b),reactComponents:x.reactComponents,sourceFile:Wl(b)})}Ur([]),fe(null)},[Oe]);u.useEffect(()=>{_||(O(null),Xo(null),mn(null),mr([]),fe(null),Pa(!1),Ur([]),Kt.current={cmd:!1,shift:!1},At&&fl())},[_,At,fl]),u.useEffect(()=>()=>{Im()},[]),u.useEffect(()=>{if(!_)return;const x=document.createElement("style");return x.id="feedback-cursor-styles",x.textContent=`
2485
- body * {
2486
- cursor: crosshair !important;
2487
- }
2488
- body p, body span, body h1, body h2, body h3, body h4, body h5, body h6,
2489
- body li, body td, body th, body label, body blockquote, body figcaption,
2490
- body caption, body legend, body dt, body dd, body pre, body code,
2491
- body em, body strong, body b, body i, body u, body s, body a,
2492
- body time, body address, body cite, body q, body abbr, body dfn,
2493
- body mark, body small, body sub, body sup, body [contenteditable],
2494
- body p *, body span *, body h1 *, body h2 *, body h3 *, body h4 *,
2495
- body h5 *, body h6 *, body li *, body a *, body label *, body pre *,
2496
- body code *, body blockquote *, body [contenteditable] * {
2497
- cursor: text !important;
2498
- }
2499
- [data-feedback-toolbar], [data-feedback-toolbar] * {
2500
- cursor: auto !important;
2501
- }
2502
- [data-feedback-toolbar] textarea,
2503
- [data-feedback-toolbar] input[type="text"],
2504
- [data-feedback-toolbar] input[type="url"] {
2505
- cursor: text !important;
2506
- }
2507
- [data-feedback-toolbar] button,
2508
- [data-feedback-toolbar] button *,
2509
- [data-feedback-toolbar] label,
2510
- [data-feedback-toolbar] label *,
2511
- [data-feedback-toolbar] a,
2512
- [data-feedback-toolbar] a *,
2513
- [data-feedback-toolbar] [role="button"],
2514
- [data-feedback-toolbar] [role="button"] * {
2515
- cursor: pointer !important;
2516
- }
2517
- [data-annotation-marker], [data-annotation-marker] * {
2518
- cursor: pointer !important;
2519
- }
2520
- `,document.head.appendChild(x),()=>{const b=document.getElementById("feedback-cursor-styles");b&&b.remove()}},[_]),u.useEffect(()=>{if(!_||E)return;const x=b=>{const R=b.composedPath()[0]||b.target;if(it(R,"[data-feedback-toolbar]")){fe(null);return}const I=Jr(b.clientX,b.clientY);if(!I||it(I,"[data-feedback-toolbar]")){fe(null);return}const{name:P,elementName:$,path:W,reactComponents:V}=Ec(I,hn),ne=I.getBoundingClientRect();fe({element:P,elementName:$,elementPath:W,rect:ne,reactComponents:V}),me({x:b.clientX,y:b.clientY})};return document.addEventListener("mousemove",x),()=>document.removeEventListener("mousemove",x)},[_,E,hn]),u.useEffect(()=>{if(!_)return;const x=b=>{if(ul.current){ul.current=!1;return}const R=b.composedPath()[0]||b.target;if(it(R,"[data-feedback-toolbar]")||it(R,"[data-annotation-popup]")||it(R,"[data-annotation-marker]"))return;if(b.metaKey&&b.shiftKey&&!E&&!oe){b.preventDefault(),b.stopPropagation();const Ve=Jr(b.clientX,b.clientY);if(!Ve)return;const Mn=Ve.getBoundingClientRect(),{name:Ge,path:Ke,reactComponents:ce}=Ec(Ve,hn),re=Oe.findIndex(We=>We.element===Ve);re>=0?Ur(We=>We.filter((Me,$n)=>$n!==re)):Ur(We=>[...We,{element:Ve,rect:Mn,name:Ge,path:Ke,reactComponents:ce??void 0}]);return}const I=it(R,"button, a, input, select, textarea, [role='button'], [onclick]");if(Y.blockInteractions&&I&&(b.preventDefault(),b.stopPropagation()),E){if(I&&!Y.blockInteractions)return;b.preventDefault(),zf.current?.shake();return}if(oe){if(I&&!Y.blockInteractions)return;b.preventDefault(),Ff.current?.shake();return}b.preventDefault();const P=Jr(b.clientX,b.clientY);if(!P)return;const{name:$,path:W,reactComponents:V}=Ec(P,hn),ne=P.getBoundingClientRect(),Z=b.clientX/window.innerWidth*100,X=jc(P),te=X?b.clientY:b.clientY+window.scrollY,ae=window.getSelection();let J;ae&&ae.toString().trim().length>0&&(J=ae.toString().trim().slice(0,500));const H=Ml(P),Et=$l(P);O({x:Z,y:te,clientY:b.clientY,element:$,elementPath:W,selectedText:J,boundingBox:{x:ne.left,y:X?ne.top:ne.top+window.scrollY,width:ne.width,height:ne.height},nearbyText:us(P),cssClasses:ds(P),isFixed:X,fullPath:zl(P),accessibility:Dl(P),computedStyles:Et,computedStylesObj:H,nearbyElements:Ol(P),reactComponents:V??void 0,sourceFile:Wl(P),targetElement:P}),fe(null)};return document.addEventListener("click",x,!0),()=>document.removeEventListener("click",x,!0)},[_,E,oe,Y.blockInteractions,hn,Oe]),u.useEffect(()=>{if(!_)return;const x=I=>{I.key==="Meta"&&(Kt.current.cmd=!0),I.key==="Shift"&&(Kt.current.shift=!0)},b=I=>{const P=Kt.current.cmd&&Kt.current.shift;I.key==="Meta"&&(Kt.current.cmd=!1),I.key==="Shift"&&(Kt.current.shift=!1);const $=Kt.current.cmd&&Kt.current.shift;P&&!$&&Oe.length>0&&Uf()},R=()=>{Kt.current={cmd:!1,shift:!1},Ur([])};return document.addEventListener("keydown",x),document.addEventListener("keyup",b),window.addEventListener("blur",R),()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",b),window.removeEventListener("blur",R)}},[_,Oe,Uf]),u.useEffect(()=>{if(!_||E)return;const x=b=>{const R=b.composedPath()[0]||b.target;it(R,"[data-feedback-toolbar]")||it(R,"[data-annotation-marker]")||it(R,"[data-annotation-popup]")||new Set(["P","SPAN","H1","H2","H3","H4","H5","H6","LI","TD","TH","LABEL","BLOCKQUOTE","FIGCAPTION","CAPTION","LEGEND","DT","DD","PRE","CODE","EM","STRONG","B","I","U","S","A","TIME","ADDRESS","CITE","Q","ABBR","DFN","MARK","SMALL","SUB","SUP"]).has(R.tagName)||R.isContentEditable||(Xr.current={x:b.clientX,y:b.clientY})};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[_,E]),u.useEffect(()=>{if(!_||E)return;const x=b=>{if(!Xr.current)return;const R=b.clientX-Xr.current.x,I=b.clientY-Xr.current.y,P=R*R+I*I,$=Oa*Oa;if(!_n&&P>=$&&(Zt.current=Xr.current,Mf(!0)),(_n||P>=$)&&Zt.current){if(Zo.current){const ce=Math.min(Zt.current.x,b.clientX),re=Math.min(Zt.current.y,b.clientY),We=Math.abs(b.clientX-Zt.current.x),Me=Math.abs(b.clientY-Zt.current.y);Zo.current.style.transform=`translate(${ce}px, ${re}px)`,Zo.current.style.width=`${We}px`,Zo.current.style.height=`${Me}px`}const W=Date.now();if(W-$f.current<n1)return;$f.current=W;const V=Zt.current.x,ne=Zt.current.y,Z=Math.min(V,b.clientX),X=Math.min(ne,b.clientY),te=Math.max(V,b.clientX),ae=Math.max(ne,b.clientY),J=(Z+te)/2,H=(X+ae)/2,Et=new Set,Ve=[[Z,X],[te,X],[Z,ae],[te,ae],[J,H],[J,X],[J,ae],[Z,H],[te,H]];for(const[ce,re]of Ve){const We=document.elementsFromPoint(ce,re);for(const Me of We)Me instanceof HTMLElement&&Et.add(Me)}const Mn=document.querySelectorAll("button, a, input, img, p, h1, h2, h3, h4, h5, h6, li, label, td, th, div, span, section, article, aside, nav");for(const ce of Mn)if(ce instanceof HTMLElement){const re=ce.getBoundingClientRect(),We=re.left+re.width/2,Me=re.top+re.height/2,$n=We>=Z&&We<=te&&Me>=X&&Me<=ae,yn=Math.min(re.right,te)-Math.max(re.left,Z),Xf=Math.min(re.bottom,ae)-Math.max(re.top,X),c1=yn>0&&Xf>0?yn*Xf:0,Qf=re.width*re.height,u1=Qf>0?c1/Qf:0;($n||u1>.5)&&Et.add(ce)}const Ge=[],Ke=new Set(["BUTTON","A","INPUT","IMG","P","H1","H2","H3","H4","H5","H6","LI","LABEL","TD","TH","SECTION","ARTICLE","ASIDE","NAV"]);for(const ce of Et){if(it(ce,"[data-feedback-toolbar]")||it(ce,"[data-annotation-marker]"))continue;const re=ce.getBoundingClientRect();if(!(re.width>window.innerWidth*.8&&re.height>window.innerHeight*.5)&&!(re.width<10||re.height<10)&&re.left<te&&re.right>Z&&re.top<ae&&re.bottom>X){const We=ce.tagName;let Me=Ke.has(We);if(!Me&&(We==="DIV"||We==="SPAN")){const $n=ce.textContent&&ce.textContent.trim().length>0,yn=ce.onclick!==null||ce.getAttribute("role")==="button"||ce.getAttribute("role")==="link"||ce.classList.contains("clickable")||ce.hasAttribute("data-clickable");($n||yn)&&!ce.querySelector("p, h1, h2, h3, h4, h5, h6, button, a")&&(Me=!0)}if(Me){let $n=!1;for(const yn of Ge)if(yn.left<=re.left&&yn.right>=re.right&&yn.top<=re.top&&yn.bottom>=re.bottom){$n=!0;break}$n||Ge.push(re)}}}if(Jo.current){const ce=Jo.current;for(;ce.children.length>Ge.length;)ce.removeChild(ce.lastChild);Ge.forEach((re,We)=>{let Me=ce.children[We];Me||(Me=document.createElement("div"),Me.className=C.selectedElementHighlight,ce.appendChild(Me)),Me.style.transform=`translate(${re.left}px, ${re.top}px)`,Me.style.width=`${re.width}px`,Me.style.height=`${re.height}px`})}}};return document.addEventListener("mousemove",x,{passive:!0}),()=>document.removeEventListener("mousemove",x)},[_,E,_n,Oa]),u.useEffect(()=>{if(!_)return;const x=b=>{const R=_n,I=Zt.current;if(_n&&I){ul.current=!0;const P=Math.min(I.x,b.clientX),$=Math.min(I.y,b.clientY),W=Math.max(I.x,b.clientX),V=Math.max(I.y,b.clientY),ne=[];document.querySelectorAll("button, a, input, img, p, h1, h2, h3, h4, h5, h6, li, label, td, th").forEach(J=>{if(!(J instanceof HTMLElement)||it(J,"[data-feedback-toolbar]")||it(J,"[data-annotation-marker]"))return;const H=J.getBoundingClientRect();H.width>window.innerWidth*.8&&H.height>window.innerHeight*.5||H.width<10||H.height<10||H.left<W&&H.right>P&&H.top<V&&H.bottom>$&&ne.push({element:J,rect:H})});const X=ne.filter(({element:J})=>!ne.some(({element:H})=>H!==J&&J.contains(H))),te=b.clientX/window.innerWidth*100,ae=b.clientY+window.scrollY;if(X.length>0){const J=X.reduce((Ke,{rect:ce})=>({left:Math.min(Ke.left,ce.left),top:Math.min(Ke.top,ce.top),right:Math.max(Ke.right,ce.right),bottom:Math.max(Ke.bottom,ce.bottom)}),{left:1/0,top:1/0,right:-1/0,bottom:-1/0}),H=X.slice(0,5).map(({element:Ke})=>Di(Ke).name).join(", "),Et=X.length>5?` +${X.length-5} more`:"",Ve=X[0].element,Mn=Ml(Ve),Ge=$l(Ve);O({x:te,y:ae,clientY:b.clientY,element:`${X.length} elements: ${H}${Et}`,elementPath:"multi-select",boundingBox:{x:J.left,y:J.top+window.scrollY,width:J.right-J.left,height:J.bottom-J.top},isMultiSelect:!0,fullPath:zl(Ve),accessibility:Dl(Ve),computedStyles:Ge,computedStylesObj:Mn,nearbyElements:Ol(Ve),cssClasses:ds(Ve),nearbyText:us(Ve),sourceFile:Wl(Ve)})}else{const J=Math.abs(W-P),H=Math.abs(V-$);J>20&&H>20&&O({x:te,y:ae,clientY:b.clientY,element:"Area selection",elementPath:`region at (${Math.round(P)}, ${Math.round($)})`,boundingBox:{x:P,y:$+window.scrollY,width:J,height:H},isMultiSelect:!0})}fe(null)}else R&&(ul.current=!0);Xr.current=null,Zt.current=null,Mf(!1),Jo.current&&(Jo.current.innerHTML="")};return document.addEventListener("mouseup",x),()=>document.removeEventListener("mouseup",x)},[_,_n]);const Jt=u.useCallback(async(x,b,R)=>{const I=Y.webhookUrl||y;if(!I||!Y.webhooksEnabled&&!R)return!1;try{return(await fetch(I,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:x,timestamp:Date.now(),url:typeof window<"u"?window.location.href:void 0,...b})})).ok}catch(P){return console.warn("[Agentation] Webhook failed:",P),!1}},[y,Y.webhookUrl,Y.webhooksEnabled]),o1=u.useCallback(x=>{if(!E)return;const b={id:Date.now().toString(),x:E.x,y:E.y,comment:x,element:E.element,elementPath:E.elementPath,timestamp:Date.now(),selectedText:E.selectedText,boundingBox:E.boundingBox,nearbyText:E.nearbyText,cssClasses:E.cssClasses,isMultiSelect:E.isMultiSelect,isFixed:E.isFixed,fullPath:E.fullPath,accessibility:E.accessibility,computedStyles:E.computedStyles,nearbyElements:E.nearbyElements,reactComponents:E.reactComponents,sourceFile:E.sourceFile,elementBoundingBoxes:E.elementBoundingBoxes,...f&&gt?{sessionId:gt,url:typeof window<"u"?window.location.href:void 0,status:"pending"}:{}};g(R=>[...R,b]),dl.current=b.id,ue(()=>{dl.current=null},300),ue(()=>{Go(R=>new Set(R).add(b.id))},250),r?.(b),Jt("annotation.add",{annotation:b}),cl(!0),ue(()=>{O(null),cl(!1)},150),window.getSelection()?.removeAllRanges(),f&&gt&&Fl(f,gt,b).then(R=>{R.id!==b.id&&(g(I=>I.map(P=>P.id===b.id?{...P,id:R.id}:P)),Go(I=>{const P=new Set(I);return P.delete(b.id),P.add(R.id),P}))}).catch(R=>{console.warn("[Agentation] Failed to sync annotation:",R)})},[E,r,Jt,f,gt]),s1=u.useCallback(()=>{cl(!0),ue(()=>{O(null),cl(!1)},150)},[]),$a=u.useCallback(x=>{const b=h.findIndex(I=>I.id===x),R=h[b];oe?.id===x&&(Yr(!0),ue(()=>{Xo(null),mn(null),mr([]),Yr(!1)},150)),gf(x),al(I=>new Set(I).add(x)),R&&(o?.(R),Jt("annotation.delete",{annotation:R})),f&&Mm(f,x).catch(I=>{console.warn("[Agentation] Failed to delete annotation from server:",I)}),ue(()=>{g(I=>I.filter(P=>P.id!==x)),al(I=>{const P=new Set(I);return P.delete(x),P}),gf(null),b<h.length-1&&(_f(b),ue(()=>_f(null),200))},150)},[h,oe,o,Jt,f]),pl=u.useCallback(x=>{if(Xo(x),Vo(null),pn(null),Gt([]),x.elementBoundingBoxes?.length){const b=[];for(const R of x.elementBoundingBoxes){const I=R.x+R.width/2,P=R.y+R.height/2-window.scrollY,$=Jr(I,P);$&&b.push($)}mr(b),mn(null)}else if(x.boundingBox){const b=x.boundingBox,R=b.x+b.width/2,I=x.isFixed?b.y+b.height/2:b.y+b.height/2-window.scrollY,P=Jr(R,I);if(P){const $=P.getBoundingClientRect(),W=$.width/b.width,V=$.height/b.height;W<.5||V<.5?mn(null):mn(P)}else mn(null);mr([])}else mn(null),mr([])},[]),ml=u.useCallback(x=>{if(!x){Vo(null),pn(null),Gt([]);return}if(Vo(x.id),x.elementBoundingBoxes?.length){const b=[];for(const R of x.elementBoundingBoxes){const I=R.x+R.width/2,P=R.y+R.height/2-window.scrollY,W=document.elementsFromPoint(I,P).find(V=>!V.closest("[data-annotation-marker]")&&!V.closest("[data-agentation-root]"));W&&b.push(W)}Gt(b),pn(null)}else if(x.boundingBox){const b=x.boundingBox,R=b.x+b.width/2,I=x.isFixed?b.y+b.height/2:b.y+b.height/2-window.scrollY,P=Jr(R,I);if(P){const $=P.getBoundingClientRect(),W=$.width/b.width,V=$.height/b.height;W<.5||V<.5?pn(null):pn(P)}else pn(null);Gt([])}else pn(null),Gt([])},[]),l1=u.useCallback(x=>{if(!oe)return;const b={...oe,comment:x};g(R=>R.map(I=>I.id===oe.id?b:I)),s?.(b),Jt("annotation.update",{annotation:b}),f&&_k(f,oe.id,{comment:x}).catch(R=>{console.warn("[Agentation] Failed to update annotation on server:",R)}),Yr(!0),ue(()=>{Xo(null),mn(null),mr([]),Yr(!1)},150)},[oe,s,Jt,f]),i1=u.useCallback(()=>{Yr(!0),ue(()=>{Xo(null),mn(null),mr([]),Yr(!1)},150)},[]),yr=u.useCallback(()=>{const x=h.length;if(x===0)return;l?.(h),Jt("annotations.clear",{annotations:h}),f&&Promise.all(h.map(R=>Mm(f,R.id).catch(I=>{console.warn("[Agentation] Failed to delete annotation from server:",I)}))),ht(!0),An(!0);const b=x*30+200;ue(()=>{g([]),Go(new Set),localStorage.removeItem(zi(ve)),ht(!1)},b),ue(()=>An(!1),1500)},[ve,h,l,Jt,f]),Da=u.useCallback(async()=>{const x=typeof window<"u"?window.location.pathname+window.location.search+window.location.hash:ve,b=Bm(h,x,Y.outputDetail,hn);if(b){if(d)try{await navigator.clipboard.writeText(b)}catch{}i?.(b),Q(!0),ue(()=>Q(!1),2e3),Y.autoClearAfterCopy&&ue(()=>yr(),500)}},[h,ve,Y.outputDetail,hn,Y.autoClearAfterCopy,yr,d,i]),za=u.useCallback(async()=>{const x=typeof window<"u"?window.location.pathname+window.location.search+window.location.hash:ve,b=Bm(h,x,Y.outputDetail,hn);if(!b)return;c&&c(b,h),Xt("sending"),await new Promise(I=>ue(I,150));const R=await Jt("submit",{output:b,annotations:h},!0);Xt(R?"sent":"failed"),ue(()=>Xt("idle"),2500),R&&Y.autoClearAfterCopy&&ue(()=>yr(),500)},[c,Jt,h,ve,Y.outputDetail,hn,Y.autoClearAfterCopy,yr]);u.useEffect(()=>{if(!Vr)return;const x=10,b=I=>{const P=I.clientX-Vr.x,$=I.clientY-Vr.y,W=Math.sqrt(P*P+$*$);if(!gn&&W>x&&Lf(!0),gn||W>x){let V=Vr.toolbarX+P,ne=Vr.toolbarY+$;const Z=20,X=297,te=44,J=X-(_?tt==="connected"?297:257:44),H=Z-J,Et=window.innerWidth-Z-X;V=Math.max(H,Math.min(Et,V)),ne=Math.max(Z,Math.min(window.innerHeight-te-Z,ne)),Ia({x:V,y:ne})}},R=()=>{gn&&(Aa.current=!0),Lf(!1),If(null)};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",R),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",R)}},[Vr,gn,_,tt]);const a1=u.useCallback(x=>{if(x.target.closest("button")||x.target.closest(`.${C.settingsPanel}`))return;const b=x.currentTarget.parentElement;if(!b)return;const R=b.getBoundingClientRect(),I=Ne?.x??R.left,P=Ne?.y??R.top,$=(Math.random()-.5)*10;e1($),If({x:x.clientX,y:x.clientY,toolbarX:I,toolbarY:P})},[Ne]);if(u.useEffect(()=>{if(!Ne)return;const x=()=>{let P=Ne.x,$=Ne.y;const ne=20-(297-(_?tt==="connected"?297:257:44)),Z=window.innerWidth-20-297;P=Math.max(ne,Math.min(Z,P)),$=Math.max(20,Math.min(window.innerHeight-44-20,$)),(P!==Ne.x||$!==Ne.y)&&Ia({x:P,y:$})};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[Ne,_,tt]),u.useEffect(()=>{const x=b=>{const R=b.target,I=R.tagName==="INPUT"||R.tagName==="TEXTAREA"||R.isContentEditable;if(b.key==="Escape"){if(Oe.length>0){Ur([]);return}E||_&&(lt(),k(!1))}if((b.metaKey||b.ctrlKey)&&b.shiftKey&&(b.key==="f"||b.key==="F")){b.preventDefault(),lt(),k(P=>!P);return}if(!(I||b.metaKey||b.ctrlKey)&&((b.key==="p"||b.key==="P")&&(b.preventDefault(),lt(),Ma()),(b.key==="h"||b.key==="H")&&h.length>0&&(b.preventDefault(),lt(),S(P=>!P)),(b.key==="c"||b.key==="C")&&h.length>0&&(b.preventDefault(),lt(),Da()),(b.key==="x"||b.key==="X")&&h.length>0&&(b.preventDefault(),lt(),yr()),b.key==="s"||b.key==="S")){const P=en(Y.webhookUrl)||en(y||"");h.length>0&&P&&he==="idle"&&(b.preventDefault(),lt(),za())}};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[_,E,h.length,Y.webhookUrl,y,he,za,Ma,Da,yr,Oe]),!Ae||N)return null;const Qr=h.length>0,hl=h.filter(x=>!Of.has(x.id)&&Bn(x)),Vf=h.filter(x=>Of.has(x.id)),Yf=x=>{const $=x.x/100*window.innerWidth,W=typeof x.y=="string"?parseFloat(x.y):x.y,V={};window.innerHeight-W-22-10<80&&(V.top="auto",V.bottom="calc(100% + 10px)");const Z=$-200/2,X=10;if(Z<X){const te=X-Z;V.left=`calc(50% + ${te}px)`}else if(Z+200>window.innerWidth-X){const te=Z+200-(window.innerWidth-X);V.left=`calc(50% - ${te}px)`}return V};return Bo.createPortal(a.jsxs("div",{ref:D,style:{display:"contents"},"data-agentation-theme":On?"dark":"light","data-agentation-accent":Y.annotationColorId,children:[a.jsx("div",{className:`${C.toolbar}${w?` ${w}`:""}`,"data-feedback-toolbar":!0,style:Ne?{left:Ne.x,top:Ne.y,right:"auto",bottom:"auto"}:void 0,children:a.jsxs("div",{className:`${C.toolbarContainer} ${_?C.expanded:C.collapsed} ${jf?C.entrance:""} ${j?C.hiding:""} ${gn?C.dragging:""} ${!Y.webhooksEnabled&&(en(Y.webhookUrl)||en(y||""))?C.serverConnected:""}`,onClick:_?void 0:x=>{if(Aa.current){Aa.current=!1,x.preventDefault();return}k(!0)},onMouseDown:a1,role:_?void 0:"button",tabIndex:_?-1:0,title:_?void 0:"Start feedback mode",style:{...gn&&{transform:`scale(1.05) rotate(${qy}deg)`,cursor:"grabbing"}},children:[a.jsxs("div",{className:`${C.toggleContent} ${_?C.hidden:C.visible}`,children:[a.jsx(W2,{size:24}),Qr&&a.jsx("span",{className:`${C.badge} ${_?C.fadeOut:""} ${jf?C.entrance:""}`,children:h.length})]}),a.jsxs("div",{className:`${C.controlsContent} ${_?C.visible:C.hidden} ${Ne&&Ne.y<100?C.tooltipBelow:""} ${Qy||Qo?C.tooltipsHidden:""} ${Sf?C.tooltipsInSession:""}`,onMouseEnter:Ky,onMouseLeave:Zy,children:[a.jsxs("div",{className:`${C.buttonWrapper} ${Ne&&Ne.x<120?C.buttonWrapperAlignLeft:""}`,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),lt(),Ma()},"data-active":At,children:a.jsx(X2,{size:24,isPaused:At})}),a.jsxs("span",{className:C.buttonTooltip,children:[At?"Resume animations":"Pause animations",a.jsx("span",{className:C.shortcut,children:"P"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),lt(),S(!v)},disabled:!Qr,children:a.jsx(Y2,{size:24,isOpen:v})}),a.jsxs("span",{className:C.buttonTooltip,children:[v?"Hide markers":"Show markers",a.jsx("span",{className:C.shortcut,children:"H"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:`${C.controlButton} ${B?C.statusShowing:""}`,onClick:x=>{x.stopPropagation(),lt(),Da()},disabled:!Qr,"data-active":B,children:a.jsx(U2,{size:24,copied:B})}),a.jsxs("span",{className:C.buttonTooltip,children:["Copy feedback",a.jsx("span",{className:C.shortcut,children:"C"})]})]}),a.jsxs("div",{className:`${C.buttonWrapper} ${C.sendButtonWrapper} ${_&&!Y.webhooksEnabled&&(en(Y.webhookUrl)||en(y||""))?C.sendButtonVisible:""}`,children:[a.jsxs("button",{className:`${C.controlButton} ${he==="sent"||he==="failed"?C.statusShowing:""}`,onClick:x=>{x.stopPropagation(),lt(),za()},disabled:!Qr||!en(Y.webhookUrl)&&!en(y||"")||he==="sending","data-no-hover":he==="sent"||he==="failed",tabIndex:en(Y.webhookUrl)||en(y||"")?0:-1,children:[a.jsx(V2,{size:24,state:he}),Qr&&he==="idle"&&a.jsx("span",{className:C.buttonBadge,children:h.length})]}),a.jsxs("span",{className:C.buttonTooltip,children:["Send Annotations",a.jsx("span",{className:C.shortcut,children:"S"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),lt(),yr()},disabled:!Qr,"data-danger":!0,children:a.jsx(G2,{size:24})}),a.jsxs("span",{className:C.buttonTooltip,children:["Clear all",a.jsx("span",{className:C.shortcut,children:"X"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),lt(),Pa(!Qo)},children:a.jsx(Q2,{size:24})}),f&&tt!=="disconnected"&&a.jsx("span",{className:`${C.mcpIndicator} ${C[tt]} ${Qo?C.hidden:""}`,title:tt==="connected"?"MCP Connected":"MCP Connecting..."}),a.jsx("span",{className:C.buttonTooltip,children:"Settings"})]}),a.jsx("div",{className:C.divider}),a.jsxs("div",{className:`${C.buttonWrapper} ${Ne&&typeof window<"u"&&Ne.x>window.innerWidth-120?C.buttonWrapperAlignRight:""}`,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),lt(),k(!1)},children:a.jsx(K2,{size:24})}),a.jsxs("span",{className:C.buttonTooltip,children:["Exit",a.jsx("span",{className:C.shortcut,children:"Esc"})]})]})]}),a.jsx("div",{className:`${C.settingsPanel} ${Xy?C.enter:C.exit}`,onClick:x=>x.stopPropagation(),style:Ne&&Ne.y<230?{bottom:"auto",top:"calc(100% + 0.5rem)"}:void 0,children:a.jsxs("div",{className:C.settingsPanelContainer,children:[a.jsxs("div",{className:`${C.settingsPage} ${Cf==="automations"?C.slideLeft:""}`,children:[a.jsxs("div",{className:C.settingsHeader,children:[a.jsxs("span",{className:C.settingsBrand,children:[a.jsx("span",{className:C.settingsBrandSlash,children:"/"}),"agentation"]}),a.jsxs("span",{className:C.settingsVersion,children:["v","2.3.3"]}),a.jsx("button",{className:C.themeToggle,onClick:Jy,title:On?"Switch to light mode":"Switch to dark mode",children:a.jsx("span",{className:C.themeIconWrapper,children:a.jsx("span",{className:C.themeIcon,children:On?a.jsx(Z2,{size:20}):a.jsx(J2,{size:20})},On?"sun":"moon")})})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("div",{className:C.settingsRow,children:[a.jsxs("div",{className:C.settingsLabel,children:["Output Detail",a.jsx(Zr,{content:"Controls how much detail is included in the copied output"})]}),a.jsxs("button",{className:C.cycleButton,onClick:()=>{const b=(hs.findIndex(R=>R.value===Y.outputDetail)+1)%hs.length;gr(R=>({...R,outputDetail:hs[b].value}))},children:[a.jsx("span",{className:C.cycleButtonText,children:hs.find(x=>x.value===Y.outputDetail)?.label},Y.outputDetail),a.jsx("span",{className:C.cycleDots,children:hs.map((x,b)=>a.jsx("span",{className:`${C.cycleDot} ${Y.outputDetail===x.value?C.active:""}`},x.value))})]})]}),a.jsxs("div",{className:`${C.settingsRow} ${C.settingsRowMarginTop} ${C.settingsRowDisabled}`,children:[a.jsxs("div",{className:C.settingsLabel,children:["React Components",a.jsx(Zr,{content:"Disabled — production builds minify component names, making detection unreliable. Use in development mode."})]}),a.jsxs("label",{className:`${C.toggleSwitch} ${C.disabled}`,children:[a.jsx("input",{type:"checkbox",checked:Rf,disabled:!Rf,onChange:()=>gr(x=>({...x,reactEnabled:!x.reactEnabled}))}),a.jsx("span",{className:C.toggleSlider})]})]}),a.jsxs("div",{className:`${C.settingsRow} ${C.settingsRowMarginTop}`,children:[a.jsxs("div",{className:C.settingsLabel,children:["Hide Until Restart",a.jsx(Zr,{content:"Hides the toolbar until you open a new tab"})]}),a.jsxs("label",{className:C.toggleSwitch,children:[a.jsx("input",{type:"checkbox",checked:!1,onChange:x=>{x.target.checked&&r1()}}),a.jsx("span",{className:C.toggleSlider})]})]})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsx("div",{className:`${C.settingsLabel} ${C.settingsLabelMarker}`,children:"Marker Color"}),a.jsx("div",{className:C.colorOptions,children:Ps.map(x=>a.jsx("div",{role:"button",onClick:()=>gr(b=>({...b,annotationColorId:x.id})),style:{"--swatch":x.srgb,"--swatch-p3":x.p3},className:`${C.colorOptionRing} ${Y.annotationColorId===x.id?C.selected:""}`,children:a.jsx("div",{className:`${C.colorOption} ${Y.annotationColorId===x.id?C.selected:""}`,title:x.label})},x.id))})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("label",{className:C.settingsToggle,children:[a.jsx("input",{type:"checkbox",id:"autoClearAfterCopy",checked:Y.autoClearAfterCopy,onChange:x=>gr(b=>({...b,autoClearAfterCopy:x.target.checked}))}),a.jsx("label",{className:`${C.customCheckbox} ${Y.autoClearAfterCopy?C.checked:""}`,htmlFor:"autoClearAfterCopy",children:Y.autoClearAfterCopy&&a.jsx(Tm,{size:14})}),a.jsxs("span",{className:C.toggleLabel,children:["Clear on copy/send",a.jsx(Zr,{content:"Automatically clear annotations after copying"})]})]}),a.jsxs("label",{className:`${C.settingsToggle} ${C.settingsToggleMarginBottom}`,children:[a.jsx("input",{type:"checkbox",id:"blockInteractions",checked:Y.blockInteractions,onChange:x=>gr(b=>({...b,blockInteractions:x.target.checked}))}),a.jsx("label",{className:`${C.customCheckbox} ${Y.blockInteractions?C.checked:""}`,htmlFor:"blockInteractions",children:Y.blockInteractions&&a.jsx(Tm,{size:14})}),a.jsx("span",{className:C.toggleLabel,children:"Block page interactions"})]})]}),a.jsx("div",{className:`${C.settingsSection} ${C.settingsSectionExtraPadding}`,children:a.jsxs("button",{className:C.settingsNavLink,onClick:()=>Ra("automations"),children:[a.jsx("span",{children:"Manage MCP & Webhooks"}),a.jsxs("span",{className:C.settingsNavLinkRight,children:[f&&tt!=="disconnected"&&a.jsx("span",{className:`${C.mcpNavIndicator} ${C[tt]}`}),a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.5 12.5L12 8L7.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})]}),a.jsxs("div",{className:`${C.settingsPage} ${C.automationsPage} ${Cf==="automations"?C.slideIn:""}`,children:[a.jsxs("button",{className:C.settingsBackButton,onClick:()=>Ra("main"),children:[a.jsx(ek,{size:16}),a.jsx("span",{children:"Manage MCP & Webhooks"})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("div",{className:C.settingsRow,children:[a.jsxs("span",{className:C.automationHeader,children:["MCP Connection",a.jsx(Zr,{content:"Connect via Model Context Protocol to let AI agents like Claude Code receive annotations in real-time."})]}),f&&a.jsx("div",{className:`${C.mcpStatusDot} ${C[tt]}`,title:tt==="connected"?"Connected":tt==="connecting"?"Connecting...":"Disconnected"})]}),a.jsxs("p",{className:C.automationDescription,style:{paddingBottom:6},children:["MCP connection allows agents to receive and act on annotations."," ",a.jsx("a",{href:"https://agentation.dev/mcp",target:"_blank",rel:"noopener noreferrer",className:C.learnMoreLink,children:"Learn more"})]})]}),a.jsxs("div",{className:`${C.settingsSection} ${C.settingsSectionGrow}`,children:[a.jsxs("div",{className:C.settingsRow,children:[a.jsxs("span",{className:C.automationHeader,children:["Webhooks",a.jsx(Zr,{content:"Send annotation data to any URL endpoint when annotations change. Useful for custom integrations."})]}),a.jsxs("div",{className:C.autoSendRow,children:[a.jsx("span",{className:`${C.autoSendLabel} ${Y.webhooksEnabled?C.active:""}`,children:"Auto-Send"}),a.jsxs("label",{className:`${C.toggleSwitch} ${Y.webhookUrl?"":C.disabled}`,children:[a.jsx("input",{type:"checkbox",checked:Y.webhooksEnabled,disabled:!Y.webhookUrl,onChange:()=>gr(x=>({...x,webhooksEnabled:!x.webhooksEnabled}))}),a.jsx("span",{className:C.toggleSlider})]})]})]}),a.jsx("p",{className:C.automationDescription,children:"The webhook URL will receive live annotation changes and annotation data."}),a.jsx("textarea",{className:C.webhookUrlInput,placeholder:"Webhook URL",value:Y.webhookUrl,onKeyDown:x=>x.stopPropagation(),onChange:x=>gr(b=>({...b,webhookUrl:x.target.value}))})]})]})]})})]})}),a.jsxs("div",{className:C.markersLayer,"data-feedback-toolbar":!0,children:[M&&hl.filter(x=>!x.isFixed).map((x,b)=>{const R=!z&&pr===x.id,I=hf===x.id,P=(R||I)&&!oe,$=x.isMultiSelect,W=$?"var(--agentation-color-green)":"var(--agentation-color-accent)",V=h.findIndex(te=>te.id===x.id),ne=!Af.has(x.id),Z=z?C.exit:St?C.clearing:ne?C.enter:"",X=P&&Y.markerClickBehavior==="delete";return a.jsxs("div",{className:`${C.marker} ${$?C.multiSelect:""} ${Z} ${X?C.hovered:""}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y,backgroundColor:X?void 0:W,animationDelay:z?`${(hl.length-1-b)*20}ms`:`${b*20}ms`},onMouseEnter:()=>!z&&x.id!==dl.current&&ml(x),onMouseLeave:()=>ml(null),onClick:te=>{te.stopPropagation(),z||(Y.markerClickBehavior==="delete"?$a(x.id):pl(x))},onContextMenu:te=>{Y.markerClickBehavior==="delete"&&(te.preventDefault(),te.stopPropagation(),z||pl(x))},children:[P?X?a.jsx(yc,{size:$?18:16}):a.jsx(Lm,{size:16}):a.jsx("span",{className:il!==null&&V>=il?C.renumber:void 0,children:V+1}),R&&!oe&&a.jsxs("div",{className:`${C.markerTooltip} ${C.enter}`,style:Yf(x),children:[a.jsxs("span",{className:C.markerQuote,children:[x.element,x.selectedText&&` "${x.selectedText.slice(0,30)}${x.selectedText.length>30?"...":""}"`]}),a.jsx("span",{className:C.markerNote,children:x.comment})]})]},x.id)}),M&&!z&&Vf.filter(x=>!x.isFixed).map(x=>{const b=x.isMultiSelect;return a.jsx("div",{className:`${C.marker} ${C.hovered} ${b?C.multiSelect:""} ${C.exit}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y},children:a.jsx(yc,{size:b?12:10})},x.id)})]}),a.jsxs("div",{className:C.fixedMarkersLayer,"data-feedback-toolbar":!0,children:[M&&hl.filter(x=>x.isFixed).map((x,b)=>{const R=hl.filter(ae=>ae.isFixed),I=!z&&pr===x.id,P=hf===x.id,$=(I||P)&&!oe,W=x.isMultiSelect,V=W?"var(--agentation-color-green)":"var(--agentation-color-accent)",ne=h.findIndex(ae=>ae.id===x.id),Z=!Af.has(x.id),X=z?C.exit:St?C.clearing:Z?C.enter:"",te=$&&Y.markerClickBehavior==="delete";return a.jsxs("div",{className:`${C.marker} ${C.fixed} ${W?C.multiSelect:""} ${X} ${te?C.hovered:""}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y,backgroundColor:te?void 0:V,animationDelay:z?`${(R.length-1-b)*20}ms`:`${b*20}ms`},onMouseEnter:()=>!z&&x.id!==dl.current&&ml(x),onMouseLeave:()=>ml(null),onClick:ae=>{ae.stopPropagation(),z||(Y.markerClickBehavior==="delete"?$a(x.id):pl(x))},onContextMenu:ae=>{Y.markerClickBehavior==="delete"&&(ae.preventDefault(),ae.stopPropagation(),z||pl(x))},children:[$?te?a.jsx(yc,{size:W?18:16}):a.jsx(Lm,{size:16}):a.jsx("span",{className:il!==null&&ne>=il?C.renumber:void 0,children:ne+1}),I&&!oe&&a.jsxs("div",{className:`${C.markerTooltip} ${C.enter}`,style:Yf(x),children:[a.jsxs("span",{className:C.markerQuote,children:[x.element,x.selectedText&&` "${x.selectedText.slice(0,30)}${x.selectedText.length>30?"...":""}"`]}),a.jsx("span",{className:C.markerNote,children:x.comment})]})]},x.id)}),M&&!z&&Vf.filter(x=>x.isFixed).map(x=>{const b=x.isMultiSelect;return a.jsx("div",{className:`${C.marker} ${C.fixed} ${C.hovered} ${b?C.multiSelect:""} ${C.exit}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y},children:a.jsx(F2,{size:b?12:10})},x.id)})]}),_&&a.jsxs("div",{className:C.overlay,"data-feedback-toolbar":!0,style:E||oe?{zIndex:99999}:void 0,children:[G?.rect&&!E&&!xf&&!_n&&a.jsx("div",{className:`${C.hoverHighlight} ${C.enter}`,style:{left:G.rect.left,top:G.rect.top,width:G.rect.width,height:G.rect.height,borderColor:"color-mix(in srgb, var(--agentation-color-accent) 50%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 4%, transparent)"}}),Oe.filter(x=>document.contains(x.element)).map((x,b)=>{const R=x.element.getBoundingClientRect(),I=Oe.length>1;return a.jsx("div",{className:I?C.multiSelectOutline:C.singleSelectOutline,style:{position:"fixed",left:R.left,top:R.top,width:R.width,height:R.height,...I?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}},b)}),pr&&!E&&(()=>{const x=h.find(P=>P.id===pr);if(!x?.boundingBox)return null;if(x.elementBoundingBoxes?.length)return ll.length>0?ll.filter(P=>document.contains(P)).map((P,$)=>{const W=P.getBoundingClientRect();return a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:W.left,top:W.top,width:W.width,height:W.height}},`hover-outline-live-${$}`)}):x.elementBoundingBoxes.map((P,$)=>a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:P.x,top:P.y-hr,width:P.width,height:P.height}},`hover-outline-${$}`));const b=Yo&&document.contains(Yo)?Yo.getBoundingClientRect():null,R=b?{x:b.left,y:b.top,width:b.width,height:b.height}:{x:x.boundingBox.x,y:x.isFixed?x.boundingBox.y:x.boundingBox.y-hr,width:x.boundingBox.width,height:x.boundingBox.height},I=x.isMultiSelect;return a.jsx("div",{className:`${I?C.multiSelectOutline:C.singleSelectOutline} ${C.enter}`,style:{left:R.x,top:R.y,width:R.width,height:R.height,...I?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}})})(),G&&!E&&!xf&&!_n&&a.jsxs("div",{className:`${C.hoverTooltip} ${C.enter}`,style:{left:Math.max(8,Math.min(K.x,window.innerWidth-100)),top:Math.max(K.y-(G.reactComponents?48:32),8)},children:[G.reactComponents&&a.jsx("div",{className:C.hoverReactPath,children:G.reactComponents}),a.jsx("div",{className:C.hoverElementName,children:G.elementName})]}),E&&a.jsxs(a.Fragment,{children:[E.multiSelectElements?.length?E.multiSelectElements.filter(x=>document.contains(x)).map((x,b)=>{const R=x.getBoundingClientRect();return a.jsx("div",{className:`${C.multiSelectOutline} ${Ko?C.exit:C.enter}`,style:{left:R.left,top:R.top,width:R.width,height:R.height}},`pending-multi-${b}`)}):E.targetElement&&document.contains(E.targetElement)?(()=>{const x=E.targetElement.getBoundingClientRect();return a.jsx("div",{className:`${C.singleSelectOutline} ${Ko?C.exit:C.enter}`,style:{left:x.left,top:x.top,width:x.width,height:x.height,borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}})})():E.boundingBox&&a.jsx("div",{className:`${E.isMultiSelect?C.multiSelectOutline:C.singleSelectOutline} ${Ko?C.exit:C.enter}`,style:{left:E.boundingBox.x,top:E.boundingBox.y-hr,width:E.boundingBox.width,height:E.boundingBox.height,...E.isMultiSelect?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}}),(()=>{const x=E.x,b=E.isFixed?E.y:E.y-hr;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`${C.marker} ${C.pending} ${E.isMultiSelect?C.multiSelect:""} ${Ko?C.exit:C.enter}`,style:{left:`${x}%`,top:b,backgroundColor:E.isMultiSelect?"var(--agentation-color-green)":"var(--agentation-color-accent)"},children:a.jsx(B2,{size:12})}),a.jsx(Am,{ref:zf,element:E.element,selectedText:E.selectedText,computedStyles:E.computedStylesObj,placeholder:E.element==="Area selection"?"What should change in this area?":E.isMultiSelect?"Feedback for this group of elements...":"What should change?",onSubmit:o1,onCancel:s1,isExiting:Ko,lightMode:!On,accentColor:E.isMultiSelect?"var(--agentation-color-green)":"var(--agentation-color-accent)",style:{left:Math.max(160,Math.min(window.innerWidth-160,x/100*window.innerWidth)),...b>window.innerHeight-290?{bottom:window.innerHeight-b+20}:{top:b+20}}})]})})()]}),oe&&a.jsxs(a.Fragment,{children:[oe.elementBoundingBoxes?.length?yf.length>0?yf.filter(x=>document.contains(x)).map((x,b)=>{const R=x.getBoundingClientRect();return a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:R.left,top:R.top,width:R.width,height:R.height}},`edit-multi-live-${b}`)}):oe.elementBoundingBoxes.map((x,b)=>a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:x.x,top:x.y-hr,width:x.width,height:x.height}},`edit-multi-${b}`)):(()=>{const x=ja&&document.contains(ja)?ja.getBoundingClientRect():null,b=x?{x:x.left,y:x.top,width:x.width,height:x.height}:oe.boundingBox?{x:oe.boundingBox.x,y:oe.isFixed?oe.boundingBox.y:oe.boundingBox.y-hr,width:oe.boundingBox.width,height:oe.boundingBox.height}:null;return b?a.jsx("div",{className:`${oe.isMultiSelect?C.multiSelectOutline:C.singleSelectOutline} ${C.enter}`,style:{left:b.x,top:b.y,width:b.width,height:b.height,...oe.isMultiSelect?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}}):null})(),a.jsx(Am,{ref:Ff,element:oe.element,selectedText:oe.selectedText,computedStyles:dk(oe.computedStyles),placeholder:"Edit your feedback...",initialValue:oe.comment,submitLabel:"Save",onSubmit:l1,onCancel:i1,onDelete:()=>$a(oe.id),isExiting:t1,lightMode:!On,accentColor:oe.isMultiSelect?"var(--agentation-color-green)":"var(--agentation-color-accent)",style:(()=>{const x=oe.isFixed?oe.y:oe.y-hr;return{left:Math.max(160,Math.min(window.innerWidth-160,oe.x/100*window.innerWidth)),...x>window.innerHeight-290?{bottom:window.innerHeight-x+20}:{top:x+20}}})()})]}),_n&&a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:Zo,className:C.dragSelection}),a.jsx("div",{ref:Jo,className:C.highlightsContainer})]})]})]}),document.body)}const Wm=e=>{let t;const n=new Set,r=(d,f)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const m=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(y=>y(t,m))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>c,subscribe:d=>(n.add(d),()=>n.delete(d))},c=t=e(r,o,i);return i},Gk=e=>e?Wm(e):Wm,Kk=e=>e;function Zk(e,t=Kk){const n=at.useSyncExternalStore(e.subscribe,at.useCallback(()=>t(e.getState()),[e,t]),at.useCallback(()=>t(e.getInitialState()),[e,t]));return at.useDebugValue(n),n}const Hm=e=>{const t=Gk(e),n=r=>Zk(t,r);return Object.assign(n,t),n},Jk=e=>e?Hm(e):Hm,wr="/api";async function Hl(e,t){const n=new URLSearchParams;if(t)for(const[l,i]of Object.entries(t))i!=null&&n.set(l,String(i));const r=n.toString(),o=r?`${e}?${r}`:e,s=await fetch(o);if(!s.ok)throw new Error(`API error: ${s.status}`);return s.json()}async function Pc(e,t){const n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:t!=null?JSON.stringify(t):void 0});if(!n.ok)throw new Error(`API error: ${n.status}`);return n.json()}const zt={health:()=>Hl(`${wr}/health`),workflows:()=>Hl(`${wr}/workflows`),runs:(e,t)=>Hl(`${wr}/workflows/${e}/runs`,t),run:e=>Hl(`${wr}/runs/${e}`),cancel:e=>Pc(`${wr}/runs/${e}/cancel`),retry:e=>Pc(`${wr}/runs/${e}/retry`),trigger:(e,t)=>Pc(`${wr}/workflows/${e}/trigger`,t)},qk=["workflow:start","workflow:complete","workflow:fail","step:start","step:complete","step:fail","step:retry"];function eC(e){const t=new EventSource("/api/events");for(const n of qk)t.addEventListener(n,r=>{try{const o=JSON.parse(r.data);e({type:n,data:o,receivedAt:Date.now()})}catch{}});return t.onerror=()=>{},()=>t.close()}const tC=100,Tr=Jk((e,t)=>({health:null,workflows:[],currentRuns:null,currentWorkflowId:null,currentRun:null,liveEvents:[],sidebarCollapsed:!1,toggleSidebar:()=>e(n=>({sidebarCollapsed:!n.sidebarCollapsed})),fetchHealth:async()=>{try{const n=await zt.health();e({health:n})}catch{e({health:null})}},fetchWorkflows:async()=>{try{const n=await zt.workflows();e({workflows:n})}catch{e({workflows:[]})}},fetchRuns:async(n,r)=>{try{const o=await zt.runs(n,r);e({currentRuns:o,currentWorkflowId:n})}catch{e({currentRuns:{runs:[],nextCursor:null}})}},loadMoreRuns:async n=>{const{currentRuns:r}=t();if(r?.nextCursor)try{const o=await zt.runs(n,{cursor:r.nextCursor});e({currentRuns:{runs:[...r.runs,...o.runs],nextCursor:o.nextCursor}})}catch{}},fetchRun:async n=>{try{const r=await zt.run(n);e({currentRun:r})}catch{e({currentRun:null})}},pushEvent:n=>{e(r=>{const o=[n,...r.liveEvents].slice(0,tC);let s=r.currentRun;return s&&n.data.runId===s.id&&zt.run(s.id).then(l=>{l&&e({currentRun:l})}),{liveEvents:o}})},connectSSE:()=>eC(r=>{t().pushEvent(r)})}));/**
2521
- * @license lucide-react v0.460.0 - ISC
2522
- *
2523
- * This source code is licensed under the ISC license.
2524
- * See the LICENSE file in the root directory of this source tree.
2525
- */const nC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
2526
- * @license lucide-react v0.460.0 - ISC
2527
- *
2528
- * This source code is licensed under the ISC license.
2529
- * See the LICENSE file in the root directory of this source tree.
2530
- */var rC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
2531
- * @license lucide-react v0.460.0 - ISC
2532
- *
2533
- * This source code is licensed under the ISC license.
2534
- * See the LICENSE file in the root directory of this source tree.
2535
- */const oC=u.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...i},c)=>u.createElement("svg",{ref:c,...rC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:j0("lucide",o),...i},[...l.map(([d,f])=>u.createElement(d,f)),...Array.isArray(s)?s:[s]]));/**
2536
- * @license lucide-react v0.460.0 - ISC
2537
- *
2538
- * This source code is licensed under the ISC license.
2539
- * See the LICENSE file in the root directory of this source tree.
2540
- */const Te=(e,t)=>{const n=u.forwardRef(({className:r,...o},s)=>u.createElement(oC,{ref:s,iconNode:t,className:j0(`lucide-${nC(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
2541
- * @license lucide-react v0.460.0 - ISC
2542
- *
2543
- * This source code is licensed under the ISC license.
2544
- * See the LICENSE file in the root directory of this source tree.
2545
- */const rf=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
2546
- * @license lucide-react v0.460.0 - ISC
2547
- *
2548
- * This source code is licensed under the ISC license.
2549
- * See the LICENSE file in the root directory of this source tree.
2550
- */const xa=Te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
2551
- * @license lucide-react v0.460.0 - ISC
2552
- *
2553
- * This source code is licensed under the ISC license.
2554
- * See the LICENSE file in the root directory of this source tree.
2555
- */const sC=Te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
2556
- * @license lucide-react v0.460.0 - ISC
2557
- *
2558
- * This source code is licensed under the ISC license.
2559
- * See the LICENSE file in the root directory of this source tree.
2560
- */const of=Te("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
2561
- * @license lucide-react v0.460.0 - ISC
2562
- *
2563
- * This source code is licensed under the ISC license.
2564
- * See the LICENSE file in the root directory of this source tree.
2565
- */const lC=Te("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
2566
- * @license lucide-react v0.460.0 - ISC
2567
- *
2568
- * This source code is licensed under the ISC license.
2569
- * See the LICENSE file in the root directory of this source tree.
2570
- */const iC=Te("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
2571
- * @license lucide-react v0.460.0 - ISC
2572
- *
2573
- * This source code is licensed under the ISC license.
2574
- * See the LICENSE file in the root directory of this source tree.
2575
- */const aC=Te("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
2576
- * @license lucide-react v0.460.0 - ISC
2577
- *
2578
- * This source code is licensed under the ISC license.
2579
- * See the LICENSE file in the root directory of this source tree.
2580
- */const cC=Te("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
2581
- * @license lucide-react v0.460.0 - ISC
2582
- *
2583
- * This source code is licensed under the ISC license.
2584
- * See the LICENSE file in the root directory of this source tree.
2585
- */const uC=Te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
2586
- * @license lucide-react v0.460.0 - ISC
2587
- *
2588
- * This source code is licensed under the ISC license.
2589
- * See the LICENSE file in the root directory of this source tree.
2590
- */const dC=Te("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
2591
- * @license lucide-react v0.460.0 - ISC
2592
- *
2593
- * This source code is licensed under the ISC license.
2594
- * See the LICENSE file in the root directory of this source tree.
2595
- */const fC=Te("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
2596
- * @license lucide-react v0.460.0 - ISC
2597
- *
2598
- * This source code is licensed under the ISC license.
2599
- * See the LICENSE file in the root directory of this source tree.
2600
- */const pC=Te("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
2601
- * @license lucide-react v0.460.0 - ISC
2602
- *
2603
- * This source code is licensed under the ISC license.
2604
- * See the LICENSE file in the root directory of this source tree.
2605
- */const mC=Te("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
2606
- * @license lucide-react v0.460.0 - ISC
2607
- *
2608
- * This source code is licensed under the ISC license.
2609
- * See the LICENSE file in the root directory of this source tree.
2610
- */const hC=Te("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
2611
- * @license lucide-react v0.460.0 - ISC
2612
- *
2613
- * This source code is licensed under the ISC license.
2614
- * See the LICENSE file in the root directory of this source tree.
2615
- */const Um=Te("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
2616
- * @license lucide-react v0.460.0 - ISC
2617
- *
2618
- * This source code is licensed under the ISC license.
2619
- * See the LICENSE file in the root directory of this source tree.
2620
- */const gC=Te("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
2621
- * @license lucide-react v0.460.0 - ISC
2622
- *
2623
- * This source code is licensed under the ISC license.
2624
- * See the LICENSE file in the root directory of this source tree.
2625
- */const _C=Te("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
2626
- * @license lucide-react v0.460.0 - ISC
2627
- *
2628
- * This source code is licensed under the ISC license.
2629
- * See the LICENSE file in the root directory of this source tree.
2630
- */const wa=Te("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
2631
- * @license lucide-react v0.460.0 - ISC
2632
- *
2633
- * This source code is licensed under the ISC license.
2634
- * See the LICENSE file in the root directory of this source tree.
2635
- */const yC=Te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
2636
- * @license lucide-react v0.460.0 - ISC
2637
- *
2638
- * This source code is licensed under the ISC license.
2639
- * See the LICENSE file in the root directory of this source tree.
2640
- */const vC=Te("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
2641
- * @license lucide-react v0.460.0 - ISC
2642
- *
2643
- * This source code is licensed under the ISC license.
2644
- * See the LICENSE file in the root directory of this source tree.
2645
- */const xC=Te("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
2646
- * @license lucide-react v0.460.0 - ISC
2647
- *
2648
- * This source code is licensed under the ISC license.
2649
- * See the LICENSE file in the root directory of this source tree.
2650
- */const wC=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
2651
- * @license lucide-react v0.460.0 - ISC
2652
- *
2653
- * This source code is licensed under the ISC license.
2654
- * See the LICENSE file in the root directory of this source tree.
2655
- */const bC=Te("Zap",[["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"}]]),kC=240,CC=48;function SC(){const e=da(),t=Ud(),{health:n,workflows:r,sidebarCollapsed:o,toggleSidebar:s}=Tr(),{theme:l,setTheme:i}=O2(),[c,d]=u.useState(!0),f=n?.connected??!1,p=t.pathname==="/",m=t.pathname.match(/^\/workflows\/([^/]+)/)?.[1],y=()=>{const _=["light","dark","system"],k=_.indexOf(l);i(_[(k+1)%_.length])},w=l==="dark"?pC:l==="light"?vC:fC;return a.jsxs("aside",{className:"flex flex-col h-full border-r border-sidebar-border bg-sidebar-bg shrink-0 transition-all duration-200 ease-in-out overflow-hidden select-none",style:{width:o?CC:kC},children:[a.jsxs("div",{className:"flex items-center h-11 px-3 border-b border-sidebar-border shrink-0",children:[!o&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"h-5 w-5 rounded bg-primary flex items-center justify-center",children:a.jsx("span",{className:"text-[10px] font-bold text-primary-foreground",children:"C"})}),a.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"Chisel Studio"})]}),o&&a.jsx("div",{className:"h-5 w-5 rounded bg-primary flex items-center justify-center mx-auto",children:a.jsx("span",{className:"text-[10px] font-bold text-primary-foreground",children:"C"})})]}),a.jsxs("nav",{className:"flex-1 overflow-y-auto overflow-x-hidden px-2 py-2 space-y-0.5",children:[a.jsxs("button",{className:ie("flex items-center gap-2 px-2 py-1.5 rounded-md w-full text-[13px] transition-colors duration-100",p?"bg-accent text-foreground font-medium":"text-muted-foreground hover:bg-sidebar-hover hover:text-foreground"),onClick:()=>e("/"),children:[a.jsx(gC,{className:"h-4 w-4 shrink-0"}),!o&&a.jsx("span",{children:"Activity"})]}),a.jsxs("div",{children:[a.jsxs("button",{className:ie("flex items-center gap-2 px-2 py-1.5 rounded-md w-full text-[13px] transition-colors duration-100","text-muted-foreground hover:bg-sidebar-hover hover:text-foreground"),onClick:()=>{o&&s(),d(!c)},children:[a.jsx(cC,{className:"h-4 w-4 shrink-0"}),!o&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"flex-1 text-left",children:"Workflows"}),a.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:r.length}),c?a.jsx(rf,{className:"h-3 w-3 text-muted-foreground"}):a.jsx(xa,{className:"h-3 w-3 text-muted-foreground"})]})]}),c&&!o&&r.length>0&&a.jsx("div",{className:"mt-0.5 space-y-px",children:r.map(_=>{const k=encodeURIComponent(_.id),h=m===k||m===_.id;return a.jsx("button",{className:ie("flex items-center gap-2 pl-8 pr-2 py-1 rounded-md w-full text-left text-[13px] font-mono truncate transition-colors duration-100",h?"bg-accent text-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-sidebar-hover"),onClick:()=>e(`/workflows/${k}`),children:a.jsx("span",{className:"truncate",children:_.id})},_.id)})})]})]}),a.jsxs("div",{className:"border-t border-sidebar-border px-2 py-2 space-y-1 shrink-0",children:[a.jsxs("div",{className:ie("flex items-center gap-2 rounded-md px-2 py-1.5",o&&"justify-center px-0"),children:[a.jsx("div",{className:ie("h-2 w-2 rounded-full shrink-0",f?"bg-emerald-500":"bg-red-500")}),!o&&a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("span",{className:ie("text-xs block",f?"text-muted-foreground":"text-red-500 font-medium"),children:f?"Connected":"Disconnected"}),n&&f&&a.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[n.workers," worker",n.workers!==1?"s":""," · ",n.queues.length," ","queue",n.queues.length!==1?"s":""]})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[!o&&a.jsxs("button",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-sidebar-hover transition-colors duration-100 text-xs",onClick:y,title:`Theme: ${l}`,children:[a.jsx(w,{className:"h-3.5 w-3.5"}),a.jsx("span",{className:"capitalize",children:l})]}),a.jsx("button",{className:ie("flex items-center p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-sidebar-hover transition-colors duration-100",o&&"mx-auto"),onClick:s,children:o?a.jsx(hC,{className:"h-4 w-4"}):a.jsx(mC,{className:"h-4 w-4"})})]})]})]})}function EC(){return a.jsxs("div",{className:"flex h-screen overflow-hidden bg-background text-foreground",children:[a.jsx(SC,{}),a.jsx("main",{className:"flex-1 overflow-auto",children:a.jsx(Tw,{})}),a.jsx(Qk,{})]})}const Vm={queued:{dot:"bg-gray-400",text:"text-muted-foreground"},running:{dot:"bg-blue-500 animate-pulse",text:"text-blue-600 dark:text-blue-400"},completed:{dot:"bg-emerald-500",text:"text-emerald-600 dark:text-emerald-400"},failed:{dot:"bg-red-500",text:"text-red-600 dark:text-red-400"},cancelled:{dot:"bg-yellow-500",text:"text-yellow-600 dark:text-yellow-400"},retrying:{dot:"bg-orange-500 animate-pulse",text:"text-orange-600 dark:text-orange-400"},stalled:{dot:"bg-purple-500",text:"text-purple-600 dark:text-purple-400"},pending:{dot:"bg-gray-400",text:"text-muted-foreground"},skipped:{dot:"bg-gray-300 dark:bg-gray-600",text:"text-muted-foreground"}};function So({status:e,className:t}){const n=Vm[e]||Vm.queued;return a.jsxs("span",{className:ie("inline-flex items-center gap-1.5 text-[13px] font-medium",n.text,t),children:[a.jsx("span",{className:ie("h-2 w-2 rounded-full shrink-0",n.dot)}),a.jsx("span",{className:"capitalize",children:e})]})}function Hu({data:e,collapsed:t=!0,className:n}){const[r,o]=u.useState(!t);if(e==null)return a.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:"null"});const s=typeof e=="string"?e:JSON.stringify(e,null,2);if(!(typeof e=="object"))return a.jsx("span",{className:ie("font-mono text-xs text-emerald-600 dark:text-emerald-400",n),children:s});const i=JSON.stringify(e).length>60?JSON.stringify(e).slice(0,60)+"...":JSON.stringify(e);return a.jsxs("div",{className:ie("font-mono text-xs",n),children:[a.jsxs("button",{onClick:()=>o(!r),className:"flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors duration-100",children:[r?a.jsx(rf,{className:"h-3 w-3"}):a.jsx(xa,{className:"h-3 w-3"}),!r&&a.jsx("span",{className:"text-muted-foreground",children:i})]}),r&&a.jsx("pre",{className:"mt-1.5 rounded-md bg-accent p-2.5 text-foreground whitespace-pre-wrap break-all leading-relaxed text-xs",children:s})]})}function Uu({timestamp:e,className:t}){const[,n]=u.useState(0);if(u.useEffect(()=>{if(!e)return;const o=setInterval(()=>n(s=>s+1),1e3);return()=>clearInterval(o)},[e]),!e)return a.jsx("span",{className:t,children:"—"});const r=new Date(e).toLocaleString();return a.jsxs(L2,{children:[a.jsx(I2,{asChild:!0,children:a.jsx("span",{className:t,children:P2(e)})}),a.jsx(v0,{children:a.jsx("p",{className:"font-mono text-xs",children:r})})]})}var NC=Symbol.for("react.lazy"),Fi=Vi[" use ".trim().toString()];function jC(e){return typeof e=="object"&&e!==null&&"then"in e}function P0(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===NC&&"_payload"in e&&jC(e._payload)}function PC(e){const t=TC(e),n=u.forwardRef((r,o)=>{let{children:s,...l}=r;P0(s)&&typeof Fi=="function"&&(s=Fi(s._payload));const i=u.Children.toArray(s),c=i.find(IC);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var RC=PC("Slot");function TC(e){const t=u.forwardRef((n,r)=>{let{children:o,...s}=n;if(P0(o)&&typeof Fi=="function"&&(o=Fi(o._payload)),u.isValidElement(o)){const l=OC(o),i=AC(s,o.props);return o.type!==u.Fragment&&(i.ref=r?rl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var LC=Symbol("radix.slottable");function IC(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===LC}function AC(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function OC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ym=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xm=p0,MC=(e,t)=>n=>{var r;if(t?.variants==null)return Xm(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(d=>{const f=n?.[d],p=s?.[d];if(f===null)return null;const m=Ym(f)||Ym(p);return o[d][m]}),i=n&&Object.entries(n).reduce((d,f)=>{let[p,m]=f;return m===void 0||(d[p]=m),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:m,...y}=f;return Object.entries(y).every(w=>{let[_,k]=w;return Array.isArray(k)?k.includes({...s,...i}[_]):{...s,...i}[_]===k})?[...d,p,m]:d},[]);return Xm(e,l,c,n?.class,n?.className)},$C=MC("inline-flex items-center justify-center whitespace-nowrap rounded-md text-[13px] font-medium ring-offset-background transition-colors duration-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-3 py-1.5",sm:"h-7 rounded-md px-2.5 text-xs",lg:"h-9 rounded-md px-5",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),cn=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const l=r?RC:"button";return a.jsx(l,{className:ie($C({variant:t,size:n,className:e})),ref:s,...o})});cn.displayName="Button";var DC=u.createContext(void 0);function sf(e){const t=u.useContext(DC);return e||t||"ltr"}function zC(e,[t,n]){return Math.min(n,Math.max(t,e))}function FC(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var lf="ScrollArea",[R0]=Wr(lf),[BC,It]=R0(lf),T0=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...l}=e,[i,c]=u.useState(null),[d,f]=u.useState(null),[p,m]=u.useState(null),[y,w]=u.useState(null),[_,k]=u.useState(null),[h,g]=u.useState(0),[v,S]=u.useState(0),[N,T]=u.useState(!1),[j,L]=u.useState(!1),D=De(t,U=>c(U)),M=sf(o);return a.jsx(BC,{scope:n,type:r,dir:M,scrollHideDelay:s,scrollArea:i,viewport:d,onViewportChange:f,content:p,onContentChange:m,scrollbarX:y,onScrollbarXChange:w,scrollbarXEnabled:N,onScrollbarXEnabledChange:T,scrollbarY:_,onScrollbarYChange:k,scrollbarYEnabled:j,onScrollbarYEnabledChange:L,onCornerWidthChange:g,onCornerHeightChange:S,children:a.jsx(Se.div,{dir:M,...l,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})});T0.displayName=lf;var L0="ScrollAreaViewport",I0=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,l=It(L0,n),i=u.useRef(null),c=De(t,i,l.onViewportChange);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),a.jsx(Se.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:a.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});I0.displayName=L0;var fn="ScrollAreaScrollbar",af=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=It(fn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=o,i=e.orientation==="horizontal";return u.useEffect(()=>(i?s(!0):l(!0),()=>{i?s(!1):l(!1)}),[i,s,l]),o.type==="hover"?a.jsx(WC,{...r,ref:t,forceMount:n}):o.type==="scroll"?a.jsx(HC,{...r,ref:t,forceMount:n}):o.type==="auto"?a.jsx(A0,{...r,ref:t,forceMount:n}):o.type==="always"?a.jsx(cf,{...r,ref:t}):null});af.displayName=fn;var WC=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=It(fn,e.__scopeScrollArea),[s,l]=u.useState(!1);return u.useEffect(()=>{const i=o.scrollArea;let c=0;if(i){const d=()=>{window.clearTimeout(c),l(!0)},f=()=>{c=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),a.jsx(dn,{present:n||s,children:a.jsx(A0,{"data-state":s?"visible":"hidden",...r,ref:t})})}),HC=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=It(fn,e.__scopeScrollArea),s=e.orientation==="horizontal",l=ka(()=>c("SCROLL_END"),100),[i,c]=FC("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return u.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,c]),u.useEffect(()=>{const d=o.viewport,f=s?"scrollLeft":"scrollTop";if(d){let p=d[f];const m=()=>{const y=d[f];p!==y&&(c("SCROLL"),l()),p=y};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[o.viewport,s,c,l]),a.jsx(dn,{present:n||i!=="hidden",children:a.jsx(cf,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ge(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ge(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),A0=u.forwardRef((e,t)=>{const n=It(fn,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,l]=u.useState(!1),i=e.orientation==="horizontal",c=ka(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;l(i?d:f)}},10);return $o(n.viewport,c),$o(n.content,c),a.jsx(dn,{present:r||s,children:a.jsx(cf,{"data-state":s?"visible":"hidden",...o,ref:t})})}),cf=u.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=It(fn,e.__scopeScrollArea),s=u.useRef(null),l=u.useRef(0),[i,c]=u.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=z0(i.viewport,i.content),f={...r,sizes:i,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:m=>s.current=m,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:m=>l.current=m};function p(m,y){return GC(m,l.current,i,y)}return n==="horizontal"?a.jsx(UC,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollLeft,y=Qm(m,i,o.dir);s.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=p(m,o.dir))}}):n==="vertical"?a.jsx(VC,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollTop,y=Qm(m,i);s.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),UC=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=It(fn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=De(t,c,s.onScrollbarXChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(M0,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ba(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(s.viewport){const m=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),B0(m,p)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Wi(l.paddingLeft),paddingEnd:Wi(l.paddingRight)}})}})}),VC=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=It(fn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=De(t,c,s.onScrollbarYChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(M0,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ba(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(s.viewport){const m=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),B0(m,p)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Wi(l.paddingTop),paddingEnd:Wi(l.paddingBottom)}})}})}),[YC,O0]=R0(fn),M0=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:i,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:f,onResize:p,...m}=e,y=It(fn,n),[w,_]=u.useState(null),k=De(t,D=>_(D)),h=u.useRef(null),g=u.useRef(""),v=y.viewport,S=r.content-r.viewport,N=ut(f),T=ut(c),j=ka(p,10);function L(D){if(h.current){const M=D.clientX-h.current.left,U=D.clientY-h.current.top;d({x:M,y:U})}}return u.useEffect(()=>{const D=M=>{const U=M.target;w?.contains(U)&&N(M,S)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[v,w,S,N]),u.useEffect(T,[r,T]),$o(w,j),$o(y.content,j),a.jsx(YC,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:ut(s),onThumbPointerUp:ut(l),onThumbPositionChange:T,onThumbPointerDown:ut(i),children:a.jsx(Se.div,{...m,ref:k,style:{position:"absolute",...m.style},onPointerDown:ge(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),h.current=w.getBoundingClientRect(),g.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),L(D))}),onPointerMove:ge(e.onPointerMove,L),onPointerUp:ge(e.onPointerUp,D=>{const M=D.target;M.hasPointerCapture(D.pointerId)&&M.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=g.current,y.viewport&&(y.viewport.style.scrollBehavior=""),h.current=null})})})}),Bi="ScrollAreaThumb",$0=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=O0(Bi,e.__scopeScrollArea);return a.jsx(dn,{present:n||o.hasThumb,children:a.jsx(XC,{ref:t,...r})})}),XC=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=It(Bi,n),l=O0(Bi,n),{onThumbPositionChange:i}=l,c=De(t,p=>l.onThumbChange(p)),d=u.useRef(void 0),f=ka(()=>{d.current&&(d.current(),d.current=void 0)},100);return u.useEffect(()=>{const p=s.viewport;if(p){const m=()=>{if(f(),!d.current){const y=KC(p,i);d.current=y,i()}};return i(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[s.viewport,f,i]),a.jsx(Se.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ge(e.onPointerDownCapture,p=>{const y=p.target.getBoundingClientRect(),w=p.clientX-y.left,_=p.clientY-y.top;l.onThumbPointerDown({x:w,y:_})}),onPointerUp:ge(e.onPointerUp,l.onThumbPointerUp)})});$0.displayName=Bi;var uf="ScrollAreaCorner",D0=u.forwardRef((e,t)=>{const n=It(uf,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?a.jsx(QC,{...e,ref:t}):null});D0.displayName=uf;var QC=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=It(uf,n),[s,l]=u.useState(0),[i,c]=u.useState(0),d=!!(s&&i);return $o(o.scrollbarX,()=>{const f=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(f),c(f)}),$o(o.scrollbarY,()=>{const f=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(f),l(f)}),d?a.jsx(Se.div,{...r,ref:t,style:{width:s,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Wi(e){return e?parseInt(e,10):0}function z0(e,t){const n=e/t;return isNaN(n)?0:n}function ba(e){const t=z0(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function GC(e,t,n,r="ltr"){const o=ba(n),s=o/2,l=t||s,i=o-l,c=n.scrollbar.paddingStart+l,d=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,p=r==="ltr"?[0,f]:[f*-1,0];return F0([c,d],p)(e)}function Qm(e,t,n="ltr"){const r=ba(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,l=t.content-t.viewport,i=s-r,c=n==="ltr"?[0,l]:[l*-1,0],d=zC(e,c);return F0([0,l],[0,i])(d)}function F0(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function B0(e,t){return e>0&&e<t}var KC=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},l=n.left!==s.left,i=n.top!==s.top;(l||i)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function ka(e,t){const n=ut(e),r=u.useRef(0);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),u.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function $o(e,t){const n=ut(t);Pn(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var W0=T0,ZC=I0,JC=D0;const Ca=u.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(W0,{ref:r,className:ie("relative overflow-hidden",e),...n,children:[a.jsx(ZC,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(H0,{}),a.jsx(JC,{})]}));Ca.displayName=W0.displayName;const H0=u.forwardRef(({className:e,orientation:t="vertical",...n},r)=>a.jsx(af,{ref:r,orientation:t,className:ie("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:a.jsx($0,{className:"relative flex-1 rounded-full bg-border"})}));H0.displayName=af.displayName;function Gm(e){const t=qC(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(tS);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qC(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=rS(o),i=nS(s,o.props);return o.type!==u.Fragment&&(i.ref=r?rl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eS=Symbol("radix.slottable");function tS(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eS}function nS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function rS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function oS(e){const t=e+"CollectionProvider",[n,r]=Wr(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:k,children:h}=_,g=at.useRef(null),v=at.useRef(new Map).current;return a.jsx(o,{scope:k,itemMap:v,collectionRef:g,children:h})};l.displayName=t;const i=e+"CollectionSlot",c=Gm(i),d=at.forwardRef((_,k)=>{const{scope:h,children:g}=_,v=s(i,h),S=De(k,v.collectionRef);return a.jsx(c,{ref:S,children:g})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Gm(f),y=at.forwardRef((_,k)=>{const{scope:h,children:g,...v}=_,S=at.useRef(null),N=De(k,S),T=s(f,h);return at.useEffect(()=>(T.itemMap.set(S,{ref:S,...v}),()=>void T.itemMap.delete(S))),a.jsx(m,{[p]:"",ref:N,children:g})});y.displayName=f;function w(_){const k=s(e+"CollectionConsumer",_);return at.useCallback(()=>{const g=k.collectionRef.current;if(!g)return[];const v=Array.from(g.querySelectorAll(`[${p}]`));return Array.from(k.itemMap.values()).sort((T,j)=>v.indexOf(T.ref.current)-v.indexOf(j.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:l,Slot:d,ItemSlot:y},w,r]}var Rc="rovingFocusGroup.onEntryFocus",sS={bubbles:!1,cancelable:!0},sl="RovingFocusGroup",[Vu,U0,lS]=oS(sl),[iS,V0]=Wr(sl,[lS]),[aS,cS]=iS(sl),Y0=u.forwardRef((e,t)=>a.jsx(Vu.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Vu.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(uS,{...e,ref:t})})}));Y0.displayName=sl;var uS=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=u.useRef(null),y=De(t,m),w=sf(s),[_,k]=ga({prop:l,defaultProp:i??null,onChange:c,caller:sl}),[h,g]=u.useState(!1),v=ut(d),S=U0(n),N=u.useRef(!1),[T,j]=u.useState(0);return u.useEffect(()=>{const L=m.current;if(L)return L.addEventListener(Rc,v),()=>L.removeEventListener(Rc,v)},[v]),a.jsx(aS,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:_,onItemFocus:u.useCallback(L=>k(L),[k]),onItemShiftTab:u.useCallback(()=>g(!0),[]),onFocusableItemAdd:u.useCallback(()=>j(L=>L+1),[]),onFocusableItemRemove:u.useCallback(()=>j(L=>L-1),[]),children:a.jsx(Se.div,{tabIndex:h||T===0?-1:0,"data-orientation":r,...p,ref:y,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{N.current=!0}),onFocus:ge(e.onFocus,L=>{const D=!N.current;if(L.target===L.currentTarget&&D&&!h){const M=new CustomEvent(Rc,sS);if(L.currentTarget.dispatchEvent(M),!M.defaultPrevented){const U=S().filter(K=>K.focusable),z=U.find(K=>K.active),ee=U.find(K=>K.id===_),fe=[z,ee,...U].filter(Boolean).map(K=>K.ref.current);G0(fe,f)}}N.current=!1}),onBlur:ge(e.onBlur,()=>g(!1))})})}),X0="RovingFocusGroupItem",Q0=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:l,...i}=e,c=bo(),d=s||c,f=cS(X0,n),p=f.currentTabStopId===d,m=U0(n),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:_}=f;return u.useEffect(()=>{if(r)return y(),()=>w()},[r,y,w]),a.jsx(Vu.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:a.jsx(Se.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:ge(e.onMouseDown,k=>{r?f.onItemFocus(d):k.preventDefault()}),onFocus:ge(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:ge(e.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){f.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const h=pS(k,f.orientation,f.dir);if(h!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let v=m().filter(S=>S.focusable).map(S=>S.ref.current);if(h==="last")v.reverse();else if(h==="prev"||h==="next"){h==="prev"&&v.reverse();const S=v.indexOf(k.currentTarget);v=f.loop?mS(v,S+1):v.slice(S+1)}setTimeout(()=>G0(v))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:_!=null}):l})})});Q0.displayName=X0;var dS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pS(e,t,n){const r=fS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return dS[r]}function G0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function mS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var hS=Y0,gS=Q0,Sa="Tabs",[_S]=Wr(Sa,[V0]),K0=V0(),[yS,df]=_S(Sa),Z0=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:i,activationMode:c="automatic",...d}=e,f=sf(i),[p,m]=ga({prop:r,onChange:o,defaultProp:s??"",caller:Sa});return a.jsx(yS,{scope:n,baseId:bo(),value:p,onValueChange:m,orientation:l,dir:f,activationMode:c,children:a.jsx(Se.div,{dir:f,"data-orientation":l,...d,ref:t})})});Z0.displayName=Sa;var J0="TabsList",q0=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=df(J0,n),l=K0(n);return a.jsx(hS,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:a.jsx(Se.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});q0.displayName=J0;var ey="TabsTrigger",ty=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,l=df(ey,n),i=K0(n),c=oy(l.baseId,r),d=sy(l.baseId,r),f=r===l.value;return a.jsx(gS,{asChild:!0,...i,focusable:!o,active:f,children:a.jsx(Se.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:ge(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?l.onValueChange(r):p.preventDefault()}),onKeyDown:ge(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&l.onValueChange(r)}),onFocus:ge(e.onFocus,()=>{const p=l.activationMode!=="manual";!f&&!o&&p&&l.onValueChange(r)})})})});ty.displayName=ey;var ny="TabsContent",ry=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...l}=e,i=df(ny,n),c=oy(i.baseId,r),d=sy(i.baseId,r),f=r===i.value,p=u.useRef(f);return u.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),a.jsx(dn,{present:o||f,children:({present:m})=>a.jsx(Se.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:m&&s})})});ry.displayName=ny;function oy(e,t){return`${e}-trigger-${t}`}function sy(e,t){return`${e}-content-${t}`}var vS=Z0,ly=q0,iy=ty,ay=ry;const xS=vS,cy=u.forwardRef(({className:e,...t},n)=>a.jsx(ly,{ref:n,className:ie("inline-flex h-8 items-center gap-1 text-muted-foreground",e),...t}));cy.displayName=ly.displayName;const Yu=u.forwardRef(({className:e,...t},n)=>a.jsx(iy,{ref:n,className:ie("inline-flex items-center justify-center whitespace-nowrap rounded-md px-2.5 py-1 text-[13px] font-medium transition-colors duration-100 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-accent data-[state=active]:text-foreground",e),...t}));Yu.displayName=iy.displayName;const Xu=u.forwardRef(({className:e,...t},n)=>a.jsx(ay,{ref:n,className:ie("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Xu.displayName=ay.displayName;function wS({run:e,onCancel:t,onRetry:n}){const r=e.completedAt&&e.startedAt?e.completedAt-e.startedAt:e.startedAt?Date.now()-e.startedAt:void 0;return a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsxs("div",{className:"flex items-center justify-between h-11 px-4 border-b shrink-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(So,{status:e.status,className:"text-xs"}),a.jsx("span",{className:"font-mono text-[13px] font-medium",children:e.workflowId})]}),a.jsx("button",{className:"text-muted-foreground hover:text-foreground transition-colors",onClick:()=>navigator.clipboard.writeText(e.id),title:"Copy run ID",children:a.jsx(iC,{className:"h-3.5 w-3.5"})})]}),a.jsx(Ca,{className:"flex-1",children:a.jsxs(xS,{defaultValue:"overview",className:"flex flex-col",children:[a.jsx("div",{className:"px-4 pt-3 shrink-0",children:a.jsxs(cy,{children:[a.jsx(Yu,{value:"overview",className:"text-[13px]",children:"Overview"}),a.jsx(Yu,{value:"detail",className:"text-[13px]",children:"Detail"})]})}),a.jsxs(Xu,{value:"overview",className:"px-4 pb-4 space-y-4 mt-3",children:[a.jsxs("section",{className:"space-y-2.5",children:[a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Status"}),a.jsx(So,{status:e.status,className:"text-xs"})]}),a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Started"}),a.jsx(Uu,{timestamp:e.startedAt,className:"font-mono text-[13px]"})]}),e.completedAt&&a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Finished"}),a.jsx(Uu,{timestamp:e.completedAt,className:"font-mono text-[13px]"})]}),a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Duration"}),a.jsx("span",{className:"font-mono text-[13px]",children:Wt(r)})]}),a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Steps"}),a.jsxs("span",{className:"font-mono text-[13px]",children:[e.progress.completed,"/",e.progress.total]})]})]}),a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Payload"}),a.jsx("div",{className:"rounded-md bg-accent p-2.5",children:a.jsx(Hu,{data:e.data,collapsed:!1})})]}),e.status==="completed"&&e.result!==void 0&&a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Output"}),a.jsx("div",{className:"rounded-md bg-accent p-2.5",children:a.jsx(Hu,{data:e.result,collapsed:!1})})]}),e.status==="failed"&&e.error&&a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-red-600 dark:text-red-400 uppercase tracking-wider mb-2",children:"Error"}),a.jsxs("div",{className:"rounded-md bg-red-50 dark:bg-red-500/5 border border-red-200 dark:border-red-500/20 p-2.5",children:[a.jsx("p",{className:"text-xs text-red-600 dark:text-red-400 font-mono",children:e.error}),e.steps.find(o=>o.status==="failed")&&a.jsxs("p",{className:"text-xs text-muted-foreground mt-1.5",children:["Failed at step:"," ",a.jsx("span",{className:"font-mono text-foreground",children:e.steps.find(o=>o.status==="failed")?.name})]})]})]}),(e.status==="running"||e.status==="failed")&&a.jsx("section",{className:"pt-1",children:a.jsxs("div",{className:"flex gap-2",children:[e.status==="running"&&t&&a.jsxs(cn,{variant:"outline",size:"sm",className:"flex-1 gap-1.5 text-red-600 dark:text-red-400",onClick:t,children:[a.jsx(of,{className:"h-3.5 w-3.5"}),"Cancel"]}),e.status==="failed"&&n&&a.jsxs(cn,{variant:"outline",size:"sm",className:"flex-1 gap-1.5 text-orange-600 dark:text-orange-400",onClick:n,children:[a.jsx(wa,{className:"h-3.5 w-3.5"}),"Retry"]})]})})]}),a.jsxs(Xu,{value:"detail",className:"px-4 pb-4 space-y-4 mt-3",children:[a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Run ID"}),a.jsx("p",{className:"font-mono text-xs text-foreground bg-accent rounded-md px-2.5 py-1.5 break-all",children:e.id})]}),a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Workflow"}),a.jsx("p",{className:"font-mono text-xs text-foreground bg-accent rounded-md px-2.5 py-1.5",children:e.workflowId})]}),a.jsxs("section",{children:[a.jsxs("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:["Steps (",e.steps.length,")"]}),a.jsx("div",{className:"space-y-1",children:e.steps.map(o=>a.jsxs("div",{className:"flex items-center justify-between bg-accent rounded-md px-2.5 py-1.5",children:[a.jsx("span",{className:"font-mono text-xs truncate mr-2",children:o.name}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Wt(o.duration)}),a.jsx(So,{status:o.status,className:"text-[11px]"})]})]},o.name))})]})]})]})})]})}function bS(e){switch(e.type){case"workflow:start":return"started";case"workflow:complete":return"completed";case"workflow:fail":return"failed";case"step:start":return`step:${e.data.stepName}`;case"step:complete":return`step:${e.data.stepName}`;case"step:fail":return`step:${e.data.stepName} failed`;case"step:retry":return`step:${e.data.stepName} retry`;default:return e.type}}function kS(e){return e.type.includes("complete")?"completed":e.type.includes("fail")?"failed":e.type.includes("start")?"running":e.type.includes("retry")?"retrying":"queued"}function CS({events:e,className:t}){const n=da();return e.length===0?a.jsx("p",{className:ie("text-[13px] text-muted-foreground py-8",t),children:"No activity yet. Events will appear here in real-time."}):a.jsx("div",{className:ie("space-y-px",t),children:e.map((r,o)=>a.jsxs("div",{className:"flex items-center gap-3 py-2 px-2 rounded-md hover:bg-accent/50 cursor-pointer text-[13px] transition-colors duration-100 animate-slide-in",onClick:()=>{if(r.data.runId){const s=r.data.workflowId?`/workflows/${encodeURIComponent(String(r.data.workflowId))}/runs/${r.data.runId}`:`/runs/${r.data.runId}`;n(s)}},children:[a.jsx("span",{className:"font-mono text-muted-foreground text-xs shrink-0 tabular-nums whitespace-nowrap",children:new Date(r.receivedAt).toLocaleTimeString([],{hour12:!1})}),a.jsx(So,{status:kS(r),className:"text-xs w-24 shrink-0"}),a.jsx("span",{className:"font-mono text-muted-foreground truncate",children:String(r.data.workflowId||"")}),a.jsx("span",{className:"text-foreground truncate",children:bS(r)}),r.data.duration!=null&&a.jsx("span",{className:"font-mono text-muted-foreground ml-auto whitespace-nowrap text-xs",children:Wt(r.data.duration)})]},`${r.receivedAt}-${o}`))})}function SS(){const e=Tr(o=>o.liveEvents),[t,n]=u.useState(""),r=t?e.filter(o=>`${o.type} ${o.data.workflowId??""} ${o.data.stepName??""} ${o.data.runId??""}`.toLowerCase().includes(t.toLowerCase())):e;return a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsxs("div",{className:"h-11 px-5 flex items-center justify-between border-b shrink-0",children:[a.jsx("h1",{className:"text-sm font-medium",children:"Activity"}),a.jsxs("div",{className:"relative",children:[a.jsx(yC,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),a.jsx("input",{type:"text",placeholder:"Filter events...",value:t,onChange:o=>n(o.target.value),className:"h-7 w-52 rounded-md border bg-background pl-8 pr-3 text-[13px] text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]})]}),a.jsx("div",{className:"flex-1 min-h-0",children:a.jsx(Ca,{className:"h-full",children:a.jsx("div",{className:"px-5 py-3",children:a.jsx(CS,{events:r})})})})]})}var Tc="focusScope.autoFocusOnMount",Lc="focusScope.autoFocusOnUnmount",Km={bubbles:!1,cancelable:!0},ES="FocusScope",uy=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[i,c]=u.useState(null),d=ut(o),f=ut(s),p=u.useRef(null),m=De(t,_=>c(_)),y=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let _=function(v){if(y.paused||!i)return;const S=v.target;i.contains(S)?p.current=S:Wn(p.current,{select:!0})},k=function(v){if(y.paused||!i)return;const S=v.relatedTarget;S!==null&&(i.contains(S)||Wn(p.current,{select:!0}))},h=function(v){if(document.activeElement===document.body)for(const N of v)N.removedNodes.length>0&&Wn(i)};document.addEventListener("focusin",_),document.addEventListener("focusout",k);const g=new MutationObserver(h);return i&&g.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",k),g.disconnect()}}},[r,i,y.paused]),u.useEffect(()=>{if(i){Jm.add(y);const _=document.activeElement;if(!i.contains(_)){const h=new CustomEvent(Tc,Km);i.addEventListener(Tc,d),i.dispatchEvent(h),h.defaultPrevented||(NS(LS(dy(i)),{select:!0}),document.activeElement===_&&Wn(i))}return()=>{i.removeEventListener(Tc,d),setTimeout(()=>{const h=new CustomEvent(Lc,Km);i.addEventListener(Lc,f),i.dispatchEvent(h),h.defaultPrevented||Wn(_??document.body,{select:!0}),i.removeEventListener(Lc,f),Jm.remove(y)},0)}}},[i,d,f,y]);const w=u.useCallback(_=>{if(!n&&!r||y.paused)return;const k=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,h=document.activeElement;if(k&&h){const g=_.currentTarget,[v,S]=jS(g);v&&S?!_.shiftKey&&h===S?(_.preventDefault(),n&&Wn(v,{select:!0})):_.shiftKey&&h===v&&(_.preventDefault(),n&&Wn(S,{select:!0})):h===g&&_.preventDefault()}},[n,r,y.paused]);return a.jsx(Se.div,{tabIndex:-1,...l,ref:m,onKeyDown:w})});uy.displayName=ES;function NS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Wn(r,{select:t}),document.activeElement!==n)return}function jS(e){const t=dy(e),n=Zm(t,e),r=Zm(t.reverse(),e);return[n,r]}function dy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zm(e,t){for(const n of e)if(!PS(n,{upTo:t}))return n}function PS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function RS(e){return e instanceof HTMLInputElement&&"select"in e}function Wn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&RS(e)&&t&&e.select()}}var Jm=TS();function TS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qm(e,t),e.unshift(t)},remove(t){e=qm(e,t),e[0]?.resume()}}}function qm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function LS(e){return e.filter(t=>t.tagName!=="A")}var Ic=0;function IS(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eh()),document.body.insertAdjacentElement("beforeend",e[1]??eh()),Ic++,()=>{Ic===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ic--}},[])}function eh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var rn=function(){return rn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},rn.apply(this,arguments)};function fy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function AS(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ii="right-scroll-bar-position",ai="width-before-scroll-bar",OS="with-scroll-bars-hidden",MS="--removed-body-scroll-bar-size";function Ac(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $S(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var DS=typeof window<"u"?u.useLayoutEffect:u.useEffect,th=new WeakMap;function zS(e,t){var n=$S(null,function(r){return e.forEach(function(o){return Ac(o,r)})});return DS(function(){var r=th.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(i){s.has(i)||Ac(i,null)}),s.forEach(function(i){o.has(i)||Ac(i,l)})}th.set(n,e)},[e]),n}function FS(e){return e}function BS(e,t){t===void 0&&(t=FS);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(i){return i!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var i=n;n=[],i.forEach(s),l=n}var c=function(){var f=l;l=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){l.push(f),d()},filter:function(f){return l=l.filter(f),n}}}};return o}function WS(e){e===void 0&&(e={});var t=BS(null);return t.options=rn({async:!0,ssr:!1},e),t}var py=function(e){var t=e.sideCar,n=fy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,rn({},n))};py.isSideCarExport=!0;function HS(e,t){return e.useMedium(t),py}var my=WS(),Oc=function(){},Ea=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Oc,onWheelCapture:Oc,onTouchMoveCapture:Oc}),o=r[0],s=r[1],l=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,y=e.noRelative,w=e.noIsolation,_=e.inert,k=e.allowPinchZoom,h=e.as,g=h===void 0?"div":h,v=e.gapMode,S=fy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=m,T=zS([n,t]),j=rn(rn({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(N,{sideCar:my,removeScrollBar:d,shards:p,noRelative:y,noIsolation:w,inert:_,setCallbacks:s,allowPinchZoom:!!k,lockRef:n,gapMode:v}),l?u.cloneElement(u.Children.only(i),rn(rn({},j),{ref:T})):u.createElement(g,rn({},j,{className:c,ref:T}),i))});Ea.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ea.classNames={fullWidth:ai,zeroRight:ii};var US=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=US();return t&&e.setAttribute("nonce",t),e}function YS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=VS())&&(YS(t,n),XS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GS=function(){var e=QS();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hy=function(){var e=GS(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},KS={left:0,top:0,right:0,gap:0},Mc=function(e){return parseInt(e||"",10)||0},ZS=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Mc(n),Mc(r),Mc(o)]},JS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KS;var t=ZS(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qS=hy(),Eo="data-scroll-locked",eE=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2656
- .`.concat(OS,` {
2657
- overflow: hidden `).concat(r,`;
2658
- padding-right: `).concat(i,"px ").concat(r,`;
2659
- }
2660
- body[`).concat(Eo,`] {
2661
- overflow: hidden `).concat(r,`;
2662
- overscroll-behavior: contain;
2663
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
2664
- padding-left: `.concat(o,`px;
2665
- padding-top: `).concat(s,`px;
2666
- padding-right: `).concat(l,`px;
2667
- margin-left:0;
2668
- margin-top:0;
2669
- margin-right: `).concat(i,"px ").concat(r,`;
2670
- `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
2671
- }
2672
-
2673
- .`).concat(ii,` {
2674
- right: `).concat(i,"px ").concat(r,`;
2675
- }
2676
-
2677
- .`).concat(ai,` {
2678
- margin-right: `).concat(i,"px ").concat(r,`;
2679
- }
2680
-
2681
- .`).concat(ii," .").concat(ii,` {
2682
- right: 0 `).concat(r,`;
2683
- }
2684
-
2685
- .`).concat(ai," .").concat(ai,` {
2686
- margin-right: 0 `).concat(r,`;
2687
- }
2688
-
2689
- body[`).concat(Eo,`] {
2690
- `).concat(MS,": ").concat(i,`px;
2691
- }
2692
- `)},nh=function(){var e=parseInt(document.body.getAttribute(Eo)||"0",10);return isFinite(e)?e:0},tE=function(){u.useEffect(function(){return document.body.setAttribute(Eo,(nh()+1).toString()),function(){var e=nh()-1;e<=0?document.body.removeAttribute(Eo):document.body.setAttribute(Eo,e.toString())}},[])},nE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;tE();var s=u.useMemo(function(){return JS(o)},[o]);return u.createElement(qS,{styles:eE(s,!t,o,n?"":"!important")})},Qu=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return Qu=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{Qu=!1}var qr=Qu?{passive:!1}:!1,rE=function(e){return e.tagName==="TEXTAREA"},gy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!rE(e)&&n[t]==="visible")},oE=function(e){return gy(e,"overflowY")},sE=function(e){return gy(e,"overflowX")},rh=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_y(e,r);if(o){var s=yy(e,r),l=s[1],i=s[2];if(l>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},iE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_y=function(e,t){return e==="v"?oE(t):sE(t)},yy=function(e,t){return e==="v"?lE(t):iE(t)},aE=function(e,t){return e==="h"&&t==="rtl"?-1:1},cE=function(e,t,n,r,o){var s=aE(e,window.getComputedStyle(t).direction),l=s*r,i=n.target,c=t.contains(i),d=!1,f=l>0,p=0,m=0;do{if(!i)break;var y=yy(e,i),w=y[0],_=y[1],k=y[2],h=_-k-s*w;(w||h)&&_y(e,i)&&(p+=h,m+=w);var g=i.parentNode;i=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(d=!0),d},Vl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oh=function(e){return[e.deltaX,e.deltaY]},sh=function(e){return e&&"current"in e?e.current:e},uE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dE=function(e){return`
2693
- .block-interactivity-`.concat(e,` {pointer-events: none;}
2694
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
2695
- `)},fE=0,eo=[];function pE(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(fE++)[0],s=u.useState(hy)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var _=AS([e.lockRef.current],(e.shards||[]).map(sh),!0).filter(Boolean);return _.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),_.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(_,k){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!l.current.allowPinchZoom;var h=Vl(_),g=n.current,v="deltaX"in _?_.deltaX:g[0]-h[0],S="deltaY"in _?_.deltaY:g[1]-h[1],N,T=_.target,j=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in _&&j==="h"&&T.type==="range")return!1;var L=window.getSelection(),D=L&&L.anchorNode,M=D?D===T||D.contains(T):!1;if(M)return!1;var U=rh(j,T);if(!U)return!0;if(U?N=j:(N=j==="v"?"h":"v",U=rh(j,T)),!U)return!1;if(!r.current&&"changedTouches"in _&&(v||S)&&(r.current=N),!N)return!0;var z=r.current||N;return cE(z,k,_,z==="h"?v:S)},[]),c=u.useCallback(function(_){var k=_;if(!(!eo.length||eo[eo.length-1]!==s)){var h="deltaY"in k?oh(k):Vl(k),g=t.current.filter(function(N){return N.name===k.type&&(N.target===k.target||k.target===N.shadowParent)&&uE(N.delta,h)})[0];if(g&&g.should){k.cancelable&&k.preventDefault();return}if(!g){var v=(l.current.shards||[]).map(sh).filter(Boolean).filter(function(N){return N.contains(k.target)}),S=v.length>0?i(k,v[0]):!l.current.noIsolation;S&&k.cancelable&&k.preventDefault()}}},[]),d=u.useCallback(function(_,k,h,g){var v={name:_,delta:k,target:h,should:g,shadowParent:mE(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),f=u.useCallback(function(_){n.current=Vl(_),r.current=void 0},[]),p=u.useCallback(function(_){d(_.type,oh(_),_.target,i(_,e.lockRef.current))},[]),m=u.useCallback(function(_){d(_.type,Vl(_),_.target,i(_,e.lockRef.current))},[]);u.useEffect(function(){return eo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,qr),document.addEventListener("touchmove",c,qr),document.addEventListener("touchstart",f,qr),function(){eo=eo.filter(function(_){return _!==s}),document.removeEventListener("wheel",c,qr),document.removeEventListener("touchmove",c,qr),document.removeEventListener("touchstart",f,qr)}},[]);var y=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(s,{styles:dE(o)}):null,y?u.createElement(nE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hE=HS(my,pE);var vy=u.forwardRef(function(e,t){return u.createElement(Ea,rn({},e,{ref:t,sideCar:hE}))});vy.classNames=Ea.classNames;var gE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,Yl=new WeakMap,Xl={},$c=0,xy=function(e){return e&&(e.host||xy(e.parentNode))},_E=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},yE=function(e,t,n,r){var o=_E(t,Array.isArray(e)?e:[e]);Xl[n]||(Xl[n]=new WeakMap);var s=Xl[n],l=[],i=new Set,c=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(i.has(m))f(m);else try{var y=m.getAttribute(r),w=y!==null&&y!=="false",_=(to.get(m)||0)+1,k=(s.get(m)||0)+1;to.set(m,_),s.set(m,k),l.push(m),_===1&&w&&Yl.set(m,!0),k===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",m,h)}})};return f(t),i.clear(),$c++,function(){l.forEach(function(p){var m=to.get(p)-1,y=s.get(p)-1;to.set(p,m),s.set(p,y),m||(Yl.has(p)||p.removeAttribute(r),Yl.delete(p)),y||p.removeAttribute(n)}),$c--,$c||(to=new WeakMap,to=new WeakMap,Yl=new WeakMap,Xl={})}},vE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=gE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),yE(r,o,n,"aria-hidden")):function(){return null}};function xE(e){const t=wE(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(kE);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function wE(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=SE(o),i=CE(s,o.props);return o.type!==u.Fragment&&(i.ref=r?rl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bE=Symbol("radix.slottable");function kE(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bE}function CE(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function SE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Na="Dialog",[wy]=Wr(Na),[EE,Yt]=wy(Na),by=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,i=u.useRef(null),c=u.useRef(null),[d,f]=ga({prop:r,defaultProp:o??!1,onChange:s,caller:Na});return a.jsx(EE,{scope:t,triggerRef:i,contentRef:c,contentId:bo(),titleId:bo(),descriptionId:bo(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(p=>!p),[f]),modal:l,children:n})};by.displayName=Na;var ky="DialogTrigger",Cy=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yt(ky,n),s=De(t,o.triggerRef);return a.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mf(o.open),...r,ref:s,onClick:ge(e.onClick,o.onOpenToggle)})});Cy.displayName=ky;var ff="DialogPortal",[NE,Sy]=wy(ff,{forceMount:void 0}),Ey=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Yt(ff,t);return a.jsx(NE,{scope:t,forceMount:n,children:u.Children.map(r,l=>a.jsx(dn,{present:n||s.open,children:a.jsx(n0,{asChild:!0,container:o,children:l})}))})};Ey.displayName=ff;var Hi="DialogOverlay",Ny=u.forwardRef((e,t)=>{const n=Sy(Hi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Yt(Hi,e.__scopeDialog);return s.modal?a.jsx(dn,{present:r||s.open,children:a.jsx(PE,{...o,ref:t})}):null});Ny.displayName=Hi;var jE=xE("DialogOverlay.RemoveScroll"),PE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yt(Hi,n);return a.jsx(vy,{as:jE,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(Se.div,{"data-state":mf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Dr="DialogContent",jy=u.forwardRef((e,t)=>{const n=Sy(Dr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Yt(Dr,e.__scopeDialog);return a.jsx(dn,{present:r||s.open,children:s.modal?a.jsx(RE,{...o,ref:t}):a.jsx(TE,{...o,ref:t})})});jy.displayName=Dr;var RE=u.forwardRef((e,t)=>{const n=Yt(Dr,e.__scopeDialog),r=u.useRef(null),o=De(t,n.contentRef,r);return u.useEffect(()=>{const s=r.current;if(s)return vE(s)},[]),a.jsx(Py,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&s.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault())})}),TE=u.forwardRef((e,t)=>{const n=Yt(Dr,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return a.jsx(Py,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Py=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,i=Yt(Dr,n),c=u.useRef(null),d=De(t,c);return IS(),a.jsxs(a.Fragment,{children:[a.jsx(uy,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(Vd,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":mf(i.open),...l,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(IE,{titleId:i.titleId}),a.jsx(OE,{contentRef:c,descriptionId:i.descriptionId})]})]})}),pf="DialogTitle",Ry=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yt(pf,n);return a.jsx(Se.h2,{id:o.titleId,...r,ref:t})});Ry.displayName=pf;var Ty="DialogDescription",LE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yt(Ty,n);return a.jsx(Se.p,{id:o.descriptionId,...r,ref:t})});LE.displayName=Ty;var Ly="DialogClose",Iy=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yt(Ly,n);return a.jsx(Se.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,()=>o.onOpenChange(!1))})});Iy.displayName=Ly;function mf(e){return e?"open":"closed"}var Ay="DialogTitleWarning",[JE,Oy]=$w(Ay,{contentName:Dr,titleName:pf,docsSlug:"dialog"}),IE=({titleId:e})=>{const t=Oy(Ay),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2696
-
2697
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2698
-
2699
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},AE="DialogDescriptionWarning",OE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oy(AE).contentName}}.`;return u.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ME=by,$E=Cy,DE=Ey,My=Ny,$y=jy,Dy=Ry,zE=Iy;const FE=ME,BE=$E,WE=DE,zy=u.forwardRef(({className:e,...t},n)=>a.jsx(My,{ref:n,className:ie("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));zy.displayName=My.displayName;const Fy=u.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(WE,{children:[a.jsx(zy,{}),a.jsxs($y,{ref:r,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 rounded-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...n,children:[t,a.jsxs(zE,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(wC,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fy.displayName=$y.displayName;const HE=({className:e,...t})=>a.jsx("div",{className:ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),By=u.forwardRef(({className:e,...t},n)=>a.jsx(Dy,{ref:n,className:ie("text-lg font-semibold leading-none tracking-tight",e),...t}));By.displayName=Dy.displayName;const Wy=u.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ie("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2.5 text-[13px] ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 transition-colors duration-100",e),ref:n,...t}));Wy.displayName="Textarea";function UE({workflowId:e,onTriggered:t}){const[n,r]=u.useState(!1),[o,s]=u.useState("{}"),[l,i]=u.useState(null),[c,d]=u.useState(!1),f=async()=>{i(null),d(!0);try{const p=JSON.parse(o),m=await zt.trigger(e,p);r(!1),s("{}"),t?.(m.runId)}catch(p){i(p instanceof Error?p.message:"Failed to trigger")}finally{d(!1)}};return a.jsxs(FE,{open:n,onOpenChange:r,children:[a.jsx(BE,{asChild:!0,children:a.jsxs(cn,{size:"sm",className:"gap-1.5",children:[a.jsx(Um,{className:"h-3.5 w-3.5"}),"Trigger"]})}),a.jsxs(Fy,{children:[a.jsx(HE,{children:a.jsxs(By,{className:"font-mono text-sm",children:["Trigger: ",e]})}),a.jsxs("div",{className:"space-y-4 pt-2",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-2 block uppercase tracking-wider",children:"Input Data (JSON)"}),a.jsx(Wy,{value:o,onChange:p=>s(p.target.value),className:"font-mono text-[13px] min-h-[140px] bg-accent",placeholder:"{}"})]}),l&&a.jsx("p",{className:"text-[13px] text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-500/5 rounded-md px-3 py-2",children:l}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx(cn,{variant:"outline",onClick:()=>r(!1),disabled:c,children:"Cancel"}),a.jsxs(cn,{onClick:f,disabled:c,className:"gap-1.5",children:[a.jsx(Um,{className:"h-3.5 w-3.5"}),c?"Triggering...":"Trigger"]})]})]})]})]})}const Hy=u.forwardRef(({className:e,...t},n)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:n,className:ie("w-full caption-bottom text-[13px]",e),...t})}));Hy.displayName="Table";const Uy=u.forwardRef(({className:e,...t},n)=>a.jsx("thead",{ref:n,className:ie("sticky top-0 z-10 bg-background [&_tr]:border-b",e),...t}));Uy.displayName="TableHeader";const Vy=u.forwardRef(({className:e,...t},n)=>a.jsx("tbody",{ref:n,className:ie("[&_tr:last-child]:border-0",e),...t}));Vy.displayName="TableBody";const ci=u.forwardRef(({className:e,...t},n)=>a.jsx("tr",{ref:n,className:ie("border-b transition-colors duration-100 hover:bg-accent/50 data-[state=selected]:bg-accent",e),...t}));ci.displayName="TableRow";const Cr=u.forwardRef(({className:e,...t},n)=>a.jsx("th",{ref:n,className:ie("h-9 px-3 text-left align-middle font-medium text-muted-foreground text-xs [&:has([role=checkbox])]:pr-0",e),...t}));Cr.displayName="TableHead";const Hn=u.forwardRef(({className:e,...t},n)=>a.jsx("td",{ref:n,className:ie("px-3 py-2.5 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Hn.displayName="TableCell";const VE=["all","running","completed","failed","cancelled"];function YE(){const{workflowId:e}=j_(),t=da(),{workflows:n,currentRuns:r,fetchRuns:o,loadMoreRuns:s}=Tr(),[l,i]=u.useState("all"),c=e?decodeURIComponent(e):"",d=n.find(m=>m.id===c);u.useEffect(()=>{c&&o(c,{status:l==="all"?void 0:l})},[c,l,o]);const f=async(m,y)=>{m.stopPropagation(),await zt.cancel(y),o(c,{status:l==="all"?void 0:l})},p=async(m,y)=>{m.stopPropagation(),await zt.retry(y),o(c,{status:l==="all"?void 0:l})};return a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsxs("div",{className:"h-11 px-5 flex items-center justify-between border-b shrink-0",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("h1",{className:"text-sm font-medium font-mono",children:c}),d&&a.jsxs("div",{className:"flex gap-3 text-xs text-muted-foreground items-center",children:[a.jsxs("div",{className:"flex items-center gap-1",title:"Concurrency",children:[a.jsx(aC,{className:"h-3 w-3"}),a.jsx("span",{children:d.concurrency})]}),a.jsxs("div",{className:"flex items-center gap-1",title:"Retries",children:[a.jsx(_C,{className:"h-3 w-3"}),a.jsx("span",{children:d.retries})]}),d.timeout&&a.jsxs("div",{className:"flex items-center gap-1",title:"Timeout",children:[a.jsx(xC,{className:"h-3 w-3"}),a.jsx("span",{children:Wt(d.timeout)})]}),d.rateLimit&&a.jsxs("div",{className:"flex items-center gap-1",title:"Rate limit",children:[a.jsx(bC,{className:"h-3 w-3"}),a.jsxs("span",{children:[d.rateLimit.max,"/",Wt(d.rateLimit.duration)]})]})]})]}),a.jsx(UE,{workflowId:c,onTriggered:()=>{o(c,{status:l==="all"?void 0:l})}})]}),a.jsx("div",{className:"h-10 px-5 flex items-center gap-1 border-b shrink-0",children:VE.map(m=>a.jsx("button",{className:`px-2.5 py-1 rounded-md text-[13px] capitalize transition-colors duration-100 ${l===m?"bg-accent text-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent"}`,onClick:()=>i(m),children:m},m))}),a.jsxs("div",{className:"flex-1 overflow-auto min-h-0",children:[a.jsxs(Hy,{children:[a.jsx(Uy,{children:a.jsxs(ci,{children:[a.jsx(Cr,{className:"pl-5",children:"Run"}),a.jsx(Cr,{children:"Status"}),a.jsx(Cr,{children:"Started"}),a.jsx(Cr,{children:"Duration"}),a.jsx(Cr,{children:"Steps"}),a.jsx(Cr,{className:"w-[80px] pr-5",children:"Actions"})]})}),a.jsxs(Vy,{children:[r?.runs.length===0&&a.jsx(ci,{children:a.jsx(Hn,{colSpan:6,className:"text-center text-muted-foreground py-16",children:"No runs found."})}),r?.runs.map(m=>a.jsxs(ci,{className:"cursor-pointer",onClick:()=>t(`/workflows/${encodeURIComponent(c)}/runs/${m.id}`),children:[a.jsx(Hn,{className:"font-mono text-[13px] pl-5",title:m.id,children:R2(m.id)}),a.jsx(Hn,{children:a.jsx(So,{status:m.status})}),a.jsx(Hn,{className:"text-[13px]",children:a.jsx(Uu,{timestamp:m.startedAt})}),a.jsx(Hn,{className:"font-mono text-[13px] text-muted-foreground",children:m.completedAt&&m.startedAt?Wt(m.completedAt-m.startedAt):"—"}),a.jsxs(Hn,{className:"font-mono text-[13px] text-muted-foreground",children:[m.progress.completed,"/",m.progress.total]}),a.jsx(Hn,{className:"pr-5",children:a.jsxs("div",{className:"flex gap-1",children:[m.status==="running"&&a.jsx(cn,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:y=>f(y,m.id),children:a.jsx(of,{className:"h-3.5 w-3.5 text-red-500"})}),m.status==="failed"&&a.jsx(cn,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:y=>p(y,m.id),children:a.jsx(wa,{className:"h-3.5 w-3.5 text-orange-500"})})]})})]},m.id))]})]}),r?.nextCursor&&a.jsx("div",{className:"flex justify-center py-4",children:a.jsx(cn,{variant:"outline",size:"sm",onClick:()=>s(c),children:"Load More"})})]})]})}const lh={pending:{icon:lC,color:"text-muted-foreground",barColor:"bg-gray-200 dark:bg-gray-700"},running:{icon:uC,color:"text-blue-500",barColor:"bg-blue-500/30 dark:bg-blue-500/40"},completed:{icon:sC,color:"text-emerald-500",barColor:"bg-emerald-500/30 dark:bg-emerald-500/40"},failed:{icon:of,color:"text-red-500",barColor:"bg-red-500/30 dark:bg-red-500/40"},retrying:{icon:wa,color:"text-orange-500",barColor:"bg-orange-500/30 dark:bg-orange-500/40"},skipped:{icon:dC,color:"text-muted-foreground",barColor:"bg-gray-200 dark:bg-gray-700"}};function XE({steps:e,totalDuration:t,className:n,onRetryRun:r}){if(e.length===0)return a.jsx("p",{className:"text-[13px] text-muted-foreground py-4",children:"No steps executed yet."});const o=t||Math.max(...e.map(s=>s.duration??0),1);return a.jsxs("div",{className:ie("space-y-1",n),children:[a.jsxs("div",{className:"flex items-center justify-between pb-2",children:[a.jsxs("span",{className:"text-[13px] text-muted-foreground font-medium",children:["Steps (",e.filter(s=>s.status==="completed").length,"/",e.length,")"]}),a.jsx("span",{className:"text-[13px] text-muted-foreground font-mono",children:Wt(t)})]}),a.jsx("div",{className:"space-y-0.5",children:e.map(s=>a.jsx(QE,{step:s,maxDuration:o,onRetryRun:r},s.name))}),a.jsx(GE,{maxDuration:o})]})}function QE({step:e,maxDuration:t,onRetryRun:n}){const[r,o]=u.useState(!1),s=lh[e.status]||lh.pending,l=s.icon,i=e.status==="running",c=e.duration&&t>0?Math.max(e.duration/t*100,2):e.status==="running"?45:2,d=e.result!==void 0||e.error||(e.attempts??0)>1;return a.jsxs("div",{className:"animate-slide-in",children:[a.jsxs("div",{className:ie("group flex items-center gap-2.5 px-2 py-1.5 rounded-md transition-colors duration-100",d&&"cursor-pointer",r?"bg-accent":"hover:bg-accent/50"),onClick:()=>d&&o(!r),children:[a.jsx("div",{className:ie("shrink-0",s.color),children:a.jsx(l,{className:ie("h-4 w-4",i&&"animate-spin")})}),a.jsx("div",{className:"shrink-0 w-32 min-w-[80px]",children:a.jsx("span",{className:"font-mono text-[13px] truncate block",children:e.name})}),a.jsx("div",{className:"flex-1 h-6 bg-accent rounded-md overflow-hidden relative",children:a.jsx("div",{className:ie("trace-bar h-full flex items-center justify-end px-2",s.barColor,i&&"animate-shimmer bg-gradient-to-r from-blue-500/20 via-blue-400/40 to-blue-500/20 bg-[length:200%_100%]"),style:{width:`${c}%`,"--trace-width":`${c}%`},children:e.duration!=null&&e.duration>0&&a.jsx("span",{className:"text-xs font-mono text-foreground/70 whitespace-nowrap",children:Wt(e.duration)})})}),a.jsx("div",{className:"shrink-0 w-14 text-right",children:a.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:i?"...":Wt(e.duration)})}),d&&a.jsx("div",{className:"shrink-0 text-muted-foreground",children:r?a.jsx(rf,{className:"h-3.5 w-3.5"}):a.jsx(xa,{className:"h-3.5 w-3.5"})})]}),r&&a.jsxs("div",{className:"ml-8 mr-3 mb-1.5 pl-3 border-l-2 border-border",children:[(e.attempts??0)>1&&a.jsxs("p",{className:"text-[13px] text-muted-foreground py-0.5",children:["Attempt ",e.attempts]}),e.error&&a.jsxs("div",{className:"py-1.5",children:[a.jsx("p",{className:"text-[13px] text-red-600 dark:text-red-400 font-mono bg-red-500/5 rounded-md px-2.5 py-1.5",children:e.error}),e.status==="failed"&&n&&a.jsxs(cn,{variant:"outline",size:"sm",className:"mt-2 gap-1.5 text-orange-600 dark:text-orange-400",onClick:f=>{f.stopPropagation(),n()},children:[a.jsx(wa,{className:"h-3 w-3"}),"Retry from this step"]})]}),e.status==="completed"&&e.result!==void 0&&a.jsx("div",{className:"py-1.5",children:a.jsx(Hu,{data:e.result,collapsed:!1})})]})]})}function GE({maxDuration:e}){const n=Array.from({length:6},(r,o)=>{const s=o/5;return{position:s*100,label:Wt(Math.round(e*s))}});return a.jsxs("div",{className:"relative h-4 mt-1",style:{marginLeft:"calc(1rem + 8.5rem)",marginRight:"4.75rem"},children:[a.jsx("div",{className:"absolute inset-x-0 top-0 h-px bg-border"}),n.map((r,o)=>a.jsxs("div",{className:"absolute top-0 flex flex-col items-center",style:{left:`${r.position}%`},children:[a.jsx("div",{className:"w-px h-1.5 bg-border"}),a.jsx("span",{className:"text-[10px] text-muted-foreground font-mono mt-0.5",children:r.label})]},o))]})}function ih(){const{runId:e,workflowId:t}=j_(),n=da(),{currentRun:r,fetchRun:o}=Tr(),s=u.useRef();u.useEffect(()=>(e&&o(e),()=>{s.current&&clearInterval(s.current)}),[e,o]),u.useEffect(()=>(s.current&&clearInterval(s.current),r&&(r.status==="queued"||r.status==="running")&&(s.current=setInterval(()=>{e&&o(e)},3e3)),()=>{s.current&&clearInterval(s.current)}),[r?.status,e,o]);const l=async()=>{e&&(await zt.cancel(e),o(e))},i=async()=>{e&&(await zt.retry(e),o(e))};if(!r)return a.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"Loading run..."});const c=r.completedAt&&r.startedAt?r.completedAt-r.startedAt:r.startedAt?Date.now()-r.startedAt:void 0,d=t?decodeURIComponent(t):r.workflowId;return a.jsxs("div",{className:"flex h-full",children:[a.jsx(Ca,{className:"flex-1",children:a.jsxs("div",{className:"px-5 py-4 space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-1.5 text-[13px]",children:[a.jsx("button",{className:"text-muted-foreground hover:text-foreground transition-colors font-mono",onClick:()=>n(`/workflows/${encodeURIComponent(d)}`),children:d}),a.jsx(xa,{className:"h-3 w-3 text-muted-foreground"}),a.jsx("span",{className:"font-mono text-foreground",children:r.id})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(So,{status:r.status}),a.jsx("span",{className:"font-mono text-[13px] text-muted-foreground",children:Wt(c)})]}),a.jsx("div",{className:"rounded-lg border p-4",children:a.jsx(XE,{steps:r.steps,totalDuration:c,onRetryRun:r.status==="failed"?i:void 0})})]})}),a.jsx("div",{className:"w-[320px] shrink-0 border-l",children:a.jsx(wS,{run:r,onCancel:r.status==="running"?l:void 0,onRetry:r.status==="failed"?i:void 0})})]})}function KE(){const e=Tr(r=>r.connectSSE),t=Tr(r=>r.fetchHealth),n=Tr(r=>r.fetchWorkflows);return u.useEffect(()=>{const r=e();t(),n();const o=setInterval(t,3e4);return()=>{r(),clearInterval(o)}},[e,t,n]),a.jsx(A2,{children:a.jsx(T2,{delayDuration:200,children:a.jsx(Mw,{children:a.jsx(Iw,{children:a.jsxs(no,{element:a.jsx(EC,{}),children:[a.jsx(no,{path:"/",element:a.jsx(SS,{})}),a.jsx(no,{path:"/workflows/:workflowId",element:a.jsx(YE,{})}),a.jsx(no,{path:"/workflows/:workflowId/runs/:runId",element:a.jsx(ih,{})}),a.jsx(no,{path:"/runs/:runId",element:a.jsx(ih,{})})]})})})})})}Dc.createRoot(document.getElementById("root")).render(a.jsx(at.StrictMode,{children:a.jsx(KE,{})}));