@messagevisor/catalog 0.9.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-Bic-2mlS.css +1 -0
- package/dist/assets/index-C8ldlvUw.js +73 -0
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/src/pages/EntityDetailPage.tsx +163 -1
- package/src/utils/relevantIcuFormats.spec.ts +99 -0
- package/src/utils/relevantIcuFormats.ts +129 -0
- package/dist/assets/index-9TVwIAiT.js +0 -73
- package/dist/assets/index-BgEITLIy.css +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function Ig(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wc={exports:{}},Vi={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Dp;function Vv(){if(Dp)return Vi;Dp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(u,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var p in s)p!=="key"&&(c[p]=s[p])}else c=s;return s=c.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:c}}return Vi.Fragment=a,Vi.jsx=r,Vi.jsxs=r,Vi}var Lp;function Qv(){return Lp||(Lp=1,wc.exports=Vv()),wc.exports}var h=Qv(),jc={exports:{}},ge={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Bp;function Kv(){if(Bp)return ge;Bp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=w&&C[w]||C["@@iterator"],typeof C=="function"?C:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,U={};function k(C,Q,j){this.props=C,this.context=Q,this.refs=U,this.updater=j||z}k.prototype.isReactComponent={},k.prototype.setState=function(C,Q){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,Q,"setState")},k.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function $(){}$.prototype=k.prototype;function L(C,Q,j){this.props=C,this.context=Q,this.refs=U,this.updater=j||z}var ee=L.prototype=new $;ee.constructor=L,R(ee,k.prototype),ee.isPureReactComponent=!0;var I=Array.isArray;function H(){}var F={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function Y(C,Q,j){var ae=j.ref;return{$$typeof:n,type:C,key:Q,ref:ae!==void 0?ae:null,props:j}}function le(C,Q){return Y(C.type,Q,C.props)}function P(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function te(C){var Q={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(j){return Q[j]})}var xe=/\/+/g;function ue(C,Q){return typeof C=="object"&&C!==null&&C.key!=null?te(""+C.key):Q.toString(36)}function X(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(H,H):(C.status="pending",C.then(function(Q){C.status==="pending"&&(C.status="fulfilled",C.value=Q)},function(Q){C.status==="pending"&&(C.status="rejected",C.reason=Q)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function O(C,Q,j,ae,he){var ce=typeof C;(ce==="undefined"||ce==="boolean")&&(C=null);var Ne=!1;if(C===null)Ne=!0;else switch(ce){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(C.$$typeof){case n:case a:Ne=!0;break;case x:return Ne=C._init,O(Ne(C._payload),Q,j,ae,he)}}if(Ne)return he=he(C),Ne=ae===""?"."+ue(C,0):ae,I(he)?(j="",Ne!=null&&(j=Ne.replace(xe,"$&/")+"/"),O(he,Q,j,"",function(Ft){return Ft})):he!=null&&(P(he)&&(he=le(he,j+(he.key==null||C&&C.key===he.key?"":(""+he.key).replace(xe,"$&/")+"/")+Ne)),Q.push(he)),1;Ne=0;var $e=ae===""?".":ae+":";if(I(C))for(var Le=0;Le<C.length;Le++)ae=C[Le],ce=$e+ue(ae,Le),Ne+=O(ae,Q,j,ce,he);else if(Le=S(C),typeof Le=="function")for(C=Le.call(C),Le=0;!(ae=C.next()).done;)ae=ae.value,ce=$e+ue(ae,Le++),Ne+=O(ae,Q,j,ce,he);else if(ce==="object"){if(typeof C.then=="function")return O(X(C),Q,j,ae,he);throw Q=String(C),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function J(C,Q,j){if(C==null)return C;var ae=[],he=0;return O(C,ae,"","",function(ce){return Q.call(j,ce,he++)}),ae}function ie(C){if(C._status===-1){var Q=C._result;Q=Q(),Q.then(function(j){(C._status===0||C._status===-1)&&(C._status=1,C._result=j)},function(j){(C._status===0||C._status===-1)&&(C._status=2,C._result=j)}),C._status===-1&&(C._status=0,C._result=Q)}if(C._status===1)return C._result.default;throw C._result}var ye=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},E={map:J,forEach:function(C,Q,j){J(C,function(){Q.apply(this,arguments)},j)},count:function(C){var Q=0;return J(C,function(){Q++}),Q},toArray:function(C){return J(C,function(Q){return Q})||[]},only:function(C){if(!P(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ge.Activity=b,ge.Children=E,ge.Component=k,ge.Fragment=r,ge.Profiler=s,ge.PureComponent=L,ge.StrictMode=u,ge.Suspense=g,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ge.__COMPILER_RUNTIME={__proto__:null,c:function(C){return F.H.useMemoCache(C)}},ge.cache=function(C){return function(){return C.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(C,Q,j){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ae=R({},C.props),he=C.key;if(Q!=null)for(ce in Q.key!==void 0&&(he=""+Q.key),Q)!oe.call(Q,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&Q.ref===void 0||(ae[ce]=Q[ce]);var ce=arguments.length-2;if(ce===1)ae.children=j;else if(1<ce){for(var Ne=Array(ce),$e=0;$e<ce;$e++)Ne[$e]=arguments[$e+2];ae.children=Ne}return Y(C.type,he,ae)},ge.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},ge.createElement=function(C,Q,j){var ae,he={},ce=null;if(Q!=null)for(ae in Q.key!==void 0&&(ce=""+Q.key),Q)oe.call(Q,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(he[ae]=Q[ae]);var Ne=arguments.length-2;if(Ne===1)he.children=j;else if(1<Ne){for(var $e=Array(Ne),Le=0;Le<Ne;Le++)$e[Le]=arguments[Le+2];he.children=$e}if(C&&C.defaultProps)for(ae in Ne=C.defaultProps,Ne)he[ae]===void 0&&(he[ae]=Ne[ae]);return Y(C,ce,he)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(C){return{$$typeof:p,render:C}},ge.isValidElement=P,ge.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:ie}},ge.memo=function(C,Q){return{$$typeof:m,type:C,compare:Q===void 0?null:Q}},ge.startTransition=function(C){var Q=F.T,j={};F.T=j;try{var ae=C(),he=F.S;he!==null&&he(j,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(H,ye)}catch(ce){ye(ce)}finally{Q!==null&&j.types!==null&&(Q.types=j.types),F.T=Q}},ge.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ge.use=function(C){return F.H.use(C)},ge.useActionState=function(C,Q,j){return F.H.useActionState(C,Q,j)},ge.useCallback=function(C,Q){return F.H.useCallback(C,Q)},ge.useContext=function(C){return F.H.useContext(C)},ge.useDebugValue=function(){},ge.useDeferredValue=function(C,Q){return F.H.useDeferredValue(C,Q)},ge.useEffect=function(C,Q){return F.H.useEffect(C,Q)},ge.useEffectEvent=function(C){return F.H.useEffectEvent(C)},ge.useId=function(){return F.H.useId()},ge.useImperativeHandle=function(C,Q,j){return F.H.useImperativeHandle(C,Q,j)},ge.useInsertionEffect=function(C,Q){return F.H.useInsertionEffect(C,Q)},ge.useLayoutEffect=function(C,Q){return F.H.useLayoutEffect(C,Q)},ge.useMemo=function(C,Q){return F.H.useMemo(C,Q)},ge.useOptimistic=function(C,Q){return F.H.useOptimistic(C,Q)},ge.useReducer=function(C,Q,j){return F.H.useReducer(C,Q,j)},ge.useRef=function(C){return F.H.useRef(C)},ge.useState=function(C){return F.H.useState(C)},ge.useSyncExternalStore=function(C,Q,j){return F.H.useSyncExternalStore(C,Q,j)},ge.useTransition=function(){return F.H.useTransition()},ge.version="19.2.6",ge}var Up;function df(){return Up||(Up=1,jc.exports=Kv()),jc.exports}var T=df(),Ec={exports:{}},Qi={},Nc={exports:{}},Tc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Hp;function Gv(){return Hp||(Hp=1,(function(n){function a(O,J){var ie=O.length;O.push(J);e:for(;0<ie;){var ye=ie-1>>>1,E=O[ye];if(0<s(E,J))O[ye]=J,O[ie]=E,ie=ye;else break e}}function r(O){return O.length===0?null:O[0]}function u(O){if(O.length===0)return null;var J=O[0],ie=O.pop();if(ie!==J){O[0]=ie;e:for(var ye=0,E=O.length,C=E>>>1;ye<C;){var Q=2*(ye+1)-1,j=O[Q],ae=Q+1,he=O[ae];if(0>s(j,ie))ae<E&&0>s(he,j)?(O[ye]=he,O[ae]=ie,ye=ae):(O[ye]=j,O[Q]=ie,ye=Q);else if(ae<E&&0>s(he,ie))O[ye]=he,O[ae]=ie,ye=ae;else break e}}return J}function s(O,J){var ie=O.sortIndex-J.sortIndex;return ie!==0?ie:O.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var g=[],m=[],x=1,b=null,w=3,S=!1,z=!1,R=!1,U=!1,k=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function ee(O){for(var J=r(m);J!==null;){if(J.callback===null)u(m);else if(J.startTime<=O)u(m),J.sortIndex=J.expirationTime,a(g,J);else break;J=r(m)}}function I(O){if(R=!1,ee(O),!z)if(r(g)!==null)z=!0,H||(H=!0,te());else{var J=r(m);J!==null&&X(I,J.startTime-O)}}var H=!1,F=-1,oe=5,Y=-1;function le(){return U?!0:!(n.unstable_now()-Y<oe)}function P(){if(U=!1,H){var O=n.unstable_now();Y=O;var J=!0;try{e:{z=!1,R&&(R=!1,$(F),F=-1),S=!0;var ie=w;try{t:{for(ee(O),b=r(g);b!==null&&!(b.expirationTime>O&&le());){var ye=b.callback;if(typeof ye=="function"){b.callback=null,w=b.priorityLevel;var E=ye(b.expirationTime<=O);if(O=n.unstable_now(),typeof E=="function"){b.callback=E,ee(O),J=!0;break t}b===r(g)&&u(g),ee(O)}else u(g);b=r(g)}if(b!==null)J=!0;else{var C=r(m);C!==null&&X(I,C.startTime-O),J=!1}}break e}finally{b=null,w=ie,S=!1}J=void 0}}finally{J?te():H=!1}}}var te;if(typeof L=="function")te=function(){L(P)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,ue=xe.port2;xe.port1.onmessage=P,te=function(){ue.postMessage(null)}}else te=function(){k(P,0)};function X(O,J){F=k(function(){O(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(O){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var ie=w;w=J;try{return O()}finally{w=ie}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(O,J){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ie=w;w=O;try{return J()}finally{w=ie}},n.unstable_scheduleCallback=function(O,J,ie){var ye=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ye+ie:ye):ie=ye,O){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=ie+E,O={id:x++,callback:J,priorityLevel:O,startTime:ie,expirationTime:E,sortIndex:-1},ie>ye?(O.sortIndex=ie,a(m,O),r(g)===null&&O===r(m)&&(R?($(F),F=-1):R=!0,X(I,ie-ye))):(O.sortIndex=E,a(g,O),z||S||(z=!0,H||(H=!0,te()))),O},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(O){var J=w;return function(){var ie=w;w=J;try{return O.apply(this,arguments)}finally{w=ie}}}})(Tc)),Tc}var qp;function Xv(){return qp||(qp=1,Nc.exports=Gv()),Nc.exports}var Cc={exports:{}},bt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Yp;function Zv(){if(Yp)return bt;Yp=1;var n=df();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(g,m,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:g,containerInfo:m,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,bt.createPortal=function(g,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(g,m,null,x)},bt.flushSync=function(g){var m=f.T,x=u.p;try{if(f.T=null,u.p=2,g)return g()}finally{f.T=m,u.p=x,u.d.f()}},bt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(g,m))},bt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},bt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:S}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:w,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},bt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=p(m.as,m.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(g)},bt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin);u.d.L(g,x,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},bt.preloadModule=function(g,m){if(typeof g=="string")if(m){var x=p(m.as,m.crossOrigin);u.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(g)},bt.requestFormReset=function(g){u.d.r(g)},bt.unstable_batchedUpdates=function(g,m){return g(m)},bt.useFormState=function(g,m,x){return f.H.useFormState(g,m,x)},bt.useFormStatus=function(){return f.H.useHostTransitionStatus()},bt.version="19.2.6",bt}var Vp;function $v(){if(Vp)return Cc.exports;Vp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Cc.exports=Zv(),Cc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Qp;function Fv(){if(Qp)return Qi;Qp=1;var n=Xv(),a=df(),r=$v();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(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 p(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 g(e){if(c(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,i=t;;){var o=l.return;if(o===null)break;var d=o.alternate;if(d===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===d.child){for(d=o.child;d;){if(d===l)return g(o),e;if(d===i)return g(o),t;d=d.sibling}throw Error(u(188))}if(l.return!==i.return)l=o,i=d;else{for(var y=!1,v=o.child;v;){if(v===l){y=!0,l=o,i=d;break}if(v===i){y=!0,i=o,l=d;break}v=v.sibling}if(!y){for(v=d.child;v;){if(v===l){y=!0,l=d,i=o;break}if(v===i){y=!0,i=d,l=o;break}v=v.sibling}if(!y)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),L=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case k:return"Profiler";case U:return"StrictMode";case I:return"Suspense";case H:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case L:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var X=Array.isArray,O=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ye=[],E=-1;function C(e){return{current:e}}function Q(e){0>E||(e.current=ye[E],ye[E]=null,E--)}function j(e,t){E++,ye[E]=e.current,e.current=t}var ae=C(null),he=C(null),ce=C(null),Ne=C(null);function $e(e,t){switch(j(ce,t),j(he,e),j(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ap(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ap(t),e=ip(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(ae),j(ae,e)}function Le(){Q(ae),Q(he),Q(ce)}function Ft(e){e.memoizedState!==null&&j(Ne,e);var t=ae.current,l=ip(t,e.type);t!==l&&(j(he,e),j(ae,l))}function En(e){he.current===e&&(Q(ae),Q(he)),Ne.current===e&&(Q(Ne),Ui._currentValue=ie)}var Fa,fr;function Nn(e){if(Fa===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Fa=t&&t[1]||"",fr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Fa+e+fr}var Xl=!1;function Zl(e,t){if(!e||Xl)return"";Xl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(q){var B=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){B=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){B=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&B&&typeof q.stack=="string")return[q.stack,B.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),y=d[0],v=d[1];if(y&&v){var N=y.split(`
|
|
44
|
+
`),D=v.split(`
|
|
45
|
+
`);for(o=i=0;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(i===N.length||o===D.length)for(i=N.length-1,o=D.length-1;1<=i&&0<=o&&N[i]!==D[o];)o--;for(;1<=i&&0<=o;i--,o--)if(N[i]!==D[o]){if(i!==1||o!==1)do if(i--,o--,0>o||N[i]!==D[o]){var V=`
|
|
46
|
+
`+N[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=o);break}}}finally{Xl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Nn(l):""}function dr(e,t){switch(e.tag){case 26:case 27:case 5:return Nn(e.type);case 16:return Nn("Lazy");case 13:return e.child!==t&&t!==null?Nn("Suspense Fallback"):Nn("Suspense");case 19:return Nn("SuspenseList");case 0:case 15:return Zl(e.type,!1);case 11:return Zl(e.type.render,!1);case 1:return Zl(e.type,!0);case 31:return Nn("Activity");default:return""}}function hr(e){try{var t="",l=null;do t+=dr(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var $l=Object.prototype.hasOwnProperty,Fl=n.unstable_scheduleCallback,Ja=n.unstable_cancelCallback,rs=n.unstable_shouldYield,us=n.unstable_requestPaint,St=n.unstable_now,ss=n.unstable_getCurrentPriorityLevel,K=n.unstable_ImmediatePriority,ne=n.unstable_UserBlockingPriority,me=n.unstable_NormalPriority,we=n.unstable_LowPriority,Oe=n.unstable_IdlePriority,Lt=n.log,Tn=n.unstable_setDisableYieldValue,wt=null,ot=null;function Nt(e){if(typeof Lt=="function"&&Tn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(wt,e)}catch{}}var Ye=Math.clz32?Math.clz32:Ax,Fn=Math.log,cn=Math.LN2;function Ax(e){return e>>>=0,e===0?32:31-(Fn(e)/cn|0)|0}var mr=256,pr=262144,gr=4194304;function El(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 yr(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var o=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~d,i!==0?o=El(i):(y&=v,y!==0?o=El(y):l||(l=v&~e,l!==0&&(o=El(l))))):(v=i&~d,v!==0?o=El(v):y!==0?o=El(y):l||(l=i&~e,l!==0&&(o=El(l)))),o===0?0:t!==0&&t!==o&&(t&d)===0&&(d=o&-o,l=t&-t,d>=l||d===32&&(l&4194048)!==0)?t:o}function Ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kx(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 Hf(){var e=gr;return gr<<=1,(gr&62914560)===0&&(gr=4194304),e}function os(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Pa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zx(e,t,l,i,o,d){var y=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,D=e.hiddenUpdates;for(l=y&~l;0<l;){var V=31-Ye(l),Z=1<<V;v[V]=0,N[V]=-1;var B=D[V];if(B!==null)for(D[V]=null,V=0;V<B.length;V++){var q=B[V];q!==null&&(q.lane&=-536870913)}l&=~Z}i!==0&&qf(e,i,0),d!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function qf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ye(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Yf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Ye(l),o=1<<i;o&t|e[i]&t&&(e[i]|=t),l&=~o}}function Vf(e,t){var l=t&-t;return l=(l&42)!==0?1:cs(l),(l&(e.suspendedLanes|t))!==0?0:l}function cs(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 fs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qf(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Ap(e.type))}function Kf(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Jn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Jn,Tt="__reactProps$"+Jn,Jl="__reactContainer$"+Jn,ds="__reactEvents$"+Jn,Rx="__reactListeners$"+Jn,_x="__reactHandles$"+Jn,Gf="__reactResources$"+Jn,Wa="__reactMarker$"+Jn;function hs(e){delete e[mt],delete e[Tt],delete e[ds],delete e[Rx],delete e[_x]}function Il(e){var t=e[mt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Jl]||l[mt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=dp(e);e!==null;){if(l=e[mt])return l;e=dp(e)}return t}e=l,l=e.parentNode}return null}function Pl(e){if(e=e[mt]||e[Jl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ei(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Wl(e){var t=e[Gf];return t||(t=e[Gf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Wa]=!0}var Xf=new Set,Zf={};function Nl(e,t){ea(e,t),ea(e+"Capture",t)}function ea(e,t){for(Zf[e]=t,e=0;e<t.length;e++)Xf.add(t[e])}var Ox=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]*$"),$f={},Ff={};function Mx(e){return $l.call(Ff,e)?!0:$l.call($f,e)?!1:Ox.test(e)?Ff[e]=!0:($f[e]=!0,!1)}function xr(e,t,l){if(Mx(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function br(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Cn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function Jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dx(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(y){l=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ms(e){if(!e._valueTracker){var t=Jf(e)?"checked":"value";e._valueTracker=Dx(e,t,""+e[t])}}function If(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Jf(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function vr(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 Lx=/[\n"\\]/g;function It(e){return e.replace(Lx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ps(e,t,l,i,o,d,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?gs(e,y,Jt(t)):l!=null?gs(e,y,Jt(l)):i!=null&&e.removeAttribute("value"),o==null&&d!=null&&(e.defaultChecked=!!d),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Jt(v):e.removeAttribute("name")}function Pf(e,t,l,i,o,d,y,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){ms(e);return}l=l!=null?""+Jt(l):"",t=t!=null?""+Jt(t):l,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),ms(e)}function gs(e,t,l){t==="number"&&vr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ta(e,t,l,i){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&i&&(e[l].defaultSelected=!0)}else{for(l=""+Jt(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Wf(e,t,l){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Jt(l):""}function ed(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if(X(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Jt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),ms(e)}function na(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Bx=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 td(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||Bx.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function nd(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&l[o]!==i&&td(e,o,i)}else for(var d in t)t.hasOwnProperty(d)&&td(e,d,t[d])}function ys(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 Ux=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"]]),Hx=/^[\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 Sr(e){return Hx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function An(){}var xs=null;function bs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var la=null,aa=null;function ld(e){var t=Pl(e);if(t&&(e=t.stateNode)){var l=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ps(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var o=i[Tt]||null;if(!o)throw Error(u(90));ps(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&If(i)}break e;case"textarea":Wf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ta(e,!!l.multiple,t,!1)}}}var vs=!1;function ad(e,t,l){if(vs)return e(t,l);vs=!0;try{var i=e(t);return i}finally{if(vs=!1,(la!==null||aa!==null)&&(su(),la&&(t=la,e=aa,aa=la=null,ld(t),e)))for(t=0;t<e.length;t++)ld(e[t])}}function ti(e,t){var l=e.stateNode;if(l===null)return null;var i=l[Tt]||null;if(i===null)return null;l=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ss=!1;if(kn)try{var ni={};Object.defineProperty(ni,"passive",{get:function(){Ss=!0}}),window.addEventListener("test",ni,ni),window.removeEventListener("test",ni,ni)}catch{Ss=!1}var In=null,ws=null,wr=null;function id(){if(wr)return wr;var e,t=ws,l=t.length,i,o="value"in In?In.value:In.textContent,d=o.length;for(e=0;e<l&&t[e]===o[e];e++);var y=l-e;for(i=1;i<=y&&t[l-i]===o[d-i];i++);return wr=o.slice(e,1<i?1-i:void 0)}function jr(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 Er(){return!0}function rd(){return!1}function Ct(e){function t(l,i,o,d,y){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(d):d[v]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Er:rd,this.isPropagationStopped=rd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Er)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Er)},persist:function(){},isPersistent:Er}),t}var Tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nr=Ct(Tl),li=b({},Tl,{view:0,detail:0}),qx=Ct(li),js,Es,ai,Tr=b({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ts,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!==ai&&(ai&&e.type==="mousemove"?(js=e.screenX-ai.screenX,Es=e.screenY-ai.screenY):Es=js=0,ai=e),js)},movementY:function(e){return"movementY"in e?e.movementY:Es}}),ud=Ct(Tr),Yx=b({},Tr,{dataTransfer:0}),Vx=Ct(Yx),Qx=b({},li,{relatedTarget:0}),Ns=Ct(Qx),Kx=b({},Tl,{animationName:0,elapsedTime:0,pseudoElement:0}),Gx=Ct(Kx),Xx=b({},Tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zx=Ct(Xx),$x=b({},Tl,{data:0}),sd=Ct($x),Fx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jx={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"},Ix={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Px(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ix[e])?!!t[e]:!1}function Ts(){return Px}var Wx=b({},li,{key:function(e){if(e.key){var t=Fx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ts,charCode:function(e){return e.type==="keypress"?jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eb=Ct(Wx),tb=b({},Tr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=Ct(tb),nb=b({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ts}),lb=Ct(nb),ab=b({},Tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ib=Ct(ab),rb=b({},Tr,{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}),ub=Ct(rb),sb=b({},Tl,{newState:0,oldState:0}),ob=Ct(sb),cb=[9,13,27,32],Cs=kn&&"CompositionEvent"in window,ii=null;kn&&"documentMode"in document&&(ii=document.documentMode);var fb=kn&&"TextEvent"in window&&!ii,cd=kn&&(!Cs||ii&&8<ii&&11>=ii),fd=" ",dd=!1;function hd(e,t){switch(e){case"keyup":return cb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function md(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function db(e,t){switch(e){case"compositionend":return md(t);case"keypress":return t.which!==32?null:(dd=!0,fd);case"textInput":return e=t.data,e===fd&&dd?null:e;default:return null}}function hb(e,t){if(ia)return e==="compositionend"||!Cs&&hd(e,t)?(e=id(),wr=ws=In=null,ia=!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 cd&&t.locale!=="ko"?null:t.data;default:return null}}var mb={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 pd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mb[e.type]:t==="textarea"}function gd(e,t,l,i){la?aa?aa.push(i):aa=[i]:la=i,t=pu(t,"onChange"),0<t.length&&(l=new Nr("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var ri=null,ui=null;function pb(e){Pm(e,0)}function Cr(e){var t=ei(e);if(If(t))return e}function yd(e,t){if(e==="change")return t}var xd=!1;if(kn){var As;if(kn){var ks="oninput"in document;if(!ks){var bd=document.createElement("div");bd.setAttribute("oninput","return;"),ks=typeof bd.oninput=="function"}As=ks}else As=!1;xd=As&&(!document.documentMode||9<document.documentMode)}function vd(){ri&&(ri.detachEvent("onpropertychange",Sd),ui=ri=null)}function Sd(e){if(e.propertyName==="value"&&Cr(ui)){var t=[];gd(t,ui,e,bs(e)),ad(pb,t)}}function gb(e,t,l){e==="focusin"?(vd(),ri=t,ui=l,ri.attachEvent("onpropertychange",Sd)):e==="focusout"&&vd()}function yb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cr(ui)}function xb(e,t){if(e==="click")return Cr(t)}function bb(e,t){if(e==="input"||e==="change")return Cr(t)}function vb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:vb;function si(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!$l.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jd(e,t){var l=wd(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=wd(l)}}function Ed(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ed(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vr(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=vr(e.document)}return t}function zs(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 Sb=kn&&"documentMode"in document&&11>=document.documentMode,ra=null,Rs=null,oi=null,_s=!1;function Td(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_s||ra==null||ra!==vr(i)||(i=ra,"selectionStart"in i&&zs(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),oi&&si(oi,i)||(oi=i,i=pu(Rs,"onSelect"),0<i.length&&(t=new Nr("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=ra)))}function Cl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ua={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},Os={},Cd={};kn&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Al(e){if(Os[e])return Os[e];if(!ua[e])return e;var t=ua[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Cd)return Os[e]=t[l];return e}var Ad=Al("animationend"),kd=Al("animationiteration"),zd=Al("animationstart"),wb=Al("transitionrun"),jb=Al("transitionstart"),Eb=Al("transitioncancel"),Rd=Al("transitionend"),_d=new Map,Ms="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(" ");Ms.push("scrollEnd");function fn(e,t){_d.set(e,t),Nl(t,[e])}var Ar=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)},Pt=[],sa=0,Ds=0;function kr(){for(var e=sa,t=Ds=sa=0;t<e;){var l=Pt[t];Pt[t++]=null;var i=Pt[t];Pt[t++]=null;var o=Pt[t];Pt[t++]=null;var d=Pt[t];if(Pt[t++]=null,i!==null&&o!==null){var y=i.pending;y===null?o.next=o:(o.next=y.next,y.next=o),i.pending=o}d!==0&&Od(l,o,d)}}function zr(e,t,l,i){Pt[sa++]=e,Pt[sa++]=t,Pt[sa++]=l,Pt[sa++]=i,Ds|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ls(e,t,l,i){return zr(e,t,l,i),Rr(e)}function kl(e,t){return zr(e,null,null,t),Rr(e)}function Od(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var o=!1,d=e.return;d!==null;)d.childLanes|=l,i=d.alternate,i!==null&&(i.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(o=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,o&&t!==null&&(o=31-Ye(l),e=d.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=l|536870912),d):null}function Rr(e){if(50<Ri)throw Ri=0,Xo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oa={};function Nb(e,t,l,i){this.tag=e,this.key=l,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,l,i){return new Nb(e,t,l,i)}function Bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zn(e,t){var l=e.alternate;return l===null?(l=Ut(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Md(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _r(e,t,l,i,o,d){var y=0;if(i=e,typeof e=="function")Bs(e)&&(y=1);else if(typeof e=="string")y=zv(e,l,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=Ut(31,l,t,o),e.elementType=Y,e.lanes=d,e;case R:return zl(l.children,o,d,t);case U:y=8,o|=24;break;case k:return e=Ut(12,l,t,o|2),e.elementType=k,e.lanes=d,e;case I:return e=Ut(13,l,t,o),e.elementType=I,e.lanes=d,e;case H:return e=Ut(19,l,t,o),e.elementType=H,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:y=10;break e;case $:y=9;break e;case ee:y=11;break e;case F:y=14;break e;case oe:y=16,i=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Ut(y,l,t,o),t.elementType=e,t.type=i,t.lanes=d,t}function zl(e,t,l,i){return e=Ut(7,e,i,t),e.lanes=l,e}function Us(e,t,l){return e=Ut(6,e,null,t),e.lanes=l,e}function Dd(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Hs(e,t,l){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ld=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var l=Ld.get(e);return l!==void 0?l:(t={value:e,source:t,stack:hr(t)},Ld.set(e,t),t)}return{value:e,source:t,stack:hr(t)}}var ca=[],fa=0,Or=null,ci=0,en=[],tn=0,Pn=null,gn=1,yn="";function Rn(e,t){ca[fa++]=ci,ca[fa++]=Or,Or=e,ci=t}function Bd(e,t,l){en[tn++]=gn,en[tn++]=yn,en[tn++]=Pn,Pn=e;var i=gn;e=yn;var o=32-Ye(i)-1;i&=~(1<<o),l+=1;var d=32-Ye(t)+o;if(30<d){var y=o-o%5;d=(i&(1<<y)-1).toString(32),i>>=y,o-=y,gn=1<<32-Ye(t)+o|l<<o|i,yn=d+e}else gn=1<<d|l<<o|i,yn=e}function qs(e){e.return!==null&&(Rn(e,1),Bd(e,1,0))}function Ys(e){for(;e===Or;)Or=ca[--fa],ca[fa]=null,ci=ca[--fa],ca[fa]=null;for(;e===Pn;)Pn=en[--tn],en[tn]=null,yn=en[--tn],en[tn]=null,gn=en[--tn],en[tn]=null}function Ud(e,t){en[tn++]=gn,en[tn++]=yn,en[tn++]=Pn,gn=t.id,yn=t.overflow,Pn=e}var pt=null,Xe=null,Ae=!1,Wn=null,nn=!1,Vs=Error(u(519));function el(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fi(Wt(t,e)),Vs}function Hd(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[mt]=e,t[Tt]=i,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<Oi.length;l++)Ee(Oi[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Pf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),ed(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||np(t.textContent,l)?(i.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),i.onScroll!=null&&Ee("scroll",t),i.onScrollEnd!=null&&Ee("scrollend",t),i.onClick!=null&&(t.onclick=An),t=!0):t=!1,t||el(e,!0)}function qd(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:pt=pt.return}}function da(e){if(e!==pt)return!1;if(!Ae)return qd(e),Ae=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||uc(e.type,e.memoizedProps)),l=!l),l&&Xe&&el(e),qd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Xe=fp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Xe=fp(e)}else t===27?(t=Xe,ml(e.type)?(e=dc,dc=null,Xe=e):Xe=t):Xe=pt?an(e.stateNode.nextSibling):null;return!0}function Rl(){Xe=pt=null,Ae=!1}function Qs(){var e=Wn;return e!==null&&(Rt===null?Rt=e:Rt.push.apply(Rt,e),Wn=null),e}function fi(e){Wn===null?Wn=[e]:Wn.push(e)}var Ks=C(null),_l=null,_n=null;function tl(e,t,l){j(Ks,t._currentValue),t._currentValue=l}function On(e){e._currentValue=Ks.current,Q(Ks)}function Gs(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function Xs(e,t,l,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var d=o.dependencies;if(d!==null){var y=o.child;d=d.firstContext;e:for(;d!==null;){var v=d;d=o;for(var N=0;N<t.length;N++)if(v.context===t[N]){d.lanes|=l,v=d.alternate,v!==null&&(v.lanes|=l),Gs(d.return,l,e),i||(y=null);break e}d=v.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(u(341));y.lanes|=l,d=y.alternate,d!==null&&(d.lanes|=l),Gs(y,l,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function ha(e,t,l,i){e=null;for(var o=t,d=!1;o!==null;){if(!d){if((o.flags&524288)!==0)d=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var v=o.type;Bt(o.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(o===Ne.current){if(y=o.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ui):e=[Ui])}o=o.return}e!==null&&Xs(t,e,l,i),t.flags|=262144}function Mr(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){_l=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return Yd(_l,e)}function Dr(e,t){return _l===null&&Ol(e),Yd(e,t)}function Yd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},_n===null){if(e===null)throw Error(u(308));_n=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _n=_n.next=t;return l}var Tb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Cb=n.unstable_scheduleCallback,Ab=n.unstable_NormalPriority,lt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zs(){return{controller:new Tb,data:new Map,refCount:0}}function di(e){e.refCount--,e.refCount===0&&Cb(Ab,function(){e.controller.abort()})}var hi=null,$s=0,ma=0,pa=null;function kb(e,t){if(hi===null){var l=hi=[];$s=0,ma=Po(),pa={status:"pending",value:void 0,then:function(i){l.push(i)}}}return $s++,t.then(Vd,Vd),t}function Vd(){if(--$s===0&&hi!==null){pa!==null&&(pa.status="fulfilled");var e=hi;hi=null,ma=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zb(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var Qd=O.S;O.S=function(e,t){Tm=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&kb(e,t),Qd!==null&&Qd(e,t)};var Ml=C(null);function Fs(){var e=Ml.current;return e!==null?e:Ve.pooledCache}function Lr(e,t){t===null?j(Ml,Ml.current):j(Ml,t.pool)}function Kd(){var e=Fs();return e===null?null:{parent:lt._currentValue,pool:e}}var ga=Error(u(460)),Js=Error(u(474)),Br=Error(u(542)),Ur={then:function(){}};function Gd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(An,An),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$d(e),e;default:if(typeof t.status=="string")t.then(An,An);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$d(e),e}throw Ll=t,ga}}function Dl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ll=l,ga):l}}var Ll=null;function Zd(){if(Ll===null)throw Error(u(459));var e=Ll;return Ll=null,e}function $d(e){if(e===ga||e===Br)throw Error(u(483))}var ya=null,mi=0;function Hr(e){var t=mi;return mi+=1,ya===null&&(ya=[]),Xd(ya,e,t)}function pi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qr(e,t){throw t.$$typeof===w?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Fd(e){function t(_,A){if(e){var M=_.deletions;M===null?(_.deletions=[A],_.flags|=16):M.push(A)}}function l(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function i(_){for(var A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function o(_,A){return _=zn(_,A),_.index=0,_.sibling=null,_}function d(_,A,M){return _.index=M,e?(M=_.alternate,M!==null?(M=M.index,M<A?(_.flags|=67108866,A):M):(_.flags|=67108866,A)):(_.flags|=1048576,A)}function y(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function v(_,A,M,G){return A===null||A.tag!==6?(A=Us(M,_.mode,G),A.return=_,A):(A=o(A,M),A.return=_,A)}function N(_,A,M,G){var fe=M.type;return fe===R?V(_,A,M.props.children,G,M.key):A!==null&&(A.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===oe&&Dl(fe)===A.type)?(A=o(A,M.props),pi(A,M),A.return=_,A):(A=_r(M.type,M.key,M.props,null,_.mode,G),pi(A,M),A.return=_,A)}function D(_,A,M,G){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=Hs(M,_.mode,G),A.return=_,A):(A=o(A,M.children||[]),A.return=_,A)}function V(_,A,M,G,fe){return A===null||A.tag!==7?(A=zl(M,_.mode,G,fe),A.return=_,A):(A=o(A,M),A.return=_,A)}function Z(_,A,M){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Us(""+A,_.mode,M),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case S:return M=_r(A.type,A.key,A.props,null,_.mode,M),pi(M,A),M.return=_,M;case z:return A=Hs(A,_.mode,M),A.return=_,A;case oe:return A=Dl(A),Z(_,A,M)}if(X(A)||te(A))return A=zl(A,_.mode,M,null),A.return=_,A;if(typeof A.then=="function")return Z(_,Hr(A),M);if(A.$$typeof===L)return Z(_,Dr(_,A),M);qr(_,A)}return null}function B(_,A,M,G){var fe=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return fe!==null?null:v(_,A,""+M,G);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return M.key===fe?N(_,A,M,G):null;case z:return M.key===fe?D(_,A,M,G):null;case oe:return M=Dl(M),B(_,A,M,G)}if(X(M)||te(M))return fe!==null?null:V(_,A,M,G,null);if(typeof M.then=="function")return B(_,A,Hr(M),G);if(M.$$typeof===L)return B(_,A,Dr(_,M),G);qr(_,M)}return null}function q(_,A,M,G,fe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return _=_.get(M)||null,v(A,_,""+G,fe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return _=_.get(G.key===null?M:G.key)||null,N(A,_,G,fe);case z:return _=_.get(G.key===null?M:G.key)||null,D(A,_,G,fe);case oe:return G=Dl(G),q(_,A,M,G,fe)}if(X(G)||te(G))return _=_.get(M)||null,V(A,_,G,fe,null);if(typeof G.then=="function")return q(_,A,M,Hr(G),fe);if(G.$$typeof===L)return q(_,A,M,Dr(A,G),fe);qr(A,G)}return null}function re(_,A,M,G){for(var fe=null,ke=null,se=A,ve=A=0,Ce=null;se!==null&&ve<M.length;ve++){se.index>ve?(Ce=se,se=null):Ce=se.sibling;var ze=B(_,se,M[ve],G);if(ze===null){se===null&&(se=Ce);break}e&&se&&ze.alternate===null&&t(_,se),A=d(ze,A,ve),ke===null?fe=ze:ke.sibling=ze,ke=ze,se=Ce}if(ve===M.length)return l(_,se),Ae&&Rn(_,ve),fe;if(se===null){for(;ve<M.length;ve++)se=Z(_,M[ve],G),se!==null&&(A=d(se,A,ve),ke===null?fe=se:ke.sibling=se,ke=se);return Ae&&Rn(_,ve),fe}for(se=i(se);ve<M.length;ve++)Ce=q(se,_,ve,M[ve],G),Ce!==null&&(e&&Ce.alternate!==null&&se.delete(Ce.key===null?ve:Ce.key),A=d(Ce,A,ve),ke===null?fe=Ce:ke.sibling=Ce,ke=Ce);return e&&se.forEach(function(bl){return t(_,bl)}),Ae&&Rn(_,ve),fe}function de(_,A,M,G){if(M==null)throw Error(u(151));for(var fe=null,ke=null,se=A,ve=A=0,Ce=null,ze=M.next();se!==null&&!ze.done;ve++,ze=M.next()){se.index>ve?(Ce=se,se=null):Ce=se.sibling;var bl=B(_,se,ze.value,G);if(bl===null){se===null&&(se=Ce);break}e&&se&&bl.alternate===null&&t(_,se),A=d(bl,A,ve),ke===null?fe=bl:ke.sibling=bl,ke=bl,se=Ce}if(ze.done)return l(_,se),Ae&&Rn(_,ve),fe;if(se===null){for(;!ze.done;ve++,ze=M.next())ze=Z(_,ze.value,G),ze!==null&&(A=d(ze,A,ve),ke===null?fe=ze:ke.sibling=ze,ke=ze);return Ae&&Rn(_,ve),fe}for(se=i(se);!ze.done;ve++,ze=M.next())ze=q(se,_,ve,ze.value,G),ze!==null&&(e&&ze.alternate!==null&&se.delete(ze.key===null?ve:ze.key),A=d(ze,A,ve),ke===null?fe=ze:ke.sibling=ze,ke=ze);return e&&se.forEach(function(Yv){return t(_,Yv)}),Ae&&Rn(_,ve),fe}function He(_,A,M,G){if(typeof M=="object"&&M!==null&&M.type===R&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case S:e:{for(var fe=M.key;A!==null;){if(A.key===fe){if(fe=M.type,fe===R){if(A.tag===7){l(_,A.sibling),G=o(A,M.props.children),G.return=_,_=G;break e}}else if(A.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===oe&&Dl(fe)===A.type){l(_,A.sibling),G=o(A,M.props),pi(G,M),G.return=_,_=G;break e}l(_,A);break}else t(_,A);A=A.sibling}M.type===R?(G=zl(M.props.children,_.mode,G,M.key),G.return=_,_=G):(G=_r(M.type,M.key,M.props,null,_.mode,G),pi(G,M),G.return=_,_=G)}return y(_);case z:e:{for(fe=M.key;A!==null;){if(A.key===fe)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){l(_,A.sibling),G=o(A,M.children||[]),G.return=_,_=G;break e}else{l(_,A);break}else t(_,A);A=A.sibling}G=Hs(M,_.mode,G),G.return=_,_=G}return y(_);case oe:return M=Dl(M),He(_,A,M,G)}if(X(M))return re(_,A,M,G);if(te(M)){if(fe=te(M),typeof fe!="function")throw Error(u(150));return M=fe.call(M),de(_,A,M,G)}if(typeof M.then=="function")return He(_,A,Hr(M),G);if(M.$$typeof===L)return He(_,A,Dr(_,M),G);qr(_,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,A!==null&&A.tag===6?(l(_,A.sibling),G=o(A,M),G.return=_,_=G):(l(_,A),G=Us(M,_.mode,G),G.return=_,_=G),y(_)):l(_,A)}return function(_,A,M,G){try{mi=0;var fe=He(_,A,M,G);return ya=null,fe}catch(se){if(se===ga||se===Br)throw se;var ke=Ut(29,se,null,_.mode);return ke.lanes=G,ke.return=_,ke}finally{}}}var Bl=Fd(!0),Jd=Fd(!1),nl=!1;function Is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ps(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 ll(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function al(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Re&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=Rr(e),Od(e,null,l),t}return zr(e,i,t,l),Rr(e)}function gi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Yf(e,l)}}function Ws(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?o=d=y:d=d.next=y,l=l.next}while(l!==null);d===null?o=d=t:d=d.next=t}else o=d=t;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var eo=!1;function yi(){if(eo){var e=pa;if(e!==null)throw e}}function xi(e,t,l,i){eo=!1;var o=e.updateQueue;nl=!1;var d=o.firstBaseUpdate,y=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var N=v,D=N.next;N.next=null,y===null?d=D:y.next=D,y=N;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==y&&(v===null?V.firstBaseUpdate=D:v.next=D,V.lastBaseUpdate=N))}if(d!==null){var Z=o.baseState;y=0,V=D=N=null,v=d;do{var B=v.lane&-536870913,q=B!==v.lane;if(q?(Te&B)===B:(i&B)===B){B!==0&&B===ma&&(eo=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,de=v;B=t;var He=l;switch(de.tag){case 1:if(re=de.payload,typeof re=="function"){Z=re.call(He,Z,B);break e}Z=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=de.payload,B=typeof re=="function"?re.call(He,Z,B):re,B==null)break e;Z=b({},Z,B);break e;case 2:nl=!0}}B=v.callback,B!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[B]:q.push(B))}else q={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(D=V=q,N=Z):V=V.next=q,y|=B;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;q=v,v=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);V===null&&(N=Z),o.baseState=N,o.firstBaseUpdate=D,o.lastBaseUpdate=V,d===null&&(o.shared.lanes=0),ol|=y,e.lanes=y,e.memoizedState=Z}}function Id(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Pd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Id(l[e],t)}var xa=C(null),Yr=C(0);function Wd(e,t){e=Vn,j(Yr,e),j(xa,t),Vn=e|t.baseLanes}function to(){j(Yr,Vn),j(xa,xa.current)}function no(){Vn=Yr.current,Q(xa),Q(Yr)}var Ht=C(null),ln=null;function il(e){var t=e.alternate;j(tt,tt.current&1),j(Ht,e),ln===null&&(t===null||xa.current!==null||t.memoizedState!==null)&&(ln=e)}function lo(e){j(tt,tt.current),j(Ht,e),ln===null&&(ln=e)}function eh(e){e.tag===22?(j(tt,tt.current),j(Ht,e),ln===null&&(ln=e)):rl()}function rl(){j(tt,tt.current),j(Ht,Ht.current)}function qt(e){Q(Ht),ln===e&&(ln=null),Q(tt)}var tt=C(0);function Vr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||cc(l)||fc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mn=0,be=null,Be=null,at=null,Qr=!1,ba=!1,Ul=!1,Kr=0,bi=0,va=null,Rb=0;function We(){throw Error(u(321))}function ao(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Bt(e[l],t[l]))return!1;return!0}function io(e,t,l,i,o,d){return Mn=d,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Bh:So,Ul=!1,d=l(i,o),Ul=!1,ba&&(d=nh(t,l,i,o)),th(e),d}function th(e){O.H=wi;var t=Be!==null&&Be.next!==null;if(Mn=0,at=Be=be=null,Qr=!1,bi=0,va=null,t)throw Error(u(300));e===null||it||(e=e.dependencies,e!==null&&Mr(e)&&(it=!0))}function nh(e,t,l,i){be=e;var o=0;do{if(ba&&(va=null),bi=0,ba=!1,25<=o)throw Error(u(301));if(o+=1,at=Be=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}O.H=Uh,d=t(l,i)}while(ba);return d}function _b(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(be.flags|=1024),t}function ro(){var e=Kr!==0;return Kr=0,e}function uo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function so(e){if(Qr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Qr=!1}Mn=0,at=Be=be=null,ba=!1,bi=Kr=0,va=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?be.memoizedState=at=e:at=at.next=e,at}function nt(){if(Be===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=at===null?be.memoizedState:at.next;if(t!==null)at=t,Be=e;else{if(e===null)throw be.alternate===null?Error(u(467)):Error(u(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},at===null?be.memoizedState=at=e:at=at.next=e}return at}function Gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=bi;return bi+=1,va===null&&(va=[]),e=Xd(va,e,t),t=be,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Bh:So),e}function Xr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===L)return gt(e)}throw Error(u(438,String(e)))}function oo(e){var t=null,l=be.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=be.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Gr(),be.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=le;return t.index++,l}function Dn(e,t){return typeof t=="function"?t(e):t}function Zr(e){var t=nt();return co(t,Be,e)}function co(e,t,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var o=e.baseQueue,d=i.pending;if(d!==null){if(o!==null){var y=o.next;o.next=d.next,d.next=y}t.baseQueue=o=d,i.pending=null}if(d=e.baseState,o===null)e.memoizedState=d;else{t=o.next;var v=y=null,N=null,D=t,V=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(Te&Z)===Z:(Mn&Z)===Z){var B=D.revertLane;if(B===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===ma&&(V=!0);else if((Mn&B)===B){D=D.next,B===ma&&(V=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(v=N=Z,y=d):N=N.next=Z,be.lanes|=B,ol|=B;Z=D.action,Ul&&l(d,Z),d=D.hasEagerState?D.eagerState:l(d,Z)}else B={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(v=N=B,y=d):N=N.next=B,be.lanes|=Z,ol|=Z;D=D.next}while(D!==null&&D!==t);if(N===null?y=d:N.next=v,!Bt(d,e.memoizedState)&&(it=!0,V&&(l=pa,l!==null)))throw l;e.memoizedState=d,e.baseState=y,e.baseQueue=N,i.lastRenderedState=d}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function fo(e){var t=nt(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,o=l.pending,d=t.memoizedState;if(o!==null){l.pending=null;var y=o=o.next;do d=e(d,y.action),y=y.next;while(y!==o);Bt(d,t.memoizedState)||(it=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),l.lastRenderedState=d}return[d,i]}function lh(e,t,l){var i=be,o=nt(),d=Ae;if(d){if(l===void 0)throw Error(u(407));l=l()}else l=t();var y=!Bt((Be||o).memoizedState,l);if(y&&(o.memoizedState=l,it=!0),o=o.queue,po(rh.bind(null,i,o,e),[e]),o.getSnapshot!==t||y||at!==null&&at.memoizedState.tag&1){if(i.flags|=2048,Sa(9,{destroy:void 0},ih.bind(null,i,o,l,t),null),Ve===null)throw Error(u(349));d||(Mn&127)!==0||ah(i,t,l)}return l}function ah(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=be.updateQueue,t===null?(t=Gr(),be.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ih(e,t,l,i){t.value=l,t.getSnapshot=i,uh(t)&&sh(e)}function rh(e,t,l){return l(function(){uh(t)&&sh(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function sh(e){var t=kl(e,2);t!==null&&_t(t,e,2)}function ho(e){var t=jt();if(typeof e=="function"){var l=e;if(e=l(),Ul){Nt(!0);try{l()}finally{Nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},t}function oh(e,t,l,i){return e.baseState=l,co(e,Be,typeof i=="function"?i:Dn)}function Ob(e,t,l,i,o){if(Jr(e))throw Error(u(485));if(e=t.action,e!==null){var d={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};O.T!==null?l(!0):d.isTransition=!1,i(d),l=t.pending,l===null?(d.next=t.pending=d,ch(t,d)):(d.next=l.next,t.pending=l.next=d)}}function ch(e,t){var l=t.action,i=t.payload,o=e.state;if(t.isTransition){var d=O.T,y={};O.T=y;try{var v=l(o,i),N=O.S;N!==null&&N(y,v),fh(e,t,v)}catch(D){mo(e,t,D)}finally{d!==null&&y.types!==null&&(d.types=y.types),O.T=d}}else try{d=l(o,i),fh(e,t,d)}catch(D){mo(e,t,D)}}function fh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){dh(e,t,i)},function(i){return mo(e,t,i)}):dh(e,t,l)}function dh(e,t,l){t.status="fulfilled",t.value=l,hh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ch(e,l)))}function mo(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,hh(t),t=t.next;while(t!==i)}e.action=null}function hh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mh(e,t){return t}function ph(e,t){if(Ae){var l=Ve.formState;if(l!==null){e:{var i=be;if(Ae){if(Xe){t:{for(var o=Xe,d=nn;o.nodeType!==8;){if(!d){o=null;break t}if(o=an(o.nextSibling),o===null){o=null;break t}}d=o.data,o=d==="F!"||d==="F"?o:null}if(o){Xe=an(o.nextSibling),i=o.data==="F!";break e}}el(i)}i=!1}i&&(t=l[0])}}return l=jt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mh,lastRenderedState:t},l.queue=i,l=Mh.bind(null,be,i),i.dispatch=l,i=ho(!1),d=vo.bind(null,be,!1,i.queue),i=jt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,l=Ob.bind(null,be,o,d,l),o.dispatch=l,i.memoizedState=e,[t,l,!1]}function gh(e){var t=nt();return yh(t,Be,e)}function yh(e,t,l){if(t=co(e,t,mh)[0],e=Zr(Dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=vi(t)}catch(y){throw y===ga?Br:y}else i=t;t=nt();var o=t.queue,d=o.dispatch;return l!==t.memoizedState&&(be.flags|=2048,Sa(9,{destroy:void 0},Mb.bind(null,o,l),null)),[i,d,e]}function Mb(e,t){e.action=t}function xh(e){var t=nt(),l=Be;if(l!==null)return yh(t,l,e);nt(),t=t.memoizedState,l=nt();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function Sa(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=be.updateQueue,t===null&&(t=Gr(),be.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function bh(){return nt().memoizedState}function $r(e,t,l,i){var o=jt();be.flags|=e,o.memoizedState=Sa(1|t,{destroy:void 0},l,i===void 0?null:i)}function Fr(e,t,l,i){var o=nt();i=i===void 0?null:i;var d=o.memoizedState.inst;Be!==null&&i!==null&&ao(i,Be.memoizedState.deps)?o.memoizedState=Sa(t,d,l,i):(be.flags|=e,o.memoizedState=Sa(1|t,d,l,i))}function vh(e,t){$r(8390656,8,e,t)}function po(e,t){Fr(2048,8,e,t)}function Db(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=Gr(),be.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Sh(e){var t=nt().memoizedState;return Db({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function wh(e,t){return Fr(4,2,e,t)}function jh(e,t){return Fr(4,4,e,t)}function Eh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nh(e,t,l){l=l!=null?l.concat([e]):null,Fr(4,4,Eh.bind(null,t,e),l)}function go(){}function Th(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&ao(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Ch(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&ao(t,i[1]))return i[0];if(i=e(),Ul){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i}function yo(e,t,l){return l===void 0||(Mn&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Am(),be.lanes|=e,ol|=e,l)}function Ah(e,t,l,i){return Bt(l,t)?l:xa.current!==null?(e=yo(e,l,i),Bt(e,t)||(it=!0),e):(Mn&42)===0||(Mn&1073741824)!==0&&(Te&261930)===0?(it=!0,e.memoizedState=l):(e=Am(),be.lanes|=e,ol|=e,t)}function kh(e,t,l,i,o){var d=J.p;J.p=d!==0&&8>d?d:8;var y=O.T,v={};O.T=v,vo(e,!1,t,l);try{var N=o(),D=O.S;if(D!==null&&D(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var V=zb(N,i);Si(e,t,V,Qt(e))}else Si(e,t,i,Qt(e))}catch(Z){Si(e,t,{then:function(){},status:"rejected",reason:Z},Qt())}finally{J.p=d,y!==null&&v.types!==null&&(y.types=v.types),O.T=y}}function Lb(){}function xo(e,t,l,i){if(e.tag!==5)throw Error(u(476));var o=zh(e).queue;kh(e,o,t,ie,l===null?Lb:function(){return Rh(e),l(i)})}function zh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rh(e){var t=zh(e);t.next===null&&(t=e.alternate.memoizedState),Si(e,t.next.queue,{},Qt())}function bo(){return gt(Ui)}function _h(){return nt().memoizedState}function Oh(){return nt().memoizedState}function Bb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Qt();e=ll(l);var i=al(t,e,l);i!==null&&(_t(i,t,l),gi(i,t,l)),t={cache:Zs()},e.payload=t;return}t=t.return}}function Ub(e,t,l){var i=Qt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Jr(e)?Dh(t,l):(l=Ls(e,t,l,i),l!==null&&(_t(l,e,i),Lh(l,t,i)))}function Mh(e,t,l){var i=Qt();Si(e,t,l,i)}function Si(e,t,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Jr(e))Dh(t,o);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,v=d(y,l);if(o.hasEagerState=!0,o.eagerState=v,Bt(v,y))return zr(e,t,o,0),Ve===null&&kr(),!1}catch{}finally{}if(l=Ls(e,t,o,i),l!==null)return _t(l,e,i),Lh(l,t,i),!0}return!1}function vo(e,t,l,i){if(i={lane:2,revertLane:Po(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Jr(e)){if(t)throw Error(u(479))}else t=Ls(e,l,i,2),t!==null&&_t(t,e,2)}function Jr(e){var t=e.alternate;return e===be||t!==null&&t===be}function Dh(e,t){ba=Qr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Lh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Yf(e,l)}}var wi={readContext:gt,use:Xr,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};wi.useEffectEvent=We;var Bh={readContext:gt,use:Xr,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:vh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,$r(4194308,4,Eh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){$r(4,2,e,t)},useMemo:function(e,t){var l=jt();t=t===void 0?null:t;var i=e();if(Ul){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=jt();if(l!==void 0){var o=l(t);if(Ul){Nt(!0);try{l(t)}finally{Nt(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=Ub.bind(null,be,e),[i.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=ho(e);var t=e.queue,l=Mh.bind(null,be,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:go,useDeferredValue:function(e,t){var l=jt();return yo(l,e,t)},useTransition:function(){var e=ho(!1);return e=kh.bind(null,be,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=be,o=jt();if(Ae){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ve===null)throw Error(u(349));(Te&127)!==0||ah(i,t,l)}o.memoizedState=l;var d={value:l,getSnapshot:t};return o.queue=d,vh(rh.bind(null,i,d,e),[e]),i.flags|=2048,Sa(9,{destroy:void 0},ih.bind(null,i,d,l,t),null),l},useId:function(){var e=jt(),t=Ve.identifierPrefix;if(Ae){var l=yn,i=gn;l=(i&~(1<<32-Ye(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Kr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Rb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bo,useFormState:ph,useActionState:ph,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=vo.bind(null,be,!0,l),l.dispatch=t,[e,t]},useMemoCache:oo,useCacheRefresh:function(){return jt().memoizedState=Bb.bind(null,be)},useEffectEvent:function(e){var t=jt(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},So={readContext:gt,use:Xr,useCallback:Th,useContext:gt,useEffect:po,useImperativeHandle:Nh,useInsertionEffect:wh,useLayoutEffect:jh,useMemo:Ch,useReducer:Zr,useRef:bh,useState:function(){return Zr(Dn)},useDebugValue:go,useDeferredValue:function(e,t){var l=nt();return Ah(l,Be.memoizedState,e,t)},useTransition:function(){var e=Zr(Dn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:lh,useId:_h,useHostTransitionStatus:bo,useFormState:gh,useActionState:gh,useOptimistic:function(e,t){var l=nt();return oh(l,Be,e,t)},useMemoCache:oo,useCacheRefresh:Oh};So.useEffectEvent=Sh;var Uh={readContext:gt,use:Xr,useCallback:Th,useContext:gt,useEffect:po,useImperativeHandle:Nh,useInsertionEffect:wh,useLayoutEffect:jh,useMemo:Ch,useReducer:fo,useRef:bh,useState:function(){return fo(Dn)},useDebugValue:go,useDeferredValue:function(e,t){var l=nt();return Be===null?yo(l,e,t):Ah(l,Be.memoizedState,e,t)},useTransition:function(){var e=fo(Dn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:lh,useId:_h,useHostTransitionStatus:bo,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var l=nt();return Be!==null?oh(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:oo,useCacheRefresh:Oh};Uh.useEffectEvent=Sh;function wo(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var jo={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Qt(),o=ll(i);o.payload=t,l!=null&&(o.callback=l),t=al(e,o,i),t!==null&&(_t(t,e,i),gi(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Qt(),o=ll(i);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=al(e,o,i),t!==null&&(_t(t,e,i),gi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Qt(),i=ll(l);i.tag=2,t!=null&&(i.callback=t),t=al(e,i,l),t!==null&&(_t(t,e,l),gi(t,e,l))}};function Hh(e,t,l,i,o,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,y):t.prototype&&t.prototype.isPureReactComponent?!si(l,i)||!si(o,d):!0}function qh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&jo.enqueueReplaceState(t,t.state,null)}function Hl(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Yh(e){Ar(e)}function Vh(e){console.error(e)}function Qh(e){Ar(e)}function Ir(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Kh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Eo(e,t,l){return l=ll(l),l.tag=3,l.payload={element:null},l.callback=function(){Ir(e,t)},l}function Gh(e){return e=ll(e),e.tag=3,e}function Xh(e,t,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var d=i.value;e.payload=function(){return o(d)},e.callback=function(){Kh(t,l,i)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Kh(t,l,i),typeof o!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function Hb(e,t,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&ha(t,l,o,!0),l=Ht.current,l!==null){switch(l.tag){case 31:case 13:return ln===null?ou():l.alternate===null&&et===0&&(et=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===Ur?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),Fo(e,i,o)),!1;case 22:return l.flags|=65536,i===Ur?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),Fo(e,i,o)),!1}throw Error(u(435,l.tag))}return Fo(e,i,o),ou(),!1}if(Ae)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Vs&&(e=Error(u(422),{cause:i}),fi(Wt(e,l)))):(i!==Vs&&(t=Error(u(423),{cause:i}),fi(Wt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Wt(i,l),o=Eo(e.stateNode,i,o),Ws(e,o),et!==4&&(et=2)),!1;var d=Error(u(520),{cause:i});if(d=Wt(d,l),zi===null?zi=[d]:zi.push(d),et!==4&&(et=2),t===null)return!0;i=Wt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=Eo(l.stateNode,i,e),Ws(l,e),!1;case 1:if(t=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(cl===null||!cl.has(d))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Gh(o),Xh(o,e,l,i),Ws(l,o),!1}l=l.return}while(l!==null);return!1}var No=Error(u(461)),it=!1;function yt(e,t,l,i){t.child=e===null?Jd(t,null,l,i):Bl(t,e.child,l,i)}function Zh(e,t,l,i,o){l=l.render;var d=t.ref;if("ref"in i){var y={};for(var v in i)v!=="ref"&&(y[v]=i[v])}else y=i;return Ol(t),i=io(e,t,l,y,d,o),v=ro(),e!==null&&!it?(uo(e,t,o),Ln(e,t,o)):(Ae&&v&&qs(t),t.flags|=1,yt(e,t,i,o),t.child)}function $h(e,t,l,i,o){if(e===null){var d=l.type;return typeof d=="function"&&!Bs(d)&&d.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=d,Fh(e,t,d,i,o)):(e=_r(l.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Oo(e,o)){var y=d.memoizedProps;if(l=l.compare,l=l!==null?l:si,l(y,i)&&e.ref===t.ref)return Ln(e,t,o)}return t.flags|=1,e=zn(d,i),e.ref=t.ref,e.return=t,t.child=e}function Fh(e,t,l,i,o){if(e!==null){var d=e.memoizedProps;if(si(d,i)&&e.ref===t.ref)if(it=!1,t.pendingProps=i=d,Oo(e,o))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Ln(e,t,o)}return To(e,t,l,i,o)}function Jh(e,t,l,i){var o=i.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~d}else i=0,t.child=null;return Ih(e,t,d,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Lr(t,d!==null?d.cachePool:null),d!==null?Wd(t,d):to(),eh(t);else return i=t.lanes=536870912,Ih(e,t,d!==null?d.baseLanes|l:l,l,i)}else d!==null?(Lr(t,d.cachePool),Wd(t,d),rl(),t.memoizedState=null):(e!==null&&Lr(t,null),to(),rl());return yt(e,t,o,l),t.child}function ji(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ih(e,t,l,i,o){var d=Fs();return d=d===null?null:{parent:lt._currentValue,pool:d},t.memoizedState={baseLanes:l,cachePool:d},e!==null&&Lr(t,null),to(),eh(t),e!==null&&ha(e,t,i,!0),t.childLanes=o,null}function Pr(e,t){return t=eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ph(e,t,l){return Bl(t,e.child,null,l),e=Pr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function qb(e,t,l){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(i.mode==="hidden")return e=Pr(t,i),t.lanes=536870912,ji(null,e);if(lo(t),(e=Xe)?(e=cp(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Dd(e),l.return=t,t.child=l,pt=t,Xe=null)):e=null,e===null)throw el(t);return t.lanes=536870912,null}return Pr(t,i)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(lo(t),o)if(t.flags&256)t.flags&=-257,t=Ph(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(it||ha(e,t,l,!1),o=(l&e.childLanes)!==0,it||o){if(i=Ve,i!==null&&(y=Vf(i,l),y!==0&&y!==d.retryLane))throw d.retryLane=y,kl(e,y),_t(i,e,y),No;ou(),t=Ph(e,t,l)}else e=d.treeContext,Xe=an(y.nextSibling),pt=t,Ae=!0,Wn=null,nn=!1,e!==null&&Ud(t,e),t=Pr(t,i),t.flags|=4096;return t}return e=zn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function To(e,t,l,i,o){return Ol(t),l=io(e,t,l,i,void 0,o),i=ro(),e!==null&&!it?(uo(e,t,o),Ln(e,t,o)):(Ae&&i&&qs(t),t.flags|=1,yt(e,t,l,o),t.child)}function Wh(e,t,l,i,o,d){return Ol(t),t.updateQueue=null,l=nh(t,i,l,o),th(e),i=ro(),e!==null&&!it?(uo(e,t,d),Ln(e,t,d)):(Ae&&i&&qs(t),t.flags|=1,yt(e,t,l,d),t.child)}function em(e,t,l,i,o){if(Ol(t),t.stateNode===null){var d=oa,y=l.contextType;typeof y=="object"&&y!==null&&(d=gt(y)),d=new l(i,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=jo,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},Is(t),y=l.contextType,d.context=typeof y=="object"&&y!==null?gt(y):oa,d.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(wo(t,l,y,i),d.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&jo.enqueueReplaceState(d,d.state,null),xi(t,i,d,o),yi(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){d=t.stateNode;var v=t.memoizedProps,N=Hl(l,v);d.props=N;var D=d.context,V=l.contextType;y=oa,typeof V=="object"&&V!==null&&(y=gt(V));var Z=l.getDerivedStateFromProps;V=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v||D!==y)&&qh(t,d,i,y),nl=!1;var B=t.memoizedState;d.state=B,xi(t,i,d,o),yi(),D=t.memoizedState,v||B!==D||nl?(typeof Z=="function"&&(wo(t,l,Z,i),D=t.memoizedState),(N=nl||Hh(t,l,N,i,B,D,y))?(V||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),d.props=i,d.state=D,d.context=y,i=N):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,Ps(e,t),y=t.memoizedProps,V=Hl(l,y),d.props=V,Z=t.pendingProps,B=d.context,D=l.contextType,N=oa,typeof D=="object"&&D!==null&&(N=gt(D)),v=l.getDerivedStateFromProps,(D=typeof v=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==Z||B!==N)&&qh(t,d,i,N),nl=!1,B=t.memoizedState,d.state=B,xi(t,i,d,o),yi();var q=t.memoizedState;y!==Z||B!==q||nl||e!==null&&e.dependencies!==null&&Mr(e.dependencies)?(typeof v=="function"&&(wo(t,l,v,i),q=t.memoizedState),(V=nl||Hh(t,l,V,i,B,q,N)||e!==null&&e.dependencies!==null&&Mr(e.dependencies))?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,q,N),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,q,N)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),d.props=i,d.state=q,d.context=N,i=V):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),i=!1)}return d=i,Wr(e,t),i=(t.flags&128)!==0,d||i?(d=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&i?(t.child=Bl(t,e.child,null,o),t.child=Bl(t,null,l,o)):yt(e,t,l,o),t.memoizedState=d.state,e=t.child):e=Ln(e,t,o),e}function tm(e,t,l,i){return Rl(),t.flags|=256,yt(e,t,l,i),t.child}var Co={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ao(e){return{baseLanes:e,cachePool:Kd()}}function ko(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function nm(e,t,l){var i=t.pendingProps,o=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(o?il(t):rl(),(e=Xe)?(e=cp(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Dd(e),l.return=t,t.child=l,pt=t,Xe=null)):e=null,e===null)throw el(t);return fc(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(rl(),o=t.mode,v=eu({mode:"hidden",children:v},o),i=zl(i,o,l,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=Ao(l),i.childLanes=ko(e,y,l),t.memoizedState=Co,ji(null,i)):(il(t),zo(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(d)t.flags&256?(il(t),t.flags&=-257,t=Ro(e,t,l)):t.memoizedState!==null?(rl(),t.child=e.child,t.flags|=128,t=null):(rl(),v=i.fallback,o=t.mode,i=eu({mode:"visible",children:i.children},o),v=zl(v,o,l,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Bl(t,e.child,null,l),i=t.child,i.memoizedState=Ao(l),i.childLanes=ko(e,y,l),t.memoizedState=Co,t=ji(null,i));else if(il(t),fc(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var D=y.dgst;y=D,i=Error(u(419)),i.stack="",i.digest=y,fi({value:i,source:null,stack:null}),t=Ro(e,t,l)}else if(it||ha(e,t,l,!1),y=(l&e.childLanes)!==0,it||y){if(y=Ve,y!==null&&(i=Vf(y,l),i!==0&&i!==N.retryLane))throw N.retryLane=i,kl(e,i),_t(y,e,i),No;cc(v)||ou(),t=Ro(e,t,l)}else cc(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Xe=an(v.nextSibling),pt=t,Ae=!0,Wn=null,nn=!1,e!==null&&Ud(t,e),t=zo(t,i.children),t.flags|=4096);return t}return o?(rl(),v=i.fallback,o=t.mode,N=e.child,D=N.sibling,i=zn(N,{mode:"hidden",children:i.children}),i.subtreeFlags=N.subtreeFlags&65011712,D!==null?v=zn(D,v):(v=zl(v,o,l,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,ji(null,i),i=t.child,v=e.child.memoizedState,v===null?v=Ao(l):(o=v.cachePool,o!==null?(N=lt._currentValue,o=o.parent!==N?{parent:N,pool:N}:o):o=Kd(),v={baseLanes:v.baseLanes|l,cachePool:o}),i.memoizedState=v,i.childLanes=ko(e,y,l),t.memoizedState=Co,ji(e.child,i)):(il(t),l=e.child,e=l.sibling,l=zn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=l,t.memoizedState=null,l)}function zo(e,t){return t=eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eu(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function Ro(e,t,l){return Bl(t,e.child,null,l),e=zo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lm(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Gs(e.return,t,l)}function _o(e,t,l,i,o,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=l,y.tailMode=o,y.treeForkCount=d)}function am(e,t,l){var i=t.pendingProps,o=i.revealOrder,d=i.tail;i=i.children;var y=tt.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,j(tt,y),yt(e,t,i,l),i=Ae?ci:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lm(e,l,t);else if(e.tag===19)lm(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&Vr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),_o(t,!1,o,l,d,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Vr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}_o(t,!0,l,null,d,i);break;case"together":_o(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ln(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ol|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ha(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=zn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=zn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Oo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mr(e)))}function Yb(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),tl(t,lt,e.memoizedState.cache),Rl();break;case 27:case 5:Ft(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:tl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lo(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(il(t),t.flags|=128,null):(l&t.child.childLanes)!==0?nm(e,t,l):(il(t),e=Ln(e,t,l),e!==null?e.sibling:null);il(t);break;case 19:var o=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(ha(e,t,l,!1),i=(l&t.childLanes)!==0),o){if(i)return am(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),j(tt,tt.current),i)break;return null;case 22:return t.lanes=0,Jh(e,t,l,t.pendingProps);case 24:tl(t,lt,e.memoizedState.cache)}return Ln(e,t,l)}function im(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!Oo(e,l)&&(t.flags&128)===0)return it=!1,Yb(e,t,l);it=(e.flags&131072)!==0}else it=!1,Ae&&(t.flags&1048576)!==0&&Bd(t,ci,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Dl(t.elementType),t.type=e,typeof e=="function")Bs(e)?(i=Hl(e,i),t.tag=1,t=em(null,t,e,i,l)):(t.tag=0,t=To(null,t,e,i,l));else{if(e!=null){var o=e.$$typeof;if(o===ee){t.tag=11,t=Zh(null,t,e,i,l);break e}else if(o===F){t.tag=14,t=$h(null,t,e,i,l);break e}}throw t=ue(e)||e,Error(u(306,t,""))}}return t;case 0:return To(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,o=Hl(i,t.pendingProps),em(e,t,i,o,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var d=t.memoizedState;o=d.element,Ps(e,t),xi(t,i,null,l);var y=t.memoizedState;if(i=y.cache,tl(t,lt,i),i!==d.cache&&Xs(t,[lt],l,!0),yi(),i=y.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=tm(e,t,i,l);break e}else if(i!==o){o=Wt(Error(u(424)),t),fi(o),t=tm(e,t,i,l);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(Xe=an(e.firstChild),pt=t,Ae=!0,Wn=null,nn=!0,l=Jd(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Rl(),i===o){t=Ln(e,t,l);break e}yt(e,t,i,l)}t=t.child}return t;case 26:return Wr(e,t),e===null?(l=gp(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ae||(l=t.type,e=t.pendingProps,i=gu(ce.current).createElement(l),i[mt]=t,i[Tt]=e,xt(i,l,e),ft(i),t.stateNode=i):t.memoizedState=gp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ft(t),e===null&&Ae&&(i=t.stateNode=hp(t.type,t.pendingProps,ce.current),pt=t,nn=!0,o=Xe,ml(t.type)?(dc=o,Xe=an(i.firstChild)):Xe=o),yt(e,t,t.pendingProps.children,l),Wr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((o=i=Xe)&&(i=yv(i,t.type,t.pendingProps,nn),i!==null?(t.stateNode=i,pt=t,Xe=an(i.firstChild),nn=!1,o=!0):o=!1),o||el(t)),Ft(t),o=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,i=d.children,uc(o,d)?i=null:y!==null&&uc(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=io(e,t,_b,null,null,l),Ui._currentValue=o),Wr(e,t),yt(e,t,i,l),t.child;case 6:return e===null&&Ae&&((e=l=Xe)&&(l=xv(l,t.pendingProps,nn),l!==null?(t.stateNode=l,pt=t,Xe=null,e=!0):e=!1),e||el(t)),null;case 13:return nm(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Bl(t,null,i,l):yt(e,t,i,l),t.child;case 11:return Zh(e,t,t.type,t.pendingProps,l);case 7:return yt(e,t,t.pendingProps,l),t.child;case 8:return yt(e,t,t.pendingProps.children,l),t.child;case 12:return yt(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,tl(t,t.type,i.value),yt(e,t,i.children,l),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Ol(t),o=gt(o),i=i(o),t.flags|=1,yt(e,t,i,l),t.child;case 14:return $h(e,t,t.type,t.pendingProps,l);case 15:return Fh(e,t,t.type,t.pendingProps,l);case 19:return am(e,t,l);case 31:return qb(e,t,l);case 22:return Jh(e,t,l,t.pendingProps);case 24:return Ol(t),i=gt(lt),e===null?(o=Fs(),o===null&&(o=Ve,d=Zs(),o.pooledCache=d,d.refCount++,d!==null&&(o.pooledCacheLanes|=l),o=d),t.memoizedState={parent:i,cache:o},Is(t),tl(t,lt,o)):((e.lanes&l)!==0&&(Ps(e,t),xi(t,null,null,l),yi()),o=e.memoizedState,d=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),tl(t,lt,i)):(i=d.cache,tl(t,lt,i),i!==o.cache&&Xs(t,[lt],l,!0))),yt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Bn(e){e.flags|=4}function Mo(e,t,l,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(_m())e.flags|=8192;else throw Ll=Ur,Js}else e.flags&=-16777217}function rm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sp(t))if(_m())e.flags|=8192;else throw Ll=Ur,Js}function tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hf():536870912,e.lanes|=t,Na|=t)}function Ei(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function Vb(e,t,l){var i=t.pendingProps;switch(Ys(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),On(lt),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(da(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qs())),Ze(t),null;case 26:var o=t.type,d=t.memoizedState;return e===null?(Bn(t),d!==null?(Ze(t),rm(t,d)):(Ze(t),Mo(t,o,null,i,l))):d?d!==e.memoizedState?(Bn(t),Ze(t),rm(t,d)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Bn(t),Ze(t),Mo(t,o,e,i,l)),null;case 27:if(En(t),l=ce.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}e=ae.current,da(t)?Hd(t):(e=hp(o,i,l),t.stateNode=e,Bn(t))}return Ze(t),null;case 5:if(En(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}if(d=ae.current,da(t))Hd(t);else{var y=gu(ce.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?y.createElement(o,{is:i.is}):y.createElement(o)}}d[mt]=t,d[Tt]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(xt(d,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Bn(t)}}return Ze(t),Mo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=ce.current,da(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,o=pt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||np(e.nodeValue,l)),e||el(t,!0)}else e=gu(e).createTextNode(i),e[mt]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=da(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[mt]=t}else Rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Qs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=da(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[mt]=t}else Rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Qs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==o&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),tu(t,t.updateQueue),Ze(t),null);case 4:return Le(),e===null&&nc(t.stateNode.containerInfo),Ze(t),null;case 10:return On(t.type),Ze(t),null;case 19:if(Q(tt),i=t.memoizedState,i===null)return Ze(t),null;if(o=(t.flags&128)!==0,d=i.rendering,d===null)if(o)Ei(i,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Vr(e),d!==null){for(t.flags|=128,Ei(i,!1),e=d.updateQueue,t.updateQueue=e,tu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Md(l,e),l=l.sibling;return j(tt,tt.current&1|2),Ae&&Rn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&St()>ru&&(t.flags|=128,o=!0,Ei(i,!1),t.lanes=4194304)}else{if(!o)if(e=Vr(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,tu(t,e),Ei(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ae)return Ze(t),null}else 2*St()-i.renderingStartTime>ru&&l!==536870912&&(t.flags|=128,o=!0,Ei(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=St(),e.sibling=null,l=tt.current,j(tt,o?l&1|2:l&1),Ae&&Rn(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return qt(t),no(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&tu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&Q(Ml),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),On(lt),Ze(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Qb(e,t){switch(Ys(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(lt),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return En(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));Rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(tt),null;case 4:return Le(),null;case 10:return On(t.type),null;case 22:case 23:return qt(t),no(),e!==null&&Q(Ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return On(lt),null;case 25:return null;default:return null}}function um(e,t){switch(Ys(t),t.tag){case 3:On(lt),Le();break;case 26:case 27:case 5:En(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:Q(tt);break;case 10:On(t.type);break;case 22:case 23:qt(t),no(),e!==null&&Q(Ml);break;case 24:On(lt)}}function Ni(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){i=void 0;var d=l.create,y=l.inst;i=d(),y.destroy=i}l=l.next}while(l!==o)}}catch(v){De(t,t.return,v)}}function ul(e,t,l){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&e)===e){var y=i.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,o=t;var N=l,D=v;try{D()}catch(V){De(o,N,V)}}}i=i.next}while(i!==d)}}catch(V){De(t,t.return,V)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Pd(t,l)}catch(i){De(e,e.return,i)}}}function om(e,t,l){l.props=Hl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){De(e,t,i)}}function Ti(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(o){De(e,t,o)}}function xn(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){De(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){De(e,t,o)}else l.current=null}function cm(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(o){De(e,e.return,o)}}function Do(e,t,l){try{var i=e.stateNode;fv(i,e.type,l,t),i[Tt]=t}catch(o){De(e,e.return,o)}}function fm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function Lo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fm(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&&ml(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 Bo(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=An));else if(i!==4&&(i===27&&ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Bo(e,t,l),e=e.sibling;e!==null;)Bo(e,t,l),e=e.sibling}function nu(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(nu(e,t,l),e=e.sibling;e!==null;)nu(e,t,l),e=e.sibling}function dm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xt(t,i,l),t[mt]=e,t[Tt]=l}catch(d){De(e,e.return,d)}}var Un=!1,rt=!1,Uo=!1,hm=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Kb(e,t){if(e=e.containerInfo,ic=ju,e=Nd(e),zs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var y=0,v=-1,N=-1,D=0,V=0,Z=e,B=null;t:for(;;){for(var q;Z!==l||o!==0&&Z.nodeType!==3||(v=y+o),Z!==d||i!==0&&Z.nodeType!==3||(N=y+i),Z.nodeType===3&&(y+=Z.nodeValue.length),(q=Z.firstChild)!==null;)B=Z,Z=q;for(;;){if(Z===e)break t;if(B===l&&++D===o&&(v=y),B===d&&++V===i&&(N=y),(q=Z.nextSibling)!==null)break;Z=B,B=Z.parentNode}Z=q}l=v===-1||N===-1?null:{start:v,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(rc={focusedElem:e,selectionRange:l},ju=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=t,o=d.memoizedProps,d=d.memoizedState,i=l.stateNode;try{var re=Hl(l.type,o);e=i.getSnapshotBeforeUpdate(re,d),i.__reactInternalSnapshotBeforeUpdate=e}catch(de){De(l,l.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)oc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":oc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function mm(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:qn(e,l),i&4&&Ni(5,l);break;case 1:if(qn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){De(l,l.return,y)}else{var o=Hl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){De(l,l.return,y)}}i&64&&sm(l),i&512&&Ti(l,l.return);break;case 3:if(qn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Pd(e,t)}catch(y){De(l,l.return,y)}}break;case 27:t===null&&i&4&&dm(l);case 26:case 5:qn(e,l),t===null&&i&4&&cm(l),i&512&&Ti(l,l.return);break;case 12:qn(e,l);break;case 31:qn(e,l),i&4&&ym(e,l);break;case 13:qn(e,l),i&4&&xm(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Wb.bind(null,l),bv(e,l))));break;case 22:if(i=l.memoizedState!==null||Un,!i){t=t!==null&&t.memoizedState!==null||rt,o=Un;var d=rt;Un=i,(rt=t)&&!d?Yn(e,l,(l.subtreeFlags&8772)!==0):qn(e,l),Un=o,rt=d}break;case 30:break;default:qn(e,l)}}function pm(e){var t=e.alternate;t!==null&&(e.alternate=null,pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hs(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 Fe=null,At=!1;function Hn(e,t,l){for(l=l.child;l!==null;)gm(e,t,l),l=l.sibling}function gm(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(wt,l)}catch{}switch(l.tag){case 26:rt||xn(l,t),Hn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:rt||xn(l,t);var i=Fe,o=At;ml(l.type)&&(Fe=l.stateNode,At=!1),Hn(e,t,l),Di(l.stateNode),Fe=i,At=o;break;case 5:rt||xn(l,t);case 6:if(i=Fe,o=At,Fe=null,Hn(e,t,l),Fe=i,At=o,Fe!==null)if(At)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(l.stateNode)}catch(d){De(l,t,d)}else try{Fe.removeChild(l.stateNode)}catch(d){De(l,t,d)}break;case 18:Fe!==null&&(At?(e=Fe,sp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Oa(e)):sp(Fe,l.stateNode));break;case 4:i=Fe,o=At,Fe=l.stateNode.containerInfo,At=!0,Hn(e,t,l),Fe=i,At=o;break;case 0:case 11:case 14:case 15:ul(2,l,t),rt||ul(4,l,t),Hn(e,t,l);break;case 1:rt||(xn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&om(l,t,i)),Hn(e,t,l);break;case 21:Hn(e,t,l);break;case 22:rt=(i=rt)||l.memoizedState!==null,Hn(e,t,l),rt=i;break;default:Hn(e,t,l)}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(l){De(t,t.return,l)}}}function xm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(l){De(t,t.return,l)}}function Gb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hm),t;default:throw Error(u(435,e.tag))}}function lu(e,t){var l=Gb(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var o=ev.bind(null,e,i);i.then(o,o)}})}function kt(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],d=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(ml(v.type)){Fe=v.stateNode,At=!1;break e}break;case 5:Fe=v.stateNode,At=!1;break e;case 3:case 4:Fe=v.stateNode.containerInfo,At=!0;break e}v=v.return}if(Fe===null)throw Error(u(160));gm(d,y,o),Fe=null,At=!1,d=o.alternate,d!==null&&(d.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bm(t,e),t=t.sibling}var dn=null;function bm(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),zt(e),i&4&&(ul(3,e,e.return),Ni(3,e),ul(5,e,e.return));break;case 1:kt(t,e),zt(e),i&512&&(rt||l===null||xn(l,l.return)),i&64&&Un&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=dn;if(kt(t,e),zt(e),i&512&&(rt||l===null||xn(l,l.return)),i&4){var d=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":d=o.getElementsByTagName("title")[0],(!d||d[Wa]||d[mt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=o.createElement(i),o.head.insertBefore(d,o.querySelector("head > title"))),xt(d,i,l),d[mt]=e,ft(d),i=d;break e;case"link":var y=bp("link","href",o).get(i+(l.href||""));if(y){for(var v=0;v<y.length;v++)if(d=y[v],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){y.splice(v,1);break t}}d=o.createElement(i),xt(d,i,l),o.head.appendChild(d);break;case"meta":if(y=bp("meta","content",o).get(i+(l.content||""))){for(v=0;v<y.length;v++)if(d=y[v],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){y.splice(v,1);break t}}d=o.createElement(i),xt(d,i,l),o.head.appendChild(d);break;default:throw Error(u(468,i))}d[mt]=e,ft(d),i=d}e.stateNode=i}else vp(o,e.type,e.stateNode);else e.stateNode=xp(o,i,e.memoizedProps);else d!==i?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,i===null?vp(o,e.type,e.stateNode):xp(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Do(e,e.memoizedProps,l.memoizedProps)}break;case 27:kt(t,e),zt(e),i&512&&(rt||l===null||xn(l,l.return)),l!==null&&i&4&&Do(e,e.memoizedProps,l.memoizedProps);break;case 5:if(kt(t,e),zt(e),i&512&&(rt||l===null||xn(l,l.return)),e.flags&32){o=e.stateNode;try{na(o,"")}catch(re){De(e,e.return,re)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Do(e,o,l!==null?l.memoizedProps:o)),i&1024&&(Uo=!0);break;case 6:if(kt(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(re){De(e,e.return,re)}}break;case 3:if(bu=null,o=dn,dn=yu(t.containerInfo),kt(t,e),dn=o,zt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(re){De(e,e.return,re)}Uo&&(Uo=!1,vm(e));break;case 4:i=dn,dn=yu(e.stateNode.containerInfo),kt(t,e),zt(e),dn=i;break;case 12:kt(t,e),zt(e);break;case 31:kt(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lu(e,i)));break;case 13:kt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(iu=St()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lu(e,i)));break;case 22:o=e.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,D=Un,V=rt;if(Un=D||o,rt=V||N,kt(t,e),rt=V,Un=D,zt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||N||Un||rt||ql(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){N=l=t;try{if(d=N.stateNode,o)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=N.stateNode;var Z=N.memoizedProps.style,B=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(re){De(N,N.return,re)}}}else if(t.tag===6){if(l===null){N=t;try{N.stateNode.nodeValue=o?"":N.memoizedProps}catch(re){De(N,N.return,re)}}}else if(t.tag===18){if(l===null){N=t;try{var q=N.stateNode;o?op(q,!0):op(N.stateNode,!1)}catch(re){De(N,N.return,re)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,lu(e,l))));break;case 19:kt(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lu(e,i)));break;case 30:break;case 21:break;default:kt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(fm(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,d=Lo(e);nu(e,d,o);break;case 5:var y=l.stateNode;l.flags&32&&(na(y,""),l.flags&=-33);var v=Lo(e);nu(e,v,y);break;case 3:case 4:var N=l.stateNode.containerInfo,D=Lo(e);Bo(e,D,N);break;default:throw Error(u(161))}}catch(V){De(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mm(e,t.alternate,t),t=t.sibling}function ql(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),ql(t);break;case 1:xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&om(t,t.return,l),ql(t);break;case 27:Di(t.stateNode);case 26:case 5:xn(t,t.return),ql(t);break;case 22:t.memoizedState===null&&ql(t);break;case 30:ql(t);break;default:ql(t)}e=e.sibling}}function Yn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Yn(o,d,l),Ni(4,d);break;case 1:if(Yn(o,d,l),i=d,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){De(i,i.return,D)}if(i=d,o=i.updateQueue,o!==null){var v=i.stateNode;try{var N=o.shared.hiddenCallbacks;if(N!==null)for(o.shared.hiddenCallbacks=null,o=0;o<N.length;o++)Id(N[o],v)}catch(D){De(i,i.return,D)}}l&&y&64&&sm(d),Ti(d,d.return);break;case 27:dm(d);case 26:case 5:Yn(o,d,l),l&&i===null&&y&4&&cm(d),Ti(d,d.return);break;case 12:Yn(o,d,l);break;case 31:Yn(o,d,l),l&&y&4&&ym(o,d);break;case 13:Yn(o,d,l),l&&y&4&&xm(o,d);break;case 22:d.memoizedState===null&&Yn(o,d,l),Ti(d,d.return);break;case 30:break;default:Yn(o,d,l)}t=t.sibling}}function Ho(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&di(l))}function qo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&di(e))}function hn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sm(e,t,l,i),t=t.sibling}function Sm(e,t,l,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:hn(e,t,l,i),o&2048&&Ni(9,t);break;case 1:hn(e,t,l,i);break;case 3:hn(e,t,l,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&di(e)));break;case 12:if(o&2048){hn(e,t,l,i),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,v=d.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){De(t,t.return,N)}}else hn(e,t,l,i);break;case 31:hn(e,t,l,i);break;case 13:hn(e,t,l,i);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?hn(e,t,l,i):Ci(e,t):d._visibility&2?hn(e,t,l,i):(d._visibility|=2,wa(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ho(y,t);break;case 24:hn(e,t,l,i),o&2048&&qo(t.alternate,t);break;default:hn(e,t,l,i)}}function wa(e,t,l,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,v=l,N=i,D=y.flags;switch(y.tag){case 0:case 11:case 15:wa(d,y,v,N,o),Ni(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?wa(d,y,v,N,o):Ci(d,y):(V._visibility|=2,wa(d,y,v,N,o)),o&&D&2048&&Ho(y.alternate,y);break;case 24:wa(d,y,v,N,o),o&&D&2048&&qo(y.alternate,y);break;default:wa(d,y,v,N,o)}t=t.sibling}}function Ci(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,o=i.flags;switch(i.tag){case 22:Ci(l,i),o&2048&&Ho(i.alternate,i);break;case 24:Ci(l,i),o&2048&&qo(i.alternate,i);break;default:Ci(l,i)}t=t.sibling}}var Ai=8192;function ja(e,t,l){if(e.subtreeFlags&Ai)for(e=e.child;e!==null;)wm(e,t,l),e=e.sibling}function wm(e,t,l){switch(e.tag){case 26:ja(e,t,l),e.flags&Ai&&e.memoizedState!==null&&Rv(l,dn,e.memoizedState,e.memoizedProps);break;case 5:ja(e,t,l);break;case 3:case 4:var i=dn;dn=yu(e.stateNode.containerInfo),ja(e,t,l),dn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ai,Ai=16777216,ja(e,t,l),Ai=i):ja(e,t,l));break;default:ja(e,t,l)}}function jm(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 ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,Nm(i,e)}jm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Em(e),e=e.sibling}function Em(e){switch(e.tag){case 0:case 11:case 15:ki(e),e.flags&2048&&ul(9,e,e.return);break;case 3:ki(e);break;case 12:ki(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,au(e)):ki(e);break;default:ki(e)}}function au(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,Nm(i,e)}jm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ul(8,t,t.return),au(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,au(t));break;default:au(t)}e=e.sibling}}function Nm(e,t){for(;dt!==null;){var l=dt;switch(l.tag){case 0:case 11:case 15:ul(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:di(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,dt=i;else e:for(l=e;dt!==null;){i=dt;var o=i.sibling,d=i.return;if(pm(i),i===l){dt=null;break e}if(o!==null){o.return=d,dt=o;break e}dt=d}}}var Xb={getCacheForType:function(e){var t=gt(lt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return gt(lt).controller.signal}},Zb=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ve=null,je=null,Te=0,Me=0,Yt=null,sl=!1,Ea=!1,Yo=!1,Vn=0,et=0,ol=0,Yl=0,Vo=0,Vt=0,Na=0,zi=null,Rt=null,Qo=!1,iu=0,Tm=0,ru=1/0,uu=null,cl=null,ct=0,fl=null,Ta=null,Qn=0,Ko=0,Go=null,Cm=null,Ri=0,Xo=null;function Qt(){return(Re&2)!==0&&Te!==0?Te&-Te:O.T!==null?Po():Qf()}function Am(){if(Vt===0)if((Te&536870912)===0||Ae){var e=pr;pr<<=1,(pr&3932160)===0&&(pr=262144),Vt=e}else Vt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Vt}function _t(e,t,l){(e===Ve&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Ca(e,0),dl(e,Te,Vt,!1)),Pa(e,l),((Re&2)===0||e!==Ve)&&(e===Ve&&((Re&2)===0&&(Yl|=l),et===4&&dl(e,Te,Vt,!1)),bn(e))}function km(e,t,l){if((Re&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ia(e,t),o=i?Jb(e,t):$o(e,t,!0),d=i;do{if(o===0){Ea&&!i&&dl(e,t,0,!1);break}else{if(l=e.current.alternate,d&&!$b(l)){o=$o(e,t,!1),d=!1;continue}if(o===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;o=zi;var N=v.current.memoizedState.isDehydrated;if(N&&(Ca(v,y).flags|=256),y=$o(v,y,!1),y!==2){if(Yo&&!N){v.errorRecoveryDisabledLanes|=d,Yl|=d,o=4;break e}d=Rt,Rt=o,d!==null&&(Rt===null?Rt=d:Rt.push.apply(Rt,d))}o=y}if(d=!1,o!==2)continue}}if(o===1){Ca(e,0),dl(e,t,0,!0);break}e:{switch(i=e,d=o,d){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:dl(i,t,Vt,!sl);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=iu+300-St(),10<o)){if(dl(i,t,Vt,!sl),yr(i,0,!0)!==0)break e;Qn=t,i.timeoutHandle=rp(zm.bind(null,i,l,Rt,uu,Qo,t,Vt,Yl,Na,sl,d,"Throttled",-0,0),o);break e}zm(i,l,Rt,uu,Qo,t,Vt,Yl,Na,sl,d,null,-0,0)}}break}while(!0);bn(e)}function zm(e,t,l,i,o,d,y,v,N,D,V,Z,B,q){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:An},wm(t,d,Z);var re=(d&62914560)===d?iu-St():(d&4194048)===d?Tm-St():0;if(re=_v(Z,re),re!==null){Qn=d,e.cancelPendingCommit=re(Um.bind(null,e,t,d,l,i,o,y,v,N,V,Z,null,B,q)),dl(e,d,y,!D);return}}Um(e,t,d,l,i,o,y,v,N)}function $b(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var o=l[i],d=o.getSnapshot;o=o.value;try{if(!Bt(d(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 dl(e,t,l,i){t&=~Vo,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var d=31-Ye(o),y=1<<d;i[d]=-1,o&=~y}l!==0&&qf(e,l,t)}function su(){return(Re&6)===0?(_i(0),!1):!0}function Zo(){if(je!==null){if(Me===0)var e=je.return;else e=je,_n=_l=null,so(e),ya=null,mi=0,e=je;for(;e!==null;)um(e.alternate,e),e=e.return;je=null}}function Ca(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,mv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Qn=0,Zo(),Ve=e,je=l=zn(e.current,null),Te=t,Me=0,Yt=null,sl=!1,Ea=Ia(e,t),Yo=!1,Na=Vt=Vo=Yl=ol=et=0,Rt=zi=null,Qo=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Ye(i),d=1<<o;t|=e[o],i&=~d}return Vn=t,kr(),l}function Rm(e,t){be=null,O.H=wi,t===ga||t===Br?(t=Zd(),Me=3):t===Js?(t=Zd(),Me=4):Me=t===No?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,je===null&&(et=1,Ir(e,Wt(t,e.current)))}function _m(){var e=Ht.current;return e===null?!0:(Te&4194048)===Te?ln===null:(Te&62914560)===Te||(Te&536870912)!==0?e===ln:!1}function Om(){var e=O.H;return O.H=wi,e===null?wi:e}function Mm(){var e=O.A;return O.A=Xb,e}function ou(){et=4,sl||(Te&4194048)!==Te&&Ht.current!==null||(Ea=!0),(ol&134217727)===0&&(Yl&134217727)===0||Ve===null||dl(Ve,Te,Vt,!1)}function $o(e,t,l){var i=Re;Re|=2;var o=Om(),d=Mm();(Ve!==e||Te!==t)&&(uu=null,Ca(e,t)),t=!1;var y=et;e:do try{if(Me!==0&&je!==null){var v=je,N=Yt;switch(Me){case 8:Zo(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var D=Me;if(Me=0,Yt=null,Aa(e,v,N,D),l&&Ea){y=0;break e}break;default:D=Me,Me=0,Yt=null,Aa(e,v,N,D)}}Fb(),y=et;break}catch(V){Rm(e,V)}while(!0);return t&&e.shellSuspendCounter++,_n=_l=null,Re=i,O.H=o,O.A=d,je===null&&(Ve=null,Te=0,kr()),y}function Fb(){for(;je!==null;)Dm(je)}function Jb(e,t){var l=Re;Re|=2;var i=Om(),o=Mm();Ve!==e||Te!==t?(uu=null,ru=St()+500,Ca(e,t)):Ea=Ia(e,t);e:do try{if(Me!==0&&je!==null){t=je;var d=Yt;t:switch(Me){case 1:Me=0,Yt=null,Aa(e,t,d,1);break;case 2:case 9:if(Gd(d)){Me=0,Yt=null,Lm(t);break}t=function(){Me!==2&&Me!==9||Ve!==e||(Me=7),bn(e)},d.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Gd(d)?(Me=0,Yt=null,Lm(t)):(Me=0,Yt=null,Aa(e,t,d,7));break;case 5:var y=null;switch(je.tag){case 26:y=je.memoizedState;case 5:case 27:var v=je;if(y?Sp(y):v.stateNode.complete){Me=0,Yt=null;var N=v.sibling;if(N!==null)je=N;else{var D=v.return;D!==null?(je=D,cu(D)):je=null}break t}}Me=0,Yt=null,Aa(e,t,d,5);break;case 6:Me=0,Yt=null,Aa(e,t,d,6);break;case 8:Zo(),et=6;break e;default:throw Error(u(462))}}Ib();break}catch(V){Rm(e,V)}while(!0);return _n=_l=null,O.H=i,O.A=o,Re=l,je!==null?0:(Ve=null,Te=0,kr(),et)}function Ib(){for(;je!==null&&!rs();)Dm(je)}function Dm(e){var t=im(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?cu(e):je=t}function Lm(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Wh(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Wh(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:so(t);default:um(l,t),t=je=Md(t,Vn),t=im(l,t,Vn)}e.memoizedProps=e.pendingProps,t===null?cu(e):je=t}function Aa(e,t,l,i){_n=_l=null,so(t),ya=null,mi=0;var o=t.return;try{if(Hb(e,o,t,l,Te)){et=1,Ir(e,Wt(l,e.current)),je=null;return}}catch(d){if(o!==null)throw je=o,d;et=1,Ir(e,Wt(l,e.current)),je=null;return}t.flags&32768?(Ae||i===1?e=!0:Ea||(Te&536870912)!==0?e=!1:(sl=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),Bm(t,e)):cu(t)}function cu(e){var t=e;do{if((t.flags&32768)!==0){Bm(t,sl);return}e=t.return;var l=Vb(t.alternate,t,Vn);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);et===0&&(et=5)}function Bm(e,t){do{var l=Qb(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);et=6,je=null}function Um(e,t,l,i,o,d,y,v,N){e.cancelPendingCommit=null;do fu();while(ct!==0);if((Re&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(d=t.lanes|t.childLanes,d|=Ds,zx(e,l,d,y,v,N),e===Ve&&(je=Ve=null,Te=0),Ta=t,fl=e,Qn=l,Ko=d,Go=o,Cm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tv(me,function(){return Qm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,o=J.p,J.p=2,y=Re,Re|=4;try{Kb(e,t,l)}finally{Re=y,J.p=o,O.T=i}}ct=1,Hm(),qm(),Ym()}}function Hm(){if(ct===1){ct=0;var e=fl,t=Ta,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var i=J.p;J.p=2;var o=Re;Re|=4;try{bm(t,e);var d=rc,y=Nd(e.containerInfo),v=d.focusedElem,N=d.selectionRange;if(y!==v&&v&&v.ownerDocument&&Ed(v.ownerDocument.documentElement,v)){if(N!==null&&zs(v)){var D=N.start,V=N.end;if(V===void 0&&(V=D),"selectionStart"in v)v.selectionStart=D,v.selectionEnd=Math.min(V,v.value.length);else{var Z=v.ownerDocument||document,B=Z&&Z.defaultView||window;if(B.getSelection){var q=B.getSelection(),re=v.textContent.length,de=Math.min(N.start,re),He=N.end===void 0?de:Math.min(N.end,re);!q.extend&&de>He&&(y=He,He=de,de=y);var _=jd(v,de),A=jd(v,He);if(_&&A&&(q.rangeCount!==1||q.anchorNode!==_.node||q.anchorOffset!==_.offset||q.focusNode!==A.node||q.focusOffset!==A.offset)){var M=Z.createRange();M.setStart(_.node,_.offset),q.removeAllRanges(),de>He?(q.addRange(M),q.extend(A.node,A.offset)):(M.setEnd(A.node,A.offset),q.addRange(M))}}}}for(Z=[],q=v;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Z.length;v++){var G=Z[v];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}ju=!!ic,rc=ic=null}finally{Re=o,J.p=i,O.T=l}}e.current=t,ct=2}}function qm(){if(ct===2){ct=0;var e=fl,t=Ta,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var i=J.p;J.p=2;var o=Re;Re|=4;try{mm(e,t.alternate,t)}finally{Re=o,J.p=i,O.T=l}}ct=3}}function Ym(){if(ct===4||ct===3){ct=0,us();var e=fl,t=Ta,l=Qn,i=Cm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,Ta=fl=null,Vm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(cl=null),fs(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(wt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,o=J.p,J.p=2,O.T=null;try{for(var d=e.onRecoverableError,y=0;y<i.length;y++){var v=i[y];d(v.value,{componentStack:v.stack})}}finally{O.T=t,J.p=o}}(Qn&3)!==0&&fu(),bn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Xo?Ri++:(Ri=0,Xo=e):Ri=0,_i(0)}}function Vm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,di(t)))}function fu(){return Hm(),qm(),Ym(),Qm()}function Qm(){if(ct!==5)return!1;var e=fl,t=Ko;Ko=0;var l=fs(Qn),i=O.T,o=J.p;try{J.p=32>l?32:l,O.T=null,l=Go,Go=null;var d=fl,y=Qn;if(ct=0,Ta=fl=null,Qn=0,(Re&6)!==0)throw Error(u(331));var v=Re;if(Re|=4,Em(d.current),Sm(d,d.current,y,l),Re=v,_i(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(wt,d)}catch{}return!0}finally{J.p=o,O.T=i,Vm(e,t)}}function Km(e,t,l){t=Wt(l,t),t=Eo(e.stateNode,t,2),e=al(e,t,2),e!==null&&(Pa(e,2),bn(e))}function De(e,t,l){if(e.tag===3)Km(e,e,l);else for(;t!==null;){if(t.tag===3){Km(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(cl===null||!cl.has(i))){e=Wt(l,e),l=Gh(2),i=al(t,l,2),i!==null&&(Xh(l,i,t,e),Pa(i,2),bn(i));break}}t=t.return}}function Fo(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new Zb;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(l)||(Yo=!0,o.add(l),e=Pb.bind(null,e,t,l),t.then(e,e))}function Pb(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ve===e&&(Te&l)===l&&(et===4||et===3&&(Te&62914560)===Te&&300>St()-iu?(Re&2)===0&&Ca(e,0):Vo|=l,Na===Te&&(Na=0)),bn(e)}function Gm(e,t){t===0&&(t=Hf()),e=kl(e,t),e!==null&&(Pa(e,t),bn(e))}function Wb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gm(e,l)}function ev(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Gm(e,l)}function tv(e,t){return Fl(e,t)}var du=null,ka=null,Jo=!1,hu=!1,Io=!1,hl=0;function bn(e){e!==ka&&e.next===null&&(ka===null?du=ka=e:ka=ka.next=e),hu=!0,Jo||(Jo=!0,lv())}function _i(e,t){if(!Io&&hu){Io=!0;do for(var l=!1,i=du;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var d=0;else{var y=i.suspendedLanes,v=i.pingedLanes;d=(1<<31-Ye(42|e)+1)-1,d&=o&~(y&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,Fm(i,d))}else d=Te,d=yr(i,i===Ve?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||Ia(i,d)||(l=!0,Fm(i,d));i=i.next}while(l);Io=!1}}function nv(){Xm()}function Xm(){hu=Jo=!1;var e=0;hl!==0&&hv()&&(e=hl);for(var t=St(),l=null,i=du;i!==null;){var o=i.next,d=Zm(i,t);d===0?(i.next=null,l===null?du=o:l.next=o,o===null&&(ka=l)):(l=i,(e!==0||(d&3)!==0)&&(hu=!0)),i=o}ct!==0&&ct!==5||_i(e),hl!==0&&(hl=0)}function Zm(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-Ye(d),v=1<<y,N=o[y];N===-1?((v&l)===0||(v&i)!==0)&&(o[y]=kx(v,t)):N<=t&&(e.expiredLanes|=v),d&=~v}if(t=Ve,l=Te,l=yr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ja(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ia(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Ja(i),fs(l)){case 2:case 8:l=ne;break;case 32:l=me;break;case 268435456:l=Oe;break;default:l=me}return i=$m.bind(null,e),l=Fl(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Ja(i),e.callbackPriority=2,e.callbackNode=null,2}function $m(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(fu()&&e.callbackNode!==l)return null;var i=Te;return i=yr(e,e===Ve?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(km(e,i,t),Zm(e,St()),e.callbackNode!=null&&e.callbackNode===l?$m.bind(null,e):null)}function Fm(e,t){if(fu())return null;km(e,t,!0)}function lv(){pv(function(){(Re&6)!==0?Fl(K,nv):Xm()})}function Po(){if(hl===0){var e=ma;e===0&&(e=mr,mr<<=1,(mr&261888)===0&&(mr=256)),hl=e}return hl}function Jm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Sr(""+e)}function Im(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function av(e,t,l,i,o){if(t==="submit"&&l&&l.stateNode===o){var d=Jm((o[Tt]||null).action),y=i.submitter;y&&(t=(t=y[Tt]||null)?Jm(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var v=new Nr("action","action",null,i,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(hl!==0){var N=y?Im(o,y):new FormData(o);xo(l,{pending:!0,data:N,method:o.method,action:d},null,N)}}else typeof d=="function"&&(v.preventDefault(),N=y?Im(o,y):new FormData(o),xo(l,{pending:!0,data:N,method:o.method,action:d},d,N))},currentTarget:o}]})}}for(var Wo=0;Wo<Ms.length;Wo++){var ec=Ms[Wo],iv=ec.toLowerCase(),rv=ec[0].toUpperCase()+ec.slice(1);fn(iv,"on"+rv)}fn(Ad,"onAnimationEnd"),fn(kd,"onAnimationIteration"),fn(zd,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(wb,"onTransitionRun"),fn(jb,"onTransitionStart"),fn(Eb,"onTransitionCancel"),fn(Rd,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),Nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),uv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function Pm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],o=i.event;i=i.listeners;e:{var d=void 0;if(t)for(var y=i.length-1;0<=y;y--){var v=i[y],N=v.instance,D=v.currentTarget;if(v=v.listener,N!==d&&o.isPropagationStopped())break e;d=v,o.currentTarget=D;try{d(o)}catch(V){Ar(V)}o.currentTarget=null,d=N}else for(y=0;y<i.length;y++){if(v=i[y],N=v.instance,D=v.currentTarget,v=v.listener,N!==d&&o.isPropagationStopped())break e;d=v,o.currentTarget=D;try{d(o)}catch(V){Ar(V)}o.currentTarget=null,d=N}}}}function Ee(e,t){var l=t[ds];l===void 0&&(l=t[ds]=new Set);var i=e+"__bubble";l.has(i)||(Wm(t,e,2,!1),l.add(i))}function tc(e,t,l){var i=0;t&&(i|=4),Wm(l,e,i,t)}var mu="_reactListening"+Math.random().toString(36).slice(2);function nc(e){if(!e[mu]){e[mu]=!0,Xf.forEach(function(l){l!=="selectionchange"&&(uv.has(l)||tc(l,!1,e),tc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mu]||(t[mu]=!0,tc("selectionchange",!1,t))}}function Wm(e,t,l,i){switch(Ap(t)){case 2:var o=Dv;break;case 8:o=Lv;break;default:o=yc}l=o.bind(null,t,l,e),o=void 0,!Ss||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function lc(e,t,l,i,o){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var v=i.stateNode.containerInfo;if(v===o)break;if(y===4)for(y=i.return;y!==null;){var N=y.tag;if((N===3||N===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;v!==null;){if(y=Il(v),y===null)return;if(N=y.tag,N===5||N===6||N===26||N===27){i=d=y;continue e}v=v.parentNode}}i=i.return}ad(function(){var D=d,V=bs(l),Z=[];e:{var B=_d.get(e);if(B!==void 0){var q=Nr,re=e;switch(e){case"keypress":if(jr(l)===0)break e;case"keydown":case"keyup":q=eb;break;case"focusin":re="focus",q=Ns;break;case"focusout":re="blur",q=Ns;break;case"beforeblur":case"afterblur":q=Ns;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Vx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=lb;break;case Ad:case kd:case zd:q=Gx;break;case Rd:q=ib;break;case"scroll":case"scrollend":q=qx;break;case"wheel":q=ub;break;case"copy":case"cut":case"paste":q=Zx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=od;break;case"toggle":case"beforetoggle":q=ob}var de=(t&4)!==0,He=!de&&(e==="scroll"||e==="scrollend"),_=de?B!==null?B+"Capture":null:B;de=[];for(var A=D,M;A!==null;){var G=A;if(M=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||M===null||_===null||(G=ti(A,_),G!=null&&de.push(Mi(A,G,M))),He)break;A=A.return}0<de.length&&(B=new q(B,re,null,l,V),Z.push({event:B,listeners:de}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",B&&l!==xs&&(re=l.relatedTarget||l.fromElement)&&(Il(re)||re[Jl]))break e;if((q||B)&&(B=V.window===V?V:(B=V.ownerDocument)?B.defaultView||B.parentWindow:window,q?(re=l.relatedTarget||l.toElement,q=D,re=re?Il(re):null,re!==null&&(He=c(re),de=re.tag,re!==He||de!==5&&de!==27&&de!==6)&&(re=null)):(q=null,re=D),q!==re)){if(de=ud,G="onMouseLeave",_="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(de=od,G="onPointerLeave",_="onPointerEnter",A="pointer"),He=q==null?B:ei(q),M=re==null?B:ei(re),B=new de(G,A+"leave",q,l,V),B.target=He,B.relatedTarget=M,G=null,Il(V)===D&&(de=new de(_,A+"enter",re,l,V),de.target=M,de.relatedTarget=He,G=de),He=G,q&&re)t:{for(de=sv,_=q,A=re,M=0,G=_;G;G=de(G))M++;G=0;for(var fe=A;fe;fe=de(fe))G++;for(;0<M-G;)_=de(_),M--;for(;0<G-M;)A=de(A),G--;for(;M--;){if(_===A||A!==null&&_===A.alternate){de=_;break t}_=de(_),A=de(A)}de=null}else de=null;q!==null&&ep(Z,B,q,de,!1),re!==null&&He!==null&&ep(Z,He,re,de,!0)}}e:{if(B=D?ei(D):window,q=B.nodeName&&B.nodeName.toLowerCase(),q==="select"||q==="input"&&B.type==="file")var ke=yd;else if(pd(B))if(xd)ke=bb;else{ke=yb;var se=gb}else q=B.nodeName,!q||q.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?D&&ys(D.elementType)&&(ke=yd):ke=xb;if(ke&&(ke=ke(e,D))){gd(Z,ke,l,V);break e}se&&se(e,B,D),e==="focusout"&&D&&B.type==="number"&&D.memoizedProps.value!=null&&gs(B,"number",B.value)}switch(se=D?ei(D):window,e){case"focusin":(pd(se)||se.contentEditable==="true")&&(ra=se,Rs=D,oi=null);break;case"focusout":oi=Rs=ra=null;break;case"mousedown":_s=!0;break;case"contextmenu":case"mouseup":case"dragend":_s=!1,Td(Z,l,V);break;case"selectionchange":if(Sb)break;case"keydown":case"keyup":Td(Z,l,V)}var ve;if(Cs)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else ia?hd(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(cd&&l.locale!=="ko"&&(ia||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&ia&&(ve=id()):(In=V,ws="value"in In?In.value:In.textContent,ia=!0)),se=pu(D,Ce),0<se.length&&(Ce=new sd(Ce,e,null,l,V),Z.push({event:Ce,listeners:se}),ve?Ce.data=ve:(ve=md(l),ve!==null&&(Ce.data=ve)))),(ve=fb?db(e,l):hb(e,l))&&(Ce=pu(D,"onBeforeInput"),0<Ce.length&&(se=new sd("onBeforeInput","beforeinput",null,l,V),Z.push({event:se,listeners:Ce}),se.data=ve)),av(Z,e,D,l,V)}Pm(Z,t)})}function Mi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function pu(e,t){for(var l=t+"Capture",i=[];e!==null;){var o=e,d=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||d===null||(o=ti(e,l),o!=null&&i.unshift(Mi(e,o,d)),o=ti(e,t),o!=null&&i.push(Mi(e,o,d))),e.tag===3)return i;e=e.return}return[]}function sv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ep(e,t,l,i,o){for(var d=t._reactName,y=[];l!==null&&l!==i;){var v=l,N=v.alternate,D=v.stateNode;if(v=v.tag,N!==null&&N===i)break;v!==5&&v!==26&&v!==27||D===null||(N=D,o?(D=ti(l,d),D!=null&&y.unshift(Mi(l,D,N))):o||(D=ti(l,d),D!=null&&y.push(Mi(l,D,N)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var ov=/\r\n?/g,cv=/\u0000|\uFFFD/g;function tp(e){return(typeof e=="string"?e:""+e).replace(ov,`
|
|
49
|
+
`).replace(cv,"")}function np(e,t){return t=tp(t),tp(e)===t}function Ue(e,t,l,i,o,d){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||na(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&na(e,""+i);break;case"className":br(e,"class",i);break;case"tabIndex":br(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":br(e,l,i);break;case"style":nd(e,i,d);break;case"data":if(t!=="object"){br(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Sr(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"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 d=="function"&&(l==="formAction"?(t!=="input"&&Ue(e,t,"name",o.name,o,null),Ue(e,t,"formEncType",o.formEncType,o,null),Ue(e,t,"formMethod",o.formMethod,o,null),Ue(e,t,"formTarget",o.formTarget,o,null)):(Ue(e,t,"encType",o.encType,o,null),Ue(e,t,"method",o.method,o,null),Ue(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Sr(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=An);break;case"onScroll":i!=null&&Ee("scroll",e);break;case"onScrollEnd":i!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Sr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),xr(e,"popover",i);break;case"xlinkActuate":Cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Cn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Cn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Cn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Cn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":xr(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ux.get(l)||l,xr(e,l,i))}}function ac(e,t,l,i,o,d){switch(l){case"style":nd(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?na(e,i):(typeof i=="number"||typeof i=="bigint")&&na(e,""+i);break;case"onScroll":i!=null&&Ee("scroll",e);break;case"onScrollEnd":i!=null&&Ee("scrollend",e);break;case"onClick":i!=null&&(e.onclick=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),d=e[Tt]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(t,d,o),typeof i=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,o);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):xr(e,l,i)}}}function xt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var i=!1,o=!1,d;for(d in l)if(l.hasOwnProperty(d)){var y=l[d];if(y!=null)switch(d){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,d,y,l,null)}}o&&Ue(e,t,"srcSet",l.srcSet,l,null),i&&Ue(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var v=d=y=o=null,N=null,D=null;for(i in l)if(l.hasOwnProperty(i)){var V=l[i];if(V!=null)switch(i){case"name":o=V;break;case"type":y=V;break;case"checked":N=V;break;case"defaultChecked":D=V;break;case"value":d=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:Ue(e,t,i,V,l,null)}}Pf(e,d,v,N,D,y,o,!1);return;case"select":Ee("invalid",e),i=y=d=null;for(o in l)if(l.hasOwnProperty(o)&&(v=l[o],v!=null))switch(o){case"value":d=v;break;case"defaultValue":y=v;break;case"multiple":i=v;default:Ue(e,t,o,v,l,null)}t=d,l=y,e.multiple=!!i,t!=null?ta(e,!!i,t,!1):l!=null&&ta(e,!!i,l,!0);return;case"textarea":Ee("invalid",e),d=o=i=null;for(y in l)if(l.hasOwnProperty(y)&&(v=l[y],v!=null))switch(y){case"value":i=v;break;case"defaultValue":o=v;break;case"children":d=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ue(e,t,y,v,l,null)}ed(e,i,o,d);return;case"option":for(N in l)if(l.hasOwnProperty(N)&&(i=l[N],i!=null))switch(N){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ue(e,t,N,i,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(i=0;i<Oi.length;i++)Ee(Oi[i],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(D in l)if(l.hasOwnProperty(D)&&(i=l[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,D,i,l,null)}return;default:if(ys(t)){for(V in l)l.hasOwnProperty(V)&&(i=l[V],i!==void 0&&ac(e,t,V,i,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(i=l[v],i!=null&&Ue(e,t,v,i,l,null))}function fv(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,d=null,y=null,v=null,N=null,D=null,V=null;for(q in l){var Z=l[q];if(l.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=Z;default:i.hasOwnProperty(q)||Ue(e,t,q,null,i,Z)}}for(var B in i){var q=i[B];if(Z=l[B],i.hasOwnProperty(B)&&(q!=null||Z!=null))switch(B){case"type":d=q;break;case"name":o=q;break;case"checked":D=q;break;case"defaultChecked":V=q;break;case"value":y=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==Z&&Ue(e,t,B,q,i,Z)}}ps(e,y,v,N,D,V,d,o);return;case"select":q=y=v=B=null;for(d in l)if(N=l[d],l.hasOwnProperty(d)&&N!=null)switch(d){case"value":break;case"multiple":q=N;default:i.hasOwnProperty(d)||Ue(e,t,d,null,i,N)}for(o in i)if(d=i[o],N=l[o],i.hasOwnProperty(o)&&(d!=null||N!=null))switch(o){case"value":B=d;break;case"defaultValue":v=d;break;case"multiple":y=d;default:d!==N&&Ue(e,t,o,d,i,N)}t=v,l=y,i=q,B!=null?ta(e,!!l,B,!1):!!i!=!!l&&(t!=null?ta(e,!!l,t,!0):ta(e,!!l,l?[]:"",!1));return;case"textarea":q=B=null;for(v in l)if(o=l[v],l.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,i,o)}for(y in i)if(o=i[y],d=l[y],i.hasOwnProperty(y)&&(o!=null||d!=null))switch(y){case"value":B=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==d&&Ue(e,t,y,o,i,d)}Wf(e,B,q);return;case"option":for(var re in l)if(B=l[re],l.hasOwnProperty(re)&&B!=null&&!i.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ue(e,t,re,null,i,B)}for(N in i)if(B=i[N],q=l[N],i.hasOwnProperty(N)&&B!==q&&(B!=null||q!=null))switch(N){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ue(e,t,N,B,i,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in l)B=l[de],l.hasOwnProperty(de)&&B!=null&&!i.hasOwnProperty(de)&&Ue(e,t,de,null,i,B);for(D in i)if(B=i[D],q=l[D],i.hasOwnProperty(D)&&B!==q&&(B!=null||q!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Ue(e,t,D,B,i,q)}return;default:if(ys(t)){for(var He in l)B=l[He],l.hasOwnProperty(He)&&B!==void 0&&!i.hasOwnProperty(He)&&ac(e,t,He,void 0,i,B);for(V in i)B=i[V],q=l[V],!i.hasOwnProperty(V)||B===q||B===void 0&&q===void 0||ac(e,t,V,B,i,q);return}}for(var _ in l)B=l[_],l.hasOwnProperty(_)&&B!=null&&!i.hasOwnProperty(_)&&Ue(e,t,_,null,i,B);for(Z in i)B=i[Z],q=l[Z],!i.hasOwnProperty(Z)||B===q||B==null&&q==null||Ue(e,t,Z,B,i,q)}function lp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],d=o.transferSize,y=o.initiatorType,v=o.duration;if(d&&v&&lp(y)){for(y=0,v=o.responseEnd,i+=1;i<l.length;i++){var N=l[i],D=N.startTime;if(D>v)break;var V=N.transferSize,Z=N.initiatorType;V&&lp(Z)&&(N=N.responseEnd,y+=V*(N<v?1:(v-D)/(N-D)))}if(--i,t+=8*(d+y)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ic=null,rc=null;function gu(e){return e.nodeType===9?e:e.ownerDocument}function ap(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 ip(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 uc(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 sc=null;function hv(){var e=window.event;return e&&e.type==="popstate"?e===sc?!1:(sc=e,!0):(sc=null,!1)}var rp=typeof setTimeout=="function"?setTimeout:void 0,mv=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,pv=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(gv)}:rp;function gv(e){setTimeout(function(){throw e})}function ml(e){return e==="head"}function sp(e,t){var l=t,i=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(o),Oa(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Di(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Di(l);for(var d=l.firstChild;d;){var y=d.nextSibling,v=d.nodeName;d[Wa]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=y}}else l==="body"&&Di(e.ownerDocument.body);l=o}while(l);Oa(t)}function op(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function oc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":oc(l),hs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yv(e,t,l,i){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Wa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function xv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=an(e.nextSibling),e===null))return null;return e}function cp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function cc(e){return e.data==="$?"||e.data==="$~"}function fc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function an(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 dc=null;function fp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return an(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function hp(e,t,l){switch(t=gu(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Di(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hs(e)}var rn=new Map,mp=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=J.d;J.d={f:vv,r:Sv,D:wv,C:jv,L:Ev,m:Nv,X:Cv,S:Tv,M:Av};function vv(){var e=Kn.f(),t=su();return e||t}function Sv(e){var t=Pl(e);t!==null&&t.tag===5&&t.type==="form"?Rh(t):Kn.r(e)}var za=typeof document>"u"?null:document;function pp(e,t,l){var i=za;if(i&&typeof t=="string"&&t){var o=It(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),mp.has(o)||(mp.add(o),e={rel:e,crossOrigin:l,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),xt(t,"link",e),ft(t),i.head.appendChild(t)))}}function wv(e){Kn.D(e),pp("dns-prefetch",e,null)}function jv(e,t){Kn.C(e,t),pp("preconnect",e,t)}function Ev(e,t,l){Kn.L(e,t,l);var i=za;if(i&&e&&t){var o='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+It(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+It(l.imageSizes)+'"]')):o+='[href="'+It(e)+'"]';var d=o;switch(t){case"style":d=Ra(e);break;case"script":d=_a(e)}rn.has(d)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),rn.set(d,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Li(d))||t==="script"&&i.querySelector(Bi(d))||(t=i.createElement("link"),xt(t,"link",e),ft(t),i.head.appendChild(t)))}}function Nv(e,t){Kn.m(e,t);var l=za;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+It(i)+'"][href="'+It(e)+'"]',d=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=_a(e)}if(!rn.has(d)&&(e=b({rel:"modulepreload",href:e},t),rn.set(d,e),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Bi(d)))return}i=l.createElement("link"),xt(i,"link",e),ft(i),l.head.appendChild(i)}}}function Tv(e,t,l){Kn.S(e,t,l);var i=za;if(i&&e){var o=Wl(i).hoistableStyles,d=Ra(e);t=t||"default";var y=o.get(d);if(!y){var v={loading:0,preload:null};if(y=i.querySelector(Li(d)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=rn.get(d))&&hc(e,l);var N=y=i.createElement("link");ft(N),xt(N,"link",e),N._p=new Promise(function(D,V){N.onload=D,N.onerror=V}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,xu(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:v},o.set(d,y)}}}function Cv(e,t){Kn.X(e,t);var l=za;if(l&&e){var i=Wl(l).hoistableScripts,o=_a(e),d=i.get(o);d||(d=l.querySelector(Bi(o)),d||(e=b({src:e,async:!0},t),(t=rn.get(o))&&mc(e,t),d=l.createElement("script"),ft(d),xt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(o,d))}}function Av(e,t){Kn.M(e,t);var l=za;if(l&&e){var i=Wl(l).hoistableScripts,o=_a(e),d=i.get(o);d||(d=l.querySelector(Bi(o)),d||(e=b({src:e,async:!0,type:"module"},t),(t=rn.get(o))&&mc(e,t),d=l.createElement("script"),ft(d),xt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(o,d))}}function gp(e,t,l,i){var o=(o=ce.current)?yu(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ra(l.href),l=Wl(o).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ra(l.href);var d=Wl(o).hoistableStyles,y=d.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=o.querySelector(Li(e)))&&!d._p&&(y.instance=d,y.state.loading=5),rn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},rn.set(e,l),d||kv(o,e,l,y.state))),t&&i===null)throw Error(u(528,""));return y}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_a(l),l=Wl(o).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ra(e){return'href="'+It(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function yp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function kv(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),xt(t,"link",l),ft(t),e.head.appendChild(t))}function _a(e){return'[src="'+It(e)+'"]'}function Bi(e){return"script[async]"+e}function xp(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+It(l.href)+'"]');if(i)return t.instance=i,ft(i),i;var o=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ft(i),xt(i,"style",o),xu(i,l.precedence,e),t.instance=i;case"stylesheet":o=Ra(l.href);var d=e.querySelector(Li(o));if(d)return t.state.loading|=4,t.instance=d,ft(d),d;i=yp(l),(o=rn.get(o))&&hc(i,o),d=(e.ownerDocument||e).createElement("link"),ft(d);var y=d;return y._p=new Promise(function(v,N){y.onload=v,y.onerror=N}),xt(d,"link",i),t.state.loading|=4,xu(d,l.precedence,e),t.instance=d;case"script":return d=_a(l.src),(o=e.querySelector(Bi(d)))?(t.instance=o,ft(o),o):(i=l,(o=rn.get(d))&&(i=b({},l),mc(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ft(o),xt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,xu(i,l.precedence,e));return t.instance}function xu(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,d=o,y=0;y<i.length;y++){var v=i[y];if(v.dataset.precedence===t)d=v;else if(d!==o)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function hc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function bp(e,t,l){if(bu===null){var i=new Map,o=bu=new Map;o.set(l,i)}else o=bu,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var d=l[o];if(!(d[Wa]||d[mt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var v=i.get(y);v?v.push(d):i.set(y,[d])}}return i}function vp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function zv(e,t,l){if(l===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 Sp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rv(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=Ra(i.href),d=t.querySelector(Li(o));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=d,ft(d);return}d=t.ownerDocument||t,i=yp(i),(o=rn.get(o))&&hc(i,o),d=d.createElement("link"),ft(d);var y=d;y._p=new Promise(function(v,N){y.onload=v,y.onerror=N}),xt(d,"link",i),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=vu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var pc=0;function _v(e,t){return e.stylesheets&&e.count===0&&wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&pc===0&&(pc=62500*dv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>pc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Su=null;function wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Su=new Map,t.forEach(Ov,e),Su=null,vu.call(e))}function Ov(e,t){if(!(t.state.loading&4)){var l=Su.get(e);if(l)var i=l.get(null);else{l=new Map,Su.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<o.length;d++){var y=o[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),i=y)}i&&l.set(null,i)}o=t.instance,y=o.getAttribute("data-precedence"),d=l.get(y)||i,d===i&&l.set(null,o),l.set(y,o),this.count++,i=vu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),d?d.parentNode.insertBefore(o,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ui={$$typeof:L,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Mv(e,t,l,i,o,d,y,v,N){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=os(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=os(0),this.hiddenUpdates=os(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function wp(e,t,l,i,o,d,y,v,N,D,V,Z){return e=new Mv(e,t,l,y,N,D,V,Z,v),t=1,d===!0&&(t|=24),d=Ut(3,null,null,t),e.current=d,d.stateNode=e,t=Zs(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:i,isDehydrated:l,cache:t},Is(d),e}function jp(e){return e?(e=oa,e):oa}function Ep(e,t,l,i,o,d){o=jp(o),i.context===null?i.context=o:i.pendingContext=o,i=ll(t),i.payload={element:l},d=d===void 0?null:d,d!==null&&(i.callback=d),l=al(e,i,t),l!==null&&(_t(l,e,t),gi(l,e,t))}function Np(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function gc(e,t){Np(e,t),(e=e.alternate)&&Np(e,t)}function Tp(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&_t(t,e,67108864),gc(e,67108864)}}function Cp(e){if(e.tag===13||e.tag===31){var t=Qt();t=cs(t);var l=kl(e,t);l!==null&&_t(l,e,t),gc(e,t)}}var ju=!0;function Dv(e,t,l,i){var o=O.T;O.T=null;var d=J.p;try{J.p=2,yc(e,t,l,i)}finally{J.p=d,O.T=o}}function Lv(e,t,l,i){var o=O.T;O.T=null;var d=J.p;try{J.p=8,yc(e,t,l,i)}finally{J.p=d,O.T=o}}function yc(e,t,l,i){if(ju){var o=xc(i);if(o===null)lc(e,t,i,Eu,l),kp(e,i);else if(Uv(o,e,t,l,i))i.stopPropagation();else if(kp(e,i),t&4&&-1<Bv.indexOf(e)){for(;o!==null;){var d=Pl(o);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=El(d.pendingLanes);if(y!==0){var v=d;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var N=1<<31-Ye(y);v.entanglements[1]|=N,y&=~N}bn(d),(Re&6)===0&&(ru=St()+500,_i(0))}}break;case 31:case 13:v=kl(d,2),v!==null&&_t(v,d,2),su(),gc(d,2)}if(d=xc(i),d===null&&lc(e,t,i,Eu,l),d===o)break;o=d}o!==null&&i.stopPropagation()}else lc(e,t,i,null,l)}}function xc(e){return e=bs(e),bc(e)}var Eu=null;function bc(e){if(Eu=null,e=Il(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Eu=e,null}function Ap(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(ss()){case K:return 2;case ne:return 8;case me:case we:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var vc=!1,pl=null,gl=null,yl=null,Hi=new Map,qi=new Map,xl=[],Bv="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 kp(e,t){switch(e){case"focusin":case"focusout":pl=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":yl=null;break;case"pointerover":case"pointerout":Hi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qi.delete(t.pointerId)}}function Yi(e,t,l,i,o,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:d,targetContainers:[o]},t!==null&&(t=Pl(t),t!==null&&Tp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Uv(e,t,l,i,o){switch(t){case"focusin":return pl=Yi(pl,e,t,l,i,o),!0;case"dragenter":return gl=Yi(gl,e,t,l,i,o),!0;case"mouseover":return yl=Yi(yl,e,t,l,i,o),!0;case"pointerover":var d=o.pointerId;return Hi.set(d,Yi(Hi.get(d)||null,e,t,l,i,o)),!0;case"gotpointercapture":return d=o.pointerId,qi.set(d,Yi(qi.get(d)||null,e,t,l,i,o)),!0}return!1}function zp(e){var t=Il(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Kf(e.priority,function(){Cp(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Kf(e.priority,function(){Cp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=xc(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);xs=i,l.target.dispatchEvent(i),xs=null}else return t=Pl(l),t!==null&&Tp(t),e.blockedOn=l,!1;t.shift()}return!0}function Rp(e,t,l){Nu(e)&&l.delete(t)}function Hv(){vc=!1,pl!==null&&Nu(pl)&&(pl=null),gl!==null&&Nu(gl)&&(gl=null),yl!==null&&Nu(yl)&&(yl=null),Hi.forEach(Rp),qi.forEach(Rp)}function Tu(e,t){e.blockedOn===t&&(e.blockedOn=null,vc||(vc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Hv)))}var Cu=null;function _p(e){Cu!==e&&(Cu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Cu===e&&(Cu=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(bc(i||l)===null)continue;break}var d=Pl(l);d!==null&&(e.splice(t,3),t-=3,xo(d,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function Oa(e){function t(N){return Tu(N,e)}pl!==null&&Tu(pl,e),gl!==null&&Tu(gl,e),yl!==null&&Tu(yl,e),Hi.forEach(t),qi.forEach(t);for(var l=0;l<xl.length;l++){var i=xl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<xl.length&&(l=xl[0],l.blockedOn===null);)zp(l),l.blockedOn===null&&xl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],d=l[i+1],y=o[Tt]||null;if(typeof d=="function")y||_p(l);else if(y){var v=null;if(d&&d.hasAttribute("formAction")){if(o=d,y=d[Tt]||null)v=y.formAction;else if(bc(o)!==null)continue}else v=y.action;typeof v=="function"?l[i+1]=v:(l.splice(i,3),i-=3),_p(l)}}}function Op(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Sc(e){this._internalRoot=e}Au.prototype.render=Sc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Qt();Ep(l,i,e,t,null,null)},Au.prototype.unmount=Sc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ep(e.current,2,null,e,null,null),su(),t[Jl]=null}};function Au(e){this._internalRoot=e}Au.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<xl.length&&t!==0&&t<xl[l].priority;l++);xl.splice(l,0,e),l===0&&zp(e)}};var Mp=a.version;if(Mp!=="19.2.6")throw Error(u(527,Mp,"19.2.6"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var qv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{wt=ku.inject(qv),ot=ku}catch{}}return Qi.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,i="",o=Yh,d=Vh,y=Qh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=wp(e,1,!1,null,null,l,i,null,o,d,y,Op),e[Jl]=t.current,nc(e),new Sc(t)},Qi.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var i=!1,o="",d=Yh,y=Vh,v=Qh,N=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.formState!==void 0&&(N=l.formState)),t=wp(e,1,!0,t,l??null,i,o,N,d,y,v,Op),t.context=jp(null),l=t.current,i=Qt(),i=cs(i),o=ll(i),o.callback=null,al(l,o,i),l=i,t.current.lanes=l,Pa(t,l),bn(t),e[Jl]=t.current,nc(e),new Au(t)},Qi.version="19.2.6",Qi}var Kp;function Jv(){if(Kp)return Ec.exports;Kp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Ec.exports=Fv(),Ec.exports}var Pg=Jv();/**
|
|
50
|
+
* react-router v7.16.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Gp="popstate";function Xp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Iv(n={}){function a(u,s){var m;let c=(m=s.state)==null?void 0:m.masked,{pathname:f,search:p,hash:g}=c||u.location;return Hu("",{pathname:f,search:p,hash:g},s.state&&s.state.usr||null,s.state&&s.state.key||"default",c?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function r(u,s){return typeof s=="string"?s:qa(s)}return Wg(a,r,null,n)}function Pv(n={}){function a(s,c){let{pathname:f="/",search:p="",hash:g=""}=Kl(s.location.hash.substring(1));return!f.startsWith("/")&&!f.startsWith(".")&&(f="/"+f),Hu("",{pathname:f,search:p,hash:g},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){let f=s.document.querySelector("base"),p="";if(f&&f.getAttribute("href")){let g=s.location.href,m=g.indexOf("#");p=m===-1?g:g.slice(0,m)}return p+"#"+(typeof c=="string"?c:qa(c))}function u(s,c){Xt(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return Wg(a,r,u,n)}function Ie(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Xt(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Wv(){return Math.random().toString(36).substring(2,10)}function Zp(n,a){return{usr:n.state,key:n.key,idx:a,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Hu(n,a,r=null,u,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Kl(a):a,state:r,key:a&&a.key||u||Wv(),mask:s}}function qa({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Kl(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let u=n.indexOf("?");u>=0&&(a.search=n.substring(u),n=n.substring(0,u)),n&&(a.pathname=n)}return a}function Wg(n,a,r,u={}){let{window:s=document.defaultView,v5Compat:c=!1}=u,f=s.history,p="POP",g=null,m=x();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function x(){return(f.state||{idx:null}).idx}function b(){p="POP";let U=x(),k=U==null?null:U-m;m=U,g&&g({action:p,location:R.location,delta:k})}function w(U,k){p="PUSH";let $=Xp(U)?U:Hu(R.location,U,k);r&&r($,U),m=x()+1;let L=Zp($,m),ee=R.createHref($.mask||$);try{f.pushState(L,"",ee)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;s.location.assign(ee)}c&&g&&g({action:p,location:R.location,delta:1})}function S(U,k){p="REPLACE";let $=Xp(U)?U:Hu(R.location,U,k);r&&r($,U),m=x();let L=Zp($,m),ee=R.createHref($.mask||$);f.replaceState(L,"",ee),c&&g&&g({action:p,location:R.location,delta:0})}function z(U){return e0(s,U)}let R={get action(){return p},get location(){return n(s,f)},listen(U){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(Gp,b),g=U,()=>{s.removeEventListener(Gp,b),g=null}},createHref(U){return a(s,U)},createURL:z,encodeLocation(U){let k=z(U);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:w,replace:S,go(U){return f.go(U)}};return R}function e0(n,a,r=!1){let u="http://localhost";n&&(u=n.location.origin!=="null"?n.location.origin:n.location.href),Ie(u,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:qa(a);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=u+s),new URL(s,u)}function ey(n,a,r="/"){return t0(n,a,r,!1)}function t0(n,a,r,u,s){let c=typeof a=="string"?Kl(a):a,f=Gn(c.pathname||"/",r);if(f==null)return null;let p=n0(n),g=null,m=m0(f);for(let x=0;g==null&&x<p.length;++x)g=d0(p[x],m,u);return g}function n0(n){let a=ty(n);return l0(a),a}function ty(n,a=[],r=[],u="",s=!1){let c=(f,p,g=s,m)=>{let x={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(u)&&g)return;Ie(x.relativePath.startsWith(u),`Absolute route path "${x.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(u.length)}let b=pn([u,x.relativePath]),w=r.concat(x);f.children&&f.children.length>0&&(Ie(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),ty(f.children,a,w,b,g)),!(f.path==null&&!f.index)&&a.push({path:b,score:c0(b,f.index),routesMeta:w})};return n.forEach((f,p)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,p);else for(let m of ny(f.path))c(f,p,!0,m)}),a}function ny(n){let a=n.split("/");if(a.length===0)return[];let[r,...u]=a,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(u.length===0)return s?[c,""]:[c];let f=ny(u.join("/")),p=[];return p.push(...f.map(g=>g===""?c:[c,g].join("/"))),s&&p.push(...f),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function l0(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:f0(a.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var a0=/^:[\w-]+$/,i0=3,r0=2,u0=1,s0=10,o0=-2,$p=n=>n==="*";function c0(n,a){let r=n.split("/"),u=r.length;return r.some($p)&&(u+=o0),a&&(u+=r0),r.filter(s=>!$p(s)).reduce((s,c)=>s+(a0.test(c)?i0:c===""?u0:s0),u)}function f0(n,a){return n.length===a.length&&n.slice(0,-1).every((u,s)=>u===a[s])?n[n.length-1]-a[a.length-1]:0}function d0(n,a,r=!1){let{routesMeta:u}=n,s={},c="/",f=[];for(let p=0;p<u.length;++p){let g=u[p],m=p===u.length-1,x=c==="/"?a:a.slice(c.length)||"/",b=qu({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},x),w=g.route;if(!b&&m&&r&&!u[u.length-1].route.index&&(b=qu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!b)return null;Object.assign(s,b.params),f.push({params:s,pathname:pn([c,b.pathname]),pathnameBase:x0(pn([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=pn([c,b.pathnameBase]))}return f}function qu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=h0(n.path,n.caseSensitive,n.end),s=a.match(r);if(!s)return null;let c=s[0],f=c.replace(/(.)\/+$/,"$1"),p=s.slice(1);return{params:u.reduce((m,{paramName:x,isOptional:b},w)=>{if(x==="*"){let z=p[w]||"";f=c.slice(0,c.length-z.length).replace(/(.)\/+$/,"$1")}const S=p[w];return b&&!S?m[x]=void 0:m[x]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:n}}function h0(n,a=!1,r=!0){Xt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,g,m,x)=>{if(u.push({paramName:p,isOptional:g!=null}),g){let b=x.charAt(m+f.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),u]}function m0(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Xt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Gn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,u=n.charAt(r);return u&&u!=="/"?null:n.slice(r)||"/"}var p0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function g0(n,a="/"){let{pathname:r,search:u="",hash:s=""}=typeof n=="string"?Kl(n):n,c;return r?(r=ly(r),r.startsWith("/")?c=Fp(r.substring(1),"/"):c=Fp(r,a)):c=a,{pathname:c,search:b0(u),hash:v0(s)}}function Fp(n,a){let r=Yu(a).split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Ac(n,a,r,u){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function y0(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function hf(n){let a=y0(n);return a.map((r,u)=>u===a.length-1?r.pathname:r.pathnameBase)}function Xu(n,a,r,u=!1){let s;typeof n=="string"?s=Kl(n):(s={...n},Ie(!s.pathname||!s.pathname.includes("?"),Ac("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),Ac("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),Ac("#","search","hash",s)));let c=n===""||s.pathname==="",f=c?"/":s.pathname,p;if(f==null)p=r;else{let b=a.length-1;if(!u&&f.startsWith("..")){let w=f.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}p=b>=0?a[b]:"/"}let g=g0(s,p),m=f&&f!=="/"&&f.endsWith("/"),x=(c||f===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(m||x)&&(g.pathname+="/"),g}var ly=n=>n.replace(/\/\/+/g,"/"),pn=n=>ly(n.join("/")),Yu=n=>n.replace(/\/+$/,""),x0=n=>Yu(n).replace(/^\/*/,"/"),b0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,v0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,S0=class{constructor(n,a,r,u=!1){this.status=n,this.statusText=a||"",this.internal=u,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function w0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function j0(n){let a=n.map(r=>r.route.path).filter(Boolean);return pn(a)||"/"}var ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function iy(n,a){let r=n;if(typeof r!="string"||!p0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,s=!1;if(ay)try{let c=new URL(window.location.href),f=r.startsWith("//")?new URL(c.protocol+r):new URL(r),p=Gn(f.pathname,a);f.origin===c.origin&&p!=null?r=p+f.search+f.hash:s=!0}catch{Xt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ry=["POST","PUT","PATCH","DELETE"];new Set(ry);var E0=["GET",...ry];new Set(E0);var Ka=T.createContext(null);Ka.displayName="DataRouter";var Zu=T.createContext(null);Zu.displayName="DataRouterState";var uy=T.createContext(!1);function N0(){return T.useContext(uy)}var sy=T.createContext({isTransitioning:!1});sy.displayName="ViewTransition";var T0=T.createContext(new Map);T0.displayName="Fetchers";var C0=T.createContext(null);C0.displayName="Await";var Zt=T.createContext(null);Zt.displayName="Navigation";var ir=T.createContext(null);ir.displayName="Location";var on=T.createContext({outlet:null,matches:[],isDataRoute:!1});on.displayName="Route";var mf=T.createContext(null);mf.displayName="RouteError";var oy="REACT_ROUTER_ERROR",A0="REDIRECT",k0="ROUTE_ERROR_RESPONSE";function z0(n){if(n.startsWith(`${oy}:${A0}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function R0(n){if(n.startsWith(`${oy}:${k0}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new S0(a.status,a.statusText,a.data)}catch{}}function _0(n,{relative:a}={}){Ie(Ga(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=T.useContext(Zt),{hash:s,pathname:c,search:f}=rr(n,{relative:a}),p=c;return r!=="/"&&(p=c==="/"?r:pn([r,c])),u.createHref({pathname:p,search:f,hash:s})}function Ga(){return T.useContext(ir)!=null}function $t(){return Ie(Ga(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(ir).location}var cy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fy(n){T.useContext(Zt).static||T.useLayoutEffect(n)}function $u(){let{isDataRoute:n}=T.useContext(on);return n?Z0():O0()}function O0(){Ie(Ga(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Ka),{basename:a,navigator:r}=T.useContext(Zt),{matches:u}=T.useContext(on),{pathname:s}=$t(),c=JSON.stringify(hf(u)),f=T.useRef(!1);return fy(()=>{f.current=!0}),T.useCallback((g,m={})=>{if(Xt(f.current,cy),!f.current)return;if(typeof g=="number"){r.go(g);return}let x=Xu(g,JSON.parse(c),s,m.relative==="path");n==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:pn([a,x.pathname])),(m.replace?r.replace:r.push)(x,m.state,m)},[a,r,c,s,n])}var dy=T.createContext(null);function M0(){return T.useContext(dy)}function D0(n){let a=T.useContext(on).outlet;return T.useMemo(()=>a&&T.createElement(dy.Provider,{value:n},a),[a,n])}function Fu(){let{matches:n}=T.useContext(on),a=n[n.length-1];return(a==null?void 0:a.params)??{}}function rr(n,{relative:a}={}){let{matches:r}=T.useContext(on),{pathname:u}=$t(),s=JSON.stringify(hf(r));return T.useMemo(()=>Xu(n,JSON.parse(s),u,a==="path"),[n,s,u,a])}function L0(n,a){return hy(n,a)}function hy(n,a,r){var U;Ie(Ga(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=T.useContext(Zt),{matches:s}=T.useContext(on),c=s[s.length-1],f=c?c.params:{},p=c?c.pathname:"/",g=c?c.pathnameBase:"/",m=c&&c.route;{let k=m&&m.path||"";py(p,!m||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let x=$t(),b;if(a){let k=typeof a=="string"?Kl(a):a;Ie(g==="/"||((U=k.pathname)==null?void 0:U.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${k.pathname}" was given in the \`location\` prop.`),b=k}else b=x;let w=b.pathname||"/",S=w;if(g!=="/"){let k=g.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(k.length).join("/")}let z=r&&r.state.matches.length?r.state.matches.map(k=>Object.assign(k,{route:r.manifest[k.route.id]||k.route})):ey(n,{pathname:S});Xt(m||z!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=Y0(z&&z.map(k=>Object.assign({},k,{params:Object.assign({},f,k.params),pathname:pn([g,u.encodeLocation?u.encodeLocation(k.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?g:pn([g,u.encodeLocation?u.encodeLocation(k.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),s,r);return a&&R?T.createElement(ir.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},R):R}function B0(){let n=X0(),a=w0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:u},c={padding:"2px 4px",backgroundColor:u},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:c},"ErrorBoundary")," or"," ",T.createElement("code",{style:c},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},a),r?T.createElement("pre",{style:s},r):null,f)}var U0=T.createElement(B0,null),my=class extends T.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=R0(n.digest);r&&(n=r)}let a=n!==void 0?T.createElement(on.Provider,{value:this.props.routeContext},T.createElement(mf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(H0,{error:n},a):a}};my.contextType=uy;var kc=new WeakMap;function H0({children:n,error:a}){let{basename:r}=T.useContext(Zt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let u=z0(a.digest);if(u){let s=kc.get(a);if(s)throw s;let c=iy(u.location,r);if(ay&&!kc.get(a))if(c.isExternal||u.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:u.replace}));throw kc.set(a,f),f}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function q0({routeContext:n,match:a,children:r}){let u=T.useContext(Ka);return u&&u.static&&u.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=a.route.id),T.createElement(on.Provider,{value:n},r)}function Y0(n,a=[],r){let u=r==null?void 0:r.state;if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(a.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let s=n,c=u==null?void 0:u.errors;if(c!=null){let x=s.findIndex(b=>b.route.id&&(c==null?void 0:c[b.route.id])!==void 0);Ie(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,x+1))}let f=!1,p=-1;if(r&&u){f=u.renderFallback;for(let x=0;x<s.length;x++){let b=s[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(p=x),b.route.id){let{loaderData:w,errors:S}=u,z=b.route.loader&&!w.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||z){r.isStatic&&(f=!0),p>=0?s=s.slice(0,p+1):s=[s[0]];break}}}}let g=r==null?void 0:r.onError,m=u&&g?(x,b)=>{var w,S;g(x,{location:u.location,params:((S=(w=u.matches)==null?void 0:w[0])==null?void 0:S.params)??{},pattern:j0(u.matches),errorInfo:b})}:void 0;return s.reduceRight((x,b,w)=>{let S,z=!1,R=null,U=null;u&&(S=c&&b.route.id?c[b.route.id]:void 0,R=b.route.errorElement||U0,f&&(p<0&&w===0?(py("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,U=null):p===w&&(z=!0,U=b.route.hydrateFallbackElement||null)));let k=a.concat(s.slice(0,w+1)),$=()=>{let L;return S?L=R:z?L=U:b.route.Component?L=T.createElement(b.route.Component,null):b.route.element?L=b.route.element:L=x,T.createElement(q0,{match:b,routeContext:{outlet:x,matches:k,isDataRoute:u!=null},children:L})};return u&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?T.createElement(my,{location:u.location,revalidation:u.revalidation,component:R,error:S,children:$(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:m}):$()},null)}function pf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V0(n){let a=T.useContext(Ka);return Ie(a,pf(n)),a}function Q0(n){let a=T.useContext(Zu);return Ie(a,pf(n)),a}function K0(n){let a=T.useContext(on);return Ie(a,pf(n)),a}function gf(n){let a=K0(n),r=a.matches[a.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function G0(){return gf("useRouteId")}function X0(){var u;let n=T.useContext(mf),a=Q0("useRouteError"),r=gf("useRouteError");return n!==void 0?n:(u=a.errors)==null?void 0:u[r]}function Z0(){let{router:n}=V0("useNavigate"),a=gf("useNavigate"),r=T.useRef(!1);return fy(()=>{r.current=!0}),T.useCallback(async(s,c={})=>{Xt(r.current,cy),r.current&&(typeof s=="number"?await n.navigate(s):await n.navigate(s,{fromRouteId:a,...c}))},[n,a])}var Jp={};function py(n,a,r){!a&&!Jp[n]&&(Jp[n]=!0,Xt(!1,r))}T.memo($0);function $0({routes:n,manifest:a,future:r,state:u,isStatic:s,onError:c}){return hy(n,void 0,{manifest:a,state:u,isStatic:s,onError:c})}function Xn({to:n,replace:a,state:r,relative:u}){Ie(Ga(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=T.useContext(Zt);Xt(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=T.useContext(on),{pathname:f}=$t(),p=$u(),g=Xu(n,hf(c),f,u==="path"),m=JSON.stringify(g);return T.useEffect(()=>{p(JSON.parse(m),{replace:a,state:r,relative:u})},[p,m,u,a,r]),null}function F0(n){return D0(n.context)}function Je(n){Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gy({basename:n="/",children:a=null,location:r,navigationType:u="POP",navigator:s,static:c=!1,useTransitions:f}){Ie(!Ga(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),g=T.useMemo(()=>({basename:p,navigator:s,static:c,useTransitions:f,future:{}}),[p,s,c,f]);typeof r=="string"&&(r=Kl(r));let{pathname:m="/",search:x="",hash:b="",state:w=null,key:S="default",mask:z}=r,R=T.useMemo(()=>{let U=Gn(m,p);return U==null?null:{location:{pathname:U,search:x,hash:b,state:w,key:S,mask:z},navigationType:u}},[p,m,x,b,w,S,u,z]);return Xt(R!=null,`<Router basename="${p}"> is not able to match the URL "${m}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:T.createElement(Zt.Provider,{value:g},T.createElement(ir.Provider,{children:a,value:R}))}function J0({children:n,location:a}){return L0($c(n),a)}function $c(n,a=[]){let r=[];return T.Children.forEach(n,(u,s)=>{if(!T.isValidElement(u))return;let c=[...a,s];if(u.type===T.Fragment){r.push.apply(r,$c(u.props.children,c));return}Ie(u.type===Je,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!u.props.index||!u.props.children,"An index route cannot have child routes.");let f={id:u.props.id||c.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(f.children=$c(u.props.children,c)),r.push(f)}),r}var Lu="get",Bu="application/x-www-form-urlencoded";function Ju(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function I0(n){return Ju(n)&&n.tagName.toLowerCase()==="button"}function P0(n){return Ju(n)&&n.tagName.toLowerCase()==="form"}function W0(n){return Ju(n)&&n.tagName.toLowerCase()==="input"}function e1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function t1(n,a){return n.button===0&&(!a||a==="_self")&&!e1(n)}function Fc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((a,r)=>{let u=n[r];return a.concat(Array.isArray(u)?u.map(s=>[r,s]):[[r,u]])},[]))}function n1(n,a){let r=Fc(n);return a&&a.forEach((u,s)=>{r.has(s)||a.getAll(s).forEach(c=>{r.append(s,c)})}),r}var zu=null;function l1(){if(zu===null)try{new FormData(document.createElement("form"),0),zu=!1}catch{zu=!0}return zu}var a1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zc(n){return n!=null&&!a1.has(n)?(Xt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bu}"`),null):n}function i1(n,a){let r,u,s,c,f;if(P0(n)){let p=n.getAttribute("action");u=p?Gn(p,a):null,r=n.getAttribute("method")||Lu,s=zc(n.getAttribute("enctype"))||Bu,c=new FormData(n)}else if(I0(n)||W0(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(u=g?Gn(g,a):null,r=n.getAttribute("formmethod")||p.getAttribute("method")||Lu,s=zc(n.getAttribute("formenctype"))||zc(p.getAttribute("enctype"))||Bu,c=new FormData(p,n),!l1()){let{name:m,type:x,value:b}=n;if(x==="image"){let w=m?`${m}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else m&&c.append(m,b)}}else{if(Ju(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Lu,u=null,s=Bu,f=n}return c&&s==="text/plain"&&(f=c,c=void 0),{action:u,method:r.toLowerCase(),encType:s,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function yf(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function yy(n,a,r,u){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${u}`:s.pathname=`${s.pathname}.${u}`:s.pathname==="/"?s.pathname=`_root.${u}`:a&&Gn(s.pathname,a)==="/"?s.pathname=`${Yu(a)}/_root.${u}`:s.pathname=`${Yu(s.pathname)}.${u}`,s}async function r1(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function u1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function s1(n,a,r){let u=await Promise.all(n.map(async s=>{let c=a.routes[s.route.id];if(c){let f=await r1(c,r);return f.links?f.links():[]}return[]}));return d1(u.flat(1).filter(u1).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Ip(n,a,r,u,s,c){let f=(g,m)=>r[m]?g.route.id!==r[m].route.id:!0,p=(g,m)=>{var x;return r[m].pathname!==g.pathname||((x=r[m].route.path)==null?void 0:x.endsWith("*"))&&r[m].params["*"]!==g.params["*"]};return c==="assets"?a.filter((g,m)=>f(g,m)||p(g,m)):c==="data"?a.filter((g,m)=>{var b;let x=u.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(f(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let w=g.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function o1(n,a,{includeHydrateFallback:r}={}){return c1(n.map(u=>{let s=a.routes[u.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function c1(n){return[...new Set(n)]}function f1(n){let a={},r=Object.keys(n).sort();for(let u of r)a[u]=n[u];return a}function d1(n,a){let r=new Set;return new Set(a),n.reduce((u,s)=>{let c=JSON.stringify(f1(s));return r.has(c)||(r.add(c),u.push({key:c,link:s})),u},[])}function xf(){let n=T.useContext(Ka);return yf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function h1(){let n=T.useContext(Zu);return yf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var bf=T.createContext(void 0);bf.displayName="FrameworkContext";function vf(){let n=T.useContext(bf);return yf(n,"You must render this element inside a <HydratedRouter> element"),n}function m1(n,a){let r=T.useContext(bf),[u,s]=T.useState(!1),[c,f]=T.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:x,onTouchStart:b}=a,w=T.useRef(null);T.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let R=k=>{k.forEach($=>{f($.isIntersecting)})},U=new IntersectionObserver(R,{threshold:.5});return w.current&&U.observe(w.current),()=>{U.disconnect()}}},[n]),T.useEffect(()=>{if(u){let R=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(R)}}},[u]);let S=()=>{s(!0)},z=()=>{s(!1),f(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Ki(p,S),onBlur:Ki(g,z),onMouseEnter:Ki(m,S),onMouseLeave:Ki(x,z),onTouchStart:Ki(b,S)}]:[!1,w,{}]}function Ki(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function p1({page:n,...a}){let r=N0(),{router:u}=xf(),s=T.useMemo(()=>ey(u.routes,n,u.basename),[u.routes,n,u.basename]);return s?r?T.createElement(y1,{page:n,matches:s,...a}):T.createElement(x1,{page:n,matches:s,...a}):null}function g1(n){let{manifest:a,routeModules:r}=vf(),[u,s]=T.useState([]);return T.useEffect(()=>{let c=!1;return s1(n,a,r).then(f=>{c||s(f)}),()=>{c=!0}},[n,a,r]),u}function y1({page:n,matches:a,...r}){let u=$t(),{future:s}=vf(),{basename:c}=xf(),f=T.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let p=yy(n,c,s.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,m=[];for(let x of a)typeof x.route.shouldRevalidate=="function"?g=!0:m.push(x.route.id);return g&&m.length>0&&p.searchParams.set("_routes",m.join(",")),[p.pathname+p.search]},[c,s.v8_trailingSlashAwareDataRequests,n,u,a]);return T.createElement(T.Fragment,null,f.map(p=>T.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})))}function x1({page:n,matches:a,...r}){let u=$t(),{future:s,manifest:c,routeModules:f}=vf(),{basename:p}=xf(),{loaderData:g,matches:m}=h1(),x=T.useMemo(()=>Ip(n,a,m,c,u,"data"),[n,a,m,c,u]),b=T.useMemo(()=>Ip(n,a,m,c,u,"assets"),[n,a,m,c,u]),w=T.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let R=new Set,U=!1;if(a.forEach($=>{var ee;let L=c.routes[$.route.id];!L||!L.hasLoader||(!x.some(I=>I.route.id===$.route.id)&&$.route.id in g&&((ee=f[$.route.id])!=null&&ee.shouldRevalidate)||L.hasClientLoader?U=!0:R.add($.route.id))}),R.size===0)return[];let k=yy(n,p,s.v8_trailingSlashAwareDataRequests,"data");return U&&R.size>0&&k.searchParams.set("_routes",a.filter($=>R.has($.route.id)).map($=>$.route.id).join(",")),[k.pathname+k.search]},[p,s.v8_trailingSlashAwareDataRequests,g,u,c,x,a,n,f]),S=T.useMemo(()=>o1(b,c),[b,c]),z=g1(b);return T.createElement(T.Fragment,null,w.map(R=>T.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...r})),S.map(R=>T.createElement("link",{key:R,rel:"modulepreload",href:R,...r})),z.map(({key:R,link:U})=>T.createElement("link",{key:R,nonce:r.nonce,...U,crossOrigin:U.crossOrigin??r.crossOrigin})))}function b1(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var v1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{v1&&(window.__reactRouterVersion="7.16.0")}catch{}function S1({basename:n,children:a,useTransitions:r,window:u}){let s=T.useRef();s.current==null&&(s.current=Iv({window:u,v5Compat:!0}));let c=s.current,[f,p]=T.useState({action:c.action,location:c.location}),g=T.useCallback(m=>{r===!1?p(m):T.startTransition(()=>p(m))},[r]);return T.useLayoutEffect(()=>c.listen(g),[c,g]),T.createElement(gy,{basename:n,children:a,location:f.location,navigationType:f.action,navigator:c,useTransitions:r})}function w1({basename:n,children:a,useTransitions:r,window:u}){let s=T.useRef();s.current==null&&(s.current=Pv({window:u,v5Compat:!0}));let c=s.current,[f,p]=T.useState({action:c.action,location:c.location}),g=T.useCallback(m=>{r===!1?p(m):T.startTransition(()=>p(m))},[r]);return T.useLayoutEffect(()=>c.listen(g),[c,g]),T.createElement(gy,{basename:n,children:a,location:f.location,navigationType:f.action,navigator:c,useTransitions:r})}var xy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ge=T.forwardRef(function({onClick:a,discover:r="render",prefetch:u="none",relative:s,reloadDocument:c,replace:f,mask:p,state:g,target:m,to:x,preventScrollReset:b,viewTransition:w,defaultShouldRevalidate:S,...z},R){let{basename:U,navigator:k,useTransitions:$}=T.useContext(Zt),L=typeof x=="string"&&xy.test(x),ee=iy(x,U);x=ee.to;let I=_0(x,{relative:s}),H=$t(),F=null;if(p){let X=Xu(p,[],H.mask?H.mask.pathname:"/",!0);U!=="/"&&(X.pathname=X.pathname==="/"?U:pn([U,X.pathname])),F=k.createHref(X)}let[oe,Y,le]=m1(u,z),P=N1(x,{replace:f,mask:p,state:g,target:m,preventScrollReset:b,relative:s,viewTransition:w,defaultShouldRevalidate:S,useTransitions:$});function te(X){a&&a(X),X.defaultPrevented||P(X)}let xe=!(ee.isExternal||c),ue=T.createElement("a",{...z,...le,href:(xe?F:void 0)||ee.absoluteURL||I,onClick:xe?te:a,ref:b1(R,Y),target:m,"data-discover":!L&&r==="render"?"true":void 0});return oe&&!L?T.createElement(T.Fragment,null,ue,T.createElement(p1,{page:I})):ue});Ge.displayName="Link";var Pi=T.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:u="",end:s=!1,style:c,to:f,viewTransition:p,children:g,...m},x){let b=rr(f,{relative:m.relative}),w=$t(),S=T.useContext(Zu),{navigator:z,basename:R}=T.useContext(Zt),U=S!=null&&z1(b)&&p===!0,k=z.encodeLocation?z.encodeLocation(b).pathname:b.pathname,$=w.pathname,L=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||($=$.toLowerCase(),L=L?L.toLowerCase():null,k=k.toLowerCase()),L&&R&&(L=Gn(L,R)||L);const ee=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let I=$===k||!s&&$.startsWith(k)&&$.charAt(ee)==="/",H=L!=null&&(L===k||!s&&L.startsWith(k)&&L.charAt(k.length)==="/"),F={isActive:I,isPending:H,isTransitioning:U},oe=I?a:void 0,Y;typeof u=="function"?Y=u(F):Y=[u,I?"active":null,H?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let le=typeof c=="function"?c(F):c;return T.createElement(Ge,{...m,"aria-current":oe,className:Y,ref:x,style:le,to:f,viewTransition:p},typeof g=="function"?g(F):g)});Pi.displayName="NavLink";var j1=T.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:u,replace:s,state:c,method:f=Lu,action:p,onSubmit:g,relative:m,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w,...S},z)=>{let{useTransitions:R}=T.useContext(Zt),U=A1(),k=k1(p,{relative:m}),$=f.toLowerCase()==="get"?"get":"post",L=typeof p=="string"&&xy.test(p),ee=I=>{if(g&&g(I),I.defaultPrevented)return;I.preventDefault();let H=I.nativeEvent.submitter,F=(H==null?void 0:H.getAttribute("formmethod"))||f,oe=()=>U(H||I.currentTarget,{fetcherKey:a,method:F,navigate:r,replace:s,state:c,relative:m,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w});R&&r!==!1?T.startTransition(()=>oe()):oe()};return T.createElement("form",{ref:z,method:$,action:k,onSubmit:u?g:ee,...S,"data-discover":!L&&n==="render"?"true":void 0})});j1.displayName="Form";function E1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function by(n){let a=T.useContext(Ka);return Ie(a,E1(n)),a}function N1(n,{target:a,replace:r,mask:u,state:s,preventScrollReset:c,relative:f,viewTransition:p,defaultShouldRevalidate:g,useTransitions:m}={}){let x=$u(),b=$t(),w=rr(n,{relative:f});return T.useCallback(S=>{if(t1(S,a)){S.preventDefault();let z=r!==void 0?r:qa(b)===qa(w),R=()=>x(n,{replace:z,mask:u,state:s,preventScrollReset:c,relative:f,viewTransition:p,defaultShouldRevalidate:g});m?T.startTransition(()=>R()):R()}},[b,x,w,r,u,s,a,n,c,f,p,g,m])}function $n(n){Xt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=T.useRef(Fc(n)),r=T.useRef(!1),u=$t(),s=T.useMemo(()=>n1(u.search,r.current?null:a.current),[u.search]),c=$u(),f=T.useCallback((p,g)=>{const m=Fc(typeof p=="function"?p(new URLSearchParams(s)):p);r.current=!0,c("?"+m,g)},[c,s]);return[s,f]}var T1=0,C1=()=>`__${String(++T1)}__`;function A1(){let{router:n}=by("useSubmit"),{basename:a}=T.useContext(Zt),r=G0(),u=n.fetch,s=n.navigate;return T.useCallback(async(c,f={})=>{let{action:p,method:g,encType:m,formData:x,body:b}=i1(c,a);if(f.navigate===!1){let w=f.fetcherKey||C1();await u(w,r,f.action||p,{defaultShouldRevalidate:f.defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:b,formMethod:f.method||g,formEncType:f.encType||m,flushSync:f.flushSync})}else await s(f.action||p,{defaultShouldRevalidate:f.defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:b,formMethod:f.method||g,formEncType:f.encType||m,replace:f.replace,state:f.state,fromRouteId:r,flushSync:f.flushSync,viewTransition:f.viewTransition})},[u,s,a,r])}function k1(n,{relative:a}={}){let{basename:r}=T.useContext(Zt),u=T.useContext(on);Ie(u,"useFormAction must be used inside a RouteContext");let[s]=u.matches.slice(-1),c={...rr(n||".",{relative:a})},f=$t();if(n==null){c.search=f.search;let p=new URLSearchParams(c.search),g=p.getAll("index");if(g.some(x=>x==="")){p.delete("index"),g.filter(b=>b).forEach(b=>p.append("index",b));let x=p.toString();c.search=x?`?${x}`:""}}return(!n||n===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:pn([r,c.pathname])),qa(c)}function z1(n,{relative:a}={}){let r=T.useContext(sy);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=by("useViewTransitionState"),s=rr(n,{relative:a});if(!r.isTransitioning)return!1;let c=Gn(r.currentLocation.pathname,u)||r.currentLocation.pathname,f=Gn(r.nextLocation.pathname,u)||r.nextLocation.pathname;return qu(s.pathname,f)!=null||qu(s.pathname,c)!=null}const vy=["messages","locales","attributes","segments","targets"],Wi={locales:"locale",messages:"message",attributes:"attribute",segments:"segment",targets:"target"},Sy={locale:"locales",message:"messages",attribute:"attributes",segment:"segments",target:"targets"},Zn={locale:{singular:"Locale",plural:"Locales"},message:{singular:"Message",plural:"Messages"},attribute:{singular:"Attribute",plural:"Attributes"},segment:{singular:"Segment",plural:"Segments"},target:{singular:"Target",plural:"Targets"}};function Et(n){return encodeURIComponent(n)}function er(n){return n?`/sets/${Et(n)}`:""}function Pe(n,a,r){return`${er(r)}/${Sy[n]}/${Et(a)}`}function Iu(n){return n?`/data/sets/${Et(n)}`:"/data/root"}let wy="browser";function Xa(n){const a=n.replace(/^\//,"");return wy==="browser"?`/${a}`:a}function R1(n){wy=n||"browser"}async function Ya(n){const a=await fetch(n);if(!a.ok)throw new Error(`Unable to load ${n}`);return a.json()}function jy(){return Ya(Xa("data/manifest.json")).catch(()=>Ya("/data/manifest.json"))}function Sf(n){return Ya(Xa(`${Iu(n)}/index.json`))}function _1(n,a,r){return Ya(Xa(`${Iu(r)}/entities/${n}/${Et(a)}.json`))}function O1(n,a){const r=Xa(`${n}/page-${a}.json`),u={page:1,pageSize:50,totalPages:1,entries:[]};return fetch(r).then(s=>{if(s.ok){if((s.headers.get("content-type")||"").includes("text/html")){if(a===1)return u;throw new Error(`Unable to load ${r}`)}return s.json()}if(s.status===404&&a===1)return u;throw new Error(`Unable to load ${r}`)})}function M1(n,a){return Ya(Xa(`${Iu(a)}/duplicates/locales/${Et(n)}.json`))}const Rc=new Map;function D1(n){return Array.from(new TextEncoder().encode(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}function L1(n,a){const r=`${a??"__root__"}:${n}`,u=Rc.get(r);return u?Promise.resolve(u):Ya(Xa(`${Iu(a)}/translations/${D1(n)}.json`)).then(s=>(Rc.set(r,s),s)).catch(()=>{const s={};return Rc.set(r,s),s})}const Ey=T.createContext(null);function B1(n){const[a,r]=T.useState(n.initialManifest||null),[u,s]=T.useState(null);return T.useEffect(()=>{n.initialManifest||jy().then(r).catch(c=>s(c.message))},[n.initialManifest]),u?h.jsx("div",{className:"p-8 text-danger",children:u}):a?h.jsx(Ey.Provider,{value:{manifest:a},children:n.children}):h.jsx("div",{className:"p-8 text-muted",children:"Loading catalog..."})}function jn(){const n=T.useContext(Ey);if(!n)throw new Error("useCatalog must be used inside CatalogProvider.");return n}const U1="/favicon.png",H1="/logo-text.png",Pp={page:"min-h-screen bg-background text-text",pageShell:"m-8 mx-auto max-w-5xl"};function q1({isActive:n}){return["flex items-center justify-between rounded-lg px-3 py-2 text-sm font-bold",n?"bg-header-active text-header-text":"text-muted hover:bg-elevated hover:text-text"].join(" ")}function Y1(n){const[a,r]=T.useState(null),u=er(n.setKey),s="History";return T.useEffect(()=>{r(null),Sf(n.setKey).then(r).catch(()=>r(null))},[n.setKey]),h.jsxs("aside",{className:"rounded-lg bg-surface p-4 shadow-md ring-1 ring-black/5 md:w-56",children:[h.jsx("div",{className:"mb-3 text-xs font-black uppercase tracking-wide text-muted",children:h.jsx("span",{className:"block px-3 text-muted",children:n.setKey?"Set":"Project"})}),h.jsxs("nav",{className:"space-y-1",children:[vy.map(c=>{const f=Wi[c];return h.jsxs(Pi,{to:`${u}/${c}`,className:q1,children:[h.jsx("span",{children:Zn[f].plural}),h.jsx("span",{className:"rounded-full bg-pill px-2 py-0.5 text-xs font-black text-header",children:(a==null?void 0:a.counts[f])??"-"})]},c)}),h.jsx(Pi,{to:`${u}/history`,className:({isActive:c})=>["mt-4 block rounded-lg px-3 py-2 text-sm font-bold",c?"bg-header-active text-header-text":"text-muted hover:bg-elevated hover:text-text"].join(" "),children:s})]})]})}function Wp(n){return vy.indexOf(n)!==-1}function V1(n,a,r){const u=Wi[a];return(n.entities[u]||[]).some(c=>c.key===r)}async function Q1(n,a){const r=Et(a),u=n.match(/^\/sets\/[^/]+\/([^/]+)$/);if(u&&Wp(u[1]))return`/sets/${r}/${u[1]}`;if(n.match(/^\/sets\/[^/]+\/history$/))return`/sets/${r}/history`;const s=n.match(/^\/sets\/[^/]+\/([^/]+)\/([^/]+)(\/.*)?$/);if(s&&Wp(s[1])){const c=s[1],f=decodeURIComponent(s[2]),p=s[3]||"";try{const g=await Sf(a);return V1(g,c,f)?`/sets/${r}/${c}/${Et(f)}${p}`:`/sets/${r}/${c}`}catch{return`/sets/${r}/${c}`}}return`/sets/${r}/messages`}function K1(n){const{manifest:a}=jn(),r=$t(),u=$u(),s=T.useId(),c=T.useRef(null),f=n.currentSetKey||a.setKeys[0]||"";if(!a.sets||a.setKeys.length===0)return null;function p(){const g=c.current;g&&(g.focus(),typeof g.showPicker=="function"&&g.showPicker())}return h.jsxs("label",{htmlFor:s,className:"relative inline-flex cursor-pointer items-center gap-2 rounded-lg bg-header-active px-3 py-1.5 text-sm font-semibold text-header-text",onClick:g=>{g.target instanceof HTMLSelectElement||p()},children:[h.jsx("span",{className:"text-xs font-black uppercase tracking-wide text-pill",children:"Set"}),h.jsx("select",{id:s,ref:c,value:f,onChange:async g=>{const m=g.target.value;u(await Q1(r.pathname,m))},className:"max-w-44 appearance-none bg-transparent pr-7 font-black text-header-text outline-none","aria-label":"Switch catalog set",children:a.setKeys.map(g=>h.jsx("option",{value:g,children:g},g))}),h.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",fill:"none",className:"pointer-events-none absolute right-3 h-4 w-4 text-pill",children:h.jsx("path",{d:"M6 8l4 4 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}function G1(n){return n.provider==="github"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 16 16",fill:"currentColor",children:h.jsx("path",{d:"M8 0C3.58 0 0 3.69 0 8.24c0 3.64 2.29 6.72 5.47 7.81.4.08.55-.18.55-.4 0-.2-.01-.86-.01-1.56-2.01.38-2.53-.5-2.69-.96-.09-.24-.48-.96-.82-1.15-.28-.16-.68-.55-.01-.56.63-.01 1.08.6 1.23.85.72 1.25 1.87.9 2.33.69.07-.54.28-.9.51-1.11-1.78-.21-3.64-.92-3.64-4.07 0-.9.31-1.64.82-2.22-.08-.21-.36-1.05.08-2.19 0 0 .67-.22 2.2.85A7.43 7.43 0 0 1 8 3.94c.68 0 1.36.09 2 .28 1.52-1.07 2.19-.85 2.19-.85.44 1.14.16 1.98.08 2.19.51.58.82 1.32.82 2.22 0 3.16-1.87 3.86-3.65 4.07.29.26.54.76.54 1.54 0 1.11-.01 2.01-.01 2.28 0 .22.15.48.55.4A8.13 8.13 0 0 0 16 8.24C16 3.69 12.42 0 8 0Z"})}):n.provider==="gitlab"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"m22.75 9.77-.03-.08-2.17-6.69a.57.57 0 0 0-.55-.39.58.58 0 0 0-.52.35l-1.47 4.48H5.99L4.52 2.96A.58.58 0 0 0 4 2.61a.57.57 0 0 0-.55.39L1.28 9.69l-.03.08a1.54 1.54 0 0 0 .51 1.73l.01.01 10.22 7.43 10.24-7.44.01-.01a1.54 1.54 0 0 0 .51-1.72Z"})}):n.provider==="bitbucket"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M2.19 3.25a.77.77 0 0 0-.76.89l2.7 16.42a1.02 1.02 0 0 0 1 .86H18.9a1.02 1.02 0 0 0 1-.82l2.69-16.46a.77.77 0 0 0-.76-.89H2.19Zm13.36 10.71H9.46l-1.1-5.83h8.25l-1.06 5.83Z"})}):null}function X1(n){return n==="github"||n==="gitlab"||n==="bitbucket"}function Z1(n){const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const r=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()),u=Math.round((r-a.getTime())/6e4),s=u>=0?"+":"-",c=String(Math.floor(Math.abs(u)/60)).padStart(2,"0"),f=String(Math.abs(u)%60).padStart(2,"0");return`${new Date(a.getTime()+u*60*1e3).toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")} ${s}${c}:${f}`}function $1(n){var f;const{manifest:a}=jn(),u=$t().pathname.match(/^\/sets\/([^/]+)/),s=u?decodeURIComponent(u[1]):void 0,c=!a.sets||!!s;return h.jsxs("div",{className:Pp.page,children:[h.jsx("header",{className:"bg-header",children:h.jsxs("nav",{className:"mx-auto flex max-w-5xl items-center justify-between gap-4 px-3 py-3 sm:px-4",children:[h.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:h.jsxs(Pi,{to:"/",className:["flex min-w-0 max-w-full items-center gap-2.5 rounded-lg py-1 pr-2 outline-none","ring-offset-2 ring-offset-header focus-visible:ring-2 focus-visible:ring-header-text"].join(" "),"aria-label":"Messagevisor Catalog home",children:[h.jsx("img",{src:U1,alt:"",width:32,height:32,className:"h-8 w-8 shrink-0 object-contain",decoding:"async"}),h.jsx("img",{src:H1,alt:"",className:"h-auto max-h-4 min-w-0 shrink object-contain object-left pl-2",decoding:"async"})]})}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(K1,{currentSetKey:s}),((f=a.links)==null?void 0:f.repository)&&X1(a.links.provider)&&h.jsx("a",{href:a.links.repository,target:"_blank",rel:"noreferrer",className:"rounded-lg px-3 py-2 text-header-text hover:bg-header-active","aria-label":`Open ${a.links.provider||"repository"}`,children:h.jsx(G1,{provider:a.links.provider})})]})]})}),h.jsx("main",{className:Pp.pageShell,children:h.jsxs("div",{className:c?"items-start gap-6 md:flex":"",children:[c&&h.jsx(Y1,{setKey:s}),h.jsxs("div",{className:["min-w-0",c?"flex-1":"w-full"].filter(Boolean).join(" "),children:[h.jsx("section",{className:"overflow-hidden rounded-lg bg-surface shadow",children:n.children}),h.jsxs("footer",{className:"mt-4 pt-3 text-center",children:[h.jsxs("p",{className:"pb-2 text-xs leading-5 text-faint",children:["Generated at ",Z1(a.generatedAt)]}),h.jsxs("p",{className:"pb-5 text-xs font-medium leading-5 text-muted",children:["Built using"," ",h.jsx("a",{target:"_blank",rel:"noreferrer",href:"https://messagevisor.com",className:"font-semibold hover:underline",children:"Messagevisor"})]})]})]})]})})]})}function F1(){const{manifest:n}=jn();if(!n.sets)return h.jsx(Xn,{to:"/messages",replace:!0});const a=n.setKeys[0];return h.jsx(Xn,{to:a?`/sets/${Et(a)}/messages`:"/history",replace:!0})}const J1={neutral:"border-pill bg-pill text-text",success:"border-success-outline bg-success-surface text-text",warning:"border-warning-outline bg-warning-surface text-text",danger:"border-danger-outline bg-danger-surface text-danger",primary:"border-pill bg-pill text-text"};function sn(n){return h.jsx("span",{className:`inline-flex rounded-full border px-2 py-0.5 text-xs font-medium ${J1[n.tone||"neutral"]}`,children:n.children})}function Va(n){return h.jsxs("div",{className:"mx-6 rounded border-2 border-warning-outline bg-warning-surface p-4 text-center text-text",children:[h.jsx("p",{className:"font-medium",children:n.title}),n.description&&h.jsx("p",{className:"mt-1 text-sm text-muted",children:n.description})]})}function Pu({className:n="",...a}){return h.jsx("input",{className:`w-full rounded-full border border-border bg-surface px-5 py-2 text-xl text-text outline-none placeholder:text-placeholder focus:border-primary ${n}`,...a})}function Ny({className:n="",...a}){return h.jsx("button",{className:`rounded border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background ${n}`,...a})}function I1(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P1(n){const a=Array.isArray(n)?n:[n];return Array.from(new Set(a.map(r=>r.trim()).filter(r=>r.length>0))).sort((r,u)=>u.length-r.length)}function qe(n){const a=P1(n.query);if(a.length===0)return h.jsx(h.Fragment,{children:n.text});const r=new RegExp(a.map(I1).join("|"),"gi"),u=[];let s=0,c=0;for(const f of n.text.matchAll(r))f.index!==void 0&&f.index>s&&u.push(n.text.slice(s,f.index)),f.index!==void 0&&(u.push(h.jsx(Ty,{children:f[0]},`hm-${f.index}-${c++}`)),s=f.index+f[0].length);return s<n.text.length&&u.push(n.text.slice(s)),h.jsx(h.Fragment,{children:u})}function Ty(n){return h.jsx("mark",{className:["rounded-[3px] bg-amber-100 px-0.5 py-px text-inherit","shadow-[inset_0_-2px_0_0_rgba(251,191,36,0.35)] ring-1 ring-amber-400/25 ring-inset","transition-[background-color,box-shadow] duration-150"].join(" "),children:n.children})}function W1(n,a){const r=n.toLowerCase(),u=[];for(const s of a){const c=s.trim().toLowerCase();if(!c)continue;let f=r.indexOf(c);for(;f!==-1;)u.push({start:f,end:f+c.length}),f=r.indexOf(c,f+c.length)}return u.sort((s,c)=>s.start-c.start||c.end-s.end).reduce((s,c)=>{const f=s[s.length-1];return!f||c.start>f.end?s.push({...c}):f.end=Math.max(f.end,c.end),s},[])}function Ru(n){return n.split(".").flatMap((a,r,u)=>{const s=[a];return r<u.length-1&&s.push(h.jsxs(T.Fragment,{children:[".",h.jsx("wbr",{})]},`dot-${r}`)),s})}function eS(n,a){const r=W1(n,a);if(r.length===0)return Ru(n);const u=[];let s=0;return r.forEach((c,f)=>{c.start>s&&u.push(h.jsx(T.Fragment,{children:Ru(n.slice(s,c.start))},`text-${s}`)),u.push(h.jsx(Ty,{children:Ru(n.slice(c.start,c.end))},`highlight-${c.start}-${f}`)),s=c.end}),s<n.length&&u.push(h.jsx(T.Fragment,{children:Ru(n.slice(s))},`text-${s}`)),u}function wl(n){const a=n.highlightQuery||[];return h.jsx("span",{className:["inline leading-snug [overflow-wrap:anywhere]",n.className||""].join(" "),children:eS(n.value,a)})}const eg=1e3,_c=10;function tS(n){const a=[];let r="",u=!1;for(const s of n)s==='"'?(u=!u,r+=s):s===" "&&!u?(r&&a.push(r),r=""):r+=s;return r&&a.push(r),a}function tr(n){const a=[],r=[];for(const u of tS(n.trim())){const s=u.indexOf(":");if(s>0){const c=u.slice(0,s).toLowerCase();let f=u.slice(s+1);f.startsWith('"')&&f.endsWith('"')&&f.length>2&&(f=f.slice(1,-1)),f&&r.push({key:c,value:f})}else a.push(u.toLowerCase())}return{freeText:a,qualifiers:r}}const nS=450;function lS(n,a,r,u){var g;const{freeText:s,qualifiers:c}=a;if(s.length>0){const m=n.key.toLowerCase();if(!s.every(x=>m.includes(x)))return!1}const f=c.some(m=>m.key==="has"&&m.value==="overrides"),p=c.filter(m=>m.key==="locale").map(m=>m.value.toLowerCase());for(const m of c)switch(m.key){case"description":{if(!(n.description||"").toLowerCase().includes(m.value.toLowerCase()))return!1;break}case"target":{if(!(n.targets||[]).map(b=>b.toLowerCase()).includes(m.value.toLowerCase()))return!1;break}case"is":{if(m.value==="deprecated"&&!n.deprecated||m.value==="archived"&&!n.archived)return!1;break}case"has":{if(m.value==="overrides"){if(p.length>0){const x=(n.overrideLocales||[]).map(b=>b.toLowerCase());if(!p.every(b=>x.includes(b)))return!1}else if(!((g=n.overrideLocales)!=null&&g.length))return!1}break}case"locale":{if(!f&&!(n.locales||[]).map(b=>b.toLowerCase()).includes(m.value.toLowerCase()))return!1;break}case"translation":{if(!u)break;if(m.value.length<3||!r)return!0;const x=r[n.key];if(!x||x.length===0)return!1;if(m.value.length===3)break;const b=m.value.toLowerCase();if(!x.some(w=>w.includes(b)))return!1;break}}return!0}function Cy(n,a,r,u){const s=a,c=r;return n==="message"?[...u?['translation:"keyword"']:[],...s?[`target:${s}`]:[],...c?[`locale:${c}`]:[],'description:"keyword"',"has:overrides",...c?[`has:overrides locale:${c}`]:["has:overrides"],"is:deprecated","is:archived"]:null}function aS({type:n,query:a,firstTargetKey:r,firstLocaleKey:u,translationSearchEnabled:s,onHintClick:c}){const f=Cy(n,r,u,s);return f?h.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 pt-2 text-xs text-muted",children:[h.jsx("span",{className:"shrink-0",children:"Try:"}),f.map(p=>{const g=a.trim().split(/\s+/).some(m=>m.toLowerCase()===p.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>c(p),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",g?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:p},p)})]}):null}function iS(n){return h.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.archived&&h.jsx(sn,{tone:"danger",children:"archived"}),n.deprecated&&h.jsx(sn,{tone:"warning",children:"deprecated"})]})}function rS(n){if(!n.entity.lastModified)return h.jsx("span",{children:"Last modified n/a"});const a=new Date(n.entity.lastModified.timestamp),r=Number.isNaN(a.getTime())?n.entity.lastModified.timestamp:new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(a);return h.jsxs("span",{children:["Last modified by"," ",h.jsx("span",{className:"font-semibold",children:h.jsx(qe,{text:n.entity.lastModified.author,query:n.highlightQuery})})," ","on ",h.jsx(qe,{text:r,query:n.highlightQuery})]})}function uS(n,a){return n==="target"?[`${a.messageCount||0} ${a.messageCount===1?"message":"messages"}`]:a.targets||[]}function Oc(n){return Array.from(new Set(n.map(a=>a.trim()).filter(Boolean)))}function sS(n){const a=tr(n),r=Oc(a.freeText),u=Oc(a.qualifiers.filter(c=>c.key==="description").map(c=>c.value)),s=Oc(a.qualifiers.filter(c=>c.key==="target"||c.key==="locale").map(c=>c.value));return{key:r,description:u,relationship:s,lastModified:r}}function oS(n){return!n||n==="name"||n==="name:asc"||n==="asc"?"asc":n==="-name"||n==="name:desc"||n==="desc"?"desc":"asc"}function Mc(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}const cS=T.memo(function({type:a,query:r,firstTargetKey:u,firstLocaleKey:s,translationSearchEnabled:c,onQueryCommit:f,onHintClick:p}){const[g,m]=T.useState(r),[x,b]=T.useState(!1),w=T.useRef(null),S=T.useRef(null),z=T.useRef(null),R=T.useRef(null),U=Cy(a,u,s,c)!==null,k=T.useCallback(()=>{w.current&&(clearTimeout(w.current),w.current=null),S.current!==null&&"cancelIdleCallback"in window&&(window.cancelIdleCallback(S.current),S.current=null),z.current!==null&&(window.cancelAnimationFrame(z.current),z.current=null),R.current&&(clearTimeout(R.current),R.current=null)},[]),$=T.useCallback(I=>{if("requestIdleCallback"in window){S.current=window.requestIdleCallback(()=>{S.current=null,f(I)},{timeout:700});return}z.current=window.requestAnimationFrame(()=>{z.current=null,R.current=setTimeout(()=>{R.current=null,f(I)},0)})},[f]),L=T.useCallback(I=>{k(),w.current=setTimeout(()=>{w.current=null,$(I)},nS)},[k,$]),ee=T.useCallback(I=>{k(),f(I)},[k,f]);return T.useEffect(()=>{k(),m(r)},[r,k]),T.useEffect(()=>()=>{k()},[k]),h.jsxs("div",{children:[h.jsxs("div",{className:"relative",children:[h.jsx(Pu,{value:g,onChange:I=>{const H=I.target.value;m(H),L(H)},onBlur:I=>{ee(I.target.value)},onKeyDown:I=>{I.key==="Enter"&&ee(I.currentTarget.value)},placeholder:`Search ${Zn[a].plural.toLowerCase()}...`,className:U?"pr-10":""}),U&&h.jsx("button",{type:"button",onClick:()=>b(I=>!I),"aria-label":x?"Hide advanced search hints":"Show advanced search hints",className:["absolute right-3 top-1/2 -translate-y-1/2 flex h-5 w-5 items-center justify-center rounded-full border text-xs font-bold transition-colors",x?"border-primary bg-primary/10 text-primary":"border-border bg-surface text-muted hover:border-primary hover:text-primary"].join(" "),children:"?"})]}),h.jsx("div",{className:["grid transition-all duration-200 ease-in-out",x?"grid-rows-[1fr]":"grid-rows-[0fr]"].join(" "),children:h.jsx("div",{className:"overflow-hidden pl-5",children:h.jsx(aS,{type:a,query:r,firstTargetKey:u,firstLocaleKey:s,translationSearchEnabled:c,onHintClick:p})})})]})});function fS(n){var Y,le,P,te,xe,ue;const[a,r]=$n(),[u,s]=T.useState(!1),[c,f]=T.useState(null),[p,g]=T.useState(null),m=T.useRef(null),x=a.get("q")||"",b=T.useRef(a);T.useEffect(()=>{b.current=a},[a]);const w=T.useCallback(X=>{const O=X.trim()?X:void 0;(b.current.get("q")||"")!==(O||"")&&T.startTransition(()=>{r(Mc(b.current,"q",O))})},[r]);T.useEffect(()=>()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]);const S=(P=(le=(Y=n.allEntities)==null?void 0:Y.target)==null?void 0:le.find(X=>!X.archived))==null?void 0:P.key,z=(ue=(xe=(te=n.allEntities)==null?void 0:te.locale)==null?void 0:xe.find(X=>!X.archived))==null?void 0:ue.key,R=n.translationSearchEnabled===!0,U=tr(x).qualifiers.find(X=>X.key==="translation"),k=R&&U&&U.value.length>=3?U.value.slice(0,3).toLowerCase():null;T.useEffect(()=>{if(m.current&&clearTimeout(m.current),!k){f(null),g(null);return}if(k!==p)return m.current=setTimeout(()=>{m.current=null,L1(k,n.setKey).then(X=>{f(X),g(k)})},300),()=>{m.current&&(clearTimeout(m.current),m.current=null)}},[k,p,n.setKey]);const $=oS(a.get("sort")),L=p===k?c:null,ee=T.useMemo(()=>sS(x),[x]),I=T.useMemo(()=>{const X=tr(x),O=x.trim().length>0;return n.entities.filter(ie=>O?lS(ie,X,L,R):!0).slice().sort((ie,ye)=>{const E=ie.key.localeCompare(ie.key===ye.key?"":ye.key);return $==="desc"?E*-1:E})},[x,n.entities,$,L,R]),H=u?I:I.slice(0,eg),F=I.length>eg&&!u;T.useEffect(()=>{s(!1)},[x,$,n.type,n.setKey]);function oe(X){const O=x.trim(),J=O.split(/\s+/).filter(Boolean),ie=J.findIndex(E=>E.toLowerCase()===X.toLowerCase()),ye=ie!==-1?J.filter((E,C)=>C!==ie).join(" "):O?`${O} ${X}`:X;r(Mc(b.current,"q",ye||void 0))}return h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"px-6 pt-1",children:h.jsxs("div",{className:"grid gap-3 md:grid-cols-[minmax(0,1fr)_auto]",children:[h.jsx(cS,{type:n.type,query:x,firstTargetKey:S,firstLocaleKey:z,translationSearchEnabled:R,onQueryCommit:w,onHintClick:oe}),h.jsxs("button",{type:"button",className:"inline-flex h-[46px] w-fit max-w-full cursor-pointer items-center gap-2 self-start rounded-full border border-border bg-surface px-3 py-2 text-left text-sm font-semibold text-muted outline-none focus-visible:ring-2 focus-visible:ring-ring md:justify-self-end",onClick:()=>r(Mc(a,"sort",$==="desc"?void 0:"-name")),"aria-label":$==="desc"?"Sorted Z-A by name. Activate to sort A-Z.":"Sorted A-Z by name. Activate to sort Z-A.",children:[h.jsx("span",{children:"Sort"}),h.jsx("span",{className:"whitespace-nowrap font-bold text-text",children:$==="desc"?"Z-A":"A-Z"})]})]})}),I.length===0&&h.jsx(Va,{title:"No results found"}),h.jsx("div",{className:"divide-y divide-border bg-surface",children:H.map(X=>h.jsx(Ge,{to:Pe(n.type,X.key,n.setKey),className:"block px-6 py-3 hover:bg-elevated",children:h.jsx("div",{className:"flex flex-col justify-between gap-3 md:flex-row md:items-start",children:h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex flex-col justify-between gap-2 md:flex-row md:items-start",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx(wl,{value:X.key,className:"text-sm font-semibold text-primary",highlightQuery:ee.key}),h.jsx("div",{className:"mt-1 truncate text-sm text-muted",children:h.jsx(qe,{text:X.description||"No description",query:ee.description})})]}),h.jsx("div",{className:"shrink-0",children:iS(X)})]}),h.jsxs("div",{className:"mt-2 flex flex-col gap-2 text-xs text-muted md:flex-row md:items-center md:justify-between",children:[h.jsx("div",{className:"flex flex-wrap gap-2",children:uS(n.type,X).map(O=>h.jsx(sn,{children:h.jsx(qe,{text:O,query:ee.relationship})},O))}),h.jsx("span",{className:"shrink-0 md:text-right",children:h.jsx(rS,{entity:X,highlightQuery:ee.lastModified})})]})]})})},X.key))}),h.jsxs("div",{className:"space-y-4 px-6 pb-6",children:[h.jsxs("p",{className:"text-center text-sm text-muted",children:[H.length," of ",I.length," ",Zn[n.type].plural.toLowerCase(),I.length!==n.entities.length?` (${n.entities.length} total)`:""]}),F&&h.jsx("div",{className:"flex justify-center",children:h.jsxs(Ny,{onClick:()=>s(!0),children:["Load all ",I.length," ",Zn[n.type].plural.toLowerCase()]})})]})]})}function wf(n){return h.jsxs("div",{className:"mb-6 flex flex-col justify-between gap-4 border-b border-border px-6 pb-4 pt-8 md:flex-row md:items-start",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("h1",{className:"min-w-0 text-3xl font-black text-text [overflow-wrap:anywhere]",children:n.title}),n.description&&h.jsx("div",{className:"mt-2 min-w-0 text-sm text-muted [overflow-wrap:anywhere]",children:n.description})]}),n.actions?h.jsx("div",{className:"shrink-0",children:n.actions}):null]})}function dS(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function tg(){var g;const{entityPath:n,setKey:a}=Fu(),{manifest:r}=jn(),[u,s]=T.useState(null),[c,f]=T.useState(null);if(T.useEffect(()=>{s(null),f(null),Sf(a).then(s).catch(m=>f(m.message))},[a]),!dS(n))return h.jsx(Xn,{to:"locales",replace:!0});const p=Wi[n];return c?h.jsx(Va,{title:"Unable to load catalog index",description:c}):u?h.jsxs("div",{children:[h.jsx(wf,{title:Zn[p].plural}),h.jsx(fS,{type:p,entities:u.entities[p],setKey:a,allEntities:u.entities,translationSearchEnabled:((g=r.features)==null?void 0:g.translationSearch)===!0})]}):h.jsxs("div",{className:"text-muted",children:["Loading ",Zn[p].plural.toLowerCase(),"..."]})}function hS(n){const a=n%100;if(a>=11&&a<=13)return`${n}th`;switch(n%10){case 1:return`${n}st`;case 2:return`${n}nd`;case 3:return`${n}rd`;default:return`${n}th`}}function mS(n){var m;const u=(m=new Intl.DateTimeFormat(void 0,{timeZoneName:"short"}).formatToParts(n).find(x=>x.type==="timeZoneName"))==null?void 0:m.value;if(u&&u.trim())return u;const s=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),c=Math.round((s-n.getTime())/6e4),f=c>=0?"+":"-",p=String(Math.floor(Math.abs(c)/60)).padStart(2,"0"),g=String(Math.abs(c)%60).padStart(2,"0");return`UTC${f}${p}:${g}`}function pS(n){var m,x,b,w,S,z;const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const r=new Intl.DateTimeFormat(void 0,{month:"long",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),u=(m=r.find(R=>R.type==="month"))==null?void 0:m.value,s=(x=r.find(R=>R.type==="day"))==null?void 0:x.value,c=(b=r.find(R=>R.type==="year"))==null?void 0:b.value,f=(w=r.find(R=>R.type==="hour"))==null?void 0:w.value,p=(S=r.find(R=>R.type==="minute"))==null?void 0:S.value,g=(z=r.find(R=>R.type==="second"))==null?void 0:z.value;return!u||!s||!c||!f||!p||!g?n:`${u} ${hS(Number(s))}, ${c} at ${f}:${p}:${g} ${mS(a)}`}function gS(n){var c;const[a,r]=T.useState(!1),u=n.entry.entities.length>_c,s=a?n.entry.entities:n.entry.entities.slice(0,_c);return h.jsxs("li",{className:"rounded-lg border border-border bg-surface p-4 shadow-sm ring-1 ring-black/5",children:[h.jsxs("div",{className:"text-sm",children:[h.jsx("span",{className:"font-semibold",children:n.entry.author})," ",h.jsx("a",{className:"text-primary hover:underline",href:((c=n.commitUrl)==null?void 0:c.replace("{{hash}}",n.entry.commit))||`#${n.entry.commit}`,target:"_blank",rel:"noreferrer",children:pS(n.entry.timestamp)})]}),h.jsx("ul",{className:"mt-3 list-inside list-disc space-y-1 text-sm text-muted",children:s.map(f=>h.jsxs("li",{className:"[overflow-wrap:anywhere]",children:[f.type!=="test"?Zn[f.type].singular:"Test"," ",f.type!=="test"?h.jsx(Ge,{className:"font-medium text-primary hover:underline",to:Pe(f.type,f.key,f.set||n.setKey),children:h.jsx(wl,{value:f.key,className:"font-medium"})}):h.jsx(wl,{value:f.key,className:"font-medium"})]},`${f.type}-${f.key}`))}),u&&h.jsx("button",{type:"button",onClick:()=>r(f=>!f),className:"mt-3 text-sm font-semibold text-primary hover:underline",children:a?"See less":`See more (${n.entry.entities.length-_c} more)`})]},`${n.entry.commit}-${n.entry.timestamp}`)}function Ay(n){const[a,r]=T.useState([]),[u,s]=T.useState(0),[c,f]=T.useState(1),[p,g]=T.useState(null);async function m(x){try{const b=await O1(n.path,x);r(w=>[...w,...b.entries]),s(b.page),f(b.totalPages)}catch(b){g(b.message)}}return T.useEffect(()=>{r([]),s(0),f(1),g(null),m(1)},[n.path]),p?h.jsx(Va,{title:"History unavailable",description:p}):a.length===0&&u>0?h.jsx(Va,{title:"No history found"}):h.jsxs("div",{className:"space-y-4",children:[h.jsx("ol",{className:"space-y-4",children:a.map(x=>h.jsx(gS,{entry:x,setKey:n.setKey,commitUrl:n.commitUrl},`${x.commit}-${x.timestamp}`))}),u<c&&h.jsx(Ny,{onClick:()=>m(u+1),className:"w-full",children:"Load more"})]})}function ng(){var u;const{manifest:n}=jn(),{setKey:a}=Fu(),r=a?`/data/sets/${Et(a)}/history`:"/data/project/history";return h.jsxs("div",{children:[h.jsx(wf,{title:a?`History for ${a}`:"Project History",description:"Recent Git changes for authored definitions."}),h.jsx("div",{className:"px-6 pb-6",children:h.jsx(Ay,{path:r,setKey:a,commitUrl:(u=n.links)==null?void 0:u.commit})})]})}function yS(n){return h.jsxs("div",{children:[h.jsx("nav",{className:"border-b border-border",children:n.tabs.map(a=>h.jsx(Pi,{to:a.to,end:a.end,className:({isActive:r})=>["inline-block min-w-28 border-b-2 px-3 pb-4 pt-2 text-center text-sm font-medium",r?"border-primary text-primary":"border-transparent text-muted hover:border-border hover:text-text"].join(" "),children:a.label},a.to))}),h.jsx("div",{className:"px-6 py-6",children:n.children})]})}function ur(n){return h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:typeof n.value=="string"?n.value:JSON.stringify(n.value,null,2)})}const xS={neutral:{label:"bg-elevated text-muted",value:"bg-surface text-text",link:"text-primary hover:underline"},inheritance:{label:"bg-elevated text-muted",value:"bg-surface text-text",link:"text-primary hover:underline"},override:{label:"bg-pill text-text",value:"bg-surface text-text",link:"text-primary hover:underline"}};function nr(n){const a=xS[n.tone||"neutral"],r=n.to?h.jsx(Ge,{to:n.to,className:`font-medium ${a.link}`,children:n.value}):h.jsx("span",{className:"font-medium text-text",children:n.value});return h.jsxs("span",{className:["inline-flex overflow-hidden rounded-md border border-border shadow-sm",n.compact?"text-[10px] leading-4":"text-xs"].join(" "),children:[h.jsx("span",{className:`${n.compact?"px-1.5 py-px":"px-2 py-1"} ${a.label}`,children:n.label}),h.jsx("span",{className:`${n.compact?"px-1.5 py-px":"px-2 py-1"} ${a.value}`,children:r})]})}function bS(n){return h.jsx("dl",{className:"grid grid-cols-1 gap-x-4 gap-y-8 md:grid-cols-2",children:n.fields.map(a=>h.jsxs("div",{className:a.fullWidth?"md:col-span-2":"",children:[h.jsx("dt",{className:"text-sm font-medium text-muted",children:a.label}),h.jsx("dd",{className:"mt-1 min-w-0 text-sm [overflow-wrap:anywhere]",children:a.value||"n/a"})]},a.label))})}function Jc(n){return typeof n>"u"?"":n===null?"null":Array.isArray(n)?n.map(a=>Jc(a)).join(", "):typeof n=="object"?JSON.stringify(n):String(n)}function vS(n){return n.split(".")[0]}function SS(n){if("attribute"in n.condition){const a=String(n.condition.attribute);return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"primary",children:"attribute"}),h.jsx(Ge,{to:Pe("attribute",vS(a),n.setKey),className:"font-semibold text-primary hover:underline",children:a}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator}),"value"in n.condition&&h.jsx("span",{className:"text-muted",children:Jc(n.condition.value)})]})})}return"feature"in n.condition?h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"success",children:"feature"}),h.jsx("span",{className:"font-semibold text-text",children:String(n.condition.feature)}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator})]})}):"experiment"in n.condition?h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"warning",children:"experiment"}),h.jsx("span",{className:"font-semibold text-text",children:String(n.condition.experiment)}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator}),h.jsx("span",{className:"text-muted",children:Jc(n.condition.value)})]})}):h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm text-muted shadow-sm",children:"Unsupported condition"})}function ky(n){const a=n.condition;if(typeof a=="string")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:a==="*"?"Everyone":a});if("and"in a||"or"in a||"not"in a){const r="and"in a?"and":"or"in a?"or":"not",u=a[r];return h.jsxs("div",{className:"rounded-lg border border-border bg-elevated p-4",children:[h.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[h.jsx(sn,{tone:"neutral",children:r.toUpperCase()}),h.jsxs("span",{className:"text-sm text-muted",children:[u.length," branch",u.length===1?"":"es"]})]}),h.jsx("div",{className:"ml-3 space-y-3 border-l border-border pl-4",children:u.map((s,c)=>h.jsx(ky,{condition:s,setKey:n.setKey},`${r}-${c}`))})]})}return h.jsx(SS,{condition:a,setKey:n.setKey})}function jf(n){if(!n.conditions)return h.jsx("p",{className:"text-sm text-muted",children:"No conditions found."});if(n.conditions==="*")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:"Everyone"});const a=Array.isArray(n.conditions)?n.conditions:[n.conditions];return h.jsx("div",{className:"space-y-3",children:a.map((r,u)=>h.jsx(ky,{condition:r,setKey:n.setKey},u))})}function wS(n){return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"primary",children:"segment"}),h.jsx(Ge,{to:Pe("segment",n.segmentKey,n.setKey),className:"font-semibold text-primary hover:underline",children:h.jsx(wl,{value:n.segmentKey,className:"font-semibold"})})]})})}function zy(n){if(typeof n.segment=="string")return h.jsx(wS,{segmentKey:n.segment,setKey:n.setKey});const a="and"in n.segment?"and":"or"in n.segment?"or":"not",r=n.segment[a];return h.jsxs("div",{className:"rounded-lg border border-border bg-elevated p-4",children:[h.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[h.jsx(sn,{tone:"neutral",children:a.toUpperCase()}),h.jsxs("span",{className:"text-sm text-muted",children:[r.length," branch",r.length===1?"":"es"]})]}),h.jsx("div",{className:"ml-3 space-y-3 border-l border-border pl-4",children:r.map((u,s)=>h.jsx(zy,{segment:u,setKey:n.setKey},`${a}-${s}`))})]})}function Ry(n){if(!n.segments)return h.jsx("p",{className:"text-sm text-muted",children:"No segments found."});if(n.segments==="*")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:"Everyone"});const a=Array.isArray(n.segments)?n.segments:[n.segments];return h.jsx("div",{className:"space-y-3",children:a.map((r,u)=>h.jsx(zy,{segment:r,setKey:n.setKey},u))})}function jS(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const ES=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,TS={};function lg(n,a){return(TS.jsx?NS:ES).test(n)}const CS=/[ \t\n\f\r]/g;function AS(n){return typeof n=="object"?n.type==="text"?ag(n.value):!1:ag(n)}function ag(n){return n.replace(CS,"")===""}class sr{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}sr.prototype.normal={};sr.prototype.property={};sr.prototype.space=void 0;function _y(n,a){const r={},u={};for(const s of n)Object.assign(r,s.property),Object.assign(u,s.normal);return new sr(r,u,a)}function Ic(n){return n.toLowerCase()}class Dt{constructor(a,r){this.attribute=r,this.property=a}}Dt.prototype.attribute="";Dt.prototype.booleanish=!1;Dt.prototype.boolean=!1;Dt.prototype.commaOrSpaceSeparated=!1;Dt.prototype.commaSeparated=!1;Dt.prototype.defined=!1;Dt.prototype.mustUseProperty=!1;Dt.prototype.number=!1;Dt.prototype.overloadedBoolean=!1;Dt.prototype.property="";Dt.prototype.spaceSeparated=!1;Dt.prototype.space=void 0;let kS=0;const Se=Gl(),ut=Gl(),Pc=Gl(),W=Gl(),Qe=Gl(),Ba=Gl(),Kt=Gl();function Gl(){return 2**++kS}const Wc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:ut,commaOrSpaceSeparated:Kt,commaSeparated:Ba,number:W,overloadedBoolean:Pc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Dc=Object.keys(Wc);class Ef extends Dt{constructor(a,r,u,s){let c=-1;if(super(a,r),ig(this,"space",s),typeof u=="number")for(;++c<Dc.length;){const f=Dc[c];ig(this,Dc[c],(u&Wc[f])===Wc[f])}}}Ef.prototype.defined=!0;function ig(n,a,r){r&&(n[a]=r)}function Za(n){const a={},r={};for(const[u,s]of Object.entries(n.properties)){const c=new Ef(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,r[Ic(u)]=u,r[Ic(c.attribute)]=u}return new sr(a,r,n.space)}const Oy=Za({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Qe,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:W,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Qe,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:ut,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function My(n,a){return a in n?n[a]:a}function Dy(n,a){return My(n,a.toLowerCase())}const zS=Za({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ba,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Qe,autoFocus:Se,autoPlay:Se,blocking:Qe,capture:null,charSet:null,checked:Se,cite:null,className:Qe,cols:W,colSpan:null,content:null,contentEditable:ut,controls:Se,controlsList:Qe,coords:W|Ba,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:Pc,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:Qe,height:W,hidden:Pc,high:W,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:Se,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:W,pattern:null,ping:Qe,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:Qe,required:Se,reversed:Se,rows:W,rowSpan:W,sandbox:Qe,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:ut,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:Dy}),RS=Za({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:Kt,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Qe,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Ba,g2:Ba,glyphName:Ba,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,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:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:My}),Ly=Za({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),By=Za({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Dy}),Uy=Za({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),_S={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"},OS=/[A-Z]/g,rg=/-[a-z]/g,MS=/^data[-\w.:]+$/i;function DS(n,a){const r=Ic(a);let u=a,s=Dt;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&MS.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(rg,BS);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!rg.test(c)){let f=c.replace(OS,LS);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=Ef}return new s(u,a)}function LS(n){return"-"+n.toLowerCase()}function BS(n){return n.charAt(1).toUpperCase()}const US=_y([Oy,zS,Ly,By,Uy],"html"),Nf=_y([Oy,RS,Ly,By,Uy],"svg");function HS(n){return n.join(" ").trim()}var Ma={},Lc,ug;function qS(){if(ug)return Lc;ug=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,p=/^\s+|\s+$/g,g=`
|
|
61
|
+
`,m="/",x="*",b="",w="comment",S="declaration";function z(U,k){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];k=k||{};var $=1,L=1;function ee(ue){var X=ue.match(a);X&&($+=X.length);var O=ue.lastIndexOf(g);L=~O?ue.length-O:L+ue.length}function I(){var ue={line:$,column:L};return function(X){return X.position=new H(ue),Y(),X}}function H(ue){this.start=ue,this.end={line:$,column:L},this.source=k.source}H.prototype.content=U;function F(ue){var X=new Error(k.source+":"+$+":"+L+": "+ue);if(X.reason=ue,X.filename=k.source,X.line=$,X.column=L,X.source=U,!k.silent)throw X}function oe(ue){var X=ue.exec(U);if(X){var O=X[0];return ee(O),U=U.slice(O.length),X}}function Y(){oe(r)}function le(ue){var X;for(ue=ue||[];X=P();)X!==!1&&ue.push(X);return ue}function P(){var ue=I();if(!(m!=U.charAt(0)||x!=U.charAt(1))){for(var X=2;b!=U.charAt(X)&&(x!=U.charAt(X)||m!=U.charAt(X+1));)++X;if(X+=2,b===U.charAt(X-1))return F("End of comment missing");var O=U.slice(2,X-2);return L+=2,ee(O),U=U.slice(X),L+=2,ue({type:w,comment:O})}}function te(){var ue=I(),X=oe(u);if(X){if(P(),!oe(s))return F("property missing ':'");var O=oe(c),J=ue({type:S,property:R(X[0].replace(n,b)),value:O?R(O[0].replace(n,b)):b});return oe(f),J}}function xe(){var ue=[];le(ue);for(var X;X=te();)X!==!1&&(ue.push(X),le(ue));return ue}return Y(),xe()}function R(U){return U?U.replace(p,b):b}return Lc=z,Lc}var sg;function YS(){if(sg)return Ma;sg=1;var n=Ma&&Ma.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.default=r;const a=n(qS());function r(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,a.default)(u),p=typeof s=="function";return f.forEach(g=>{if(g.type!=="declaration")return;const{property:m,value:x}=g;p?s(m,x,g):x&&(c=c||{},c[m]=x)}),c}return Ma}var Gi={},og;function VS(){if(og)return Gi;og=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||r.test(m)||n.test(m)},f=function(m,x){return x.toUpperCase()},p=function(m,x){return"".concat(x,"-")},g=function(m,x){return x===void 0&&(x={}),c(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(s,p):m=m.replace(u,p),m.replace(a,f))};return Gi.camelCase=g,Gi}var Xi,cg;function QS(){if(cg)return Xi;cg=1;var n=Xi&&Xi.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(YS()),r=VS();function u(s,c){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(p,g){p&&g&&(f[(0,r.camelCase)(p,c)]=g)}),f}return u.default=u,Xi=u,Xi}var KS=QS();const GS=Ig(KS),Hy=qy("end"),Tf=qy("start");function qy(n){return a;function a(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function XS(n){const a=Tf(n),r=Hy(n);if(a&&r)return{start:a,end:r}}function Fi(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?fg(n.position):"start"in n||"end"in n?fg(n):"line"in n||"column"in n?ef(n):""}function ef(n){return dg(n&&n.line)+":"+dg(n&&n.column)}function fg(n){return ef(n&&n.start)+"-"+ef(n&&n.end)}function dg(n){return n&&typeof n=="number"?n:1}class vt extends Error{constructor(a,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let s="",c={},f=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof a=="string"?s=a:!c.cause&&a&&(f=!0,s=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof u=="string"){const g=u.indexOf(":");g===-1?c.ruleId=u:(c.source=u.slice(0,g),c.ruleId=u.slice(g+1))}if(!c.place&&c.ancestors&&c.ancestors){const g=c.ancestors[c.ancestors.length-1];g&&(c.place=g.position)}const p=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=p?p.line:void 0,this.name=Fi(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=f&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}vt.prototype.file="";vt.prototype.name="";vt.prototype.reason="";vt.prototype.message="";vt.prototype.stack="";vt.prototype.column=void 0;vt.prototype.line=void 0;vt.prototype.ancestors=void 0;vt.prototype.cause=void 0;vt.prototype.fatal=void 0;vt.prototype.place=void 0;vt.prototype.ruleId=void 0;vt.prototype.source=void 0;const Cf={}.hasOwnProperty,ZS=new Map,$S=/[A-Z]/g,FS=new Set(["table","tbody","thead","tfoot","tr"]),JS=new Set(["td","th"]),Yy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function IS(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=iw(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=aw(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Nf:US,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=Vy(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function Vy(n,a,r){if(a.type==="element")return PS(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return WS(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return tw(n,a,r);if(a.type==="mdxjsEsm")return ew(n,a);if(a.type==="root")return nw(n,a,r);if(a.type==="text")return lw(n,a)}function PS(n,a,r){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=Nf,n.schema=s),n.ancestors.push(a);const c=Ky(n,a.tagName,!1),f=rw(n,a);let p=kf(n,a);return FS.has(a.tagName)&&(p=p.filter(function(g){return typeof g=="string"?!AS(g):!0})),Qy(n,f,c,a),Af(f,p),n.ancestors.pop(),n.schema=u,n.create(a,c,f,r)}function WS(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}lr(n,a.position)}function ew(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);lr(n,a.position)}function tw(n,a,r){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=Nf,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:Ky(n,a.name,!0),f=uw(n,a),p=kf(n,a);return Qy(n,f,c,a),Af(f,p),n.ancestors.pop(),n.schema=u,n.create(a,c,f,r)}function nw(n,a,r){const u={};return Af(u,kf(n,a)),n.create(a,n.Fragment,u,r)}function lw(n,a){return a.value}function Qy(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function Af(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function aw(n,a,r){return u;function u(s,c,f,p){const m=Array.isArray(f.children)?r:a;return p?m(c,f,p):m(c,f)}}function iw(n,a){return r;function r(u,s,c,f){const p=Array.isArray(c.children),g=Tf(u);return a(s,c,f,p,{columnNumber:g?g.column-1:void 0,fileName:n,lineNumber:g?g.line:void 0},void 0)}}function rw(n,a){const r={};let u,s;for(s in a.properties)if(s!=="children"&&Cf.call(a.properties,s)){const c=sw(n,s,a.properties[s]);if(c){const[f,p]=c;n.tableCellAlignToStyle&&f==="align"&&typeof p=="string"&&JS.has(a.tagName)?u=p:r[f]=p}}if(u){const c=r.style||(r.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function uw(n,a){const r={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const f=c.expression;f.type;const p=f.properties[0];p.type,Object.assign(r,n.evaluater.evaluateExpression(p.argument))}else lr(n,a.position);else{const s=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const p=u.value.data.estree.body[0];p.type,c=n.evaluater.evaluateExpression(p.expression)}else lr(n,a.position);else c=u.value===null?!0:u.value;r[s]=c}return r}function kf(n,a){const r=[];let u=-1;const s=n.passKeys?new Map:ZS;for(;++u<a.children.length;){const c=a.children[u];let f;if(n.passKeys){const g=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(g){const m=s.get(g)||0;f=g+"-"+m,s.set(g,m+1)}}const p=Vy(n,c,f);p!==void 0&&r.push(p)}return r}function sw(n,a,r){const u=DS(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?jS(r):HS(r)),u.property==="style"){let s=typeof r=="object"?r:ow(n,String(r));return n.stylePropertyNameCase==="css"&&(s=cw(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?_S[u.property]||u.property:u.attribute,r]}}function ow(n,a){try{return GS(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,s=new vt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Yy+"#cannot-parse-style-attribute",s}}function Ky(n,a,r){let u;if(!r)u={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let c=-1,f;for(;++c<s.length;){const p=lg(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};f=f?{type:"MemberExpression",object:f,property:p,computed:!!(c&&p.type==="Literal"),optional:!1}:p}u=f}else u=lg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return Cf.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);lr(n)}function lr(n,a){const r=new vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=Yy+"#cannot-handle-mdx-estrees-without-createevaluater",r}function cw(n){const a={};let r;for(r in n)Cf.call(n,r)&&(a[fw(r)]=n[r]);return a}function fw(n){let a=n.replace($S,dw);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function dw(n){return"-"+n.toLowerCase()}const Bc={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"]},hw={};function mw(n,a){const r=hw,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Gy(n,u,s)}function Gy(n,a,r){if(pw(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return hg(n.children,a,r)}return Array.isArray(n)?hg(n,a,r):""}function hg(n,a,r){const u=[];let s=-1;for(;++s<n.length;)u[s]=Gy(n[s],a,r);return u.join("")}function pw(n){return!!(n&&typeof n=="object")}const mg=document.createElement("i");function zf(n){const a="&"+n+";";mg.innerHTML=a;const r=mg.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function wn(n,a,r,u){const s=n.length;let c=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,u.length<1e4)f=Array.from(u),f.unshift(a,r),n.splice(...f);else for(r&&n.splice(a,r);c<u.length;)f=u.slice(c,c+1e4),f.unshift(a,0),n.splice(...f),c+=1e4,a+=1e4}function un(n,a){return n.length>0?(wn(n,n.length,0,a),n):a}const pg={}.hasOwnProperty;function gw(n){const a={};let r=-1;for(;++r<n.length;)yw(a,n[r]);return a}function yw(n,a){let r;for(r in a){const s=(pg.call(n,r)?n[r]:void 0)||(n[r]={}),c=a[r];let f;if(c)for(f in c){pg.call(s,f)||(s[f]=[]);const p=c[f];xw(s[f],Array.isArray(p)?p:p?[p]:[])}}}function xw(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);wn(n,0,0,u)}function Xy(n,a){const r=Number.parseInt(n,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ua(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sn=jl(/[A-Za-z]/),Gt=jl(/[\dA-Za-z]/),bw=jl(/[#-'*+\--9=?A-Z^-~]/);function tf(n){return n!==null&&(n<32||n===127)}const nf=jl(/\d/),vw=jl(/[\dA-Fa-f]/),Sw=jl(/[!-/:-@[-`{-~]/);function pe(n){return n!==null&&n<-2}function Mt(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const ww=jl(new RegExp("\\p{P}|\\p{S}","u")),jw=jl(/\s/);function jl(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function $a(n){const a=[];let r=-1,u=0,s=0;for(;++r<n.length;){const c=n.charCodeAt(r);let f="";if(c===37&&Gt(n.charCodeAt(r+1))&&Gt(n.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const p=n.charCodeAt(r+1);c<56320&&p>56319&&p<57344?(f=String.fromCharCode(c,p),s=1):f="�"}else f=String.fromCharCode(c);f&&(a.push(n.slice(u,r),encodeURIComponent(f)),u=r+s+1,f=""),s&&(r+=s,s=0)}return a.join("")+n.slice(u)}function Ke(n,a,r,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return _e(g)?(n.enter(r),p(g)):a(g)}function p(g){return _e(g)&&c++<s?(n.consume(g),p):(n.exit(r),a(g))}}const Ew={tokenize:Nw};function Nw(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let r;return a;function u(p){if(p===null){n.consume(p);return}return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),Ke(n,a,"linePrefix")}function s(p){return n.enter("paragraph"),c(p)}function c(p){const g=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=g),r=g,f(p)}function f(p){if(p===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(p);return}return pe(p)?(n.consume(p),n.exit("chunkText"),c):(n.consume(p),f)}}const Tw={tokenize:Cw},gg={tokenize:Aw};function Cw(n){const a=this,r=[];let u=0,s,c,f;return p;function p(L){if(u<r.length){const ee=r[u];return a.containerState=ee[1],n.attempt(ee[0].continuation,g,m)(L)}return m(L)}function g(L){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&$();const ee=a.events.length;let I=ee,H;for(;I--;)if(a.events[I][0]==="exit"&&a.events[I][1].type==="chunkFlow"){H=a.events[I][1].end;break}k(u);let F=ee;for(;F<a.events.length;)a.events[F][1].end={...H},F++;return wn(a.events,I+1,0,a.events.slice(ee)),a.events.length=F,m(L)}return p(L)}function m(L){if(u===r.length){if(!s)return w(L);if(s.currentConstruct&&s.currentConstruct.concrete)return z(L);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(gg,x,b)(L)}function x(L){return s&&$(),k(u),w(L)}function b(L){return a.parser.lazy[a.now().line]=u!==r.length,f=a.now().offset,z(L)}function w(L){return a.containerState={},n.attempt(gg,S,z)(L)}function S(L){return u++,r.push([a.currentConstruct,a.containerState]),w(L)}function z(L){if(L===null){s&&$(),k(0),n.consume(L);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),R(L)}function R(L){if(L===null){U(n.exit("chunkFlow"),!0),k(0),n.consume(L);return}return pe(L)?(n.consume(L),U(n.exit("chunkFlow")),u=0,a.interrupt=void 0,p):(n.consume(L),R)}function U(L,ee){const I=a.sliceStream(L);if(ee&&I.push(null),L.previous=c,c&&(c.next=L),c=L,s.defineSkip(L.start),s.write(I),a.parser.lazy[L.start.line]){let H=s.events.length;for(;H--;)if(s.events[H][1].start.offset<f&&(!s.events[H][1].end||s.events[H][1].end.offset>f))return;const F=a.events.length;let oe=F,Y,le;for(;oe--;)if(a.events[oe][0]==="exit"&&a.events[oe][1].type==="chunkFlow"){if(Y){le=a.events[oe][1].end;break}Y=!0}for(k(u),H=F;H<a.events.length;)a.events[H][1].end={...le},H++;wn(a.events,oe+1,0,a.events.slice(F)),a.events.length=H}}function k(L){let ee=r.length;for(;ee-- >L;){const I=r[ee];a.containerState=I[1],I[0].exit.call(a,n)}r.length=L}function $(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Aw(n,a,r){return Ke(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function yg(n){if(n===null||Mt(n)||jw(n))return 1;if(ww(n))return 2}function Rf(n,a,r){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(a=c(a,r),u.push(c))}return a}const lf={name:"attention",resolveAll:kw,tokenize:zw};function kw(n,a){let r=-1,u,s,c,f,p,g,m,x;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;g=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const b={...n[u][1].end},w={...n[r][1].start};xg(b,-g),xg(w,g),f={type:g>1?"strongSequence":"emphasisSequence",start:b,end:{...n[u][1].end}},p={type:g>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:w},c={type:g>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},s={type:g>1?"strong":"emphasis",start:{...f.start},end:{...p.end}},n[u][1].end={...f.start},n[r][1].start={...p.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=un(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=un(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=un(m,Rf(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),m=un(m,[["exit",c,a],["enter",p,a],["exit",p,a],["exit",s,a]]),n[r][1].end.offset-n[r][1].start.offset?(x=2,m=un(m,[["enter",n[r][1],a],["exit",n[r][1],a]])):x=0,wn(n,u-1,r-u+3,m),r=u+m.length-x-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function zw(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,s=yg(u);let c;return f;function f(g){return c=g,n.enter("attentionSequence"),p(g)}function p(g){if(g===c)return n.consume(g),p;const m=n.exit("attentionSequence"),x=yg(g),b=!x||x===2&&s||r.includes(g),w=!s||s===2&&x||r.includes(u);return m._open=!!(c===42?b:b&&(s||!w)),m._close=!!(c===42?w:w&&(x||!b)),a(g)}}function xg(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const Rw={name:"autolink",tokenize:_w};function _w(n,a,r){let u=0;return s;function s(S){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(S){return Sn(S)?(n.consume(S),f):S===64?r(S):m(S)}function f(S){return S===43||S===45||S===46||Gt(S)?(u=1,p(S)):m(S)}function p(S){return S===58?(n.consume(S),u=0,g):(S===43||S===45||S===46||Gt(S))&&u++<32?(n.consume(S),p):(u=0,m(S))}function g(S){return S===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):S===null||S===32||S===60||tf(S)?r(S):(n.consume(S),g)}function m(S){return S===64?(n.consume(S),x):bw(S)?(n.consume(S),m):r(S)}function x(S){return Gt(S)?b(S):r(S)}function b(S){return S===46?(n.consume(S),u=0,x):S===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):w(S)}function w(S){if((S===45||Gt(S))&&u++<63){const z=S===45?w:b;return n.consume(S),z}return r(S)}}const Wu={partial:!0,tokenize:Ow};function Ow(n,a,r){return u;function u(c){return _e(c)?Ke(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||pe(c)?a(c):r(c)}}const Zy={continuation:{tokenize:Dw},exit:Lw,name:"blockQuote",tokenize:Mw};function Mw(n,a,r){const u=this;return s;function s(f){if(f===62){const p=u.containerState;return p.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return r(f)}function c(f){return _e(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function Dw(n,a,r){const u=this;return s;function s(f){return _e(f)?Ke(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(Zy,a,r)(f)}}function Lw(n){n.exit("blockQuote")}const $y={name:"characterEscape",tokenize:Bw};function Bw(n,a,r){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return Sw(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(c)}}const Fy={name:"characterReference",tokenize:Uw};function Uw(n,a,r){const u=this;let s=0,c,f;return p;function p(b){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(b),n.exit("characterReferenceMarker"),g}function g(b){return b===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(b),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),c=31,f=Gt,x(b))}function m(b){return b===88||b===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(b),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=vw,x):(n.enter("characterReferenceValue"),c=7,f=nf,x(b))}function x(b){if(b===59&&s){const w=n.exit("characterReferenceValue");return f===Gt&&!zf(u.sliceSerialize(w))?r(b):(n.enter("characterReferenceMarker"),n.consume(b),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(b)&&s++<c?(n.consume(b),x):r(b)}}const bg={partial:!0,tokenize:qw},vg={concrete:!0,name:"codeFenced",tokenize:Hw};function Hw(n,a,r){const u=this,s={partial:!0,tokenize:I};let c=0,f=0,p;return g;function g(H){return m(H)}function m(H){const F=u.events[u.events.length-1];return c=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,p=H,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(H)}function x(H){return H===p?(f++,n.consume(H),x):f<3?r(H):(n.exit("codeFencedFenceSequence"),_e(H)?Ke(n,b,"whitespace")(H):b(H))}function b(H){return H===null||pe(H)?(n.exit("codeFencedFence"),u.interrupt?a(H):n.check(bg,R,ee)(H)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),w(H))}function w(H){return H===null||pe(H)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),b(H)):_e(H)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ke(n,S,"whitespace")(H)):H===96&&H===p?r(H):(n.consume(H),w)}function S(H){return H===null||pe(H)?b(H):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),z(H))}function z(H){return H===null||pe(H)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),b(H)):H===96&&H===p?r(H):(n.consume(H),z)}function R(H){return n.attempt(s,ee,U)(H)}function U(H){return n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),k}function k(H){return c>0&&_e(H)?Ke(n,$,"linePrefix",c+1)(H):$(H)}function $(H){return H===null||pe(H)?n.check(bg,R,ee)(H):(n.enter("codeFlowValue"),L(H))}function L(H){return H===null||pe(H)?(n.exit("codeFlowValue"),$(H)):(n.consume(H),L)}function ee(H){return n.exit("codeFenced"),a(H)}function I(H,F,oe){let Y=0;return le;function le(X){return H.enter("lineEnding"),H.consume(X),H.exit("lineEnding"),P}function P(X){return H.enter("codeFencedFence"),_e(X)?Ke(H,te,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):te(X)}function te(X){return X===p?(H.enter("codeFencedFenceSequence"),xe(X)):oe(X)}function xe(X){return X===p?(Y++,H.consume(X),xe):Y>=f?(H.exit("codeFencedFenceSequence"),_e(X)?Ke(H,ue,"whitespace")(X):ue(X)):oe(X)}function ue(X){return X===null||pe(X)?(H.exit("codeFencedFence"),F(X)):oe(X)}}}function qw(n,a,r){const u=this;return s;function s(f){return f===null?r(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}const Uc={name:"codeIndented",tokenize:Vw},Yw={partial:!0,tokenize:Qw};function Vw(n,a,r){const u=this;return s;function s(m){return n.enter("codeIndented"),Ke(n,c,"linePrefix",5)(m)}function c(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(m):r(m)}function f(m){return m===null?g(m):pe(m)?n.attempt(Yw,f,g)(m):(n.enter("codeFlowValue"),p(m))}function p(m){return m===null||pe(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),p)}function g(m){return n.exit("codeIndented"),a(m)}}function Qw(n,a,r){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?r(f):pe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):Ke(n,c,"linePrefix",5)(f)}function c(f){const p=u.events[u.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):pe(f)?s(f):r(f)}}const Kw={name:"codeText",previous:Xw,resolve:Gw,tokenize:Zw};function Gw(n){let a=n.length-4,r=3,u,s;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=r;++u<a;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(u=r-1,a++;++u<=a;)s===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(s=u):(u===a||n[u][1].type==="lineEnding")&&(n[s][1].type="codeTextData",u!==s+2&&(n[s][1].end=n[u-1][1].end,n.splice(s+2,u-s-2),a-=u-s-2,u=s+2),s=void 0);return n}function Xw(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Zw(n,a,r){let u=0,s,c;return f;function f(b){return n.enter("codeText"),n.enter("codeTextSequence"),p(b)}function p(b){return b===96?(n.consume(b),u++,p):(n.exit("codeTextSequence"),g(b))}function g(b){return b===null?r(b):b===32?(n.enter("space"),n.consume(b),n.exit("space"),g):b===96?(c=n.enter("codeTextSequence"),s=0,x(b)):pe(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),g):(n.enter("codeTextData"),m(b))}function m(b){return b===null||b===32||b===96||pe(b)?(n.exit("codeTextData"),g(b)):(n.consume(b),m)}function x(b){return b===96?(n.consume(b),s++,x):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(b)):(c.type="codeTextData",m(b))}}class $w{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,r,u){const s=r||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&Zi(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Zi(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Zi(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Zi(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Zi(this.left,r.reverse())}}}function Zi(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function Jy(n){const a={};let r=-1,u,s,c,f,p,g,m;const x=new $w(n);for(;++r<x.length;){for(;r in a;)r=a[r];if(u=x.get(r),r&&u[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(g=u[1]._tokenizer.events,c=0,c<g.length&&g[c][1].type==="lineEndingBlank"&&(c+=2),c<g.length&&g[c][1].type==="content"))for(;++c<g.length&&g[c][1].type!=="content";)g[c][1].type==="chunkText"&&(g[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,Fw(x,r)),r=a[r],m=!0);else if(u[1]._container){for(c=r,s=void 0;c--;)if(f=x.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...x.get(s)[1].start},p=x.slice(s,r),p.unshift(u),x.splice(s,r-s+1,p))}}return wn(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function Fw(n,a){const r=n.get(a)[1],u=n.get(a)[2];let s=a-1;const c=[];let f=r._tokenizer;f||(f=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const p=f.events,g=[],m={};let x,b,w=-1,S=r,z=0,R=0;const U=[R];for(;S;){for(;n.get(++s)[1]!==S;);c.push(s),S._tokenizer||(x=u.sliceStream(S),S.next||x.push(null),b&&f.defineSkip(S.start),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),b=S,S=S.next}for(S=r;++w<p.length;)p[w][0]==="exit"&&p[w-1][0]==="enter"&&p[w][1].type===p[w-1][1].type&&p[w][1].start.line!==p[w][1].end.line&&(R=w+1,U.push(R),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(f.events=[],S?(S._tokenizer=void 0,S.previous=void 0):U.pop(),w=U.length;w--;){const k=p.slice(U[w],U[w+1]),$=c.pop();g.push([$,$+k.length-1]),n.splice($,2,k)}for(g.reverse(),w=-1;++w<g.length;)m[z+g[w][0]]=z+g[w][1],z+=g[w][1]-g[w][0]-1;return m}const Jw={resolve:Pw,tokenize:Ww},Iw={partial:!0,tokenize:e2};function Pw(n){return Jy(n),n}function Ww(n,a){let r;return u;function u(p){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?c(p):pe(p)?n.check(Iw,f,c)(p):(n.consume(p),s)}function c(p){return n.exit("chunkContent"),n.exit("content"),a(p)}function f(p){return n.consume(p),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function e2(n,a,r){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Ke(n,c,"linePrefix")}function c(f){if(f===null||pe(f))return r(f);const p=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):n.interrupt(u.parser.constructs.flow,r,a)(f)}}function Iy(n,a,r,u,s,c,f,p,g){const m=g||Number.POSITIVE_INFINITY;let x=0;return b;function b(k){return k===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(k),n.exit(c),w):k===null||k===32||k===41||tf(k)?r(k):(n.enter(u),n.enter(f),n.enter(p),n.enter("chunkString",{contentType:"string"}),R(k))}function w(k){return k===62?(n.enter(c),n.consume(k),n.exit(c),n.exit(s),n.exit(u),a):(n.enter(p),n.enter("chunkString",{contentType:"string"}),S(k))}function S(k){return k===62?(n.exit("chunkString"),n.exit(p),w(k)):k===null||k===60||pe(k)?r(k):(n.consume(k),k===92?z:S)}function z(k){return k===60||k===62||k===92?(n.consume(k),S):S(k)}function R(k){return!x&&(k===null||k===41||Mt(k))?(n.exit("chunkString"),n.exit(p),n.exit(f),n.exit(u),a(k)):x<m&&k===40?(n.consume(k),x++,R):k===41?(n.consume(k),x--,R):k===null||k===32||k===40||tf(k)?r(k):(n.consume(k),k===92?U:R)}function U(k){return k===40||k===41||k===92?(n.consume(k),R):R(k)}}function Py(n,a,r,u,s,c){const f=this;let p=0,g;return m;function m(S){return n.enter(u),n.enter(s),n.consume(S),n.exit(s),n.enter(c),x}function x(S){return p>999||S===null||S===91||S===93&&!g||S===94&&!p&&"_hiddenFootnoteSupport"in f.parser.constructs?r(S):S===93?(n.exit(c),n.enter(s),n.consume(S),n.exit(s),n.exit(u),a):pe(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||S===91||S===93||pe(S)||p++>999?(n.exit("chunkString"),x(S)):(n.consume(S),g||(g=!_e(S)),S===92?w:b)}function w(S){return S===91||S===92||S===93?(n.consume(S),p++,b):b(S)}}function Wy(n,a,r,u,s,c){let f;return p;function p(w){return w===34||w===39||w===40?(n.enter(u),n.enter(s),n.consume(w),n.exit(s),f=w===40?41:w,g):r(w)}function g(w){return w===f?(n.enter(s),n.consume(w),n.exit(s),n.exit(u),a):(n.enter(c),m(w))}function m(w){return w===f?(n.exit(c),g(f)):w===null?r(w):pe(w)?(n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),Ke(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===f||w===null||pe(w)?(n.exit("chunkString"),m(w)):(n.consume(w),w===92?b:x)}function b(w){return w===f||w===92?(n.consume(w),x):x(w)}}function Ji(n,a){let r;return u;function u(s){return pe(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r=!0,u):_e(s)?Ke(n,u,r?"linePrefix":"lineSuffix")(s):a(s)}}const t2={name:"definition",tokenize:l2},n2={partial:!0,tokenize:a2};function l2(n,a,r){const u=this;let s;return c;function c(S){return n.enter("definition"),f(S)}function f(S){return Py.call(u,n,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function p(S){return s=Ua(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(n.enter("definitionMarker"),n.consume(S),n.exit("definitionMarker"),g):r(S)}function g(S){return Mt(S)?Ji(n,m)(S):m(S)}function m(S){return Iy(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function x(S){return n.attempt(n2,b,b)(S)}function b(S){return _e(S)?Ke(n,w,"whitespace")(S):w(S)}function w(S){return S===null||pe(S)?(n.exit("definition"),u.parser.defined.push(s),a(S)):r(S)}}function a2(n,a,r){return u;function u(p){return Mt(p)?Ji(n,s)(p):r(p)}function s(p){return Wy(n,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function c(p){return _e(p)?Ke(n,f,"whitespace")(p):f(p)}function f(p){return p===null||pe(p)?a(p):r(p)}}const i2={name:"hardBreakEscape",tokenize:r2};function r2(n,a,r){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return pe(c)?(n.exit("hardBreakEscape"),a(c)):r(c)}}const u2={name:"headingAtx",resolve:s2,tokenize:o2};function s2(n,a){let r=n.length-2,u=3,s,c;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},c={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},wn(n,u,r-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function o2(n,a,r){let u=0;return s;function s(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&u++<6?(n.consume(x),f):x===null||Mt(x)?(n.exit("atxHeadingSequence"),p(x)):r(x)}function p(x){return x===35?(n.enter("atxHeadingSequence"),g(x)):x===null||pe(x)?(n.exit("atxHeading"),a(x)):_e(x)?Ke(n,p,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function g(x){return x===35?(n.consume(x),g):(n.exit("atxHeadingSequence"),p(x))}function m(x){return x===null||x===35||Mt(x)?(n.exit("atxHeadingText"),p(x)):(n.consume(x),m)}}const c2=["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"],Sg=["pre","script","style","textarea"],f2={concrete:!0,name:"htmlFlow",resolveTo:m2,tokenize:p2},d2={partial:!0,tokenize:y2},h2={partial:!0,tokenize:g2};function m2(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function p2(n,a,r){const u=this;let s,c,f,p,g;return m;function m(j){return x(j)}function x(j){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(j),b}function b(j){return j===33?(n.consume(j),w):j===47?(n.consume(j),c=!0,R):j===63?(n.consume(j),s=3,u.interrupt?a:E):Sn(j)?(n.consume(j),f=String.fromCharCode(j),U):r(j)}function w(j){return j===45?(n.consume(j),s=2,S):j===91?(n.consume(j),s=5,p=0,z):Sn(j)?(n.consume(j),s=4,u.interrupt?a:E):r(j)}function S(j){return j===45?(n.consume(j),u.interrupt?a:E):r(j)}function z(j){const ae="CDATA[";return j===ae.charCodeAt(p++)?(n.consume(j),p===ae.length?u.interrupt?a:te:z):r(j)}function R(j){return Sn(j)?(n.consume(j),f=String.fromCharCode(j),U):r(j)}function U(j){if(j===null||j===47||j===62||Mt(j)){const ae=j===47,he=f.toLowerCase();return!ae&&!c&&Sg.includes(he)?(s=1,u.interrupt?a(j):te(j)):c2.includes(f.toLowerCase())?(s=6,ae?(n.consume(j),k):u.interrupt?a(j):te(j)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(j):c?$(j):L(j))}return j===45||Gt(j)?(n.consume(j),f+=String.fromCharCode(j),U):r(j)}function k(j){return j===62?(n.consume(j),u.interrupt?a:te):r(j)}function $(j){return _e(j)?(n.consume(j),$):le(j)}function L(j){return j===47?(n.consume(j),le):j===58||j===95||Sn(j)?(n.consume(j),ee):_e(j)?(n.consume(j),L):le(j)}function ee(j){return j===45||j===46||j===58||j===95||Gt(j)?(n.consume(j),ee):I(j)}function I(j){return j===61?(n.consume(j),H):_e(j)?(n.consume(j),I):L(j)}function H(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(n.consume(j),g=j,F):_e(j)?(n.consume(j),H):oe(j)}function F(j){return j===g?(n.consume(j),g=null,Y):j===null||pe(j)?r(j):(n.consume(j),F)}function oe(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Mt(j)?I(j):(n.consume(j),oe)}function Y(j){return j===47||j===62||_e(j)?L(j):r(j)}function le(j){return j===62?(n.consume(j),P):r(j)}function P(j){return j===null||pe(j)?te(j):_e(j)?(n.consume(j),P):r(j)}function te(j){return j===45&&s===2?(n.consume(j),O):j===60&&s===1?(n.consume(j),J):j===62&&s===4?(n.consume(j),C):j===63&&s===3?(n.consume(j),E):j===93&&s===5?(n.consume(j),ye):pe(j)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(d2,Q,xe)(j)):j===null||pe(j)?(n.exit("htmlFlowData"),xe(j)):(n.consume(j),te)}function xe(j){return n.check(h2,ue,Q)(j)}function ue(j){return n.enter("lineEnding"),n.consume(j),n.exit("lineEnding"),X}function X(j){return j===null||pe(j)?xe(j):(n.enter("htmlFlowData"),te(j))}function O(j){return j===45?(n.consume(j),E):te(j)}function J(j){return j===47?(n.consume(j),f="",ie):te(j)}function ie(j){if(j===62){const ae=f.toLowerCase();return Sg.includes(ae)?(n.consume(j),C):te(j)}return Sn(j)&&f.length<8?(n.consume(j),f+=String.fromCharCode(j),ie):te(j)}function ye(j){return j===93?(n.consume(j),E):te(j)}function E(j){return j===62?(n.consume(j),C):j===45&&s===2?(n.consume(j),E):te(j)}function C(j){return j===null||pe(j)?(n.exit("htmlFlowData"),Q(j)):(n.consume(j),C)}function Q(j){return n.exit("htmlFlow"),a(j)}}function g2(n,a,r){const u=this;return s;function s(f){return pe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):r(f)}function c(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}function y2(n,a,r){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Wu,a,r)}}const x2={name:"htmlText",tokenize:b2};function b2(n,a,r){const u=this;let s,c,f;return p;function p(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),g}function g(E){return E===33?(n.consume(E),m):E===47?(n.consume(E),I):E===63?(n.consume(E),L):Sn(E)?(n.consume(E),oe):r(E)}function m(E){return E===45?(n.consume(E),x):E===91?(n.consume(E),c=0,z):Sn(E)?(n.consume(E),$):r(E)}function x(E){return E===45?(n.consume(E),S):r(E)}function b(E){return E===null?r(E):E===45?(n.consume(E),w):pe(E)?(f=b,J(E)):(n.consume(E),b)}function w(E){return E===45?(n.consume(E),S):b(E)}function S(E){return E===62?O(E):E===45?w(E):b(E)}function z(E){const C="CDATA[";return E===C.charCodeAt(c++)?(n.consume(E),c===C.length?R:z):r(E)}function R(E){return E===null?r(E):E===93?(n.consume(E),U):pe(E)?(f=R,J(E)):(n.consume(E),R)}function U(E){return E===93?(n.consume(E),k):R(E)}function k(E){return E===62?O(E):E===93?(n.consume(E),k):R(E)}function $(E){return E===null||E===62?O(E):pe(E)?(f=$,J(E)):(n.consume(E),$)}function L(E){return E===null?r(E):E===63?(n.consume(E),ee):pe(E)?(f=L,J(E)):(n.consume(E),L)}function ee(E){return E===62?O(E):L(E)}function I(E){return Sn(E)?(n.consume(E),H):r(E)}function H(E){return E===45||Gt(E)?(n.consume(E),H):F(E)}function F(E){return pe(E)?(f=F,J(E)):_e(E)?(n.consume(E),F):O(E)}function oe(E){return E===45||Gt(E)?(n.consume(E),oe):E===47||E===62||Mt(E)?Y(E):r(E)}function Y(E){return E===47?(n.consume(E),O):E===58||E===95||Sn(E)?(n.consume(E),le):pe(E)?(f=Y,J(E)):_e(E)?(n.consume(E),Y):O(E)}function le(E){return E===45||E===46||E===58||E===95||Gt(E)?(n.consume(E),le):P(E)}function P(E){return E===61?(n.consume(E),te):pe(E)?(f=P,J(E)):_e(E)?(n.consume(E),P):Y(E)}function te(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(n.consume(E),s=E,xe):pe(E)?(f=te,J(E)):_e(E)?(n.consume(E),te):(n.consume(E),ue)}function xe(E){return E===s?(n.consume(E),s=void 0,X):E===null?r(E):pe(E)?(f=xe,J(E)):(n.consume(E),xe)}function ue(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||Mt(E)?Y(E):(n.consume(E),ue)}function X(E){return E===47||E===62||Mt(E)?Y(E):r(E)}function O(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):r(E)}function J(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),ie}function ie(E){return _e(E)?Ke(n,ye,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ye(E)}function ye(E){return n.enter("htmlTextData"),f(E)}}const _f={name:"labelEnd",resolveAll:j2,resolveTo:E2,tokenize:N2},v2={tokenize:T2},S2={tokenize:C2},w2={tokenize:A2};function j2(n){let a=-1;const r=[];for(;++a<n.length;){const u=n[a][1];if(r.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",a+=s}}return n.length!==r.length&&wn(n,0,n.length,r),n}function E2(n,a){let r=n.length,u=0,s,c,f,p;for(;r--;)if(s=n[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=r);const g={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return p=[["enter",g,a],["enter",m,a]],p=un(p,n.slice(c+1,c+u+3)),p=un(p,[["enter",x,a]]),p=un(p,Rf(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),p=un(p,[["exit",x,a],n[f-2],n[f-1],["exit",m,a]]),p=un(p,n.slice(f+1)),p=un(p,[["exit",g,a]]),wn(n,c,n.length,p),n}function N2(n,a,r){const u=this;let s=u.events.length,c,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){c=u.events[s][1];break}return p;function p(w){return c?c._inactive?b(w):(f=u.parser.defined.includes(Ua(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(w),n.exit("labelMarker"),n.exit("labelEnd"),g):r(w)}function g(w){return w===40?n.attempt(v2,x,f?x:b)(w):w===91?n.attempt(S2,x,f?m:b)(w):f?x(w):b(w)}function m(w){return n.attempt(w2,x,b)(w)}function x(w){return a(w)}function b(w){return c._balanced=!0,r(w)}}function T2(n,a,r){return u;function u(b){return n.enter("resource"),n.enter("resourceMarker"),n.consume(b),n.exit("resourceMarker"),s}function s(b){return Mt(b)?Ji(n,c)(b):c(b)}function c(b){return b===41?x(b):Iy(n,f,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function f(b){return Mt(b)?Ji(n,g)(b):x(b)}function p(b){return r(b)}function g(b){return b===34||b===39||b===40?Wy(n,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):x(b)}function m(b){return Mt(b)?Ji(n,x)(b):x(b)}function x(b){return b===41?(n.enter("resourceMarker"),n.consume(b),n.exit("resourceMarker"),n.exit("resource"),a):r(b)}}function C2(n,a,r){const u=this;return s;function s(p){return Py.call(u,n,c,f,"reference","referenceMarker","referenceString")(p)}function c(p){return u.parser.defined.includes(Ua(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(p):r(p)}function f(p){return r(p)}}function A2(n,a,r){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),s}function s(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),a):r(c)}}const k2={name:"labelStartImage",resolveAll:_f.resolveAll,tokenize:z2};function z2(n,a,r){const u=this;return s;function s(p){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),c}function c(p){return p===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),f):r(p)}function f(p){return p===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(p):a(p)}}const R2={name:"labelStartLink",resolveAll:_f.resolveAll,tokenize:_2};function _2(n,a,r){const u=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(f):a(f)}}const Hc={name:"lineEnding",tokenize:O2};function O2(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ke(n,a,"linePrefix")}}const Uu={name:"thematicBreak",tokenize:M2};function M2(n,a,r){let u=0,s;return c;function c(m){return n.enter("thematicBreak"),f(m)}function f(m){return s=m,p(m)}function p(m){return m===s?(n.enter("thematicBreakSequence"),g(m)):u>=3&&(m===null||pe(m))?(n.exit("thematicBreak"),a(m)):r(m)}function g(m){return m===s?(n.consume(m),u++,g):(n.exit("thematicBreakSequence"),_e(m)?Ke(n,p,"whitespace")(m):p(m))}}const Ot={continuation:{tokenize:U2},exit:q2,name:"list",tokenize:B2},D2={partial:!0,tokenize:Y2},L2={partial:!0,tokenize:H2};function B2(n,a,r){const u=this,s=u.events[u.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return p;function p(S){const z=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:nf(S)){if(u.containerState.type||(u.containerState.type=z,n.enter(z,{_container:!0})),z==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(Uu,r,m)(S):m(S);if(!u.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),g(S)}return r(S)}function g(S){return nf(S)&&++f<10?(n.consume(S),g):(!u.interrupt||f<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(n.exit("listItemValue"),m(S)):r(S)}function m(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,n.check(Wu,u.interrupt?r:x,n.attempt(D2,w,b))}function x(S){return u.containerState.initialBlankLine=!0,c++,w(S)}function b(S){return _e(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),w):r(S)}function w(S){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(S)}}function U2(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(Wu,s,c);function s(p){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ke(n,a,"listItemIndent",u.containerState.size+1)(p)}function c(p){return u.containerState.furtherBlankLines||!_e(p)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(p)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(L2,a,f)(p))}function f(p){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ke(n,n.attempt(Ot,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function H2(n,a,r){const u=this;return Ke(n,s,"listItemIndent",u.containerState.size+1);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?a(c):r(c)}}function q2(n){n.exit(this.containerState.type)}function Y2(n,a,r){const u=this;return Ke(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const f=u.events[u.events.length-1];return!_e(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):r(c)}}const wg={name:"setextUnderline",resolveTo:V2,tokenize:Q2};function V2(n,a){let r=n.length,u,s,c;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(s=r)}else n[r][1].type==="content"&&n.splice(r,1),!c&&n[r][1].type==="definition"&&(c=r);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",c?(n.splice(s,0,["enter",f,a]),n.splice(c+1,0,["exit",n[u][1],a]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,a]),n}function Q2(n,a,r){const u=this;let s;return c;function c(m){let x=u.events.length,b;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){b=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||b)?(n.enter("setextHeadingLine"),s=m,f(m)):r(m)}function f(m){return n.enter("setextHeadingLineSequence"),p(m)}function p(m){return m===s?(n.consume(m),p):(n.exit("setextHeadingLineSequence"),_e(m)?Ke(n,g,"lineSuffix")(m):g(m))}function g(m){return m===null||pe(m)?(n.exit("setextHeadingLine"),a(m)):r(m)}}const K2={tokenize:G2};function G2(n){const a=this,r=n.attempt(Wu,u,n.attempt(this.parser.constructs.flowInitial,s,Ke(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Jw,s)),"linePrefix")));return r;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const X2={resolveAll:tx()},Z2=ex("string"),$2=ex("text");function ex(n){return{resolveAll:tx(n==="text"?F2:void 0),tokenize:a};function a(r){const u=this,s=this.parser.constructs[n],c=r.attempt(s,f,p);return f;function f(x){return m(x)?c(x):p(x)}function p(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),g}function g(x){return m(x)?(r.exit("data"),c(x)):(r.consume(x),g)}function m(x){if(x===null)return!0;const b=s[x];let w=-1;if(b)for(;++w<b.length;){const S=b[w];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function tx(n){return a;function a(r,u){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return n?n(r,u):r}}function F2(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],s=a.sliceStream(u);let c=s.length,f=-1,p=0,g;for(;c--;){const m=s[c];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)p++,f--;if(f)break;f=-1}else if(m===-2)g=!0,p++;else if(m!==-1){c++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(p=0),p){const m={type:r===n.length||g||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:u.start._bufferIndex+f,_index:u.start._index+c,line:u.end.line,column:u.end.column-p,offset:u.end.offset-p},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(r,0,["enter",m,a],["exit",m,a]),r+=2)}r++}return n}const J2={42:Ot,43:Ot,45:Ot,48:Ot,49:Ot,50:Ot,51:Ot,52:Ot,53:Ot,54:Ot,55:Ot,56:Ot,57:Ot,62:Zy},I2={91:t2},P2={[-2]:Uc,[-1]:Uc,32:Uc},W2={35:u2,42:Uu,45:[wg,Uu],60:f2,61:wg,95:Uu,96:vg,126:vg},ej={38:Fy,92:$y},tj={[-5]:Hc,[-4]:Hc,[-3]:Hc,33:k2,38:Fy,42:lf,60:[Rw,x2],91:R2,92:[i2,$y],93:_f,95:lf,96:Kw},nj={null:[lf,X2]},lj={null:[42,95]},aj={null:[]},ij=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:lj,contentInitial:I2,disable:aj,document:J2,flow:W2,flowInitial:P2,insideSpan:nj,string:ej,text:tj},Symbol.toStringTag,{value:"Module"}));function rj(n,a,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},c=[];let f=[],p=[];const g={attempt:F(I),check:F(H),consume:$,enter:L,exit:ee,interrupt:F(H,{interrupt:!0})},m={code:null,containerState:{},defineSkip:R,events:[],now:z,parser:n,previous:null,sliceSerialize:w,sliceStream:S,write:b};let x=a.tokenize.call(m,g);return a.resolveAll&&c.push(a),m;function b(P){return f=un(f,P),U(),f[f.length-1]!==null?[]:(oe(a,0),m.events=Rf(c,m.events,m),m.events)}function w(P,te){return sj(S(P),te)}function S(P){return uj(f,P)}function z(){const{_bufferIndex:P,_index:te,line:xe,column:ue,offset:X}=u;return{_bufferIndex:P,_index:te,line:xe,column:ue,offset:X}}function R(P){s[P.line]=P.column,le()}function U(){let P;for(;u._index<f.length;){const te=f[u._index];if(typeof te=="string")for(P=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===P&&u._bufferIndex<te.length;)k(te.charCodeAt(u._bufferIndex));else k(te)}}function k(P){x=x(P)}function $(P){pe(P)?(u.line++,u.column=1,u.offset+=P===-3?2:1,le()):P!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=P}function L(P,te){const xe=te||{};return xe.type=P,xe.start=z(),m.events.push(["enter",xe,m]),p.push(xe),xe}function ee(P){const te=p.pop();return te.end=z(),m.events.push(["exit",te,m]),te}function I(P,te){oe(P,te.from)}function H(P,te){te.restore()}function F(P,te){return xe;function xe(ue,X,O){let J,ie,ye,E;return Array.isArray(ue)?Q(ue):"tokenize"in ue?Q([ue]):C(ue);function C(ce){return Ne;function Ne($e){const Le=$e!==null&&ce[$e],Ft=$e!==null&&ce.null,En=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return Q(En)($e)}}function Q(ce){return J=ce,ie=0,ce.length===0?O:j(ce[ie])}function j(ce){return Ne;function Ne($e){return E=Y(),ye=ce,ce.partial||(m.currentConstruct=ce),ce.name&&m.parser.constructs.disable.null.includes(ce.name)?he():ce.tokenize.call(te?Object.assign(Object.create(m),te):m,g,ae,he)($e)}}function ae(ce){return P(ye,E),X}function he(ce){return E.restore(),++ie<J.length?j(J[ie]):O}}}function oe(P,te){P.resolveAll&&!c.includes(P)&&c.push(P),P.resolve&&wn(m.events,te,m.events.length-te,P.resolve(m.events.slice(te),m)),P.resolveTo&&(m.events=P.resolveTo(m.events,m))}function Y(){const P=z(),te=m.previous,xe=m.currentConstruct,ue=m.events.length,X=Array.from(p);return{from:ue,restore:O};function O(){u=P,m.previous=te,m.currentConstruct=xe,m.events.length=ue,p=X,le()}}function le(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function uj(n,a){const r=a.start._index,u=a.start._bufferIndex,s=a.end._index,c=a.end._bufferIndex;let f;if(r===s)f=[n[r].slice(u,c)];else{if(f=n.slice(r,s),u>-1){const p=f[0];typeof p=="string"?f[0]=p.slice(u):f.shift()}c>0&&f.push(n[s].slice(0,c))}return f}function sj(n,a){let r=-1;const u=[];let s;for(;++r<n.length;){const c=n[r];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
|
|
62
|
+
`;break}case-3:{f=`\r
|
|
63
|
+
`;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function oj(n){const u={constructs:gw([ij,...(n||{}).extensions||[]]),content:s(Ew),defined:[],document:s(Tw),flow:s(K2),lazy:{},string:s(Z2),text:s($2)};return u;function s(c){return f;function f(p){return rj(u,c,p)}}}function cj(n){for(;!Jy(n););return n}const jg=/[\0\t\n\r]/g;function fj(){let n=1,a="",r=!0,u;return s;function s(c,f,p){const g=[];let m,x,b,w,S;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),b=0,a="",r&&(c.charCodeAt(0)===65279&&b++,r=void 0);b<c.length;){if(jg.lastIndex=b,m=jg.exec(c),w=m&&m.index!==void 0?m.index:c.length,S=c.charCodeAt(w),!m){a=c.slice(b);break}if(S===10&&b===w&&u)g.push(-3),u=void 0;else switch(u&&(g.push(-5),u=void 0),b<w&&(g.push(c.slice(b,w)),n+=w-b),S){case 0:{g.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,g.push(-2);n++<x;)g.push(-1);break}case 10:{g.push(-4),n=1;break}default:u=!0,n=1}b=w+1}return p&&(u&&g.push(-5),a&&g.push(a),g.push(null)),g}}const dj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hj(n){return n.replace(dj,mj)}function mj(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return Xy(r.slice(c?2:1),c?16:10)}return zf(r)||n}const nx={}.hasOwnProperty;function pj(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),gj(r)(cj(oj(r).document().write(fj()(n,a,!0))))}function gj(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c($l),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:c(Xl),blockQuote:c(Ft),characterEscape:Y,characterReference:Y,codeFenced:c(En),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(En,f),codeText:c(Fa,f),codeTextData:Y,data:Y,codeFlowValue:Y,definition:c(fr),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(Nn),hardBreakEscape:c(Zl),hardBreakTrailing:c(Zl),htmlFlow:c(dr,f),htmlFlowData:Y,htmlText:c(dr,f),htmlTextData:Y,image:c(hr),label:f,link:c($l),listItem:c(Ja),listItemValue:w,listOrdered:c(Fl,b),listUnordered:c(Fl),paragraph:c(rs),reference:j,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Xl),strong:c(us),thematicBreak:c(ss)},exit:{atxHeading:g(),atxHeadingSequence:I,autolink:g(),autolinkEmail:Le,autolinkProtocol:$e,blockQuote:g(),characterEscapeValue:le,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:ce,characterReference:Ne,codeFenced:g(U),codeFencedFence:R,codeFencedFenceInfo:S,codeFencedFenceMeta:z,codeFlowValue:le,codeIndented:g(k),codeText:g(X),codeTextData:le,data:le,definition:g(),definitionDestinationString:ee,definitionLabelString:$,definitionTitleString:L,emphasis:g(),hardBreakEscape:g(te),hardBreakTrailing:g(te),htmlFlow:g(xe),htmlFlowData:le,htmlText:g(ue),htmlTextData:le,image:g(J),label:ye,labelText:ie,lineEnding:P,link:g(O),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:ae,resourceDestinationString:E,resourceTitleString:C,resource:Q,setextHeading:g(oe),setextHeadingLineSequence:F,setextHeadingText:H,strong:g(),thematicBreak:g()}};lx(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(K){let ne={type:"root",children:[]};const me={stack:[ne],tokenStack:[],config:a,enter:p,exit:m,buffer:f,resume:x,data:r},we=[];let Oe=-1;for(;++Oe<K.length;)if(K[Oe][1].type==="listOrdered"||K[Oe][1].type==="listUnordered")if(K[Oe][0]==="enter")we.push(Oe);else{const Lt=we.pop();Oe=s(K,Lt,Oe)}for(Oe=-1;++Oe<K.length;){const Lt=a[K[Oe][0]];nx.call(Lt,K[Oe][1].type)&&Lt[K[Oe][1].type].call(Object.assign({sliceSerialize:K[Oe][2].sliceSerialize},me),K[Oe][1])}if(me.tokenStack.length>0){const Lt=me.tokenStack[me.tokenStack.length-1];(Lt[1]||Eg).call(me,void 0,Lt[0])}for(ne.position={start:vl(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:vl(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<a.transforms.length;)ne=a.transforms[Oe](ne)||ne;return ne}function s(K,ne,me){let we=ne-1,Oe=-1,Lt=!1,Tn,wt,ot,Nt;for(;++we<=me;){const Ye=K[we];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Oe++:Oe--,Nt=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(Tn&&!Nt&&!Oe&&!ot&&(ot=we),Nt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nt=void 0}if(!Oe&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Oe===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Tn){let Fn=we;for(wt=void 0;Fn--;){const cn=K[Fn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;wt&&(K[wt][1].type="lineEndingBlank",Lt=!0),cn[1].type="lineEnding",wt=Fn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}ot&&(!wt||ot<wt)&&(Tn._spread=!0),Tn.end=Object.assign({},wt?K[wt][1].start:Ye[1].end),K.splice(wt||we,0,["exit",Tn,Ye[2]]),we++,me++}if(Ye[1].type==="listItemPrefix"){const Fn={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};Tn=Fn,K.splice(we,0,["enter",Fn,Ye[2]]),we++,me++,ot=void 0,Nt=!0}}}return K[ne][1]._spread=Lt,me}function c(K,ne){return me;function me(we){p.call(this,K(we),we),ne&&ne.call(this,we)}}function f(){this.stack.push({type:"fragment",children:[]})}function p(K,ne,me){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ne,me||void 0]),K.position={start:vl(ne.start),end:void 0}}function g(K){return ne;function ne(me){K&&K.call(this,me),m.call(this,me)}}function m(K,ne){const me=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==K.type&&(ne?ne.call(this,K,we[0]):(we[1]||Eg).call(this,K,we[0]));else throw new Error("Cannot close `"+K.type+"` ("+Fi({start:K.start,end:K.end})+"): it’s not open");me.position.end=vl(K.end)}function x(){return mw(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function w(K){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function S(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=K}function z(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=K}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K.replace(/(\r?\n|\r)$/g,"")}function $(K){const ne=this.resume(),me=this.stack[this.stack.length-1];me.label=ne,me.identifier=Ua(this.sliceSerialize(K)).toLowerCase()}function L(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.title=K}function ee(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.url=K}function I(K){const ne=this.stack[this.stack.length-1];if(!ne.depth){const me=this.sliceSerialize(K).length;ne.depth=me}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function F(K){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(K){const me=this.stack[this.stack.length-1].children;let we=me[me.length-1];(!we||we.type!=="text")&&(we=St(),we.position={start:vl(K.start),end:void 0},me.push(we)),this.stack.push(we)}function le(K){const ne=this.stack.pop();ne.value+=this.sliceSerialize(K),ne.position.end=vl(K.end)}function P(K){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=ne.children[ne.children.length-1];me.position.end=vl(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ne.type)&&(Y.call(this,K),le.call(this,K))}function te(){this.data.atHardBreak=!0}function xe(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K}function ue(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K}function X(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K}function O(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ne,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function J(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ne,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ie(K){const ne=this.sliceSerialize(K),me=this.stack[this.stack.length-2];me.label=hj(ne),me.identifier=Ua(ne).toLowerCase()}function ye(){const K=this.stack[this.stack.length-1],ne=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const we=K.children;me.children=we}else me.alt=ne}function E(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.url=K}function C(){const K=this.resume(),ne=this.stack[this.stack.length-1];ne.title=K}function Q(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ae(K){const ne=this.resume(),me=this.stack[this.stack.length-1];me.label=ne,me.identifier=Ua(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function he(K){this.data.characterReferenceType=K.type}function ce(K){const ne=this.sliceSerialize(K),me=this.data.characterReferenceType;let we;me?(we=Xy(ne,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=zf(ne);const Oe=this.stack[this.stack.length-1];Oe.value+=we}function Ne(K){const ne=this.stack.pop();ne.position.end=vl(K.end)}function $e(K){le.call(this,K);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(K)}function Le(K){le.call(this,K);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(K)}function Ft(){return{type:"blockquote",children:[]}}function En(){return{type:"code",lang:null,meta:null,value:""}}function Fa(){return{type:"inlineCode",value:""}}function fr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nn(){return{type:"emphasis",children:[]}}function Xl(){return{type:"heading",depth:0,children:[]}}function Zl(){return{type:"break"}}function dr(){return{type:"html",value:""}}function hr(){return{type:"image",title:null,url:"",alt:null}}function $l(){return{type:"link",title:null,url:"",children:[]}}function Fl(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Ja(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function rs(){return{type:"paragraph",children:[]}}function us(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function ss(){return{type:"thematicBreak"}}}function vl(n){return{line:n.line,column:n.column,offset:n.offset}}function lx(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?lx(n,u):yj(n,u)}}function yj(n,a){let r;for(r in a)if(nx.call(a,r))switch(r){case"canContainEols":{const u=a[r];u&&n[r].push(...u);break}case"transforms":{const u=a[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=a[r];u&&Object.assign(n[r],u);break}}}function Eg(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Fi({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Fi({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Fi({start:a.start,end:a.end})+") is still open")}function xj(n){const a=this;a.parser=r;function r(u){return pj(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function bj(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function vj(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
|
|
64
|
+
`}]}function Sj(n,a){const r=a.value?a.value+`
|
|
65
|
+
`:"",u={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return a.meta&&(c.data={meta:a.meta}),n.patch(a,c),c=n.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(a,c),c}function wj(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function jj(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Ej(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=$a(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let f,p=n.footnoteCounts.get(u);p===void 0?(p=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=c+1,p+=1,n.footnoteCounts.set(u,p);const g={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,g);const m={type:"element",tagName:"sup",properties:{},children:[g]};return n.patch(a,m),n.applyData(a,m)}function Nj(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Tj(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function ax(n,a){const r=a.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const s=n.all(a),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=u:s.push({type:"text",value:u}),s}function Cj(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return ax(n,a);const s={src:$a(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,c),n.applyData(a,c)}function Aj(n,a){const r={src:$a(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,u),n.applyData(a,u)}function kj(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,u),n.applyData(a,u)}function zj(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return ax(n,a);const s={href:$a(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,c),n.applyData(a,c)}function Rj(n,a){const r={href:$a(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function _j(n,a,r){const u=n.all(a),s=r?Oj(r):ix(a),c={},f=[];if(typeof a.checked=="boolean"){const x=u[0];let b;x&&x.type==="element"&&x.tagName==="p"?b=x:(b={type:"element",tagName:"p",properties:{},children:[]},u.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let p=-1;for(;++p<u.length;){const x=u[p];(s||p!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
|
|
66
|
+
`}),x.type==="element"&&x.tagName==="p"&&!s?f.push(...x.children):f.push(x)}const g=u[u.length-1];g&&(s||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
|
|
67
|
+
`});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(a,m),n.applyData(a,m)}function Oj(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let u=-1;for(;!a&&++u<r.length;)a=ix(r[u])}return a}function ix(n){const a=n.spread;return a??n.children.length>1}function Mj(n,a){const r={},u=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<u.length;){const f=u[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(a,c),n.applyData(a,c)}function Dj(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Lj(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function Bj(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Uj(n,a){const r=n.all(a),u=r.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],f),s.push(f)}if(r.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},p=Tf(a.children[1]),g=Hy(a.children[a.children.length-1]);p&&g&&(f.position={start:p,end:g}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,c),n.applyData(a,c)}function Hj(n,a,r){const u=r?r.children:void 0,c=(u?u.indexOf(a):1)===0?"th":"td",f=r&&r.type==="table"?r.align:void 0,p=f?f.length:a.children.length;let g=-1;const m=[];for(;++g<p;){const b=a.children[g],w={},S=f?f[g]:void 0;S&&(w.align=S);let z={type:"element",tagName:c,properties:w,children:[]};b&&(z.children=n.all(b),n.patch(b,z),z=n.applyData(b,z)),m.push(z)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,x),n.applyData(a,x)}function qj(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const Ng=9,Tg=32;function Yj(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),s=0;const c=[];for(;u;)c.push(Cg(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=r.exec(a);return c.push(Cg(a.slice(s),s>0,!1)),c.join("")}function Cg(n,a,r){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===Ng||c===Tg;)u++,c=n.codePointAt(u)}if(r){let c=n.codePointAt(s-1);for(;c===Ng||c===Tg;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function Vj(n,a){const r={type:"text",value:Yj(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function Qj(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const Kj={blockquote:bj,break:vj,code:Sj,delete:wj,emphasis:jj,footnoteReference:Ej,heading:Nj,html:Tj,imageReference:Cj,image:Aj,inlineCode:kj,linkReference:zj,link:Rj,listItem:_j,list:Mj,paragraph:Dj,root:Lj,strong:Bj,table:Uj,tableCell:qj,tableRow:Hj,text:Vj,thematicBreak:Qj,toml:_u,yaml:_u,definition:_u,footnoteDefinition:_u};function _u(){}const rx=-1,es=0,Ii=1,Vu=2,Of=3,Mf=4,Df=5,Lf=6,ux=7,sx=8,Gj=typeof self=="object"?self:globalThis,Ag=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new Gj[n](a)},Xj=(n,a)=>{const r=(s,c)=>(n.set(c,s),s),u=s=>{if(n.has(s))return n.get(s);const[c,f]=a[s];switch(c){case es:case rx:return r(f,s);case Ii:{const p=r([],s);for(const g of f)p.push(u(g));return p}case Vu:{const p=r({},s);for(const[g,m]of f)p[u(g)]=u(m);return p}case Of:return r(new Date(f),s);case Mf:{const{source:p,flags:g}=f;return r(new RegExp(p,g),s)}case Df:{const p=r(new Map,s);for(const[g,m]of f)p.set(u(g),u(m));return p}case Lf:{const p=r(new Set,s);for(const g of f)p.add(u(g));return p}case ux:{const{name:p,message:g}=f;return r(Ag(p,g),s)}case sx:return r(BigInt(f),s);case"BigInt":return r(Object(BigInt(f)),s);case"ArrayBuffer":return r(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:p}=new Uint8Array(f);return r(new DataView(p),f)}}return r(Ag(c,f),s)};return u},kg=n=>Xj(new Map,n)(0),Da="",{toString:Zj}={},{keys:$j}=Object,$i=n=>{const a=typeof n;if(a!=="object"||!n)return[es,a];const r=Zj.call(n).slice(8,-1);switch(r){case"Array":return[Ii,Da];case"Object":return[Vu,Da];case"Date":return[Of,Da];case"RegExp":return[Mf,Da];case"Map":return[Df,Da];case"Set":return[Lf,Da];case"DataView":return[Ii,r]}return r.includes("Array")?[Ii,r]:r.includes("Error")?[ux,r]:[Vu,r]},Ou=([n,a])=>n===es&&(a==="function"||a==="symbol"),Fj=(n,a,r,u)=>{const s=(f,p)=>{const g=u.push(f)-1;return r.set(p,g),g},c=f=>{if(r.has(f))return r.get(f);let[p,g]=$i(f);switch(p){case es:{let x=f;switch(g){case"bigint":p=sx,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+g);x=null;break;case"undefined":return s([rx],f)}return s([p,x],f)}case Ii:{if(g){let w=f;return g==="DataView"?w=new Uint8Array(f.buffer):g==="ArrayBuffer"&&(w=new Uint8Array(f)),s([g,[...w]],f)}const x=[],b=s([p,x],f);for(const w of f)x.push(c(w));return b}case Vu:{if(g)switch(g){case"BigInt":return s([g,f.toString()],f);case"Boolean":case"Number":case"String":return s([g,f.valueOf()],f)}if(a&&"toJSON"in f)return c(f.toJSON());const x=[],b=s([p,x],f);for(const w of $j(f))(n||!Ou($i(f[w])))&&x.push([c(w),c(f[w])]);return b}case Of:return s([p,f.toISOString()],f);case Mf:{const{source:x,flags:b}=f;return s([p,{source:x,flags:b}],f)}case Df:{const x=[],b=s([p,x],f);for(const[w,S]of f)(n||!(Ou($i(w))||Ou($i(S))))&&x.push([c(w),c(S)]);return b}case Lf:{const x=[],b=s([p,x],f);for(const w of f)(n||!Ou($i(w)))&&x.push(c(w));return b}}const{message:m}=f;return s([p,{name:g,message:m}],f)};return c},zg=(n,{json:a,lossy:r}={})=>{const u=[];return Fj(!(a||r),!!a,new Map,u)(n),u},Qu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?kg(zg(n,a)):structuredClone(n):(n,a)=>kg(zg(n,a));function Jj(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function Ij(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function Pj(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||Jj,u=n.options.footnoteBackLabel||Ij,s=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let g=-1;for(;++g<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[g]);if(!m)continue;const x=n.all(m),b=String(m.identifier).toUpperCase(),w=$a(b.toLowerCase());let S=0;const z=[],R=n.footnoteCounts.get(b);for(;R!==void 0&&++S<=R;){z.length>0&&z.push({type:"text",value:" "});let $=typeof r=="string"?r:r(g,S);typeof $=="string"&&($={type:"text",value:$}),z.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+w+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(g,S),className:["data-footnote-backref"]},children:Array.isArray($)?$:[$]})}const U=x[x.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const $=U.children[U.children.length-1];$&&$.type==="text"?$.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...z)}else x.push(...z);const k={type:"element",tagName:"li",properties:{id:a+"fn-"+w},children:n.wrap(x,!0)};n.patch(m,k),p.push(k)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Qu(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
68
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(p,!0)},{type:"text",value:`
|
|
69
|
+
`}]}}const ox=(function(n){if(n==null)return nE;if(typeof n=="function")return ts(n);if(typeof n=="object")return Array.isArray(n)?Wj(n):eE(n);if(typeof n=="string")return tE(n);throw new Error("Expected function, string, or object as test")});function Wj(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=ox(n[r]);return ts(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function eE(n){const a=n;return ts(r);function r(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function tE(n){return ts(a);function a(r){return r&&r.type===n}}function ts(n){return a;function a(r,u,s){return!!(lE(r)&&n.call(this,r,typeof u=="number"?u:void 0,s||void 0))}}function nE(){return!0}function lE(n){return n!==null&&typeof n=="object"&&"type"in n}const cx=[],aE=!0,Rg=!1,iE="skip";function rE(n,a,r,u){let s;typeof a=="function"&&typeof r!="function"?(u=r,r=a):s=a;const c=ox(s),f=u?-1:1;p(n,void 0,[])();function p(g,m,x){const b=g&&typeof g=="object"?g:{};if(typeof b.type=="string"){const S=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(g.type+(S?"<"+S+">":""))+")"})}return w;function w(){let S=cx,z,R,U;if((!a||c(g,m,x[x.length-1]||void 0))&&(S=uE(r(g,x)),S[0]===Rg))return S;if("children"in g&&g.children){const k=g;if(k.children&&S[0]!==iE)for(R=(u?k.children.length:-1)+f,U=x.concat(k);R>-1&&R<k.children.length;){const $=k.children[R];if(z=p($,R,U)(),z[0]===Rg)return z;R=typeof z[1]=="number"?z[1]:R+f}}return S}}}function uE(n){return Array.isArray(n)?n:typeof n=="number"?[aE,n]:n==null?cx:[n]}function fx(n,a,r,u){let s,c,f;typeof a=="function"&&typeof r!="function"?(c=void 0,f=a,s=r):(c=a,f=r,s=u),rE(n,c,p,s);function p(g,m){const x=m[m.length-1],b=x?x.children.indexOf(g):void 0;return f(g,b,x)}}const af={}.hasOwnProperty,sE={};function oE(n,a){const r=a||sE,u=new Map,s=new Map,c=new Map,f={...Kj,...r.handlers},p={all:m,applyData:fE,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:g,options:r,patch:cE,wrap:hE};return fx(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const b=x.type==="definition"?u:s,w=String(x.identifier).toUpperCase();b.has(w)||b.set(w,x)}}),p;function g(x,b){const w=x.type,S=p.handlers[w];if(af.call(p.handlers,w)&&S)return S(p,x,b);if(p.options.passThrough&&p.options.passThrough.includes(w)){if("children"in x){const{children:R,...U}=x,k=Qu(U);return k.children=p.all(x),k}return Qu(x)}return(p.options.unknownHandler||dE)(p,x,b)}function m(x){const b=[];if("children"in x){const w=x.children;let S=-1;for(;++S<w.length;){const z=p.one(w[S],x);if(z){if(S&&w[S-1].type==="break"&&(!Array.isArray(z)&&z.type==="text"&&(z.value=_g(z.value)),!Array.isArray(z)&&z.type==="element")){const R=z.children[0];R&&R.type==="text"&&(R.value=_g(R.value))}Array.isArray(z)?b.push(...z):b.push(z)}}}return b}}function cE(n,a){n.position&&(a.position=XS(n))}function fE(n,a){let r=a;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const f="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:f}}r.type==="element"&&c&&Object.assign(r.properties,Qu(c)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function dE(n,a){const r=a.data||{},u="value"in a&&!(af.call(r,"hProperties")||af.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function hE(n,a){const r=[];let u=-1;for(a&&r.push({type:"text",value:`
|
|
70
|
+
`});++u<n.length;)u&&r.push({type:"text",value:`
|
|
71
|
+
`}),r.push(n[u]);return a&&n.length>0&&r.push({type:"text",value:`
|
|
72
|
+
`}),r}function _g(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function Og(n,a){const r=oE(n,a),u=r.one(n,void 0),s=Pj(r),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
|
|
73
|
+
`},s),c}function mE(n,a){return n&&"run"in n?async function(r,u){const s=Og(r,{file:u,...a});await n.run(s,u)}:function(r,u){return Og(r,{file:u,...n||a})}}function Mg(n){if(n)throw n}var qc,Dg;function pE(){if(Dg)return qc;Dg=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},c=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=n.call(m,"constructor"),b=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!b)return!1;var w;for(w in m);return typeof w>"u"||n.call(m,w)},f=function(m,x){r&&x.name==="__proto__"?r(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},p=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return qc=function g(){var m,x,b,w,S,z,R=arguments[0],U=1,k=arguments.length,$=!1;for(typeof R=="boolean"&&($=R,R=arguments[1]||{},U=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});U<k;++U)if(m=arguments[U],m!=null)for(x in m)b=p(R,x),w=p(m,x),R!==w&&($&&w&&(c(w)||(S=s(w)))?(S?(S=!1,z=b&&s(b)?b:[]):z=b&&c(b)?b:{},f(R,{name:x,newValue:g($,z,w)})):typeof w<"u"&&f(R,{name:x,newValue:w}));return R},qc}var gE=pE();const Yc=Ig(gE);function rf(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function yE(){const n=[],a={run:r,use:u};return a;function r(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);p(null,...s);function p(g,...m){const x=n[++c];let b=-1;if(g){f(g);return}for(;++b<s.length;)(m[b]===null||m[b]===void 0)&&(m[b]=s[b]);s=m,x?xE(x,p)(...m):f(null,...m)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function xE(n,a){let r;return u;function u(...f){const p=n.length>f.length;let g;p&&f.push(s);try{g=n.apply(this,f)}catch(m){const x=m;if(p&&r)throw x;return s(x)}p||(g&&g.then&&typeof g.then=="function"?g.then(c,s):g instanceof Error?s(g):c(g))}function s(f,...p){r||(r=!0,a(f,...p))}function c(f){s(null,f)}}const vn={basename:bE,dirname:vE,extname:SE,join:wE,sep:"/"};function bE(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');or(n);let r=0,u=-1,s=n.length,c;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(c){r=s+1;break}}else u<0&&(c=!0,u=s+1);return u<0?"":n.slice(r,u)}if(a===n)return"";let f=-1,p=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(c){r=s+1;break}}else f<0&&(c=!0,f=s+1),p>-1&&(n.codePointAt(s)===a.codePointAt(p--)?p<0&&(u=s):(p=-1,u=f));return r===u?u=f:u<0&&(u=n.length),n.slice(r,u)}function vE(n){if(or(n),n.length===0)return".";let a=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){a=r;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function SE(n){or(n);let a=n.length,r=-1,u=0,s=-1,c=0,f;for(;a--;){const p=n.codePointAt(a);if(p===47){if(f){u=a+1;break}continue}r<0&&(f=!0,r=a+1),p===46?s<0?s=a:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===u+1?"":n.slice(s,r)}function wE(...n){let a=-1,r;for(;++a<n.length;)or(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":jE(r)}function jE(n){or(n);const a=n.codePointAt(0)===47;let r=EE(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function EE(n,a){let r="",u=0,s=-1,c=0,f=-1,p,g;for(;++f<=n.length;){if(f<n.length)p=n.codePointAt(f);else{if(p===47)break;p=47}if(p===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(g=r.lastIndexOf("/"),g!==r.length-1){g<0?(r="",u=0):(r=r.slice(0,g),u=r.length-1-r.lastIndexOf("/")),s=f,c=0;continue}}else if(r.length>0){r="",u=0,s=f,c=0;continue}}a&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(s+1,f):r=n.slice(s+1,f),u=f-s-1;s=f,c=0}else p===46&&c>-1?c++:c=-1}return r}function or(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const NE={cwd:TE};function TE(){return"/"}function uf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function CE(n){if(typeof n=="string")n=new URL(n);else if(!uf(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return AE(n)}function AE(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const u=a.codePointAt(r+2);if(u===70||u===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Vc=["history","path","basename","stem","extname","dirname"];class dx{constructor(a){let r;a?uf(a)?r={path:a}:typeof a=="string"||kE(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":NE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Vc.length;){const c=Vc[u];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)Vc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?vn.basename(this.path):void 0}set basename(a){Kc(a,"basename"),Qc(a,"basename"),this.path=vn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?vn.dirname(this.path):void 0}set dirname(a){Lg(this.basename,"dirname"),this.path=vn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?vn.extname(this.path):void 0}set extname(a){if(Qc(a,"extname"),Lg(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){uf(a)&&(a=CE(a)),Kc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?vn.basename(this.path,this.extname):void 0}set stem(a){Kc(a,"stem"),Qc(a,"stem"),this.path=vn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,u){const s=this.message(a,r,u);throw s.fatal=!0,s}info(a,r,u){const s=this.message(a,r,u);return s.fatal=void 0,s}message(a,r,u){const s=new vt(a,r,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Qc(n,a){if(n&&n.includes(vn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+vn.sep+"`")}function Kc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Lg(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function kE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const zE=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),RE={}.hasOwnProperty;class Bf extends zE{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=yE()}copy(){const a=new Bf;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Yc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Zc("data",this.frozen),this.namespace[a]=r,this):RE.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Zc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=r.call(a,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=Mu(a),u=this.parser||this.Parser;return Gc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),Gc("process",this.parser||this.Parser),Xc("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(c,f){const p=Mu(a),g=u.parse(p);u.run(g,p,function(x,b,w){if(x||!b||!w)return m(x);const S=b,z=u.stringify(S,w);ME(z)?w.value=z:w.result=z,m(x,w)});function m(x,b){x||!b?f(x):c?c(b):r(void 0,b)}}}processSync(a){let r=!1,u;return this.freeze(),Gc("processSync",this.parser||this.Parser),Xc("processSync",this.compiler||this.Compiler),this.process(a,s),Ug("processSync","process",r),u;function s(c,f){r=!0,Mg(c),u=f}}run(a,r,u){Bg(a),this.freeze();const s=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?c(void 0,u):new Promise(c);function c(f,p){const g=Mu(r);s.run(a,g,m);function m(x,b,w){const S=b||a;x?p(x):f?f(S):u(void 0,S,w)}}}runSync(a,r){let u=!1,s;return this.run(a,r,c),Ug("runSync","run",u),s;function c(f,p){Mg(f),s=p,u=!0}}stringify(a,r){this.freeze();const u=Mu(r),s=this.compiler||this.Compiler;return Xc("stringify",s),Bg(a),s(a,u)}use(a,...r){const u=this.attachers,s=this.namespace;if(Zc("use",this.frozen),a!=null)if(typeof a=="function")g(a,r);else if(typeof a=="object")Array.isArray(a)?p(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(m){if(typeof m=="function")g(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...b]=m;g(x,b)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(m){if(!("plugins"in m)&&!("settings"in m))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");p(m.plugins),m.settings&&(s.settings=Yc(!0,s.settings,m.settings))}function p(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const b=m[x];c(b)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function g(m,x){let b=-1,w=-1;for(;++b<u.length;)if(u[b][0]===m){w=b;break}if(w===-1)u.push([m,...x]);else if(x.length>0){let[S,...z]=x;const R=u[w][1];rf(R)&&rf(S)&&(S=Yc(!0,R,S)),u[w]=[m,S,...z]}}}}const _E=new Bf().freeze();function Gc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Xc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Zc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Bg(n){if(!rf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Ug(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Mu(n){return OE(n)?n:new dx(n)}function OE(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function ME(n){return typeof n=="string"||DE(n)}function DE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const LE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Hg=[],qg={allowDangerousHtml:!0},BE=/^(https?|ircs?|mailto|xmpp)$/i,UE=[{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 HE(n){const a=qE(n),r=YE(n);return VE(a.runSync(a.parse(r),r),n)}function qE(n){const a=n.rehypePlugins||Hg,r=n.remarkPlugins||Hg,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...qg}:qg;return _E().use(xj).use(r).use(mE,u).use(a)}function YE(n){const a=n.children||"",r=new dx;return typeof a=="string"&&(r.value=a),r}function VE(n,a){const r=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,p=a.unwrapDisallowed,g=a.urlTransform||QE;for(const x of UE)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+LE+x.id,void 0);return fx(n,m),IS(n,{Fragment:h.Fragment,components:s,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function m(x,b,w){if(x.type==="raw"&&w&&typeof b=="number")return f?w.children.splice(b,1):w.children[b]={type:"text",value:x.value},b;if(x.type==="element"){let S;for(S in Bc)if(Object.hasOwn(Bc,S)&&Object.hasOwn(x.properties,S)){const z=x.properties[S],R=Bc[S];(R===null||R.includes(x.tagName))&&(x.properties[S]=g(String(z||""),S,x))}}if(x.type==="element"){let S=r?!r.includes(x.tagName):c?c.includes(x.tagName):!1;if(!S&&u&&typeof b=="number"&&(S=!u(x,b,w)),S&&w&&typeof b=="number")return p&&x.children?w.children.splice(b,1,...x.children):w.children.splice(b,1),b}}}function QE(n){const a=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||u!==-1&&a>u||BE.test(n.slice(0,a))?n:""}function Vl(n){return!n.value||!n.value.trim()?h.jsx("p",{className:"text-sm text-muted",children:"No description."}):h.jsx("div",{className:["prose prose-sm max-w-none prose-headings:text-text prose-p:text-text prose-strong:text-text prose-a:text-primary","[&_code]:rounded-md [&_code]:border [&_code]:border-faint [&_code]:bg-elevated [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.8125rem] [&_code]:font-medium [&_code]:text-text","[&_pre]:my-3 [&_pre]:rounded-xl [&_pre]:border [&_pre]:border-faint [&_pre]:bg-elevated [&_pre]:p-4 [&_pre]:shadow-sm","[&_pre_code]:m-0 [&_pre_code]:block [&_pre_code]:w-full [&_pre_code]:rounded-none [&_pre_code]:border-0 [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_pre_code]:text-xs [&_pre_code]:font-normal [&_pre_code]:leading-relaxed [&_pre_code]:shadow-none"].join(" "),children:h.jsx(HE,{children:n.value})})}function Yg(n){return n==="rtl"?"text-right":""}function Vg(n){if(n)return{unicodeBidi:"plaintext"}}function Qg(n){if(typeof window>"u")return;const a=new URL(window.location.href);n?a.hash=n:a.hash="",window.history.replaceState(null,"",a.toString())}function hx(n){const{setKey:a}=st(),r=n.showSource!==!1,u=n.rows?n.rows:Object.entries(n.translations||{}).sort(([m],[x])=>m.localeCompare(x)).map(([m,x])=>({locale:m,value:x,source:"direct"})),[s,c]=T.useState([]),[f,p]=T.useState(null);if(u.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No translations found."});T.useEffect(()=>{if(typeof window>"u"||!n.getRowFragmentId)return;const m=decodeURIComponent(window.location.hash.slice(1));if(!m)return;const x=u.find(w=>{var S;return((S=n.getRowFragmentId)==null?void 0:S.call(n,w))===m});if(!x)return;const b=n.getRowKey?n.getRowKey(x):x.locale;c(w=>w.includes(b)?w:[...w,b]),p(m)},[u,n.getRowFragmentId,n.getRowKey]),T.useEffect(()=>{if(!f||typeof window>"u")return;const m=window.requestAnimationFrame(()=>{const x=document.getElementById(f);x&&x.scrollIntoView({block:"start"})});return()=>{window.cancelAnimationFrame(m)}},[f]);const g=2+(n.comparisonLabel?1:0)+(n.renderMetaCell?1:0)+(r?1:0);return h.jsx("div",{className:"overflow-hidden rounded border border-border",children:h.jsxs("table",{className:"w-full border-collapse bg-surface text-xs",children:[h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Locale"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:n.translationLabel||"Translation"}),n.comparisonLabel&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:n.comparisonLabel}),n.renderMetaCell&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold"}),r&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Source"})]})}),h.jsx("tbody",{children:u.map(m=>{var z,R,U,k,$,L,ee,I,H;const x=n.getRowKey?n.getRowKey(m):m.locale,b=(z=n.getRowFragmentId)==null?void 0:z.call(n,m),w=!!n.renderExpandedRow,S=s.includes(x);return h.jsxs(T.Fragment,{children:[h.jsxs("tr",{id:b,className:w?["cursor-pointer transition-colors",S?"bg-elevated":"hover:bg-elevated/60"].join(" "):void 0,onClick:w?()=>c(F=>{var oe;if(F.includes(x)){const Y=F.filter(te=>te!==x),le=b&&f===b?Y[Y.length-1]||null:F[F.length-1]||null,P=le&&((oe=n.getRowFragmentId)==null?void 0:oe.call(n,u.find(te=>(n.getRowKey?n.getRowKey(te):te.locale)===le)))||null;return p(P),Qg(P||void 0),Y}return b&&(p(b),Qg(b)),[...F,x]}):void 0,children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium",children:n.linkLocales?h.jsx(Ge,{to:Pe("locale",m.locale,a),className:"font-medium text-primary hover:underline",onClick:F=>F.stopPropagation(),children:m.locale}):m.locale}),h.jsx("td",{className:["border-b border-border px-3 py-2",m.source==="inherited"?"text-faint":"",Yg((R=n.localeDirections)==null?void 0:R[m.locale])].join(" "),dir:(U=n.localeDirections)==null?void 0:U[m.locale],style:Vg((k=n.localeDirections)==null?void 0:k[m.locale]),children:m.value||"—"}),n.comparisonLabel&&h.jsx("td",{className:["border-b border-border px-3 py-2 text-muted",Yg(($=n.localeDirections)==null?void 0:$[m.locale])].join(" "),dir:(L=n.localeDirections)==null?void 0:L[m.locale],style:Vg((ee=n.localeDirections)==null?void 0:ee[m.locale]),children:((I=n.comparisonValues)==null?void 0:I[m.locale])||"—"}),n.renderMetaCell&&h.jsx("td",{className:"border-b border-border px-3 py-2",children:n.renderMetaCell(m)}),r&&h.jsxs("td",{className:"border-b border-border px-3 py-2 text-muted",children:[m.source,m.from?h.jsxs(h.Fragment,{children:[" from ",h.jsx(Ge,{to:Pe("locale",m.from,a),className:"font-medium text-primary hover:underline",onClick:F=>F.stopPropagation(),children:m.from})]}):""]})]}),w&&S&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:g,className:"border-b border-border px-4 py-4",children:(H=n.renderExpandedRow)==null?void 0:H.call(n,m)})})]},x)})})]})})}function ar(n){return!n.keys||n.keys.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No usage found."}):h.jsx("ul",{className:"list-inside list-disc space-y-1 text-sm",children:n.keys.map(a=>h.jsx("li",{className:"[overflow-wrap:anywhere]",children:h.jsx(Ge,{className:"text-primary hover:underline",to:Pe(n.type,n.type==="attribute"?a.split(".")[0]:a,n.setKey),children:h.jsx(wl,{value:a,className:"font-medium"})})},a))})}const KE="dup";function Du(n){let a=3735928559,r=1103547991;for(let u=0;u<n.length;u+=1){const s=n.charCodeAt(u);a=Math.imul(a^s,2654435761),r=Math.imul(r^s,1597334677)}return a=Math.imul(a^a>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507)^Math.imul(a^a>>>13,3266489909),`${KE}${(a>>>0).toString(36)}${(r>>>0).toString(36)}`}function GE(n,a){return n.slice().sort((r,u)=>{const s=a.direction==="asc"?1:-1,c=r.value.localeCompare(u.value);return a.column==="messages"?(r.messageKeys.length-u.messageKeys.length||c)*s:(r.value.localeCompare(u.value)||r.messageKeys.length-u.messageKeys.length)*s})}function Kg(n,a){return n.column!==a?{column:a,direction:a==="messages"?"desc":"asc"}:{column:a,direction:n.direction==="asc"?"desc":"asc"}}const XE=["number","date","time"],ZE=new Set(XE);function Sl(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function $E(n,a){if(!Sl(n))return Sl(a)?a:void 0;if(!Sl(a))return n;const r={...n};for(const u of Object.keys(a)){const s=r[u],c=a[u];if(!Sl(s)||!Sl(c)){r[u]=c;continue}r[u]={...s,...c}}return r}function FE(n){const a=n.trim();if(!(!a||a.startsWith("::")))return a.replace(/,$/,"").trim()||void 0}function JE(n){const a={};if(!n)return a;const r=/\{[^{}]*,\s*(number|date|time)\s*,\s*([^{}]+?)\}/g;let u;for(;u=r.exec(n);){const s=u[1],c=FE(u[2]);c&&(a[s]||(a[s]=[]),a[s].includes(c)||a[s].push(c))}return a}function IE(n,a,r){const u=$E(Sl(a)?a:void 0,Sl(r)?r:void 0),s=JE(n),c={};if(u){for(const f of Object.keys(s)){if(!ZE.has(f))continue;const p=f,g=s[p]||[],m=u[p];if(Sl(m))for(const x of g)Object.prototype.hasOwnProperty.call(m,x)&&(c[p]||(c[p]={}),c[p][x]=m[x])}return Object.keys(c).length>0?c:void 0}}function Uf(n,a){if(n)return a==null?void 0:a[n]}function ns(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function Gg(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function st(){return M0()}function La(n){if(typeof n>"u"||n===null||n==="")return"n/a";if(Array.isArray(n))return n.length>0?n.join(", "):"none";if(typeof n=="object"){const a=Object.keys(n);return a.length>0?a.join(", "):"none"}return String(n)}function PE(n,a){const r=Ha(n.path),u=La(n.value),s=n.examplePreview??"",c=`${n.path} ${u} ${s} ${n.source} ${n.from??""}`.toLowerCase();for(const f of a.freeText)if(!c.includes(f))return!1;for(const f of a.qualifiers){const p=f.value.toLowerCase();switch(f.key){case"type":if(!r.type.toLowerCase().includes(p))return!1;break;case"style":if(!r.style.toLowerCase().includes(p))return!1;break;case"param":if(!r.param.toLowerCase().includes(p))return!1;break;case"value":if(!u.toLowerCase().includes(p))return!1;break;case"from":if(!(n.from||"").toLowerCase().includes(p))return!1;break;case"source":if(!n.source.toLowerCase().includes(p))return!1;break;default:if(!c.includes(p))return!1}}return!0}function WE(n,a){const r=a.trim();if(!r)return n;const u=tr(r);return u.freeText.length===0&&u.qualifiers.length===0?n:n.filter(s=>PE(s,u))}function eN(n){const a=n.trim();if(!a)return"";const r=tr(a),u=[...r.freeText],s=new Set(["type","style","param","value","from","source"]);for(const c of r.qualifiers)s.has(c.key)&&u.push(c.value.toLowerCase());return u.length===0?a:u.reduce((c,f)=>f.length>c.length?f:c)}function Ha(n){const a=n.split(".").filter(Boolean);return a.length===0?{type:"",style:"",param:""}:a.length===1?{type:a[0],style:"",param:""}:a.length===2?{type:a[0],style:a[1],param:""}:{type:a[0],style:a[1],param:a.slice(2).join(".")}}function Xg(n){const r=[...n].sort((f,p)=>f.path.localeCompare(p.path)).map(f=>({row:f,parts:Ha(f.path)})),u=[];let s=0,c=0;for(;c<r.length;){const f=r[c].parts.type;let p=c;for(;p<r.length&&r[p].parts.type===f;)p++;const g=p-c;let m=c;for(;m<p;){const x=r[m].parts.style;let b=m;for(;b<p&&r[b].parts.style===x;)b++;const w=b-m;for(let S=m;S<b;S++)u.push({row:r[S].row,parts:r[S].parts,showTypeCell:S===c,typeRowSpan:g,showStyleCell:S===m,styleRowSpan:w,typeBand:s});m=b}s+=1,c=p}return u}function mx(n){const a=new Set;for(const r of n){const u=Ha(r.path).type;u&&a.add(u)}return[...a].sort((r,u)=>r.localeCompare(u))}const Ku=["number","date","time"];function px(n){return!1}function tN(n){const a=new Set(Ku),r=n.filter(u=>!a.has(u)).sort((u,s)=>u.localeCompare(s));return[...Ku,...r]}function nN(n){const a=new Set(n),r=Ku.filter(s=>a.has(s)),u=n.filter(s=>!Ku.includes(s)).sort((s,c)=>s.localeCompare(c));return[...r,...u]}function Zg(n,a){return`format-${ns(`${n}-${a||"default"}`)}`}function mn(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function lN(){return h.jsx("svg",{className:"h-3.5 w-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:h.jsx("path",{d:"M4 6h16M4 12h16M4 18h16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function aN(){return h.jsxs("svg",{className:"h-3.5 w-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[h.jsx("rect",{x:"3",y:"3",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"2"}),h.jsx("rect",{x:"3",y:"15",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"2"})]})}const ls="h-7";function gx(n){return h.jsxs("div",{className:["inline-flex shrink-0 items-stretch rounded-lg border border-border bg-elevated p-px",ls].join(" "),role:"tablist","aria-label":"Example layout",children:[h.jsx("button",{type:"button",role:"tab","aria-selected":n.activeView==="compact","aria-label":"Compact",title:"Compact",className:["inline-flex h-full min-h-0 items-center justify-center rounded-md px-2 py-0 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",n.activeView==="compact"?"bg-header-active text-header-text shadow-sm":"text-muted hover:text-text"].join(" "),onClick:()=>n.onViewChange("compact"),children:h.jsx(lN,{})}),h.jsx("button",{type:"button",role:"tab","aria-selected":n.activeView==="expanded","aria-label":"Expanded",title:"Expanded",className:["inline-flex h-full min-h-0 items-center justify-center rounded-md px-2 py-0 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",n.activeView==="expanded"?"bg-header-active text-header-text shadow-sm":"text-muted hover:text-text"].join(" "),onClick:()=>n.onViewChange("expanded"),children:h.jsx(aN,{})})]})}function Qa(n){if(typeof window>"u")return;const a=new URL(window.location.href);n?a.hash=n:a.hash="",window.history.replaceState(null,"",a.toString())}function Ql(n){if(n.value&&typeof n.value=="object"&&!Array.isArray(n.value)&&Object.keys(n.value).length===1){const[a,r]=Object.entries(n.value)[0];if(r===null||typeof r=="string"||typeof r=="number"||typeof r=="boolean")return h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:`{${JSON.stringify(a)}: ${JSON.stringify(r)}}`})}return h.jsx(ur,{value:n.value})}function as(n){return h.jsx("div",{dir:n.direction,className:["min-w-0 max-w-full",n.direction==="rtl"?"text-right":""].filter(Boolean).join(" "),style:n.direction?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(ur,{value:n.value})})}function is(n){return h.jsx("a",{href:`#${n.targetId}`,"aria-label":"Link to this example",className:"inline-flex rounded p-1 text-muted opacity-0 transition-opacity hover:text-primary focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring group-hover:opacity-100",children:h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11 4"}),h.jsx("path",{d:"M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 1 0 7.07 7.07L13 20"})]})})}function cr(n){T.useEffect(()=>{if(typeof window>"u"||!window.location.hash)return;const a=decodeURIComponent(window.location.hash.slice(1));if(!a)return;const r=window.requestAnimationFrame(()=>{const u=document.getElementById(a);u&&u.scrollIntoView({block:"start"})});return()=>{window.cancelAnimationFrame(r)}},n)}function $g(){return h.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 12 12",fill:"none",className:"h-3 w-3",children:h.jsx("path",{d:"M3.25 4.5 6 7.25 8.75 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function iN(n){return n.icon==="cursor"?h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",children:[h.jsx("path",{d:"M4 3l16 9-7 2-3 7L4 3Z",fill:"#111827"}),h.jsx("path",{d:"M8.2 8.6 15 12.6",stroke:"#ffffff",strokeWidth:"1.4",strokeLinecap:"round"}),h.jsx("path",{d:"M10.2 12.9 12.6 14.3 10.5 18.8Z",fill:"#ffffff",opacity:".92"})]}):h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",children:[h.jsx("path",{d:"M17.2 3.2 9.4 10 5.1 6.7 3 7.8v8.4l2.1 1.1 4.3-3.3 7.8 6.8L21 19V5l-3.8-1.8Z",fill:"#007ACC"}),h.jsx("path",{d:"M17.2 8.2v7.6L12.5 12l4.7-3.8Z",fill:"#ffffff",opacity:".35"})]})}function rN(n){var w,S;const{manifest:a}=jn(),[r,u]=T.useState(!1),s=T.useRef(null);T.useEffect(()=>{if(!r)return;function z(U){var k;(k=s.current)!=null&&k.contains(U.target)||u(!1)}function R(U){U.key==="Escape"&&u(!1)}return document.addEventListener("pointerdown",z),document.addEventListener("keydown",R),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("keydown",R)}},[r]);const c=n.sourcePath&&((w=a.links)!=null&&w.source)?a.links.source.replace("{{path}}",n.sourcePath):void 0,f=(((S=a.dev)==null?void 0:S.editors)||[]).filter(z=>{var R;return(R=n.editLinks)==null?void 0:R[z.id]}),p=f.length>0;if(!c&&!p)return null;const g="rounded border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",m="border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",x="border border-border bg-elevated py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",b=p?h.jsx("div",{role:"menu",className:"absolute right-0 top-full z-20 mt-px min-w-48 overflow-hidden rounded border border-border bg-surface py-1 shadow-lg",children:f.map(z=>{var R;return h.jsxs("a",{role:"menuitem",href:(R=n.editLinks)==null?void 0:R[z.id],className:"flex items-center gap-2 px-3 py-2 text-sm font-semibold text-muted hover:bg-elevated hover:text-text",onClick:()=>u(!1),children:[h.jsx(iN,{icon:z.icon}),h.jsxs("span",{children:["Open in ",z.label]})]},z.id)})}):null;return p?h.jsxs("div",{ref:s,className:"relative inline-flex",children:[c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:`${m} rounded-l`,children:"Edit"}):h.jsxs("button",{type:"button",className:`${m} inline-flex items-center gap-2 rounded`,"aria-haspopup":"menu","aria-expanded":r,onClick:()=>u(z=>!z),children:["Edit",h.jsx($g,{})]}),c&&h.jsx("button",{type:"button",className:`${x} -ml-px rounded-r px-1.5`,"aria-label":"Open edit menu","aria-haspopup":"menu","aria-expanded":r,onClick:()=>u(z=>!z),children:h.jsx($g,{})}),r&&b]}):c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:g,children:"Edit"}):null}function yx(n){const{setKey:a}=st(),r=n.rows||[],u=n.searchQuery??"",s=eN(u),c=!!s.trim(),f=n.formatPathLayout==="split",p=!!(n.hideTypeColumn&&f),g=!!n.showExampleColumn;let m=u.trim()?WE(r,u):r;if(f&&n.selectedFormatType&&(m=m.filter(Y=>Ha(Y.path).type===n.selectedFormatType)),cr([f,u,n.selectedFormatType,r.length,m.length]),r.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No formats found."});if(m.length===0){const Y=u.trim()?"No formats match your search.":n.selectedFormatType?"No formats for this type.":"No formats match your search.";return h.jsx("p",{className:"text-sm text-muted",children:Y})}const x=f?Xg(m):null,b=f?nN(mx(m)):[],w=f?m.reduce((Y,le)=>{const P=Ha(le.path).type;return Y[P]||(Y[P]=[]),Y[P].push(le),Y},{}):{};function S(Y){return Y?c?h.jsx(qe,{text:Y,query:s}):Y:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function z(Y){return Y.source==="inherited"&&Y.from?h.jsx(nr,{label:"inherited from",value:Y.from,to:Pe("locale",Y.from,a),tone:"inheritance",compact:!0}):Y.source==="target"?h.jsx(nr,{label:"from",value:"target",tone:"neutral",compact:!0}):null}function R(Y){return Y.source==="inherited"&&Y.from?h.jsxs("div",{className:"text-[10px] font-normal leading-snug text-faint",children:["Inherited from"," ",h.jsx(Ge,{to:Pe("locale",Y.from,a),className:"font-medium text-muted hover:text-primary hover:underline",children:Y.from})]}):Y.source==="target"?h.jsx("div",{className:"text-[10px] font-normal leading-snug text-faint",children:"Target override"}):null}function U(Y,le){const P=S(Y);return le==="param"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap font-mono text-[11px] leading-snug text-muted",children:P}):le==="style"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap leading-snug text-text",children:P}):h.jsx("div",{className:"whitespace-pre-wrap leading-snug text-text [overflow-wrap:anywhere]",children:P})}function k(Y){const le=R(Y.row),P=Zg(Y.parts.type,Y.parts.style);return h.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-1.5",children:[h.jsx("a",{href:`#${P}`,className:"w-full min-w-0 rounded-sm text-text hover:text-primary hover:underline",children:U(Y.parts.style,"style")}),le]})}function $(Y){return Y%2===0?"bg-surface":"bg-elevated/[0.2]"}function L(Y){switch(Y){case"type":return"border-b border-border border-r border-border/50";case"example":return"border-b border-border border-r border-border/50";case"style":return"border-b border-border border-r border-border/50";case"param":return"border-b border-border border-r border-border/40";case"value":return"border-b border-border";default:return""}}function ee(Y,le){const P=La(Y.value),te=f?null:z(Y);return h.jsx("td",{className:[le,L("value")].join(" "),children:h.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[h.jsx("div",{className:["min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere]",Y.source==="inherited"?"text-muted":""].join(" "),children:c?h.jsx(qe,{text:P,query:s}):P}),te&&h.jsx("div",{className:"flex shrink-0 flex-col items-end justify-center gap-1",children:te})]})})}function I(Y){return Y?c?h.jsx(qe,{text:Y,query:s}):Y:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function H(Y,le){return!g||!Y.showStyleCell?null:h.jsx("td",{rowSpan:Y.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]",le,L("example")].join(" "),children:I(Y.row.examplePreview)})}function F(Y){return h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]","border-b border-border border-r border-border/40"].join(" "),children:I(Y.examplePreview)})}function oe(Y){return h.jsx("div",{className:"min-w-0 overflow-x-auto rounded-lg border border-border",children:h.jsxs("table",{className:"w-full min-w-[34rem] table-fixed border-collapse bg-surface text-xs",children:[h.jsx("colgroup",{children:g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[24%]"}),h.jsx("col",{className:"min-w-0 w-[18%]"}),h.jsx("col",{className:"min-w-0 w-[28%]"}),h.jsx("col",{className:"min-w-0 w-[30%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[30%]"}),h.jsx("col",{className:"min-w-0 w-[30%]"}),h.jsx("col",{className:"min-w-0 w-[40%]"})]})}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Style"}),g?h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Example"}):null,h.jsx("th",{className:"align-middle border-b border-r border-border/40 px-3 py-2 font-semibold",children:"Param"}),h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Value"})]})}),h.jsx("tbody",{children:Y.map(le=>{const P=$(le.typeBand);return h.jsxs("tr",{children:[le.showStyleCell?h.jsx("td",{id:Zg(le.parts.type,le.parts.style),rowSpan:le.styleRowSpan,className:["align-middle min-w-0 scroll-mt-2 px-3 py-2 font-medium",P,L("style")].join(" "),children:k(le)}):null,H(le,P),h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 font-medium text-muted",P,L("param")].join(" "),children:U(le.parts.param,"param")}),ee(le.row,["align-middle min-w-0 px-3 py-2",P].join(" "))]},le.row.path)})})]})})}return f?h.jsx("div",{className:"space-y-5",children:b.map(Y=>{const le=w[Y]||[],P=Xg(le),te=new Set(le.map(xe=>Ha(xe.path).style).filter(Boolean)).size;return h.jsxs("section",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[h.jsx("h3",{className:"text-sm font-semibold text-text",children:Y}),h.jsxs("span",{className:"text-xs text-muted",children:[te," ",te===1?"style":"styles"]})]}),oe(P)]},Y)})}):h.jsx("div",{className:"min-w-0 overflow-x-auto rounded-xl border border-border",children:h.jsxs("table",{className:"w-full min-w-[40rem] table-fixed border-collapse bg-surface text-xs",children:[f?h.jsx("colgroup",{children:p?g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[18%]"}),h.jsx("col",{className:"min-w-0 w-[14%]"}),h.jsx("col",{className:"min-w-0 w-[36%]"}),h.jsx("col",{className:"min-w-0 w-[32%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[28%]"}),h.jsx("col",{className:"min-w-0 w-[32%]"}),h.jsx("col",{className:"min-w-0 w-[40%]"})]}):g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[10%]"}),h.jsx("col",{className:"min-w-0 w-[16%]"}),h.jsx("col",{className:"min-w-0 w-[12%]"}),h.jsx("col",{className:"min-w-0 w-[34%]"}),h.jsx("col",{className:"min-w-0 w-[28%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[12%]"}),h.jsx("col",{className:"min-w-0 w-[24%]"}),h.jsx("col",{className:"min-w-0 w-[28%]"}),h.jsx("col",{className:"min-w-0 w-[36%]"})]})}):h.jsx("colgroup",{children:g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[40%]"}),h.jsx("col",{className:"min-w-0 w-[20%]"}),h.jsx("col",{className:"min-w-0 w-[40%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-1/2"}),h.jsx("col",{className:"min-w-0 w-1/2"})]})}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsx("tr",{children:f?h.jsxs(h.Fragment,{children:[p?null:h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Type"}),h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Style"}),g?h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Example"}):null,h.jsx("th",{className:"align-middle border-b border-r border-border/40 px-3 py-2 font-semibold",children:"Param"}),h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Value"})]}):h.jsxs(h.Fragment,{children:[h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Format"}),g?h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Example"}):null,h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Value"})]})})}),h.jsx("tbody",{children:f&&x?x.map(Y=>{const le=$(Y.typeBand);return h.jsxs("tr",{children:[!p&&Y.showTypeCell?h.jsx("td",{rowSpan:Y.typeRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",le,L("type")].join(" "),children:U(Y.parts.type,"type")}):null,Y.showStyleCell?h.jsx("td",{rowSpan:Y.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",le,L("style")].join(" "),children:k(Y)}):null,H(Y,le),h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 font-medium text-muted",le,L("param")].join(" "),children:U(Y.parts.param,"param")}),ee(Y.row,["align-middle min-w-0 px-3 py-2",le].join(" "))]},Y.row.path)}):m.map(Y=>{const le=["align-middle min-w-0 px-3 py-2 font-medium text-muted",g?"border-b border-border border-r border-border/40":"border-b border-border"].join(" ");return h.jsxs("tr",{children:[h.jsx("td",{className:le,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:c?h.jsx(qe,{text:Y.path,query:s}):Y.path})}),g?F(Y):null,ee(Y,"align-middle min-w-0 px-3 py-2 font-medium text-muted")]},Y.path)})})]})})}function xx(n){const{setKey:a}=st();return h.jsx(Ge,{to:Pe("locale",n.localeKey,a),className:"font-medium text-primary hover:underline",children:n.localeKey})}function uN(n){const a=n.localeKeys||[];return a.length===0?h.jsx(h.Fragment,{children:"n/a"}):h.jsx(h.Fragment,{children:a.map((r,u)=>h.jsxs(T.Fragment,{children:[u>0?", ":null,h.jsx(Ge,{className:"font-medium text-primary hover:underline",to:Pe("locale",r,n.setKey),children:r})]},r))})}function sN(n){const a=n.targetKeys||[];return a.length===0?h.jsx(h.Fragment,{children:"none"}):h.jsx("div",{className:"flex flex-wrap gap-2",children:a.map(r=>h.jsx(Ge,{className:"inline-flex",to:Pe("target",r,n.setKey),children:h.jsx(sn,{children:r})},r))})}function sf(){var w;const{entityPath:n,entityKey:a,setKey:r}=Fu(),[u,s]=T.useState(null),[c,f]=T.useState(null);if(T.useEffect(()=>{if(!Gg(n)||!a)return;const S=Wi[n];s(null),f(null),_1(S,a,r).then(s).catch(z=>f(z.message))},[n,a,r]),!Gg(n)||!a)return h.jsx(Xn,{to:er(r)||"/",replace:!0});const p=Wi[n],g=`${er(r)}/${Sy[p]}/${Et(a)}`;if(c)return h.jsx(Va,{title:"Unable to load entity",description:c});if(!u)return h.jsxs("div",{className:"text-muted",children:["Loading ",Zn[p].singular.toLowerCase(),"..."]});const m=u.entity,{manifest:x}=jn(),b=oN(p,g,((w=x.features)==null?void 0:w.duplicates)===!0);return h.jsxs("div",{children:[h.jsx(wf,{title:h.jsxs("span",{className:"flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1",children:[h.jsxs("span",{className:"whitespace-nowrap",children:[Zn[p].singular,":"]}),h.jsx(wl,{value:u.key,className:"min-w-0 text-[1.45rem] font-extrabold leading-tight"})]}),description:h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[m.archived&&h.jsx(sn,{tone:"danger",children:"archived"}),m.deprecated&&h.jsx(sn,{tone:"warning",children:"deprecated"})]}),actions:h.jsx(rN,{sourcePath:u.sourcePath,editLinks:u.editLinks})}),h.jsx(yS,{tabs:b,children:h.jsx(F0,{context:{detail:u,setKey:r}})})]})}function oN(n,a,r=!1){const u=[{label:"Overview",to:a,end:!0},{label:"History",to:`${a}/history`}];return n==="locale"?[u[0],{label:"Formats",to:`${a}/formats`},{label:"Examples",to:`${a}/examples`},...r?[{label:"Duplicates",to:`${a}/duplicates`}]:[],u[1]]:n==="message"?[u[0],{label:"Translations",to:`${a}/translations`},{label:"Overrides",to:`${a}/overrides`},{label:"Examples",to:`${a}/examples`},u[1]]:n==="target"?[u[0],{label:"Formats",to:`${a}/formats`,end:!1},{label:"Messages",to:`${a}/messages`},u[1]]:n==="segment"?[u[0],{label:"Conditions",to:`${a}/conditions`},{label:"Usage",to:`${a}/usage`},u[1]]:[u[0],{label:"Usage",to:`${a}/usage`},u[1]]}function cN(){const{detail:n,setKey:a}=st(),{manifest:r}=jn(),u=n.entity,s=fN(n,u,a,r.sets);return h.jsx("div",{className:"space-y-5",children:h.jsx(bS,{fields:s})})}function fN(n,a,r,u){const s=u?{label:"Promotable",value:a.promotable===!1?"No":"Yes"}:void 0,c=p=>p.filter(g=>!!(g!=null&&g.value));if(n.type==="locale"){const p=[{label:"Direction",value:a.direction},{label:"Inherits formats from",value:a.inheritFormatsFrom},{label:"Inherits translations from",value:a.inheritTranslationsFrom},s,{label:"Description",value:h.jsx(Vl,{value:a.description}),fullWidth:!0}];return c(p)}if(n.type==="message"){const p=[s,{label:"Deprecated",value:a.deprecated?"Yes":"No"},{label:"Deprecation warning",value:a.deprecationWarning},{label:"Targets",value:h.jsx(sN,{targetKeys:n.targets,setKey:r})},{label:"Summary",value:a.summary,fullWidth:!0},{label:"Description",value:h.jsx(Vl,{value:a.description}),fullWidth:!0},{label:"Meta",value:a.meta?h.jsx(ur,{value:a.meta}):void 0,fullWidth:!0}];return c(p)}if(n.type==="attribute"){const p=Array.isArray(a.enum)?a.enum.length>0:!!a.enum,g=Array.isArray(a.required)?a.required.length>0:!!a.required,m=typeof a.minimum<"u"||typeof a.maximum<"u",x=[{label:"Type",value:a.type},s,{label:"Allowed values",value:p?La(a.enum):void 0},{label:"Required fields",value:g?La(a.required):void 0},{label:"Pattern",value:a.pattern},{label:"Range",value:m?`${typeof a.minimum<"u"?a.minimum:"-∞"} to ${typeof a.maximum<"u"?a.maximum:"∞"}`:void 0},{label:"Description",value:h.jsx(Vl,{value:a.description}),fullWidth:!0}];return c(x)}if(n.type==="segment")return c([{label:"Archived",value:a.archived?"Yes":"No"},s,{label:"Description",value:h.jsx(Vl,{value:a.description}),fullWidth:!0}]);const f=[s,{label:"Included message patterns",value:La(a.includeMessages)},{label:"Excluded message patterns",value:La(a.excludeMessages)},{label:"Locales",value:h.jsx(uN,{localeKeys:n.locales,setKey:r})},{label:"Description",value:h.jsx(Vl,{value:a.description}),fullWidth:!0}];return c(f)}const dN=["type:number","style:decimal","type:date","param:maximumFractionDigits","value:2","from:en","source:direct"];function hN(n){return h.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 pt-2 text-xs text-muted",children:[h.jsx("span",{className:"shrink-0",children:"Try:"}),dN.map(a=>{const r=n.query.trim().split(/\s+/).some(u=>u.toLowerCase()===a.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>n.onHintClick(a),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",r?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:a},a)})]})}function bx(n){const[a]=$n(),r=a.get("formatType")??"",u=r&&n.typeKeys.includes(r)?r:null;function s(f){const g=mn(a,"formatType",f===null?void 0:f).toString();return g?`?${g}`:""}const c=f=>["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",f?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" ");return h.jsxs("nav",{className:"flex min-w-0 flex-wrap gap-2","aria-label":"Format types",children:[h.jsx(Ge,{replace:!0,to:{search:s(null)},className:c(u===null),children:"All types"}),n.typeKeys.map(f=>{const p=f===u;return h.jsx(Ge,{replace:!0,to:{search:s(f)},className:c(p),children:f},f)})]})}function vx(n){const[a]=$n(),r=a.get("formatType")??"",u=T.useMemo(()=>mx(n),[n]),s=T.useMemo(()=>tN(u),[u]),c=r&&s.includes(r)?r:null;return{formatTypes:u,formatTypePillKeys:s,selectedFormatType:c}}function Sx(){const[n,a]=$n(),[r,u]=T.useState(!1),s=n.get("q")??"";function c(f){const p=s.trim(),g=p.split(/\s+/).filter(Boolean),m=g.findIndex(b=>b.toLowerCase()===f.toLowerCase()),x=m!==-1?g.filter((b,w)=>w!==m).join(" "):p?`${p} ${f}`:f;a(mn(n,"q",x.trim()?x.trim():void 0),{replace:!0})}return h.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:h.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] flex-col gap-0",children:[h.jsxs("div",{className:"relative",children:[h.jsx(Pu,{type:"search",value:s,onChange:f=>{const p=f.target.value;a(mn(n,"q",p.trim()?p:void 0),{replace:!0})},placeholder:"Search formats…","aria-label":"Search formats",className:[ls,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-10","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")}),h.jsx("button",{type:"button",onClick:()=>u(f=>!f),"aria-label":r?"Hide advanced search hints":"Show advanced search hints",className:["absolute right-2 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full border text-xs font-bold transition-colors",r?"border-primary bg-primary/10 text-primary":"border-border bg-surface text-muted hover:border-primary hover:text-primary"].join(" "),children:"?"})]}),h.jsx("div",{className:["grid transition-all duration-200 ease-in-out",r?"grid-rows-[1fr]":"grid-rows-[0fr]"].join(" "),children:h.jsx("div",{className:"overflow-hidden pl-1",children:h.jsx(hN,{query:s,onHintClick:c})})})]})})}function mN(){const{detail:n}=st(),[a]=$n(),r=a.get("q")??"",u=n.formatRows,s=u??[],{formatTypes:c,formatTypePillKeys:f,selectedFormatType:p}=vx(s),g=px();return h.jsxs("div",{className:"space-y-6",children:[c.length>0?h.jsx(bx,{typeKeys:f}):null,h.jsx(Sx,{}),h.jsx(yx,{rows:u,searchQuery:r,formatPathLayout:"split",hideTypeColumn:p!=null,selectedFormatType:p,showExampleColumn:g})]})}function of(){const{detail:n}=st();return n.type==="target"?h.jsx(MN,{}):h.jsx(mN,{})}function pN(n){return n.overrides.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No overrides."}):h.jsxs("div",{className:"space-y-3",children:[h.jsx("p",{className:"text-sm font-medium text-muted",children:"Overrides"}),h.jsx("div",{className:"space-y-3",children:n.overrides.map(({key:a,row:r,override:u})=>h.jsxs("div",{className:"rounded border border-border bg-surface p-4",children:[h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[h.jsx(Ge,{to:`${Pe("message",n.messageKey,n.setKey)}/overrides#${a}`,className:"text-sm font-semibold text-primary hover:underline",children:h.jsx(wl,{value:a,className:"font-semibold"})}),r.source==="inherited"&&r.from&&h.jsx(nr,{label:"inherited from",value:r.from,to:Pe("locale",r.from,n.setKey),tone:"inheritance",compact:!0})]}),(u.segments||u.conditions)&&h.jsxs("div",{className:"mt-4 space-y-4",children:[u.segments&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Segments"}),h.jsx(Ry,{segments:u.segments,setKey:n.setKey})]}),u.conditions&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Conditions"}),h.jsx(jf,{conditions:u.conditions,setKey:n.setKey})]})]}),h.jsxs("div",{className:"mt-4 space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Overridden translation"}),h.jsx(as,{value:r.value||"—",direction:Uf(r.locale,n.localeDirections)})]})]},a))})]})}function gN(){const{detail:n,setKey:a}=st(),r=n.entity,u=n.localeDirections||{},s=n.overrideTranslations||[],c=r.overrides||[],f=Object.fromEntries((n.translations||[]).map(g=>[g.locale,s.map(m=>({key:m.key,row:(m.rows||[]).find(x=>x.locale===g.locale),override:c.find(x=>x.key===m.key)})).filter(m=>!!(m.row&&m.row.source!=="missing"&&m.override))])),p=new Set(Object.entries(f).filter(([,g])=>g.length>0).map(([g])=>g));return h.jsx(hx,{rows:n.translations,linkLocales:!0,showSource:!1,localeDirections:u,getRowFragmentId:g=>ns(`translation-${g.locale}`),renderExpandedRow:g=>h.jsx(pN,{messageKey:n.key,overrides:f[g.locale]||[],localeDirections:u,setKey:a}),renderMetaCell:g=>{const m=[];return g.source==="inherited"&&g.from&&m.push(h.jsx(nr,{label:"inherited from",value:g.from,to:Pe("locale",g.from,a),tone:"inheritance",compact:!0},`inherited-${g.locale}`)),p.has(g.locale)&&m.push(h.jsx(nr,{label:"overrides",value:"yes",tone:"override",compact:!0},`override-${g.locale}`)),m.length===0?null:h.jsx("div",{className:"flex flex-wrap justify-end gap-1.5",children:m})}})}function yN(){const{detail:n,setKey:a}=st(),r=n.entity,u=n.localeDirections||{},s=Object.fromEntries((n.translations||[]).map(f=>[f.locale,f.value])),c=r.overrides||[];return cr([c.length]),c.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No overrides found."}):h.jsx("div",{className:"space-y-6",children:c.map(f=>h.jsxs("section",{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h2",{id:f.key,className:"font-semibold [overflow-wrap:anywhere]",children:h.jsx(wl,{value:f.key,className:"font-semibold"})}),h.jsx(is,{targetId:f.key})]}),f.summary&&h.jsx("p",{className:"mt-1 text-sm text-muted",children:f.summary}),f.description&&h.jsx("div",{className:"mt-3",children:h.jsx(Vl,{value:f.description})})]}),h.jsxs("div",{className:"space-y-4",children:[f.segments&&h.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-elevated p-4",children:[h.jsx("h3",{className:"text-sm font-semibold text-muted",children:"Segments"}),h.jsx(Ry,{segments:f.segments,setKey:a})]}),f.conditions&&h.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-elevated p-4",children:[h.jsx("h3",{className:"text-sm font-semibold text-muted",children:"Conditions"}),h.jsx(jf,{conditions:f.conditions,setKey:a})]}),h.jsx(hx,{translations:f.translations,linkLocales:!0,showSource:!1,translationLabel:"Overridden translation",comparisonLabel:"Original translation",comparisonValues:s,localeDirections:u})]})]},f.key))})}function xN(){const{detail:n}=st(),[a,r]=$n(),u=n.evaluatedExamples||[],s=n.localeDirections||{},c=Object.fromEntries((n.translations||[]).map(w=>[w.locale,w.value])),p=a.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(u.map(w=>w.locale))).sort(),m=a.get("locale"),x=m&&g.includes(m)?m:"",b=x?u.filter(w=>w.locale===x):u;return cr([b.length,x,p]),u.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples found."}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsxs("nav",{className:"flex min-w-0 flex-wrap gap-2",children:[h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",x?"border-pill bg-transparent text-text hover:bg-elevated":"border-primary bg-header-active text-header-text"].join(" "),onClick:()=>r(mn(a,"locale",void 0)),children:"All locales"}),g.map(w=>{const S=x===w;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",S?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>r(mn(a,"locale",S?void 0:w)),children:w},w)})]}),h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(gx,{activeView:p,onViewChange:w=>r(mn(a,"view",w==="compact"?void 0:w))})})]}),p==="compact"?h.jsx(SN,{examples:b,localeDirections:s,originalTranslationsByLocale:c}):h.jsx(vN,{examples:b,localeDirections:s,originalTranslationsByLocale:c})]})}function wx(n){var r,u,s;const a=(r=n.highlightQuery)!=null&&r.trim()&&n.title?h.jsx(qe,{text:n.title,query:n.highlightQuery}):n.title;return h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h2",{id:n.targetId,className:"font-semibold",children:a}),h.jsx(is,{targetId:n.targetId})]}),(u=n.description)!=null&&u.trim()?(s=n.highlightQuery)!=null&&s.trim()?h.jsx("div",{className:"text-sm text-muted whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(qe,{text:n.description.trim(),query:n.highlightQuery})}):h.jsx("div",{className:"text-sm text-muted",children:h.jsx(Vl,{value:n.description})}):null]})}function jx(n){var u;const r=((u=n.highlightQuery)==null?void 0:u.trim())&&n.evaluatedTranslation!==void 0&&n.evaluatedTranslation!==null?h.jsx("div",{dir:n.direction,className:["min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere]",n.direction==="rtl"?"text-right":""].filter(Boolean).join(" "),style:n.direction?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(qe,{text:typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation),query:n.highlightQuery??""})}):h.jsx(as,{value:n.evaluatedTranslation,direction:n.direction});return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse text-sm",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-1/2"}),h.jsx("col",{className:"w-1/2"})]}),h.jsx("thead",{className:"bg-elevated text-left text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-4 py-3 font-semibold",children:"Input"}),h.jsx("th",{className:"border-b border-border px-4 py-3 font-semibold",children:"Output"})]})}),h.jsx("tbody",{children:h.jsxs("tr",{className:"align-top",children:[h.jsx("td",{className:"min-w-0 border-b border-border px-4 py-4",children:n.inputs}),h.jsx("td",{className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"space-y-1",children:[h.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Evaluated translation"}),h.jsx("div",{className:"min-w-0",children:r})]})})]})})]})})}function ht(n){return h.jsxs("div",{className:"space-y-1",children:[h.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:n.label}),h.jsx("div",{className:"min-w-0",children:n.children})]})}function cf(n){return ns([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function Ex(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function bN(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function Nx(n){var c;const{example:a}=n,{detail:r,setKey:u}=st(),s=(c=n.originalTranslationsByLocale)==null?void 0:c[a.locale];return h.jsxs("div",{className:"min-w-0 space-y-4",children:[n.showLocale!==!1&&h.jsx(ht,{label:"Locale",children:h.jsx(xx,{localeKey:a.locale})}),typeof a.values<"u"&&h.jsx(ht,{label:"Values",children:h.jsx(Ql,{value:a.values})}),typeof a.context<"u"&&h.jsx(ht,{label:"Context",children:h.jsx(Ql,{value:a.context})}),typeof a.timeZone<"u"&&h.jsx(ht,{label:"Time zone",children:h.jsx("span",{className:"font-mono text-sm text-text",children:a.timeZone})}),typeof a.currency<"u"&&h.jsx(ht,{label:"Currency",children:h.jsx("span",{className:"font-mono text-sm text-text",children:a.currency})}),typeof a.formats<"u"&&h.jsx(ht,{label:"Formats",children:h.jsx(Ql,{value:a.formats})}),s&&h.jsx(ht,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[h.jsx(as,{value:s}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Ge,{to:`${Pe("message",r.key,u)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Ge,{to:`${Pe("message",r.key,u)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]})}function vN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=cf(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(wx,{title:Ex(a),targetId:r,description:a.description}),h.jsx(jx,{inputs:h.jsx(Nx,{example:a,showLocale:!0,originalTranslationsByLocale:n.originalTranslationsByLocale}),evaluatedTranslation:a.evaluatedTranslation,direction:Uf(a.locale,n.localeDirections)})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.locale}`)})})}function SN(n){const[a,r]=T.useState([]),[u,s]=T.useState(null);T.useEffect(()=>{if(typeof window>"u")return;const f=decodeURIComponent(window.location.hash.slice(1));!f||!n.examples.find(g=>cf(g)===f)||(r(g=>g.includes(f)?g:[...g,f]),s(f))},[n.examples]);function c(f){if(a.includes(f)){const p=a.filter(m=>m!==f),g=u===f?p[p.length-1]||null:u;r(p),s(g),Qa(g||void 0);return}r(p=>[...p,f]),s(f),Qa(f)}return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-16"}),h.jsx("col",{className:"w-28"}),h.jsx("col",{className:"w-1/3"}),h.jsx("col",{className:"w-auto"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"#"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Locale"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Description"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Evaluated translation"})]})}),h.jsx("tbody",{children:n.examples.map(f=>{const p=cf(f),g=a.includes(p),m=Uf(f.locale,n.localeDirections);return h.jsxs(T.Fragment,{children:[h.jsxs("tr",{id:p,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(p),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:bN(f)}),h.jsx("td",{className:"border-b border-border px-3 py-2",children:f.locale}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:f.description||"—"})}),h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2",m==="rtl"?"text-right":""].join(" "),dir:m,style:m?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:typeof f.evaluatedTranslation=="string"?f.evaluatedTranslation:JSON.stringify(f.evaluatedTranslation)})})]}),g&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:4,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-4",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:Ex(f)}),h.jsx(is,{targetId:p})]}),h.jsx(Nx,{example:f,showLocale:!1,originalTranslationsByLocale:n.originalTranslationsByLocale})]})})})]},p)})})]})})}function Gu(n){return ns([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function ff(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function Tx(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function wN(n){return typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation)}function jN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>{const s=Gu(u),c=Tx(u),f=u.description??"",p=wN(u);return`${s} ${c} ${f} ${p}`.toLowerCase().includes(r)}):n}function Cx(n){var g;const{example:a,setKey:r,localeDirection:u}=n,s=((g=n.highlightQuery)==null?void 0:g.trim())??"",c=!!s,f=IE(a.rawMessage||a.originalTranslation,n.computedFormats,a.formats);function p(m){return c?h.jsx(Ge,{to:Pe("locale",m,r),className:"font-medium text-primary hover:underline",children:h.jsx(qe,{text:m,query:s})}):h.jsx(xx,{localeKey:m})}return h.jsxs("div",{className:"min-w-0 space-y-4",children:[n.showLocale!==!1&&h.jsx(ht,{label:"Locale",children:p(a.locale)}),a.sourceLocale!==a.locale&&h.jsx(ht,{label:"Merged from",children:p(a.sourceLocale)}),a.message&&h.jsxs(h.Fragment,{children:[h.jsx(ht,{label:"Message",children:h.jsx(Ge,{to:Pe("message",a.message,r),className:"font-medium text-primary hover:underline",children:c?h.jsx(qe,{text:a.message,query:s}):a.message})}),a.originalTranslation&&h.jsx(ht,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[c?h.jsx("div",{dir:u,className:["min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere]",u==="rtl"?"text-right":""].filter(Boolean).join(" "),style:u?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(qe,{text:a.originalTranslation,query:s})}):h.jsx(as,{value:a.originalTranslation,direction:u}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Ge,{to:`${Pe("message",a.message,r)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Ge,{to:`${Pe("message",a.message,r)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]}),a.rawMessage&&h.jsx(ht,{label:"Raw message",children:h.jsx("div",{dir:u,className:["min-w-0 max-w-full",u==="rtl"?"text-right":""].filter(Boolean).join(" "),style:u?{unicodeBidi:"plaintext"}:void 0,children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(qe,{text:a.rawMessage,query:s})}):h.jsx(ur,{value:a.rawMessage})})}),typeof a.values<"u"&&h.jsx(ht,{label:"Values",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(qe,{text:JSON.stringify(a.values,null,2),query:s})}):h.jsx(Ql,{value:a.values})}),typeof a.context<"u"&&h.jsx(ht,{label:"Context",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(qe,{text:JSON.stringify(a.context,null,2),query:s})}):h.jsx(Ql,{value:a.context})}),typeof a.timeZone<"u"&&h.jsx(ht,{label:"Time zone",children:h.jsx("span",{className:"font-mono text-sm text-text",children:c?h.jsx(qe,{text:a.timeZone,query:s}):a.timeZone})}),typeof a.currency<"u"&&h.jsx(ht,{label:"Currency",children:h.jsx("span",{className:"font-mono text-sm text-text",children:c?h.jsx(qe,{text:a.currency,query:s}):a.currency})}),typeof a.formats<"u"&&h.jsx(ht,{label:"Formats",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(qe,{text:JSON.stringify(a.formats,null,2),query:s})}):h.jsx(Ql,{value:a.formats})}),typeof f<"u"&&h.jsx(ht,{label:"Relevant formats",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(qe,{text:JSON.stringify(f,null,2),query:s})}):h.jsx(Ql,{value:f})})]})}function EN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=Gu(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(wx,{title:ff(a),targetId:r,description:a.description,highlightQuery:n.searchQuery}),h.jsx(jx,{inputs:h.jsx(Cx,{example:a,setKey:n.setKey,localeDirection:n.localeDirection,computedFormats:n.computedFormats,showLocale:!1,highlightQuery:n.searchQuery}),evaluatedTranslation:a.evaluatedTranslation,direction:n.localeDirection,highlightQuery:n.searchQuery})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.sourceLocale}-${a.locale}`)})})}function NN(n){const[a,r]=T.useState([]),[u,s]=T.useState(null);T.useEffect(()=>{if(typeof window>"u")return;const f=decodeURIComponent(window.location.hash.slice(1));!f||!n.examples.find(g=>Gu(g)===f)||(r(g=>g.includes(f)?g:[...g,f]),s(f))},[n.examples]);function c(f){if(a.includes(f)){const p=a.filter(m=>m!==f),g=u===f?p[p.length-1]||null:u;r(p),s(g),Qa(g||void 0);return}r(p=>[...p,f]),s(f),Qa(f)}return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-16"}),h.jsx("col",{className:"w-2/5"}),h.jsx("col",{className:"w-auto"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"#"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Description"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Evaluated translation"})]})}),h.jsx("tbody",{children:n.examples.map(f=>{const p=Gu(f),g=a.includes(p);return h.jsxs(T.Fragment,{children:[h.jsxs("tr",{id:p,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(p),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:h.jsx(qe,{text:Tx(f),query:n.searchQuery})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(qe,{text:f.description||"—",query:n.searchQuery})})}),h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2",n.localeDirection==="rtl"?"text-right":""].join(" "),dir:n.localeDirection,style:n.localeDirection?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(qe,{text:typeof f.evaluatedTranslation=="string"?f.evaluatedTranslation:JSON.stringify(f.evaluatedTranslation),query:n.searchQuery})})})]}),g&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:3,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-4",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:n.searchQuery.trim()?h.jsx(qe,{text:ff(f),query:n.searchQuery}):ff(f)}),h.jsx(is,{targetId:p})]}),h.jsx(Cx,{example:f,setKey:n.setKey,localeDirection:n.localeDirection,computedFormats:n.computedFormats,showLocale:!1,highlightQuery:n.searchQuery})]})})})]},p)})})]})})}function TN(){const{detail:n,setKey:a}=st(),[r,u]=$n(),s=n.evaluatedExamples||[],c=n.entity.direction,p=r.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(s.map(z=>z.sourceLocale))).sort(),m=r.get("sourceLocale"),x=m&&g.includes(m)?m:"",b=x?s.filter(z=>z.sourceLocale===x):s,w=r.get("q")??"",S=jN(b,w);return cr([S.length,x,p,w]),s.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples found."}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] items-center",children:h.jsx(Pu,{type:"search",value:w,onChange:z=>{const R=z.target.value;u(mn(r,"q",R.trim()?R:void 0),{replace:!0})},placeholder:"Search examples…","aria-label":"Search examples",className:[ls,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-3","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")})}),g.length>1?h.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[h.jsx("span",{className:"text-sm text-muted",children:"Filter by source locale"}),h.jsxs("nav",{className:"flex flex-wrap gap-2",children:[h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",x?"border-pill bg-transparent text-text hover:bg-elevated":"border-primary bg-header-active text-header-text"].join(" "),onClick:()=>u(mn(r,"sourceLocale",void 0)),children:"All"}),g.map(z=>{const R=x===z;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",R?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>u(mn(r,"sourceLocale",R?void 0:z)),children:z},z)})]})]}):null,h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(gx,{activeView:p,onViewChange:z=>u(mn(r,"view",z==="compact"?void 0:z))})})]}),S.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples match your search."}):p==="compact"?h.jsx(NN,{examples:S,setKey:a,localeDirection:c,computedFormats:n.computedFormats,searchQuery:w}):h.jsx(EN,{examples:S,setKey:a,localeDirection:c,computedFormats:n.computedFormats,searchQuery:w})]})}function CN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>[u.value,...u.messageKeys,...u.sources.map(c=>c.locale)].join(" ").toLowerCase().includes(r)):n}function Fg(n){return h.jsx("span",{className:n.active?"text-primary":"text-muted/60","aria-hidden":"true",children:n.active?n.direction==="asc"?"↑":"↓":"↕"})}function AN(){var $;const{detail:n,setKey:a}=st(),{manifest:r}=jn(),[u,s]=$n(),[c,f]=T.useState(null),[p,g]=T.useState(null),[m,x]=T.useState([]),[b,w]=T.useState({column:"messages",direction:"desc"}),S=n.entity.direction,z=u.get("q")??"",R=(($=r.features)==null?void 0:$.duplicates)===!0;function U(L){const ee=Du(L.value);x(I=>{if(I.includes(ee)){const H=I.filter(F=>F!==ee);return Qa(void 0),H}return Qa(ee),[...I,ee]})}if(T.useEffect(()=>{if(!R)return;let L=!1;return f(null),g(null),x([]),M1(n.key,a).then(ee=>{L||f(ee)}).catch(ee=>{L||g(ee.message)}),()=>{L=!0}},[n.key,R,a]),T.useEffect(()=>{if(!c||typeof window>"u")return;const L=decodeURIComponent(window.location.hash.slice(1));if(!L)return;const ee=c.duplicateValues.find(H=>Du(H.value)===L);if(!ee)return;const I=Du(ee.value);x(H=>H.includes(I)?H:[...H,I])},[c]),cr([c==null?void 0:c.duplicateValues.length,m.length]),!R)return h.jsx(Xn,{to:"..",replace:!0});if(p)return h.jsx(Va,{title:"Unable to load duplicate translations",description:p});if(!c)return h.jsx("div",{className:"text-sm text-muted",children:"Loading duplicate translations..."});if(c.duplicateValues.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No duplicate translations found for this locale."});const k=GE(CN(c.duplicateValues,z),b);return h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] items-center",children:h.jsx(Pu,{type:"search",value:z,onChange:L=>{const ee=L.target.value;s(mn(u,"q",ee.trim()?ee:void 0),{replace:!0})},placeholder:"Search duplicates...","aria-label":"Search duplicates",className:[ls,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-3","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")})}),h.jsxs("div",{className:"shrink-0 text-xs text-muted",children:[c.summary.duplicateValues," value",c.summary.duplicateValues===1?"":"s"," ·"," ",c.summary.duplicateMessageKeys," message key",c.summary.duplicateMessageKeys===1?"":"s"]})]}),k.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No duplicates match your search."}):h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-[70%]"}),h.jsx("col",{className:"w-[30%]"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold","aria-sort":b.column==="value"?b.direction==="asc"?"ascending":"descending":"none",children:h.jsxs("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1 text-left font-semibold uppercase tracking-wide text-muted transition-colors hover:text-text",onClick:()=>w(L=>Kg(L,"value")),children:[h.jsx("span",{children:"Duplicate value"}),h.jsx(Fg,{active:b.column==="value",direction:b.direction})]})}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold","aria-sort":b.column==="messages"?b.direction==="asc"?"ascending":"descending":"none",children:h.jsxs("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1 text-left font-semibold uppercase tracking-wide text-muted transition-colors hover:text-text",onClick:()=>w(L=>Kg(L,"messages")),children:[h.jsx("span",{children:"Messages"}),h.jsx(Fg,{active:b.column==="messages",direction:b.direction})]})})]})}),h.jsx("tbody",{children:k.map(L=>{const ee=Object.fromEntries(L.sources.map(F=>[F.messageKey,F.locale])),I=Du(L.value),H=m.includes(I);return h.jsxs(T.Fragment,{children:[h.jsxs("tr",{id:I,className:["cursor-pointer align-top transition-colors",H?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>U(L),children:[h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2 font-medium text-text",S==="rtl"?"text-right":""].join(" "),dir:S,style:S?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"truncate",children:h.jsx(qe,{text:L.value,query:z})})}),h.jsxs("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:[L.messageKeys.length," message",L.messageKeys.length===1?"":"s"]})]}),H&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:2,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-3",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Translation value"}),h.jsx(ur,{value:L.value})]}),h.jsx("h3",{className:"text-sm font-semibold",children:"Messages"}),h.jsx("div",{className:"min-w-0 overflow-hidden rounded-lg border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-[70%]"}),h.jsx("col",{className:"w-[30%]"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Message"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Source"})]})}),h.jsx("tbody",{children:L.messageKeys.map(F=>{const oe=ee[F]||c.locale,Y=oe!==c.locale;return h.jsxs("tr",{className:"align-top",children:[h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2",children:h.jsx(Ge,{to:Pe("message",F,a),className:"font-medium text-primary [overflow-wrap:anywhere] hover:underline",children:h.jsx(qe,{text:F,query:z})})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:Y?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"from "}),h.jsx(Ge,{to:Pe("locale",oe,a),className:"font-medium text-primary hover:underline",onClick:le=>le.stopPropagation(),children:h.jsx(qe,{text:oe,query:z})})]}):h.jsx("span",{children:"direct"})})]},F)})})]})})]})})})]},L.value)})})]})})]})}function kN(){const{detail:n}=st();return n.type==="locale"?h.jsx(TN,{}):h.jsx(xN,{})}function zN(){const{detail:n,setKey:a}=st(),r=n.usage||{};return h.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Segments"}),h.jsx(ar,{type:"segment",keys:r.segments,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(ar,{type:"message",keys:r.messages,setKey:a})]})]})}function RN(){const{detail:n,setKey:a}=st(),r=n.usage||{};return h.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Attributes"}),h.jsx(ar,{type:"attribute",keys:r.attributes,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(ar,{type:"message",keys:r.messages,setKey:a})]})]})}function _N(){const{detail:n}=st();return n.type==="segment"?h.jsx(RN,{}):h.jsx(zN,{})}function ON(){const{detail:n,setKey:a}=st(),r=n.entity;return h.jsx(jf,{conditions:r.conditions,setKey:a})}function MN(){const{detail:n,setKey:a}=st(),{localeKey:r}=Fu(),[u]=$n(),s=u.get("q")??"",c=n.formatRowsByLocale||{},f=Object.keys(c).sort(),p=f.length===0?"":r&&c[r]?r:f[0],g=p&&c[p]?c[p]:[],{formatTypes:m,formatTypePillKeys:x,selectedFormatType:b}=vx(g);if(f.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No target formats found."});const w=`${er(a)}/targets/${Et(n.key)}/formats`;if(!r){const S=u.toString();return h.jsx(Xn,{to:`${w}/${Et(p)}${S?`?${S}`:""}`,replace:!0})}return h.jsxs("div",{className:"space-y-6",children:[h.jsx("nav",{className:"flex min-w-0 flex-wrap gap-2",children:f.map(S=>{const z=u.toString(),R=z?`?${z}`:"",U=S===p;return h.jsx(Ge,{to:`${w}/${Et(S)}${R}`,className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",U?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),children:S},S)})}),m.length>0?h.jsx(bx,{typeKeys:x}):null,h.jsx(Sx,{}),h.jsx(yx,{rows:c[p],searchQuery:s,formatPathLayout:"split",hideTypeColumn:b!=null,selectedFormatType:b,showExampleColumn:px()})]})}function DN(){const{detail:n,setKey:a}=st();return h.jsx(ar,{type:"message",keys:n.messages,setKey:a})}function LN(){var u;const{manifest:n}=jn(),{detail:a,setKey:r}=st();return h.jsx(Ay,{path:`${r?`/data/sets/${Et(r)}`:"/data/root"}/history/${a.type}/${Et(a.key)}`,setKey:r,commitUrl:(u=n.links)==null?void 0:u.commit})}function Jg(n={}){const a=n.prefix||"";return h.jsxs(Je,{path:`${a}:entityPath/:entityKey`,element:h.jsx(sf,{}),children:[h.jsx(Je,{index:!0,element:h.jsx(cN,{})}),h.jsx(Je,{path:"formats",element:h.jsx(of,{})}),h.jsx(Je,{path:"examples",element:h.jsx(kN,{})}),h.jsx(Je,{path:"duplicates",element:h.jsx(AN,{})}),h.jsx(Je,{path:"translations",element:h.jsx(gN,{})}),h.jsx(Je,{path:"overrides",element:h.jsx(yN,{})}),h.jsx(Je,{path:"conditions",element:h.jsx(ON,{})}),h.jsx(Je,{path:"usage",element:h.jsx(_N,{})}),h.jsx(Je,{path:"messages",element:h.jsx(DN,{})}),h.jsx(Je,{path:"history",element:h.jsx(LN,{})}),h.jsx(Je,{path:"*",element:h.jsx(Xn,{to:".",replace:!0})})]})}function BN(n){return h.jsx(B1,{initialManifest:n.manifest,children:h.jsx($1,{children:h.jsxs(J0,{children:[h.jsx(Je,{index:!0,element:h.jsx(F1,{})}),h.jsx(Je,{path:"sets/:setKey",element:h.jsx(Xn,{to:"messages",replace:!0})}),h.jsx(Je,{path:"sets/:setKey/:entityPath",element:h.jsx(tg,{})}),h.jsx(Je,{path:"sets/:setKey/:entityPath/:entityKey/formats/:localeKey",element:h.jsx(sf,{}),children:h.jsx(Je,{index:!0,element:h.jsx(of,{})})}),Jg({prefix:"sets/:setKey/"}),h.jsx(Je,{path:"sets/:setKey/history",element:h.jsx(ng,{})}),h.jsx(Je,{path:"history",element:h.jsx(ng,{})}),h.jsx(Je,{path:":entityPath",element:h.jsx(tg,{})}),h.jsx(Je,{path:":entityPath/:entityKey/formats/:localeKey",element:h.jsx(sf,{}),children:h.jsx(Je,{index:!0,element:h.jsx(of,{})})}),Jg(),h.jsx(Je,{path:"*",element:h.jsx(Xn,{to:"/",replace:!0})})]})})})}async function UN(){const n=await jy(),a=n.router==="browser"?S1:w1;R1(n.router),Pg.createRoot(document.getElementById("root")).render(h.jsx(T.StrictMode,{children:h.jsx(a,{children:h.jsx(BN,{manifest:n})})}))}UN().catch(n=>{Pg.createRoot(document.getElementById("root")).render(h.jsx("div",{className:"p-8 text-danger",children:n.message}))});
|