@ainyc/canonry 1.4.0 → 1.4.1

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.
@@ -0,0 +1,204 @@
1
+ function ix(a,i){for(var s=0;s<i.length;s++){const r=i[s];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in a)){const d=Object.getOwnPropertyDescriptor(r,c);d&&Object.defineProperty(a,c,d.get?d:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(c){if(c.ep)return;c.ep=!0;const d=s(c);fetch(c.href,d)}})();function zg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Mu={exports:{}},Qs={};var Rp;function sx(){if(Rp)return Qs;Rp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:a,type:r,key:h,ref:c!==void 0?c:null,props:d}}return Qs.Fragment=i,Qs.jsx=s,Qs.jsxs=s,Qs}var Lp;function lx(){return Lp||(Lp=1,Mu.exports=sx()),Mu.exports}var u=lx(),Ru={exports:{}},pe={};var Up;function rx(){if(Up)return pe;Up=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function k(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};function H(A,$,ee){this.props=A,this.context=$,this.refs=N,this.updater=ee||T}H.prototype.isReactComponent={},H.prototype.setState=function(A,$){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,$,"setState")},H.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function G(){}G.prototype=H.prototype;function M(A,$,ee){this.props=A,this.context=$,this.refs=N,this.updater=ee||T}var U=M.prototype=new G;U.constructor=M,S(U,H.prototype),U.isPureReactComponent=!0;var Y=Array.isArray;function X(){}var Z={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function P(A,$,ee){var z=ee.ref;return{$$typeof:a,type:A,key:$,ref:z!==void 0?z:null,props:ee}}function Se(A,$){return P(A.type,$,A.props)}function W(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function se(A){var $={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return $[ee]})}var Ke=/\/+/g;function Ge(A,$){return typeof A=="object"&&A!==null&&A.key!=null?se(""+A.key):$.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(X,X):(A.status="pending",A.then(function($){A.status==="pending"&&(A.status="fulfilled",A.value=$)},function($){A.status==="pending"&&(A.status="rejected",A.reason=$)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function B(A,$,ee,z,F){var ne=typeof A;(ne==="undefined"||ne==="boolean")&&(A=null);var he=!1;if(A===null)he=!0;else switch(ne){case"bigint":case"string":case"number":he=!0;break;case"object":switch(A.$$typeof){case a:case i:he=!0;break;case j:return he=A._init,B(he(A._payload),$,ee,z,F)}}if(he)return F=F(A),he=z===""?"."+Ge(A,0):z,Y(F)?(ee="",he!=null&&(ee=he.replace(Ke,"$&/")+"/"),B(F,$,ee,"",function(Pt){return Pt})):F!=null&&(W(F)&&(F=Se(F,ee+(F.key==null||A&&A.key===F.key?"":(""+F.key).replace(Ke,"$&/")+"/")+he)),$.push(F)),1;he=0;var He=z===""?".":z+":";if(Y(A))for(var me=0;me<A.length;me++)z=A[me],ne=He+Ge(z,me),he+=B(z,$,ee,ne,F);else if(me=k(A),typeof me=="function")for(A=me.call(A),me=0;!(z=A.next()).done;)z=z.value,ne=He+Ge(z,me++),he+=B(z,$,ee,ne,F);else if(ne==="object"){if(typeof A.then=="function")return B(re(A),$,ee,z,F);throw $=String(A),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return he}function J(A,$,ee){if(A==null)return A;var z=[],F=0;return B(A,z,"","",function(ne){return $.call(ee,ne,F++)}),z}function oe(A){if(A._status===-1){var $=A._result;$=$(),$.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),A._status===-1&&(A._status=0,A._result=$)}if(A._status===1)return A._result.default;throw A._result}var ve=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},I={map:J,forEach:function(A,$,ee){J(A,function(){$.apply(this,arguments)},ee)},count:function(A){var $=0;return J(A,function(){$++}),$},toArray:function(A){return J(A,function($){return $})||[]},only:function(A){if(!W(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return pe.Activity=b,pe.Children=I,pe.Component=H,pe.Fragment=s,pe.Profiler=c,pe.PureComponent=M,pe.StrictMode=r,pe.Suspense=y,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,pe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},pe.cache=function(A){return function(){return A.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(A,$,ee){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var z=S({},A.props),F=A.key;if($!=null)for(ne in $.key!==void 0&&(F=""+$.key),$)!_.call($,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&$.ref===void 0||(z[ne]=$[ne]);var ne=arguments.length-2;if(ne===1)z.children=ee;else if(1<ne){for(var he=Array(ne),He=0;He<ne;He++)he[He]=arguments[He+2];z.children=he}return P(A.type,F,z)},pe.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},pe.createElement=function(A,$,ee){var z,F={},ne=null;if($!=null)for(z in $.key!==void 0&&(ne=""+$.key),$)_.call($,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(F[z]=$[z]);var he=arguments.length-2;if(he===1)F.children=ee;else if(1<he){for(var He=Array(he),me=0;me<he;me++)He[me]=arguments[me+2];F.children=He}if(A&&A.defaultProps)for(z in he=A.defaultProps,he)F[z]===void 0&&(F[z]=he[z]);return P(A,ne,F)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(A){return{$$typeof:m,render:A}},pe.isValidElement=W,pe.lazy=function(A){return{$$typeof:j,_payload:{_status:-1,_result:A},_init:oe}},pe.memo=function(A,$){return{$$typeof:g,type:A,compare:$===void 0?null:$}},pe.startTransition=function(A){var $=Z.T,ee={};Z.T=ee;try{var z=A(),F=Z.S;F!==null&&F(ee,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(X,ve)}catch(ne){ve(ne)}finally{$!==null&&ee.types!==null&&($.types=ee.types),Z.T=$}},pe.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},pe.use=function(A){return Z.H.use(A)},pe.useActionState=function(A,$,ee){return Z.H.useActionState(A,$,ee)},pe.useCallback=function(A,$){return Z.H.useCallback(A,$)},pe.useContext=function(A){return Z.H.useContext(A)},pe.useDebugValue=function(){},pe.useDeferredValue=function(A,$){return Z.H.useDeferredValue(A,$)},pe.useEffect=function(A,$){return Z.H.useEffect(A,$)},pe.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},pe.useId=function(){return Z.H.useId()},pe.useImperativeHandle=function(A,$,ee){return Z.H.useImperativeHandle(A,$,ee)},pe.useInsertionEffect=function(A,$){return Z.H.useInsertionEffect(A,$)},pe.useLayoutEffect=function(A,$){return Z.H.useLayoutEffect(A,$)},pe.useMemo=function(A,$){return Z.H.useMemo(A,$)},pe.useOptimistic=function(A,$){return Z.H.useOptimistic(A,$)},pe.useReducer=function(A,$,ee){return Z.H.useReducer(A,$,ee)},pe.useRef=function(A){return Z.H.useRef(A)},pe.useState=function(A){return Z.H.useState(A)},pe.useSyncExternalStore=function(A,$,ee){return Z.H.useSyncExternalStore(A,$,ee)},pe.useTransition=function(){return Z.H.useTransition()},pe.version="19.2.4",pe}var Bp;function fd(){return Bp||(Bp=1,Ru.exports=rx()),Ru.exports}var w=fd();const cx=zg(w),hd=ix({__proto__:null,default:cx},[w]);var Lu={exports:{}},Xs={},Uu={exports:{}},Bu={};var Hp;function ox(){return Hp||(Hp=1,(function(a){function i(B,J){var oe=B.length;B.push(J);e:for(;0<oe;){var ve=oe-1>>>1,I=B[ve];if(0<c(I,J))B[ve]=J,B[oe]=I,oe=ve;else break e}}function s(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var J=B[0],oe=B.pop();if(oe!==J){B[0]=oe;e:for(var ve=0,I=B.length,A=I>>>1;ve<A;){var $=2*(ve+1)-1,ee=B[$],z=$+1,F=B[z];if(0>c(ee,oe))z<I&&0>c(F,ee)?(B[ve]=F,B[z]=oe,ve=z):(B[ve]=ee,B[$]=oe,ve=$);else if(z<I&&0>c(F,oe))B[ve]=F,B[z]=oe,ve=z;else break e}}return J}function c(B,J){var oe=B.sortIndex-J.sortIndex;return oe!==0?oe:B.id-J.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var y=[],g=[],j=1,b=null,x=3,k=!1,T=!1,S=!1,N=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function U(B){for(var J=s(g);J!==null;){if(J.callback===null)r(g);else if(J.startTime<=B)r(g),J.sortIndex=J.expirationTime,i(y,J);else break;J=s(g)}}function Y(B){if(S=!1,U(B),!T)if(s(y)!==null)T=!0,X||(X=!0,se());else{var J=s(g);J!==null&&re(Y,J.startTime-B)}}var X=!1,Z=-1,_=5,P=-1;function Se(){return N?!0:!(a.unstable_now()-P<_)}function W(){if(N=!1,X){var B=a.unstable_now();P=B;var J=!0;try{e:{T=!1,S&&(S=!1,G(Z),Z=-1),k=!0;var oe=x;try{t:{for(U(B),b=s(y);b!==null&&!(b.expirationTime>B&&Se());){var ve=b.callback;if(typeof ve=="function"){b.callback=null,x=b.priorityLevel;var I=ve(b.expirationTime<=B);if(B=a.unstable_now(),typeof I=="function"){b.callback=I,U(B),J=!0;break t}b===s(y)&&r(y),U(B)}else r(y);b=s(y)}if(b!==null)J=!0;else{var A=s(g);A!==null&&re(Y,A.startTime-B),J=!1}}break e}finally{b=null,x=oe,k=!1}J=void 0}}finally{J?se():X=!1}}}var se;if(typeof M=="function")se=function(){M(W)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,Ge=Ke.port2;Ke.port1.onmessage=W,se=function(){Ge.postMessage(null)}}else se=function(){H(W,0)};function re(B,J){Z=H(function(){B(a.unstable_now())},J)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(B){B.callback=null},a.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<B?Math.floor(1e3/B):5},a.unstable_getCurrentPriorityLevel=function(){return x},a.unstable_next=function(B){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var oe=x;x=J;try{return B()}finally{x=oe}},a.unstable_requestPaint=function(){N=!0},a.unstable_runWithPriority=function(B,J){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var oe=x;x=B;try{return J()}finally{x=oe}},a.unstable_scheduleCallback=function(B,J,oe){var ve=a.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ve+oe:ve):oe=ve,B){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=oe+I,B={id:j++,callback:J,priorityLevel:B,startTime:oe,expirationTime:I,sortIndex:-1},oe>ve?(B.sortIndex=oe,i(g,B),s(y)===null&&B===s(g)&&(S?(G(Z),Z=-1):S=!0,re(Y,oe-ve))):(B.sortIndex=I,i(y,B),T||k||(T=!0,X||(X=!0,se()))),B},a.unstable_shouldYield=Se,a.unstable_wrapCallback=function(B){var J=x;return function(){var oe=x;x=J;try{return B.apply(this,arguments)}finally{x=oe}}}})(Bu)),Bu}var qp;function ux(){return qp||(qp=1,Uu.exports=ox()),Uu.exports}var Hu={exports:{}},ft={};var Yp;function dx(){if(Yp)return ft;Yp=1;var a=fd();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)g+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,g,j){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:y,containerInfo:g,implementation:j}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ft.createPortal=function(y,g){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return d(y,g,null,j)},ft.flushSync=function(y){var g=h.T,j=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=g,r.p=j,r.d.f()}},ft.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},ft.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},ft.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var j=g.as,b=m(j,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,k=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;j==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:k}):j==="script"&&r.d.X(y,{crossOrigin:b,integrity:x,fetchPriority:k,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ft.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var j=m(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:j,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},ft.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var j=g.as,b=m(j,g.crossOrigin);r.d.L(y,j,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ft.preloadModule=function(y,g){if(typeof y=="string")if(g){var j=m(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:j,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},ft.requestFormReset=function(y){r.d.r(y)},ft.unstable_batchedUpdates=function(y,g){return y(g)},ft.useFormState=function(y,g,j){return h.H.useFormState(y,g,j)},ft.useFormStatus=function(){return h.H.useHostTransitionStatus()},ft.version="19.2.4",ft}var Kp;function Dg(){if(Kp)return Hu.exports;Kp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Hu.exports=dx(),Hu.exports}var Gp;function fx(){if(Gp)return Xs;Gp=1;var a=ux(),i=fd(),s=Dg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===n)return y(o),e;if(f===l)return y(o),t;f=f.sibling}throw Error(r(188))}if(n.return!==l.return)n=o,l=f;else{for(var p=!1,v=o.child;v;){if(v===n){p=!0,n=o,l=f;break}if(v===l){p=!0,l=o,n=f;break}v=v.sibling}if(!p){for(v=f.child;v;){if(v===n){p=!0,n=f,l=o;break}if(v===l){p=!0,l=f,n=o;break}v=v.sibling}if(!p)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),M=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),Se=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case H:return"Profiler";case N:return"StrictMode";case Y:return"Suspense";case X:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case M:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var re=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ve=[],I=-1;function A(e){return{current:e}}function $(e){0>I||(e.current=ve[I],ve[I]=null,I--)}function ee(e,t){I++,ve[I]=e.current,e.current=t}var z=A(null),F=A(null),ne=A(null),he=A(null);function He(e,t){switch(ee(ne,t),ee(F,e),ee(z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ip(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ip(t),e=sp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(z),ee(z,e)}function me(){$(z),$(F),$(ne)}function Pt(e){e.memoizedState!==null&&ee(he,e);var t=z.current,n=sp(t,e.type);t!==n&&(ee(F,e),ee(z,n))}function Rt(e){F.current===e&&($(z),$(F)),he.current===e&&($(he),Ks._currentValue=oe)}var Wt,gn;function yt(e){if(Wt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wt=t&&t[1]||"",gn=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Wt+e+gn}var Qa=!1;function Xa(e,t){if(!e||Qa)return"";Qa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(q){var L=q}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(q){L=q}e.call(Q.prototype)}}else{try{throw Error()}catch(q){L=q}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&L&&typeof q.stack=="string")return[q.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),p=f[0],v=f[1];if(p&&v){var E=p.split(`
4
+ `),R=v.split(`
5
+ `);for(o=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;o<R.length&&!R[o].includes("DetermineComponentFrameRoot");)o++;if(l===E.length||o===R.length)for(l=E.length-1,o=R.length-1;1<=l&&0<=o&&E[l]!==R[o];)o--;for(;1<=l&&0<=o;l--,o--)if(E[l]!==R[o]){if(l!==1||o!==1)do if(l--,o--,0>o||E[l]!==R[o]){var K=`
6
+ `+E[l].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=l&&0<=o);break}}}finally{Qa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?yt(n):""}function ol(e,t){switch(e.tag){case 26:case 27:case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return e.child!==t&&t!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return Xa(e.type,!1);case 11:return Xa(e.type.render,!1);case 1:return Xa(e.type,!0);case 31:return yt("Activity");default:return""}}function Wi(e){try{var t="",n=null;do t+=ol(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var en=Object.prototype.hasOwnProperty,Lt=a.unstable_scheduleCallback,yn=a.unstable_cancelCallback,yc=a.unstable_shouldYield,vc=a.unstable_requestPaint,ht=a.unstable_now,bc=a.unstable_getCurrentPriorityLevel,ul=a.unstable_ImmediatePriority,dl=a.unstable_UserBlockingPriority,Ut=a.unstable_NormalPriority,xc=a.unstable_LowPriority,te=a.unstable_IdlePriority,vn=a.log,Yv=a.unstable_setDisableYieldValue,es=null,Et=null;function Yn(e){if(typeof vn=="function"&&Yv(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(es,e)}catch{}}var At=Math.clz32?Math.clz32:$v,Kv=Math.log,Gv=Math.LN2;function $v(e){return e>>>=0,e===0?32:31-(Kv(e)/Gv|0)|0}var fl=256,hl=262144,ml=4194304;function ba(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pl(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~f,l!==0?o=ba(l):(p&=v,p!==0?o=ba(p):n||(n=v&~e,n!==0&&(o=ba(n))))):(v=l&~f,v!==0?o=ba(v):p!==0?o=ba(p):n||(n=l&~e,n!==0&&(o=ba(n)))),o===0?0:t!==0&&t!==o&&(t&f)===0&&(f=o&-o,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:o}function ts(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Vv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bd(){var e=ml;return ml<<=1,(ml&62914560)===0&&(ml=4194304),e}function Sc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ns(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qv(e,t,n,l,o,f){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,E=e.expirationTimes,R=e.hiddenUpdates;for(n=p&~n;0<n;){var K=31-At(n),Q=1<<K;v[K]=0,E[K]=-1;var L=R[K];if(L!==null)for(R[K]=null,K=0;K<L.length;K++){var q=L[K];q!==null&&(q.lane&=-536870913)}n&=~Q}l!==0&&Hd(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function Hd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function qd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-At(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Yd(e,t){var n=t&-t;return n=(n&42)!==0?1:jc(n),(n&(e.suspendedLanes|t))!==0?0:n}function jc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Kd(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:kp(e.type))}function Gd(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var Kn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Kn,vt="__reactProps$"+Kn,Za="__reactContainer$"+Kn,Nc="__reactEvents$"+Kn,Xv="__reactListeners$"+Kn,Zv="__reactHandles$"+Kn,$d="__reactResources$"+Kn,as="__reactMarker$"+Kn;function Ec(e){delete e[rt],delete e[vt],delete e[Nc],delete e[Xv],delete e[Zv]}function Ia(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Za]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fp(e);e!==null;){if(n=e[rt])return n;e=fp(e)}return t}e=n,n=e.parentNode}return null}function Ja(e){if(e=e[rt]||e[Za]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function is(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Fa(e){var t=e[$d];return t||(t=e[$d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[as]=!0}var Vd=new Set,Qd={};function xa(e,t){Pa(e,t),Pa(e+"Capture",t)}function Pa(e,t){for(Qd[e]=t,e=0;e<t.length;e++)Vd.add(t[e])}var Iv=RegExp("^[: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]*$"),Xd={},Zd={};function Jv(e){return en.call(Zd,e)?!0:en.call(Xd,e)?!1:Iv.test(e)?Zd[e]=!0:(Xd[e]=!0,!1)}function gl(e,t,n){if(Jv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function yl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function bn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Id(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fv(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,f=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){n=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ac(e){if(!e._valueTracker){var t=Id(e)?"checked":"value";e._valueTracker=Fv(e,t,""+e[t])}}function Jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Id(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function vl(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}}var Pv=/[\n"\\]/g;function Ht(e){return e.replace(Pv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Cc(e,t,n,l,o,f,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?kc(e,p,Bt(t)):n!=null?kc(e,p,Bt(n)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Bt(v):e.removeAttribute("name")}function Fd(e,t,n,l,o,f,p,v){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Ac(e);return}n=n!=null?""+Bt(n):"",t=t!=null?""+Bt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Ac(e)}function kc(e,t,n){t==="number"&&vl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Wa(e,t,n,l){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&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pd(e,t,n){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bt(n):""}function Wd(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(re(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Bt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Ac(e)}function ei(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ef(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Wv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&ef(e,o,l)}else for(var f in t)t.hasOwnProperty(f)&&ef(e,f,t[f])}function Tc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bl(e){return tb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xn(){}var Oc=null;function _c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ti=null,ni=null;function nf(e){var t=Ja(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Cc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[vt]||null;if(!o)throw Error(r(90));Cc(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Jd(l)}break e;case"textarea":Pd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Wa(e,!!n.multiple,t,!1)}}}var zc=!1;function af(e,t,n){if(zc)return e(t,n);zc=!0;try{var l=e(t);return l}finally{if(zc=!1,(ti!==null||ni!==null)&&(lr(),ti&&(t=ti,e=ni,ni=ti=null,nf(t),e)))for(t=0;t<e.length;t++)nf(e[t])}}function ss(e,t){var n=e.stateNode;if(n===null)return null;var l=n[vt]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=!1;if(Sn)try{var ls={};Object.defineProperty(ls,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{Dc=!1}var Gn=null,Mc=null,xl=null;function sf(){if(xl)return xl;var e,t=Mc,n=t.length,l,o="value"in Gn?Gn.value:Gn.textContent,f=o.length;for(e=0;e<n&&t[e]===o[e];e++);var p=n-e;for(l=1;l<=p&&t[n-l]===o[f-l];l++);return xl=o.slice(e,1<l?1-l:void 0)}function Sl(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 jl(){return!0}function lf(){return!1}function bt(e){function t(n,l,o,f,p){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?jl:lf,this.isPropagationStopped=lf,this}return b(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=jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wl=bt(Sa),rs=b({},Sa,{view:0,detail:0}),nb=bt(rs),Rc,Lc,cs,Nl=b({},rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,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!==cs&&(cs&&e.type==="mousemove"?(Rc=e.screenX-cs.screenX,Lc=e.screenY-cs.screenY):Lc=Rc=0,cs=e),Rc)},movementY:function(e){return"movementY"in e?e.movementY:Lc}}),rf=bt(Nl),ab=b({},Nl,{dataTransfer:0}),ib=bt(ab),sb=b({},rs,{relatedTarget:0}),Uc=bt(sb),lb=b({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),rb=bt(lb),cb=b({},Sa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ob=bt(cb),ub=b({},Sa,{data:0}),cf=bt(ub),db={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fb={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"},hb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hb[e])?!!t[e]:!1}function Bc(){return mb}var pb=b({},rs,{key:function(e){if(e.key){var t=db[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,charCode:function(e){return e.type==="keypress"?Sl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gb=bt(pb),yb=b({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=bt(yb),vb=b({},rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),bb=bt(vb),xb=b({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sb=bt(xb),jb=b({},Nl,{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}),wb=bt(jb),Nb=b({},Sa,{newState:0,oldState:0}),Eb=bt(Nb),Ab=[9,13,27,32],Hc=Sn&&"CompositionEvent"in window,os=null;Sn&&"documentMode"in document&&(os=document.documentMode);var Cb=Sn&&"TextEvent"in window&&!os,uf=Sn&&(!Hc||os&&8<os&&11>=os),df=" ",ff=!1;function hf(e,t){switch(e){case"keyup":return Ab.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function kb(e,t){switch(e){case"compositionend":return mf(t);case"keypress":return t.which!==32?null:(ff=!0,df);case"textInput":return e=t.data,e===df&&ff?null:e;default:return null}}function Tb(e,t){if(ai)return e==="compositionend"||!Hc&&hf(e,t)?(e=sf(),xl=Mc=Gn=null,ai=!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 uf&&t.locale!=="ko"?null:t.data;default:return null}}var Ob={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 pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ob[e.type]:t==="textarea"}function gf(e,t,n,l){ti?ni?ni.push(l):ni=[l]:ti=l,t=hr(t,"onChange"),0<t.length&&(n=new wl("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var us=null,ds=null;function _b(e){Pm(e,0)}function El(e){var t=is(e);if(Jd(t))return e}function yf(e,t){if(e==="change")return t}var vf=!1;if(Sn){var qc;if(Sn){var Yc="oninput"in document;if(!Yc){var bf=document.createElement("div");bf.setAttribute("oninput","return;"),Yc=typeof bf.oninput=="function"}qc=Yc}else qc=!1;vf=qc&&(!document.documentMode||9<document.documentMode)}function xf(){us&&(us.detachEvent("onpropertychange",Sf),ds=us=null)}function Sf(e){if(e.propertyName==="value"&&El(ds)){var t=[];gf(t,ds,e,_c(e)),af(_b,t)}}function zb(e,t,n){e==="focusin"?(xf(),us=t,ds=n,us.attachEvent("onpropertychange",Sf)):e==="focusout"&&xf()}function Db(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return El(ds)}function Mb(e,t){if(e==="click")return El(t)}function Rb(e,t){if(e==="input"||e==="change")return El(t)}function Lb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Lb;function fs(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!en.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function jf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wf(e,t){var n=jf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jf(n)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ef(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vl(e.document)}return t}function Kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ub=Sn&&"documentMode"in document&&11>=document.documentMode,ii=null,Gc=null,hs=null,$c=!1;function Af(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$c||ii==null||ii!==vl(l)||(l=ii,"selectionStart"in l&&Kc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),hs&&fs(hs,l)||(hs=l,l=hr(Gc,"onSelect"),0<l.length&&(t=new wl("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=ii)))}function ja(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var si={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},Vc={},Cf={};Sn&&(Cf=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function wa(e){if(Vc[e])return Vc[e];if(!si[e])return e;var t=si[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cf)return Vc[e]=t[n];return e}var kf=wa("animationend"),Tf=wa("animationiteration"),Of=wa("animationstart"),Bb=wa("transitionrun"),Hb=wa("transitionstart"),qb=wa("transitioncancel"),_f=wa("transitionend"),zf=new Map,Qc="abort auxClick beforeToggle 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(" ");Qc.push("scrollEnd");function tn(e,t){zf.set(e,t),xa(t,[e])}var Al=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],li=0,Xc=0;function Cl(){for(var e=li,t=Xc=li=0;t<e;){var n=qt[t];qt[t++]=null;var l=qt[t];qt[t++]=null;var o=qt[t];qt[t++]=null;var f=qt[t];if(qt[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}f!==0&&Df(n,o,f)}}function kl(e,t,n,l){qt[li++]=e,qt[li++]=t,qt[li++]=n,qt[li++]=l,Xc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Zc(e,t,n,l){return kl(e,t,n,l),Tl(e)}function Na(e,t){return kl(e,null,null,t),Tl(e)}function Df(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,f=e.return;f!==null;)f.childLanes|=n,l=f.alternate,l!==null&&(l.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&t!==null&&(o=31-At(n),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),f):null}function Tl(e){if(50<Rs)throw Rs=0,iu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function Yb(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,l){return new Yb(e,t,n,l)}function Ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=kt(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&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Mf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ol(e,t,n,l,o,f){var p=0;if(l=e,typeof e=="function")Ic(e)&&(p=1);else if(typeof e=="string")p=Q0(e,n,z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=kt(31,n,t,o),e.elementType=P,e.lanes=f,e;case S:return Ea(n.children,o,f,t);case N:p=8,o|=24;break;case H:return e=kt(12,n,t,o|2),e.elementType=H,e.lanes=f,e;case Y:return e=kt(13,n,t,o),e.elementType=Y,e.lanes=f,e;case X:return e=kt(19,n,t,o),e.elementType=X,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:p=10;break e;case G:p=9;break e;case U:p=11;break e;case Z:p=14;break e;case _:p=16,l=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=kt(p,n,t,o),t.elementType=e,t.type=l,t.lanes=f,t}function Ea(e,t,n,l){return e=kt(7,e,l,t),e.lanes=n,e}function Jc(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function Rf(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function Fc(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lf=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var n=Lf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Wi(t)},Lf.set(e,t),t)}return{value:e,source:t,stack:Wi(t)}}var ci=[],oi=0,_l=null,ms=0,Kt=[],Gt=0,$n=null,un=1,dn="";function wn(e,t){ci[oi++]=ms,ci[oi++]=_l,_l=e,ms=t}function Uf(e,t,n){Kt[Gt++]=un,Kt[Gt++]=dn,Kt[Gt++]=$n,$n=e;var l=un;e=dn;var o=32-At(l)-1;l&=~(1<<o),n+=1;var f=32-At(t)+o;if(30<f){var p=o-o%5;f=(l&(1<<p)-1).toString(32),l>>=p,o-=p,un=1<<32-At(t)+o|n<<o|l,dn=f+e}else un=1<<f|n<<o|l,dn=e}function Pc(e){e.return!==null&&(wn(e,1),Uf(e,1,0))}function Wc(e){for(;e===_l;)_l=ci[--oi],ci[oi]=null,ms=ci[--oi],ci[oi]=null;for(;e===$n;)$n=Kt[--Gt],Kt[Gt]=null,dn=Kt[--Gt],Kt[Gt]=null,un=Kt[--Gt],Kt[Gt]=null}function Bf(e,t){Kt[Gt++]=un,Kt[Gt++]=dn,Kt[Gt++]=$n,un=t.id,dn=t.overflow,$n=e}var ct=null,Ue=null,Ae=!1,Vn=null,$t=!1,eo=Error(r(519));function Qn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ps(Yt(t,e)),eo}function Hf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[rt]=e,t[vt]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Us.length;n++)we(Us[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Fd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Wd(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||np(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=xn),t=!0):t=!1,t||Qn(e,!0)}function qf(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:ct=ct.return}}function ui(e){if(e!==ct)return!1;if(!Ae)return qf(e),Ae=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||bu(e.type,e.memoizedProps)),n=!n),n&&Ue&&Qn(e),qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=dp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=dp(e)}else t===27?(t=Ue,la(e.type)?(e=Nu,Nu=null,Ue=e):Ue=t):Ue=ct?Qt(e.stateNode.nextSibling):null;return!0}function Aa(){Ue=ct=null,Ae=!1}function to(){var e=Vn;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),Vn=null),e}function ps(e){Vn===null?Vn=[e]:Vn.push(e)}var no=A(null),Ca=null,Nn=null;function Xn(e,t,n){ee(no,t._currentValue),t._currentValue=n}function En(e){e._currentValue=no.current,$(no)}function ao(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function io(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;e:for(;f!==null;){var v=f;f=o;for(var E=0;E<t.length;E++)if(v.context===t[E]){f.lanes|=n,v=f.alternate,v!==null&&(v.lanes|=n),ao(f.return,n,e),l||(p=null);break e}f=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(r(341));p.lanes|=n,f=p.alternate,f!==null&&(f.lanes|=n),ao(p,n,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function di(e,t,n,l){e=null;for(var o=t,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var v=o.type;Ct(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===he.current){if(p=o.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ks):e=[Ks])}o=o.return}e!==null&&io(t,e,n,l),t.flags|=262144}function zl(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){Ca=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return Yf(Ca,e)}function Dl(e,t){return Ca===null&&ka(e),Yf(e,t)}function Yf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Nn===null){if(e===null)throw Error(r(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return n}var Kb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Gb=a.unstable_scheduleCallback,$b=a.unstable_NormalPriority,Pe={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function so(){return{controller:new Kb,data:new Map,refCount:0}}function gs(e){e.refCount--,e.refCount===0&&Gb($b,function(){e.controller.abort()})}var ys=null,lo=0,fi=0,hi=null;function Vb(e,t){if(ys===null){var n=ys=[];lo=0,fi=uu(),hi={status:"pending",value:void 0,then:function(l){n.push(l)}}}return lo++,t.then(Kf,Kf),t}function Kf(){if(--lo===0&&ys!==null){hi!==null&&(hi.status="fulfilled");var e=ys;ys=null,fi=0,hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qb(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var Gf=B.S;B.S=function(e,t){Am=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Vb(e,t),Gf!==null&&Gf(e,t)};var Ta=A(null);function ro(){var e=Ta.current;return e!==null?e:Re.pooledCache}function Ml(e,t){t===null?ee(Ta,Ta.current):ee(Ta,t.pool)}function $f(){var e=ro();return e===null?null:{parent:Pe._currentValue,pool:e}}var mi=Error(r(460)),co=Error(r(474)),Rl=Error(r(542)),Ll={then:function(){}};function Vf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Qf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(xn,xn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e;default:if(typeof t.status=="string")t.then(xn,xn);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e}throw _a=t,mi}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(_a=n,mi):n}}var _a=null;function Xf(){if(_a===null)throw Error(r(459));var e=_a;return _a=null,e}function Zf(e){if(e===mi||e===Rl)throw Error(r(483))}var pi=null,vs=0;function Ul(e){var t=vs;return vs+=1,pi===null&&(pi=[]),Qf(pi,e,t)}function bs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Bl(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function If(e){function t(O,C){if(e){var D=O.deletions;D===null?(O.deletions=[C],O.flags|=16):D.push(C)}}function n(O,C){if(!e)return null;for(;C!==null;)t(O,C),C=C.sibling;return null}function l(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function o(O,C){return O=jn(O,C),O.index=0,O.sibling=null,O}function f(O,C,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<C?(O.flags|=67108866,C):D):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function p(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,C,D,V){return C===null||C.tag!==6?(C=Jc(D,O.mode,V),C.return=O,C):(C=o(C,D),C.return=O,C)}function E(O,C,D,V){var ue=D.type;return ue===S?K(O,C,D.props.children,V,D.key):C!==null&&(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===_&&Oa(ue)===C.type)?(C=o(C,D.props),bs(C,D),C.return=O,C):(C=Ol(D.type,D.key,D.props,null,O.mode,V),bs(C,D),C.return=O,C)}function R(O,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=Fc(D,O.mode,V),C.return=O,C):(C=o(C,D.children||[]),C.return=O,C)}function K(O,C,D,V,ue){return C===null||C.tag!==7?(C=Ea(D,O.mode,V,ue),C.return=O,C):(C=o(C,D),C.return=O,C)}function Q(O,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Jc(""+C,O.mode,D),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return D=Ol(C.type,C.key,C.props,null,O.mode,D),bs(D,C),D.return=O,D;case T:return C=Fc(C,O.mode,D),C.return=O,C;case _:return C=Oa(C),Q(O,C,D)}if(re(C)||se(C))return C=Ea(C,O.mode,D,null),C.return=O,C;if(typeof C.then=="function")return Q(O,Ul(C),D);if(C.$$typeof===M)return Q(O,Dl(O,C),D);Bl(O,C)}return null}function L(O,C,D,V){var ue=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ue!==null?null:v(O,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case k:return D.key===ue?E(O,C,D,V):null;case T:return D.key===ue?R(O,C,D,V):null;case _:return D=Oa(D),L(O,C,D,V)}if(re(D)||se(D))return ue!==null?null:K(O,C,D,V,null);if(typeof D.then=="function")return L(O,C,Ul(D),V);if(D.$$typeof===M)return L(O,C,Dl(O,D),V);Bl(O,D)}return null}function q(O,C,D,V,ue){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return O=O.get(D)||null,v(C,O,""+V,ue);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case k:return O=O.get(V.key===null?D:V.key)||null,E(C,O,V,ue);case T:return O=O.get(V.key===null?D:V.key)||null,R(C,O,V,ue);case _:return V=Oa(V),q(O,C,D,V,ue)}if(re(V)||se(V))return O=O.get(D)||null,K(C,O,V,ue,null);if(typeof V.then=="function")return q(O,C,D,Ul(V),ue);if(V.$$typeof===M)return q(O,C,D,Dl(C,V),ue);Bl(C,V)}return null}function ae(O,C,D,V){for(var ue=null,Ce=null,ce=C,be=C=0,Ee=null;ce!==null&&be<D.length;be++){ce.index>be?(Ee=ce,ce=null):Ee=ce.sibling;var ke=L(O,ce,D[be],V);if(ke===null){ce===null&&(ce=Ee);break}e&&ce&&ke.alternate===null&&t(O,ce),C=f(ke,C,be),Ce===null?ue=ke:Ce.sibling=ke,Ce=ke,ce=Ee}if(be===D.length)return n(O,ce),Ae&&wn(O,be),ue;if(ce===null){for(;be<D.length;be++)ce=Q(O,D[be],V),ce!==null&&(C=f(ce,C,be),Ce===null?ue=ce:Ce.sibling=ce,Ce=ce);return Ae&&wn(O,be),ue}for(ce=l(ce);be<D.length;be++)Ee=q(ce,O,be,D[be],V),Ee!==null&&(e&&Ee.alternate!==null&&ce.delete(Ee.key===null?be:Ee.key),C=f(Ee,C,be),Ce===null?ue=Ee:Ce.sibling=Ee,Ce=Ee);return e&&ce.forEach(function(da){return t(O,da)}),Ae&&wn(O,be),ue}function fe(O,C,D,V){if(D==null)throw Error(r(151));for(var ue=null,Ce=null,ce=C,be=C=0,Ee=null,ke=D.next();ce!==null&&!ke.done;be++,ke=D.next()){ce.index>be?(Ee=ce,ce=null):Ee=ce.sibling;var da=L(O,ce,ke.value,V);if(da===null){ce===null&&(ce=Ee);break}e&&ce&&da.alternate===null&&t(O,ce),C=f(da,C,be),Ce===null?ue=da:Ce.sibling=da,Ce=da,ce=Ee}if(ke.done)return n(O,ce),Ae&&wn(O,be),ue;if(ce===null){for(;!ke.done;be++,ke=D.next())ke=Q(O,ke.value,V),ke!==null&&(C=f(ke,C,be),Ce===null?ue=ke:Ce.sibling=ke,Ce=ke);return Ae&&wn(O,be),ue}for(ce=l(ce);!ke.done;be++,ke=D.next())ke=q(ce,O,be,ke.value,V),ke!==null&&(e&&ke.alternate!==null&&ce.delete(ke.key===null?be:ke.key),C=f(ke,C,be),Ce===null?ue=ke:Ce.sibling=ke,Ce=ke);return e&&ce.forEach(function(ax){return t(O,ax)}),Ae&&wn(O,be),ue}function Me(O,C,D,V){if(typeof D=="object"&&D!==null&&D.type===S&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case k:e:{for(var ue=D.key;C!==null;){if(C.key===ue){if(ue=D.type,ue===S){if(C.tag===7){n(O,C.sibling),V=o(C,D.props.children),V.return=O,O=V;break e}}else if(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===_&&Oa(ue)===C.type){n(O,C.sibling),V=o(C,D.props),bs(V,D),V.return=O,O=V;break e}n(O,C);break}else t(O,C);C=C.sibling}D.type===S?(V=Ea(D.props.children,O.mode,V,D.key),V.return=O,O=V):(V=Ol(D.type,D.key,D.props,null,O.mode,V),bs(V,D),V.return=O,O=V)}return p(O);case T:e:{for(ue=D.key;C!==null;){if(C.key===ue)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){n(O,C.sibling),V=o(C,D.children||[]),V.return=O,O=V;break e}else{n(O,C);break}else t(O,C);C=C.sibling}V=Fc(D,O.mode,V),V.return=O,O=V}return p(O);case _:return D=Oa(D),Me(O,C,D,V)}if(re(D))return ae(O,C,D,V);if(se(D)){if(ue=se(D),typeof ue!="function")throw Error(r(150));return D=ue.call(D),fe(O,C,D,V)}if(typeof D.then=="function")return Me(O,C,Ul(D),V);if(D.$$typeof===M)return Me(O,C,Dl(O,D),V);Bl(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(n(O,C.sibling),V=o(C,D),V.return=O,O=V):(n(O,C),V=Jc(D,O.mode,V),V.return=O,O=V),p(O)):n(O,C)}return function(O,C,D,V){try{vs=0;var ue=Me(O,C,D,V);return pi=null,ue}catch(ce){if(ce===mi||ce===Rl)throw ce;var Ce=kt(29,ce,null,O.mode);return Ce.lanes=V,Ce.return=O,Ce}}}var za=If(!0),Jf=If(!1),Zn=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function In(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Tl(e),Df(e,null,n),t}return kl(e,l,t,n),Tl(e)}function xs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,qd(e,n)}}function fo(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,n=n.next}while(n!==null);f===null?o=f=t:f=f.next=t}else o=f=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ho=!1;function Ss(){if(ho){var e=hi;if(e!==null)throw e}}function js(e,t,n,l){ho=!1;var o=e.updateQueue;Zn=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var E=v,R=E.next;E.next=null,p===null?f=R:p.next=R,p=E;var K=e.alternate;K!==null&&(K=K.updateQueue,v=K.lastBaseUpdate,v!==p&&(v===null?K.firstBaseUpdate=R:v.next=R,K.lastBaseUpdate=E))}if(f!==null){var Q=o.baseState;p=0,K=R=E=null,v=f;do{var L=v.lane&-536870913,q=L!==v.lane;if(q?(Ne&L)===L:(l&L)===L){L!==0&&L===fi&&(ho=!0),K!==null&&(K=K.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,fe=v;L=t;var Me=n;switch(fe.tag){case 1:if(ae=fe.payload,typeof ae=="function"){Q=ae.call(Me,Q,L);break e}Q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=fe.payload,L=typeof ae=="function"?ae.call(Me,Q,L):ae,L==null)break e;Q=b({},Q,L);break e;case 2:Zn=!0}}L=v.callback,L!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[L]:q.push(L))}else q={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},K===null?(R=K=q,E=Q):K=K.next=q,p|=L;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;q=v,v=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);K===null&&(E=Q),o.baseState=E,o.firstBaseUpdate=R,o.lastBaseUpdate=K,f===null&&(o.shared.lanes=0),ta|=p,e.lanes=p,e.memoizedState=Q}}function Ff(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Pf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ff(n[e],t)}var gi=A(null),Hl=A(0);function Wf(e,t){e=Mn,ee(Hl,e),ee(gi,t),Mn=e|t.baseLanes}function mo(){ee(Hl,Mn),ee(gi,gi.current)}function po(){Mn=Hl.current,$(gi),$(Hl)}var Tt=A(null),Vt=null;function Fn(e){var t=e.alternate;ee(Qe,Qe.current&1),ee(Tt,e),Vt===null&&(t===null||gi.current!==null||t.memoizedState!==null)&&(Vt=e)}function go(e){ee(Qe,Qe.current),ee(Tt,e),Vt===null&&(Vt=e)}function eh(e){e.tag===22?(ee(Qe,Qe.current),ee(Tt,e),Vt===null&&(Vt=e)):Pn()}function Pn(){ee(Qe,Qe.current),ee(Tt,Tt.current)}function Ot(e){$(Tt),Vt===e&&(Vt=null),$(Qe)}var Qe=A(0);function ql(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ju(n)||wu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var An=0,ye=null,ze=null,We=null,Yl=!1,yi=!1,Da=!1,Kl=0,ws=0,vi=null,Xb=0;function $e(){throw Error(r(321))}function yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function vo(e,t,n,l,o,f){return An=f,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Uh:Do,Da=!1,f=n(l,o),Da=!1,yi&&(f=nh(t,n,l,o)),th(e),f}function th(e){B.H=As;var t=ze!==null&&ze.next!==null;if(An=0,We=ze=ye=null,Yl=!1,ws=0,vi=null,t)throw Error(r(300));e===null||et||(e=e.dependencies,e!==null&&zl(e)&&(et=!0))}function nh(e,t,n,l){ye=e;var o=0;do{if(yi&&(vi=null),ws=0,yi=!1,25<=o)throw Error(r(301));if(o+=1,We=ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}B.H=Bh,f=t(n,l)}while(yi);return f}function Zb(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Ns(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ye.flags|=1024),t}function bo(){var e=Kl!==0;return Kl=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(Yl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yl=!1}An=0,We=ze=ye=null,yi=!1,ws=Kl=0,vi=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?ye.memoizedState=We=e:We=We.next=e,We}function Xe(){if(ze===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=We===null?ye.memoizedState:We.next;if(t!==null)We=t,ze=e;else{if(e===null)throw ye.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},We===null?ye.memoizedState=We=e:We=We.next=e}return We}function Gl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ns(e){var t=ws;return ws+=1,vi===null&&(vi=[]),e=Qf(vi,e,t),t=ye,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Uh:Do),e}function $l(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ns(e);if(e.$$typeof===M)return ot(e)}throw Error(r(438,String(e)))}function jo(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Gl(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=Se;return t.index++,n}function Cn(e,t){return typeof t=="function"?t(e):t}function Vl(e){var t=Xe();return wo(t,ze,e)}function wo(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}t.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var v=p=null,E=null,R=t,K=!1;do{var Q=R.lane&-536870913;if(Q!==R.lane?(Ne&Q)===Q:(An&Q)===Q){var L=R.revertLane;if(L===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),Q===fi&&(K=!0);else if((An&L)===L){R=R.next,L===fi&&(K=!0);continue}else Q={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},E===null?(v=E=Q,p=f):E=E.next=Q,ye.lanes|=L,ta|=L;Q=R.action,Da&&n(f,Q),f=R.hasEagerState?R.eagerState:n(f,Q)}else L={lane:Q,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},E===null?(v=E=L,p=f):E=E.next=L,ye.lanes|=Q,ta|=Q;R=R.next}while(R!==null&&R!==t);if(E===null?p=f:E.next=v,!Ct(f,e.memoizedState)&&(et=!0,K&&(n=hi,n!==null)))throw n;e.memoizedState=f,e.baseState=p,e.baseQueue=E,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function No(e){var t=Xe(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,f=t.memoizedState;if(o!==null){n.pending=null;var p=o=o.next;do f=e(f,p.action),p=p.next;while(p!==o);Ct(f,t.memoizedState)||(et=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,l]}function ah(e,t,n){var l=ye,o=Xe(),f=Ae;if(f){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!Ct((ze||o).memoizedState,n);if(p&&(o.memoizedState=n,et=!0),o=o.queue,Co(lh.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||We!==null&&We.memoizedState.tag&1){if(l.flags|=2048,bi(9,{destroy:void 0},sh.bind(null,l,o,n,t),null),Re===null)throw Error(r(349));f||(An&127)!==0||ih(l,t,n)}return n}function ih(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Gl(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sh(e,t,n,l){t.value=n,t.getSnapshot=l,rh(t)&&ch(e)}function lh(e,t,n){return n(function(){rh(t)&&ch(e)})}function rh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function ch(e){var t=Na(e,2);t!==null&&Nt(t,e,2)}function Eo(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),Da){Yn(!0);try{n()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:e},t}function oh(e,t,n,l){return e.baseState=n,wo(e,ze,typeof l=="function"?l:Cn)}function Ib(e,t,n,l,o){if(Zl(e))throw Error(r(485));if(e=t.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};B.T!==null?n(!0):f.isTransition=!1,l(f),n=t.pending,n===null?(f.next=t.pending=f,uh(t,f)):(f.next=n.next,t.pending=n.next=f)}}function uh(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var f=B.T,p={};B.T=p;try{var v=n(o,l),E=B.S;E!==null&&E(p,v),dh(e,t,v)}catch(R){Ao(e,t,R)}finally{f!==null&&p.types!==null&&(f.types=p.types),B.T=f}}else try{f=n(o,l),dh(e,t,f)}catch(R){Ao(e,t,R)}}function dh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){fh(e,t,l)},function(l){return Ao(e,t,l)}):fh(e,t,n)}function fh(e,t,n){t.status="fulfilled",t.value=n,hh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,uh(e,n)))}function Ao(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,hh(t),t=t.next;while(t!==l)}e.action=null}function hh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mh(e,t){return t}function ph(e,t){if(Ae){var n=Re.formState;if(n!==null){e:{var l=ye;if(Ae){if(Ue){t:{for(var o=Ue,f=$t;o.nodeType!==8;){if(!f){o=null;break t}if(o=Qt(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Ue=Qt(o.nextSibling),l=o.data==="F!";break e}}Qn(l)}l=!1}l&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mh,lastRenderedState:t},n.queue=l,n=Mh.bind(null,ye,l),l.dispatch=n,l=Eo(!1),f=zo.bind(null,ye,!1,l.queue),l=mt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=Ib.bind(null,ye,o,f,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function gh(e){var t=Xe();return yh(t,ze,e)}function yh(e,t,n){if(t=wo(e,t,mh)[0],e=Vl(Cn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ns(t)}catch(p){throw p===mi?Rl:p}else l=t;t=Xe();var o=t.queue,f=o.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,bi(9,{destroy:void 0},Jb.bind(null,o,n),null)),[l,f,e]}function Jb(e,t){e.action=t}function vh(e){var t=Xe(),n=ze;if(n!==null)return yh(t,n,e);Xe(),t=t.memoizedState,n=Xe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function bi(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Gl(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function bh(){return Xe().memoizedState}function Ql(e,t,n,l){var o=mt();ye.flags|=e,o.memoizedState=bi(1|t,{destroy:void 0},n,l===void 0?null:l)}function Xl(e,t,n,l){var o=Xe();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&yo(l,ze.memoizedState.deps)?o.memoizedState=bi(t,f,n,l):(ye.flags|=e,o.memoizedState=bi(1|t,f,n,l))}function xh(e,t){Ql(8390656,8,e,t)}function Co(e,t){Xl(2048,8,e,t)}function Fb(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Gl(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Sh(e){var t=Xe().memoizedState;return Fb({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function jh(e,t){return Xl(4,2,e,t)}function wh(e,t){return Xl(4,4,e,t)}function Nh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Eh(e,t,n){n=n!=null?n.concat([e]):null,Xl(4,4,Nh.bind(null,t,e),n)}function ko(){}function Ah(e,t){var n=Xe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&yo(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Ch(e,t){var n=Xe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&yo(t,l[1]))return l[0];if(l=e(),Da){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[l,t],l}function To(e,t,n){return n===void 0||(An&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=km(),ye.lanes|=e,ta|=e,n)}function kh(e,t,n,l){return Ct(n,t)?n:gi.current!==null?(e=To(e,n,l),Ct(e,t)||(et=!0),e):(An&42)===0||(An&1073741824)!==0&&(Ne&261930)===0?(et=!0,e.memoizedState=n):(e=km(),ye.lanes|=e,ta|=e,t)}function Th(e,t,n,l,o){var f=J.p;J.p=f!==0&&8>f?f:8;var p=B.T,v={};B.T=v,zo(e,!1,t,n);try{var E=o(),R=B.S;if(R!==null&&R(v,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var K=Qb(E,l);Es(e,t,K,Dt(e))}else Es(e,t,l,Dt(e))}catch(Q){Es(e,t,{then:function(){},status:"rejected",reason:Q},Dt())}finally{J.p=f,p!==null&&v.types!==null&&(p.types=v.types),B.T=p}}function Pb(){}function Oo(e,t,n,l){if(e.tag!==5)throw Error(r(476));var o=Oh(e).queue;Th(e,o,t,oe,n===null?Pb:function(){return _h(e),n(l)})}function Oh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _h(e){var t=Oh(e);t.next===null&&(t=e.alternate.memoizedState),Es(e,t.next.queue,{},Dt())}function _o(){return ot(Ks)}function zh(){return Xe().memoizedState}function Dh(){return Xe().memoizedState}function Wb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dt();e=In(n);var l=Jn(t,e,n);l!==null&&(Nt(l,t,n),xs(l,t,n)),t={cache:so()},e.payload=t;return}t=t.return}}function e0(e,t,n){var l=Dt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zl(e)?Rh(t,n):(n=Zc(e,t,n,l),n!==null&&(Nt(n,e,l),Lh(n,t,l)))}function Mh(e,t,n){var l=Dt();Es(e,t,n,l)}function Es(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zl(e))Rh(t,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,v=f(p,n);if(o.hasEagerState=!0,o.eagerState=v,Ct(v,p))return kl(e,t,o,0),Re===null&&Cl(),!1}catch{}if(n=Zc(e,t,o,l),n!==null)return Nt(n,e,l),Lh(n,t,l),!0}return!1}function zo(e,t,n,l){if(l={lane:2,revertLane:uu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Zl(e)){if(t)throw Error(r(479))}else t=Zc(e,n,l,2),t!==null&&Nt(t,e,2)}function Zl(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Rh(e,t){yi=Yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,qd(e,n)}}var As={readContext:ot,use:$l,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};As.useEffectEvent=$e;var Uh={readContext:ot,use:$l,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:xh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ql(4194308,4,Nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ql(4194308,4,e,t)},useInsertionEffect:function(e,t){Ql(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var l=e();if(Da){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=mt();if(n!==void 0){var o=n(t);if(Da){Yn(!0);try{n(t)}finally{Yn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=e0.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Eo(e);var t=e.queue,n=Mh.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ko,useDeferredValue:function(e,t){var n=mt();return To(n,e,t)},useTransition:function(){var e=Eo(!1);return e=Th.bind(null,ye,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ye,o=mt();if(Ae){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Re===null)throw Error(r(349));(Ne&127)!==0||ih(l,t,n)}o.memoizedState=n;var f={value:n,getSnapshot:t};return o.queue=f,xh(lh.bind(null,l,f,e),[e]),l.flags|=2048,bi(9,{destroy:void 0},sh.bind(null,l,f,n,t),null),n},useId:function(){var e=mt(),t=Re.identifierPrefix;if(Ae){var n=dn,l=un;n=(l&~(1<<32-At(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Kl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Xb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_o,useFormState:ph,useActionState:ph,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=zo.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return mt().memoizedState=Wb.bind(null,ye)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Te&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Do={readContext:ot,use:$l,useCallback:Ah,useContext:ot,useEffect:Co,useImperativeHandle:Eh,useInsertionEffect:jh,useLayoutEffect:wh,useMemo:Ch,useReducer:Vl,useRef:bh,useState:function(){return Vl(Cn)},useDebugValue:ko,useDeferredValue:function(e,t){var n=Xe();return kh(n,ze.memoizedState,e,t)},useTransition:function(){var e=Vl(Cn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:ah,useId:zh,useHostTransitionStatus:_o,useFormState:gh,useActionState:gh,useOptimistic:function(e,t){var n=Xe();return oh(n,ze,e,t)},useMemoCache:jo,useCacheRefresh:Dh};Do.useEffectEvent=Sh;var Bh={readContext:ot,use:$l,useCallback:Ah,useContext:ot,useEffect:Co,useImperativeHandle:Eh,useInsertionEffect:jh,useLayoutEffect:wh,useMemo:Ch,useReducer:No,useRef:bh,useState:function(){return No(Cn)},useDebugValue:ko,useDeferredValue:function(e,t){var n=Xe();return ze===null?To(n,e,t):kh(n,ze.memoizedState,e,t)},useTransition:function(){var e=No(Cn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:ah,useId:zh,useHostTransitionStatus:_o,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var n=Xe();return ze!==null?oh(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:jo,useCacheRefresh:Dh};Bh.useEffectEvent=Sh;function Mo(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ro={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Dt(),o=In(l);o.payload=t,n!=null&&(o.callback=n),t=Jn(e,o,l),t!==null&&(Nt(t,e,l),xs(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Dt(),o=In(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Jn(e,o,l),t!==null&&(Nt(t,e,l),xs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),l=In(n);l.tag=2,t!=null&&(l.callback=t),t=Jn(e,l,n),t!==null&&(Nt(t,e,n),xs(t,e,n))}};function Hh(e,t,n,l,o,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,p):t.prototype&&t.prototype.isPureReactComponent?!fs(n,l)||!fs(o,f):!0}function qh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Ro.enqueueReplaceState(t,t.state,null)}function Ma(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Yh(e){Al(e)}function Kh(e){console.error(e)}function Gh(e){Al(e)}function Il(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function $h(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Lo(e,t,n){return n=In(n),n.tag=3,n.payload={element:null},n.callback=function(){Il(e,t)},n}function Vh(e){return e=In(e),e.tag=3,e}function Qh(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){$h(t,n,l)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){$h(t,n,l),typeof o!="function"&&(na===null?na=new Set([this]):na.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function t0(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&di(t,n,o,!0),n=Tt.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?rr():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===Ll?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),ru(e,l,o)),!1;case 22:return n.flags|=65536,l===Ll?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),ru(e,l,o)),!1}throw Error(r(435,n.tag))}return ru(e,l,o),rr(),!1}if(Ae)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==eo&&(e=Error(r(422),{cause:l}),ps(Yt(e,n)))):(l!==eo&&(t=Error(r(423),{cause:l}),ps(Yt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Yt(l,n),o=Lo(e.stateNode,l,o),fo(e,o),Ve!==4&&(Ve=2)),!1;var f=Error(r(520),{cause:l});if(f=Yt(f,n),Ms===null?Ms=[f]:Ms.push(f),Ve!==4&&(Ve=2),t===null)return!0;l=Yt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Lo(n.stateNode,l,e),fo(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(na===null||!na.has(f))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Vh(o),Qh(o,e,n,l),fo(n,o),!1}n=n.return}while(n!==null);return!1}var Uo=Error(r(461)),et=!1;function ut(e,t,n,l){t.child=e===null?Jf(t,null,n,l):za(t,e.child,n,l)}function Xh(e,t,n,l,o){n=n.render;var f=t.ref;if("ref"in l){var p={};for(var v in l)v!=="ref"&&(p[v]=l[v])}else p=l;return ka(t),l=vo(e,t,n,p,f,o),v=bo(),e!==null&&!et?(xo(e,t,o),kn(e,t,o)):(Ae&&v&&Pc(t),t.flags|=1,ut(e,t,l,o),t.child)}function Zh(e,t,n,l,o){if(e===null){var f=n.type;return typeof f=="function"&&!Ic(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,Ih(e,t,f,l,o)):(e=Ol(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Vo(e,o)){var p=f.memoizedProps;if(n=n.compare,n=n!==null?n:fs,n(p,l)&&e.ref===t.ref)return kn(e,t,o)}return t.flags|=1,e=jn(f,l),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,n,l,o){if(e!==null){var f=e.memoizedProps;if(fs(f,l)&&e.ref===t.ref)if(et=!1,t.pendingProps=l=f,Vo(e,o))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,kn(e,t,o)}return Bo(e,t,n,l,o)}function Jh(e,t,n,l){var o=l.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~f}else l=0,t.child=null;return Fh(e,t,f,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ml(t,f!==null?f.cachePool:null),f!==null?Wf(t,f):mo(),eh(t);else return l=t.lanes=536870912,Fh(e,t,f!==null?f.baseLanes|n:n,n,l)}else f!==null?(Ml(t,f.cachePool),Wf(t,f),Pn(),t.memoizedState=null):(e!==null&&Ml(t,null),mo(),Pn());return ut(e,t,o,n),t.child}function Cs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fh(e,t,n,l,o){var f=ro();return f=f===null?null:{parent:Pe._currentValue,pool:f},t.memoizedState={baseLanes:n,cachePool:f},e!==null&&Ml(t,null),mo(),eh(t),e!==null&&di(e,t,l,!0),t.childLanes=o,null}function Jl(e,t){return t=Pl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ph(e,t,n){return za(t,e.child,null,n),e=Jl(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function n0(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(l.mode==="hidden")return e=Jl(t,l),t.lanes=536870912,Cs(null,e);if(go(t),(e=Ue)?(e=up(e,$t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:un,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=Rf(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Qn(t);return t.lanes=536870912,null}return Jl(t,l)}var f=e.memoizedState;if(f!==null){var p=f.dehydrated;if(go(t),o)if(t.flags&256)t.flags&=-257,t=Ph(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(et||di(e,t,n,!1),o=(n&e.childLanes)!==0,et||o){if(l=Re,l!==null&&(p=Yd(l,n),p!==0&&p!==f.retryLane))throw f.retryLane=p,Na(e,p),Nt(l,e,p),Uo;rr(),t=Ph(e,t,n)}else e=f.treeContext,Ue=Qt(p.nextSibling),ct=t,Ae=!0,Vn=null,$t=!1,e!==null&&Bf(t,e),t=Jl(t,l),t.flags|=4096;return t}return e=jn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Bo(e,t,n,l,o){return ka(t),n=vo(e,t,n,l,void 0,o),l=bo(),e!==null&&!et?(xo(e,t,o),kn(e,t,o)):(Ae&&l&&Pc(t),t.flags|=1,ut(e,t,n,o),t.child)}function Wh(e,t,n,l,o,f){return ka(t),t.updateQueue=null,n=nh(t,l,n,o),th(e),l=bo(),e!==null&&!et?(xo(e,t,f),kn(e,t,f)):(Ae&&l&&Pc(t),t.flags|=1,ut(e,t,n,f),t.child)}function em(e,t,n,l,o){if(ka(t),t.stateNode===null){var f=ri,p=n.contextType;typeof p=="object"&&p!==null&&(f=ot(p)),f=new n(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Ro,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},oo(t),p=n.contextType,f.context=typeof p=="object"&&p!==null?ot(p):ri,f.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Mo(t,n,p,l),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&Ro.enqueueReplaceState(f,f.state,null),js(t,l,f,o),Ss(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var v=t.memoizedProps,E=Ma(n,v);f.props=E;var R=f.context,K=n.contextType;p=ri,typeof K=="object"&&K!==null&&(p=ot(K));var Q=n.getDerivedStateFromProps;K=typeof Q=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,K||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||R!==p)&&qh(t,f,l,p),Zn=!1;var L=t.memoizedState;f.state=L,js(t,l,f,o),Ss(),R=t.memoizedState,v||L!==R||Zn?(typeof Q=="function"&&(Mo(t,n,Q,l),R=t.memoizedState),(E=Zn||Hh(t,n,E,l,L,R,p))?(K||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=R),f.props=l,f.state=R,f.context=p,l=E):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,uo(e,t),p=t.memoizedProps,K=Ma(n,p),f.props=K,Q=t.pendingProps,L=f.context,R=n.contextType,E=ri,typeof R=="object"&&R!==null&&(E=ot(R)),v=n.getDerivedStateFromProps,(R=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==Q||L!==E)&&qh(t,f,l,E),Zn=!1,L=t.memoizedState,f.state=L,js(t,l,f,o),Ss();var q=t.memoizedState;p!==Q||L!==q||Zn||e!==null&&e.dependencies!==null&&zl(e.dependencies)?(typeof v=="function"&&(Mo(t,n,v,l),q=t.memoizedState),(K=Zn||Hh(t,n,K,l,L,q,E)||e!==null&&e.dependencies!==null&&zl(e.dependencies))?(R||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,q,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,q,E)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),f.props=l,f.state=q,f.context=E,l=K):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,Fl(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=za(t,e.child,null,o),t.child=za(t,null,n,o)):ut(e,t,n,o),t.memoizedState=f.state,e=t.child):e=kn(e,t,o),e}function tm(e,t,n,l){return Aa(),t.flags|=256,ut(e,t,n,l),t.child}var Ho={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qo(e){return{baseLanes:e,cachePool:$f()}}function Yo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function nm(e,t,n){var l=t.pendingProps,o=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(o?Fn(t):Pn(),(e=Ue)?(e=up(e,$t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:un,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=Rf(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Qn(t);return wu(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,o?(Pn(),o=t.mode,v=Pl({mode:"hidden",children:v},o),l=Ea(l,o,n,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=qo(n),l.childLanes=Yo(e,p,n),t.memoizedState=Ho,Cs(null,l)):(Fn(t),Ko(t,v))}var E=e.memoizedState;if(E!==null&&(v=E.dehydrated,v!==null)){if(f)t.flags&256?(Fn(t),t.flags&=-257,t=Go(e,t,n)):t.memoizedState!==null?(Pn(),t.child=e.child,t.flags|=128,t=null):(Pn(),v=l.fallback,o=t.mode,l=Pl({mode:"visible",children:l.children},o),v=Ea(v,o,n,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,za(t,e.child,null,n),l=t.child,l.memoizedState=qo(n),l.childLanes=Yo(e,p,n),t.memoizedState=Ho,t=Cs(null,l));else if(Fn(t),wu(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var R=p.dgst;p=R,l=Error(r(419)),l.stack="",l.digest=p,ps({value:l,source:null,stack:null}),t=Go(e,t,n)}else if(et||di(e,t,n,!1),p=(n&e.childLanes)!==0,et||p){if(p=Re,p!==null&&(l=Yd(p,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,Na(e,l),Nt(p,e,l),Uo;ju(v)||rr(),t=Go(e,t,n)}else ju(v)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ue=Qt(v.nextSibling),ct=t,Ae=!0,Vn=null,$t=!1,e!==null&&Bf(t,e),t=Ko(t,l.children),t.flags|=4096);return t}return o?(Pn(),v=l.fallback,o=t.mode,E=e.child,R=E.sibling,l=jn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,R!==null?v=jn(R,v):(v=Ea(v,o,n,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,Cs(null,l),l=t.child,v=e.child.memoizedState,v===null?v=qo(n):(o=v.cachePool,o!==null?(E=Pe._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=$f(),v={baseLanes:v.baseLanes|n,cachePool:o}),l.memoizedState=v,l.childLanes=Yo(e,p,n),t.memoizedState=Ho,Cs(e.child,l)):(Fn(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Ko(e,t){return t=Pl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pl(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function Go(e,t,n){return za(t,e.child,null,n),e=Ko(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function am(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ao(e.return,t,n)}function $o(e,t,n,l,o,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:f}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=n,p.tailMode=o,p.treeForkCount=f)}function im(e,t,n){var l=t.pendingProps,o=l.revealOrder,f=l.tail;l=l.children;var p=Qe.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,ee(Qe,p),ut(e,t,l,n),l=Ae?ms:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&am(e,n,t);else if(e.tag===19)am(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}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ql(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$o(t,!1,o,n,f,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ql(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$o(t,!0,n,null,f,l);break;case"together":$o(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ta|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(di(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zl(e)))}function a0(e,t,n){switch(t.tag){case 3:He(t,t.stateNode.containerInfo),Xn(t,Pe,e.memoizedState.cache),Aa();break;case 27:case 5:Pt(t);break;case 4:He(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,go(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Fn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?nm(e,t,n):(Fn(t),e=kn(e,t,n),e!==null?e.sibling:null);Fn(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(di(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return im(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ee(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,Jh(e,t,n,t.pendingProps);case 24:Xn(t,Pe,e.memoizedState.cache)}return kn(e,t,n)}function sm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Vo(e,n)&&(t.flags&128)===0)return et=!1,a0(e,t,n);et=(e.flags&131072)!==0}else et=!1,Ae&&(t.flags&1048576)!==0&&Uf(t,ms,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e=="function")Ic(e)?(l=Ma(e,l),t.tag=1,t=em(null,t,e,l,n)):(t.tag=0,t=Bo(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===U){t.tag=11,t=Xh(null,t,e,l,n);break e}else if(o===Z){t.tag=14,t=Zh(null,t,e,l,n);break e}}throw t=Ge(e)||e,Error(r(306,t,""))}}return t;case 0:return Bo(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Ma(l,t.pendingProps),em(e,t,l,o,n);case 3:e:{if(He(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var f=t.memoizedState;o=f.element,uo(e,t),js(t,l,null,n);var p=t.memoizedState;if(l=p.cache,Xn(t,Pe,l),l!==f.cache&&io(t,[Pe],n,!0),Ss(),l=p.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=tm(e,t,l,n);break e}else if(l!==o){o=Yt(Error(r(424)),t),ps(o),t=tm(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Qt(e.firstChild),ct=t,Ae=!0,Vn=null,$t=!0,n=Jf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Aa(),l===o){t=kn(e,t,n);break e}ut(e,t,l,n)}t=t.child}return t;case 26:return Fl(e,t),e===null?(n=gp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ae||(n=t.type,e=t.pendingProps,l=mr(ne.current).createElement(n),l[rt]=t,l[vt]=e,dt(l,n,e),st(l),t.stateNode=l):t.memoizedState=gp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pt(t),e===null&&Ae&&(l=t.stateNode=hp(t.type,t.pendingProps,ne.current),ct=t,$t=!0,o=Ue,la(t.type)?(Nu=o,Ue=Qt(l.firstChild)):Ue=o),ut(e,t,t.pendingProps.children,n),Fl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((o=l=Ue)&&(l=D0(l,t.type,t.pendingProps,$t),l!==null?(t.stateNode=l,ct=t,Ue=Qt(l.firstChild),$t=!1,o=!0):o=!1),o||Qn(t)),Pt(t),o=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,l=f.children,bu(o,f)?l=null:p!==null&&bu(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=vo(e,t,Zb,null,null,n),Ks._currentValue=o),Fl(e,t),ut(e,t,l,n),t.child;case 6:return e===null&&Ae&&((e=n=Ue)&&(n=M0(n,t.pendingProps,$t),n!==null?(t.stateNode=n,ct=t,Ue=null,e=!0):e=!1),e||Qn(t)),null;case 13:return nm(e,t,n);case 4:return He(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=za(t,null,l,n):ut(e,t,l,n),t.child;case 11:return Xh(e,t,t.type,t.pendingProps,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Xn(t,t.type,l.value),ut(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,ka(t),o=ot(o),l=l(o),t.flags|=1,ut(e,t,l,n),t.child;case 14:return Zh(e,t,t.type,t.pendingProps,n);case 15:return Ih(e,t,t.type,t.pendingProps,n);case 19:return im(e,t,n);case 31:return n0(e,t,n);case 22:return Jh(e,t,n,t.pendingProps);case 24:return ka(t),l=ot(Pe),e===null?(o=ro(),o===null&&(o=Re,f=so(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=n),o=f),t.memoizedState={parent:l,cache:o},oo(t),Xn(t,Pe,o)):((e.lanes&n)!==0&&(uo(e,t),js(t,null,null,n),Ss()),o=e.memoizedState,f=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Xn(t,Pe,l)):(l=f.cache,Xn(t,Pe,l),l!==o.cache&&io(t,[Pe],n,!0))),ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Tn(e){e.flags|=4}function Qo(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(zm())e.flags|=8192;else throw _a=Ll,co}else e.flags&=-16777217}function lm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sp(t))if(zm())e.flags|=8192;else throw _a=Ll,co}function Wl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bd():536870912,e.lanes|=t,wi|=t)}function ks(e,t){if(!Ae)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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function i0(e,t,n){var l=t.pendingProps;switch(Wc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),En(Pe),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ui(t)?Tn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,to())),Be(t),null;case 26:var o=t.type,f=t.memoizedState;return e===null?(Tn(t),f!==null?(Be(t),lm(t,f)):(Be(t),Qo(t,o,null,l,n))):f?f!==e.memoizedState?(Tn(t),Be(t),lm(t,f)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Tn(t),Be(t),Qo(t,o,e,l,n)),null;case 27:if(Rt(t),n=ne.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Tn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=z.current,ui(t)?Hf(t):(e=hp(o,l,n),t.stateNode=e,Tn(t))}return Be(t),null;case 5:if(Rt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Tn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(f=z.current,ui(t))Hf(t);else{var p=mr(ne.current);switch(f){case 1:f=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:f=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":f=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":f=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":f=p.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}f[rt]=t,f[vt]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)f.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=f;e:switch(dt(f,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Tn(t)}}return Be(t),Qo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Tn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ne.current,ui(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=ct,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||np(e.nodeValue,n)),e||Qn(t,!0)}else e=mr(e).createTextNode(l),e[rt]=t,t.stateNode=e}return Be(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ui(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[rt]=t}else Aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else n=to(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ui(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[rt]=t}else Aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),o=!1}else o=to(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Wl(t,t.updateQueue),Be(t),null);case 4:return me(),e===null&&mu(t.stateNode.containerInfo),Be(t),null;case 10:return En(t.type),Be(t),null;case 19:if($(Qe),l=t.memoizedState,l===null)return Be(t),null;if(o=(t.flags&128)!==0,f=l.rendering,f===null)if(o)ks(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ql(e),f!==null){for(t.flags|=128,ks(l,!1),e=f.updateQueue,t.updateQueue=e,Wl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Mf(n,e),n=n.sibling;return ee(Qe,Qe.current&1|2),Ae&&wn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ht()>ir&&(t.flags|=128,o=!0,ks(l,!1),t.lanes=4194304)}else{if(!o)if(e=ql(f),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Wl(t,e),ks(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Ae)return Be(t),null}else 2*ht()-l.renderingStartTime>ir&&n!==536870912&&(t.flags|=128,o=!0,ks(l,!1),t.lanes=4194304);l.isBackwards?(f.sibling=t.child,t.child=f):(e=l.last,e!==null?e.sibling=f:t.child=f,l.last=f)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ht(),e.sibling=null,n=Qe.current,ee(Qe,o?n&1|2:n&1),Ae&&wn(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Ot(t),po(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),n=t.updateQueue,n!==null&&Wl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&$(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),En(Pe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function s0(e,t){switch(Wc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(Pe),me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Rt(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(r(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Qe),null;case 4:return me(),null;case 10:return En(t.type),null;case 22:case 23:return Ot(t),po(),e!==null&&$(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return En(Pe),null;case 25:return null;default:return null}}function rm(e,t){switch(Wc(t),t.tag){case 3:En(Pe),me();break;case 26:case 27:case 5:Rt(t);break;case 4:me();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:$(Qe);break;case 10:En(t.type);break;case 22:case 23:Ot(t),po(),e!==null&&$(Ta);break;case 24:En(Pe)}}function Ts(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var f=n.create,p=n.inst;l=f(),p.destroy=l}n=n.next}while(n!==o)}}catch(v){_e(t,t.return,v)}}function Wn(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var p=l.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var E=n,R=v;try{R()}catch(K){_e(o,E,K)}}}l=l.next}while(l!==f)}}catch(K){_e(t,t.return,K)}}function cm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Pf(t,n)}catch(l){_e(e,e.return,l)}}}function om(e,t,n){n.props=Ma(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){_e(e,t,l)}}function Os(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){_e(e,t,o)}}function fn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){_e(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_e(e,t,o)}else n.current=null}function um(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){_e(e,e.return,o)}}function Xo(e,t,n){try{var l=e.stateNode;C0(l,e.type,n,t),l[vt]=t}catch(o){_e(e,e.return,o)}}function dm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&la(e.type)||e.tag===4}function Zo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&la(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Io(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xn));else if(l!==4&&(l===27&&la(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Io(e,t,n),e=e.sibling;e!==null;)Io(e,t,n),e=e.sibling}function er(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&la(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(er(e,t,n),e=e.sibling;e!==null;)er(e,t,n),e=e.sibling}function fm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,l,n),t[rt]=e,t[vt]=n}catch(f){_e(e,e.return,f)}}var On=!1,tt=!1,Jo=!1,hm=typeof WeakSet=="function"?WeakSet:Set,lt=null;function l0(e,t){if(e=e.containerInfo,yu=Sr,e=Ef(e),Kc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var p=0,v=-1,E=-1,R=0,K=0,Q=e,L=null;t:for(;;){for(var q;Q!==n||o!==0&&Q.nodeType!==3||(v=p+o),Q!==f||l!==0&&Q.nodeType!==3||(E=p+l),Q.nodeType===3&&(p+=Q.nodeValue.length),(q=Q.firstChild)!==null;)L=Q,Q=q;for(;;){if(Q===e)break t;if(L===n&&++R===o&&(v=p),L===f&&++K===l&&(E=p),(q=Q.nextSibling)!==null)break;Q=L,L=Q.parentNode}Q=q}n=v===-1||E===-1?null:{start:v,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},Sr=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,o=f.memoizedProps,f=f.memoizedState,l=n.stateNode;try{var ae=Ma(n.type,o);e=l.getSnapshotBeforeUpdate(ae,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){_e(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Su(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Su(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function mm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:zn(e,n),l&4&&Ts(5,n);break;case 1:if(zn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){_e(n,n.return,p)}else{var o=Ma(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){_e(n,n.return,p)}}l&64&&cm(n),l&512&&Os(n,n.return);break;case 3:if(zn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Pf(e,t)}catch(p){_e(n,n.return,p)}}break;case 27:t===null&&l&4&&fm(n);case 26:case 5:zn(e,n),t===null&&l&4&&um(n),l&512&&Os(n,n.return);break;case 12:zn(e,n);break;case 31:zn(e,n),l&4&&ym(e,n);break;case 13:zn(e,n),l&4&&vm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=p0.bind(null,n),R0(e,n))));break;case 22:if(l=n.memoizedState!==null||On,!l){t=t!==null&&t.memoizedState!==null||tt,o=On;var f=tt;On=l,(tt=t)&&!f?Dn(e,n,(n.subtreeFlags&8772)!==0):zn(e,n),On=o,tt=f}break;case 30:break;default:zn(e,n)}}function pm(e){var t=e.alternate;t!==null&&(e.alternate=null,pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ec(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,xt=!1;function _n(e,t,n){for(n=n.child;n!==null;)gm(e,t,n),n=n.sibling}function gm(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(es,n)}catch{}switch(n.tag){case 26:tt||fn(n,t),_n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||fn(n,t);var l=qe,o=xt;la(n.type)&&(qe=n.stateNode,xt=!1),_n(e,t,n),Hs(n.stateNode),qe=l,xt=o;break;case 5:tt||fn(n,t);case 6:if(l=qe,o=xt,qe=null,_n(e,t,n),qe=l,xt=o,qe!==null)if(xt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(f){_e(n,t,f)}else try{qe.removeChild(n.stateNode)}catch(f){_e(n,t,f)}break;case 18:qe!==null&&(xt?(e=qe,cp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_i(e)):cp(qe,n.stateNode));break;case 4:l=qe,o=xt,qe=n.stateNode.containerInfo,xt=!0,_n(e,t,n),qe=l,xt=o;break;case 0:case 11:case 14:case 15:Wn(2,n,t),tt||Wn(4,n,t),_n(e,t,n);break;case 1:tt||(fn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&om(n,t,l)),_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:tt=(l=tt)||n.memoizedState!==null,_n(e,t,n),tt=l;break;default:_n(e,t,n)}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_i(e)}catch(n){_e(t,t.return,n)}}}function vm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_i(e)}catch(n){_e(t,t.return,n)}}function r0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hm),t;default:throw Error(r(435,e.tag))}}function tr(e,t){var n=r0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=g0.bind(null,e,l);l.then(o,o)}})}function St(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],f=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(la(v.type)){qe=v.stateNode,xt=!1;break e}break;case 5:qe=v.stateNode,xt=!1;break e;case 3:case 4:qe=v.stateNode.containerInfo,xt=!0;break e}v=v.return}if(qe===null)throw Error(r(160));gm(f,p,o),qe=null,xt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bm(t,e),t=t.sibling}var nn=null;function bm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),jt(e),l&4&&(Wn(3,e,e.return),Ts(3,e),Wn(5,e,e.return));break;case 1:St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),l&64&&On&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=nn;if(St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),l&4){var f=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[as]||f[rt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),dt(f,l,n),f[rt]=e,st(f),l=f;break e;case"link":var p=bp("link","href",o).get(l+(n.href||""));if(p){for(var v=0;v<p.length;v++)if(f=p[v],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(v,1);break t}}f=o.createElement(l),dt(f,l,n),o.head.appendChild(f);break;case"meta":if(p=bp("meta","content",o).get(l+(n.content||""))){for(v=0;v<p.length;v++)if(f=p[v],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(v,1);break t}}f=o.createElement(l),dt(f,l,n),o.head.appendChild(f);break;default:throw Error(r(468,l))}f[rt]=e,st(f),l=f}e.stateNode=l}else xp(o,e.type,e.stateNode);else e.stateNode=vp(o,l,e.memoizedProps);else f!==l?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,l===null?xp(o,e.type,e.stateNode):vp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Xo(e,e.memoizedProps,n.memoizedProps)}break;case 27:St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),n!==null&&l&4&&Xo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(St(t,e),jt(e),l&512&&(tt||n===null||fn(n,n.return)),e.flags&32){o=e.stateNode;try{ei(o,"")}catch(ae){_e(e,e.return,ae)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Xo(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Jo=!0);break;case 6:if(St(t,e),jt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ae){_e(e,e.return,ae)}}break;case 3:if(yr=null,o=nn,nn=pr(t.containerInfo),St(t,e),nn=o,jt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{_i(t.containerInfo)}catch(ae){_e(e,e.return,ae)}Jo&&(Jo=!1,xm(e));break;case 4:l=nn,nn=pr(e.stateNode.containerInfo),St(t,e),jt(e),nn=l;break;case 12:St(t,e),jt(e);break;case 31:St(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,tr(e,l)));break;case 13:St(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ar=ht()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,tr(e,l)));break;case 22:o=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,R=On,K=tt;if(On=R||o,tt=K||E,St(t,e),tt=K,On=R,jt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||E||On||tt||Ra(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(f=E.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=E.stateNode;var Q=E.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ae){_e(E,E.return,ae)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(ae){_e(E,E.return,ae)}}}else if(t.tag===18){if(n===null){E=t;try{var q=E.stateNode;o?op(q,!0):op(E.stateNode,!1)}catch(ae){_e(E,E.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,tr(e,n))));break;case 19:St(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,tr(e,l)));break;case 30:break;case 21:break;default:St(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(dm(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,f=Zo(e);er(e,f,o);break;case 5:var p=n.stateNode;n.flags&32&&(ei(p,""),n.flags&=-33);var v=Zo(e);er(e,v,p);break;case 3:case 4:var E=n.stateNode.containerInfo,R=Zo(e);Io(e,R,E);break;default:throw Error(r(161))}}catch(K){_e(e,e.return,K)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function zn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mm(e,t.alternate,t),t=t.sibling}function Ra(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wn(4,t,t.return),Ra(t);break;case 1:fn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&om(t,t.return,n),Ra(t);break;case 27:Hs(t.stateNode);case 26:case 5:fn(t,t.return),Ra(t);break;case 22:t.memoizedState===null&&Ra(t);break;case 30:Ra(t);break;default:Ra(t)}e=e.sibling}}function Dn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:Dn(o,f,n),Ts(4,f);break;case 1:if(Dn(o,f,n),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(R){_e(l,l.return,R)}if(l=f,o=l.updateQueue,o!==null){var v=l.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)Ff(E[o],v)}catch(R){_e(l,l.return,R)}}n&&p&64&&cm(f),Os(f,f.return);break;case 27:fm(f);case 26:case 5:Dn(o,f,n),n&&l===null&&p&4&&um(f),Os(f,f.return);break;case 12:Dn(o,f,n);break;case 31:Dn(o,f,n),n&&p&4&&ym(o,f);break;case 13:Dn(o,f,n),n&&p&4&&vm(o,f);break;case 22:f.memoizedState===null&&Dn(o,f,n),Os(f,f.return);break;case 30:break;default:Dn(o,f,n)}t=t.sibling}}function Fo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&gs(n))}function Po(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gs(e))}function an(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sm(e,t,n,l),t=t.sibling}function Sm(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:an(e,t,n,l),o&2048&&Ts(9,t);break;case 1:an(e,t,n,l);break;case 3:an(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gs(e)));break;case 12:if(o&2048){an(e,t,n,l),e=t.stateNode;try{var f=t.memoizedProps,p=f.id,v=f.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){_e(t,t.return,E)}}else an(e,t,n,l);break;case 31:an(e,t,n,l);break;case 13:an(e,t,n,l);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?an(e,t,n,l):_s(e,t):f._visibility&2?an(e,t,n,l):(f._visibility|=2,xi(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Fo(p,t);break;case 24:an(e,t,n,l),o&2048&&Po(t.alternate,t);break;default:an(e,t,n,l)}}function xi(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,p=t,v=n,E=l,R=p.flags;switch(p.tag){case 0:case 11:case 15:xi(f,p,v,E,o),Ts(8,p);break;case 23:break;case 22:var K=p.stateNode;p.memoizedState!==null?K._visibility&2?xi(f,p,v,E,o):_s(f,p):(K._visibility|=2,xi(f,p,v,E,o)),o&&R&2048&&Fo(p.alternate,p);break;case 24:xi(f,p,v,E,o),o&&R&2048&&Po(p.alternate,p);break;default:xi(f,p,v,E,o)}t=t.sibling}}function _s(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:_s(n,l),o&2048&&Fo(l.alternate,l);break;case 24:_s(n,l),o&2048&&Po(l.alternate,l);break;default:_s(n,l)}t=t.sibling}}var zs=8192;function Si(e,t,n){if(e.subtreeFlags&zs)for(e=e.child;e!==null;)jm(e,t,n),e=e.sibling}function jm(e,t,n){switch(e.tag){case 26:Si(e,t,n),e.flags&zs&&e.memoizedState!==null&&X0(n,nn,e.memoizedState,e.memoizedProps);break;case 5:Si(e,t,n);break;case 3:case 4:var l=nn;nn=pr(e.stateNode.containerInfo),Si(e,t,n),nn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=zs,zs=16777216,Si(e,t,n),zs=l):Si(e,t,n));break;default:Si(e,t,n)}}function wm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,Em(l,e)}wm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nm(e),e=e.sibling}function Nm(e){switch(e.tag){case 0:case 11:case 15:Ds(e),e.flags&2048&&Wn(9,e,e.return);break;case 3:Ds(e);break;case 12:Ds(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nr(e)):Ds(e);break;default:Ds(e)}}function nr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,Em(l,e)}wm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wn(8,t,t.return),nr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,nr(t));break;default:nr(t)}e=e.sibling}}function Em(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Wn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:gs(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,lt=l;else e:for(n=e;lt!==null;){l=lt;var o=l.sibling,f=l.return;if(pm(l),l===n){lt=null;break e}if(o!==null){o.return=f,lt=o;break e}lt=f}}}var c0={getCacheForType:function(e){var t=ot(Pe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot(Pe).controller.signal}},o0=typeof WeakMap=="function"?WeakMap:Map,Te=0,Re=null,je=null,Ne=0,Oe=0,_t=null,ea=!1,ji=!1,Wo=!1,Mn=0,Ve=0,ta=0,La=0,eu=0,zt=0,wi=0,Ms=null,wt=null,tu=!1,ar=0,Am=0,ir=1/0,sr=null,na=null,at=0,aa=null,Ni=null,Rn=0,nu=0,au=null,Cm=null,Rs=0,iu=null;function Dt(){return(Te&2)!==0&&Ne!==0?Ne&-Ne:B.T!==null?uu():Kd()}function km(){if(zt===0)if((Ne&536870912)===0||Ae){var e=hl;hl<<=1,(hl&3932160)===0&&(hl=262144),zt=e}else zt=536870912;return e=Tt.current,e!==null&&(e.flags|=32),zt}function Nt(e,t,n){(e===Re&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(Ei(e,0),ia(e,Ne,zt,!1)),ns(e,n),((Te&2)===0||e!==Re)&&(e===Re&&((Te&2)===0&&(La|=n),Ve===4&&ia(e,Ne,zt,!1)),hn(e))}function Tm(e,t,n){if((Te&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ts(e,t),o=l?f0(e,t):lu(e,t,!0),f=l;do{if(o===0){ji&&!l&&ia(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!u0(n)){o=lu(e,t,!1),f=!1;continue}if(o===2){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=Ms;var E=v.current.memoizedState.isDehydrated;if(E&&(Ei(v,p).flags|=256),p=lu(v,p,!1),p!==2){if(Wo&&!E){v.errorRecoveryDisabledLanes|=f,La|=f,o=4;break e}f=wt,wt=o,f!==null&&(wt===null?wt=f:wt.push.apply(wt,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){Ei(e,0),ia(e,t,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ia(l,t,zt,!ea);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=ar+300-ht(),10<o)){if(ia(l,t,zt,!ea),pl(l,0,!0)!==0)break e;Rn=t,l.timeoutHandle=lp(Om.bind(null,l,n,wt,sr,tu,t,zt,La,wi,ea,f,"Throttled",-0,0),o);break e}Om(l,n,wt,sr,tu,t,zt,La,wi,ea,f,null,-0,0)}}break}while(!0);hn(e)}function Om(e,t,n,l,o,f,p,v,E,R,K,Q,L,q){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},jm(t,f,Q);var ae=(f&62914560)===f?ar-ht():(f&4194048)===f?Am-ht():0;if(ae=Z0(Q,ae),ae!==null){Rn=f,e.cancelPendingCommit=ae(Bm.bind(null,e,t,f,n,l,o,p,v,E,K,Q,null,L,q)),ia(e,f,p,!R);return}}Bm(e,t,f,n,l,o,p,v,E)}function u0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],f=o.getSnapshot;o=o.value;try{if(!Ct(f(),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 ia(e,t,n,l){t&=~eu,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var f=31-At(o),p=1<<f;l[f]=-1,o&=~p}n!==0&&Hd(e,n,t)}function lr(){return(Te&6)===0?(Ls(0),!1):!0}function su(){if(je!==null){if(Oe===0)var e=je.return;else e=je,Nn=Ca=null,So(e),pi=null,vs=0,e=je;for(;e!==null;)rm(e.alternate,e),e=e.return;je=null}}function Ei(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,O0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Rn=0,su(),Re=e,je=n=jn(e.current,null),Ne=t,Oe=0,_t=null,ea=!1,ji=ts(e,t),Wo=!1,wi=zt=eu=La=ta=Ve=0,wt=Ms=null,tu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-At(l),f=1<<o;t|=e[o],l&=~f}return Mn=t,Cl(),n}function _m(e,t){ye=null,B.H=As,t===mi||t===Rl?(t=Xf(),Oe=3):t===co?(t=Xf(),Oe=4):Oe=t===Uo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,je===null&&(Ve=1,Il(e,Yt(t,e.current)))}function zm(){var e=Tt.current;return e===null?!0:(Ne&4194048)===Ne?Vt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Vt:!1}function Dm(){var e=B.H;return B.H=As,e===null?As:e}function Mm(){var e=B.A;return B.A=c0,e}function rr(){Ve=4,ea||(Ne&4194048)!==Ne&&Tt.current!==null||(ji=!0),(ta&134217727)===0&&(La&134217727)===0||Re===null||ia(Re,Ne,zt,!1)}function lu(e,t,n){var l=Te;Te|=2;var o=Dm(),f=Mm();(Re!==e||Ne!==t)&&(sr=null,Ei(e,t)),t=!1;var p=Ve;e:do try{if(Oe!==0&&je!==null){var v=je,E=_t;switch(Oe){case 8:su(),p=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var R=Oe;if(Oe=0,_t=null,Ai(e,v,E,R),n&&ji){p=0;break e}break;default:R=Oe,Oe=0,_t=null,Ai(e,v,E,R)}}d0(),p=Ve;break}catch(K){_m(e,K)}while(!0);return t&&e.shellSuspendCounter++,Nn=Ca=null,Te=l,B.H=o,B.A=f,je===null&&(Re=null,Ne=0,Cl()),p}function d0(){for(;je!==null;)Rm(je)}function f0(e,t){var n=Te;Te|=2;var l=Dm(),o=Mm();Re!==e||Ne!==t?(sr=null,ir=ht()+500,Ei(e,t)):ji=ts(e,t);e:do try{if(Oe!==0&&je!==null){t=je;var f=_t;t:switch(Oe){case 1:Oe=0,_t=null,Ai(e,t,f,1);break;case 2:case 9:if(Vf(f)){Oe=0,_t=null,Lm(t);break}t=function(){Oe!==2&&Oe!==9||Re!==e||(Oe=7),hn(e)},f.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Vf(f)?(Oe=0,_t=null,Lm(t)):(Oe=0,_t=null,Ai(e,t,f,7));break;case 5:var p=null;switch(je.tag){case 26:p=je.memoizedState;case 5:case 27:var v=je;if(p?Sp(p):v.stateNode.complete){Oe=0,_t=null;var E=v.sibling;if(E!==null)je=E;else{var R=v.return;R!==null?(je=R,cr(R)):je=null}break t}}Oe=0,_t=null,Ai(e,t,f,5);break;case 6:Oe=0,_t=null,Ai(e,t,f,6);break;case 8:su(),Ve=6;break e;default:throw Error(r(462))}}h0();break}catch(K){_m(e,K)}while(!0);return Nn=Ca=null,B.H=l,B.A=o,Te=n,je!==null?0:(Re=null,Ne=0,Cl(),Ve)}function h0(){for(;je!==null&&!yc();)Rm(je)}function Rm(e){var t=sm(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?cr(e):je=t}function Lm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wh(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Wh(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:So(t);default:rm(n,t),t=je=Mf(t,Mn),t=sm(n,t,Mn)}e.memoizedProps=e.pendingProps,t===null?cr(e):je=t}function Ai(e,t,n,l){Nn=Ca=null,So(t),pi=null,vs=0;var o=t.return;try{if(t0(e,o,t,n,Ne)){Ve=1,Il(e,Yt(n,e.current)),je=null;return}}catch(f){if(o!==null)throw je=o,f;Ve=1,Il(e,Yt(n,e.current)),je=null;return}t.flags&32768?(Ae||l===1?e=!0:ji||(Ne&536870912)!==0?e=!1:(ea=e=!0,(l===2||l===9||l===3||l===6)&&(l=Tt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Um(t,e)):cr(t)}function cr(e){var t=e;do{if((t.flags&32768)!==0){Um(t,ea);return}e=t.return;var n=i0(t.alternate,t,Mn);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Ve===0&&(Ve=5)}function Um(e,t){do{var n=s0(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);Ve=6,je=null}function Bm(e,t,n,l,o,f,p,v,E){e.cancelPendingCommit=null;do or();while(at!==0);if((Te&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(f=t.lanes|t.childLanes,f|=Xc,Qv(e,n,f,p,v,E),e===Re&&(je=Re=null,Ne=0),Ni=t,aa=e,Rn=n,nu=f,au=o,Cm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,y0(Ut,function(){return Gm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null,o=J.p,J.p=2,p=Te,Te|=4;try{l0(e,t,n)}finally{Te=p,J.p=o,B.T=l}}at=1,Hm(),qm(),Ym()}}function Hm(){if(at===1){at=0;var e=aa,t=Ni,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null;var l=J.p;J.p=2;var o=Te;Te|=4;try{bm(t,e);var f=vu,p=Ef(e.containerInfo),v=f.focusedElem,E=f.selectionRange;if(p!==v&&v&&v.ownerDocument&&Nf(v.ownerDocument.documentElement,v)){if(E!==null&&Kc(v)){var R=E.start,K=E.end;if(K===void 0&&(K=R),"selectionStart"in v)v.selectionStart=R,v.selectionEnd=Math.min(K,v.value.length);else{var Q=v.ownerDocument||document,L=Q&&Q.defaultView||window;if(L.getSelection){var q=L.getSelection(),ae=v.textContent.length,fe=Math.min(E.start,ae),Me=E.end===void 0?fe:Math.min(E.end,ae);!q.extend&&fe>Me&&(p=Me,Me=fe,fe=p);var O=wf(v,fe),C=wf(v,Me);if(O&&C&&(q.rangeCount!==1||q.anchorNode!==O.node||q.anchorOffset!==O.offset||q.focusNode!==C.node||q.focusOffset!==C.offset)){var D=Q.createRange();D.setStart(O.node,O.offset),q.removeAllRanges(),fe>Me?(q.addRange(D),q.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),q.addRange(D))}}}}for(Q=[],q=v;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var V=Q[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Sr=!!yu,vu=yu=null}finally{Te=o,J.p=l,B.T=n}}e.current=t,at=2}}function qm(){if(at===2){at=0;var e=aa,t=Ni,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=B.T,B.T=null;var l=J.p;J.p=2;var o=Te;Te|=4;try{mm(e,t.alternate,t)}finally{Te=o,J.p=l,B.T=n}}at=3}}function Ym(){if(at===4||at===3){at=0,vc();var e=aa,t=Ni,n=Rn,l=Cm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Ni=aa=null,Km(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(na=null),wc(n),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(es,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=B.T,o=J.p,J.p=2,B.T=null;try{for(var f=e.onRecoverableError,p=0;p<l.length;p++){var v=l[p];f(v.value,{componentStack:v.stack})}}finally{B.T=t,J.p=o}}(Rn&3)!==0&&or(),hn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===iu?Rs++:(Rs=0,iu=e):Rs=0,Ls(0)}}function Km(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gs(t)))}function or(){return Hm(),qm(),Ym(),Gm()}function Gm(){if(at!==5)return!1;var e=aa,t=nu;nu=0;var n=wc(Rn),l=B.T,o=J.p;try{J.p=32>n?32:n,B.T=null,n=au,au=null;var f=aa,p=Rn;if(at=0,Ni=aa=null,Rn=0,(Te&6)!==0)throw Error(r(331));var v=Te;if(Te|=4,Nm(f.current),Sm(f,f.current,p,n),Te=v,Ls(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(es,f)}catch{}return!0}finally{J.p=o,B.T=l,Km(e,t)}}function $m(e,t,n){t=Yt(n,t),t=Lo(e.stateNode,t,2),e=Jn(e,t,2),e!==null&&(ns(e,2),hn(e))}function _e(e,t,n){if(e.tag===3)$m(e,e,n);else for(;t!==null;){if(t.tag===3){$m(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(na===null||!na.has(l))){e=Yt(n,e),n=Vh(2),l=Jn(t,n,2),l!==null&&(Qh(n,l,t,e),ns(l,2),hn(l));break}}t=t.return}}function ru(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new o0;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(Wo=!0,o.add(n),e=m0.bind(null,e,t,n),t.then(e,e))}function m0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Re===e&&(Ne&n)===n&&(Ve===4||Ve===3&&(Ne&62914560)===Ne&&300>ht()-ar?(Te&2)===0&&Ei(e,0):eu|=n,wi===Ne&&(wi=0)),hn(e)}function Vm(e,t){t===0&&(t=Bd()),e=Na(e,t),e!==null&&(ns(e,t),hn(e))}function p0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vm(e,n)}function g0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Vm(e,n)}function y0(e,t){return Lt(e,t)}var ur=null,Ci=null,cu=!1,dr=!1,ou=!1,sa=0;function hn(e){e!==Ci&&e.next===null&&(Ci===null?ur=Ci=e:Ci=Ci.next=e),dr=!0,cu||(cu=!0,b0())}function Ls(e,t){if(!ou&&dr){ou=!0;do for(var n=!1,l=ur;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var p=l.suspendedLanes,v=l.pingedLanes;f=(1<<31-At(42|e)+1)-1,f&=o&~(p&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,Im(l,f))}else f=Ne,f=pl(l,l===Re?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||ts(l,f)||(n=!0,Im(l,f));l=l.next}while(n);ou=!1}}function v0(){Qm()}function Qm(){dr=cu=!1;var e=0;sa!==0&&T0()&&(e=sa);for(var t=ht(),n=null,l=ur;l!==null;){var o=l.next,f=Xm(l,t);f===0?(l.next=null,n===null?ur=o:n.next=o,o===null&&(Ci=n)):(n=l,(e!==0||(f&3)!==0)&&(dr=!0)),l=o}at!==0&&at!==5||Ls(e),sa!==0&&(sa=0)}function Xm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-At(f),v=1<<p,E=o[p];E===-1?((v&n)===0||(v&l)!==0)&&(o[p]=Vv(v,t)):E<=t&&(e.expiredLanes|=v),f&=~v}if(t=Re,n=Ne,n=pl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&yn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ts(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&yn(l),wc(n)){case 2:case 8:n=dl;break;case 32:n=Ut;break;case 268435456:n=te;break;default:n=Ut}return l=Zm.bind(null,e),n=Lt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&yn(l),e.callbackPriority=2,e.callbackNode=null,2}function Zm(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(or()&&e.callbackNode!==n)return null;var l=Ne;return l=pl(e,e===Re?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Tm(e,l,t),Xm(e,ht()),e.callbackNode!=null&&e.callbackNode===n?Zm.bind(null,e):null)}function Im(e,t){if(or())return null;Tm(e,t,!0)}function b0(){_0(function(){(Te&6)!==0?Lt(ul,v0):Qm()})}function uu(){if(sa===0){var e=fi;e===0&&(e=fl,fl<<=1,(fl&261888)===0&&(fl=256)),sa=e}return sa}function Jm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bl(""+e)}function Fm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function x0(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var f=Jm((o[vt]||null).action),p=l.submitter;p&&(t=(t=p[vt]||null)?Jm(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var v=new wl("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(sa!==0){var E=p?Fm(o,p):new FormData(o);Oo(n,{pending:!0,data:E,method:o.method,action:f},null,E)}}else typeof f=="function"&&(v.preventDefault(),E=p?Fm(o,p):new FormData(o),Oo(n,{pending:!0,data:E,method:o.method,action:f},f,E))},currentTarget:o}]})}}for(var du=0;du<Qc.length;du++){var fu=Qc[du],S0=fu.toLowerCase(),j0=fu[0].toUpperCase()+fu.slice(1);tn(S0,"on"+j0)}tn(kf,"onAnimationEnd"),tn(Tf,"onAnimationIteration"),tn(Of,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(Bb,"onTransitionRun"),tn(Hb,"onTransitionStart"),tn(qb,"onTransitionCancel"),tn(_f,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Us="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(" "),w0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Us));function Pm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var p=l.length-1;0<=p;p--){var v=l[p],E=v.instance,R=v.currentTarget;if(v=v.listener,E!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=R;try{f(o)}catch(K){Al(K)}o.currentTarget=null,f=E}else for(p=0;p<l.length;p++){if(v=l[p],E=v.instance,R=v.currentTarget,v=v.listener,E!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=R;try{f(o)}catch(K){Al(K)}o.currentTarget=null,f=E}}}}function we(e,t){var n=t[Nc];n===void 0&&(n=t[Nc]=new Set);var l=e+"__bubble";n.has(l)||(Wm(t,e,2,!1),n.add(l))}function hu(e,t,n){var l=0;t&&(l|=4),Wm(n,e,l,t)}var fr="_reactListening"+Math.random().toString(36).slice(2);function mu(e){if(!e[fr]){e[fr]=!0,Vd.forEach(function(n){n!=="selectionchange"&&(w0.has(n)||hu(n,!1,e),hu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fr]||(t[fr]=!0,hu("selectionchange",!1,t))}}function Wm(e,t,n,l){switch(kp(t)){case 2:var o=F0;break;case 8:o=P0;break;default:o=Tu}n=o.bind(null,t,n,e),o=void 0,!Dc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?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 pu(e,t,n,l,o){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var v=l.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=l.return;p!==null;){var E=p.tag;if((E===3||E===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=Ia(v),p===null)return;if(E=p.tag,E===5||E===6||E===26||E===27){l=f=p;continue e}v=v.parentNode}}l=l.return}af(function(){var R=f,K=_c(n),Q=[];e:{var L=zf.get(e);if(L!==void 0){var q=wl,ae=e;switch(e){case"keypress":if(Sl(n)===0)break e;case"keydown":case"keyup":q=gb;break;case"focusin":ae="focus",q=Uc;break;case"focusout":ae="blur",q=Uc;break;case"beforeblur":case"afterblur":q=Uc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=ib;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=bb;break;case kf:case Tf:case Of:q=rb;break;case _f:q=Sb;break;case"scroll":case"scrollend":q=nb;break;case"wheel":q=wb;break;case"copy":case"cut":case"paste":q=ob;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=of;break;case"toggle":case"beforetoggle":q=Eb}var fe=(t&4)!==0,Me=!fe&&(e==="scroll"||e==="scrollend"),O=fe?L!==null?L+"Capture":null:L;fe=[];for(var C=R,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||O===null||(V=ss(C,O),V!=null&&fe.push(Bs(C,V,D))),Me)break;C=C.return}0<fe.length&&(L=new q(L,ae,null,n,K),Q.push({event:L,listeners:fe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",L&&n!==Oc&&(ae=n.relatedTarget||n.fromElement)&&(Ia(ae)||ae[Za]))break e;if((q||L)&&(L=K.window===K?K:(L=K.ownerDocument)?L.defaultView||L.parentWindow:window,q?(ae=n.relatedTarget||n.toElement,q=R,ae=ae?Ia(ae):null,ae!==null&&(Me=d(ae),fe=ae.tag,ae!==Me||fe!==5&&fe!==27&&fe!==6)&&(ae=null)):(q=null,ae=R),q!==ae)){if(fe=rf,V="onMouseLeave",O="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(fe=of,V="onPointerLeave",O="onPointerEnter",C="pointer"),Me=q==null?L:is(q),D=ae==null?L:is(ae),L=new fe(V,C+"leave",q,n,K),L.target=Me,L.relatedTarget=D,V=null,Ia(K)===R&&(fe=new fe(O,C+"enter",ae,n,K),fe.target=D,fe.relatedTarget=Me,V=fe),Me=V,q&&ae)t:{for(fe=N0,O=q,C=ae,D=0,V=O;V;V=fe(V))D++;V=0;for(var ue=C;ue;ue=fe(ue))V++;for(;0<D-V;)O=fe(O),D--;for(;0<V-D;)C=fe(C),V--;for(;D--;){if(O===C||C!==null&&O===C.alternate){fe=O;break t}O=fe(O),C=fe(C)}fe=null}else fe=null;q!==null&&ep(Q,L,q,fe,!1),ae!==null&&Me!==null&&ep(Q,Me,ae,fe,!0)}}e:{if(L=R?is(R):window,q=L.nodeName&&L.nodeName.toLowerCase(),q==="select"||q==="input"&&L.type==="file")var Ce=yf;else if(pf(L))if(vf)Ce=Rb;else{Ce=Db;var ce=zb}else q=L.nodeName,!q||q.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?R&&Tc(R.elementType)&&(Ce=yf):Ce=Mb;if(Ce&&(Ce=Ce(e,R))){gf(Q,Ce,n,K);break e}ce&&ce(e,L,R),e==="focusout"&&R&&L.type==="number"&&R.memoizedProps.value!=null&&kc(L,"number",L.value)}switch(ce=R?is(R):window,e){case"focusin":(pf(ce)||ce.contentEditable==="true")&&(ii=ce,Gc=R,hs=null);break;case"focusout":hs=Gc=ii=null;break;case"mousedown":$c=!0;break;case"contextmenu":case"mouseup":case"dragend":$c=!1,Af(Q,n,K);break;case"selectionchange":if(Ub)break;case"keydown":case"keyup":Af(Q,n,K)}var be;if(Hc)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ai?hf(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(uf&&n.locale!=="ko"&&(ai||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ai&&(be=sf()):(Gn=K,Mc="value"in Gn?Gn.value:Gn.textContent,ai=!0)),ce=hr(R,Ee),0<ce.length&&(Ee=new cf(Ee,e,null,n,K),Q.push({event:Ee,listeners:ce}),be?Ee.data=be:(be=mf(n),be!==null&&(Ee.data=be)))),(be=Cb?kb(e,n):Tb(e,n))&&(Ee=hr(R,"onBeforeInput"),0<Ee.length&&(ce=new cf("onBeforeInput","beforeinput",null,n,K),Q.push({event:ce,listeners:Ee}),ce.data=be)),x0(Q,e,R,n,K)}Pm(Q,t)})}function Bs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=ss(e,n),o!=null&&l.unshift(Bs(e,o,f)),o=ss(e,t),o!=null&&l.push(Bs(e,o,f))),e.tag===3)return l;e=e.return}return[]}function N0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ep(e,t,n,l,o){for(var f=t._reactName,p=[];n!==null&&n!==l;){var v=n,E=v.alternate,R=v.stateNode;if(v=v.tag,E!==null&&E===l)break;v!==5&&v!==26&&v!==27||R===null||(E=R,o?(R=ss(n,f),R!=null&&p.unshift(Bs(n,R,E))):o||(R=ss(n,f),R!=null&&p.push(Bs(n,R,E)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var E0=/\r\n?/g,A0=/\u0000|\uFFFD/g;function tp(e){return(typeof e=="string"?e:""+e).replace(E0,`
9
+ `).replace(A0,"")}function np(e,t){return t=tp(t),tp(e)===t}function De(e,t,n,l,o,f){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ei(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ei(e,""+l);break;case"className":yl(e,"class",l);break;case"tabIndex":yl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":yl(e,n,l);break;case"style":tf(e,l,f);break;case"data":if(t!=="object"){yl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=bl(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",o.name,o,null),De(e,t,"formEncType",o.formEncType,o,null),De(e,t,"formMethod",o.formMethod,o,null),De(e,t,"formTarget",o.formTarget,o,null)):(De(e,t,"encType",o.encType,o,null),De(e,t,"method",o.method,o,null),De(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=bl(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=xn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=bl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":we("beforetoggle",e),we("toggle",e),gl(e,"popover",l);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=eb.get(n)||n,gl(e,n,l))}}function gu(e,t,n,l,o,f){switch(n){case"style":tf(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?ei(e,l):(typeof l=="number"||typeof l=="bigint")&&ei(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),f=e[vt]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):gl(e,n,l)}}}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,o=!1,f;for(f in n)if(n.hasOwnProperty(f)){var p=n[f];if(p!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,f,p,n,null)}}o&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var v=f=p=o=null,E=null,R=null;for(l in n)if(n.hasOwnProperty(l)){var K=n[l];if(K!=null)switch(l){case"name":o=K;break;case"type":p=K;break;case"checked":E=K;break;case"defaultChecked":R=K;break;case"value":f=K;break;case"defaultValue":v=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,t));break;default:De(e,t,l,K,n,null)}}Fd(e,f,v,E,R,p,o,!1);return;case"select":we("invalid",e),l=p=f=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":f=v;break;case"defaultValue":p=v;break;case"multiple":l=v;default:De(e,t,o,v,n,null)}t=f,n=p,e.multiple=!!l,t!=null?Wa(e,!!l,t,!1):n!=null&&Wa(e,!!l,n,!0);return;case"textarea":we("invalid",e),f=o=l=null;for(p in n)if(n.hasOwnProperty(p)&&(v=n[p],v!=null))switch(p){case"value":l=v;break;case"defaultValue":o=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:De(e,t,p,v,n,null)}Wd(e,l,o,f);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":De(e,t,E,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<Us.length;l++)we(Us[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in n)if(n.hasOwnProperty(R)&&(l=n[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,R,l,n,null)}return;default:if(Tc(t)){for(K in n)n.hasOwnProperty(K)&&(l=n[K],l!==void 0&&gu(e,t,K,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&De(e,t,v,l,n,null))}function C0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,p=null,v=null,E=null,R=null,K=null;for(q in n){var Q=n[q];if(n.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":E=Q;default:l.hasOwnProperty(q)||De(e,t,q,null,l,Q)}}for(var L in l){var q=l[L];if(Q=n[L],l.hasOwnProperty(L)&&(q!=null||Q!=null))switch(L){case"type":f=q;break;case"name":o=q;break;case"checked":R=q;break;case"defaultChecked":K=q;break;case"value":p=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:q!==Q&&De(e,t,L,q,l,Q)}}Cc(e,p,v,E,R,K,f,o);return;case"select":q=p=v=L=null;for(f in n)if(E=n[f],n.hasOwnProperty(f)&&E!=null)switch(f){case"value":break;case"multiple":q=E;default:l.hasOwnProperty(f)||De(e,t,f,null,l,E)}for(o in l)if(f=l[o],E=n[o],l.hasOwnProperty(o)&&(f!=null||E!=null))switch(o){case"value":L=f;break;case"defaultValue":v=f;break;case"multiple":p=f;default:f!==E&&De(e,t,o,f,l,E)}t=v,n=p,l=q,L!=null?Wa(e,!!n,L,!1):!!l!=!!n&&(t!=null?Wa(e,!!n,t,!0):Wa(e,!!n,n?[]:"",!1));return;case"textarea":q=L=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:De(e,t,v,null,l,o)}for(p in l)if(o=l[p],f=n[p],l.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":L=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==f&&De(e,t,p,o,l,f)}Pd(e,L,q);return;case"option":for(var ae in n)L=n[ae],n.hasOwnProperty(ae)&&L!=null&&!l.hasOwnProperty(ae)&&(ae==="selected"?e.selected=!1:De(e,t,ae,null,l,L));for(E in l)L=l[E],q=n[E],l.hasOwnProperty(E)&&L!==q&&(L!=null||q!=null)&&(E==="selected"?e.selected=L&&typeof L!="function"&&typeof L!="symbol":De(e,t,E,L,l,q));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in n)L=n[fe],n.hasOwnProperty(fe)&&L!=null&&!l.hasOwnProperty(fe)&&De(e,t,fe,null,l,L);for(R in l)if(L=l[R],q=n[R],l.hasOwnProperty(R)&&L!==q&&(L!=null||q!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:De(e,t,R,L,l,q)}return;default:if(Tc(t)){for(var Me in n)L=n[Me],n.hasOwnProperty(Me)&&L!==void 0&&!l.hasOwnProperty(Me)&&gu(e,t,Me,void 0,l,L);for(K in l)L=l[K],q=n[K],!l.hasOwnProperty(K)||L===q||L===void 0&&q===void 0||gu(e,t,K,L,l,q);return}}for(var O in n)L=n[O],n.hasOwnProperty(O)&&L!=null&&!l.hasOwnProperty(O)&&De(e,t,O,null,l,L);for(Q in l)L=l[Q],q=n[Q],!l.hasOwnProperty(Q)||L===q||L==null&&q==null||De(e,t,Q,L,l,q)}function ap(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],f=o.transferSize,p=o.initiatorType,v=o.duration;if(f&&v&&ap(p)){for(p=0,v=o.responseEnd,l+=1;l<n.length;l++){var E=n[l],R=E.startTime;if(R>v)break;var K=E.transferSize,Q=E.initiatorType;K&&ap(Q)&&(E=E.responseEnd,p+=K*(E<v?1:(v-R)/(E-R)))}if(--l,t+=8*(f+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yu=null,vu=null;function mr(e){return e.nodeType===9?e:e.ownerDocument}function ip(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function bu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xu=null;function T0(){var e=window.event;return e&&e.type==="popstate"?e===xu?!1:(xu=e,!0):(xu=null,!1)}var lp=typeof setTimeout=="function"?setTimeout:void 0,O0=typeof clearTimeout=="function"?clearTimeout:void 0,rp=typeof Promise=="function"?Promise:void 0,_0=typeof queueMicrotask=="function"?queueMicrotask:typeof rp<"u"?function(e){return rp.resolve(null).then(e).catch(z0)}:lp;function z0(e){setTimeout(function(){throw e})}function la(e){return e==="head"}function cp(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),_i(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Hs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Hs(n);for(var f=n.firstChild;f;){var p=f.nextSibling,v=f.nodeName;f[as]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&f.rel.toLowerCase()==="stylesheet"||n.removeChild(f),f=p}}else n==="body"&&Hs(e.ownerDocument.body);n=o}while(n);_i(t)}function op(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Su(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Su(n),Ec(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function D0(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[as])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function M0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qt(e.nextSibling),e===null))return null;return e}function up(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function ju(e){return e.data==="$?"||e.data==="$~"}function wu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function R0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Qt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Nu=null;function dp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function fp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function hp(e,t,n){switch(t=mr(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Hs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ec(e)}var Xt=new Map,mp=new Set;function pr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=J.d;J.d={f:L0,r:U0,D:B0,C:H0,L:q0,m:Y0,X:G0,S:K0,M:$0};function L0(){var e=Ln.f(),t=lr();return e||t}function U0(e){var t=Ja(e);t!==null&&t.tag===5&&t.type==="form"?_h(t):Ln.r(e)}var ki=typeof document>"u"?null:document;function pp(e,t,n){var l=ki;if(l&&typeof t=="string"&&t){var o=Ht(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),mp.has(o)||(mp.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),dt(t,"link",e),st(t),l.head.appendChild(t)))}}function B0(e){Ln.D(e),pp("dns-prefetch",e,null)}function H0(e,t){Ln.C(e,t),pp("preconnect",e,t)}function q0(e,t,n){Ln.L(e,t,n);var l=ki;if(l&&e&&t){var o='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Ht(n.imageSizes)+'"]')):o+='[href="'+Ht(e)+'"]';var f=o;switch(t){case"style":f=Ti(e);break;case"script":f=Oi(e)}Xt.has(f)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Xt.set(f,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(qs(f))||t==="script"&&l.querySelector(Ys(f))||(t=l.createElement("link"),dt(t,"link",e),st(t),l.head.appendChild(t)))}}function Y0(e,t){Ln.m(e,t);var n=ki;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ht(l)+'"][href="'+Ht(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Oi(e)}if(!Xt.has(f)&&(e=b({rel:"modulepreload",href:e},t),Xt.set(f,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ys(f)))return}l=n.createElement("link"),dt(l,"link",e),st(l),n.head.appendChild(l)}}}function K0(e,t,n){Ln.S(e,t,n);var l=ki;if(l&&e){var o=Fa(l).hoistableStyles,f=Ti(e);t=t||"default";var p=o.get(f);if(!p){var v={loading:0,preload:null};if(p=l.querySelector(qs(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Xt.get(f))&&Eu(e,n);var E=p=l.createElement("link");st(E),dt(E,"link",e),E._p=new Promise(function(R,K){E.onload=R,E.onerror=K}),E.addEventListener("load",function(){v.loading|=1}),E.addEventListener("error",function(){v.loading|=2}),v.loading|=4,gr(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(f,p)}}}function G0(e,t){Ln.X(e,t);var n=ki;if(n&&e){var l=Fa(n).hoistableScripts,o=Oi(e),f=l.get(o);f||(f=n.querySelector(Ys(o)),f||(e=b({src:e,async:!0},t),(t=Xt.get(o))&&Au(e,t),f=n.createElement("script"),st(f),dt(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function $0(e,t){Ln.M(e,t);var n=ki;if(n&&e){var l=Fa(n).hoistableScripts,o=Oi(e),f=l.get(o);f||(f=n.querySelector(Ys(o)),f||(e=b({src:e,async:!0,type:"module"},t),(t=Xt.get(o))&&Au(e,t),f=n.createElement("script"),st(f),dt(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function gp(e,t,n,l){var o=(o=ne.current)?pr(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ti(n.href),n=Fa(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ti(n.href);var f=Fa(o).hoistableStyles,p=f.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=o.querySelector(qs(e)))&&!f._p&&(p.instance=f,p.state.loading=5),Xt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Xt.set(e,n),f||V0(o,e,n,p.state))),t&&l===null)throw Error(r(528,""));return p}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Oi(n),n=Fa(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ti(e){return'href="'+Ht(e)+'"'}function qs(e){return'link[rel="stylesheet"]['+e+"]"}function yp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function V0(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),dt(t,"link",n),st(t),e.head.appendChild(t))}function Oi(e){return'[src="'+Ht(e)+'"]'}function Ys(e){return"script[async]"+e}function vp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(l)return t.instance=l,st(l),l;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),st(l),dt(l,"style",o),gr(l,n.precedence,e),t.instance=l;case"stylesheet":o=Ti(n.href);var f=e.querySelector(qs(o));if(f)return t.state.loading|=4,t.instance=f,st(f),f;l=yp(n),(o=Xt.get(o))&&Eu(l,o),f=(e.ownerDocument||e).createElement("link"),st(f);var p=f;return p._p=new Promise(function(v,E){p.onload=v,p.onerror=E}),dt(f,"link",l),t.state.loading|=4,gr(f,n.precedence,e),t.instance=f;case"script":return f=Oi(n.src),(o=e.querySelector(Ys(f)))?(t.instance=o,st(o),o):(l=n,(o=Xt.get(f))&&(l=b({},n),Au(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),st(o),dt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,gr(l,n.precedence,e));return t.instance}function gr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,p=0;p<l.length;p++){var v=l[p];if(v.dataset.precedence===t)f=v;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Eu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Au(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yr=null;function bp(e,t,n){if(yr===null){var l=new Map,o=yr=new Map;o.set(n,l)}else o=yr,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var f=n[o];if(!(f[as]||f[rt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var v=l.get(p);v?v.push(f):l.set(p,[f])}}return l}function xp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Q0(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Sp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function X0(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ti(l.href),f=t.querySelector(qs(o));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=f,st(f);return}f=t.ownerDocument||t,l=yp(l),(o=Xt.get(o))&&Eu(l,o),f=f.createElement("link"),st(f);var p=f;p._p=new Promise(function(v,E){p.onload=v,p.onerror=E}),dt(f,"link",l),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=vr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Cu=0;function Z0(e,t){return e.stylesheets&&e.count===0&&xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&xr(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Cu===0&&(Cu=62500*k0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xr(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Cu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var br=null;function xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,br=new Map,t.forEach(I0,e),br=null,vr.call(e))}function I0(e,t){if(!(t.state.loading&4)){var n=br.get(e);if(n)var l=n.get(null);else{n=new Map,br.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),l=p)}l&&n.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),f=n.get(p)||l,f===l&&n.set(null,o),n.set(p,o),this.count++,l=vr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ks={$$typeof:M,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function J0(e,t,n,l,o,f,p,v,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Sc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sc(0),this.hiddenUpdates=Sc(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function jp(e,t,n,l,o,f,p,v,E,R,K,Q){return e=new J0(e,t,n,p,E,R,K,Q,v),t=1,f===!0&&(t|=24),f=kt(3,null,null,t),e.current=f,f.stateNode=e,t=so(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:n,cache:t},oo(f),e}function wp(e){return e?(e=ri,e):ri}function Np(e,t,n,l,o,f){o=wp(o),l.context===null?l.context=o:l.pendingContext=o,l=In(t),l.payload={element:n},f=f===void 0?null:f,f!==null&&(l.callback=f),n=Jn(e,l,t),n!==null&&(Nt(n,e,t),xs(n,e,t))}function Ep(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ku(e,t){Ep(e,t),(e=e.alternate)&&Ep(e,t)}function Ap(e){if(e.tag===13||e.tag===31){var t=Na(e,67108864);t!==null&&Nt(t,e,67108864),ku(e,67108864)}}function Cp(e){if(e.tag===13||e.tag===31){var t=Dt();t=jc(t);var n=Na(e,t);n!==null&&Nt(n,e,t),ku(e,t)}}var Sr=!0;function F0(e,t,n,l){var o=B.T;B.T=null;var f=J.p;try{J.p=2,Tu(e,t,n,l)}finally{J.p=f,B.T=o}}function P0(e,t,n,l){var o=B.T;B.T=null;var f=J.p;try{J.p=8,Tu(e,t,n,l)}finally{J.p=f,B.T=o}}function Tu(e,t,n,l){if(Sr){var o=Ou(l);if(o===null)pu(e,t,l,jr,n),Tp(e,l);else if(ex(o,e,t,n,l))l.stopPropagation();else if(Tp(e,l),t&4&&-1<W0.indexOf(e)){for(;o!==null;){var f=Ja(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=ba(f.pendingLanes);if(p!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var E=1<<31-At(p);v.entanglements[1]|=E,p&=~E}hn(f),(Te&6)===0&&(ir=ht()+500,Ls(0))}}break;case 31:case 13:v=Na(f,2),v!==null&&Nt(v,f,2),lr(),ku(f,2)}if(f=Ou(l),f===null&&pu(e,t,l,jr,n),f===o)break;o=f}o!==null&&l.stopPropagation()}else pu(e,t,l,null,n)}}function Ou(e){return e=_c(e),_u(e)}var jr=null;function _u(e){if(jr=null,e=Ia(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(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 jr=e,null}function kp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bc()){case ul:return 2;case dl:return 8;case Ut:case xc:return 32;case te:return 268435456;default:return 32}default:return 32}}var zu=!1,ra=null,ca=null,oa=null,Gs=new Map,$s=new Map,ua=[],W0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Tp(e,t){switch(e){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":oa=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(t.pointerId)}}function Vs(e,t,n,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},t!==null&&(t=Ja(t),t!==null&&Ap(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ex(e,t,n,l,o){switch(t){case"focusin":return ra=Vs(ra,e,t,n,l,o),!0;case"dragenter":return ca=Vs(ca,e,t,n,l,o),!0;case"mouseover":return oa=Vs(oa,e,t,n,l,o),!0;case"pointerover":var f=o.pointerId;return Gs.set(f,Vs(Gs.get(f)||null,e,t,n,l,o)),!0;case"gotpointercapture":return f=o.pointerId,$s.set(f,Vs($s.get(f)||null,e,t,n,l,o)),!0}return!1}function Op(e){var t=Ia(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Gd(e.priority,function(){Cp(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Gd(e.priority,function(){Cp(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 wr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ou(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Oc=l,n.target.dispatchEvent(l),Oc=null}else return t=Ja(n),t!==null&&Ap(t),e.blockedOn=n,!1;t.shift()}return!0}function _p(e,t,n){wr(e)&&n.delete(t)}function tx(){zu=!1,ra!==null&&wr(ra)&&(ra=null),ca!==null&&wr(ca)&&(ca=null),oa!==null&&wr(oa)&&(oa=null),Gs.forEach(_p),$s.forEach(_p)}function Nr(e,t){e.blockedOn===t&&(e.blockedOn=null,zu||(zu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,tx)))}var Er=null;function zp(e){Er!==e&&(Er=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Er===e&&(Er=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(_u(l||n)===null)continue;break}var f=Ja(n);f!==null&&(e.splice(t,3),t-=3,Oo(f,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function _i(e){function t(E){return Nr(E,e)}ra!==null&&Nr(ra,e),ca!==null&&Nr(ca,e),oa!==null&&Nr(oa,e),Gs.forEach(t),$s.forEach(t);for(var n=0;n<ua.length;n++){var l=ua[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ua.length&&(n=ua[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&ua.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],f=n[l+1],p=o[vt]||null;if(typeof f=="function")p||zp(n);else if(p){var v=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[vt]||null)v=p.formAction;else if(_u(o)!==null)continue}else v=p.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),zp(n)}}}function Dp(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Du(e){this._internalRoot=e}Ar.prototype.render=Du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Dt();Np(n,l,e,t,null,null)},Ar.prototype.unmount=Du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Np(e.current,2,null,e,null,null),lr(),t[Za]=null}};function Ar(e){this._internalRoot=e}Ar.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ua.length&&t!==0&&t<ua[n].priority;n++);ua.splice(n,0,e),n===0&&Op(e)}};var Mp=i.version;if(Mp!=="19.2.4")throw Error(r(527,Mp,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?j(e):null,e=e===null?null:e.stateNode,e};var nx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{es=Cr.inject(nx),Et=Cr}catch{}}return Xs.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,l="",o=Yh,f=Kh,p=Gh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=jp(e,1,!1,null,null,n,l,null,o,f,p,Dp),e[Za]=t.current,mu(e),new Du(t)},Xs.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var l=!1,o="",f=Yh,p=Kh,v=Gh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=jp(e,1,!0,t,n??null,l,o,E,f,p,v,Dp),t.context=wp(null),n=t.current,l=Dt(),l=jc(l),o=In(l),o.callback=null,Jn(n,o,l),n=l,t.current.lanes=n,ns(t,n),hn(t),e[Za]=t.current,mu(e),new Ar(t)},Xs.version="19.2.4",Xs}var $p;function hx(){if($p)return Lu.exports;$p=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Lu.exports=fx(),Lu.exports}var mx=hx();const md=Symbol.for("yaml.alias"),td=Symbol.for("yaml.document"),ga=Symbol.for("yaml.map"),Mg=Symbol.for("yaml.pair"),pn=Symbol.for("yaml.scalar"),Zi=Symbol.for("yaml.seq"),Jt=Symbol.for("yaml.node.type"),Ga=a=>!!a&&typeof a=="object"&&a[Jt]===md,nc=a=>!!a&&typeof a=="object"&&a[Jt]===td,il=a=>!!a&&typeof a=="object"&&a[Jt]===ga,Fe=a=>!!a&&typeof a=="object"&&a[Jt]===Mg,Le=a=>!!a&&typeof a=="object"&&a[Jt]===pn,sl=a=>!!a&&typeof a=="object"&&a[Jt]===Zi;function Ze(a){if(a&&typeof a=="object")switch(a[Jt]){case ga:case Zi:return!0}return!1}function Je(a){if(a&&typeof a=="object")switch(a[Jt]){case md:case ga:case pn:case Zi:return!0}return!1}const Rg=a=>(Le(a)||Ze(a))&&!!a.anchor,Ba=Symbol("break visit"),px=Symbol("skip children"),Ps=Symbol("remove node");function Ii(a,i){const s=gx(i);nc(a)?Ui(null,a.contents,s,Object.freeze([a]))===Ps&&(a.contents=null):Ui(null,a,s,Object.freeze([]))}Ii.BREAK=Ba;Ii.SKIP=px;Ii.REMOVE=Ps;function Ui(a,i,s,r){const c=yx(a,i,s,r);if(Je(c)||Fe(c))return vx(a,r,c),Ui(a,c,s,r);if(typeof c!="symbol"){if(Ze(i)){r=Object.freeze(r.concat(i));for(let d=0;d<i.items.length;++d){const h=Ui(d,i.items[d],s,r);if(typeof h=="number")d=h-1;else{if(h===Ba)return Ba;h===Ps&&(i.items.splice(d,1),d-=1)}}}else if(Fe(i)){r=Object.freeze(r.concat(i));const d=Ui("key",i.key,s,r);if(d===Ba)return Ba;d===Ps&&(i.key=null);const h=Ui("value",i.value,s,r);if(h===Ba)return Ba;h===Ps&&(i.value=null)}}return c}function gx(a){return typeof a=="object"&&(a.Collection||a.Node||a.Value)?Object.assign({Alias:a.Node,Map:a.Node,Scalar:a.Node,Seq:a.Node},a.Value&&{Map:a.Value,Scalar:a.Value,Seq:a.Value},a.Collection&&{Map:a.Collection,Seq:a.Collection},a):a}function yx(a,i,s,r){if(typeof s=="function")return s(a,i,r);if(il(i))return s.Map?.(a,i,r);if(sl(i))return s.Seq?.(a,i,r);if(Fe(i))return s.Pair?.(a,i,r);if(Le(i))return s.Scalar?.(a,i,r);if(Ga(i))return s.Alias?.(a,i,r)}function vx(a,i,s){const r=i[i.length-1];if(Ze(r))r.items[a]=s;else if(Fe(r))a==="key"?r.key=s:r.value=s;else if(nc(r))r.contents=s;else{const c=Ga(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${c} parent`)}}const bx={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},xx=a=>a.replace(/[!,[\]{}]/g,i=>bx[i]);class pt{constructor(i,s){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},pt.defaultYaml,i),this.tags=Object.assign({},pt.defaultTags,s)}clone(){const i=new pt(this.yaml,this.tags);return i.docStart=this.docStart,i}atDocument(){const i=new pt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:pt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},pt.defaultTags);break}return i}add(i,s){this.atNextDocument&&(this.yaml={explicit:pt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},pt.defaultTags),this.atNextDocument=!1);const r=i.trim().split(/[ \t]+/),c=r.shift();switch(c){case"%TAG":{if(r.length!==2&&(s(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[d,h]=r;return this.tags[d]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return s(0,"%YAML directive should contain exactly one part"),!1;const[d]=r;if(d==="1.1"||d==="1.2")return this.yaml.version=d,!0;{const h=/^\d+\.\d+$/.test(d);return s(6,`Unsupported YAML version ${d}`,h),!1}}default:return s(0,`Unknown directive ${c}`,!0),!1}}tagName(i,s){if(i==="!")return"!";if(i[0]!=="!")return s(`Not a valid tag: ${i}`),null;if(i[1]==="<"){const h=i.slice(2,-1);return h==="!"||h==="!!"?(s(`Verbatim tags aren't resolved, so ${i} is invalid.`),null):(i[i.length-1]!==">"&&s("Verbatim tags must end with a >"),h)}const[,r,c]=i.match(/^(.*!)([^!]*)$/s);c||s(`The ${i} tag has no suffix`);const d=this.tags[r];if(d)try{return d+decodeURIComponent(c)}catch(h){return s(String(h)),null}return r==="!"?i:(s(`Could not resolve tag: ${i}`),null)}tagString(i){for(const[s,r]of Object.entries(this.tags))if(i.startsWith(r))return s+xx(i.substring(r.length));return i[0]==="!"?i:`!<${i}>`}toString(i){const s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let c;if(i&&r.length>0&&Je(i.contents)){const d={};Ii(i.contents,(h,m)=>{Je(m)&&m.tag&&(d[m.tag]=!0)}),c=Object.keys(d)}else c=[];for(const[d,h]of r)d==="!!"&&h==="tag:yaml.org,2002:"||(!i||c.some(m=>m.startsWith(h)))&&s.push(`%TAG ${d} ${h}`);return s.join(`
10
+ `)}}pt.defaultYaml={explicit:!1,version:"1.2"};pt.defaultTags={"!!":"tag:yaml.org,2002:"};function Lg(a){if(/[\x00-\x19\s,[\]{}]/.test(a)){const s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(a)}`;throw new Error(s)}return!0}function Ug(a){const i=new Set;return Ii(a,{Value(s,r){r.anchor&&i.add(r.anchor)}}),i}function Bg(a,i){for(let s=1;;++s){const r=`${a}${s}`;if(!i.has(r))return r}}function Sx(a,i){const s=[],r=new Map;let c=null;return{onAnchor:d=>{s.push(d),c??(c=Ug(a));const h=Bg(i,c);return c.add(h),h},setAnchors:()=>{for(const d of s){const h=r.get(d);if(typeof h=="object"&&h.anchor&&(Le(h.node)||Ze(h.node)))h.node.anchor=h.anchor;else{const m=new Error("Failed to resolve repeated object (this should not happen)");throw m.source=d,m}}},sourceObjects:r}}function Bi(a,i,s,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let c=0,d=r.length;c<d;++c){const h=r[c],m=Bi(a,r,String(c),h);m===void 0?delete r[c]:m!==h&&(r[c]=m)}else if(r instanceof Map)for(const c of Array.from(r.keys())){const d=r.get(c),h=Bi(a,r,c,d);h===void 0?r.delete(c):h!==d&&r.set(c,h)}else if(r instanceof Set)for(const c of Array.from(r)){const d=Bi(a,r,c,c);d===void 0?r.delete(c):d!==c&&(r.delete(c),r.add(d))}else for(const[c,d]of Object.entries(r)){const h=Bi(a,r,c,d);h===void 0?delete r[c]:h!==d&&(r[c]=h)}return a.call(i,s,r)}function It(a,i,s){if(Array.isArray(a))return a.map((r,c)=>It(r,String(c),s));if(a&&typeof a.toJSON=="function"){if(!s||!Rg(a))return a.toJSON(i,s);const r={aliasCount:0,count:1,res:void 0};s.anchors.set(a,r),s.onCreate=d=>{r.res=d,delete s.onCreate};const c=a.toJSON(i,s);return s.onCreate&&s.onCreate(c),c}return typeof a=="bigint"&&!s?.keep?Number(a):a}class pd{constructor(i){Object.defineProperty(this,Jt,{value:i})}clone(){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(i.range=this.range.slice()),i}toJS(i,{mapAsMap:s,maxAliasCount:r,onAnchor:c,reviver:d}={}){if(!nc(i))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:i,keep:!0,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},m=It(this,"",h);if(typeof c=="function")for(const{count:y,res:g}of h.anchors.values())c(g,y);return typeof d=="function"?Bi(d,{"":m},"",m):m}}class gd extends pd{constructor(i){super(md),this.source=i,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(i,s){let r;s?.aliasResolveCache?r=s.aliasResolveCache:(r=[],Ii(i,{Node:(d,h)=>{(Ga(h)||Rg(h))&&r.push(h)}}),s&&(s.aliasResolveCache=r));let c;for(const d of r){if(d===this)break;d.anchor===this.source&&(c=d)}return c}toJSON(i,s){if(!s)return{source:this.source};const{anchors:r,doc:c,maxAliasCount:d}=s,h=this.resolve(c,s);if(!h){const y=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(y)}let m=r.get(h);if(m||(It(h,null,s),m=r.get(h)),m?.res===void 0){const y="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(y)}if(d>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=Kr(c,h,r)),m.count*m.aliasCount>d)){const y="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(y)}return m.res}toString(i,s,r){const c=`*${this.source}`;if(i){if(Lg(this.source),i.options.verifyAliasOrder&&!i.anchors.has(this.source)){const d=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(d)}if(i.implicitKey)return`${c} `}return c}}function Kr(a,i,s){if(Ga(i)){const r=i.resolve(a),c=s&&r&&s.get(r);return c?c.count*c.aliasCount:0}else if(Ze(i)){let r=0;for(const c of i.items){const d=Kr(a,c,s);d>r&&(r=d)}return r}else if(Fe(i)){const r=Kr(a,i.key,s),c=Kr(a,i.value,s);return Math.max(r,c)}return 1}const Hg=a=>!a||typeof a!="function"&&typeof a!="object";class ge extends pd{constructor(i){super(pn),this.value=i}toJSON(i,s){return s?.keep?this.value:It(this.value,i,s)}toString(){return String(this.value)}}ge.BLOCK_FOLDED="BLOCK_FOLDED";ge.BLOCK_LITERAL="BLOCK_LITERAL";ge.PLAIN="PLAIN";ge.QUOTE_DOUBLE="QUOTE_DOUBLE";ge.QUOTE_SINGLE="QUOTE_SINGLE";const jx="tag:yaml.org,2002:";function wx(a,i,s){if(i){const r=s.filter(d=>d.tag===i),c=r.find(d=>!d.format)??r[0];if(!c)throw new Error(`Tag ${i} not found`);return c}return s.find(r=>r.identify?.(a)&&!r.format)}function el(a,i,s){if(nc(a)&&(a=a.contents),Je(a))return a;if(Fe(a)){const b=s.schema[ga].createNode?.(s.schema,null,s);return b.items.push(a),b}(a instanceof String||a instanceof Number||a instanceof Boolean||typeof BigInt<"u"&&a instanceof BigInt)&&(a=a.valueOf());const{aliasDuplicateObjects:r,onAnchor:c,onTagObj:d,schema:h,sourceObjects:m}=s;let y;if(r&&a&&typeof a=="object"){if(y=m.get(a),y)return y.anchor??(y.anchor=c(a)),new gd(y.anchor);y={anchor:null,node:null},m.set(a,y)}i?.startsWith("!!")&&(i=jx+i.slice(2));let g=wx(a,i,h.tags);if(!g){if(a&&typeof a.toJSON=="function"&&(a=a.toJSON()),!a||typeof a!="object"){const b=new ge(a);return y&&(y.node=b),b}g=a instanceof Map?h[ga]:Symbol.iterator in Object(a)?h[Zi]:h[ga]}d&&(d(g),delete s.onTagObj);const j=g?.createNode?g.createNode(s.schema,a,s):typeof g?.nodeClass?.from=="function"?g.nodeClass.from(s.schema,a,s):new ge(a);return i?j.tag=i:g.default||(j.tag=g.tag),y&&(y.node=j),j}function Xr(a,i,s){let r=s;for(let c=i.length-1;c>=0;--c){const d=i[c];if(typeof d=="number"&&Number.isInteger(d)&&d>=0){const h=[];h[d]=r,r=h}else r=new Map([[d,r]])}return el(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:a,sourceObjects:new Map})}const Fs=a=>a==null||typeof a=="object"&&!!a[Symbol.iterator]().next().done;class qg extends pd{constructor(i,s){super(i),Object.defineProperty(this,"schema",{value:s,configurable:!0,enumerable:!1,writable:!0})}clone(i){const s=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return i&&(s.schema=i),s.items=s.items.map(r=>Je(r)||Fe(r)?r.clone(i):r),this.range&&(s.range=this.range.slice()),s}addIn(i,s){if(Fs(i))this.add(s);else{const[r,...c]=i,d=this.get(r,!0);if(Ze(d))d.addIn(c,s);else if(d===void 0&&this.schema)this.set(r,Xr(this.schema,c,s));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${c}`)}}deleteIn(i){const[s,...r]=i;if(r.length===0)return this.delete(s);const c=this.get(s,!0);if(Ze(c))return c.deleteIn(r);throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}getIn(i,s){const[r,...c]=i,d=this.get(r,!0);return c.length===0?!s&&Le(d)?d.value:d:Ze(d)?d.getIn(c,s):void 0}hasAllNullValues(i){return this.items.every(s=>{if(!Fe(s))return!1;const r=s.value;return r==null||i&&Le(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(i){const[s,...r]=i;if(r.length===0)return this.has(s);const c=this.get(s,!0);return Ze(c)?c.hasIn(r):!1}setIn(i,s){const[r,...c]=i;if(c.length===0)this.set(r,s);else{const d=this.get(r,!0);if(Ze(d))d.setIn(c,s);else if(d===void 0&&this.schema)this.set(r,Xr(this.schema,c,s));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${c}`)}}}const Nx=a=>a.replace(/^(?!$)(?: $)?/gm,"#");function Bn(a,i){return/^\n+$/.test(a)?a.substring(1):i?a.replace(/^(?! *$)/gm,i):a}const Ha=(a,i,s)=>a.endsWith(`
11
+ `)?Bn(s,i):s.includes(`
12
+ `)?`
13
+ `+Bn(s,i):(a.endsWith(" ")?"":" ")+s,Yg="flow",nd="block",Gr="quoted";function ac(a,i,s="flow",{indentAtStart:r,lineWidth:c=80,minContentWidth:d=20,onFold:h,onOverflow:m}={}){if(!c||c<0)return a;c<d&&(d=0);const y=Math.max(1+d,1+c-i.length);if(a.length<=y)return a;const g=[],j={};let b=c-i.length;typeof r=="number"&&(r>c-Math.max(2,d)?g.push(0):b=c-r);let x,k,T=!1,S=-1,N=-1,H=-1;s===nd&&(S=Vp(a,S,i.length),S!==-1&&(b=S+y));for(let M;M=a[S+=1];){if(s===Gr&&M==="\\"){switch(N=S,a[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}H=S}if(M===`
14
+ `)s===nd&&(S=Vp(a,S,i.length)),b=S+i.length+y,x=void 0;else{if(M===" "&&k&&k!==" "&&k!==`
15
+ `&&k!==" "){const U=a[S+1];U&&U!==" "&&U!==`
16
+ `&&U!==" "&&(x=S)}if(S>=b)if(x)g.push(x),b=x+y,x=void 0;else if(s===Gr){for(;k===" "||k===" ";)k=M,M=a[S+=1],T=!0;const U=S>H+1?S-2:N-1;if(j[U])return a;g.push(U),j[U]=!0,b=U+y,x=void 0}else T=!0}k=M}if(T&&m&&m(),g.length===0)return a;h&&h();let G=a.slice(0,g[0]);for(let M=0;M<g.length;++M){const U=g[M],Y=g[M+1]||a.length;U===0?G=`
17
+ ${i}${a.slice(0,Y)}`:(s===Gr&&j[U]&&(G+=`${a[U]}\\`),G+=`
18
+ ${i}${a.slice(U+1,Y)}`)}return G}function Vp(a,i,s){let r=i,c=i+1,d=a[c];for(;d===" "||d===" ";)if(i<c+s)d=a[++i];else{do d=a[++i];while(d&&d!==`
19
+ `);r=i,c=i+1,d=a[c]}return r}const ic=(a,i)=>({indentAtStart:i?a.indent.length:a.indentAtStart,lineWidth:a.options.lineWidth,minContentWidth:a.options.minContentWidth}),sc=a=>/^(%|---|\.\.\.)/m.test(a);function Ex(a,i,s){if(!i||i<0)return!1;const r=i-s,c=a.length;if(c<=r)return!1;for(let d=0,h=0;d<c;++d)if(a[d]===`
20
+ `){if(d-h>r)return!0;if(h=d+1,c-h<=r)return!1}return!0}function Ws(a,i){const s=JSON.stringify(a);if(i.options.doubleQuotedAsJSON)return s;const{implicitKey:r}=i,c=i.options.doubleQuotedMinMultiLineLength,d=i.indent||(sc(a)?" ":"");let h="",m=0;for(let y=0,g=s[y];g;g=s[++y])if(g===" "&&s[y+1]==="\\"&&s[y+2]==="n"&&(h+=s.slice(m,y)+"\\ ",y+=1,m=y,g="\\"),g==="\\")switch(s[y+1]){case"u":{h+=s.slice(m,y);const j=s.substr(y+2,4);switch(j){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:j.substr(0,2)==="00"?h+="\\x"+j.substr(2):h+=s.substr(y,6)}y+=5,m=y+1}break;case"n":if(r||s[y+2]==='"'||s.length<c)y+=1;else{for(h+=s.slice(m,y)+`
21
+
22
+ `;s[y+2]==="\\"&&s[y+3]==="n"&&s[y+4]!=='"';)h+=`
23
+ `,y+=2;h+=d,s[y+2]===" "&&(h+="\\"),y+=1,m=y+1}break;default:y+=1}return h=m?h+s.slice(m):s,r?h:ac(h,d,Gr,ic(i,!1))}function ad(a,i){if(i.options.singleQuote===!1||i.implicitKey&&a.includes(`
24
+ `)||/[ \t]\n|\n[ \t]/.test(a))return Ws(a,i);const s=i.indent||(sc(a)?" ":""),r="'"+a.replace(/'/g,"''").replace(/\n+/g,`$&
25
+ ${s}`)+"'";return i.implicitKey?r:ac(r,s,Yg,ic(i,!1))}function Hi(a,i){const{singleQuote:s}=i.options;let r;if(s===!1)r=Ws;else{const c=a.includes('"'),d=a.includes("'");c&&!d?r=ad:d&&!c?r=Ws:r=s?ad:Ws}return r(a,i)}let id;try{id=new RegExp(`(^|(?<!
26
+ ))
27
+ +(?!
28
+ |$)`,"g")}catch{id=/\n+(?!\n|$)/g}function $r({comment:a,type:i,value:s},r,c,d){const{blockQuote:h,commentString:m,lineWidth:y}=r.options;if(!h||/\n[\t ]+$/.test(s))return Hi(s,r);const g=r.indent||(r.forceBlockIndent||sc(s)?" ":""),j=h==="literal"?!0:h==="folded"||i===ge.BLOCK_FOLDED?!1:i===ge.BLOCK_LITERAL?!0:!Ex(s,y,g.length);if(!s)return j?`|
29
+ `:`>
30
+ `;let b,x;for(x=s.length;x>0;--x){const Y=s[x-1];if(Y!==`
31
+ `&&Y!==" "&&Y!==" ")break}let k=s.substring(x);const T=k.indexOf(`
32
+ `);T===-1?b="-":s===k||T!==k.length-1?(b="+",d&&d()):b="",k&&(s=s.slice(0,-k.length),k[k.length-1]===`
33
+ `&&(k=k.slice(0,-1)),k=k.replace(id,`$&${g}`));let S=!1,N,H=-1;for(N=0;N<s.length;++N){const Y=s[N];if(Y===" ")S=!0;else if(Y===`
34
+ `)H=N;else break}let G=s.substring(0,H<N?H+1:N);G&&(s=s.substring(G.length),G=G.replace(/\n+/g,`$&${g}`));let U=(S?g?"2":"1":"")+b;if(a&&(U+=" "+m(a.replace(/ ?[\r\n]+/g," ")),c&&c()),!j){const Y=s.replace(/\n+/g,`
35
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${g}`);let X=!1;const Z=ic(r,!0);h!=="folded"&&i!==ge.BLOCK_FOLDED&&(Z.onOverflow=()=>{X=!0});const _=ac(`${G}${Y}${k}`,g,nd,Z);if(!X)return`>${U}
36
+ ${g}${_}`}return s=s.replace(/\n+/g,`$&${g}`),`|${U}
37
+ ${g}${G}${s}${k}`}function Ax(a,i,s,r){const{type:c,value:d}=a,{actualString:h,implicitKey:m,indent:y,indentStep:g,inFlow:j}=i;if(m&&d.includes(`
38
+ `)||j&&/[[\]{},]/.test(d))return Hi(d,i);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return m||j||!d.includes(`
39
+ `)?Hi(d,i):$r(a,i,s,r);if(!m&&!j&&c!==ge.PLAIN&&d.includes(`
40
+ `))return $r(a,i,s,r);if(sc(d)){if(y==="")return i.forceBlockIndent=!0,$r(a,i,s,r);if(m&&y===g)return Hi(d,i)}const b=d.replace(/\n+/g,`$&
41
+ ${y}`);if(h){const x=S=>S.default&&S.tag!=="tag:yaml.org,2002:str"&&S.test?.test(b),{compat:k,tags:T}=i.doc.schema;if(T.some(x)||k?.some(x))return Hi(d,i)}return m?b:ac(b,y,Yg,ic(i,!1))}function yd(a,i,s,r){const{implicitKey:c,inFlow:d}=i,h=typeof a.value=="string"?a:Object.assign({},a,{value:String(a.value)});let{type:m}=a;m!==ge.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=ge.QUOTE_DOUBLE);const y=j=>{switch(j){case ge.BLOCK_FOLDED:case ge.BLOCK_LITERAL:return c||d?Hi(h.value,i):$r(h,i,s,r);case ge.QUOTE_DOUBLE:return Ws(h.value,i);case ge.QUOTE_SINGLE:return ad(h.value,i);case ge.PLAIN:return Ax(h,i,s,r);default:return null}};let g=y(m);if(g===null){const{defaultKeyType:j,defaultStringType:b}=i.options,x=c&&j||b;if(g=y(x),g===null)throw new Error(`Unsupported default string type ${x}`)}return g}function Kg(a,i){const s=Object.assign({blockQuote:!0,commentString:Nx,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},a.schema.toStringOptions,i);let r;switch(s.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:a,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent=="number"?" ".repeat(s.indent):" ",inFlow:r,options:s}}function Cx(a,i){if(i.tag){const c=a.filter(d=>d.tag===i.tag);if(c.length>0)return c.find(d=>d.format===i.format)??c[0]}let s,r;if(Le(i)){r=i.value;let c=a.filter(d=>d.identify?.(r));if(c.length>1){const d=c.filter(h=>h.test);d.length>0&&(c=d)}s=c.find(d=>d.format===i.format)??c.find(d=>!d.format)}else r=i,s=a.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!s){const c=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${c} value`)}return s}function kx(a,i,{anchors:s,doc:r}){if(!r.directives)return"";const c=[],d=(Le(a)||Ze(a))&&a.anchor;d&&Lg(d)&&(s.add(d),c.push(`&${d}`));const h=a.tag??(i.default?null:i.tag);return h&&c.push(r.directives.tagString(h)),c.join(" ")}function Vi(a,i,s,r){if(Fe(a))return a.toString(i,s,r);if(Ga(a)){if(i.doc.directives)return a.toString(i);if(i.resolvedAliases?.has(a))throw new TypeError("Cannot stringify circular structure without alias nodes");i.resolvedAliases?i.resolvedAliases.add(a):i.resolvedAliases=new Set([a]),a=a.resolve(i.doc)}let c;const d=Je(a)?a:i.doc.createNode(a,{onTagObj:y=>c=y});c??(c=Cx(i.doc.schema.tags,d));const h=kx(d,c,i);h.length>0&&(i.indentAtStart=(i.indentAtStart??0)+h.length+1);const m=typeof c.stringify=="function"?c.stringify(d,i,s,r):Le(d)?yd(d,i,s,r):d.toString(i,s,r);return h?Le(d)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h}
42
+ ${i.indent}${m}`:m}function Tx({key:a,value:i},s,r,c){const{allNullValues:d,doc:h,indent:m,indentStep:y,options:{commentString:g,indentSeq:j,simpleKeys:b}}=s;let x=Je(a)&&a.comment||null;if(b){if(x)throw new Error("With simple keys, key nodes cannot have comments");if(Ze(a)||!Je(a)&&typeof a=="object"){const Z="With simple keys, collection cannot be used as a key value";throw new Error(Z)}}let k=!b&&(!a||x&&i==null&&!s.inFlow||Ze(a)||(Le(a)?a.type===ge.BLOCK_FOLDED||a.type===ge.BLOCK_LITERAL:typeof a=="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!k&&(b||!d),indent:m+y});let T=!1,S=!1,N=Vi(a,s,()=>T=!0,()=>S=!0);if(!k&&!s.inFlow&&N.length>1024){if(b)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");k=!0}if(s.inFlow){if(d||i==null)return T&&r&&r(),N===""?"?":k?`? ${N}`:N}else if(d&&!b||i==null&&k)return N=`? ${N}`,x&&!T?N+=Ha(N,s.indent,g(x)):S&&c&&c(),N;T&&(x=null),k?(x&&(N+=Ha(N,s.indent,g(x))),N=`? ${N}
43
+ ${m}:`):(N=`${N}:`,x&&(N+=Ha(N,s.indent,g(x))));let H,G,M;Je(i)?(H=!!i.spaceBefore,G=i.commentBefore,M=i.comment):(H=!1,G=null,M=null,i&&typeof i=="object"&&(i=h.createNode(i))),s.implicitKey=!1,!k&&!x&&Le(i)&&(s.indentAtStart=N.length+1),S=!1,!j&&y.length>=2&&!s.inFlow&&!k&&sl(i)&&!i.flow&&!i.tag&&!i.anchor&&(s.indent=s.indent.substring(2));let U=!1;const Y=Vi(i,s,()=>U=!0,()=>S=!0);let X=" ";if(x||H||G){if(X=H?`
44
+ `:"",G){const Z=g(G);X+=`
45
+ ${Bn(Z,s.indent)}`}Y===""&&!s.inFlow?X===`
46
+ `&&M&&(X=`
47
+
48
+ `):X+=`
49
+ ${s.indent}`}else if(!k&&Ze(i)){const Z=Y[0],_=Y.indexOf(`
50
+ `),P=_!==-1,Se=s.inFlow??i.flow??i.items.length===0;if(P||!Se){let W=!1;if(P&&(Z==="&"||Z==="!")){let se=Y.indexOf(" ");Z==="&"&&se!==-1&&se<_&&Y[se+1]==="!"&&(se=Y.indexOf(" ",se+1)),(se===-1||_<se)&&(W=!0)}W||(X=`
51
+ ${s.indent}`)}}else(Y===""||Y[0]===`
52
+ `)&&(X="");return N+=X+Y,s.inFlow?U&&r&&r():M&&!U?N+=Ha(N,s.indent,g(M)):S&&c&&c(),N}function Ox(a,i){(a==="debug"||a==="warn")&&console.warn(i)}const kr="<<",Hn={identify:a=>a===kr||typeof a=="symbol"&&a.description===kr,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ge(Symbol(kr)),{addToJSMap:Gg}),stringify:()=>kr},_x=(a,i)=>(Hn.identify(i)||Le(i)&&(!i.type||i.type===ge.PLAIN)&&Hn.identify(i.value))&&a?.doc.schema.tags.some(s=>s.tag===Hn.tag&&s.default);function Gg(a,i,s){if(s=a&&Ga(s)?s.resolve(a.doc):s,sl(s))for(const r of s.items)qu(a,i,r);else if(Array.isArray(s))for(const r of s)qu(a,i,r);else qu(a,i,s)}function qu(a,i,s){const r=a&&Ga(s)?s.resolve(a.doc):s;if(!il(r))throw new Error("Merge sources must be maps or map aliases");const c=r.toJSON(null,a,Map);for(const[d,h]of c)i instanceof Map?i.has(d)||i.set(d,h):i instanceof Set?i.add(d):Object.prototype.hasOwnProperty.call(i,d)||Object.defineProperty(i,d,{value:h,writable:!0,enumerable:!0,configurable:!0});return i}function $g(a,i,{key:s,value:r}){if(Je(s)&&s.addToJSMap)s.addToJSMap(a,i,r);else if(_x(a,s))Gg(a,i,r);else{const c=It(s,"",a);if(i instanceof Map)i.set(c,It(r,c,a));else if(i instanceof Set)i.add(c);else{const d=zx(s,c,a),h=It(r,d,a);d in i?Object.defineProperty(i,d,{value:h,writable:!0,enumerable:!0,configurable:!0}):i[d]=h}}return i}function zx(a,i,s){if(i===null)return"";if(typeof i!="object")return String(i);if(Je(a)&&s?.doc){const r=Kg(s.doc,{});r.anchors=new Set;for(const d of s.anchors.keys())r.anchors.add(d.anchor);r.inFlow=!0,r.inStringifyKey=!0;const c=a.toString(r);if(!s.mapKeyWarned){let d=JSON.stringify(c);d.length>40&&(d=d.substring(0,36)+'..."'),Ox(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${d}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return c}return JSON.stringify(i)}function vd(a,i,s){const r=el(a,void 0,s),c=el(i,void 0,s);return new gt(r,c)}class gt{constructor(i,s=null){Object.defineProperty(this,Jt,{value:Mg}),this.key=i,this.value=s}clone(i){let{key:s,value:r}=this;return Je(s)&&(s=s.clone(i)),Je(r)&&(r=r.clone(i)),new gt(s,r)}toJSON(i,s){const r=s?.mapAsMap?new Map:{};return $g(s,r,this)}toString(i,s,r){return i?.doc?Tx(this,i,s,r):JSON.stringify(this)}}function Vg(a,i,s){return(i.inFlow??a.flow?Mx:Dx)(a,i,s)}function Dx({comment:a,items:i},s,{blockItemPrefix:r,flowChars:c,itemIndent:d,onChompKeep:h,onComment:m}){const{indent:y,options:{commentString:g}}=s,j=Object.assign({},s,{indent:d,type:null});let b=!1;const x=[];for(let T=0;T<i.length;++T){const S=i[T];let N=null;if(Je(S))!b&&S.spaceBefore&&x.push(""),Zr(s,x,S.commentBefore,b),S.comment&&(N=S.comment);else if(Fe(S)){const G=Je(S.key)?S.key:null;G&&(!b&&G.spaceBefore&&x.push(""),Zr(s,x,G.commentBefore,b))}b=!1;let H=Vi(S,j,()=>N=null,()=>b=!0);N&&(H+=Ha(H,d,g(N))),b&&N&&(b=!1),x.push(r+H)}let k;if(x.length===0)k=c.start+c.end;else{k=x[0];for(let T=1;T<x.length;++T){const S=x[T];k+=S?`
53
+ ${y}${S}`:`
54
+ `}}return a?(k+=`
55
+ `+Bn(g(a),y),m&&m()):b&&h&&h(),k}function Mx({items:a},i,{flowChars:s,itemIndent:r}){const{indent:c,indentStep:d,flowCollectionPadding:h,options:{commentString:m}}=i;r+=d;const y=Object.assign({},i,{indent:r,inFlow:!0,type:null});let g=!1,j=0;const b=[];for(let T=0;T<a.length;++T){const S=a[T];let N=null;if(Je(S))S.spaceBefore&&b.push(""),Zr(i,b,S.commentBefore,!1),S.comment&&(N=S.comment);else if(Fe(S)){const G=Je(S.key)?S.key:null;G&&(G.spaceBefore&&b.push(""),Zr(i,b,G.commentBefore,!1),G.comment&&(g=!0));const M=Je(S.value)?S.value:null;M?(M.comment&&(N=M.comment),M.commentBefore&&(g=!0)):S.value==null&&G?.comment&&(N=G.comment)}N&&(g=!0);let H=Vi(S,y,()=>N=null);T<a.length-1&&(H+=","),N&&(H+=Ha(H,r,m(N))),!g&&(b.length>j||H.includes(`
56
+ `))&&(g=!0),b.push(H),j=b.length}const{start:x,end:k}=s;if(b.length===0)return x+k;if(!g){const T=b.reduce((S,N)=>S+N.length+2,2);g=i.options.lineWidth>0&&T>i.options.lineWidth}if(g){let T=x;for(const S of b)T+=S?`
57
+ ${d}${c}${S}`:`
58
+ `;return`${T}
59
+ ${c}${k}`}else return`${x}${h}${b.join(" ")}${h}${k}`}function Zr({indent:a,options:{commentString:i}},s,r,c){if(r&&c&&(r=r.replace(/^\n+/,"")),r){const d=Bn(i(r),a);s.push(d.trimStart())}}function qa(a,i){const s=Le(i)?i.value:i;for(const r of a)if(Fe(r)&&(r.key===i||r.key===s||Le(r.key)&&r.key.value===s))return r}class Zt extends qg{static get tagName(){return"tag:yaml.org,2002:map"}constructor(i){super(ga,i),this.items=[]}static from(i,s,r){const{keepUndefined:c,replacer:d}=r,h=new this(i),m=(y,g)=>{if(typeof d=="function")g=d.call(s,y,g);else if(Array.isArray(d)&&!d.includes(y))return;(g!==void 0||c)&&h.items.push(vd(y,g,r))};if(s instanceof Map)for(const[y,g]of s)m(y,g);else if(s&&typeof s=="object")for(const y of Object.keys(s))m(y,s[y]);return typeof i.sortMapEntries=="function"&&h.items.sort(i.sortMapEntries),h}add(i,s){let r;Fe(i)?r=i:!i||typeof i!="object"||!("key"in i)?r=new gt(i,i?.value):r=new gt(i.key,i.value);const c=qa(this.items,r.key),d=this.schema?.sortMapEntries;if(c){if(!s)throw new Error(`Key ${r.key} already set`);Le(c.value)&&Hg(r.value)?c.value.value=r.value:c.value=r.value}else if(d){const h=this.items.findIndex(m=>d(r,m)<0);h===-1?this.items.push(r):this.items.splice(h,0,r)}else this.items.push(r)}delete(i){const s=qa(this.items,i);return s?this.items.splice(this.items.indexOf(s),1).length>0:!1}get(i,s){const c=qa(this.items,i)?.value;return(!s&&Le(c)?c.value:c)??void 0}has(i){return!!qa(this.items,i)}set(i,s){this.add(new gt(i,s),!0)}toJSON(i,s,r){const c=r?new r:s?.mapAsMap?new Map:{};s?.onCreate&&s.onCreate(c);for(const d of this.items)$g(s,c,d);return c}toString(i,s,r){if(!i)return JSON.stringify(this);for(const c of this.items)if(!Fe(c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(c)} instead`);return!i.allNullValues&&this.hasAllNullValues(!1)&&(i=Object.assign({},i,{allNullValues:!0})),Vg(this,i,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:i.indent||"",onChompKeep:r,onComment:s})}}const Ji={collection:"map",default:!0,nodeClass:Zt,tag:"tag:yaml.org,2002:map",resolve(a,i){return il(a)||i("Expected a mapping for this tag"),a},createNode:(a,i,s)=>Zt.from(a,i,s)};class Ya extends qg{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(i){super(Zi,i),this.items=[]}add(i){this.items.push(i)}delete(i){const s=Tr(i);return typeof s!="number"?!1:this.items.splice(s,1).length>0}get(i,s){const r=Tr(i);if(typeof r!="number")return;const c=this.items[r];return!s&&Le(c)?c.value:c}has(i){const s=Tr(i);return typeof s=="number"&&s<this.items.length}set(i,s){const r=Tr(i);if(typeof r!="number")throw new Error(`Expected a valid index, not ${i}.`);const c=this.items[r];Le(c)&&Hg(s)?c.value=s:this.items[r]=s}toJSON(i,s){const r=[];s?.onCreate&&s.onCreate(r);let c=0;for(const d of this.items)r.push(It(d,String(c++),s));return r}toString(i,s,r){return i?Vg(this,i,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(i.indent||"")+" ",onChompKeep:r,onComment:s}):JSON.stringify(this)}static from(i,s,r){const{replacer:c}=r,d=new this(i);if(s&&Symbol.iterator in Object(s)){let h=0;for(let m of s){if(typeof c=="function"){const y=s instanceof Set?m:String(h++);m=c.call(s,y,m)}d.items.push(el(m,void 0,r))}}return d}}function Tr(a){let i=Le(a)?a.value:a;return i&&typeof i=="string"&&(i=Number(i)),typeof i=="number"&&Number.isInteger(i)&&i>=0?i:null}const Fi={collection:"seq",default:!0,nodeClass:Ya,tag:"tag:yaml.org,2002:seq",resolve(a,i){return sl(a)||i("Expected a sequence for this tag"),a},createNode:(a,i,s)=>Ya.from(a,i,s)},lc={identify:a=>typeof a=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify(a,i,s,r){return i=Object.assign({actualString:!0},i),yd(a,i,s,r)}},rc={identify:a=>a==null,createNode:()=>new ge(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ge(null),stringify:({source:a},i)=>typeof a=="string"&&rc.test.test(a)?a:i.options.nullStr},bd={identify:a=>typeof a=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:a=>new ge(a[0]==="t"||a[0]==="T"),stringify({source:a,value:i},s){if(a&&bd.test.test(a)){const r=a[0]==="t"||a[0]==="T";if(i===r)return a}return i?s.options.trueStr:s.options.falseStr}};function rn({format:a,minFractionDigits:i,tag:s,value:r}){if(typeof r=="bigint")return String(r);const c=typeof r=="number"?r:Number(r);if(!isFinite(c))return isNaN(c)?".nan":c<0?"-.inf":".inf";let d=Object.is(r,-0)?"-0":JSON.stringify(r);if(!a&&i&&(!s||s==="tag:yaml.org,2002:float")&&/^\d/.test(d)){let h=d.indexOf(".");h<0&&(h=d.length,d+=".");let m=i-(d.length-h-1);for(;m-- >0;)d+="0"}return d}const Qg={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a=>a.slice(-3).toLowerCase()==="nan"?NaN:a[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:rn},Xg={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:a=>parseFloat(a),stringify(a){const i=Number(a.value);return isFinite(i)?i.toExponential():rn(a)}},Zg={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(a){const i=new ge(parseFloat(a)),s=a.indexOf(".");return s!==-1&&a[a.length-1]==="0"&&(i.minFractionDigits=a.length-s-1),i},stringify:rn},cc=a=>typeof a=="bigint"||Number.isInteger(a),xd=(a,i,s,{intAsBigInt:r})=>r?BigInt(a):parseInt(a.substring(i),s);function Ig(a,i,s){const{value:r}=a;return cc(r)&&r>=0?s+r.toString(i):rn(a)}const Jg={identify:a=>cc(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(a,i,s)=>xd(a,2,8,s),stringify:a=>Ig(a,8,"0o")},Fg={identify:cc,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(a,i,s)=>xd(a,0,10,s),stringify:rn},Pg={identify:a=>cc(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(a,i,s)=>xd(a,2,16,s),stringify:a=>Ig(a,16,"0x")},Rx=[Ji,Fi,lc,rc,bd,Jg,Fg,Pg,Qg,Xg,Zg];function Qp(a){return typeof a=="bigint"||Number.isInteger(a)}const Or=({value:a})=>JSON.stringify(a),Lx=[{identify:a=>typeof a=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify:Or},{identify:a=>a==null,createNode:()=>new ge(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Or},{identify:a=>typeof a=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:a=>a==="true",stringify:Or},{identify:Qp,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(a,i,{intAsBigInt:s})=>s?BigInt(a):parseInt(a,10),stringify:({value:a})=>Qp(a)?a.toString():JSON.stringify(a)},{identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:a=>parseFloat(a),stringify:Or}],Ux={default:!0,tag:"",test:/^/,resolve(a,i){return i(`Unresolved plain scalar ${JSON.stringify(a)}`),a}},Bx=[Ji,Fi].concat(Lx,Ux),Sd={identify:a=>a instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(a,i){if(typeof atob=="function"){const s=atob(a.replace(/[\n\r]/g,"")),r=new Uint8Array(s.length);for(let c=0;c<s.length;++c)r[c]=s.charCodeAt(c);return r}else return i("This environment does not support reading binary tags; either Buffer or atob is required"),a},stringify({comment:a,type:i,value:s},r,c,d){if(!s)return"";const h=s;let m;if(typeof btoa=="function"){let y="";for(let g=0;g<h.length;++g)y+=String.fromCharCode(h[g]);m=btoa(y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(i??(i=ge.BLOCK_LITERAL),i!==ge.QUOTE_DOUBLE){const y=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),g=Math.ceil(m.length/y),j=new Array(g);for(let b=0,x=0;b<g;++b,x+=y)j[b]=m.substr(x,y);m=j.join(i===ge.BLOCK_LITERAL?`
60
+ `:" ")}return yd({comment:a,type:i,value:m},r,c,d)}};function Wg(a,i){if(sl(a))for(let s=0;s<a.items.length;++s){let r=a.items[s];if(!Fe(r)){if(il(r)){r.items.length>1&&i("Each pair must have its own sequence indicator");const c=r.items[0]||new gt(new ge(null));if(r.commentBefore&&(c.key.commentBefore=c.key.commentBefore?`${r.commentBefore}
61
+ ${c.key.commentBefore}`:r.commentBefore),r.comment){const d=c.value??c.key;d.comment=d.comment?`${r.comment}
62
+ ${d.comment}`:r.comment}r=c}a.items[s]=Fe(r)?r:new gt(r)}}else i("Expected a sequence for this tag");return a}function ey(a,i,s){const{replacer:r}=s,c=new Ya(a);c.tag="tag:yaml.org,2002:pairs";let d=0;if(i&&Symbol.iterator in Object(i))for(let h of i){typeof r=="function"&&(h=r.call(i,String(d++),h));let m,y;if(Array.isArray(h))if(h.length===2)m=h[0],y=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const g=Object.keys(h);if(g.length===1)m=g[0],y=h[m];else throw new TypeError(`Expected tuple with one key, not ${g.length} keys`)}else m=h;c.items.push(vd(m,y,s))}return c}const jd={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Wg,createNode:ey};class qi extends Ya{constructor(){super(),this.add=Zt.prototype.add.bind(this),this.delete=Zt.prototype.delete.bind(this),this.get=Zt.prototype.get.bind(this),this.has=Zt.prototype.has.bind(this),this.set=Zt.prototype.set.bind(this),this.tag=qi.tag}toJSON(i,s){if(!s)return super.toJSON(i);const r=new Map;s?.onCreate&&s.onCreate(r);for(const c of this.items){let d,h;if(Fe(c)?(d=It(c.key,"",s),h=It(c.value,d,s)):d=It(c,"",s),r.has(d))throw new Error("Ordered maps must not include duplicate keys");r.set(d,h)}return r}static from(i,s,r){const c=ey(i,s,r),d=new this;return d.items=c.items,d}}qi.tag="tag:yaml.org,2002:omap";const wd={collection:"seq",identify:a=>a instanceof Map,nodeClass:qi,default:!1,tag:"tag:yaml.org,2002:omap",resolve(a,i){const s=Wg(a,i),r=[];for(const{key:c}of s.items)Le(c)&&(r.includes(c.value)?i(`Ordered maps must not include duplicate keys: ${c.value}`):r.push(c.value));return Object.assign(new qi,s)},createNode:(a,i,s)=>qi.from(a,i,s)};function ty({value:a,source:i},s){return i&&(a?ny:ay).test.test(i)?i:a?s.options.trueStr:s.options.falseStr}const ny={identify:a=>a===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ge(!0),stringify:ty},ay={identify:a=>a===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ge(!1),stringify:ty},Hx={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a=>a.slice(-3).toLowerCase()==="nan"?NaN:a[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:rn},qx={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:a=>parseFloat(a.replace(/_/g,"")),stringify(a){const i=Number(a.value);return isFinite(i)?i.toExponential():rn(a)}},Yx={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(a){const i=new ge(parseFloat(a.replace(/_/g,""))),s=a.indexOf(".");if(s!==-1){const r=a.substring(s+1).replace(/_/g,"");r[r.length-1]==="0"&&(i.minFractionDigits=r.length)}return i},stringify:rn},ll=a=>typeof a=="bigint"||Number.isInteger(a);function oc(a,i,s,{intAsBigInt:r}){const c=a[0];if((c==="-"||c==="+")&&(i+=1),a=a.substring(i).replace(/_/g,""),r){switch(s){case 2:a=`0b${a}`;break;case 8:a=`0o${a}`;break;case 16:a=`0x${a}`;break}const h=BigInt(a);return c==="-"?BigInt(-1)*h:h}const d=parseInt(a,s);return c==="-"?-1*d:d}function Nd(a,i,s){const{value:r}=a;if(ll(r)){const c=r.toString(i);return r<0?"-"+s+c.substr(1):s+c}return rn(a)}const Kx={identify:ll,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(a,i,s)=>oc(a,2,2,s),stringify:a=>Nd(a,2,"0b")},Gx={identify:ll,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(a,i,s)=>oc(a,1,8,s),stringify:a=>Nd(a,8,"0")},$x={identify:ll,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(a,i,s)=>oc(a,0,10,s),stringify:rn},Vx={identify:ll,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(a,i,s)=>oc(a,2,16,s),stringify:a=>Nd(a,16,"0x")};class Yi extends Zt{constructor(i){super(i),this.tag=Yi.tag}add(i){let s;Fe(i)?s=i:i&&typeof i=="object"&&"key"in i&&"value"in i&&i.value===null?s=new gt(i.key,null):s=new gt(i,null),qa(this.items,s.key)||this.items.push(s)}get(i,s){const r=qa(this.items,i);return!s&&Fe(r)?Le(r.key)?r.key.value:r.key:r}set(i,s){if(typeof s!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof s}`);const r=qa(this.items,i);r&&!s?this.items.splice(this.items.indexOf(r),1):!r&&s&&this.items.push(new gt(i))}toJSON(i,s){return super.toJSON(i,s,Set)}toString(i,s,r){if(!i)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},i,{allNullValues:!0}),s,r);throw new Error("Set items must all have null values")}static from(i,s,r){const{replacer:c}=r,d=new this(i);if(s&&Symbol.iterator in Object(s))for(let h of s)typeof c=="function"&&(h=c.call(s,h,h)),d.items.push(vd(h,null,r));return d}}Yi.tag="tag:yaml.org,2002:set";const Ed={collection:"map",identify:a=>a instanceof Set,nodeClass:Yi,default:!1,tag:"tag:yaml.org,2002:set",createNode:(a,i,s)=>Yi.from(a,i,s),resolve(a,i){if(il(a)){if(a.hasAllNullValues(!0))return Object.assign(new Yi,a);i("Set items must all have null values")}else i("Expected a mapping for this tag");return a}};function Ad(a,i){const s=a[0],r=s==="-"||s==="+"?a.substring(1):a,c=h=>i?BigInt(h):Number(h),d=r.replace(/_/g,"").split(":").reduce((h,m)=>h*c(60)+c(m),c(0));return s==="-"?c(-1)*d:d}function iy(a){let{value:i}=a,s=h=>h;if(typeof i=="bigint")s=h=>BigInt(h);else if(isNaN(i)||!isFinite(i))return rn(a);let r="";i<0&&(r="-",i*=s(-1));const c=s(60),d=[i%c];return i<60?d.unshift(0):(i=(i-d[0])/c,d.unshift(i%c),i>=60&&(i=(i-d[0])/c,d.unshift(i))),r+d.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const sy={identify:a=>typeof a=="bigint"||Number.isInteger(a),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(a,i,{intAsBigInt:s})=>Ad(a,s),stringify:iy},ly={identify:a=>typeof a=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:a=>Ad(a,!1),stringify:iy},uc={identify:a=>a instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(a){const i=a.match(uc.test);if(!i)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,s,r,c,d,h,m]=i.map(Number),y=i[7]?Number((i[7]+"00").substr(1,3)):0;let g=Date.UTC(s,r-1,c,d||0,h||0,m||0,y);const j=i[8];if(j&&j!=="Z"){let b=Ad(j,!1);Math.abs(b)<30&&(b*=60),g-=6e4*b}return new Date(g)},stringify:({value:a})=>a?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},Xp=[Ji,Fi,lc,rc,ny,ay,Kx,Gx,$x,Vx,Hx,qx,Yx,Sd,Hn,wd,jd,Ed,sy,ly,uc],Zp=new Map([["core",Rx],["failsafe",[Ji,Fi,lc]],["json",Bx],["yaml11",Xp],["yaml-1.1",Xp]]),Ip={binary:Sd,bool:bd,float:Zg,floatExp:Xg,floatNaN:Qg,floatTime:ly,int:Fg,intHex:Pg,intOct:Jg,intTime:sy,map:Ji,merge:Hn,null:rc,omap:wd,pairs:jd,seq:Fi,set:Ed,timestamp:uc},Qx={"tag:yaml.org,2002:binary":Sd,"tag:yaml.org,2002:merge":Hn,"tag:yaml.org,2002:omap":wd,"tag:yaml.org,2002:pairs":jd,"tag:yaml.org,2002:set":Ed,"tag:yaml.org,2002:timestamp":uc};function Yu(a,i,s){const r=Zp.get(i);if(r&&!a)return s&&!r.includes(Hn)?r.concat(Hn):r.slice();let c=r;if(!c)if(Array.isArray(a))c=[];else{const d=Array.from(Zp.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${d} or define customTags array`)}if(Array.isArray(a))for(const d of a)c=c.concat(d);else typeof a=="function"&&(c=a(c.slice()));return s&&(c=c.concat(Hn)),c.reduce((d,h)=>{const m=typeof h=="string"?Ip[h]:h;if(!m){const y=JSON.stringify(h),g=Object.keys(Ip).map(j=>JSON.stringify(j)).join(", ");throw new Error(`Unknown custom tag ${y}; use one of ${g}`)}return d.includes(m)||d.push(m),d},[])}const Xx=(a,i)=>a.key<i.key?-1:a.key>i.key?1:0;class Cd{constructor({compat:i,customTags:s,merge:r,resolveKnownTags:c,schema:d,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(i)?Yu(i,"compat"):i?Yu(null,i):null,this.name=typeof d=="string"&&d||"core",this.knownTags=c?Qx:{},this.tags=Yu(s,this.name,r),this.toStringOptions=m??null,Object.defineProperty(this,ga,{value:Ji}),Object.defineProperty(this,pn,{value:lc}),Object.defineProperty(this,Zi,{value:Fi}),this.sortMapEntries=typeof h=="function"?h:h===!0?Xx:null}clone(){const i=Object.create(Cd.prototype,Object.getOwnPropertyDescriptors(this));return i.tags=this.tags.slice(),i}}function Zx(a,i){const s=[];let r=i.directives===!0;if(i.directives!==!1&&a.directives){const y=a.directives.toString(a);y?(s.push(y),r=!0):a.directives.docStart&&(r=!0)}r&&s.push("---");const c=Kg(a,i),{commentString:d}=c.options;if(a.commentBefore){s.length!==1&&s.unshift("");const y=d(a.commentBefore);s.unshift(Bn(y,""))}let h=!1,m=null;if(a.contents){if(Je(a.contents)){if(a.contents.spaceBefore&&r&&s.push(""),a.contents.commentBefore){const j=d(a.contents.commentBefore);s.push(Bn(j,""))}c.forceBlockIndent=!!a.comment,m=a.contents.comment}const y=m?void 0:()=>h=!0;let g=Vi(a.contents,c,()=>m=null,y);m&&(g+=Ha(g,"",d(m))),(g[0]==="|"||g[0]===">")&&s[s.length-1]==="---"?s[s.length-1]=`--- ${g}`:s.push(g)}else s.push(Vi(a.contents,c));if(a.directives?.docEnd)if(a.comment){const y=d(a.comment);y.includes(`
63
+ `)?(s.push("..."),s.push(Bn(y,""))):s.push(`... ${y}`)}else s.push("...");else{let y=a.comment;y&&h&&(y=y.replace(/^\n+/,"")),y&&((!h||m)&&s[s.length-1]!==""&&s.push(""),s.push(Bn(d(y),"")))}return s.join(`
64
+ `)+`
65
+ `}class dc{constructor(i,s,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Jt,{value:td});let c=null;typeof s=="function"||Array.isArray(s)?c=s:r===void 0&&s&&(r=s,s=void 0);const d=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=d;let{version:h}=d;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new pt({version:h}),this.setSchema(h,r),this.contents=i===void 0?null:this.createNode(i,c,r)}clone(){const i=Object.create(dc.prototype,{[Jt]:{value:td}});return i.commentBefore=this.commentBefore,i.comment=this.comment,i.errors=this.errors.slice(),i.warnings=this.warnings.slice(),i.options=Object.assign({},this.options),this.directives&&(i.directives=this.directives.clone()),i.schema=this.schema.clone(),i.contents=Je(this.contents)?this.contents.clone(i.schema):this.contents,this.range&&(i.range=this.range.slice()),i}add(i){zi(this.contents)&&this.contents.add(i)}addIn(i,s){zi(this.contents)&&this.contents.addIn(i,s)}createAlias(i,s){if(!i.anchor){const r=Ug(this);i.anchor=!s||r.has(s)?Bg(s||"a",r):s}return new gd(i.anchor)}createNode(i,s,r){let c;if(typeof s=="function")i=s.call({"":i},"",i),c=s;else if(Array.isArray(s)){const N=G=>typeof G=="number"||G instanceof String||G instanceof Number,H=s.filter(N).map(String);H.length>0&&(s=s.concat(H)),c=s}else r===void 0&&s&&(r=s,s=void 0);const{aliasDuplicateObjects:d,anchorPrefix:h,flow:m,keepUndefined:y,onTagObj:g,tag:j}=r??{},{onAnchor:b,setAnchors:x,sourceObjects:k}=Sx(this,h||"a"),T={aliasDuplicateObjects:d??!0,keepUndefined:y??!1,onAnchor:b,onTagObj:g,replacer:c,schema:this.schema,sourceObjects:k},S=el(i,j,T);return m&&Ze(S)&&(S.flow=!0),x(),S}createPair(i,s,r={}){const c=this.createNode(i,null,r),d=this.createNode(s,null,r);return new gt(c,d)}delete(i){return zi(this.contents)?this.contents.delete(i):!1}deleteIn(i){return Fs(i)?this.contents==null?!1:(this.contents=null,!0):zi(this.contents)?this.contents.deleteIn(i):!1}get(i,s){return Ze(this.contents)?this.contents.get(i,s):void 0}getIn(i,s){return Fs(i)?!s&&Le(this.contents)?this.contents.value:this.contents:Ze(this.contents)?this.contents.getIn(i,s):void 0}has(i){return Ze(this.contents)?this.contents.has(i):!1}hasIn(i){return Fs(i)?this.contents!==void 0:Ze(this.contents)?this.contents.hasIn(i):!1}set(i,s){this.contents==null?this.contents=Xr(this.schema,[i],s):zi(this.contents)&&this.contents.set(i,s)}setIn(i,s){Fs(i)?this.contents=s:this.contents==null?this.contents=Xr(this.schema,Array.from(i),s):zi(this.contents)&&this.contents.setIn(i,s)}setSchema(i,s={}){typeof i=="number"&&(i=String(i));let r;switch(i){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new pt({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=i:this.directives=new pt({version:i}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const c=JSON.stringify(i);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${c}`)}}if(s.schema instanceof Object)this.schema=s.schema;else if(r)this.schema=new Cd(Object.assign(r,s));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:i,jsonArg:s,mapAsMap:r,maxAliasCount:c,onAnchor:d,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!i,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof c=="number"?c:100},y=It(this.contents,s??"",m);if(typeof d=="function")for(const{count:g,res:j}of m.anchors.values())d(j,g);return typeof h=="function"?Bi(h,{"":y},"",y):y}toJSON(i,s){return this.toJS({json:!0,jsonArg:i,mapAsMap:!1,onAnchor:s})}toString(i={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in i&&(!Number.isInteger(i.indent)||Number(i.indent)<=0)){const s=JSON.stringify(i.indent);throw new Error(`"indent" option must be a positive integer, not ${s}`)}return Zx(this,i)}}function zi(a){if(Ze(a))return!0;throw new Error("Expected a YAML collection as document contents")}class ry extends Error{constructor(i,s,r,c){super(),this.name=i,this.code=r,this.message=c,this.pos=s}}class _r extends ry{constructor(i,s,r){super("YAMLParseError",i,s,r)}}class Ix extends ry{constructor(i,s,r){super("YAMLWarning",i,s,r)}}const Jp=(a,i)=>s=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map(m=>i.linePos(m));const{line:r,col:c}=s.linePos[0];s.message+=` at line ${r}, column ${c}`;let d=c-1,h=a.substring(i.lineStarts[r-1],i.lineStarts[r]).replace(/[\n\r]+$/,"");if(d>=60&&h.length>80){const m=Math.min(d-39,h.length-79);h="…"+h.substring(m),d-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),r>1&&/^ *$/.test(h.substring(0,d))){let m=a.substring(i.lineStarts[r-2],i.lineStarts[r-1]);m.length>80&&(m=m.substring(0,79)+`…
66
+ `),h=m+h}if(/[^ ]/.test(h)){let m=1;const y=s.linePos[1];y?.line===r&&y.col>c&&(m=Math.max(1,Math.min(y.col-c,80-d)));const g=" ".repeat(d)+"^".repeat(m);s.message+=`:
67
+
68
+ ${h}
69
+ ${g}
70
+ `}};function Qi(a,{flow:i,indicator:s,next:r,offset:c,onError:d,parentIndent:h,startOnNewline:m}){let y=!1,g=m,j=m,b="",x="",k=!1,T=!1,S=null,N=null,H=null,G=null,M=null,U=null,Y=null;for(const _ of a)switch(T&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&d(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),T=!1),S&&(g&&_.type!=="comment"&&_.type!=="newline"&&d(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),_.type){case"space":!i&&(s!=="doc-start"||r?.type!=="flow-collection")&&_.source.includes(" ")&&(S=_),j=!0;break;case"comment":{j||d(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const P=_.source.substring(1)||" ";b?b+=x+P:b=P,x="",g=!1;break}case"newline":g?b?b+=_.source:(!U||s!=="seq-item-ind")&&(y=!0):x+=_.source,g=!0,k=!0,(N||H)&&(G=_),j=!0;break;case"anchor":N&&d(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&d(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),N=_,Y??(Y=_.offset),g=!1,j=!1,T=!0;break;case"tag":{H&&d(_,"MULTIPLE_TAGS","A node can have at most one tag"),H=_,Y??(Y=_.offset),g=!1,j=!1,T=!0;break}case s:(N||H)&&d(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),U&&d(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${i??"collection"}`),U=_,g=s==="seq-item-ind"||s==="explicit-key-ind",j=!1;break;case"comma":if(i){M&&d(_,"UNEXPECTED_TOKEN",`Unexpected , in ${i}`),M=_,g=!1,j=!1;break}default:d(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),g=!1,j=!1}const X=a[a.length-1],Z=X?X.offset+X.source.length:c;return T&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&d(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(g&&S.indent<=h||r?.type==="block-map"||r?.type==="block-seq")&&d(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:M,found:U,spaceBefore:y,comment:b,hasNewline:k,anchor:N,tag:H,newlineAfterProp:G,end:Z,start:Y??Z}}function tl(a){if(!a)return null;switch(a.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(a.source.includes(`
71
+ `))return!0;if(a.end){for(const i of a.end)if(i.type==="newline")return!0}return!1;case"flow-collection":for(const i of a.items){for(const s of i.start)if(s.type==="newline")return!0;if(i.sep){for(const s of i.sep)if(s.type==="newline")return!0}if(tl(i.key)||tl(i.value))return!0}return!1;default:return!0}}function sd(a,i,s){if(i?.type==="flow-collection"){const r=i.end[0];r.indent===a&&(r.source==="]"||r.source==="}")&&tl(i)&&s(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function cy(a,i,s){const{uniqueKeys:r}=a.options;if(r===!1)return!1;const c=typeof r=="function"?r:(d,h)=>d===h||Le(d)&&Le(h)&&d.value===h.value;return i.some(d=>c(d.key,s))}const Fp="All mapping items must start at the same column";function Jx({composeNode:a,composeEmptyNode:i},s,r,c,d){const h=d?.nodeClass??Zt,m=new h(s.schema);s.atRoot&&(s.atRoot=!1);let y=r.offset,g=null;for(const j of r.items){const{start:b,key:x,sep:k,value:T}=j,S=Qi(b,{indicator:"explicit-key-ind",next:x??k?.[0],offset:y,onError:c,parentIndent:r.indent,startOnNewline:!0}),N=!S.found;if(N){if(x&&(x.type==="block-seq"?c(y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in x&&x.indent!==r.indent&&c(y,"BAD_INDENT",Fp)),!S.anchor&&!S.tag&&!k){g=S.end,S.comment&&(m.comment?m.comment+=`
72
+ `+S.comment:m.comment=S.comment);continue}(S.newlineAfterProp||tl(x))&&c(x??b[b.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==r.indent&&c(y,"BAD_INDENT",Fp);s.atKey=!0;const H=S.end,G=x?a(s,x,S,c):i(s,H,b,null,S,c);s.schema.compat&&sd(r.indent,x,c),s.atKey=!1,cy(s,m.items,G)&&c(H,"DUPLICATE_KEY","Map keys must be unique");const M=Qi(k??[],{indicator:"map-value-ind",next:T,offset:G.range[2],onError:c,parentIndent:r.indent,startOnNewline:!x||x.type==="block-scalar"});if(y=M.end,M.found){N&&(T?.type==="block-map"&&!M.hasNewline&&c(y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),s.options.strict&&S.start<M.found.offset-1024&&c(G.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const U=T?a(s,T,M,c):i(s,y,k,null,M,c);s.schema.compat&&sd(r.indent,T,c),y=U.range[2];const Y=new gt(G,U);s.options.keepSourceTokens&&(Y.srcToken=j),m.items.push(Y)}else{N&&c(G.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),M.comment&&(G.comment?G.comment+=`
73
+ `+M.comment:G.comment=M.comment);const U=new gt(G);s.options.keepSourceTokens&&(U.srcToken=j),m.items.push(U)}}return g&&g<y&&c(g,"IMPOSSIBLE","Map comment with trailing content"),m.range=[r.offset,y,g??y],m}function Fx({composeNode:a,composeEmptyNode:i},s,r,c,d){const h=d?.nodeClass??Ya,m=new h(s.schema);s.atRoot&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let y=r.offset,g=null;for(const{start:j,value:b}of r.items){const x=Qi(j,{indicator:"seq-item-ind",next:b,offset:y,onError:c,parentIndent:r.indent,startOnNewline:!0});if(!x.found)if(x.anchor||x.tag||b)b?.type==="block-seq"?c(x.end,"BAD_INDENT","All sequence items must start at the same column"):c(y,"MISSING_CHAR","Sequence item without - indicator");else{g=x.end,x.comment&&(m.comment=x.comment);continue}const k=b?a(s,b,x,c):i(s,x.end,j,null,x,c);s.schema.compat&&sd(r.indent,b,c),y=k.range[2],m.items.push(k)}return m.range=[r.offset,y,g??y],m}function rl(a,i,s,r){let c="";if(a){let d=!1,h="";for(const m of a){const{source:y,type:g}=m;switch(g){case"space":d=!0;break;case"comment":{s&&!d&&r(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const j=y.substring(1)||" ";c?c+=h+j:c=j,h="";break}case"newline":c&&(h+=y),d=!0;break;default:r(m,"UNEXPECTED_TOKEN",`Unexpected ${g} at node end`)}i+=y.length}}return{comment:c,offset:i}}const Ku="Block collections are not allowed within flow collections",Gu=a=>a&&(a.type==="block-map"||a.type==="block-seq");function Px({composeNode:a,composeEmptyNode:i},s,r,c,d){const h=r.start.source==="{",m=h?"flow map":"flow sequence",y=d?.nodeClass??(h?Zt:Ya),g=new y(s.schema);g.flow=!0;const j=s.atRoot;j&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let b=r.offset+r.start.source.length;for(let N=0;N<r.items.length;++N){const H=r.items[N],{start:G,key:M,sep:U,value:Y}=H,X=Qi(G,{flow:m,indicator:"explicit-key-ind",next:M??U?.[0],offset:b,onError:c,parentIndent:r.indent,startOnNewline:!1});if(!X.found){if(!X.anchor&&!X.tag&&!U&&!Y){N===0&&X.comma?c(X.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`):N<r.items.length-1&&c(X.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${m}`),X.comment&&(g.comment?g.comment+=`
74
+ `+X.comment:g.comment=X.comment),b=X.end;continue}!h&&s.options.strict&&tl(M)&&c(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(N===0)X.comma&&c(X.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`);else if(X.comma||c(X.start,"MISSING_CHAR",`Missing , between ${m} items`),X.comment){let Z="";e:for(const _ of G)switch(_.type){case"comma":case"space":break;case"comment":Z=_.source.substring(1);break e;default:break e}if(Z){let _=g.items[g.items.length-1];Fe(_)&&(_=_.value??_.key),_.comment?_.comment+=`
75
+ `+Z:_.comment=Z,X.comment=X.comment.substring(Z.length+1)}}if(!h&&!U&&!X.found){const Z=Y?a(s,Y,X,c):i(s,X.end,U,null,X,c);g.items.push(Z),b=Z.range[2],Gu(Y)&&c(Z.range,"BLOCK_IN_FLOW",Ku)}else{s.atKey=!0;const Z=X.end,_=M?a(s,M,X,c):i(s,Z,G,null,X,c);Gu(M)&&c(_.range,"BLOCK_IN_FLOW",Ku),s.atKey=!1;const P=Qi(U??[],{flow:m,indicator:"map-value-ind",next:Y,offset:_.range[2],onError:c,parentIndent:r.indent,startOnNewline:!1});if(P.found){if(!h&&!X.found&&s.options.strict){if(U)for(const se of U){if(se===P.found)break;if(se.type==="newline"){c(se,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}X.start<P.found.offset-1024&&c(P.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else Y&&("source"in Y&&Y.source?.[0]===":"?c(Y,"MISSING_CHAR",`Missing space after : in ${m}`):c(P.start,"MISSING_CHAR",`Missing , or : between ${m} items`));const Se=Y?a(s,Y,P,c):P.found?i(s,P.end,U,null,P,c):null;Se?Gu(Y)&&c(Se.range,"BLOCK_IN_FLOW",Ku):P.comment&&(_.comment?_.comment+=`
76
+ `+P.comment:_.comment=P.comment);const W=new gt(_,Se);if(s.options.keepSourceTokens&&(W.srcToken=H),h){const se=g;cy(s,se.items,_)&&c(Z,"DUPLICATE_KEY","Map keys must be unique"),se.items.push(W)}else{const se=new Zt(s.schema);se.flow=!0,se.items.push(W);const Ke=(Se??_).range;se.range=[_.range[0],Ke[1],Ke[2]],g.items.push(se)}b=Se?Se.range[2]:P.end}}const x=h?"}":"]",[k,...T]=r.end;let S=b;if(k?.source===x)S=k.offset+k.source.length;else{const N=m[0].toUpperCase()+m.substring(1),H=j?`${N} must end with a ${x}`:`${N} in block collection must be sufficiently indented and end with a ${x}`;c(b,j?"MISSING_CHAR":"BAD_INDENT",H),k&&k.source.length!==1&&T.unshift(k)}if(T.length>0){const N=rl(T,S,s.options.strict,c);N.comment&&(g.comment?g.comment+=`
77
+ `+N.comment:g.comment=N.comment),g.range=[r.offset,S,N.offset]}else g.range=[r.offset,S,S];return g}function $u(a,i,s,r,c,d){const h=s.type==="block-map"?Jx(a,i,s,r,d):s.type==="block-seq"?Fx(a,i,s,r,d):Px(a,i,s,r,d),m=h.constructor;return c==="!"||c===m.tagName?(h.tag=m.tagName,h):(c&&(h.tag=c),h)}function Wx(a,i,s,r,c){const d=r.tag,h=d?i.directives.tagName(d.source,x=>c(d,"TAG_RESOLVE_FAILED",x)):null;if(s.type==="block-seq"){const{anchor:x,newlineAfterProp:k}=r,T=x&&d?x.offset>d.offset?x:d:x??d;T&&(!k||k.offset<T.offset)&&c(T,"MISSING_CHAR","Missing newline after block sequence props")}const m=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!d||!h||h==="!"||h===Zt.tagName&&m==="map"||h===Ya.tagName&&m==="seq")return $u(a,i,s,c,h);let y=i.schema.tags.find(x=>x.tag===h&&x.collection===m);if(!y){const x=i.schema.knownTags[h];if(x?.collection===m)i.schema.tags.push(Object.assign({},x,{default:!1})),y=x;else return x?c(d,"BAD_COLLECTION_TYPE",`${x.tag} used for ${m} collection, but expects ${x.collection??"scalar"}`,!0):c(d,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),$u(a,i,s,c,h)}const g=$u(a,i,s,c,h,y),j=y.resolve?.(g,x=>c(d,"TAG_RESOLVE_FAILED",x),i.options)??g,b=Je(j)?j:new ge(j);return b.range=g.range,b.tag=h,y?.format&&(b.format=y.format),b}function eS(a,i,s){const r=i.offset,c=tS(i,a.options.strict,s);if(!c)return{value:"",type:null,comment:"",range:[r,r,r]};const d=c.mode===">"?ge.BLOCK_FOLDED:ge.BLOCK_LITERAL,h=i.source?nS(i.source):[];let m=h.length;for(let S=h.length-1;S>=0;--S){const N=h[S][1];if(N===""||N==="\r")m=S;else break}if(m===0){const S=c.chomp==="+"&&h.length>0?`
78
+ `.repeat(Math.max(1,h.length-1)):"";let N=r+c.length;return i.source&&(N+=i.source.length),{value:S,type:d,comment:c.comment,range:[r,N,N]}}let y=i.indent+c.indent,g=i.offset+c.length,j=0;for(let S=0;S<m;++S){const[N,H]=h[S];if(H===""||H==="\r")c.indent===0&&N.length>y&&(y=N.length);else{N.length<y&&s(g+N.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),c.indent===0&&(y=N.length),j=S,y===0&&!a.atRoot&&s(g,"BAD_INDENT","Block scalar values in collections must be indented");break}g+=N.length+H.length+1}for(let S=h.length-1;S>=m;--S)h[S][0].length>y&&(m=S+1);let b="",x="",k=!1;for(let S=0;S<j;++S)b+=h[S][0].slice(y)+`
79
+ `;for(let S=j;S<m;++S){let[N,H]=h[S];g+=N.length+H.length+1;const G=H[H.length-1]==="\r";if(G&&(H=H.slice(0,-1)),H&&N.length<y){const U=`Block scalar lines must not be less indented than their ${c.indent?"explicit indentation indicator":"first line"}`;s(g-H.length-(G?2:1),"BAD_INDENT",U),N=""}d===ge.BLOCK_LITERAL?(b+=x+N.slice(y)+H,x=`
80
+ `):N.length>y||H[0]===" "?(x===" "?x=`
81
+ `:!k&&x===`
82
+ `&&(x=`
83
+
84
+ `),b+=x+N.slice(y)+H,x=`
85
+ `,k=!0):H===""?x===`
86
+ `?b+=`
87
+ `:x=`
88
+ `:(b+=x+H,x=" ",k=!1)}switch(c.chomp){case"-":break;case"+":for(let S=m;S<h.length;++S)b+=`
89
+ `+h[S][0].slice(y);b[b.length-1]!==`
90
+ `&&(b+=`
91
+ `);break;default:b+=`
92
+ `}const T=r+c.length+i.source.length;return{value:b,type:d,comment:c.comment,range:[r,T,T]}}function tS({offset:a,props:i},s,r){if(i[0].type!=="block-scalar-header")return r(i[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:c}=i[0],d=c[0];let h=0,m="",y=-1;for(let x=1;x<c.length;++x){const k=c[x];if(!m&&(k==="-"||k==="+"))m=k;else{const T=Number(k);!h&&T?h=T:y===-1&&(y=a+x)}}y!==-1&&r(y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${c}`);let g=!1,j="",b=c.length;for(let x=1;x<i.length;++x){const k=i[x];switch(k.type){case"space":g=!0;case"newline":b+=k.source.length;break;case"comment":s&&!g&&r(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),b+=k.source.length,j=k.source.substring(1);break;case"error":r(k,"UNEXPECTED_TOKEN",k.message),b+=k.source.length;break;default:{const T=`Unexpected token in block scalar header: ${k.type}`;r(k,"UNEXPECTED_TOKEN",T);const S=k.source;S&&typeof S=="string"&&(b+=S.length)}}}return{mode:d,indent:h,chomp:m,comment:j,length:b}}function nS(a){const i=a.split(/\n( *)/),s=i[0],r=s.match(/^( *)/),d=[r?.[1]?[r[1],s.slice(r[1].length)]:["",s]];for(let h=1;h<i.length;h+=2)d.push([i[h],i[h+1]]);return d}function aS(a,i,s){const{offset:r,type:c,source:d,end:h}=a;let m,y;const g=(x,k,T)=>s(r+x,k,T);switch(c){case"scalar":m=ge.PLAIN,y=iS(d,g);break;case"single-quoted-scalar":m=ge.QUOTE_SINGLE,y=sS(d,g);break;case"double-quoted-scalar":m=ge.QUOTE_DOUBLE,y=lS(d,g);break;default:return s(a,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${c}`),{value:"",type:null,comment:"",range:[r,r+d.length,r+d.length]}}const j=r+d.length,b=rl(h,j,i,s);return{value:y,type:m,comment:b.comment,range:[r,j,b.offset]}}function iS(a,i){let s="";switch(a[0]){case" ":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${a[0]}`;break}case"@":case"`":{s=`reserved character ${a[0]}`;break}}return s&&i(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`),oy(a)}function sS(a,i){return(a[a.length-1]!=="'"||a.length===1)&&i(a.length,"MISSING_CHAR","Missing closing 'quote"),oy(a.slice(1,-1)).replace(/''/g,"'")}function oy(a){let i,s;try{i=new RegExp(`(.*?)(?<![ ])[ ]*\r?
93
+ `,"sy"),s=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
94
+ `,"sy")}catch{i=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=i.exec(a);if(!r)return a;let c=r[1],d=" ",h=i.lastIndex;for(s.lastIndex=h;r=s.exec(a);)r[1]===""?d===`
95
+ `?c+=d:d=`
96
+ `:(c+=d+r[1],d=" "),h=s.lastIndex;const m=/[ \t]*(.*)/sy;return m.lastIndex=h,r=m.exec(a),c+d+(r?.[1]??"")}function lS(a,i){let s="";for(let r=1;r<a.length-1;++r){const c=a[r];if(!(c==="\r"&&a[r+1]===`
97
+ `))if(c===`
98
+ `){const{fold:d,offset:h}=rS(a,r);s+=d,r=h}else if(c==="\\"){let d=a[++r];const h=cS[d];if(h)s+=h;else if(d===`
99
+ `)for(d=a[r+1];d===" "||d===" ";)d=a[++r+1];else if(d==="\r"&&a[r+1]===`
100
+ `)for(d=a[++r+1];d===" "||d===" ";)d=a[++r+1];else if(d==="x"||d==="u"||d==="U"){const m={x:2,u:4,U:8}[d];s+=oS(a,r+1,m,i),r+=m}else{const m=a.substr(r-1,2);i(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),s+=m}}else if(c===" "||c===" "){const d=r;let h=a[r+1];for(;h===" "||h===" ";)h=a[++r+1];h!==`
101
+ `&&!(h==="\r"&&a[r+2]===`
102
+ `)&&(s+=r>d?a.slice(d,r+1):c)}else s+=c}return(a[a.length-1]!=='"'||a.length===1)&&i(a.length,"MISSING_CHAR",'Missing closing "quote'),s}function rS(a,i){let s="",r=a[i+1];for(;(r===" "||r===" "||r===`
103
+ `||r==="\r")&&!(r==="\r"&&a[i+2]!==`
104
+ `);)r===`
105
+ `&&(s+=`
106
+ `),i+=1,r=a[i+1];return s||(s=" "),{fold:s,offset:i}}const cS={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
107
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function oS(a,i,s,r){const c=a.substr(i,s),h=c.length===s&&/^[0-9a-fA-F]+$/.test(c)?parseInt(c,16):NaN;if(isNaN(h)){const m=a.substr(i-2,s+2);return r(i-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),m}return String.fromCodePoint(h)}function uy(a,i,s,r){const{value:c,type:d,comment:h,range:m}=i.type==="block-scalar"?eS(a,i,r):aS(i,a.options.strict,r),y=s?a.directives.tagName(s.source,b=>r(s,"TAG_RESOLVE_FAILED",b)):null;let g;a.options.stringKeys&&a.atKey?g=a.schema[pn]:y?g=uS(a.schema,c,y,s,r):i.type==="scalar"?g=dS(a,c,i,r):g=a.schema[pn];let j;try{const b=g.resolve(c,x=>r(s??i,"TAG_RESOLVE_FAILED",x),a.options);j=Le(b)?b:new ge(b)}catch(b){const x=b instanceof Error?b.message:String(b);r(s??i,"TAG_RESOLVE_FAILED",x),j=new ge(c)}return j.range=m,j.source=c,d&&(j.type=d),y&&(j.tag=y),g.format&&(j.format=g.format),h&&(j.comment=h),j}function uS(a,i,s,r,c){if(s==="!")return a[pn];const d=[];for(const m of a.tags)if(!m.collection&&m.tag===s)if(m.default&&m.test)d.push(m);else return m;for(const m of d)if(m.test?.test(i))return m;const h=a.knownTags[s];return h&&!h.collection?(a.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(c(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),a[pn])}function dS({atKey:a,directives:i,schema:s},r,c,d){const h=s.tags.find(m=>(m.default===!0||a&&m.default==="key")&&m.test?.test(r))||s[pn];if(s.compat){const m=s.compat.find(y=>y.default&&y.test?.test(r))??s[pn];if(h.tag!==m.tag){const y=i.tagString(h.tag),g=i.tagString(m.tag),j=`Value may be parsed as either ${y} or ${g}`;d(c,"TAG_RESOLVE_FAILED",j,!0)}}return h}function fS(a,i,s){if(i){s??(s=i.length);for(let r=s-1;r>=0;--r){let c=i[r];switch(c.type){case"space":case"comment":case"newline":a-=c.source.length;continue}for(c=i[++r];c?.type==="space";)a+=c.source.length,c=i[++r];break}}return a}const hS={composeNode:dy,composeEmptyNode:kd};function dy(a,i,s,r){const c=a.atKey,{spaceBefore:d,comment:h,anchor:m,tag:y}=s;let g,j=!0;switch(i.type){case"alias":g=mS(a,i,r),(m||y)&&r(i,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":g=uy(a,i,y,r),m&&(g.anchor=m.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":g=Wx(hS,a,i,s,r),m&&(g.anchor=m.source.substring(1));break;default:{const b=i.type==="error"?i.message:`Unsupported token (type: ${i.type})`;r(i,"UNEXPECTED_TOKEN",b),g=kd(a,i.offset,void 0,null,s,r),j=!1}}return m&&g.anchor===""&&r(m,"BAD_ALIAS","Anchor cannot be an empty string"),c&&a.options.stringKeys&&(!Le(g)||typeof g.value!="string"||g.tag&&g.tag!=="tag:yaml.org,2002:str")&&r(y??i,"NON_STRING_KEY","With stringKeys, all keys must be strings"),d&&(g.spaceBefore=!0),h&&(i.type==="scalar"&&i.source===""?g.comment=h:g.commentBefore=h),a.options.keepSourceTokens&&j&&(g.srcToken=i),g}function kd(a,i,s,r,{spaceBefore:c,comment:d,anchor:h,tag:m,end:y},g){const j={type:"scalar",offset:fS(i,s,r),indent:-1,source:""},b=uy(a,j,m,g);return h&&(b.anchor=h.source.substring(1),b.anchor===""&&g(h,"BAD_ALIAS","Anchor cannot be an empty string")),c&&(b.spaceBefore=!0),d&&(b.comment=d,b.range[2]=y),b}function mS({options:a},{offset:i,source:s,end:r},c){const d=new gd(s.substring(1));d.source===""&&c(i,"BAD_ALIAS","Alias cannot be an empty string"),d.source.endsWith(":")&&c(i+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=i+s.length,m=rl(r,h,a.strict,c);return d.range=[i,h,m.offset],m.comment&&(d.comment=m.comment),d}function pS(a,i,{offset:s,start:r,value:c,end:d},h){const m=Object.assign({_directives:i},a),y=new dc(void 0,m),g={atKey:!1,atRoot:!0,directives:y.directives,options:y.options,schema:y.schema},j=Qi(r,{indicator:"doc-start",next:c??d?.[0],offset:s,onError:h,parentIndent:0,startOnNewline:!0});j.found&&(y.directives.docStart=!0,c&&(c.type==="block-map"||c.type==="block-seq")&&!j.hasNewline&&h(j.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),y.contents=c?dy(g,c,j,h):kd(g,j.end,r,null,j,h);const b=y.contents.range[2],x=rl(d,b,!1,h);return x.comment&&(y.comment=x.comment),y.range=[s,b,x.offset],y}function Zs(a){if(typeof a=="number")return[a,a+1];if(Array.isArray(a))return a.length===2?a:[a[0],a[1]];const{offset:i,source:s}=a;return[i,i+(typeof s=="string"?s.length:1)]}function Pp(a){let i="",s=!1,r=!1;for(let c=0;c<a.length;++c){const d=a[c];switch(d[0]){case"#":i+=(i===""?"":r?`
108
+
109
+ `:`
110
+ `)+(d.substring(1)||" "),s=!0,r=!1;break;case"%":a[c+1]?.[0]!=="#"&&(c+=1),s=!1;break;default:s||(r=!0),s=!1}}return{comment:i,afterEmptyLine:r}}class gS{constructor(i={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(s,r,c,d)=>{const h=Zs(s);d?this.warnings.push(new Ix(h,r,c)):this.errors.push(new _r(h,r,c))},this.directives=new pt({version:i.version||"1.2"}),this.options=i}decorate(i,s){const{comment:r,afterEmptyLine:c}=Pp(this.prelude);if(r){const d=i.contents;if(s)i.comment=i.comment?`${i.comment}
111
+ ${r}`:r;else if(c||i.directives.docStart||!d)i.commentBefore=r;else if(Ze(d)&&!d.flow&&d.items.length>0){let h=d.items[0];Fe(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${r}
112
+ ${m}`:r}else{const h=d.commentBefore;d.commentBefore=h?`${r}
113
+ ${h}`:r}}s?(Array.prototype.push.apply(i.errors,this.errors),Array.prototype.push.apply(i.warnings,this.warnings)):(i.errors=this.errors,i.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Pp(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(i,s=!1,r=-1){for(const c of i)yield*this.next(c);yield*this.end(s,r)}*next(i){switch(i.type){case"directive":this.directives.add(i.source,(s,r,c)=>{const d=Zs(i);d[0]+=s,this.onError(d,"BAD_DIRECTIVE",r,c)}),this.prelude.push(i.source),this.atDirectives=!0;break;case"document":{const s=pS(this.options,this.directives,i,this.onError);this.atDirectives&&!s.directives.docStart&&this.onError(i,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(s,!1),this.doc&&(yield this.doc),this.doc=s,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(i.source);break;case"error":{const s=i.source?`${i.message}: ${JSON.stringify(i.source)}`:i.message,r=new _r(Zs(i),"UNEXPECTED_TOKEN",s);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new _r(Zs(i),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const s=rl(i.end,i.offset+i.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),s.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
114
+ ${s.comment}`:s.comment}this.doc.range[2]=s.offset;break}default:this.errors.push(new _r(Zs(i),"UNEXPECTED_TOKEN",`Unsupported token ${i.type}`))}}*end(i=!1,s=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(i){const r=Object.assign({_directives:this.directives},this.options),c=new dc(void 0,r);this.atDirectives&&this.onError(s,"MISSING_CHAR","Missing directives-end indicator line"),c.range=[0,s,s],this.decorate(c,!1),yield c}}}const fy="\uFEFF",hy="",my="",ld="";function yS(a){switch(a){case fy:return"byte-order-mark";case hy:return"doc-mode";case my:return"flow-error-end";case ld:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
+ `:case`\r
116
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(a[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function sn(a){switch(a){case void 0:case" ":case`
117
+ `:case"\r":case" ":return!0;default:return!1}}const Wp=new Set("0123456789ABCDEFabcdef"),vS=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),zr=new Set(",[]{}"),bS=new Set(` ,[]{}
118
+ \r `),Vu=a=>!a||bS.has(a);class xS{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(i,s=!1){if(i){if(typeof i!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+i:i,this.lineEndPos=null}this.atEnd=!s;let r=this.next??"stream";for(;r&&(s||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let i=this.pos,s=this.buffer[i];for(;s===" "||s===" ";)s=this.buffer[++i];return!s||s==="#"||s===`
119
+ `?!0:s==="\r"?this.buffer[i+1]===`
120
+ `:!1}charAt(i){return this.buffer[this.pos+i]}continueScalar(i){let s=this.buffer[i];if(this.indentNext>0){let r=0;for(;s===" ";)s=this.buffer[++r+i];if(s==="\r"){const c=this.buffer[r+i+1];if(c===`
121
+ `||!c&&!this.atEnd)return i+r+1}return s===`
122
+ `||r>=this.indentNext||!s&&!this.atEnd?i+r:-1}if(s==="-"||s==="."){const r=this.buffer.substr(i,3);if((r==="---"||r==="...")&&sn(this.buffer[i+3]))return-1}return i}getLine(){let i=this.lineEndPos;return(typeof i!="number"||i!==-1&&i<this.pos)&&(i=this.buffer.indexOf(`
123
+ `,this.pos),this.lineEndPos=i),i===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[i-1]==="\r"&&(i-=1),this.buffer.substring(this.pos,i))}hasChars(i){return this.pos+i<=this.buffer.length}setNext(i){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=i,null}peek(i){return this.buffer.substr(this.pos,i)}*parseNext(i){switch(i){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let i=this.getLine();if(i===null)return this.setNext("stream");if(i[0]===fy&&(yield*this.pushCount(1),i=i.substring(1)),i[0]==="%"){let s=i.length,r=i.indexOf("#");for(;r!==-1;){const d=i[r-1];if(d===" "||d===" "){s=r-1;break}else r=i.indexOf("#",r+1)}for(;;){const d=i[s-1];if(d===" "||d===" ")s-=1;else break}const c=(yield*this.pushCount(s))+(yield*this.pushSpaces(!0));return yield*this.pushCount(i.length-c),this.pushNewline(),"stream"}if(this.atLineEnd()){const s=yield*this.pushSpaces(!0);return yield*this.pushCount(i.length-s),yield*this.pushNewline(),"stream"}return yield hy,yield*this.parseLineStart()}*parseLineStart(){const i=this.charAt(0);if(!i&&!this.atEnd)return this.setNext("line-start");if(i==="-"||i==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const s=this.peek(3);if((s==="---"||s==="...")&&sn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,s==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!sn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[i,s]=this.peek(2);if(!s&&!this.atEnd)return this.setNext("block-start");if((i==="-"||i==="?"||i===":")&&sn(s)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const i=this.getLine();if(i===null)return this.setNext("doc");let s=yield*this.pushIndicators();switch(i[s]){case"#":yield*this.pushCount(i.length-s);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Vu),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return s+=yield*this.parseBlockScalarHeader(),s+=yield*this.pushSpaces(!0),yield*this.pushCount(i.length-s),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let i,s,r=-1;do i=yield*this.pushNewline(),i>0?(s=yield*this.pushSpaces(!1),this.indentValue=r=s):s=0,s+=yield*this.pushSpaces(!0);while(i+s>0);const c=this.getLine();if(c===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&c[0]!=="#"||r===0&&(c.startsWith("---")||c.startsWith("..."))&&sn(c[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(c[0]==="]"||c[0]==="}")))return this.flowLevel=0,yield my,yield*this.parseLineStart();let d=0;for(;c[d]===",";)d+=yield*this.pushCount(1),d+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(d+=yield*this.pushIndicators(),c[d]){case void 0:return"flow";case"#":return yield*this.pushCount(c.length-d),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Vu),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||sn(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const i=this.charAt(0);let s=this.buffer.indexOf(i,this.pos+1);if(i==="'")for(;s!==-1&&this.buffer[s+1]==="'";)s=this.buffer.indexOf("'",s+2);else for(;s!==-1;){let d=0;for(;this.buffer[s-1-d]==="\\";)d+=1;if(d%2===0)break;s=this.buffer.indexOf('"',s+1)}const r=this.buffer.substring(0,s);let c=r.indexOf(`
124
+ `,this.pos);if(c!==-1){for(;c!==-1;){const d=this.continueScalar(c+1);if(d===-1)break;c=r.indexOf(`
125
+ `,d)}c!==-1&&(s=c-(r[c-1]==="\r"?2:1))}if(s===-1){if(!this.atEnd)return this.setNext("quoted-scalar");s=this.buffer.length}return yield*this.pushToIndex(s+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let i=this.pos;for(;;){const s=this.buffer[++i];if(s==="+")this.blockScalarKeep=!0;else if(s>"0"&&s<="9")this.blockScalarIndent=Number(s)-1;else if(s!=="-")break}return yield*this.pushUntil(s=>sn(s)||s==="#")}*parseBlockScalar(){let i=this.pos-1,s=0,r;e:for(let d=this.pos;r=this.buffer[d];++d)switch(r){case" ":s+=1;break;case`
126
+ `:i=d,s=0;break;case"\r":{const h=this.buffer[d+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
127
+ `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(s>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=s:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const d=this.continueScalar(i+1);if(d===-1)break;i=this.buffer.indexOf(`
128
+ `,d)}while(i!==-1);if(i===-1){if(!this.atEnd)return this.setNext("block-scalar");i=this.buffer.length}}let c=i+1;for(r=this.buffer[c];r===" ";)r=this.buffer[++c];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
129
+ `;)r=this.buffer[++c];i=c-1}else if(!this.blockScalarKeep)do{let d=i-1,h=this.buffer[d];h==="\r"&&(h=this.buffer[--d]);const m=d;for(;h===" ";)h=this.buffer[--d];if(h===`
130
+ `&&d>=this.pos&&d+1+s>m)i=d;else break}while(!0);return yield ld,yield*this.pushToIndex(i+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const i=this.flowLevel>0;let s=this.pos-1,r=this.pos-1,c;for(;c=this.buffer[++r];)if(c===":"){const d=this.buffer[r+1];if(sn(d)||i&&zr.has(d))break;s=r}else if(sn(c)){let d=this.buffer[r+1];if(c==="\r"&&(d===`
131
+ `?(r+=1,c=`
132
+ `,d=this.buffer[r+1]):s=r),d==="#"||i&&zr.has(d))break;if(c===`
133
+ `){const h=this.continueScalar(r+1);if(h===-1)break;r=Math.max(r,h-2)}}else{if(i&&zr.has(c))break;s=r}return!c&&!this.atEnd?this.setNext("plain-scalar"):(yield ld,yield*this.pushToIndex(s+1,!0),i?"flow":"doc")}*pushCount(i){return i>0?(yield this.buffer.substr(this.pos,i),this.pos+=i,i):0}*pushToIndex(i,s){const r=this.buffer.slice(this.pos,i);return r?(yield r,this.pos+=r.length,r.length):(s&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Vu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const i=this.flowLevel>0,s=this.charAt(1);if(sn(s)||i&&zr.has(s))return i?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let i=this.pos+2,s=this.buffer[i];for(;!sn(s)&&s!==">";)s=this.buffer[++i];return yield*this.pushToIndex(s===">"?i+1:i,!1)}else{let i=this.pos+1,s=this.buffer[i];for(;s;)if(vS.has(s))s=this.buffer[++i];else if(s==="%"&&Wp.has(this.buffer[i+1])&&Wp.has(this.buffer[i+2]))s=this.buffer[i+=3];else break;return yield*this.pushToIndex(i,!1)}}*pushNewline(){const i=this.buffer[this.pos];return i===`
134
+ `?yield*this.pushCount(1):i==="\r"&&this.charAt(1)===`
135
+ `?yield*this.pushCount(2):0}*pushSpaces(i){let s=this.pos-1,r;do r=this.buffer[++s];while(r===" "||i&&r===" ");const c=s-this.pos;return c>0&&(yield this.buffer.substr(this.pos,c),this.pos=s),c}*pushUntil(i){let s=this.pos,r=this.buffer[s];for(;!i(r);)r=this.buffer[++s];return yield*this.pushToIndex(s,!1)}}class SS{constructor(){this.lineStarts=[],this.addNewLine=i=>this.lineStarts.push(i),this.linePos=i=>{let s=0,r=this.lineStarts.length;for(;s<r;){const d=s+r>>1;this.lineStarts[d]<i?s=d+1:r=d}if(this.lineStarts[s]===i)return{line:s+1,col:1};if(s===0)return{line:0,col:i};const c=this.lineStarts[s-1];return{line:s,col:i-c+1}}}}function pa(a,i){for(let s=0;s<a.length;++s)if(a[s].type===i)return!0;return!1}function eg(a){for(let i=0;i<a.length;++i)switch(a[i].type){case"space":case"comment":case"newline":break;default:return i}return-1}function py(a){switch(a?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Dr(a){switch(a.type){case"document":return a.start;case"block-map":{const i=a.items[a.items.length-1];return i.sep??i.start}case"block-seq":return a.items[a.items.length-1].start;default:return[]}}function Di(a){if(a.length===0)return[];let i=a.length;e:for(;--i>=0;)switch(a[i].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;a[++i]?.type==="space";);return a.splice(i,a.length)}function tg(a){if(a.start.type==="flow-seq-start")for(const i of a.items)i.sep&&!i.value&&!pa(i.start,"explicit-key-ind")&&!pa(i.sep,"map-value-ind")&&(i.key&&(i.value=i.key),delete i.key,py(i.value)?i.value.end?Array.prototype.push.apply(i.value.end,i.sep):i.value.end=i.sep:Array.prototype.push.apply(i.start,i.sep),delete i.sep)}class jS{constructor(i){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new xS,this.onNewLine=i}*parse(i,s=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(i,s))yield*this.next(r);s||(yield*this.end())}*next(i){if(this.source=i,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=i.length;return}const s=yS(i);if(s)if(s==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=s,yield*this.step(),s){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+i.length);break;case"space":this.atNewLine&&i[0]===" "&&(this.indent+=i.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=i.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=i.length}else{const r=`Not a YAML token: ${i}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:i}),this.offset+=i.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const i=this.peek(1);if(this.type==="doc-end"&&i?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!i)return yield*this.stream();switch(i.type){case"document":return yield*this.document(i);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(i);case"block-scalar":return yield*this.blockScalar(i);case"block-map":return yield*this.blockMap(i);case"block-seq":return yield*this.blockSequence(i);case"flow-collection":return yield*this.flowCollection(i);case"doc-end":return yield*this.documentEnd(i)}yield*this.pop()}peek(i){return this.stack[this.stack.length-i]}*pop(i){const s=i??this.stack.pop();if(!s)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield s;else{const r=this.peek(1);switch(s.type==="block-scalar"?s.indent="indent"in r?r.indent:0:s.type==="flow-collection"&&r.type==="document"&&(s.indent=0),s.type==="flow-collection"&&tg(s),r.type){case"document":r.value=s;break;case"block-scalar":r.props.push(s);break;case"block-map":{const c=r.items[r.items.length-1];if(c.value){r.items.push({start:[],key:s,sep:[]}),this.onKeyLine=!0;return}else if(c.sep)c.value=s;else{Object.assign(c,{key:s,sep:[]}),this.onKeyLine=!c.explicitKey;return}break}case"block-seq":{const c=r.items[r.items.length-1];c.value?r.items.push({start:[],value:s}):c.value=s;break}case"flow-collection":{const c=r.items[r.items.length-1];!c||c.value?r.items.push({start:[],key:s,sep:[]}):c.sep?c.value=s:Object.assign(c,{key:s,sep:[]});return}default:yield*this.pop(),yield*this.pop(s)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(s.type==="block-map"||s.type==="block-seq")){const c=s.items[s.items.length-1];c&&!c.sep&&!c.value&&c.start.length>0&&eg(c.start)===-1&&(s.indent===0||c.start.every(d=>d.type!=="comment"||d.indent<s.indent))&&(r.type==="document"?r.end=c.start:r.items.push({start:c.start}),s.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const i={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&i.start.push(this.sourceToken),this.stack.push(i);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(i){if(i.value)return yield*this.lineEnd(i);switch(this.type){case"doc-start":{eg(i.start)!==-1?(yield*this.pop(),yield*this.step()):i.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":i.start.push(this.sourceToken);return}const s=this.startBlockValue(i);s?this.stack.push(s):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(i){if(this.type==="map-value-ind"){const s=Dr(this.peek(2)),r=Di(s);let c;i.end?(c=i.end,c.push(this.sourceToken),delete i.end):c=[this.sourceToken];const d={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:r,key:i,sep:c}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=d}else yield*this.lineEnd(i)}*blockScalar(i){switch(this.type){case"space":case"comment":case"newline":i.props.push(this.sourceToken);return;case"scalar":if(i.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let s=this.source.indexOf(`
136
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
137
+ `,s)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(i){const s=i.items[i.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,s.value){const r="end"in s.value?s.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):i.items.push({start:[this.sourceToken]})}else s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)i.items.push({start:[this.sourceToken]});else if(s.sep)s.sep.push(this.sourceToken);else{if(this.atIndentedComment(s.start,i.indent)){const c=i.items[i.items.length-2]?.value?.end;if(Array.isArray(c)){Array.prototype.push.apply(c,s.start),c.push(this.sourceToken),i.items.pop();return}}s.start.push(this.sourceToken)}return}if(this.indent>=i.indent){const r=!this.onKeyLine&&this.indent===i.indent,c=r&&(s.sep||s.explicitKey)&&this.type!=="seq-item-ind";let d=[];if(c&&s.sep&&!s.value){const h=[];for(let m=0;m<s.sep.length;++m){const y=s.sep[m];switch(y.type){case"newline":h.push(m);break;case"space":break;case"comment":y.indent>i.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(d=s.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":c||s.value?(d.push(this.sourceToken),i.items.push({start:d}),this.onKeyLine=!0):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"explicit-key-ind":!s.sep&&!s.explicitKey?(s.start.push(this.sourceToken),s.explicitKey=!0):c||s.value?(d.push(this.sourceToken),i.items.push({start:d,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(s.explicitKey)if(s.sep)if(s.value)i.items.push({start:[],key:null,sep:[this.sourceToken]});else if(pa(s.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:null,sep:[this.sourceToken]}]});else if(py(s.key)&&!pa(s.sep,"newline")){const h=Di(s.start),m=s.key,y=s.sep;y.push(this.sourceToken),delete s.key,delete s.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:m,sep:y}]})}else d.length>0?s.sep=s.sep.concat(d,this.sourceToken):s.sep.push(this.sourceToken);else if(pa(s.start,"newline"))Object.assign(s,{key:null,sep:[this.sourceToken]});else{const h=Di(s.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else s.sep?s.value||c?i.items.push({start:d,key:null,sep:[this.sourceToken]}):pa(s.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const h=this.flowScalar(this.type);c||s.value?(i.items.push({start:d,key:h,sep:[]}),this.onKeyLine=!0):s.sep?this.stack.push(h):(Object.assign(s,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{const h=this.startBlockValue(i);if(h){if(h.type==="block-seq"){if(!s.explicitKey&&s.sep&&!pa(s.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&i.items.push({start:d});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(i){const s=i.items[i.items.length-1];switch(this.type){case"newline":if(s.value){const r="end"in s.value?s.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):i.items.push({start:[this.sourceToken]})}else s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)i.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(s.start,i.indent)){const c=i.items[i.items.length-2]?.value?.end;if(Array.isArray(c)){Array.prototype.push.apply(c,s.start),c.push(this.sourceToken),i.items.pop();return}}s.start.push(this.sourceToken)}return;case"anchor":case"tag":if(s.value||this.indent<=i.indent)break;s.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==i.indent)break;s.value||pa(s.start,"seq-item-ind")?i.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return}if(this.indent>i.indent){const r=this.startBlockValue(i);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(i){const s=i.items[i.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(i.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!s||s.sep?i.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return;case"map-value-ind":!s||s.value?i.items.push({start:[],key:null,sep:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!s||s.value?i.items.push({start:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const c=this.flowScalar(this.type);!s||s.value?i.items.push({start:[],key:c,sep:[]}):s.sep?this.stack.push(c):Object.assign(s,{key:c,sep:[]});return}case"flow-map-end":case"flow-seq-end":i.end.push(this.sourceToken);return}const r=this.startBlockValue(i);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===i.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const c=Dr(r),d=Di(c);tg(i);const h=i.end.splice(1,i.end.length);h.push(this.sourceToken);const m={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:d,key:i,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(i)}}flowScalar(i){if(this.onNewLine){let s=this.source.indexOf(`
138
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
139
+ `,s)+1}return{type:i,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(i){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const s=Dr(i),r=Di(s);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const s=Dr(i),r=Di(s);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(i,s){return this.type!=="comment"||this.indent<=s?!1:i.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(i){this.type!=="doc-mode"&&(i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(i){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function wS(a){const i=a.prettyErrors!==!1;return{lineCounter:a.lineCounter||i&&new SS||null,prettyErrors:i}}function NS(a,i={}){const{lineCounter:s,prettyErrors:r}=wS(i),c=new jS(s?.addNewLine),d=new gS(i),h=Array.from(d.compose(c.parse(a)));if(r&&s)for(const m of h)m.errors.forEach(Jp(a,s)),m.warnings.forEach(Jp(a,s));return h.length>0?h:Object.assign([],{empty:!0},d.streamInfo())}const ES=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),AS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,r)=>r?r.toUpperCase():s.toLowerCase()),ng=a=>{const i=AS(a);return i.charAt(0).toUpperCase()+i.slice(1)},gy=(...a)=>a.filter((i,s,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===s).join(" ").trim(),CS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};var kS={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"};const TS=w.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:d,iconNode:h,...m},y)=>w.createElement("svg",{ref:y,...kS,width:i,height:i,stroke:a,strokeWidth:r?Number(s)*24/Number(i):s,className:gy("lucide",c),...!d&&!CS(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,j])=>w.createElement(g,j)),...Array.isArray(d)?d:[d]]));const cn=(a,i)=>{const s=w.forwardRef(({className:r,...c},d)=>w.createElement(TS,{ref:d,iconNode:i,className:gy(`lucide-${ES(ng(a))}`,`lucide-${a}`,r),...c}));return s.displayName=ng(a),s};const OS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fc=cn("chevron-right",OS);const _S=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],zS=cn("download",_S);const DS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],MS=cn("globe",DS);const RS=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],LS=cn("layout-dashboard",RS);const US=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],BS=cn("menu",US);const HS=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],qS=cn("play",HS);const YS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ag=cn("plus",YS);const KS=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],GS=cn("rocket",KS);const $S=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],VS=cn("settings",$S);const QS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],XS=cn("trash-2",QS);const ZS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yy=cn("x",ZS);function vy(a){var i,s,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(i=0;i<c;i++)a[i]&&(s=vy(a[i]))&&(r&&(r+=" "),r+=s)}else for(s in a)a[s]&&(r&&(r+=" "),r+=s);return r}function by(){for(var a,i,s=0,r="",c=arguments.length;s<c;s++)(a=arguments[s])&&(i=vy(a))&&(r&&(r+=" "),r+=i);return r}const ig=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,sg=by,xy=(a,i)=>s=>{var r;if(i?.variants==null)return sg(a,s?.class,s?.className);const{variants:c,defaultVariants:d}=i,h=Object.keys(c).map(g=>{const j=s?.[g],b=d?.[g];if(j===null)return null;const x=ig(j)||ig(b);return c[g][x]}),m=s&&Object.entries(s).reduce((g,j)=>{let[b,x]=j;return x===void 0||(g[b]=x),g},{}),y=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((g,j)=>{let{class:b,className:x,...k}=j;return Object.entries(k).every(T=>{let[S,N]=T;return Array.isArray(N)?N.includes({...d,...m}[S]):{...d,...m}[S]===N})?[...g,b,x]:g},[]);return sg(a,h,y,s?.class,s?.className)},IS=(a,i)=>{const s=new Array(a.length+i.length);for(let r=0;r<a.length;r++)s[r]=a[r];for(let r=0;r<i.length;r++)s[a.length+r]=i[r];return s},JS=(a,i)=>({classGroupId:a,validator:i}),Sy=(a=new Map,i=null,s)=>({nextPart:a,validators:i,classGroupId:s}),Ir="-",lg=[],FS="arbitrary..",PS=a=>{const i=e1(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return WS(h);const m=h.split(Ir),y=m[0]===""&&m.length>1?1:0;return jy(m,y,i)},getConflictingClassGroupIds:(h,m)=>{if(m){const y=r[h],g=s[h];return y?g?IS(g,y):y:g||lg}return s[h]||lg}}},jy=(a,i,s)=>{if(a.length-i===0)return s.classGroupId;const c=a[i],d=s.nextPart.get(c);if(d){const g=jy(a,i+1,d);if(g)return g}const h=s.validators;if(h===null)return;const m=i===0?a.join(Ir):a.slice(i).join(Ir),y=h.length;for(let g=0;g<y;g++){const j=h[g];if(j.validator(m))return j.classGroupId}},WS=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),s=i.indexOf(":"),r=i.slice(0,s);return r?FS+r:void 0})(),e1=a=>{const{theme:i,classGroups:s}=a;return t1(s,i)},t1=(a,i)=>{const s=Sy();for(const r in a){const c=a[r];Td(c,s,r,i)}return s},Td=(a,i,s,r)=>{const c=a.length;for(let d=0;d<c;d++){const h=a[d];n1(h,i,s,r)}},n1=(a,i,s,r)=>{if(typeof a=="string"){a1(a,i,s);return}if(typeof a=="function"){i1(a,i,s,r);return}s1(a,i,s,r)},a1=(a,i,s)=>{const r=a===""?i:wy(i,a);r.classGroupId=s},i1=(a,i,s,r)=>{if(l1(a)){Td(a(r),i,s,r);return}i.validators===null&&(i.validators=[]),i.validators.push(JS(s,a))},s1=(a,i,s,r)=>{const c=Object.entries(a),d=c.length;for(let h=0;h<d;h++){const[m,y]=c[h];Td(y,wy(i,m),s,r)}},wy=(a,i)=>{let s=a;const r=i.split(Ir),c=r.length;for(let d=0;d<c;d++){const h=r[d];let m=s.nextPart.get(h);m||(m=Sy(),s.nextPart.set(h,m)),s=m}return s},l1=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,r1=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),r=Object.create(null);const c=(d,h)=>{s[d]=h,i++,i>a&&(i=0,r=s,s=Object.create(null))};return{get(d){let h=s[d];if(h!==void 0)return h;if((h=r[d])!==void 0)return c(d,h),h},set(d,h){d in s?s[d]=h:c(d,h)}}},rd="!",rg=":",c1=[],cg=(a,i,s,r,c)=>({modifiers:a,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:r,isExternal:c}),o1=a=>{const{prefix:i,experimentalParseClassName:s}=a;let r=c=>{const d=[];let h=0,m=0,y=0,g;const j=c.length;for(let S=0;S<j;S++){const N=c[S];if(h===0&&m===0){if(N===rg){d.push(c.slice(y,S)),y=S+1;continue}if(N==="/"){g=S;continue}}N==="["?h++:N==="]"?h--:N==="("?m++:N===")"&&m--}const b=d.length===0?c:c.slice(y);let x=b,k=!1;b.endsWith(rd)?(x=b.slice(0,-1),k=!0):b.startsWith(rd)&&(x=b.slice(1),k=!0);const T=g&&g>y?g-y:void 0;return cg(d,k,x,T)};if(i){const c=i+rg,d=r;r=h=>h.startsWith(c)?d(h.slice(c.length)):cg(c1,!1,h,void 0,!0)}if(s){const c=r;r=d=>s({className:d,parseClassName:c})}return r},u1=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((s,r)=>{i.set(s,1e6+r)}),s=>{const r=[];let c=[];for(let d=0;d<s.length;d++){const h=s[d],m=h[0]==="[",y=i.has(h);m||y?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(h)):c.push(h)}return c.length>0&&(c.sort(),r.push(...c)),r}},d1=a=>({cache:r1(a.cacheSize),parseClassName:o1(a),sortModifiers:u1(a),...PS(a)}),f1=/\s+/,h1=(a,i)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:d}=i,h=[],m=a.trim().split(f1);let y="";for(let g=m.length-1;g>=0;g-=1){const j=m[g],{isExternal:b,modifiers:x,hasImportantModifier:k,baseClassName:T,maybePostfixModifierPosition:S}=s(j);if(b){y=j+(y.length>0?" "+y:y);continue}let N=!!S,H=r(N?T.substring(0,S):T);if(!H){if(!N){y=j+(y.length>0?" "+y:y);continue}if(H=r(T),!H){y=j+(y.length>0?" "+y:y);continue}N=!1}const G=x.length===0?"":x.length===1?x[0]:d(x).join(":"),M=k?G+rd:G,U=M+H;if(h.indexOf(U)>-1)continue;h.push(U);const Y=c(H,N);for(let X=0;X<Y.length;++X){const Z=Y[X];h.push(M+Z)}y=j+(y.length>0?" "+y:y)}return y},m1=(...a)=>{let i=0,s,r,c="";for(;i<a.length;)(s=a[i++])&&(r=Ny(s))&&(c&&(c+=" "),c+=r);return c},Ny=a=>{if(typeof a=="string")return a;let i,s="";for(let r=0;r<a.length;r++)a[r]&&(i=Ny(a[r]))&&(s&&(s+=" "),s+=i);return s},p1=(a,...i)=>{let s,r,c,d;const h=y=>{const g=i.reduce((j,b)=>b(j),a());return s=d1(g),r=s.cache.get,c=s.cache.set,d=m,m(y)},m=y=>{const g=r(y);if(g)return g;const j=h1(y,s);return c(y,j),j};return d=h,(...y)=>d(m1(...y))},g1=[],it=a=>{const i=s=>s[a]||g1;return i.isThemeGetter=!0,i},Ey=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ay=/^\((?:(\w[\w-]*):)?(.+)\)$/i,y1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,v1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b1=/\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$/,x1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fa=a=>y1.test(a),xe=a=>!!a&&!Number.isNaN(Number(a)),ha=a=>!!a&&Number.isInteger(Number(a)),Qu=a=>a.endsWith("%")&&xe(a.slice(0,-1)),Un=a=>v1.test(a),Cy=()=>!0,w1=a=>b1.test(a)&&!x1.test(a),Od=()=>!1,N1=a=>S1.test(a),E1=a=>j1.test(a),A1=a=>!ie(a)&&!le(a),C1=a=>va(a,Oy,Od),ie=a=>Ey.test(a),Ua=a=>va(a,_y,w1),og=a=>va(a,R1,xe),k1=a=>va(a,Dy,Cy),T1=a=>va(a,zy,Od),ug=a=>va(a,ky,Od),O1=a=>va(a,Ty,E1),Mr=a=>va(a,My,N1),le=a=>Ay.test(a),Is=a=>$a(a,_y),_1=a=>$a(a,zy),dg=a=>$a(a,ky),z1=a=>$a(a,Oy),D1=a=>$a(a,Ty),Rr=a=>$a(a,My,!0),M1=a=>$a(a,Dy,!0),va=(a,i,s)=>{const r=Ey.exec(a);return r?r[1]?i(r[1]):s(r[2]):!1},$a=(a,i,s=!1)=>{const r=Ay.exec(a);return r?r[1]?i(r[1]):s:!1},ky=a=>a==="position"||a==="percentage",Ty=a=>a==="image"||a==="url",Oy=a=>a==="length"||a==="size"||a==="bg-size",_y=a=>a==="length",R1=a=>a==="number",zy=a=>a==="family-name",Dy=a=>a==="number"||a==="weight",My=a=>a==="shadow",L1=()=>{const a=it("color"),i=it("font"),s=it("text"),r=it("font-weight"),c=it("tracking"),d=it("leading"),h=it("breakpoint"),m=it("container"),y=it("spacing"),g=it("radius"),j=it("shadow"),b=it("inset-shadow"),x=it("text-shadow"),k=it("drop-shadow"),T=it("blur"),S=it("perspective"),N=it("aspect"),H=it("ease"),G=it("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...U(),le,ie],X=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],_=()=>[le,ie,y],P=()=>[fa,"full","auto",..._()],Se=()=>[ha,"none","subgrid",le,ie],W=()=>["auto",{span:["full",ha,le,ie]},ha,le,ie],se=()=>[ha,"auto",le,ie],Ke=()=>["auto","min","max","fr",le,ie],Ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",..._()],J=()=>[fa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],oe=()=>[fa,"screen","full","dvw","lvw","svw","min","max","fit",..._()],ve=()=>[fa,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],I=()=>[a,le,ie],A=()=>[...U(),dg,ug,{position:[le,ie]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",z1,C1,{size:[le,ie]}],z=()=>[Qu,Is,Ua],F=()=>["","none","full",g,le,ie],ne=()=>["",xe,Is,Ua],he=()=>["solid","dashed","dotted","double"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[xe,Qu,dg,ug],Pt=()=>["","none",T,le,ie],Rt=()=>["none",xe,le,ie],Wt=()=>["none",xe,le,ie],gn=()=>[xe,le,ie],yt=()=>[fa,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Un],breakpoint:[Un],color:[Cy],container:[Un],"drop-shadow":[Un],ease:["in","out","in-out"],font:[A1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Un],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Un],shadow:[Un],spacing:["px",xe],text:[Un],"text-shadow":[Un],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fa,ie,le,N]}],container:["container"],columns:[{columns:[xe,ie,le,m]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[ha,"auto",le,ie]}],basis:[{basis:[fa,"full","auto",m,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,fa,"auto","initial","none",ie]}],grow:[{grow:["",xe,le,ie]}],shrink:[{shrink:["",xe,le,ie]}],order:[{order:[ha,"first","last","none",le,ie]}],"grid-cols":[{"grid-cols":Se()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":Se()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ke()}],"auto-rows":[{"auto-rows":Ke()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...Ge(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...Ge()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ge()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",s,Is,Ua]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,M1,k1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qu,ie]}],"font-family":[{font:[_1,T1,i]}],"font-features":[{"font-features":[ie]}],"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:[c,le,ie]}],"line-clamp":[{"line-clamp":[xe,"none",le,og]}],leading:[{leading:[d,..._()]}],"list-image":[{"list-image":["none",le,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",le,Ua]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[xe,"auto",le,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ha,le,ie],radial:["",le,ie],conic:[ha,le,ie]},D1,O1]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,le,ie]}],"outline-w":[{outline:["",xe,Is,Ua]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",j,Rr,Mr]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",b,Rr,Mr]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[xe,Ua]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",x,Rr,Mr]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[xe,le,ie]}],"mix-blend":[{"mix-blend":[...He(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":He()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[le,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",le,ie]}],filter:[{filter:["","none",le,ie]}],blur:[{blur:Pt()}],brightness:[{brightness:[xe,le,ie]}],contrast:[{contrast:[xe,le,ie]}],"drop-shadow":[{"drop-shadow":["","none",k,Rr,Mr]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",xe,le,ie]}],"hue-rotate":[{"hue-rotate":[xe,le,ie]}],invert:[{invert:["",xe,le,ie]}],saturate:[{saturate:[xe,le,ie]}],sepia:[{sepia:["",xe,le,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ie]}],"backdrop-blur":[{"backdrop-blur":Pt()}],"backdrop-brightness":[{"backdrop-brightness":[xe,le,ie]}],"backdrop-contrast":[{"backdrop-contrast":[xe,le,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,le,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,le,ie]}],"backdrop-invert":[{"backdrop-invert":["",xe,le,ie]}],"backdrop-opacity":[{"backdrop-opacity":[xe,le,ie]}],"backdrop-saturate":[{"backdrop-saturate":[xe,le,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,le,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",le,ie]}],ease:[{ease:["linear","initial",H,le,ie]}],delay:[{delay:[xe,le,ie]}],animate:[{animate:["none",G,le,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,le,ie]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:Rt()}],"rotate-x":[{"rotate-x":Rt()}],"rotate-y":[{"rotate-y":Rt()}],"rotate-z":[{"rotate-z":Rt()}],scale:[{scale:Wt()}],"scale-x":[{"scale-x":Wt()}],"scale-y":[{"scale-y":Wt()}],"scale-z":[{"scale-z":Wt()}],"scale-3d":["scale-3d"],skew:[{skew:gn()}],"skew-x":[{"skew-x":gn()}],"skew-y":[{"skew-y":gn()}],transform:[{transform:[le,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",le,ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",le,ie]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[xe,Is,Ua,og]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},U1=p1(L1);function Ft(...a){return U1(by(a))}const B1=xy("inline-flex items-center rounded-md border px-2 py-0.5 text-[11px] font-medium tracking-wide",{variants:{variant:{neutral:"border-zinc-800 bg-zinc-950 text-zinc-300",success:"border-emerald-500/25 bg-emerald-500/10 text-emerald-300",warning:"border-amber-500/25 bg-amber-500/10 text-amber-300",destructive:"border-rose-500/25 bg-rose-500/10 text-rose-300"}},defaultVariants:{variant:"neutral"}});function Ry({className:a,variant:i,...s}){return u.jsx("div",{className:Ft(B1({variant:i}),a),...s})}function fg(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function _d(...a){return i=>{let s=!1;const r=a.map(c=>{const d=fg(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<r.length;c++){const d=r[c];typeof d=="function"?d():fg(a[c],null)}}}}function Va(...a){return w.useCallback(_d(...a),a)}var H1=Symbol.for("react.lazy"),Jr=hd[" use ".trim().toString()];function q1(a){return typeof a=="object"&&a!==null&&"then"in a}function Ly(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===H1&&"_payload"in a&&q1(a._payload)}function Y1(a){const i=G1(a),s=w.forwardRef((r,c)=>{let{children:d,...h}=r;Ly(d)&&typeof Jr=="function"&&(d=Jr(d._payload));const m=w.Children.toArray(d),y=m.find(V1);if(y){const g=y.props.children,j=m.map(b=>b===y?w.Children.count(g)>1?w.Children.only(null):w.isValidElement(g)?g.props.children:null:b);return u.jsx(i,{...h,ref:c,children:w.isValidElement(g)?w.cloneElement(g,void 0,j):null})}return u.jsx(i,{...h,ref:c,children:d})});return s.displayName=`${a}.Slot`,s}var K1=Y1("Slot");function G1(a){const i=w.forwardRef((s,r)=>{let{children:c,...d}=s;if(Ly(c)&&typeof Jr=="function"&&(c=Jr(c._payload)),w.isValidElement(c)){const h=X1(c),m=Q1(d,c.props);return c.type!==w.Fragment&&(m.ref=r?_d(r,h):h),w.cloneElement(c,m)}return w.Children.count(c)>1?w.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var $1=Symbol("radix.slottable");function V1(a){return w.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===$1}function Q1(a,i){const s={...i};for(const r in i){const c=a[r],d=i[r];/^on[A-Z]/.test(r)?c&&d?s[r]=(...m)=>{const y=d(...m);return c(...m),y}:c&&(s[r]=c):r==="style"?s[r]={...c,...d}:r==="className"&&(s[r]=[c,d].filter(Boolean).join(" "))}return{...a,...s}}function X1(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}const Z1=xy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 focus-visible:ring-offset-black disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-zinc-50 text-black hover:bg-zinc-200",secondary:"border border-zinc-800 bg-zinc-950 text-zinc-100 hover:bg-zinc-900",ghost:"text-zinc-400 hover:bg-zinc-900 hover:text-zinc-50",outline:"border border-zinc-800 bg-transparent text-zinc-100 hover:bg-zinc-900",destructive:"bg-rose-600 text-white hover:bg-rose-700"},size:{default:"h-9 px-4",sm:"h-8 px-3 text-xs",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),de=w.forwardRef(({className:a,variant:i,size:s,asChild:r=!1,...c},d)=>{const h=r?K1:"button";return u.jsx(h,{ref:d,className:Ft(Z1({variant:i,size:s,className:a})),...c})});de.displayName="Button";const Ie=w.forwardRef(({className:a,...i},s)=>u.jsx("div",{ref:s,className:Ft("rounded-xl border border-zinc-800 bg-zinc-950/75 shadow-[0_0_0_1px_rgba(255,255,255,0.01)] backdrop-blur",a),...i}));Ie.displayName="Card";const I1=w.forwardRef(({className:a,...i},s)=>u.jsx("div",{ref:s,className:Ft("flex flex-col gap-1.5 p-5",a),...i}));I1.displayName="CardHeader";const J1=w.forwardRef(({className:a,...i},s)=>u.jsx("h3",{ref:s,className:Ft("font-medium tracking-tight text-zinc-50",a),...i}));J1.displayName="CardTitle";const F1=w.forwardRef(({className:a,...i},s)=>u.jsx("p",{ref:s,className:Ft("text-sm text-zinc-500",a),...i}));F1.displayName="CardDescription";const P1=w.forwardRef(({className:a,...i},s)=>u.jsx("div",{ref:s,className:Ft("p-5 pt-0",a),...i}));P1.displayName="CardContent";function ya(a,i,{checkForDefaultPrevented:s=!0}={}){return function(c){if(a?.(c),s===!1||!c.defaultPrevented)return i?.(c)}}function W1(a,i){const s=w.createContext(i),r=d=>{const{children:h,...m}=d,y=w.useMemo(()=>m,Object.values(m));return u.jsx(s.Provider,{value:y,children:h})};r.displayName=a+"Provider";function c(d){const h=w.useContext(s);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[r,c]}function ej(a,i=[]){let s=[];function r(d,h){const m=w.createContext(h),y=s.length;s=[...s,h];const g=b=>{const{scope:x,children:k,...T}=b,S=x?.[a]?.[y]||m,N=w.useMemo(()=>T,Object.values(T));return u.jsx(S.Provider,{value:N,children:k})};g.displayName=d+"Provider";function j(b,x){const k=x?.[a]?.[y]||m,T=w.useContext(k);if(T)return T;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[g,j]}const c=()=>{const d=s.map(h=>w.createContext(h));return function(m){const y=m?.[a]||d;return w.useMemo(()=>({[`__scope${a}`]:{...m,[a]:y}}),[m,y])}};return c.scopeName=a,[r,tj(c,...i)]}function tj(...a){const i=a[0];if(a.length===1)return i;const s=()=>{const r=a.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const h=r.reduce((m,{useScope:y,scopeName:g})=>{const b=y(d)[`__scope${g}`];return{...m,...b}},{});return w.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return s.scopeName=i.scopeName,s}var nl=globalThis?.document?w.useLayoutEffect:()=>{},nj=hd[" useId ".trim().toString()]||(()=>{}),aj=0;function Xu(a){const[i,s]=w.useState(nj());return nl(()=>{s(r=>r??String(aj++))},[a]),a||(i?`radix-${i}`:"")}var ij=hd[" useInsertionEffect ".trim().toString()]||nl;function sj({prop:a,defaultProp:i,onChange:s=()=>{},caller:r}){const[c,d,h]=lj({defaultProp:i,onChange:s}),m=a!==void 0,y=m?a:c;{const j=w.useRef(a!==void 0);w.useEffect(()=>{const b=j.current;b!==m&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${m?"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.`),j.current=m},[m,r])}const g=w.useCallback(j=>{if(m){const b=rj(j)?j(a):j;b!==a&&h.current?.(b)}else d(j)},[m,a,d,h]);return[y,g]}function lj({defaultProp:a,onChange:i}){const[s,r]=w.useState(a),c=w.useRef(s),d=w.useRef(i);return ij(()=>{d.current=i},[i]),w.useEffect(()=>{c.current!==s&&(d.current?.(s),c.current=s)},[s,c]),[s,r,d]}function rj(a){return typeof a=="function"}var Uy=Dg();const cj=zg(Uy);function By(a){const i=oj(a),s=w.forwardRef((r,c)=>{const{children:d,...h}=r,m=w.Children.toArray(d),y=m.find(dj);if(y){const g=y.props.children,j=m.map(b=>b===y?w.Children.count(g)>1?w.Children.only(null):w.isValidElement(g)?g.props.children:null:b);return u.jsx(i,{...h,ref:c,children:w.isValidElement(g)?w.cloneElement(g,void 0,j):null})}return u.jsx(i,{...h,ref:c,children:d})});return s.displayName=`${a}.Slot`,s}function oj(a){const i=w.forwardRef((s,r)=>{const{children:c,...d}=s;if(w.isValidElement(c)){const h=hj(c),m=fj(d,c.props);return c.type!==w.Fragment&&(m.ref=r?_d(r,h):h),w.cloneElement(c,m)}return w.Children.count(c)>1?w.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var uj=Symbol("radix.slottable");function dj(a){return w.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===uj}function fj(a,i){const s={...i};for(const r in i){const c=a[r],d=i[r];/^on[A-Z]/.test(r)?c&&d?s[r]=(...m)=>{const y=d(...m);return c(...m),y}:c&&(s[r]=c):r==="style"?s[r]={...c,...d}:r==="className"&&(s[r]=[c,d].filter(Boolean).join(" "))}return{...a,...s}}function hj(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}var mj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qn=mj.reduce((a,i)=>{const s=By(`Primitive.${i}`),r=w.forwardRef((c,d)=>{const{asChild:h,...m}=c,y=h?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(y,{...m,ref:d})});return r.displayName=`Primitive.${i}`,{...a,[i]:r}},{});function pj(a,i){a&&Uy.flushSync(()=>a.dispatchEvent(i))}function al(a){const i=w.useRef(a);return w.useEffect(()=>{i.current=a}),w.useMemo(()=>(...s)=>i.current?.(...s),[])}function gj(a,i=globalThis?.document){const s=al(a);w.useEffect(()=>{const r=c=>{c.key==="Escape"&&s(c)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[s,i])}var yj="DismissableLayer",cd="dismissableLayer.update",vj="dismissableLayer.pointerDownOutside",bj="dismissableLayer.focusOutside",hg,Hy=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qy=w.forwardRef((a,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:m,...y}=a,g=w.useContext(Hy),[j,b]=w.useState(null),x=j?.ownerDocument??globalThis?.document,[,k]=w.useState({}),T=Va(i,Z=>b(Z)),S=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),H=S.indexOf(N),G=j?S.indexOf(j):-1,M=g.layersWithOutsidePointerEventsDisabled.size>0,U=G>=H,Y=jj(Z=>{const _=Z.target,P=[...g.branches].some(Se=>Se.contains(_));!U||P||(c?.(Z),h?.(Z),Z.defaultPrevented||m?.())},x),X=wj(Z=>{const _=Z.target;[...g.branches].some(Se=>Se.contains(_))||(d?.(Z),h?.(Z),Z.defaultPrevented||m?.())},x);return gj(Z=>{G===g.layers.size-1&&(r?.(Z),!Z.defaultPrevented&&m&&(Z.preventDefault(),m()))},x),w.useEffect(()=>{if(j)return s&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(hg=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(j)),g.layers.add(j),mg(),()=>{s&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=hg)}},[j,x,s,g]),w.useEffect(()=>()=>{j&&(g.layers.delete(j),g.layersWithOutsidePointerEventsDisabled.delete(j),mg())},[j,g]),w.useEffect(()=>{const Z=()=>k({});return document.addEventListener(cd,Z),()=>document.removeEventListener(cd,Z)},[]),u.jsx(qn.div,{...y,ref:T,style:{pointerEvents:M?U?"auto":"none":void 0,...a.style},onFocusCapture:ya(a.onFocusCapture,X.onFocusCapture),onBlurCapture:ya(a.onBlurCapture,X.onBlurCapture),onPointerDownCapture:ya(a.onPointerDownCapture,Y.onPointerDownCapture)})});qy.displayName=yj;var xj="DismissableLayerBranch",Sj=w.forwardRef((a,i)=>{const s=w.useContext(Hy),r=w.useRef(null),c=Va(i,r);return w.useEffect(()=>{const d=r.current;if(d)return s.branches.add(d),()=>{s.branches.delete(d)}},[s.branches]),u.jsx(qn.div,{...a,ref:c})});Sj.displayName=xj;function jj(a,i=globalThis?.document){const s=al(a),r=w.useRef(!1),c=w.useRef(()=>{});return w.useEffect(()=>{const d=m=>{if(m.target&&!r.current){let y=function(){Yy(vj,s,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(i.removeEventListener("click",c.current),c.current=y,i.addEventListener("click",c.current,{once:!0})):y()}else i.removeEventListener("click",c.current);r.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",c.current)}},[i,s]),{onPointerDownCapture:()=>r.current=!0}}function wj(a,i=globalThis?.document){const s=al(a),r=w.useRef(!1);return w.useEffect(()=>{const c=d=>{d.target&&!r.current&&Yy(bj,s,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",c),()=>i.removeEventListener("focusin",c)},[i,s]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mg(){const a=new CustomEvent(cd);document.dispatchEvent(a)}function Yy(a,i,s,{discrete:r}){const c=s.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:s});i&&c.addEventListener(a,i,{once:!0}),r?pj(c,d):c.dispatchEvent(d)}var Zu="focusScope.autoFocusOnMount",Iu="focusScope.autoFocusOnUnmount",pg={bubbles:!1,cancelable:!0},Nj="FocusScope",Ky=w.forwardRef((a,i)=>{const{loop:s=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...h}=a,[m,y]=w.useState(null),g=al(c),j=al(d),b=w.useRef(null),x=Va(i,S=>y(S)),k=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let S=function(M){if(k.paused||!m)return;const U=M.target;m.contains(U)?b.current=U:ma(b.current,{select:!0})},N=function(M){if(k.paused||!m)return;const U=M.relatedTarget;U!==null&&(m.contains(U)||ma(b.current,{select:!0}))},H=function(M){if(document.activeElement===document.body)for(const Y of M)Y.removedNodes.length>0&&ma(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",N);const G=new MutationObserver(H);return m&&G.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",N),G.disconnect()}}},[r,m,k.paused]),w.useEffect(()=>{if(m){yg.add(k);const S=document.activeElement;if(!m.contains(S)){const H=new CustomEvent(Zu,pg);m.addEventListener(Zu,g),m.dispatchEvent(H),H.defaultPrevented||(Ej(Oj(Gy(m)),{select:!0}),document.activeElement===S&&ma(m))}return()=>{m.removeEventListener(Zu,g),setTimeout(()=>{const H=new CustomEvent(Iu,pg);m.addEventListener(Iu,j),m.dispatchEvent(H),H.defaultPrevented||ma(S??document.body,{select:!0}),m.removeEventListener(Iu,j),yg.remove(k)},0)}}},[m,g,j,k]);const T=w.useCallback(S=>{if(!s&&!r||k.paused)return;const N=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,H=document.activeElement;if(N&&H){const G=S.currentTarget,[M,U]=Aj(G);M&&U?!S.shiftKey&&H===U?(S.preventDefault(),s&&ma(M,{select:!0})):S.shiftKey&&H===M&&(S.preventDefault(),s&&ma(U,{select:!0})):H===G&&S.preventDefault()}},[s,r,k.paused]);return u.jsx(qn.div,{tabIndex:-1,...h,ref:x,onKeyDown:T})});Ky.displayName=Nj;function Ej(a,{select:i=!1}={}){const s=document.activeElement;for(const r of a)if(ma(r,{select:i}),document.activeElement!==s)return}function Aj(a){const i=Gy(a),s=gg(i,a),r=gg(i.reverse(),a);return[s,r]}function Gy(a){const i=[],s=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)i.push(s.currentNode);return i}function gg(a,i){for(const s of a)if(!Cj(s,{upTo:i}))return s}function Cj(a,{upTo:i}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(i!==void 0&&a===i)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function kj(a){return a instanceof HTMLInputElement&&"select"in a}function ma(a,{select:i=!1}={}){if(a&&a.focus){const s=document.activeElement;a.focus({preventScroll:!0}),a!==s&&kj(a)&&i&&a.select()}}var yg=Tj();function Tj(){let a=[];return{add(i){const s=a[0];i!==s&&s?.pause(),a=vg(a,i),a.unshift(i)},remove(i){a=vg(a,i),a[0]?.resume()}}}function vg(a,i){const s=[...a],r=s.indexOf(i);return r!==-1&&s.splice(r,1),s}function Oj(a){return a.filter(i=>i.tagName!=="A")}var _j="Portal",$y=w.forwardRef((a,i)=>{const{container:s,...r}=a,[c,d]=w.useState(!1);nl(()=>d(!0),[]);const h=s||c&&globalThis?.document?.body;return h?cj.createPortal(u.jsx(qn.div,{...r,ref:i}),h):null});$y.displayName=_j;function zj(a,i){return w.useReducer((s,r)=>i[s][r]??s,a)}var hc=a=>{const{present:i,children:s}=a,r=Dj(i),c=typeof s=="function"?s({present:r.isPresent}):w.Children.only(s),d=Va(r.ref,Mj(c));return typeof s=="function"||r.isPresent?w.cloneElement(c,{ref:d}):null};hc.displayName="Presence";function Dj(a){const[i,s]=w.useState(),r=w.useRef(null),c=w.useRef(a),d=w.useRef("none"),h=a?"mounted":"unmounted",[m,y]=zj(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const g=Lr(r.current);d.current=m==="mounted"?g:"none"},[m]),nl(()=>{const g=r.current,j=c.current;if(j!==a){const x=d.current,k=Lr(g);a?y("MOUNT"):k==="none"||g?.display==="none"?y("UNMOUNT"):y(j&&x!==k?"ANIMATION_OUT":"UNMOUNT"),c.current=a}},[a,y]),nl(()=>{if(i){let g;const j=i.ownerDocument.defaultView??window,b=k=>{const S=Lr(r.current).includes(CSS.escape(k.animationName));if(k.target===i&&S&&(y("ANIMATION_END"),!c.current)){const N=i.style.animationFillMode;i.style.animationFillMode="forwards",g=j.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=N)})}},x=k=>{k.target===i&&(d.current=Lr(r.current))};return i.addEventListener("animationstart",x),i.addEventListener("animationcancel",b),i.addEventListener("animationend",b),()=>{j.clearTimeout(g),i.removeEventListener("animationstart",x),i.removeEventListener("animationcancel",b),i.removeEventListener("animationend",b)}}else y("ANIMATION_END")},[i,y]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:w.useCallback(g=>{r.current=g?getComputedStyle(g):null,s(g)},[])}}function Lr(a){return a?.animationName||"none"}function Mj(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}var Ju=0;function Rj(){w.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??bg()),document.body.insertAdjacentElement("beforeend",a[1]??bg()),Ju++,()=>{Ju===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Ju--}},[])}function bg(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var mn=function(){return mn=Object.assign||function(i){for(var s,r=1,c=arguments.length;r<c;r++){s=arguments[r];for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(i[d]=s[d])}return i},mn.apply(this,arguments)};function Vy(a,i){var s={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&i.indexOf(r)<0&&(s[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(a);c<r.length;c++)i.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(a,r[c])&&(s[r[c]]=a[r[c]]);return s}function Lj(a,i,s){if(s||arguments.length===2)for(var r=0,c=i.length,d;r<c;r++)(d||!(r in i))&&(d||(d=Array.prototype.slice.call(i,0,r)),d[r]=i[r]);return a.concat(d||Array.prototype.slice.call(i))}var Vr="right-scroll-bar-position",Qr="width-before-scroll-bar",Uj="with-scroll-bars-hidden",Bj="--removed-body-scroll-bar-size";function Fu(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function Hj(a,i){var s=w.useState(function(){return{value:a,callback:i,facade:{get current(){return s.value},set current(r){var c=s.value;c!==r&&(s.value=r,s.callback(r,c))}}}})[0];return s.callback=i,s.facade}var qj=typeof window<"u"?w.useLayoutEffect:w.useEffect,xg=new WeakMap;function Yj(a,i){var s=Hj(null,function(r){return a.forEach(function(c){return Fu(c,r)})});return qj(function(){var r=xg.get(s);if(r){var c=new Set(r),d=new Set(a),h=s.current;c.forEach(function(m){d.has(m)||Fu(m,null)}),d.forEach(function(m){c.has(m)||Fu(m,h)})}xg.set(s,a)},[a]),s}function Kj(a){return a}function Gj(a,i){i===void 0&&(i=Kj);var s=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:a},useMedium:function(d){var h=i(d,r);return s.push(h),function(){s=s.filter(function(m){return m!==h})}},assignSyncMedium:function(d){for(r=!0;s.length;){var h=s;s=[],h.forEach(d)}s={push:function(m){return d(m)},filter:function(){return s}}},assignMedium:function(d){r=!0;var h=[];if(s.length){var m=s;s=[],m.forEach(d),h=s}var y=function(){var j=h;h=[],j.forEach(d)},g=function(){return Promise.resolve().then(y)};g(),s={push:function(j){h.push(j),g()},filter:function(j){return h=h.filter(j),s}}}};return c}function $j(a){a===void 0&&(a={});var i=Gj(null);return i.options=mn({async:!0,ssr:!1},a),i}var Qy=function(a){var i=a.sideCar,s=Vy(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,mn({},s))};Qy.isSideCarExport=!0;function Vj(a,i){return a.useMedium(i),Qy}var Xy=$j(),Pu=function(){},mc=w.forwardRef(function(a,i){var s=w.useRef(null),r=w.useState({onScrollCapture:Pu,onWheelCapture:Pu,onTouchMoveCapture:Pu}),c=r[0],d=r[1],h=a.forwardProps,m=a.children,y=a.className,g=a.removeScrollBar,j=a.enabled,b=a.shards,x=a.sideCar,k=a.noRelative,T=a.noIsolation,S=a.inert,N=a.allowPinchZoom,H=a.as,G=H===void 0?"div":H,M=a.gapMode,U=Vy(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=x,X=Yj([s,i]),Z=mn(mn({},U),c);return w.createElement(w.Fragment,null,j&&w.createElement(Y,{sideCar:Xy,removeScrollBar:g,shards:b,noRelative:k,noIsolation:T,inert:S,setCallbacks:d,allowPinchZoom:!!N,lockRef:s,gapMode:M}),h?w.cloneElement(w.Children.only(m),mn(mn({},Z),{ref:X})):w.createElement(G,mn({},Z,{className:y,ref:X}),m))});mc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mc.classNames={fullWidth:Qr,zeroRight:Vr};var Qj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xj(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=Qj();return i&&a.setAttribute("nonce",i),a}function Zj(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function Ij(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var Jj=function(){var a=0,i=null;return{add:function(s){a==0&&(i=Xj())&&(Zj(i,s),Ij(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},Fj=function(){var a=Jj();return function(i,s){w.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&s])}},Zy=function(){var a=Fj(),i=function(s){var r=s.styles,c=s.dynamic;return a(r,c),null};return i},Pj={left:0,top:0,right:0,gap:0},Wu=function(a){return parseInt(a||"",10)||0},Wj=function(a){var i=window.getComputedStyle(document.body),s=i[a==="padding"?"paddingLeft":"marginLeft"],r=i[a==="padding"?"paddingTop":"marginTop"],c=i[a==="padding"?"paddingRight":"marginRight"];return[Wu(s),Wu(r),Wu(c)]},ew=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return Pj;var i=Wj(a),s=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-s+i[2]-i[0])}},tw=Zy(),Ki="data-scroll-locked",nw=function(a,i,s,r){var c=a.left,d=a.top,h=a.right,m=a.gap;return s===void 0&&(s="margin"),`
140
+ .`.concat(Uj,` {
141
+ overflow: hidden `).concat(r,`;
142
+ padding-right: `).concat(m,"px ").concat(r,`;
143
+ }
144
+ body[`).concat(Ki,`] {
145
+ overflow: hidden `).concat(r,`;
146
+ overscroll-behavior: contain;
147
+ `).concat([i&&"position: relative ".concat(r,";"),s==="margin"&&`
148
+ padding-left: `.concat(c,`px;
149
+ padding-top: `).concat(d,`px;
150
+ padding-right: `).concat(h,`px;
151
+ margin-left:0;
152
+ margin-top:0;
153
+ margin-right: `).concat(m,"px ").concat(r,`;
154
+ `),s==="padding"&&"padding-right: ".concat(m,"px ").concat(r,";")].filter(Boolean).join(""),`
155
+ }
156
+
157
+ .`).concat(Vr,` {
158
+ right: `).concat(m,"px ").concat(r,`;
159
+ }
160
+
161
+ .`).concat(Qr,` {
162
+ margin-right: `).concat(m,"px ").concat(r,`;
163
+ }
164
+
165
+ .`).concat(Vr," .").concat(Vr,` {
166
+ right: 0 `).concat(r,`;
167
+ }
168
+
169
+ .`).concat(Qr," .").concat(Qr,` {
170
+ margin-right: 0 `).concat(r,`;
171
+ }
172
+
173
+ body[`).concat(Ki,`] {
174
+ `).concat(Bj,": ").concat(m,`px;
175
+ }
176
+ `)},Sg=function(){var a=parseInt(document.body.getAttribute(Ki)||"0",10);return isFinite(a)?a:0},aw=function(){w.useEffect(function(){return document.body.setAttribute(Ki,(Sg()+1).toString()),function(){var a=Sg()-1;a<=0?document.body.removeAttribute(Ki):document.body.setAttribute(Ki,a.toString())}},[])},iw=function(a){var i=a.noRelative,s=a.noImportant,r=a.gapMode,c=r===void 0?"margin":r;aw();var d=w.useMemo(function(){return ew(c)},[c]);return w.createElement(tw,{styles:nw(d,!i,c,s?"":"!important")})},od=!1;if(typeof window<"u")try{var Ur=Object.defineProperty({},"passive",{get:function(){return od=!0,!0}});window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{od=!1}var Mi=od?{passive:!1}:!1,sw=function(a){return a.tagName==="TEXTAREA"},Iy=function(a,i){if(!(a instanceof Element))return!1;var s=window.getComputedStyle(a);return s[i]!=="hidden"&&!(s.overflowY===s.overflowX&&!sw(a)&&s[i]==="visible")},lw=function(a){return Iy(a,"overflowY")},rw=function(a){return Iy(a,"overflowX")},jg=function(a,i){var s=i.ownerDocument,r=i;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=Jy(a,r);if(c){var d=Fy(a,r),h=d[1],m=d[2];if(h>m)return!0}r=r.parentNode}while(r&&r!==s.body);return!1},cw=function(a){var i=a.scrollTop,s=a.scrollHeight,r=a.clientHeight;return[i,s,r]},ow=function(a){var i=a.scrollLeft,s=a.scrollWidth,r=a.clientWidth;return[i,s,r]},Jy=function(a,i){return a==="v"?lw(i):rw(i)},Fy=function(a,i){return a==="v"?cw(i):ow(i)},uw=function(a,i){return a==="h"&&i==="rtl"?-1:1},dw=function(a,i,s,r,c){var d=uw(a,window.getComputedStyle(i).direction),h=d*r,m=s.target,y=i.contains(m),g=!1,j=h>0,b=0,x=0;do{if(!m)break;var k=Fy(a,m),T=k[0],S=k[1],N=k[2],H=S-N-d*T;(T||H)&&Jy(a,m)&&(b+=H,x+=T);var G=m.parentNode;m=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!y&&m!==document.body||y&&(i.contains(m)||i===m));return(j&&Math.abs(b)<1||!j&&Math.abs(x)<1)&&(g=!0),g},Br=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},wg=function(a){return[a.deltaX,a.deltaY]},Ng=function(a){return a&&"current"in a?a.current:a},fw=function(a,i){return a[0]===i[0]&&a[1]===i[1]},hw=function(a){return`
177
+ .block-interactivity-`.concat(a,` {pointer-events: none;}
178
+ .allow-interactivity-`).concat(a,` {pointer-events: all;}
179
+ `)},mw=0,Ri=[];function pw(a){var i=w.useRef([]),s=w.useRef([0,0]),r=w.useRef(),c=w.useState(mw++)[0],d=w.useState(Zy)[0],h=w.useRef(a);w.useEffect(function(){h.current=a},[a]),w.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(c));var S=Lj([a.lockRef.current],(a.shards||[]).map(Ng),!0).filter(Boolean);return S.forEach(function(N){return N.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),S.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(c))})}}},[a.inert,a.lockRef.current,a.shards]);var m=w.useCallback(function(S,N){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var H=Br(S),G=s.current,M="deltaX"in S?S.deltaX:G[0]-H[0],U="deltaY"in S?S.deltaY:G[1]-H[1],Y,X=S.target,Z=Math.abs(M)>Math.abs(U)?"h":"v";if("touches"in S&&Z==="h"&&X.type==="range")return!1;var _=window.getSelection(),P=_&&_.anchorNode,Se=P?P===X||P.contains(X):!1;if(Se)return!1;var W=jg(Z,X);if(!W)return!0;if(W?Y=Z:(Y=Z==="v"?"h":"v",W=jg(Z,X)),!W)return!1;if(!r.current&&"changedTouches"in S&&(M||U)&&(r.current=Y),!Y)return!0;var se=r.current||Y;return dw(se,N,S,se==="h"?M:U)},[]),y=w.useCallback(function(S){var N=S;if(!(!Ri.length||Ri[Ri.length-1]!==d)){var H="deltaY"in N?wg(N):Br(N),G=i.current.filter(function(Y){return Y.name===N.type&&(Y.target===N.target||N.target===Y.shadowParent)&&fw(Y.delta,H)})[0];if(G&&G.should){N.cancelable&&N.preventDefault();return}if(!G){var M=(h.current.shards||[]).map(Ng).filter(Boolean).filter(function(Y){return Y.contains(N.target)}),U=M.length>0?m(N,M[0]):!h.current.noIsolation;U&&N.cancelable&&N.preventDefault()}}},[]),g=w.useCallback(function(S,N,H,G){var M={name:S,delta:N,target:H,should:G,shadowParent:gw(H)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(U){return U!==M})},1)},[]),j=w.useCallback(function(S){s.current=Br(S),r.current=void 0},[]),b=w.useCallback(function(S){g(S.type,wg(S),S.target,m(S,a.lockRef.current))},[]),x=w.useCallback(function(S){g(S.type,Br(S),S.target,m(S,a.lockRef.current))},[]);w.useEffect(function(){return Ri.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:x}),document.addEventListener("wheel",y,Mi),document.addEventListener("touchmove",y,Mi),document.addEventListener("touchstart",j,Mi),function(){Ri=Ri.filter(function(S){return S!==d}),document.removeEventListener("wheel",y,Mi),document.removeEventListener("touchmove",y,Mi),document.removeEventListener("touchstart",j,Mi)}},[]);var k=a.removeScrollBar,T=a.inert;return w.createElement(w.Fragment,null,T?w.createElement(d,{styles:hw(c)}):null,k?w.createElement(iw,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function gw(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const yw=Vj(Xy,pw);var Py=w.forwardRef(function(a,i){return w.createElement(mc,mn({},a,{ref:i,sideCar:yw}))});Py.classNames=mc.classNames;var vw=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Li=new WeakMap,Hr=new WeakMap,qr={},ed=0,Wy=function(a){return a&&(a.host||Wy(a.parentNode))},bw=function(a,i){return i.map(function(s){if(a.contains(s))return s;var r=Wy(s);return r&&a.contains(r)?r:(console.error("aria-hidden",s,"in not contained inside",a,". Doing nothing"),null)}).filter(function(s){return!!s})},xw=function(a,i,s,r){var c=bw(i,Array.isArray(a)?a:[a]);qr[s]||(qr[s]=new WeakMap);var d=qr[s],h=[],m=new Set,y=new Set(c),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};c.forEach(g);var j=function(b){!b||y.has(b)||Array.prototype.forEach.call(b.children,function(x){if(m.has(x))j(x);else try{var k=x.getAttribute(r),T=k!==null&&k!=="false",S=(Li.get(x)||0)+1,N=(d.get(x)||0)+1;Li.set(x,S),d.set(x,N),h.push(x),S===1&&T&&Hr.set(x,!0),N===1&&x.setAttribute(s,"true"),T||x.setAttribute(r,"true")}catch(H){console.error("aria-hidden: cannot operate on ",x,H)}})};return j(i),m.clear(),ed++,function(){h.forEach(function(b){var x=Li.get(b)-1,k=d.get(b)-1;Li.set(b,x),d.set(b,k),x||(Hr.has(b)||b.removeAttribute(r),Hr.delete(b)),k||b.removeAttribute(s)}),ed--,ed||(Li=new WeakMap,Li=new WeakMap,Hr=new WeakMap,qr={})}},Sw=function(a,i,s){s===void 0&&(s="data-aria-hidden");var r=Array.from(Array.isArray(a)?a:[a]),c=vw(a);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),xw(r,c,s,"aria-hidden")):function(){return null}},pc="Dialog",[ev]=ej(pc),[jw,on]=ev(pc),tv=a=>{const{__scopeDialog:i,children:s,open:r,defaultOpen:c,onOpenChange:d,modal:h=!0}=a,m=w.useRef(null),y=w.useRef(null),[g,j]=sj({prop:r,defaultProp:c??!1,onChange:d,caller:pc});return u.jsx(jw,{scope:i,triggerRef:m,contentRef:y,contentId:Xu(),titleId:Xu(),descriptionId:Xu(),open:g,onOpenChange:j,onOpenToggle:w.useCallback(()=>j(b=>!b),[j]),modal:h,children:s})};tv.displayName=pc;var nv="DialogTrigger",ww=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,c=on(nv,s),d=Va(i,c.triggerRef);return u.jsx(qn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Md(c.open),...r,ref:d,onClick:ya(a.onClick,c.onOpenToggle)})});ww.displayName=nv;var zd="DialogPortal",[Nw,av]=ev(zd,{forceMount:void 0}),iv=a=>{const{__scopeDialog:i,forceMount:s,children:r,container:c}=a,d=on(zd,i);return u.jsx(Nw,{scope:i,forceMount:s,children:w.Children.map(r,h=>u.jsx(hc,{present:s||d.open,children:u.jsx($y,{asChild:!0,container:c,children:h})}))})};iv.displayName=zd;var Fr="DialogOverlay",sv=w.forwardRef((a,i)=>{const s=av(Fr,a.__scopeDialog),{forceMount:r=s.forceMount,...c}=a,d=on(Fr,a.__scopeDialog);return d.modal?u.jsx(hc,{present:r||d.open,children:u.jsx(Aw,{...c,ref:i})}):null});sv.displayName=Fr;var Ew=By("DialogOverlay.RemoveScroll"),Aw=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,c=on(Fr,s);return u.jsx(Py,{as:Ew,allowPinchZoom:!0,shards:[c.contentRef],children:u.jsx(qn.div,{"data-state":Md(c.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),Ka="DialogContent",lv=w.forwardRef((a,i)=>{const s=av(Ka,a.__scopeDialog),{forceMount:r=s.forceMount,...c}=a,d=on(Ka,a.__scopeDialog);return u.jsx(hc,{present:r||d.open,children:d.modal?u.jsx(Cw,{...c,ref:i}):u.jsx(kw,{...c,ref:i})})});lv.displayName=Ka;var Cw=w.forwardRef((a,i)=>{const s=on(Ka,a.__scopeDialog),r=w.useRef(null),c=Va(i,s.contentRef,r);return w.useEffect(()=>{const d=r.current;if(d)return Sw(d)},[]),u.jsx(rv,{...a,ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ya(a.onCloseAutoFocus,d=>{d.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:ya(a.onPointerDownOutside,d=>{const h=d.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&d.preventDefault()}),onFocusOutside:ya(a.onFocusOutside,d=>d.preventDefault())})}),kw=w.forwardRef((a,i)=>{const s=on(Ka,a.__scopeDialog),r=w.useRef(!1),c=w.useRef(!1);return u.jsx(rv,{...a,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{a.onCloseAutoFocus?.(d),d.defaultPrevented||(r.current||s.triggerRef.current?.focus(),d.preventDefault()),r.current=!1,c.current=!1},onInteractOutside:d=>{a.onInteractOutside?.(d),d.defaultPrevented||(r.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const h=d.target;s.triggerRef.current?.contains(h)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),rv=w.forwardRef((a,i)=>{const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:d,...h}=a,m=on(Ka,s),y=w.useRef(null),g=Va(i,y);return Rj(),u.jsxs(u.Fragment,{children:[u.jsx(Ky,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:d,children:u.jsx(qy,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Md(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Tw,{titleId:m.titleId}),u.jsx(_w,{contentRef:y,descriptionId:m.descriptionId})]})]})}),Dd="DialogTitle",cv=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,c=on(Dd,s);return u.jsx(qn.h2,{id:c.titleId,...r,ref:i})});cv.displayName=Dd;var ov="DialogDescription",uv=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,c=on(ov,s);return u.jsx(qn.p,{id:c.descriptionId,...r,ref:i})});uv.displayName=ov;var dv="DialogClose",fv=w.forwardRef((a,i)=>{const{__scopeDialog:s,...r}=a,c=on(dv,s);return u.jsx(qn.button,{type:"button",...r,ref:i,onClick:ya(a.onClick,()=>c.onOpenChange(!1))})});fv.displayName=dv;function Md(a){return a?"open":"closed"}var hv="DialogTitleWarning",[x2,mv]=W1(hv,{contentName:Ka,titleName:Dd,docsSlug:"dialog"}),Tw=({titleId:a})=>{const i=mv(hv),s=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.
180
+
181
+ If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
182
+
183
+ For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return w.useEffect(()=>{a&&(document.getElementById(a)||console.error(s))},[s,a]),null},Ow="DialogDescriptionWarning",_w=({contentRef:a,descriptionId:i})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mv(Ow).contentName}}.`;return w.useEffect(()=>{const c=a.current?.getAttribute("aria-describedby");i&&c&&(document.getElementById(i)||console.warn(r))},[r,a,i]),null},zw=tv,Dw=iv,pv=sv,gv=lv,yv=cv,vv=uv,Mw=fv;const Rw=zw,Lw=Dw,bv=w.forwardRef(({className:a,...i},s)=>u.jsx(pv,{ref:s,className:Ft("fixed inset-0 z-50 bg-black/70 backdrop-blur-sm",a),...i}));bv.displayName=pv.displayName;const Uw=400,Bw=1200,Hw=720,xv=w.forwardRef(({className:a,children:i,...s},r)=>{const[c,d]=w.useState(Hw),h=w.useRef(!1),m=w.useRef(0),y=w.useRef(0),g=w.useCallback(x=>{h.current=!0,m.current=x.clientX,y.current=c,x.target.setPointerCapture(x.pointerId),x.preventDefault()},[c]),j=w.useCallback(x=>{if(!h.current)return;const k=m.current-x.clientX,T=Math.min(Bw,Math.max(Uw,y.current+k));d(T)},[]),b=w.useCallback(()=>{h.current=!1},[]);return u.jsxs(Lw,{children:[u.jsx(bv,{}),u.jsxs(gv,{ref:r,className:Ft("fixed z-50 flex flex-col bg-zinc-950 px-5 py-4 shadow-2xl overflow-hidden","max-md:inset-x-0 max-md:bottom-0 max-md:top-auto max-md:max-h-[88vh] max-md:rounded-t-2xl max-md:border-t","md:inset-y-0 md:right-0 md:h-full md:border-l","border-zinc-800",a),style:{width:`min(${c}px, 100vw)`},...s,children:[u.jsx("div",{className:"absolute inset-y-0 left-0 w-1.5 cursor-col-resize hover:bg-zinc-700/50 active:bg-zinc-600/50 transition-colors max-md:hidden",onPointerDown:g,onPointerMove:j,onPointerUp:b}),i,u.jsxs(Mw,{className:"absolute right-4 top-4 inline-flex size-8 items-center justify-center rounded-md text-zinc-500 transition hover:bg-zinc-900 hover:text-zinc-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",children:[u.jsx(yy,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});xv.displayName=gv.displayName;const qw=({className:a,...i})=>u.jsx("div",{className:Ft("flex flex-col gap-1.5 pr-10",a),...i}),Sv=w.forwardRef(({className:a,...i},s)=>u.jsx(yv,{ref:s,className:Ft("text-lg font-medium text-zinc-50",a),...i}));Sv.displayName=yv.displayName;const jv=w.forwardRef(({className:a,...i},s)=>u.jsx(vv,{ref:s,className:Ft("text-sm text-zinc-500",a),...i}));jv.displayName=vv.displayName;function ln(a){const i=new Date("2026-02-20");return a.map((s,r)=>({citationState:s,createdAt:new Date(i.getTime()+r*2*24*60*60*1e3).toISOString()}))}const Gi=[{id:"project_citypoint",name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",country:"US",language:"en",tags:["local intent","priority"],labels:{},configSource:"cli",configRevision:1},{id:"project_harbor",name:"Harbor Legal Group",canonicalDomain:"harborlegal.com",country:"US",language:"en",tags:["lead gen"],labels:{},configSource:"cli",configRevision:1},{id:"project_northstar",name:"Northstar Orthopedics",canonicalDomain:"northstarortho.com",country:"US",language:"en",tags:["multi-location"],labels:{},configSource:"cli",configRevision:1}];function Pi(a){return{id:a.id,projectId:a.projectId,projectName:a.projectName,kind:a.kind,kindLabel:a.kindLabel,status:a.status,trigger:a.trigger??"manual",createdAt:a.createdAt,startedAt:a.startedAt,duration:a.duration,statusDetail:a.statusDetail,summary:a.summary,triggerLabel:a.triggerLabel}}const wv=Pi({id:"run_citypoint_visibility_20260308",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T12:15:00.000Z",startedAt:"Mar 8, 12:15 PM",duration:"6m 12s",statusDetail:"18 tracked queries checked; 3 citation losses detected on emergency-intent prompts.",summary:"Citation losses on emergency-intent prompts",triggerLabel:"Scheduled"}),Pr=Pi({id:"run_citypoint_audit_20260308",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"site-audit",kindLabel:"Technical readiness audit",status:"partial",createdAt:"2026-03-08T09:20:00.000Z",startedAt:"Mar 8, 9:20 AM",duration:"14m 41s",statusDetail:"Sitemap fallback engaged; 461 of 500 pages analyzed and llms.txt was not found.",summary:"Fallback crawl completed with missing llms.txt",triggerLabel:"Manual"}),Rd=Pi({id:"run_citypoint_queued_20260309",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"queued",createdAt:"2026-03-09T08:05:00.000Z",startedAt:"Mar 9, 8:05 AM",duration:"Waiting for slot",statusDetail:"Ready to enqueue after the next provider rate window clears.",summary:"Queued follow-up after local ranking movement",triggerLabel:"Manual"}),Ld=Pi({id:"run_harbor_visibility_20260308",projectId:"project_harbor",projectName:"Harbor Legal Group",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T11:05:00.000Z",startedAt:"Mar 8, 11:05 AM",duration:"5m 07s",statusDetail:"12 tracked queries checked; local-intent visibility held steady across branded prompts.",summary:"Branded prompts remain stable",triggerLabel:"Scheduled"}),Nv=Pi({id:"run_harbor_audit_20260307",projectId:"project_harbor",projectName:"Harbor Legal Group",kind:"site-audit",kindLabel:"Technical readiness audit",status:"completed",createdAt:"2026-03-07T15:40:00.000Z",startedAt:"Mar 7, 3:40 PM",duration:"11m 33s",statusDetail:"Sitemap-first crawl completed with 99% success and no blocking readiness regressions.",summary:"Audit clean after service-page consolidation",triggerLabel:"Scheduled"}),Wr=Pi({id:"run_northstar_visibility_20260308",projectId:"project_northstar",projectName:"Northstar Orthopedics",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"running",createdAt:"2026-03-08T13:40:00.000Z",startedAt:"Mar 8, 1:40 PM",duration:"3m 10s",statusDetail:"Provider responses still in flight for 9 multi-location prompts.",summary:"Mid-run on treatment-location prompts",triggerLabel:"Manual"}),Yw=[Rd,wv,Pr,Ld,Nv,Wr],Kw=[{id:"evidence_citypoint_emergency_gemini",keyword:"emergency dentist brooklyn",provider:"gemini",citationState:"lost",changeLabel:"Lost since Mar 5",answerSnippet:"For urgent dental care in Brooklyn, Downtown Smiles and Harbor Dental are now cited first for emergency availability and same-day booking.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:["https://downtownsmiles.com/emergency-dentist-brooklyn","https://harbordental.com/same-day-emergency-care"],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing on the emergency service page","llms.txt not found during latest site audit","Location pages link weakly into the emergency care hub"],summary:"AI answers now cite two competitors while your emergency page is no longer grounded.",runHistory:ln(["cited","cited","cited","cited","cited","cited","cited","not-cited","not-cited"])},{id:"evidence_citypoint_emergency_openai",keyword:"emergency dentist brooklyn",provider:"openai",citationState:"cited",changeLabel:"Cited for 6 runs",answerSnippet:"Citypoint Dental is listed as a top emergency dentist in Brooklyn for same-day appointments and walk-in availability.",citedDomains:["citypointdental.com","downtownsmiles.com"],evidenceUrls:["https://citypointdental.com/emergency-dentist-brooklyn"],competitorDomains:["downtownsmiles.com"],groundingSources:[],relatedTechnicalSignals:["Emergency page indexed with structured data"],summary:"OpenAI cites your emergency page consistently alongside one competitor.",runHistory:ln(["not-cited","cited","cited","cited","cited","cited","cited"])},{id:"evidence_citypoint_emergency_claude",keyword:"emergency dentist brooklyn",provider:"claude",citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"Based on the search results, top-rated emergency dental practices in Brooklyn include Downtown Smiles and Harbor Dental.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:[],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing","llms.txt not found"],summary:"Claude does not cite your domain for this emergency query.",runHistory:ln(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_invisalign_openai",keyword:"best invisalign dentist downtown brooklyn",provider:"openai",citationState:"emerging",changeLabel:"First citation in 7 days",answerSnippet:"Citypoint Dental appears as an emerging recommendation for Invisalign in Downtown Brooklyn, supported by recent before-and-after case pages.",citedDomains:["citypointdental.com","clearlineortho.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn","https://citypointdental.com/case-studies/invisalign-open-bite"],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["Structured data now present on two case-study pages","Internal links from service pages to case studies improved crawl depth"],summary:"Fresh case-study content is starting to earn citations on Invisalign prompts.",runHistory:ln(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","cited"])},{id:"evidence_citypoint_invisalign_gemini",keyword:"best invisalign dentist downtown brooklyn",provider:"gemini",citationState:"cited",changeLabel:"Cited for 8 runs",answerSnippet:"Citypoint Dental in Downtown Brooklyn is highlighted for its Invisalign expertise and patient outcomes.",citedDomains:["citypointdental.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn"],competitorDomains:[],groundingSources:[],relatedTechnicalSignals:["Case study pages well-indexed"],summary:"Gemini consistently cites your Invisalign page with no competitor overlap.",runHistory:ln(["cited","cited","cited","cited","cited","cited","cited","cited"])},{id:"evidence_citypoint_invisalign_claude",keyword:"best invisalign dentist downtown brooklyn",provider:"claude",citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For Invisalign in Downtown Brooklyn, Clear Line Ortho and Brooklyn Smiles are frequently recommended for their experienced orthodontists.",citedDomains:["clearlineortho.com","brooklynsmiles.com"],evidenceUrls:[],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["No before/after schema on case study pages"],summary:"Claude does not surface your Invisalign content despite strong page quality.",runHistory:ln(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_claude",keyword:"pediatric dentist brooklyn heights",provider:"claude",citationState:"not-cited",changeLabel:"No citation across 4 runs",answerSnippet:"Answers cite neighborhood-specific pediatric practices with stronger family-focused FAQ content and clearer insurance details.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:["https://brightkidsdental.com/pediatric-dentist-brooklyn-heights","https://parkpediatricdental.com/insurance"],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric service page exists for Brooklyn Heights","Insurance content is buried three clicks deep"],summary:"Coverage gap is content-driven, not purely technical.",runHistory:ln(["not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_gemini",keyword:"pediatric dentist brooklyn heights",provider:"gemini",citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For pediatric dentistry in Brooklyn Heights, Bright Kids Dental and Park Pediatric Dental are cited for family-friendly care.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:[],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric page for Brooklyn Heights"],summary:"Gemini does not surface your domain for pediatric queries in this area.",runHistory:ln(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_openai",keyword:"pediatric dentist brooklyn heights",provider:"openai",citationState:"cited",changeLabel:"First citation this month",answerSnippet:"Citypoint Dental is mentioned as offering pediatric services in Brooklyn, though specialized pediatric-only practices are also highlighted.",citedDomains:["citypointdental.com","brightkidsdental.com"],evidenceUrls:["https://citypointdental.com/family-dentistry"],competitorDomains:["brightkidsdental.com"],groundingSources:[],relatedTechnicalSignals:["Family dentistry page recently updated"],summary:"OpenAI recently started citing your family dentistry page for this query.",runHistory:ln(["not-cited","not-cited","not-cited","not-cited","not-cited","cited"])}],Gw=[{project:Gi[0],dateRangeLabel:"Last 7 days",contextLabel:"US / English / Local-intent monitoring",visibilitySummary:{label:"Answer Visibility",value:"61 / 100",delta:"-8 this week",tone:"caution",description:"Lost citation share on emergency-intent prompts while Invisalign visibility improved.",trend:[73,71,69,66,61]},providerScores:[{provider:"gemini",score:55,cited:5,total:9},{provider:"openai",score:67,cited:6,total:9},{provider:"claude",score:44,cited:4,total:9}],readinessSummary:{label:"Technical Readiness",value:"78 / 100",delta:"+4 after schema fixes",tone:"positive",description:"Schema fixes landed, but sitemap fallback and missing llms.txt still reduce confidence.",trend:[71,72,73,76,78]},competitorPressure:{label:"Competitor Pressure",value:"High",delta:"2 rivals moved up",tone:"negative",description:"Downtown Smiles and Harbor Dental now own the highest-intent local prompts.",trend:[54,58,61,65,69]},runStatus:{label:"Run Status",value:"Partial",delta:"1 queued follow-up",tone:"caution",description:"Latest technical audit completed in fallback mode; next visibility sweep is queued.",trend:[76,74,72,68,67]},insights:[{id:"insight_citypoint_lost_citations",tone:"negative",title:"Lost citation on 1 key phrase",detail:"Emergency-intent prompts stopped grounding Citypoint after competitors refreshed.",actionLabel:"Lost",affectedPhrases:[{keyword:"emergency dentist brooklyn",evidenceId:"evidence_citypoint_emergency_gemini",providers:["gemini"],citationState:"lost"}]},{id:"insight_citypoint_emerging",tone:"positive",title:"New citation on 1 key phrase",detail:"Case-study content is earning citations on Invisalign prompts.",actionLabel:"Emerging",affectedPhrases:[{keyword:"best invisalign dentist downtown brooklyn",evidenceId:"evidence_citypoint_invisalign_openai",providers:["openai"],citationState:"emerging"}]},{id:"insight_citypoint_content_gap",tone:"caution",title:"1 key phrase not cited by any provider",detail:"No dedicated neighborhood page to support pediatric queries.",actionLabel:"Gap",affectedPhrases:[{keyword:"pediatric dentist brooklyn heights",evidenceId:"evidence_citypoint_children_claude",providers:["claude","gemini"],citationState:"not-cited"}]}],visibilityEvidence:Kw,technicalFindings:[{id:"finding_citypoint_schema",severity:"high",title:"Emergency service page lost FAQ schema",detail:"The page most closely tied to high-intent emergency prompts is no longer exposing FAQPage markup.",impact:"Removes a strong grounding signal from the page that previously earned citations."},{id:"finding_citypoint_llms",severity:"medium",title:"llms.txt is still missing",detail:"The latest site audit could not fetch llms.txt or llms-full.txt.",impact:"Lowers crawler clarity and weakens the story when visibility drops."},{id:"finding_citypoint_internal_links",severity:"low",title:"Insurance and pediatric content sit too deep",detail:"Supporting pages needed for family and insurance prompts sit three clicks from the homepage.",impact:"Limits discovery for lower-volume but high-trust prompt variants."}],competitors:[{id:"competitor_citypoint_downtown",domain:"downtownsmiles.com",citationCount:4,totalKeywords:8,pressureLabel:"High",citedKeywords:["emergency dentist","same-day dental","walk-in dentist","tooth pain"],movement:"Up on emergency and availability prompts",notes:"Recently added same-day booking proof and FAQ content."},{id:"competitor_citypoint_harbor",domain:"harbordental.com",citationCount:2,totalKeywords:8,pressureLabel:"Moderate",citedKeywords:["family dentist","emergency dentist"],movement:"Holding citations on family and emergency intents",notes:"Strong appointment and insurance content keeps answers grounded."},{id:"competitor_citypoint_clearline",domain:"clearlineortho.com",citationCount:1,totalKeywords:8,pressureLabel:"Low",citedKeywords:["invisalign near me"],movement:"Softening on Invisalign prompts",notes:"Case-study content is aging, opening room for Citypoint."}],recentRuns:[Rd,wv,Pr]},{project:Gi[1],dateRangeLabel:"Last 14 days",contextLabel:"US / English / Service-area legal prompts",visibilitySummary:{label:"Answer Visibility",value:"74 / 100",delta:"+2 this week",tone:"positive",description:"Branded prompts are stable and informational queries are gradually improving.",trend:[68,70,71,73,74]},providerScores:[{provider:"gemini",score:75,cited:3,total:4},{provider:"openai",score:50,cited:2,total:4}],readinessSummary:{label:"Technical Readiness",value:"83 / 100",delta:"+1 this week",tone:"positive",description:"Service pages consolidated cleanly and structured data remains intact.",trend:[80,80,81,82,83]},competitorPressure:{label:"Competitor Pressure",value:"Moderate",delta:"Steady",tone:"neutral",description:"Competitors are stable; no new citation displacement was detected.",trend:[44,46,45,46,46]},runStatus:{label:"Run Status",value:"Healthy",delta:"No failures in 14 days",tone:"positive",description:"Latest visibility and audit runs completed without fallback.",trend:[88,89,90,90,91]},insights:[{id:"insight_harbor_cluster",tone:"positive",title:"Practice-area clustering is paying off",detail:"Merged legal service pages now ground broader informational prompts.",actionLabel:"Cited",affectedPhrases:[{keyword:"brooklyn personal injury lawyer",evidenceId:"evidence_harbor_personal_injury",providers:["gemini"],citationState:"cited"}]},{id:"insight_harbor_local",tone:"neutral",title:"No significant changes",detail:"No new displacement on borough-specific injury prompts this week.",actionLabel:"Stable",affectedPhrases:[]}],visibilityEvidence:[{id:"evidence_harbor_personal_injury",keyword:"brooklyn personal injury lawyer",provider:"gemini",citationState:"cited",changeLabel:"Held for 5 runs",answerSnippet:"Harbor Legal Group remains cited for borough-specific personal injury queries due to clear practice-area and case-result content.",citedDomains:["harborlegal.com"],evidenceUrls:["https://harborlegal.com/personal-injury/brooklyn"],competitorDomains:["shorelineinjury.com"],groundingSources:[],relatedTechnicalSignals:["Practice-area schema intact","Case results link directly from service pages"],summary:"Grounding remains durable after the service-page consolidation.",runHistory:ln(["cited","cited","cited","cited","cited"])}],technicalFindings:[{id:"finding_harbor_faq",severity:"low",title:"FAQ answers could be more concise",detail:"Some FAQ answers are still long enough to reduce snippet clarity.",impact:"This is optimization, not a blocker."}],competitors:[{id:"competitor_harbor_shoreline",domain:"shorelineinjury.com",citationCount:2,totalKeywords:6,pressureLabel:"Moderate",citedKeywords:["personal injury lawyer","car accident attorney"],movement:"Stable",notes:"Strong case-result pages keep it in rotation."}],recentRuns:[Ld,Nv]},{project:Gi[2],dateRangeLabel:"Last 7 days",contextLabel:"US / English / Multi-location treatment prompts",visibilitySummary:{label:"Answer Visibility",value:"58 / 100",delta:"Run in progress",tone:"neutral",description:"The current run is measuring whether treatment-location pages improved citation breadth.",trend:[52,54,55,57,58]},providerScores:[{provider:"openai",score:58,cited:4,total:7}],readinessSummary:{label:"Technical Readiness",value:"76 / 100",delta:"+3 after template cleanup",tone:"positive",description:"Location templates are cleaner, but location-specific proof still needs depth.",trend:[69,71,72,74,76]},competitorPressure:{label:"Competitor Pressure",value:"Moderate",delta:"Watching 1 chain",tone:"caution",description:"Regional chain competitors are winning on broad treatment questions.",trend:[49,51,52,54,56]},runStatus:{label:"Run Status",value:"Running",delta:"9 prompts remaining",tone:"neutral",description:"Current answer-visibility sweep is still collecting provider responses.",trend:[63,64,65,67,68]},insights:[{id:"insight_northstar_location_depth",tone:"caution",title:"Location pages need stronger proof",detail:"Answers prefer competitors with physician-specific evidence.",actionLabel:"Gap",affectedPhrases:[{keyword:"knee replacement surgeon westchester",evidenceId:"evidence_northstar_knee",providers:["openai"],citationState:"emerging"}]}],visibilityEvidence:[{id:"evidence_northstar_knee",keyword:"knee replacement surgeon westchester",provider:"openai",citationState:"emerging",changeLabel:"Improving",answerSnippet:"Northstar Orthopedics is beginning to appear on location-sensitive treatment prompts when physician bios and treatment pages are tightly linked.",citedDomains:["northstarortho.com","regionaljointcare.com"],evidenceUrls:["https://northstarortho.com/locations/westchester/knee-replacement"],competitorDomains:["regionaljointcare.com"],groundingSources:[],relatedTechnicalSignals:["Physician bios now linked from treatment pages"],summary:"Template cleanup is helping, but proof depth still matters.",runHistory:ln(["not-cited","not-cited","not-cited","cited"])}],technicalFindings:[{id:"finding_northstar_proof",severity:"medium",title:"Location pages lack physician-specific proof",detail:"Treatment pages are structurally sound but still too generic for highly specific prompts.",impact:"Limits how often the provider is cited for local treatment questions."}],competitors:[{id:"competitor_northstar_regional",domain:"regionaljointcare.com",citationCount:5,totalKeywords:7,pressureLabel:"High",citedKeywords:["knee replacement","hip surgery","joint pain treatment","orthopedic surgeon","sports medicine"],movement:"Winning broad treatment prompts",notes:"Heavy physician proof and patient-story content."}],recentRuns:[Wr]}],$w={portfolioOverview:{projects:[{project:Gi[0],visibilityScore:61,visibilityDelta:"-8 this week",readinessScore:78,readinessDelta:"+4 after schema fixes",lastRun:Pr,insight:"Lost emergency-intent citations after competitors refreshed availability pages.",trend:[73,71,69,66,61],competitorPressureLabel:"High"},{project:Gi[1],visibilityScore:74,visibilityDelta:"+2 this week",readinessScore:83,readinessDelta:"+1 this week",lastRun:Ld,insight:"Practice-area consolidation is stabilizing branded and informational prompts.",trend:[68,70,71,73,74],competitorPressureLabel:"Moderate"},{project:Gi[2],visibilityScore:58,visibilityDelta:"Run in progress",readinessScore:76,readinessDelta:"+3 after template cleanup",lastRun:Wr,insight:"Location pages are improving, but local treatment proof still trails competitors.",trend:[52,54,55,57,58],competitorPressureLabel:"Moderate"}],attentionItems:[{id:"attention_citypoint",tone:"negative",title:"Citypoint Dental lost emergency-intent citations",detail:"Three high-intent prompts now cite competitors first.",actionLabel:"Open project",href:"/projects/project_citypoint"},{id:"attention_worker",tone:"neutral",title:"One follow-up run is queued",detail:"Citypoint has a queued visibility sweep waiting on provider quota.",actionLabel:"Open runs",href:"/runs"},{id:"attention_northstar",tone:"caution",title:"Northstar run still in progress",detail:"Nine prompts remain before the current treatment-location sweep finishes.",actionLabel:"View timeline",href:"/runs"}],recentRuns:[Rd,Wr,Pr],systemHealth:[{id:"api",label:"API",tone:"positive",detail:"Healthy",meta:"phase-1 · database configured"},{id:"worker",label:"Worker",tone:"positive",detail:"Healthy",meta:"heartbeat moments ago"},{id:"providers",label:"Providers",tone:"positive",detail:"2 of 3 configured",meta:"Gemini · OpenAI"}],lastUpdatedAt:"Mar 9, 8:08 AM ET"},projects:Gw,runs:Yw,setup:{healthChecks:[{id:"api",label:"API reachable",detail:"Primary control plane is responding.",state:"ready",guidance:"Required for project creation and run history."},{id:"worker",label:"Worker heartbeats received",detail:"Background execution loop is alive.",state:"ready",guidance:"Required before any answer-visibility or site-audit run can start."},{id:"provider",label:"Provider configured",detail:"Gemini key and quota defaults are present.",state:"ready",guidance:"Required for answer-visibility sweeps."}],projectDraft:{name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",country:"US",language:"en"},keywordImportState:{mode:"paste",keywordCount:18,preview:["emergency dentist brooklyn","best invisalign dentist downtown brooklyn","pediatric dentist brooklyn heights"]},competitorDraft:{domains:["downtownsmiles.com","harbordental.com","clearlineortho.com"],notes:"Start with the domains that already displace the project on money prompts."},launchState:{enabled:!0,ctaLabel:"Launch first run",summary:"Queue a visibility sweep first, then follow with a site audit to explain movement."}},settings:{providerStatuses:[{name:"Gemini",model:"gemini-2.5-flash",state:"ready",detail:"API key detected and conservative quota defaults are active.",quota:{maxConcurrency:2,maxRequestsPerMinute:10,maxRequestsPerDay:1e3}},{name:"OpenAI",model:"gpt-4o",state:"ready",detail:"API key configured.",quota:{maxConcurrency:2,maxRequestsPerMinute:10,maxRequestsPerDay:1e3}},{name:"Claude",model:"claude-sonnet-4-6",state:"needs-config",detail:"API key is missing."}],selfHostNotes:["Run behind a reverse proxy before exposing the dashboard outside a trusted network.","Keep bootstrap and provider secrets out of source control.","Use persistent Postgres storage before treating run history as durable."],bootstrapNote:"Bootstrap/admin secrets stay in the environment; they do not belong in the UI."}},Vw={apiStatus:{label:"API",state:"ok",detail:"phase-1 · database configured",version:"phase-1",databaseConfigured:!0},workerStatus:{label:"Worker",state:"ok",detail:"phase-1 · database configured · heartbeat 2026-03-09T08:07:00.000Z",version:"phase-1",databaseConfigured:!0,lastHeartbeatAt:"2026-03-09T08:07:00.000Z"}};function Qw(a={}){const i=structuredClone($w),s=structuredClone(Vw);if(a.emptyPortfolio&&(i.portfolioOverview.projects=[],i.portfolioOverview.attentionItems=[{id:"attention_setup",tone:"neutral",title:"No projects yet",detail:"Start the guided setup flow to add a domain, import keywords, and launch the first run.",actionLabel:"Open setup",href:"/setup"}],i.portfolioOverview.recentRuns=[],i.portfolioOverview.emptyState={title:"No projects yet",detail:"Canonry becomes useful after one project, a small keyword set, and one competitor list are in place.",ctaLabel:"Launch setup",ctaHref:"/setup"}),a.runScenario==="partial"&&(i.runs[0].status="partial",i.runs[0].duration="7m 24s",i.runs[0].statusDetail="Quota window closed mid-run; 14 of 18 prompts completed before the worker paused.",i.runs[0].summary="Partial visibility sweep after quota cap",i.portfolioOverview.recentRuns[0]=i.runs[0]),a.runScenario==="failed"&&(i.runs[0].status="failed",i.runs[0].duration="1m 43s",i.runs[0].statusDetail="Worker could not reach the provider after repeated retry exhaustion.",i.runs[0].summary="Provider retries exhausted before results were captured",i.portfolioOverview.recentRuns[0]=i.runs[0],i.portfolioOverview.attentionItems.unshift({id:"attention_failed_run",tone:"negative",title:"One queued follow-up failed to start cleanly",detail:"Worker retries exhausted before the provider returned a response.",actionLabel:"Open runs",href:"/runs"})),a.degradedWorker&&(s.workerStatus={label:"Worker",state:"error",detail:"heartbeat stale · last seen 12m ago",version:"phase-1",databaseConfigured:!0,lastHeartbeatAt:"2026-03-09T07:55:00.000Z"}),a.providerNeedsConfig&&(i.settings.providerStatuses=i.settings.providerStatuses.map(r=>({...r,state:"needs-config",detail:"API key is missing, so answer-visibility sweeps are blocked."}))),a.visibilityDropProjectId){const r=i.projects.find(d=>d.project.id===a.visibilityDropProjectId),c=i.portfolioOverview.projects.find(d=>d.project.id===a.visibilityDropProjectId);r&&(r.visibilitySummary.value="49 / 100",r.visibilitySummary.delta="-12 in 48h",r.visibilitySummary.tone="negative",r.visibilitySummary.description="A sharper drop than normal; citations slipped across both local and service-intent prompts.",r.insights.unshift({id:`${r.project.id}_drop`,tone:"negative",title:"Sharp citation drop detected",detail:"Answers that previously cited the domain now ground competitors on both local and service-intent prompts.",actionLabel:"Lost",affectedPhrases:r.visibilityEvidence.filter(d=>d.citationState==="lost").slice(0,5).map(d=>({keyword:d.keyword,evidenceId:d.id,providers:[d.provider].filter(Boolean),citationState:d.citationState}))}),r.technicalFindings?.unshift({id:`${r.project.id}_drop_finding`,severity:"high",title:"Primary supporting page fell out of crawl emphasis",detail:"The drop correlates with weaker internal links and missing FAQ markup on the main conversion page.",impact:"Both citation share and trust signals deteriorated at the same time."})),c&&(c.visibilityScore=49,c.visibilityDelta="-12 in 48h",c.insight="Sharp citation drop detected; grounding now prefers competitors on multiple high-intent prompts.")}return{dashboard:i,health:s}}function Ev(a,i){return a.projects.find(s=>s.project.id===i)}function Xw(a,i){return a.runs.find(s=>s.id===i)}function Zw(a,i){for(const s of a.projects){const r=s.visibilityEvidence.find(c=>c.id===i);if(r)return{project:s,evidence:r}}}const Iw="/api/v1";function Jw(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.apiKey?window.__CANONRY_CONFIG__.apiKey:""}async function Ye(a,i){const s=Jw(),r=await fetch(`${Iw}${a}`,{...i,headers:{"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...i?.headers}});if(!r.ok)throw new Error(`API ${r.status}: ${r.statusText}`);if(r.status!==204)return r.json()}function Fw(){return Ye("/projects")}function Pw(){return Ye("/runs")}function ud(a){return Ye(`/runs/${encodeURIComponent(a)}`)}function Ww(a){return Ye(`/projects/${encodeURIComponent(a)}/keywords`)}function Av(a){return Ye(`/projects/${encodeURIComponent(a)}/competitors`)}function eN(a){return Ye(`/projects/${encodeURIComponent(a)}/timeline`)}function Cv(a,i){return Ye(`/projects/${encodeURIComponent(a)}`,{method:"PUT",body:JSON.stringify(i)})}function tN(a,i){return Ye(`/projects/${encodeURIComponent(a)}/keywords`,{method:"PUT",body:JSON.stringify({keywords:i})})}function nN(a,i){return Ye(`/projects/${encodeURIComponent(a)}/keywords`,{method:"POST",body:JSON.stringify({keywords:i})})}function kv(a,i){return Ye(`/projects/${encodeURIComponent(a)}/competitors`,{method:"PUT",body:JSON.stringify({competitors:i})})}function Tv(a){return Ye(`/projects/${encodeURIComponent(a)}/runs`,{method:"POST",body:"{}"})}async function aN(a){await Ye(`/projects/${encodeURIComponent(a)}`,{method:"DELETE",body:"{}"})}function iN(a){return Ye(`/projects/${encodeURIComponent(a)}/export`)}function sN(){return Ye("/settings")}function lN(a,i){return Ye(`/settings/providers/${encodeURIComponent(a)}`,{method:"PUT",body:JSON.stringify(i)})}async function rN(a){try{return await Ye(`/projects/${encodeURIComponent(a)}/schedule`)}catch(i){if(i instanceof Error&&i.message.includes("404"))return null;throw i}}function Eg(a,i){return Ye(`/projects/${encodeURIComponent(a)}/schedule`,{method:"PUT",body:JSON.stringify(i)})}async function cN(a){await Ye(`/projects/${encodeURIComponent(a)}/schedule`,{method:"DELETE",body:"{}"})}function oN(a){return Ye(`/projects/${encodeURIComponent(a)}/notifications`)}function uN(a,i){return Ye(`/projects/${encodeURIComponent(a)}/notifications`,{method:"POST",body:JSON.stringify(i)})}async function dN(a,i){await Ye(`/projects/${encodeURIComponent(a)}/notifications/${encodeURIComponent(i)}`,{method:"DELETE",body:"{}"})}function fN(a,i){return Ye(`/projects/${encodeURIComponent(a)}/notifications/${encodeURIComponent(i)}/test`,{method:"POST",body:"{}"})}function hN(a,i,s){return Ye(`/projects/${encodeURIComponent(a)}/keywords/generate`,{method:"POST",body:JSON.stringify({provider:i,count:s})})}function mN(a){return Ye("/apply",{method:"POST",body:JSON.stringify(a)})}function Ov(a){return{id:a.id,name:a.name,displayName:a.displayName,canonicalDomain:a.canonicalDomain,country:a.country,language:a.language,tags:a.tags,labels:a.labels,configSource:a.configSource,configRevision:a.configRevision,createdAt:a.createdAt,updatedAt:a.updatedAt}}function Ag(a){try{return new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}catch{return a}}function pN(a,i){if(!a)return"Waiting";if(!i)return"Running";const s=new Date(i).getTime()-new Date(a).getTime();if(s<1e3)return"<1s";const r=Math.floor(s/1e3);if(r<60)return`${r}s`;const c=Math.floor(r/60),d=r%60;return`${c}m ${d}s`}function _v(a){return a==="answer-visibility"?"Answer visibility sweep":a}function gN(a){return a==="manual"?"Manual":a==="scheduled"?"Scheduled":a==="config-apply"?"Config apply":a}function Ud(a,i){return{id:a.id,projectId:a.projectId,projectName:i,kind:a.kind,kindLabel:_v(a.kind),status:a.status,trigger:a.trigger??"manual",createdAt:a.createdAt,startedAt:a.startedAt?Ag(a.startedAt):Ag(a.createdAt),duration:pN(a.startedAt,a.finishedAt),statusDetail:a.error?zv(a.error):yN(a),summary:vN(a),triggerLabel:gN(a.trigger)}}function zv(a){try{const s=JSON.parse(a);if(typeof s=="object"&&s!==null){const r=s.message??s.error?.message??s[0]?.error?.message;if(typeof r=="string"&&r.length>0)return r.length>200?r.slice(0,200)+"…":r}}catch{}const i=a.match(/\[.*?\]\s*(.+)/);if(i){const s=i[1];return s.length>200?s.slice(0,200)+"…":s}return a.length>200?a.slice(0,200)+"…":a}function yN(a){switch(a.status){case"queued":return"Waiting for execution slot.";case"running":return"Provider queries in progress.";case"completed":return"All key phrases checked.";case"partial":return"Run completed with some key phrases skipped.";case"failed":return a.error?zv(a.error):"Run failed.";default:return""}}function vN(a){switch(a.status){case"queued":return"Queued for execution";case"running":return"In progress";case"completed":return"Visibility sweep completed";case"partial":return"Partial completion";case"failed":return"Run failed";default:return a.status}}function Dv(a){if(a.length===0)return{score:0,citedCount:0,totalCount:0};const i=new Map;for(const d of a){const h=d.keyword??d.id;i.has(h)||i.set(h,!1),d.citationState==="cited"&&i.set(h,!0)}const s=i.size,r=[...i.values()].filter(Boolean).length;return{score:s>0?Math.round(r/s*100):0,citedCount:r,totalCount:s}}function bN(a){return a>=70?"positive":a>=40?"caution":"negative"}function xN(a){return a==="High"?"negative":a==="Moderate"?"caution":"neutral"}function Mv(a,i){if(a.length===0||i.length===0)return{label:"None",count:0};const s=new Set(i);let r=0;for(const d of a)d.competitorOverlap.some(h=>s.has(h))&&r++;const c=r/a.length;return c>=.5?{label:"High",count:r}:c>=.2?{label:"Moderate",count:r}:{label:"Low",count:r}}function SN(a,i,s,r){const c=[];let d=0;const h=new Set;if(s){const m=new Map;for(const g of s.snapshots)if(g.keyword){const j=`${g.keyword}::${g.provider}`;m.set(j,g)}const y=[...new Set(s.snapshots.map(g=>g.provider))].sort();y.length===0&&y.push("gemini");for(const g of i){if(g.runs.length===0)continue;h.add(g.keyword);const b=g.runs.at(-1)?.transition??"not-cited",x=b==="lost"?"lost":b==="emerging"?"emerging":b==="cited"?"cited":"not-cited";for(const k of y){const T=m.get(`${g.keyword}::${k}`);if(!T&&y.length>1)continue;const S=g.providerRuns?.[k],N=S&&S.length>0,H=N?S.at(-1).transition:b,G=H==="lost"?"lost":H==="emerging"?"emerging":T?T.citationState==="cited"?"cited":"not-cited":x,M=Cg(N?S:g.runs),U=(N?S:g.runs).map(Y=>({citationState:Y.citationState,createdAt:Y.createdAt}));c.push({id:`evidence_${a}_${d++}`,keyword:g.keyword,provider:T?.provider??k,citationState:G,changeLabel:jN(H,M),answerSnippet:T?.answerText??"",citedDomains:T?.citedDomains??[],evidenceUrls:[],competitorDomains:T?.competitorOverlap??[],relatedTechnicalSignals:[],groundingSources:T?.groundingSources??[],summary:wN(G,g.keyword),runHistory:U})}}}for(const m of r)h.has(m.keyword)||c.push({id:`evidence_${a}_${d++}`,keyword:m.keyword,provider:"",citationState:"pending",changeLabel:"Awaiting first run",answerSnippet:"",citedDomains:[],evidenceUrls:[],competitorDomains:[],relatedTechnicalSignals:[],groundingSources:[],summary:`"${m.keyword}" has been added but no visibility run has been triggered yet.`,runHistory:[]});return c}function Cg(a){if(a.length===0)return 0;const i=a[a.length-1].citationState;let s=0;for(let r=a.length-1;r>=0&&a[r].citationState===i;r--)s++;return s}function jN(a,i){switch(a){case"new":return"First observation";case"cited":return i<=1?"Cited in latest run":`Cited for ${i} runs`;case"lost":return"Lost since last run";case"emerging":return"First citation";case"not-cited":return i<=1?"Not cited in latest run":`Not cited across ${i} runs`;default:return a}}function wN(a,i){switch(a){case"cited":return`Your domain is cited in AI answers for "${i}".`;case"lost":return`Citation was lost for "${i}". Competitors may have gained ground.`;case"emerging":return`Your domain is starting to appear in answers for "${i}".`;case"not-cited":return`No citation detected for "${i}".`;case"pending":return`"${i}" has been added but no visibility run has been triggered yet.`}}function NN(a){const i=a.map(s=>s.citationState);return i.includes("cited")?"cited":i.includes("emerging")?"emerging":i.includes("lost")?"lost":i.includes("pending")?"pending":"not-cited"}function EN(a){const i=[],s=new Map;for(const m of a){const y=s.get(m.keyword)??[];s.set(m.keyword,[...y,m])}function r(m,y){return{keyword:m[0].keyword,evidenceId:m.find(g=>g.citationState===y)?.id??m[0].id,providers:m.map(g=>g.provider).filter(Boolean),citationState:y}}const c=[],d=[],h=[];for(const[,m]of s){const y=NN(m);y==="lost"?c.push(r(m,"lost")):y==="emerging"?d.push(r(m,"emerging")):y==="not-cited"&&h.push(r(m,"not-cited"))}return c.length>0&&i.push({id:"insight_lost",tone:"negative",title:`Lost citation on ${c.length} key phrase${c.length>1?"s":""}`,detail:"Citations dropped since the last run.",actionLabel:"Lost",affectedPhrases:c}),d.length>0&&i.push({id:"insight_emerging",tone:"positive",title:`New citation on ${d.length} key phrase${d.length>1?"s":""}`,detail:"Your domain started appearing in AI answers.",actionLabel:"Emerging",affectedPhrases:d}),h.length>0&&i.push({id:"insight_gap",tone:"caution",title:`${h.length} key phrase${h.length>1?"s":""} not cited by any provider`,detail:"No citations detected across all providers.",actionLabel:"Gap",affectedPhrases:h}),i.length===0&&i.push({id:"insight_stable",tone:"neutral",title:"No significant changes",detail:"Citation state is stable across all tracked key phrases.",actionLabel:"Stable",affectedPhrases:[]}),i}function AN(a){const i=a[0];if(!i)return{label:"Run Status",value:"None",delta:"No runs yet",tone:"neutral",description:"Trigger a visibility sweep to start tracking.",tooltip:"Current execution state of visibility sweeps. Shows the status of the most recent run and total run count.",trend:[]};const s=i.status==="completed"?"Healthy":i.status==="running"?"Running":i.status==="queued"?"Queued":i.status==="partial"?"Partial":"Failed",r=i.status==="completed"?"positive":i.status==="failed"?"negative":i.status==="partial"?"caution":"neutral";return{label:"Run Status",value:s,delta:`${a.length} total runs`,tone:r,description:`Latest: ${_v(i.kind)} — ${i.status}`,tooltip:"Current execution state of visibility sweeps. Shows the status of the most recent run and total run count.",trend:[]}}function CN(a){const i=Ov(a.project),s=SN(i.name,a.timeline,a.latestRunDetail,a.keywords),r=a.latestRunDetail?.snapshots??[],c=Dv(r),d=Mv(r,a.competitors.map(b=>b.domain)),h=EN(s),m=[...a.runs].sort((b,x)=>x.createdAt.localeCompare(b.createdAt)),y=m.map(b=>Ud(b,a.project.displayName||a.project.name)),g=new Map;for(const b of r){const x=b.provider||"gemini",k=g.get(x)??{cited:0,total:0};k.total++,b.citationState==="cited"&&k.cited++,g.set(x,k)}const j=[...g.entries()].sort(([b],[x])=>b.localeCompare(x)).map(([b,{cited:x,total:k}])=>({provider:b,score:k>0?Math.round(x/k*100):0,cited:x,total:k}));return{project:i,dateRangeLabel:"All time",contextLabel:`${i.country} / ${i.language.toUpperCase()}`,visibilitySummary:{label:"Answer Visibility",value:r.length>0?`${c.score}`:"No data",delta:r.length>0?`${c.citedCount} of ${c.totalCount} key phrases visible`:"Run a sweep first",tone:r.length>0?bN(c.score):"neutral",description:r.length>0?`${c.citedCount} of ${c.totalCount} tracked key phrases found your domain in at least one AI answer engine.`:"No visibility data yet. Trigger a run to start tracking.",tooltip:'Percentage of tracked key phrases where your domain is cited by at least one AI answer engine. A key phrase is "visible" if any configured provider includes your site in its response.',trend:[]},providerScores:j,readinessSummary:void 0,competitorPressure:{label:"Competitor Pressure",value:d.label,delta:d.count>0?`${d.count} overlapping citations`:"No overlap detected",tone:xN(d.label),description:a.competitors.length>0?`${a.competitors.length} competitor${a.competitors.length>1?"s":""} tracked.`:"No competitors configured.",tooltip:"How often competitor domains appear alongside yours in AI answers. High pressure means competitors are frequently cited for the same key phrases.",trend:[]},runStatus:AN(m),insights:h,visibilityEvidence:s,technicalFindings:void 0,competitors:a.competitors.map((b,x)=>{const k=new Set;for(const G of r)(G.competitorOverlap.includes(b.domain)||G.citedDomains.includes(b.domain))&&G.keyword&&k.add(G.keyword);const T=[...k],S=new Set(r.map(G=>G.keyword).filter(Boolean)),N=S.size>0?T.length/S.size:0,H=N>=.5?"High":N>=.2?"Moderate":T.length>0?"Low":"None";return{id:b.id||`comp_${x}`,domain:b.domain,citationCount:T.length,totalKeywords:S.size,pressureLabel:H,citedKeywords:T,movement:"",notes:""}}),recentRuns:y.slice(0,5)}}function kN(a){const i=Ov(a.project),s=a.latestRunDetail?.snapshots??[],r=Dv(s),c=Mv(s,a.competitors.map(y=>y.domain)),h=[...a.runs].sort((y,g)=>g.createdAt.localeCompare(y.createdAt))[0],m=h?Ud(h,a.project.displayName||a.project.name):{id:"none",projectId:a.project.id,projectName:a.project.displayName||a.project.name,kind:"answer-visibility",kindLabel:"No runs yet",status:"queued",trigger:"manual",createdAt:"",startedAt:"",duration:"",statusDetail:"",summary:"No runs yet",triggerLabel:""};return{project:i,visibilityScore:r.score,visibilityDelta:s.length>0?`${r.citedCount} of ${r.totalCount} key phrases`:"No data",readinessScore:void 0,readinessDelta:void 0,lastRun:m,insight:s.length>0?`${r.citedCount} of ${r.totalCount} key phrases visible across ${new Set(s.map(y=>y.provider)).size} provider${new Set(s.map(y=>y.provider)).size>1?"s":""}.`:"No runs completed yet.",trend:[],competitorPressureLabel:c.label}}function TN(a,i){const s=[],r=[],c=[];for(const h of a){r.push(CN(h)),c.push(kN(h));const m=[...h.runs].sort((y,g)=>g.createdAt.localeCompare(y.createdAt));for(const y of m)s.push(Ud(y,h.project.displayName||h.project.name))}s.sort((h,m)=>m.createdAt.localeCompare(h.createdAt));const d=a.length>0;return{portfolioOverview:{projects:c,attentionItems:d?ON(r):[{id:"attention_setup",tone:"neutral",title:"No projects yet",detail:"Create your first project using the setup wizard, CLI, or API.",actionLabel:"Open setup",href:"/setup"}],recentRuns:s.slice(0,5),systemHealth:[{id:"api",label:"API",tone:"positive",detail:"Connected",meta:"Real-time data"},{id:"provider",label:"Gemini",tone:"positive",detail:"Configured",meta:"Provider active"}],lastUpdatedAt:new Date().toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),...d?{}:{emptyState:{title:"No projects yet",detail:"Canonry becomes useful after one project, a small key phrase set, and one competitor list are in place.",ctaLabel:"Launch setup",ctaHref:"/setup"}}},projects:r,runs:s,setup:{healthChecks:[{id:"api",label:"API reachable",detail:"API is responding.",state:"ready",guidance:"Required for project creation and run history."},{id:"provider",label:"Provider configured",detail:"Gemini key is configured.",state:"ready",guidance:"Required for answer-visibility sweeps."}],projectDraft:{name:"",canonicalDomain:"",country:"US",language:"en"},keywordImportState:{mode:"paste",keywordCount:0,preview:[]},competitorDraft:{domains:[],notes:"Use the CLI to add competitors."},launchState:{enabled:d,ctaLabel:d?"Trigger run":"Create a project first",summary:d?"Ready to run.":"Create a project first to launch a run."}},settings:{providerStatuses:(i?.providers??[]).map(h=>({name:h.name,model:h.model,state:h.configured?"ready":"needs-config",detail:h.configured?"Provider is configured.":"API key is missing.",quota:h.quota})),selfHostNotes:["Configuration is stored in ~/.canonry/config.yaml.","Database is SQLite at ~/.canonry/data.db.","API key was auto-generated during canonry init."],bootstrapNote:"Manage settings via ~/.canonry/config.yaml and restart the server."}}}function ON(a){const i=[];for(const s of a){const r=s.visibilityEvidence.filter(d=>d.citationState==="lost");r.length>0&&i.push({id:`attention_${s.project.id}_lost`,tone:"negative",title:`${s.project.displayName||s.project.name} lost citations`,detail:`${r.length} key phrase${r.length>1?"s":""} lost citation.`,actionLabel:"Open project",href:`/projects/${s.project.id}`});const c=s.recentRuns.filter(d=>d.status==="running"||d.status==="queued");c.length>0&&i.push({id:`attention_${s.project.id}_active`,tone:"neutral",title:`${s.project.displayName||s.project.name} has active runs`,detail:`${c.length} run${c.length>1?"s":""} in progress.`,actionLabel:"View runs",href:"/runs"})}return i.length===0&&i.push({id:"attention_stable",tone:"positive",title:"All projects stable",detail:"No citation losses or active runs to flag.",actionLabel:"View portfolio",href:"/"}),i}const kg=[{label:"Architecture",href:"https://github.com/AINYC/canonry/blob/main/docs/architecture.md"},{label:"Testing Guide",href:"https://github.com/AINYC/canonry/blob/main/docs/testing.md"}],_N=Qw(),Tg=a=>({label:a,state:"checking",detail:"Checking service health"}),zN={apiStatus:Tg("API"),workerStatus:Tg("Worker")};async function DN(a,i){try{const s=await fetch(a);if(!s.ok)return{label:i,state:"error",detail:`HTTP ${s.status}`};const r=await s.json(),c=typeof r.version=="string"?r.version:"unknown",d=typeof r.databaseUrlConfigured=="boolean"?r.databaseUrlConfigured:void 0,h=typeof r.lastHeartbeatAt=="string"?r.lastHeartbeatAt:void 0,m=[c,d===!1?"database not configured":"database configured",h?`heartbeat ${h}`:void 0].filter(Boolean).join(" · ");return{label:i,state:"ok",detail:m,version:c,databaseConfigured:d,lastHeartbeatAt:h}}catch(s){return{label:i,state:"error",detail:s instanceof Error?s.message:"unreachable"}}}function $i(a){if(!a)return"/";const i=a.split("?")[0]??"/";return i===""?"/":i.length>1&&i.endsWith("/")?i.slice(0,-1):i}function MN(a,i){const s=$i(a);if(s==="/")return{kind:"overview",path:"/"};if(s==="/runs")return{kind:"runs",path:"/runs"};if(s==="/settings")return{kind:"settings",path:"/settings"};if(s==="/setup")return{kind:"setup",path:"/setup"};if(s==="/projects")return{kind:"projects",path:"/projects"};if(s.startsWith("/projects/")){const r=s.slice(10);return Ev(i,r)?{kind:"project",path:s,projectId:r}:{kind:"not-found",path:s}}return{kind:"not-found",path:s}}function RN(a){return a?$i(a):typeof window<"u"?$i(window.location.pathname):"/"}function ec(a){return a.state==="ok"?"positive":a.state==="checking"?"neutral":"negative"}function Rv(a){switch(a){case"completed":return"positive";case"partial":return"caution";case"failed":return"negative";case"queued":case"running":return"neutral"}}function LN(a){switch(a){case"cited":return"positive";case"emerging":return"positive";case"not-cited":return"caution";case"lost":return"negative";case"pending":return"neutral"}}function UN(a){switch(a){case"high":return"negative";case"medium":return"caution";case"low":return"neutral"}}function BN(a){const i=a.match(/^(\[.*?\])\s*(.+)/);if(i){const s=i[1],r=i[2],c=r.indexOf("{");if(c>=0){const d=r.slice(0,c).trim(),h=r.slice(c);try{const m=JSON.parse(h);return`${s} ${d}
184
+
185
+ ${JSON.stringify(m,null,2)}`}catch{}}return`${s}
186
+ ${r}`}try{const s=JSON.parse(a);return JSON.stringify(s,null,2)}catch{return a}}function cl(a){return a.split("-").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")}function HN(a,i,s){return a.map(r=>{if(r.id==="api")return{...r,tone:ec(i.apiStatus),detail:i.apiStatus.state==="ok"?"Healthy":"Needs attention",meta:i.apiStatus.detail};if(r.id==="worker")return{...r,tone:ec(i.workerStatus),detail:i.workerStatus.state==="ok"?"Healthy":"Needs attention",meta:i.workerStatus.detail};const c=s.providerStatuses.filter(y=>y.state==="ready").length,d=s.providerStatuses.length,h=c>0,m=s.providerStatuses.filter(y=>y.state==="ready").map(y=>Bv[y.name]??y.name).join(" · ");return{...r,label:"Providers",tone:h?"positive":"caution",detail:`${c} of ${d} configured`,meta:m||"None configured"}})}function qN(a,i){if(a.apiStatus.state!=="ok")return"Launch is blocked until the API responds cleanly.";if(a.apiStatus.databaseConfigured===!1)return"Launch is blocked until the API has a database connection configured.";if(a.workerStatus.state!=="ok")return"Launch is blocked until the worker is healthy and heartbeats are current.";if(!i.providerStatuses.some(s=>s.state==="ready"))return"Launch is blocked until at least one provider is configured."}function YN(a,i,s){const r=qN(i,s),c=structuredClone(a);return c.healthChecks=c.healthChecks.map(d=>{if(d.id==="api")return{...d,detail:i.apiStatus.detail,state:i.apiStatus.state==="ok"?"ready":"attention"};if(d.id==="worker")return{...d,detail:i.workerStatus.detail,state:i.workerStatus.state==="ok"?"ready":"attention"};const h=s.providerStatuses.some(m=>m.state==="ready");return{...d,detail:h?"At least one provider configured.":"No providers configured.",state:h?"ready":"attention"}}),c.launchState.enabled=r===void 0,c.launchState.blockedReason=r,c.launchState.summary=r??"Queue a visibility sweep first, then follow with a site audit to explain movement.",c}function Mt(a,i){return s=>{s.preventDefault(),s.stopPropagation(),a(i)}}function Yr(a,i){return i==="projects"?a.kind==="projects"||a.kind==="project":i==="project"?a.kind==="project":a.kind===i}function KN({points:a,tone:i}){const s=w.useId();if(a.length===0)return null;const r=42,c=132,d=5,h=Math.min(...a),y=Math.max(...a)-h||1,g=c-d*2,j=r-d*2,b=a.map((x,k)=>{const T=d+k/Math.max(a.length-1,1)*g,S=d+(1-(x-h)/y)*j;return`${T},${S}`}).join(" ");return u.jsxs("svg",{className:`sparkline sparkline-${i}`,viewBox:`0 0 ${c} ${r}`,"aria-hidden":"true",children:[u.jsx("defs",{children:u.jsx("clipPath",{id:s,children:u.jsx("rect",{x:d,y:d,width:g,height:j,rx:"8"})})}),u.jsx("line",{className:"sparkline-guide",x1:d,x2:c-d,y1:r-d,y2:r-d}),u.jsx("polyline",{clipPath:`url(#${s})`,points:b,vectorEffect:"non-scaling-stroke"})]})}function Lv({text:a}){return u.jsxs("span",{className:"info-tooltip-wrapper",children:[u.jsxs("svg",{className:"info-tooltip-icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[u.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M8 7v4M8 5.5v0",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),u.jsx("span",{className:"info-tooltip-bubble",role:"tooltip",children:a})]})}function Js({value:a,label:i,delta:s,tone:r,description:c,tooltip:d,isNumeric:h=!0}){const g=2*Math.PI*48,j=Number.parseInt(a,10),b=h&&!Number.isNaN(j)?Math.min(j/100,1):.5,x=g*(1-b);return u.jsxs("div",{className:"score-gauge",children:[u.jsxs("div",{className:"gauge-ring-wrapper",children:[u.jsxs("svg",{className:"gauge-ring",viewBox:"0 0 120 120","aria-hidden":"true",children:[u.jsx("circle",{className:"gauge-bg",cx:"60",cy:"60",r:48,strokeWidth:6}),u.jsx("circle",{className:`gauge-fill gauge-fill-${r}`,cx:"60",cy:"60",r:48,strokeWidth:6,strokeDasharray:g,strokeDashoffset:x,transform:"rotate(-90 60 60)"})]}),u.jsx("div",{className:"gauge-center",children:u.jsx("span",{className:h?"gauge-value":"gauge-value-text",children:a.split(" / ")[0]})})]}),u.jsxs("p",{className:"gauge-label",children:[i,d&&u.jsx(Lv,{text:d})]}),u.jsx("p",{className:"gauge-delta",children:s}),u.jsx("p",{className:"gauge-description",children:c})]})}function nt({tone:a,children:i}){const s=a==="positive"?"success":a==="caution"?"warning":a==="negative"?"destructive":"neutral";return u.jsx(Ry,{variant:s,children:i})}function gc({status:a}){return u.jsx(nt,{tone:Rv(a),children:cl(a)})}function tc({state:a}){return u.jsx(nt,{tone:LN(a),children:cl(a)})}function Uv({run:a,onOpen:i}){return u.jsxs("article",{className:"run-row",children:[u.jsxs("div",{className:"run-row-main",children:[u.jsxs("div",{className:"run-row-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:a.summary}),u.jsxs("p",{className:"run-row-subtitle",children:[a.projectName," · ",a.kindLabel]})]}),u.jsx(gc,{status:a.status})]}),u.jsx("p",{className:"run-row-detail",children:a.statusDetail})]}),u.jsxs("dl",{className:"run-row-meta",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Started"}),u.jsx("dd",{children:a.startedAt})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Duration"}),u.jsx("dd",{children:a.duration})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Trigger"}),u.jsx("dd",{children:a.triggerLabel})]})]}),u.jsx(de,{variant:"outline",size:"sm",type:"button",onClick:()=>i(a.id),children:"View run"})]})}function Xi({provider:a}){const i={gemini:"border-blue-800/50 bg-blue-950/40 text-blue-300",openai:"border-green-800/50 bg-green-950/40 text-green-300",claude:"border-amber-800/50 bg-amber-950/40 text-amber-300",local:"border-purple-800/50 bg-purple-950/40 text-purple-300"};return u.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide ${i[a]??"border-zinc-700 bg-zinc-800 text-zinc-300"}`,children:a})}function GN({insights:a,onOpenEvidence:i}){const[s,r]=w.useState(null);return u.jsx("div",{className:"insight-list",children:a.map(c=>{const d=s===c.id,h=c.affectedPhrases.length>0;return u.jsxs("div",{children:[u.jsxs("div",{className:`insight-row insight-row-${c.tone} ${h?"cursor-pointer":""}`,onClick:h?()=>r(d?null:c.id):void 0,children:[u.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[h&&u.jsx(fc,{size:12,className:`shrink-0 text-zinc-500 transition-transform duration-150 ${d?"rotate-90":""}`}),u.jsx(nt,{tone:c.tone,children:c.actionLabel}),u.jsx("span",{className:"text-sm font-medium text-zinc-100 truncate",children:c.title}),u.jsx("span",{className:"hidden sm:inline text-xs text-zinc-500 truncate",children:c.detail})]}),h&&u.jsxs("span",{className:"text-[11px] text-zinc-600 whitespace-nowrap",children:[c.affectedPhrases.length," phrase",c.affectedPhrases.length>1?"s":""]})]}),d&&u.jsx("div",{className:"divide-y divide-zinc-800/20",children:c.affectedPhrases.map(m=>u.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-2 pl-9 bg-zinc-900/40",children:[u.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[u.jsx(tc,{state:m.citationState}),u.jsx("span",{className:"text-sm text-zinc-200 truncate",children:m.keyword}),u.jsx("div",{className:"hidden sm:flex gap-1",children:m.providers.map(y=>u.jsx(Xi,{provider:y},y))})]}),u.jsx("button",{type:"button",className:"text-xs text-zinc-400 hover:text-zinc-200 whitespace-nowrap transition-colors",onClick:y=>{y.stopPropagation(),i(m.evidenceId)},children:"View →"})]},m.evidenceId))})]},c.id)})})}function Og({history:a,maxDots:i=12}){const s=a.slice(-i);if(s.length===0)return u.jsx("span",{className:"text-[11px] text-zinc-600",children:"No data"});const r={cited:"bg-emerald-400","not-cited":"bg-zinc-600",lost:"bg-rose-400",emerging:"bg-emerald-400 ring-1 ring-emerald-300/60"};return u.jsx("div",{className:"flex items-center gap-[3px]",title:`${s.length} runs`,children:s.map((c,d)=>u.jsx("div",{className:`h-2.5 w-2.5 rounded-sm ${r[c.citationState]??"bg-zinc-700"}`,title:`${c.citationState} — ${new Date(c.createdAt).toLocaleDateString()}`},d))})}function $N(a){const i=new Map;for(const r of a)for(const c of r.runHistory){const d=i.get(c.createdAt);d?d.push(c.citationState):i.set(c.createdAt,[c.citationState])}return[...i.entries()].sort(([r],[c])=>r.localeCompare(c)).map(([r,c])=>({createdAt:r,citationState:c.includes("cited")?"cited":c.includes("emerging")?"emerging":"not-cited"}))}function VN({evidence:a,onOpenEvidence:i}){const[s,r]=w.useState(new Set),c=w.useMemo(()=>{const h=new Map;for(const m of a){const y=h.get(m.keyword)??[];h.set(m.keyword,[...y,m])}return[...h.entries()].map(([m,y])=>({phrase:m,items:y}))},[a]),d=h=>{r(m=>{const y=new Set(m);return y.has(h)?y.delete(h):y.add(h),y})};return u.jsx("div",{className:"evidence-table-wrap",children:u.jsxs("table",{className:"evidence-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{style:{width:"2rem"}}),u.jsx("th",{children:"Key Phrase"}),u.jsx("th",{children:"Status"}),u.jsx("th",{children:"Citation History"}),u.jsx("th",{children:"Change"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:c.map(({phrase:h,items:m})=>{const y=s.has(h),g=m.map(T=>T.citationState),j=g.includes("cited")?"cited":g.includes("emerging")?"emerging":g.includes("lost")?"lost":g.every(T=>T==="pending")?"pending":"not-cited",b=$N(m),x=m.filter(T=>T.citationState==="cited"||T.citationState==="emerging").length,k=(()=>{if(b.length===0)return"Awaiting first run";if(b.length===1)return"First observation";const T=b[b.length-1].citationState,S=b[b.length-2].citationState;if(S!=="cited"&&T==="cited")return"Newly cited";if(S==="cited"&&T!=="cited")return"Lost since last run";let N=0;for(let H=b.length-1;H>=0&&b[H].citationState===T;H--)N++;return T==="cited"?N<=1?"Cited in latest run":`Cited for ${N} runs`:N<=1?"Not cited in latest run":`Not cited across ${N} runs`})();return u.jsxs(w.Fragment,{children:[u.jsxs("tr",{className:"evidence-phrase-row cursor-pointer hover:bg-zinc-800/40",onClick:()=>d(h),"aria-expanded":y,children:[u.jsx("td",{children:u.jsx(fc,{size:14,className:`transition-transform duration-150 text-zinc-500 ${y?"rotate-90":""}`})}),u.jsx("td",{className:"evidence-keyword-cell",children:u.jsxs("div",{children:[u.jsx("span",{className:"font-medium text-zinc-100",children:h}),u.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:m.map(T=>u.jsx(Xi,{provider:T.provider},T.id))})]})}),u.jsx("td",{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(tc,{state:j}),u.jsxs("span",{className:"text-[11px] text-zinc-500",children:[x,"/",m.length]})]})}),u.jsx("td",{children:u.jsx(Og,{history:b})}),u.jsx("td",{className:"evidence-change-cell",children:k}),u.jsx("td",{})]}),y&&m.map(T=>u.jsxs("tr",{className:"bg-zinc-900/30",children:[u.jsx("td",{}),u.jsx("td",{className:"evidence-keyword-cell pl-5",children:u.jsx(Xi,{provider:T.provider})}),u.jsx("td",{children:u.jsx(tc,{state:T.citationState})}),u.jsx("td",{children:u.jsx(Og,{history:T.runHistory})}),u.jsx("td",{className:"evidence-change-cell",children:T.changeLabel}),u.jsx("td",{children:u.jsx(de,{variant:"ghost",size:"sm",type:"button",onClick:S=>{S.stopPropagation(),i(T.id)},children:"View"})})]},T.id))]},h)})})]})})}function QN({findings:a}){return u.jsx("div",{className:"findings-table-wrap",children:u.jsxs("table",{className:"findings-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Severity"}),u.jsx("th",{children:"Finding"}),u.jsx("th",{children:"Detail"}),u.jsx("th",{children:"Impact"})]})}),u.jsx("tbody",{children:a.map(i=>u.jsxs("tr",{children:[u.jsx("td",{children:u.jsx(nt,{tone:UN(i.severity),children:cl(i.severity)})}),u.jsx("td",{className:"font-medium text-zinc-100",children:i.title}),u.jsx("td",{className:"text-zinc-400",children:i.detail}),u.jsx("td",{className:"text-zinc-500",children:i.impact})]},i.id))})]})})}function XN(a){return a==="High"?"negative":a==="Moderate"?"caution":"neutral"}function ZN({competitors:a}){return a.length===0?u.jsx("p",{className:"text-sm text-zinc-500",children:"No competitors configured. Add competitors to track overlap."}):u.jsx("div",{className:"competitor-table-wrap",children:u.jsxs("table",{className:"competitor-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Domain"}),u.jsx("th",{children:"Pressure"}),u.jsx("th",{children:"Citations"}),u.jsx("th",{children:"Key Phrases"})]})}),u.jsx("tbody",{children:a.map(i=>u.jsxs("tr",{children:[u.jsx("td",{className:"font-medium text-zinc-100",children:i.domain}),u.jsx("td",{children:u.jsx(nt,{tone:XN(i.pressureLabel),children:i.pressureLabel})}),u.jsx("td",{className:"text-zinc-300 tabular-nums",children:i.totalKeywords>0?`${i.citationCount} / ${i.totalKeywords}`:"—"}),u.jsx("td",{className:"text-zinc-500 text-xs",children:i.citedKeywords.length>0?i.citedKeywords.join(", "):"Not cited"})]},i.id))})]})})}function IN({project:a,onNavigate:i}){const s=`/projects/${a.project.id}`;return u.jsxs("a",{className:"project-row cursor-pointer",href:s,onClick:Mt(i,s),children:[u.jsxs("div",{className:"project-row-primary",children:[u.jsxs("div",{children:[u.jsx("p",{className:"project-name",children:a.project.name}),u.jsx("p",{className:"project-domain",children:a.project.canonicalDomain})]}),u.jsx("p",{className:"project-insight",children:a.insight})]}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsx("p",{className:"metric-inline-label",children:"Answer Visibility"}),u.jsx("p",{className:"metric-inline-value",children:a.visibilityScore}),u.jsx("p",{className:"metric-inline-delta",children:a.visibilityDelta})]})}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsx("p",{className:"metric-inline-label",children:"Technical Readiness"}),u.jsx("p",{className:"metric-inline-value text-zinc-500",children:a.readinessScore??"—"}),u.jsx("p",{className:"metric-inline-delta",children:a.readinessDelta??"Coming soon"})]})}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsx("p",{className:"metric-inline-label",children:"Competitor Pressure"}),u.jsx("p",{className:"metric-inline-value",children:a.competitorPressureLabel}),u.jsxs("p",{className:"metric-inline-delta",children:[a.lastRun.kindLabel," · ",cl(a.lastRun.status)]})]})}),u.jsx("div",{className:"project-row-chart",children:u.jsx(KN,{points:a.trend,tone:Rv(a.lastRun.status)})}),u.jsx("span",{className:"project-row-link",children:u.jsx(fc,{className:"h-4 w-4 text-zinc-500"})})]})}function JN({model:a,systemHealth:i,onNavigate:s,onOpenRun:r}){return u.jsxs("div",{className:"page-container",children:[u.jsxs("div",{className:"page-header",children:[u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Portfolio"}),u.jsx("p",{className:"page-subtitle",children:"Visibility and execution state across all projects"})]}),u.jsx("div",{className:"page-header-right",children:u.jsx("p",{className:"text-[11px] text-zinc-600",children:a.lastUpdatedAt})})]}),a.projects.length>0?u.jsx("div",{className:"project-list project-list-scrollable",children:a.projects.map(c=>u.jsx(IN,{project:c,onNavigate:s},c.project.id))}):u.jsxs(Ie,{className:"surface-card empty-card",children:[u.jsx("h3",{children:a.emptyState?.title??"No projects yet"}),u.jsx("p",{children:a.emptyState?.detail}),u.jsx(de,{asChild:!0,children:u.jsx("a",{href:a.emptyState?.ctaHref??"/setup",onClick:Mt(s,a.emptyState?.ctaHref??"/setup"),children:a.emptyState?.ctaLabel??"Launch setup"})})]}),u.jsxs("div",{className:"overview-secondary-grid",children:[a.attentionItems.length>0&&u.jsxs("section",{className:"overview-secondary-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Needs attention"}),u.jsx("h2",{className:"section-title-sm",children:"What changed"})]})}),u.jsx("div",{className:"attention-list attention-list-scrollable",children:a.attentionItems.map(c=>u.jsxs("a",{className:`attention-item attention-item-${c.tone}`,href:c.href,onClick:Mt(s,c.href),children:[u.jsxs("div",{children:[u.jsx("p",{className:"attention-title",children:c.title}),u.jsx("p",{className:"attention-detail",children:c.detail})]}),u.jsx("span",{className:"attention-action",children:c.actionLabel})]},c.id))})]}),u.jsxs("section",{className:"overview-secondary-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Recent runs"}),u.jsx("h2",{className:"section-title-sm",children:"Activity"})]})}),u.jsx("div",{className:"compact-stack compact-stack-scrollable",children:a.recentRuns.length>0?a.recentRuns.map(c=>u.jsxs("button",{className:"compact-run",type:"button",onClick:()=>r(c.id),children:[u.jsxs("div",{children:[u.jsx("p",{className:"compact-run-title",children:c.projectName}),u.jsx("p",{className:"compact-run-detail",children:c.summary})]}),u.jsx(gc,{status:c.status})]},c.id)):u.jsx("p",{className:"supporting-copy",children:"Run history appears here after the first launch."})})]})]}),u.jsxs("section",{className:"page-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"System health"}),u.jsx("h2",{className:"section-title-sm",children:"Infrastructure"})]})}),u.jsx("div",{className:"health-grid",children:i.map(c=>u.jsxs(Ie,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:c.label}),u.jsx("h3",{children:c.detail})]}),u.jsx(nt,{tone:c.tone,children:c.label})]}),u.jsx("p",{className:"supporting-copy",children:c.meta})]},c.id))})]})]})}function FN({projects:a,onNavigate:i,onProjectCreated:s}){const[r,c]=w.useState(!1),[d,h]=w.useState(""),[m,y]=w.useState(""),[g,j]=w.useState(""),[b,x]=w.useState("US"),[k,T]=w.useState("en"),[S,N]=w.useState(!1),[H,G]=w.useState(null),M=d.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),U=async()=>{if(!(!M||!g)){N(!0),G(null);try{const Y=await Cv(M,{displayName:m||d,canonicalDomain:g,country:b,language:k});s(),h(""),y(""),j(""),x("US"),T("en"),c(!1),i(`/projects/${Y.id}`)}catch(Y){G(Y instanceof Error?Y.message:"Failed to create project")}finally{N(!1)}}};return u.jsxs("div",{className:"page-container",children:[u.jsxs("div",{className:"page-header",children:[u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Projects"}),u.jsxs("p",{className:"page-subtitle",children:[a.length," project",a.length!==1?"s":""," tracked"]})]}),u.jsx("div",{className:"page-header-right",children:u.jsxs(de,{type:"button",onClick:()=>c(Y=>!Y),children:[u.jsx(ag,{className:"size-4 mr-1.5"}),"Add project"]})})]}),r?u.jsxs(Ie,{className:"surface-card mb-6",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"New project"}),u.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Create a new monitoring project"})]})}),u.jsxs("div",{className:"compact-stack mt-4",children:[u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-project-name",children:"Project name"}),u.jsx("input",{id:"new-project-name",className:"setup-input",type:"text",placeholder:"my-project",value:d,onChange:Y=>h(Y.target.value)}),M&&M!==d?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",M]}):null]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-display-name",children:"Display name"}),u.jsx("input",{id:"new-display-name",className:"setup-input",type:"text",placeholder:"My Project",value:m,onChange:Y=>y(Y.target.value)})]})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-domain",children:"Canonical domain"}),u.jsx("input",{id:"new-domain",className:"setup-input",type:"text",placeholder:"example.com",value:g,onChange:Y=>j(Y.target.value)})]}),u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-country",children:"Country"}),u.jsx("input",{id:"new-country",className:"setup-input",type:"text",placeholder:"US",maxLength:2,value:b,onChange:Y=>x(Y.target.value.toUpperCase())})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-language",children:"Language"}),u.jsx("input",{id:"new-language",className:"setup-input",type:"text",placeholder:"en",maxLength:5,value:k,onChange:Y=>T(Y.target.value.toLowerCase())})]})]})]}),H?u.jsx("p",{className:"text-rose-400 text-sm mt-3",children:H}):null,u.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[u.jsx(de,{type:"button",disabled:!M||!g||S,onClick:U,children:S?"Creating...":"Create project"}),u.jsx(de,{type:"button",variant:"ghost",onClick:()=>c(!1),children:"Cancel"})]})]}):null,a.length>0?u.jsx("div",{className:"data-table-wrapper",children:u.jsxs("table",{className:"data-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Name"}),u.jsx("th",{children:"Domain"}),u.jsx("th",{children:"Visibility"}),u.jsx("th",{children:"Last run"}),u.jsx("th",{className:"text-right",children:"Country"})]})}),u.jsx("tbody",{children:a.map(Y=>{const X=`/projects/${Y.project.id}`,Z=Y.recentRuns[0];return u.jsxs("tr",{className:"cursor-pointer",onClick:()=>i(X),children:[u.jsxs("td",{children:[u.jsx("a",{className:"text-zinc-100 font-medium hover:underline",href:X,onClick:Mt(i,X),children:Y.project.displayName||Y.project.name}),u.jsx("p",{className:"text-[11px] text-zinc-500",children:Y.project.name})]}),u.jsx("td",{className:"text-zinc-400",children:Y.project.canonicalDomain}),u.jsx("td",{children:u.jsx(nt,{tone:Y.visibilitySummary.tone,children:Y.visibilitySummary.value})}),u.jsx("td",{className:"text-zinc-500 text-sm",children:Z?u.jsx(gc,{status:Z.status}):u.jsx("span",{className:"text-zinc-600",children:"No runs"})}),u.jsx("td",{className:"text-right text-zinc-500",children:Y.project.country})]},Y.project.id)})})]})}):r?null:u.jsxs(Ie,{className:"surface-card empty-card",children:[u.jsx("h3",{children:"No projects yet"}),u.jsx("p",{className:"supporting-copy",children:"Create your first monitoring project to start tracking AI visibility."}),u.jsxs(de,{type:"button",onClick:()=>c(!0),children:[u.jsx(ag,{className:"size-4 mr-1.5"}),"Add project"]})]}),u.jsx(PN,{onApplied:s})]})}function PN({onApplied:a}){const[i,s]=w.useState(""),[r,c]=w.useState(!1),[d,h]=w.useState([]),[m,y]=w.useState([]),g=async()=>{if(!i.trim())return;c(!0),h([]),y([]);const j=NS(i),b=[],x=[];for(let k=0;k<j.length;k++){const T=j[k];if(T.errors.length>0){b.push(`Document ${k+1}: ${T.errors[0]?.message}`);continue}const S=T.toJSON();if(!(!S||typeof S!="object"))try{const N=await mN(S);x.push(`Applied "${N.displayName||N.name}" (revision ${N.configRevision})`)}catch(N){b.push(`Document ${k+1}: ${N instanceof Error?N.message:String(N)}`)}}h(x),y(b),c(!1),x.length>0&&a()};return u.jsxs("section",{className:"mt-8",children:[u.jsx("div",{className:"page-section-divider"}),u.jsx("div",{className:"section-head mt-6",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Config as code"}),u.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Apply YAML"})]})}),u.jsxs("p",{className:"text-zinc-500 text-sm mb-3",children:["Paste a ",u.jsx("code",{className:"text-zinc-400",children:"canonry.yaml"})," config (multi-document YAML with ",u.jsx("code",{className:"text-zinc-400",children:"---"})," separators supported)."]}),u.jsx("textarea",{className:"setup-input w-full font-mono text-xs",rows:10,placeholder:`apiVersion: canonry/v1
187
+ kind: Project
188
+ metadata:
189
+ name: my-project
190
+ spec:
191
+ canonicalDomain: example.com
192
+ country: US
193
+ language: en
194
+ keywords: []`,value:i,onChange:j=>s(j.target.value)}),d.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:d.map((j,b)=>u.jsx("li",{className:"text-emerald-400 text-sm",children:j},b))}),m.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:m.map((j,b)=>u.jsx("li",{className:"text-rose-400 text-sm",children:j},b))}),u.jsx("div",{className:"mt-3",children:u.jsx(de,{type:"button",disabled:!i.trim()||r,onClick:g,children:r?"Applying...":"Apply"})})]})}function WN({model:a,onOpenEvidence:i,onOpenRun:s,onTriggerRun:r,onDeleteProject:c,onAddKeywords:d,onAddCompetitors:h}){const[m,y]=w.useState(!1),[g,j]=w.useState(!1),[b,x]=w.useState(!1),[k,T]=w.useState(null),[S,N]=w.useState(!1),[H,G]=w.useState(""),[M,U]=w.useState(!1),[Y,X]=w.useState(!1),[Z,_]=w.useState(""),[P,Se]=w.useState(!1);async function W(){const re=await iN(a.project.name),B=typeof re=="string"?re:JSON.stringify(re,null,2),J=new Blob([B],{type:"text/yaml"}),oe=URL.createObjectURL(J),ve=document.createElement("a");ve.href=oe,ve.download=`${a.project.name}.yaml`,ve.click(),URL.revokeObjectURL(oe)}async function se(){const re=H.split(`
195
+ `).map(B=>B.trim()).filter(Boolean);if(re.length!==0){U(!0);try{await d(a.project.name,re),G(""),N(!1)}finally{U(!1)}}}async function Ke(){const re=Z.trim();if(re){Se(!0);try{await h(a.project.name,[re]),_(""),X(!1)}finally{Se(!1)}}}const Ge=re=>!Number.isNaN(Number.parseInt(re,10));return u.jsxs("div",{className:"page-container",children:[m?u.jsxs(Ie,{className:"surface-card p-6 mb-6 border-rose-800/60",children:[u.jsx("h3",{className:"text-base font-semibold text-rose-400 mb-2",children:"Delete project?"}),u.jsxs("p",{className:"text-sm text-zinc-400 mb-4",children:["This will permanently delete ",u.jsx("strong",{className:"text-zinc-200",children:a.project.displayName||a.project.name})," and all its key phrases, competitors, runs, and snapshots. This cannot be undone."]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(de,{type:"button",variant:"destructive",disabled:g,onClick:async()=>{j(!0),c(a.project.name)},children:g?"Deleting...":"Yes, delete project"}),u.jsx(de,{type:"button",variant:"outline",disabled:g,onClick:()=>y(!1),children:"Cancel"})]})]}):null,u.jsxs("div",{className:"page-header",children:[u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:a.project.displayName||a.project.name}),u.jsxs("p",{className:"page-subtitle",children:[a.project.canonicalDomain," · ",a.contextLabel]}),u.jsxs("div",{className:"tag-row",children:[u.jsx("span",{className:"tag",children:a.project.country}),u.jsx("span",{className:"tag",children:a.project.language.toUpperCase()}),a.project.tags.map(re=>u.jsx("span",{className:"tag",children:re},re))]})]}),u.jsxs("div",{className:"page-header-right",children:[u.jsx("p",{className:"text-sm text-zinc-500",children:a.dateRangeLabel}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(de,{type:"button",variant:"outline",size:"icon",onClick:W,"aria-label":"Export project as YAML",children:u.jsx(zS,{className:"h-4 w-4 text-zinc-400"})}),u.jsx(de,{type:"button",variant:"outline",size:"icon",onClick:()=>y(!0),"aria-label":"Delete project",children:u.jsx(XS,{className:"h-4 w-4 text-zinc-400"})}),u.jsx(de,{type:"button",disabled:b,onClick:async()=>{x(!0),T(null);try{await r(a.project.name)}catch(re){T(re instanceof Error?re.message:"Failed to trigger run")}finally{x(!1)}},children:b?"Starting...":"Run now"})]})]})]}),k&&u.jsxs("div",{className:"mb-3 rounded-lg border border-rose-800/40 bg-rose-950/20 px-3 py-2 text-sm text-rose-300",children:[k,u.jsx("button",{type:"button",className:"ml-2 text-rose-400 hover:text-rose-200",onClick:()=>T(null),children:"×"})]}),u.jsxs("section",{className:"gauge-row",children:[u.jsx(Js,{value:a.visibilitySummary.value,label:a.visibilitySummary.label,delta:a.visibilitySummary.delta,tone:a.visibilitySummary.tone,description:a.visibilitySummary.description,tooltip:a.visibilitySummary.tooltip,isNumeric:Ge(a.visibilitySummary.value)}),a.readinessSummary?u.jsx(Js,{value:a.readinessSummary.value,label:a.readinessSummary.label,delta:a.readinessSummary.delta,tone:a.readinessSummary.tone,description:a.readinessSummary.description,tooltip:a.readinessSummary.tooltip,isNumeric:Ge(a.readinessSummary.value)}):u.jsx(Js,{value:"N/A",label:"Technical Readiness",delta:"Coming soon",tone:"neutral",description:"Enable with site audits in a future release.",tooltip:"Site audit scores for technical SEO signals. Coming in a future release.",isNumeric:!1}),u.jsx(Js,{value:a.competitorPressure.value,label:a.competitorPressure.label,delta:a.competitorPressure.delta,tone:a.competitorPressure.tone,description:a.competitorPressure.description,tooltip:a.competitorPressure.tooltip,isNumeric:Ge(a.competitorPressure.value)}),u.jsx(Js,{value:a.runStatus.value,label:a.runStatus.label,delta:a.runStatus.delta,tone:a.runStatus.tone,description:a.runStatus.description,tooltip:a.runStatus.tooltip,isNumeric:Ge(a.runStatus.value)})]}),a.providerScores.length>1&&u.jsxs("section",{className:"page-section-divider",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Provider breakdown"}),u.jsxs("h2",{children:["Visibility by provider ",u.jsx(Lv,{text:"Per-provider citation rate. Shows how often each AI engine cites your domain across all tracked key phrases. Useful for identifying which engines favor your content."})]})]})}),u.jsx("div",{className:"grid grid-cols-3 gap-3",children:a.providerScores.map(re=>u.jsxs(Ie,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Xi,{provider:re.provider}),u.jsxs("span",{className:`text-lg font-semibold ${re.score>=70?"text-emerald-400":re.score>=40?"text-amber-400":"text-rose-400"}`,children:[re.score,"%"]})]}),u.jsxs("p",{className:"mt-1 text-xs text-zinc-500",children:[re.cited," of ",re.total," key phrases cited"]})]},re.provider))})]}),u.jsxs("section",{className:"page-section-divider",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"What changed"}),u.jsx("h2",{children:"Citation signals"})]})}),u.jsx(GN,{insights:a.insights,onOpenEvidence:i})]}),u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Visibility evidence"}),u.jsx("h2",{children:"Key phrase citation tracking"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("p",{className:"supporting-copy",children:[new Set(a.visibilityEvidence.map(re=>re.keyword)).size," key phrases tracked"]}),u.jsx(de,{type:"button",variant:"outline",size:"sm",onClick:()=>N(!S),children:S?"Cancel":"+ Add key phrases"})]})]}),S&&u.jsxs("div",{className:"mb-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3",children:[u.jsx("textarea",{className:"w-full resize-none rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",rows:3,placeholder:"Enter key phrases, one per line",value:H,onChange:re=>G(re.target.value)}),u.jsxs("div",{className:"mt-2 flex items-center justify-between",children:[u.jsxs("p",{className:"text-xs text-zinc-500",children:[H.split(`
196
+ `).filter(re=>re.trim()).length," key phrases"]}),u.jsx(de,{type:"button",size:"sm",disabled:!H.trim()||M,onClick:se,children:M?"Adding...":"Add key phrases"})]})]}),u.jsx(VN,{evidence:a.visibilityEvidence,onOpenEvidence:i})]}),a.technicalFindings&&a.technicalFindings.length>0?u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Technical findings"}),u.jsx("h2",{children:"Readiness signals"})]}),u.jsxs("p",{className:"supporting-copy",children:[a.technicalFindings.length," findings"]})]}),u.jsx(QN,{findings:a.technicalFindings})]}):u.jsx("section",{className:"page-section-divider",children:u.jsxs(Ie,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Technical findings"}),u.jsx("h2",{className:"text-zinc-500",children:"Unavailable"})]}),u.jsx(nt,{tone:"neutral",children:"Coming soon"})]}),u.jsx("p",{className:"supporting-copy",children:"Technical readiness findings require site audits, which are planned for a future release."})]})}),u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Competitors"}),u.jsx("h2",{children:"Competitive landscape"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("p",{className:"supporting-copy",children:[a.competitors.length," tracked"]}),u.jsx(de,{type:"button",variant:"outline",size:"sm",onClick:()=>X(!Y),children:Y?"Cancel":"+ Add competitor"})]})]}),Y&&u.jsxs("div",{className:"mb-3 flex gap-2 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3",children:[u.jsx("input",{className:"flex-1 rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"competitor.com",value:Z,onChange:re=>_(re.target.value),onKeyDown:re=>re.key==="Enter"&&Ke()}),u.jsx(de,{type:"button",size:"sm",disabled:!Z.trim()||P,onClick:Ke,children:P?"Adding...":"Add"})]}),u.jsx(ZN,{competitors:a.competitors})]}),u.jsxs("section",{className:"page-section-divider",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Run timeline"}),u.jsx("h2",{children:"Recent execution history"})]})}),u.jsx("div",{className:"run-list",children:a.recentRuns.map(re=>u.jsx(Uv,{run:re,onOpen:s},re.id))})]}),u.jsx(i2,{projectName:a.project.name}),u.jsx(l2,{projectName:a.project.name})]})}const e2=[{value:"daily",label:"Every day"},{value:"weekly@mon",label:"Every Monday"},{value:"weekly@wed",label:"Every Wednesday"},{value:"weekly@fri",label:"Every Friday"},{value:"twice-daily",label:"Twice a day (6am & 6pm)"},{value:"custom",label:"Custom cron expression"}],_g=["UTC","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","America/Toronto","America/Vancouver","Europe/London","Europe/Paris","Europe/Berlin","Asia/Tokyo","Asia/Shanghai","Asia/Singapore","Australia/Sydney"];function dd(a){return a===0?"12:00 AM":a<12?`${a}:00 AM`:a===12?"12:00 PM":`${a-12}:00 PM`}function t2(a,i){return a==="twice-daily"?"twice-daily":a.startsWith("weekly@")?`${a}@${i}`:`daily@${i}`}function n2(a,i){if(!a)return{freq:"custom",hour:6,customCron:i};if(a==="twice-daily")return{freq:"twice-daily",hour:6,customCron:""};const s=a.match(/^daily(?:@(\d+))?$/);if(s)return{freq:"daily",hour:s[1]?parseInt(s[1]):6,customCron:""};const r=a.match(/^(weekly@(?:mon|tue|wed|thu|fri|sat|sun))(?:@(\d+))?$/);return r?{freq:r[1],hour:r[2]?parseInt(r[2]):6,customCron:""}:{freq:"custom",hour:6,customCron:i}}function a2(a,i,s){const r=s==="UTC"?"UTC":s.split("/").pop()?.replace(/_/g," ")??s;if(!a)return`Custom: ${i} · ${r}`;if(a==="twice-daily")return`Twice a day (6am & 6pm) · ${r}`;const c=a.match(/^daily(?:@(\d+))?$/);if(c){const h=c[1]?parseInt(c[1]):6;return`Every day at ${dd(h)} · ${r}`}const d=a.match(/^weekly@(mon|tue|wed|thu|fri|sat|sun)(?:@(\d+))?$/);if(d){const h={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"},m=d[2]?parseInt(d[2]):6;return`Every ${h[d[1]]} at ${dd(m)} · ${r}`}return`${a} · ${r}`}function i2({projectName:a}){const[i,s]=w.useState("loading"),[r,c]=w.useState(!1),[d,h]=w.useState("daily"),[m,y]=w.useState(6),[g,j]=w.useState(""),[b,x]=w.useState("UTC"),[k,T]=w.useState(!1),[S,N]=w.useState(""),[H,G]=w.useState(!1),[M,U]=w.useState(!1),[Y,X]=w.useState(null);w.useEffect(()=>{rN(a).then(s).catch(()=>s(null))},[a]);const Z=()=>{if(i&&i!=="loading"){const W=n2(i.preset??null,i.cronExpr);h(W.freq),y(W.hour),j(W.customCron);const se=_g.includes(i.timezone);x(se?i.timezone:"Other"),T(!se),N(se?"":i.timezone)}else h("daily"),y(6),j(""),x("UTC"),T(!1),N("");X(null),c(!0)},_=async()=>{G(!0),X(null);try{const se={timezone:k?S.trim()||"UTC":b};d==="custom"?se.cron=g.trim():se.preset=t2(d,m);const Ke=await Eg(a,se);s(Ke),c(!1)}catch(W){X(W instanceof Error?W.message:"Failed to save schedule")}finally{G(!1)}},P=async()=>{if(!(!i||i==="loading")){G(!0),X(null);try{const W={timezone:i.timezone,enabled:!i.enabled};i.preset?W.preset=i.preset:W.cron=i.cronExpr,s(await Eg(a,W))}catch(W){X(W instanceof Error?W.message:"Failed to update schedule")}finally{G(!1)}}},Se=async()=>{U(!0),X(null);try{await cN(a),s(null),c(!1)}catch(W){X(W instanceof Error?W.message:"Failed to remove schedule")}finally{U(!1)}};return u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Automation"}),u.jsx("h2",{children:"Scheduled runs"})]}),i!=="loading"&&!r&&u.jsx(de,{type:"button",variant:"outline",size:"sm",onClick:Z,children:i?"Edit schedule":"+ Set schedule"})]}),i==="loading"&&u.jsx("p",{className:"supporting-copy",children:"Loading..."}),i!=="loading"&&!r&&i===null&&u.jsx(Ie,{className:"surface-card compact-card",children:u.jsx("p",{className:"supporting-copy",children:"No schedule configured. Set one to automatically trigger visibility sweeps."})}),i!=="loading"&&!r&&i!==null&&u.jsxs(Ie,{className:"surface-card compact-card",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-sm font-medium text-zinc-200",children:a2(i.preset??null,i.cronExpr,i.timezone)}),u.jsxs("p",{className:"text-xs text-zinc-500",children:["Cron: ",u.jsx("span",{className:"font-mono",children:i.cronExpr})]}),i.nextRunAt&&u.jsxs("p",{className:"text-xs text-zinc-500",children:["Next run: ",new Date(i.nextRunAt).toLocaleString()]}),i.lastRunAt&&u.jsxs("p",{className:"text-xs text-zinc-500",children:["Last run: ",new Date(i.lastRunAt).toLocaleString()]})]}),u.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[u.jsx(nt,{tone:i.enabled?"positive":"neutral",children:i.enabled?"Active":"Paused"}),u.jsx(de,{type:"button",variant:"outline",size:"sm",disabled:H,onClick:P,children:i.enabled?"Pause":"Resume"}),u.jsx(de,{type:"button",variant:"ghost",size:"sm",disabled:M,onClick:Se,children:M?"Removing...":"Remove"})]})]}),Y&&u.jsx("p",{className:"text-rose-400 text-sm mt-2",children:Y})]}),r&&u.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900/40 p-4 space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Frequency"}),u.jsx("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none",value:d,onChange:W=>h(W.target.value),children:e2.map(W=>u.jsx("option",{value:W.value,children:W.label},W.value))})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Time"}),u.jsx("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none disabled:opacity-40",value:m,disabled:d==="twice-daily"||d==="custom",onChange:W=>y(parseInt(W.target.value)),children:Array.from({length:24},(W,se)=>u.jsx("option",{value:se,children:dd(se)},se))})]})]}),d==="custom"&&u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Cron expression"}),u.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 font-mono focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"0 9 * * 1-5",value:g,onChange:W=>j(W.target.value)})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Timezone"}),u.jsxs("select",{className:"w-full rounded border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-200 focus:border-zinc-500 focus:outline-none",value:k?"Other":b,onChange:W=>{W.target.value==="Other"?(T(!0),x("Other")):(T(!1),x(W.target.value))},children:[_g.map(W=>u.jsx("option",{value:W,children:W},W)),u.jsx("option",{value:"Other",children:"Other (enter manually)…"})]}),k&&u.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"text",placeholder:"e.g. America/New_York",value:S,onChange:W=>N(W.target.value)})]}),Y&&u.jsx("p",{className:"text-rose-400 text-sm",children:Y}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx(de,{type:"button",variant:"outline",size:"sm",onClick:()=>{c(!1),X(null)},children:"Cancel"}),u.jsx(de,{type:"button",size:"sm",disabled:H||d==="custom"&&!g.trim(),onClick:_,children:H?"Saving...":"Save schedule"})]})]})]})}const s2=[{value:"citation.lost",label:"Citation lost"},{value:"citation.gained",label:"Citation gained"},{value:"run.completed",label:"Run completed"},{value:"run.failed",label:"Run failed"}];function l2({projectName:a}){const[i,s]=w.useState("loading"),[r,c]=w.useState(!1),[d,h]=w.useState(""),[m,y]=w.useState(["citation.lost","citation.gained"]),[g,j]=w.useState(!1),[b,x]=w.useState(null),[k,T]=w.useState({});w.useEffect(()=>{oN(a).then(s).catch(()=>s([]))},[a]);const S=M=>{y(U=>U.includes(M)?U.filter(Y=>Y!==M):[...U,M])},N=async()=>{if(!(!d.trim()||m.length===0)){j(!0),x(null);try{const M=await uN(a,{channel:"webhook",url:d.trim(),events:m});s(U=>U==="loading"?[M]:[...U,M]),h(""),y(["citation.lost","citation.gained"]),c(!1)}catch(M){x(M instanceof Error?M.message:"Failed to add webhook")}finally{j(!1)}}},H=async M=>{try{await dN(a,M),s(U=>U==="loading"?U:U.filter(Y=>Y.id!==M))}catch(U){x(U instanceof Error?U.message:"Failed to remove webhook")}},G=async M=>{T(U=>({...U,[M]:{state:"testing"}}));try{const U=await fN(a,M);T(Y=>({...Y,[M]:{state:U.ok?"ok":"fail",status:U.status}}))}catch{T(U=>({...U,[M]:{state:"fail"}}))}};return u.jsxs("section",{className:"page-section-divider",children:[u.jsxs("div",{className:"section-head section-head-inline",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Automation"}),u.jsx("h2",{children:"Notifications"})]}),i!=="loading"&&u.jsx(de,{type:"button",variant:"outline",size:"sm",onClick:()=>{c(!r),x(null)},children:r?"Cancel":"+ Add webhook"})]}),r&&u.jsxs("div",{className:"mb-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-4 space-y-3",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Webhook URL"}),u.jsx("input",{className:"w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",type:"url",placeholder:"https://hooks.example.com/canonry",value:d,onChange:M=>h(M.target.value)})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400",children:"Trigger on"}),u.jsx("div",{className:"flex flex-wrap gap-3",children:s2.map(M=>u.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer select-none",children:[u.jsx("input",{type:"checkbox",className:"rounded border-zinc-600 bg-zinc-800",checked:m.includes(M.value),onChange:()=>S(M.value)}),u.jsx("span",{className:"text-sm text-zinc-300",children:M.label})]},M.value))})]}),b&&u.jsx("p",{className:"text-rose-400 text-sm",children:b}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx(de,{type:"button",variant:"outline",size:"sm",onClick:()=>{c(!1),x(null)},children:"Cancel"}),u.jsx(de,{type:"button",size:"sm",disabled:g||!d.trim()||m.length===0,onClick:N,children:g?"Adding...":"Add webhook"})]})]}),i==="loading"&&u.jsx("p",{className:"supporting-copy",children:"Loading..."}),i!=="loading"&&i.length===0&&!r&&u.jsx(Ie,{className:"surface-card compact-card",children:u.jsx("p",{className:"supporting-copy",children:"No webhooks configured. Add one to get alerted when citations change or runs complete."})}),i!=="loading"&&i.length>0&&u.jsxs("div",{className:"evidence-table-wrap",children:[u.jsxs("table",{className:"evidence-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"URL"}),u.jsx("th",{children:"Events"}),u.jsx("th",{children:"Status"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:i.map(M=>u.jsxs("tr",{children:[u.jsx("td",{className:"evidence-keyword-cell",children:u.jsx("span",{className:"font-mono text-xs text-zinc-300 break-all",children:M.url})}),u.jsx("td",{children:u.jsx("div",{className:"flex flex-wrap gap-1",children:M.events.map(U=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-800/60 px-2 py-0.5 text-[10px] font-medium text-zinc-400 uppercase tracking-wide",children:U.replace("."," ")},U))})}),u.jsx("td",{children:u.jsx(nt,{tone:M.enabled?"positive":"neutral",children:M.enabled?"Active":"Paused"})}),u.jsx("td",{children:u.jsxs("div",{className:"flex items-center gap-1 justify-end",children:[k[M.id]&&(()=>{const U=k[M.id],Y=U.state==="testing"?"Sending…":U.state==="ok"?`Delivered${U.status?` (${U.status})`:""}`:`Failed${U.status?` (${U.status})`:""}`;return u.jsx(nt,{tone:U.state==="ok"?"positive":U.state==="fail"?"negative":"neutral",children:Y})})(),u.jsx(de,{variant:"ghost",size:"sm",type:"button",disabled:k[M.id]?.state==="testing",onClick:()=>G(M.id),children:"Test"}),u.jsx(de,{variant:"ghost",size:"sm",type:"button",onClick:()=>H(M.id),children:"Remove"})]})})]},M.id))})]}),b&&u.jsx("p",{className:"text-rose-400 text-sm mt-2",children:b})]})]})}function r2({runs:a,onOpenRun:i}){const[s,r]=w.useState("all"),c=s==="all"?a:a.filter(d=>d.status===s);return u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Runs"}),u.jsx("p",{className:"page-subtitle",children:"Status, type, project, duration, and the shortest explanation that makes the outcome trustworthy."})]})}),u.jsxs("section",{children:[u.jsx("div",{className:"filter-row",role:"toolbar","aria-label":"Run filters",children:["all","queued","running","completed","partial","failed"].map(d=>u.jsx("button",{className:`filter-chip ${s===d?"filter-chip-active":""}`,type:"button","aria-pressed":s===d,onClick:()=>r(d),children:d==="all"?"All runs":cl(d)},d))}),u.jsx("div",{className:"run-list",children:c.length>0?c.map(d=>u.jsx(Uv,{run:d,onOpen:i},d.id)):u.jsxs(Ie,{className:"surface-card empty-card",children:[u.jsx("h2",{children:"No runs match this filter"}),u.jsx("p",{children:"Try another status filter or queue a new run from a project command center."})]})})]})]})}const c2={openai:"https://platform.openai.com/api-keys",claude:"https://platform.claude.com/settings/keys"},Bv={gemini:"Gemini",openai:"OpenAI",claude:"Claude",local:"Local"},o2={gemini:"e.g. gemini-2.5-flash",openai:"e.g. gpt-4o",claude:"e.g. claude-sonnet-4-6",local:"e.g. llama3, mistral"};function u2({providerName:a,onSaved:i}){const s=a.toLowerCase()==="local",[r,c]=w.useState(""),[d,h]=w.useState(""),[m,y]=w.useState(""),[g,j]=w.useState(!1),[b,x]=w.useState(null),[k,T]=w.useState(!1),S=s?d.trim().length>0:r.trim().length>0;async function N(){if(S){j(!0),x(null),T(!1);try{await lN(a.toLowerCase(),{...r.trim()?{apiKey:r.trim()}:{},...d.trim()?{baseUrl:d.trim()}:{},...m.trim()?{model:m.trim()}:{}}),c(""),h(""),y(""),T(!0),i()}catch(M){x(M instanceof Error?M.message:"Failed to update provider")}finally{j(!1)}}}const H=c2[a.toLowerCase()],G=o2[a.toLowerCase()]??"Use default model";return u.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-800 bg-zinc-900/40 p-3 space-y-2",children:[s&&u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-zinc-500",htmlFor:`base-url-${a}`,children:"Base URL"}),u.jsx("input",{id:`base-url-${a}`,type:"text",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:"http://localhost:11434/v1",value:d,onChange:M=>h(M.target.value)}),u.jsx("p",{className:"mt-0.5 text-[10px] text-zinc-600",children:"Any OpenAI-compatible endpoint — Ollama, LM Studio, llama.cpp, vLLM"})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("label",{className:"text-xs text-zinc-500",htmlFor:`api-key-${a}`,children:["API Key",s?" (optional)":""]}),H&&u.jsx("a",{href:H,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-zinc-500 hover:text-zinc-300 underline underline-offset-2",children:"Get API key ↗"})]}),u.jsx("input",{id:`api-key-${a}`,type:"password",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:s?"Optional — most local servers don't need one":`Enter ${a} API key`,value:r,onChange:M=>c(M.target.value)})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-zinc-500",htmlFor:`model-${a}`,children:"Model (optional)"}),u.jsx("input",{id:`model-${a}`,type:"text",className:"mt-0.5 w-full rounded border border-zinc-700 bg-transparent px-2 py-1.5 text-sm text-zinc-200 placeholder-zinc-600 focus:border-zinc-500 focus:outline-none",placeholder:G,value:m,onChange:M=>y(M.target.value)})]}),b&&u.jsx("p",{className:"text-xs text-rose-400",children:b}),k&&u.jsx("p",{className:"text-xs text-emerald-400",children:"Provider updated."}),u.jsx(de,{type:"button",size:"sm",disabled:!S||g,onClick:N,children:g?"Saving...":"Save"})]})}function d2({settings:a,healthSnapshot:i,onSettingsChanged:s}){const[r,c]=w.useState(null);return u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Settings"}),u.jsx("p",{className:"page-subtitle",children:"Provider state, quotas, and service health."})]})}),u.jsxs("section",{className:"settings-grid",children:[a.providerStatuses.map(d=>u.jsxs(Ie,{className:"surface-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Provider"}),u.jsx("h2",{children:d.name})]}),u.jsx(nt,{tone:d.state==="ready"?"positive":"caution",children:d.state==="ready"?"Ready":"Needs config"})]}),u.jsxs("dl",{className:"definition-list mt-3",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Model"}),u.jsx("dd",{className:"font-mono text-xs",children:d.model})]}),d.quota&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Concurrency"}),u.jsx("dd",{children:d.quota.maxConcurrency})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Rate limit"}),u.jsxs("dd",{children:[d.quota.maxRequestsPerMinute,"/min · ",d.quota.maxRequestsPerDay,"/day"]})]})]})]}),u.jsx("p",{className:"mt-2 text-sm text-zinc-500",children:d.detail}),u.jsx("div",{className:"mt-2",children:u.jsx(de,{type:"button",variant:"outline",size:"sm",onClick:()=>c(r===d.name?null:d.name),children:r===d.name?"Cancel":d.state==="ready"?d.name.toLowerCase()==="local"?"Update config":"Update key":"Configure"})}),r===d.name&&u.jsx(u2,{providerName:d.name,onSaved:()=>{c(null),s?.()}})]},d.name)),u.jsxs(Ie,{className:"surface-card",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Service health"}),u.jsx("h2",{children:"API and worker"})]})}),u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"health-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:"API"}),u.jsx("p",{className:"supporting-copy",children:i.apiStatus.detail})]}),u.jsx(nt,{tone:ec(i.apiStatus),children:i.apiStatus.state==="ok"?"Healthy":"Attention"})]}),u.jsxs("div",{className:"health-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:"Worker"}),u.jsx("p",{className:"supporting-copy",children:i.workerStatus.detail})]}),u.jsx(nt,{tone:ec(i.workerStatus),children:i.workerStatus.state==="ok"?"Healthy":"Attention"})]})]})]})]}),u.jsx("section",{className:"page-section",children:u.jsxs(Ie,{className:"surface-card",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Self-host notes"}),u.jsx("h2",{children:"Operational guidance"})]})}),u.jsx("ul",{className:"detail-list",children:a.selfHostNotes.map(d=>u.jsx("li",{children:d},d))}),u.jsx("p",{className:"supporting-copy",children:a.bootstrapNote})]})})]})}const f2=[{label:"System check",description:"Verify your instance is ready"},{label:"Create project",description:"Name, domain, and locale"},{label:"Key phrases",description:"Add key phrases to track"},{label:"Competitors",description:"Add competitor domains"},{label:"Launch",description:"Start your first visibility sweep"}];function h2({current:a,labels:i}){return u.jsx("div",{className:"setup-steps",role:"list","aria-label":"Setup progress",children:i.map((s,r)=>{const c=r<a,d=r===a;return u.jsxs("div",{className:`setup-step ${c?"setup-step-done":""} ${d?"setup-step-active":""}`,role:"listitem","aria-current":d?"step":void 0,children:[u.jsx("span",{className:"setup-step-number",children:c?"✓":r+1}),u.jsx("span",{className:"setup-step-label",children:s.label})]},s.label)})})}function m2({model:a,settings:i,onProjectCreated:s,onNavigate:r}){const[c,d]=w.useState(0),[h,m]=w.useState(""),[y,g]=w.useState(""),[j,b]=w.useState(""),[x,k]=w.useState("US"),[T,S]=w.useState("en"),[N,H]=w.useState(null),[G,M]=w.useState(null),[U,Y]=w.useState(null),[X,Z]=w.useState(!1),[_,P]=w.useState(""),[Se,W]=w.useState(!1),[se,Ke]=w.useState(null),[Ge,re]=w.useState(!1),B=i.providerStatuses.filter(te=>te.state==="ready"),[J,oe]=w.useState(B[0]?.name??""),[ve,I]=w.useState(5),[A,$]=w.useState(!1),[ee,z]=w.useState(null),[F,ne]=w.useState(""),[he,He]=w.useState(!1),[me,Pt]=w.useState(null),[Rt,Wt]=w.useState(!1),[gn,yt]=w.useState(!1),[Qa,Xa]=w.useState(null),[ol,Wi]=w.useState(!1),en=h.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Lt=_.split(`
197
+ `).map(te=>te.trim()).filter(Boolean),yn=F.split(`
198
+ `).map(te=>te.trim()).filter(Boolean),yc=a.healthChecks.some(te=>te.id==="api"&&te.state==="ready"),vc=async()=>{if(!(!en||!j)){Z(!0),Y(null);try{const te=await Cv(en,{displayName:y||h,canonicalDomain:j,country:x,language:T});H(en),M(te.id),s(),d(2)}catch(te){Y(te instanceof Error?te.message:"Failed to create project")}finally{Z(!1)}}},ht=async()=>{if(!N)return;const te=Lt;if(te.length!==0){re(!0),Ke(null);try{await tN(N,te),W(!0),s(),d(3)}catch(vn){Ke(vn instanceof Error?vn.message:"Failed to save key phrases")}finally{re(!1)}}},bc=async()=>{if(!(!N||!J)){$(!0),z(null);try{const te=await hN(N,J,ve);if(te.keywords.length>0){const vn=_?_.trimEnd()+`
199
+ `+te.keywords.join(`
200
+ `):te.keywords.join(`
201
+ `);P(vn)}}catch(te){z(te instanceof Error?te.message:"Failed to generate key phrases")}finally{$(!1)}}},ul=async()=>{if(!N)return;const te=yn;if(te.length!==0){Wt(!0),Pt(null);try{await kv(N,te),He(!0),s(),d(4)}catch(vn){Pt(vn instanceof Error?vn.message:"Failed to save competitors")}finally{Wt(!1)}}},dl=async()=>{if(N){Wi(!0),Xa(null);try{await Tv(N),yt(!0),s()}catch(te){Xa(te instanceof Error?te.message:"Failed to trigger run")}finally{Wi(!1)}}},Ut=()=>d(te=>Math.max(0,te-1)),xc=(()=>{switch(c){case 0:return u.jsxs(Ie,{className:"surface-card step-card",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 1 of 5"}),u.jsx("h2",{children:"System ready"})]})}),u.jsx("p",{className:"supporting-copy",children:"Checking that your Canonry instance is configured and reachable."}),u.jsx("div",{className:"compact-stack",children:a.healthChecks.map(te=>u.jsxs("div",{className:"health-check-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:te.label}),u.jsx("p",{className:"supporting-copy",children:te.detail}),te.id==="provider"&&te.state!=="ready"&&u.jsx("button",{type:"button",className:"text-emerald-400 hover:text-emerald-300 text-sm mt-1 underline underline-offset-2 cursor-pointer bg-transparent border-none p-0",onClick:()=>r("/settings"),children:"Configure providers"})]}),u.jsx(nt,{tone:te.state==="ready"?"positive":"caution",children:te.state==="ready"?"Ready":"Attention"})]},te.id))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(de,{type:"button",disabled:!yc,onClick:()=>d(1),children:"Continue"})]})]});case 1:return u.jsxs(Ie,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 2 of 5"}),u.jsx("h2",{children:"Create project"})]}),N?u.jsx(nt,{tone:"positive",children:"Created"}):null]}),N?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-zinc-300",children:["Project ",u.jsx("span",{className:"text-zinc-100 font-medium",children:N})," created successfully."]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(de,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(de,{type:"button",onClick:()=>d(2),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"project-name",children:"Project name"}),u.jsx("input",{id:"project-name",className:"setup-input",type:"text",placeholder:"my-website",value:h,onChange:te=>m(te.target.value)}),en&&en!==h?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",en]}):null]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"display-name",children:"Display name (optional)"}),u.jsx("input",{id:"display-name",className:"setup-input",type:"text",placeholder:"My Website",value:y,onChange:te=>g(te.target.value)})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"domain",children:"Canonical domain"}),u.jsx("input",{id:"domain",className:"setup-input",type:"text",placeholder:"example.com",value:j,onChange:te=>b(te.target.value)})]}),u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"country",children:"Country"}),u.jsx("input",{id:"country",className:"setup-input",type:"text",placeholder:"US",maxLength:2,value:x,onChange:te=>k(te.target.value.toUpperCase())})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"language",children:"Language"}),u.jsx("input",{id:"language",className:"setup-input",type:"text",placeholder:"en",maxLength:5,value:T,onChange:te=>S(te.target.value.toLowerCase())})]})]}),U?u.jsx("p",{className:"text-rose-400 text-sm",children:U}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(de,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(de,{type:"button",disabled:!en||!j||X,onClick:vc,children:X?"Creating...":"Create project"})]})]})]});case 2:return u.jsxs(Ie,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 3 of 5"}),u.jsx("h2",{children:"Add key phrases"})]}),Se?u.jsxs(nt,{tone:"positive",children:[Lt.length," saved"]}):u.jsxs(nt,{tone:"neutral",children:[Lt.length," key phrase",Lt.length!==1?"s":""]})]}),u.jsx("p",{className:"supporting-copy",children:"Enter the search queries you want to track. One per line."}),Se?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:Lt.map(te=>u.jsx("li",{children:te},te))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(de,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(de,{type:"button",onClick:()=>d(3),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[B.length>0?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"flex items-center gap-2 text-zinc-500 text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-zinc-800"}),"auto-generate",u.jsx("span",{className:"flex-1 border-t border-zinc-800"})]}),u.jsxs("div",{className:"flex items-end gap-2",children:[u.jsxs("div",{className:"setup-field flex-1",children:[u.jsx("label",{className:"setup-label",htmlFor:"gen-provider",children:"Provider"}),u.jsx("select",{id:"gen-provider",className:"setup-input",value:J,onChange:te=>oe(te.target.value),children:B.map(te=>u.jsxs("option",{value:te.name,children:[Bv[te.name]??te.name,te.model?` (${te.model})`:""]},te.name))})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"gen-count",children:"Count"}),u.jsx("select",{id:"gen-count",className:"setup-input",value:ve,onChange:te=>I(Number(te.target.value)),children:[3,5,10,15,20].map(te=>u.jsx("option",{value:te,children:te},te))})]}),u.jsx(de,{type:"button",variant:"outline",disabled:A||!J,onClick:bc,children:A?"Analyzing site...":"Generate"})]}),ee?u.jsx("p",{className:"text-rose-400 text-sm",children:ee}):null]}):null,u.jsxs("div",{className:"flex items-center gap-2 text-zinc-500 text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-zinc-800"}),"or type manually",u.jsx("span",{className:"flex-1 border-t border-zinc-800"})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"keywords",children:"Key phrases (one per line)"}),u.jsx("textarea",{id:"keywords",className:"setup-textarea",rows:6,placeholder:`emergency dentist brooklyn
202
+ best invisalign downtown brooklyn
203
+ pediatric dentist brooklyn heights`,value:_,onChange:te=>P(te.target.value)})]}),se?u.jsx("p",{className:"text-rose-400 text-sm",children:se}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(de,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(de,{type:"button",disabled:Lt.length===0||Ge,onClick:ht,children:Ge?"Saving...":`Save ${Lt.length} key phrase${Lt.length!==1?"s":""}`})]})]})]});case 3:return u.jsxs(Ie,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 4 of 5"}),u.jsx("h2",{children:"Add competitors"})]}),he?u.jsx(nt,{tone:"positive",children:"Saved"}):null]}),u.jsx("p",{className:"supporting-copy",children:"Domains that compete for the same key phrases. One per line."}),he?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:yn.map(te=>u.jsx("li",{children:te},te))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(de,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(de,{type:"button",onClick:()=>d(4),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"competitors",children:"Competitor domains (one per line)"}),u.jsx("textarea",{id:"competitors",className:"setup-textarea",rows:4,placeholder:`competitor1.com
204
+ competitor2.com`,value:F,onChange:te=>ne(te.target.value)})]}),me?u.jsx("p",{className:"text-rose-400 text-sm",children:me}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(de,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(de,{type:"button",variant:"outline",onClick:()=>d(4),children:"Skip"}),u.jsx(de,{type:"button",disabled:yn.length===0||Rt,onClick:ul,children:Rt?"Saving...":`Save ${yn.length} competitor${yn.length!==1?"s":""}`})]})]})]})]});case 4:return u.jsxs(Ie,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 5 of 5"}),u.jsx("h2",{children:"Launch first run"})]}),gn?u.jsx(nt,{tone:"positive",children:"Queued"}):null]}),gn?u.jsxs("div",{className:"compact-stack",children:[u.jsx("p",{className:"text-zinc-300",children:"Visibility sweep has been queued. View progress on the project page."}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(de,{type:"button",onClick:()=>r(G?`/projects/${G}`:"/"),children:"Open project"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"supporting-copy",children:["Everything is configured. Launch an answer-visibility sweep to start tracking citations for ",u.jsx("span",{className:"text-zinc-100 font-medium",children:N}),"."]}),Qa?u.jsx("p",{className:"text-rose-400 text-sm",children:Qa}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(de,{type:"button",variant:"outline",onClick:Ut,children:"Back"}),u.jsx(de,{type:"button",disabled:ol,onClick:dl,children:ol?"Launching...":"Launch visibility sweep"})]})]})]});default:return null}})();return u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Setup"}),u.jsx("p",{className:"page-subtitle",children:"Create a project, add key phrases, add competitors, and launch the first run."})]})}),u.jsx(h2,{current:c,labels:f2}),u.jsx("section",{className:"setup-wizard",children:xc})]})}function p2({onNavigate:a}){return u.jsx("div",{className:"page-container",children:u.jsx("section",{className:"page-section",children:u.jsxs(Ie,{className:"surface-card empty-card",children:[u.jsx("h1",{children:"Route not found"}),u.jsx("p",{children:"The current path does not map to a dashboard view."}),u.jsx(de,{asChild:!0,children:u.jsx("a",{href:"/",onClick:Mt(a,"/"),children:"Return to overview"})})]})})})}function Hv({title:a,subtitle:i,children:s,open:r,onClose:c}){return u.jsx(Rw,{open:r,onOpenChange:d=>d?void 0:c(),children:u.jsxs(xv,{children:[u.jsxs(qw,{className:"drawer-head",children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:i}),u.jsx(Sv,{id:"drawer-title",children:a}),u.jsx(jv,{className:"sr-only",children:i})]}),u.jsx("div",{className:"drawer-body",children:s})]})})}function g2(a){const i=a.split(/\n{2,}/),s=[];for(let r=0;r<i.length;r++){const c=i[r].trim();if(!c)continue;const h=c.split(/(\*\*[^*]+\*\*)/).map((m,y)=>m.startsWith("**")&&m.endsWith("**")?u.jsx("strong",{className:"text-zinc-200 font-semibold",children:m.slice(2,-2)},y):m);s.push(u.jsx("p",{className:r>0?"mt-2":"",children:h},r))}return s}function y2({evidence:a,project:i,onClose:s}){const[r,c]=w.useState(!1),d=i.recentRuns[0];return u.jsxs(Hv,{open:!0,title:a.keyword,subtitle:`${i.project.name} · visibility evidence`,onClose:s,children:[u.jsxs("div",{className:"flex items-center justify-between gap-3",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(tc,{state:a.citationState}),u.jsx(Xi,{provider:a.provider}),u.jsx("span",{className:"text-sm text-zinc-400",children:a.changeLabel})]}),d&&u.jsxs("span",{className:"shrink-0 text-[10px] uppercase tracking-wide text-zinc-600",children:["from latest run · ",new Date(d.createdAt).toLocaleDateString()]})]}),a.answerSnippet&&u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"AI answer"}),u.jsx("div",{className:`mt-1 rounded border border-zinc-800/60 bg-zinc-900/50 p-3 text-sm leading-relaxed text-zinc-400 ${r?"max-h-80 overflow-y-auto":"line-clamp-6"}`,children:g2(a.answerSnippet)}),a.answerSnippet.length>300&&u.jsx("button",{type:"button",className:"mt-1.5 text-xs text-zinc-500 hover:text-zinc-300",onClick:()=>c(!r),children:r?"Collapse":"Show full answer"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Cited domains"}),a.citedDomains.length>0?u.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:a.citedDomains.map(h=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-zinc-700 bg-zinc-800 px-2 py-0.5 text-xs text-zinc-300",children:h},h))}):u.jsx("p",{className:"mt-1 text-sm text-zinc-500",children:"No domains cited"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Competitor overlap"}),a.competitorDomains.length>0?u.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:a.competitorDomains.map(h=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-rose-800/50 bg-rose-950/40 px-2 py-0.5 text-xs text-rose-300",children:h},h))}):u.jsx("p",{className:"mt-1 text-sm text-zinc-500",children:"No competitors cited"})]})]}),a.groundingSources.length>0&&u.jsxs("div",{children:[u.jsxs("p",{className:"detail-label",children:["Grounding sources (",a.groundingSources.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:a.groundingSources.map((h,m)=>u.jsx("li",{className:"truncate text-sm",children:u.jsx("a",{href:h.uri,target:"_blank",rel:"noreferrer",className:"text-zinc-400 hover:text-zinc-200",children:h.title||h.uri})},m))})]}),a.evidenceUrls.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Evidence URLs"}),u.jsx("ul",{className:"detail-list",children:a.evidenceUrls.map(h=>u.jsx("li",{children:h},h))})]}),a.relatedTechnicalSignals.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"detail-label",children:"Related technical signals"}),u.jsx("ul",{className:"detail-list",children:a.relatedTechnicalSignals.map(h=>u.jsx("li",{children:h},h))})]}),u.jsx("p",{className:"text-xs text-zinc-600",children:a.summary})]})}async function v2(){try{const[a,i,s]=await Promise.all([Fw(),Pw(),sN().catch(()=>null)]),r=await Promise.all(a.map(async c=>{const d=i.filter(b=>b.projectId===c.id),h=d.filter(b=>b.status==="completed"||b.status==="partial").sort((b,x)=>x.createdAt.localeCompare(b.createdAt)),[m,y,g,j]=await Promise.all([Ww(c.name).catch(()=>[]),Av(c.name).catch(()=>[]),eN(c.name).catch(()=>[]),h[0]?ud(h[0].id).catch(()=>null):Promise.resolve(null)]);return{project:c,runs:d,keywords:m,competitors:y,timeline:g,latestRunDetail:j}}));return TN(r,s)}catch{return null}}function b2({initialPathname:a,initialDashboard:i,initialHealthSnapshot:s,enableLiveStatus:r=!0}){const[c,d]=w.useState(i??null),[h,m]=w.useState(!i),[y,g]=w.useState(i?!0:null),[j,b]=w.useState(()=>RN(a)),[x,k]=w.useState(!1),[T,S]=w.useState(null),[N,H]=w.useState(null),[G,M]=w.useState(!1),[U,Y]=w.useState(s??zN),X=w.useCallback(async()=>{const z=await v2();z?(d(z),g(!0)):g(!1),m(!1)},[]);w.useEffect(()=>{i||X()},[i,X]);const Z=c?.runs.some(z=>z.status==="running"||z.status==="queued")??!1;if(w.useEffect(()=>{if(!Z)return;const z=setInterval(()=>{X()},3e3);return()=>clearInterval(z)},[Z,X]),w.useEffect(()=>{if(typeof window>"u")return;const z=()=>{b($i(window.location.pathname))};return window.addEventListener("popstate",z),()=>{window.removeEventListener("popstate",z)}},[]),w.useEffect(()=>{k(!1),S(null)},[j]),w.useEffect(()=>{if(typeof window>"u"||T===null)return;const z=F=>{F.key==="Escape"&&S(null)};return window.addEventListener("keydown",z),()=>{window.removeEventListener("keydown",z)}},[T]),w.useEffect(()=>{if(!r||typeof window>"u")return;let z=!0;const F=async()=>{const he=await DN("/health","API"),He=he.state==="ok"?{label:"Runner",state:"ok",detail:"In-process job runner"}:{label:"Runner",state:he.state,detail:"Depends on API"};z&&Y({apiStatus:he,workerStatus:He})};F();const ne=window.setInterval(()=>{F()},15e3);return()=>{z=!1,window.clearInterval(ne)}},[r]),!h&&!c&&y===!1)return u.jsx("div",{className:"app-shell",children:u.jsx("div",{className:"main-area",style:{gridColumn:"1 / -1"},children:u.jsx("main",{id:"content",className:"page-shell",children:u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Cannot connect to API"}),u.jsxs("p",{className:"page-subtitle",children:["The dashboard could not reach the Canonry API. Make sure ",u.jsx("code",{children:"canonry serve"})," is running and try refreshing the page."]})]})}),u.jsx(de,{type:"button",onClick:()=>{m(!0),X()},children:"Retry connection"})]})})})});const _=c??_N.dashboard,P=MN(j,_),Se=P.kind==="project"?Ev(_,P.projectId):void 0,W=z=>{const F=$i(z);if(typeof window>"u"){b(F);return}$i(window.location.pathname)!==F&&window.history.pushState({},"",F),b(F)},se=z=>{if(!z)return;S({kind:"run",runId:z}),H(null),M(!0);const F=z;ud(z).then(ne=>{S(he=>(he?.kind==="run"&&he.runId===F&&H(ne),he))}).catch(()=>{S(ne=>(ne?.kind==="run"&&ne.runId===F&&H(null),ne))}).finally(()=>M(!1))};w.useEffect(()=>{if(T?.kind!=="run"||!N||N.status!=="running"&&N.status!=="queued")return;const z=setInterval(()=>{ud(T.runId).then(F=>{H(F),F.status!=="running"&&F.status!=="queued"&&X()}).catch(()=>{})},3e3);return()=>clearInterval(z)},[T,N?.status,N?.snapshots.length,X]);const Ke=z=>{S({kind:"evidence",evidenceId:z})},Ge=async z=>{await Tv(z),X()},re=async z=>{try{await aN(z),W("/"),X()}catch(F){console.error("Failed to delete project:",F)}},B=async(z,F)=>{await nN(z,F),await X()},J=async(z,F)=>{const he=(await Av(z)).map(me=>me.domain),He=[...new Set([...he,...F])];await kv(z,He),await X()},oe=HN(_.portfolioOverview.systemHealth,U,_.settings),ve=YN(_.setup,U,_.settings),I=T?.kind==="run"?Xw(_,T.runId):void 0,A=T?.kind==="evidence"?Zw(_,T.evidenceId):void 0,$=[{label:"Overview",href:"/",icon:LS,active:Yr(P,"overview")},{label:"Projects",href:"/projects",icon:MS,active:Yr(P,"projects")},{label:"Runs",href:"/runs",icon:qS,active:Yr(P,"runs")},{label:"Settings",href:"/settings",icon:VS,active:Yr(P,"settings")}],ee=P.kind==="overview"?"Portfolio":P.kind==="projects"?"Projects":P.kind==="project"&&Se?Se.project.name:P.kind==="runs"?"Runs":P.kind==="settings"?"Settings":P.kind==="setup"?"Setup":"Not found";return u.jsxs("div",{className:"app-shell",children:[u.jsx("a",{className:"skip-link",href:"#content",children:"Skip to content"}),u.jsxs("aside",{className:"sidebar","aria-label":"Primary navigation",children:[u.jsx("div",{className:"sidebar-brand",children:u.jsxs("a",{href:"/",onClick:Mt(W,"/"),children:[u.jsx("span",{className:"brand-mark",children:"Canonry"}),u.jsx("p",{className:"brand-subtitle",children:"AEO Monitor"})]})}),u.jsxs("nav",{className:"sidebar-nav",children:[$.map(z=>u.jsxs("a",{className:`sidebar-link ${z.active?"sidebar-link-active":""}`,href:z.href,"aria-current":z.active?"page":void 0,onClick:Mt(W,z.href),children:[u.jsx(z.icon,{className:"sidebar-icon"}),u.jsx("span",{children:z.label})]},z.label)),_.projects.length>0?u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Projects"}),_.projects.map(z=>{const F=P.kind==="project"&&Se?.project.id===z.project.id,ne=z.visibilitySummary.tone;return u.jsxs("a",{className:`sidebar-project ${F?"sidebar-project-active":""}`,href:`/projects/${z.project.id}`,onClick:Mt(W,`/projects/${z.project.id}`),children:[u.jsx("span",{className:`sidebar-dot sidebar-dot-${ne}`}),u.jsx("span",{children:z.project.name})]},z.project.id)})]}):null,u.jsx("p",{className:"sidebar-section-title",children:"Resources"}),u.jsxs("a",{className:"sidebar-link",href:"/setup","aria-current":P.kind==="setup"?"page":void 0,onClick:Mt(W,"/setup"),children:[u.jsx(GS,{className:"sidebar-icon"}),u.jsx("span",{children:"Setup"})]})]}),u.jsx("div",{className:"sidebar-footer",children:kg.map(z=>u.jsx("a",{className:"sidebar-footer-link",href:z.href,target:"_blank",rel:"noreferrer",children:z.label},z.href))})]}),u.jsxs("div",{className:"main-area",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-left",children:[u.jsx("div",{className:"topbar-brand-mobile",children:u.jsx("a",{className:"brand-mark",href:"/",onClick:Mt(W,"/"),children:"Canonry"})}),u.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[u.jsx("a",{href:"/",onClick:Mt(W,"/"),children:"Home"}),u.jsx(fc,{className:"breadcrumb-sep size-3"}),u.jsx("span",{className:"breadcrumb-current",children:ee})]})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsxs("div",{className:"health-pill-row",children:[u.jsxs("span",{className:`health-pill health-pill-${U.apiStatus.state}`,children:["API ",U.apiStatus.state==="ok"?"ok":U.apiStatus.state]}),u.jsxs("span",{className:`health-pill health-pill-${U.workerStatus.state}`,children:["Worker ",U.workerStatus.state==="ok"?"ok":U.workerStatus.state]})]}),u.jsxs(de,{className:"nav-toggle",variant:"secondary",size:"icon",type:"button","aria-expanded":x,"aria-controls":"mobile-nav",onClick:()=>k(z=>!z),children:[u.jsx(BS,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Open navigation"})]})]})]}),u.jsxs("div",{id:"mobile-nav",className:`mobile-nav ${x?"mobile-nav-open":""}`,children:[u.jsxs(de,{className:"mobile-nav-close",variant:"ghost",size:"icon",type:"button",onClick:()=>k(!1),children:[u.jsx(yy,{className:"size-5"}),u.jsx("span",{className:"sr-only",children:"Close navigation"})]}),$.map(z=>u.jsx("a",{className:`mobile-nav-link ${z.active?"mobile-nav-link-active":""}`,href:z.href,"aria-current":z.active?"page":void 0,onClick:Mt(W,z.href),children:z.label},z.label)),_.projects.length>0?u.jsxs("div",{className:"mobile-nav-section",children:[u.jsx("p",{className:"mobile-nav-section-title",children:"Projects"}),_.projects.map(z=>u.jsx("a",{className:"mobile-nav-link",href:`/projects/${z.project.id}`,onClick:Mt(W,`/projects/${z.project.id}`),children:z.project.name},z.project.id))]}):null]}),u.jsx("main",{id:"content",className:"page-shell",children:h?u.jsx("div",{className:"page-container",children:u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Loading"}),u.jsx("p",{className:"page-subtitle",children:"Connecting to API and loading dashboard data..."})]})})}):u.jsxs(u.Fragment,{children:[P.kind==="overview"?u.jsx(JN,{model:_.portfolioOverview,systemHealth:oe,onNavigate:W,onOpenRun:se}):null,P.kind==="projects"?u.jsx(FN,{projects:_.projects,onNavigate:W,onProjectCreated:X}):null,P.kind==="project"&&Se?u.jsx(WN,{model:Se,onOpenEvidence:Ke,onOpenRun:se,onTriggerRun:Ge,onDeleteProject:re,onAddKeywords:B,onAddCompetitors:J}):null,P.kind==="runs"?u.jsx(r2,{runs:_.runs,onOpenRun:se}):null,P.kind==="settings"?u.jsx(d2,{settings:_.settings,healthSnapshot:U,onSettingsChanged:X}):null,P.kind==="setup"?u.jsx(m2,{model:ve,settings:_.settings,onProjectCreated:X,onNavigate:W}):null,P.kind==="not-found"?u.jsx(p2,{onNavigate:W}):null]})}),u.jsxs("footer",{className:"footer",children:[u.jsx("p",{className:"supporting-copy",children:"Technical readiness and answer visibility stay separate."}),u.jsx("div",{className:"footer-links",children:kg.map(z=>u.jsx("a",{href:z.href,target:"_blank",rel:"noreferrer",children:z.label},z.href))})]})]}),I?u.jsxs(Hv,{open:I!==void 0,title:I.summary,subtitle:`${I.projectName} · ${I.kindLabel}`,onClose:()=>S(null),children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-1 text-sm",children:[u.jsx(gc,{status:I.status}),u.jsx("span",{className:"text-zinc-400",children:I.startedAt}),u.jsx("span",{className:"text-zinc-500",children:I.duration}),u.jsx("span",{className:"text-zinc-600",children:I.triggerLabel})]}),I.status==="failed"&&I.statusDetail&&u.jsx("p",{className:"text-sm text-rose-300/80 mt-2",children:I.statusDetail}),u.jsxs("div",{className:"mt-4",children:[u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-zinc-500 mb-2",children:"Activity Log"}),G?u.jsx("p",{className:"text-sm text-zinc-500",children:"Loading run details..."}):N&&N.snapshots.length>0?u.jsxs("div",{className:"space-y-2",children:[N.snapshots.map(z=>u.jsxs("div",{className:"rounded-lg border border-zinc-800/60 bg-zinc-900/30 p-3",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[u.jsx("p",{className:"text-sm font-medium text-zinc-200 truncate",children:z.keyword??"Unknown key phrase"}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(Xi,{provider:z.provider}),u.jsx(Ry,{variant:z.citationState==="cited"?"success":"neutral",children:z.citationState})]})]}),z.citedDomains.length>0&&u.jsxs("p",{className:"text-xs text-zinc-500 mt-1",children:[u.jsx("span",{className:"text-zinc-400",children:"Sources:"})," ",z.citedDomains.join(", ")]}),z.competitorOverlap.length>0&&u.jsxs("p",{className:"text-xs text-rose-400/80 mt-0.5",children:["Competitor cited: ",z.competitorOverlap.join(", ")]}),z.groundingSources&&z.groundingSources.length>0&&u.jsxs("details",{className:"mt-2",children:[u.jsxs("summary",{className:"text-xs text-zinc-500 cursor-pointer hover:text-zinc-400",children:[z.groundingSources.length," grounding source",z.groundingSources.length!==1?"s":""]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:z.groundingSources.map((F,ne)=>u.jsx("li",{className:"text-xs text-zinc-500 truncate",children:u.jsx("a",{href:F.uri,target:"_blank",rel:"noreferrer",className:"hover:text-zinc-300",children:F.title||F.uri})},ne))})]}),z.answerText&&u.jsxs("details",{className:"mt-1",children:[u.jsx("summary",{className:"text-xs text-zinc-500 cursor-pointer hover:text-zinc-400",children:"Answer preview"}),u.jsx("p",{className:"mt-1 text-xs text-zinc-400 leading-relaxed whitespace-pre-wrap",children:z.answerText})]})]},z.id)),N.status==="running"&&u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-amber-500 animate-pulse"}),"Querying remaining key phrases..."]})]}):N&&N.status==="running"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-amber-500 animate-pulse"}),"Waiting for first key phrase result..."]}):N&&N.status==="queued"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-zinc-500",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-zinc-500 animate-pulse"}),"Run queued, waiting for execution slot..."]}):N&&N.error?u.jsxs("div",{className:"rounded-lg border border-rose-800/40 bg-rose-950/20 p-3",children:[u.jsx("p",{className:"text-sm font-medium text-rose-300 mb-2",children:"Run failed"}),u.jsx("pre",{className:"text-xs text-rose-300/80 whitespace-pre-wrap break-words max-h-48 overflow-y-auto font-mono leading-5",children:BN(N.error)})]}):u.jsx("p",{className:"text-sm text-zinc-500",children:"No snapshot data available."}),N?.snapshots?.[0]?.model&&u.jsxs("p",{className:"mt-3 text-[10px] text-zinc-600",children:["Model: ",N.snapshots[0].model]})]})]}):null,A?u.jsx(y2,{evidence:A.evidence,project:A.project,onClose:()=>S(null)}):null]})}const qv=document.getElementById("root");if(!qv)throw new Error("Expected #root element for web app bootstrap.");mx.createRoot(qv).render(u.jsx(w.StrictMode,{children:u.jsx(b2,{})}));