var Ig=Object.defineProperty;var $g=(e,t,n)=>t in e?Ig(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _o=(e,t,n)=>$g(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))l(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ed={exports:{}},Du={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wg=Symbol.for("react.transitional.element"),Pg=Symbol.for("react.fragment");function td(e,t,n){var l=null;if(n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:Wg,type:e,key:l,ref:t!==void 0?t:null,props:n}}Du.Fragment=Pg;Du.jsx=td;Du.jsxs=td;ed.exports=Du;var p=ed.exports,nd={exports:{}},G={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var as=Symbol.for("react.transitional.element"),ey=Symbol.for("react.portal"),ty=Symbol.for("react.fragment"),ny=Symbol.for("react.strict_mode"),ly=Symbol.for("react.profiler"),ay=Symbol.for("react.consumer"),iy=Symbol.for("react.context"),uy=Symbol.for("react.forward_ref"),ry=Symbol.for("react.suspense"),cy=Symbol.for("react.memo"),ld=Symbol.for("react.lazy"),sy=Symbol.for("react.activity"),ko=Symbol.iterator;function oy(e){return e===null||typeof e!="object"?null:(e=ko&&e[ko]||e["@@iterator"],typeof e=="function"?e:null)}var ad={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},id=Object.assign,ud={};function Il(e,t,n){this.props=e,this.context=t,this.refs=ud,this.updater=n||ad}Il.prototype.isReactComponent={};Il.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Il.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rd(){}rd.prototype=Il.prototype;function is(e,t,n){this.props=e,this.context=t,this.refs=ud,this.updater=n||ad}var us=is.prototype=new rd;us.constructor=is;id(us,Il.prototype);us.isPureReactComponent=!0;var Oo=Array.isArray;function Ir(){}var me={H:null,A:null,T:null,S:null},cd=Object.prototype.hasOwnProperty;function rs(e,t,n){var l=n.ref;return{$$typeof:as,type:e,key:t,ref:l!==void 0?l:null,props:n}}function fy(e,t){return rs(e.type,t,e.props)}function cs(e){return typeof e=="object"&&e!==null&&e.$$typeof===as}function hy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Do=/\/+/g;function nr(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hy(""+e.key):t.toString(36)}function dy(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ir,Ir):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function pl(e,t,n,l,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(i){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case as:case ey:u=!0;break;case ld:return u=e._init,pl(u(e._payload),t,n,l,a)}}if(u)return a=a(e),u=l===""?"."+nr(e,0):l,Oo(a)?(n="",u!=null&&(n=u.replace(Do,"$&/")+"/"),pl(a,t,n,"",function(s){return s})):a!=null&&(cs(a)&&(a=fy(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Do,"$&/")+"/")+u)),t.push(a)),1;u=0;var r=l===""?".":l+":";if(Oo(e))for(var c=0;c<e.length;c++)l=e[c],i=r+nr(l,c),u+=pl(l,t,n,i,a);else if(c=oy(e),typeof c=="function")for(e=c.call(e),c=0;!(l=e.next()).done;)l=l.value,i=r+nr(l,c++),u+=pl(l,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return pl(dy(e),t,n,l,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function yi(e,t,n){if(e==null)return e;var l=[],a=0;return pl(e,l,"","",function(i){return t.call(n,i,a++)}),l}function my(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jo=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)},py={map:yi,forEach:function(e,t,n){yi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yi(e,function(){t++}),t},toArray:function(e){return yi(e,function(t){return t})||[]},only:function(e){if(!cs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};G.Activity=sy;G.Children=py;G.Component=Il;G.Fragment=ty;G.Profiler=ly;G.PureComponent=is;G.StrictMode=ny;G.Suspense=ry;G.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=me;G.__COMPILER_RUNTIME={__proto__:null,c:function(e){return me.H.useMemoCache(e)}};G.cache=function(e){return function(){return e.apply(null,arguments)}};G.cacheSignal=function(){return null};G.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=id({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!cd.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(l[i]=t[i]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var u=Array(i),r=0;r<i;r++)u[r]=arguments[r+2];l.children=u}return rs(e.type,a,l)};G.createContext=function(e){return e={$$typeof:iy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ay,_context:e},e};G.createElement=function(e,t,n){var l,a={},i=null;if(t!=null)for(l in t.key!==void 0&&(i=""+t.key),t)cd.call(t,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(a[l]=t[l]);var u=arguments.length-2;if(u===1)a.children=n;else if(1<u){for(var r=Array(u),c=0;c<u;c++)r[c]=arguments[c+2];a.children=r}if(e&&e.defaultProps)for(l in u=e.defaultProps,u)a[l]===void 0&&(a[l]=u[l]);return rs(e,i,a)};G.createRef=function(){return{current:null}};G.forwardRef=function(e){return{$$typeof:uy,render:e}};G.isValidElement=cs;G.lazy=function(e){return{$$typeof:ld,_payload:{_status:-1,_result:e},_init:my}};G.memo=function(e,t){return{$$typeof:cy,type:e,compare:t===void 0?null:t}};G.startTransition=function(e){var t=me.T,n={};me.T=n;try{var l=e(),a=me.S;a!==null&&a(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(Ir,jo)}catch(i){jo(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),me.T=t}};G.unstable_useCacheRefresh=function(){return me.H.useCacheRefresh()};G.use=function(e){return me.H.use(e)};G.useActionState=function(e,t,n){return me.H.useActionState(e,t,n)};G.useCallback=function(e,t){return me.H.useCallback(e,t)};G.useContext=function(e){return me.H.useContext(e)};G.useDebugValue=function(){};G.useDeferredValue=function(e,t){return me.H.useDeferredValue(e,t)};G.useEffect=function(e,t){return me.H.useEffect(e,t)};G.useEffectEvent=function(e){return me.H.useEffectEvent(e)};G.useId=function(){return me.H.useId()};G.useImperativeHandle=function(e,t,n){return me.H.useImperativeHandle(e,t,n)};G.useInsertionEffect=function(e,t){return me.H.useInsertionEffect(e,t)};G.useLayoutEffect=function(e,t){return me.H.useLayoutEffect(e,t)};G.useMemo=function(e,t){return me.H.useMemo(e,t)};G.useOptimistic=function(e,t){return me.H.useOptimistic(e,t)};G.useReducer=function(e,t,n){return me.H.useReducer(e,t,n)};G.useRef=function(e){return me.H.useRef(e)};G.useState=function(e){return me.H.useState(e)};G.useSyncExternalStore=function(e,t,n){return me.H.useSyncExternalStore(e,t,n)};G.useTransition=function(){return me.H.useTransition()};G.version="19.2.4";nd.exports=G;var W=nd.exports;const ju=Ou(W);var sd={exports:{}},Mu={},od={exports:{}},fd={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(A,k){var L=A.length;A.push(k);e:for(;0<L;){var Z=L-1>>>1,y=A[Z];if(0<a(y,k))A[Z]=k,A[L]=y,L=Z;else break e}}function n(A){return A.length===0?null:A[0]}function l(A){if(A.length===0)return null;var k=A[0],L=A.pop();if(L!==k){A[0]=L;e:for(var Z=0,y=A.length,Te=y>>>1;Z<Te;){var De=2*(Z+1)-1,v=A[De],be=De+1,Ze=A[be];if(0>a(v,L))be<y&&0>a(Ze,v)?(A[Z]=Ze,A[be]=L,Z=be):(A[Z]=v,A[De]=L,Z=De);else if(be<y&&0>a(Ze,L))A[Z]=Ze,A[be]=L,Z=be;else break e}}return k}function a(A,k){var L=A.sortIndex-k.sortIndex;return L!==0?L:A.id-k.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,r=u.now();e.unstable_now=function(){return u.now()-r}}var c=[],s=[],o=1,h=null,d=3,f=!1,x=!1,S=!1,O=!1,m=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function E(A){for(var k=n(s);k!==null;){if(k.callback===null)l(s);else if(k.startTime<=A)l(s),k.sortIndex=k.expirationTime,t(c,k);else break;k=n(s)}}function _(A){if(S=!1,E(A),!x)if(n(c)!==null)x=!0,T||(T=!0,B());else{var k=n(s);k!==null&&Q(_,k.startTime-A)}}var T=!1,C=-1,M=5,j=-1;function U(){return O?!0:!(e.unstable_now()-j<M)}function R(){if(O=!1,T){var A=e.unstable_now();j=A;var k=!0;try{e:{x=!1,S&&(S=!1,g(C),C=-1),f=!0;var L=d;try{t:{for(E(A),h=n(c);h!==null&&!(h.expirationTime>A&&U());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,d=h.priorityLevel;var y=Z(h.expirationTime<=A);if(A=e.unstable_now(),typeof y=="function"){h.callback=y,E(A),k=!0;break t}h===n(c)&&l(c),E(A)}else l(c);h=n(c)}if(h!==null)k=!0;else{var Te=n(s);Te!==null&&Q(_,Te.startTime-A),k=!1}}break e}finally{h=null,d=L,f=!1}k=void 0}}finally{k?B():T=!1}}}var B;if(typeof b=="function")B=function(){b(R)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ge=ne.port2;ne.port1.onmessage=R,B=function(){ge.postMessage(null)}}else B=function(){m(R,0)};function Q(A,k){C=m(function(){A(e.unstable_now())},k)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(A){switch(d){case 1:case 2:case 3:var k=3;break;default:k=d}var L=d;d=k;try{return A()}finally{d=L}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(A,k){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var L=d;d=A;try{return k()}finally{d=L}},e.unstable_scheduleCallback=function(A,k,L){var Z=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Z+L:Z):L=Z,A){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=L+y,A={id:o++,callback:k,priorityLevel:A,startTime:L,expirationTime:y,sortIndex:-1},L>Z?(A.sortIndex=L,t(s,A),n(c)===null&&A===n(s)&&(S?(g(C),C=-1):S=!0,Q(_,L-Z))):(A.sortIndex=y,t(c,A),x||f||(x=!0,T||(T=!0,B()))),A},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(A){var k=d;return function(){var L=d;d=k;try{return A.apply(this,arguments)}finally{d=L}}}})(fd);od.exports=fd;var gy=od.exports,hd={exports:{}},Xe={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yy=W;function dd(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 hn(){}var Ve={d:{f:hn,r:function(){throw Error(dd(522))},D:hn,C:hn,L:hn,m:hn,X:hn,S:hn,M:hn},p:0,findDOMNode:null},by=Symbol.for("react.portal");function xy(e,t,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:by,key:l==null?null:""+l,children:e,containerInfo:t,implementation:n}}var Ea=yy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ru(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Xe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ve;Xe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(dd(299));return xy(e,t,null,n)};Xe.flushSync=function(e){var t=Ea.T,n=Ve.p;try{if(Ea.T=null,Ve.p=2,e)return e()}finally{Ea.T=t,Ve.p=n,Ve.d.f()}};Xe.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ve.d.C(e,t))};Xe.prefetchDNS=function(e){typeof e=="string"&&Ve.d.D(e)};Xe.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,l=Ru(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ve.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:i}):n==="script"&&Ve.d.X(e,{crossOrigin:l,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Xe.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Ru(t.as,t.crossOrigin);Ve.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ve.d.M(e)};Xe.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,l=Ru(n,t.crossOrigin);Ve.d.L(e,n,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Xe.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Ru(t.as,t.crossOrigin);Ve.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ve.d.m(e)};Xe.requestFormReset=function(e){Ve.d.r(e)};Xe.unstable_batchedUpdates=function(e,t){return e(t)};Xe.useFormState=function(e,t,n){return Ea.H.useFormState(e,t,n)};Xe.useFormStatus=function(){return Ea.H.useHostTransitionStatus()};Xe.version="19.2.4";function md(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(md)}catch(e){console.error(e)}}md(),hd.exports=Xe;var vy=hd.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Oe=gy,pd=W,Sy=vy;function w(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 gd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ti(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function yd(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 bd(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 Mo(e){if(ti(e)!==e)throw Error(w(188))}function Ey(e){var t=e.alternate;if(!t){if(t=ti(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Mo(a),e;if(i===l)return Mo(a),t;i=i.sibling}throw Error(w(188))}if(n.return!==l.return)n=a,l=i;else{for(var u=!1,r=a.child;r;){if(r===n){u=!0,n=a,l=i;break}if(r===l){u=!0,l=a,n=i;break}r=r.sibling}if(!u){for(r=i.child;r;){if(r===n){u=!0,n=i,l=a;break}if(r===l){u=!0,l=i,n=a;break}r=r.sibling}if(!u)throw Error(w(189))}}if(n.alternate!==l)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function xd(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=xd(e),t!==null)return t;e=e.sibling}return null}var pe=Object.assign,Ty=Symbol.for("react.element"),bi=Symbol.for("react.transitional.element"),ya=Symbol.for("react.portal"),bl=Symbol.for("react.fragment"),vd=Symbol.for("react.strict_mode"),$r=Symbol.for("react.profiler"),Sd=Symbol.for("react.consumer"),Wt=Symbol.for("react.context"),ss=Symbol.for("react.forward_ref"),Wr=Symbol.for("react.suspense"),Pr=Symbol.for("react.suspense_list"),os=Symbol.for("react.memo"),mn=Symbol.for("react.lazy"),ec=Symbol.for("react.activity"),Ay=Symbol.for("react.memo_cache_sentinel"),Ro=Symbol.iterator;function ca(e){return e===null||typeof e!="object"?null:(e=Ro&&e[Ro]||e["@@iterator"],typeof e=="function"?e:null)}var zy=Symbol.for("react.client.reference");function tc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===zy?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bl:return"Fragment";case $r:return"Profiler";case vd:return"StrictMode";case Wr:return"Suspense";case Pr:return"SuspenseList";case ec:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ya:return"Portal";case Wt:return e.displayName||"Context";case Sd:return(e._context.displayName||"Context")+".Consumer";case ss:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case os:return t=e.displayName||null,t!==null?t:tc(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return tc(e(t))}catch{}}return null}var ba=Array.isArray,H=pd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Sy.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jn={pending:!1,data:null,method:null,action:null},nc=[],xl=-1;function qt(e){return{current:e}}function Re(e){0>xl||(e.current=nc[xl],nc[xl]=null,xl--)}function fe(e,t){xl++,nc[xl]=e.current,e.current=t}var Lt=qt(null),qa=qt(null),zn=qt(null),eu=qt(null);function tu(e,t){switch(fe(zn,t),fe(qa,e),fe(Lt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gf(t),e=Yp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Re(Lt),fe(Lt,e)}function Hl(){Re(Lt),Re(qa),Re(zn)}function lc(e){e.memoizedState!==null&&fe(eu,e);var t=Lt.current,n=Yp(t,e.type);t!==n&&(fe(qa,e),fe(Lt,n))}function nu(e){qa.current===e&&(Re(Lt),Re(qa)),eu.current===e&&(Re(eu),$a._currentValue=Jn)}var lr,Uo;function Vn(e){if(lr===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);lr=t&&t[1]||"",Uo=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+lr+e+Uo}var ar=!1;function ir(e,t){if(!e||ar)return"";ar=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(f){var d=f}Reflect.construct(e,[],h)}else{try{h.call()}catch(f){d=f}e.call(h.prototype)}}else{try{throw Error()}catch(f){d=f}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(f){if(f&&d&&typeof f.stack=="string")return[f.stack,d.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),u=i[0],r=i[1];if(u&&r){var c=u.split(`
`),s=r.split(`
`);for(a=l=0;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;for(;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;if(l===c.length||a===s.length)for(l=c.length-1,a=s.length-1;1<=l&&0<=a&&c[l]!==s[a];)a--;for(;1<=l&&0<=a;l--,a--)if(c[l]!==s[a]){if(l!==1||a!==1)do if(l--,a--,0>a||c[l]!==s[a]){var o=`
`+c[l].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=l&&0<=a);break}}}finally{ar=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Vn(n):""}function wy(e,t){switch(e.tag){case 26:case 27:case 5:return Vn(e.type);case 16:return Vn("Lazy");case 13:return e.child!==t&&t!==null?Vn("Suspense Fallback"):Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 15:return ir(e.type,!1);case 11:return ir(e.type.render,!1);case 1:return ir(e.type,!0);case 31:return Vn("Activity");default:return""}}function Bo(e){try{var t="",n=null;do t+=wy(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var ac=Object.prototype.hasOwnProperty,fs=Oe.unstable_scheduleCallback,ur=Oe.unstable_cancelCallback,Cy=Oe.unstable_shouldYield,Ny=Oe.unstable_requestPaint,ot=Oe.unstable_now,_y=Oe.unstable_getCurrentPriorityLevel,Ed=Oe.unstable_ImmediatePriority,Td=Oe.unstable_UserBlockingPriority,lu=Oe.unstable_NormalPriority,ky=Oe.unstable_LowPriority,Ad=Oe.unstable_IdlePriority,Oy=Oe.log,Dy=Oe.unstable_setDisableYieldValue,ni=null,ft=null;function vn(e){if(typeof Oy=="function"&&Dy(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(ni,e)}catch{}}var ht=Math.clz32?Math.clz32:Ry,jy=Math.log,My=Math.LN2;function Ry(e){return e>>>=0,e===0?32:31-(jy(e)/My|0)|0}var xi=256,vi=262144,Si=4194304;function Xn(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 Uu(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var a=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var r=l&134217727;return r!==0?(l=r&~i,l!==0?a=Xn(l):(u&=r,u!==0?a=Xn(u):n||(n=r&~e,n!==0&&(a=Xn(n))))):(r=l&~i,r!==0?a=Xn(r):u!==0?a=Xn(u):n||(n=l&~e,n!==0&&(a=Xn(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function li(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Uy(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 zd(){var e=Si;return Si<<=1,!(Si&62914560)&&(Si=4194304),e}function rr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ai(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function By(e,t,n,l,a,i){var u=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,c=e.expirationTimes,s=e.hiddenUpdates;for(n=u&~n;0<n;){var o=31-ht(n),h=1<<o;r[o]=0,c[o]=-1;var d=s[o];if(d!==null)for(s[o]=null,o=0;o<d.length;o++){var f=d[o];f!==null&&(f.lane&=-536870913)}n&=~h}l!==0&&wd(e,l,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function wd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Cd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-ht(n),a=1<<l;a&t|e[l]&t&&(e[l]|=t),n&=~a}}function Nd(e,t){var n=t&-t;return n=n&42?1:hs(n),n&(e.suspendedLanes|t)?0:n}function hs(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 ds(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function _d(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:Wp(e.type))}function Lo(e,t){var n=te.p;try{return te.p=e,t()}finally{te.p=n}}var Ln=Math.random().toString(36).slice(2),Be="__reactFiber$"+Ln,et="__reactProps$"+Ln,$l="__reactContainer$"+Ln,ic="__reactEvents$"+Ln,Ly="__reactListeners$"+Ln,Hy="__reactHandles$"+Ln,Ho="__reactResources$"+Ln,ii="__reactMarker$"+Ln;function ms(e){delete e[Be],delete e[et],delete e[ic],delete e[Ly],delete e[Hy]}function vl(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$l]||n[Be]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kf(e);e!==null;){if(n=e[Be])return n;e=Kf(e)}return t}e=n,n=e.parentNode}return null}function Wl(e){if(e=e[Be]||e[$l]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(w(33))}function kl(e){var t=e[Ho];return t||(t=e[Ho]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Me(e){e[ii]=!0}var kd=new Set,Od={};function al(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Od[e]=t,e=0;e<t.length;e++)kd.add(t[e])}var qy=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]*$"),qo={},Yo={};function Yy(e){return ac.call(Yo,e)?!0:ac.call(qo,e)?!1:qy.test(e)?Yo[e]=!0:(qo[e]=!0,!1)}function Ui(e,t,n){if(Yy(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 Ei(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 Qt(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 Dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gy(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 a=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(u){n=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(u){n=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uc(e){if(!e._valueTracker){var t=Dd(e)?"checked":"value";e._valueTracker=Gy(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=Dd(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function au(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 Vy=/[\n"\\]/g;function Et(e){return e.replace(Vy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rc(e,t,n,l,a,i,u,r){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+bt(t)):e.value!==""+bt(t)&&(e.value=""+bt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?cc(e,u,bt(t)):n!=null?cc(e,u,bt(n)):l!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+bt(r):e.removeAttribute("name")}function Md(e,t,n,l,a,i,u,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){uc(e);return}n=n!=null?""+bt(n):"",t=t!=null?""+bt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=r?e.checked:!!l,e.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),uc(e)}function cc(e,t,n){t==="number"&&au(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ol(e,t,n,l){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&l&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,l&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Rd(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 Ud(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(w(92));if(ba(l)){if(1<l.length)throw Error(w(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),uc(e)}function Yl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xy=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 Go(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||Xy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Bd(e,t,n){if(t!=null&&typeof t!="object")throw Error(w(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 a in t)l=t[a],t.hasOwnProperty(a)&&n[a]!==l&&Go(e,a,l)}else for(var i in t)t.hasOwnProperty(i)&&Go(e,i,t[i])}function ps(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 Qy=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"]]),Zy=/^[\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 Bi(e){return Zy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pt(){}var sc=null;function gs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,Dl=null;function Vo(e){var t=Wl(e);if(t&&(e=t.stateNode)){var n=e[et]||null;e:switch(e=t.stateNode,t.type){case"input":if(rc(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="'+Et(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var a=l[et]||null;if(!a)throw Error(w(90));rc(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&jd(l)}break e;case"textarea":Rd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ol(e,!!n.multiple,t,!1)}}}var cr=!1;function Ld(e,t,n){if(cr)return e(t,n);cr=!0;try{var l=e(t);return l}finally{if(cr=!1,(Sl!==null||Dl!==null)&&(Ju(),Sl&&(t=Sl,e=Dl,Dl=Sl=null,Vo(t),e)))for(t=0;t<e.length;t++)Vo(e[t])}}function Ya(e,t){var n=e.stateNode;if(n===null)return null;var l=n[et]||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(w(231,t,typeof n));return n}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=!1;if(an)try{var sa={};Object.defineProperty(sa,"passive",{get:function(){oc=!0}}),window.addEventListener("test",sa,sa),window.removeEventListener("test",sa,sa)}catch{oc=!1}var Sn=null,ys=null,Li=null;function Hd(){if(Li)return Li;var e,t=ys,n=t.length,l,a="value"in Sn?Sn.value:Sn.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var u=n-e;for(l=1;l<=u&&t[n-l]===a[i-l];l++);return Li=a.slice(e,1<l?1-l:void 0)}function Hi(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 Ti(){return!0}function Xo(){return!1}function tt(e){function t(n,l,a,i,u){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ti:Xo,this.isPropagationStopped=Xo,this}return pe(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=Ti)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ti)},persist:function(){},isPersistent:Ti}),t}var il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bu=tt(il),ui=pe({},il,{view:0,detail:0}),Ky=tt(ui),sr,or,oa,Lu=pe({},ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,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!==oa&&(oa&&e.type==="mousemove"?(sr=e.screenX-oa.screenX,or=e.screenY-oa.screenY):or=sr=0,oa=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:or}}),Qo=tt(Lu),Jy=pe({},Lu,{dataTransfer:0}),Fy=tt(Jy),Iy=pe({},ui,{relatedTarget:0}),fr=tt(Iy),$y=pe({},il,{animationName:0,elapsedTime:0,pseudoElement:0}),Wy=tt($y),Py=pe({},il,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e0=tt(Py),t0=pe({},il,{data:0}),Zo=tt(t0),n0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l0={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"},a0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=a0[e])?!!t[e]:!1}function bs(){return i0}var u0=pe({},ui,{key:function(e){if(e.key){var t=n0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(e){return e.type==="keypress"?Hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),r0=tt(u0),c0=pe({},Lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ko=tt(c0),s0=pe({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),o0=tt(s0),f0=pe({},il,{propertyName:0,elapsedTime:0,pseudoElement:0}),h0=tt(f0),d0=pe({},Lu,{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}),m0=tt(d0),p0=pe({},il,{newState:0,oldState:0}),g0=tt(p0),y0=[9,13,27,32],xs=an&&"CompositionEvent"in window,Ta=null;an&&"documentMode"in document&&(Ta=document.documentMode);var b0=an&&"TextEvent"in window&&!Ta,qd=an&&(!xs||Ta&&8<Ta&&11>=Ta),Jo=" ",Fo=!1;function Yd(e,t){switch(e){case"keyup":return y0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var El=!1;function x0(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(Fo=!0,Jo);case"textInput":return e=t.data,e===Jo&&Fo?null:e;default:return null}}function v0(e,t){if(El)return e==="compositionend"||!xs&&Yd(e,t)?(e=Hd(),Li=ys=Sn=null,El=!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 qd&&t.locale!=="ko"?null:t.data;default:return null}}var S0={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 Io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!S0[e.type]:t==="textarea"}function Vd(e,t,n,l){Sl?Dl?Dl.push(l):Dl=[l]:Sl=l,t=Eu(t,"onChange"),0<t.length&&(n=new Bu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Aa=null,Ga=null;function E0(e){Lp(e,0)}function Hu(e){var t=xa(e);if(jd(t))return e}function $o(e,t){if(e==="change")return t}var Xd=!1;if(an){var hr;if(an){var dr="oninput"in document;if(!dr){var Wo=document.createElement("div");Wo.setAttribute("oninput","return;"),dr=typeof Wo.oninput=="function"}hr=dr}else hr=!1;Xd=hr&&(!document.documentMode||9<document.documentMode)}function Po(){Aa&&(Aa.detachEvent("onpropertychange",Qd),Ga=Aa=null)}function Qd(e){if(e.propertyName==="value"&&Hu(Ga)){var t=[];Vd(t,Ga,e,gs(e)),Ld(E0,t)}}function T0(e,t,n){e==="focusin"?(Po(),Aa=t,Ga=n,Aa.attachEvent("onpropertychange",Qd)):e==="focusout"&&Po()}function A0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hu(Ga)}function z0(e,t){if(e==="click")return Hu(t)}function w0(e,t){if(e==="input"||e==="change")return Hu(t)}function C0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:C0;function Va(e,t){if(mt(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 a=n[l];if(!ac.call(t,a)||!mt(e[a],t[a]))return!1}return!0}function ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tf(e,t){var n=ef(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=ef(n)}}function Zd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=au(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=au(e.document)}return t}function vs(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 N0=an&&"documentMode"in document&&11>=document.documentMode,Tl=null,fc=null,za=null,hc=!1;function nf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hc||Tl==null||Tl!==au(l)||(l=Tl,"selectionStart"in l&&vs(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}),za&&Va(za,l)||(za=l,l=Eu(fc,"onSelect"),0<l.length&&(t=new Bu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Tl)))}function Gn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Al={animationend:Gn("Animation","AnimationEnd"),animationiteration:Gn("Animation","AnimationIteration"),animationstart:Gn("Animation","AnimationStart"),transitionrun:Gn("Transition","TransitionRun"),transitionstart:Gn("Transition","TransitionStart"),transitioncancel:Gn("Transition","TransitionCancel"),transitionend:Gn("Transition","TransitionEnd")},mr={},Jd={};an&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete Al.animationend.animation,delete Al.animationiteration.animation,delete Al.animationstart.animation),"TransitionEvent"in window||delete Al.transitionend.transition);function ul(e){if(mr[e])return mr[e];if(!Al[e])return e;var t=Al[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jd)return mr[e]=t[n];return e}var Fd=ul("animationend"),Id=ul("animationiteration"),$d=ul("animationstart"),_0=ul("transitionrun"),k0=ul("transitionstart"),O0=ul("transitioncancel"),Wd=ul("transitionend"),Pd=new Map,dc="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(" ");dc.push("scrollEnd");function Ot(e,t){Pd.set(e,t),al(t,[e])}var iu=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)},yt=[],zl=0,Ss=0;function qu(){for(var e=zl,t=Ss=zl=0;t<e;){var n=yt[t];yt[t++]=null;var l=yt[t];yt[t++]=null;var a=yt[t];yt[t++]=null;var i=yt[t];if(yt[t++]=null,l!==null&&a!==null){var u=l.pending;u===null?a.next=a:(a.next=u.next,u.next=a),l.pending=a}i!==0&&em(n,a,i)}}function Yu(e,t,n,l){yt[zl++]=e,yt[zl++]=t,yt[zl++]=n,yt[zl++]=l,Ss|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Es(e,t,n,l){return Yu(e,t,n,l),uu(e)}function rl(e,t){return Yu(e,null,null,t),uu(e)}function em(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-ht(n),e=i.hiddenUpdates,l=e[a],l===null?e[a]=[t]:l.push(t),t.lane=n|536870912),i):null}function uu(e){if(50<Ma)throw Ma=0,Mc=null,Error(w(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wl={};function D0(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 rt(e,t,n,l){return new D0(e,t,n,l)}function Ts(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tn(e,t){var n=e.alternate;return n===null?(n=rt(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 tm(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 qi(e,t,n,l,a,i){var u=0;if(l=e,typeof e=="function")Ts(e)&&(u=1);else if(typeof e=="string")u=B1(e,n,Lt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ec:return e=rt(31,n,t,a),e.elementType=ec,e.lanes=i,e;case bl:return Fn(n.children,a,i,t);case vd:u=8,a|=24;break;case $r:return e=rt(12,n,t,a|2),e.elementType=$r,e.lanes=i,e;case Wr:return e=rt(13,n,t,a),e.elementType=Wr,e.lanes=i,e;case Pr:return e=rt(19,n,t,a),e.elementType=Pr,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wt:u=10;break e;case Sd:u=9;break e;case ss:u=11;break e;case os:u=14;break e;case mn:u=16,l=null;break e}u=29,n=Error(w(130,e===null?"null":typeof e,"")),l=null}return t=rt(u,n,t,a),t.elementType=e,t.type=l,t.lanes=i,t}function Fn(e,t,n,l){return e=rt(7,e,l,t),e.lanes=n,e}function pr(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function nm(e){var t=rt(18,null,null,0);return t.stateNode=e,t}function gr(e,t,n){return t=rt(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 Tt(e,t){if(typeof e=="object"&&e!==null){var n=lf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Bo(t)},lf.set(e,t),t)}return{value:e,source:t,stack:Bo(t)}}var Cl=[],Nl=0,ru=null,Xa=0,xt=[],vt=0,Mn=null,Rt=1,Ut="";function It(e,t){Cl[Nl++]=Xa,Cl[Nl++]=ru,ru=e,Xa=t}function lm(e,t,n){xt[vt++]=Rt,xt[vt++]=Ut,xt[vt++]=Mn,Mn=e;var l=Rt;e=Ut;var a=32-ht(l)-1;l&=~(1<<a),n+=1;var i=32-ht(t)+a;if(30<i){var u=a-a%5;i=(l&(1<<u)-1).toString(32),l>>=u,a-=u,Rt=1<<32-ht(t)+a|n<<a|l,Ut=i+e}else Rt=1<<i|n<<a|l,Ut=e}function As(e){e.return!==null&&(It(e,1),lm(e,1,0))}function zs(e){for(;e===ru;)ru=Cl[--Nl],Cl[Nl]=null,Xa=Cl[--Nl],Cl[Nl]=null;for(;e===Mn;)Mn=xt[--vt],xt[vt]=null,Ut=xt[--vt],xt[vt]=null,Rt=xt[--vt],xt[vt]=null}function am(e,t){xt[vt++]=Rt,xt[vt++]=Ut,xt[vt++]=Mn,Rt=t.id,Ut=t.overflow,Mn=e}var Le=null,de=null,$=!1,wn=null,At=!1,mc=Error(w(519));function Rn(e){var t=Error(w(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qa(Tt(t,e)),mc}function af(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[Be]=e,t[et]=l,n){case"dialog":K("cancel",t),K("close",t);break;case"iframe":case"object":case"embed":K("load",t);break;case"video":case"audio":for(n=0;n<Fa.length;n++)K(Fa[n],t);break;case"source":K("error",t);break;case"img":case"image":case"link":K("error",t),K("load",t);break;case"details":K("toggle",t);break;case"input":K("invalid",t),Md(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":K("invalid",t);break;case"textarea":K("invalid",t),Ud(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||qp(t.textContent,n)?(l.popover!=null&&(K("beforetoggle",t),K("toggle",t)),l.onScroll!=null&&K("scroll",t),l.onScrollEnd!=null&&K("scrollend",t),l.onClick!=null&&(t.onclick=Pt),t=!0):t=!1,t||Rn(e,!0)}function uf(e){for(Le=e.return;Le;)switch(Le.tag){case 5:case 31:case 13:At=!1;return;case 27:case 3:At=!0;return;default:Le=Le.return}}function hl(e){if(e!==Le)return!1;if(!$)return uf(e),$=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Hc(e.type,e.memoizedProps)),n=!n),n&&de&&Rn(e),uf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));de=Zf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));de=Zf(e)}else t===27?(t=de,Hn(e.type)?(e=Vc,Vc=null,de=e):de=t):de=Le?wt(e.stateNode.nextSibling):null;return!0}function Pn(){de=Le=null,$=!1}function yr(){var e=wn;return e!==null&&($e===null?$e=e:$e.push.apply($e,e),wn=null),e}function Qa(e){wn===null?wn=[e]:wn.push(e)}var pc=qt(null),cl=null,en=null;function gn(e,t,n){fe(pc,t._currentValue),t._currentValue=n}function nn(e){e._currentValue=pc.current,Re(pc)}function gc(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 yc(e,t,n,l){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var u=a.child;i=i.firstContext;e:for(;i!==null;){var r=i;i=a;for(var c=0;c<t.length;c++)if(r.context===t[c]){i.lanes|=n,r=i.alternate,r!==null&&(r.lanes|=n),gc(i.return,n,e),l||(u=null);break e}i=r.next}}else if(a.tag===18){if(u=a.return,u===null)throw Error(w(341));u.lanes|=n,i=u.alternate,i!==null&&(i.lanes|=n),gc(u,n,e),u=null}else u=a.child;if(u!==null)u.return=a;else for(u=a;u!==null;){if(u===e){u=null;break}if(a=u.sibling,a!==null){a.return=u.return,u=a;break}u=u.return}a=u}}function Pl(e,t,n,l){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var u=a.alternate;if(u===null)throw Error(w(387));if(u=u.memoizedProps,u!==null){var r=a.type;mt(a.pendingProps.value,u.value)||(e!==null?e.push(r):e=[r])}}else if(a===eu.current){if(u=a.alternate,u===null)throw Error(w(387));u.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push($a):e=[$a])}a=a.return}e!==null&&yc(t,e,n,l),t.flags|=262144}function cu(e){for(e=e.firstContext;e!==null;){if(!mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function el(e){cl=e,en=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function He(e){return im(cl,e)}function Ai(e,t){return cl===null&&el(e),im(e,t)}function im(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},en===null){if(e===null)throw Error(w(308));en=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else en=en.next=t;return n}var j0=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()})}},M0=Oe.unstable_scheduleCallback,R0=Oe.unstable_NormalPriority,Ce={$$typeof:Wt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ws(){return{controller:new j0,data:new Map,refCount:0}}function ri(e){e.refCount--,e.refCount===0&&M0(R0,function(){e.controller.abort()})}var wa=null,bc=0,Gl=0,jl=null;function U0(e,t){if(wa===null){var n=wa=[];bc=0,Gl=$s(),jl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return bc++,t.then(rf,rf),t}function rf(){if(--bc===0&&wa!==null){jl!==null&&(jl.status="fulfilled");var e=wa;wa=null,Gl=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function B0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var cf=H.S;H.S=function(e,t){xp=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&U0(e,t),cf!==null&&cf(e,t)};var In=qt(null);function Cs(){var e=In.current;return e!==null?e:ce.pooledCache}function Yi(e,t){t===null?fe(In,In.current):fe(In,t.pool)}function um(){var e=Cs();return e===null?null:{parent:Ce._currentValue,pool:e}}var ea=Error(w(460)),Ns=Error(w(474)),Gu=Error(w(542)),su={then:function(){}};function sf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rm(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Pt,Pt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e;default:if(typeof t.status=="string")t.then(Pt,Pt);else{if(e=ce,e!==null&&100<e.shellSuspendCounter)throw Error(w(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=l}},function(l){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e}throw $n=t,ea}}function Qn(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?($n=n,ea):n}}var $n=null;function of(){if($n===null)throw Error(w(459));var e=$n;return $n=null,e}function ff(e){if(e===ea||e===Gu)throw Error(w(483))}var Ml=null,Za=0;function zi(e){var t=Za;return Za+=1,Ml===null&&(Ml=[]),rm(Ml,e,t)}function fa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(e,t){throw t.$$typeof===Ty?Error(w(525)):(e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cm(e){function t(m,g){if(e){var b=m.deletions;b===null?(m.deletions=[g],m.flags|=16):b.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function l(m){for(var g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function a(m,g){return m=tn(m,g),m.index=0,m.sibling=null,m}function i(m,g,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<g?(m.flags|=67108866,g):b):(m.flags|=67108866,g)):(m.flags|=1048576,g)}function u(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function r(m,g,b,E){return g===null||g.tag!==6?(g=pr(b,m.mode,E),g.return=m,g):(g=a(g,b),g.return=m,g)}function c(m,g,b,E){var _=b.type;return _===bl?o(m,g,b.props.children,E,b.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===mn&&Qn(_)===g.type)?(g=a(g,b.props),fa(g,b),g.return=m,g):(g=qi(b.type,b.key,b.props,null,m.mode,E),fa(g,b),g.return=m,g)}function s(m,g,b,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=gr(b,m.mode,E),g.return=m,g):(g=a(g,b.children||[]),g.return=m,g)}function o(m,g,b,E,_){return g===null||g.tag!==7?(g=Fn(b,m.mode,E,_),g.return=m,g):(g=a(g,b),g.return=m,g)}function h(m,g,b){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=pr(""+g,m.mode,b),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case bi:return b=qi(g.type,g.key,g.props,null,m.mode,b),fa(b,g),b.return=m,b;case ya:return g=gr(g,m.mode,b),g.return=m,g;case mn:return g=Qn(g),h(m,g,b)}if(ba(g)||ca(g))return g=Fn(g,m.mode,b,null),g.return=m,g;if(typeof g.then=="function")return h(m,zi(g),b);if(g.$$typeof===Wt)return h(m,Ai(m,g),b);wi(m,g)}return null}function d(m,g,b,E){var _=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return _!==null?null:r(m,g,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case bi:return b.key===_?c(m,g,b,E):null;case ya:return b.key===_?s(m,g,b,E):null;case mn:return b=Qn(b),d(m,g,b,E)}if(ba(b)||ca(b))return _!==null?null:o(m,g,b,E,null);if(typeof b.then=="function")return d(m,g,zi(b),E);if(b.$$typeof===Wt)return d(m,g,Ai(m,b),E);wi(m,b)}return null}function f(m,g,b,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return m=m.get(b)||null,r(g,m,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case bi:return m=m.get(E.key===null?b:E.key)||null,c(g,m,E,_);case ya:return m=m.get(E.key===null?b:E.key)||null,s(g,m,E,_);case mn:return E=Qn(E),f(m,g,b,E,_)}if(ba(E)||ca(E))return m=m.get(b)||null,o(g,m,E,_,null);if(typeof E.then=="function")return f(m,g,b,zi(E),_);if(E.$$typeof===Wt)return f(m,g,b,Ai(g,E),_);wi(g,E)}return null}function x(m,g,b,E){for(var _=null,T=null,C=g,M=g=0,j=null;C!==null&&M<b.length;M++){C.index>M?(j=C,C=null):j=C.sibling;var U=d(m,C,b[M],E);if(U===null){C===null&&(C=j);break}e&&C&&U.alternate===null&&t(m,C),g=i(U,g,M),T===null?_=U:T.sibling=U,T=U,C=j}if(M===b.length)return n(m,C),$&&It(m,M),_;if(C===null){for(;M<b.length;M++)C=h(m,b[M],E),C!==null&&(g=i(C,g,M),T===null?_=C:T.sibling=C,T=C);return $&&It(m,M),_}for(C=l(C);M<b.length;M++)j=f(C,m,M,b[M],E),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?M:j.key),g=i(j,g,M),T===null?_=j:T.sibling=j,T=j);return e&&C.forEach(function(R){return t(m,R)}),$&&It(m,M),_}function S(m,g,b,E){if(b==null)throw Error(w(151));for(var _=null,T=null,C=g,M=g=0,j=null,U=b.next();C!==null&&!U.done;M++,U=b.next()){C.index>M?(j=C,C=null):j=C.sibling;var R=d(m,C,U.value,E);if(R===null){C===null&&(C=j);break}e&&C&&R.alternate===null&&t(m,C),g=i(R,g,M),T===null?_=R:T.sibling=R,T=R,C=j}if(U.done)return n(m,C),$&&It(m,M),_;if(C===null){for(;!U.done;M++,U=b.next())U=h(m,U.value,E),U!==null&&(g=i(U,g,M),T===null?_=U:T.sibling=U,T=U);return $&&It(m,M),_}for(C=l(C);!U.done;M++,U=b.next())U=f(C,m,M,U.value,E),U!==null&&(e&&U.alternate!==null&&C.delete(U.key===null?M:U.key),g=i(U,g,M),T===null?_=U:T.sibling=U,T=U);return e&&C.forEach(function(B){return t(m,B)}),$&&It(m,M),_}function O(m,g,b,E){if(typeof b=="object"&&b!==null&&b.type===bl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case bi:e:{for(var _=b.key;g!==null;){if(g.key===_){if(_=b.type,_===bl){if(g.tag===7){n(m,g.sibling),E=a(g,b.props.children),E.return=m,m=E;break e}}else if(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===mn&&Qn(_)===g.type){n(m,g.sibling),E=a(g,b.props),fa(E,b),E.return=m,m=E;break e}n(m,g);break}else t(m,g);g=g.sibling}b.type===bl?(E=Fn(b.props.children,m.mode,E,b.key),E.return=m,m=E):(E=qi(b.type,b.key,b.props,null,m.mode,E),fa(E,b),E.return=m,m=E)}return u(m);case ya:e:{for(_=b.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(m,g.sibling),E=a(g,b.children||[]),E.return=m,m=E;break e}else{n(m,g);break}else t(m,g);g=g.sibling}E=gr(b,m.mode,E),E.return=m,m=E}return u(m);case mn:return b=Qn(b),O(m,g,b,E)}if(ba(b))return x(m,g,b,E);if(ca(b)){if(_=ca(b),typeof _!="function")throw Error(w(150));return b=_.call(b),S(m,g,b,E)}if(typeof b.then=="function")return O(m,g,zi(b),E);if(b.$$typeof===Wt)return O(m,g,Ai(m,b),E);wi(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,g!==null&&g.tag===6?(n(m,g.sibling),E=a(g,b),E.return=m,m=E):(n(m,g),E=pr(b,m.mode,E),E.return=m,m=E),u(m)):n(m,g)}return function(m,g,b,E){try{Za=0;var _=O(m,g,b,E);return Ml=null,_}catch(C){if(C===ea||C===Gu)throw C;var T=rt(29,C,null,m.mode);return T.lanes=E,T.return=m,T}finally{}}}var tl=cm(!0),sm=cm(!1),pn=!1;function _s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(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 Cn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,ee&2){var a=l.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t,t=uu(e),em(e,null,n),t}return Yu(e,l,t,n),uu(e)}function Ca(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,Cd(e,n)}}function br(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,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 vc=!1;function Na(){if(vc){var e=jl;if(e!==null)throw e}}function _a(e,t,n,l){vc=!1;var a=e.updateQueue;pn=!1;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var c=r,s=c.next;c.next=null,u===null?i=s:u.next=s,u=c;var o=e.alternate;o!==null&&(o=o.updateQueue,r=o.lastBaseUpdate,r!==u&&(r===null?o.firstBaseUpdate=s:r.next=s,o.lastBaseUpdate=c))}if(i!==null){var h=a.baseState;u=0,o=s=c=null,r=i;do{var d=r.lane&-536870913,f=d!==r.lane;if(f?(F&d)===d:(l&d)===d){d!==0&&d===Gl&&(vc=!0),o!==null&&(o=o.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var x=e,S=r;d=t;var O=n;switch(S.tag){case 1:if(x=S.payload,typeof x=="function"){h=x.call(O,h,d);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=S.payload,d=typeof x=="function"?x.call(O,h,d):x,d==null)break e;h=pe({},h,d);break e;case 2:pn=!0}}d=r.callback,d!==null&&(e.flags|=64,f&&(e.flags|=8192),f=a.callbacks,f===null?a.callbacks=[d]:f.push(d))}else f={lane:d,tag:r.tag,payload:r.payload,callback:r.callback,next:null},o===null?(s=o=f,c=h):o=o.next=f,u|=d;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;f=r,r=f.next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}while(!0);o===null&&(c=h),a.baseState=c,a.firstBaseUpdate=s,a.lastBaseUpdate=o,i===null&&(a.shared.lanes=0),Bn|=u,e.lanes=u,e.memoizedState=h}}function om(e,t){if(typeof e!="function")throw Error(w(191,e));e.call(t)}function fm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)om(n[e],t)}var Vl=qt(null),ou=qt(0);function hf(e,t){e=sn,fe(ou,e),fe(Vl,t),sn=e|t.baseLanes}function Sc(){fe(ou,sn),fe(Vl,Vl.current)}function ks(){sn=ou.current,Re(Vl),Re(ou)}var pt=qt(null),zt=null;function yn(e){var t=e.alternate;fe(Se,Se.current&1),fe(pt,e),zt===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(zt=e)}function Ec(e){fe(Se,Se.current),fe(pt,e),zt===null&&(zt=e)}function hm(e){e.tag===22?(fe(Se,Se.current),fe(pt,e),zt===null&&(zt=e)):bn()}function bn(){fe(Se,Se.current),fe(pt,pt.current)}function ut(e){Re(pt),zt===e&&(zt=null),Re(Se)}var Se=qt(0);function fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yc(n)||Gc(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)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 un=0,V=null,ue=null,ze=null,hu=!1,Rl=!1,nl=!1,du=0,Ka=0,Ul=null,L0=0;function xe(){throw Error(w(321))}function Os(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mt(e[n],t[n]))return!1;return!0}function Ds(e,t,n,l,a,i){return un=i,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?Vm:Vs,nl=!1,i=n(l,a),nl=!1,Rl&&(i=mm(t,n,l,a)),dm(e),i}function dm(e){H.H=Ja;var t=ue!==null&&ue.next!==null;if(un=0,ze=ue=V=null,hu=!1,Ka=0,Ul=null,t)throw Error(w(300));e===null||Ne||(e=e.dependencies,e!==null&&cu(e)&&(Ne=!0))}function mm(e,t,n,l){V=e;var a=0;do{if(Rl&&(Ul=null),Ka=0,Rl=!1,25<=a)throw Error(w(301));if(a+=1,ze=ue=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}H.H=Xm,i=t(n,l)}while(Rl);return i}function H0(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],(ue!==null?ue.memoizedState:null)!==e&&(V.flags|=1024),t}function js(){var e=du!==0;return du=0,e}function Ms(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Rs(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}un=0,ze=ue=V=null,Rl=!1,Ka=du=0,Ul=null}function Ge(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?V.memoizedState=ze=e:ze=ze.next=e,ze}function Ee(){if(ue===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=ue.next;var t=ze===null?V.memoizedState:ze.next;if(t!==null)ze=t,ue=e;else{if(e===null)throw V.alternate===null?Error(w(467)):Error(w(310));ue=e,e={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},ze===null?V.memoizedState=ze=e:ze=ze.next=e}return ze}function Vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=Ka;return Ka+=1,Ul===null&&(Ul=[]),e=rm(Ul,e,t),t=V,(ze===null?t.memoizedState:ze.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?Vm:Vs),e}function Xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===Wt)return He(e)}throw Error(w(438,String(e)))}function Us(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=V.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Vu(),V.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]=Ay;return t.index++,n}function rn(e,t){return typeof t=="function"?t(e):t}function Gi(e){var t=Ee();return Bs(t,ue,e)}function Bs(e,t,n){var l=e.queue;if(l===null)throw Error(w(311));l.lastRenderedReducer=n;var a=e.baseQueue,i=l.pending;if(i!==null){if(a!==null){var u=a.next;a.next=i.next,i.next=u}t.baseQueue=a=i,l.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var r=u=null,c=null,s=t,o=!1;do{var h=s.lane&-536870913;if(h!==s.lane?(F&h)===h:(un&h)===h){var d=s.revertLane;if(d===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),h===Gl&&(o=!0);else if((un&d)===d){s=s.next,d===Gl&&(o=!0);continue}else h={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},c===null?(r=c=h,u=i):c=c.next=h,V.lanes|=d,Bn|=d;h=s.action,nl&&n(i,h),i=s.hasEagerState?s.eagerState:n(i,h)}else d={lane:h,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},c===null?(r=c=d,u=i):c=c.next=d,V.lanes|=h,Bn|=h;s=s.next}while(s!==null&&s!==t);if(c===null?u=i:c.next=r,!mt(i,e.memoizedState)&&(Ne=!0,o&&(n=jl,n!==null)))throw n;e.memoizedState=i,e.baseState=u,e.baseQueue=c,l.lastRenderedState=i}return a===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function xr(e){var t=Ee(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var l=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var u=a=a.next;do i=e(i,u.action),u=u.next;while(u!==a);mt(i,t.memoizedState)||(Ne=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,l]}function pm(e,t,n){var l=V,a=Ee(),i=$;if(i){if(n===void 0)throw Error(w(407));n=n()}else n=t();var u=!mt((ue||a).memoizedState,n);if(u&&(a.memoizedState=n,Ne=!0),a=a.queue,Ls(bm.bind(null,l,a,e),[e]),a.getSnapshot!==t||u||ze!==null&&ze.memoizedState.tag&1){if(l.flags|=2048,Xl(9,{destroy:void 0},ym.bind(null,l,a,n,t),null),ce===null)throw Error(w(349));i||un&127||gm(l,t,n)}return n}function gm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=Vu(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ym(e,t,n,l){t.value=n,t.getSnapshot=l,xm(t)&&vm(e)}function bm(e,t,n){return n(function(){xm(t)&&vm(e)})}function xm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mt(e,n)}catch{return!0}}function vm(e){var t=rl(e,2);t!==null&&We(t,e,2)}function Tc(e){var t=Ge();if(typeof e=="function"){var n=e;if(e=n(),nl){vn(!0);try{n()}finally{vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:e},t}function Sm(e,t,n,l){return e.baseState=n,Bs(e,ue,typeof l=="function"?l:rn)}function q0(e,t,n,l,a){if(Zu(e))throw Error(w(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};H.T!==null?n(!0):i.isTransition=!1,l(i),n=t.pending,n===null?(i.next=t.pending=i,Em(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Em(e,t){var n=t.action,l=t.payload,a=e.state;if(t.isTransition){var i=H.T,u={};H.T=u;try{var r=n(a,l),c=H.S;c!==null&&c(u,r),df(e,t,r)}catch(s){Ac(e,t,s)}finally{i!==null&&u.types!==null&&(i.types=u.types),H.T=i}}else try{i=n(a,l),df(e,t,i)}catch(s){Ac(e,t,s)}}function df(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){mf(e,t,l)},function(l){return Ac(e,t,l)}):mf(e,t,n)}function mf(e,t,n){t.status="fulfilled",t.value=n,Tm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Em(e,n)))}function Ac(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Tm(t),t=t.next;while(t!==l)}e.action=null}function Tm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Am(e,t){return t}function pf(e,t){if($){var n=ce.formState;if(n!==null){e:{var l=V;if($){if(de){t:{for(var a=de,i=At;a.nodeType!==8;){if(!i){a=null;break t}if(a=wt(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){de=wt(a.nextSibling),l=a.data==="F!";break e}}Rn(l)}l=!1}l&&(t=n[0])}}return n=Ge(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Am,lastRenderedState:t},n.queue=l,n=qm.bind(null,V,l),l.dispatch=n,l=Tc(!1),i=Gs.bind(null,V,!1,l.queue),l=Ge(),a={state:t,dispatch:null,action:e,pending:null},l.queue=a,n=q0.bind(null,V,a,i,n),a.dispatch=n,l.memoizedState=e,[t,n,!1]}function gf(e){var t=Ee();return zm(t,ue,e)}function zm(e,t,n){if(t=Bs(e,t,Am)[0],e=Gi(rn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ci(t)}catch(u){throw u===ea?Gu:u}else l=t;t=Ee();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(V.flags|=2048,Xl(9,{destroy:void 0},Y0.bind(null,a,n),null)),[l,i,e]}function Y0(e,t){e.action=t}function yf(e){var t=Ee(),n=ue;if(n!==null)return zm(t,n,e);Ee(),t=t.memoizedState,n=Ee();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Xl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=V.updateQueue,t===null&&(t=Vu(),V.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 wm(){return Ee().memoizedState}function Vi(e,t,n,l){var a=Ge();V.flags|=e,a.memoizedState=Xl(1|t,{destroy:void 0},n,l===void 0?null:l)}function Qu(e,t,n,l){var a=Ee();l=l===void 0?null:l;var i=a.memoizedState.inst;ue!==null&&l!==null&&Os(l,ue.memoizedState.deps)?a.memoizedState=Xl(t,i,n,l):(V.flags|=e,a.memoizedState=Xl(1|t,i,n,l))}function bf(e,t){Vi(8390656,8,e,t)}function Ls(e,t){Qu(2048,8,e,t)}function G0(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=Vu(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Cm(e){var t=Ee().memoizedState;return G0({ref:t,nextImpl:e}),function(){if(ee&2)throw Error(w(440));return t.impl.apply(void 0,arguments)}}function Nm(e,t){return Qu(4,2,e,t)}function _m(e,t){return Qu(4,4,e,t)}function km(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 Om(e,t,n){n=n!=null?n.concat([e]):null,Qu(4,4,km.bind(null,t,e),n)}function Hs(){}function Dm(e,t){var n=Ee();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Os(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function jm(e,t){var n=Ee();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Os(t,l[1]))return l[0];if(l=e(),nl){vn(!0);try{e()}finally{vn(!1)}}return n.memoizedState=[l,t],l}function qs(e,t,n){return n===void 0||un&1073741824&&!(F&261930)?e.memoizedState=t:(e.memoizedState=n,e=Sp(),V.lanes|=e,Bn|=e,n)}function Mm(e,t,n,l){return mt(n,t)?n:Vl.current!==null?(e=qs(e,n,l),mt(e,t)||(Ne=!0),e):!(un&42)||un&1073741824&&!(F&261930)?(Ne=!0,e.memoizedState=n):(e=Sp(),V.lanes|=e,Bn|=e,t)}function Rm(e,t,n,l,a){var i=te.p;te.p=i!==0&&8>i?i:8;var u=H.T,r={};H.T=r,Gs(e,!1,t,n);try{var c=a(),s=H.S;if(s!==null&&s(r,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var o=B0(c,l);ka(e,t,o,dt(e))}else ka(e,t,l,dt(e))}catch(h){ka(e,t,{then:function(){},status:"rejected",reason:h},dt())}finally{te.p=i,u!==null&&r.types!==null&&(u.types=r.types),H.T=u}}function V0(){}function zc(e,t,n,l){if(e.tag!==5)throw Error(w(476));var a=Um(e).queue;Rm(e,a,t,Jn,n===null?V0:function(){return Bm(e),n(l)})}function Um(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Jn,baseState:Jn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:Jn},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bm(e){var t=Um(e);t.next===null&&(t=e.alternate.memoizedState),ka(e,t.next.queue,{},dt())}function Ys(){return He($a)}function Lm(){return Ee().memoizedState}function Hm(){return Ee().memoizedState}function X0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=dt();e=Cn(n);var l=Nn(t,e,n);l!==null&&(We(l,t,n),Ca(l,t,n)),t={cache:ws()},e.payload=t;return}t=t.return}}function Q0(e,t,n){var l=dt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zu(e)?Ym(t,n):(n=Es(e,t,n,l),n!==null&&(We(n,e,l),Gm(n,t,l)))}function qm(e,t,n){var l=dt();ka(e,t,n,l)}function ka(e,t,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zu(e))Ym(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,r=i(u,n);if(a.hasEagerState=!0,a.eagerState=r,mt(r,u))return Yu(e,t,a,0),ce===null&&qu(),!1}catch{}finally{}if(n=Es(e,t,a,l),n!==null)return We(n,e,l),Gm(n,t,l),!0}return!1}function Gs(e,t,n,l){if(l={lane:2,revertLane:$s(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Zu(e)){if(t)throw Error(w(479))}else t=Es(e,n,l,2),t!==null&&We(t,e,2)}function Zu(e){var t=e.alternate;return e===V||t!==null&&t===V}function Ym(e,t){Rl=hu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gm(e,t,n){if(n&4194048){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Cd(e,n)}}var Ja={readContext:He,use:Xu,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useLayoutEffect:xe,useInsertionEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useSyncExternalStore:xe,useId:xe,useHostTransitionStatus:xe,useFormState:xe,useActionState:xe,useOptimistic:xe,useMemoCache:xe,useCacheRefresh:xe};Ja.useEffectEvent=xe;var Vm={readContext:He,use:Xu,useCallback:function(e,t){return Ge().memoizedState=[e,t===void 0?null:t],e},useContext:He,useEffect:bf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Vi(4194308,4,km.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){Vi(4,2,e,t)},useMemo:function(e,t){var n=Ge();t=t===void 0?null:t;var l=e();if(nl){vn(!0);try{e()}finally{vn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Ge();if(n!==void 0){var a=n(t);if(nl){vn(!0);try{n(t)}finally{vn(!1)}}}else a=t;return l.memoizedState=l.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},l.queue=e,e=e.dispatch=Q0.bind(null,V,e),[l.memoizedState,e]},useRef:function(e){var t=Ge();return e={current:e},t.memoizedState=e},useState:function(e){e=Tc(e);var t=e.queue,n=qm.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hs,useDeferredValue:function(e,t){var n=Ge();return qs(n,e,t)},useTransition:function(){var e=Tc(!1);return e=Rm.bind(null,V,e.queue,!0,!1),Ge().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=V,a=Ge();if($){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),ce===null)throw Error(w(349));F&127||gm(l,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,bf(bm.bind(null,l,i,e),[e]),l.flags|=2048,Xl(9,{destroy:void 0},ym.bind(null,l,i,n,t),null),n},useId:function(){var e=Ge(),t=ce.identifierPrefix;if($){var n=Ut,l=Rt;n=(l&~(1<<32-ht(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=du++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=L0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ys,useFormState:pf,useActionState:pf,useOptimistic:function(e){var t=Ge();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gs.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:Us,useCacheRefresh:function(){return Ge().memoizedState=X0.bind(null,V)},useEffectEvent:function(e){var t=Ge(),n={impl:e};return t.memoizedState=n,function(){if(ee&2)throw Error(w(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:He,use:Xu,useCallback:Dm,useContext:He,useEffect:Ls,useImperativeHandle:Om,useInsertionEffect:Nm,useLayoutEffect:_m,useMemo:jm,useReducer:Gi,useRef:wm,useState:function(){return Gi(rn)},useDebugValue:Hs,useDeferredValue:function(e,t){var n=Ee();return Mm(n,ue.memoizedState,e,t)},useTransition:function(){var e=Gi(rn)[0],t=Ee().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:pm,useId:Lm,useHostTransitionStatus:Ys,useFormState:gf,useActionState:gf,useOptimistic:function(e,t){var n=Ee();return Sm(n,ue,e,t)},useMemoCache:Us,useCacheRefresh:Hm};Vs.useEffectEvent=Cm;var Xm={readContext:He,use:Xu,useCallback:Dm,useContext:He,useEffect:Ls,useImperativeHandle:Om,useInsertionEffect:Nm,useLayoutEffect:_m,useMemo:jm,useReducer:xr,useRef:wm,useState:function(){return xr(rn)},useDebugValue:Hs,useDeferredValue:function(e,t){var n=Ee();return ue===null?qs(n,e,t):Mm(n,ue.memoizedState,e,t)},useTransition:function(){var e=xr(rn)[0],t=Ee().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:pm,useId:Lm,useHostTransitionStatus:Ys,useFormState:yf,useActionState:yf,useOptimistic:function(e,t){var n=Ee();return ue!==null?Sm(n,ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Us,useCacheRefresh:Hm};Xm.useEffectEvent=Cm;function vr(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=dt(),a=Cn(l);a.payload=t,n!=null&&(a.callback=n),t=Nn(e,a,l),t!==null&&(We(t,e,l),Ca(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=dt(),a=Cn(l);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Nn(e,a,l),t!==null&&(We(t,e,l),Ca(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dt(),l=Cn(n);l.tag=2,t!=null&&(l.callback=t),t=Nn(e,l,n),t!==null&&(We(t,e,n),Ca(t,e,n))}};function xf(e,t,n,l,a,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,u):t.prototype&&t.prototype.isPureReactComponent?!Va(n,l)||!Va(a,i):!0}function vf(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&&wc.enqueueReplaceState(t,t.state,null)}function ll(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=pe({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function Qm(e){iu(e)}function Zm(e){console.error(e)}function Km(e){iu(e)}function mu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Sf(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Cc(e,t,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){mu(e,t)},n}function Jm(e){return e=Cn(e),e.tag=3,e}function Fm(e,t,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;e.payload=function(){return a(i)},e.callback=function(){Sf(t,n,l)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Sf(t,n,l),typeof a!="function"&&(_n===null?_n=new Set([this]):_n.add(this));var r=l.stack;this.componentDidCatch(l.value,{componentStack:r!==null?r:""})})}function Z0(e,t,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Pl(t,n,a,!0),n=pt.current,n!==null){switch(n.tag){case 31:case 13:return zt===null?xu():n.alternate===null&&ve===0&&(ve=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===su?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Or(e,l,a)),!1;case 22:return n.flags|=65536,l===su?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)),Or(e,l,a)),!1}throw Error(w(435,n.tag))}return Or(e,l,a),xu(),!1}if($)return t=pt.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,l!==mc&&(e=Error(w(422),{cause:l}),Qa(Tt(e,n)))):(l!==mc&&(t=Error(w(423),{cause:l}),Qa(Tt(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,l=Tt(l,n),a=Cc(e.stateNode,l,a),br(e,a),ve!==4&&(ve=2)),!1;var i=Error(w(520),{cause:l});if(i=Tt(i,n),ja===null?ja=[i]:ja.push(i),ve!==4&&(ve=2),t===null)return!0;l=Tt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Cc(n.stateNode,l,e),br(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(_n===null||!_n.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Jm(a),Fm(a,e,n,l),br(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(w(461)),Ne=!1;function Ue(e,t,n,l){t.child=e===null?sm(t,null,n,l):tl(t,e.child,n,l)}function Ef(e,t,n,l,a){n=n.render;var i=t.ref;if("ref"in l){var u={};for(var r in l)r!=="ref"&&(u[r]=l[r])}else u=l;return el(t),l=Ds(e,t,n,u,i,a),r=js(),e!==null&&!Ne?(Ms(e,t,a),cn(e,t,a)):($&&r&&As(t),t.flags|=1,Ue(e,t,l,a),t.child)}function Tf(e,t,n,l,a){if(e===null){var i=n.type;return typeof i=="function"&&!Ts(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,Im(e,t,i,l,a)):(e=qi(n.type,null,l,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Qs(e,a)){var u=i.memoizedProps;if(n=n.compare,n=n!==null?n:Va,n(u,l)&&e.ref===t.ref)return cn(e,t,a)}return t.flags|=1,e=tn(i,l),e.ref=t.ref,e.return=t,t.child=e}function Im(e,t,n,l,a){if(e!==null){var i=e.memoizedProps;if(Va(i,l)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=l=i,Qs(e,a))e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,cn(e,t,a)}return Nc(e,t,n,l,a)}function $m(e,t,n,l){var a=l.children,i=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){if(i=i!==null?i.baseLanes|n:n,e!==null){for(l=t.child=e.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i}else l=0,t.child=null;return Af(e,t,i,n,l)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yi(t,i!==null?i.cachePool:null),i!==null?hf(t,i):Sc(),hm(t);else return l=t.lanes=536870912,Af(e,t,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(Yi(t,i.cachePool),hf(t,i),bn(),t.memoizedState=null):(e!==null&&Yi(t,null),Sc(),bn());return Ue(e,t,a,n),t.child}function va(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Af(e,t,n,l,a){var i=Cs();return i=i===null?null:{parent:Ce._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Yi(t,null),Sc(),hm(t),e!==null&&Pl(e,t,l,!0),t.childLanes=a,null}function Xi(e,t){return t=pu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zf(e,t,n){return tl(t,e.child,null,n),e=Xi(t,t.pendingProps),e.flags|=2,ut(t),t.memoizedState=null,e}function K0(e,t,n){var l=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if($){if(l.mode==="hidden")return e=Xi(t,l),t.lanes=536870912,va(null,e);if(Ec(t),(e=de)?(e=Vp(e,At),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:Rt,overflow:Ut}:null,retryLane:536870912,hydrationErrors:null},n=nm(e),n.return=t,t.child=n,Le=t,de=null)):e=null,e===null)throw Rn(t);return t.lanes=536870912,null}return Xi(t,l)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(Ec(t),a)if(t.flags&256)t.flags&=-257,t=zf(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(w(558));else if(Ne||Pl(e,t,n,!1),a=(n&e.childLanes)!==0,Ne||a){if(l=ce,l!==null&&(u=Nd(l,n),u!==0&&u!==i.retryLane))throw i.retryLane=u,rl(e,u),We(l,e,u),Xs;xu(),t=zf(e,t,n)}else e=i.treeContext,de=wt(u.nextSibling),Le=t,$=!0,wn=null,At=!1,e!==null&&am(t,e),t=Xi(t,l),t.flags|=4096;return t}return e=tn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qi(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(w(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nc(e,t,n,l,a){return el(t),n=Ds(e,t,n,l,void 0,a),l=js(),e!==null&&!Ne?(Ms(e,t,a),cn(e,t,a)):($&&l&&As(t),t.flags|=1,Ue(e,t,n,a),t.child)}function wf(e,t,n,l,a,i){return el(t),t.updateQueue=null,n=mm(t,l,n,a),dm(e),l=js(),e!==null&&!Ne?(Ms(e,t,i),cn(e,t,i)):($&&l&&As(t),t.flags|=1,Ue(e,t,n,i),t.child)}function Cf(e,t,n,l,a){if(el(t),t.stateNode===null){var i=wl,u=n.contextType;typeof u=="object"&&u!==null&&(i=He(u)),i=new n(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=wc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},_s(t),u=n.contextType,i.context=typeof u=="object"&&u!==null?He(u):wl,i.state=t.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(vr(t,n,u,l),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&wc.enqueueReplaceState(i,i.state,null),_a(t,l,i,a),Na(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var r=t.memoizedProps,c=ll(n,r);i.props=c;var s=i.context,o=n.contextType;u=wl,typeof o=="object"&&o!==null&&(u=He(o));var h=n.getDerivedStateFromProps;o=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,o||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||s!==u)&&vf(t,i,l,u),pn=!1;var d=t.memoizedState;i.state=d,_a(t,l,i,a),Na(),s=t.memoizedState,r||d!==s||pn?(typeof h=="function"&&(vr(t,n,h,l),s=t.memoizedState),(c=pn||xf(t,n,c,l,d,s,u))?(o||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=s),i.props=l,i.state=s,i.context=u,l=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,xc(e,t),u=t.memoizedProps,o=ll(n,u),i.props=o,h=t.pendingProps,d=i.context,s=n.contextType,c=wl,typeof s=="object"&&s!==null&&(c=He(s)),r=n.getDerivedStateFromProps,(s=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==h||d!==c)&&vf(t,i,l,c),pn=!1,d=t.memoizedState,i.state=d,_a(t,l,i,a),Na();var f=t.memoizedState;u!==h||d!==f||pn||e!==null&&e.dependencies!==null&&cu(e.dependencies)?(typeof r=="function"&&(vr(t,n,r,l),f=t.memoizedState),(o=pn||xf(t,n,o,l,d,f,c)||e!==null&&e.dependencies!==null&&cu(e.dependencies))?(s||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,f,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,f,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=f),i.props=l,i.state=f,i.context=c,l=o):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,Qi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=tl(t,e.child,null,a),t.child=tl(t,null,n,a)):Ue(e,t,n,a),t.memoizedState=i.state,e=t.child):e=cn(e,t,a),e}function Nf(e,t,n,l){return Pn(),t.flags|=256,Ue(e,t,n,l),t.child}var Sr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Er(e){return{baseLanes:e,cachePool:um()}}function Tr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ct),e}function Wm(e,t,n){var l=t.pendingProps,a=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Se.current&2)!==0),u&&(a=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if($){if(a?yn(t):bn(),(e=de)?(e=Vp(e,At),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:Rt,overflow:Ut}:null,retryLane:536870912,hydrationErrors:null},n=nm(e),n.return=t,t.child=n,Le=t,de=null)):e=null,e===null)throw Rn(t);return Gc(e)?t.lanes=32:t.lanes=536870912,null}var r=l.children;return l=l.fallback,a?(bn(),a=t.mode,r=pu({mode:"hidden",children:r},a),l=Fn(l,a,n,null),r.return=t,l.return=t,r.sibling=l,t.child=r,l=t.child,l.memoizedState=Er(n),l.childLanes=Tr(e,u,n),t.memoizedState=Sr,va(null,l)):(yn(t),_c(t,r))}var c=e.memoizedState;if(c!==null&&(r=c.dehydrated,r!==null)){if(i)t.flags&256?(yn(t),t.flags&=-257,t=Ar(e,t,n)):t.memoizedState!==null?(bn(),t.child=e.child,t.flags|=128,t=null):(bn(),r=l.fallback,a=t.mode,l=pu({mode:"visible",children:l.children},a),r=Fn(r,a,n,null),r.flags|=2,l.return=t,r.return=t,l.sibling=r,t.child=l,tl(t,e.child,null,n),l=t.child,l.memoizedState=Er(n),l.childLanes=Tr(e,u,n),t.memoizedState=Sr,t=va(null,l));else if(yn(t),Gc(r)){if(u=r.nextSibling&&r.nextSibling.dataset,u)var s=u.dgst;u=s,l=Error(w(419)),l.stack="",l.digest=u,Qa({value:l,source:null,stack:null}),t=Ar(e,t,n)}else if(Ne||Pl(e,t,n,!1),u=(n&e.childLanes)!==0,Ne||u){if(u=ce,u!==null&&(l=Nd(u,n),l!==0&&l!==c.retryLane))throw c.retryLane=l,rl(e,l),We(u,e,l),Xs;Yc(r)||xu(),t=Ar(e,t,n)}else Yc(r)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,de=wt(r.nextSibling),Le=t,$=!0,wn=null,At=!1,e!==null&&am(t,e),t=_c(t,l.children),t.flags|=4096);return t}return a?(bn(),r=l.fallback,a=t.mode,c=e.child,s=c.sibling,l=tn(c,{mode:"hidden",children:l.children}),l.subtreeFlags=c.subtreeFlags&65011712,s!==null?r=tn(s,r):(r=Fn(r,a,n,null),r.flags|=2),r.return=t,l.return=t,l.sibling=r,t.child=l,va(null,l),l=t.child,r=e.child.memoizedState,r===null?r=Er(n):(a=r.cachePool,a!==null?(c=Ce._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=um(),r={baseLanes:r.baseLanes|n,cachePool:a}),l.memoizedState=r,l.childLanes=Tr(e,u,n),t.memoizedState=Sr,va(e.child,l)):(yn(t),n=e.child,e=n.sibling,n=tn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=pu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function pu(e,t){return e=rt(22,e,null,t),e.lanes=0,e}function Ar(e,t,n){return tl(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _f(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),gc(e.return,t,n)}function zr(e,t,n,l,a,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=a,u.treeForkCount=i)}function Pm(e,t,n){var l=t.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var u=Se.current,r=(u&2)!==0;if(r?(u=u&1|2,t.flags|=128):u&=1,fe(Se,u),Ue(e,t,l,n),l=$?Xa:0,!r&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_f(e,n,t);else if(e.tag===19)_f(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(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&fu(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zr(t,!1,a,n,i,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&fu(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zr(t,!0,n,null,i,l);break;case"together":zr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,!(n&t.childLanes))if(e!==null){if(Pl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qs(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&cu(e)))}function J0(e,t,n){switch(t.tag){case 3:tu(t,t.stateNode.containerInfo),gn(t,Ce,e.memoizedState.cache),Pn();break;case 27:case 5:lc(t);break;case 4:tu(t,t.stateNode.containerInfo);break;case 10:gn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ec(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(yn(t),t.flags|=128,null):n&t.child.childLanes?Wm(e,t,n):(yn(t),e=cn(e,t,n),e!==null?e.sibling:null);yn(t);break;case 19:var a=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Pl(e,t,n,!1),l=(n&t.childLanes)!==0),a){if(l)return Pm(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),fe(Se,Se.current),l)break;return null;case 22:return t.lanes=0,$m(e,t,n,t.pendingProps);case 24:gn(t,Ce,e.memoizedState.cache)}return cn(e,t,n)}function ep(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ne=!0;else{if(!Qs(e,n)&&!(t.flags&128))return Ne=!1,J0(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,$&&t.flags&1048576&&lm(t,Xa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Qn(t.elementType),t.type=e,typeof e=="function")Ts(e)?(l=ll(e,l),t.tag=1,t=Cf(null,t,e,l,n)):(t.tag=0,t=Nc(null,t,e,l,n));else{if(e!=null){var a=e.$$typeof;if(a===ss){t.tag=11,t=Ef(null,t,e,l,n);break e}else if(a===os){t.tag=14,t=Tf(null,t,e,l,n);break e}}throw t=tc(e)||e,Error(w(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,a=ll(l,t.pendingProps),Cf(e,t,l,a,n);case 3:e:{if(tu(t,t.stateNode.containerInfo),e===null)throw Error(w(387));l=t.pendingProps;var i=t.memoizedState;a=i.element,xc(e,t),_a(t,l,null,n);var u=t.memoizedState;if(l=u.cache,gn(t,Ce,l),l!==i.cache&&yc(t,[Ce],n,!0),Na(),l=u.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Nf(e,t,l,n);break e}else if(l!==a){a=Tt(Error(w(424)),t),Qa(a),t=Nf(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(de=wt(e.firstChild),Le=t,$=!0,wn=null,At=!0,n=sm(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pn(),l===a){t=cn(e,t,n);break e}Ue(e,t,l,n)}t=t.child}return t;case 26:return Qi(e,t),e===null?(n=Ff(t.type,null,t.pendingProps,null))?t.memoizedState=n:$||(n=t.type,e=t.pendingProps,l=Tu(zn.current).createElement(n),l[Be]=t,l[et]=e,qe(l,n,e),Me(l),t.stateNode=l):t.memoizedState=Ff(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return lc(t),e===null&&$&&(l=t.stateNode=Xp(t.type,t.pendingProps,zn.current),Le=t,At=!0,a=de,Hn(t.type)?(Vc=a,de=wt(l.firstChild)):de=a),Ue(e,t,t.pendingProps.children,n),Qi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$&&((a=l=de)&&(l=A1(l,t.type,t.pendingProps,At),l!==null?(t.stateNode=l,Le=t,de=wt(l.firstChild),At=!1,a=!0):a=!1),a||Rn(t)),lc(t),a=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,l=i.children,Hc(a,i)?l=null:u!==null&&Hc(a,u)&&(t.flags|=32),t.memoizedState!==null&&(a=Ds(e,t,H0,null,null,n),$a._currentValue=a),Qi(e,t),Ue(e,t,l,n),t.child;case 6:return e===null&&$&&((e=n=de)&&(n=z1(n,t.pendingProps,At),n!==null?(t.stateNode=n,Le=t,de=null,e=!0):e=!1),e||Rn(t)),null;case 13:return Wm(e,t,n);case 4:return tu(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=tl(t,null,l,n):Ue(e,t,l,n),t.child;case 11:return Ef(e,t,t.type,t.pendingProps,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,gn(t,t.type,l.value),Ue(e,t,l.children,n),t.child;case 9:return a=t.type._context,l=t.pendingProps.children,el(t),a=He(a),l=l(a),t.flags|=1,Ue(e,t,l,n),t.child;case 14:return Tf(e,t,t.type,t.pendingProps,n);case 15:return Im(e,t,t.type,t.pendingProps,n);case 19:return Pm(e,t,n);case 31:return K0(e,t,n);case 22:return $m(e,t,n,t.pendingProps);case 24:return el(t),l=He(Ce),e===null?(a=Cs(),a===null&&(a=ce,i=ws(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:l,cache:a},_s(t),gn(t,Ce,a)):(e.lanes&n&&(xc(e,t),_a(t,null,null,n),Na()),a=e.memoizedState,i=t.memoizedState,a.parent!==l?(a={parent:l,cache:l},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),gn(t,Ce,l)):(l=i.cache,gn(t,Ce,l),l!==a.cache&&yc(t,[Ce],n,!0))),Ue(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(w(156,t.tag))}function Zt(e){e.flags|=4}function wr(e,t,n,l,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Ap())e.flags|=8192;else throw $n=su,Ns}else e.flags&=-16777217}function kf(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Kp(t))if(Ap())e.flags|=8192;else throw $n=su,Ns}function Ci(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zd():536870912,e.lanes|=t,Ql|=t)}function ha(e,t){if(!$)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 he(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function F0(e,t,n){var l=t.pendingProps;switch(zs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return he(t),null;case 1:return he(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),nn(Ce),Hl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?Zt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yr())),he(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Zt(t),i!==null?(he(t),kf(t,i)):(he(t),wr(t,a,null,l,n))):i?i!==e.memoizedState?(Zt(t),he(t),kf(t,i)):(he(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Zt(t),he(t),wr(t,a,e,l,n)),null;case 27:if(nu(t),n=zn.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Zt(t);else{if(!l){if(t.stateNode===null)throw Error(w(166));return he(t),null}e=Lt.current,hl(t)?af(t):(e=Xp(a,l,n),t.stateNode=e,Zt(t))}return he(t),null;case 5:if(nu(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Zt(t);else{if(!l){if(t.stateNode===null)throw Error(w(166));return he(t),null}if(i=Lt.current,hl(t))af(t);else{var u=Tu(zn.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?u.createElement(a,{is:l.is}):u.createElement(a)}}i[Be]=t,i[et]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(qe(i,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Zt(t)}}return he(t),wr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Zt(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(w(166));if(e=zn.current,hl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,a=Le,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}e[Be]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||qp(e.nodeValue,n)),e||Rn(t,!0)}else e=Tu(e).createTextNode(l),e[Be]=t,t.stateNode=e}return he(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=hl(t),n!==null){if(e===null){if(!l)throw Error(w(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(557));e[Be]=t}else Pn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;he(t),e=!1}else n=yr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ut(t),t):(ut(t),null);if(t.flags&128)throw Error(w(558))}return he(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=hl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!a)throw Error(w(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(w(317));a[Be]=t}else Pn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;he(t),a=!1}else a=yr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ut(t),t):(ut(t),null)}return ut(t),t.flags&128?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ci(t,t.updateQueue),he(t),null);case 4:return Hl(),e===null&&Ws(t.stateNode.containerInfo),he(t),null;case 10:return nn(t.type),he(t),null;case 19:if(Re(Se),l=t.memoizedState,l===null)return he(t),null;if(a=(t.flags&128)!==0,i=l.rendering,i===null)if(a)ha(l,!1);else{if(ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=fu(e),i!==null){for(t.flags|=128,ha(l,!1),e=i.updateQueue,t.updateQueue=e,Ci(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)tm(n,e),n=n.sibling;return fe(Se,Se.current&1|2),$&&It(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ot()>yu&&(t.flags|=128,a=!0,ha(l,!1),t.lanes=4194304)}else{if(!a)if(e=fu(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ci(t,e),ha(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!$)return he(t),null}else 2*ot()-l.renderingStartTime>yu&&n!==536870912&&(t.flags|=128,a=!0,ha(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ot(),e.sibling=null,n=Se.current,fe(Se,a?n&1|2:n&1),$&&It(t,l.treeForkCount),e):(he(t),null);case 22:case 23:return ut(t),ks(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?n&536870912&&!(t.flags&128)&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),n=t.updateQueue,n!==null&&Ci(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&&Re(In),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),nn(Ce),he(t),null;case 25:return null;case 30:return null}throw Error(w(156,t.tag))}function I0(e,t){switch(zs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nn(Ce),Hl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nu(t),null;case 31:if(t.memoizedState!==null){if(ut(t),t.alternate===null)throw Error(w(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Se),null;case 4:return Hl(),null;case 10:return nn(t.type),null;case 22:case 23:return ut(t),ks(),e!==null&&Re(In),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return nn(Ce),null;case 25:return null;default:return null}}function tp(e,t){switch(zs(t),t.tag){case 3:nn(Ce),Hl();break;case 26:case 27:case 5:nu(t);break;case 4:Hl();break;case 31:t.memoizedState!==null&&ut(t);break;case 13:ut(t);break;case 19:Re(Se);break;case 10:nn(t.type);break;case 22:case 23:ut(t),ks(),e!==null&&Re(In);break;case 24:nn(Ce)}}function si(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&e)===e){l=void 0;var i=n.create,u=n.inst;l=i(),u.destroy=l}n=n.next}while(n!==a)}}catch(r){ae(t,t.return,r)}}function Un(e,t,n){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){var u=l.inst,r=u.destroy;if(r!==void 0){u.destroy=void 0,a=t;var c=n,s=r;try{s()}catch(o){ae(a,c,o)}}}l=l.next}while(l!==i)}}catch(o){ae(t,t.return,o)}}function np(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{fm(t,n)}catch(l){ae(e,e.return,l)}}}function lp(e,t,n){n.props=ll(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){ae(e,t,l)}}function Oa(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(a){ae(e,t,a)}}function Bt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){ae(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){ae(e,t,a)}else n.current=null}function ap(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(a){ae(e,e.return,a)}}function Cr(e,t,n){try{var l=e.stateNode;b1(l,e.type,n,t),l[et]=t}catch(a){ae(e,e.return,a)}}function ip(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hn(e.type)||e.tag===4}function Nr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(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&&Hn(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 kc(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=Pt));else if(l!==4&&(l===27&&Hn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function gu(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&&Hn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(gu(e,t,n),e=e.sibling;e!==null;)gu(e,t,n),e=e.sibling}function up(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);qe(t,l,n),t[Be]=e,t[et]=n}catch(i){ae(e,e.return,i)}}var $t=!1,we=!1,_r=!1,Of=typeof WeakSet=="function"?WeakSet:Set,je=null;function $0(e,t){if(e=e.containerInfo,Bc=Cu,e=Kd(e),vs(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 a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,r=-1,c=-1,s=0,o=0,h=e,d=null;t:for(;;){for(var f;h!==n||a!==0&&h.nodeType!==3||(r=u+a),h!==i||l!==0&&h.nodeType!==3||(c=u+l),h.nodeType===3&&(u+=h.nodeValue.length),(f=h.firstChild)!==null;)d=h,h=f;for(;;){if(h===e)break t;if(d===n&&++s===a&&(r=u),d===i&&++o===l&&(c=u),(f=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=f}n=r===-1||c===-1?null:{start:r,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},Cu=!1,je=t;je!==null;)if(t=je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,je=e;else for(;je!==null;){switch(t=je,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var x=ll(n.type,a);e=l.getSnapshotBeforeUpdate(x,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(S){ae(n,n.return,S)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)qc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":qc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(w(163))}if(e=t.sibling,e!==null){e.return=t.return,je=e;break}je=t.return}}function rp(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Jt(e,n),l&4&&si(5,n);break;case 1:if(Jt(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(u){ae(n,n.return,u)}else{var a=ll(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){ae(n,n.return,u)}}l&64&&np(n),l&512&&Oa(n,n.return);break;case 3:if(Jt(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{fm(e,t)}catch(u){ae(n,n.return,u)}}break;case 27:t===null&&l&4&&up(n);case 26:case 5:Jt(e,n),t===null&&l&4&&ap(n),l&512&&Oa(n,n.return);break;case 12:Jt(e,n);break;case 31:Jt(e,n),l&4&&op(e,n);break;case 13:Jt(e,n),l&4&&fp(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=u1.bind(null,n),w1(e,n))));break;case 22:if(l=n.memoizedState!==null||$t,!l){t=t!==null&&t.memoizedState!==null||we,a=$t;var i=we;$t=l,(we=t)&&!i?Ft(e,n,(n.subtreeFlags&8772)!==0):Jt(e,n),$t=a,we=i}break;case 30:break;default:Jt(e,n)}}function cp(e){var t=e.alternate;t!==null&&(e.alternate=null,cp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ms(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 ye=null,Ie=!1;function Kt(e,t,n){for(n=n.child;n!==null;)sp(e,t,n),n=n.sibling}function sp(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(ni,n)}catch{}switch(n.tag){case 26:we||Bt(n,t),Kt(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:we||Bt(n,t);var l=ye,a=Ie;Hn(n.type)&&(ye=n.stateNode,Ie=!1),Kt(e,t,n),Ra(n.stateNode),ye=l,Ie=a;break;case 5:we||Bt(n,t);case 6:if(l=ye,a=Ie,ye=null,Kt(e,t,n),ye=l,Ie=a,ye!==null)if(Ie)try{(ye.nodeType===9?ye.body:ye.nodeName==="HTML"?ye.ownerDocument.body:ye).removeChild(n.stateNode)}catch(i){ae(n,t,i)}else try{ye.removeChild(n.stateNode)}catch(i){ae(n,t,i)}break;case 18:ye!==null&&(Ie?(e=ye,Xf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Fl(e)):Xf(ye,n.stateNode));break;case 4:l=ye,a=Ie,ye=n.stateNode.containerInfo,Ie=!0,Kt(e,t,n),ye=l,Ie=a;break;case 0:case 11:case 14:case 15:Un(2,n,t),we||Un(4,n,t),Kt(e,t,n);break;case 1:we||(Bt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&lp(n,t,l)),Kt(e,t,n);break;case 21:Kt(e,t,n);break;case 22:we=(l=we)||n.memoizedState!==null,Kt(e,t,n),we=l;break;default:Kt(e,t,n)}}function op(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fl(e)}catch(n){ae(t,t.return,n)}}}function fp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fl(e)}catch(n){ae(t,t.return,n)}}function W0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Of),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Of),t;default:throw Error(w(435,e.tag))}}function Ni(e,t){var n=W0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var a=r1.bind(null,e,l);l.then(a,a)}})}function Ke(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],i=e,u=t,r=u;e:for(;r!==null;){switch(r.tag){case 27:if(Hn(r.type)){ye=r.stateNode,Ie=!1;break e}break;case 5:ye=r.stateNode,Ie=!1;break e;case 3:case 4:ye=r.stateNode.containerInfo,Ie=!0;break e}r=r.return}if(ye===null)throw Error(w(160));sp(i,u,a),ye=null,Ie=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hp(t,e),t=t.sibling}var kt=null;function hp(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ke(t,e),Je(e),l&4&&(Un(3,e,e.return),si(3,e),Un(5,e,e.return));break;case 1:Ke(t,e),Je(e),l&512&&(we||n===null||Bt(n,n.return)),l&64&&$t&&(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 a=kt;if(Ke(t,e),Je(e),l&512&&(we||n===null||Bt(n,n.return)),l&4){var i=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,a=a.ownerDocument||a;t:switch(l){case"title":i=a.getElementsByTagName("title")[0],(!i||i[ii]||i[Be]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),qe(i,l,n),i[Be]=e,Me(i),l=i;break e;case"link":var u=$f("link","href",a).get(l+(n.href||""));if(u){for(var r=0;r<u.length;r++)if(i=u[r],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){u.splice(r,1);break t}}i=a.createElement(l),qe(i,l,n),a.head.appendChild(i);break;case"meta":if(u=$f("meta","content",a).get(l+(n.content||""))){for(r=0;r<u.length;r++)if(i=u[r],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){u.splice(r,1);break t}}i=a.createElement(l),qe(i,l,n),a.head.appendChild(i);break;default:throw Error(w(468,l))}i[Be]=e,Me(i),l=i}e.stateNode=l}else Wf(a,e.type,e.stateNode);else e.stateNode=If(a,l,e.memoizedProps);else i!==l?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,l===null?Wf(a,e.type,e.stateNode):If(a,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Cr(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ke(t,e),Je(e),l&512&&(we||n===null||Bt(n,n.return)),n!==null&&l&4&&Cr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ke(t,e),Je(e),l&512&&(we||n===null||Bt(n,n.return)),e.flags&32){a=e.stateNode;try{Yl(a,"")}catch(x){ae(e,e.return,x)}}l&4&&e.stateNode!=null&&(a=e.memoizedProps,Cr(e,a,n!==null?n.memoizedProps:a)),l&1024&&(_r=!0);break;case 6:if(Ke(t,e),Je(e),l&4){if(e.stateNode===null)throw Error(w(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(x){ae(e,e.return,x)}}break;case 3:if(Ji=null,a=kt,kt=Au(t.containerInfo),Ke(t,e),kt=a,Je(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Fl(t.containerInfo)}catch(x){ae(e,e.return,x)}_r&&(_r=!1,dp(e));break;case 4:l=kt,kt=Au(e.stateNode.containerInfo),Ke(t,e),Je(e),kt=l;break;case 12:Ke(t,e),Je(e);break;case 31:Ke(t,e),Je(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ni(e,l)));break;case 13:Ke(t,e),Je(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ku=ot()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ni(e,l)));break;case 22:a=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,s=$t,o=we;if($t=s||a,we=o||c,Ke(t,e),we=o,$t=s,Je(e),l&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||c||$t||we||Zn(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(i=c.stateNode,a)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{r=c.stateNode;var h=c.memoizedProps.style,d=h!=null&&h.hasOwnProperty("display")?h.display:null;r.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(x){ae(c,c.return,x)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(x){ae(c,c.return,x)}}}else if(t.tag===18){if(n===null){c=t;try{var f=c.stateNode;a?Qf(f,!0):Qf(c.stateNode,!1)}catch(x){ae(c,c.return,x)}}}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,Ni(e,n))));break;case 19:Ke(t,e),Je(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ni(e,l)));break;case 30:break;case 21:break;default:Ke(t,e),Je(e)}}function Je(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(ip(l)){n=l;break}l=l.return}if(n==null)throw Error(w(160));switch(n.tag){case 27:var a=n.stateNode,i=Nr(e);gu(e,i,a);break;case 5:var u=n.stateNode;n.flags&32&&(Yl(u,""),n.flags&=-33);var r=Nr(e);gu(e,r,u);break;case 3:case 4:var c=n.stateNode.containerInfo,s=Nr(e);kc(e,s,c);break;default:throw Error(w(161))}}catch(o){ae(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rp(e,t.alternate,t),t=t.sibling}function Zn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Un(4,t,t.return),Zn(t);break;case 1:Bt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&lp(t,t.return,n),Zn(t);break;case 27:Ra(t.stateNode);case 26:case 5:Bt(t,t.return),Zn(t);break;case 22:t.memoizedState===null&&Zn(t);break;case 30:Zn(t);break;default:Zn(t)}e=e.sibling}}function Ft(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,a=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:Ft(a,i,n),si(4,i);break;case 1:if(Ft(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(s){ae(l,l.return,s)}if(l=i,a=l.updateQueue,a!==null){var r=l.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)om(c[a],r)}catch(s){ae(l,l.return,s)}}n&&u&64&&np(i),Oa(i,i.return);break;case 27:up(i);case 26:case 5:Ft(a,i,n),n&&l===null&&u&4&&ap(i),Oa(i,i.return);break;case 12:Ft(a,i,n);break;case 31:Ft(a,i,n),n&&u&4&&op(a,i);break;case 13:Ft(a,i,n),n&&u&4&&fp(a,i);break;case 22:i.memoizedState===null&&Ft(a,i,n),Oa(i,i.return);break;case 30:break;default:Ft(a,i,n)}t=t.sibling}}function Zs(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&&ri(n))}function Ks(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e))}function _t(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mp(e,t,n,l),t=t.sibling}function mp(e,t,n,l){var a=t.flags;switch(t.tag){case 0:case 11:case 15:_t(e,t,n,l),a&2048&&si(9,t);break;case 1:_t(e,t,n,l);break;case 3:_t(e,t,n,l),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e)));break;case 12:if(a&2048){_t(e,t,n,l),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,r=i.onPostCommit;typeof r=="function"&&r(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){ae(t,t.return,c)}}else _t(e,t,n,l);break;case 31:_t(e,t,n,l);break;case 13:_t(e,t,n,l);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?_t(e,t,n,l):Da(e,t):i._visibility&2?_t(e,t,n,l):(i._visibility|=2,gl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Zs(u,t);break;case 24:_t(e,t,n,l),a&2048&&Ks(t.alternate,t);break;default:_t(e,t,n,l)}}function gl(e,t,n,l,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,r=n,c=l,s=u.flags;switch(u.tag){case 0:case 11:case 15:gl(i,u,r,c,a),si(8,u);break;case 23:break;case 22:var o=u.stateNode;u.memoizedState!==null?o._visibility&2?gl(i,u,r,c,a):Da(i,u):(o._visibility|=2,gl(i,u,r,c,a)),a&&s&2048&&Zs(u.alternate,u);break;case 24:gl(i,u,r,c,a),a&&s&2048&&Ks(u.alternate,u);break;default:gl(i,u,r,c,a)}t=t.sibling}}function Da(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,a=l.flags;switch(l.tag){case 22:Da(n,l),a&2048&&Zs(l.alternate,l);break;case 24:Da(n,l),a&2048&&Ks(l.alternate,l);break;default:Da(n,l)}t=t.sibling}}var Sa=8192;function dl(e,t,n){if(e.subtreeFlags&Sa)for(e=e.child;e!==null;)pp(e,t,n),e=e.sibling}function pp(e,t,n){switch(e.tag){case 26:dl(e,t,n),e.flags&Sa&&e.memoizedState!==null&&L1(n,kt,e.memoizedState,e.memoizedProps);break;case 5:dl(e,t,n);break;case 3:case 4:var l=kt;kt=Au(e.stateNode.containerInfo),dl(e,t,n),kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Sa,Sa=16777216,dl(e,t,n),Sa=l):dl(e,t,n));break;default:dl(e,t,n)}}function gp(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 da(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];je=l,bp(l,e)}gp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yp(e),e=e.sibling}function yp(e){switch(e.tag){case 0:case 11:case 15:da(e),e.flags&2048&&Un(9,e,e.return);break;case 3:da(e);break;case 12:da(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zi(e)):da(e);break;default:da(e)}}function Zi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];je=l,bp(l,e)}gp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Un(8,t,t.return),Zi(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zi(t));break;default:Zi(t)}e=e.sibling}}function bp(e,t){for(;je!==null;){var n=je;switch(n.tag){case 0:case 11:case 15:Un(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:ri(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,je=l;else e:for(n=e;je!==null;){l=je;var a=l.sibling,i=l.return;if(cp(l),l===n){je=null;break e}if(a!==null){a.return=i,je=a;break e}je=i}}}var P0={getCacheForType:function(e){var t=He(Ce),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return He(Ce).controller.signal}},e1=typeof WeakMap=="function"?WeakMap:Map,ee=0,ce=null,J=null,F=0,le=0,it=null,En=!1,ta=!1,Js=!1,sn=0,ve=0,Bn=0,Wn=0,Fs=0,ct=0,Ql=0,ja=null,$e=null,Oc=!1,Ku=0,xp=0,yu=1/0,bu=null,_n=null,ke=0,kn=null,Zl=null,ln=0,Dc=0,jc=null,vp=null,Ma=0,Mc=null;function dt(){return ee&2&&F!==0?F&-F:H.T!==null?$s():_d()}function Sp(){if(ct===0)if(!(F&536870912)||$){var e=vi;vi<<=1,!(vi&3932160)&&(vi=262144),ct=e}else ct=536870912;return e=pt.current,e!==null&&(e.flags|=32),ct}function We(e,t,n){(e===ce&&(le===2||le===9)||e.cancelPendingCommit!==null)&&(Kl(e,0),Tn(e,F,ct,!1)),ai(e,n),(!(ee&2)||e!==ce)&&(e===ce&&(!(ee&2)&&(Wn|=n),ve===4&&Tn(e,F,ct,!1)),Yt(e))}function Ep(e,t,n){if(ee&6)throw Error(w(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||li(e,t),a=l?l1(e,t):kr(e,t,!0),i=l;do{if(a===0){ta&&!l&&Tn(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!t1(n)){a=kr(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var r=e;a=ja;var c=r.current.memoizedState.isDehydrated;if(c&&(Kl(r,u).flags|=256),u=kr(r,u,!1),u!==2){if(Js&&!c){r.errorRecoveryDisabledLanes|=i,Wn|=i,a=4;break e}i=$e,$e=a,i!==null&&($e===null?$e=i:$e.push.apply($e,i))}a=u}if(i=!1,a!==2)continue}}if(a===1){Kl(e,0),Tn(e,t,0,!0);break}e:{switch(l=e,i=a,i){case 0:case 1:throw Error(w(345));case 4:if((t&4194048)!==t)break;case 6:Tn(l,t,ct,!En);break e;case 2:$e=null;break;case 3:case 5:break;default:throw Error(w(329))}if((t&62914560)===t&&(a=Ku+300-ot(),10<a)){if(Tn(l,t,ct,!En),Uu(l,0,!0)!==0)break e;ln=t,l.timeoutHandle=Gp(Df.bind(null,l,n,$e,bu,Oc,t,ct,Wn,Ql,En,i,"Throttled",-0,0),a);break e}Df(l,n,$e,bu,Oc,t,ct,Wn,Ql,En,i,null,-0,0)}}break}while(!0);Yt(e)}function Df(e,t,n,l,a,i,u,r,c,s,o,h,d,f){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pt},pp(t,i,h);var x=(i&62914560)===i?Ku-ot():(i&4194048)===i?xp-ot():0;if(x=H1(h,x),x!==null){ln=i,e.cancelPendingCommit=x(Mf.bind(null,e,t,i,n,l,a,u,r,c,o,h,null,d,f)),Tn(e,i,u,!s);return}}Mf(e,t,i,n,l,a,u,r,c)}function t1(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 a=n[l],i=a.getSnapshot;a=a.value;try{if(!mt(i(),a))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 Tn(e,t,n,l){t&=~Fs,t&=~Wn,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var a=t;0<a;){var i=31-ht(a),u=1<<i;l[i]=-1,a&=~u}n!==0&&wd(e,n,t)}function Ju(){return ee&6?!0:(oi(0),!1)}function Is(){if(J!==null){if(le===0)var e=J.return;else e=J,en=cl=null,Rs(e),Ml=null,Za=0,e=J;for(;e!==null;)tp(e.alternate,e),e=e.return;J=null}}function Kl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,S1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ln=0,Is(),ce=e,J=n=tn(e.current,null),F=t,le=0,it=null,En=!1,ta=li(e,t),Js=!1,Ql=ct=Fs=Wn=Bn=ve=0,$e=ja=null,Oc=!1,t&8&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-ht(l),i=1<<a;t|=e[a],l&=~i}return sn=t,qu(),n}function Tp(e,t){V=null,H.H=Ja,t===ea||t===Gu?(t=of(),le=3):t===Ns?(t=of(),le=4):le=t===Xs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,it=t,J===null&&(ve=1,mu(e,Tt(t,e.current)))}function Ap(){var e=pt.current;return e===null?!0:(F&4194048)===F?zt===null:(F&62914560)===F||F&536870912?e===zt:!1}function zp(){var e=H.H;return H.H=Ja,e===null?Ja:e}function wp(){var e=H.A;return H.A=P0,e}function xu(){ve=4,En||(F&4194048)!==F&&pt.current!==null||(ta=!0),!(Bn&134217727)&&!(Wn&134217727)||ce===null||Tn(ce,F,ct,!1)}function kr(e,t,n){var l=ee;ee|=2;var a=zp(),i=wp();(ce!==e||F!==t)&&(bu=null,Kl(e,t)),t=!1;var u=ve;e:do try{if(le!==0&&J!==null){var r=J,c=it;switch(le){case 8:Is(),u=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var s=le;if(le=0,it=null,_l(e,r,c,s),n&&ta){u=0;break e}break;default:s=le,le=0,it=null,_l(e,r,c,s)}}n1(),u=ve;break}catch(o){Tp(e,o)}while(!0);return t&&e.shellSuspendCounter++,en=cl=null,ee=l,H.H=a,H.A=i,J===null&&(ce=null,F=0,qu()),u}function n1(){for(;J!==null;)Cp(J)}function l1(e,t){var n=ee;ee|=2;var l=zp(),a=wp();ce!==e||F!==t?(bu=null,yu=ot()+500,Kl(e,t)):ta=li(e,t);e:do try{if(le!==0&&J!==null){t=J;var i=it;t:switch(le){case 1:le=0,it=null,_l(e,t,i,1);break;case 2:case 9:if(sf(i)){le=0,it=null,jf(t);break}t=function(){le!==2&&le!==9||ce!==e||(le=7),Yt(e)},i.then(t,t);break e;case 3:le=7;break e;case 4:le=5;break e;case 7:sf(i)?(le=0,it=null,jf(t)):(le=0,it=null,_l(e,t,i,7));break;case 5:var u=null;switch(J.tag){case 26:u=J.memoizedState;case 5:case 27:var r=J;if(u?Kp(u):r.stateNode.complete){le=0,it=null;var c=r.sibling;if(c!==null)J=c;else{var s=r.return;s!==null?(J=s,Fu(s)):J=null}break t}}le=0,it=null,_l(e,t,i,5);break;case 6:le=0,it=null,_l(e,t,i,6);break;case 8:Is(),ve=6;break e;default:throw Error(w(462))}}a1();break}catch(o){Tp(e,o)}while(!0);return en=cl=null,H.H=l,H.A=a,ee=n,J!==null?0:(ce=null,F=0,qu(),ve)}function a1(){for(;J!==null&&!Cy();)Cp(J)}function Cp(e){var t=ep(e.alternate,e,sn);e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function jf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=wf(n,t,t.pendingProps,t.type,void 0,F);break;case 11:t=wf(n,t,t.pendingProps,t.type.render,t.ref,F);break;case 5:Rs(t);default:tp(n,t),t=J=tm(t,sn),t=ep(n,t,sn)}e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function _l(e,t,n,l){en=cl=null,Rs(t),Ml=null,Za=0;var a=t.return;try{if(Z0(e,a,t,n,F)){ve=1,mu(e,Tt(n,e.current)),J=null;return}}catch(i){if(a!==null)throw J=a,i;ve=1,mu(e,Tt(n,e.current)),J=null;return}t.flags&32768?($||l===1?e=!0:ta||F&536870912?e=!1:(En=e=!0,(l===2||l===9||l===3||l===6)&&(l=pt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Np(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Np(t,En);return}e=t.return;var n=F0(t.alternate,t,sn);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);ve===0&&(ve=5)}function Np(e,t){do{var n=I0(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);ve=6,J=null}function Mf(e,t,n,l,a,i,u,r,c){e.cancelPendingCommit=null;do Iu();while(ke!==0);if(ee&6)throw Error(w(327));if(t!==null){if(t===e.current)throw Error(w(177));if(i=t.lanes|t.childLanes,i|=Ss,By(e,n,i,u,r,c),e===ce&&(J=ce=null,F=0),Zl=t,kn=e,ln=n,Dc=i,jc=a,vp=l,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,c1(lu,function(){return jp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,t.subtreeFlags&13878||l){l=H.T,H.T=null,a=te.p,te.p=2,u=ee,ee|=4;try{$0(e,t,n)}finally{ee=u,te.p=a,H.T=l}}ke=1,_p(),kp(),Op()}}function _p(){if(ke===1){ke=0;var e=kn,t=Zl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=H.T,H.T=null;var l=te.p;te.p=2;var a=ee;ee|=4;try{hp(t,e);var i=Lc,u=Kd(e.containerInfo),r=i.focusedElem,c=i.selectionRange;if(u!==r&&r&&r.ownerDocument&&Zd(r.ownerDocument.documentElement,r)){if(c!==null&&vs(r)){var s=c.start,o=c.end;if(o===void 0&&(o=s),"selectionStart"in r)r.selectionStart=s,r.selectionEnd=Math.min(o,r.value.length);else{var h=r.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var f=d.getSelection(),x=r.textContent.length,S=Math.min(c.start,x),O=c.end===void 0?S:Math.min(c.end,x);!f.extend&&S>O&&(u=O,O=S,S=u);var m=tf(r,S),g=tf(r,O);if(m&&g&&(f.rangeCount!==1||f.anchorNode!==m.node||f.anchorOffset!==m.offset||f.focusNode!==g.node||f.focusOffset!==g.offset)){var b=h.createRange();b.setStart(m.node,m.offset),f.removeAllRanges(),S>O?(f.addRange(b),f.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),f.addRange(b))}}}}for(h=[],f=r;f=f.parentNode;)f.nodeType===1&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<h.length;r++){var E=h[r];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Cu=!!Bc,Lc=Bc=null}finally{ee=a,te.p=l,H.T=n}}e.current=t,ke=2}}function kp(){if(ke===2){ke=0;var e=kn,t=Zl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=H.T,H.T=null;var l=te.p;te.p=2;var a=ee;ee|=4;try{rp(e,t.alternate,t)}finally{ee=a,te.p=l,H.T=n}}ke=3}}function Op(){if(ke===4||ke===3){ke=0,Ny();var e=kn,t=Zl,n=ln,l=vp;t.subtreeFlags&10256||t.flags&10256?ke=5:(ke=0,Zl=kn=null,Dp(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(_n=null),ds(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(ni,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=H.T,a=te.p,te.p=2,H.T=null;try{for(var i=e.onRecoverableError,u=0;u<l.length;u++){var r=l[u];i(r.value,{componentStack:r.stack})}}finally{H.T=t,te.p=a}}ln&3&&Iu(),Yt(e),a=e.pendingLanes,n&261930&&a&42?e===Mc?Ma++:(Ma=0,Mc=e):Ma=0,oi(0)}}function Dp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ri(t)))}function Iu(){return _p(),kp(),Op(),jp()}function jp(){if(ke!==5)return!1;var e=kn,t=Dc;Dc=0;var n=ds(ln),l=H.T,a=te.p;try{te.p=32>n?32:n,H.T=null,n=jc,jc=null;var i=kn,u=ln;if(ke=0,Zl=kn=null,ln=0,ee&6)throw Error(w(331));var r=ee;if(ee|=4,yp(i.current),mp(i,i.current,u,n),ee=r,oi(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(ni,i)}catch{}return!0}finally{te.p=a,H.T=l,Dp(e,t)}}function Rf(e,t,n){t=Tt(n,t),t=Cc(e.stateNode,t,2),e=Nn(e,t,2),e!==null&&(ai(e,2),Yt(e))}function ae(e,t,n){if(e.tag===3)Rf(e,e,n);else for(;t!==null;){if(t.tag===3){Rf(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(_n===null||!_n.has(l))){e=Tt(n,e),n=Jm(2),l=Nn(t,n,2),l!==null&&(Fm(n,l,t,e),ai(l,2),Yt(l));break}}t=t.return}}function Or(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new e1;var a=new Set;l.set(t,a)}else a=l.get(t),a===void 0&&(a=new Set,l.set(t,a));a.has(n)||(Js=!0,a.add(n),e=i1.bind(null,e,t,n),t.then(e,e))}function i1(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ce===e&&(F&n)===n&&(ve===4||ve===3&&(F&62914560)===F&&300>ot()-Ku?!(ee&2)&&Kl(e,0):Fs|=n,Ql===F&&(Ql=0)),Yt(e)}function Mp(e,t){t===0&&(t=zd()),e=rl(e,t),e!==null&&(ai(e,t),Yt(e))}function u1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mp(e,n)}function r1(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(w(314))}l!==null&&l.delete(t),Mp(e,n)}function c1(e,t){return fs(e,t)}var vu=null,yl=null,Rc=!1,Su=!1,Dr=!1,An=0;function Yt(e){e!==yl&&e.next===null&&(yl===null?vu=yl=e:yl=yl.next=e),Su=!0,Rc||(Rc=!0,o1())}function oi(e,t){if(!Dr&&Su){Dr=!0;do for(var n=!1,l=vu;l!==null;){if(e!==0){var a=l.pendingLanes;if(a===0)var i=0;else{var u=l.suspendedLanes,r=l.pingedLanes;i=(1<<31-ht(42|e)+1)-1,i&=a&~(u&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Uf(l,i))}else i=F,i=Uu(l,l===ce?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),!(i&3)||li(l,i)||(n=!0,Uf(l,i));l=l.next}while(n);Dr=!1}}function s1(){Rp()}function Rp(){Su=Rc=!1;var e=0;An!==0&&v1()&&(e=An);for(var t=ot(),n=null,l=vu;l!==null;){var a=l.next,i=Up(l,t);i===0?(l.next=null,n===null?vu=a:n.next=a,a===null&&(yl=n)):(n=l,(e!==0||i&3)&&(Su=!0)),l=a}ke!==0&&ke!==5||oi(e),An!==0&&(An=0)}function Up(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-ht(i),r=1<<u,c=a[u];c===-1?(!(r&n)||r&l)&&(a[u]=Uy(r,t)):c<=t&&(e.expiredLanes|=r),i&=~r}if(t=ce,n=F,n=Uu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(le===2||le===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ur(l),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||li(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&ur(l),ds(n)){case 2:case 8:n=Td;break;case 32:n=lu;break;case 268435456:n=Ad;break;default:n=lu}return l=Bp.bind(null,e),n=fs(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&ur(l),e.callbackPriority=2,e.callbackNode=null,2}function Bp(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Iu()&&e.callbackNode!==n)return null;var l=F;return l=Uu(e,e===ce?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ep(e,l,t),Up(e,ot()),e.callbackNode!=null&&e.callbackNode===n?Bp.bind(null,e):null)}function Uf(e,t){if(Iu())return null;Ep(e,t,!0)}function o1(){E1(function(){ee&6?fs(Ed,s1):Rp()})}function $s(){if(An===0){var e=Gl;e===0&&(e=xi,xi<<=1,!(xi&261888)&&(xi=256)),An=e}return An}function Bf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bi(""+e)}function Lf(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 f1(e,t,n,l,a){if(t==="submit"&&n&&n.stateNode===a){var i=Bf((a[et]||null).action),u=l.submitter;u&&(t=(t=u[et]||null)?Bf(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var r=new Bu("action","action",null,l,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(An!==0){var c=u?Lf(a,u):new FormData(a);zc(n,{pending:!0,data:c,method:a.method,action:i},null,c)}}else typeof i=="function"&&(r.preventDefault(),c=u?Lf(a,u):new FormData(a),zc(n,{pending:!0,data:c,method:a.method,action:i},i,c))},currentTarget:a}]})}}for(var jr=0;jr<dc.length;jr++){var Mr=dc[jr],h1=Mr.toLowerCase(),d1=Mr[0].toUpperCase()+Mr.slice(1);Ot(h1,"on"+d1)}Ot(Fd,"onAnimationEnd");Ot(Id,"onAnimationIteration");Ot($d,"onAnimationStart");Ot("dblclick","onDoubleClick");Ot("focusin","onFocus");Ot("focusout","onBlur");Ot(_0,"onTransitionRun");Ot(k0,"onTransitionStart");Ot(O0,"onTransitionCancel");Ot(Wd,"onTransitionEnd");ql("onMouseEnter",["mouseout","mouseover"]);ql("onMouseLeave",["mouseout","mouseover"]);ql("onPointerEnter",["pointerout","pointerover"]);ql("onPointerLeave",["pointerout","pointerover"]);al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));al("onBeforeInput",["compositionend","keypress","textInput","paste"]);al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fa="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(" "),m1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fa));function Lp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],a=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var u=l.length-1;0<=u;u--){var r=l[u],c=r.instance,s=r.currentTarget;if(r=r.listener,c!==i&&a.isPropagationStopped())break e;i=r,a.currentTarget=s;try{i(a)}catch(o){iu(o)}a.currentTarget=null,i=c}else for(u=0;u<l.length;u++){if(r=l[u],c=r.instance,s=r.currentTarget,r=r.listener,c!==i&&a.isPropagationStopped())break e;i=r,a.currentTarget=s;try{i(a)}catch(o){iu(o)}a.currentTarget=null,i=c}}}}function K(e,t){var n=t[ic];n===void 0&&(n=t[ic]=new Set);var l=e+"__bubble";n.has(l)||(Hp(t,e,2,!1),n.add(l))}function Rr(e,t,n){var l=0;t&&(l|=4),Hp(n,e,l,t)}var _i="_reactListening"+Math.random().toString(36).slice(2);function Ws(e){if(!e[_i]){e[_i]=!0,kd.forEach(function(n){n!=="selectionchange"&&(m1.has(n)||Rr(n,!1,e),Rr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_i]||(t[_i]=!0,Rr("selectionchange",!1,t))}}function Hp(e,t,n,l){switch(Wp(t)){case 2:var a=G1;break;case 8:a=V1;break;default:a=no}n=a.bind(null,t,n,e),a=void 0,!oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),l?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ur(e,t,n,l,a){var i=l;if(!(t&1)&&!(t&2)&&l!==null)e:for(;;){if(l===null)return;var u=l.tag;if(u===3||u===4){var r=l.stateNode.containerInfo;if(r===a)break;if(u===4)for(u=l.return;u!==null;){var c=u.tag;if((c===3||c===4)&&u.stateNode.containerInfo===a)return;u=u.return}for(;r!==null;){if(u=vl(r),u===null)return;if(c=u.tag,c===5||c===6||c===26||c===27){l=i=u;continue e}r=r.parentNode}}l=l.return}Ld(function(){var s=i,o=gs(n),h=[];e:{var d=Pd.get(e);if(d!==void 0){var f=Bu,x=e;switch(e){case"keypress":if(Hi(n)===0)break e;case"keydown":case"keyup":f=r0;break;case"focusin":x="focus",f=fr;break;case"focusout":x="blur",f=fr;break;case"beforeblur":case"afterblur":f=fr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Qo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=o0;break;case Fd:case Id:case $d:f=Wy;break;case Wd:f=h0;break;case"scroll":case"scrollend":f=Ky;break;case"wheel":f=m0;break;case"copy":case"cut":case"paste":f=e0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Ko;break;case"toggle":case"beforetoggle":f=g0}var S=(t&4)!==0,O=!S&&(e==="scroll"||e==="scrollend"),m=S?d!==null?d+"Capture":null:d;S=[];for(var g=s,b;g!==null;){var E=g;if(b=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||b===null||m===null||(E=Ya(g,m),E!=null&&S.push(Ia(g,E,b))),O)break;g=g.return}0<S.length&&(d=new f(d,x,null,n,o),h.push({event:d,listeners:S}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",d&&n!==sc&&(x=n.relatedTarget||n.fromElement)&&(vl(x)||x[$l]))break e;if((f||d)&&(d=o.window===o?o:(d=o.ownerDocument)?d.defaultView||d.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=s,x=x?vl(x):null,x!==null&&(O=ti(x),S=x.tag,x!==O||S!==5&&S!==27&&S!==6)&&(x=null)):(f=null,x=s),f!==x)){if(S=Qo,E="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(S=Ko,E="onPointerLeave",m="onPointerEnter",g="pointer"),O=f==null?d:xa(f),b=x==null?d:xa(x),d=new S(E,g+"leave",f,n,o),d.target=O,d.relatedTarget=b,E=null,vl(o)===s&&(S=new S(m,g+"enter",x,n,o),S.target=b,S.relatedTarget=O,E=S),O=E,f&&x)t:{for(S=p1,m=f,g=x,b=0,E=m;E;E=S(E))b++;E=0;for(var _=g;_;_=S(_))E++;for(;0<b-E;)m=S(m),b--;for(;0<E-b;)g=S(g),E--;for(;b--;){if(m===g||g!==null&&m===g.alternate){S=m;break t}m=S(m),g=S(g)}S=null}else S=null;f!==null&&Hf(h,d,f,S,!1),x!==null&&O!==null&&Hf(h,O,x,S,!0)}}e:{if(d=s?xa(s):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var T=$o;else if(Io(d))if(Xd)T=w0;else{T=A0;var C=T0}else f=d.nodeName,!f||f.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?s&&ps(s.elementType)&&(T=$o):T=z0;if(T&&(T=T(e,s))){Vd(h,T,n,o);break e}C&&C(e,d,s),e==="focusout"&&s&&d.type==="number"&&s.memoizedProps.value!=null&&cc(d,"number",d.value)}switch(C=s?xa(s):window,e){case"focusin":(Io(C)||C.contentEditable==="true")&&(Tl=C,fc=s,za=null);break;case"focusout":za=fc=Tl=null;break;case"mousedown":hc=!0;break;case"contextmenu":case"mouseup":case"dragend":hc=!1,nf(h,n,o);break;case"selectionchange":if(N0)break;case"keydown":case"keyup":nf(h,n,o)}var M;if(xs)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else El?Yd(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(qd&&n.locale!=="ko"&&(El||j!=="onCompositionStart"?j==="onCompositionEnd"&&El&&(M=Hd()):(Sn=o,ys="value"in Sn?Sn.value:Sn.textContent,El=!0)),C=Eu(s,j),0<C.length&&(j=new Zo(j,e,null,n,o),h.push({event:j,listeners:C}),M?j.data=M:(M=Gd(n),M!==null&&(j.data=M)))),(M=b0?x0(e,n):v0(e,n))&&(j=Eu(s,"onBeforeInput"),0<j.length&&(C=new Zo("onBeforeInput","beforeinput",null,n,o),h.push({event:C,listeners:j}),C.data=M)),f1(h,e,s,n,o)}Lp(h,t)})}function Ia(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Eu(e,t){for(var n=t+"Capture",l=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Ya(e,n),a!=null&&l.unshift(Ia(e,a,i)),a=Ya(e,t),a!=null&&l.push(Ia(e,a,i))),e.tag===3)return l;e=e.return}return[]}function p1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hf(e,t,n,l,a){for(var i=t._reactName,u=[];n!==null&&n!==l;){var r=n,c=r.alternate,s=r.stateNode;if(r=r.tag,c!==null&&c===l)break;r!==5&&r!==26&&r!==27||s===null||(c=s,a?(s=Ya(n,i),s!=null&&u.unshift(Ia(n,s,c))):a||(s=Ya(n,i),s!=null&&u.push(Ia(n,s,c)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var g1=/\r\n?/g,y1=/\u0000|\uFFFD/g;function qf(e){return(typeof e=="string"?e:""+e).replace(g1,`
`).replace(y1,"")}function qp(e,t){return t=qf(t),qf(e)===t}function ie(e,t,n,l,a,i){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Yl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Yl(e,""+l);break;case"className":Ei(e,"class",l);break;case"tabIndex":Ei(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ei(e,n,l);break;case"style":Bd(e,l,i);break;case"data":if(t!=="object"){Ei(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=Bi(""+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 i=="function"&&(n==="formAction"?(t!=="input"&&ie(e,t,"name",a.name,a,null),ie(e,t,"formEncType",a.formEncType,a,null),ie(e,t,"formMethod",a.formMethod,a,null),ie(e,t,"formTarget",a.formTarget,a,null)):(ie(e,t,"encType",a.encType,a,null),ie(e,t,"method",a.method,a,null),ie(e,t,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Bi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Pt);break;case"onScroll":l!=null&&K("scroll",e);break;case"onScrollEnd":l!=null&&K("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(w(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(w(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=Bi(""+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":K("beforetoggle",e),K("toggle",e),Ui(e,"popover",l);break;case"xlinkActuate":Qt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Qt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Qt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Qt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Qt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Qt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ui(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=Qy.get(n)||n,Ui(e,n,l))}}function Uc(e,t,n,l,a,i){switch(n){case"style":Bd(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(w(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Yl(e,l):(typeof l=="number"||typeof l=="bigint")&&Yl(e,""+l);break;case"onScroll":l!=null&&K("scroll",e);break;case"onScrollEnd":l!=null&&K("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Pt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Od.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[et]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof l=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,a);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Ui(e,n,l)}}}function qe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":K("error",e),K("load",e);var l=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var u=n[i];if(u!=null)switch(i){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ie(e,t,i,u,n,null)}}a&&ie(e,t,"srcSet",n.srcSet,n,null),l&&ie(e,t,"src",n.src,n,null);return;case"input":K("invalid",e);var r=i=u=a=null,c=null,s=null;for(l in n)if(n.hasOwnProperty(l)){var o=n[l];if(o!=null)switch(l){case"name":a=o;break;case"type":u=o;break;case"checked":c=o;break;case"defaultChecked":s=o;break;case"value":i=o;break;case"defaultValue":r=o;break;case"children":case"dangerouslySetInnerHTML":if(o!=null)throw Error(w(137,t));break;default:ie(e,t,l,o,n,null)}}Md(e,i,r,c,s,u,a,!1);return;case"select":K("invalid",e),l=u=i=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":i=r;break;case"defaultValue":u=r;break;case"multiple":l=r;default:ie(e,t,a,r,n,null)}t=i,n=u,e.multiple=!!l,t!=null?Ol(e,!!l,t,!1):n!=null&&Ol(e,!!l,n,!0);return;case"textarea":K("invalid",e),i=a=l=null;for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"value":l=r;break;case"defaultValue":a=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(w(91));break;default:ie(e,t,u,r,n,null)}Ud(e,l,a,i);return;case"option":for(c in n)if(n.hasOwnProperty(c)&&(l=n[c],l!=null))switch(c){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ie(e,t,c,l,n,null)}return;case"dialog":K("beforetoggle",e),K("toggle",e),K("cancel",e),K("close",e);break;case"iframe":case"object":K("load",e);break;case"video":case"audio":for(l=0;l<Fa.length;l++)K(Fa[l],e);break;case"image":K("error",e),K("load",e);break;case"details":K("toggle",e);break;case"embed":case"source":case"link":K("error",e),K("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(s in n)if(n.hasOwnProperty(s)&&(l=n[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ie(e,t,s,l,n,null)}return;default:if(ps(t)){for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!==void 0&&Uc(e,t,o,l,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(l=n[r],l!=null&&ie(e,t,r,l,n,null))}function b1(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 a=null,i=null,u=null,r=null,c=null,s=null,o=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&h!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":c=h;default:l.hasOwnProperty(f)||ie(e,t,f,null,l,h)}}for(var d in l){var f=l[d];if(h=n[d],l.hasOwnProperty(d)&&(f!=null||h!=null))switch(d){case"type":i=f;break;case"name":a=f;break;case"checked":s=f;break;case"defaultChecked":o=f;break;case"value":u=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(w(137,t));break;default:f!==h&&ie(e,t,d,f,l,h)}}rc(e,u,r,c,s,o,i,a);return;case"select":f=u=r=d=null;for(i in n)if(c=n[i],n.hasOwnProperty(i)&&c!=null)switch(i){case"value":break;case"multiple":f=c;default:l.hasOwnProperty(i)||ie(e,t,i,null,l,c)}for(a in l)if(i=l[a],c=n[a],l.hasOwnProperty(a)&&(i!=null||c!=null))switch(a){case"value":d=i;break;case"defaultValue":r=i;break;case"multiple":u=i;default:i!==c&&ie(e,t,a,i,l,c)}t=r,n=u,l=f,d!=null?Ol(e,!!n,d,!1):!!l!=!!n&&(t!=null?Ol(e,!!n,t,!0):Ol(e,!!n,n?[]:"",!1));return;case"textarea":f=d=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!l.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ie(e,t,r,null,l,a)}for(u in l)if(a=l[u],i=n[u],l.hasOwnProperty(u)&&(a!=null||i!=null))switch(u){case"value":d=a;break;case"defaultValue":f=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(w(91));break;default:a!==i&&ie(e,t,u,a,l,i)}Rd(e,d,f);return;case"option":for(var x in n)if(d=n[x],n.hasOwnProperty(x)&&d!=null&&!l.hasOwnProperty(x))switch(x){case"selected":e.selected=!1;break;default:ie(e,t,x,null,l,d)}for(c in l)if(d=l[c],f=n[c],l.hasOwnProperty(c)&&d!==f&&(d!=null||f!=null))switch(c){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ie(e,t,c,d,l,f)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var S in n)d=n[S],n.hasOwnProperty(S)&&d!=null&&!l.hasOwnProperty(S)&&ie(e,t,S,null,l,d);for(s in l)if(d=l[s],f=n[s],l.hasOwnProperty(s)&&d!==f&&(d!=null||f!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(w(137,t));break;default:ie(e,t,s,d,l,f)}return;default:if(ps(t)){for(var O in n)d=n[O],n.hasOwnProperty(O)&&d!==void 0&&!l.hasOwnProperty(O)&&Uc(e,t,O,void 0,l,d);for(o in l)d=l[o],f=n[o],!l.hasOwnProperty(o)||d===f||d===void 0&&f===void 0||Uc(e,t,o,d,l,f);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!l.hasOwnProperty(m)&&ie(e,t,m,null,l,d);for(h in l)d=l[h],f=n[h],!l.hasOwnProperty(h)||d===f||d==null&&f==null||ie(e,t,h,d,l,f)}function Yf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function x1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,u=a.initiatorType,r=a.duration;if(i&&r&&Yf(u)){for(u=0,r=a.responseEnd,l+=1;l<n.length;l++){var c=n[l],s=c.startTime;if(s>r)break;var o=c.transferSize,h=c.initiatorType;o&&Yf(h)&&(c=c.responseEnd,u+=o*(c<r?1:(r-s)/(c-s)))}if(--l,t+=8*(i+u)/(a.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 Bc=null,Lc=null;function Tu(e){return e.nodeType===9?e:e.ownerDocument}function Gf(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 Yp(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 Hc(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 Br=null;function v1(){var e=window.event;return e&&e.type==="popstate"?e===Br?!1:(Br=e,!0):(Br=null,!1)}var Gp=typeof setTimeout=="function"?setTimeout:void 0,S1=typeof clearTimeout=="function"?clearTimeout:void 0,Vf=typeof Promise=="function"?Promise:void 0,E1=typeof queueMicrotask=="function"?queueMicrotask:typeof Vf<"u"?function(e){return Vf.resolve(null).then(e).catch(T1)}:Gp;function T1(e){setTimeout(function(){throw e})}function Hn(e){return e==="head"}function Xf(e,t){var n=t,l=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(a),Fl(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ra(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ra(n);for(var i=n.firstChild;i;){var u=i.nextSibling,r=i.nodeName;i[ii]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=u}}else n==="body"&&Ra(e.ownerDocument.body);n=a}while(n);Fl(t)}function Qf(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 qc(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":qc(n),ms(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function A1(e,t,n,l){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ii])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=wt(e.nextSibling),e===null)break}return null}function z1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=wt(e.nextSibling),e===null))return null;return e}function Vp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wt(e.nextSibling),e===null))return null;return e}function Yc(e){return e.data==="$?"||e.data==="$~"}function Gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function w1(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 wt(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 Vc=null;function Zf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return wt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Kf(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 Xp(e,t,n){switch(t=Tu(n),e){case"html":if(e=t.documentElement,!e)throw Error(w(452));return e;case"head":if(e=t.head,!e)throw Error(w(453));return e;case"body":if(e=t.body,!e)throw Error(w(454));return e;default:throw Error(w(451))}}function Ra(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ms(e)}var Ct=new Map,Jf=new Set;function Au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var on=te.d;te.d={f:C1,r:N1,D:_1,C:k1,L:O1,m:D1,X:M1,S:j1,M:R1};function C1(){var e=on.f(),t=Ju();return e||t}function N1(e){var t=Wl(e);t!==null&&t.tag===5&&t.type==="form"?Bm(t):on.r(e)}var na=typeof document>"u"?null:document;function Qp(e,t,n){var l=na;if(l&&typeof t=="string"&&t){var a=Et(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Jf.has(a)||(Jf.add(a),e={rel:e,crossOrigin:n,href:t},l.querySelector(a)===null&&(t=l.createElement("link"),qe(t,"link",e),Me(t),l.head.appendChild(t)))}}function _1(e){on.D(e),Qp("dns-prefetch",e,null)}function k1(e,t){on.C(e,t),Qp("preconnect",e,t)}function O1(e,t,n){on.L(e,t,n);var l=na;if(l&&e&&t){var a='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Et(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Et(n.imageSizes)+'"]')):a+='[href="'+Et(e)+'"]';var i=a;switch(t){case"style":i=Jl(e);break;case"script":i=la(e)}Ct.has(i)||(e=pe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ct.set(i,e),l.querySelector(a)!==null||t==="style"&&l.querySelector(fi(i))||t==="script"&&l.querySelector(hi(i))||(t=l.createElement("link"),qe(t,"link",e),Me(t),l.head.appendChild(t)))}}function D1(e,t){on.m(e,t);var n=na;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Et(l)+'"][href="'+Et(e)+'"]',i=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=la(e)}if(!Ct.has(i)&&(e=pe({rel:"modulepreload",href:e},t),Ct.set(i,e),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(hi(i)))return}l=n.createElement("link"),qe(l,"link",e),Me(l),n.head.appendChild(l)}}}function j1(e,t,n){on.S(e,t,n);var l=na;if(l&&e){var a=kl(l).hoistableStyles,i=Jl(e);t=t||"default";var u=a.get(i);if(!u){var r={loading:0,preload:null};if(u=l.querySelector(fi(i)))r.loading=5;else{e=pe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ct.get(i))&&Ps(e,n);var c=u=l.createElement("link");Me(c),qe(c,"link",e),c._p=new Promise(function(s,o){c.onload=s,c.onerror=o}),c.addEventListener("load",function(){r.loading|=1}),c.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Ki(u,t,l)}u={type:"stylesheet",instance:u,count:1,state:r},a.set(i,u)}}}function M1(e,t){on.X(e,t);var n=na;if(n&&e){var l=kl(n).hoistableScripts,a=la(e),i=l.get(a);i||(i=n.querySelector(hi(a)),i||(e=pe({src:e,async:!0},t),(t=Ct.get(a))&&eo(e,t),i=n.createElement("script"),Me(i),qe(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function R1(e,t){on.M(e,t);var n=na;if(n&&e){var l=kl(n).hoistableScripts,a=la(e),i=l.get(a);i||(i=n.querySelector(hi(a)),i||(e=pe({src:e,async:!0,type:"module"},t),(t=Ct.get(a))&&eo(e,t),i=n.createElement("script"),Me(i),qe(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function Ff(e,t,n,l){var a=(a=zn.current)?Au(a):null;if(!a)throw Error(w(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Jl(n.href),n=kl(a).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=Jl(n.href);var i=kl(a).hoistableStyles,u=i.get(e);if(u||(a=a.ownerDocument||a,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=a.querySelector(fi(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Ct.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},Ct.set(e,n),i||U1(a,e,n,u.state))),t&&l===null)throw Error(w(528,""));return u}if(t&&l!==null)throw Error(w(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=la(n),n=kl(a).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(w(444,e))}}function Jl(e){return'href="'+Et(e)+'"'}function fi(e){return'link[rel="stylesheet"]['+e+"]"}function Zp(e){return pe({},e,{"data-precedence":e.precedence,precedence:null})}function U1(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}),qe(t,"link",n),Me(t),e.head.appendChild(t))}function la(e){return'[src="'+Et(e)+'"]'}function hi(e){return"script[async]"+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Et(n.href)+'"]');if(l)return t.instance=l,Me(l),l;var a=pe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Me(l),qe(l,"style",a),Ki(l,n.precedence,e),t.instance=l;case"stylesheet":a=Jl(n.href);var i=e.querySelector(fi(a));if(i)return t.state.loading|=4,t.instance=i,Me(i),i;l=Zp(n),(a=Ct.get(a))&&Ps(l,a),i=(e.ownerDocument||e).createElement("link"),Me(i);var u=i;return u._p=new Promise(function(r,c){u.onload=r,u.onerror=c}),qe(i,"link",l),t.state.loading|=4,Ki(i,n.precedence,e),t.instance=i;case"script":return i=la(n.src),(a=e.querySelector(hi(i)))?(t.instance=a,Me(a),a):(l=n,(a=Ct.get(i))&&(l=pe({},n),eo(l,a)),e=e.ownerDocument||e,a=e.createElement("script"),Me(a),qe(a,"link",l),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(w(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(l=t.instance,t.state.loading|=4,Ki(l,n.precedence,e));return t.instance}function Ki(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,u=0;u<l.length;u++){var r=l[u];if(r.dataset.precedence===t)i=r;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function eo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ji=null;function $f(e,t,n){if(Ji===null){var l=new Map,a=Ji=new Map;a.set(n,l)}else a=Ji,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[ii]||i[Be]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var r=l.get(u);r?r.push(i):l.set(u,[i])}}return l}function Wf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function B1(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;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!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 Kp(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function L1(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Jl(l.href),i=t.querySelector(fi(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Me(i);return}i=t.ownerDocument||t,l=Zp(l),(a=Ct.get(a))&&Ps(l,a),i=i.createElement("link"),Me(i);var u=i;u._p=new Promise(function(r,c){u.onload=r,u.onerror=c}),qe(i,"link",l),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=zu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Lr=0;function H1(e,t){return e.stylesheets&&e.count===0&&Fi(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Fi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Lr===0&&(Lr=62500*x1());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Lr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function zu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wu=null;function Fi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wu=new Map,t.forEach(q1,e),wu=null,zu.call(e))}function q1(e,t){if(!(t.state.loading&4)){var n=wu.get(e);if(n)var l=n.get(null);else{n=new Map,wu.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var u=a[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(n.set(u.dataset.precedence,u),l=u)}l&&n.set(null,l)}a=t.instance,u=a.getAttribute("data-precedence"),i=n.get(u)||l,i===l&&n.set(null,a),n.set(u,a),this.count++,l=zu.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var $a={$$typeof:Wt,Provider:null,Consumer:null,_currentValue:Jn,_currentValue2:Jn,_threadCount:0};function Y1(e,t,n,l,a,i,u,r,c){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=rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.hiddenUpdates=rr(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Jp(e,t,n,l,a,i,u,r,c,s,o,h){return e=new Y1(e,t,n,u,c,s,o,h,r),t=1,i===!0&&(t|=24),i=rt(3,null,null,t),e.current=i,i.stateNode=e,t=ws(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:t},_s(i),e}function Fp(e){return e?(e=wl,e):wl}function Ip(e,t,n,l,a,i){a=Fp(a),l.context===null?l.context=a:l.pendingContext=a,l=Cn(t),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=Nn(e,l,t),n!==null&&(We(n,e,t),Ca(n,e,t))}function Pf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function to(e,t){Pf(e,t),(e=e.alternate)&&Pf(e,t)}function $p(e){if(e.tag===13||e.tag===31){var t=rl(e,67108864);t!==null&&We(t,e,67108864),to(e,67108864)}}function eh(e){if(e.tag===13||e.tag===31){var t=dt();t=hs(t);var n=rl(e,t);n!==null&&We(n,e,t),to(e,t)}}var Cu=!0;function G1(e,t,n,l){var a=H.T;H.T=null;var i=te.p;try{te.p=2,no(e,t,n,l)}finally{te.p=i,H.T=a}}function V1(e,t,n,l){var a=H.T;H.T=null;var i=te.p;try{te.p=8,no(e,t,n,l)}finally{te.p=i,H.T=a}}function no(e,t,n,l){if(Cu){var a=Xc(l);if(a===null)Ur(e,t,l,Nu,n),th(e,l);else if(Q1(a,e,t,n,l))l.stopPropagation();else if(th(e,l),t&4&&-1<X1.indexOf(e)){for(;a!==null;){var i=Wl(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Xn(i.pendingLanes);if(u!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;u;){var c=1<<31-ht(u);r.entanglements[1]|=c,u&=~c}Yt(i),!(ee&6)&&(yu=ot()+500,oi(0))}}break;case 31:case 13:r=rl(i,2),r!==null&&We(r,i,2),Ju(),to(i,2)}if(i=Xc(l),i===null&&Ur(e,t,l,Nu,n),i===a)break;a=i}a!==null&&l.stopPropagation()}else Ur(e,t,l,null,n)}}function Xc(e){return e=gs(e),lo(e)}var Nu=null;function lo(e){if(Nu=null,e=vl(e),e!==null){var t=ti(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=yd(t),e!==null)return e;e=null}else if(n===31){if(e=bd(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 Nu=e,null}function Wp(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(_y()){case Ed:return 2;case Td:return 8;case lu:case ky:return 32;case Ad:return 268435456;default:return 32}default:return 32}}var Qc=!1,On=null,Dn=null,jn=null,Wa=new Map,Pa=new Map,xn=[],X1="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 th(e,t){switch(e){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":Wa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pa.delete(t.pointerId)}}function ma(e,t,n,l,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Wl(t),t!==null&&$p(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Q1(e,t,n,l,a){switch(t){case"focusin":return On=ma(On,e,t,n,l,a),!0;case"dragenter":return Dn=ma(Dn,e,t,n,l,a),!0;case"mouseover":return jn=ma(jn,e,t,n,l,a),!0;case"pointerover":var i=a.pointerId;return Wa.set(i,ma(Wa.get(i)||null,e,t,n,l,a)),!0;case"gotpointercapture":return i=a.pointerId,Pa.set(i,ma(Pa.get(i)||null,e,t,n,l,a)),!0}return!1}function Pp(e){var t=vl(e.target);if(t!==null){var n=ti(t);if(n!==null){if(t=n.tag,t===13){if(t=yd(n),t!==null){e.blockedOn=t,Lo(e.priority,function(){eh(n)});return}}else if(t===31){if(t=bd(n),t!==null){e.blockedOn=t,Lo(e.priority,function(){eh(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 Ii(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);sc=l,n.target.dispatchEvent(l),sc=null}else return t=Wl(n),t!==null&&$p(t),e.blockedOn=n,!1;t.shift()}return!0}function nh(e,t,n){Ii(e)&&n.delete(t)}function Z1(){Qc=!1,On!==null&&Ii(On)&&(On=null),Dn!==null&&Ii(Dn)&&(Dn=null),jn!==null&&Ii(jn)&&(jn=null),Wa.forEach(nh),Pa.forEach(nh)}function ki(e,t){e.blockedOn===t&&(e.blockedOn=null,Qc||(Qc=!0,Oe.unstable_scheduleCallback(Oe.unstable_NormalPriority,Z1)))}var Oi=null;function lh(e){Oi!==e&&(Oi=e,Oe.unstable_scheduleCallback(Oe.unstable_NormalPriority,function(){Oi===e&&(Oi=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],a=e[t+2];if(typeof l!="function"){if(lo(l||n)===null)continue;break}var i=Wl(n);i!==null&&(e.splice(t,3),t-=3,zc(i,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Fl(e){function t(c){return ki(c,e)}On!==null&&ki(On,e),Dn!==null&&ki(Dn,e),jn!==null&&ki(jn,e),Wa.forEach(t),Pa.forEach(t);for(var n=0;n<xn.length;n++){var l=xn[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<xn.length&&(n=xn[0],n.blockedOn===null);)Pp(n),n.blockedOn===null&&xn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],u=a[et]||null;if(typeof i=="function")u||lh(n);else if(u){var r=null;if(i&&i.hasAttribute("formAction")){if(a=i,u=i[et]||null)r=u.formAction;else if(lo(a)!==null)continue}else r=u.action;typeof r=="function"?n[l+1]=r:(n.splice(l,3),l-=3),lh(n)}}}function eg(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return a=u})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=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),a!==null&&(a(),a=null)}}}function ao(e){this._internalRoot=e}$u.prototype.render=ao.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));var n=t.current,l=dt();Ip(n,l,e,t,null,null)};$u.prototype.unmount=ao.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ip(e.current,2,null,e,null,null),Ju(),t[$l]=null}};function $u(e){this._internalRoot=e}$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=_d();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xn.length&&t!==0&&t<xn[n].priority;n++);xn.splice(n,0,e),n===0&&Pp(e)}};var ah=pd.version;if(ah!=="19.2.4")throw Error(w(527,ah,"19.2.4"));te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=Ey(t),e=e!==null?xd(e):null,e=e===null?null:e.stateNode,e};var K1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Di.isDisabled&&Di.supportsFiber)try{ni=Di.inject(K1),ft=Di}catch{}}Mu.createRoot=function(e,t){if(!gd(e))throw Error(w(299));var n=!1,l="",a=Qm,i=Zm,u=Km;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=Jp(e,1,!1,null,null,n,l,null,a,i,u,eg),e[$l]=t.current,Ws(e),new ao(t)};Mu.hydrateRoot=function(e,t,n){if(!gd(e))throw Error(w(299));var l=!1,a="",i=Qm,u=Zm,r=Km,c=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Jp(e,1,!0,t,n??null,l,a,c,i,u,r,eg),t.context=Fp(null),n=t.current,l=dt(),l=hs(l),a=Cn(l),a.callback=null,Nn(n,a,l),n=l,t.current.lanes=n,ai(t,n),Yt(t),e[$l]=t.current,Ws(e),new $u(t)};Mu.version="19.2.4";function tg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tg)}catch(e){console.error(e)}}tg(),sd.exports=Mu;var J1=sd.exports;const F1=Ou(J1),Ua="grain_of_salt_token",io=async()=>{const e=await new Promise(t=>{chrome.storage.local.get([Ua],t)});if(e[Ua])return e[Ua];try{console.log("[Auth] Checking API session...");const t=await fetch("https://grainofsaltai.app/api/auth/session",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(t.ok){const n=await t.json();if(n.authenticated&&n.token)return console.log("[Auth] API Session found!"),await ih(n.token),n.token}}catch(t){console.warn("[Auth] API Check failed, falling back to cookie scan",t)}return new Promise(t=>{chrome.tabs.query({active:!0,lastFocusedWindow:!0},n=>{var c;const l=(c=n[0])==null?void 0:c.url,i=["https://grainofsaltai.app"];l&&(l.includes("vercel.app")||l.includes("localhost"))&&i.unshift(l);const u=(s,o)=>{chrome.cookies.getAll({url:s},h=>{if(!h)return o(null);const d=h.find(f=>f.name.startsWith("sb-")&&f.name.endsWith("-auth-token")||f.name==="supabase-auth-token");d?(ih(d.value),o(d.value)):o(null)})},r=s=>{if(s>=i.length){t(null);return}u(i[s],o=>{o?t(o):r(s+1)})};r(0)})})},ih=e=>new Promise(t=>{chrome.storage.local.set({[Ua]:e},()=>{t()})}),I1=()=>new Promise(e=>{chrome.storage.local.remove([Ua],()=>{e()})}),$1=async()=>!!await io(),W1=()=>{chrome.tabs.create({url:"https://grainofsaltai.app/en/login"})},uo=async()=>{await I1()};/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var P1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Qe=(e,t)=>{const n=W.forwardRef(({color:l="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:r="",children:c,...s},o)=>W.createElement("svg",{ref:o,...P1,width:a,height:a,stroke:l,strokeWidth:u?Number(i)*24/Number(a):i,className:["lucide",`lucide-${eb(e)}`,r].join(" "),...s},[...t.map(([h,d])=>W.createElement(h,d)),...Array.isArray(c)?c:[c]]));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tb=Qe("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nb=Qe("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lb=Qe("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uh=Qe("Globe",[["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"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zc=Qe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ab=Qe("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ib=Qe("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ng=Qe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ub=Qe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rb=Qe("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cb=Qe("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rh=Qe("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sb=Qe("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ob=Qe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.300.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fb=Qe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),hb={en:{brandName:"Grain of Salt",wakingUp:"Waking up Salty...",unlockTruth:"Unlock the Truth",signInStart:"Sign in to start verifying content with AI-powered analysis directly in your browser.",signOut:"Sign Out",extensionCrashed:"Extension Crashed",reloadExtension:"Reload Extension",unknownError:"Unknown error",checkingStatus:"Checking status...",checkingWait:"Please wait.",signInBrowser:"Please sign in through the Grain of Salt web app first.",openSignIn:"Open Sign In",authError:"Authentication Error",tokenError:"Could not retrieve auth token. Please sign in again.",verifyEmailTitle:"Verify Your Email",verifyEmailDesc:"Please check your inbox and click the verification link to complete registration.",readyToAnalyze:"Ready to Analyze",verifyEvidenceInstantly:"Verify evidence instantly with your AI assistant.",analyzePage:"Analyze Current Page",clipRegion:"Clip & Verify Region",takingScreenshot:"Taking screenshot...",saltySearching:"Salty Searching...",analyzingGathering:"Analyzing content & gathering evidence across global sources. This usually takes 10-20 seconds.",verdictTitle:"AI VERDICT",confidence:"Score",seeFullReport:"See Full Report",searchMore:"Search More",tryAnother:"Try Another",verificationFailed:"Verification Failed",rateLimit:"Rate Limit Exceeded",rateLimitDesc:"You have reached your analysis limit. Please upgrade or try again later.",tryAgain:"Try Again",consentTitle:"Welcome to Grain of Salt!",consentDesc:"Before you start verifying the truth, we need your permission to analyze the content you select.",importantPrivacy:"Important Privacy Notice:",privacyBullet1:"Salty only reads the specific webpage or screenshot you actively choose to analyze.",privacyBullet2:"We do not track your browsing history or track you across the web.",privacyBullet3:"All analysis text is processed securely and is strictly not used to train public AI models.",iUnderstand:"I Understand & Agree",legalDisclaimer:"Legal Disclaimer",aiLimitations:"AI Limitations:",aiLimitationsDesc:'Grain of Salt utilizes advanced Artificial Intelligence to analyze information. While we employ rigorous verification protocols, AI can make mistakes, "hallucinate" facts, or misinterpret satire.',notAdvice:"Not Professional Advice:",notAdviceDesc:"This tool provides information, not advice. It is not a substitute for professional legal, medical, financial, or other professional consultation.",noGuarantee:"No Guarantee of Accuracy:",noGuaranteeDesc:"We do not guarantee that verification results are 100% accurate, complete, or up-to-date.",userResp:"User Responsibility:",userRespDesc:"You are responsible for how you use these results. Always verify critical information with primary sources before taking action.",acknowledgeRisk:"By using this tool, you acknowledge that you are using it at your own risk.",close:"Close",trustBreakdown:"Trust Breakdown",understandingScore:"Understanding the Score",corroboration:"Corroboration",corroborationDesc:"How many other sources confirm this?",credibility:"Credibility",credibilityDesc:"Are the sources reputable (e.g. Reuters)?",recency:"Recency",recencyDesc:"Is this news up-to-date?",analysis:"Analysis",externalEvidence:"External Evidence",creditRefunded:"Credit Refunded",refundedApology:"We're sorry about that! Your credit has been refunded automatically. Please try again.",notChargedBadge:"Not Charged",notChargedMessage:"No credit was used for this search. Please try a different link or paste the text directly.",translateButton:"Translate",translating:"Translating...",showOriginal:"Original"},zh:{brandName:"Grain of Salt",wakingUp:"正在唤醒 Salty...",unlockTruth:"解锁真相",signInStart:"登录即可直接在浏览器中开始使用 AI 驱动的分析来验证内容。",signOut:"退出登录",extensionCrashed:"扩展程序崩溃",reloadExtension:"重新加载",unknownError:"未知错误",checkingStatus:"正在检查状态...",checkingWait:"请稍候。",signInBrowser:"请先通过 Grain of Salt 网络应用程序登录。",openSignIn:"打开登录页面",authError:"身份验证错误",tokenError:"无法获取身份验证令牌。请重新登录。",verifyEmailTitle:"验证您的电子邮件",verifyEmailDesc:"请检查您的收件箱并点击验证链接以完成注册。",readyToAnalyze:"准备分析",verifyEvidenceInstantly:"使用您的 AI 助手即时验证证据。",analyzePage:"分析当前页面",clipRegion:"截取并验证区域",takingScreenshot:"正在截图...",saltySearching:"Salty 正在搜索...",analyzingGathering:"正在分析内容并收集全球来源的证据。这通常需要 10-20 秒。",verdictTitle:"AI 结论",confidence:"可信度",seeFullReport:"查看完整报告",searchMore:"搜索更多",tryAnother:"尝试另一个",verificationFailed:"验证失败",rateLimit:"超出速率限制",rateLimitDesc:"您已达到分析上限。请升级套餐或稍后再试。",tryAgain:"重试",consentTitle:"欢迎来到 Grain of Salt！",consentDesc:"在您开始验证真相之前，我们需要您的许可才能分析您选择的内容。",importantPrivacy:"重要隐私声明：",privacyBullet1:"Salty 仅读取您主动选择分析的特定网页或屏幕截图。",privacyBullet2:"我们不会跟踪您的浏览历史，也不会在网络上跟踪您。",privacyBullet3:"所有分析文本均经过安全处理，严禁用于训练公共 AI 模型。",iUnderstand:"我理解并同意",legalDisclaimer:"法律免责声明",aiLimitations:"AI 局限性：",aiLimitationsDesc:"Grain of Salt 利用先进的人工智能来分析信息。虽然我们采用了严格的验证协议，但 AI 可能会犯错、“虚构”事实或误解讽刺。",notAdvice:"非专业建议：",notAdviceDesc:"此工具提供信息，而非建议。它不能替代专业的法律、医疗、财务或其他专业咨询。",noGuarantee:"无准确性保证：",noGuaranteeDesc:"我们不保证验证结果 100% 准确、完整或最新。",userResp:"用户责任：",userRespDesc:"您对如何使用这些结果负责。在采取行动之前，请始终通过主要来源验证关键信息。",acknowledgeRisk:"使用此工具即表示您承认自担风险。",close:"关闭",trustBreakdown:"信任度分析",understandingScore:"了解评分",corroboration:"证据支持",corroborationDesc:"有多少其他来源证实了这一点？",credibility:"来源可信度",credibilityDesc:"消息来源是否可靠（例如路透社）？",recency:"时效性",recencyDesc:"这是最新消息吗？",analysis:"分析报告",externalEvidence:"外部证据",creditRefunded:"积分已退还",refundedApology:"非常抱歉！您的积分已自动退还，请重新尝试。",notChargedBadge:"未扣费",notChargedMessage:"本次搜索未扣除积分。请尝试其他链接或直接粘贴文本。",translateButton:"翻译",translating:"翻译中...",showOriginal:"原文"}},lg=W.createContext({locale:"en",toggleLanguage:()=>{},t:e=>e}),db=({children:e})=>{const[t,n]=W.useState("en");W.useEffect(()=>{chrome.storage.local.get(["preferred_language"],i=>{i.preferred_language==="zh"&&n("zh")})},[]);const l=()=>{const i=t==="en"?"zh":"en";n(i),chrome.storage.local.set({preferred_language:i})},a=i=>hb[t][i]||i;return p.jsx(lg.Provider,{value:{locale:t,toggleLanguage:l,t:a},children:e})},di=()=>W.useContext(lg),mb=()=>{const{t:e}=di(),[t,n]=ju.useState(!1),l=()=>{n(!0),W1(),setTimeout(()=>n(!1),3e3)};return p.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center bg-gray-50",children:[p.jsx("div",{className:"mb-6 rounded-full bg-gray-200 p-4",children:p.jsx(ng,{className:"w-12 h-12 text-gray-500"})}),p.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2 font-sans",children:e("unlockTruth")}),p.jsx("p",{className:"text-gray-600 mb-8 font-sans",children:e("signInStart")}),p.jsx("button",{onClick:l,disabled:t,className:"w-full py-3 px-6 bg-mint hover:bg-green-500 text-white font-bold rounded-lg transition-colors shadow-md flex items-center justify-center gap-2 disabled:opacity-70 disabled:cursor-not-allowed",children:t?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),e("checkingWait")]}):e("openSignIn")}),p.jsx("p",{className:"mt-4 text-xs text-gray-400",children:"Takes you to the main secure login page."})]})};function pb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bb={};function ch(e,t){return(bb.jsx?yb:gb).test(e)}const xb=/[ \t\n\f\r]/g;function vb(e){return typeof e=="object"?e.type==="text"?sh(e.value):!1:sh(e)}function sh(e){return e.replace(xb,"")===""}class mi{constructor(t,n,l){this.normal=n,this.property=t,l&&(this.space=l)}}mi.prototype.normal={};mi.prototype.property={};mi.prototype.space=void 0;function ag(e,t){const n={},l={};for(const a of e)Object.assign(n,a.property),Object.assign(l,a.normal);return new mi(n,l,t)}function Kc(e){return e.toLowerCase()}class nt{constructor(t,n){this.attribute=n,this.property=t}}nt.prototype.attribute="";nt.prototype.booleanish=!1;nt.prototype.boolean=!1;nt.prototype.commaOrSpaceSeparated=!1;nt.prototype.commaSeparated=!1;nt.prototype.defined=!1;nt.prototype.mustUseProperty=!1;nt.prototype.number=!1;nt.prototype.overloadedBoolean=!1;nt.prototype.property="";nt.prototype.spaceSeparated=!1;nt.prototype.space=void 0;let Sb=0;const X=sl(),Ae=sl(),Jc=sl(),N=sl(),se=sl(),Bl=sl(),at=sl();function sl(){return 2**++Sb}const Fc=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:Ae,commaOrSpaceSeparated:at,commaSeparated:Bl,number:N,overloadedBoolean:Jc,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),Hr=Object.keys(Fc);class ro extends nt{constructor(t,n,l,a){let i=-1;if(super(t,n),oh(this,"space",a),typeof l=="number")for(;++i<Hr.length;){const u=Hr[i];oh(this,Hr[i],(l&Fc[u])===Fc[u])}}}ro.prototype.defined=!0;function oh(e,t,n){n&&(e[t]=n)}function aa(e){const t={},n={};for(const[l,a]of Object.entries(e.properties)){const i=new ro(l,e.transform(e.attributes||{},l),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(i.mustUseProperty=!0),t[l]=i,n[Kc(l)]=l,n[Kc(i.attribute)]=l}return new mi(t,n,e.space)}const ig=aa({properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:se,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:N,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:se,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:Ae,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ug(e,t){return t in e?e[t]:t}function rg(e,t){return ug(e,t.toLowerCase())}const Eb=aa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bl,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:se,autoFocus:X,autoPlay:X,blocking:se,capture:null,charSet:null,checked:X,cite:null,className:se,cols:N,colSpan:null,content:null,contentEditable:Ae,controls:X,controlsList:se,coords:N|Bl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:Jc,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:se,height:N,hidden:Jc,high:N,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:se,itemRef:se,itemScope:X,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:X,optimum:N,pattern:null,ping:se,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:se,required:X,reversed:X,rows:N,rowSpan:N,sandbox:se,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:Ae,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:rg}),Tb=aa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:at,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Bl,g2:Bl,glyphName:Bl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:N,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ug}),cg=aa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),sg=aa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rg}),og=aa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ab={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},zb=/[A-Z]/g,fh=/-[a-z]/g,wb=/^data[-\w.:]+$/i;function Cb(e,t){const n=Kc(t);let l=t,a=nt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&wb.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(fh,_b);l="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!fh.test(i)){let u=i.replace(zb,Nb);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=ro}return new a(l,t)}function Nb(e){return"-"+e.toLowerCase()}function _b(e){return e.charAt(1).toUpperCase()}const kb=ag([ig,Eb,cg,sg,og],"html"),co=ag([ig,Tb,cg,sg,og],"svg");function Ob(e){return e.join(" ").trim()}var so={},hh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Db=/\n/g,jb=/^\s*/,Mb=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Rb=/^:\s*/,Ub=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Bb=/^[;\s]*/,Lb=/^\s+|\s+$/g,Hb=`
`,dh="/",mh="*",Kn="",qb="comment",Yb="declaration";function Gb(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,l=1;function a(x){var S=x.match(Db);S&&(n+=S.length);var O=x.lastIndexOf(Hb);l=~O?x.length-O:l+x.length}function i(){var x={line:n,column:l};return function(S){return S.position=new u(x),s(),S}}function u(x){this.start=x,this.end={line:n,column:l},this.source=t.source}u.prototype.content=e;function r(x){var S=new Error(t.source+":"+n+":"+l+": "+x);if(S.reason=x,S.filename=t.source,S.line=n,S.column=l,S.source=e,!t.silent)throw S}function c(x){var S=x.exec(e);if(S){var O=S[0];return a(O),e=e.slice(O.length),S}}function s(){c(jb)}function o(x){var S;for(x=x||[];S=h();)S!==!1&&x.push(S);return x}function h(){var x=i();if(!(dh!=e.charAt(0)||mh!=e.charAt(1))){for(var S=2;Kn!=e.charAt(S)&&(mh!=e.charAt(S)||dh!=e.charAt(S+1));)++S;if(S+=2,Kn===e.charAt(S-1))return r("End of comment missing");var O=e.slice(2,S-2);return l+=2,a(O),e=e.slice(S),l+=2,x({type:qb,comment:O})}}function d(){var x=i(),S=c(Mb);if(S){if(h(),!c(Rb))return r("property missing ':'");var O=c(Ub),m=x({type:Yb,property:ph(S[0].replace(hh,Kn)),value:O?ph(O[0].replace(hh,Kn)):Kn});return c(Bb),m}}function f(){var x=[];o(x);for(var S;S=d();)S!==!1&&(x.push(S),o(x));return x}return s(),f()}function ph(e){return e?e.replace(Lb,Kn):Kn}var Vb=Gb,Xb=Pi&&Pi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(so,"__esModule",{value:!0});so.default=Zb;const Qb=Xb(Vb);function Zb(e,t){let n=null;if(!e||typeof e!="string")return n;const l=(0,Qb.default)(e),a=typeof t=="function";return l.forEach(i=>{if(i.type!=="declaration")return;const{property:u,value:r}=i;a?t(u,r,i):r&&(n=n||{},n[u]=r)}),n}var Wu={};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.camelCase=void 0;var Kb=/^--[a-zA-Z0-9_-]+$/,Jb=/-([a-z])/g,Fb=/^[^-]+$/,Ib=/^-(webkit|moz|ms|o|khtml)-/,$b=/^-(ms)-/,Wb=function(e){return!e||Fb.test(e)||Kb.test(e)},Pb=function(e,t){return t.toUpperCase()},gh=function(e,t){return"".concat(t,"-")},ex=function(e,t){return t===void 0&&(t={}),Wb(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace($b,gh):e=e.replace(Ib,gh),e.replace(Jb,Pb))};Wu.camelCase=ex;var tx=Pi&&Pi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},nx=tx(so),lx=Wu;function Ic(e,t){var n={};return!e||typeof e!="string"||(0,nx.default)(e,function(l,a){l&&a&&(n[(0,lx.camelCase)(l,t)]=a)}),n}Ic.default=Ic;var ax=Ic;const ix=Ou(ax),fg=hg("end"),oo=hg("start");function hg(e){return t;function t(n){const l=n&&n.position&&n.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function ux(e){const t=oo(e),n=fg(e);if(t&&n)return{start:t,end:n}}function Ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yh(e.position):"start"in e||"end"in e?yh(e):"line"in e||"column"in e?$c(e):""}function $c(e){return bh(e&&e.line)+":"+bh(e&&e.column)}function yh(e){return $c(e&&e.start)+"-"+$c(e&&e.end)}function bh(e){return e&&typeof e=="number"?e:1}class Ye extends Error{constructor(t,n,l){super(),typeof n=="string"&&(l=n,n=void 0);let a="",i={},u=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(u=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof l=="string"){const c=l.indexOf(":");c===-1?i.ruleId=l:(i.source=l.slice(0,c),i.ruleId=l.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const r=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=r?r.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=r?r.line:void 0,this.name=Ba(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=u&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ye.prototype.file="";Ye.prototype.name="";Ye.prototype.reason="";Ye.prototype.message="";Ye.prototype.stack="";Ye.prototype.column=void 0;Ye.prototype.line=void 0;Ye.prototype.ancestors=void 0;Ye.prototype.cause=void 0;Ye.prototype.fatal=void 0;Ye.prototype.place=void 0;Ye.prototype.ruleId=void 0;Ye.prototype.source=void 0;const fo={}.hasOwnProperty,rx=new Map,cx=/[A-Z]/g,sx=new Set(["table","tbody","thead","tfoot","tr"]),ox=new Set(["td","th"]),dg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fx(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let l;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=xx(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=bx(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?co:kb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=mg(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function mg(e,t,n){if(t.type==="element")return hx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return dx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return px(e,t,n);if(t.type==="mdxjsEsm")return mx(e,t);if(t.type==="root")return gx(e,t,n);if(t.type==="text")return yx(e,t)}function hx(e,t,n){const l=e.schema;let a=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(a=co,e.schema=a),e.ancestors.push(t);const i=gg(e,t.tagName,!1),u=vx(e,t);let r=mo(e,t);return sx.has(t.tagName)&&(r=r.filter(function(c){return typeof c=="string"?!vb(c):!0})),pg(e,u,i,t),ho(u,r),e.ancestors.pop(),e.schema=l,e.create(t,i,u,n)}function dx(e,t){if(t.data&&t.data.estree&&e.evaluater){const l=t.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}ei(e,t.position)}function mx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ei(e,t.position)}function px(e,t,n){const l=e.schema;let a=l;t.name==="svg"&&l.space==="html"&&(a=co,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:gg(e,t.name,!0),u=Sx(e,t),r=mo(e,t);return pg(e,u,i,t),ho(u,r),e.ancestors.pop(),e.schema=l,e.create(t,i,u,n)}function gx(e,t,n){const l={};return ho(l,mo(e,t)),e.create(t,e.Fragment,l,n)}function yx(e,t){return t.value}function pg(e,t,n,l){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=l)}function ho(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bx(e,t,n){return l;function l(a,i,u,r){const s=Array.isArray(u.children)?n:t;return r?s(i,u,r):s(i,u)}}function xx(e,t){return n;function n(l,a,i,u){const r=Array.isArray(i.children),c=oo(l);return t(a,i,u,r,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function vx(e,t){const n={};let l,a;for(a in t.properties)if(a!=="children"&&fo.call(t.properties,a)){const i=Ex(e,a,t.properties[a]);if(i){const[u,r]=i;e.tableCellAlignToStyle&&u==="align"&&typeof r=="string"&&ox.has(t.tagName)?l=r:n[u]=r}}if(l){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return n}function Sx(e,t){const n={};for(const l of t.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const i=l.data.estree.body[0];i.type;const u=i.expression;u.type;const r=u.properties[0];r.type,Object.assign(n,e.evaluater.evaluateExpression(r.argument))}else ei(e,t.position);else{const a=l.name;let i;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const r=l.value.data.estree.body[0];r.type,i=e.evaluater.evaluateExpression(r.expression)}else ei(e,t.position);else i=l.value===null?!0:l.value;n[a]=i}return n}function mo(e,t){const n=[];let l=-1;const a=e.passKeys?new Map:rx;for(;++l<t.children.length;){const i=t.children[l];let u;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const s=a.get(c)||0;u=c+"-"+s,a.set(c,s+1)}}const r=mg(e,i,u);r!==void 0&&n.push(r)}return n}function Ex(e,t,n){const l=Cb(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=l.commaSeparated?pb(n):Ob(n)),l.property==="style"){let a=typeof n=="object"?n:Tx(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Ax(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&l.space?Ab[l.property]||l.property:l.attribute,n]}}function Tx(e,t){try{return ix(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const l=n,a=new Ye("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=dg+"#cannot-parse-style-attribute",a}}function gg(e,t,n){let l;if(!n)l={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,u;for(;++i<a.length;){const r=ch(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};u=u?{type:"MemberExpression",object:u,property:r,computed:!!(i&&r.type==="Literal"),optional:!1}:r}l=u}else l=ch(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const a=l.value;return fo.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(l);ei(e)}function ei(e,t){const n=new Ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=dg+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ax(e){const t={};let n;for(n in e)fo.call(e,n)&&(t[zx(n)]=e[n]);return t}function zx(e){let t=e.replace(cx,wx);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function wx(e){return"-"+e.toLowerCase()}const qr={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Cx={};function Nx(e,t){const n=Cx,l=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yg(e,l,a)}function yg(e,t,n){if(_x(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return xh(e.children,t,n)}return Array.isArray(e)?xh(e,t,n):""}function xh(e,t,n){const l=[];let a=-1;for(;++a<e.length;)l[a]=yg(e[a],t,n);return l.join("")}function _x(e){return!!(e&&typeof e=="object")}const vh=document.createElement("i");function po(e){const t="&"+e+";";vh.innerHTML=t;const n=vh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ht(e,t,n,l){const a=e.length;let i=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,l.length<1e4)u=Array.from(l),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);i<l.length;)u=l.slice(i,i+1e4),u.unshift(t,0),e.splice(...u),i+=1e4,t+=1e4}function St(e,t){return e.length>0?(Ht(e,e.length,0,t),e):t}const Sh={}.hasOwnProperty;function kx(e){const t={};let n=-1;for(;++n<e.length;)Ox(t,e[n]);return t}function Ox(e,t){let n;for(n in t){const a=(Sh.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let u;if(i)for(u in i){Sh.call(a,u)||(a[u]=[]);const r=i[u];Dx(a[u],Array.isArray(r)?r:r?[r]:[])}}}function Dx(e,t){let n=-1;const l=[];for(;++n<t.length;)(t[n].add==="after"?e:l).push(t[n]);Ht(e,0,0,l)}function bg(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ll(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Mt=qn(/[A-Za-z]/),st=qn(/[\dA-Za-z]/),jx=qn(/[#-'*+\--9=?A-Z^-~]/);function Wc(e){return e!==null&&(e<32||e===127)}const Pc=qn(/\d/),Mx=qn(/[\dA-Fa-f]/),Rx=qn(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function Pe(e){return e!==null&&(e<0||e===32)}function P(e){return e===-2||e===-1||e===32}const Ux=qn(new RegExp("\\p{P}|\\p{S}","u")),Bx=qn(/\s/);function qn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ia(e){const t=[];let n=-1,l=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let u="";if(i===37&&st(e.charCodeAt(n+1))&&st(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(u=String.fromCharCode(i));else if(i>55295&&i<57344){const r=e.charCodeAt(n+1);i<56320&&r>56319&&r<57344?(u=String.fromCharCode(i,r),a=1):u="�"}else u=String.fromCharCode(i);u&&(t.push(e.slice(l,n),encodeURIComponent(u)),l=n+a+1,u=""),a&&(n+=a,a=0)}return t.join("")+e.slice(l)}function oe(e,t,n,l){const a=l?l-1:Number.POSITIVE_INFINITY;let i=0;return u;function u(c){return P(c)?(e.enter(n),r(c)):t(c)}function r(c){return P(c)&&i++<a?(e.consume(c),r):(e.exit(n),t(c))}}const Lx={tokenize:Hx};function Hx(e){const t=e.attempt(this.parser.constructs.contentInitial,l,a);let n;return t;function l(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),oe(e,t,"linePrefix")}function a(r){return e.enter("paragraph"),i(r)}function i(r){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,u(r)}function u(r){if(r===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return q(r)?(e.consume(r),e.exit("chunkText"),i):(e.consume(r),u)}}const qx={tokenize:Yx},Eh={tokenize:Gx};function Yx(e){const t=this,n=[];let l=0,a,i,u;return r;function r(b){if(l<n.length){const E=n[l];return t.containerState=E[1],e.attempt(E[0].continuation,c,s)(b)}return s(b)}function c(b){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&g();const E=t.events.length;let _=E,T;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){T=t.events[_][1].end;break}m(l);let C=E;for(;C<t.events.length;)t.events[C][1].end={...T},C++;return Ht(t.events,_+1,0,t.events.slice(E)),t.events.length=C,s(b)}return r(b)}function s(b){if(l===n.length){if(!a)return d(b);if(a.currentConstruct&&a.currentConstruct.concrete)return x(b);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Eh,o,h)(b)}function o(b){return a&&g(),m(l),d(b)}function h(b){return t.parser.lazy[t.now().line]=l!==n.length,u=t.now().offset,x(b)}function d(b){return t.containerState={},e.attempt(Eh,f,x)(b)}function f(b){return l++,n.push([t.currentConstruct,t.containerState]),d(b)}function x(b){if(b===null){a&&g(),m(0),e.consume(b);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),S(b)}function S(b){if(b===null){O(e.exit("chunkFlow"),!0),m(0),e.consume(b);return}return q(b)?(e.consume(b),O(e.exit("chunkFlow")),l=0,t.interrupt=void 0,r):(e.consume(b),S)}function O(b,E){const _=t.sliceStream(b);if(E&&_.push(null),b.previous=i,i&&(i.next=b),i=b,a.defineSkip(b.start),a.write(_),t.parser.lazy[b.start.line]){let T=a.events.length;for(;T--;)if(a.events[T][1].start.offset<u&&(!a.events[T][1].end||a.events[T][1].end.offset>u))return;const C=t.events.length;let M=C,j,U;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(j){U=t.events[M][1].end;break}j=!0}for(m(l),T=C;T<t.events.length;)t.events[T][1].end={...U},T++;Ht(t.events,M+1,0,t.events.slice(C)),t.events.length=T}}function m(b){let E=n.length;for(;E-- >b;){const _=n[E];t.containerState=_[1],_[0].exit.call(t,e)}n.length=b}function g(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Gx(e,t,n){return oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Th(e){if(e===null||Pe(e)||Bx(e))return 1;if(Ux(e))return 2}function go(e,t,n){const l=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!l.includes(i)&&(t=i(t,n),l.push(i))}return t}const es={name:"attention",resolveAll:Vx,tokenize:Xx};function Vx(e,t){let n=-1,l,a,i,u,r,c,s,o;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(l=n;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&t.sliceSerialize(e[l][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[l][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[l][1].end.offset-e[l][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[l][1].end},d={...e[n][1].start};Ah(h,-c),Ah(d,c),u={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[l][1].end}},r={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},i={type:c>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...u.start},end:{...r.end}},e[l][1].end={...u.start},e[n][1].start={...r.end},s=[],e[l][1].end.offset-e[l][1].start.offset&&(s=St(s,[["enter",e[l][1],t],["exit",e[l][1],t]])),s=St(s,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",i,t]]),s=St(s,go(t.parser.constructs.insideSpan.null,e.slice(l+1,n),t)),s=St(s,[["exit",i,t],["enter",r,t],["exit",r,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(o=2,s=St(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):o=0,Ht(e,l-1,n-l+3,s),n=l+s.length-o-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Xx(e,t){const n=this.parser.constructs.attentionMarkers.null,l=this.previous,a=Th(l);let i;return u;function u(c){return i=c,e.enter("attentionSequence"),r(c)}function r(c){if(c===i)return e.consume(c),r;const s=e.exit("attentionSequence"),o=Th(c),h=!o||o===2&&a||n.includes(c),d=!a||a===2&&o||n.includes(l);return s._open=!!(i===42?h:h&&(a||!d)),s._close=!!(i===42?d:d&&(o||!h)),t(c)}}function Ah(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Qx={name:"autolink",tokenize:Zx};function Zx(e,t,n){let l=0;return a;function a(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Mt(f)?(e.consume(f),u):f===64?n(f):s(f)}function u(f){return f===43||f===45||f===46||st(f)?(l=1,r(f)):s(f)}function r(f){return f===58?(e.consume(f),l=0,c):(f===43||f===45||f===46||st(f))&&l++<32?(e.consume(f),r):(l=0,s(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Wc(f)?n(f):(e.consume(f),c)}function s(f){return f===64?(e.consume(f),o):jx(f)?(e.consume(f),s):n(f)}function o(f){return st(f)?h(f):n(f)}function h(f){return f===46?(e.consume(f),l=0,o):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||st(f))&&l++<63){const x=f===45?d:h;return e.consume(f),x}return n(f)}}const Pu={partial:!0,tokenize:Kx};function Kx(e,t,n){return l;function l(i){return P(i)?oe(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||q(i)?t(i):n(i)}}const xg={continuation:{tokenize:Fx},exit:Ix,name:"blockQuote",tokenize:Jx};function Jx(e,t,n){const l=this;return a;function a(u){if(u===62){const r=l.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),i}return n(u)}function i(u){return P(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Fx(e,t,n){const l=this;return a;function a(u){return P(u)?oe(e,i,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):i(u)}function i(u){return e.attempt(xg,t,n)(u)}}function Ix(e){e.exit("blockQuote")}const vg={name:"characterEscape",tokenize:$x};function $x(e,t,n){return l;function l(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Rx(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Sg={name:"characterReference",tokenize:Wx};function Wx(e,t,n){const l=this;let a=0,i,u;return r;function r(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),i=31,u=st,o(h))}function s(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,u=Mx,o):(e.enter("characterReferenceValue"),i=7,u=Pc,o(h))}function o(h){if(h===59&&a){const d=e.exit("characterReferenceValue");return u===st&&!po(l.sliceSerialize(d))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(h)&&a++<i?(e.consume(h),o):n(h)}}const zh={partial:!0,tokenize:ev},wh={concrete:!0,name:"codeFenced",tokenize:Px};function Px(e,t,n){const l=this,a={partial:!0,tokenize:_};let i=0,u=0,r;return c;function c(T){return s(T)}function s(T){const C=l.events[l.events.length-1];return i=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,r=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(T)}function o(T){return T===r?(u++,e.consume(T),o):u<3?n(T):(e.exit("codeFencedFenceSequence"),P(T)?oe(e,h,"whitespace")(T):h(T))}function h(T){return T===null||q(T)?(e.exit("codeFencedFence"),l.interrupt?t(T):e.check(zh,S,E)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(T))}function d(T){return T===null||q(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(T)):P(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),oe(e,f,"whitespace")(T)):T===96&&T===r?n(T):(e.consume(T),d)}function f(T){return T===null||q(T)?h(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(T))}function x(T){return T===null||q(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(T)):T===96&&T===r?n(T):(e.consume(T),x)}function S(T){return e.attempt(a,E,O)(T)}function O(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),m}function m(T){return i>0&&P(T)?oe(e,g,"linePrefix",i+1)(T):g(T)}function g(T){return T===null||q(T)?e.check(zh,S,E)(T):(e.enter("codeFlowValue"),b(T))}function b(T){return T===null||q(T)?(e.exit("codeFlowValue"),g(T)):(e.consume(T),b)}function E(T){return e.exit("codeFenced"),t(T)}function _(T,C,M){let j=0;return U;function U(Q){return T.enter("lineEnding"),T.consume(Q),T.exit("lineEnding"),R}function R(Q){return T.enter("codeFencedFence"),P(Q)?oe(T,B,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):B(Q)}function B(Q){return Q===r?(T.enter("codeFencedFenceSequence"),ne(Q)):M(Q)}function ne(Q){return Q===r?(j++,T.consume(Q),ne):j>=u?(T.exit("codeFencedFenceSequence"),P(Q)?oe(T,ge,"whitespace")(Q):ge(Q)):M(Q)}function ge(Q){return Q===null||q(Q)?(T.exit("codeFencedFence"),C(Q)):M(Q)}}}function ev(e,t,n){const l=this;return a;function a(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i)}function i(u){return l.parser.lazy[l.now().line]?n(u):t(u)}}const Yr={name:"codeIndented",tokenize:nv},tv={partial:!0,tokenize:lv};function nv(e,t,n){const l=this;return a;function a(s){return e.enter("codeIndented"),oe(e,i,"linePrefix",5)(s)}function i(s){const o=l.events[l.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?u(s):n(s)}function u(s){return s===null?c(s):q(s)?e.attempt(tv,u,c)(s):(e.enter("codeFlowValue"),r(s))}function r(s){return s===null||q(s)?(e.exit("codeFlowValue"),u(s)):(e.consume(s),r)}function c(s){return e.exit("codeIndented"),t(s)}}function lv(e,t,n){const l=this;return a;function a(u){return l.parser.lazy[l.now().line]?n(u):q(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):oe(e,i,"linePrefix",5)(u)}function i(u){const r=l.events[l.events.length-1];return r&&r[1].type==="linePrefix"&&r[2].sliceSerialize(r[1],!0).length>=4?t(u):q(u)?a(u):n(u)}}const av={name:"codeText",previous:uv,resolve:iv,tokenize:rv};function iv(e){let t=e.length-4,n=3,l,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=n;++l<t;)if(e[l][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(l=n-1,t++;++l<=t;)a===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(a=l):(l===t||e[l][1].type==="lineEnding")&&(e[a][1].type="codeTextData",l!==a+2&&(e[a][1].end=e[l-1][1].end,e.splice(a+2,l-a-2),t-=l-a-2,l=a+2),a=void 0);return e}function uv(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rv(e,t,n){let l=0,a,i;return u;function u(h){return e.enter("codeText"),e.enter("codeTextSequence"),r(h)}function r(h){return h===96?(e.consume(h),l++,r):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(i=e.enter("codeTextSequence"),a=0,o(h)):q(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),s(h))}function s(h){return h===null||h===32||h===96||q(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),s)}function o(h){return h===96?(e.consume(h),a++,o):a===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(i.type="codeTextData",s(h))}}class cv{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const l=n??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(t,l):t>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(t,n,l){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return l&&pa(this.left,l),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),pa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),pa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);pa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);pa(this.left,n.reverse())}}}function pa(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Eg(e){const t={};let n=-1,l,a,i,u,r,c,s;const o=new cv(e);for(;++n<o.length;){for(;n in t;)n=t[n];if(l=o.get(n),n&&l[1].type==="chunkFlow"&&o.get(n-1)[1].type==="listItemPrefix"&&(c=l[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(l[0]==="enter")l[1].contentType&&(Object.assign(t,sv(o,n)),n=t[n],s=!0);else if(l[1]._container){for(i=n,a=void 0;i--;)if(u=o.get(i),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(o.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=i);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;a&&(l[1].end={...o.get(a)[1].start},r=o.slice(a,n),r.unshift(l),o.splice(a,n-a+1,r))}}return Ht(e,0,Number.POSITIVE_INFINITY,o.slice(0)),!s}function sv(e,t){const n=e.get(t)[1],l=e.get(t)[2];let a=t-1;const i=[];let u=n._tokenizer;u||(u=l.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const r=u.events,c=[],s={};let o,h,d=-1,f=n,x=0,S=0;const O=[S];for(;f;){for(;e.get(++a)[1]!==f;);i.push(a),f._tokenizer||(o=l.sliceStream(f),f.next||o.push(null),h&&u.defineSkip(f.start),f._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(o),f._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++d<r.length;)r[d][0]==="exit"&&r[d-1][0]==="enter"&&r[d][1].type===r[d-1][1].type&&r[d][1].start.line!==r[d][1].end.line&&(S=d+1,O.push(S),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(u.events=[],f?(f._tokenizer=void 0,f.previous=void 0):O.pop(),d=O.length;d--;){const m=r.slice(O[d],O[d+1]),g=i.pop();c.push([g,g+m.length-1]),e.splice(g,2,m)}for(c.reverse(),d=-1;++d<c.length;)s[x+c[d][0]]=x+c[d][1],x+=c[d][1]-c[d][0]-1;return s}const ov={resolve:hv,tokenize:dv},fv={partial:!0,tokenize:mv};function hv(e){return Eg(e),e}function dv(e,t){let n;return l;function l(r){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(r)}function a(r){return r===null?i(r):q(r)?e.check(fv,u,i)(r):(e.consume(r),a)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function u(r){return e.consume(r),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function mv(e,t,n){const l=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),oe(e,i,"linePrefix")}function i(u){if(u===null||q(u))return n(u);const r=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&r&&r[1].type==="linePrefix"&&r[2].sliceSerialize(r[1],!0).length>=4?t(u):e.interrupt(l.parser.constructs.flow,n,t)(u)}}function Tg(e,t,n,l,a,i,u,r,c){const s=c||Number.POSITIVE_INFINITY;let o=0;return h;function h(m){return m===60?(e.enter(l),e.enter(a),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||Wc(m)?n(m):(e.enter(l),e.enter(u),e.enter(r),e.enter("chunkString",{contentType:"string"}),S(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(l),t):(e.enter(r),e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===62?(e.exit("chunkString"),e.exit(r),d(m)):m===null||m===60||q(m)?n(m):(e.consume(m),m===92?x:f)}function x(m){return m===60||m===62||m===92?(e.consume(m),f):f(m)}function S(m){return!o&&(m===null||m===41||Pe(m))?(e.exit("chunkString"),e.exit(r),e.exit(u),e.exit(l),t(m)):o<s&&m===40?(e.consume(m),o++,S):m===41?(e.consume(m),o--,S):m===null||m===32||m===40||Wc(m)?n(m):(e.consume(m),m===92?O:S)}function O(m){return m===40||m===41||m===92?(e.consume(m),S):S(m)}}function Ag(e,t,n,l,a,i){const u=this;let r=0,c;return s;function s(f){return e.enter(l),e.enter(a),e.consume(f),e.exit(a),e.enter(i),o}function o(f){return r>999||f===null||f===91||f===93&&!c||f===94&&!r&&"_hiddenFootnoteSupport"in u.parser.constructs?n(f):f===93?(e.exit(i),e.enter(a),e.consume(f),e.exit(a),e.exit(l),t):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===null||f===91||f===93||q(f)||r++>999?(e.exit("chunkString"),o(f)):(e.consume(f),c||(c=!P(f)),f===92?d:h)}function d(f){return f===91||f===92||f===93?(e.consume(f),r++,h):h(f)}}function zg(e,t,n,l,a,i){let u;return r;function r(d){return d===34||d===39||d===40?(e.enter(l),e.enter(a),e.consume(d),e.exit(a),u=d===40?41:d,c):n(d)}function c(d){return d===u?(e.enter(a),e.consume(d),e.exit(a),e.exit(l),t):(e.enter(i),s(d))}function s(d){return d===u?(e.exit(i),c(u)):d===null?n(d):q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),oe(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),o(d))}function o(d){return d===u||d===null||q(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?h:o)}function h(d){return d===u||d===92?(e.consume(d),o):o(d)}}function La(e,t){let n;return l;function l(a){return q(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,l):P(a)?oe(e,l,n?"linePrefix":"lineSuffix")(a):t(a)}}const pv={name:"definition",tokenize:yv},gv={partial:!0,tokenize:bv};function yv(e,t,n){const l=this;let a;return i;function i(f){return e.enter("definition"),u(f)}function u(f){return Ag.call(l,e,r,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function r(f){return a=Ll(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):n(f)}function c(f){return Pe(f)?La(e,s)(f):s(f)}function s(f){return Tg(e,o,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function o(f){return e.attempt(gv,h,h)(f)}function h(f){return P(f)?oe(e,d,"whitespace")(f):d(f)}function d(f){return f===null||q(f)?(e.exit("definition"),l.parser.defined.push(a),t(f)):n(f)}}function bv(e,t,n){return l;function l(r){return Pe(r)?La(e,a)(r):n(r)}function a(r){return zg(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(r)}function i(r){return P(r)?oe(e,u,"whitespace")(r):u(r)}function u(r){return r===null||q(r)?t(r):n(r)}}const xv={name:"hardBreakEscape",tokenize:vv};function vv(e,t,n){return l;function l(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return q(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Sv={name:"headingAtx",resolve:Ev,tokenize:Tv};function Ev(e,t){let n=e.length-2,l=3,a,i;return e[l][1].type==="whitespace"&&(l+=2),n-2>l&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(l===n-1||n-4>l&&e[n-2][1].type==="whitespace")&&(n-=l+1===n?2:4),n>l&&(a={type:"atxHeadingText",start:e[l][1].start,end:e[n][1].end},i={type:"chunkText",start:e[l][1].start,end:e[n][1].end,contentType:"text"},Ht(e,l,n-l+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Tv(e,t,n){let l=0;return a;function a(o){return e.enter("atxHeading"),i(o)}function i(o){return e.enter("atxHeadingSequence"),u(o)}function u(o){return o===35&&l++<6?(e.consume(o),u):o===null||Pe(o)?(e.exit("atxHeadingSequence"),r(o)):n(o)}function r(o){return o===35?(e.enter("atxHeadingSequence"),c(o)):o===null||q(o)?(e.exit("atxHeading"),t(o)):P(o)?oe(e,r,"whitespace")(o):(e.enter("atxHeadingText"),s(o))}function c(o){return o===35?(e.consume(o),c):(e.exit("atxHeadingSequence"),r(o))}function s(o){return o===null||o===35||Pe(o)?(e.exit("atxHeadingText"),r(o)):(e.consume(o),s)}}const Av=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ch=["pre","script","style","textarea"],zv={concrete:!0,name:"htmlFlow",resolveTo:Nv,tokenize:_v},wv={partial:!0,tokenize:Ov},Cv={partial:!0,tokenize:kv};function Nv(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function _v(e,t,n){const l=this;let a,i,u,r,c;return s;function s(v){return o(v)}function o(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),h}function h(v){return v===33?(e.consume(v),d):v===47?(e.consume(v),i=!0,S):v===63?(e.consume(v),a=3,l.interrupt?t:y):Mt(v)?(e.consume(v),u=String.fromCharCode(v),O):n(v)}function d(v){return v===45?(e.consume(v),a=2,f):v===91?(e.consume(v),a=5,r=0,x):Mt(v)?(e.consume(v),a=4,l.interrupt?t:y):n(v)}function f(v){return v===45?(e.consume(v),l.interrupt?t:y):n(v)}function x(v){const be="CDATA[";return v===be.charCodeAt(r++)?(e.consume(v),r===be.length?l.interrupt?t:B:x):n(v)}function S(v){return Mt(v)?(e.consume(v),u=String.fromCharCode(v),O):n(v)}function O(v){if(v===null||v===47||v===62||Pe(v)){const be=v===47,Ze=u.toLowerCase();return!be&&!i&&Ch.includes(Ze)?(a=1,l.interrupt?t(v):B(v)):Av.includes(u.toLowerCase())?(a=6,be?(e.consume(v),m):l.interrupt?t(v):B(v)):(a=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(v):i?g(v):b(v))}return v===45||st(v)?(e.consume(v),u+=String.fromCharCode(v),O):n(v)}function m(v){return v===62?(e.consume(v),l.interrupt?t:B):n(v)}function g(v){return P(v)?(e.consume(v),g):U(v)}function b(v){return v===47?(e.consume(v),U):v===58||v===95||Mt(v)?(e.consume(v),E):P(v)?(e.consume(v),b):U(v)}function E(v){return v===45||v===46||v===58||v===95||st(v)?(e.consume(v),E):_(v)}function _(v){return v===61?(e.consume(v),T):P(v)?(e.consume(v),_):b(v)}function T(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),c=v,C):P(v)?(e.consume(v),T):M(v)}function C(v){return v===c?(e.consume(v),c=null,j):v===null||q(v)?n(v):(e.consume(v),C)}function M(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Pe(v)?_(v):(e.consume(v),M)}function j(v){return v===47||v===62||P(v)?b(v):n(v)}function U(v){return v===62?(e.consume(v),R):n(v)}function R(v){return v===null||q(v)?B(v):P(v)?(e.consume(v),R):n(v)}function B(v){return v===45&&a===2?(e.consume(v),A):v===60&&a===1?(e.consume(v),k):v===62&&a===4?(e.consume(v),Te):v===63&&a===3?(e.consume(v),y):v===93&&a===5?(e.consume(v),Z):q(v)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(wv,De,ne)(v)):v===null||q(v)?(e.exit("htmlFlowData"),ne(v)):(e.consume(v),B)}function ne(v){return e.check(Cv,ge,De)(v)}function ge(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Q}function Q(v){return v===null||q(v)?ne(v):(e.enter("htmlFlowData"),B(v))}function A(v){return v===45?(e.consume(v),y):B(v)}function k(v){return v===47?(e.consume(v),u="",L):B(v)}function L(v){if(v===62){const be=u.toLowerCase();return Ch.includes(be)?(e.consume(v),Te):B(v)}return Mt(v)&&u.length<8?(e.consume(v),u+=String.fromCharCode(v),L):B(v)}function Z(v){return v===93?(e.consume(v),y):B(v)}function y(v){return v===62?(e.consume(v),Te):v===45&&a===2?(e.consume(v),y):B(v)}function Te(v){return v===null||q(v)?(e.exit("htmlFlowData"),De(v)):(e.consume(v),Te)}function De(v){return e.exit("htmlFlow"),t(v)}}function kv(e,t,n){const l=this;return a;function a(u){return q(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):n(u)}function i(u){return l.parser.lazy[l.now().line]?n(u):t(u)}}function Ov(e,t,n){return l;function l(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Pu,t,n)}}const Dv={name:"htmlText",tokenize:jv};function jv(e,t,n){const l=this;let a,i,u;return r;function r(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),c}function c(y){return y===33?(e.consume(y),s):y===47?(e.consume(y),_):y===63?(e.consume(y),b):Mt(y)?(e.consume(y),M):n(y)}function s(y){return y===45?(e.consume(y),o):y===91?(e.consume(y),i=0,x):Mt(y)?(e.consume(y),g):n(y)}function o(y){return y===45?(e.consume(y),f):n(y)}function h(y){return y===null?n(y):y===45?(e.consume(y),d):q(y)?(u=h,k(y)):(e.consume(y),h)}function d(y){return y===45?(e.consume(y),f):h(y)}function f(y){return y===62?A(y):y===45?d(y):h(y)}function x(y){const Te="CDATA[";return y===Te.charCodeAt(i++)?(e.consume(y),i===Te.length?S:x):n(y)}function S(y){return y===null?n(y):y===93?(e.consume(y),O):q(y)?(u=S,k(y)):(e.consume(y),S)}function O(y){return y===93?(e.consume(y),m):S(y)}function m(y){return y===62?A(y):y===93?(e.consume(y),m):S(y)}function g(y){return y===null||y===62?A(y):q(y)?(u=g,k(y)):(e.consume(y),g)}function b(y){return y===null?n(y):y===63?(e.consume(y),E):q(y)?(u=b,k(y)):(e.consume(y),b)}function E(y){return y===62?A(y):b(y)}function _(y){return Mt(y)?(e.consume(y),T):n(y)}function T(y){return y===45||st(y)?(e.consume(y),T):C(y)}function C(y){return q(y)?(u=C,k(y)):P(y)?(e.consume(y),C):A(y)}function M(y){return y===45||st(y)?(e.consume(y),M):y===47||y===62||Pe(y)?j(y):n(y)}function j(y){return y===47?(e.consume(y),A):y===58||y===95||Mt(y)?(e.consume(y),U):q(y)?(u=j,k(y)):P(y)?(e.consume(y),j):A(y)}function U(y){return y===45||y===46||y===58||y===95||st(y)?(e.consume(y),U):R(y)}function R(y){return y===61?(e.consume(y),B):q(y)?(u=R,k(y)):P(y)?(e.consume(y),R):j(y)}function B(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),a=y,ne):q(y)?(u=B,k(y)):P(y)?(e.consume(y),B):(e.consume(y),ge)}function ne(y){return y===a?(e.consume(y),a=void 0,Q):y===null?n(y):q(y)?(u=ne,k(y)):(e.consume(y),ne)}function ge(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||Pe(y)?j(y):(e.consume(y),ge)}function Q(y){return y===47||y===62||Pe(y)?j(y):n(y)}function A(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function k(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),L}function L(y){return P(y)?oe(e,Z,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):Z(y)}function Z(y){return e.enter("htmlTextData"),u(y)}}const yo={name:"labelEnd",resolveAll:Bv,resolveTo:Lv,tokenize:Hv},Mv={tokenize:qv},Rv={tokenize:Yv},Uv={tokenize:Gv};function Bv(e){let t=-1;const n=[];for(;++t<e.length;){const l=e[t][1];if(n.push(e[t]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const a=l.type==="labelImage"?4:2;l.type="data",t+=a}}return e.length!==n.length&&Ht(e,0,e.length,n),e}function Lv(e,t){let n=e.length,l=0,a,i,u,r;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){l=2;break}}else a.type==="labelEnd"&&(u=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[i][1].start},end:{...e[u][1].end}},o={type:"labelText",start:{...e[i+l+2][1].end},end:{...e[u-2][1].start}};return r=[["enter",c,t],["enter",s,t]],r=St(r,e.slice(i+1,i+l+3)),r=St(r,[["enter",o,t]]),r=St(r,go(t.parser.constructs.insideSpan.null,e.slice(i+l+4,u-3),t)),r=St(r,[["exit",o,t],e[u-2],e[u-1],["exit",s,t]]),r=St(r,e.slice(u+1)),r=St(r,[["exit",c,t]]),Ht(e,i,e.length,r),e}function Hv(e,t,n){const l=this;let a=l.events.length,i,u;for(;a--;)if((l.events[a][1].type==="labelImage"||l.events[a][1].type==="labelLink")&&!l.events[a][1]._balanced){i=l.events[a][1];break}return r;function r(d){return i?i._inactive?h(d):(u=l.parser.defined.includes(Ll(l.sliceSerialize({start:i.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):n(d)}function c(d){return d===40?e.attempt(Mv,o,u?o:h)(d):d===91?e.attempt(Rv,o,u?s:h)(d):u?o(d):h(d)}function s(d){return e.attempt(Uv,o,h)(d)}function o(d){return t(d)}function h(d){return i._balanced=!0,n(d)}}function qv(e,t,n){return l;function l(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return Pe(h)?La(e,i)(h):i(h)}function i(h){return h===41?o(h):Tg(e,u,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return Pe(h)?La(e,c)(h):o(h)}function r(h){return n(h)}function c(h){return h===34||h===39||h===40?zg(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):o(h)}function s(h){return Pe(h)?La(e,o)(h):o(h)}function o(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function Yv(e,t,n){const l=this;return a;function a(r){return Ag.call(l,e,i,u,"reference","referenceMarker","referenceString")(r)}function i(r){return l.parser.defined.includes(Ll(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(r):n(r)}function u(r){return n(r)}}function Gv(e,t,n){return l;function l(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const Vv={name:"labelStartImage",resolveAll:yo.resolveAll,tokenize:Xv};function Xv(e,t,n){const l=this;return a;function a(r){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(r),e.exit("labelImageMarker"),i}function i(r){return r===91?(e.enter("labelMarker"),e.consume(r),e.exit("labelMarker"),e.exit("labelImage"),u):n(r)}function u(r){return r===94&&"_hiddenFootnoteSupport"in l.parser.constructs?n(r):t(r)}}const Qv={name:"labelStartLink",resolveAll:yo.resolveAll,tokenize:Zv};function Zv(e,t,n){const l=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),i}function i(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?n(u):t(u)}}const Gr={name:"lineEnding",tokenize:Kv};function Kv(e,t){return n;function n(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),oe(e,t,"linePrefix")}}const $i={name:"thematicBreak",tokenize:Jv};function Jv(e,t,n){let l=0,a;return i;function i(s){return e.enter("thematicBreak"),u(s)}function u(s){return a=s,r(s)}function r(s){return s===a?(e.enter("thematicBreakSequence"),c(s)):l>=3&&(s===null||q(s))?(e.exit("thematicBreak"),t(s)):n(s)}function c(s){return s===a?(e.consume(s),l++,c):(e.exit("thematicBreakSequence"),P(s)?oe(e,r,"whitespace")(s):r(s))}}const Fe={continuation:{tokenize:Wv},exit:eS,name:"list",tokenize:$v},Fv={partial:!0,tokenize:tS},Iv={partial:!0,tokenize:Pv};function $v(e,t,n){const l=this,a=l.events[l.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return r;function r(f){const x=l.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!l.containerState.marker||f===l.containerState.marker:Pc(f)){if(l.containerState.type||(l.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check($i,n,s)(f):s(f);if(!l.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return n(f)}function c(f){return Pc(f)&&++u<10?(e.consume(f),c):(!l.interrupt||u<2)&&(l.containerState.marker?f===l.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),s(f)):n(f)}function s(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||f,e.check(Pu,l.interrupt?n:o,e.attempt(Fv,d,h))}function o(f){return l.containerState.initialBlankLine=!0,i++,d(f)}function h(f){return P(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return l.containerState.size=i+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function Wv(e,t,n){const l=this;return l.containerState._closeFlow=void 0,e.check(Pu,a,i);function a(r){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,oe(e,t,"listItemIndent",l.containerState.size+1)(r)}function i(r){return l.containerState.furtherBlankLines||!P(r)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,u(r)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(Iv,t,u)(r))}function u(r){return l.containerState._closeFlow=!0,l.interrupt=void 0,oe(e,e.attempt(Fe,t,n),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}function Pv(e,t,n){const l=this;return oe(e,a,"listItemIndent",l.containerState.size+1);function a(i){const u=l.events[l.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===l.containerState.size?t(i):n(i)}}function eS(e){e.exit(this.containerState.type)}function tS(e,t,n){const l=this;return oe(e,a,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const u=l.events[l.events.length-1];return!P(i)&&u&&u[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Nh={name:"setextUnderline",resolveTo:nS,tokenize:lS};function nS(e,t){let n=e.length,l,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){l=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const u={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",u,t]),e.splice(i+1,0,["exit",e[l][1],t]),e[l][1].end={...e[i][1].end}):e[l][1]=u,e.push(["exit",u,t]),e}function lS(e,t,n){const l=this;let a;return i;function i(s){let o=l.events.length,h;for(;o--;)if(l.events[o][1].type!=="lineEnding"&&l.events[o][1].type!=="linePrefix"&&l.events[o][1].type!=="content"){h=l.events[o][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||h)?(e.enter("setextHeadingLine"),a=s,u(s)):n(s)}function u(s){return e.enter("setextHeadingLineSequence"),r(s)}function r(s){return s===a?(e.consume(s),r):(e.exit("setextHeadingLineSequence"),P(s)?oe(e,c,"lineSuffix")(s):c(s))}function c(s){return s===null||q(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const aS={tokenize:iS};function iS(e){const t=this,n=e.attempt(Pu,l,e.attempt(this.parser.constructs.flowInitial,a,oe(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ov,a)),"linePrefix")));return n;function l(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const uS={resolveAll:Cg()},rS=wg("string"),cS=wg("text");function wg(e){return{resolveAll:Cg(e==="text"?sS:void 0),tokenize:t};function t(n){const l=this,a=this.parser.constructs[e],i=n.attempt(a,u,r);return u;function u(o){return s(o)?i(o):r(o)}function r(o){if(o===null){n.consume(o);return}return n.enter("data"),n.consume(o),c}function c(o){return s(o)?(n.exit("data"),i(o)):(n.consume(o),c)}function s(o){if(o===null)return!0;const h=a[o];let d=-1;if(h)for(;++d<h.length;){const f=h[d];if(!f.previous||f.previous.call(l,l.previous))return!0}return!1}}}function Cg(e){return t;function t(n,l){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,l):n}}function sS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const l=e[n-1][1],a=t.sliceStream(l);let i=a.length,u=-1,r=0,c;for(;i--;){const s=a[i];if(typeof s=="string"){for(u=s.length;s.charCodeAt(u-1)===32;)r++,u--;if(u)break;u=-1}else if(s===-2)c=!0,r++;else if(s!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(r=0),r){const s={type:n===e.length||c||r<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?u:l.start._bufferIndex+u,_index:l.start._index+i,line:l.end.line,column:l.end.column-r,offset:l.end.offset-r},end:{...l.end}};l.end={...s.start},l.start.offset===l.end.offset?Object.assign(l,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const oS={42:Fe,43:Fe,45:Fe,48:Fe,49:Fe,50:Fe,51:Fe,52:Fe,53:Fe,54:Fe,55:Fe,56:Fe,57:Fe,62:xg},fS={91:pv},hS={[-2]:Yr,[-1]:Yr,32:Yr},dS={35:Sv,42:$i,45:[Nh,$i],60:zv,61:Nh,95:$i,96:wh,126:wh},mS={38:Sg,92:vg},pS={[-5]:Gr,[-4]:Gr,[-3]:Gr,33:Vv,38:Sg,42:es,60:[Qx,Dv],91:Qv,92:[xv,vg],93:yo,95:es,96:av},gS={null:[es,uS]},yS={null:[42,95]},bS={null:[]},xS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:yS,contentInitial:fS,disable:bS,document:oS,flow:dS,flowInitial:hS,insideSpan:gS,string:mS,text:pS},Symbol.toStringTag,{value:"Module"}));function vS(e,t,n){let l={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let u=[],r=[];const c={attempt:C(_),check:C(T),consume:g,enter:b,exit:E,interrupt:C(T,{interrupt:!0})},s={code:null,containerState:{},defineSkip:S,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:f,write:h};let o=t.tokenize.call(s,c);return t.resolveAll&&i.push(t),s;function h(R){return u=St(u,R),O(),u[u.length-1]!==null?[]:(M(t,0),s.events=go(i,s.events,s),s.events)}function d(R,B){return ES(f(R),B)}function f(R){return SS(u,R)}function x(){const{_bufferIndex:R,_index:B,line:ne,column:ge,offset:Q}=l;return{_bufferIndex:R,_index:B,line:ne,column:ge,offset:Q}}function S(R){a[R.line]=R.column,U()}function O(){let R;for(;l._index<u.length;){const B=u[l._index];if(typeof B=="string")for(R=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===R&&l._bufferIndex<B.length;)m(B.charCodeAt(l._bufferIndex));else m(B)}}function m(R){o=o(R)}function g(R){q(R)?(l.line++,l.column=1,l.offset+=R===-3?2:1,U()):R!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===u[l._index].length&&(l._bufferIndex=-1,l._index++)),s.previous=R}function b(R,B){const ne=B||{};return ne.type=R,ne.start=x(),s.events.push(["enter",ne,s]),r.push(ne),ne}function E(R){const B=r.pop();return B.end=x(),s.events.push(["exit",B,s]),B}function _(R,B){M(R,B.from)}function T(R,B){B.restore()}function C(R,B){return ne;function ne(ge,Q,A){let k,L,Z,y;return Array.isArray(ge)?De(ge):"tokenize"in ge?De([ge]):Te(ge);function Te(_e){return Gt;function Gt(Dt){const fn=Dt!==null&&_e[Dt],ol=Dt!==null&&_e.null,gi=[...Array.isArray(fn)?fn:fn?[fn]:[],...Array.isArray(ol)?ol:ol?[ol]:[]];return De(gi)(Dt)}}function De(_e){return k=_e,L=0,_e.length===0?A:v(_e[L])}function v(_e){return Gt;function Gt(Dt){return y=j(),Z=_e,_e.partial||(s.currentConstruct=_e),_e.name&&s.parser.constructs.disable.null.includes(_e.name)?Ze():_e.tokenize.call(B?Object.assign(Object.create(s),B):s,c,be,Ze)(Dt)}}function be(_e){return R(Z,y),Q}function Ze(_e){return y.restore(),++L<k.length?v(k[L]):A}}}function M(R,B){R.resolveAll&&!i.includes(R)&&i.push(R),R.resolve&&Ht(s.events,B,s.events.length-B,R.resolve(s.events.slice(B),s)),R.resolveTo&&(s.events=R.resolveTo(s.events,s))}function j(){const R=x(),B=s.previous,ne=s.currentConstruct,ge=s.events.length,Q=Array.from(r);return{from:ge,restore:A};function A(){l=R,s.previous=B,s.currentConstruct=ne,s.events.length=ge,r=Q,U()}}function U(){l.line in a&&l.column<2&&(l.column=a[l.line],l.offset+=a[l.line]-1)}}function SS(e,t){const n=t.start._index,l=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let u;if(n===a)u=[e[n].slice(l,i)];else{if(u=e.slice(n,a),l>-1){const r=u[0];typeof r=="string"?u[0]=r.slice(l):u.shift()}i>0&&u.push(e[a].slice(0,i))}return u}function ES(e,t){let n=-1;const l=[];let a;for(;++n<e.length;){const i=e[n];let u;if(typeof i=="string")u=i;else switch(i){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=t?" ":"	";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(i)}a=i===-2,l.push(u)}return l.join("")}function TS(e){const l={constructs:kx([xS,...(e||{}).extensions||[]]),content:a(Lx),defined:[],document:a(qx),flow:a(aS),lazy:{},string:a(rS),text:a(cS)};return l;function a(i){return u;function u(r){return vS(l,i,r)}}}function AS(e){for(;!Eg(e););return e}const _h=/[\0\t\n\r]/g;function zS(){let e=1,t="",n=!0,l;return a;function a(i,u,r){const c=[];let s,o,h,d,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(u||void 0).decode(i)),h=0,t="",n&&(i.charCodeAt(0)===65279&&h++,n=void 0);h<i.length;){if(_h.lastIndex=h,s=_h.exec(i),d=s&&s.index!==void 0?s.index:i.length,f=i.charCodeAt(d),!s){t=i.slice(h);break}if(f===10&&h===d&&l)c.push(-3),l=void 0;else switch(l&&(c.push(-5),l=void 0),h<d&&(c.push(i.slice(h,d)),e+=d-h),f){case 0:{c.push(65533),e++;break}case 9:{for(o=Math.ceil(e/4)*4,c.push(-2);e++<o;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:l=!0,e=1}h=d+1}return r&&(l&&c.push(-5),t&&c.push(t),c.push(null)),c}}const wS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CS(e){return e.replace(wS,NS)}function NS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return bg(n.slice(i?2:1),i?16:10)}return po(n)||e}const Ng={}.hasOwnProperty;function _S(e,t,n){return typeof t!="string"&&(n=t,t=void 0),kS(n)(AS(TS(n).document().write(zS()(e,t,!0))))}function kS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Co),autolinkProtocol:j,autolinkEmail:j,atxHeading:i(Ao),blockQuote:i(ol),characterEscape:j,characterReference:j,codeFenced:i(gi),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:i(gi,u),codeText:i(Yg,u),codeTextData:j,data:j,codeFlowValue:j,definition:i(Gg),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:i(Vg),hardBreakEscape:i(zo),hardBreakTrailing:i(zo),htmlFlow:i(wo,u),htmlFlowData:j,htmlText:i(wo,u),htmlTextData:j,image:i(Xg),label:u,link:i(Co),listItem:i(Qg),listItemValue:d,listOrdered:i(No,h),listUnordered:i(No),paragraph:i(Zg),reference:v,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:i(Ao),strong:i(Kg),thematicBreak:i(Fg)},exit:{atxHeading:c(),atxHeadingSequence:_,autolink:c(),autolinkEmail:fn,autolinkProtocol:Dt,blockQuote:c(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:Ze,characterReferenceMarkerNumeric:Ze,characterReferenceValue:_e,characterReference:Gt,codeFenced:c(O),codeFencedFence:S,codeFencedFenceInfo:f,codeFencedFenceMeta:x,codeFlowValue:U,codeIndented:c(m),codeText:c(Q),codeTextData:U,data:U,definition:c(),definitionDestinationString:E,definitionLabelString:g,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(B),hardBreakTrailing:c(B),htmlFlow:c(ne),htmlFlowData:U,htmlText:c(ge),htmlTextData:U,image:c(k),label:Z,labelText:L,lineEnding:R,link:c(A),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:be,resourceDestinationString:y,resourceTitleString:Te,resource:De,setextHeading:c(M),setextHeadingLineSequence:C,setextHeadingText:T,strong:c(),thematicBreak:c()}};_g(t,(e||{}).mdastExtensions||[]);const n={};return l;function l(z){let D={type:"root",children:[]};const Y={stack:[D],tokenStack:[],config:t,enter:r,exit:s,buffer:u,resume:o,data:n},I=[];let re=-1;for(;++re<z.length;)if(z[re][1].type==="listOrdered"||z[re][1].type==="listUnordered")if(z[re][0]==="enter")I.push(re);else{const Nt=I.pop();re=a(z,Nt,re)}for(re=-1;++re<z.length;){const Nt=t[z[re][0]];Ng.call(Nt,z[re][1].type)&&Nt[z[re][1].type].call(Object.assign({sliceSerialize:z[re][2].sliceSerialize},Y),z[re][1])}if(Y.tokenStack.length>0){const Nt=Y.tokenStack[Y.tokenStack.length-1];(Nt[1]||kh).call(Y,void 0,Nt[0])}for(D.position={start:dn(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:dn(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re<t.transforms.length;)D=t.transforms[re](D)||D;return D}function a(z,D,Y){let I=D-1,re=-1,Nt=!1,Yn,Vt,ua,ra;for(;++I<=Y;){const lt=z[I];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?re++:re--,ra=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(Yn&&!ra&&!re&&!ua&&(ua=I),ra=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ra=void 0}if(!re&&lt[0]==="enter"&&lt[1].type==="listItemPrefix"||re===-1&&lt[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(Yn){let fl=I;for(Vt=void 0;fl--;){const Xt=z[fl];if(Xt[1].type==="lineEnding"||Xt[1].type==="lineEndingBlank"){if(Xt[0]==="exit")continue;Vt&&(z[Vt][1].type="lineEndingBlank",Nt=!0),Xt[1].type="lineEnding",Vt=fl}else if(!(Xt[1].type==="linePrefix"||Xt[1].type==="blockQuotePrefix"||Xt[1].type==="blockQuotePrefixWhitespace"||Xt[1].type==="blockQuoteMarker"||Xt[1].type==="listItemIndent"))break}ua&&(!Vt||ua<Vt)&&(Yn._spread=!0),Yn.end=Object.assign({},Vt?z[Vt][1].start:lt[1].end),z.splice(Vt||I,0,["exit",Yn,lt[2]]),I++,Y++}if(lt[1].type==="listItemPrefix"){const fl={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};Yn=fl,z.splice(I,0,["enter",fl,lt[2]]),I++,Y++,ua=void 0,ra=!0}}}return z[D][1]._spread=Nt,Y}function i(z,D){return Y;function Y(I){r.call(this,z(I),I),D&&D.call(this,I)}}function u(){this.stack.push({type:"fragment",children:[]})}function r(z,D,Y){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([D,Y||void 0]),z.position={start:dn(D.start),end:void 0}}function c(z){return D;function D(Y){z&&z.call(this,Y),s.call(this,Y)}}function s(z,D){const Y=this.stack.pop(),I=this.tokenStack.pop();if(I)I[0].type!==z.type&&(D?D.call(this,z,I[0]):(I[1]||kh).call(this,z,I[0]));else throw new Error("Cannot close `"+z.type+"` ("+Ba({start:z.start,end:z.end})+"): it’s not open");Y.position.end=dn(z.end)}function o(){return Nx(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(z){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function f(){const z=this.resume(),D=this.stack[this.stack.length-1];D.lang=z}function x(){const z=this.resume(),D=this.stack[this.stack.length-1];D.meta=z}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z.replace(/(\r?\n|\r)$/g,"")}function g(z){const D=this.resume(),Y=this.stack[this.stack.length-1];Y.label=D,Y.identifier=Ll(this.sliceSerialize(z)).toLowerCase()}function b(){const z=this.resume(),D=this.stack[this.stack.length-1];D.title=z}function E(){const z=this.resume(),D=this.stack[this.stack.length-1];D.url=z}function _(z){const D=this.stack[this.stack.length-1];if(!D.depth){const Y=this.sliceSerialize(z).length;D.depth=Y}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function C(z){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function j(z){const Y=this.stack[this.stack.length-1].children;let I=Y[Y.length-1];(!I||I.type!=="text")&&(I=Jg(),I.position={start:dn(z.start),end:void 0},Y.push(I)),this.stack.push(I)}function U(z){const D=this.stack.pop();D.value+=this.sliceSerialize(z),D.position.end=dn(z.end)}function R(z){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Y=D.children[D.children.length-1];Y.position.end=dn(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(D.type)&&(j.call(this,z),U.call(this,z))}function B(){this.data.atHardBreak=!0}function ne(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function ge(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function Q(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function A(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=D,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function k(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=D,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function L(z){const D=this.sliceSerialize(z),Y=this.stack[this.stack.length-2];Y.label=CS(D),Y.identifier=Ll(D).toLowerCase()}function Z(){const z=this.stack[this.stack.length-1],D=this.resume(),Y=this.stack[this.stack.length-1];if(this.data.inReference=!0,Y.type==="link"){const I=z.children;Y.children=I}else Y.alt=D}function y(){const z=this.resume(),D=this.stack[this.stack.length-1];D.url=z}function Te(){const z=this.resume(),D=this.stack[this.stack.length-1];D.title=z}function De(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function be(z){const D=this.resume(),Y=this.stack[this.stack.length-1];Y.label=D,Y.identifier=Ll(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function Ze(z){this.data.characterReferenceType=z.type}function _e(z){const D=this.sliceSerialize(z),Y=this.data.characterReferenceType;let I;Y?(I=bg(D,Y==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):I=po(D);const re=this.stack[this.stack.length-1];re.value+=I}function Gt(z){const D=this.stack.pop();D.position.end=dn(z.end)}function Dt(z){U.call(this,z);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(z)}function fn(z){U.call(this,z);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(z)}function ol(){return{type:"blockquote",children:[]}}function gi(){return{type:"code",lang:null,meta:null,value:""}}function Yg(){return{type:"inlineCode",value:""}}function Gg(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Vg(){return{type:"emphasis",children:[]}}function Ao(){return{type:"heading",depth:0,children:[]}}function zo(){return{type:"break"}}function wo(){return{type:"html",value:""}}function Xg(){return{type:"image",title:null,url:"",alt:null}}function Co(){return{type:"link",title:null,url:"",children:[]}}function No(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Qg(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function Zg(){return{type:"paragraph",children:[]}}function Kg(){return{type:"strong",children:[]}}function Jg(){return{type:"text",value:""}}function Fg(){return{type:"thematicBreak"}}}function dn(e){return{line:e.line,column:e.column,offset:e.offset}}function _g(e,t){let n=-1;for(;++n<t.length;){const l=t[n];Array.isArray(l)?_g(e,l):OS(e,l)}}function OS(e,t){let n;for(n in t)if(Ng.call(t,n))switch(n){case"canContainEols":{const l=t[n];l&&e[n].push(...l);break}case"transforms":{const l=t[n];l&&e[n].push(...l);break}case"enter":case"exit":{const l=t[n];l&&Object.assign(e[n],l);break}}}function kh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ba({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ba({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ba({start:t.start,end:t.end})+") is still open")}function DS(e){const t=this;t.parser=n;function n(l){return _S(l,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function jS(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function MS(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function RS(e,t){const n=t.value?t.value+`
`:"",l={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(l.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:l,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function US(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BS(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LS(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),a=ia(l.toLowerCase()),i=e.footnoteOrder.indexOf(l);let u,r=e.footnoteCounts.get(l);r===void 0?(r=0,e.footnoteOrder.push(l),u=e.footnoteOrder.length):u=i+1,r+=1,e.footnoteCounts.set(l,r);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(r>1?"-"+r:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,c);const s={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,s),e.applyData(t,s)}function HS(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qS(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function kg(e,t){const n=t.referenceType;let l="]";if(n==="collapsed"?l+="[]":n==="full"&&(l+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+l}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=l:a.push({type:"text",value:l}),a}function YS(e,t){const n=String(t.identifier).toUpperCase(),l=e.definitionById.get(n);if(!l)return kg(e,t);const a={src:ia(l.url||""),alt:t.alt};l.title!==null&&l.title!==void 0&&(a.title=l.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function GS(e,t){const n={src:ia(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const l={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,l),e.applyData(t,l)}function VS(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const l={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,l),e.applyData(t,l)}function XS(e,t){const n=String(t.identifier).toUpperCase(),l=e.definitionById.get(n);if(!l)return kg(e,t);const a={href:ia(l.url||"")};l.title!==null&&l.title!==void 0&&(a.title=l.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function QS(e,t){const n={href:ia(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const l={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function ZS(e,t,n){const l=e.all(t),a=n?KS(n):Og(t),i={},u=[];if(typeof t.checked=="boolean"){const o=l[0];let h;o&&o.type==="element"&&o.tagName==="p"?h=o:(h={type:"element",tagName:"p",properties:{},children:[]},l.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let r=-1;for(;++r<l.length;){const o=l[r];(a||r!==0||o.type!=="element"||o.tagName!=="p")&&u.push({type:"text",value:`
`}),o.type==="element"&&o.tagName==="p"&&!a?u.push(...o.children):u.push(o)}const c=l[l.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&u.push({type:"text",value:`
`});const s={type:"element",tagName:"li",properties:i,children:u};return e.patch(t,s),e.applyData(t,s)}function KS(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let l=-1;for(;!t&&++l<n.length;)t=Og(n[l])}return t}function Og(e){const t=e.spread;return t??e.children.length>1}function JS(e,t){const n={},l=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<l.length;){const u=l[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function FS(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IS(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $S(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WS(e,t){const n=e.all(t),l=n.shift(),a=[];if(l){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(t.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},r=oo(t.children[1]),c=fg(t.children[t.children.length-1]);r&&c&&(u.position={start:r,end:c}),a.push(u)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function PS(e,t,n){const l=n?n.children:void 0,i=(l?l.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,r=u?u.length:t.children.length;let c=-1;const s=[];for(;++c<r;){const h=t.children[c],d={},f=u?u[c]:void 0;f&&(d.align=f);let x={type:"element",tagName:i,properties:d,children:[]};h&&(x.children=e.all(h),e.patch(h,x),x=e.applyData(h,x)),s.push(x)}const o={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function e2(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Oh=9,Dh=32;function t2(e){const t=String(e),n=/\r?\n|\r/g;let l=n.exec(t),a=0;const i=[];for(;l;)i.push(jh(t.slice(a,l.index),a>0,!0),l[0]),a=l.index+l[0].length,l=n.exec(t);return i.push(jh(t.slice(a),a>0,!1)),i.join("")}function jh(e,t,n){let l=0,a=e.length;if(t){let i=e.codePointAt(l);for(;i===Oh||i===Dh;)l++,i=e.codePointAt(l)}if(n){let i=e.codePointAt(a-1);for(;i===Oh||i===Dh;)a--,i=e.codePointAt(a-1)}return a>l?e.slice(l,a):""}function n2(e,t){const n={type:"text",value:t2(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function l2(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const a2={blockquote:jS,break:MS,code:RS,delete:US,emphasis:BS,footnoteReference:LS,heading:HS,html:qS,imageReference:YS,image:GS,inlineCode:VS,linkReference:XS,link:QS,listItem:ZS,list:JS,paragraph:FS,root:IS,strong:$S,table:WS,tableCell:e2,tableRow:PS,text:n2,thematicBreak:l2,toml:ji,yaml:ji,definition:ji,footnoteDefinition:ji};function ji(){}const Dg=-1,er=0,Ha=1,_u=2,bo=3,xo=4,vo=5,So=6,jg=7,Mg=8,Mh=typeof self=="object"?self:globalThis,i2=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),l=a=>{if(e.has(a))return e.get(a);const[i,u]=t[a];switch(i){case er:case Dg:return n(u,a);case Ha:{const r=n([],a);for(const c of u)r.push(l(c));return r}case _u:{const r=n({},a);for(const[c,s]of u)r[l(c)]=l(s);return r}case bo:return n(new Date(u),a);case xo:{const{source:r,flags:c}=u;return n(new RegExp(r,c),a)}case vo:{const r=n(new Map,a);for(const[c,s]of u)r.set(l(c),l(s));return r}case So:{const r=n(new Set,a);for(const c of u)r.add(l(c));return r}case jg:{const{name:r,message:c}=u;return n(new Mh[r](c),a)}case Mg:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:r}=new Uint8Array(u);return n(new DataView(r),u)}}return n(new Mh[i](u),a)};return l},Rh=e=>i2(new Map,e)(0),ml="",{toString:u2}={},{keys:r2}=Object,ga=e=>{const t=typeof e;if(t!=="object"||!e)return[er,t];const n=u2.call(e).slice(8,-1);switch(n){case"Array":return[Ha,ml];case"Object":return[_u,ml];case"Date":return[bo,ml];case"RegExp":return[xo,ml];case"Map":return[vo,ml];case"Set":return[So,ml];case"DataView":return[Ha,n]}return n.includes("Array")?[Ha,n]:n.includes("Error")?[jg,n]:[_u,n]},Mi=([e,t])=>e===er&&(t==="function"||t==="symbol"),c2=(e,t,n,l)=>{const a=(u,r)=>{const c=l.push(u)-1;return n.set(r,c),c},i=u=>{if(n.has(u))return n.get(u);let[r,c]=ga(u);switch(r){case er:{let o=u;switch(c){case"bigint":r=Mg,o=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);o=null;break;case"undefined":return a([Dg],u)}return a([r,o],u)}case Ha:{if(c){let d=u;return c==="DataView"?d=new Uint8Array(u.buffer):c==="ArrayBuffer"&&(d=new Uint8Array(u)),a([c,[...d]],u)}const o=[],h=a([r,o],u);for(const d of u)o.push(i(d));return h}case _u:{if(c)switch(c){case"BigInt":return a([c,u.toString()],u);case"Boolean":case"Number":case"String":return a([c,u.valueOf()],u)}if(t&&"toJSON"in u)return i(u.toJSON());const o=[],h=a([r,o],u);for(const d of r2(u))(e||!Mi(ga(u[d])))&&o.push([i(d),i(u[d])]);return h}case bo:return a([r,u.toISOString()],u);case xo:{const{source:o,flags:h}=u;return a([r,{source:o,flags:h}],u)}case vo:{const o=[],h=a([r,o],u);for(const[d,f]of u)(e||!(Mi(ga(d))||Mi(ga(f))))&&o.push([i(d),i(f)]);return h}case So:{const o=[],h=a([r,o],u);for(const d of u)(e||!Mi(ga(d)))&&o.push(i(d));return h}}const{message:s}=u;return a([r,{name:c,message:s}],u)};return i},Uh=(e,{json:t,lossy:n}={})=>{const l=[];return c2(!(t||n),!!t,new Map,l)(e),l},ku=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Rh(Uh(e,t)):structuredClone(e):(e,t)=>Rh(Uh(e,t));function s2(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function o2(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function f2(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||s2,l=e.options.footnoteBackLabel||o2,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},r=[];let c=-1;for(;++c<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[c]);if(!s)continue;const o=e.all(s),h=String(s.identifier).toUpperCase(),d=ia(h.toLowerCase());let f=0;const x=[],S=e.footnoteCounts.get(h);for(;S!==void 0&&++f<=S;){x.length>0&&x.push({type:"text",value:" "});let g=typeof n=="string"?n:n(c,f);typeof g=="string"&&(g={type:"text",value:g}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(c,f),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const O=o[o.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const g=O.children[O.children.length-1];g&&g.type==="text"?g.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...x)}else o.push(...x);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(o,!0)};e.patch(s,m),r.push(m)}if(r.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...ku(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(r,!0)},{type:"text",value:`
`}]}}const Rg=function(e){if(e==null)return p2;if(typeof e=="function")return tr(e);if(typeof e=="object")return Array.isArray(e)?h2(e):d2(e);if(typeof e=="string")return m2(e);throw new Error("Expected function, string, or object as test")};function h2(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rg(e[n]);return tr(l);function l(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function d2(e){const t=e;return tr(n);function n(l){const a=l;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function m2(e){return tr(t);function t(n){return n&&n.type===e}}function tr(e){return t;function t(n,l,a){return!!(g2(n)&&e.call(this,n,typeof l=="number"?l:void 0,a||void 0))}}function p2(){return!0}function g2(e){return e!==null&&typeof e=="object"&&"type"in e}const Ug=[],y2=!0,Bh=!1,b2="skip";function x2(e,t,n,l){let a;typeof t=="function"&&typeof n!="function"?(l=n,n=t):a=t;const i=Rg(a),u=l?-1:1;r(e,void 0,[])();function r(c,s,o){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return d;function d(){let f=Ug,x,S,O;if((!t||i(c,s,o[o.length-1]||void 0))&&(f=v2(n(c,o)),f[0]===Bh))return f;if("children"in c&&c.children){const m=c;if(m.children&&f[0]!==b2)for(S=(l?m.children.length:-1)+u,O=o.concat(m);S>-1&&S<m.children.length;){const g=m.children[S];if(x=r(g,S,O)(),x[0]===Bh)return x;S=typeof x[1]=="number"?x[1]:S+u}}return f}}}function v2(e){return Array.isArray(e)?e:typeof e=="number"?[y2,e]:e==null?Ug:[e]}function Bg(e,t,n,l){let a,i,u;typeof t=="function"&&typeof n!="function"?(i=void 0,u=t,a=n):(i=t,u=n,a=l),x2(e,i,r,a);function r(c,s){const o=s[s.length-1],h=o?o.children.indexOf(c):void 0;return u(c,h,o)}}const ts={}.hasOwnProperty,S2={};function E2(e,t){const n=t||S2,l=new Map,a=new Map,i=new Map,u={...a2,...n.handlers},r={all:s,applyData:A2,definitionById:l,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:u,one:c,options:n,patch:T2,wrap:w2};return Bg(e,function(o){if(o.type==="definition"||o.type==="footnoteDefinition"){const h=o.type==="definition"?l:a,d=String(o.identifier).toUpperCase();h.has(d)||h.set(d,o)}}),r;function c(o,h){const d=o.type,f=r.handlers[d];if(ts.call(r.handlers,d)&&f)return f(r,o,h);if(r.options.passThrough&&r.options.passThrough.includes(d)){if("children"in o){const{children:S,...O}=o,m=ku(O);return m.children=r.all(o),m}return ku(o)}return(r.options.unknownHandler||z2)(r,o,h)}function s(o){const h=[];if("children"in o){const d=o.children;let f=-1;for(;++f<d.length;){const x=r.one(d[f],o);if(x){if(f&&d[f-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Lh(x.value)),!Array.isArray(x)&&x.type==="element")){const S=x.children[0];S&&S.type==="text"&&(S.value=Lh(S.value))}Array.isArray(x)?h.push(...x):h.push(x)}}}return h}}function T2(e,t){e.position&&(t.position=ux(e))}function A2(e,t){let n=t;if(e&&e.data){const l=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof l=="string")if(n.type==="element")n.tagName=l;else{const u="children"in n?n.children:[n];n={type:"element",tagName:l,properties:{},children:u}}n.type==="element"&&i&&Object.assign(n.properties,ku(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function z2(e,t){const n=t.data||{},l="value"in t&&!(ts.call(n,"hProperties")||ts.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function w2(e,t){const n=[];let l=-1;for(t&&n.push({type:"text",value:`
`});++l<e.length;)l&&n.push({type:"text",value:`
`}),n.push(e[l]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function Lh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Hh(e,t){const n=E2(e,t),l=n.one(e,void 0),a=f2(n),i=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
`},a),i}function C2(e,t){return e&&"run"in e?async function(n,l){const a=Hh(n,{file:l,...t});await e.run(a,l)}:function(n,l){return Hh(n,{file:l,...e||t})}}function qh(e){if(e)throw e}var Wi=Object.prototype.hasOwnProperty,Lg=Object.prototype.toString,Yh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Vh=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Lg.call(t)==="[object Array]"},Xh=function(t){if(!t||Lg.call(t)!=="[object Object]")return!1;var n=Wi.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&Wi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!l)return!1;var a;for(a in t);return typeof a>"u"||Wi.call(t,a)},Qh=function(t,n){Yh&&n.name==="__proto__"?Yh(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Zh=function(t,n){if(n==="__proto__")if(Wi.call(t,n)){if(Gh)return Gh(t,n).value}else return;return t[n]},N2=function e(){var t,n,l,a,i,u,r=arguments[0],c=1,s=arguments.length,o=!1;for(typeof r=="boolean"&&(o=r,r=arguments[1]||{},c=2),(r==null||typeof r!="object"&&typeof r!="function")&&(r={});c<s;++c)if(t=arguments[c],t!=null)for(n in t)l=Zh(r,n),a=Zh(t,n),r!==a&&(o&&a&&(Xh(a)||(i=Vh(a)))?(i?(i=!1,u=l&&Vh(l)?l:[]):u=l&&Xh(l)?l:{},Qh(r,{name:n,newValue:e(o,u,a)})):typeof a<"u"&&Qh(r,{name:n,newValue:a}));return r};const Vr=Ou(N2);function ns(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _2(){const e=[],t={run:n,use:l};return t;function n(...a){let i=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);r(null,...a);function r(c,...s){const o=e[++i];let h=-1;if(c){u(c);return}for(;++h<a.length;)(s[h]===null||s[h]===void 0)&&(s[h]=a[h]);a=s,o?k2(o,r)(...s):u(null,...s)}}function l(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function k2(e,t){let n;return l;function l(...u){const r=e.length>u.length;let c;r&&u.push(a);try{c=e.apply(this,u)}catch(s){const o=s;if(r&&n)throw o;return a(o)}r||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(u,...r){n||(n=!0,t(u,...r))}function i(u){a(null,u)}}const jt={basename:O2,dirname:D2,extname:j2,join:M2,sep:"/"};function O2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');pi(e);let n=0,l=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1);return l<0?"":e.slice(n,l)}if(t===e)return"";let u=-1,r=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else u<0&&(i=!0,u=a+1),r>-1&&(e.codePointAt(a)===t.codePointAt(r--)?r<0&&(l=a):(r=-1,l=u));return n===l?l=u:l<0&&(l=e.length),e.slice(n,l)}function D2(e){if(pi(e),e.length===0)return".";let t=-1,n=e.length,l;for(;--n;)if(e.codePointAt(n)===47){if(l){t=n;break}}else l||(l=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function j2(e){pi(e);let t=e.length,n=-1,l=0,a=-1,i=0,u;for(;t--;){const r=e.codePointAt(t);if(r===47){if(u){l=t+1;break}continue}n<0&&(u=!0,n=t+1),r===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===l+1?"":e.slice(a,n)}function M2(...e){let t=-1,n;for(;++t<e.length;)pi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":R2(n)}function R2(e){pi(e);const t=e.codePointAt(0)===47;let n=U2(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function U2(e,t){let n="",l=0,a=-1,i=0,u=-1,r,c;for(;++u<=e.length;){if(u<e.length)r=e.codePointAt(u);else{if(r===47)break;r=47}if(r===47){if(!(a===u-1||i===1))if(a!==u-1&&i===2){if(n.length<2||l!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",l=0):(n=n.slice(0,c),l=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length>0){n="",l=0,a=u,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",l=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),l=u-a-1;a=u,i=0}else r===46&&i>-1?i++:i=-1}return n}function pi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const B2={cwd:L2};function L2(){return"/"}function ls(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function H2(e){if(typeof e=="string")e=new URL(e);else if(!ls(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return q2(e)}function q2(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const l=t.codePointAt(n+2);if(l===70||l===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Xr=["history","path","basename","stem","extname","dirname"];class Hg{constructor(t){let n;t?ls(t)?n={path:t}:typeof t=="string"||Y2(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":B2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Xr.length;){const i=Xr[l];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Xr.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?jt.basename(this.path):void 0}set basename(t){Zr(t,"basename"),Qr(t,"basename"),this.path=jt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?jt.dirname(this.path):void 0}set dirname(t){Kh(this.basename,"dirname"),this.path=jt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?jt.extname(this.path):void 0}set extname(t){if(Qr(t,"extname"),Kh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=jt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ls(t)&&(t=H2(t)),Zr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?jt.basename(this.path,this.extname):void 0}set stem(t){Zr(t,"stem"),Qr(t,"stem"),this.path=jt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,l){const a=this.message(t,n,l);throw a.fatal=!0,a}info(t,n,l){const a=this.message(t,n,l);return a.fatal=void 0,a}message(t,n,l){const a=new Ye(t,n,l);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Qr(e,t){if(e&&e.includes(jt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+jt.sep+"`")}function Zr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Kh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Y2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const G2=function(e){const l=this.constructor.prototype,a=l[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,l),i},V2={}.hasOwnProperty;class Eo extends G2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_2()}copy(){const t=new Eo;let n=-1;for(;++n<this.attachers.length;){const l=this.attachers[n];t.use(...l)}return t.data(Vr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Fr("data",this.frozen),this.namespace[t]=n,this):V2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Fr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const a=n.call(t,...l);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ri(t),l=this.parser||this.Parser;return Kr("parse",l),l(String(n),n)}process(t,n){const l=this;return this.freeze(),Kr("process",this.parser||this.Parser),Jr("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,u){const r=Ri(t),c=l.parse(r);l.run(c,r,function(o,h,d){if(o||!h||!d)return s(o);const f=h,x=l.stringify(f,d);Z2(x)?d.value=x:d.result=x,s(o,d)});function s(o,h){o||!h?u(o):i?i(h):n(void 0,h)}}}processSync(t){let n=!1,l;return this.freeze(),Kr("processSync",this.parser||this.Parser),Jr("processSync",this.compiler||this.Compiler),this.process(t,a),Fh("processSync","process",n),l;function a(i,u){n=!0,qh(i),l=u}}run(t,n,l){Jh(t),this.freeze();const a=this.transformers;return!l&&typeof n=="function"&&(l=n,n=void 0),l?i(void 0,l):new Promise(i);function i(u,r){const c=Ri(n);a.run(t,c,s);function s(o,h,d){const f=h||t;o?r(o):u?u(f):l(void 0,f,d)}}}runSync(t,n){let l=!1,a;return this.run(t,n,i),Fh("runSync","run",l),a;function i(u,r){qh(u),a=r,l=!0}}stringify(t,n){this.freeze();const l=Ri(n),a=this.compiler||this.Compiler;return Jr("stringify",a),Jh(t),a(t,l)}use(t,...n){const l=this.attachers,a=this.namespace;if(Fr("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?r(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(s){if(typeof s=="function")c(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[o,...h]=s;c(o,h)}else u(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function u(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");r(s.plugins),s.settings&&(a.settings=Vr(!0,a.settings,s.settings))}function r(s){let o=-1;if(s!=null)if(Array.isArray(s))for(;++o<s.length;){const h=s[o];i(h)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function c(s,o){let h=-1,d=-1;for(;++h<l.length;)if(l[h][0]===s){d=h;break}if(d===-1)l.push([s,...o]);else if(o.length>0){let[f,...x]=o;const S=l[d][1];ns(S)&&ns(f)&&(f=Vr(!0,S,f)),l[d]=[s,f,...x]}}}}const X2=new Eo().freeze();function Kr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Jr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Fr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jh(e){if(!ns(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Fh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ri(e){return Q2(e)?e:new Hg(e)}function Q2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Z2(e){return typeof e=="string"||K2(e)}function K2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const J2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ih=[],$h={allowDangerousHtml:!0},F2=/^(https?|ircs?|mailto|xmpp)$/i,I2=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function qg(e){const t=$2(e),n=W2(e);return P2(t.runSync(t.parse(n),n),e)}function $2(e){const t=e.rehypePlugins||Ih,n=e.remarkPlugins||Ih,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$h}:$h;return X2().use(DS).use(n).use(C2,l).use(t)}function W2(e){const t=e.children||"",n=new Hg;return typeof t=="string"&&(n.value=t),n}function P2(e,t){const n=t.allowedElements,l=t.allowElement,a=t.components,i=t.disallowedElements,u=t.skipHtml,r=t.unwrapDisallowed,c=t.urlTransform||eE;for(const o of I2)Object.hasOwn(t,o.from)&&(""+o.from+(o.to?"use `"+o.to+"` instead":"remove it")+J2+o.id,void 0);return Bg(e,s),fx(e,{Fragment:p.Fragment,components:a,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function s(o,h,d){if(o.type==="raw"&&d&&typeof h=="number")return u?d.children.splice(h,1):d.children[h]={type:"text",value:o.value},h;if(o.type==="element"){let f;for(f in qr)if(Object.hasOwn(qr,f)&&Object.hasOwn(o.properties,f)){const x=o.properties[f],S=qr[f];(S===null||S.includes(o.tagName))&&(o.properties[f]=c(String(x||""),f,o))}}if(o.type==="element"){let f=n?!n.includes(o.tagName):i?i.includes(o.tagName):!1;if(!f&&l&&typeof h=="number"&&(f=!l(o,h,d)),f&&d&&typeof h=="number")return r&&o.children?d.children.splice(h,1,...o.children):d.children.splice(h,1),h}}}function eE(e){const t=e.indexOf(":"),n=e.indexOf("?"),l=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||l!==-1&&t>l||F2.test(e.slice(0,t))?e:""}const To="https://grainofsaltai.app/api";class gt extends Error{constructor(n,l){super(n);_o(this,"type");this.type=l}}const Wh=async(e,t)=>{const n=await io();if(!n)throw new gt("User not authenticated","unauthorized");console.log("[Extension API] Verifying URL:",e.url);const a=(await chrome.storage.local.get(["preferred_language"])).preferred_language||"en";try{const i=await fetch(`${To}/verify`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({content:e.url,image:e.image,locale:a,...e})});if(!i.ok){if(i.status===401)throw await uo(),new gt("Unauthorized","unauthorized");if(i.status===429)throw new gt("Rate limit exceeded","rate_limit");const o=await i.text();throw new gt(`Server Error: ${o}`,"server_error")}if(!i.body)throw new Error("ReadableStream not supported in this browser.");const u=i.body.getReader(),r=new TextDecoder;let c="",s=null;for(;;){const{done:o,value:h}=await u.read();if(o)break;c+=r.decode(h,{stream:!0});const d=c.split(`
`);c=d.pop()||"";for(const f of d)if(f.trim())try{const x=JSON.parse(f);if(x.type==="progress")t&&t(x.step,x.sub);else if(x.type==="result")s={verdict:x.data.verdict,score:x.data.confidence_score||0,details:x.data.reasoning||"No details provided.",citations:x.data.citations||[],emotional_analysis:x.data.emotional_analysis||"Neutral",sub_scores:x.data.sub_scores};else if(x.type==="error")throw new gt(x.message,"server_error")}catch(x){if(x instanceof gt)throw x;console.warn("Stream parse error",x)}}if(c.trim())try{const o=JSON.parse(c);if(o.type==="result")s={verdict:o.data.verdict,score:o.data.confidence_score||0,details:o.data.reasoning||"No details provided.",citations:o.data.citations||[],emotional_analysis:o.data.emotional_analysis||"Neutral",sub_scores:o.data.sub_scores};else if(o.type==="error")throw new gt(o.message,"server_error")}catch(o){if(o instanceof gt)throw o}if(!s)throw new Error("Stream ended without result");return s}catch(i){throw i instanceof gt?i:new gt(i instanceof Error?i.message:"Network error","network_error")}},tE=async(e,t)=>{const n=await io();if(!n)throw new gt("User not authenticated","unauthorized");try{const l=await fetch(`${To}/chat`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({messages:e,context:t})});if(!l.ok)throw l.status===401?(await uo(),new gt("Unauthorized","unauthorized")):new Error("Chat request failed");return await l.json()}catch(l){throw console.error("Chat API Error:",l),l}},nE=async()=>new Promise((e,t)=>{chrome.windows.getLastFocused({},n=>{var l;if(chrome.runtime.lastError||!n.id){t(new Error(((l=chrome.runtime.lastError)==null?void 0:l.message)||"No active window found"));return}chrome.tabs.captureVisibleTab(n.id,{format:"jpeg",quality:60},a=>{chrome.runtime.lastError?t(new Error(chrome.runtime.lastError.message)):e(a)})})}),lE=async(e,t,n,l)=>{console.error(`[Extension Error] ${t}: ${e}`,n,l);try{await fetch(`${To}/log-error`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e,type:t,stack:n,context:l})})}catch(a){console.warn("Failed to report error to server",a)}},aE=({context:e})=>{const[t,n]=W.useState([]),[l,a]=W.useState(""),[i,u]=W.useState(!1),[r,c]=W.useState(!1),s=W.useRef(null),o=()=>{var d;(d=s.current)==null||d.scrollIntoView({behavior:"smooth"})};W.useEffect(()=>{r&&o()},[t,r]);const h=async d=>{if(d.preventDefault(),!l.trim()||i)return;const f=l.trim();a(""),n(x=>[...x,{role:"user",content:f}]),u(!0);try{const x=await tE([...t,{role:"user",content:f}],e);n(S=>[...S,{role:"assistant",content:x.content}])}catch(x){console.error("Chat error:",x),n(S=>[...S,{role:"assistant",content:"I'm having trouble connecting right now. Please try again."}])}finally{u(!1)}};return e?r?p.jsxs("div",{className:"mt-6 bg-white rounded-xl shadow-sm border border-stone-200 overflow-hidden flex flex-col h-[400px]",children:[p.jsxs("div",{className:"bg-stone-50 border-b border-stone-100 px-4 py-3 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(sb,{className:"w-3 h-3 text-emerald-600"}),p.jsx("h3",{className:"font-bold text-stone-700 text-xs uppercase tracking-wider",children:"AI Assistant"})]}),p.jsxs("button",{onClick:()=>c(!1),className:"text-stone-400 hover:text-stone-600",children:[p.jsx("span",{className:"sr-only",children:"Close"}),"×"]})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 bg-stone-50/30",children:[t.length===0&&p.jsxs("div",{className:"text-center text-stone-400 py-6",children:[p.jsx("p",{className:"text-xs",children:"Ask anything about this content."}),p.jsx("div",{className:"flex flex-wrap justify-center gap-1.5 mt-2",children:["Is this biased?","Who is the author?"].map(d=>p.jsx("button",{onClick:()=>a(d),className:"text-[10px] bg-white border border-stone-200 px-2 py-1 rounded-full hover:bg-emerald-50 hover:border-emerald-200 hover:text-emerald-700 transition-colors",children:d},d))})]}),t.map((d,f)=>p.jsx("div",{className:`flex ${d.role==="user"?"justify-end":"justify-start"}`,children:p.jsx("div",{className:`max-w-[85%] rounded-lg px-3 py-2 text-xs leading-relaxed ${d.role==="user"?"bg-stone-900 text-white rounded-tr-none":"bg-white text-stone-800 border border-stone-100 rounded-tl-none shadow-sm"}`,children:p.jsx(qg,{components:{p:({node:x,...S})=>p.jsx("p",{className:"mb-1 last:mb-0",...S}),ul:({node:x,...S})=>p.jsx("ul",{className:"list-disc pl-4 mb-1",...S}),ol:({node:x,...S})=>p.jsx("ol",{className:"list-decimal pl-4 mb-1",...S}),a:({node:x,...S})=>p.jsx("a",{className:"text-blue-500 hover:underline",target:"_blank",...S})},children:d.content})})},f)),i&&p.jsx("div",{className:"flex justify-start",children:p.jsxs("div",{className:"bg-white rounded-lg rounded-tl-none px-3 py-2 border border-stone-100 shadow-sm flex items-center gap-1.5",children:[p.jsx(ib,{className:"w-3 h-3 animate-spin text-stone-400"}),p.jsx("span",{className:"text-[10px] text-stone-400 font-medium",children:"Thinking..."})]})}),p.jsx("div",{ref:s})]}),p.jsx("form",{onSubmit:h,className:"p-3 bg-white border-t border-stone-100",children:p.jsxs("div",{className:"relative flex items-center",children:[p.jsx("input",{type:"text",value:l,onChange:d=>a(d.target.value),placeholder:"Ask follow-up...",className:"w-full bg-stone-50 border border-stone-200 text-stone-900 text-xs rounded-full pl-3 pr-9 py-2 focus:outline-none focus:ring-1 focus:ring-emerald-500/50 focus:border-emerald-500 transition-all placeholder:text-stone-400"}),p.jsx("button",{type:"submit",disabled:!l.trim()||i,className:"absolute right-1 p-1.5 bg-stone-900 text-white rounded-full hover:bg-stone-800 disabled:opacity-50 disabled:hover:bg-stone-900 transition-colors",children:p.jsx(cb,{className:"w-3 h-3"})})]})})]}):p.jsxs("button",{onClick:()=>c(!0),className:"mt-6 w-full py-3 bg-emerald-50 text-emerald-700 font-bold rounded-full border border-emerald-200 hover:bg-emerald-100 transition-colors flex items-center justify-center gap-2 text-sm",children:[p.jsx(ub,{className:"w-4 h-4"})," Dig Deeper (Ask AI)"]}):null};class iE extends ju.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("VerdictView Error:",t,n),lE(t.message,"extension_error",t.stack,{componentStack:n.componentStack})}render(){var t;return this.state.hasError?p.jsxs("div",{className:"p-6 text-center h-full flex flex-col items-center justify-center",children:[p.jsx("h3",{className:"text-red-600 font-bold mb-2",children:"Something crashed!"}),p.jsx("p",{className:"text-xs text-stone-600 font-mono bg-stone-100 p-2 rounded break-all mb-4",children:((t=this.state.error)==null?void 0:t.message)||"Unknown error"}),p.jsx("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-stone-900 text-white text-xs font-bold rounded-full hover:bg-black transition-colors",children:"Reload Extension"})]}):this.props.children}}const uE=()=>{const{t:e,locale:t}=di(),[n,l]=W.useState(!1),[a,i]=W.useState(!1),[u,r]=W.useState(!1),[c,s]=W.useState(null),[o,h]=W.useState(null),[d,f]=W.useState(""),[x,S]=W.useState({step:"Initializing...",sub:"preparing analysis",percent:5}),[O,m]=W.useState(0),[g,b]=W.useState(null),[E,_]=W.useState(!1),[T,C]=W.useState(!1);W.useEffect(()=>{let A;return n&&(m(0),A=setInterval(()=>{m(k=>k+1)},1e3)),()=>{A&&clearInterval(A)}},[n]);const M=async()=>{i(!0),l(!0),h(null),S({step:"Connecting...",sub:"establishing secure stream",percent:5});try{const[A]=await chrome.tabs.query({active:!0,lastFocusedWindow:!0});if(!A||!A.url)throw new Error("Cannot access tab URL. Try refreshing the page.");if(A.url.startsWith("chrome://")||A.url.startsWith("edge://")||A.url.startsWith("about:"))throw new Error("Cannot analyze browser system pages. Navigate to a news article.");f(A.url);try{let L=0;const Z=await Wh({url:A.url},(y,Te)=>{L++;const De=Math.min(95,L/5*100);S({step:y,sub:Te,percent:De})});s(Z)}catch(k){console.error("Verification error:",k),k.type==="unauthorized"?h("Session expired. Please sign in again."):k.type==="network_error"||k.type==="unknown"||k.type==="server_error"?h(`Background Error: ${k.message||k.type}`):h(k.message||"Something went wrong.")}}catch(A){h(A.message||"Failed to analyze page.")}finally{l(!1)}};if(!a)return p.jsxs("div",{className:"flex flex-col items-center justify-center p-6 text-center h-full bg-white",children:[p.jsx("div",{className:"relative w-32 h-32 mb-4 animate-float",children:p.jsx("img",{src:"assets/characters/salty-idle.png",alt:"Ready",className:"w-full h-full object-contain"})}),p.jsx("h3",{className:"text-xl font-serif font-bold text-stone-800 mb-2",children:e("readyToAnalyze")}),p.jsx("p",{className:"text-sm text-stone-500 mb-8 leading-relaxed",children:e("verifyEvidenceInstantly")}),p.jsxs("button",{onClick:M,className:"w-full px-6 py-3 bg-stone-900 text-white font-bold rounded-full hover:bg-black transition-transform hover:scale-[1.02] shadow-xl shadow-stone-200 flex items-center justify-center gap-2",children:[p.jsx("span",{className:"text-lg",children:"🧂"})," ",e("analyzePage")]}),p.jsx("div",{className:"my-6 w-full border-t border-stone-100 relative",children:p.jsx("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white px-2 text-xs text-stone-300 font-bold uppercase",children:"OR"})}),p.jsxs("button",{onClick:async()=>{l(!0),h(null);try{const[A]=await chrome.tabs.query({active:!0,lastFocusedWindow:!0});if(!(A!=null&&A.id)||!A.url)throw new Error("No active tab found");if(!await chrome.permissions.contains({origins:["<all_urls>"]}))try{if(!await chrome.permissions.request({origins:["<all_urls>"]}))throw new Error("Permission denied. Screenshot capability requires access to all sites.")}catch{throw new Error("Permission required to capture screen.")}await chrome.scripting.insertCSS({target:{tabId:A.id},files:["cropper.css"]}),await chrome.scripting.executeScript({target:{tabId:A.id},files:["cropper.js"]}),l(!1);const L=async Z=>{if(Z.action==="CROP_AREA_SELECTED"){chrome.runtime.onMessage.removeListener(L);try{l(!0),i(!0),await new Promise(Gt=>setTimeout(Gt,100));const y=await nE(),Te=Z.area,De=await rE(y,Te),v=A.url||"Unknown";f(v);let be=0;const Ze=5,_e=await Wh({url:v,image:De},(Gt,Dt)=>{be++;const fn=Math.min(95,be/Ze*100);S({step:Gt,sub:Dt,percent:fn})});s(_e)}catch(y){console.error("Crop/Verify Error:",y),h(y.message||"Failed to process selection.")}finally{l(!1)}}};chrome.runtime.onMessage.addListener(L)}catch(A){console.error("Injection Error:",A),l(!1),h(A.message||"Failed to start selection tool.")}},className:"w-full px-6 py-3 bg-white text-stone-600 font-bold rounded-full border border-stone-200 hover:bg-stone-50 transition-colors flex items-center justify-center gap-2 text-sm",children:[p.jsx(nb,{className:"w-4 h-4"})," ",e("clipRegion")]})]});if(n)return p.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center bg-stone-50",children:[p.jsx("div",{className:"relative w-32 h-32 mb-6 animate-pulse",children:p.jsx("img",{src:"assets/characters/salty-searching.png",alt:"Analyzing...",className:"w-full h-full object-contain"})}),p.jsx("h3",{className:"text-lg font-serif font-bold text-stone-700 animate-pulse transition-all flex items-center justify-center gap-2",children:x.step}),p.jsx("div",{className:"w-32 h-1 bg-stone-200 rounded-full mt-3 overflow-hidden",children:p.jsx("div",{className:"h-full bg-emerald-500 transition-all duration-500",style:{width:`${x.percent}%`}})}),p.jsx("p",{className:"text-xs text-stone-400 font-medium uppercase tracking-wider mt-2",children:x.sub}),p.jsx("div",{className:"mt-8 p-4 bg-amber-50/50 border border-amber-100/50 rounded-xl animate-in fade-in slide-in-from-bottom-2 duration-700 delay-1000",children:p.jsxs("p",{className:"text-xs text-amber-700/80 leading-relaxed font-medium",children:[p.jsx("span",{className:"font-bold uppercase tracking-widest text-[10px] block mb-1 text-amber-700",children:e("saltySearching")}),e("analyzingGathering")]})})]});if(o){const A=o.includes("credit has been refunded"),k=o.includes("No credit was used")||o.includes("未扣除积分"),L=o.replace(/ — Don't worry, your credit has been refunded\.?/,"").replace(/No credit was used\. Please try a different link or paste the text directly\.?/,"").replace(/未扣除积分，请尝试其他链接或直接粘贴文本。?/,"").trim();return p.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center bg-stone-50",children:[p.jsx("div",{className:"relative w-32 h-32 mb-4",children:p.jsx("img",{src:"assets/characters/salty-avoid.png",alt:"Error",className:"w-full h-full object-contain"})}),p.jsx("h3",{className:"text-lg font-serif font-bold text-stone-900",children:e("verificationFailed")}),p.jsx("p",{className:"text-sm text-stone-600 my-2",children:L}),A&&p.jsxs("div",{className:"w-full mb-4 p-3 bg-emerald-50 border border-emerald-200 rounded-xl text-left",children:[p.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-widest bg-emerald-100 text-emerald-700 border border-emerald-200",children:e("creditRefunded")}),p.jsx("p",{className:"text-xs text-emerald-800 font-medium leading-relaxed mt-1",children:e("refundedApology")})]}),k&&p.jsxs("div",{className:"w-full mb-4 p-3 bg-emerald-50 border border-emerald-200 rounded-xl text-left",children:[p.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-widest bg-emerald-100 text-emerald-700 border border-emerald-200",children:e("notChargedBadge")}),p.jsx("p",{className:"text-xs text-emerald-800 font-medium leading-relaxed mt-1",children:e("notChargedMessage")})]}),p.jsx("button",{onClick:()=>{i(!1),window.location.reload()},className:"mt-4 px-6 py-2 bg-stone-200 text-stone-800 font-bold rounded-full hover:bg-stone-300 transition-colors uppercase text-xs tracking-wider",children:e("tryAgain")})]})}const j=A=>{switch(A){case"Solid":return"assets/characters/salty-solid.png";case"Caution":return"assets/characters/salty-caution.png";case"Avoid":case"Debunked":return"assets/characters/salty-avoid.png";default:return"assets/characters/salty-caution.png"}},U=A=>{switch(A){case"Solid":return{scoreColor:"bg-emerald-500",textColor:"text-emerald-700",borderColor:"border-emerald-200",bgColor:"bg-emerald-50"};case"Caution":return{scoreColor:"bg-amber-500",textColor:"text-amber-700",borderColor:"border-amber-200",bgColor:"bg-amber-50"};case"Debunked":return{scoreColor:"bg-red-700",textColor:"text-red-800",borderColor:"border-red-400",bgColor:"bg-red-100"};case"Avoid":return{scoreColor:"bg-red-500",textColor:"text-red-700",borderColor:"border-red-200",bgColor:"bg-red-50"};default:return{scoreColor:"bg-stone-400",textColor:"text-stone-600",borderColor:"border-stone-200",bgColor:"bg-stone-50"}}},R=j(c==null?void 0:c.verdict),{scoreColor:B,textColor:ne,borderColor:ge,bgColor:Q}=U(c==null?void 0:c.verdict);return p.jsx(iE,{children:p.jsxs("div",{className:"flex flex-col h-full p-4 bg-stone-50 overflow-y-auto",children:[(c==null?void 0:c.isMock)&&p.jsxs("div",{className:"mb-4 p-3 bg-yellow-50 border border-yellow-200 rounded-lg flex items-start gap-2",children:[p.jsx(tb,{className:"w-4 h-4 text-yellow-600 flex-shrink-0 mt-0.5"}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-xs font-bold text-yellow-800 uppercase tracking-wide",children:"Demo Mode"}),p.jsx("p",{className:"text-[10px] text-yellow-700 leading-tight",children:"Real analysis failed. Showing example data."})]})]}),p.jsxs("div",{className:`mb-6 mt-8 p-5 rounded-xl shadow-sm border ${ge} ${Q} relative overflow-visible`,children:[p.jsx("div",{className:"flex justify-center -mt-10 mb-2",children:p.jsx("div",{className:"w-32 h-32 drop-shadow-lg transform hover:scale-105 transition-transform duration-300",children:p.jsx("img",{src:R,alt:"Verdict Character",className:"w-full h-full object-contain"})})}),p.jsxs("div",{className:"text-center mb-4",children:[p.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1.5 mt-1",children:[p.jsx("h2",{className:"text-2xl font-serif font-bold text-stone-900 leading-none",children:c==null?void 0:c.verdict}),O>0&&p.jsxs("div",{className:"flex items-center justify-center text-[9px] font-mono tracking-widest uppercase border border-stone-200 px-1.5 py-0.5 rounded bg-white text-stone-400 shadow-sm",children:["⏱ ",O,"s"]})]}),(c==null?void 0:c.emotional_analysis)&&p.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider mb-2 border ${c.emotional_analysis==="Neutral"?"bg-stone-100 text-stone-500 border-stone-200":c.emotional_analysis==="Sensationalized"?"bg-orange-50 text-orange-600 border-orange-200":"bg-red-50 text-red-600 border-red-200"}`,children:c.emotional_analysis}),(c==null?void 0:c.verdict)==="Unverified"?p.jsx("p",{className:`text-xs font-bold uppercase tracking-widest ${ne} mt-1`,children:"Confidence N/A - INSUFFICIENT DATA"}):p.jsxs("p",{className:`text-xs font-bold uppercase tracking-widest ${ne}`,children:[c==null?void 0:c.score,"% Confidence"]})]}),(c==null?void 0:c.verdict)!=="Unverified"&&p.jsx("div",{className:"w-full bg-black/5 rounded-full h-1.5 mb-2",children:p.jsx("div",{className:`h-1.5 rounded-full ${B}`,style:{width:`${c==null?void 0:c.score}%`}})}),(c==null?void 0:c.sub_scores)&&(c==null?void 0:c.verdict)!=="Unverified"&&p.jsxs("div",{className:"mt-4 pt-4 border-t border-stone-200/50",children:[p.jsxs("div",{className:"flex items-center justify-between mb-2",children:[p.jsx("h4",{className:"text-[10px] font-bold text-stone-400 uppercase tracking-widest",children:e("trustBreakdown")||"Trust Breakdown"}),p.jsx("button",{onClick:()=>r(!u),className:"text-stone-300 hover:text-stone-500 transition-colors",title:e("understandingScore")||"Understanding the Score",children:p.jsx(Zc,{className:"w-3 h-3"})})]}),u?p.jsxs("div",{className:"bg-stone-100 p-3 rounded-lg text-[10px] text-stone-600 space-y-2 animate-in fade-in zoom-in-95",children:[p.jsxs("p",{children:[p.jsxs("strong",{children:[e("corroboration")||"Corroboration",":"]})," ",e("corroborationDesc")||"How many other sources confirm this?"]}),p.jsxs("p",{children:[p.jsxs("strong",{children:[e("credibility")||"Credibility",":"]})," ",e("credibilityDesc")||"Are the sources reputable (e.g. Reuters)?"]}),p.jsxs("p",{children:[p.jsxs("strong",{children:[e("recency")||"Recency",":"]})," ",e("recencyDesc")||"Is this news up-to-date?"]})]}):p.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-[10px] uppercase font-bold text-stone-400 mb-1",children:"Corroboration"}),p.jsx("div",{className:"h-1 bg-stone-100 rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-emerald-500",style:{width:`${(c.sub_scores.corroboration||0)*10}%`}})}),p.jsxs("div",{className:"text-[10px] font-bold text-stone-600 mt-0.5",children:[c.sub_scores.corroboration,"/10"]})]}),p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-[10px] uppercase font-bold text-stone-400 mb-1",children:"Credibility"}),p.jsx("div",{className:"h-1 bg-stone-100 rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-blue-500",style:{width:`${(c.sub_scores.credibility||0)*10}%`}})}),p.jsxs("div",{className:"text-[10px] font-bold text-stone-600 mt-0.5",children:[c.sub_scores.credibility,"/10"]})]}),p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-[10px] uppercase font-bold text-stone-400 mb-1",children:"Recency"}),p.jsx("div",{className:"h-1 bg-stone-100 rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-purple-500",style:{width:`${(c.sub_scores.recency||0)*10}%`}})}),p.jsxs("div",{className:"text-[10px] font-bold text-stone-600 mt-0.5",children:[c.sub_scores.recency,"/10"]})]})]})]})]}),p.jsxs("div",{className:"bg-white p-5 rounded-xl shadow-sm border border-stone-100 flex-grow mb-4",children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsxs("h3",{className:"text-xs font-bold text-stone-400 uppercase tracking-widest flex items-center gap-2",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-stone-400"})," ",e("analysis")||"Analysis"]}),t==="zh"&&p.jsxs("button",{onClick:async()=>{if(T){C(!1);return}if(g){C(!0);return}_(!0);try{const k=await(await fetch("https://grainofsaltai.app/api/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:c==null?void 0:c.details,targetLang:"zh"})})).json();k.translated&&(b(k.translated),C(!0))}catch(A){console.error("Translation failed:",A)}finally{_(!1)}},disabled:E,className:`flex items-center gap-1 px-2.5 py-1 rounded-full text-[10px] font-bold uppercase tracking-wider border transition-colors disabled:opacity-50\r
                                    bg-white text-stone-400 border-stone-200 hover:bg-stone-50 hover:text-stone-600`,children:[p.jsx(ab,{className:"w-3 h-3"}),e(E?"translating":T?"showOriginal":"translateButton")]})]}),p.jsx("div",{className:"text-stone-600 leading-relaxed text-sm font-sans mb-4",children:p.jsx(qg,{components:{strong:({node:A,...k})=>p.jsx("span",{className:"font-bold text-stone-800",...k}),ul:({node:A,...k})=>p.jsx("ul",{className:"list-disc pl-4 my-2 space-y-1",...k}),li:({node:A,...k})=>p.jsx("li",{className:"pl-0.5",...k}),p:({node:A,...k})=>p.jsx("p",{className:"mb-2 last:mb-0",...k})},children:T&&g?g:c==null?void 0:c.details})}),(c==null?void 0:c.citations)&&c.citations.length>0&&p.jsxs("div",{className:"border-t border-stone-100 pt-3",children:[p.jsx("h4",{className:"text-[10px] font-bold text-stone-400 uppercase tracking-widest mb-2",children:e("externalEvidence")||"External Evidence"}),p.jsx("div",{className:"space-y-1.5",children:c.citations.map((A,k)=>p.jsxs("a",{href:A.url,target:"_blank",rel:"noopener noreferrer",className:"block text-xs text-blue-600 hover:underline truncate",children:[k+1,". ",A.source]},k))})]})]}),p.jsx(aE,{context:c==null?void 0:c.details}),p.jsx("button",{onClick:()=>{i(!1),s(null),h(null)},className:"mt-6 w-full py-3 bg-stone-900 text-white font-bold rounded-full hover:bg-black transition-transform hover:scale-[1.02] shadow-xl shadow-stone-200 text-sm",children:e("tryAnother")}),p.jsx("p",{className:"mt-6 text-[10px] text-stone-300 text-center font-mono uppercase tracking-widest truncate px-4",children:d})]})})},rE=(e,t)=>new Promise((n,l)=>{const a=new Image;a.onload=()=>{const i=document.createElement("canvas"),u=t.devicePixelRatio||1;i.width=t.width*u,i.height=t.height*u;const r=i.getContext("2d");if(!r){l(new Error("Could not get canvas context"));return}r.drawImage(a,t.x*u,t.y*u,t.width*u,t.height*u,0,0,i.width,i.height),n(i.toDataURL("image/jpeg",.8))},a.onerror=()=>l(new Error("Failed to load image for cropping")),a.src=e}),Ph=({onClose:e})=>{const{t}=di();return p.jsx("div",{className:"absolute inset-0 z-50 bg-stone-900/40 backdrop-blur-sm flex items-end sm:items-center justify-center p-4 animate-in fade-in duration-200",children:p.jsxs("div",{className:"bg-white w-full max-h-[80vh] overflow-y-auto rounded-t-2xl sm:rounded-2xl shadow-2xl animate-in slide-in-from-bottom-10 sm:zoom-in-95 duration-300 flex flex-col",children:[p.jsxs("div",{className:"p-4 border-b border-stone-100 flex items-center justify-between sticky top-0 bg-white z-10",children:[p.jsxs("div",{className:"flex items-center gap-2 text-stone-900 font-bold",children:[p.jsx(rb,{className:"w-5 h-5 text-stone-400"}),p.jsx("span",{children:t("legalDisclaimer")})]}),p.jsx("button",{onClick:e,className:"p-1 hover:bg-stone-100 rounded-full text-stone-400 hover:text-stone-600 transition-colors",children:p.jsx(fb,{className:"w-5 h-5"})})]}),p.jsxs("div",{className:"p-6 text-sm text-stone-600 leading-relaxed font-sans space-y-4",children:[p.jsxs("div",{children:[p.jsx("h4",{className:"font-bold text-stone-900 mb-1",children:t("aiLimitations")}),p.jsx("p",{children:t("aiLimitationsDesc")})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-bold text-stone-900 mb-1",children:t("notAdvice")}),p.jsx("p",{children:t("notAdviceDesc")})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-bold text-stone-900 mb-1",children:t("noGuarantee")}),p.jsx("p",{children:t("noGuaranteeDesc")})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-bold text-stone-900 mb-1",children:t("userResp")}),p.jsx("p",{children:t("userRespDesc")})]}),p.jsx("div",{className:"pt-4 border-t border-stone-100 mt-4 text-xs font-bold text-stone-800 text-center",children:t("acknowledgeRisk")})]}),p.jsx("div",{className:"p-4 border-t border-stone-100 bg-stone-50 sticky bottom-0",children:p.jsx("button",{onClick:e,className:"w-full py-3 bg-stone-900 text-white font-bold rounded-xl hover:bg-stone-800 transition-colors",children:t("close")})})]})})},cE=({onConsent:e})=>{const{t}=di();return p.jsx("div",{className:"absolute inset-0 z-[60] bg-stone-900/90 backdrop-blur-sm flex items-center justify-center p-4 animate-in fade-in duration-300",children:p.jsxs("div",{className:"bg-white w-full max-h-[90vh] overflow-y-auto rounded-2xl shadow-2xl animate-in zoom-in-95 duration-300 flex flex-col items-center text-center p-6 border border-white/20",children:[p.jsxs("div",{className:"w-16 h-16 bg-stone-100 rounded-full flex items-center justify-center mb-4 relative",children:[p.jsx("div",{className:"absolute inset-0 bg-emerald-100 rounded-full animate-ping opacity-20"}),p.jsx(rh,{className:"w-8 h-8 text-emerald-600"})]}),p.jsx("h2",{className:"text-xl font-serif font-bold text-stone-900 mb-2",children:t("consentTitle")}),p.jsx("p",{className:"text-sm text-stone-500 font-medium mb-6",children:t("consentDesc")}),p.jsxs("div",{className:"space-y-4 text-left w-full mb-8",children:[p.jsxs("div",{className:"flex items-start gap-3 p-3 bg-stone-50 rounded-xl border border-stone-100",children:[p.jsx(lb,{className:"w-5 h-5 text-stone-400 mt-0.5 shrink-0"}),p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-bold text-stone-800",children:t("importantPrivacy")}),p.jsx("p",{className:"text-xs text-stone-600 leading-relaxed mt-1",children:t("privacyBullet1")})]})]}),p.jsxs("div",{className:"flex items-start gap-3 p-3 bg-stone-50 rounded-xl border border-stone-100",children:[p.jsx(ng,{className:"w-5 h-5 text-stone-400 mt-0.5 shrink-0"}),p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-bold text-stone-800",children:"AI Processing"}),p.jsx("p",{className:"text-xs text-stone-600 leading-relaxed mt-1",children:t("privacyBullet2")})]})]}),p.jsxs("div",{className:"flex items-start gap-3 p-3 bg-stone-50 rounded-xl border border-stone-100",children:[p.jsx(rh,{className:"w-5 h-5 text-stone-400 mt-0.5 shrink-0"}),p.jsx("div",{children:p.jsx("p",{className:"text-xs text-stone-600 leading-relaxed mt-1",children:t("privacyBullet3")})})]})]}),p.jsxs("div",{className:"w-full mt-auto",children:[p.jsx("button",{onClick:e,className:"w-full py-3.5 bg-stone-900 text-white font-bold rounded-xl hover:bg-black transition-all hover:scale-[1.02] shadow-xl text-sm",children:t("iUnderstand")}),p.jsx("p",{className:"text-[10px] text-stone-400 mt-3 flex justify-between px-2",children:p.jsx("span",{children:t("legalDisclaimer")})})]})]})})},sE=()=>{const[e,t]=W.useState(null),[n,l]=W.useState(!1),[a,i]=W.useState(null),{t:u,locale:r,toggleLanguage:c}=di(),s=async()=>{const f=await $1();t(f)},o=()=>{chrome.storage.local.get(["consent_given"],f=>{i(!!f.consent_given)})},h=()=>{chrome.storage.local.set({consent_given:!0},()=>{i(!0)})};if(W.useEffect(()=>{s(),o();const f=x=>{x.action==="REFRESH_AUTH_STATE"&&s()};return chrome.runtime.onMessage.addListener(f),()=>{chrome.runtime.onMessage.removeListener(f)}},[]),e===null||a===null)return p.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-white",children:[p.jsx("div",{className:"relative w-24 h-24 mb-4 animate-pulse",children:p.jsx("img",{src:"assets/characters/salty-searching.png",alt:"Loading...",className:"w-full h-full object-contain"})}),p.jsx("p",{className:"text-sm text-gray-400 font-serif italic",children:u("wakingUp")})]});if(!a)return p.jsx(cE,{onConsent:h});if(!e)return p.jsxs("div",{className:"flex flex-col h-screen bg-white",children:[p.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-stone-100",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("img",{src:"assets/characters/salty-idle.png",alt:"Salty",className:"w-8 h-8 object-contain"}),p.jsx("span",{className:"font-serif font-bold text-stone-900",children:u("brandName")})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("button",{onClick:c,className:"text-stone-400 hover:text-stone-600 transition-colors uppercase font-bold text-[10px] tracking-widest flex items-center gap-1 bg-stone-100 px-2 py-1 rounded",title:"Toggle Language",children:[p.jsx(uh,{className:"w-3 h-3"})," ",r==="en"?"EN":"ZH"]}),p.jsx("button",{onClick:()=>l(!0),className:"text-stone-400 hover:text-stone-600 transition-colors",title:u("legalDisclaimer"),children:p.jsx(Zc,{className:"w-4 h-4"})})]})]}),p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center relative overflow-hidden",children:[p.jsx("div",{className:"relative w-40 h-40 mb-6 animate-float",children:p.jsx("img",{src:"assets/characters/salty-insight.png",alt:"Salty Insight",className:"w-full h-full object-contain"})}),p.jsx("h3",{className:"text-xl font-serif font-bold text-stone-800 mb-2",children:u("unlockTruth")}),p.jsx("p",{className:"text-sm text-stone-500 mb-8 leading-relaxed",children:u("signInStart")}),p.jsx(mb,{}),n&&p.jsx(Ph,{onClose:()=>l(!1)})]})]});class d extends ju.Component{constructor(x){super(x),this.state={hasError:!1,error:null}}static getDerivedStateFromError(x){return{hasError:!0,error:x}}componentDidCatch(x,S){console.error("Sidebar Error:",x,S)}render(){var x;return this.state.hasError?p.jsxs("div",{className:"p-6 text-center h-screen flex flex-col items-center justify-center bg-stone-50",children:[p.jsx("h3",{className:"text-red-600 font-bold mb-2",children:"Error / 错误"}),p.jsx("div",{className:"bg-white p-3 rounded border border-red-200 text-left w-full mb-4 overflow-auto max-h-40",children:p.jsx("p",{className:"text-xs text-red-800 font-mono break-all",children:((x=this.state.error)==null?void 0:x.message)||"Unknown error / 未知错误"})}),p.jsx("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-stone-900 text-white text-xs font-bold rounded-full hover:bg-black",children:"Reload"})]}):this.props.children}}return p.jsxs("div",{className:"w-full h-screen flex flex-col bg-stone-50 overflow-hidden",children:[p.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-stone-200 bg-white z-10 shadow-sm",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("img",{src:"assets/characters/salty-idle.png",alt:"Salty",className:"w-8 h-8 object-contain"}),p.jsx("h1",{className:"font-serif font-bold text-sm text-stone-900",children:u("brandName")})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("button",{onClick:c,className:"text-stone-400 hover:text-stone-600 transition-colors uppercase font-bold text-[10px] tracking-widest flex items-center gap-1 bg-stone-100 px-2 py-1 rounded",title:"Toggle Language",children:[p.jsx(uh,{className:"w-3 h-3"})," ",r==="en"?"EN":"ZH"]}),p.jsx("button",{onClick:()=>l(!0),className:"text-stone-400 hover:text-stone-600 transition-colors",title:u("legalDisclaimer"),children:p.jsx(Zc,{className:"w-4 h-4"})}),p.jsxs("button",{onClick:()=>{uo(),t(!1)},className:"flex items-center gap-1 text-[10px] font-bold text-stone-400 hover:text-stone-600 transition-colors uppercase tracking-wider",children:[p.jsx(ob,{className:"w-3 h-3"})," ",u("signOut")]})]})]}),p.jsxs("div",{className:"flex-grow overflow-hidden relative",children:[p.jsx(d,{children:p.jsx(uE,{})}),n&&p.jsx(Ph,{onClose:()=>l(!1)})]})]})};function oE(){return p.jsx("div",{className:"w-full h-screen bg-white",children:p.jsx(sE,{})})}F1.createRoot(document.getElementById("root")).render(p.jsx(ju.StrictMode,{children:p.jsx(db,{children:p.jsx(oE,{})})}));
