@intrig/core 0.0.15-0 → 0.0.15-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,305 +0,0 @@
1
- function w3(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cg={exports:{}},Qu={};/**
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 wT;function C3(){if(wT)return Qu;wT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return Qu.Fragment=t,Qu.jsx=n,Qu.jsxs=n,Qu}var CT;function R3(){return CT||(CT=1,cg.exports=C3()),cg.exports}var b=R3(),dg={exports:{}},bt={};/**
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 RT;function O3(){if(RT)return bt;RT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function E(R){return R===null||typeof R!="object"?null:(R=p&&R[p]||R["@@iterator"],typeof R=="function"?R:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,S={};function A(R,le,te){this.props=R,this.context=le,this.refs=S,this.updater=te||_}A.prototype.isReactComponent={},A.prototype.setState=function(R,le){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,le,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function x(){}x.prototype=A.prototype;function O(R,le,te){this.props=R,this.context=le,this.refs=S,this.updater=te||_}var L=O.prototype=new x;L.constructor=O,v(L,A.prototype),L.isPureReactComponent=!0;var B=Array.isArray,k={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function U(R,le,te,I,ce,Te){return te=Te.ref,{$$typeof:e,type:R,key:le,ref:te!==void 0?te:null,props:Te}}function j(R,le){return U(R.type,le,void 0,void 0,void 0,R.props)}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function M(R){var le={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(te){return le[te]})}var J=/\/+/g;function X(R,le){return typeof R=="object"&&R!==null&&R.key!=null?M(""+R.key):le.toString(36)}function V(){}function ne(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(V,V):(R.status="pending",R.then(function(le){R.status==="pending"&&(R.status="fulfilled",R.value=le)},function(le){R.status==="pending"&&(R.status="rejected",R.reason=le)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function ae(R,le,te,I,ce){var Te=typeof R;(Te==="undefined"||Te==="boolean")&&(R=null);var ve=!1;if(R===null)ve=!0;else switch(Te){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(R.$$typeof){case e:case t:ve=!0;break;case m:return ve=R._init,ae(ve(R._payload),le,te,I,ce)}}if(ve)return ce=ce(R),ve=I===""?"."+X(R,0):I,B(ce)?(te="",ve!=null&&(te=ve.replace(J,"$&/")+"/"),ae(ce,le,te,"",function(Ze){return Ze})):ce!=null&&(F(ce)&&(ce=j(ce,te+(ce.key==null||R&&R.key===ce.key?"":(""+ce.key).replace(J,"$&/")+"/")+ve)),le.push(ce)),1;ve=0;var Pe=I===""?".":I+":";if(B(R))for(var je=0;je<R.length;je++)I=R[je],Te=Pe+X(I,je),ve+=ae(I,le,te,Te,ce);else if(je=E(R),typeof je=="function")for(R=je.call(R),je=0;!(I=R.next()).done;)I=I.value,Te=Pe+X(I,je++),ve+=ae(I,le,te,Te,ce);else if(Te==="object"){if(typeof R.then=="function")return ae(ne(R),le,te,I,ce);throw le=String(R),Error("Objects are not valid as a React child (found: "+(le==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":le)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Q(R,le,te){if(R==null)return R;var I=[],ce=0;return ae(R,I,"","",function(Te){return le.call(te,Te,ce++)}),I}function be(R){if(R._status===-1){var le=R._result;le=le(),le.then(function(te){(R._status===0||R._status===-1)&&(R._status=1,R._result=te)},function(te){(R._status===0||R._status===-1)&&(R._status=2,R._result=te)}),R._status===-1&&(R._status=0,R._result=le)}if(R._status===1)return R._result.default;throw R._result}var K=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var le=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(le))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function xe(){}return bt.Children={map:Q,forEach:function(R,le,te){Q(R,function(){le.apply(this,arguments)},te)},count:function(R){var le=0;return Q(R,function(){le++}),le},toArray:function(R){return Q(R,function(le){return le})||[]},only:function(R){if(!F(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},bt.Component=A,bt.Fragment=n,bt.Profiler=i,bt.PureComponent=O,bt.StrictMode=r,bt.Suspense=d,bt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,bt.act=function(){throw Error("act(...) is not supported in production builds of React.")},bt.cache=function(R){return function(){return R.apply(null,arguments)}},bt.cloneElement=function(R,le,te){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var I=v({},R.props),ce=R.key,Te=void 0;if(le!=null)for(ve in le.ref!==void 0&&(Te=void 0),le.key!==void 0&&(ce=""+le.key),le)!w.call(le,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&le.ref===void 0||(I[ve]=le[ve]);var ve=arguments.length-2;if(ve===1)I.children=te;else if(1<ve){for(var Pe=Array(ve),je=0;je<ve;je++)Pe[je]=arguments[je+2];I.children=Pe}return U(R.type,ce,void 0,void 0,Te,I)},bt.createContext=function(R){return R={$$typeof:l,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:o,_context:R},R},bt.createElement=function(R,le,te){var I,ce={},Te=null;if(le!=null)for(I in le.key!==void 0&&(Te=""+le.key),le)w.call(le,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ce[I]=le[I]);var ve=arguments.length-2;if(ve===1)ce.children=te;else if(1<ve){for(var Pe=Array(ve),je=0;je<ve;je++)Pe[je]=arguments[je+2];ce.children=Pe}if(R&&R.defaultProps)for(I in ve=R.defaultProps,ve)ce[I]===void 0&&(ce[I]=ve[I]);return U(R,Te,void 0,void 0,null,ce)},bt.createRef=function(){return{current:null}},bt.forwardRef=function(R){return{$$typeof:c,render:R}},bt.isValidElement=F,bt.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:be}},bt.memo=function(R,le){return{$$typeof:f,type:R,compare:le===void 0?null:le}},bt.startTransition=function(R){var le=k.T,te={};k.T=te;try{var I=R(),ce=k.S;ce!==null&&ce(te,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(xe,K)}catch(Te){K(Te)}finally{k.T=le}},bt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},bt.use=function(R){return k.H.use(R)},bt.useActionState=function(R,le,te){return k.H.useActionState(R,le,te)},bt.useCallback=function(R,le){return k.H.useCallback(R,le)},bt.useContext=function(R){return k.H.useContext(R)},bt.useDebugValue=function(){},bt.useDeferredValue=function(R,le){return k.H.useDeferredValue(R,le)},bt.useEffect=function(R,le){return k.H.useEffect(R,le)},bt.useId=function(){return k.H.useId()},bt.useImperativeHandle=function(R,le,te){return k.H.useImperativeHandle(R,le,te)},bt.useInsertionEffect=function(R,le){return k.H.useInsertionEffect(R,le)},bt.useLayoutEffect=function(R,le){return k.H.useLayoutEffect(R,le)},bt.useMemo=function(R,le){return k.H.useMemo(R,le)},bt.useOptimistic=function(R,le){return k.H.useOptimistic(R,le)},bt.useReducer=function(R,le,te){return k.H.useReducer(R,le,te)},bt.useRef=function(R){return k.H.useRef(R)},bt.useState=function(R){return k.H.useState(R)},bt.useSyncExternalStore=function(R,le,te){return k.H.useSyncExternalStore(R,le,te)},bt.useTransition=function(){return k.H.useTransition()},bt.version="19.0.0",bt}var OT;function zb(){return OT||(OT=1,dg.exports=O3()),dg.exports}var N=zb();const Oi=zl(N),rN=w3({__proto__:null,default:Oi},[N]);var fg={exports:{}},Zu={},hg={exports:{}},mg={};/**
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 kT;function k3(){return kT||(kT=1,function(e){function t(Q,be){var K=Q.length;Q.push(be);e:for(;0<K;){var xe=K-1>>>1,R=Q[xe];if(0<i(R,be))Q[xe]=be,Q[K]=R,K=xe;else break e}}function n(Q){return Q.length===0?null:Q[0]}function r(Q){if(Q.length===0)return null;var be=Q[0],K=Q.pop();if(K!==be){Q[0]=K;e:for(var xe=0,R=Q.length,le=R>>>1;xe<le;){var te=2*(xe+1)-1,I=Q[te],ce=te+1,Te=Q[ce];if(0>i(I,K))ce<R&&0>i(Te,I)?(Q[xe]=Te,Q[ce]=K,xe=ce):(Q[xe]=I,Q[te]=K,xe=te);else if(ce<R&&0>i(Te,K))Q[xe]=Te,Q[ce]=K,xe=ce;else break e}}return be}function i(Q,be){var K=Q.sortIndex-be.sortIndex;return K!==0?K:Q.id-be.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,E=3,_=!1,v=!1,S=!1,A=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function L(Q){for(var be=n(f);be!==null;){if(be.callback===null)r(f);else if(be.startTime<=Q)r(f),be.sortIndex=be.expirationTime,t(d,be);else break;be=n(f)}}function B(Q){if(S=!1,L(Q),!v)if(n(d)!==null)v=!0,ne();else{var be=n(f);be!==null&&ae(B,be.startTime-Q)}}var k=!1,w=-1,U=5,j=-1;function F(){return!(e.unstable_now()-j<U)}function M(){if(k){var Q=e.unstable_now();j=Q;var be=!0;try{e:{v=!1,S&&(S=!1,x(w),w=-1),_=!0;var K=E;try{t:{for(L(Q),p=n(d);p!==null&&!(p.expirationTime>Q&&F());){var xe=p.callback;if(typeof xe=="function"){p.callback=null,E=p.priorityLevel;var R=xe(p.expirationTime<=Q);if(Q=e.unstable_now(),typeof R=="function"){p.callback=R,L(Q),be=!0;break t}p===n(d)&&r(d),L(Q)}else r(d);p=n(d)}if(p!==null)be=!0;else{var le=n(f);le!==null&&ae(B,le.startTime-Q),be=!1}}break e}finally{p=null,E=K,_=!1}be=void 0}}finally{be?J():k=!1}}}var J;if(typeof O=="function")J=function(){O(M)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,V=X.port2;X.port1.onmessage=M,J=function(){V.postMessage(null)}}else J=function(){A(M,0)};function ne(){k||(k=!0,J())}function ae(Q,be){w=A(function(){Q(e.unstable_now())},be)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Q){Q.callback=null},e.unstable_continueExecution=function(){v||_||(v=!0,ne())},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(Q){switch(E){case 1:case 2:case 3:var be=3;break;default:be=E}var K=E;E=be;try{return Q()}finally{E=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,be){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var K=E;E=Q;try{return be()}finally{E=K}},e.unstable_scheduleCallback=function(Q,be,K){var xe=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?xe+K:xe):K=xe,Q){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=K+R,Q={id:m++,callback:be,priorityLevel:Q,startTime:K,expirationTime:R,sortIndex:-1},K>xe?(Q.sortIndex=K,t(f,Q),n(d)===null&&Q===n(f)&&(S?(x(w),w=-1):S=!0,ae(B,K-xe))):(Q.sortIndex=R,t(d,Q),v||_||(v=!0,ne())),Q},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(Q){var be=E;return function(){var K=E;E=be;try{return Q.apply(this,arguments)}finally{E=K}}}}(mg)),mg}var LT;function L3(){return LT||(LT=1,hg.exports=k3()),hg.exports}var pg={exports:{}},ir={};/**
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 IT;function I3(){if(IT)return ir;IT=1;var e=zb();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return ir.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ir.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return o(d,f,null,m)},ir.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},ir.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},ir.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},ir.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),E=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:E,fetchPriority:_}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:E,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ir.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},ir.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ir.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},ir.requestFormReset=function(d){r.d.r(d)},ir.unstable_batchedUpdates=function(d,f){return d(f)},ir.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},ir.useFormStatus=function(){return l.H.useHostTransitionStatus()},ir.version="19.0.0",ir}var DT;function aN(){if(DT)return pg.exports;DT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pg.exports=I3(),pg.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 MT;function D3(){if(MT)return Zu;MT=1;var e=L3(),t=zb(),n=aN();function r(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}var o=Symbol.for("react.element"),l=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),_=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),B=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function w(a){return a===null||typeof a!="object"?null:(a=k&&a[k]||a["@@iterator"],typeof a=="function"?a:null)}var U=Symbol.for("react.client.reference");function j(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===U?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case d:return"Fragment";case c:return"Portal";case m:return"Profiler";case f:return"StrictMode";case S:return"Suspense";case A:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case _:return(a.displayName||"Context")+".Provider";case E:return(a._context.displayName||"Context")+".Consumer";case v:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case x:return s=a.displayName||null,s!==null?s:j(a.type)||"Memo";case O:s=a._payload,a=a._init;try{return j(a(s))}catch{}}return null}var F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.assign,J,X;function V(a){if(J===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);J=s&&s[1]||"",X=-1<u.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+J+a+X}var ne=!1;function ae(a,s){if(!a||ne)return"";ne=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var ue=ge}Reflect.construct(a,[],Se)}else{try{Se.call()}catch(ge){ue=ge}a.call(Se.prototype)}}else{try{throw Error()}catch(ge){ue=ge}(Se=a())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&ue&&typeof ge.stack=="string")return[ge.stack,ue.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=h.DetermineComponentFrameRoot(),C=y[0],D=y[1];if(C&&D){var z=C.split(`
44
- `),ee=D.split(`
45
- `);for(g=h=0;h<z.length&&!z[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===z.length||g===ee.length)for(h=z.length-1,g=ee.length-1;1<=h&&0<=g&&z[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(z[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||z[h]!==ee[g]){var Ee=`
46
- `+z[h].replace(" at new "," at ");return a.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",a.displayName)),Ee}while(1<=h&&0<=g);break}}}finally{ne=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?V(u):""}function Q(a){switch(a.tag){case 26:case 27:case 5:return V(a.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 15:return a=ae(a.type,!1),a;case 11:return a=ae(a.type.render,!1),a;case 1:return a=ae(a.type,!0),a;default:return""}}function be(a){try{var s="";do s+=Q(a),a=a.return;while(a);return s}catch(u){return`
47
- Error generating stack: `+u.message+`
48
- `+u.stack}}function K(a){var s=a,u=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(u=s.return),a=s.return;while(a)}return s.tag===3?u:null}function xe(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function R(a){if(K(a)!==a)throw Error(r(188))}function le(a){var s=a.alternate;if(!s){if(s=K(a),s===null)throw Error(r(188));return s!==a?null:a}for(var u=a,h=s;;){var g=u.return;if(g===null)break;var y=g.alternate;if(y===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===u)return R(g),a;if(y===h)return R(g),s;y=y.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=y;else{for(var C=!1,D=g.child;D;){if(D===u){C=!0,u=g,h=y;break}if(D===h){C=!0,h=g,u=y;break}D=D.sibling}if(!C){for(D=y.child;D;){if(D===u){C=!0,u=y,h=g;break}if(D===h){C=!0,h=y,u=g;break}D=D.sibling}if(!C)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:s}function te(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=te(a),s!==null)return s;a=a.sibling}return null}var I=Array.isArray,ce=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te={pending:!1,data:null,method:null,action:null},ve=[],Pe=-1;function je(a){return{current:a}}function Ze(a){0>Pe||(a.current=ve[Pe],ve[Pe]=null,Pe--)}function Ue(a,s){Pe++,ve[Pe]=a.current,a.current=s}var Pt=je(null),mn=je(null),pn=je(null),Tn=je(null);function dr(a,s){switch(Ue(pn,s),Ue(mn,a),Ue(Pt,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?nT(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=nT(a),s=rT(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ze(Pt),Ue(Pt,s)}function mt(){Ze(Pt),Ze(mn),Ze(pn)}function zn(a){a.memoizedState!==null&&Ue(Tn,a);var s=Pt.current,u=rT(s,a.type);s!==u&&(Ue(mn,a),Ue(Pt,u))}function $n(a){mn.current===a&&(Ze(Pt),Ze(mn)),Tn.current===a&&(Ze(Tn),Gu._currentValue=Te)}var Qn=Object.prototype.hasOwnProperty,Na=e.unstable_scheduleCallback,ui=e.unstable_cancelCallback,Ir=e.unstable_shouldYield,ta=e.unstable_requestPaint,dn=e.unstable_now,Ha=e.unstable_getCurrentPriorityLevel,de=e.unstable_ImmediatePriority,Ae=e.unstable_UserBlockingPriority,tt=e.unstable_NormalPriority,ht=e.unstable_LowPriority,It=e.unstable_IdlePriority,ln=e.log,yr=e.unstable_setDisableYieldValue,Nn=null,on=null;function Aa(a){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(Nn,a,void 0,(a.current.flags&128)===128)}catch{}}function Kt(a){if(typeof ln=="function"&&yr(a),on&&typeof on.setStrictMode=="function")try{on.setStrictMode(Nn,a)}catch{}}var Xt=Math.clz32?Math.clz32:Lo,qn=Math.log,ji=Math.LN2;function Lo(a){return a>>>=0,a===0?32:31-(qn(a)/ji|0)|0}var ci=128,di=4194304;function Zn(a){var s=a&42;if(s!==0)return s;switch(a&-a){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: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 a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Y(a,s){var u=a.pendingLanes;if(u===0)return 0;var h=0,g=a.suspendedLanes,y=a.pingedLanes,C=a.warmLanes;a=a.finishedLanes!==0;var D=u&134217727;return D!==0?(u=D&~g,u!==0?h=Zn(u):(y&=D,y!==0?h=Zn(y):a||(C=D&~C,C!==0&&(h=Zn(C))))):(D=u&~g,D!==0?h=Zn(D):y!==0?h=Zn(y):a||(C=u&~C,C!==0&&(h=Zn(C)))),h===0?0:s!==0&&s!==h&&(s&g)===0&&(g=h&-h,C=s&-s,g>=C||g===32&&(C&4194176)!==0)?s:h}function pe(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function ke(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+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 st(){var a=ci;return ci<<=1,(ci&4194176)===0&&(ci=128),a}function $(){var a=di;return di<<=1,(di&62914560)===0&&(di=4194304),a}function W(a){for(var s=[],u=0;31>u;u++)s.push(a);return s}function G(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function se(a,s,u,h,g,y){var C=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var D=a.entanglements,z=a.expirationTimes,ee=a.hiddenUpdates;for(u=C&~u;0<u;){var Ee=31-Xt(u),Se=1<<Ee;D[Ee]=0,z[Ee]=-1;var ue=ee[Ee];if(ue!==null)for(ee[Ee]=null,Ee=0;Ee<ue.length;Ee++){var ge=ue[Ee];ge!==null&&(ge.lane&=-536870913)}u&=~Se}h!==0&&me(a,h,0),y!==0&&g===0&&a.tag!==0&&(a.suspendedLanes|=y&~(C&~s))}function me(a,s,u){a.pendingLanes|=s,a.suspendedLanes&=~s;var h=31-Xt(s);a.entangledLanes|=s,a.entanglements[h]=a.entanglements[h]|1073741824|u&4194218}function Ie(a,s){var u=a.entangledLanes|=s;for(a=a.entanglements;u;){var h=31-Xt(u),g=1<<h;g&s|a[h]&s&&(a[h]|=s),u&=~g}}function Le(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Fe(){var a=ce.p;return a!==0?a:(a=window.event,a===void 0?32:TT(a.type))}function Xe(a,s){var u=ce.p;try{return ce.p=a,s()}finally{ce.p=u}}var Ge=Math.random().toString(36).slice(2),He="__reactFiber$"+Ge,Me="__reactProps$"+Ge,rt="__reactContainer$"+Ge,zt="__reactEvents$"+Ge,An="__reactListeners$"+Ge,wn="__reactHandles$"+Ge,$t="__reactResources$"+Ge,Bt="__reactMarker$"+Ge;function Dr(a){delete a[He],delete a[Me],delete a[zt],delete a[An],delete a[wn]}function fr(a){var s=a[He];if(s)return s;for(var u=a.parentNode;u;){if(s=u[rt]||u[He]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(a=sT(a);a!==null;){if(u=a[He])return u;a=sT(a)}return s}a=u,u=a.parentNode}return null}function un(a){if(a=a[He]||a[rt]){var s=a.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return a}return null}function Pn(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(r(33))}function Mr(a){var s=a[$t];return s||(s=a[$t]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Zt(a){a[Bt]=!0}var na=new Set,fi={};function Jn(a,s){Nt(a,s),Nt(a+"Capture",s)}function Nt(a,s){for(fi[a]=s,a=0;a<s.length;a++)na.add(s[a])}var ye=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ve=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]*$"),ut={},ot={};function Jt(a){return Qn.call(ot,a)?!0:Qn.call(ut,a)?!1:Ve.test(a)?ot[a]=!0:(ut[a]=!0,!1)}function Bn(a,s,u){if(Jt(s))if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+u)}}function hr(a,s,u){if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+u)}}function _r(a,s,u,h){if(h===null)a.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(s,u,""+h)}}function en(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Pr(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function od(a){var s=Pr(a)?"checked":"value",u=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),h=""+a[s];if(!a.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,y=u.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return g.call(this)},set:function(C){h=""+C,y.call(this,C)}}),Object.defineProperty(a,s,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Bs(a){a._valueTracker||(a._valueTracker=od(a))}function au(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var u=s.getValue(),h="";return a&&(h=Pr(a)?a.checked?"true":"false":a.value),a=h,a!==u?(s.setValue(a),!0):!1}function Io(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var hm=/[\n"\\]/g;function Tr(a){return a.replace(hm,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function iu(a,s,u,h,g,y,C,D){a.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.type=C:a.removeAttribute("type"),s!=null?C==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+en(s)):a.value!==""+en(s)&&(a.value=""+en(s)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),s!=null?Do(a,C,en(s)):u!=null?Do(a,C,en(u)):h!=null&&a.removeAttribute("value"),g==null&&y!=null&&(a.defaultChecked=!!y),g!=null&&(a.checked=g&&typeof g!="function"&&typeof g!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.name=""+en(D):a.removeAttribute("name")}function Us(a,s,u,h,g,y,C,D){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(a.type=y),s!=null||u!=null){if(!(y!=="submit"&&y!=="reset"||s!=null))return;u=u!=null?""+en(u):"",s=s!=null?""+en(s):u,D||s===a.value||(a.value=s),a.defaultValue=s}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=D?a.checked:!!h,a.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.name=C)}function Do(a,s,u){s==="number"&&Io(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function er(a,s,u,h){if(a=a.options,s){s={};for(var g=0;g<u.length;g++)s["$"+u[g]]=!0;for(u=0;u<a.length;u++)g=s.hasOwnProperty("$"+a[u].value),a[u].selected!==g&&(a[u].selected=g),g&&h&&(a[u].defaultSelected=!0)}else{for(u=""+en(u),s=null,g=0;g<a.length;g++){if(a[g].value===u){a[g].selected=!0,h&&(a[g].defaultSelected=!0);return}s!==null||a[g].disabled||(s=a[g])}s!==null&&(s.selected=!0)}}function ld(a,s,u){if(s!=null&&(s=""+en(s),s!==a.value&&(a.value=s),u==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=u!=null?""+en(u):""}function Mo(a,s,u,h){if(s==null){if(h!=null){if(u!=null)throw Error(r(92));if(I(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),s=u}u=en(s),a.defaultValue=u,h=a.textContent,h===u&&h!==""&&h!==null&&(a.value=h)}function at(a,s){if(s){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=s;return}}a.textContent=s}var ud=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 Cn(a,s,u){var h=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":h?a.setProperty(s,u):typeof u!="number"||u===0||ud.has(s)?s==="float"?a.cssFloat=u:a[s]=(""+u).trim():a[s]=u+"px"}function qt(a,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(a=a.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="");for(var g in s)h=s[g],s.hasOwnProperty(g)&&u[g]!==h&&Cn(a,g,h)}else for(var y in s)s.hasOwnProperty(y)&&Cn(a,y,s[y])}function zi(a){if(a.indexOf("-")===-1)return!1;switch(a){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 hi=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"]]),su=/^[\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 $i(a){return su.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var De=null;function Ke(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var lt=null,Rt=null;function Un(a){var s=un(a);if(s&&(a=s.stateNode)){var u=a[Me]||null;e:switch(a=s.stateNode,s.type){case"input":if(iu(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Tr(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var h=u[s];if(h!==a&&h.form===a.form){var g=h[Me]||null;if(!g)throw Error(r(90));iu(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(s=0;s<u.length;s++)h=u[s],h.form===a.form&&au(h)}break e;case"textarea":ld(a,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&er(a,!!u.multiple,s,!1)}}}var Br=!1;function cd(a,s,u){if(Br)return a(s,u);Br=!0;try{var h=a(s);return h}finally{if(Br=!1,(lt!==null||Rt!==null)&&(Vd(),lt&&(s=lt,a=Rt,Rt=lt=null,Un(s),a)))for(s=0;s<a.length;s++)Un(a[s])}}function Fs(a,s){var u=a.stateNode;if(u===null)return null;var h=u[Me]||null;if(h===null)return null;u=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var mm=!1;if(ye)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){mm=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{mm=!1}var qi=null,pm=null,dd=null;function my(){if(dd)return dd;var a,s=pm,u=s.length,h,g="value"in qi?qi.value:qi.textContent,y=g.length;for(a=0;a<u&&s[a]===g[a];a++);var C=u-a;for(h=1;h<=C&&s[u-h]===g[y-h];h++);return dd=g.slice(a,1<h?1-h:void 0)}function fd(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function hd(){return!0}function py(){return!1}function xr(a){function s(u,h,g,y,C){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var D in a)a.hasOwnProperty(D)&&(u=a[D],this[D]=u?u(y):y[D]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?hd:py,this.isPropagationStopped=py,this}return M(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=hd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=hd)},persist:function(){},isPersistent:hd}),s}var Hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},md=xr(Hs),lu=M({},Hs,{view:0,detail:0}),wO=xr(lu),gm,bm,uu,pd=M({},lu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ym,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==uu&&(uu&&a.type==="mousemove"?(gm=a.screenX-uu.screenX,bm=a.screenY-uu.screenY):bm=gm=0,uu=a),gm)},movementY:function(a){return"movementY"in a?a.movementY:bm}}),gy=xr(pd),CO=M({},pd,{dataTransfer:0}),RO=xr(CO),OO=M({},lu,{relatedTarget:0}),Em=xr(OO),kO=M({},Hs,{animationName:0,elapsedTime:0,pseudoElement:0}),LO=xr(kO),IO=M({},Hs,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),DO=xr(IO),MO=M({},Hs,{data:0}),by=xr(MO),PO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BO={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"},UO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FO(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=UO[a])?!!s[a]:!1}function ym(){return FO}var HO=M({},lu,{key:function(a){if(a.key){var s=PO[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=fd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?BO[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ym,charCode:function(a){return a.type==="keypress"?fd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?fd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),jO=xr(HO),zO=M({},pd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ey=xr(zO),$O=M({},lu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ym}),qO=xr($O),YO=M({},Hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),GO=xr(YO),VO=M({},pd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),KO=xr(VO),XO=M({},Hs,{newState:0,oldState:0}),WO=xr(XO),QO=[9,13,27,32],_m=ye&&"CompositionEvent"in window,cu=null;ye&&"documentMode"in document&&(cu=document.documentMode);var ZO=ye&&"TextEvent"in window&&!cu,yy=ye&&(!_m||cu&&8<cu&&11>=cu),_y=" ",Ty=!1;function xy(a,s){switch(a){case"keyup":return QO.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vy(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Po=!1;function JO(a,s){switch(a){case"compositionend":return vy(s);case"keypress":return s.which!==32?null:(Ty=!0,_y);case"textInput":return a=s.data,a===_y&&Ty?null:a;default:return null}}function ek(a,s){if(Po)return a==="compositionend"||!_m&&xy(a,s)?(a=my(),dd=pm=qi=null,Po=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return yy&&s.locale!=="ko"?null:s.data;default:return null}}var tk={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 Sy(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!tk[a.type]:s==="textarea"}function Ny(a,s,u,h){lt?Rt?Rt.push(h):Rt=[h]:lt=h,s=Zd(s,"onChange"),0<s.length&&(u=new md("onChange","change",null,u,h),a.push({event:u,listeners:s}))}var du=null,fu=null;function nk(a){Q_(a,0)}function gd(a){var s=Pn(a);if(au(s))return a}function Ay(a,s){if(a==="change")return s}var wy=!1;if(ye){var Tm;if(ye){var xm="oninput"in document;if(!xm){var Cy=document.createElement("div");Cy.setAttribute("oninput","return;"),xm=typeof Cy.oninput=="function"}Tm=xm}else Tm=!1;wy=Tm&&(!document.documentMode||9<document.documentMode)}function Ry(){du&&(du.detachEvent("onpropertychange",Oy),fu=du=null)}function Oy(a){if(a.propertyName==="value"&&gd(fu)){var s=[];Ny(s,fu,a,Ke(a)),cd(nk,s)}}function rk(a,s,u){a==="focusin"?(Ry(),du=s,fu=u,du.attachEvent("onpropertychange",Oy)):a==="focusout"&&Ry()}function ak(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return gd(fu)}function ik(a,s){if(a==="click")return gd(s)}function sk(a,s){if(a==="input"||a==="change")return gd(s)}function ok(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var Ur=typeof Object.is=="function"?Object.is:ok;function hu(a,s){if(Ur(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var u=Object.keys(a),h=Object.keys(s);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!Qn.call(s,g)||!Ur(a[g],s[g]))return!1}return!0}function ky(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ly(a,s){var u=ky(a);a=0;for(var h;u;){if(u.nodeType===3){if(h=a+u.textContent.length,a<=s&&h>=s)return{node:u,offset:s-a};a=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=ky(u)}}function Iy(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?Iy(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function Dy(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Io(a.document);s instanceof a.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)a=s.contentWindow;else break;s=Io(a.document)}return s}function vm(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function lk(a,s){var u=Dy(s);s=a.focusedElem;var h=a.selectionRange;if(u!==s&&s&&s.ownerDocument&&Iy(s.ownerDocument.documentElement,s)){if(h!==null&&vm(s)){if(a=h.start,u=h.end,u===void 0&&(u=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(u,s.value.length);else if(u=(a=s.ownerDocument||document)&&a.defaultView||window,u.getSelection){u=u.getSelection();var g=s.textContent.length,y=Math.min(h.start,g);h=h.end===void 0?y:Math.min(h.end,g),!u.extend&&y>h&&(g=h,h=y,y=g),g=Ly(s,y);var C=Ly(s,h);g&&C&&(u.rangeCount!==1||u.anchorNode!==g.node||u.anchorOffset!==g.offset||u.focusNode!==C.node||u.focusOffset!==C.offset)&&(a=a.createRange(),a.setStart(g.node,g.offset),u.removeAllRanges(),y>h?(u.addRange(a),u.extend(C.node,C.offset)):(a.setEnd(C.node,C.offset),u.addRange(a)))}}for(a=[],u=s;u=u.parentNode;)u.nodeType===1&&a.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<a.length;s++)u=a[s],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var uk=ye&&"documentMode"in document&&11>=document.documentMode,Bo=null,Sm=null,mu=null,Nm=!1;function My(a,s,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Nm||Bo==null||Bo!==Io(h)||(h=Bo,"selectionStart"in h&&vm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),mu&&hu(mu,h)||(mu=h,h=Zd(Sm,"onSelect"),0<h.length&&(s=new md("onSelect","select",null,s,u),a.push({event:s,listeners:h}),s.target=Bo)))}function js(a,s){var u={};return u[a.toLowerCase()]=s.toLowerCase(),u["Webkit"+a]="webkit"+s,u["Moz"+a]="moz"+s,u}var Uo={animationend:js("Animation","AnimationEnd"),animationiteration:js("Animation","AnimationIteration"),animationstart:js("Animation","AnimationStart"),transitionrun:js("Transition","TransitionRun"),transitionstart:js("Transition","TransitionStart"),transitioncancel:js("Transition","TransitionCancel"),transitionend:js("Transition","TransitionEnd")},Am={},Py={};ye&&(Py=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);function zs(a){if(Am[a])return Am[a];if(!Uo[a])return a;var s=Uo[a],u;for(u in s)if(s.hasOwnProperty(u)&&u in Py)return Am[a]=s[u];return a}var By=zs("animationend"),Uy=zs("animationiteration"),Fy=zs("animationstart"),ck=zs("transitionrun"),dk=zs("transitionstart"),fk=zs("transitioncancel"),Hy=zs("transitionend"),jy=new Map,zy="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 scrollEnd toggle touchMove waiting wheel".split(" ");function wa(a,s){jy.set(a,s),Jn(s,[a])}var ra=[],Fo=0,wm=0;function bd(){for(var a=Fo,s=wm=Fo=0;s<a;){var u=ra[s];ra[s++]=null;var h=ra[s];ra[s++]=null;var g=ra[s];ra[s++]=null;var y=ra[s];if(ra[s++]=null,h!==null&&g!==null){var C=h.pending;C===null?g.next=g:(g.next=C.next,C.next=g),h.pending=g}y!==0&&$y(u,g,y)}}function Ed(a,s,u,h){ra[Fo++]=a,ra[Fo++]=s,ra[Fo++]=u,ra[Fo++]=h,wm|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function Cm(a,s,u,h){return Ed(a,s,u,h),yd(a)}function Yi(a,s){return Ed(a,null,null,s),yd(a)}function $y(a,s,u){a.lanes|=u;var h=a.alternate;h!==null&&(h.lanes|=u);for(var g=!1,y=a.return;y!==null;)y.childLanes|=u,h=y.alternate,h!==null&&(h.childLanes|=u),y.tag===22&&(a=y.stateNode,a===null||a._visibility&1||(g=!0)),a=y,y=y.return;g&&s!==null&&a.tag===3&&(y=a.stateNode,g=31-Xt(u),y=y.hiddenUpdates,a=y[g],a===null?y[g]=[s]:a.push(s),s.lane=u|536870912)}function yd(a){if(50<Fu)throw Fu=0,Dp=null,Error(r(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var Ho={},qy=new WeakMap;function aa(a,s){if(typeof a=="object"&&a!==null){var u=qy.get(a);return u!==void 0?u:(s={value:a,source:s,stack:be(s)},qy.set(a,s),s)}return{value:a,source:s,stack:be(s)}}var jo=[],zo=0,_d=null,Td=0,ia=[],sa=0,$s=null,mi=1,pi="";function qs(a,s){jo[zo++]=Td,jo[zo++]=_d,_d=a,Td=s}function Yy(a,s,u){ia[sa++]=mi,ia[sa++]=pi,ia[sa++]=$s,$s=a;var h=mi;a=pi;var g=32-Xt(h)-1;h&=~(1<<g),u+=1;var y=32-Xt(s)+g;if(30<y){var C=g-g%5;y=(h&(1<<C)-1).toString(32),h>>=C,g-=C,mi=1<<32-Xt(s)+g|u<<g|h,pi=y+a}else mi=1<<y|u<<g|h,pi=a}function Rm(a){a.return!==null&&(qs(a,1),Yy(a,1,0))}function Om(a){for(;a===_d;)_d=jo[--zo],jo[zo]=null,Td=jo[--zo],jo[zo]=null;for(;a===$s;)$s=ia[--sa],ia[sa]=null,pi=ia[--sa],ia[sa]=null,mi=ia[--sa],ia[sa]=null}var mr=null,tr=null,Ft=!1,Ca=null,ja=!1,km=Error(r(519));function Ys(a){var s=Error(r(418,""));throw bu(aa(s,a)),km}function Gy(a){var s=a.stateNode,u=a.type,h=a.memoizedProps;switch(s[He]=a,s[Me]=h,u){case"dialog":kt("cancel",s),kt("close",s);break;case"iframe":case"object":case"embed":kt("load",s);break;case"video":case"audio":for(u=0;u<ju.length;u++)kt(ju[u],s);break;case"source":kt("error",s);break;case"img":case"image":case"link":kt("error",s),kt("load",s);break;case"details":kt("toggle",s);break;case"input":kt("invalid",s),Us(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Bs(s);break;case"select":kt("invalid",s);break;case"textarea":kt("invalid",s),Mo(s,h.value,h.defaultValue,h.children),Bs(s)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||h.suppressHydrationWarning===!0||tT(s.textContent,u)?(h.popover!=null&&(kt("beforetoggle",s),kt("toggle",s)),h.onScroll!=null&&kt("scroll",s),h.onScrollEnd!=null&&kt("scrollend",s),h.onClick!=null&&(s.onclick=Jd),s=!0):s=!1,s||Ys(a)}function Vy(a){for(mr=a.return;mr;)switch(mr.tag){case 3:case 27:ja=!0;return;case 5:case 13:ja=!1;return;default:mr=mr.return}}function pu(a){if(a!==mr)return!1;if(!Ft)return Vy(a),Ft=!0,!1;var s=!1,u;if((u=a.tag!==3&&a.tag!==27)&&((u=a.tag===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Qp(a.type,a.memoizedProps)),u=!u),u&&(s=!0),s&&tr&&Ys(a),Vy(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,s=0;a;){if(a.nodeType===8)if(u=a.data,u==="/$"){if(s===0){tr=Oa(a.nextSibling);break e}s--}else u!=="$"&&u!=="$!"&&u!=="$?"||s++;a=a.nextSibling}tr=null}}else tr=mr?Oa(a.stateNode.nextSibling):null;return!0}function gu(){tr=mr=null,Ft=!1}function bu(a){Ca===null?Ca=[a]:Ca.push(a)}var Eu=Error(r(460)),Ky=Error(r(474)),Lm={then:function(){}};function Xy(a){return a=a.status,a==="fulfilled"||a==="rejected"}function xd(){}function Wy(a,s,u){switch(u=a[u],u===void 0?a.push(s):u!==s&&(s.then(xd,xd),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===Eu?Error(r(483)):a;default:if(typeof s.status=="string")s.then(xd,xd);else{if(a=tn,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=s,a.status="pending",a.then(function(h){if(s.status==="pending"){var g=s;g.status="fulfilled",g.value=h}},function(h){if(s.status==="pending"){var g=s;g.status="rejected",g.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===Eu?Error(r(483)):a}throw yu=s,Eu}}var yu=null;function Qy(){if(yu===null)throw Error(r(459));var a=yu;return yu=null,a}var $o=null,_u=0;function vd(a){var s=_u;return _u+=1,$o===null&&($o=[]),Wy($o,a,s)}function Tu(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function Sd(a,s){throw s.$$typeof===o?Error(r(525)):(a=Object.prototype.toString.call(s),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function Zy(a){var s=a._init;return s(a._payload)}function Jy(a){function s(re,Z){if(a){var oe=re.deletions;oe===null?(re.deletions=[Z],re.flags|=16):oe.push(Z)}}function u(re,Z){if(!a)return null;for(;Z!==null;)s(re,Z),Z=Z.sibling;return null}function h(re){for(var Z=new Map;re!==null;)re.key!==null?Z.set(re.key,re):Z.set(re.index,re),re=re.sibling;return Z}function g(re,Z){return re=rs(re,Z),re.index=0,re.sibling=null,re}function y(re,Z,oe){return re.index=oe,a?(oe=re.alternate,oe!==null?(oe=oe.index,oe<Z?(re.flags|=33554434,Z):oe):(re.flags|=33554434,Z)):(re.flags|=1048576,Z)}function C(re){return a&&re.alternate===null&&(re.flags|=33554434),re}function D(re,Z,oe,_e){return Z===null||Z.tag!==6?(Z=Ap(oe,re.mode,_e),Z.return=re,Z):(Z=g(Z,oe),Z.return=re,Z)}function z(re,Z,oe,_e){var ze=oe.type;return ze===d?Ee(re,Z,oe.props.children,_e,oe.key):Z!==null&&(Z.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===O&&Zy(ze)===Z.type)?(Z=g(Z,oe.props),Tu(Z,oe),Z.return=re,Z):(Z=zd(oe.type,oe.key,oe.props,null,re.mode,_e),Tu(Z,oe),Z.return=re,Z)}function ee(re,Z,oe,_e){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==oe.containerInfo||Z.stateNode.implementation!==oe.implementation?(Z=wp(oe,re.mode,_e),Z.return=re,Z):(Z=g(Z,oe.children||[]),Z.return=re,Z)}function Ee(re,Z,oe,_e,ze){return Z===null||Z.tag!==7?(Z=to(oe,re.mode,_e,ze),Z.return=re,Z):(Z=g(Z,oe),Z.return=re,Z)}function Se(re,Z,oe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=Ap(""+Z,re.mode,oe),Z.return=re,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case l:return oe=zd(Z.type,Z.key,Z.props,null,re.mode,oe),Tu(oe,Z),oe.return=re,oe;case c:return Z=wp(Z,re.mode,oe),Z.return=re,Z;case O:var _e=Z._init;return Z=_e(Z._payload),Se(re,Z,oe)}if(I(Z)||w(Z))return Z=to(Z,re.mode,oe,null),Z.return=re,Z;if(typeof Z.then=="function")return Se(re,vd(Z),oe);if(Z.$$typeof===_)return Se(re,Fd(re,Z),oe);Sd(re,Z)}return null}function ue(re,Z,oe,_e){var ze=Z!==null?Z.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return ze!==null?null:D(re,Z,""+oe,_e);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case l:return oe.key===ze?z(re,Z,oe,_e):null;case c:return oe.key===ze?ee(re,Z,oe,_e):null;case O:return ze=oe._init,oe=ze(oe._payload),ue(re,Z,oe,_e)}if(I(oe)||w(oe))return ze!==null?null:Ee(re,Z,oe,_e,null);if(typeof oe.then=="function")return ue(re,Z,vd(oe),_e);if(oe.$$typeof===_)return ue(re,Z,Fd(re,oe),_e);Sd(re,oe)}return null}function ge(re,Z,oe,_e,ze){if(typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint")return re=re.get(oe)||null,D(Z,re,""+_e,ze);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case l:return re=re.get(_e.key===null?oe:_e.key)||null,z(Z,re,_e,ze);case c:return re=re.get(_e.key===null?oe:_e.key)||null,ee(Z,re,_e,ze);case O:var Tt=_e._init;return _e=Tt(_e._payload),ge(re,Z,oe,_e,ze)}if(I(_e)||w(_e))return re=re.get(oe)||null,Ee(Z,re,_e,ze,null);if(typeof _e.then=="function")return ge(re,Z,oe,vd(_e),ze);if(_e.$$typeof===_)return ge(re,Z,oe,Fd(Z,_e),ze);Sd(Z,_e)}return null}function Qe(re,Z,oe,_e){for(var ze=null,Tt=null,Je=Z,it=Z=0,Vn=null;Je!==null&&it<oe.length;it++){Je.index>it?(Vn=Je,Je=null):Vn=Je.sibling;var Ht=ue(re,Je,oe[it],_e);if(Ht===null){Je===null&&(Je=Vn);break}a&&Je&&Ht.alternate===null&&s(re,Je),Z=y(Ht,Z,it),Tt===null?ze=Ht:Tt.sibling=Ht,Tt=Ht,Je=Vn}if(it===oe.length)return u(re,Je),Ft&&qs(re,it),ze;if(Je===null){for(;it<oe.length;it++)Je=Se(re,oe[it],_e),Je!==null&&(Z=y(Je,Z,it),Tt===null?ze=Je:Tt.sibling=Je,Tt=Je);return Ft&&qs(re,it),ze}for(Je=h(Je);it<oe.length;it++)Vn=ge(Je,re,it,oe[it],_e),Vn!==null&&(a&&Vn.alternate!==null&&Je.delete(Vn.key===null?it:Vn.key),Z=y(Vn,Z,it),Tt===null?ze=Vn:Tt.sibling=Vn,Tt=Vn);return a&&Je.forEach(function(cs){return s(re,cs)}),Ft&&qs(re,it),ze}function ct(re,Z,oe,_e){if(oe==null)throw Error(r(151));for(var ze=null,Tt=null,Je=Z,it=Z=0,Vn=null,Ht=oe.next();Je!==null&&!Ht.done;it++,Ht=oe.next()){Je.index>it?(Vn=Je,Je=null):Vn=Je.sibling;var cs=ue(re,Je,Ht.value,_e);if(cs===null){Je===null&&(Je=Vn);break}a&&Je&&cs.alternate===null&&s(re,Je),Z=y(cs,Z,it),Tt===null?ze=cs:Tt.sibling=cs,Tt=cs,Je=Vn}if(Ht.done)return u(re,Je),Ft&&qs(re,it),ze;if(Je===null){for(;!Ht.done;it++,Ht=oe.next())Ht=Se(re,Ht.value,_e),Ht!==null&&(Z=y(Ht,Z,it),Tt===null?ze=Ht:Tt.sibling=Ht,Tt=Ht);return Ft&&qs(re,it),ze}for(Je=h(Je);!Ht.done;it++,Ht=oe.next())Ht=ge(Je,re,it,Ht.value,_e),Ht!==null&&(a&&Ht.alternate!==null&&Je.delete(Ht.key===null?it:Ht.key),Z=y(Ht,Z,it),Tt===null?ze=Ht:Tt.sibling=Ht,Tt=Ht);return a&&Je.forEach(function(A3){return s(re,A3)}),Ft&&qs(re,it),ze}function En(re,Z,oe,_e){if(typeof oe=="object"&&oe!==null&&oe.type===d&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case l:e:{for(var ze=oe.key;Z!==null;){if(Z.key===ze){if(ze=oe.type,ze===d){if(Z.tag===7){u(re,Z.sibling),_e=g(Z,oe.props.children),_e.return=re,re=_e;break e}}else if(Z.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===O&&Zy(ze)===Z.type){u(re,Z.sibling),_e=g(Z,oe.props),Tu(_e,oe),_e.return=re,re=_e;break e}u(re,Z);break}else s(re,Z);Z=Z.sibling}oe.type===d?(_e=to(oe.props.children,re.mode,_e,oe.key),_e.return=re,re=_e):(_e=zd(oe.type,oe.key,oe.props,null,re.mode,_e),Tu(_e,oe),_e.return=re,re=_e)}return C(re);case c:e:{for(ze=oe.key;Z!==null;){if(Z.key===ze)if(Z.tag===4&&Z.stateNode.containerInfo===oe.containerInfo&&Z.stateNode.implementation===oe.implementation){u(re,Z.sibling),_e=g(Z,oe.children||[]),_e.return=re,re=_e;break e}else{u(re,Z);break}else s(re,Z);Z=Z.sibling}_e=wp(oe,re.mode,_e),_e.return=re,re=_e}return C(re);case O:return ze=oe._init,oe=ze(oe._payload),En(re,Z,oe,_e)}if(I(oe))return Qe(re,Z,oe,_e);if(w(oe)){if(ze=w(oe),typeof ze!="function")throw Error(r(150));return oe=ze.call(oe),ct(re,Z,oe,_e)}if(typeof oe.then=="function")return En(re,Z,vd(oe),_e);if(oe.$$typeof===_)return En(re,Z,Fd(re,oe),_e);Sd(re,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,Z!==null&&Z.tag===6?(u(re,Z.sibling),_e=g(Z,oe),_e.return=re,re=_e):(u(re,Z),_e=Ap(oe,re.mode,_e),_e.return=re,re=_e),C(re)):u(re,Z)}return function(re,Z,oe,_e){try{_u=0;var ze=En(re,Z,oe,_e);return $o=null,ze}catch(Je){if(Je===Eu)throw Je;var Tt=ca(29,Je,null,re.mode);return Tt.lanes=_e,Tt.return=re,Tt}finally{}}}var Gs=Jy(!0),e1=Jy(!1),qo=je(null),Nd=je(0);function t1(a,s){a=Ai,Ue(Nd,a),Ue(qo,s),Ai=a|s.baseLanes}function Im(){Ue(Nd,Ai),Ue(qo,qo.current)}function Dm(){Ai=Nd.current,Ze(qo),Ze(Nd)}var oa=je(null),za=null;function Gi(a){var s=a.alternate;Ue(Fn,Fn.current&1),Ue(oa,a),za===null&&(s===null||qo.current!==null||s.memoizedState!==null)&&(za=a)}function n1(a){if(a.tag===22){if(Ue(Fn,Fn.current),Ue(oa,a),za===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&(za=a)}}else Vi()}function Vi(){Ue(Fn,Fn.current),Ue(oa,oa.current)}function gi(a){Ze(oa),za===a&&(za=null),Ze(Fn)}var Fn=je(0);function Ad(a){for(var s=a;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var hk=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(u,h){a.push(h)}};this.abort=function(){s.aborted=!0,a.forEach(function(u){return u()})}},mk=e.unstable_scheduleCallback,pk=e.unstable_NormalPriority,Hn={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mm(){return{controller:new hk,data:new Map,refCount:0}}function xu(a){a.refCount--,a.refCount===0&&mk(pk,function(){a.controller.abort()})}var vu=null,Pm=0,Yo=0,Go=null;function gk(a,s){if(vu===null){var u=vu=[];Pm=0,Yo=zp(),Go={status:"pending",value:void 0,then:function(h){u.push(h)}}}return Pm++,s.then(r1,r1),s}function r1(){if(--Pm===0&&vu!==null){Go!==null&&(Go.status="fulfilled");var a=vu;vu=null,Yo=0,Go=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function bk(a,s){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return a.then(function(){h.status="fulfilled",h.value=s;for(var g=0;g<u.length;g++)(0,u[g])(s)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var a1=F.S;F.S=function(a,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&gk(a,s),a1!==null&&a1(a,s)};var Vs=je(null);function Bm(){var a=Vs.current;return a!==null?a:tn.pooledCache}function wd(a,s){s===null?Ue(Vs,Vs.current):Ue(Vs,s.pool)}function i1(){var a=Bm();return a===null?null:{parent:Hn._currentValue,pool:a}}var Ki=0,yt=null,Yt=null,Rn=null,Cd=!1,Vo=!1,Ks=!1,Rd=0,Su=0,Ko=null,Ek=0;function xn(){throw Error(r(321))}function Um(a,s){if(s===null)return!1;for(var u=0;u<s.length&&u<a.length;u++)if(!Ur(a[u],s[u]))return!1;return!0}function Fm(a,s,u,h,g,y){return Ki=y,yt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,F.H=a===null||a.memoizedState===null?Xs:Xi,Ks=!1,y=u(h,g),Ks=!1,Vo&&(y=o1(s,u,h,g)),s1(a),y}function s1(a){F.H=$a;var s=Yt!==null&&Yt.next!==null;if(Ki=0,Rn=Yt=yt=null,Cd=!1,Su=0,Ko=null,s)throw Error(r(300));a===null||Yn||(a=a.dependencies,a!==null&&Ud(a)&&(Yn=!0))}function o1(a,s,u,h){yt=a;var g=0;do{if(Vo&&(Ko=null),Su=0,Vo=!1,25<=g)throw Error(r(301));if(g+=1,Rn=Yt=null,a.updateQueue!=null){var y=a.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}F.H=Ws,y=s(u,h)}while(Vo);return y}function yk(){var a=F.H,s=a.useState()[0];return s=typeof s.then=="function"?Nu(s):s,a=a.useState()[0],(Yt!==null?Yt.memoizedState:null)!==a&&(yt.flags|=1024),s}function Hm(){var a=Rd!==0;return Rd=0,a}function jm(a,s,u){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~u}function zm(a){if(Cd){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}Cd=!1}Ki=0,Rn=Yt=yt=null,Vo=!1,Su=Rd=0,Ko=null}function vr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rn===null?yt.memoizedState=Rn=a:Rn=Rn.next=a,Rn}function On(){if(Yt===null){var a=yt.alternate;a=a!==null?a.memoizedState:null}else a=Yt.next;var s=Rn===null?yt.memoizedState:Rn.next;if(s!==null)Rn=s,Yt=a;else{if(a===null)throw yt.alternate===null?Error(r(467)):Error(r(310));Yt=a,a={memoizedState:Yt.memoizedState,baseState:Yt.baseState,baseQueue:Yt.baseQueue,queue:Yt.queue,next:null},Rn===null?yt.memoizedState=Rn=a:Rn=Rn.next=a}return Rn}var Od;Od=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Nu(a){var s=Su;return Su+=1,Ko===null&&(Ko=[]),a=Wy(Ko,a,s),s=yt,(Rn===null?s.memoizedState:Rn.next)===null&&(s=s.alternate,F.H=s===null||s.memoizedState===null?Xs:Xi),a}function kd(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Nu(a);if(a.$$typeof===_)return ar(a)}throw Error(r(438,String(a)))}function $m(a){var s=null,u=yt.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var h=yt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(g){return g.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Od(),yt.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(a),h=0;h<a;h++)u[h]=B;return s.index++,u}function bi(a,s){return typeof s=="function"?s(a):s}function Ld(a){var s=On();return qm(s,Yt,a)}function qm(a,s,u){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=a.baseQueue,y=h.pending;if(y!==null){if(g!==null){var C=g.next;g.next=y.next,y.next=C}s.baseQueue=g=y,h.pending=null}if(y=a.baseState,g===null)a.memoizedState=y;else{s=g.next;var D=C=null,z=null,ee=s,Ee=!1;do{var Se=ee.lane&-536870913;if(Se!==ee.lane?(Dt&Se)===Se:(Ki&Se)===Se){var ue=ee.revertLane;if(ue===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),Se===Yo&&(Ee=!0);else if((Ki&ue)===ue){ee=ee.next,ue===Yo&&(Ee=!0);continue}else Se={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},z===null?(D=z=Se,C=y):z=z.next=Se,yt.lanes|=ue,as|=ue;Se=ee.action,Ks&&u(y,Se),y=ee.hasEagerState?ee.eagerState:u(y,Se)}else ue={lane:Se,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},z===null?(D=z=ue,C=y):z=z.next=ue,yt.lanes|=Se,as|=Se;ee=ee.next}while(ee!==null&&ee!==s);if(z===null?C=y:z.next=D,!Ur(y,a.memoizedState)&&(Yn=!0,Ee&&(u=Go,u!==null)))throw u;a.memoizedState=y,a.baseState=C,a.baseQueue=z,h.lastRenderedState=y}return g===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Ym(a){var s=On(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var h=u.dispatch,g=u.pending,y=s.memoizedState;if(g!==null){u.pending=null;var C=g=g.next;do y=a(y,C.action),C=C.next;while(C!==g);Ur(y,s.memoizedState)||(Yn=!0),s.memoizedState=y,s.baseQueue===null&&(s.baseState=y),u.lastRenderedState=y}return[y,h]}function l1(a,s,u){var h=yt,g=On(),y=Ft;if(y){if(u===void 0)throw Error(r(407));u=u()}else u=s();var C=!Ur((Yt||g).memoizedState,u);if(C&&(g.memoizedState=u,Yn=!0),g=g.queue,Km(d1.bind(null,h,g,a),[a]),g.getSnapshot!==s||C||Rn!==null&&Rn.memoizedState.tag&1){if(h.flags|=2048,Xo(9,c1.bind(null,h,g,u,s),{destroy:void 0},null),tn===null)throw Error(r(349));y||(Ki&60)!==0||u1(h,s,u)}return u}function u1(a,s,u){a.flags|=16384,a={getSnapshot:s,value:u},s=yt.updateQueue,s===null?(s=Od(),yt.updateQueue=s,s.stores=[a]):(u=s.stores,u===null?s.stores=[a]:u.push(a))}function c1(a,s,u,h){s.value=u,s.getSnapshot=h,f1(s)&&h1(a)}function d1(a,s,u){return u(function(){f1(s)&&h1(a)})}function f1(a){var s=a.getSnapshot;a=a.value;try{var u=s();return!Ur(a,u)}catch{return!0}}function h1(a){var s=Yi(a,2);s!==null&&pr(s,a,2)}function Gm(a){var s=vr();if(typeof a=="function"){var u=a;if(a=u(),Ks){Kt(!0);try{u()}finally{Kt(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:a},s}function m1(a,s,u,h){return a.baseState=u,qm(a,Yt,typeof h=="function"?h:bi)}function _k(a,s,u,h,g){if(Md(a))throw Error(r(485));if(a=s.action,a!==null){var y={payload:g,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};F.T!==null?u(!0):y.isTransition=!1,h(y),u=s.pending,u===null?(y.next=s.pending=y,p1(s,y)):(y.next=u.next,s.pending=u.next=y)}}function p1(a,s){var u=s.action,h=s.payload,g=a.state;if(s.isTransition){var y=F.T,C={};F.T=C;try{var D=u(g,h),z=F.S;z!==null&&z(C,D),g1(a,s,D)}catch(ee){Vm(a,s,ee)}finally{F.T=y}}else try{y=u(g,h),g1(a,s,y)}catch(ee){Vm(a,s,ee)}}function g1(a,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){b1(a,s,h)},function(h){return Vm(a,s,h)}):b1(a,s,u)}function b1(a,s,u){s.status="fulfilled",s.value=u,E1(s),a.state=u,s=a.pending,s!==null&&(u=s.next,u===s?a.pending=null:(u=u.next,s.next=u,p1(a,u)))}function Vm(a,s,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=u,E1(s),s=s.next;while(s!==h)}a.action=null}function E1(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function y1(a,s){return s}function _1(a,s){if(Ft){var u=tn.formState;if(u!==null){e:{var h=yt;if(Ft){if(tr){t:{for(var g=tr,y=ja;g.nodeType!==8;){if(!y){g=null;break t}if(g=Oa(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y==="F!"||y==="F"?g:null}if(g){tr=Oa(g.nextSibling),h=g.data==="F!";break e}}Ys(h)}h=!1}h&&(s=u[0])}}return u=vr(),u.memoizedState=u.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:y1,lastRenderedState:s},u.queue=h,u=U1.bind(null,yt,h),h.dispatch=u,h=Gm(!1),y=Jm.bind(null,yt,!1,h.queue),h=vr(),g={state:s,dispatch:null,action:a,pending:null},h.queue=g,u=_k.bind(null,yt,g,y,u),g.dispatch=u,h.memoizedState=a,[s,u,!1]}function T1(a){var s=On();return x1(s,Yt,a)}function x1(a,s,u){s=qm(a,s,y1)[0],a=Ld(bi)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?Nu(s):s;var h=On(),g=h.queue,y=g.dispatch;return u!==h.memoizedState&&(yt.flags|=2048,Xo(9,Tk.bind(null,g,u),{destroy:void 0},null)),[s,y,a]}function Tk(a,s){a.action=s}function v1(a){var s=On(),u=Yt;if(u!==null)return x1(s,u,a);On(),s=s.memoizedState,u=On();var h=u.queue.dispatch;return u.memoizedState=a,[s,h,!1]}function Xo(a,s,u,h){return a={tag:a,create:s,inst:u,deps:h,next:null},s=yt.updateQueue,s===null&&(s=Od(),yt.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=a.next=a:(h=u.next,u.next=a,a.next=h,s.lastEffect=a),a}function S1(){return On().memoizedState}function Id(a,s,u,h){var g=vr();yt.flags|=a,g.memoizedState=Xo(1|s,u,{destroy:void 0},h===void 0?null:h)}function Dd(a,s,u,h){var g=On();h=h===void 0?null:h;var y=g.memoizedState.inst;Yt!==null&&h!==null&&Um(h,Yt.memoizedState.deps)?g.memoizedState=Xo(s,u,y,h):(yt.flags|=a,g.memoizedState=Xo(1|s,u,y,h))}function N1(a,s){Id(8390656,8,a,s)}function Km(a,s){Dd(2048,8,a,s)}function A1(a,s){return Dd(4,2,a,s)}function w1(a,s){return Dd(4,4,a,s)}function C1(a,s){if(typeof s=="function"){a=a();var u=s(a);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function R1(a,s,u){u=u!=null?u.concat([a]):null,Dd(4,4,C1.bind(null,s,a),u)}function Xm(){}function O1(a,s){var u=On();s=s===void 0?null:s;var h=u.memoizedState;return s!==null&&Um(s,h[1])?h[0]:(u.memoizedState=[a,s],a)}function k1(a,s){var u=On();s=s===void 0?null:s;var h=u.memoizedState;if(s!==null&&Um(s,h[1]))return h[0];if(h=a(),Ks){Kt(!0);try{a()}finally{Kt(!1)}}return u.memoizedState=[h,s],h}function Wm(a,s,u){return u===void 0||(Ki&1073741824)!==0?a.memoizedState=s:(a.memoizedState=u,a=I_(),yt.lanes|=a,as|=a,u)}function L1(a,s,u,h){return Ur(u,s)?u:qo.current!==null?(a=Wm(a,u,h),Ur(a,s)||(Yn=!0),a):(Ki&42)===0?(Yn=!0,a.memoizedState=u):(a=I_(),yt.lanes|=a,as|=a,s)}function I1(a,s,u,h,g){var y=ce.p;ce.p=y!==0&&8>y?y:8;var C=F.T,D={};F.T=D,Jm(a,!1,s,u);try{var z=g(),ee=F.S;if(ee!==null&&ee(D,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var Ee=bk(z,h);Au(a,s,Ee,zr(a))}else Au(a,s,h,zr(a))}catch(Se){Au(a,s,{then:function(){},status:"rejected",reason:Se},zr())}finally{ce.p=y,F.T=C}}function xk(){}function Qm(a,s,u,h){if(a.tag!==5)throw Error(r(476));var g=D1(a).queue;I1(a,g,s,Te,u===null?xk:function(){return M1(a),u(h)})}function D1(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:Te,baseState:Te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:Te},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:u},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function M1(a){var s=D1(a).next.queue;Au(a,s,{},zr())}function Zm(){return ar(Gu)}function P1(){return On().memoizedState}function B1(){return On().memoizedState}function vk(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var u=zr();a=Zi(u);var h=Ji(s,a,u);h!==null&&(pr(h,s,u),Ru(h,s,u)),s={cache:Mm()},a.payload=s;return}s=s.return}}function Sk(a,s,u){var h=zr();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Md(a)?F1(s,u):(u=Cm(a,s,u,h),u!==null&&(pr(u,a,h),H1(u,s,h)))}function U1(a,s,u){var h=zr();Au(a,s,u,h)}function Au(a,s,u,h){var g={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Md(a))F1(s,g);else{var y=a.alternate;if(a.lanes===0&&(y===null||y.lanes===0)&&(y=s.lastRenderedReducer,y!==null))try{var C=s.lastRenderedState,D=y(C,u);if(g.hasEagerState=!0,g.eagerState=D,Ur(D,C))return Ed(a,s,g,0),tn===null&&bd(),!1}catch{}finally{}if(u=Cm(a,s,g,h),u!==null)return pr(u,a,h),H1(u,s,h),!0}return!1}function Jm(a,s,u,h){if(h={lane:2,revertLane:zp(),action:h,hasEagerState:!1,eagerState:null,next:null},Md(a)){if(s)throw Error(r(479))}else s=Cm(a,u,h,2),s!==null&&pr(s,a,2)}function Md(a){var s=a.alternate;return a===yt||s!==null&&s===yt}function F1(a,s){Vo=Cd=!0;var u=a.pending;u===null?s.next=s:(s.next=u.next,u.next=s),a.pending=s}function H1(a,s,u){if((u&4194176)!==0){var h=s.lanes;h&=a.pendingLanes,u|=h,s.lanes=u,Ie(a,u)}}var $a={readContext:ar,use:kd,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useLayoutEffect:xn,useInsertionEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useSyncExternalStore:xn,useId:xn};$a.useCacheRefresh=xn,$a.useMemoCache=xn,$a.useHostTransitionStatus=xn,$a.useFormState=xn,$a.useActionState=xn,$a.useOptimistic=xn;var Xs={readContext:ar,use:kd,useCallback:function(a,s){return vr().memoizedState=[a,s===void 0?null:s],a},useContext:ar,useEffect:N1,useImperativeHandle:function(a,s,u){u=u!=null?u.concat([a]):null,Id(4194308,4,C1.bind(null,s,a),u)},useLayoutEffect:function(a,s){return Id(4194308,4,a,s)},useInsertionEffect:function(a,s){Id(4,2,a,s)},useMemo:function(a,s){var u=vr();s=s===void 0?null:s;var h=a();if(Ks){Kt(!0);try{a()}finally{Kt(!1)}}return u.memoizedState=[h,s],h},useReducer:function(a,s,u){var h=vr();if(u!==void 0){var g=u(s);if(Ks){Kt(!0);try{u(s)}finally{Kt(!1)}}}else g=s;return h.memoizedState=h.baseState=g,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:g},h.queue=a,a=a.dispatch=Sk.bind(null,yt,a),[h.memoizedState,a]},useRef:function(a){var s=vr();return a={current:a},s.memoizedState=a},useState:function(a){a=Gm(a);var s=a.queue,u=U1.bind(null,yt,s);return s.dispatch=u,[a.memoizedState,u]},useDebugValue:Xm,useDeferredValue:function(a,s){var u=vr();return Wm(u,a,s)},useTransition:function(){var a=Gm(!1);return a=I1.bind(null,yt,a.queue,!0,!1),vr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,u){var h=yt,g=vr();if(Ft){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),tn===null)throw Error(r(349));(Dt&60)!==0||u1(h,s,u)}g.memoizedState=u;var y={value:u,getSnapshot:s};return g.queue=y,N1(d1.bind(null,h,y,a),[a]),h.flags|=2048,Xo(9,c1.bind(null,h,y,u,s),{destroy:void 0},null),u},useId:function(){var a=vr(),s=tn.identifierPrefix;if(Ft){var u=pi,h=mi;u=(h&~(1<<32-Xt(h)-1)).toString(32)+u,s=":"+s+"R"+u,u=Rd++,0<u&&(s+="H"+u.toString(32)),s+=":"}else u=Ek++,s=":"+s+"r"+u.toString(32)+":";return a.memoizedState=s},useCacheRefresh:function(){return vr().memoizedState=vk.bind(null,yt)}};Xs.useMemoCache=$m,Xs.useHostTransitionStatus=Zm,Xs.useFormState=_1,Xs.useActionState=_1,Xs.useOptimistic=function(a){var s=vr();s.memoizedState=s.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Jm.bind(null,yt,!0,u),u.dispatch=s,[a,s]};var Xi={readContext:ar,use:kd,useCallback:O1,useContext:ar,useEffect:Km,useImperativeHandle:R1,useInsertionEffect:A1,useLayoutEffect:w1,useMemo:k1,useReducer:Ld,useRef:S1,useState:function(){return Ld(bi)},useDebugValue:Xm,useDeferredValue:function(a,s){var u=On();return L1(u,Yt.memoizedState,a,s)},useTransition:function(){var a=Ld(bi)[0],s=On().memoizedState;return[typeof a=="boolean"?a:Nu(a),s]},useSyncExternalStore:l1,useId:P1};Xi.useCacheRefresh=B1,Xi.useMemoCache=$m,Xi.useHostTransitionStatus=Zm,Xi.useFormState=T1,Xi.useActionState=T1,Xi.useOptimistic=function(a,s){var u=On();return m1(u,Yt,a,s)};var Ws={readContext:ar,use:kd,useCallback:O1,useContext:ar,useEffect:Km,useImperativeHandle:R1,useInsertionEffect:A1,useLayoutEffect:w1,useMemo:k1,useReducer:Ym,useRef:S1,useState:function(){return Ym(bi)},useDebugValue:Xm,useDeferredValue:function(a,s){var u=On();return Yt===null?Wm(u,a,s):L1(u,Yt.memoizedState,a,s)},useTransition:function(){var a=Ym(bi)[0],s=On().memoizedState;return[typeof a=="boolean"?a:Nu(a),s]},useSyncExternalStore:l1,useId:P1};Ws.useCacheRefresh=B1,Ws.useMemoCache=$m,Ws.useHostTransitionStatus=Zm,Ws.useFormState=v1,Ws.useActionState=v1,Ws.useOptimistic=function(a,s){var u=On();return Yt!==null?m1(u,Yt,a,s):(u.baseState=a,[a,u.queue.dispatch])};function ep(a,s,u,h){s=a.memoizedState,u=u(h,s),u=u==null?s:M({},s,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var tp={isMounted:function(a){return(a=a._reactInternals)?K(a)===a:!1},enqueueSetState:function(a,s,u){a=a._reactInternals;var h=zr(),g=Zi(h);g.payload=s,u!=null&&(g.callback=u),s=Ji(a,g,h),s!==null&&(pr(s,a,h),Ru(s,a,h))},enqueueReplaceState:function(a,s,u){a=a._reactInternals;var h=zr(),g=Zi(h);g.tag=1,g.payload=s,u!=null&&(g.callback=u),s=Ji(a,g,h),s!==null&&(pr(s,a,h),Ru(s,a,h))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var u=zr(),h=Zi(u);h.tag=2,s!=null&&(h.callback=s),s=Ji(a,h,u),s!==null&&(pr(s,a,u),Ru(s,a,u))}};function j1(a,s,u,h,g,y,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,y,C):s.prototype&&s.prototype.isPureReactComponent?!hu(u,h)||!hu(g,y):!0}function z1(a,s,u,h){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,h),s.state!==a&&tp.enqueueReplaceState(s,s.state,null)}function Qs(a,s){var u=s;if("ref"in s){u={};for(var h in s)h!=="ref"&&(u[h]=s[h])}if(a=a.defaultProps){u===s&&(u=M({},u));for(var g in a)u[g]===void 0&&(u[g]=a[g])}return u}var Pd=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function $1(a){Pd(a)}function q1(a){console.error(a)}function Y1(a){Pd(a)}function Bd(a,s){try{var u=a.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function G1(a,s,u){try{var h=a.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function np(a,s,u){return u=Zi(u),u.tag=3,u.payload={element:null},u.callback=function(){Bd(a,s)},u}function V1(a){return a=Zi(a),a.tag=3,a}function K1(a,s,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var y=h.value;a.payload=function(){return g(y)},a.callback=function(){G1(s,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){G1(s,u,h),typeof g!="function"&&(is===null?is=new Set([this]):is.add(this));var D=h.stack;this.componentDidCatch(h.value,{componentStack:D!==null?D:""})})}function Nk(a,s,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=u.alternate,s!==null&&Cu(s,u,g,!0),u=oa.current,u!==null){switch(u.tag){case 13:return za===null?Bp():u.alternate===null&&bn===0&&(bn=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===Lm?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([h]):s.add(h),Fp(a,h,g)),!1;case 22:return u.flags|=65536,h===Lm?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([h]):u.add(h)),Fp(a,h,g)),!1}throw Error(r(435,u.tag))}return Fp(a,h,g),Bp(),!1}if(Ft)return s=oa.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=g,h!==km&&(a=Error(r(422),{cause:h}),bu(aa(a,u)))):(h!==km&&(s=Error(r(423),{cause:h}),bu(aa(s,u))),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,h=aa(h,u),g=np(a.stateNode,h,g),bp(a,g),bn!==4&&(bn=2)),!1;var y=Error(r(520),{cause:h});if(y=aa(y,u),Bu===null?Bu=[y]:Bu.push(y),bn!==4&&(bn=2),s===null)return!0;h=aa(h,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,a=g&-g,u.lanes|=a,a=np(u.stateNode,h,a),bp(u,a),!1;case 1:if(s=u.type,y=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(is===null||!is.has(y))))return u.flags|=65536,g&=-g,u.lanes|=g,g=V1(g),K1(g,a,u,h),bp(u,g),!1}u=u.return}while(u!==null);return!1}var X1=Error(r(461)),Yn=!1;function nr(a,s,u,h){s.child=a===null?e1(s,null,u,h):Gs(s,a.child,u,h)}function W1(a,s,u,h,g){u=u.render;var y=s.ref;if("ref"in h){var C={};for(var D in h)D!=="ref"&&(C[D]=h[D])}else C=h;return Js(s),h=Fm(a,s,u,C,y,g),D=Hm(),a!==null&&!Yn?(jm(a,s,g),Ei(a,s,g)):(Ft&&D&&Rm(s),s.flags|=1,nr(a,s,h,g),s.child)}function Q1(a,s,u,h,g){if(a===null){var y=u.type;return typeof y=="function"&&!Np(y)&&y.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=y,Z1(a,s,y,h,g)):(a=zd(u.type,null,h,s,s.mode,g),a.ref=s.ref,a.return=s,s.child=a)}if(y=a.child,!dp(a,g)){var C=y.memoizedProps;if(u=u.compare,u=u!==null?u:hu,u(C,h)&&a.ref===s.ref)return Ei(a,s,g)}return s.flags|=1,a=rs(y,h),a.ref=s.ref,a.return=s,s.child=a}function Z1(a,s,u,h,g){if(a!==null){var y=a.memoizedProps;if(hu(y,h)&&a.ref===s.ref)if(Yn=!1,s.pendingProps=h=y,dp(a,g))(a.flags&131072)!==0&&(Yn=!0);else return s.lanes=a.lanes,Ei(a,s,g)}return rp(a,s,u,h,g)}function J1(a,s,u){var h=s.pendingProps,g=h.children,y=(s.stateNode._pendingVisibility&2)!==0,C=a!==null?a.memoizedState:null;if(wu(a,s),h.mode==="hidden"||y){if((s.flags&128)!==0){if(h=C!==null?C.baseLanes|u:u,a!==null){for(g=s.child=a.child,y=0;g!==null;)y=y|g.lanes|g.childLanes,g=g.sibling;s.childLanes=y&~h}else s.childLanes=0,s.child=null;return e_(a,s,h,u)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&wd(s,C!==null?C.cachePool:null),C!==null?t1(s,C):Im(),n1(s);else return s.lanes=s.childLanes=536870912,e_(a,s,C!==null?C.baseLanes|u:u,u)}else C!==null?(wd(s,C.cachePool),t1(s,C),Vi(),s.memoizedState=null):(a!==null&&wd(s,null),Im(),Vi());return nr(a,s,g,u),s.child}function e_(a,s,u,h){var g=Bm();return g=g===null?null:{parent:Hn._currentValue,pool:g},s.memoizedState={baseLanes:u,cachePool:g},a!==null&&wd(s,null),Im(),n1(s),a!==null&&Cu(a,s,h,!0),null}function wu(a,s){var u=s.ref;if(u===null)a!==null&&a.ref!==null&&(s.flags|=2097664);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(s.flags|=2097664)}}function rp(a,s,u,h,g){return Js(s),u=Fm(a,s,u,h,void 0,g),h=Hm(),a!==null&&!Yn?(jm(a,s,g),Ei(a,s,g)):(Ft&&h&&Rm(s),s.flags|=1,nr(a,s,u,g),s.child)}function t_(a,s,u,h,g,y){return Js(s),s.updateQueue=null,u=o1(s,h,u,g),s1(a),h=Hm(),a!==null&&!Yn?(jm(a,s,y),Ei(a,s,y)):(Ft&&h&&Rm(s),s.flags|=1,nr(a,s,u,y),s.child)}function n_(a,s,u,h,g){if(Js(s),s.stateNode===null){var y=Ho,C=u.contextType;typeof C=="object"&&C!==null&&(y=ar(C)),y=new u(h,y),s.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=tp,s.stateNode=y,y._reactInternals=s,y=s.stateNode,y.props=h,y.state=s.memoizedState,y.refs={},pp(s),C=u.contextType,y.context=typeof C=="object"&&C!==null?ar(C):Ho,y.state=s.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(ep(s,u,C,h),y.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&tp.enqueueReplaceState(y,y.state,null),ku(s,h,y,g),Ou(),y.state=s.memoizedState),typeof y.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(a===null){y=s.stateNode;var D=s.memoizedProps,z=Qs(u,D);y.props=z;var ee=y.context,Ee=u.contextType;C=Ho,typeof Ee=="object"&&Ee!==null&&(C=ar(Ee));var Se=u.getDerivedStateFromProps;Ee=typeof Se=="function"||typeof y.getSnapshotBeforeUpdate=="function",D=s.pendingProps!==D,Ee||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(D||ee!==C)&&z1(s,y,h,C),Qi=!1;var ue=s.memoizedState;y.state=ue,ku(s,h,y,g),Ou(),ee=s.memoizedState,D||ue!==ee||Qi?(typeof Se=="function"&&(ep(s,u,Se,h),ee=s.memoizedState),(z=Qi||j1(s,u,z,h,ue,ee,C))?(Ee||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(s.flags|=4194308)):(typeof y.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=ee),y.props=h,y.state=ee,y.context=C,h=z):(typeof y.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{y=s.stateNode,gp(a,s),C=s.memoizedProps,Ee=Qs(u,C),y.props=Ee,Se=s.pendingProps,ue=y.context,ee=u.contextType,z=Ho,typeof ee=="object"&&ee!==null&&(z=ar(ee)),D=u.getDerivedStateFromProps,(ee=typeof D=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==Se||ue!==z)&&z1(s,y,h,z),Qi=!1,ue=s.memoizedState,y.state=ue,ku(s,h,y,g),Ou();var ge=s.memoizedState;C!==Se||ue!==ge||Qi||a!==null&&a.dependencies!==null&&Ud(a.dependencies)?(typeof D=="function"&&(ep(s,u,D,h),ge=s.memoizedState),(Ee=Qi||j1(s,u,Ee,h,ue,ge,z)||a!==null&&a.dependencies!==null&&Ud(a.dependencies))?(ee||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(h,ge,z),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(h,ge,z)),typeof y.componentDidUpdate=="function"&&(s.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===a.memoizedProps&&ue===a.memoizedState||(s.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&ue===a.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ge),y.props=h,y.state=ge,y.context=z,h=Ee):(typeof y.componentDidUpdate!="function"||C===a.memoizedProps&&ue===a.memoizedState||(s.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&ue===a.memoizedState||(s.flags|=1024),h=!1)}return y=h,wu(a,s),h=(s.flags&128)!==0,y||h?(y=s.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:y.render(),s.flags|=1,a!==null&&h?(s.child=Gs(s,a.child,null,g),s.child=Gs(s,null,u,g)):nr(a,s,u,g),s.memoizedState=y.state,a=s.child):a=Ei(a,s,g),a}function r_(a,s,u,h){return gu(),s.flags|=256,nr(a,s,u,h),s.child}var ap={dehydrated:null,treeContext:null,retryLane:0};function ip(a){return{baseLanes:a,cachePool:i1()}}function sp(a,s,u){return a=a!==null?a.childLanes&~u:0,s&&(a|=da),a}function a_(a,s,u){var h=s.pendingProps,g=!1,y=(s.flags&128)!==0,C;if((C=y)||(C=a!==null&&a.memoizedState===null?!1:(Fn.current&2)!==0),C&&(g=!0,s.flags&=-129),C=(s.flags&32)!==0,s.flags&=-33,a===null){if(Ft){if(g?Gi(s):Vi(),Ft){var D=tr,z;if(z=D){e:{for(z=D,D=ja;z.nodeType!==8;){if(!D){D=null;break e}if(z=Oa(z.nextSibling),z===null){D=null;break e}}D=z}D!==null?(s.memoizedState={dehydrated:D,treeContext:$s!==null?{id:mi,overflow:pi}:null,retryLane:536870912},z=ca(18,null,null,0),z.stateNode=D,z.return=s,s.child=z,mr=s,tr=null,z=!0):z=!1}z||Ys(s)}if(D=s.memoizedState,D!==null&&(D=D.dehydrated,D!==null))return D.data==="$!"?s.lanes=16:s.lanes=536870912,null;gi(s)}return D=h.children,h=h.fallback,g?(Vi(),g=s.mode,D=lp({mode:"hidden",children:D},g),h=to(h,g,u,null),D.return=s,h.return=s,D.sibling=h,s.child=D,g=s.child,g.memoizedState=ip(u),g.childLanes=sp(a,C,u),s.memoizedState=ap,h):(Gi(s),op(s,D))}if(z=a.memoizedState,z!==null&&(D=z.dehydrated,D!==null)){if(y)s.flags&256?(Gi(s),s.flags&=-257,s=up(a,s,u)):s.memoizedState!==null?(Vi(),s.child=a.child,s.flags|=128,s=null):(Vi(),g=h.fallback,D=s.mode,h=lp({mode:"visible",children:h.children},D),g=to(g,D,u,null),g.flags|=2,h.return=s,g.return=s,h.sibling=g,s.child=h,Gs(s,a.child,null,u),h=s.child,h.memoizedState=ip(u),h.childLanes=sp(a,C,u),s.memoizedState=ap,s=g);else if(Gi(s),D.data==="$!"){if(C=D.nextSibling&&D.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,bu({value:h,source:null,stack:null}),s=up(a,s,u)}else if(Yn||Cu(a,s,u,!1),C=(u&a.childLanes)!==0,Yn||C){if(C=tn,C!==null){if(h=u&-u,(h&42)!==0)h=1;else switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:h=64;break;case 268435456:h=134217728;break;default:h=0}if(h=(h&(C.suspendedLanes|u))!==0?0:h,h!==0&&h!==z.retryLane)throw z.retryLane=h,Yi(a,h),pr(C,a,h),X1}D.data==="$?"||Bp(),s=up(a,s,u)}else D.data==="$?"?(s.flags|=128,s.child=a.child,s=Hk.bind(null,a),D._reactRetry=s,s=null):(a=z.treeContext,tr=Oa(D.nextSibling),mr=s,Ft=!0,Ca=null,ja=!1,a!==null&&(ia[sa++]=mi,ia[sa++]=pi,ia[sa++]=$s,mi=a.id,pi=a.overflow,$s=s),s=op(s,h.children),s.flags|=4096);return s}return g?(Vi(),g=h.fallback,D=s.mode,z=a.child,ee=z.sibling,h=rs(z,{mode:"hidden",children:h.children}),h.subtreeFlags=z.subtreeFlags&31457280,ee!==null?g=rs(ee,g):(g=to(g,D,u,null),g.flags|=2),g.return=s,h.return=s,h.sibling=g,s.child=h,h=g,g=s.child,D=a.child.memoizedState,D===null?D=ip(u):(z=D.cachePool,z!==null?(ee=Hn._currentValue,z=z.parent!==ee?{parent:ee,pool:ee}:z):z=i1(),D={baseLanes:D.baseLanes|u,cachePool:z}),g.memoizedState=D,g.childLanes=sp(a,C,u),s.memoizedState=ap,h):(Gi(s),u=a.child,a=u.sibling,u=rs(u,{mode:"visible",children:h.children}),u.return=s,u.sibling=null,a!==null&&(C=s.deletions,C===null?(s.deletions=[a],s.flags|=16):C.push(a)),s.child=u,s.memoizedState=null,u)}function op(a,s){return s=lp({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function lp(a,s){return O_(a,s,0,null)}function up(a,s,u){return Gs(s,a.child,null,u),a=op(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function i_(a,s,u){a.lanes|=s;var h=a.alternate;h!==null&&(h.lanes|=s),hp(a.return,s,u)}function cp(a,s,u,h,g){var y=a.memoizedState;y===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g}:(y.isBackwards=s,y.rendering=null,y.renderingStartTime=0,y.last=h,y.tail=u,y.tailMode=g)}function s_(a,s,u){var h=s.pendingProps,g=h.revealOrder,y=h.tail;if(nr(a,s,h.children,u),h=Fn.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&i_(a,u,s);else if(a.tag===19)i_(a,u,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}h&=1}switch(Ue(Fn,h),g){case"forwards":for(u=s.child,g=null;u!==null;)a=u.alternate,a!==null&&Ad(a)===null&&(g=u),u=u.sibling;u=g,u===null?(g=s.child,s.child=null):(g=u.sibling,u.sibling=null),cp(s,!1,g,u,y);break;case"backwards":for(u=null,g=s.child,s.child=null;g!==null;){if(a=g.alternate,a!==null&&Ad(a)===null){s.child=g;break}a=g.sibling,g.sibling=u,u=g,g=a}cp(s,!0,u,null,y);break;case"together":cp(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ei(a,s,u){if(a!==null&&(s.dependencies=a.dependencies),as|=s.lanes,(u&s.childLanes)===0)if(a!==null){if(Cu(a,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(r(153));if(s.child!==null){for(a=s.child,u=rs(a,a.pendingProps),s.child=u,u.return=s;a.sibling!==null;)a=a.sibling,u=u.sibling=rs(a,a.pendingProps),u.return=s;u.sibling=null}return s.child}function dp(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&Ud(a)))}function Ak(a,s,u){switch(s.tag){case 3:dr(s,s.stateNode.containerInfo),Wi(s,Hn,a.memoizedState.cache),gu();break;case 27:case 5:zn(s);break;case 4:dr(s,s.stateNode.containerInfo);break;case 10:Wi(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Gi(s),s.flags|=128,null):(u&s.child.childLanes)!==0?a_(a,s,u):(Gi(s),a=Ei(a,s,u),a!==null?a.sibling:null);Gi(s);break;case 19:var g=(a.flags&128)!==0;if(h=(u&s.childLanes)!==0,h||(Cu(a,s,u,!1),h=(u&s.childLanes)!==0),g){if(h)return s_(a,s,u);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Ue(Fn,Fn.current),h)break;return null;case 22:case 23:return s.lanes=0,J1(a,s,u);case 24:Wi(s,Hn,a.memoizedState.cache)}return Ei(a,s,u)}function o_(a,s,u){if(a!==null)if(a.memoizedProps!==s.pendingProps)Yn=!0;else{if(!dp(a,u)&&(s.flags&128)===0)return Yn=!1,Ak(a,s,u);Yn=(a.flags&131072)!==0}else Yn=!1,Ft&&(s.flags&1048576)!==0&&Yy(s,Td,s.index);switch(s.lanes=0,s.tag){case 16:e:{a=s.pendingProps;var h=s.elementType,g=h._init;if(h=g(h._payload),s.type=h,typeof h=="function")Np(h)?(a=Qs(h,a),s.tag=1,s=n_(null,s,h,a,u)):(s.tag=0,s=rp(null,s,h,a,u));else{if(h!=null){if(g=h.$$typeof,g===v){s.tag=11,s=W1(null,s,h,a,u);break e}else if(g===x){s.tag=14,s=Q1(null,s,h,a,u);break e}}throw s=j(h)||h,Error(r(306,s,""))}}return s;case 0:return rp(a,s,s.type,s.pendingProps,u);case 1:return h=s.type,g=Qs(h,s.pendingProps),n_(a,s,h,g,u);case 3:e:{if(dr(s,s.stateNode.containerInfo),a===null)throw Error(r(387));var y=s.pendingProps;g=s.memoizedState,h=g.element,gp(a,s),ku(s,y,null,u);var C=s.memoizedState;if(y=C.cache,Wi(s,Hn,y),y!==g.cache&&mp(s,[Hn],u,!0),Ou(),y=C.element,g.isDehydrated)if(g={element:y,isDehydrated:!1,cache:C.cache},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){s=r_(a,s,y,u);break e}else if(y!==h){h=aa(Error(r(424)),s),bu(h),s=r_(a,s,y,u);break e}else for(tr=Oa(s.stateNode.containerInfo.firstChild),mr=s,Ft=!0,Ca=null,ja=!0,u=e1(s,null,y,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(gu(),y===h){s=Ei(a,s,u);break e}nr(a,s,y,u)}s=s.child}return s;case 26:return wu(a,s),a===null?(u=cT(s.type,null,s.pendingProps,null))?s.memoizedState=u:Ft||(u=s.type,a=s.pendingProps,h=ef(pn.current).createElement(u),h[He]=s,h[Me]=a,rr(h,u,a),Zt(h),s.stateNode=h):s.memoizedState=cT(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return zn(s),a===null&&Ft&&(h=s.stateNode=oT(s.type,s.pendingProps,pn.current),mr=s,ja=!0,tr=Oa(h.firstChild)),h=s.pendingProps.children,a!==null||Ft?nr(a,s,h,u):s.child=Gs(s,null,h,u),wu(a,s),s.child;case 5:return a===null&&Ft&&((g=h=tr)&&(h=n3(h,s.type,s.pendingProps,ja),h!==null?(s.stateNode=h,mr=s,tr=Oa(h.firstChild),ja=!1,g=!0):g=!1),g||Ys(s)),zn(s),g=s.type,y=s.pendingProps,C=a!==null?a.memoizedProps:null,h=y.children,Qp(g,y)?h=null:C!==null&&Qp(g,C)&&(s.flags|=32),s.memoizedState!==null&&(g=Fm(a,s,yk,null,null,u),Gu._currentValue=g),wu(a,s),nr(a,s,h,u),s.child;case 6:return a===null&&Ft&&((a=u=tr)&&(u=r3(u,s.pendingProps,ja),u!==null?(s.stateNode=u,mr=s,tr=null,a=!0):a=!1),a||Ys(s)),null;case 13:return a_(a,s,u);case 4:return dr(s,s.stateNode.containerInfo),h=s.pendingProps,a===null?s.child=Gs(s,null,h,u):nr(a,s,h,u),s.child;case 11:return W1(a,s,s.type,s.pendingProps,u);case 7:return nr(a,s,s.pendingProps,u),s.child;case 8:return nr(a,s,s.pendingProps.children,u),s.child;case 12:return nr(a,s,s.pendingProps.children,u),s.child;case 10:return h=s.pendingProps,Wi(s,s.type,h.value),nr(a,s,h.children,u),s.child;case 9:return g=s.type._context,h=s.pendingProps.children,Js(s),g=ar(g),h=h(g),s.flags|=1,nr(a,s,h,u),s.child;case 14:return Q1(a,s,s.type,s.pendingProps,u);case 15:return Z1(a,s,s.type,s.pendingProps,u);case 19:return s_(a,s,u);case 22:return J1(a,s,u);case 24:return Js(s),h=ar(Hn),a===null?(g=Bm(),g===null&&(g=tn,y=Mm(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=u),g=y),s.memoizedState={parent:h,cache:g},pp(s),Wi(s,Hn,g)):((a.lanes&u)!==0&&(gp(a,s),ku(s,null,null,u),Ou()),g=a.memoizedState,y=s.memoizedState,g.parent!==h?(g={parent:h,cache:h},s.memoizedState=g,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=g),Wi(s,Hn,h)):(h=y.cache,Wi(s,Hn,h),h!==g.cache&&mp(s,[Hn],u,!0))),nr(a,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var fp=je(null),Zs=null,yi=null;function Wi(a,s,u){Ue(fp,s._currentValue),s._currentValue=u}function _i(a){a._currentValue=fp.current,Ze(fp)}function hp(a,s,u){for(;a!==null;){var h=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),a===u)break;a=a.return}}function mp(a,s,u,h){var g=a.child;for(g!==null&&(g.return=a);g!==null;){var y=g.dependencies;if(y!==null){var C=g.child;y=y.firstContext;e:for(;y!==null;){var D=y;y=g;for(var z=0;z<s.length;z++)if(D.context===s[z]){y.lanes|=u,D=y.alternate,D!==null&&(D.lanes|=u),hp(y.return,u,a),h||(C=null);break e}y=D.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=u,y=C.alternate,y!==null&&(y.lanes|=u),hp(C,u,a),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===a){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function Cu(a,s,u,h){a=null;for(var g=s,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var D=g.type;Ur(g.pendingProps.value,C.value)||(a!==null?a.push(D):a=[D])}}else if(g===Tn.current){if(C=g.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(a!==null?a.push(Gu):a=[Gu])}g=g.return}a!==null&&mp(s,a,u,h),s.flags|=262144}function Ud(a){for(a=a.firstContext;a!==null;){if(!Ur(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Js(a){Zs=a,yi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function ar(a){return l_(Zs,a)}function Fd(a,s){return Zs===null&&Js(a),l_(a,s)}function l_(a,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},yi===null){if(a===null)throw Error(r(308));yi=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else yi=yi.next=s;return u}var Qi=!1;function pp(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gp(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Zi(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ji(a,s,u){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(hn&2)!==0){var g=h.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),h.pending=s,s=yd(a),$y(a,null,u),s}return Ed(a,h,s,u),yd(a)}function Ru(a,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194176)!==0)){var h=s.lanes;h&=a.pendingLanes,u|=h,s.lanes=u,Ie(a,u)}}function bp(a,s){var u=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var C={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};y===null?g=y=C:y=y.next=C,u=u.next}while(u!==null);y===null?g=y=s:y=y.next=s}else g=y=s;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:h.shared,callbacks:h.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=s:a.next=s,u.lastBaseUpdate=s}var Ep=!1;function Ou(){if(Ep){var a=Go;if(a!==null)throw a}}function ku(a,s,u,h){Ep=!1;var g=a.updateQueue;Qi=!1;var y=g.firstBaseUpdate,C=g.lastBaseUpdate,D=g.shared.pending;if(D!==null){g.shared.pending=null;var z=D,ee=z.next;z.next=null,C===null?y=ee:C.next=ee,C=z;var Ee=a.alternate;Ee!==null&&(Ee=Ee.updateQueue,D=Ee.lastBaseUpdate,D!==C&&(D===null?Ee.firstBaseUpdate=ee:D.next=ee,Ee.lastBaseUpdate=z))}if(y!==null){var Se=g.baseState;C=0,Ee=ee=z=null,D=y;do{var ue=D.lane&-536870913,ge=ue!==D.lane;if(ge?(Dt&ue)===ue:(h&ue)===ue){ue!==0&&ue===Yo&&(Ep=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Qe=a,ct=D;ue=s;var En=u;switch(ct.tag){case 1:if(Qe=ct.payload,typeof Qe=="function"){Se=Qe.call(En,Se,ue);break e}Se=Qe;break e;case 3:Qe.flags=Qe.flags&-65537|128;case 0:if(Qe=ct.payload,ue=typeof Qe=="function"?Qe.call(En,Se,ue):Qe,ue==null)break e;Se=M({},Se,ue);break e;case 2:Qi=!0}}ue=D.callback,ue!==null&&(a.flags|=64,ge&&(a.flags|=8192),ge=g.callbacks,ge===null?g.callbacks=[ue]:ge.push(ue))}else ge={lane:ue,tag:D.tag,payload:D.payload,callback:D.callback,next:null},Ee===null?(ee=Ee=ge,z=Se):Ee=Ee.next=ge,C|=ue;if(D=D.next,D===null){if(D=g.shared.pending,D===null)break;ge=D,D=ge.next,ge.next=null,g.lastBaseUpdate=ge,g.shared.pending=null}}while(!0);Ee===null&&(z=Se),g.baseState=z,g.firstBaseUpdate=ee,g.lastBaseUpdate=Ee,y===null&&(g.shared.lanes=0),as|=C,a.lanes=C,a.memoizedState=Se}}function u_(a,s){if(typeof a!="function")throw Error(r(191,a));a.call(s)}function c_(a,s){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)u_(u[a],s)}function Lu(a,s){try{var u=s.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&a)===a){h=void 0;var y=u.create,C=u.inst;h=y(),C.destroy=h}u=u.next}while(u!==g)}}catch(D){Wt(s,s.return,D)}}function es(a,s,u){try{var h=s.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var y=g.next;h=y;do{if((h.tag&a)===a){var C=h.inst,D=C.destroy;if(D!==void 0){C.destroy=void 0,g=s;var z=u;try{D()}catch(ee){Wt(g,z,ee)}}}h=h.next}while(h!==y)}}catch(ee){Wt(s,s.return,ee)}}function d_(a){var s=a.updateQueue;if(s!==null){var u=a.stateNode;try{c_(s,u)}catch(h){Wt(a,a.return,h)}}}function f_(a,s,u){u.props=Qs(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){Wt(a,s,h)}}function eo(a,s){try{var u=a.ref;if(u!==null){var h=a.stateNode;switch(a.tag){case 26:case 27:case 5:var g=h;break;default:g=h}typeof u=="function"?a.refCleanup=u(g):u.current=g}}catch(y){Wt(a,s,y)}}function Fr(a,s){var u=a.ref,h=a.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){Wt(a,s,g)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){Wt(a,s,g)}else u.current=null}function h_(a){var s=a.type,u=a.memoizedProps,h=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){Wt(a,a.return,g)}}function m_(a,s,u){try{var h=a.stateNode;Qk(h,a.type,u,s),h[Me]=s}catch(g){Wt(a,a.return,g)}}function p_(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27||a.tag===4}function yp(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||p_(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==27&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function _p(a,s,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?u.nodeType===8?u.parentNode.insertBefore(a,s):u.insertBefore(a,s):(u.nodeType===8?(s=u.parentNode,s.insertBefore(a,u)):(s=u,s.appendChild(a)),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=Jd));else if(h!==4&&h!==27&&(a=a.child,a!==null))for(_p(a,s,u),a=a.sibling;a!==null;)_p(a,s,u),a=a.sibling}function Hd(a,s,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,s?u.insertBefore(a,s):u.appendChild(a);else if(h!==4&&h!==27&&(a=a.child,a!==null))for(Hd(a,s,u),a=a.sibling;a!==null;)Hd(a,s,u),a=a.sibling}var Ti=!1,gn=!1,Tp=!1,g_=typeof WeakSet=="function"?WeakSet:Set,Gn=null,b_=!1;function wk(a,s){if(a=a.containerInfo,Xp=of,a=Dy(a),vm(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,y=h.focusNode;h=h.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var C=0,D=-1,z=-1,ee=0,Ee=0,Se=a,ue=null;t:for(;;){for(var ge;Se!==u||g!==0&&Se.nodeType!==3||(D=C+g),Se!==y||h!==0&&Se.nodeType!==3||(z=C+h),Se.nodeType===3&&(C+=Se.nodeValue.length),(ge=Se.firstChild)!==null;)ue=Se,Se=ge;for(;;){if(Se===a)break t;if(ue===u&&++ee===g&&(D=C),ue===y&&++Ee===h&&(z=C),(ge=Se.nextSibling)!==null)break;Se=ue,ue=Se.parentNode}Se=ge}u=D===-1||z===-1?null:{start:D,end:z}}else u=null}u=u||{start:0,end:0}}else u=null;for(Wp={focusedElem:a,selectionRange:u},of=!1,Gn=s;Gn!==null;)if(s=Gn,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,Gn=a;else for(;Gn!==null;){switch(s=Gn,y=s.alternate,a=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&y!==null){a=void 0,u=s,g=y.memoizedProps,y=y.memoizedState,h=u.stateNode;try{var Qe=Qs(u.type,g,u.elementType===u.type);a=h.getSnapshotBeforeUpdate(Qe,y),h.__reactInternalSnapshotBeforeUpdate=a}catch(ct){Wt(u,u.return,ct)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,u=a.nodeType,u===9)eg(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":eg(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=s.sibling,a!==null){a.return=s.return,Gn=a;break}Gn=s.return}return Qe=b_,b_=!1,Qe}function E_(a,s,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:vi(a,u),h&4&&Lu(5,u);break;case 1:if(vi(a,u),h&4)if(a=u.stateNode,s===null)try{a.componentDidMount()}catch(D){Wt(u,u.return,D)}else{var g=Qs(u.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(g,s,a.__reactInternalSnapshotBeforeUpdate)}catch(D){Wt(u,u.return,D)}}h&64&&d_(u),h&512&&eo(u,u.return);break;case 3:if(vi(a,u),h&64&&(h=u.updateQueue,h!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{c_(h,a)}catch(D){Wt(u,u.return,D)}}break;case 26:vi(a,u),h&512&&eo(u,u.return);break;case 27:case 5:vi(a,u),s===null&&h&4&&h_(u),h&512&&eo(u,u.return);break;case 12:vi(a,u);break;case 13:vi(a,u),h&4&&T_(a,u);break;case 22:if(g=u.memoizedState!==null||Ti,!g){s=s!==null&&s.memoizedState!==null||gn;var y=Ti,C=gn;Ti=g,(gn=s)&&!C?ts(a,u,(u.subtreeFlags&8772)!==0):vi(a,u),Ti=y,gn=C}h&512&&(u.memoizedProps.mode==="manual"?eo(u,u.return):Fr(u,u.return));break;default:vi(a,u)}}function y_(a){var s=a.alternate;s!==null&&(a.alternate=null,y_(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&Dr(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var kn=null,Hr=!1;function xi(a,s,u){for(u=u.child;u!==null;)__(a,s,u),u=u.sibling}function __(a,s,u){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(Nn,u)}catch{}switch(u.tag){case 26:gn||Fr(u,s),xi(a,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:gn||Fr(u,s);var h=kn,g=Hr;for(kn=u.stateNode,xi(a,s,u),u=u.stateNode,s=u.attributes;s.length;)u.removeAttributeNode(s[0]);Dr(u),kn=h,Hr=g;break;case 5:gn||Fr(u,s);case 6:g=kn;var y=Hr;if(kn=null,xi(a,s,u),kn=g,Hr=y,kn!==null)if(Hr)try{a=kn,h=u.stateNode,a.nodeType===8?a.parentNode.removeChild(h):a.removeChild(h)}catch(C){Wt(u,s,C)}else try{kn.removeChild(u.stateNode)}catch(C){Wt(u,s,C)}break;case 18:kn!==null&&(Hr?(s=kn,u=u.stateNode,s.nodeType===8?Jp(s.parentNode,u):s.nodeType===1&&Jp(s,u),Wu(s)):Jp(kn,u.stateNode));break;case 4:h=kn,g=Hr,kn=u.stateNode.containerInfo,Hr=!0,xi(a,s,u),kn=h,Hr=g;break;case 0:case 11:case 14:case 15:gn||es(2,u,s),gn||es(4,u,s),xi(a,s,u);break;case 1:gn||(Fr(u,s),h=u.stateNode,typeof h.componentWillUnmount=="function"&&f_(u,s,h)),xi(a,s,u);break;case 21:xi(a,s,u);break;case 22:gn||Fr(u,s),gn=(h=gn)||u.memoizedState!==null,xi(a,s,u),gn=h;break;default:xi(a,s,u)}}function T_(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Wu(a)}catch(u){Wt(s,s.return,u)}}function Ck(a){switch(a.tag){case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new g_),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new g_),s;default:throw Error(r(435,a.tag))}}function xp(a,s){var u=Ck(a);s.forEach(function(h){var g=jk.bind(null,a,h);u.has(h)||(u.add(h),h.then(g,g))})}function la(a,s){var u=s.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],y=a,C=s,D=C;e:for(;D!==null;){switch(D.tag){case 27:case 5:kn=D.stateNode,Hr=!1;break e;case 3:kn=D.stateNode.containerInfo,Hr=!0;break e;case 4:kn=D.stateNode.containerInfo,Hr=!0;break e}D=D.return}if(kn===null)throw Error(r(160));__(y,C,g),kn=null,Hr=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)x_(s,a),s=s.sibling}var Ra=null;function x_(a,s){var u=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:la(s,a),ua(a),h&4&&(es(3,a,a.return),Lu(3,a),es(5,a,a.return));break;case 1:la(s,a),ua(a),h&512&&(gn||u===null||Fr(u,u.return)),h&64&&Ti&&(a=a.updateQueue,a!==null&&(h=a.callbacks,h!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=Ra;if(la(s,a),ua(a),h&512&&(gn||u===null||Fr(u,u.return)),h&4){var y=u!==null?u.memoizedState:null;if(h=a.memoizedState,u===null)if(h===null)if(a.stateNode===null){e:{h=a.type,u=a.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":y=g.getElementsByTagName("title")[0],(!y||y[Bt]||y[He]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(h),g.head.insertBefore(y,g.querySelector("head > title"))),rr(y,h,u),y[He]=a,Zt(y),h=y;break e;case"link":var C=hT("link","href",g).get(h+(u.href||""));if(C){for(var D=0;D<C.length;D++)if(y=C[D],y.getAttribute("href")===(u.href==null?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){C.splice(D,1);break t}}y=g.createElement(h),rr(y,h,u),g.head.appendChild(y);break;case"meta":if(C=hT("meta","content",g).get(h+(u.content||""))){for(D=0;D<C.length;D++)if(y=C[D],y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){C.splice(D,1);break t}}y=g.createElement(h),rr(y,h,u),g.head.appendChild(y);break;default:throw Error(r(468,h))}y[He]=a,Zt(y),h=y}a.stateNode=h}else mT(g,a.type,a.stateNode);else a.stateNode=fT(g,h,a.memoizedProps);else y!==h?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,h===null?mT(g,a.type,a.stateNode):fT(g,h,a.memoizedProps)):h===null&&a.stateNode!==null&&m_(a,a.memoizedProps,u.memoizedProps)}break;case 27:if(h&4&&a.alternate===null){g=a.stateNode,y=a.memoizedProps;try{for(var z=g.firstChild;z;){var ee=z.nextSibling,Ee=z.nodeName;z[Bt]||Ee==="HEAD"||Ee==="BODY"||Ee==="SCRIPT"||Ee==="STYLE"||Ee==="LINK"&&z.rel.toLowerCase()==="stylesheet"||g.removeChild(z),z=ee}for(var Se=a.type,ue=g.attributes;ue.length;)g.removeAttributeNode(ue[0]);rr(g,Se,y),g[He]=a,g[Me]=y}catch(Qe){Wt(a,a.return,Qe)}}case 5:if(la(s,a),ua(a),h&512&&(gn||u===null||Fr(u,u.return)),a.flags&32){g=a.stateNode;try{at(g,"")}catch(Qe){Wt(a,a.return,Qe)}}h&4&&a.stateNode!=null&&(g=a.memoizedProps,m_(a,g,u!==null?u.memoizedProps:g)),h&1024&&(Tp=!0);break;case 6:if(la(s,a),ua(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,u=a.stateNode;try{u.nodeValue=h}catch(Qe){Wt(a,a.return,Qe)}}break;case 3:if(rf=null,g=Ra,Ra=tf(s.containerInfo),la(s,a),Ra=g,ua(a),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Wu(s.containerInfo)}catch(Qe){Wt(a,a.return,Qe)}Tp&&(Tp=!1,v_(a));break;case 4:h=Ra,Ra=tf(a.stateNode.containerInfo),la(s,a),ua(a),Ra=h;break;case 12:la(s,a),ua(a);break;case 13:la(s,a),ua(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(kp=dn()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,xp(a,h)));break;case 22:if(h&512&&(gn||u===null||Fr(u,u.return)),z=a.memoizedState!==null,ee=u!==null&&u.memoizedState!==null,Ee=Ti,Se=gn,Ti=Ee||z,gn=Se||ee,la(s,a),gn=Se,Ti=Ee,ua(a),s=a.stateNode,s._current=a,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,h&8192&&(s._visibility=z?s._visibility&-2:s._visibility|1,z&&(s=Ti||gn,u===null||ee||s||Wo(a)),a.memoizedProps===null||a.memoizedProps.mode!=="manual"))e:for(u=null,s=a;;){if(s.tag===5||s.tag===26||s.tag===27){if(u===null){ee=u=s;try{if(g=ee.stateNode,z)y=g.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{C=ee.stateNode,D=ee.memoizedProps.style;var ge=D!=null&&D.hasOwnProperty("display")?D.display:null;C.style.display=ge==null||typeof ge=="boolean"?"":(""+ge).trim()}}catch(Qe){Wt(ee,ee.return,Qe)}}}else if(s.tag===6){if(u===null){ee=s;try{ee.stateNode.nodeValue=z?"":ee.memoizedProps}catch(Qe){Wt(ee,ee.return,Qe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=a.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,xp(a,u))));break;case 19:la(s,a),ua(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,xp(a,h)));break;case 21:break;default:la(s,a),ua(a)}}function ua(a){var s=a.flags;if(s&2){try{if(a.tag!==27){e:{for(var u=a.return;u!==null;){if(p_(u)){var h=u;break e}u=u.return}throw Error(r(160))}switch(h.tag){case 27:var g=h.stateNode,y=yp(a);Hd(a,y,g);break;case 5:var C=h.stateNode;h.flags&32&&(at(C,""),h.flags&=-33);var D=yp(a);Hd(a,D,C);break;case 3:case 4:var z=h.stateNode.containerInfo,ee=yp(a);_p(a,ee,z);break;default:throw Error(r(161))}}}catch(Ee){Wt(a,a.return,Ee)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function v_(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;v_(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function vi(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)E_(a,s.alternate,s),s=s.sibling}function Wo(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:es(4,s,s.return),Wo(s);break;case 1:Fr(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&f_(s,s.return,u),Wo(s);break;case 26:case 27:case 5:Fr(s,s.return),Wo(s);break;case 22:Fr(s,s.return),s.memoizedState===null&&Wo(s);break;default:Wo(s)}a=a.sibling}}function ts(a,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,g=a,y=s,C=y.flags;switch(y.tag){case 0:case 11:case 15:ts(g,y,u),Lu(4,y);break;case 1:if(ts(g,y,u),h=y,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){Wt(h,h.return,ee)}if(h=y,g=h.updateQueue,g!==null){var D=h.stateNode;try{var z=g.shared.hiddenCallbacks;if(z!==null)for(g.shared.hiddenCallbacks=null,g=0;g<z.length;g++)u_(z[g],D)}catch(ee){Wt(h,h.return,ee)}}u&&C&64&&d_(y),eo(y,y.return);break;case 26:case 27:case 5:ts(g,y,u),u&&h===null&&C&4&&h_(y),eo(y,y.return);break;case 12:ts(g,y,u);break;case 13:ts(g,y,u),u&&C&4&&T_(g,y);break;case 22:y.memoizedState===null&&ts(g,y,u),eo(y,y.return);break;default:ts(g,y,u)}s=s.sibling}}function vp(a,s){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&xu(u))}function Sp(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&xu(a))}function ns(a,s,u,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)S_(a,s,u,h),s=s.sibling}function S_(a,s,u,h){var g=s.flags;switch(s.tag){case 0:case 11:case 15:ns(a,s,u,h),g&2048&&Lu(9,s);break;case 3:ns(a,s,u,h),g&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&xu(a)));break;case 12:if(g&2048){ns(a,s,u,h),a=s.stateNode;try{var y=s.memoizedProps,C=y.id,D=y.onPostCommit;typeof D=="function"&&D(C,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(z){Wt(s,s.return,z)}}else ns(a,s,u,h);break;case 23:break;case 22:y=s.stateNode,s.memoizedState!==null?y._visibility&4?ns(a,s,u,h):Iu(a,s):y._visibility&4?ns(a,s,u,h):(y._visibility|=4,Qo(a,s,u,h,(s.subtreeFlags&10256)!==0)),g&2048&&vp(s.alternate,s);break;case 24:ns(a,s,u,h),g&2048&&Sp(s.alternate,s);break;default:ns(a,s,u,h)}}function Qo(a,s,u,h,g){for(g=g&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var y=a,C=s,D=u,z=h,ee=C.flags;switch(C.tag){case 0:case 11:case 15:Qo(y,C,D,z,g),Lu(8,C);break;case 23:break;case 22:var Ee=C.stateNode;C.memoizedState!==null?Ee._visibility&4?Qo(y,C,D,z,g):Iu(y,C):(Ee._visibility|=4,Qo(y,C,D,z,g)),g&&ee&2048&&vp(C.alternate,C);break;case 24:Qo(y,C,D,z,g),g&&ee&2048&&Sp(C.alternate,C);break;default:Qo(y,C,D,z,g)}s=s.sibling}}function Iu(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=a,h=s,g=h.flags;switch(h.tag){case 22:Iu(u,h),g&2048&&vp(h.alternate,h);break;case 24:Iu(u,h),g&2048&&Sp(h.alternate,h);break;default:Iu(u,h)}s=s.sibling}}var Du=8192;function Zo(a){if(a.subtreeFlags&Du)for(a=a.child;a!==null;)N_(a),a=a.sibling}function N_(a){switch(a.tag){case 26:Zo(a),a.flags&Du&&a.memoizedState!==null&&g3(Ra,a.memoizedState,a.memoizedProps);break;case 5:Zo(a);break;case 3:case 4:var s=Ra;Ra=tf(a.stateNode.containerInfo),Zo(a),Ra=s;break;case 22:a.memoizedState===null&&(s=a.alternate,s!==null&&s.memoizedState!==null?(s=Du,Du=16777216,Zo(a),Du=s):Zo(a));break;default:Zo(a)}}function A_(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function Mu(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];Gn=h,C_(h,a)}A_(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)w_(a),a=a.sibling}function w_(a){switch(a.tag){case 0:case 11:case 15:Mu(a),a.flags&2048&&es(9,a,a.return);break;case 3:Mu(a);break;case 12:Mu(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&4&&(a.return===null||a.return.tag!==13)?(s._visibility&=-5,jd(a)):Mu(a);break;default:Mu(a)}}function jd(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var h=s[u];Gn=h,C_(h,a)}A_(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:es(8,s,s.return),jd(s);break;case 22:u=s.stateNode,u._visibility&4&&(u._visibility&=-5,jd(s));break;default:jd(s)}a=a.sibling}}function C_(a,s){for(;Gn!==null;){var u=Gn;switch(u.tag){case 0:case 11:case 15:es(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:xu(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Gn=h;else e:for(u=a;Gn!==null;){h=Gn;var g=h.sibling,y=h.return;if(y_(h),h===u){Gn=null;break e}if(g!==null){g.return=y,Gn=g;break e}Gn=y}}}function Rk(a,s,u,h){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ca(a,s,u,h){return new Rk(a,s,u,h)}function Np(a){return a=a.prototype,!(!a||!a.isReactComponent)}function rs(a,s){var u=a.alternate;return u===null?(u=ca(a.tag,s,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=s,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&31457280,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,s=a.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function R_(a,s){a.flags&=31457282;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,s=u.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function zd(a,s,u,h,g,y){var C=0;if(h=a,typeof a=="function")Np(a)&&(C=1);else if(typeof a=="string")C=m3(a,u,Pt.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case d:return to(u.children,g,y,s);case f:C=8,g|=24;break;case m:return a=ca(12,u,s,g|2),a.elementType=m,a.lanes=y,a;case S:return a=ca(13,u,s,g),a.elementType=S,a.lanes=y,a;case A:return a=ca(19,u,s,g),a.elementType=A,a.lanes=y,a;case L:return O_(u,g,y,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case p:case _:C=10;break e;case E:C=9;break e;case v:C=11;break e;case x:C=14;break e;case O:C=16,h=null;break e}C=29,u=Error(r(130,a===null?"null":typeof a,"")),h=null}return s=ca(C,u,s,g),s.elementType=a,s.type=h,s.lanes=y,s}function to(a,s,u,h){return a=ca(7,a,h,s),a.lanes=u,a}function O_(a,s,u,h){a=ca(22,a,h,s),a.elementType=L,a.lanes=u;var g={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var y=g._current;if(y===null)throw Error(r(456));if((g._pendingVisibility&2)===0){var C=Yi(y,2);C!==null&&(g._pendingVisibility|=2,pr(C,y,2))}},attach:function(){var y=g._current;if(y===null)throw Error(r(456));if((g._pendingVisibility&2)!==0){var C=Yi(y,2);C!==null&&(g._pendingVisibility&=-3,pr(C,y,2))}}};return a.stateNode=g,a}function Ap(a,s,u){return a=ca(6,a,null,s),a.lanes=u,a}function wp(a,s,u){return s=ca(4,a.children!==null?a.children:[],a.key,s),s.lanes=u,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function Si(a){a.flags|=4}function k_(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!pT(s)){if(s=oa.current,s!==null&&((Dt&4194176)===Dt?za!==null:(Dt&62914560)!==Dt&&(Dt&536870912)===0||s!==za))throw yu=Lm,Ky;a.flags|=8192}}function $d(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?$():536870912,a.lanes|=s,el|=s)}function Pu(a,s){if(!Ft)switch(a.tailMode){case"hidden":s=a.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function fn(a){var s=a.alternate!==null&&a.alternate.child===a.child,u=0,h=0;if(s)for(var g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&31457280,h|=g.flags&31457280,g.return=a,g=g.sibling;else for(g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=a,g=g.sibling;return a.subtreeFlags|=h,a.childLanes=u,s}function Ok(a,s,u){var h=s.pendingProps;switch(Om(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fn(s),null;case 1:return fn(s),null;case 3:return u=s.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),_i(Hn),mt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(pu(s)?Si(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Ca!==null&&(Mp(Ca),Ca=null))),fn(s),null;case 26:return u=s.memoizedState,a===null?(Si(s),u!==null?(fn(s),k_(s,u)):(fn(s),s.flags&=-16777217)):u?u!==a.memoizedState?(Si(s),fn(s),k_(s,u)):(fn(s),s.flags&=-16777217):(a.memoizedProps!==h&&Si(s),fn(s),s.flags&=-16777217),null;case 27:$n(s),u=pn.current;var g=s.type;if(a!==null&&s.stateNode!=null)a.memoizedProps!==h&&Si(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return fn(s),null}a=Pt.current,pu(s)?Gy(s):(a=oT(g,h,u),s.stateNode=a,Si(s))}return fn(s),null;case 5:if($n(s),u=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==h&&Si(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return fn(s),null}if(a=Pt.current,pu(s))Gy(s);else{switch(g=ef(pn.current),a){case 1:a=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:a=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":a=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":a=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":a=g.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?a.multiple=!0:h.size&&(a.size=h.size);break;default:a=typeof h.is=="string"?g.createElement(u,{is:h.is}):g.createElement(u)}}a[He]=s,a[Me]=h;e:for(g=s.child;g!==null;){if(g.tag===5||g.tag===6)a.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===s)break e;for(;g.sibling===null;){if(g.return===null||g.return===s)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}s.stateNode=a;e:switch(rr(a,u,h),u){case"button":case"input":case"select":case"textarea":a=!!h.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Si(s)}}return fn(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==h&&Si(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(a=pn.current,pu(s)){if(a=s.stateNode,u=s.memoizedProps,h=null,g=mr,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}a[He]=s,a=!!(a.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||tT(a.nodeValue,u)),a||Ys(s)}else a=ef(a).createTextNode(h),a[He]=s,s.stateNode=a}return fn(s),null;case 13:if(h=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(g=pu(s),h!==null&&h.dehydrated!==null){if(a===null){if(!g)throw Error(r(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[He]=s}else gu(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;fn(s),g=!1}else Ca!==null&&(Mp(Ca),Ca=null),g=!0;if(!g)return s.flags&256?(gi(s),s):(gi(s),null)}if(gi(s),(s.flags&128)!==0)return s.lanes=u,s;if(u=h!==null,a=a!==null&&a.memoizedState!==null,u){h=s.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var y=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(y=h.memoizedState.cachePool.pool),y!==g&&(h.flags|=2048)}return u!==a&&u&&(s.child.flags|=8192),$d(s,s.updateQueue),fn(s),null;case 4:return mt(),a===null&&Gp(s.stateNode.containerInfo),fn(s),null;case 10:return _i(s.type),fn(s),null;case 19:if(Ze(Fn),g=s.memoizedState,g===null)return fn(s),null;if(h=(s.flags&128)!==0,y=g.rendering,y===null)if(h)Pu(g,!1);else{if(bn!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(y=Ad(a),y!==null){for(s.flags|=128,Pu(g,!1),a=y.updateQueue,s.updateQueue=a,$d(s,a),s.subtreeFlags=0,a=u,u=s.child;u!==null;)R_(u,a),u=u.sibling;return Ue(Fn,Fn.current&1|2),s.child}a=a.sibling}g.tail!==null&&dn()>qd&&(s.flags|=128,h=!0,Pu(g,!1),s.lanes=4194304)}else{if(!h)if(a=Ad(y),a!==null){if(s.flags|=128,h=!0,a=a.updateQueue,s.updateQueue=a,$d(s,a),Pu(g,!0),g.tail===null&&g.tailMode==="hidden"&&!y.alternate&&!Ft)return fn(s),null}else 2*dn()-g.renderingStartTime>qd&&u!==536870912&&(s.flags|=128,h=!0,Pu(g,!1),s.lanes=4194304);g.isBackwards?(y.sibling=s.child,s.child=y):(a=g.last,a!==null?a.sibling=y:s.child=y,g.last=y)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=dn(),s.sibling=null,a=Fn.current,Ue(Fn,h?a&1|2:a&1),s):(fn(s),null);case 22:case 23:return gi(s),Dm(),h=s.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(u&536870912)!==0&&(s.flags&128)===0&&(fn(s),s.subtreeFlags&6&&(s.flags|=8192)):fn(s),u=s.updateQueue,u!==null&&$d(s,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==u&&(s.flags|=2048),a!==null&&Ze(Vs),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),_i(Hn),fn(s),null;case 25:return null}throw Error(r(156,s.tag))}function kk(a,s){switch(Om(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return _i(Hn),mt(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return $n(s),null;case 13:if(gi(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));gu()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ze(Fn),null;case 4:return mt(),null;case 10:return _i(s.type),null;case 22:case 23:return gi(s),Dm(),a!==null&&Ze(Vs),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return _i(Hn),null;case 25:return null;default:return null}}function L_(a,s){switch(Om(s),s.tag){case 3:_i(Hn),mt();break;case 26:case 27:case 5:$n(s);break;case 4:mt();break;case 13:gi(s);break;case 19:Ze(Fn);break;case 10:_i(s.type);break;case 22:case 23:gi(s),Dm(),a!==null&&Ze(Vs);break;case 24:_i(Hn)}}var Lk={getCacheForType:function(a){var s=ar(Hn),u=s.data.get(a);return u===void 0&&(u=a(),s.data.set(a,u)),u}},Ik=typeof WeakMap=="function"?WeakMap:Map,hn=0,tn=null,At=null,Dt=0,nn=0,jr=null,Ni=!1,Jo=!1,Cp=!1,Ai=0,bn=0,as=0,no=0,Rp=0,da=0,el=0,Bu=null,qa=null,Op=!1,kp=0,qd=1/0,Yd=null,is=null,Gd=!1,ro=null,Uu=0,Lp=0,Ip=null,Fu=0,Dp=null;function zr(){if((hn&2)!==0&&Dt!==0)return Dt&-Dt;if(F.T!==null){var a=Yo;return a!==0?a:zp()}return Fe()}function I_(){da===0&&(da=(Dt&536870912)===0||Ft?st():536870912);var a=oa.current;return a!==null&&(a.flags|=32),da}function pr(a,s,u){(a===tn&&nn===2||a.cancelPendingCommit!==null)&&(tl(a,0),wi(a,Dt,da,!1)),G(a,u),((hn&2)===0||a!==tn)&&(a===tn&&((hn&2)===0&&(no|=u),bn===4&&wi(a,Dt,da,!1)),Ya(a))}function D_(a,s,u){if((hn&6)!==0)throw Error(r(327));var h=!u&&(s&60)===0&&(s&a.expiredLanes)===0||pe(a,s),g=h?Pk(a,s):Up(a,s,!0),y=h;do{if(g===0){Jo&&!h&&wi(a,s,0,!1);break}else if(g===6)wi(a,s,0,!Ni);else{if(u=a.current.alternate,y&&!Dk(u)){g=Up(a,s,!1),y=!1;continue}if(g===2){if(y=s,a.errorRecoveryDisabledLanes&y)var C=0;else C=a.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){s=C;e:{var D=a;g=Bu;var z=D.current.memoizedState.isDehydrated;if(z&&(tl(D,C).flags|=256),C=Up(D,C,!1),C!==2){if(Cp&&!z){D.errorRecoveryDisabledLanes|=y,no|=y,g=4;break e}y=qa,qa=g,y!==null&&Mp(y)}g=C}if(y=!1,g!==2)continue}}if(g===1){tl(a,0),wi(a,s,0,!0);break}e:{switch(h=a,g){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){wi(h,s,da,!Ni);break e}break;case 2:qa=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=u,h.finishedLanes=s,(s&62914560)===s&&(y=kp+300-dn(),10<y)){if(wi(h,s,da,!Ni),Y(h,0)!==0)break e;h.timeoutHandle=aT(M_.bind(null,h,u,qa,Yd,Op,s,da,no,el,Ni,2,-0,0),y);break e}M_(h,u,qa,Yd,Op,s,da,no,el,Ni,0,-0,0)}}break}while(!0);Ya(a)}function Mp(a){qa===null?qa=a:qa.push.apply(qa,a)}function M_(a,s,u,h,g,y,C,D,z,ee,Ee,Se,ue){var ge=s.subtreeFlags;if((ge&8192||(ge&16785408)===16785408)&&(Yu={stylesheets:null,count:0,unsuspend:p3},N_(s),s=b3(),s!==null)){a.cancelPendingCommit=s(z_.bind(null,a,u,h,g,C,D,z,1,Se,ue)),wi(a,y,C,!ee);return}z_(a,u,h,g,C,D,z,Ee,Se,ue)}function Dk(a){for(var s=a;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],y=g.getSnapshot;g=g.value;try{if(!Ur(y(),g))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function wi(a,s,u,h){s&=~Rp,s&=~no,a.suspendedLanes|=s,a.pingedLanes&=~s,h&&(a.warmLanes|=s),h=a.expirationTimes;for(var g=s;0<g;){var y=31-Xt(g),C=1<<y;h[y]=-1,g&=~C}u!==0&&me(a,u,s)}function Vd(){return(hn&6)===0?(Hu(0),!1):!0}function Pp(){if(At!==null){if(nn===0)var a=At.return;else a=At,yi=Zs=null,zm(a),$o=null,_u=0,a=At;for(;a!==null;)L_(a.alternate,a),a=a.return;At=null}}function tl(a,s){a.finishedWork=null,a.finishedLanes=0;var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,Jk(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Pp(),tn=a,At=u=rs(a.current,null),Dt=s,nn=0,jr=null,Ni=!1,Jo=pe(a,s),Cp=!1,el=da=Rp=no=as=bn=0,qa=Bu=null,Op=!1,(s&8)!==0&&(s|=s&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=s;0<h;){var g=31-Xt(h),y=1<<g;s|=a[g],h&=~y}return Ai=s,bd(),u}function P_(a,s){yt=null,F.H=$a,s===Eu?(s=Qy(),nn=3):s===Ky?(s=Qy(),nn=4):nn=s===X1?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,jr=s,At===null&&(bn=1,Bd(a,aa(s,a.current)))}function B_(){var a=F.H;return F.H=$a,a===null?$a:a}function U_(){var a=F.A;return F.A=Lk,a}function Bp(){bn=4,Ni||(Dt&4194176)!==Dt&&oa.current!==null||(Jo=!0),(as&134217727)===0&&(no&134217727)===0||tn===null||wi(tn,Dt,da,!1)}function Up(a,s,u){var h=hn;hn|=2;var g=B_(),y=U_();(tn!==a||Dt!==s)&&(Yd=null,tl(a,s)),s=!1;var C=bn;e:do try{if(nn!==0&&At!==null){var D=At,z=jr;switch(nn){case 8:Pp(),C=6;break e;case 3:case 2:case 6:oa.current===null&&(s=!0);var ee=nn;if(nn=0,jr=null,nl(a,D,z,ee),u&&Jo){C=0;break e}break;default:ee=nn,nn=0,jr=null,nl(a,D,z,ee)}}Mk(),C=bn;break}catch(Ee){P_(a,Ee)}while(!0);return s&&a.shellSuspendCounter++,yi=Zs=null,hn=h,F.H=g,F.A=y,At===null&&(tn=null,Dt=0,bd()),C}function Mk(){for(;At!==null;)F_(At)}function Pk(a,s){var u=hn;hn|=2;var h=B_(),g=U_();tn!==a||Dt!==s?(Yd=null,qd=dn()+500,tl(a,s)):Jo=pe(a,s);e:do try{if(nn!==0&&At!==null){s=At;var y=jr;t:switch(nn){case 1:nn=0,jr=null,nl(a,s,y,1);break;case 2:if(Xy(y)){nn=0,jr=null,H_(s);break}s=function(){nn===2&&tn===a&&(nn=7),Ya(a)},y.then(s,s);break e;case 3:nn=7;break e;case 4:nn=5;break e;case 7:Xy(y)?(nn=0,jr=null,H_(s)):(nn=0,jr=null,nl(a,s,y,7));break;case 5:var C=null;switch(At.tag){case 26:C=At.memoizedState;case 5:case 27:var D=At;if(!C||pT(C)){nn=0,jr=null;var z=D.sibling;if(z!==null)At=z;else{var ee=D.return;ee!==null?(At=ee,Kd(ee)):At=null}break t}}nn=0,jr=null,nl(a,s,y,5);break;case 6:nn=0,jr=null,nl(a,s,y,6);break;case 8:Pp(),bn=6;break e;default:throw Error(r(462))}}Bk();break}catch(Ee){P_(a,Ee)}while(!0);return yi=Zs=null,F.H=h,F.A=g,hn=u,At!==null?0:(tn=null,Dt=0,bd(),bn)}function Bk(){for(;At!==null&&!Ir();)F_(At)}function F_(a){var s=o_(a.alternate,a,Ai);a.memoizedProps=a.pendingProps,s===null?Kd(a):At=s}function H_(a){var s=a,u=s.alternate;switch(s.tag){case 15:case 0:s=t_(u,s,s.pendingProps,s.type,void 0,Dt);break;case 11:s=t_(u,s,s.pendingProps,s.type.render,s.ref,Dt);break;case 5:zm(s);default:L_(u,s),s=At=R_(s,Ai),s=o_(u,s,Ai)}a.memoizedProps=a.pendingProps,s===null?Kd(a):At=s}function nl(a,s,u,h){yi=Zs=null,zm(s),$o=null,_u=0;var g=s.return;try{if(Nk(a,g,s,u,Dt)){bn=1,Bd(a,aa(u,a.current)),At=null;return}}catch(y){if(g!==null)throw At=g,y;bn=1,Bd(a,aa(u,a.current)),At=null;return}s.flags&32768?(Ft||h===1?a=!0:Jo||(Dt&536870912)!==0?a=!1:(Ni=a=!0,(h===2||h===3||h===6)&&(h=oa.current,h!==null&&h.tag===13&&(h.flags|=16384))),j_(s,a)):Kd(s)}function Kd(a){var s=a;do{if((s.flags&32768)!==0){j_(s,Ni);return}a=s.return;var u=Ok(s.alternate,s,Ai);if(u!==null){At=u;return}if(s=s.sibling,s!==null){At=s;return}At=s=a}while(s!==null);bn===0&&(bn=5)}function j_(a,s){do{var u=kk(a.alternate,a);if(u!==null){u.flags&=32767,At=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(a=a.sibling,a!==null)){At=a;return}At=a=u}while(a!==null);bn=6,At=null}function z_(a,s,u,h,g,y,C,D,z,ee){var Ee=F.T,Se=ce.p;try{ce.p=2,F.T=null,Uk(a,s,u,h,Se,g,y,C,D,z,ee)}finally{F.T=Ee,ce.p=Se}}function Uk(a,s,u,h,g,y,C,D){do rl();while(ro!==null);if((hn&6)!==0)throw Error(r(327));var z=a.finishedWork;if(h=a.finishedLanes,z===null)return null;if(a.finishedWork=null,a.finishedLanes=0,z===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0,a.cancelPendingCommit=null;var ee=z.lanes|z.childLanes;if(ee|=wm,se(a,h,ee,y,C,D),a===tn&&(At=tn=null,Dt=0),(z.subtreeFlags&10256)===0&&(z.flags&10256)===0||Gd||(Gd=!0,Lp=ee,Ip=u,zk(tt,function(){return rl(),null})),u=(z.flags&15990)!==0,(z.subtreeFlags&15990)!==0||u?(u=F.T,F.T=null,y=ce.p,ce.p=2,C=hn,hn|=4,wk(a,z),x_(z,a),lk(Wp,a.containerInfo),of=!!Xp,Wp=Xp=null,a.current=z,E_(a,z.alternate,z),ta(),hn=C,ce.p=y,F.T=u):a.current=z,Gd?(Gd=!1,ro=a,Uu=h):$_(a,ee),ee=a.pendingLanes,ee===0&&(is=null),Aa(z.stateNode),Ya(a),s!==null)for(g=a.onRecoverableError,z=0;z<s.length;z++)ee=s[z],g(ee.value,{componentStack:ee.stack});return(Uu&3)!==0&&rl(),ee=a.pendingLanes,(h&4194218)!==0&&(ee&42)!==0?a===Dp?Fu++:(Fu=0,Dp=a):Fu=0,Hu(0),null}function $_(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,xu(s)))}function rl(){if(ro!==null){var a=ro,s=Lp;Lp=0;var u=Le(Uu),h=F.T,g=ce.p;try{if(ce.p=32>u?32:u,F.T=null,ro===null)var y=!1;else{u=Ip,Ip=null;var C=ro,D=Uu;if(ro=null,Uu=0,(hn&6)!==0)throw Error(r(331));var z=hn;if(hn|=4,w_(C.current),S_(C,C.current,D,u),hn=z,Hu(0,!1),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(Nn,C)}catch{}y=!0}return y}finally{ce.p=g,F.T=h,$_(a,s)}}return!1}function q_(a,s,u){s=aa(u,s),s=np(a.stateNode,s,2),a=Ji(a,s,2),a!==null&&(G(a,2),Ya(a))}function Wt(a,s,u){if(a.tag===3)q_(a,a,u);else for(;s!==null;){if(s.tag===3){q_(s,a,u);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(is===null||!is.has(h))){a=aa(u,a),u=V1(2),h=Ji(s,u,2),h!==null&&(K1(u,h,s,a),G(h,2),Ya(h));break}}s=s.return}}function Fp(a,s,u){var h=a.pingCache;if(h===null){h=a.pingCache=new Ik;var g=new Set;h.set(s,g)}else g=h.get(s),g===void 0&&(g=new Set,h.set(s,g));g.has(u)||(Cp=!0,g.add(u),a=Fk.bind(null,a,s,u),s.then(a,a))}function Fk(a,s,u){var h=a.pingCache;h!==null&&h.delete(s),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,tn===a&&(Dt&u)===u&&(bn===4||bn===3&&(Dt&62914560)===Dt&&300>dn()-kp?(hn&2)===0&&tl(a,0):Rp|=u,el===Dt&&(el=0)),Ya(a)}function Y_(a,s){s===0&&(s=$()),a=Yi(a,s),a!==null&&(G(a,s),Ya(a))}function Hk(a){var s=a.memoizedState,u=0;s!==null&&(u=s.retryLane),Y_(a,u)}function jk(a,s){var u=0;switch(a.tag){case 13:var h=a.stateNode,g=a.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),Y_(a,u)}function zk(a,s){return Na(a,s)}var Xd=null,al=null,Hp=!1,Wd=!1,jp=!1,ao=0;function Ya(a){a!==al&&a.next===null&&(al===null?Xd=al=a:al=al.next=a),Wd=!0,Hp||(Hp=!0,qk($k))}function Hu(a,s){if(!jp&&Wd){jp=!0;do for(var u=!1,h=Xd;h!==null;){if(a!==0){var g=h.pendingLanes;if(g===0)var y=0;else{var C=h.suspendedLanes,D=h.pingedLanes;y=(1<<31-Xt(42|a)+1)-1,y&=g&~(C&~D),y=y&201326677?y&201326677|1:y?y|2:0}y!==0&&(u=!0,K_(h,y))}else y=Dt,y=Y(h,h===tn?y:0),(y&3)===0||pe(h,y)||(u=!0,K_(h,y));h=h.next}while(u);jp=!1}}function $k(){Wd=Hp=!1;var a=0;ao!==0&&(Zk()&&(a=ao),ao=0);for(var s=dn(),u=null,h=Xd;h!==null;){var g=h.next,y=G_(h,s);y===0?(h.next=null,u===null?Xd=g:u.next=g,g===null&&(al=u)):(u=h,(a!==0||(y&3)!==0)&&(Wd=!0)),h=g}Hu(a)}function G_(a,s){for(var u=a.suspendedLanes,h=a.pingedLanes,g=a.expirationTimes,y=a.pendingLanes&-62914561;0<y;){var C=31-Xt(y),D=1<<C,z=g[C];z===-1?((D&u)===0||(D&h)!==0)&&(g[C]=ke(D,s)):z<=s&&(a.expiredLanes|=D),y&=~D}if(s=tn,u=Dt,u=Y(a,a===s?u:0),h=a.callbackNode,u===0||a===s&&nn===2||a.cancelPendingCommit!==null)return h!==null&&h!==null&&ui(h),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||pe(a,u)){if(s=u&-u,s===a.callbackPriority)return s;switch(h!==null&&ui(h),Le(u)){case 2:case 8:u=Ae;break;case 32:u=tt;break;case 268435456:u=It;break;default:u=tt}return h=V_.bind(null,a),u=Na(u,h),a.callbackPriority=s,a.callbackNode=u,s}return h!==null&&h!==null&&ui(h),a.callbackPriority=2,a.callbackNode=null,2}function V_(a,s){var u=a.callbackNode;if(rl()&&a.callbackNode!==u)return null;var h=Dt;return h=Y(a,a===tn?h:0),h===0?null:(D_(a,h,s),G_(a,dn()),a.callbackNode!=null&&a.callbackNode===u?V_.bind(null,a):null)}function K_(a,s){if(rl())return null;D_(a,s,!0)}function qk(a){e3(function(){(hn&6)!==0?Na(de,a):a()})}function zp(){return ao===0&&(ao=st()),ao}function X_(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:$i(""+a)}function W_(a,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,a.id&&u.setAttribute("form",a.id),s.parentNode.insertBefore(u,s),a=new FormData(a),u.parentNode.removeChild(u),a}function Yk(a,s,u,h,g){if(s==="submit"&&u&&u.stateNode===g){var y=X_((g[Me]||null).action),C=h.submitter;C&&(s=(s=C[Me]||null)?X_(s.formAction):C.getAttribute("formAction"),s!==null&&(y=s,C=null));var D=new md("action","action",null,h,g);a.push({event:D,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ao!==0){var z=C?W_(g,C):new FormData(g);Qm(u,{pending:!0,data:z,method:g.method,action:y},null,z)}}else typeof y=="function"&&(D.preventDefault(),z=C?W_(g,C):new FormData(g),Qm(u,{pending:!0,data:z,method:g.method,action:y},y,z))},currentTarget:g}]})}}for(var $p=0;$p<zy.length;$p++){var qp=zy[$p],Gk=qp.toLowerCase(),Vk=qp[0].toUpperCase()+qp.slice(1);wa(Gk,"on"+Vk)}wa(By,"onAnimationEnd"),wa(Uy,"onAnimationIteration"),wa(Fy,"onAnimationStart"),wa("dblclick","onDoubleClick"),wa("focusin","onFocus"),wa("focusout","onBlur"),wa(ck,"onTransitionRun"),wa(dk,"onTransitionStart"),wa(fk,"onTransitionCancel"),wa(Hy,"onTransitionEnd"),Nt("onMouseEnter",["mouseout","mouseover"]),Nt("onMouseLeave",["mouseout","mouseover"]),Nt("onPointerEnter",["pointerout","pointerover"]),Nt("onPointerLeave",["pointerout","pointerover"]),Jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ju="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(" "),Kk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ju));function Q_(a,s){s=(s&4)!==0;for(var u=0;u<a.length;u++){var h=a[u],g=h.event;h=h.listeners;e:{var y=void 0;if(s)for(var C=h.length-1;0<=C;C--){var D=h[C],z=D.instance,ee=D.currentTarget;if(D=D.listener,z!==y&&g.isPropagationStopped())break e;y=D,g.currentTarget=ee;try{y(g)}catch(Ee){Pd(Ee)}g.currentTarget=null,y=z}else for(C=0;C<h.length;C++){if(D=h[C],z=D.instance,ee=D.currentTarget,D=D.listener,z!==y&&g.isPropagationStopped())break e;y=D,g.currentTarget=ee;try{y(g)}catch(Ee){Pd(Ee)}g.currentTarget=null,y=z}}}}function kt(a,s){var u=s[zt];u===void 0&&(u=s[zt]=new Set);var h=a+"__bubble";u.has(h)||(Z_(s,a,2,!1),u.add(h))}function Yp(a,s,u){var h=0;s&&(h|=4),Z_(u,a,h,s)}var Qd="_reactListening"+Math.random().toString(36).slice(2);function Gp(a){if(!a[Qd]){a[Qd]=!0,na.forEach(function(u){u!=="selectionchange"&&(Kk.has(u)||Yp(u,!1,a),Yp(u,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[Qd]||(s[Qd]=!0,Yp("selectionchange",!1,s))}}function Z_(a,s,u,h){switch(TT(s)){case 2:var g=_3;break;case 8:g=T3;break;default:g=ig}u=g.bind(null,s,u,a),g=void 0,!mm||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),h?g!==void 0?a.addEventListener(s,u,{capture:!0,passive:g}):a.addEventListener(s,u,!0):g!==void 0?a.addEventListener(s,u,{passive:g}):a.addEventListener(s,u,!1)}function Vp(a,s,u,h,g){var y=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var D=h.stateNode.containerInfo;if(D===g||D.nodeType===8&&D.parentNode===g)break;if(C===4)for(C=h.return;C!==null;){var z=C.tag;if((z===3||z===4)&&(z=C.stateNode.containerInfo,z===g||z.nodeType===8&&z.parentNode===g))return;C=C.return}for(;D!==null;){if(C=fr(D),C===null)return;if(z=C.tag,z===5||z===6||z===26||z===27){h=y=C;continue e}D=D.parentNode}}h=h.return}cd(function(){var ee=y,Ee=Ke(u),Se=[];e:{var ue=jy.get(a);if(ue!==void 0){var ge=md,Qe=a;switch(a){case"keypress":if(fd(u)===0)break e;case"keydown":case"keyup":ge=jO;break;case"focusin":Qe="focus",ge=Em;break;case"focusout":Qe="blur",ge=Em;break;case"beforeblur":case"afterblur":ge=Em;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=gy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=RO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=qO;break;case By:case Uy:case Fy:ge=LO;break;case Hy:ge=GO;break;case"scroll":case"scrollend":ge=wO;break;case"wheel":ge=KO;break;case"copy":case"cut":case"paste":ge=DO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=Ey;break;case"toggle":case"beforetoggle":ge=WO}var ct=(s&4)!==0,En=!ct&&(a==="scroll"||a==="scrollend"),re=ct?ue!==null?ue+"Capture":null:ue;ct=[];for(var Z=ee,oe;Z!==null;){var _e=Z;if(oe=_e.stateNode,_e=_e.tag,_e!==5&&_e!==26&&_e!==27||oe===null||re===null||(_e=Fs(Z,re),_e!=null&&ct.push(zu(Z,_e,oe))),En)break;Z=Z.return}0<ct.length&&(ue=new ge(ue,Qe,null,u,Ee),Se.push({event:ue,listeners:ct}))}}if((s&7)===0){e:{if(ue=a==="mouseover"||a==="pointerover",ge=a==="mouseout"||a==="pointerout",ue&&u!==De&&(Qe=u.relatedTarget||u.fromElement)&&(fr(Qe)||Qe[rt]))break e;if((ge||ue)&&(ue=Ee.window===Ee?Ee:(ue=Ee.ownerDocument)?ue.defaultView||ue.parentWindow:window,ge?(Qe=u.relatedTarget||u.toElement,ge=ee,Qe=Qe?fr(Qe):null,Qe!==null&&(En=K(Qe),ct=Qe.tag,Qe!==En||ct!==5&&ct!==27&&ct!==6)&&(Qe=null)):(ge=null,Qe=ee),ge!==Qe)){if(ct=gy,_e="onMouseLeave",re="onMouseEnter",Z="mouse",(a==="pointerout"||a==="pointerover")&&(ct=Ey,_e="onPointerLeave",re="onPointerEnter",Z="pointer"),En=ge==null?ue:Pn(ge),oe=Qe==null?ue:Pn(Qe),ue=new ct(_e,Z+"leave",ge,u,Ee),ue.target=En,ue.relatedTarget=oe,_e=null,fr(Ee)===ee&&(ct=new ct(re,Z+"enter",Qe,u,Ee),ct.target=oe,ct.relatedTarget=En,_e=ct),En=_e,ge&&Qe)t:{for(ct=ge,re=Qe,Z=0,oe=ct;oe;oe=il(oe))Z++;for(oe=0,_e=re;_e;_e=il(_e))oe++;for(;0<Z-oe;)ct=il(ct),Z--;for(;0<oe-Z;)re=il(re),oe--;for(;Z--;){if(ct===re||re!==null&&ct===re.alternate)break t;ct=il(ct),re=il(re)}ct=null}else ct=null;ge!==null&&J_(Se,ue,ge,ct,!1),Qe!==null&&En!==null&&J_(Se,En,Qe,ct,!0)}}e:{if(ue=ee?Pn(ee):window,ge=ue.nodeName&&ue.nodeName.toLowerCase(),ge==="select"||ge==="input"&&ue.type==="file")var ze=Ay;else if(Sy(ue))if(wy)ze=sk;else{ze=ak;var Tt=rk}else ge=ue.nodeName,!ge||ge.toLowerCase()!=="input"||ue.type!=="checkbox"&&ue.type!=="radio"?ee&&zi(ee.elementType)&&(ze=Ay):ze=ik;if(ze&&(ze=ze(a,ee))){Ny(Se,ze,u,Ee);break e}Tt&&Tt(a,ue,ee),a==="focusout"&&ee&&ue.type==="number"&&ee.memoizedProps.value!=null&&Do(ue,"number",ue.value)}switch(Tt=ee?Pn(ee):window,a){case"focusin":(Sy(Tt)||Tt.contentEditable==="true")&&(Bo=Tt,Sm=ee,mu=null);break;case"focusout":mu=Sm=Bo=null;break;case"mousedown":Nm=!0;break;case"contextmenu":case"mouseup":case"dragend":Nm=!1,My(Se,u,Ee);break;case"selectionchange":if(uk)break;case"keydown":case"keyup":My(Se,u,Ee)}var Je;if(_m)e:{switch(a){case"compositionstart":var it="onCompositionStart";break e;case"compositionend":it="onCompositionEnd";break e;case"compositionupdate":it="onCompositionUpdate";break e}it=void 0}else Po?xy(a,u)&&(it="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(it="onCompositionStart");it&&(yy&&u.locale!=="ko"&&(Po||it!=="onCompositionStart"?it==="onCompositionEnd"&&Po&&(Je=my()):(qi=Ee,pm="value"in qi?qi.value:qi.textContent,Po=!0)),Tt=Zd(ee,it),0<Tt.length&&(it=new by(it,a,null,u,Ee),Se.push({event:it,listeners:Tt}),Je?it.data=Je:(Je=vy(u),Je!==null&&(it.data=Je)))),(Je=ZO?JO(a,u):ek(a,u))&&(it=Zd(ee,"onBeforeInput"),0<it.length&&(Tt=new by("onBeforeInput","beforeinput",null,u,Ee),Se.push({event:Tt,listeners:it}),Tt.data=Je)),Yk(Se,a,ee,u,Ee)}Q_(Se,s)})}function zu(a,s,u){return{instance:a,listener:s,currentTarget:u}}function Zd(a,s){for(var u=s+"Capture",h=[];a!==null;){var g=a,y=g.stateNode;g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=Fs(a,u),g!=null&&h.unshift(zu(a,g,y)),g=Fs(a,s),g!=null&&h.push(zu(a,g,y))),a=a.return}return h}function il(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function J_(a,s,u,h,g){for(var y=s._reactName,C=[];u!==null&&u!==h;){var D=u,z=D.alternate,ee=D.stateNode;if(D=D.tag,z!==null&&z===h)break;D!==5&&D!==26&&D!==27||ee===null||(z=ee,g?(ee=Fs(u,y),ee!=null&&C.unshift(zu(u,ee,z))):g||(ee=Fs(u,y),ee!=null&&C.push(zu(u,ee,z)))),u=u.return}C.length!==0&&a.push({event:s,listeners:C})}var Xk=/\r\n?/g,Wk=/\u0000|\uFFFD/g;function eT(a){return(typeof a=="string"?a:""+a).replace(Xk,`
49
- `).replace(Wk,"")}function tT(a,s){return s=eT(s),eT(a)===s}function Jd(){}function Gt(a,s,u,h,g,y){switch(u){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||at(a,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&at(a,""+h);break;case"className":hr(a,"class",h);break;case"tabIndex":hr(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":hr(a,u,h);break;case"style":qt(a,h,y);break;case"data":if(s!=="object"){hr(a,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||u!=="href")){a.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=$i(""+h),a.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){a.setAttribute(u,"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 y=="function"&&(u==="formAction"?(s!=="input"&&Gt(a,s,"name",g.name,g,null),Gt(a,s,"formEncType",g.formEncType,g,null),Gt(a,s,"formMethod",g.formMethod,g,null),Gt(a,s,"formTarget",g.formTarget,g,null)):(Gt(a,s,"encType",g.encType,g,null),Gt(a,s,"method",g.method,g,null),Gt(a,s,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=$i(""+h),a.setAttribute(u,h);break;case"onClick":h!=null&&(a.onclick=Jd);break;case"onScroll":h!=null&&kt("scroll",a);break;case"onScrollEnd":h!=null&&kt("scrollend",a);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":a.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){a.removeAttribute("xlink:href");break}u=$i(""+h),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,""+h):a.removeAttribute(u);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":h&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":h===!0?a.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,h):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?a.setAttribute(u,h):a.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?a.removeAttribute(u):a.setAttribute(u,h);break;case"popover":kt("beforetoggle",a),kt("toggle",a),Bn(a,"popover",h);break;case"xlinkActuate":_r(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":_r(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":_r(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":_r(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":_r(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":_r(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":_r(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":_r(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":_r(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Bn(a,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=hi.get(u)||u,Bn(a,u,h))}}function Kp(a,s,u,h,g,y){switch(u){case"style":qt(a,h,y);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof h=="string"?at(a,h):(typeof h=="number"||typeof h=="bigint")&&at(a,""+h);break;case"onScroll":h!=null&&kt("scroll",a);break;case"onScrollEnd":h!=null&&kt("scrollend",a);break;case"onClick":h!=null&&(a.onclick=Jd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fi.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),s=u.slice(2,g?u.length-7:void 0),y=a[Me]||null,y=y!=null?y[u]:null,typeof y=="function"&&a.removeEventListener(s,y,g),typeof h=="function")){typeof y!="function"&&y!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(s,h,g);break e}u in a?a[u]=h:h===!0?a.setAttribute(u,""):Bn(a,u,h)}}}function rr(a,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",a),kt("load",a);var h=!1,g=!1,y;for(y in u)if(u.hasOwnProperty(y)){var C=u[y];if(C!=null)switch(y){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Gt(a,s,y,C,u,null)}}g&&Gt(a,s,"srcSet",u.srcSet,u,null),h&&Gt(a,s,"src",u.src,u,null);return;case"input":kt("invalid",a);var D=y=C=g=null,z=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var Ee=u[h];if(Ee!=null)switch(h){case"name":g=Ee;break;case"type":C=Ee;break;case"checked":z=Ee;break;case"defaultChecked":ee=Ee;break;case"value":y=Ee;break;case"defaultValue":D=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,s));break;default:Gt(a,s,h,Ee,u,null)}}Us(a,y,D,z,ee,C,g,!1),Bs(a);return;case"select":kt("invalid",a),h=C=y=null;for(g in u)if(u.hasOwnProperty(g)&&(D=u[g],D!=null))switch(g){case"value":y=D;break;case"defaultValue":C=D;break;case"multiple":h=D;default:Gt(a,s,g,D,u,null)}s=y,u=C,a.multiple=!!h,s!=null?er(a,!!h,s,!1):u!=null&&er(a,!!h,u,!0);return;case"textarea":kt("invalid",a),y=g=h=null;for(C in u)if(u.hasOwnProperty(C)&&(D=u[C],D!=null))switch(C){case"value":h=D;break;case"defaultValue":g=D;break;case"children":y=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(91));break;default:Gt(a,s,C,D,u,null)}Mo(a,h,g,y),Bs(a);return;case"option":for(z in u)if(u.hasOwnProperty(z)&&(h=u[z],h!=null))switch(z){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Gt(a,s,z,h,u,null)}return;case"dialog":kt("cancel",a),kt("close",a);break;case"iframe":case"object":kt("load",a);break;case"video":case"audio":for(h=0;h<ju.length;h++)kt(ju[h],a);break;case"image":kt("error",a),kt("load",a);break;case"details":kt("toggle",a);break;case"embed":case"source":case"link":kt("error",a),kt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Gt(a,s,ee,h,u,null)}return;default:if(zi(s)){for(Ee in u)u.hasOwnProperty(Ee)&&(h=u[Ee],h!==void 0&&Kp(a,s,Ee,h,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(h=u[D],h!=null&&Gt(a,s,D,h,u,null))}function Qk(a,s,u,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,C=null,D=null,z=null,ee=null,Ee=null;for(ge in u){var Se=u[ge];if(u.hasOwnProperty(ge)&&Se!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":z=Se;default:h.hasOwnProperty(ge)||Gt(a,s,ge,null,h,Se)}}for(var ue in h){var ge=h[ue];if(Se=u[ue],h.hasOwnProperty(ue)&&(ge!=null||Se!=null))switch(ue){case"type":y=ge;break;case"name":g=ge;break;case"checked":ee=ge;break;case"defaultChecked":Ee=ge;break;case"value":C=ge;break;case"defaultValue":D=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,s));break;default:ge!==Se&&Gt(a,s,ue,ge,h,Se)}}iu(a,C,D,z,ee,Ee,y,g);return;case"select":ge=C=D=ue=null;for(y in u)if(z=u[y],u.hasOwnProperty(y)&&z!=null)switch(y){case"value":break;case"multiple":ge=z;default:h.hasOwnProperty(y)||Gt(a,s,y,null,h,z)}for(g in h)if(y=h[g],z=u[g],h.hasOwnProperty(g)&&(y!=null||z!=null))switch(g){case"value":ue=y;break;case"defaultValue":D=y;break;case"multiple":C=y;default:y!==z&&Gt(a,s,g,y,h,z)}s=D,u=C,h=ge,ue!=null?er(a,!!u,ue,!1):!!h!=!!u&&(s!=null?er(a,!!u,s,!0):er(a,!!u,u?[]:"",!1));return;case"textarea":ge=ue=null;for(D in u)if(g=u[D],u.hasOwnProperty(D)&&g!=null&&!h.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Gt(a,s,D,null,h,g)}for(C in h)if(g=h[C],y=u[C],h.hasOwnProperty(C)&&(g!=null||y!=null))switch(C){case"value":ue=g;break;case"defaultValue":ge=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==y&&Gt(a,s,C,g,h,y)}ld(a,ue,ge);return;case"option":for(var Qe in u)if(ue=u[Qe],u.hasOwnProperty(Qe)&&ue!=null&&!h.hasOwnProperty(Qe))switch(Qe){case"selected":a.selected=!1;break;default:Gt(a,s,Qe,null,h,ue)}for(z in h)if(ue=h[z],ge=u[z],h.hasOwnProperty(z)&&ue!==ge&&(ue!=null||ge!=null))switch(z){case"selected":a.selected=ue&&typeof ue!="function"&&typeof ue!="symbol";break;default:Gt(a,s,z,ue,h,ge)}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 ct in u)ue=u[ct],u.hasOwnProperty(ct)&&ue!=null&&!h.hasOwnProperty(ct)&&Gt(a,s,ct,null,h,ue);for(ee in h)if(ue=h[ee],ge=u[ee],h.hasOwnProperty(ee)&&ue!==ge&&(ue!=null||ge!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(r(137,s));break;default:Gt(a,s,ee,ue,h,ge)}return;default:if(zi(s)){for(var En in u)ue=u[En],u.hasOwnProperty(En)&&ue!==void 0&&!h.hasOwnProperty(En)&&Kp(a,s,En,void 0,h,ue);for(Ee in h)ue=h[Ee],ge=u[Ee],!h.hasOwnProperty(Ee)||ue===ge||ue===void 0&&ge===void 0||Kp(a,s,Ee,ue,h,ge);return}}for(var re in u)ue=u[re],u.hasOwnProperty(re)&&ue!=null&&!h.hasOwnProperty(re)&&Gt(a,s,re,null,h,ue);for(Se in h)ue=h[Se],ge=u[Se],!h.hasOwnProperty(Se)||ue===ge||ue==null&&ge==null||Gt(a,s,Se,ue,h,ge)}var Xp=null,Wp=null;function ef(a){return a.nodeType===9?a:a.ownerDocument}function nT(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rT(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function Qp(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Zp=null;function Zk(){var a=window.event;return a&&a.type==="popstate"?a===Zp?!1:(Zp=a,!0):(Zp=null,!1)}var aT=typeof setTimeout=="function"?setTimeout:void 0,Jk=typeof clearTimeout=="function"?clearTimeout:void 0,iT=typeof Promise=="function"?Promise:void 0,e3=typeof queueMicrotask=="function"?queueMicrotask:typeof iT<"u"?function(a){return iT.resolve(null).then(a).catch(t3)}:aT;function t3(a){setTimeout(function(){throw a})}function Jp(a,s){var u=s,h=0;do{var g=u.nextSibling;if(a.removeChild(u),g&&g.nodeType===8)if(u=g.data,u==="/$"){if(h===0){a.removeChild(g),Wu(s);return}h--}else u!=="$"&&u!=="$?"&&u!=="$!"||h++;u=g}while(u);Wu(s)}function eg(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":eg(u),Dr(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function n3(a,s,u,h){for(;a.nodeType===1;){var g=u;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[Bt])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(y=a.getAttribute("rel"),y==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(y!==g.rel||a.getAttribute("href")!==(g.href==null?null:g.href)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||a.getAttribute("title")!==(g.title==null?null:g.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(y=a.getAttribute("src"),(y!==(g.src==null?null:g.src)||a.getAttribute("type")!==(g.type==null?null:g.type)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&a.getAttribute("name")===y)return a}else return a;if(a=Oa(a.nextSibling),a===null)break}return null}function r3(a,s,u){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=Oa(a.nextSibling),a===null))return null;return a}function Oa(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return a}function sT(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"){if(s===0)return a;s--}else u==="/$"&&s++}a=a.previousSibling}return null}function oT(a,s,u){switch(s=ef(u),a){case"html":if(a=s.documentElement,!a)throw Error(r(452));return a;case"head":if(a=s.head,!a)throw Error(r(453));return a;case"body":if(a=s.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}var fa=new Map,lT=new Set;function tf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.ownerDocument}var Ci=ce.d;ce.d={f:a3,r:i3,D:s3,C:o3,L:l3,m:u3,X:d3,S:c3,M:f3};function a3(){var a=Ci.f(),s=Vd();return a||s}function i3(a){var s=un(a);s!==null&&s.tag===5&&s.type==="form"?M1(s):Ci.r(a)}var sl=typeof document>"u"?null:document;function uT(a,s,u){var h=sl;if(h&&typeof s=="string"&&s){var g=Tr(s);g='link[rel="'+a+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),lT.has(g)||(lT.add(g),a={rel:a,crossOrigin:u,href:s},h.querySelector(g)===null&&(s=h.createElement("link"),rr(s,"link",a),Zt(s),h.head.appendChild(s)))}}function s3(a){Ci.D(a),uT("dns-prefetch",a,null)}function o3(a,s){Ci.C(a,s),uT("preconnect",a,s)}function l3(a,s,u){Ci.L(a,s,u);var h=sl;if(h&&a&&s){var g='link[rel="preload"][as="'+Tr(s)+'"]';s==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+Tr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+Tr(u.imageSizes)+'"]')):g+='[href="'+Tr(a)+'"]';var y=g;switch(s){case"style":y=ol(a);break;case"script":y=ll(a)}fa.has(y)||(a=M({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:a,as:s},u),fa.set(y,a),h.querySelector(g)!==null||s==="style"&&h.querySelector($u(y))||s==="script"&&h.querySelector(qu(y))||(s=h.createElement("link"),rr(s,"link",a),Zt(s),h.head.appendChild(s)))}}function u3(a,s){Ci.m(a,s);var u=sl;if(u&&a){var h=s&&typeof s.as=="string"?s.as:"script",g='link[rel="modulepreload"][as="'+Tr(h)+'"][href="'+Tr(a)+'"]',y=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ll(a)}if(!fa.has(y)&&(a=M({rel:"modulepreload",href:a},s),fa.set(y,a),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(qu(y)))return}h=u.createElement("link"),rr(h,"link",a),Zt(h),u.head.appendChild(h)}}}function c3(a,s,u){Ci.S(a,s,u);var h=sl;if(h&&a){var g=Mr(h).hoistableStyles,y=ol(a);s=s||"default";var C=g.get(y);if(!C){var D={loading:0,preload:null};if(C=h.querySelector($u(y)))D.loading=5;else{a=M({rel:"stylesheet",href:a,"data-precedence":s},u),(u=fa.get(y))&&tg(a,u);var z=C=h.createElement("link");Zt(z),rr(z,"link",a),z._p=new Promise(function(ee,Ee){z.onload=ee,z.onerror=Ee}),z.addEventListener("load",function(){D.loading|=1}),z.addEventListener("error",function(){D.loading|=2}),D.loading|=4,nf(C,s,h)}C={type:"stylesheet",instance:C,count:1,state:D},g.set(y,C)}}}function d3(a,s){Ci.X(a,s);var u=sl;if(u&&a){var h=Mr(u).hoistableScripts,g=ll(a),y=h.get(g);y||(y=u.querySelector(qu(g)),y||(a=M({src:a,async:!0},s),(s=fa.get(g))&&ng(a,s),y=u.createElement("script"),Zt(y),rr(y,"link",a),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(g,y))}}function f3(a,s){Ci.M(a,s);var u=sl;if(u&&a){var h=Mr(u).hoistableScripts,g=ll(a),y=h.get(g);y||(y=u.querySelector(qu(g)),y||(a=M({src:a,async:!0,type:"module"},s),(s=fa.get(g))&&ng(a,s),y=u.createElement("script"),Zt(y),rr(y,"link",a),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(g,y))}}function cT(a,s,u,h){var g=(g=pn.current)?tf(g):null;if(!g)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=ol(u.href),u=Mr(g).hoistableStyles,h=u.get(s),h||(h={type:"style",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=ol(u.href);var y=Mr(g).hoistableStyles,C=y.get(a);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(a,C),(y=g.querySelector($u(a)))&&!y._p&&(C.instance=y,C.state.loading=5),fa.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},fa.set(a,u),y||h3(g,a,u,C.state))),s&&h===null)throw Error(r(528,""));return C}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ll(u),u=Mr(g).hoistableScripts,h=u.get(s),h||(h={type:"script",instance:null,count:0,state:null},u.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function ol(a){return'href="'+Tr(a)+'"'}function $u(a){return'link[rel="stylesheet"]['+a+"]"}function dT(a){return M({},a,{"data-precedence":a.precedence,precedence:null})}function h3(a,s,u,h){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=a.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),rr(s,"link",u),Zt(s),a.head.appendChild(s))}function ll(a){return'[src="'+Tr(a)+'"]'}function qu(a){return"script[async]"+a}function fT(a,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var h=a.querySelector('style[data-href~="'+Tr(u.href)+'"]');if(h)return s.instance=h,Zt(h),h;var g=M({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Zt(h),rr(h,"style",g),nf(h,u.precedence,a),s.instance=h;case"stylesheet":g=ol(u.href);var y=a.querySelector($u(g));if(y)return s.state.loading|=4,s.instance=y,Zt(y),y;h=dT(u),(g=fa.get(g))&&tg(h,g),y=(a.ownerDocument||a).createElement("link"),Zt(y);var C=y;return C._p=new Promise(function(D,z){C.onload=D,C.onerror=z}),rr(y,"link",h),s.state.loading|=4,nf(y,u.precedence,a),s.instance=y;case"script":return y=ll(u.src),(g=a.querySelector(qu(y)))?(s.instance=g,Zt(g),g):(h=u,(g=fa.get(y))&&(h=M({},u),ng(h,g)),a=a.ownerDocument||a,g=a.createElement("script"),Zt(g),rr(g,"link",h),a.head.appendChild(g),s.instance=g);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,nf(h,u.precedence,a));return s.instance}function nf(a,s,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,y=g,C=0;C<h.length;C++){var D=h[C];if(D.dataset.precedence===s)y=D;else if(y!==g)break}y?y.parentNode.insertBefore(a,y.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(a,s.firstChild))}function tg(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function ng(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var rf=null;function hT(a,s,u){if(rf===null){var h=new Map,g=rf=new Map;g.set(u,h)}else g=rf,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(a))return h;for(h.set(a,null),u=u.getElementsByTagName(a),g=0;g<u.length;g++){var y=u[g];if(!(y[Bt]||y[He]||a==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var C=y.getAttribute(s)||"";C=a+C;var D=h.get(C);D?D.push(y):h.set(C,[y])}}return h}function mT(a,s,u){a=a.ownerDocument||a,a.head.insertBefore(u,s==="title"?a.querySelector("head > title"):null)}function m3(a,s,u){if(u===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function pT(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Yu=null;function p3(){}function g3(a,s,u){if(Yu===null)throw Error(r(475));var h=Yu;if(s.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var g=ol(u.href),y=a.querySelector($u(g));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(h.count++,h=af.bind(h),a.then(h,h)),s.state.loading|=4,s.instance=y,Zt(y);return}y=a.ownerDocument||a,u=dT(u),(g=fa.get(g))&&tg(u,g),y=y.createElement("link"),Zt(y);var C=y;C._p=new Promise(function(D,z){C.onload=D,C.onerror=z}),rr(y,"link",u),s.instance=y}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=af.bind(h),a.addEventListener("load",s),a.addEventListener("error",s))}}function b3(){if(Yu===null)throw Error(r(475));var a=Yu;return a.stylesheets&&a.count===0&&rg(a,a.stylesheets),0<a.count?function(s){var u=setTimeout(function(){if(a.stylesheets&&rg(a,a.stylesheets),a.unsuspend){var h=a.unsuspend;a.unsuspend=null,h()}},6e4);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(u)}}:null}function af(){if(this.count--,this.count===0){if(this.stylesheets)rg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var sf=null;function rg(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,sf=new Map,s.forEach(E3,a),sf=null,af.call(a))}function E3(a,s){if(!(s.state.loading&4)){var u=sf.get(a);if(u)var h=u.get(null);else{u=new Map,sf.set(a,u);for(var g=a.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var C=g[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),h=C)}h&&u.set(null,h)}g=s.instance,C=g.getAttribute("data-precedence"),y=u.get(C)||h,y===h&&u.set(null,g),u.set(C,g),this.count++,h=af.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),y?y.parentNode.insertBefore(g,y.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(g,a.firstChild)),s.state.loading|=4}}var Gu={$$typeof:_,Provider:null,Consumer:null,_currentValue:Te,_currentValue2:Te,_threadCount:0};function y3(a,s,u,h,g,y,C,D){this.tag=1,this.containerInfo=a,this.finishedWork=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=W(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=W(0),this.hiddenUpdates=W(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function gT(a,s,u,h,g,y,C,D,z,ee,Ee,Se){return a=new y3(a,s,u,C,D,z,ee,Se),s=1,y===!0&&(s|=24),y=ca(3,null,null,s),a.current=y,y.stateNode=a,s=Mm(),s.refCount++,a.pooledCache=s,s.refCount++,y.memoizedState={element:h,isDehydrated:u,cache:s},pp(y),a}function bT(a){return a?(a=Ho,a):Ho}function ET(a,s,u,h,g,y){g=bT(g),h.context===null?h.context=g:h.pendingContext=g,h=Zi(s),h.payload={element:u},y=y===void 0?null:y,y!==null&&(h.callback=y),u=Ji(a,h,s),u!==null&&(pr(u,a,s),Ru(u,a,s))}function yT(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<s?u:s}}function ag(a,s){yT(a,s),(a=a.alternate)&&yT(a,s)}function _T(a){if(a.tag===13){var s=Yi(a,67108864);s!==null&&pr(s,a,67108864),ag(a,67108864)}}var of=!0;function _3(a,s,u,h){var g=F.T;F.T=null;var y=ce.p;try{ce.p=2,ig(a,s,u,h)}finally{ce.p=y,F.T=g}}function T3(a,s,u,h){var g=F.T;F.T=null;var y=ce.p;try{ce.p=8,ig(a,s,u,h)}finally{ce.p=y,F.T=g}}function ig(a,s,u,h){if(of){var g=sg(h);if(g===null)Vp(a,s,h,lf,u),xT(a,h);else if(v3(g,a,s,u,h))h.stopPropagation();else if(xT(a,h),s&4&&-1<x3.indexOf(a)){for(;g!==null;){var y=un(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=Zn(y.pendingLanes);if(C!==0){var D=y;for(D.pendingLanes|=2,D.entangledLanes|=2;C;){var z=1<<31-Xt(C);D.entanglements[1]|=z,C&=~z}Ya(y),(hn&6)===0&&(qd=dn()+500,Hu(0))}}break;case 13:D=Yi(y,2),D!==null&&pr(D,y,2),Vd(),ag(y,2)}if(y=sg(h),y===null&&Vp(a,s,h,lf,u),y===g)break;g=y}g!==null&&h.stopPropagation()}else Vp(a,s,h,null,u)}}function sg(a){return a=Ke(a),og(a)}var lf=null;function og(a){if(lf=null,a=fr(a),a!==null){var s=K(a);if(s===null)a=null;else{var u=s.tag;if(u===13){if(a=xe(s),a!==null)return a;a=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return lf=a,null}function TT(a){switch(a){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(Ha()){case de:return 2;case Ae:return 8;case tt:case ht:return 32;case It:return 268435456;default:return 32}default:return 32}}var lg=!1,ss=null,os=null,ls=null,Vu=new Map,Ku=new Map,us=[],x3="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 xT(a,s){switch(a){case"focusin":case"focusout":ss=null;break;case"dragenter":case"dragleave":os=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":Vu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ku.delete(s.pointerId)}}function Xu(a,s,u,h,g,y){return a===null||a.nativeEvent!==y?(a={blockedOn:s,domEventName:u,eventSystemFlags:h,nativeEvent:y,targetContainers:[g]},s!==null&&(s=un(s),s!==null&&_T(s)),a):(a.eventSystemFlags|=h,s=a.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),a)}function v3(a,s,u,h,g){switch(s){case"focusin":return ss=Xu(ss,a,s,u,h,g),!0;case"dragenter":return os=Xu(os,a,s,u,h,g),!0;case"mouseover":return ls=Xu(ls,a,s,u,h,g),!0;case"pointerover":var y=g.pointerId;return Vu.set(y,Xu(Vu.get(y)||null,a,s,u,h,g)),!0;case"gotpointercapture":return y=g.pointerId,Ku.set(y,Xu(Ku.get(y)||null,a,s,u,h,g)),!0}return!1}function vT(a){var s=fr(a.target);if(s!==null){var u=K(s);if(u!==null){if(s=u.tag,s===13){if(s=xe(u),s!==null){a.blockedOn=s,Xe(a.priority,function(){if(u.tag===13){var h=zr(),g=Yi(u,h);g!==null&&pr(g,u,h),ag(u,h)}});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function uf(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var u=sg(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);De=h,u.target.dispatchEvent(h),De=null}else return s=un(u),s!==null&&_T(s),a.blockedOn=u,!1;s.shift()}return!0}function ST(a,s,u){uf(a)&&u.delete(s)}function S3(){lg=!1,ss!==null&&uf(ss)&&(ss=null),os!==null&&uf(os)&&(os=null),ls!==null&&uf(ls)&&(ls=null),Vu.forEach(ST),Ku.forEach(ST)}function cf(a,s){a.blockedOn===s&&(a.blockedOn=null,lg||(lg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,S3)))}var df=null;function NT(a){df!==a&&(df=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){df===a&&(df=null);for(var s=0;s<a.length;s+=3){var u=a[s],h=a[s+1],g=a[s+2];if(typeof h!="function"){if(og(h||u)===null)continue;break}var y=un(u);y!==null&&(a.splice(s,3),s-=3,Qm(y,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function Wu(a){function s(z){return cf(z,a)}ss!==null&&cf(ss,a),os!==null&&cf(os,a),ls!==null&&cf(ls,a),Vu.forEach(s),Ku.forEach(s);for(var u=0;u<us.length;u++){var h=us[u];h.blockedOn===a&&(h.blockedOn=null)}for(;0<us.length&&(u=us[0],u.blockedOn===null);)vT(u),u.blockedOn===null&&us.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],y=u[h+1],C=g[Me]||null;if(typeof y=="function")C||NT(u);else if(C){var D=null;if(y&&y.hasAttribute("formAction")){if(g=y,C=y[Me]||null)D=C.formAction;else if(og(g)!==null)continue}else D=C.action;typeof D=="function"?u[h+1]=D:(u.splice(h,3),h-=3),NT(u)}}}function ug(a){this._internalRoot=a}ff.prototype.render=ug.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,h=zr();ET(u,h,a,s,null,null)},ff.prototype.unmount=ug.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;a.tag===0&&rl(),ET(a.current,2,null,a,null,null),Vd(),s[rt]=null}};function ff(a){this._internalRoot=a}ff.prototype.unstable_scheduleHydration=function(a){if(a){var s=Fe();a={blockedOn:null,target:a,priority:s};for(var u=0;u<us.length&&s!==0&&s<us[u].priority;u++);us.splice(u,0,a),u===0&&vT(a)}};var AT=t.version;if(AT!=="19.0.0")throw Error(r(527,AT,"19.0.0"));ce.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=le(s),a=a!==null?te(a):null,a=a===null?null:a.stateNode,a};var N3={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:F,findFiberByHostInstance:fr,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hf.isDisabled&&hf.supportsFiber)try{Nn=hf.inject(N3),on=hf}catch{}}return Zu.createRoot=function(a,s){if(!i(a))throw Error(r(299));var u=!1,h="",g=$1,y=q1,C=Y1,D=null;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(C=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(D=s.unstable_transitionCallbacks)),s=gT(a,1,!1,null,null,u,h,g,y,C,D,null),a[rt]=s.current,Gp(a.nodeType===8?a.parentNode:a),new ug(s)},Zu.hydrateRoot=function(a,s,u){if(!i(a))throw Error(r(299));var h=!1,g="",y=$1,C=q1,D=Y1,z=null,ee=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(C=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(z=u.unstable_transitionCallbacks),u.formState!==void 0&&(ee=u.formState)),s=gT(a,1,!0,s,u??null,h,g,y,C,D,z,ee),s.context=bT(null),u=s.current,h=zr(),g=Zi(h),g.callback=null,Ji(u,g,h),s.current.lanes=h,G(s,h),Ya(s),a[rt]=s.current,Gp(a),new ff(s)},Zu.version="19.0.0",Zu}var PT;function M3(){if(PT)return fg.exports;PT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fg.exports=D3(),fg.exports}var P3=M3();/**
50
- * react-router v7.7.1
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 iN=e=>{throw TypeError(e)},B3=(e,t,n)=>t.has(e)||iN("Cannot "+n),gg=(e,t,n)=>(B3(e,t,"read from private field"),n?n.call(e):t.get(e)),U3=(e,t,n)=>t.has(e)?iN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),BT="popstate";function F3(e={}){function t(r,i){let{pathname:o,search:l,hash:c}=r.location;return Nc("",{pathname:o,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ns(i)}return j3(t,n,null,e)}function vt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function H3(){return Math.random().toString(36).substring(2,10)}function UT(e,t){return{usr:e.state,key:e.key,idx:t}}function Nc(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ls(t):t,state:n,key:t&&t.key||r||H3()}}function Ns({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ls(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function j3(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,c="POP",d=null,f=m();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function m(){return(l.state||{idx:null}).idx}function p(){c="POP";let A=m(),x=A==null?null:A-f;f=A,d&&d({action:c,location:S.location,delta:x})}function E(A,x){c="PUSH";let O=Nc(S.location,A,x);f=m()+1;let L=UT(O,f),B=S.createHref(O);try{l.pushState(L,"",B)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(B)}o&&d&&d({action:c,location:S.location,delta:1})}function _(A,x){c="REPLACE";let O=Nc(S.location,A,x);f=m();let L=UT(O,f),B=S.createHref(O);l.replaceState(L,"",B),o&&d&&d({action:c,location:S.location,delta:0})}function v(A){return sN(A)}let S={get action(){return c},get location(){return e(i,l)},listen(A){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(BT,p),d=A,()=>{i.removeEventListener(BT,p),d=null}},createHref(A){return t(i,A)},createURL:v,encodeLocation(A){let x=v(A);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:E,replace:_,go(A){return l.go(A)}};return S}function sN(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),vt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ns(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var mc,FT=class{constructor(e){if(U3(this,mc,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(gg(this,mc).has(e))return gg(this,mc).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){gg(this,mc).set(e,t)}};mc=new WeakMap;var z3=new Set(["lazy","caseSensitive","path","id","index","children"]);function $3(e){return z3.has(e)}var q3=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Y3(e){return q3.has(e)}function G3(e){return e.index===!0}function Ac(e,t,n=[],r={},i=!1){return e.map((o,l)=>{let c=[...n,String(l)],d=typeof o.id=="string"?o.id:c.join("-");if(vt(o.index!==!0||!o.children,"Cannot specify children on an index route"),vt(i||!r[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),G3(o)){let f={...o,...t(o),id:d};return r[d]=f,f}else{let f={...o,...t(o),id:d,children:void 0};return r[d]=f,o.children&&(f.children=Ac(o.children,t,c,r,i)),f}})}function Es(e,t,n="/"){return Mf(e,t,n,!1)}function Mf(e,t,n,r){let i=typeof t=="string"?Ls(t):t,o=_a(i.pathname||"/",n);if(o==null)return null;let l=oN(e);K3(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let f=iL(o);c=rL(l[d],f,r)}return c}function V3(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function oN(e,t=[],n=[],r=""){let i=(o,l,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(vt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=ei([r,d.relativePath]),m=n.concat(d);o.children&&o.children.length>0&&(vt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),oN(o.children,t,m,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:tL(f,o.index),routesMeta:m})};return e.forEach((o,l)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))i(o,l);else for(let d of lN(o.path))i(o,l,d)}),t}function lN(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=lN(r.join("/")),c=[];return c.push(...l.map(d=>d===""?o:[o,d].join("/"))),i&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function K3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var X3=/^:[\w-]+$/,W3=3,Q3=2,Z3=1,J3=10,eL=-2,HT=e=>e==="*";function tL(e,t){let n=e.split("/"),r=n.length;return n.some(HT)&&(r+=eL),t&&(r+=Q3),n.filter(i=>!HT(i)).reduce((i,o)=>i+(X3.test(o)?W3:o===""?Z3:J3),r)}function nL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function rL(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",p=Wf({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),E=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=Wf({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(i,p.params),l.push({params:i,pathname:ei([o,p.pathname]),pathnameBase:uL(ei([o,p.pathnameBase])),route:E}),p.pathnameBase!=="/"&&(o=ei([o,p.pathnameBase]))}return l}function Wf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=aL(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},E)=>{if(m==="*"){let v=c[E]||"";l=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const _=c[E];return p&&!_?f[m]=void 0:f[m]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function aL(e,t=!1,n=!0){Sn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function iL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _a(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function sL({basename:e,pathname:t}){return t==="/"?e:ei([e,t])}function oL(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ls(e):e;return{pathname:n?n.startsWith("/")?n:lL(n,t):t,search:cL(r),hash:dL(i)}}function lL(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function bg(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function uN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nh(e){let t=uN(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ah(e,t,n,r=!1){let i;typeof e=="string"?i=Ls(e):(i={...e},vt(!i.pathname||!i.pathname.includes("?"),bg("?","pathname","search",i)),vt(!i.pathname||!i.pathname.includes("#"),bg("#","pathname","hash",i)),vt(!i.search||!i.search.includes("#"),bg("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,c;if(l==null)c=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let E=l.split("/");for(;E[0]==="..";)E.shift(),p-=1;i.pathname=E.join("/")}c=p>=0?t[p]:"/"}let d=oL(i,c),f=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var ei=e=>e.join("/").replace(/\/\/+/g,"/"),uL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Qf=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function wc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var cN=["POST","PUT","PATCH","DELETE"],fL=new Set(cN),hL=["GET",...cN],mL=new Set(hL),pL=new Set([301,302,303,307,308]),gL=new Set([307,308]),Eg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bL={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ju={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},EL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$b=e=>EL.test(e),yL=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),dN="remix-router-transitions",fN=Symbol("ResetLoaderData");function _L(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";vt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||yL,o={},l=Ac(e.routes,i,void 0,o),c,d=e.basename||"/",f=e.dataStrategy||NL,m={unstable_middleware:!1,...e.future},p=null,E=new Set,_=null,v=null,S=null,A=e.hydrationData!=null,x=Es(l,e.history.location,d),O=!1,L=null,B;if(x==null&&!e.patchRoutesOnNavigation){let $=ha(404,{pathname:e.history.location.pathname}),{matches:W,route:G}=ZT(l);B=!0,x=W,L={[G.id]:$}}else if(x&&!e.hydrationData&&Y(x,l,e.history.location.pathname).active&&(x=null),x)if(x.some($=>$.route.lazy))B=!1;else if(!x.some($=>$.route.loader))B=!0;else{let $=e.hydrationData?e.hydrationData.loaderData:null,W=e.hydrationData?e.hydrationData.errors:null;if(W){let G=x.findIndex(se=>W[se.route.id]!==void 0);B=x.slice(0,G+1).every(se=>!A0(se.route,$,W))}else B=x.every(G=>!A0(G.route,$,W))}else{B=!1,x=[];let $=Y(null,l,e.history.location.pathname);$.active&&$.matches&&(O=!0,x=$.matches)}let k,w={historyAction:e.history.action,location:e.history.location,matches:x,initialized:B,navigation:Eg,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||L,fetchers:new Map,blockers:new Map},U="POP",j=!1,F,M=!1,J=new Map,X=null,V=!1,ne=!1,ae=new Set,Q=new Map,be=0,K=-1,xe=new Map,R=new Set,le=new Map,te=new Map,I=new Set,ce=new Map,Te,ve=null;function Pe(){if(p=e.history.listen(({action:$,location:W,delta:G})=>{if(Te){Te(),Te=void 0;return}Sn(ce.size===0||G!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let se=qn({currentLocation:w.location,nextLocation:W,historyAction:$});if(se&&G!=null){let me=new Promise(Ie=>{Te=Ie});e.history.go(G*-1),Xt(se,{state:"blocked",location:W,proceed(){Xt(se,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),me.then(()=>e.history.go(G))},reset(){let Ie=new Map(w.blockers);Ie.set(se,Ju),Ue({blockers:Ie})}});return}return Tn($,W)}),n){PL(t,J);let $=()=>BL(t,J);t.addEventListener("pagehide",$),X=()=>t.removeEventListener("pagehide",$)}return w.initialized||Tn("POP",w.location,{initialHydration:!0}),k}function je(){p&&p(),X&&X(),E.clear(),F&&F.abort(),w.fetchers.forEach(($,W)=>ht(W)),w.blockers.forEach(($,W)=>Kt(W))}function Ze($){return E.add($),()=>E.delete($)}function Ue($,W={}){$.matches&&($.matches=$.matches.map(me=>{let Ie=o[me.route.id],Le=me.route;return Le.element!==Ie.element||Le.errorElement!==Ie.errorElement||Le.hydrateFallbackElement!==Ie.hydrateFallbackElement?{...me,route:Ie}:me})),w={...w,...$};let G=[],se=[];w.fetchers.forEach((me,Ie)=>{me.state==="idle"&&(I.has(Ie)?G.push(Ie):se.push(Ie))}),I.forEach(me=>{!w.fetchers.has(me)&&!Q.has(me)&&G.push(me)}),[...E].forEach(me=>me(w,{deletedFetchers:G,viewTransitionOpts:W.viewTransitionOpts,flushSync:W.flushSync===!0})),G.forEach(me=>ht(me)),se.forEach(me=>w.fetchers.delete(me))}function Pt($,W,{flushSync:G}={}){var He,Me;let se=w.actionData!=null&&w.navigation.formMethod!=null&&Ar(w.navigation.formMethod)&&w.navigation.state==="loading"&&((He=$.state)==null?void 0:He._isRedirect)!==!0,me;W.actionData?Object.keys(W.actionData).length>0?me=W.actionData:me=null:se?me=w.actionData:me=null;let Ie=W.loaderData?WT(w.loaderData,W.loaderData,W.matches||[],W.errors):w.loaderData,Le=w.blockers;Le.size>0&&(Le=new Map(Le),Le.forEach((rt,zt)=>Le.set(zt,Ju)));let Fe=V?!1:Zn($,W.matches||w.matches),Xe=j===!0||w.navigation.formMethod!=null&&Ar(w.navigation.formMethod)&&((Me=$.state)==null?void 0:Me._isRedirect)!==!0;c&&(l=c,c=void 0),V||U==="POP"||(U==="PUSH"?e.history.push($,$.state):U==="REPLACE"&&e.history.replace($,$.state));let Ge;if(U==="POP"){let rt=J.get(w.location.pathname);rt&&rt.has($.pathname)?Ge={currentLocation:w.location,nextLocation:$}:J.has($.pathname)&&(Ge={currentLocation:$,nextLocation:w.location})}else if(M){let rt=J.get(w.location.pathname);rt?rt.add($.pathname):(rt=new Set([$.pathname]),J.set(w.location.pathname,rt)),Ge={currentLocation:w.location,nextLocation:$}}Ue({...W,actionData:me,loaderData:Ie,historyAction:U,location:$,initialized:!0,navigation:Eg,revalidation:"idle",restoreScrollPosition:Fe,preventScrollReset:Xe,blockers:Le},{viewTransitionOpts:Ge,flushSync:G===!0}),U="POP",j=!1,M=!1,V=!1,ne=!1,ve==null||ve.resolve(),ve=null}async function mn($,W){if(typeof $=="number"){e.history.go($);return}let G=N0(w.location,w.matches,d,$,W==null?void 0:W.fromRouteId,W==null?void 0:W.relative),{path:se,submission:me,error:Ie}=jT(!1,G,W),Le=w.location,Fe=Nc(w.location,se,W&&W.state);Fe={...Fe,...e.history.encodeLocation(Fe)};let Xe=W&&W.replace!=null?W.replace:void 0,Ge="PUSH";Xe===!0?Ge="REPLACE":Xe===!1||me!=null&&Ar(me.formMethod)&&me.formAction===w.location.pathname+w.location.search&&(Ge="REPLACE");let He=W&&"preventScrollReset"in W?W.preventScrollReset===!0:void 0,Me=(W&&W.flushSync)===!0,rt=qn({currentLocation:Le,nextLocation:Fe,historyAction:Ge});if(rt){Xt(rt,{state:"blocked",location:Fe,proceed(){Xt(rt,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),mn($,W)},reset(){let zt=new Map(w.blockers);zt.set(rt,Ju),Ue({blockers:zt})}});return}await Tn(Ge,Fe,{submission:me,pendingError:Ie,preventScrollReset:He,replace:W&&W.replace,enableViewTransition:W&&W.viewTransition,flushSync:Me})}function pn(){ve||(ve=UL()),Ha(),Ue({revalidation:"loading"});let $=ve.promise;return w.navigation.state==="submitting"?$:w.navigation.state==="idle"?(Tn(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),$):(Tn(U||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:M===!0}),$)}async function Tn($,W,G){F&&F.abort(),F=null,U=$,V=(G&&G.startUninterruptedRevalidation)===!0,di(w.location,w.matches),j=(G&&G.preventScrollReset)===!0,M=(G&&G.enableViewTransition)===!0;let se=c||l,me=G&&G.overrideNavigation,Ie=G!=null&&G.initialHydration&&w.matches&&w.matches.length>0&&!O?w.matches:Es(se,W,d),Le=(G&&G.flushSync)===!0;if(Ie&&w.initialized&&!ne&&kL(w.location,W)&&!(G&&G.submission&&Ar(G.submission.formMethod))){Pt(W,{matches:Ie},{flushSync:Le});return}let Fe=Y(Ie,se,W.pathname);if(Fe.active&&Fe.matches&&(Ie=Fe.matches),!Ie){let{error:wn,notFoundMatches:$t,route:Bt}=ji(W.pathname);Pt(W,{matches:$t,loaderData:{},errors:{[Bt.id]:wn}},{flushSync:Le});return}F=new AbortController;let Xe=pl(e.history,W,F.signal,G&&G.submission),Ge=new FT(e.unstable_getContext?await e.unstable_getContext():void 0),He;if(G&&G.pendingError)He=[lo(Ie).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&Ar(G.submission.formMethod)){let wn=await dr(Xe,W,G.submission,Ie,Ge,Fe.active,G&&G.initialHydration===!0,{replace:G.replace,flushSync:Le});if(wn.shortCircuited)return;if(wn.pendingActionResult){let[$t,Bt]=wn.pendingActionResult;if(Gr(Bt)&&wc(Bt.error)&&Bt.error.status===404){F=null,Pt(W,{matches:wn.matches,loaderData:{},errors:{[$t]:Bt.error}});return}}Ie=wn.matches||Ie,He=wn.pendingActionResult,me=yg(W,G.submission),Le=!1,Fe.active=!1,Xe=pl(e.history,Xe.url,Xe.signal)}let{shortCircuited:Me,matches:rt,loaderData:zt,errors:An}=await mt(Xe,W,Ie,Ge,Fe.active,me,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Le,He);Me||(F=null,Pt(W,{matches:rt||Ie,...QT(He),loaderData:zt,errors:An}))}async function dr($,W,G,se,me,Ie,Le,Fe={}){Ha();let Xe=DL(W,G);if(Ue({navigation:Xe},{flushSync:Fe.flushSync===!0}),Ie){let Me=await pe(se,W.pathname,$.signal);if(Me.type==="aborted")return{shortCircuited:!0};if(Me.type==="error"){let rt=lo(Me.partialMatches).route.id;return{matches:Me.partialMatches,pendingActionResult:[rt,{type:"error",error:Me.error}]}}else if(Me.matches)se=Me.matches;else{let{notFoundMatches:rt,error:zt,route:An}=ji(W.pathname);return{matches:rt,pendingActionResult:[An.id,{type:"error",error:zt}]}}}let Ge,He=Pf(se,W);if(!He.route.action&&!He.route.lazy)Ge={type:"error",error:ha(405,{method:$.method,pathname:W.pathname,routeId:He.route.id})};else{let Me=vl(i,o,$,se,He,Le?[]:r,me),rt=await ta($,Me,me,null);if(Ge=rt[He.route.id],!Ge){for(let zt of se)if(rt[zt.route.id]){Ge=rt[zt.route.id];break}}if($.signal.aborted)return{shortCircuited:!0}}if(uo(Ge)){let Me;return Fe&&Fe.replace!=null?Me=Fe.replace:Me=VT(Ge.response.headers.get("Location"),new URL($.url),d)===w.location.pathname+w.location.search,await Ir($,Ge,!0,{submission:G,replace:Me}),{shortCircuited:!0}}if(Gr(Ge)){let Me=lo(se,He.route.id);return(Fe&&Fe.replace)!==!0&&(U="PUSH"),{matches:se,pendingActionResult:[Me.route.id,Ge,He.route.id]}}return{matches:se,pendingActionResult:[He.route.id,Ge]}}async function mt($,W,G,se,me,Ie,Le,Fe,Xe,Ge,He,Me){let rt=Ie||yg(W,Le),zt=Le||Fe||ex(rt),An=!V&&!Ge;if(me){if(An){let ye=zn(Me);Ue({navigation:rt,...ye!==void 0?{actionData:ye}:{}},{flushSync:He})}let Nt=await pe(G,W.pathname,$.signal);if(Nt.type==="aborted")return{shortCircuited:!0};if(Nt.type==="error"){let ye=lo(Nt.partialMatches).route.id;return{matches:Nt.partialMatches,loaderData:{},errors:{[ye]:Nt.error}}}else if(Nt.matches)G=Nt.matches;else{let{error:ye,notFoundMatches:Ve,route:ut}=ji(W.pathname);return{matches:Ve,loaderData:{},errors:{[ut.id]:ye}}}}let wn=c||l,{dsMatches:$t,revalidatingFetchers:Bt}=zT($,se,i,o,e.history,w,G,zt,W,Ge?[]:r,Ge===!0,ne,ae,I,le,R,wn,d,e.patchRoutesOnNavigation!=null,Me);if(K=++be,!e.dataStrategy&&!$t.some(Nt=>Nt.shouldLoad)&&Bt.length===0){let Nt=Nn();return Pt(W,{matches:G,loaderData:{},errors:Me&&Gr(Me[1])?{[Me[0]]:Me[1].error}:null,...QT(Me),...Nt?{fetchers:new Map(w.fetchers)}:{}},{flushSync:He}),{shortCircuited:!0}}if(An){let Nt={};if(!me){Nt.navigation=rt;let ye=zn(Me);ye!==void 0&&(Nt.actionData=ye)}Bt.length>0&&(Nt.fetchers=$n(Bt)),Ue(Nt,{flushSync:He})}Bt.forEach(Nt=>{ln(Nt.key),Nt.controller&&Q.set(Nt.key,Nt.controller)});let Dr=()=>Bt.forEach(Nt=>ln(Nt.key));F&&F.signal.addEventListener("abort",Dr);let{loaderResults:fr,fetcherResults:un}=await dn($t,Bt,$,se);if($.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Dr),Bt.forEach(Nt=>Q.delete(Nt.key));let Pn=mf(fr);if(Pn)return await Ir($,Pn.result,!0,{replace:Xe}),{shortCircuited:!0};if(Pn=mf(un),Pn)return R.add(Pn.key),await Ir($,Pn.result,!0,{replace:Xe}),{shortCircuited:!0};let{loaderData:Mr,errors:Zt}=XT(w,G,fr,Me,Bt,un);Ge&&w.errors&&(Zt={...w.errors,...Zt});let na=Nn(),fi=on(K),Jn=na||fi||Bt.length>0;return{matches:G,loaderData:Mr,errors:Zt,...Jn?{fetchers:new Map(w.fetchers)}:{}}}function zn($){if($&&!Gr($[1]))return{[$[0]]:$[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function $n($){return $.forEach(W=>{let G=w.fetchers.get(W.key),se=ec(void 0,G?G.data:void 0);w.fetchers.set(W.key,se)}),new Map(w.fetchers)}async function Qn($,W,G,se){ln($);let me=(se&&se.flushSync)===!0,Ie=c||l,Le=N0(w.location,w.matches,d,G,W,se==null?void 0:se.relative),Fe=Es(Ie,Le,d),Xe=Y(Fe,Ie,Le);if(Xe.active&&Xe.matches&&(Fe=Xe.matches),!Fe){Ae($,W,ha(404,{pathname:Le}),{flushSync:me});return}let{path:Ge,submission:He,error:Me}=jT(!0,Le,se);if(Me){Ae($,W,Me,{flushSync:me});return}let rt=new FT(e.unstable_getContext?await e.unstable_getContext():void 0),zt=(se&&se.preventScrollReset)===!0;if(He&&Ar(He.formMethod)){await Na($,W,Ge,Fe,rt,Xe.active,me,zt,He);return}le.set($,{routeId:W,path:Ge}),await ui($,W,Ge,Fe,rt,Xe.active,me,zt,He)}async function Na($,W,G,se,me,Ie,Le,Fe,Xe){Ha(),le.delete($);let Ge=w.fetchers.get($);de($,ML(Xe,Ge),{flushSync:Le});let He=new AbortController,Me=pl(e.history,G,He.signal,Xe);if(Ie){let ot=await pe(se,new URL(Me.url).pathname,Me.signal,$);if(ot.type==="aborted")return;if(ot.type==="error"){Ae($,W,ot.error,{flushSync:Le});return}else if(ot.matches)se=ot.matches;else{Ae($,W,ha(404,{pathname:G}),{flushSync:Le});return}}let rt=Pf(se,G);if(!rt.route.action&&!rt.route.lazy){let ot=ha(405,{method:Xe.formMethod,pathname:G,routeId:W});Ae($,W,ot,{flushSync:Le});return}Q.set($,He);let zt=be,An=vl(i,o,Me,se,rt,r,me),$t=(await ta(Me,An,me,$))[rt.route.id];if(Me.signal.aborted){Q.get($)===He&&Q.delete($);return}if(I.has($)){if(uo($t)||Gr($t)){de($,hs(void 0));return}}else{if(uo($t))if(Q.delete($),K>zt){de($,hs(void 0));return}else return R.add($),de($,ec(Xe)),Ir(Me,$t,!1,{fetcherSubmission:Xe,preventScrollReset:Fe});if(Gr($t)){Ae($,W,$t.error);return}}let Bt=w.navigation.location||w.location,Dr=pl(e.history,Bt,He.signal),fr=c||l,un=w.navigation.state!=="idle"?Es(fr,w.navigation.location,d):w.matches;vt(un,"Didn't find any matches after fetcher action");let Pn=++be;xe.set($,Pn);let Mr=ec(Xe,$t.data);w.fetchers.set($,Mr);let{dsMatches:Zt,revalidatingFetchers:na}=zT(Dr,me,i,o,e.history,w,un,Xe,Bt,r,!1,ne,ae,I,le,R,fr,d,e.patchRoutesOnNavigation!=null,[rt.route.id,$t]);na.filter(ot=>ot.key!==$).forEach(ot=>{let Jt=ot.key,Bn=w.fetchers.get(Jt),hr=ec(void 0,Bn?Bn.data:void 0);w.fetchers.set(Jt,hr),ln(Jt),ot.controller&&Q.set(Jt,ot.controller)}),Ue({fetchers:new Map(w.fetchers)});let fi=()=>na.forEach(ot=>ln(ot.key));He.signal.addEventListener("abort",fi);let{loaderResults:Jn,fetcherResults:Nt}=await dn(Zt,na,Dr,me);if(He.signal.aborted)return;if(He.signal.removeEventListener("abort",fi),xe.delete($),Q.delete($),na.forEach(ot=>Q.delete(ot.key)),w.fetchers.has($)){let ot=hs($t.data);w.fetchers.set($,ot)}let ye=mf(Jn);if(ye)return Ir(Dr,ye.result,!1,{preventScrollReset:Fe});if(ye=mf(Nt),ye)return R.add(ye.key),Ir(Dr,ye.result,!1,{preventScrollReset:Fe});let{loaderData:Ve,errors:ut}=XT(w,un,Jn,void 0,na,Nt);on(Pn),w.navigation.state==="loading"&&Pn>K?(vt(U,"Expected pending action"),F&&F.abort(),Pt(w.navigation.location,{matches:un,loaderData:Ve,errors:ut,fetchers:new Map(w.fetchers)})):(Ue({errors:ut,loaderData:WT(w.loaderData,Ve,un,ut),fetchers:new Map(w.fetchers)}),ne=!1)}async function ui($,W,G,se,me,Ie,Le,Fe,Xe){let Ge=w.fetchers.get($);de($,ec(Xe,Ge?Ge.data:void 0),{flushSync:Le});let He=new AbortController,Me=pl(e.history,G,He.signal);if(Ie){let Bt=await pe(se,new URL(Me.url).pathname,Me.signal,$);if(Bt.type==="aborted")return;if(Bt.type==="error"){Ae($,W,Bt.error,{flushSync:Le});return}else if(Bt.matches)se=Bt.matches;else{Ae($,W,ha(404,{pathname:G}),{flushSync:Le});return}}let rt=Pf(se,G);Q.set($,He);let zt=be,An=vl(i,o,Me,se,rt,r,me),$t=(await ta(Me,An,me,$))[rt.route.id];if(Q.get($)===He&&Q.delete($),!Me.signal.aborted){if(I.has($)){de($,hs(void 0));return}if(uo($t))if(K>zt){de($,hs(void 0));return}else{R.add($),await Ir(Me,$t,!1,{preventScrollReset:Fe});return}if(Gr($t)){Ae($,W,$t.error);return}de($,hs($t.data))}}async function Ir($,W,G,{submission:se,fetcherSubmission:me,preventScrollReset:Ie,replace:Le}={}){W.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let Fe=W.response.headers.get("Location");vt(Fe,"Expected a Location header on the redirect Response"),Fe=VT(Fe,new URL($.url),d);let Xe=Nc(w.location,Fe,{_isRedirect:!0});if(n){let An=!1;if(W.response.headers.has("X-Remix-Reload-Document"))An=!0;else if($b(Fe)){const wn=sN(Fe,!0);An=wn.origin!==t.location.origin||_a(wn.pathname,d)==null}if(An){Le?t.location.replace(Fe):t.location.assign(Fe);return}}F=null;let Ge=Le===!0||W.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:He,formAction:Me,formEncType:rt}=w.navigation;!se&&!me&&He&&Me&&rt&&(se=ex(w.navigation));let zt=se||me;if(gL.has(W.response.status)&&zt&&Ar(zt.formMethod))await Tn(Ge,Xe,{submission:{...zt,formAction:Fe},preventScrollReset:Ie||j,enableViewTransition:G?M:void 0});else{let An=yg(Xe,se);await Tn(Ge,Xe,{overrideNavigation:An,fetcherSubmission:me,preventScrollReset:Ie||j,enableViewTransition:G?M:void 0})}}async function ta($,W,G,se){let me,Ie={};try{me=await AL(f,$,W,se,G,!1)}catch(Le){return W.filter(Fe=>Fe.shouldLoad).forEach(Fe=>{Ie[Fe.route.id]={type:"error",error:Le}}),Ie}if($.signal.aborted)return Ie;for(let[Le,Fe]of Object.entries(me))if(LL(Fe)){let Xe=Fe.result;Ie[Le]={type:"redirect",response:RL(Xe,$,Le,W,d)}}else Ie[Le]=await CL(Fe);return Ie}async function dn($,W,G,se){let me=ta(G,$,se,null),Ie=Promise.all(W.map(async Xe=>{if(Xe.matches&&Xe.match&&Xe.request&&Xe.controller){let He=(await ta(Xe.request,Xe.matches,se,Xe.key))[Xe.match.route.id];return{[Xe.key]:He}}else return Promise.resolve({[Xe.key]:{type:"error",error:ha(404,{pathname:Xe.path})}})})),Le=await me,Fe=(await Ie).reduce((Xe,Ge)=>Object.assign(Xe,Ge),{});return{loaderResults:Le,fetcherResults:Fe}}function Ha(){ne=!0,le.forEach(($,W)=>{Q.has(W)&&ae.add(W),ln(W)})}function de($,W,G={}){w.fetchers.set($,W),Ue({fetchers:new Map(w.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Ae($,W,G,se={}){let me=lo(w.matches,W);ht($),Ue({errors:{[me.route.id]:G},fetchers:new Map(w.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function tt($){return te.set($,(te.get($)||0)+1),I.has($)&&I.delete($),w.fetchers.get($)||bL}function ht($){let W=w.fetchers.get($);Q.has($)&&!(W&&W.state==="loading"&&xe.has($))&&ln($),le.delete($),xe.delete($),R.delete($),I.delete($),ae.delete($),w.fetchers.delete($)}function It($){let W=(te.get($)||0)-1;W<=0?(te.delete($),I.add($)):te.set($,W),Ue({fetchers:new Map(w.fetchers)})}function ln($){let W=Q.get($);W&&(W.abort(),Q.delete($))}function yr($){for(let W of $){let G=tt(W),se=hs(G.data);w.fetchers.set(W,se)}}function Nn(){let $=[],W=!1;for(let G of R){let se=w.fetchers.get(G);vt(se,`Expected fetcher: ${G}`),se.state==="loading"&&(R.delete(G),$.push(G),W=!0)}return yr($),W}function on($){let W=[];for(let[G,se]of xe)if(se<$){let me=w.fetchers.get(G);vt(me,`Expected fetcher: ${G}`),me.state==="loading"&&(ln(G),xe.delete(G),W.push(G))}return yr(W),W.length>0}function Aa($,W){let G=w.blockers.get($)||Ju;return ce.get($)!==W&&ce.set($,W),G}function Kt($){w.blockers.delete($),ce.delete($)}function Xt($,W){let G=w.blockers.get($)||Ju;vt(G.state==="unblocked"&&W.state==="blocked"||G.state==="blocked"&&W.state==="blocked"||G.state==="blocked"&&W.state==="proceeding"||G.state==="blocked"&&W.state==="unblocked"||G.state==="proceeding"&&W.state==="unblocked",`Invalid blocker state transition: ${G.state} -> ${W.state}`);let se=new Map(w.blockers);se.set($,W),Ue({blockers:se})}function qn({currentLocation:$,nextLocation:W,historyAction:G}){if(ce.size===0)return;ce.size>1&&Sn(!1,"A router only supports one blocker at a time");let se=Array.from(ce.entries()),[me,Ie]=se[se.length-1],Le=w.blockers.get(me);if(!(Le&&Le.state==="proceeding")&&Ie({currentLocation:$,nextLocation:W,historyAction:G}))return me}function ji($){let W=ha(404,{pathname:$}),G=c||l,{matches:se,route:me}=ZT(G);return{notFoundMatches:se,route:me,error:W}}function Lo($,W,G){if(_=$,S=W,v=G||null,!A&&w.navigation===Eg){A=!0;let se=Zn(w.location,w.matches);se!=null&&Ue({restoreScrollPosition:se})}return()=>{_=null,S=null,v=null}}function ci($,W){return v&&v($,W.map(se=>V3(se,w.loaderData)))||$.key}function di($,W){if(_&&S){let G=ci($,W);_[G]=S()}}function Zn($,W){if(_){let G=ci($,W),se=_[G];if(typeof se=="number")return se}return null}function Y($,W,G){if(e.patchRoutesOnNavigation)if($){if(Object.keys($[0].params).length>0)return{active:!0,matches:Mf(W,G,d,!0)}}else return{active:!0,matches:Mf(W,G,d,!0)||[]};return{active:!1,matches:null}}async function pe($,W,G,se){if(!e.patchRoutesOnNavigation)return{type:"success",matches:$};let me=$;for(;;){let Ie=c==null,Le=c||l,Fe=o;try{await e.patchRoutesOnNavigation({signal:G,path:W,matches:me,fetcherKey:se,patch:(He,Me)=>{G.aborted||$T(He,Me,Le,Fe,i,!1)}})}catch(He){return{type:"error",error:He,partialMatches:me}}finally{Ie&&!G.aborted&&(l=[...l])}if(G.aborted)return{type:"aborted"};let Xe=Es(Le,W,d);if(Xe)return{type:"success",matches:Xe};let Ge=Mf(Le,W,d,!0);if(!Ge||me.length===Ge.length&&me.every((He,Me)=>He.route.id===Ge[Me].route.id))return{type:"success",matches:null};me=Ge}}function ke($){o={},c=Ac($,i,void 0,o)}function st($,W,G=!1){let se=c==null;$T($,W,c||l,o,i,G),se&&(l=[...l],Ue({}))}return k={get basename(){return d},get future(){return m},get state(){return w},get routes(){return l},get window(){return t},initialize:Pe,subscribe:Ze,enableScrollRestoration:Lo,navigate:mn,fetch:Qn,revalidate:pn,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:tt,deleteFetcher:It,dispose:je,getBlocker:Aa,deleteBlocker:Kt,patchRoutes:st,_internalFetchControllers:Q,_internalSetRoutes:ke,_internalSetStateDoNotUseOrYouWillBreakYourApp($){Ue($)}},k}function TL(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function N0(e,t,n,r,i,o){let l,c;if(i){l=[];for(let f of t)if(l.push(f),f.route.id===i){c=f;break}}else l=t,c=t[t.length-1];let d=Ah(r||".",Nh(l),_a(e.pathname,n)||e.pathname,o==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&c){let f=qb(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let m=new URLSearchParams(d.search),p=m.getAll("index");m.delete("index"),p.filter(_=>_).forEach(_=>m.append("index",_));let E=m.toString();d.search=E?`?${E}`:""}}return n!=="/"&&(d.pathname=sL({basename:n,pathname:d.pathname})),Ns(d)}function jT(e,t,n){if(!n||!TL(n))return{path:t};if(n.formMethod&&!IL(n.formMethod))return{path:t,error:ha(405,{method:n.formMethod})};let r=()=>({path:t,error:ha(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),l=EN(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ar(o))return r();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((E,[_,v])=>`${E}${_}=${v}
59
- `,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ar(o))return r();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:l,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return r()}}}vt(typeof FormData=="function","FormData is not available in this environment");let c,d;if(n.formData)c=C0(n.formData),d=n.formData;else if(n.body instanceof FormData)c=C0(n.body),d=n.body;else if(n.body instanceof URLSearchParams)c=n.body,d=KT(c);else if(n.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(n.body),d=KT(c)}catch{return r()}let f={formMethod:o,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ar(f.formMethod))return{path:t,submission:f};let m=Ls(t);return e&&m.search&&qb(m.search)&&c.append("index",""),m.search=`?${c}`,{path:Ns(m),submission:f}}function zT(e,t,n,r,i,o,l,c,d,f,m,p,E,_,v,S,A,x,O,L){var V;let B=L?Gr(L[1])?L[1].error:L[1].data:void 0,k=i.createURL(o.location),w=i.createURL(d),U;if(m&&o.errors){let ne=Object.keys(o.errors)[0];U=l.findIndex(ae=>ae.route.id===ne)}else if(L&&Gr(L[1])){let ne=L[0];U=l.findIndex(ae=>ae.route.id===ne)-1}let j=L?L[1].statusCode:void 0,F=j&&j>=400,M={currentUrl:k,currentParams:((V=o.matches[0])==null?void 0:V.params)||{},nextUrl:w,nextParams:l[0].params,...c,actionResult:B,actionStatus:j},J=l.map((ne,ae)=>{let{route:Q}=ne,be=null;if(U!=null&&ae>U?be=!1:Q.lazy?be=!0:Q.loader==null?be=!1:m?be=A0(Q,o.loaderData,o.errors):xL(o.loaderData,o.matches[ae],ne)&&(be=!0),be!==null)return w0(n,r,e,ne,f,t,be);let K=F?!1:p||k.pathname+k.search===w.pathname+w.search||k.search!==w.search||vL(o.matches[ae],ne),xe={...M,defaultShouldRevalidate:K},R=Zf(ne,xe);return w0(n,r,e,ne,f,t,R,xe)}),X=[];return v.forEach((ne,ae)=>{if(m||!l.some(I=>I.route.id===ne.routeId)||_.has(ae))return;let Q=o.fetchers.get(ae),be=Q&&Q.state!=="idle"&&Q.data===void 0,K=Es(A,ne.path,x);if(!K){if(O&&be)return;X.push({key:ae,routeId:ne.routeId,path:ne.path,matches:null,match:null,request:null,controller:null});return}if(S.has(ae))return;let xe=Pf(K,ne.path),R=new AbortController,le=pl(i,ne.path,R.signal),te=null;if(E.has(ae))E.delete(ae),te=vl(n,r,le,K,xe,f,t);else if(be)p&&(te=vl(n,r,le,K,xe,f,t));else{let I={...M,defaultShouldRevalidate:F?!1:p};Zf(xe,I)&&(te=vl(n,r,le,K,xe,f,t,I))}te&&X.push({key:ae,routeId:ne.routeId,path:ne.path,matches:te,match:xe,request:le,controller:R})}),{dsMatches:J,revalidatingFetchers:X}}function A0(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function xL(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function vL(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Zf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function $T(e,t,n,r,i,o){let l;if(e){let f=r[e];vt(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=n;let c=[],d=[];if(t.forEach(f=>{let m=l.find(p=>hN(f,p));m?d.push({existingRoute:m,newRoute:f}):c.push(f)}),c.length>0){let f=Ac(c,i,[e||"_","patch",String((l==null?void 0:l.length)||"0")],r);l.push(...f)}if(o&&d.length>0)for(let f=0;f<d.length;f++){let{existingRoute:m,newRoute:p}=d[f],E=m,[_]=Ac([p],i,[],{},!0);Object.assign(E,{element:_.element?_.element:E.element,errorElement:_.errorElement?_.errorElement:E.errorElement,hydrateFallbackElement:_.hydrateFallbackElement?_.hydrateFallbackElement:E.hydrateFallbackElement})}}function hN(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>hN(n,o))}):!1}var qT=new WeakMap,mN=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(vt(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let o=i.lazy[e];if(!o)return;let l=qT.get(i);l||(l={},qT.set(i,l));let c=l[e];if(c)return c;let d=(async()=>{let f=$3(e),p=i[e]!==void 0&&e!=="hasErrorBoundary";if(f)Sn(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(p)Sn(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let E=await o();E!=null&&(Object.assign(i,{[e]:E}),Object.assign(i,r(i)))}typeof i.lazy=="object"&&(i.lazy[e]=void 0,Object.values(i.lazy).every(E=>E===void 0)&&(i.lazy=void 0))})();return l[e]=d,d},YT=new WeakMap;function SL(e,t,n,r,i){let o=n[e.id];if(vt(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let m=YT.get(o);if(m)return{lazyRoutePromise:m,lazyHandlerPromise:m};let p=(async()=>{vt(typeof e.lazy=="function","No lazy route function found");let E=await e.lazy(),_={};for(let v in E){let S=E[v];if(S===void 0)continue;let A=Y3(v),O=o[v]!==void 0&&v!=="hasErrorBoundary";A?Sn(!A,"Route property "+v+" is not a supported property to be returned from a lazy route function. This property will be ignored."):O?Sn(!O,`Route "${o.id}" has a static property "${v}" defined but its lazy function is also returning a value for this property. The lazy route property "${v}" will be ignored.`):_[v]=S}Object.assign(o,_),Object.assign(o,{...r(o),lazy:void 0})})();return YT.set(o,p),p.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:p}}let l=Object.keys(e.lazy),c=[],d;for(let m of l){if(i&&i.includes(m))continue;let p=mN({key:m,route:e,manifest:n,mapRouteProperties:r});p&&(c.push(p),m===t&&(d=p))}let f=c.length>0?Promise.all(c).then(()=>{}):void 0;return f==null||f.catch(()=>{}),d==null||d.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:d}}async function GT(e){let t=e.matches.filter(i=>i.shouldLoad),n={};return(await Promise.all(t.map(i=>i.resolve()))).forEach((i,o)=>{n[t[o].route.id]=i}),n}async function NL(e){return e.matches.some(t=>t.route.unstable_middleware)?pN(e,!1,()=>GT(e),(t,n)=>({[n]:{type:"error",result:t}})):GT(e)}async function pN(e,t,n,r){let{matches:i,request:o,params:l,context:c}=e,d={handlerResult:void 0};try{let f=i.flatMap(p=>p.route.unstable_middleware?p.route.unstable_middleware.map(E=>[p.route.id,E]):[]),m=await gN({request:o,params:l,context:c},f,t,d,n);return t?m:d.handlerResult}catch(f){if(!d.middlewareError)throw f;let m=await r(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,m):m}}async function gN(e,t,n,r,i,o=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason?l.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${l.method} ${l.url}`);let c=t[o];if(!c)return r.handlerResult=await i(),r.handlerResult;let[d,f]=c,m=!1,p,E=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");m=!0,await gN(e,t,n,r,i,o+1)};try{let _=await f({request:e.request,params:e.params,context:e.context},E);return m?_===void 0?p:_:E()}catch(_){throw r.middlewareError?r.middlewareError.error!==_&&(r.middlewareError={routeId:d,error:_}):r.middlewareError={routeId:d,error:_},_}}function bN(e,t,n,r,i){let o=mN({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),l=SL(r.route,Ar(n.method)?"action":"loader",t,e,i);return{middleware:o,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function w0(e,t,n,r,i,o,l,c=null){let d=!1,f=bN(e,t,n,r,i);return{...r,_lazyPromises:f,shouldLoad:l,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(m){return d=!0,c?typeof m=="boolean"?Zf(r,{...c,defaultShouldRevalidate:m}):Zf(r,c):l},resolve(m){return d||l||m&&!Ar(n.method)&&(r.route.lazy||r.route.loader)?wL({request:n,match:r,lazyHandlerPromise:f==null?void 0:f.handler,lazyRoutePromise:f==null?void 0:f.route,handlerOverride:m,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function vl(e,t,n,r,i,o,l,c=null){return r.map(d=>d.route.id!==i.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:bN(e,t,n,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:w0(e,t,n,d,o,l,!0,c))}async function AL(e,t,n,r,i,o){n.some(f=>{var m;return(m=f._lazyPromises)==null?void 0:m.middleware})&&await Promise.all(n.map(f=>{var m;return(m=f._lazyPromises)==null?void 0:m.middleware}));let l={request:t,params:n[0].params,context:i,matches:n},d=await e({...l,fetcherKey:r,unstable_runClientMiddleware:f=>{let m=l;return pN(m,!1,()=>f({...m,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(p,E)=>({[E]:{type:"error",result:p}}))}});try{await Promise.all(n.flatMap(f=>{var m,p;return[(m=f._lazyPromises)==null?void 0:m.handler,(p=f._lazyPromises)==null?void 0:p.route]}))}catch{}return d}async function wL({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:i,scopedContext:o}){let l,c,d=Ar(e.method),f=d?"action":"loader",m=p=>{let E,_=new Promise((A,x)=>E=x);c=()=>E(),e.signal.addEventListener("abort",c);let v=A=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):p({request:e,params:t.params,context:o},...A!==void 0?[A]:[]),S=(async()=>{try{return{type:"data",result:await(i?i(x=>v(x)):v())}}catch(A){return{type:"error",result:A}}})();return Promise.race([S,_])};try{let p=d?t.route.action:t.route.loader;if(n||r)if(p){let E,[_]=await Promise.all([m(p).catch(v=>{E=v}),n,r]);if(E!==void 0)throw E;l=_}else{await n;let E=d?t.route.action:t.route.loader;if(E)[l]=await Promise.all([m(E),r]);else if(f==="action"){let _=new URL(e.url),v=_.pathname+_.search;throw ha(405,{method:e.method,pathname:v,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(p)l=await m(p);else{let E=new URL(e.url),_=E.pathname+E.search;throw ha(404,{pathname:_})}}catch(p){return{type:"error",result:p}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function CL(e){var r,i,o,l,c,d;let{result:t,type:n}=e;if(yN(t)){let f;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(m){return{type:"error",error:m}}return n==="error"?{type:"error",error:new Qf(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:"data",data:f,statusCode:t.status,headers:t.headers}}return n==="error"?JT(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Qf(((o=t.init)==null?void 0:o.status)||500,void 0,t.data),statusCode:wc(t)?t.status:void 0,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:wc(t)?t.status:void 0}:JT(t)?{type:"data",data:t.data,statusCode:(c=t.init)==null?void 0:c.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function RL(e,t,n,r,i){let o=e.headers.get("Location");if(vt(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!$b(o)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);o=N0(new URL(t.url),l,i,o),e.headers.set("Location",o)}return e}function VT(e,t,n){if($b(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=_a(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function pl(e,t,n,r){let i=e.createURL(EN(t)).toString(),o={signal:n};if(r&&Ar(r.formMethod)){let{formMethod:l,formEncType:c}=r;o.method=l.toUpperCase(),c==="application/json"?(o.headers=new Headers({"Content-Type":c}),o.body=JSON.stringify(r.json)):c==="text/plain"?o.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?o.body=C0(r.formData):o.body=r.formData}return new Request(i,o)}function C0(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function KT(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function OL(e,t,n,r=!1,i=!1){let o={},l=null,c,d=!1,f={},m=n&&Gr(n[1])?n[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let E=p.route.id,_=t[E];if(vt(!uo(_),"Cannot handle redirect results in processLoaderData"),Gr(_)){let v=_.error;if(m!==void 0&&(v=m,m=void 0),l=l||{},i)l[E]=v;else{let S=lo(e,E);l[S.route.id]==null&&(l[S.route.id]=v)}r||(o[E]=fN),d||(d=!0,c=wc(_.error)?_.error.status:500),_.headers&&(f[E]=_.headers)}else o[E]=_.data,_.statusCode&&_.statusCode!==200&&!d&&(c=_.statusCode),_.headers&&(f[E]=_.headers)}),m!==void 0&&n&&(l={[n[0]]:m},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:l,statusCode:c||200,loaderHeaders:f}}function XT(e,t,n,r,i,o){let{loaderData:l,errors:c}=OL(t,n,r);return i.filter(d=>!d.matches||d.matches.some(f=>f.shouldLoad)).forEach(d=>{let{key:f,match:m,controller:p}=d,E=o[f];if(vt(E,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(Gr(E)){let _=lo(e.matches,m==null?void 0:m.route.id);c&&c[_.route.id]||(c={...c,[_.route.id]:E.error}),e.fetchers.delete(f)}else if(uo(E))vt(!1,"Unhandled fetcher revalidation redirect");else{let _=hs(E.data);e.fetchers.set(f,_)}}),{loaderData:l,errors:c}}function WT(e,t,n,r){let i=Object.entries(t).filter(([,o])=>o!==fN).reduce((o,[l,c])=>(o[l]=c,o),{});for(let o of n){let l=o.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&o.route.loader&&(i[l]=e[l]),r&&r.hasOwnProperty(l))break}return i}function QT(e){return e?Gr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function lo(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ZT(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ha(e,{pathname:t,routeId:n,method:r,type:i,message:o}={}){let l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",c=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new Qf(e||500,l,new Error(c),!0)}function mf(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(uo(i))return{key:r,result:i}}}function EN(e){let t=typeof e=="string"?Ls(e):e;return Ns({...t,hash:""})}function kL(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function LL(e){return yN(e.result)&&pL.has(e.result.status)}function Gr(e){return e.type==="error"}function uo(e){return(e&&e.type)==="redirect"}function JT(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function yN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function IL(e){return mL.has(e.toUpperCase())}function Ar(e){return fL.has(e.toUpperCase())}function qb(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Pf(e,t){let n=typeof t=="string"?Ls(t).search:t.search;if(e[e.length-1].route.index&&qb(n||""))return e[e.length-1];let r=uN(e);return r[r.length-1]}function ex(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function yg(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function DL(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ec(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ML(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function hs(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function PL(e,t){try{let n=e.sessionStorage.getItem(dN);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function BL(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(dN,JSON.stringify(n))}catch(r){Sn(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function UL(){let e,t,n=new Promise((r,i)=>{e=async o=>{r(o);try{await n}catch{}},t=async o=>{i(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ao=N.createContext(null);Ao.displayName="DataRouter";var Hc=N.createContext(null);Hc.displayName="DataRouterState";N.createContext(!1);var Yb=N.createContext({isTransitioning:!1});Yb.displayName="ViewTransition";var _N=N.createContext(new Map);_N.displayName="Fetchers";var FL=N.createContext(null);FL.displayName="Await";var Pa=N.createContext(null);Pa.displayName="Navigation";var wh=N.createContext(null);wh.displayName="Location";var Ta=N.createContext({outlet:null,matches:[],isDataRoute:!1});Ta.displayName="Route";var Gb=N.createContext(null);Gb.displayName="RouteError";function HL(e,{relative:t}={}){vt($l(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=N.useContext(Pa),{hash:i,pathname:o,search:l}=jc(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:ei([n,o])),r.createHref({pathname:c,search:l,hash:i})}function $l(){return N.useContext(wh)!=null}function ai(){return vt($l(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(wh).location}var TN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xN(e){N.useContext(Pa).static||N.useLayoutEffect(e)}function vN(){let{isDataRoute:e}=N.useContext(Ta);return e?tI():jL()}function jL(){vt($l(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(Ao),{basename:t,navigator:n}=N.useContext(Pa),{matches:r}=N.useContext(Ta),{pathname:i}=ai(),o=JSON.stringify(Nh(r)),l=N.useRef(!1);return xN(()=>{l.current=!0}),N.useCallback((d,f={})=>{if(Sn(l.current,TN),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=Ah(d,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ei([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,o,i,e])}var zL=N.createContext(null);function $L(e){let t=N.useContext(Ta).outlet;return t&&N.createElement(zL.Provider,{value:e},t)}function Vb(){let{matches:e}=N.useContext(Ta),t=e[e.length-1];return t?t.params:{}}function jc(e,{relative:t}={}){let{matches:n}=N.useContext(Ta),{pathname:r}=ai(),i=JSON.stringify(Nh(n));return N.useMemo(()=>Ah(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function qL(e,t,n,r){vt($l(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=N.useContext(Pa),{matches:o}=N.useContext(Ta),l=o[o.length-1],c=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",m=l&&l.route;{let x=m&&m.path||"";SN(d,!m||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) 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.
60
-
61
- Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let p=ai(),E;E=p;let _=E.pathname||"/",v=_;if(f!=="/"){let x=f.replace(/^\//,"").split("/");v="/"+_.replace(/^\//,"").split("/").slice(x.length).join("/")}let S=Es(e,{pathname:v});return Sn(m||S!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Sn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.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.`),XL(S&&S.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:ei([f,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:ei([f,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r)}function YL(){let e=eI(),t=wc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:o},"ErrorBoundary")," or"," ",N.createElement("code",{style:o},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,l)}var GL=N.createElement(YL,null),VL=class extends N.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?N.createElement(Ta.Provider,{value:this.props.routeContext},N.createElement(Gb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function KL({routeContext:e,match:t,children:n}){let r=N.useContext(Ao);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Ta.Provider,{value:e},n)}function XL(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,o=n==null?void 0:n.errors;if(o!=null){let d=i.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);vt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:m,errors:p}=n,E=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||E){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let p,E=!1,_=null,v=null;n&&(p=o&&f.route.id?o[f.route.id]:void 0,_=f.route.errorElement||GL,l&&(c<0&&m===0?(SN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,v=null):c===m&&(E=!0,v=f.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,m+1)),A=()=>{let x;return p?x=_:E?x=v:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(KL,{match:f,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?N.createElement(VL,{location:n.location,revalidation:n.revalidation,component:_,error:p,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):A()},null)}function Kb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function WL(e){let t=N.useContext(Ao);return vt(t,Kb(e)),t}function QL(e){let t=N.useContext(Hc);return vt(t,Kb(e)),t}function ZL(e){let t=N.useContext(Ta);return vt(t,Kb(e)),t}function Xb(e){let t=ZL(e),n=t.matches[t.matches.length-1];return vt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function JL(){return Xb("useRouteId")}function eI(){var r;let e=N.useContext(Gb),t=QL("useRouteError"),n=Xb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function tI(){let{router:e}=WL("useNavigate"),t=Xb("useNavigate"),n=N.useRef(!1);return xN(()=>{n.current=!0}),N.useCallback(async(i,o={})=>{Sn(n.current,TN),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var tx={};function SN(e,t,n){!t&&!tx[e]&&(tx[e]=!0,Sn(!1,n))}var nx={};function rx(e,t){!e&&!nx[t]&&(nx[t]=!0,console.warn(t))}function nI(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Sn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:N.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Sn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Sn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var rI=["HydrateFallback","hydrateFallbackElement"],aI=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function iI({router:e,flushSync:t}){let[n,r]=N.useState(e.state),[i,o]=N.useState(),[l,c]=N.useState({isTransitioning:!1}),[d,f]=N.useState(),[m,p]=N.useState(),[E,_]=N.useState(),v=N.useRef(new Map),S=N.useCallback((L,{deletedFetchers:B,flushSync:k,viewTransitionOpts:w})=>{L.fetchers.forEach((j,F)=>{j.data!==void 0&&v.current.set(F,j.data)}),B.forEach(j=>v.current.delete(j)),rx(k===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let U=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(rx(w==null||U,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!w||!U){t&&k?t(()=>r(L)):N.startTransition(()=>r(L));return}if(t&&k){t(()=>{m&&(d&&d.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:w.currentLocation,nextLocation:w.nextLocation})});let j=e.window.document.startViewTransition(()=>{t(()=>r(L))});j.finished.finally(()=>{t(()=>{f(void 0),p(void 0),o(void 0),c({isTransitioning:!1})})}),t(()=>p(j));return}m?(d&&d.resolve(),m.skipTransition(),_({state:L,currentLocation:w.currentLocation,nextLocation:w.nextLocation})):(o(L),c({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}))},[e.window,t,m,d]);N.useLayoutEffect(()=>e.subscribe(S),[e,S]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new aI)},[l]),N.useEffect(()=>{if(d&&i&&e.window){let L=i,B=d.promise,k=e.window.document.startViewTransition(async()=>{N.startTransition(()=>r(L)),await B});k.finished.finally(()=>{f(void 0),p(void 0),o(void 0),c({isTransitioning:!1})}),p(k)}},[i,d,e.window]),N.useEffect(()=>{d&&i&&n.location.key===i.location.key&&d.resolve()},[d,m,n.location,i]),N.useEffect(()=>{!l.isTransitioning&&E&&(o(E.state),c({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),_(void 0))},[l.isTransitioning,E]);let A=N.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:L=>e.navigate(L),push:(L,B,k)=>e.navigate(L,{state:B,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(L,B,k)=>e.navigate(L,{replace:!0,state:B,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[e]),x=e.basename||"/",O=N.useMemo(()=>({router:e,navigator:A,static:!1,basename:x}),[e,A,x]);return N.createElement(N.Fragment,null,N.createElement(Ao.Provider,{value:O},N.createElement(Hc.Provider,{value:n},N.createElement(_N.Provider,{value:v.current},N.createElement(Yb.Provider,{value:l},N.createElement(uI,{basename:x,location:n.location,navigationType:n.historyAction,navigator:A},N.createElement(sI,{routes:e.routes,future:e.future,state:n})))))),null)}var sI=N.memo(oI);function oI({routes:e,future:t,state:n}){return qL(e,void 0,n,t)}function Bf({to:e,replace:t,state:n,relative:r}){vt($l(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=N.useContext(Pa);Sn(!i,"<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:o}=N.useContext(Ta),{pathname:l}=ai(),c=vN(),d=Ah(e,Nh(o),l,r==="path"),f=JSON.stringify(d);return N.useEffect(()=>{c(JSON.parse(f),{replace:t,state:n,relative:r})},[c,f,r,t,n]),null}function lI(e){return $L(e.context)}function uI({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){vt(!$l(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:i,static:o,future:{}}),[l,i,o]);typeof n=="string"&&(n=Ls(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:E="default"}=n,_=N.useMemo(()=>{let v=_a(d,l);return v==null?null:{location:{pathname:v,search:f,hash:m,state:p,key:E},navigationType:r}},[l,d,f,m,p,E,r]);return Sn(_!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:N.createElement(Pa.Provider,{value:c},N.createElement(wh.Provider,{children:t,value:_}))}var Uf="get",Ff="application/x-www-form-urlencoded";function Ch(e){return e!=null&&typeof e.tagName=="string"}function cI(e){return Ch(e)&&e.tagName.toLowerCase()==="button"}function dI(e){return Ch(e)&&e.tagName.toLowerCase()==="form"}function fI(e){return Ch(e)&&e.tagName.toLowerCase()==="input"}function hI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mI(e,t){return e.button===0&&(!t||t==="_self")&&!hI(e)}var pf=null;function pI(){if(pf===null)try{new FormData(document.createElement("form"),0),pf=!1}catch{pf=!0}return pf}var gI=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _g(e){return e!=null&&!gI.has(e)?(Sn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ff}"`),null):e}function bI(e,t){let n,r,i,o,l;if(dI(e)){let c=e.getAttribute("action");r=c?_a(c,t):null,n=e.getAttribute("method")||Uf,i=_g(e.getAttribute("enctype"))||Ff,o=new FormData(e)}else if(cI(e)||fI(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?_a(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Uf,i=_g(e.getAttribute("formenctype"))||_g(c.getAttribute("enctype"))||Ff,o=new FormData(c,e),!pI()){let{name:f,type:m,value:p}=e;if(m==="image"){let E=f?`${f}.`:"";o.append(`${E}x`,"0"),o.append(`${E}y`,"0")}else f&&o.append(f,p)}}else{if(Ch(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Uf,r=null,i=Ff,l=e}return o&&i==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function EI(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&_a(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function yI(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _I(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function TI(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let l=await yI(o,n);return l.links?l.links():[]}return[]}));return NI(r.flat(1).filter(_I).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function ax(e,t,n,r,i,o){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>{var m;return n[f].pathname!==d.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==d.params["*"]};return o==="assets"?t.filter((d,f)=>l(d,f)||c(d,f)):o==="data"?t.filter((d,f)=>{var p;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(l(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let E=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function xI(e,t,{includeHydrateFallback:n}={}){return vI(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function vI(e){return[...new Set(e)]}function SI(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function NI(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(SI(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function NN(){let e=N.useContext(Ao);return Wb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function AI(){let e=N.useContext(Hc);return Wb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qb=N.createContext(void 0);Qb.displayName="FrameworkContext";function AN(){let e=N.useContext(Qb);return Wb(e,"You must render this element inside a <HydratedRouter> element"),e}function wI(e,t){let n=N.useContext(Qb),[r,i]=N.useState(!1),[o,l]=N.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,E=N.useRef(null);N.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let S=x=>{x.forEach(O=>{l(O.isIntersecting)})},A=new IntersectionObserver(S,{threshold:.5});return E.current&&A.observe(E.current),()=>{A.disconnect()}}},[e]),N.useEffect(()=>{if(r){let S=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(S)}}},[r]);let _=()=>{i(!0)},v=()=>{i(!1),l(!1)};return n?e!=="intent"?[o,E,{}]:[o,E,{onFocus:tc(c,_),onBlur:tc(d,v),onMouseEnter:tc(f,_),onMouseLeave:tc(m,v),onTouchStart:tc(p,_)}]:[!1,E,{}]}function tc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function CI({page:e,...t}){let{router:n}=NN(),r=N.useMemo(()=>Es(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?N.createElement(OI,{page:e,matches:r,...t}):null}function RI(e){let{manifest:t,routeModules:n}=AN(),[r,i]=N.useState([]);return N.useEffect(()=>{let o=!1;return TI(e,t,n).then(l=>{o||i(l)}),()=>{o=!0}},[e,t,n]),r}function OI({page:e,matches:t,...n}){let r=ai(),{manifest:i,routeModules:o}=AN(),{basename:l}=NN(),{loaderData:c,matches:d}=AI(),f=N.useMemo(()=>ax(e,t,d,i,r,"data"),[e,t,d,i,r]),m=N.useMemo(()=>ax(e,t,d,i,r,"assets"),[e,t,d,i,r]),p=N.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,S=!1;if(t.forEach(x=>{var L;let O=i.routes[x.route.id];!O||!O.hasLoader||(!f.some(B=>B.route.id===x.route.id)&&x.route.id in c&&((L=o[x.route.id])!=null&&L.shouldRevalidate)||O.hasClientLoader?S=!0:v.add(x.route.id))}),v.size===0)return[];let A=EI(e,l,"data");return S&&v.size>0&&A.searchParams.set("_routes",t.filter(x=>v.has(x.route.id)).map(x=>x.route.id).join(",")),[A.pathname+A.search]},[l,c,r,i,f,t,e,o]),E=N.useMemo(()=>xI(m,i),[m,i]),_=RI(m);return N.createElement(N.Fragment,null,p.map(v=>N.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),E.map(v=>N.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),_.map(({key:v,link:S})=>N.createElement("link",{key:v,...S})))}function kI(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var wN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wN&&(window.__reactRouterVersion="7.7.1")}catch{}function LI(e,t){return _L({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:F3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||II(),routes:e,mapRouteProperties:nI,hydrationRouteProperties:rI,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function II(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:DI(e.errors)}),e}function DI(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Qf(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}var CN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mn=N.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:l,state:c,target:d,to:f,preventScrollReset:m,viewTransition:p,...E},_){let{basename:v}=N.useContext(Pa),S=typeof f=="string"&&CN.test(f),A,x=!1;if(typeof f=="string"&&S&&(A=f,wN))try{let F=new URL(window.location.href),M=f.startsWith("//")?new URL(F.protocol+f):new URL(f),J=_a(M.pathname,v);M.origin===F.origin&&J!=null?f=J+M.search+M.hash:x=!0}catch{Sn(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let O=HL(f,{relative:i}),[L,B,k]=wI(r,E),w=UI(f,{replace:l,state:c,target:d,preventScrollReset:m,relative:i,viewTransition:p});function U(F){t&&t(F),F.defaultPrevented||w(F)}let j=N.createElement("a",{...E,...k,href:A||O,onClick:x||o?t:U,ref:kI(_,B),target:d,"data-discover":!S&&n==="render"?"true":void 0});return L&&!S?N.createElement(N.Fragment,null,j,N.createElement(CI,{page:O})):j});Mn.displayName="Link";var MI=N.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:l,viewTransition:c,children:d,...f},m){let p=jc(l,{relative:f.relative}),E=ai(),_=N.useContext(Hc),{navigator:v,basename:S}=N.useContext(Pa),A=_!=null&&$I(p)&&c===!0,x=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,O=E.pathname,L=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(O=O.toLowerCase(),L=L?L.toLowerCase():null,x=x.toLowerCase()),L&&S&&(L=_a(L,S)||L);const B=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let k=O===x||!i&&O.startsWith(x)&&O.charAt(B)==="/",w=L!=null&&(L===x||!i&&L.startsWith(x)&&L.charAt(x.length)==="/"),U={isActive:k,isPending:w,isTransitioning:A},j=k?t:void 0,F;typeof r=="function"?F=r(U):F=[r,k?"active":null,w?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let M=typeof o=="function"?o(U):o;return N.createElement(Mn,{...f,"aria-current":j,className:F,ref:m,style:M,to:l,viewTransition:c},typeof d=="function"?d(U):d)});MI.displayName="NavLink";var PI=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:l=Uf,action:c,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...E},_)=>{let v=jI(),S=zI(c,{relative:f}),A=l.toLowerCase()==="get"?"get":"post",x=typeof c=="string"&&CN.test(c),O=L=>{if(d&&d(L),L.defaultPrevented)return;L.preventDefault();let B=L.nativeEvent.submitter,k=(B==null?void 0:B.getAttribute("formmethod"))||l;v(B||L.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:i,state:o,relative:f,preventScrollReset:m,viewTransition:p})};return N.createElement("form",{ref:_,method:A,action:S,onSubmit:r?d:O,...E,"data-discover":!x&&e==="render"?"true":void 0})});PI.displayName="Form";function BI(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RN(e){let t=N.useContext(Ao);return vt(t,BI(e)),t}function UI(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:l}={}){let c=vN(),d=ai(),f=jc(e,{relative:o});return N.useCallback(m=>{if(mI(m,t)){m.preventDefault();let p=n!==void 0?n:Ns(d)===Ns(f);c(e,{replace:p,state:r,preventScrollReset:i,relative:o,viewTransition:l})}},[d,c,f,n,r,t,e,i,o,l])}var FI=0,HI=()=>`__${String(++FI)}__`;function jI(){let{router:e}=RN("useSubmit"),{basename:t}=N.useContext(Pa),n=JL();return N.useCallback(async(r,i={})=>{let{action:o,method:l,encType:c,formData:d,body:f}=bI(r,t);if(i.navigate===!1){let m=i.fetcherKey||HI();await e.fetch(m,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||l,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||l,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function zI(e,{relative:t}={}){let{basename:n}=N.useContext(Pa),r=N.useContext(Ta);vt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...jc(e||".",{relative:t})},l=ai();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),d=c.getAll("index");if(d.some(m=>m==="")){c.delete("index"),d.filter(p=>p).forEach(p=>c.append("index",p));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ei([n,o.pathname])),Ns(o)}function $I(e,{relative:t}={}){let n=N.useContext(Yb);vt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=RN("useViewTransitionState"),i=jc(e,{relative:t});if(!n.isTransitioning)return!1;let o=_a(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=_a(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wf(i.pathname,l)!=null||Wf(i.pathname,o)!=null}var Cl=aN();const qI=zl(Cl);function YI(e){return N.createElement(iI,{flushSync:Cl.flushSync,...e})}function ix(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function go(...e){return t=>{let n=!1;const r=e.map(i=>{const o=ix(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():ix(e[i],null)}}}}function yn(...e){return N.useCallback(go(...e),e)}function Rl(e){const t=GI(e),n=N.forwardRef((r,i)=>{const{children:o,...l}=r,c=N.Children.toArray(o),d=c.find(KI);if(d){const f=d.props.children,m=c.map(p=>p===d?N.Children.count(f)>1?N.Children.only(null):N.isValidElement(f)?f.props.children:null:p);return b.jsx(t,{...l,ref:i,children:N.isValidElement(f)?N.cloneElement(f,void 0,m):null})}return b.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var ON=Rl("Slot");function GI(e){const t=N.forwardRef((n,r)=>{const{children:i,...o}=n;if(N.isValidElement(i)){const l=WI(i),c=XI(o,i.props);return i.type!==N.Fragment&&(c.ref=r?go(r,l):l),N.cloneElement(i,c)}return N.Children.count(i)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kN=Symbol("radix.slottable");function VI(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=kN,t}function KI(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kN}function XI(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...c)=>{const d=o(...c);return i(...c),d}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function WI(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function LN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=LN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function IN(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=LN(e))&&(r&&(r+=" "),r+=t);return r}const sx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ox=IN,QI=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ox(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(f=>{const m=n==null?void 0:n[f],p=o==null?void 0:o[f];if(m===null)return null;const E=sx(m)||sx(p);return i[f][E]}),c=n&&Object.entries(n).reduce((f,m)=>{let[p,E]=m;return E===void 0||(f[p]=E),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:p,className:E,..._}=m;return Object.entries(_).every(v=>{let[S,A]=v;return Array.isArray(A)?A.includes({...o,...c}[S]):{...o,...c}[S]===A})?[...f,p,E]:f},[]);return ox(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)};/**
62
- * @license lucide-react v0.536.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const ZI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),JI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),lx=e=>{const t=JI(e);return t.charAt(0).toUpperCase()+t.slice(1)},DN=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),eD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
67
- * @license lucide-react v0.536.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */var tD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
- * @license lucide-react v0.536.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const nD=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...c},d)=>N.createElement("svg",{ref:d,...tD,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:DN("lucide",i),...!o&&!eD(c)&&{"aria-hidden":"true"},...c},[...l.map(([f,m])=>N.createElement(f,m)),...Array.isArray(o)?o:[o]]));/**
77
- * @license lucide-react v0.536.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const sn=(e,t)=>{const n=N.forwardRef(({className:r,...i},o)=>N.createElement(nD,{ref:o,iconNode:t,className:DN(`lucide-${ZI(lx(e))}`,`lucide-${e}`,r),...i}));return n.displayName=lx(e),n};/**
82
- * @license lucide-react v0.536.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const rD=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],bo=sn("braces",rD);/**
87
- * @license lucide-react v0.536.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const aD=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],iD=sn("check",aD);/**
92
- * @license lucide-react v0.536.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const sD=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],oD=sn("chevron-left",sD);/**
97
- * @license lucide-react v0.536.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const lD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Zb=sn("chevron-right",lD);/**
102
- * @license lucide-react v0.536.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const uD=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],cD=sn("clipboard-copy",uD);/**
107
- * @license lucide-react v0.536.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const dD=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fD=sn("clock",dD);/**
112
- * @license lucide-react v0.536.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const hD=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],MN=sn("component",hD);/**
117
- * @license lucide-react v0.536.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const mD=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],PN=sn("download",mD);/**
122
- * @license lucide-react v0.536.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const pD=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],gD=sn("ellipsis",pD);/**
127
- * @license lucide-react v0.536.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const bD=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ED=sn("external-link",bD);/**
132
- * @license lucide-react v0.536.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const yD=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],BN=sn("file-json",yD);/**
137
- * @license lucide-react v0.536.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const _D=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],UN=sn("file-text",_D);/**
142
- * @license lucide-react v0.536.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const TD=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],FN=sn("file",TD);/**
147
- * @license lucide-react v0.536.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */const xD=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],vD=sn("house",xD);/**
152
- * @license lucide-react v0.536.0 - ISC
153
- *
154
- * This source code is licensed under the ISC license.
155
- * See the LICENSE file in the root directory of this source tree.
156
- */const SD=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],ND=sn("layout-dashboard",SD);/**
157
- * @license lucide-react v0.536.0 - ISC
158
- *
159
- * This source code is licensed under the ISC license.
160
- * See the LICENSE file in the root directory of this source tree.
161
- */const AD=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Eo=sn("link-2",AD);/**
162
- * @license lucide-react v0.536.0 - ISC
163
- *
164
- * This source code is licensed under the ISC license.
165
- * See the LICENSE file in the root directory of this source tree.
166
- */const wD=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],CD=sn("moon",wD);/**
167
- * @license lucide-react v0.536.0 - ISC
168
- *
169
- * This source code is licensed under the ISC license.
170
- * See the LICENSE file in the root directory of this source tree.
171
- */const RD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],OD=sn("panel-left",RD);/**
172
- * @license lucide-react v0.536.0 - ISC
173
- *
174
- * This source code is licensed under the ISC license.
175
- * See the LICENSE file in the root directory of this source tree.
176
- */const kD=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],HN=sn("pin",kD);/**
177
- * @license lucide-react v0.536.0 - ISC
178
- *
179
- * This source code is licensed under the ISC license.
180
- * See the LICENSE file in the root directory of this source tree.
181
- */const LD=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],ID=sn("pin-off",LD);/**
182
- * @license lucide-react v0.536.0 - ISC
183
- *
184
- * This source code is licensed under the ISC license.
185
- * See the LICENSE file in the root directory of this source tree.
186
- */const DD=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],jN=sn("radio",DD);/**
187
- * @license lucide-react v0.536.0 - ISC
188
- *
189
- * This source code is licensed under the ISC license.
190
- * See the LICENSE file in the root directory of this source tree.
191
- */const MD=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Rh=sn("search",MD);/**
192
- * @license lucide-react v0.536.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */const PD=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],zc=sn("server",PD);/**
197
- * @license lucide-react v0.536.0 - ISC
198
- *
199
- * This source code is licensed under the ISC license.
200
- * See the LICENSE file in the root directory of this source tree.
201
- */const BD=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],UD=sn("sun",BD);/**
202
- * @license lucide-react v0.536.0 - ISC
203
- *
204
- * This source code is licensed under the ISC license.
205
- * See the LICENSE file in the root directory of this source tree.
206
- */const FD=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],zN=sn("upload",FD);/**
207
- * @license lucide-react v0.536.0 - ISC
208
- *
209
- * This source code is licensed under the ISC license.
210
- * See the LICENSE file in the root directory of this source tree.
211
- */const HD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$N=sn("x",HD),Tg=768;function jD(){const[e,t]=N.useState(void 0);return N.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Tg-1}px)`),r=()=>{t(window.innerWidth<Tg)};return n.addEventListener("change",r),t(window.innerWidth<Tg),()=>n.removeEventListener("change",r)},[]),!!e}const Jb="-",zD=e=>{const t=qD(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(Jb);return c[0]===""&&c.length!==1&&c.shift(),qN(c,t)||$D(l)},getConflictingClassGroupIds:(l,c)=>{const d=n[l]||[];return c&&r[l]?[...d,...r[l]]:d}}},qN=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?qN(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Jb);return(l=t.validators.find(({validator:c})=>c(o)))==null?void 0:l.classGroupId},ux=/^\[(.+)\]$/,$D=e=>{if(ux.test(e)){const t=ux.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},qD=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)R0(n[i],r,i,t);return r},R0=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:cx(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(YD(i)){R0(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,l])=>{R0(l,cx(t,o),n,r)})})},cx=(e,t)=>{let n=e;return t.split(Jb).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},YD=e=>e.isThemeGetter,GD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return i(o,l),l},set(o,l){n.has(o)?n.set(o,l):i(o,l)}}},O0="!",k0=":",VD=k0.length,KD=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let l=0,c=0,d=0,f;for(let v=0;v<i.length;v++){let S=i[v];if(l===0&&c===0){if(S===k0){o.push(i.slice(d,v)),d=v+VD;continue}if(S==="/"){f=v;continue}}S==="["?l++:S==="]"?l--:S==="("?c++:S===")"&&c--}const m=o.length===0?i:i.substring(d),p=XD(m),E=p!==m,_=f&&f>d?f-d:void 0;return{modifiers:o,hasImportantModifier:E,baseClassName:p,maybePostfixModifierPosition:_}};if(t){const i=t+k0,o=r;r=l=>l.startsWith(i)?o(l.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},XD=e=>e.endsWith(O0)?e.substring(0,e.length-1):e.startsWith(O0)?e.substring(1):e,WD=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(i.push(...o.sort(),l),o=[]):o.push(l)}),i.push(...o.sort()),i}},QD=e=>({cache:GD(e.cacheSize),parseClassName:KD(e),sortModifiers:WD(e),...zD(e)}),ZD=/\s+/,JD=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,l=[],c=e.trim().split(ZD);let d="";for(let f=c.length-1;f>=0;f-=1){const m=c[f],{isExternal:p,modifiers:E,hasImportantModifier:_,baseClassName:v,maybePostfixModifierPosition:S}=n(m);if(p){d=m+(d.length>0?" "+d:d);continue}let A=!!S,x=r(A?v.substring(0,S):v);if(!x){if(!A){d=m+(d.length>0?" "+d:d);continue}if(x=r(v),!x){d=m+(d.length>0?" "+d:d);continue}A=!1}const O=o(E).join(":"),L=_?O+O0:O,B=L+x;if(l.includes(B))continue;l.push(B);const k=i(x,A);for(let w=0;w<k.length;++w){const U=k[w];l.push(L+U)}d=m+(d.length>0?" "+d:d)}return d};function eM(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=YN(t))&&(r&&(r+=" "),r+=n);return r}const YN=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=YN(e[r]))&&(n&&(n+=" "),n+=t);return n};function tM(e,...t){let n,r,i,o=l;function l(d){const f=t.reduce((m,p)=>p(m),e());return n=QD(f),r=n.cache.get,i=n.cache.set,o=c,c(d)}function c(d){const f=r(d);if(f)return f;const m=JD(d,n);return i(d,m),m}return function(){return o(eM.apply(null,arguments))}}const jn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},GN=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,VN=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nM=/^\d+\/\d+$/,rM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,aM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ul=e=>nM.test(e),_t=e=>!!e&&!Number.isNaN(Number(e)),ds=e=>!!e&&Number.isInteger(Number(e)),xg=e=>e.endsWith("%")&&_t(e.slice(0,-1)),Ri=e=>rM.test(e),lM=()=>!0,uM=e=>aM.test(e)&&!iM.test(e),KN=()=>!1,cM=e=>sM.test(e),dM=e=>oM.test(e),fM=e=>!$e(e)&&!qe(e),hM=e=>ql(e,QN,KN),$e=e=>GN.test(e),io=e=>ql(e,ZN,uM),vg=e=>ql(e,EM,_t),dx=e=>ql(e,XN,KN),mM=e=>ql(e,WN,dM),gf=e=>ql(e,JN,cM),qe=e=>VN.test(e),nc=e=>Yl(e,ZN),pM=e=>Yl(e,yM),fx=e=>Yl(e,XN),gM=e=>Yl(e,QN),bM=e=>Yl(e,WN),bf=e=>Yl(e,JN,!0),ql=(e,t,n)=>{const r=GN.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Yl=(e,t,n=!1)=>{const r=VN.exec(e);return r?r[1]?t(r[1]):n:!1},XN=e=>e==="position"||e==="percentage",WN=e=>e==="image"||e==="url",QN=e=>e==="length"||e==="size"||e==="bg-size",ZN=e=>e==="length",EM=e=>e==="number",yM=e=>e==="family-name",JN=e=>e==="shadow",_M=()=>{const e=jn("color"),t=jn("font"),n=jn("text"),r=jn("font-weight"),i=jn("tracking"),o=jn("leading"),l=jn("breakpoint"),c=jn("container"),d=jn("spacing"),f=jn("radius"),m=jn("shadow"),p=jn("inset-shadow"),E=jn("text-shadow"),_=jn("drop-shadow"),v=jn("blur"),S=jn("perspective"),A=jn("aspect"),x=jn("ease"),O=jn("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...B(),qe,$e],w=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],j=()=>[qe,$e,d],F=()=>[ul,"full","auto",...j()],M=()=>[ds,"none","subgrid",qe,$e],J=()=>["auto",{span:["full",ds,qe,$e]},ds,qe,$e],X=()=>[ds,"auto",qe,$e],V=()=>["auto","min","max","fr",qe,$e],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...j()],be=()=>[ul,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],K=()=>[e,qe,$e],xe=()=>[...B(),fx,dx,{position:[qe,$e]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",gM,hM,{size:[qe,$e]}],te=()=>[xg,nc,io],I=()=>["","none","full",f,qe,$e],ce=()=>["",_t,nc,io],Te=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Pe=()=>[_t,xg,fx,dx],je=()=>["","none",v,qe,$e],Ze=()=>["none",_t,qe,$e],Ue=()=>["none",_t,qe,$e],Pt=()=>[_t,qe,$e],mn=()=>[ul,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ri],breakpoint:[Ri],color:[lM],container:[Ri],"drop-shadow":[Ri],ease:["in","out","in-out"],font:[fM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ri],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ri],shadow:[Ri],spacing:["px",_t],text:[Ri],"text-shadow":[Ri],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ul,$e,qe,A]}],container:["container"],columns:[{columns:[_t,$e,qe,c]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[ds,"auto",qe,$e]}],basis:[{basis:[ul,"full","auto",c,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_t,ul,"auto","initial","none",$e]}],grow:[{grow:["",_t,qe,$e]}],shrink:[{shrink:["",_t,qe,$e]}],order:[{order:[ds,"first","last","none",qe,$e]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:be()}],w:[{w:[c,"screen",...be()]}],"min-w":[{"min-w":[c,"screen","none",...be()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...be()]}],h:[{h:["screen","lh",...be()]}],"min-h":[{"min-h":["screen","lh","none",...be()]}],"max-h":[{"max-h":["screen","lh",...be()]}],"font-size":[{text:["base",n,nc,io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,qe,vg]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xg,$e]}],"font-family":[{font:[pM,$e,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,qe,$e]}],"line-clamp":[{"line-clamp":[_t,"none",qe,vg]}],leading:[{leading:[o,...j()]}],"list-image":[{"list-image":["none",qe,$e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,$e]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[_t,"from-font","auto",qe,io]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[_t,"auto",qe,$e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe,$e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qe,$e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:xe()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ds,qe,$e],radial:["",qe,$e],conic:[ds,qe,$e]},bM,mM]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_t,qe,$e]}],"outline-w":[{outline:["",_t,nc,io]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",m,bf,gf]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",p,bf,gf]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[_t,io]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",E,bf,gf]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[_t,qe,$e]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_t]}],"mask-image-linear-from-pos":[{"mask-linear-from":Pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Pe()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":Pe()}],"mask-image-t-to-pos":[{"mask-t-to":Pe()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":Pe()}],"mask-image-r-to-pos":[{"mask-r-to":Pe()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":Pe()}],"mask-image-b-to-pos":[{"mask-b-to":Pe()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":Pe()}],"mask-image-l-to-pos":[{"mask-l-to":Pe()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":Pe()}],"mask-image-x-to-pos":[{"mask-x-to":Pe()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":Pe()}],"mask-image-y-to-pos":[{"mask-y-to":Pe()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[qe,$e]}],"mask-image-radial-from-pos":[{"mask-radial-from":Pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Pe()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[_t]}],"mask-image-conic-from-pos":[{"mask-conic-from":Pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Pe()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xe()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,$e]}],filter:[{filter:["","none",qe,$e]}],blur:[{blur:je()}],brightness:[{brightness:[_t,qe,$e]}],contrast:[{contrast:[_t,qe,$e]}],"drop-shadow":[{"drop-shadow":["","none",_,bf,gf]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",_t,qe,$e]}],"hue-rotate":[{"hue-rotate":[_t,qe,$e]}],invert:[{invert:["",_t,qe,$e]}],saturate:[{saturate:[_t,qe,$e]}],sepia:[{sepia:["",_t,qe,$e]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,$e]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[_t,qe,$e]}],"backdrop-contrast":[{"backdrop-contrast":[_t,qe,$e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_t,qe,$e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_t,qe,$e]}],"backdrop-invert":[{"backdrop-invert":["",_t,qe,$e]}],"backdrop-opacity":[{"backdrop-opacity":[_t,qe,$e]}],"backdrop-saturate":[{"backdrop-saturate":[_t,qe,$e]}],"backdrop-sepia":[{"backdrop-sepia":["",_t,qe,$e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",qe,$e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_t,"initial",qe,$e]}],ease:[{ease:["linear","initial",x,qe,$e]}],delay:[{delay:[_t,qe,$e]}],animate:[{animate:["none",O,qe,$e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,qe,$e]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:Ue()}],"scale-x":[{"scale-x":Ue()}],"scale-y":[{"scale-y":Ue()}],"scale-z":[{"scale-z":Ue()}],"scale-3d":["scale-3d"],skew:[{skew:Pt()}],"skew-x":[{"skew-x":Pt()}],"skew-y":[{"skew-y":Pt()}],transform:[{transform:[qe,$e,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mn()}],"translate-x":[{"translate-x":mn()}],"translate-y":[{"translate-y":mn()}],"translate-z":[{"translate-z":mn()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",qe,$e]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",qe,$e]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[_t,nc,io,vg]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},TM=tM(_M);function et(...e){return TM(IN(e))}const eA=QI("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ii({className:e,variant:t,size:n,asChild:r=!1,...i}){const o=r?ON:"button";return b.jsx(o,{"data-slot":"button",className:et(eA({variant:t,size:n,className:e})),...i})}function tA({className:e,type:t,...n}){return b.jsx("input",{type:t,"data-slot":"input",className:et("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}var xM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ot=xM.reduce((e,t)=>{const n=Rl(`Primitive.${t}`),r=N.forwardRef((i,o)=>{const{asChild:l,...c}=i,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vM(e,t){e&&Cl.flushSync(()=>e.dispatchEvent(t))}var SM="Separator",hx="horizontal",NM=["horizontal","vertical"],nA=N.forwardRef((e,t)=>{const{decorative:n,orientation:r=hx,...i}=e,o=AM(r)?r:hx,c=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return b.jsx(Ot.div,{"data-orientation":o,...c,...i,ref:t})});nA.displayName=SM;function AM(e){return NM.includes(e)}var wM=nA;function Oh({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return b.jsx(wM,{"data-slot":"separator",decorative:n,orientation:t,className:et("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function Lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function CM(e,t){const n=N.createContext(t),r=o=>{const{children:l,...c}=o,d=N.useMemo(()=>c,Object.values(c));return b.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function i(o){const l=N.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function Is(e,t=[]){let n=[];function r(o,l){const c=N.createContext(l),d=n.length;n=[...n,l];const f=p=>{var x;const{scope:E,children:_,...v}=p,S=((x=E==null?void 0:E[e])==null?void 0:x[d])||c,A=N.useMemo(()=>v,Object.values(v));return b.jsx(S.Provider,{value:A,children:_})};f.displayName=o+"Provider";function m(p,E){var S;const _=((S=E==null?void 0:E[e])==null?void 0:S[d])||c,v=N.useContext(_);if(v)return v;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[f,m]}const i=()=>{const o=n.map(l=>N.createContext(l));return function(c){const d=(c==null?void 0:c[e])||o;return N.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return i.scopeName=e,[r,RM(i,...t)]}function RM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((c,{useScope:d,scopeName:f})=>{const p=d(o)[`__scope${f}`];return{...c,...p}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Di=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},OM=rN[" useId ".trim().toString()]||(()=>{}),kM=0;function Wr(e){const[t,n]=N.useState(OM());return Di(()=>{n(r=>r??String(kM++))},[e]),e||(t?`radix-${t}`:"")}var LM=rN[" useInsertionEffect ".trim().toString()]||Di;function $c({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,l]=IM({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:i;{const m=N.useRef(e!==void 0);N.useEffect(()=>{const p=m.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,r])}const f=N.useCallback(m=>{var p;if(c){const E=DM(m)?m(e):m;E!==e&&((p=l.current)==null||p.call(l,E))}else o(m)},[c,e,o,l]);return[d,f]}function IM({defaultProp:e,onChange:t}){const[n,r]=N.useState(e),i=N.useRef(n),o=N.useRef(t);return LM(()=>{o.current=t},[t]),N.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function DM(e){return typeof e=="function"}function wr(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),N.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MM(e,t=globalThis==null?void 0:globalThis.document){const n=wr(e);N.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var PM="DismissableLayer",L0="dismissableLayer.update",BM="dismissableLayer.pointerDownOutside",UM="dismissableLayer.focusOutside",mx,rA=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kh=N.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...d}=e,f=N.useContext(rA),[m,p]=N.useState(null),E=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=N.useState({}),v=yn(t,U=>p(U)),S=Array.from(f.layers),[A]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=S.indexOf(A),O=m?S.indexOf(m):-1,L=f.layersWithOutsidePointerEventsDisabled.size>0,B=O>=x,k=jM(U=>{const j=U.target,F=[...f.branches].some(M=>M.contains(j));!B||F||(i==null||i(U),l==null||l(U),U.defaultPrevented||c==null||c())},E),w=zM(U=>{const j=U.target;[...f.branches].some(M=>M.contains(j))||(o==null||o(U),l==null||l(U),U.defaultPrevented||c==null||c())},E);return MM(U=>{O===f.layers.size-1&&(r==null||r(U),!U.defaultPrevented&&c&&(U.preventDefault(),c()))},E),N.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(mx=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),px(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=mx)}},[m,E,n,f]),N.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),px())},[m,f]),N.useEffect(()=>{const U=()=>_({});return document.addEventListener(L0,U),()=>document.removeEventListener(L0,U)},[]),b.jsx(Ot.div,{...d,ref:v,style:{pointerEvents:L?B?"auto":"none":void 0,...e.style},onFocusCapture:Lt(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Lt(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Lt(e.onPointerDownCapture,k.onPointerDownCapture)})});kh.displayName=PM;var FM="DismissableLayerBranch",HM=N.forwardRef((e,t)=>{const n=N.useContext(rA),r=N.useRef(null),i=yn(t,r);return N.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),b.jsx(Ot.div,{...e,ref:i})});HM.displayName=FM;function jM(e,t=globalThis==null?void 0:globalThis.document){const n=wr(e),r=N.useRef(!1),i=N.useRef(()=>{});return N.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let d=function(){aA(BM,n,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=d,t.addEventListener("click",i.current,{once:!0})):d()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function zM(e,t=globalThis==null?void 0:globalThis.document){const n=wr(e),r=N.useRef(!1);return N.useEffect(()=>{const i=o=>{o.target&&!r.current&&aA(UM,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function px(){const e=new CustomEvent(L0);document.dispatchEvent(e)}function aA(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?vM(i,o):i.dispatchEvent(o)}var Sg="focusScope.autoFocusOnMount",Ng="focusScope.autoFocusOnUnmount",gx={bubbles:!1,cancelable:!0},$M="FocusScope",eE=N.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[c,d]=N.useState(null),f=wr(i),m=wr(o),p=N.useRef(null),E=yn(t,S=>d(S)),_=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(r){let S=function(L){if(_.paused||!c)return;const B=L.target;c.contains(B)?p.current=B:ms(p.current,{select:!0})},A=function(L){if(_.paused||!c)return;const B=L.relatedTarget;B!==null&&(c.contains(B)||ms(p.current,{select:!0}))},x=function(L){if(document.activeElement===document.body)for(const k of L)k.removedNodes.length>0&&ms(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",A);const O=new MutationObserver(x);return c&&O.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",A),O.disconnect()}}},[r,c,_.paused]),N.useEffect(()=>{if(c){Ex.add(_);const S=document.activeElement;if(!c.contains(S)){const x=new CustomEvent(Sg,gx);c.addEventListener(Sg,f),c.dispatchEvent(x),x.defaultPrevented||(qM(XM(iA(c)),{select:!0}),document.activeElement===S&&ms(c))}return()=>{c.removeEventListener(Sg,f),setTimeout(()=>{const x=new CustomEvent(Ng,gx);c.addEventListener(Ng,m),c.dispatchEvent(x),x.defaultPrevented||ms(S??document.body,{select:!0}),c.removeEventListener(Ng,m),Ex.remove(_)},0)}}},[c,f,m,_]);const v=N.useCallback(S=>{if(!n&&!r||_.paused)return;const A=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,x=document.activeElement;if(A&&x){const O=S.currentTarget,[L,B]=YM(O);L&&B?!S.shiftKey&&x===B?(S.preventDefault(),n&&ms(L,{select:!0})):S.shiftKey&&x===L&&(S.preventDefault(),n&&ms(B,{select:!0})):x===O&&S.preventDefault()}},[n,r,_.paused]);return b.jsx(Ot.div,{tabIndex:-1,...l,ref:E,onKeyDown:v})});eE.displayName=$M;function qM(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ms(r,{select:t}),document.activeElement!==n)return}function YM(e){const t=iA(e),n=bx(t,e),r=bx(t.reverse(),e);return[n,r]}function iA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bx(e,t){for(const n of e)if(!GM(n,{upTo:t}))return n}function GM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function VM(e){return e instanceof HTMLInputElement&&"select"in e}function ms(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&VM(e)&&t&&e.select()}}var Ex=KM();function KM(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=yx(e,t),e.unshift(t)},remove(t){var n;e=yx(e,t),(n=e[0])==null||n.resume()}}}function yx(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function XM(e){return e.filter(t=>t.tagName!=="A")}var WM="Portal",Lh=N.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,o]=N.useState(!1);Di(()=>o(!0),[]);const l=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?qI.createPortal(b.jsx(Ot.div,{...r,ref:t}),l):null});Lh.displayName=WM;function QM(e,t){return N.useReducer((n,r)=>t[n][r]??n,e)}var ea=e=>{const{present:t,children:n}=e,r=ZM(t),i=typeof n=="function"?n({present:r.isPresent}):N.Children.only(n),o=yn(r.ref,JM(i));return typeof n=="function"||r.isPresent?N.cloneElement(i,{ref:o}):null};ea.displayName="Presence";function ZM(e){const[t,n]=N.useState(),r=N.useRef(null),i=N.useRef(e),o=N.useRef("none"),l=e?"mounted":"unmounted",[c,d]=QM(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const f=Ef(r.current);o.current=c==="mounted"?f:"none"},[c]),Di(()=>{const f=r.current,m=i.current;if(m!==e){const E=o.current,_=Ef(f);e?d("MOUNT"):_==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(m&&E!==_?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),Di(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,p=_=>{const S=Ef(r.current).includes(_.animationName);if(_.target===t&&S&&(d("ANIMATION_END"),!i.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},E=_=>{_.target===t&&(o.current=Ef(r.current))};return t.addEventListener("animationstart",E),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",E),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:N.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Ef(e){return(e==null?void 0:e.animationName)||"none"}function JM(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ag=0;function sA(){N.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_x()),document.body.insertAdjacentElement("beforeend",e[1]??_x()),Ag++,()=>{Ag===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ag--}},[])}function _x(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Qa=function(){return Qa=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qa.apply(this,arguments)};function oA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function e4(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Hf="right-scroll-bar-position",jf="width-before-scroll-bar",t4="with-scroll-bars-hidden",n4="--removed-body-scroll-bar-size";function wg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function r4(e,t){var n=N.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var a4=typeof window<"u"?N.useLayoutEffect:N.useEffect,Tx=new WeakMap;function i4(e,t){var n=r4(null,function(r){return e.forEach(function(i){return wg(i,r)})});return a4(function(){var r=Tx.get(n);if(r){var i=new Set(r),o=new Set(e),l=n.current;i.forEach(function(c){o.has(c)||wg(c,null)}),o.forEach(function(c){i.has(c)||wg(c,l)})}Tx.set(n,e)},[e]),n}function s4(e){return e}function o4(e,t){t===void 0&&(t=s4);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var d=function(){var m=l;l=[],m.forEach(o)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return i}function l4(e){e===void 0&&(e={});var t=o4(null);return t.options=Qa({async:!0,ssr:!1},e),t}var lA=function(e){var t=e.sideCar,n=oA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return N.createElement(r,Qa({},n))};lA.isSideCarExport=!0;function u4(e,t){return e.useMedium(t),lA}var uA=l4(),Cg=function(){},Ih=N.forwardRef(function(e,t){var n=N.useRef(null),r=N.useState({onScrollCapture:Cg,onWheelCapture:Cg,onTouchMoveCapture:Cg}),i=r[0],o=r[1],l=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,p=e.shards,E=e.sideCar,_=e.noRelative,v=e.noIsolation,S=e.inert,A=e.allowPinchZoom,x=e.as,O=x===void 0?"div":x,L=e.gapMode,B=oA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=E,w=i4([n,t]),U=Qa(Qa({},B),i);return N.createElement(N.Fragment,null,m&&N.createElement(k,{sideCar:uA,removeScrollBar:f,shards:p,noRelative:_,noIsolation:v,inert:S,setCallbacks:o,allowPinchZoom:!!A,lockRef:n,gapMode:L}),l?N.cloneElement(N.Children.only(c),Qa(Qa({},U),{ref:w})):N.createElement(O,Qa({},U,{className:d,ref:w}),c))});Ih.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ih.classNames={fullWidth:jf,zeroRight:Hf};var c4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function d4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c4();return t&&e.setAttribute("nonce",t),e}function f4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function h4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var m4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=d4())&&(f4(t,n),h4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},p4=function(){var e=m4();return function(t,n){N.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},cA=function(){var e=p4(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},g4={left:0,top:0,right:0,gap:0},Rg=function(e){return parseInt(e||"",10)||0},b4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Rg(n),Rg(r),Rg(i)]},E4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return g4;var t=b4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},y4=cA(),Sl="data-scroll-locked",_4=function(e,t,n,r){var i=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
212
- .`.concat(t4,` {
213
- overflow: hidden `).concat(r,`;
214
- padding-right: `).concat(c,"px ").concat(r,`;
215
- }
216
- body[`).concat(Sl,`] {
217
- overflow: hidden `).concat(r,`;
218
- overscroll-behavior: contain;
219
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
220
- padding-left: `.concat(i,`px;
221
- padding-top: `).concat(o,`px;
222
- padding-right: `).concat(l,`px;
223
- margin-left:0;
224
- margin-top:0;
225
- margin-right: `).concat(c,"px ").concat(r,`;
226
- `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
227
- }
228
-
229
- .`).concat(Hf,` {
230
- right: `).concat(c,"px ").concat(r,`;
231
- }
232
-
233
- .`).concat(jf,` {
234
- margin-right: `).concat(c,"px ").concat(r,`;
235
- }
236
-
237
- .`).concat(Hf," .").concat(Hf,` {
238
- right: 0 `).concat(r,`;
239
- }
240
-
241
- .`).concat(jf," .").concat(jf,` {
242
- margin-right: 0 `).concat(r,`;
243
- }
244
-
245
- body[`).concat(Sl,`] {
246
- `).concat(n4,": ").concat(c,`px;
247
- }
248
- `)},xx=function(){var e=parseInt(document.body.getAttribute(Sl)||"0",10);return isFinite(e)?e:0},T4=function(){N.useEffect(function(){return document.body.setAttribute(Sl,(xx()+1).toString()),function(){var e=xx()-1;e<=0?document.body.removeAttribute(Sl):document.body.setAttribute(Sl,e.toString())}},[])},x4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;T4();var o=N.useMemo(function(){return E4(i)},[i]);return N.createElement(y4,{styles:_4(o,!t,i,n?"":"!important")})},I0=!1;if(typeof window<"u")try{var yf=Object.defineProperty({},"passive",{get:function(){return I0=!0,!0}});window.addEventListener("test",yf,yf),window.removeEventListener("test",yf,yf)}catch{I0=!1}var cl=I0?{passive:!1}:!1,v4=function(e){return e.tagName==="TEXTAREA"},dA=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!v4(e)&&n[t]==="visible")},S4=function(e){return dA(e,"overflowY")},N4=function(e){return dA(e,"overflowX")},vx=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=fA(e,r);if(i){var o=hA(e,r),l=o[1],c=o[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},A4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},w4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fA=function(e,t){return e==="v"?S4(t):N4(t)},hA=function(e,t){return e==="v"?A4(t):w4(t)},C4=function(e,t){return e==="h"&&t==="rtl"?-1:1},R4=function(e,t,n,r,i){var o=C4(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,d=t.contains(c),f=!1,m=l>0,p=0,E=0;do{if(!c)break;var _=hA(e,c),v=_[0],S=_[1],A=_[2],x=S-A-o*v;(v||x)&&fA(e,c)&&(p+=x,E+=v);var O=c.parentNode;c=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(E)<1)&&(f=!0),f},_f=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sx=function(e){return[e.deltaX,e.deltaY]},Nx=function(e){return e&&"current"in e?e.current:e},O4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},k4=function(e){return`
249
- .block-interactivity-`.concat(e,` {pointer-events: none;}
250
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
251
- `)},L4=0,dl=[];function I4(e){var t=N.useRef([]),n=N.useRef([0,0]),r=N.useRef(),i=N.useState(L4++)[0],o=N.useState(cA)[0],l=N.useRef(e);N.useEffect(function(){l.current=e},[e]),N.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=e4([e.lockRef.current],(e.shards||[]).map(Nx),!0).filter(Boolean);return S.forEach(function(A){return A.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=N.useCallback(function(S,A){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var x=_f(S),O=n.current,L="deltaX"in S?S.deltaX:O[0]-x[0],B="deltaY"in S?S.deltaY:O[1]-x[1],k,w=S.target,U=Math.abs(L)>Math.abs(B)?"h":"v";if("touches"in S&&U==="h"&&w.type==="range")return!1;var j=vx(U,w);if(!j)return!0;if(j?k=U:(k=U==="v"?"h":"v",j=vx(U,w)),!j)return!1;if(!r.current&&"changedTouches"in S&&(L||B)&&(r.current=k),!k)return!0;var F=r.current||k;return R4(F,A,S,F==="h"?L:B)},[]),d=N.useCallback(function(S){var A=S;if(!(!dl.length||dl[dl.length-1]!==o)){var x="deltaY"in A?Sx(A):_f(A),O=t.current.filter(function(k){return k.name===A.type&&(k.target===A.target||A.target===k.shadowParent)&&O4(k.delta,x)})[0];if(O&&O.should){A.cancelable&&A.preventDefault();return}if(!O){var L=(l.current.shards||[]).map(Nx).filter(Boolean).filter(function(k){return k.contains(A.target)}),B=L.length>0?c(A,L[0]):!l.current.noIsolation;B&&A.cancelable&&A.preventDefault()}}},[]),f=N.useCallback(function(S,A,x,O){var L={name:S,delta:A,target:x,should:O,shadowParent:D4(x)};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(B){return B!==L})},1)},[]),m=N.useCallback(function(S){n.current=_f(S),r.current=void 0},[]),p=N.useCallback(function(S){f(S.type,Sx(S),S.target,c(S,e.lockRef.current))},[]),E=N.useCallback(function(S){f(S.type,_f(S),S.target,c(S,e.lockRef.current))},[]);N.useEffect(function(){return dl.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:E}),document.addEventListener("wheel",d,cl),document.addEventListener("touchmove",d,cl),document.addEventListener("touchstart",m,cl),function(){dl=dl.filter(function(S){return S!==o}),document.removeEventListener("wheel",d,cl),document.removeEventListener("touchmove",d,cl),document.removeEventListener("touchstart",m,cl)}},[]);var _=e.removeScrollBar,v=e.inert;return N.createElement(N.Fragment,null,v?N.createElement(o,{styles:k4(i)}):null,_?N.createElement(x4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function D4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const M4=u4(uA,I4);var tE=N.forwardRef(function(e,t){return N.createElement(Ih,Qa({},e,{ref:t,sideCar:M4}))});tE.classNames=Ih.classNames;var P4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fl=new WeakMap,Tf=new WeakMap,xf={},Og=0,mA=function(e){return e&&(e.host||mA(e.parentNode))},B4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mA(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},U4=function(e,t,n,r){var i=B4(t,Array.isArray(e)?e:[e]);xf[n]||(xf[n]=new WeakMap);var o=xf[n],l=[],c=new Set,d=new Set(i),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};i.forEach(f);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(E){if(c.has(E))m(E);else try{var _=E.getAttribute(r),v=_!==null&&_!=="false",S=(fl.get(E)||0)+1,A=(o.get(E)||0)+1;fl.set(E,S),o.set(E,A),l.push(E),S===1&&v&&Tf.set(E,!0),A===1&&E.setAttribute(n,"true"),v||E.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",E,x)}})};return m(t),c.clear(),Og++,function(){l.forEach(function(p){var E=fl.get(p)-1,_=o.get(p)-1;fl.set(p,E),o.set(p,_),E||(Tf.has(p)||p.removeAttribute(r),Tf.delete(p)),_||p.removeAttribute(n)}),Og--,Og||(fl=new WeakMap,fl=new WeakMap,Tf=new WeakMap,xf={})}},pA=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=P4(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),U4(r,i,n,"aria-hidden")):function(){return null}},Dh="Dialog",[gA,QX]=Is(Dh),[F4,Ba]=gA(Dh),bA=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=N.useRef(null),d=N.useRef(null),[f,m]=$c({prop:r,defaultProp:i??!1,onChange:o,caller:Dh});return b.jsx(F4,{scope:t,triggerRef:c,contentRef:d,contentId:Wr(),titleId:Wr(),descriptionId:Wr(),open:f,onOpenChange:m,onOpenToggle:N.useCallback(()=>m(p=>!p),[m]),modal:l,children:n})};bA.displayName=Dh;var EA="DialogTrigger",H4=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ba(EA,n),o=yn(t,i.triggerRef);return b.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":aE(i.open),...r,ref:o,onClick:Lt(e.onClick,i.onOpenToggle)})});H4.displayName=EA;var nE="DialogPortal",[j4,yA]=gA(nE,{forceMount:void 0}),_A=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Ba(nE,t);return b.jsx(j4,{scope:t,forceMount:n,children:N.Children.map(r,l=>b.jsx(ea,{present:n||o.open,children:b.jsx(Lh,{asChild:!0,container:i,children:l})}))})};_A.displayName=nE;var Jf="DialogOverlay",TA=N.forwardRef((e,t)=>{const n=yA(Jf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Ba(Jf,e.__scopeDialog);return o.modal?b.jsx(ea,{present:r||o.open,children:b.jsx($4,{...i,ref:t})}):null});TA.displayName=Jf;var z4=Rl("DialogOverlay.RemoveScroll"),$4=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ba(Jf,n);return b.jsx(tE,{as:z4,allowPinchZoom:!0,shards:[i.contentRef],children:b.jsx(Ot.div,{"data-state":aE(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),yo="DialogContent",xA=N.forwardRef((e,t)=>{const n=yA(yo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Ba(yo,e.__scopeDialog);return b.jsx(ea,{present:r||o.open,children:o.modal?b.jsx(q4,{...i,ref:t}):b.jsx(Y4,{...i,ref:t})})});xA.displayName=yo;var q4=N.forwardRef((e,t)=>{const n=Ba(yo,e.__scopeDialog),r=N.useRef(null),i=yn(t,n.contentRef,r);return N.useEffect(()=>{const o=r.current;if(o)return pA(o)},[]),b.jsx(vA,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lt(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Lt(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:Lt(e.onFocusOutside,o=>o.preventDefault())})}),Y4=N.forwardRef((e,t)=>{const n=Ba(yo,e.__scopeDialog),r=N.useRef(!1),i=N.useRef(!1);return b.jsx(vA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),vA=N.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=e,c=Ba(yo,n),d=N.useRef(null),f=yn(t,d);return sA(),b.jsxs(b.Fragment,{children:[b.jsx(eE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:b.jsx(kh,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":aE(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(G4,{titleId:c.titleId}),b.jsx(K4,{contentRef:d,descriptionId:c.descriptionId})]})]})}),rE="DialogTitle",SA=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ba(rE,n);return b.jsx(Ot.h2,{id:i.titleId,...r,ref:t})});SA.displayName=rE;var NA="DialogDescription",AA=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ba(NA,n);return b.jsx(Ot.p,{id:i.descriptionId,...r,ref:t})});AA.displayName=NA;var wA="DialogClose",CA=N.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ba(wA,n);return b.jsx(Ot.button,{type:"button",...r,ref:t,onClick:Lt(e.onClick,()=>i.onOpenChange(!1))})});CA.displayName=wA;function aE(e){return e?"open":"closed"}var RA="DialogTitleWarning",[ZX,OA]=CM(RA,{contentName:yo,titleName:rE,docsSlug:"dialog"}),G4=({titleId:e})=>{const t=OA(RA),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
252
-
253
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
254
-
255
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return N.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},V4="DialogDescriptionWarning",K4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${OA(V4).contentName}}.`;return N.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},iE=bA,sE=_A,oE=TA,lE=xA,kA=SA,LA=AA,IA=CA;function X4({...e}){return b.jsx(iE,{"data-slot":"sheet",...e})}function W4({...e}){return b.jsx(sE,{"data-slot":"sheet-portal",...e})}function Q4({className:e,...t}){return b.jsx(oE,{"data-slot":"sheet-overlay",className:et("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Z4({className:e,children:t,side:n="right",...r}){return b.jsxs(W4,{children:[b.jsx(Q4,{}),b.jsxs(lE,{"data-slot":"sheet-content",className:et("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,b.jsxs(IA,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[b.jsx($N,{className:"size-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function J4({className:e,...t}){return b.jsx("div",{"data-slot":"sheet-header",className:et("flex flex-col gap-1.5 p-4",e),...t})}function e6({className:e,...t}){return b.jsx(kA,{"data-slot":"sheet-title",className:et("text-foreground font-semibold",e),...t})}function t6({className:e,...t}){return b.jsx(LA,{"data-slot":"sheet-description",className:et("text-muted-foreground text-sm",e),...t})}const n6=["top","right","bottom","left"],As=Math.min,Vr=Math.max,eh=Math.round,vf=Math.floor,ti=e=>({x:e,y:e}),r6={left:"right",right:"left",bottom:"top",top:"bottom"},a6={start:"end",end:"start"};function D0(e,t,n){return Vr(e,As(t,n))}function Mi(e,t){return typeof e=="function"?e(t):e}function Pi(e){return e.split("-")[0]}function Gl(e){return e.split("-")[1]}function uE(e){return e==="x"?"y":"x"}function cE(e){return e==="y"?"height":"width"}const i6=new Set(["top","bottom"]);function Za(e){return i6.has(Pi(e))?"y":"x"}function dE(e){return uE(Za(e))}function s6(e,t,n){n===void 0&&(n=!1);const r=Gl(e),i=dE(e),o=cE(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=th(l)),[l,th(l)]}function o6(e){const t=th(e);return[M0(e),t,M0(t)]}function M0(e){return e.replace(/start|end/g,t=>a6[t])}const Ax=["left","right"],wx=["right","left"],l6=["top","bottom"],u6=["bottom","top"];function c6(e,t,n){switch(e){case"top":case"bottom":return n?t?wx:Ax:t?Ax:wx;case"left":case"right":return t?l6:u6;default:return[]}}function d6(e,t,n,r){const i=Gl(e);let o=c6(Pi(e),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(M0)))),o}function th(e){return e.replace(/left|right|bottom|top/g,t=>r6[t])}function f6(e){return{top:0,right:0,bottom:0,left:0,...e}}function DA(e){return typeof e!="number"?f6(e):{top:e,right:e,bottom:e,left:e}}function nh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Cx(e,t,n){let{reference:r,floating:i}=e;const o=Za(t),l=dE(t),c=cE(l),d=Pi(t),f=o==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,E=r[c]/2-i[c]/2;let _;switch(d){case"top":_={x:m,y:r.y-i.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:p};break;case"left":_={x:r.x-i.width,y:p};break;default:_={x:r.x,y:r.y}}switch(Gl(t)){case"start":_[l]-=E*(n&&f?-1:1);break;case"end":_[l]+=E*(n&&f?-1:1);break}return _}const h6=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=Cx(f,r,d),E=r,_={},v=0;for(let S=0;S<c.length;S++){const{name:A,fn:x}=c[S],{x:O,y:L,data:B,reset:k}=await x({x:m,y:p,initialPlacement:r,placement:E,strategy:i,middlewareData:_,rects:f,platform:l,elements:{reference:e,floating:t}});m=O??m,p=L??p,_={..._,[A]:{..._[A],...B}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(E=k.placement),k.rects&&(f=k.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:m,y:p}=Cx(f,E,d)),S=-1)}return{x:m,y:p,placement:E,strategy:i,middlewareData:_}};async function Cc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:E=!1,padding:_=0}=Mi(t,e),v=DA(_),A=c[E?p==="floating"?"reference":"floating":p],x=nh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(A)))==null||n?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:d})),O=p==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),B=await(o.isElement==null?void 0:o.isElement(L))?await(o.getScale==null?void 0:o.getScale(L))||{x:1,y:1}:{x:1,y:1},k=nh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:O,offsetParent:L,strategy:d}):O);return{top:(x.top-k.top+v.top)/B.y,bottom:(k.bottom-x.bottom+v.bottom)/B.y,left:(x.left-k.left+v.left)/B.x,right:(k.right-x.right+v.right)/B.x}}const m6=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:c,middlewareData:d}=t,{element:f,padding:m=0}=Mi(e,t)||{};if(f==null)return{};const p=DA(m),E={x:n,y:r},_=dE(i),v=cE(_),S=await l.getDimensions(f),A=_==="y",x=A?"top":"left",O=A?"bottom":"right",L=A?"clientHeight":"clientWidth",B=o.reference[v]+o.reference[_]-E[_]-o.floating[v],k=E[_]-o.reference[_],w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let U=w?w[L]:0;(!U||!await(l.isElement==null?void 0:l.isElement(w)))&&(U=c.floating[L]||o.floating[v]);const j=B/2-k/2,F=U/2-S[v]/2-1,M=As(p[x],F),J=As(p[O],F),X=M,V=U-S[v]-J,ne=U/2-S[v]/2+j,ae=D0(X,ne,V),Q=!d.arrow&&Gl(i)!=null&&ne!==ae&&o.reference[v]/2-(ne<X?M:J)-S[v]/2<0,be=Q?ne<X?ne-X:ne-V:0;return{[_]:E[_]+be,data:{[_]:ae,centerOffset:ne-ae-be,...Q&&{alignmentOffset:be}},reset:Q}}}),p6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:E,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,...A}=Mi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Pi(i),O=Za(c),L=Pi(c)===c,B=await(d.isRTL==null?void 0:d.isRTL(f.floating)),k=E||(L||!S?[th(c)]:o6(c)),w=v!=="none";!E&&w&&k.push(...d6(c,S,v,B));const U=[c,...k],j=await Cc(t,A),F=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&F.push(j[x]),p){const ne=s6(i,l,B);F.push(j[ne[0]],j[ne[1]])}if(M=[...M,{placement:i,overflows:F}],!F.every(ne=>ne<=0)){var J,X;const ne=(((J=o.flip)==null?void 0:J.index)||0)+1,ae=U[ne];if(ae&&(!(p==="alignment"?O!==Za(ae):!1)||M.every(K=>Za(K.placement)===O?K.overflows[0]>0:!0)))return{data:{index:ne,overflows:M},reset:{placement:ae}};let Q=(X=M.filter(be=>be.overflows[0]<=0).sort((be,K)=>be.overflows[1]-K.overflows[1])[0])==null?void 0:X.placement;if(!Q)switch(_){case"bestFit":{var V;const be=(V=M.filter(K=>{if(w){const xe=Za(K.placement);return xe===O||xe==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(xe=>xe>0).reduce((xe,R)=>xe+R,0)]).sort((K,xe)=>K[1]-xe[1])[0])==null?void 0:V[0];be&&(Q=be);break}case"initialPlacement":Q=c;break}if(i!==Q)return{reset:{placement:Q}}}return{}}}};function Rx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ox(e){return n6.some(t=>e[t]>=0)}const g6=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Mi(e,t);switch(r){case"referenceHidden":{const o=await Cc(t,{...i,elementContext:"reference"}),l=Rx(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ox(l)}}}case"escaped":{const o=await Cc(t,{...i,altBoundary:!0}),l=Rx(o,n.floating);return{data:{escapedOffsets:l,escaped:Ox(l)}}}default:return{}}}}},MA=new Set(["left","top"]);async function b6(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Pi(n),c=Gl(n),d=Za(n)==="y",f=MA.has(l)?-1:1,m=o&&d?-1:1,p=Mi(t,e);let{mainAxis:E,crossAxis:_,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof v=="number"&&(_=c==="end"?v*-1:v),d?{x:_*m,y:E*f}:{x:E*f,y:_*m}}const E6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:c}=t,d=await b6(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:o+d.y,data:{...d,placement:l}}}}},y6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:A=>{let{x,y:O}=A;return{x,y:O}}},...d}=Mi(e,t),f={x:n,y:r},m=await Cc(t,d),p=Za(Pi(i)),E=uE(p);let _=f[E],v=f[p];if(o){const A=E==="y"?"top":"left",x=E==="y"?"bottom":"right",O=_+m[A],L=_-m[x];_=D0(O,_,L)}if(l){const A=p==="y"?"top":"left",x=p==="y"?"bottom":"right",O=v+m[A],L=v-m[x];v=D0(O,v,L)}const S=c.fn({...t,[E]:_,[p]:v});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[E]:o,[p]:l}}}}}},_6=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=Mi(e,t),m={x:n,y:r},p=Za(i),E=uE(p);let _=m[E],v=m[p];const S=Mi(c,t),A=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const L=E==="y"?"height":"width",B=o.reference[E]-o.floating[L]+A.mainAxis,k=o.reference[E]+o.reference[L]-A.mainAxis;_<B?_=B:_>k&&(_=k)}if(f){var x,O;const L=E==="y"?"width":"height",B=MA.has(Pi(i)),k=o.reference[p]-o.floating[L]+(B&&((x=l.offset)==null?void 0:x[p])||0)+(B?0:A.crossAxis),w=o.reference[p]+o.reference[L]+(B?0:((O=l.offset)==null?void 0:O[p])||0)-(B?A.crossAxis:0);v<k?v=k:v>w&&(v=w)}return{[E]:_,[p]:v}}}},T6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:c}=t,{apply:d=()=>{},...f}=Mi(e,t),m=await Cc(t,f),p=Pi(i),E=Gl(i),_=Za(i)==="y",{width:v,height:S}=o.floating;let A,x;p==="top"||p==="bottom"?(A=p,x=E===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(x=p,A=E==="end"?"top":"bottom");const O=S-m.top-m.bottom,L=v-m.left-m.right,B=As(S-m[A],O),k=As(v-m[x],L),w=!t.middlewareData.shift;let U=B,j=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=L),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(U=O),w&&!E){const M=Vr(m.left,0),J=Vr(m.right,0),X=Vr(m.top,0),V=Vr(m.bottom,0);_?j=v-2*(M!==0||J!==0?M+J:Vr(m.left,m.right)):U=S-2*(X!==0||V!==0?X+V:Vr(m.top,m.bottom))}await d({...t,availableWidth:j,availableHeight:U});const F=await l.getDimensions(c.floating);return v!==F.width||S!==F.height?{reset:{rects:!0}}:{}}}};function Mh(){return typeof window<"u"}function Vl(e){return PA(e)?(e.nodeName||"").toLowerCase():"#document"}function Qr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ii(e){var t;return(t=(PA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function PA(e){return Mh()?e instanceof Node||e instanceof Qr(e).Node:!1}function Da(e){return Mh()?e instanceof Element||e instanceof Qr(e).Element:!1}function ri(e){return Mh()?e instanceof HTMLElement||e instanceof Qr(e).HTMLElement:!1}function kx(e){return!Mh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qr(e).ShadowRoot}const x6=new Set(["inline","contents"]);function qc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!x6.has(i)}const v6=new Set(["table","td","th"]);function S6(e){return v6.has(Vl(e))}const N6=[":popover-open",":modal"];function Ph(e){return N6.some(t=>{try{return e.matches(t)}catch{return!1}})}const A6=["transform","translate","scale","rotate","perspective"],w6=["transform","translate","scale","rotate","perspective","filter"],C6=["paint","layout","strict","content"];function fE(e){const t=hE(),n=Da(e)?Ma(e):e;return A6.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||w6.some(r=>(n.willChange||"").includes(r))||C6.some(r=>(n.contain||"").includes(r))}function R6(e){let t=ws(e);for(;ri(t)&&!Ol(t);){if(fE(t))return t;if(Ph(t))return null;t=ws(t)}return null}function hE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const O6=new Set(["html","body","#document"]);function Ol(e){return O6.has(Vl(e))}function Ma(e){return Qr(e).getComputedStyle(e)}function Bh(e){return Da(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ws(e){if(Vl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kx(e)&&e.host||ii(e);return kx(t)?t.host:t}function BA(e){const t=ws(e);return Ol(t)?e.ownerDocument?e.ownerDocument.body:e.body:ri(t)&&qc(t)?t:BA(t)}function Rc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=BA(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=Qr(i);if(o){const c=P0(l);return t.concat(l,l.visualViewport||[],qc(i)?i:[],c&&n?Rc(c):[])}return t.concat(i,Rc(i,[],n))}function P0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UA(e){const t=Ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ri(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=eh(n)!==o||eh(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function mE(e){return Da(e)?e:e.contextElement}function Nl(e){const t=mE(e);if(!ri(t))return ti(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=UA(t);let l=(o?eh(n.width):n.width)/r,c=(o?eh(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const k6=ti(0);function FA(e){const t=Qr(e);return!hE()||!t.visualViewport?k6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L6(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qr(e)?!1:t}function _o(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=mE(e);let l=ti(1);t&&(r?Da(r)&&(l=Nl(r)):l=Nl(e));const c=L6(o,n,r)?FA(o):ti(0);let d=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,m=i.width/l.x,p=i.height/l.y;if(o){const E=Qr(o),_=r&&Da(r)?Qr(r):r;let v=E,S=P0(v);for(;S&&r&&_!==v;){const A=Nl(S),x=S.getBoundingClientRect(),O=Ma(S),L=x.left+(S.clientLeft+parseFloat(O.paddingLeft))*A.x,B=x.top+(S.clientTop+parseFloat(O.paddingTop))*A.y;d*=A.x,f*=A.y,m*=A.x,p*=A.y,d+=L,f+=B,v=Qr(S),S=P0(v)}}return nh({width:m,height:p,x:d,y:f})}function pE(e,t){const n=Bh(e).scrollLeft;return t?t.left+n:_o(ii(e)).left+n}function HA(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:pE(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function I6(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=ii(r),c=t?Ph(t.floating):!1;if(r===l||c&&o)return n;let d={scrollLeft:0,scrollTop:0},f=ti(1);const m=ti(0),p=ri(r);if((p||!p&&!o)&&((Vl(r)!=="body"||qc(l))&&(d=Bh(r)),ri(r))){const _=_o(r);f=Nl(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const E=l&&!p&&!o?HA(l,d,!0):ti(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+E.x,y:n.y*f.y-d.scrollTop*f.y+m.y+E.y}}function D6(e){return Array.from(e.getClientRects())}function M6(e){const t=ii(e),n=Bh(e),r=e.ownerDocument.body,i=Vr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Vr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+pE(e);const c=-n.scrollTop;return Ma(r).direction==="rtl"&&(l+=Vr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:c}}function P6(e,t){const n=Qr(e),r=ii(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,d=0;if(i){o=i.width,l=i.height;const f=hE();(!f||f&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:o,height:l,x:c,y:d}}const B6=new Set(["absolute","fixed"]);function U6(e,t){const n=_o(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ri(e)?Nl(e):ti(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,d=i*o.x,f=r*o.y;return{width:l,height:c,x:d,y:f}}function Lx(e,t,n){let r;if(t==="viewport")r=P6(e,n);else if(t==="document")r=M6(ii(e));else if(Da(t))r=U6(t,n);else{const i=FA(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return nh(r)}function jA(e,t){const n=ws(e);return n===t||!Da(n)||Ol(n)?!1:Ma(n).position==="fixed"||jA(n,t)}function F6(e,t){const n=t.get(e);if(n)return n;let r=Rc(e,[],!1).filter(c=>Da(c)&&Vl(c)!=="body"),i=null;const o=Ma(e).position==="fixed";let l=o?ws(e):e;for(;Da(l)&&!Ol(l);){const c=Ma(l),d=fE(l);!d&&c.position==="fixed"&&(i=null),(o?!d&&!i:!d&&c.position==="static"&&!!i&&B6.has(i.position)||qc(l)&&!d&&jA(e,l))?r=r.filter(m=>m!==l):i=c,l=ws(l)}return t.set(e,r),r}function H6(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Ph(t)?[]:F6(t,this._c):[].concat(n),r],c=l[0],d=l.reduce((f,m)=>{const p=Lx(t,m,i);return f.top=Vr(p.top,f.top),f.right=As(p.right,f.right),f.bottom=As(p.bottom,f.bottom),f.left=Vr(p.left,f.left),f},Lx(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function j6(e){const{width:t,height:n}=UA(e);return{width:t,height:n}}function z6(e,t,n){const r=ri(t),i=ii(t),o=n==="fixed",l=_o(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const d=ti(0);function f(){d.x=pE(i)}if(r||!r&&!o)if((Vl(t)!=="body"||qc(i))&&(c=Bh(t)),r){const _=_o(t,!0,o,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else i&&f();o&&!r&&i&&f();const m=i&&!r&&!o?HA(i,c):ti(0),p=l.left+c.scrollLeft-d.x-m.x,E=l.top+c.scrollTop-d.y-m.y;return{x:p,y:E,width:l.width,height:l.height}}function kg(e){return Ma(e).position==="static"}function Ix(e,t){if(!ri(e)||Ma(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ii(e)===n&&(n=n.ownerDocument.body),n}function zA(e,t){const n=Qr(e);if(Ph(e))return n;if(!ri(e)){let i=ws(e);for(;i&&!Ol(i);){if(Da(i)&&!kg(i))return i;i=ws(i)}return n}let r=Ix(e,t);for(;r&&S6(r)&&kg(r);)r=Ix(r,t);return r&&Ol(r)&&kg(r)&&!fE(r)?n:r||R6(e)||n}const $6=async function(e){const t=this.getOffsetParent||zA,n=this.getDimensions,r=await n(e.floating);return{reference:z6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function q6(e){return Ma(e).direction==="rtl"}const Y6={convertOffsetParentRelativeRectToViewportRelativeRect:I6,getDocumentElement:ii,getClippingRect:H6,getOffsetParent:zA,getElementRects:$6,getClientRects:D6,getDimensions:j6,getScale:Nl,isElement:Da,isRTL:q6};function $A(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function G6(e,t){let n=null,r;const i=ii(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),o();const f=e.getBoundingClientRect(),{left:m,top:p,width:E,height:_}=f;if(c||t(),!E||!_)return;const v=vf(p),S=vf(i.clientWidth-(m+E)),A=vf(i.clientHeight-(p+_)),x=vf(m),L={rootMargin:-v+"px "+-S+"px "+-A+"px "+-x+"px",threshold:Vr(0,As(1,d))||1};let B=!0;function k(w){const U=w[0].intersectionRatio;if(U!==d){if(!B)return l();U?l(!1,U):r=setTimeout(()=>{l(!1,1e-7)},1e3)}U===1&&!$A(f,e.getBoundingClientRect())&&l(),B=!1}try{n=new IntersectionObserver(k,{...L,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,L)}n.observe(e)}return l(!0),o}function V6(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=mE(e),m=i||o?[...f?Rc(f):[],...Rc(t)]:[];m.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const p=f&&c?G6(f,n):null;let E=-1,_=null;l&&(_=new ResizeObserver(x=>{let[O]=x;O&&O.target===f&&_&&(_.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var L;(L=_)==null||L.observe(t)})),n()}),f&&!d&&_.observe(f),_.observe(t));let v,S=d?_o(e):null;d&&A();function A(){const x=_o(e);S&&!$A(S,x)&&n(),S=x,v=requestAnimationFrame(A)}return n(),()=>{var x;m.forEach(O=>{i&&O.removeEventListener("scroll",n),o&&O.removeEventListener("resize",n)}),p==null||p(),(x=_)==null||x.disconnect(),_=null,d&&cancelAnimationFrame(v)}}const K6=E6,X6=y6,W6=p6,Q6=T6,Z6=g6,Dx=m6,J6=_6,eP=(e,t,n)=>{const r=new Map,i={platform:Y6,...n},o={...i.platform,_c:r};return h6(e,t,{...i,platform:o})};var tP=typeof document<"u",nP=function(){},zf=tP?N.useLayoutEffect:nP;function rh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!rh(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function qA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mx(e,t){const n=qA(e);return Math.round(t*n)/n}function Lg(e){const t=N.useRef(e);return zf(()=>{t.current=e}),t}function rP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:d,open:f}=e,[m,p]=N.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[E,_]=N.useState(r);rh(E,r)||_(r);const[v,S]=N.useState(null),[A,x]=N.useState(null),O=N.useCallback(K=>{K!==w.current&&(w.current=K,S(K))},[]),L=N.useCallback(K=>{K!==U.current&&(U.current=K,x(K))},[]),B=o||v,k=l||A,w=N.useRef(null),U=N.useRef(null),j=N.useRef(m),F=d!=null,M=Lg(d),J=Lg(i),X=Lg(f),V=N.useCallback(()=>{if(!w.current||!U.current)return;const K={placement:t,strategy:n,middleware:E};J.current&&(K.platform=J.current),eP(w.current,U.current,K).then(xe=>{const R={...xe,isPositioned:X.current!==!1};ne.current&&!rh(j.current,R)&&(j.current=R,Cl.flushSync(()=>{p(R)}))})},[E,t,n,J,X]);zf(()=>{f===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(K=>({...K,isPositioned:!1})))},[f]);const ne=N.useRef(!1);zf(()=>(ne.current=!0,()=>{ne.current=!1}),[]),zf(()=>{if(B&&(w.current=B),k&&(U.current=k),B&&k){if(M.current)return M.current(B,k,V);V()}},[B,k,V,M,F]);const ae=N.useMemo(()=>({reference:w,floating:U,setReference:O,setFloating:L}),[O,L]),Q=N.useMemo(()=>({reference:B,floating:k}),[B,k]),be=N.useMemo(()=>{const K={position:n,left:0,top:0};if(!Q.floating)return K;const xe=Mx(Q.floating,m.x),R=Mx(Q.floating,m.y);return c?{...K,transform:"translate("+xe+"px, "+R+"px)",...qA(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:xe,top:R}},[n,c,Q.floating,m.x,m.y]);return N.useMemo(()=>({...m,update:V,refs:ae,elements:Q,floatingStyles:be}),[m,V,ae,Q,be])}const aP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Dx({element:r.current,padding:i}).fn(n):{}:r?Dx({element:r,padding:i}).fn(n):{}}}},iP=(e,t)=>({...K6(e),options:[e,t]}),sP=(e,t)=>({...X6(e),options:[e,t]}),oP=(e,t)=>({...J6(e),options:[e,t]}),lP=(e,t)=>({...W6(e),options:[e,t]}),uP=(e,t)=>({...Q6(e),options:[e,t]}),cP=(e,t)=>({...Z6(e),options:[e,t]}),dP=(e,t)=>({...aP(e),options:[e,t]});var fP="Arrow",YA=N.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return b.jsx(Ot.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});YA.displayName=fP;var hP=YA;function mP(e){const[t,n]=N.useState(void 0);return Di(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,c;if("borderBoxSize"in o){const d=o.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,c=f.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var gE="Popper",[GA,Uh]=Is(gE),[pP,VA]=GA(gE),KA=e=>{const{__scopePopper:t,children:n}=e,[r,i]=N.useState(null);return b.jsx(pP,{scope:t,anchor:r,onAnchorChange:i,children:n})};KA.displayName=gE;var XA="PopperAnchor",WA=N.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=VA(XA,n),l=N.useRef(null),c=yn(t,l);return N.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:b.jsx(Ot.div,{...i,ref:c})});WA.displayName=XA;var bE="PopperContent",[gP,bP]=GA(bE),QA=N.forwardRef((e,t)=>{var Pe,je,Ze,Ue,Pt,mn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:E=!1,updatePositionStrategy:_="optimized",onPlaced:v,...S}=e,A=VA(bE,n),[x,O]=N.useState(null),L=yn(t,pn=>O(pn)),[B,k]=N.useState(null),w=mP(B),U=(w==null?void 0:w.width)??0,j=(w==null?void 0:w.height)??0,F=r+(o!=="center"?"-"+o:""),M=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},J=Array.isArray(f)?f:[f],X=J.length>0,V={padding:M,boundary:J.filter(yP),altBoundary:X},{refs:ne,floatingStyles:ae,placement:Q,isPositioned:be,middlewareData:K}=rP({strategy:"fixed",placement:F,whileElementsMounted:(...pn)=>V6(...pn,{animationFrame:_==="always"}),elements:{reference:A.anchor},middleware:[iP({mainAxis:i+j,alignmentAxis:l}),d&&sP({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?oP():void 0,...V}),d&&lP({...V}),uP({...V,apply:({elements:pn,rects:Tn,availableWidth:dr,availableHeight:mt})=>{const{width:zn,height:$n}=Tn.reference,Qn=pn.floating.style;Qn.setProperty("--radix-popper-available-width",`${dr}px`),Qn.setProperty("--radix-popper-available-height",`${mt}px`),Qn.setProperty("--radix-popper-anchor-width",`${zn}px`),Qn.setProperty("--radix-popper-anchor-height",`${$n}px`)}}),B&&dP({element:B,padding:c}),_P({arrowWidth:U,arrowHeight:j}),E&&cP({strategy:"referenceHidden",...V})]}),[xe,R]=e2(Q),le=wr(v);Di(()=>{be&&(le==null||le())},[be,le]);const te=(Pe=K.arrow)==null?void 0:Pe.x,I=(je=K.arrow)==null?void 0:je.y,ce=((Ze=K.arrow)==null?void 0:Ze.centerOffset)!==0,[Te,ve]=N.useState();return Di(()=>{x&&ve(window.getComputedStyle(x).zIndex)},[x]),b.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:be?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[(Ue=K.transformOrigin)==null?void 0:Ue.x,(Pt=K.transformOrigin)==null?void 0:Pt.y].join(" "),...((mn=K.hide)==null?void 0:mn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(gP,{scope:n,placedSide:xe,onArrowChange:k,arrowX:te,arrowY:I,shouldHideArrow:ce,children:b.jsx(Ot.div,{"data-side":xe,"data-align":R,...S,ref:L,style:{...S.style,animation:be?void 0:"none"}})})})});QA.displayName=bE;var ZA="PopperArrow",EP={top:"bottom",right:"left",bottom:"top",left:"right"},JA=N.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=bP(ZA,r),l=EP[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:b.jsx(hP,{...i,ref:n,style:{...i.style,display:"block"}})})});JA.displayName=ZA;function yP(e){return e!==null}var _P=e=>({name:"transformOrigin",options:e,fn(t){var A,x,O;const{placement:n,rects:r,middlewareData:i}=t,l=((A=i.arrow)==null?void 0:A.centerOffset)!==0,c=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,m]=e2(n),p={start:"0%",center:"50%",end:"100%"}[m],E=(((x=i.arrow)==null?void 0:x.x)??0)+c/2,_=(((O=i.arrow)==null?void 0:O.y)??0)+d/2;let v="",S="";return f==="bottom"?(v=l?p:`${E}px`,S=`${-d}px`):f==="top"?(v=l?p:`${E}px`,S=`${r.floating.height+d}px`):f==="right"?(v=`${-d}px`,S=l?p:`${_}px`):f==="left"&&(v=`${r.floating.width+d}px`,S=l?p:`${_}px`),{data:{x:v,y:S}}}});function e2(e){const[t,n="center"]=e.split("-");return[t,n]}var t2=KA,EE=WA,n2=QA,r2=JA,TP=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),xP="VisuallyHidden",a2=N.forwardRef((e,t)=>b.jsx(Ot.span,{...e,ref:t,style:{...TP,...e.style}}));a2.displayName=xP;var vP=a2,[Fh,JX]=Is("Tooltip",[Uh]),Hh=Uh(),i2="TooltipProvider",SP=700,B0="tooltip.open",[NP,yE]=Fh(i2),s2=e=>{const{__scopeTooltip:t,delayDuration:n=SP,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,l=N.useRef(!0),c=N.useRef(!1),d=N.useRef(0);return N.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),b.jsx(NP,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:N.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:N.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:N.useCallback(f=>{c.current=f},[]),disableHoverableContent:i,children:o})};s2.displayName=i2;var Oc="Tooltip",[AP,Yc]=Fh(Oc),o2=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:l,delayDuration:c}=e,d=yE(Oc,e.__scopeTooltip),f=Hh(t),[m,p]=N.useState(null),E=Wr(),_=N.useRef(0),v=l??d.disableHoverableContent,S=c??d.delayDuration,A=N.useRef(!1),[x,O]=$c({prop:r,defaultProp:i??!1,onChange:U=>{U?(d.onOpen(),document.dispatchEvent(new CustomEvent(B0))):d.onClose(),o==null||o(U)},caller:Oc}),L=N.useMemo(()=>x?A.current?"delayed-open":"instant-open":"closed",[x]),B=N.useCallback(()=>{window.clearTimeout(_.current),_.current=0,A.current=!1,O(!0)},[O]),k=N.useCallback(()=>{window.clearTimeout(_.current),_.current=0,O(!1)},[O]),w=N.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{A.current=!0,O(!0),_.current=0},S)},[S,O]);return N.useEffect(()=>()=>{_.current&&(window.clearTimeout(_.current),_.current=0)},[]),b.jsx(t2,{...f,children:b.jsx(AP,{scope:t,contentId:E,open:x,stateAttribute:L,trigger:m,onTriggerChange:p,onTriggerEnter:N.useCallback(()=>{d.isOpenDelayedRef.current?w():B()},[d.isOpenDelayedRef,w,B]),onTriggerLeave:N.useCallback(()=>{v?k():(window.clearTimeout(_.current),_.current=0)},[k,v]),onOpen:B,onClose:k,disableHoverableContent:v,children:n})})};o2.displayName=Oc;var U0="TooltipTrigger",l2=N.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Yc(U0,n),o=yE(U0,n),l=Hh(n),c=N.useRef(null),d=yn(t,c,i.onTriggerChange),f=N.useRef(!1),m=N.useRef(!1),p=N.useCallback(()=>f.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),b.jsx(EE,{asChild:!0,...l,children:b.jsx(Ot.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:d,onPointerMove:Lt(e.onPointerMove,E=>{E.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:Lt(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:Lt(e.onPointerDown,()=>{i.open&&i.onClose(),f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Lt(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:Lt(e.onBlur,i.onClose),onClick:Lt(e.onClick,i.onClose)})})});l2.displayName=U0;var _E="TooltipPortal",[wP,CP]=Fh(_E,{forceMount:void 0}),u2=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=Yc(_E,t);return b.jsx(wP,{scope:t,forceMount:n,children:b.jsx(ea,{present:n||o.open,children:b.jsx(Lh,{asChild:!0,container:i,children:r})})})};u2.displayName=_E;var kl="TooltipContent",c2=N.forwardRef((e,t)=>{const n=CP(kl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=Yc(kl,e.__scopeTooltip);return b.jsx(ea,{present:r||l.open,children:l.disableHoverableContent?b.jsx(d2,{side:i,...o,ref:t}):b.jsx(RP,{side:i,...o,ref:t})})}),RP=N.forwardRef((e,t)=>{const n=Yc(kl,e.__scopeTooltip),r=yE(kl,e.__scopeTooltip),i=N.useRef(null),o=yn(t,i),[l,c]=N.useState(null),{trigger:d,onClose:f}=n,m=i.current,{onPointerInTransitChange:p}=r,E=N.useCallback(()=>{c(null),p(!1)},[p]),_=N.useCallback((v,S)=>{const A=v.currentTarget,x={x:v.clientX,y:v.clientY},O=IP(x,A.getBoundingClientRect()),L=DP(x,O),B=MP(S.getBoundingClientRect()),k=BP([...L,...B]);c(k),p(!0)},[p]);return N.useEffect(()=>()=>E(),[E]),N.useEffect(()=>{if(d&&m){const v=A=>_(A,m),S=A=>_(A,d);return d.addEventListener("pointerleave",v),m.addEventListener("pointerleave",S),()=>{d.removeEventListener("pointerleave",v),m.removeEventListener("pointerleave",S)}}},[d,m,_,E]),N.useEffect(()=>{if(l){const v=S=>{const A=S.target,x={x:S.clientX,y:S.clientY},O=(d==null?void 0:d.contains(A))||(m==null?void 0:m.contains(A)),L=!PP(x,l);O?E():L&&(E(),f())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[d,m,l,f,E]),b.jsx(d2,{...e,ref:o})}),[OP,kP]=Fh(Oc,{isInside:!1}),LP=VI("TooltipContent"),d2=N.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,d=Yc(kl,n),f=Hh(n),{onClose:m}=d;return N.useEffect(()=>(document.addEventListener(B0,m),()=>document.removeEventListener(B0,m)),[m]),N.useEffect(()=>{if(d.trigger){const p=E=>{const _=E.target;_!=null&&_.contains(d.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,m]),b.jsx(kh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:b.jsxs(n2,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(LP,{children:r}),b.jsx(OP,{scope:n,isInside:!0,children:b.jsx(vP,{id:d.contentId,role:"tooltip",children:i||r})})]})})});c2.displayName=kl;var f2="TooltipArrow",h2=N.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Hh(n);return kP(f2,n).isInside?null:b.jsx(r2,{...i,...r,ref:t})});h2.displayName=f2;function IP(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function DP(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function MP(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function PP(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],d=t[l],f=c.x,m=c.y,p=d.x,E=d.y;m>r!=E>r&&n<(p-f)*(r-m)/(E-m)+f&&(i=!i)}return i}function BP(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),UP(t)}function UP(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var FP=s2,HP=o2,jP=l2,zP=u2,$P=c2,qP=h2;function Ds({delayDuration:e=0,...t}){return b.jsx(FP,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function ba({...e}){return b.jsx(Ds,{children:b.jsx(HP,{"data-slot":"tooltip",...e})})}function Ea({...e}){return b.jsx(jP,{"data-slot":"tooltip-trigger",...e})}function ya({className:e,sideOffset:t=0,children:n,...r}){return b.jsx(zP,{children:b.jsxs($P,{"data-slot":"tooltip-content",sideOffset:t,className:et("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,b.jsx(qP,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const YP="sidebar_state",GP=60*60*24*7,VP="16rem",KP="18rem",XP="3rem",WP="b",m2=N.createContext(null);function jh(){const e=N.useContext(m2);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function QP({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:o,...l}){const c=jD(),[d,f]=N.useState(!1),[m,p]=N.useState(e),E=t??m,_=N.useCallback(x=>{const O=typeof x=="function"?x(E):x;n?n(O):p(O),document.cookie=`${YP}=${O}; path=/; max-age=${GP}`},[n,E]),v=N.useCallback(()=>c?f(x=>!x):_(x=>!x),[c,_,f]);N.useEffect(()=>{const x=O=>{O.key===WP&&(O.metaKey||O.ctrlKey)&&(O.preventDefault(),v())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[v]);const S=E?"expanded":"collapsed",A=N.useMemo(()=>({state:S,open:E,setOpen:_,isMobile:c,openMobile:d,setOpenMobile:f,toggleSidebar:v}),[S,E,_,c,d,f,v]);return b.jsx(m2.Provider,{value:A,children:b.jsx(Ds,{delayDuration:0,children:b.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":VP,"--sidebar-width-icon":XP,...i},className:et("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...l,children:o})})})}function ZP({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...o}){const{isMobile:l,state:c,openMobile:d,setOpenMobile:f}=jh();return n==="none"?b.jsx("div",{"data-slot":"sidebar",className:et("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...o,children:i}):l?b.jsx(X4,{open:d,onOpenChange:f,...o,children:b.jsxs(Z4,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":KP},side:e,children:[b.jsxs(J4,{className:"sr-only",children:[b.jsx(e6,{children:"Sidebar"}),b.jsx(t6,{children:"Displays the mobile sidebar."})]}),b.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):b.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[b.jsx("div",{"data-slot":"sidebar-gap",className:et("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),b.jsx("div",{"data-slot":"sidebar-container",className:et("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:b.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i})})]})}function F0({className:e,onClick:t,...n}){const{toggleSidebar:r}=jh();return b.jsxs(Ii,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:et("size-7",e),onClick:i=>{t==null||t(i),r()},...n,children:[b.jsx(OD,{}),b.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function JP({className:e,...t}){return b.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:et("flex flex-col gap-2 p-2",e),...t})}function e5({className:e,...t}){return b.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:et("flex flex-col gap-2 p-2",e),...t})}function Px({className:e,...t}){return b.jsx(Oh,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:et("bg-sidebar-border mx-2 w-auto",e),...t})}function t5({className:e,...t}){return b.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:et("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}const n5="/assets/intrig-logo-H-7vjkLv.svg";function r5(){return b.jsxs("div",{className:"flex items-center gap-2 p-3",children:[b.jsx("img",{src:n5,alt:"Intrig Logo",className:"h-8"}),b.jsx("div",{className:"text-lg",children:"|"}),b.jsx("div",{className:"text-2xl",children:"Insight"})]})}function a5(){const[e,t]=N.useState("light");N.useEffect(()=>{const r=localStorage.getItem("theme");if(r)t(r),document.documentElement.classList.toggle("dark",r==="dark");else{const i=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";t(i),document.documentElement.classList.toggle("dark",i==="dark")}},[]);const n=()=>{const r=e==="dark"?"light":"dark";t(r),document.documentElement.classList.toggle("dark",r==="dark"),localStorage.setItem("theme",r)};return b.jsx(Ds,{children:b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsxs(Ii,{variant:"ghost",size:"icon",onClick:n,className:"h-8 w-8",children:[e==="dark"?b.jsx(CD,{className:"h-4 w-4"}):b.jsx(UD,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),b.jsx(ya,{side:"right",children:b.jsx("p",{children:"Toggle theme"})})]})})}const i5="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20viewBox='0%200%2098%2096'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%2324292f'/%3e%3c/svg%3e",s5="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20viewBox='0%200%2098%2096'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%23fff'/%3e%3c/svg%3e";function o5(){const[e,t]=N.useState(!1);return N.useEffect(()=>{t(document.documentElement.classList.contains("dark"));const n=new MutationObserver(r=>{r.forEach(i=>{i.attributeName==="class"&&t(document.documentElement.classList.contains("dark"))})});return n.observe(document.documentElement,{attributes:!0}),()=>n.disconnect()},[]),b.jsx(Ds,{children:b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx(Ii,{variant:"ghost",size:"icon",asChild:!0,className:"h-8 w-8",children:b.jsxs("a",{href:"https://github.com/intrigsoft/intrig-core",target:"_blank",rel:"noopener noreferrer",children:[b.jsx("img",{src:e?s5:i5,alt:"GitHub",className:"h-5 w-5"}),b.jsx("span",{className:"sr-only",children:"GitHub"})]})})}),b.jsx(ya,{side:"right",children:b.jsx("p",{children:"GitHub"})})]})})}var Bx=1,l5=.9,u5=.8,c5=.17,Ig=.1,Dg=.999,d5=.9999,f5=.99,h5=/[\\\/_+.#"@\[\(\{&]/,m5=/[\\\/_+.#"@\[\(\{&]/g,p5=/[\s-]/,p2=/[\s-]/g;function H0(e,t,n,r,i,o,l){if(o===t.length)return i===e.length?Bx:f5;var c=`${i},${o}`;if(l[c]!==void 0)return l[c];for(var d=r.charAt(o),f=n.indexOf(d,i),m=0,p,E,_,v;f>=0;)p=H0(e,t,n,r,f+1,o+1,l),p>m&&(f===i?p*=Bx:h5.test(e.charAt(f-1))?(p*=u5,_=e.slice(i,f-1).match(m5),_&&i>0&&(p*=Math.pow(Dg,_.length))):p5.test(e.charAt(f-1))?(p*=l5,v=e.slice(i,f-1).match(p2),v&&i>0&&(p*=Math.pow(Dg,v.length))):(p*=c5,i>0&&(p*=Math.pow(Dg,f-i))),e.charAt(f)!==t.charAt(o)&&(p*=d5)),(p<Ig&&n.charAt(f-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(f-1)!==r.charAt(o))&&(E=H0(e,t,n,r,f+1,o+2,l),E*Ig>p&&(p=E*Ig)),p>m&&(m=p),f=n.indexOf(d,f+1);return l[c]=m,m}function Ux(e){return e.toLowerCase().replace(p2," ")}function g5(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,H0(e,t,Ux(e),Ux(t),0,0,{})}var rc='[cmdk-group=""]',Mg='[cmdk-group-items=""]',b5='[cmdk-group-heading=""]',g2='[cmdk-item=""]',Fx=`${g2}:not([aria-disabled="true"])`,j0="cmdk-item-select",gl="data-value",E5=(e,t,n)=>g5(e,t,n),b2=N.createContext(void 0),Gc=()=>N.useContext(b2),E2=N.createContext(void 0),TE=()=>N.useContext(E2),y2=N.createContext(void 0),_2=N.forwardRef((e,t)=>{let n=bl(()=>{var te,I;return{search:"",value:(I=(te=e.value)!=null?te:e.defaultValue)!=null?I:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=bl(()=>new Set),i=bl(()=>new Map),o=bl(()=>new Map),l=bl(()=>new Set),c=T2(e),{label:d,children:f,value:m,onValueChange:p,filter:E,shouldFilter:_,loop:v,disablePointerSelection:S=!1,vimBindings:A=!0,...x}=e,O=Wr(),L=Wr(),B=Wr(),k=N.useRef(null),w=R5();To(()=>{if(m!==void 0){let te=m.trim();n.current.value=te,U.emit()}},[m]),To(()=>{w(6,V)},[]);let U=N.useMemo(()=>({subscribe:te=>(l.current.add(te),()=>l.current.delete(te)),snapshot:()=>n.current,setState:(te,I,ce)=>{var Te,ve,Pe,je;if(!Object.is(n.current[te],I)){if(n.current[te]=I,te==="search")X(),M(),w(1,J);else if(te==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ze=document.getElementById(B);Ze?Ze.focus():(Te=document.getElementById(O))==null||Te.focus()}if(w(7,()=>{var Ze;n.current.selectedItemId=(Ze=ne())==null?void 0:Ze.id,U.emit()}),ce||w(5,V),((ve=c.current)==null?void 0:ve.value)!==void 0){let Ze=I??"";(je=(Pe=c.current).onValueChange)==null||je.call(Pe,Ze);return}}U.emit()}},emit:()=>{l.current.forEach(te=>te())}}),[]),j=N.useMemo(()=>({value:(te,I,ce)=>{var Te;I!==((Te=o.current.get(te))==null?void 0:Te.value)&&(o.current.set(te,{value:I,keywords:ce}),n.current.filtered.items.set(te,F(I,ce)),w(2,()=>{M(),U.emit()}))},item:(te,I)=>(r.current.add(te),I&&(i.current.has(I)?i.current.get(I).add(te):i.current.set(I,new Set([te]))),w(3,()=>{X(),M(),n.current.value||J(),U.emit()}),()=>{o.current.delete(te),r.current.delete(te),n.current.filtered.items.delete(te);let ce=ne();w(4,()=>{X(),(ce==null?void 0:ce.getAttribute("id"))===te&&J(),U.emit()})}),group:te=>(i.current.has(te)||i.current.set(te,new Set),()=>{o.current.delete(te),i.current.delete(te)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:O,inputId:B,labelId:L,listInnerRef:k}),[]);function F(te,I){var ce,Te;let ve=(Te=(ce=c.current)==null?void 0:ce.filter)!=null?Te:E5;return te?ve(te,n.current.search,I):0}function M(){if(!n.current.search||c.current.shouldFilter===!1)return;let te=n.current.filtered.items,I=[];n.current.filtered.groups.forEach(Te=>{let ve=i.current.get(Te),Pe=0;ve.forEach(je=>{let Ze=te.get(je);Pe=Math.max(Ze,Pe)}),I.push([Te,Pe])});let ce=k.current;ae().sort((Te,ve)=>{var Pe,je;let Ze=Te.getAttribute("id"),Ue=ve.getAttribute("id");return((Pe=te.get(Ue))!=null?Pe:0)-((je=te.get(Ze))!=null?je:0)}).forEach(Te=>{let ve=Te.closest(Mg);ve?ve.appendChild(Te.parentElement===ve?Te:Te.closest(`${Mg} > *`)):ce.appendChild(Te.parentElement===ce?Te:Te.closest(`${Mg} > *`))}),I.sort((Te,ve)=>ve[1]-Te[1]).forEach(Te=>{var ve;let Pe=(ve=k.current)==null?void 0:ve.querySelector(`${rc}[${gl}="${encodeURIComponent(Te[0])}"]`);Pe==null||Pe.parentElement.appendChild(Pe)})}function J(){let te=ae().find(ce=>ce.getAttribute("aria-disabled")!=="true"),I=te==null?void 0:te.getAttribute(gl);U.setState("value",I||void 0)}function X(){var te,I,ce,Te;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ve=0;for(let Pe of r.current){let je=(I=(te=o.current.get(Pe))==null?void 0:te.value)!=null?I:"",Ze=(Te=(ce=o.current.get(Pe))==null?void 0:ce.keywords)!=null?Te:[],Ue=F(je,Ze);n.current.filtered.items.set(Pe,Ue),Ue>0&&ve++}for(let[Pe,je]of i.current)for(let Ze of je)if(n.current.filtered.items.get(Ze)>0){n.current.filtered.groups.add(Pe);break}n.current.filtered.count=ve}function V(){var te,I,ce;let Te=ne();Te&&(((te=Te.parentElement)==null?void 0:te.firstChild)===Te&&((ce=(I=Te.closest(rc))==null?void 0:I.querySelector(b5))==null||ce.scrollIntoView({block:"nearest"})),Te.scrollIntoView({block:"nearest"}))}function ne(){var te;return(te=k.current)==null?void 0:te.querySelector(`${g2}[aria-selected="true"]`)}function ae(){var te;return Array.from(((te=k.current)==null?void 0:te.querySelectorAll(Fx))||[])}function Q(te){let I=ae()[te];I&&U.setState("value",I.getAttribute(gl))}function be(te){var I;let ce=ne(),Te=ae(),ve=Te.findIndex(je=>je===ce),Pe=Te[ve+te];(I=c.current)!=null&&I.loop&&(Pe=ve+te<0?Te[Te.length-1]:ve+te===Te.length?Te[0]:Te[ve+te]),Pe&&U.setState("value",Pe.getAttribute(gl))}function K(te){let I=ne(),ce=I==null?void 0:I.closest(rc),Te;for(;ce&&!Te;)ce=te>0?w5(ce,rc):C5(ce,rc),Te=ce==null?void 0:ce.querySelector(Fx);Te?U.setState("value",Te.getAttribute(gl)):be(te)}let xe=()=>Q(ae().length-1),R=te=>{te.preventDefault(),te.metaKey?xe():te.altKey?K(1):be(1)},le=te=>{te.preventDefault(),te.metaKey?Q(0):te.altKey?K(-1):be(-1)};return N.createElement(Ot.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:te=>{var I;(I=x.onKeyDown)==null||I.call(x,te);let ce=te.nativeEvent.isComposing||te.keyCode===229;if(!(te.defaultPrevented||ce))switch(te.key){case"n":case"j":{A&&te.ctrlKey&&R(te);break}case"ArrowDown":{R(te);break}case"p":case"k":{A&&te.ctrlKey&&le(te);break}case"ArrowUp":{le(te);break}case"Home":{te.preventDefault(),Q(0);break}case"End":{te.preventDefault(),xe();break}case"Enter":{te.preventDefault();let Te=ne();if(Te){let ve=new Event(j0);Te.dispatchEvent(ve)}}}}},N.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:k5},d),zh(e,te=>N.createElement(E2.Provider,{value:U},N.createElement(b2.Provider,{value:j},te))))}),y5=N.forwardRef((e,t)=>{var n,r;let i=Wr(),o=N.useRef(null),l=N.useContext(y2),c=Gc(),d=T2(e),f=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;To(()=>{if(!f)return c.item(i,l==null?void 0:l.id)},[f]);let m=x2(i,o,[e.value,e.children,o],e.keywords),p=TE(),E=Cs(w=>w.value&&w.value===m.current),_=Cs(w=>f||c.filter()===!1?!0:w.search?w.filtered.items.get(i)>0:!0);N.useEffect(()=>{let w=o.current;if(!(!w||e.disabled))return w.addEventListener(j0,v),()=>w.removeEventListener(j0,v)},[_,e.onSelect,e.disabled]);function v(){var w,U;S(),(U=(w=d.current).onSelect)==null||U.call(w,m.current)}function S(){p.setState("value",m.current,!0)}if(!_)return null;let{disabled:A,value:x,onSelect:O,forceMount:L,keywords:B,...k}=e;return N.createElement(Ot.div,{ref:go(o,t),...k,id:i,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!E,"data-disabled":!!A,"data-selected":!!E,onPointerMove:A||c.getDisablePointerSelection()?void 0:S,onClick:A?void 0:v},e.children)}),_5=N.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...o}=e,l=Wr(),c=N.useRef(null),d=N.useRef(null),f=Wr(),m=Gc(),p=Cs(_=>i||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);To(()=>m.group(l),[]),x2(l,c,[e.value,e.heading,d]);let E=N.useMemo(()=>({id:l,forceMount:i}),[i]);return N.createElement(Ot.div,{ref:go(c,t),...o,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&N.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),zh(e,_=>N.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},N.createElement(y2.Provider,{value:E},_))))}),T5=N.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=N.useRef(null),o=Cs(l=>!l.search);return!n&&!o?null:N.createElement(Ot.div,{ref:go(i,t),...r,"cmdk-separator":"",role:"separator"})}),x5=N.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,o=TE(),l=Cs(f=>f.search),c=Cs(f=>f.selectedItemId),d=Gc();return N.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),N.createElement(Ot.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:i?e.value:l,onChange:f=>{i||o.setState("search",f.target.value),n==null||n(f.target.value)}})}),v5=N.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,o=N.useRef(null),l=N.useRef(null),c=Cs(f=>f.selectedItemId),d=Gc();return N.useEffect(()=>{if(l.current&&o.current){let f=l.current,m=o.current,p,E=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let _=f.offsetHeight;m.style.setProperty("--cmdk-list-height",_.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(p),E.unobserve(f)}}},[]),N.createElement(Ot.div,{ref:go(o,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:d.listId},zh(e,f=>N.createElement("div",{ref:go(l,d.listInnerRef),"cmdk-list-sizer":""},f)))}),S5=N.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...c}=e;return N.createElement(iE,{open:n,onOpenChange:r},N.createElement(sE,{container:l},N.createElement(oE,{"cmdk-overlay":"",className:i}),N.createElement(lE,{"aria-label":e.label,"cmdk-dialog":"",className:o},N.createElement(_2,{ref:t,...c}))))}),N5=N.forwardRef((e,t)=>Cs(n=>n.filtered.count===0)?N.createElement(Ot.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),A5=N.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...o}=e;return N.createElement(Ot.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},zh(e,l=>N.createElement("div",{"aria-hidden":!0},l)))}),wo=Object.assign(_2,{List:v5,Item:y5,Input:x5,Group:_5,Separator:T5,Dialog:S5,Empty:N5,Loading:A5});function w5(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function C5(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function T2(e){let t=N.useRef(e);return To(()=>{t.current=e}),t}var To=typeof window>"u"?N.useEffect:N.useLayoutEffect;function bl(e){let t=N.useRef();return t.current===void 0&&(t.current=e()),t}function Cs(e){let t=TE(),n=()=>e(t.snapshot());return N.useSyncExternalStore(t.subscribe,n,n)}function x2(e,t,n,r=[]){let i=N.useRef(),o=Gc();return To(()=>{var l;let c=(()=>{var f;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(f=m.current.textContent)==null?void 0:f.trim():i.current}})(),d=r.map(f=>f.trim());o.value(e,c,d),(l=t.current)==null||l.setAttribute(gl,c),i.current=c}),i}var R5=()=>{let[e,t]=N.useState(),n=bl(()=>new Map);return To(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,i)=>{n.current.set(r,i),t({})}};function O5(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function zh({asChild:e,children:t},n){return e&&N.isValidElement(t)?N.cloneElement(O5(t),{ref:t.ref},n(t.props.children)):n(t)}var k5={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function L5({...e}){return b.jsx(iE,{"data-slot":"dialog",...e})}function I5({...e}){return b.jsx(sE,{"data-slot":"dialog-portal",...e})}function D5({className:e,...t}){return b.jsx(oE,{"data-slot":"dialog-overlay",className:et("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function M5({className:e,children:t,showCloseButton:n=!0,...r}){return b.jsxs(I5,{"data-slot":"dialog-portal",children:[b.jsx(D5,{}),b.jsxs(lE,{"data-slot":"dialog-content",className:et("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,n&&b.jsxs(IA,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[b.jsx($N,{}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function P5({className:e,...t}){return b.jsx("div",{"data-slot":"dialog-header",className:et("flex flex-col gap-2 text-center sm:text-left",e),...t})}function B5({className:e,...t}){return b.jsx(kA,{"data-slot":"dialog-title",className:et("text-lg leading-none font-semibold",e),...t})}function U5({className:e,...t}){return b.jsx(LA,{"data-slot":"dialog-description",className:et("text-muted-foreground text-sm",e),...t})}function F5({className:e,...t}){return b.jsx(wo,{"data-slot":"command",className:et("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function H5({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:i=!0,...o}){return b.jsxs(L5,{...o,children:[b.jsxs(P5,{className:"sr-only",children:[b.jsx(B5,{children:e}),b.jsx(U5,{children:t})]}),b.jsx(M5,{className:et("overflow-hidden p-0",r),showCloseButton:i,children:b.jsx(F5,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function j5({className:e,...t}){return b.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[b.jsx(Rh,{className:"size-4 shrink-0 opacity-50"}),b.jsx(wo.Input,{"data-slot":"command-input",className:et("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function z5({className:e,...t}){return b.jsx(wo.List,{"data-slot":"command-list",className:et("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function $5({...e}){return b.jsx(wo.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Hx({className:e,...t}){return b.jsx(wo.Group,{"data-slot":"command-group",className:et("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function q5({className:e,...t}){return b.jsx(wo.Separator,{"data-slot":"command-separator",className:et("bg-border -mx-1 h-px",e),...t})}function jx({className:e,...t}){return b.jsx(wo.Item,{"data-slot":"command-item",className:et("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var jt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const l of i)o[l]=l;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(c=>typeof i[i[c]]!="number"),l={};for(const c of o)l[c]=i[c];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&o.push(l);return o},e.find=(i,o)=>{for(const l of i)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(jt||(jt={}));var zx;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zx||(zx={}));const Ye=jt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bs=e=>{switch(typeof e){case"undefined":return Ye.undefined;case"string":return Ye.string;case"number":return Number.isNaN(e)?Ye.nan:Ye.number;case"boolean":return Ye.boolean;case"function":return Ye.function;case"bigint":return Ye.bigint;case"symbol":return Ye.symbol;case"object":return Array.isArray(e)?Ye.array:e===null?Ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ye.promise:typeof Map<"u"&&e instanceof Map?Ye.map:typeof Set<"u"&&e instanceof Set?Ye.set:typeof Date<"u"&&e instanceof Date?Ye.date:Ye.object;default:return Ye.unknown}},Oe=jt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Bi extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let c=r,d=0;for(;d<l.path.length;){const f=l.path[d];d===l.path.length-1?(c[f]=c[f]||{_errors:[]},c[f]._errors.push(n(l))):c[f]=c[f]||{_errors:[]},c=c[f],d++}}};return i(this),r}static assert(t){if(!(t instanceof Bi))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,jt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Bi.create=e=>new Bi(e);const z0=(e,t)=>{let n;switch(e.code){case Oe.invalid_type:e.received===Ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Oe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,jt.jsonStringifyReplacer)}`;break;case Oe.unrecognized_keys:n=`Unrecognized key(s) in object: ${jt.joinValues(e.keys,", ")}`;break;case Oe.invalid_union:n="Invalid input";break;case Oe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${jt.joinValues(e.options)}`;break;case Oe.invalid_enum_value:n=`Invalid enum value. Expected ${jt.joinValues(e.options)}, received '${e.received}'`;break;case Oe.invalid_arguments:n="Invalid function arguments";break;case Oe.invalid_return_type:n="Invalid function return type";break;case Oe.invalid_date:n="Invalid date";break;case Oe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:jt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Oe.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Oe.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Oe.custom:n="Invalid input";break;case Oe.invalid_intersection_types:n="Intersection results could not be merged";break;case Oe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Oe.not_finite:n="Number must be finite";break;default:n=t.defaultError,jt.assertNever(e)}return{message:n}};let Y5=z0;function G5(){return Y5}const V5=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],l={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let c="";const d=r.filter(f=>!!f).slice().reverse();for(const f of d)c=f(l,{data:t,defaultError:c}).message;return{...i,path:o,message:c}};function Be(e,t){const n=G5(),r=V5({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===z0?void 0:z0].filter(i=>!!i)});e.common.issues.push(r)}class Jr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return dt;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,l=await i.value;r.push({key:o,value:l})}return Jr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:l}=i;if(o.status==="aborted"||l.status==="aborted")return dt;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const dt=Object.freeze({status:"aborted"}),pc=e=>({status:"dirty",value:e}),xa=e=>({status:"valid",value:e}),$x=e=>e.status==="aborted",qx=e=>e.status==="dirty",Ll=e=>e.status==="valid",ah=e=>typeof Promise<"u"&&e instanceof Promise;var We;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(We||(We={}));class Rs{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Yx=(e,t)=>{if(Ll(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Bi(e.common.issues);return this._error=n,this._error}}};function St(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,c)=>{const{message:d}=e;return l.code==="invalid_enum_value"?{message:d??c.defaultError}:typeof c.data>"u"?{message:d??r??c.defaultError}:l.code!=="invalid_type"?{message:c.defaultError}:{message:d??n??c.defaultError}},description:i}}class Ut{get description(){return this._def.description}_getType(t){return bs(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:bs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Jr,ctx:{common:t.parent.common,data:t.data,parsedType:bs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ah(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Yx(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return Ll(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(i=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>Ll(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(ah(i)?i:Promise.resolve(i));return Yx(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const l=t(i),c=()=>o.addIssue({code:Oe.custom,...r(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(d=>d?!0:(c(),!1)):l?!0:(c(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new vo({schema:this,typeName:ft.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ts.create(this,this._def)}nullable(){return Ml.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ni.create(this)}promise(){return lh.create(this,this._def)}or(t){return sh.create([this,t],this._def)}and(t){return oh.create(this,t,this._def)}transform(t){return new vo({...St(this._def),schema:this,typeName:ft.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new V0({...St(this._def),innerType:this,defaultValue:n,typeName:ft.ZodDefault})}brand(){return new gB({typeName:ft.ZodBranded,type:this,...St(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new K0({...St(this._def),innerType:this,catchValue:n,typeName:ft.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return xE.create(this,t)}readonly(){return X0.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const K5=/^c[^\s-]{8,}$/i,X5=/^[0-9a-z]+$/,W5=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Q5=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Z5=/^[a-z0-9_-]{21}$/i,J5=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,eB=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tB=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,nB="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Pg;const rB=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,aB=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,iB=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sB=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oB=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lB=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,v2="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",uB=new RegExp(`^${v2}$`);function S2(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function cB(e){return new RegExp(`^${S2(e)}$`)}function dB(e){let t=`${v2}T${S2(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function fB(e,t){return!!((t==="v4"||!t)&&rB.test(e)||(t==="v6"||!t)&&iB.test(e))}function hB(e,t){if(!J5.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function mB(e,t){return!!((t==="v4"||!t)&&aB.test(e)||(t==="v6"||!t)&&sB.test(e))}class ys extends Ut{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ye.string){const o=this._getOrReturnCtx(t);return Be(o,{code:Oe.invalid_type,expected:Ye.string,received:o.parsedType}),dt}const r=new Jr;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const l=t.data.length>o.value,c=t.data.length<o.value;(l||c)&&(i=this._getOrReturnCtx(t,i),l?Be(i,{code:Oe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&Be(i,{code:Oe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")tB.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"email",code:Oe.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Pg||(Pg=new RegExp(nB,"u")),Pg.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"emoji",code:Oe.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Q5.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"uuid",code:Oe.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Z5.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"nanoid",code:Oe.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")K5.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"cuid",code:Oe.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")X5.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"cuid2",code:Oe.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")W5.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"ulid",code:Oe.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Be(i,{validation:"url",code:Oe.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"regex",code:Oe.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?dB(o).test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?uB.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?cB(o).test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?eB.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"duration",code:Oe.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?fB(t.data,o.version)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"ip",code:Oe.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?hB(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"jwt",code:Oe.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?mB(t.data,o.version)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"cidr",code:Oe.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?oB.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"base64",code:Oe.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?lB.test(t.data)||(i=this._getOrReturnCtx(t,i),Be(i,{validation:"base64url",code:Oe.invalid_string,message:o.message}),r.dirty()):jt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Oe.invalid_string,...We.errToObj(r)})}_addCheck(t){return new ys({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...We.errToObj(t)})}url(t){return this._addCheck({kind:"url",...We.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...We.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...We.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...We.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...We.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...We.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...We.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...We.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...We.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...We.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...We.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...We.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...We.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...We.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...We.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...We.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...We.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...We.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...We.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...We.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...We.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...We.errToObj(n)})}nonempty(t){return this.min(1,We.errToObj(t))}trim(){return new ys({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ys({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ys({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ys.create=e=>new ys({checks:[],typeName:ft.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...St(e)});function pB(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(t.toFixed(i).replace(".",""));return o%l/10**i}class Il extends Ut{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ye.number){const o=this._getOrReturnCtx(t);return Be(o,{code:Oe.invalid_type,expected:Ye.number,received:o.parsedType}),dt}let r;const i=new Jr;for(const o of this._def.checks)o.kind==="int"?jt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?pB(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.not_finite,message:o.message}),i.dirty()):jt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,We.toString(n))}gt(t,n){return this.setLimit("min",t,!1,We.toString(n))}lte(t,n){return this.setLimit("max",t,!0,We.toString(n))}lt(t,n){return this.setLimit("max",t,!1,We.toString(n))}setLimit(t,n,r,i){return new Il({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:We.toString(i)}]})}_addCheck(t){return new Il({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:We.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:We.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:We.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:We.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:We.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:We.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:We.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:We.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:We.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&jt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Il.create=e=>new Il({checks:[],typeName:ft.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...St(e)});class kc extends Ut{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ye.bigint)return this._getInvalidInput(t);let r;const i=new Jr;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Be(r,{code:Oe.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):jt.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Be(n,{code:Oe.invalid_type,expected:Ye.bigint,received:n.parsedType}),dt}gte(t,n){return this.setLimit("min",t,!0,We.toString(n))}gt(t,n){return this.setLimit("min",t,!1,We.toString(n))}lte(t,n){return this.setLimit("max",t,!0,We.toString(n))}lt(t,n){return this.setLimit("max",t,!1,We.toString(n))}setLimit(t,n,r,i){return new kc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:We.toString(i)}]})}_addCheck(t){return new kc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:We.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:We.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:We.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:We.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:We.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}kc.create=e=>new kc({checks:[],typeName:ft.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...St(e)});class $0 extends Ut{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ye.boolean){const r=this._getOrReturnCtx(t);return Be(r,{code:Oe.invalid_type,expected:Ye.boolean,received:r.parsedType}),dt}return xa(t.data)}}$0.create=e=>new $0({typeName:ft.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...St(e)});class ih extends Ut{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ye.date){const o=this._getOrReturnCtx(t);return Be(o,{code:Oe.invalid_type,expected:Ye.date,received:o.parsedType}),dt}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Be(o,{code:Oe.invalid_date}),dt}const r=new Jr;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),Be(i,{code:Oe.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):jt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ih({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:We.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:We.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ih.create=e=>new ih({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ft.ZodDate,...St(e)});class Gx extends Ut{_parse(t){if(this._getType(t)!==Ye.symbol){const r=this._getOrReturnCtx(t);return Be(r,{code:Oe.invalid_type,expected:Ye.symbol,received:r.parsedType}),dt}return xa(t.data)}}Gx.create=e=>new Gx({typeName:ft.ZodSymbol,...St(e)});class Vx extends Ut{_parse(t){if(this._getType(t)!==Ye.undefined){const r=this._getOrReturnCtx(t);return Be(r,{code:Oe.invalid_type,expected:Ye.undefined,received:r.parsedType}),dt}return xa(t.data)}}Vx.create=e=>new Vx({typeName:ft.ZodUndefined,...St(e)});class Kx extends Ut{_parse(t){if(this._getType(t)!==Ye.null){const r=this._getOrReturnCtx(t);return Be(r,{code:Oe.invalid_type,expected:Ye.null,received:r.parsedType}),dt}return xa(t.data)}}Kx.create=e=>new Kx({typeName:ft.ZodNull,...St(e)});class q0 extends Ut{constructor(){super(...arguments),this._any=!0}_parse(t){return xa(t.data)}}q0.create=e=>new q0({typeName:ft.ZodAny,...St(e)});class Xx extends Ut{constructor(){super(...arguments),this._unknown=!0}_parse(t){return xa(t.data)}}Xx.create=e=>new Xx({typeName:ft.ZodUnknown,...St(e)});class Os extends Ut{_parse(t){const n=this._getOrReturnCtx(t);return Be(n,{code:Oe.invalid_type,expected:Ye.never,received:n.parsedType}),dt}}Os.create=e=>new Os({typeName:ft.ZodNever,...St(e)});class Wx extends Ut{_parse(t){if(this._getType(t)!==Ye.undefined){const r=this._getOrReturnCtx(t);return Be(r,{code:Oe.invalid_type,expected:Ye.void,received:r.parsedType}),dt}return xa(t.data)}}Wx.create=e=>new Wx({typeName:ft.ZodVoid,...St(e)});class ni extends Ut{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ye.array)return Be(n,{code:Oe.invalid_type,expected:Ye.array,received:n.parsedType}),dt;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,c=n.data.length<i.exactLength.value;(l||c)&&(Be(n,{code:l?Oe.too_big:Oe.too_small,minimum:c?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(Be(n,{code:Oe.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(Be(n,{code:Oe.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,c)=>i.type._parseAsync(new Rs(n,l,n.path,c)))).then(l=>Jr.mergeArray(r,l));const o=[...n.data].map((l,c)=>i.type._parseSync(new Rs(n,l,n.path,c)));return Jr.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new ni({...this._def,minLength:{value:t,message:We.toString(n)}})}max(t,n){return new ni({...this._def,maxLength:{value:t,message:We.toString(n)}})}length(t,n){return new ni({...this._def,exactLength:{value:t,message:We.toString(n)}})}nonempty(t){return this.min(1,t)}}ni.create=(e,t)=>new ni({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ft.ZodArray,...St(t)});function El(e){if(e instanceof Dn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ts.create(El(r))}return new Dn({...e._def,shape:()=>t})}else return e instanceof ni?new ni({...e._def,type:El(e.element)}):e instanceof Ts?Ts.create(El(e.unwrap())):e instanceof Ml?Ml.create(El(e.unwrap())):e instanceof xo?xo.create(e.items.map(t=>El(t))):e}class Dn extends Ut{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=jt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ye.object){const f=this._getOrReturnCtx(t);return Be(f,{code:Oe.invalid_type,expected:Ye.object,received:f.parsedType}),dt}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),c=[];if(!(this._def.catchall instanceof Os&&this._def.unknownKeys==="strip"))for(const f in i.data)l.includes(f)||c.push(f);const d=[];for(const f of l){const m=o[f],p=i.data[f];d.push({key:{status:"valid",value:f},value:m._parse(new Rs(i,p,i.path,f)),alwaysSet:f in i.data})}if(this._def.catchall instanceof Os){const f=this._def.unknownKeys;if(f==="passthrough")for(const m of c)d.push({key:{status:"valid",value:m},value:{status:"valid",value:i.data[m]}});else if(f==="strict")c.length>0&&(Be(i,{code:Oe.unrecognized_keys,keys:c}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const m of c){const p=i.data[m];d.push({key:{status:"valid",value:m},value:f._parse(new Rs(i,p,i.path,m)),alwaysSet:m in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const f=[];for(const m of d){const p=await m.key,E=await m.value;f.push({key:p,value:E,alwaysSet:m.alwaysSet})}return f}).then(f=>Jr.mergeObjectSync(r,f)):Jr.mergeObjectSync(r,d)}get shape(){return this._def.shape()}strict(t){return We.errToObj,new Dn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,l;const i=((l=(o=this._def).errorMap)==null?void 0:l.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:We.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Dn({...this._def,unknownKeys:"strip"})}passthrough(){return new Dn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Dn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Dn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ft.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Dn({...this._def,catchall:t})}pick(t){const n={};for(const r of jt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Dn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of jt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Dn({...this._def,shape:()=>n})}deepPartial(){return El(this)}partial(t){const n={};for(const r of jt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Dn({...this._def,shape:()=>n})}required(t){const n={};for(const r of jt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Ts;)o=o._def.innerType;n[r]=o}return new Dn({...this._def,shape:()=>n})}keyof(){return N2(jt.objectKeys(this.shape))}}Dn.create=(e,t)=>new Dn({shape:()=>e,unknownKeys:"strip",catchall:Os.create(),typeName:ft.ZodObject,...St(t)});Dn.strictCreate=(e,t)=>new Dn({shape:()=>e,unknownKeys:"strict",catchall:Os.create(),typeName:ft.ZodObject,...St(t)});Dn.lazycreate=(e,t)=>new Dn({shape:e,unknownKeys:"strip",catchall:Os.create(),typeName:ft.ZodObject,...St(t)});class sh extends Ut{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const c of o)if(c.result.status==="valid")return c.result;for(const c of o)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const l=o.map(c=>new Bi(c.ctx.common.issues));return Be(n,{code:Oe.invalid_union,unionErrors:l}),dt}if(n.common.async)return Promise.all(r.map(async o=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let o;const l=[];for(const d of r){const f={...n,common:{...n.common,issues:[]},parent:null},m=d._parseSync({data:n.data,path:n.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:f}),f.common.issues.length&&l.push(f.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const c=l.map(d=>new Bi(d));return Be(n,{code:Oe.invalid_union,unionErrors:c}),dt}}get options(){return this._def.options}}sh.create=(e,t)=>new sh({options:e,typeName:ft.ZodUnion,...St(t)});function Y0(e,t){const n=bs(e),r=bs(t);if(e===t)return{valid:!0,data:e};if(n===Ye.object&&r===Ye.object){const i=jt.objectKeys(t),o=jt.objectKeys(e).filter(c=>i.indexOf(c)!==-1),l={...e,...t};for(const c of o){const d=Y0(e[c],t[c]);if(!d.valid)return{valid:!1};l[c]=d.data}return{valid:!0,data:l}}else if(n===Ye.array&&r===Ye.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const l=e[o],c=t[o],d=Y0(l,c);if(!d.valid)return{valid:!1};i.push(d.data)}return{valid:!0,data:i}}else return n===Ye.date&&r===Ye.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class oh extends Ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,l)=>{if($x(o)||$x(l))return dt;const c=Y0(o.value,l.value);return c.valid?((qx(o)||qx(l))&&n.dirty(),{status:n.value,value:c.data}):(Be(r,{code:Oe.invalid_intersection_types}),dt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,l])=>i(o,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}oh.create=(e,t,n)=>new oh({left:e,right:t,typeName:ft.ZodIntersection,...St(n)});class xo extends Ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.array)return Be(r,{code:Oe.invalid_type,expected:Ye.array,received:r.parsedType}),dt;if(r.data.length<this._def.items.length)return Be(r,{code:Oe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),dt;!this._def.rest&&r.data.length>this._def.items.length&&(Be(r,{code:Oe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((l,c)=>{const d=this._def.items[c]||this._def.rest;return d?d._parse(new Rs(r,l,r.path,c)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>Jr.mergeArray(n,l)):Jr.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new xo({...this._def,rest:t})}}xo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new xo({items:e,typeName:ft.ZodTuple,rest:null,...St(t)})};class Qx extends Ut{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.map)return Be(r,{code:Oe.invalid_type,expected:Ye.map,received:r.parsedType}),dt;const i=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([c,d],f)=>({key:i._parse(new Rs(r,c,r.path,[f,"key"])),value:o._parse(new Rs(r,d,r.path,[f,"value"]))}));if(r.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const d of l){const f=await d.key,m=await d.value;if(f.status==="aborted"||m.status==="aborted")return dt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(f.value,m.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const d of l){const f=d.key,m=d.value;if(f.status==="aborted"||m.status==="aborted")return dt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(f.value,m.value)}return{status:n.value,value:c}}}}Qx.create=(e,t,n)=>new Qx({valueType:t,keyType:e,typeName:ft.ZodMap,...St(n)});class Lc extends Ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.set)return Be(r,{code:Oe.invalid_type,expected:Ye.set,received:r.parsedType}),dt;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Be(r,{code:Oe.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(Be(r,{code:Oe.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function l(d){const f=new Set;for(const m of d){if(m.status==="aborted")return dt;m.status==="dirty"&&n.dirty(),f.add(m.value)}return{status:n.value,value:f}}const c=[...r.data.values()].map((d,f)=>o._parse(new Rs(r,d,r.path,f)));return r.common.async?Promise.all(c).then(d=>l(d)):l(c)}min(t,n){return new Lc({...this._def,minSize:{value:t,message:We.toString(n)}})}max(t,n){return new Lc({...this._def,maxSize:{value:t,message:We.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Lc.create=(e,t)=>new Lc({valueType:e,minSize:null,maxSize:null,typeName:ft.ZodSet,...St(t)});class G0 extends Ut{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}G0.create=(e,t)=>new G0({getter:e,typeName:ft.ZodLazy,...St(t)});class Zx extends Ut{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Be(n,{received:n.data,code:Oe.invalid_literal,expected:this._def.value}),dt}return{status:"valid",value:t.data}}get value(){return this._def.value}}Zx.create=(e,t)=>new Zx({value:e,typeName:ft.ZodLiteral,...St(t)});function N2(e,t){return new Dl({values:e,typeName:ft.ZodEnum,...St(t)})}class Dl extends Ut{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Be(n,{expected:jt.joinValues(r),received:n.parsedType,code:Oe.invalid_type}),dt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Be(n,{received:n.data,code:Oe.invalid_enum_value,options:r}),dt}return xa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Dl.create(t,{...this._def,...n})}exclude(t,n=this._def){return Dl.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Dl.create=N2;class Jx extends Ut{_parse(t){const n=jt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ye.string&&r.parsedType!==Ye.number){const i=jt.objectValues(n);return Be(r,{expected:jt.joinValues(i),received:r.parsedType,code:Oe.invalid_type}),dt}if(this._cache||(this._cache=new Set(jt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=jt.objectValues(n);return Be(r,{received:r.data,code:Oe.invalid_enum_value,options:i}),dt}return xa(t.data)}get enum(){return this._def.values}}Jx.create=(e,t)=>new Jx({values:e,typeName:ft.ZodNativeEnum,...St(t)});class lh extends Ut{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ye.promise&&n.common.async===!1)return Be(n,{code:Oe.invalid_type,expected:Ye.promise,received:n.parsedType}),dt;const r=n.parsedType===Ye.promise?n.data:Promise.resolve(n.data);return xa(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}lh.create=(e,t)=>new lh({type:e,typeName:ft.ZodPromise,...St(t)});class vo extends Ut{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ft.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:l=>{Be(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const l=i.transform(r.data,o);if(r.common.async)return Promise.resolve(l).then(async c=>{if(n.value==="aborted")return dt;const d=await this._def.schema._parseAsync({data:c,path:r.path,parent:r});return d.status==="aborted"?dt:d.status==="dirty"||n.value==="dirty"?pc(d.value):d});{if(n.value==="aborted")return dt;const c=this._def.schema._parseSync({data:l,path:r.path,parent:r});return c.status==="aborted"?dt:c.status==="dirty"||n.value==="dirty"?pc(c.value):c}}if(i.type==="refinement"){const l=c=>{const d=i.refinement(c,o);if(r.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status==="aborted"?dt:(c.status==="dirty"&&n.dirty(),l(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status==="aborted"?dt:(c.status==="dirty"&&n.dirty(),l(c.value).then(()=>({status:n.value,value:c.value}))))}if(i.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ll(l))return dt;const c=i.transform(l.value,o);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Ll(l)?Promise.resolve(i.transform(l.value,o)).then(c=>({status:n.value,value:c})):dt);jt.assertNever(i)}}vo.create=(e,t,n)=>new vo({schema:e,typeName:ft.ZodEffects,effect:t,...St(n)});vo.createWithPreprocess=(e,t,n)=>new vo({schema:t,effect:{type:"preprocess",transform:e},typeName:ft.ZodEffects,...St(n)});class Ts extends Ut{_parse(t){return this._getType(t)===Ye.undefined?xa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ts.create=(e,t)=>new Ts({innerType:e,typeName:ft.ZodOptional,...St(t)});class Ml extends Ut{_parse(t){return this._getType(t)===Ye.null?xa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ml.create=(e,t)=>new Ml({innerType:e,typeName:ft.ZodNullable,...St(t)});class V0 extends Ut{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ye.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}V0.create=(e,t)=>new V0({innerType:e,typeName:ft.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...St(t)});class K0 extends Ut{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ah(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Bi(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}K0.create=(e,t)=>new K0({innerType:e,typeName:ft.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...St(t)});class ev extends Ut{_parse(t){if(this._getType(t)!==Ye.nan){const r=this._getOrReturnCtx(t);return Be(r,{code:Oe.invalid_type,expected:Ye.nan,received:r.parsedType}),dt}return{status:"valid",value:t.data}}}ev.create=e=>new ev({typeName:ft.ZodNaN,...St(e)});class gB extends Ut{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class xE extends Ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?dt:o.status==="dirty"?(n.dirty(),pc(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?dt:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new xE({in:t,out:n,typeName:ft.ZodPipeline})}}class X0 extends Ut{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Ll(i)&&(i.value=Object.freeze(i.value)),i);return ah(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}X0.create=(e,t)=>new X0({innerType:e,typeName:ft.ZodReadonly,...St(t)});var ft;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ft||(ft={}));const wt=ys.create,Yr=Il.create,W0=$0.create,Er=q0.create;Os.create;const ka=ni.create,kr=Dn.create;sh.create;const bB=oh.create;xo.create;const Cr=G0.create,vE=Dl.create;lh.create;Ts.create;Ml.create;const La=vo.createWithPreprocess;function tv(){return{state:"init"}}function $h(e){return e.state==="pending"}function uh(e=void 0,t=void 0){return{state:"pending",progress:e,data:t}}function lr(e){return e.state==="success"}function Bg(e){return{state:"success",data:e}}function Kl(e){return e.state==="error"}function ac(e,t,n){return{state:"error",error:e,statusCode:t,request:n}}function Ui(){return{state:"success"}}function A2(e,t){return function(){return e.apply(t,arguments)}}const{toString:EB}=Object.prototype,{getPrototypeOf:SE}=Object,{iterator:qh,toStringTag:w2}=Symbol,Yh=(e=>t=>{const n=EB.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ua=e=>(e=e.toLowerCase(),t=>Yh(t)===e),Gh=e=>t=>typeof t===e,{isArray:Xl}=Array,Ic=Gh("undefined");function yB(e){return e!==null&&!Ic(e)&&e.constructor!==null&&!Ic(e.constructor)&&Rr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C2=Ua("ArrayBuffer");function _B(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&C2(e.buffer),t}const TB=Gh("string"),Rr=Gh("function"),R2=Gh("number"),Vh=e=>e!==null&&typeof e=="object",xB=e=>e===!0||e===!1,$f=e=>{if(Yh(e)!=="object")return!1;const t=SE(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(w2 in e)&&!(qh in e)},vB=Ua("Date"),SB=Ua("File"),NB=Ua("Blob"),AB=Ua("FileList"),wB=e=>Vh(e)&&Rr(e.pipe),CB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rr(e.append)&&((t=Yh(e))==="formdata"||t==="object"&&Rr(e.toString)&&e.toString()==="[object FormData]"))},RB=Ua("URLSearchParams"),[OB,kB,LB,IB]=["ReadableStream","Request","Response","Headers"].map(Ua),DB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Xl(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let c;for(r=0;r<l;r++)c=o[r],t.call(null,e[c],c,e)}}function O2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,k2=e=>!Ic(e)&&e!==co;function Q0(){const{caseless:e}=k2(this)&&this||{},t={},n=(r,i)=>{const o=e&&O2(t,i)||i;$f(t[o])&&$f(r)?t[o]=Q0(t[o],r):$f(r)?t[o]=Q0({},r):Xl(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Vc(arguments[r],n);return t}const MB=(e,t,n,{allOwnKeys:r}={})=>(Vc(t,(i,o)=>{n&&Rr(i)?e[o]=A2(i,n):e[o]=i},{allOwnKeys:r}),e),PB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),BB=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},UB=(e,t,n,r)=>{let i,o,l;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)l=i[o],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&SE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},FB=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HB=e=>{if(!e)return null;if(Xl(e))return e;let t=e.length;if(!R2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&SE(Uint8Array)),zB=(e,t)=>{const r=(e&&e[qh]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},$B=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qB=Ua("HTMLFormElement"),YB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),nv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),GB=Ua("RegExp"),L2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vc(n,(i,o)=>{let l;(l=t(i,o,e))!==!1&&(r[o]=l||i)}),Object.defineProperties(e,r)},VB=e=>{L2(e,(t,n)=>{if(Rr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Rr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},KB=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Xl(e)?r(e):r(String(e).split(t)),n},XB=()=>{},WB=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function QB(e){return!!(e&&Rr(e.append)&&e[w2]==="FormData"&&e[qh])}const ZB=e=>{const t=new Array(10),n=(r,i)=>{if(Vh(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Xl(r)?[]:{};return Vc(r,(l,c)=>{const d=n(l,i+1);!Ic(d)&&(o[c]=d)}),t[i]=void 0,o}}return r};return n(e,0)},JB=Ua("AsyncFunction"),e8=e=>e&&(Vh(e)||Rr(e))&&Rr(e.then)&&Rr(e.catch),I2=((e,t)=>e?setImmediate:t?((n,r)=>(co.addEventListener("message",({source:i,data:o})=>{i===co&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),co.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Rr(co.postMessage)),t8=typeof queueMicrotask<"u"?queueMicrotask.bind(co):typeof process<"u"&&process.nextTick||I2,n8=e=>e!=null&&Rr(e[qh]),fe={isArray:Xl,isArrayBuffer:C2,isBuffer:yB,isFormData:CB,isArrayBufferView:_B,isString:TB,isNumber:R2,isBoolean:xB,isObject:Vh,isPlainObject:$f,isReadableStream:OB,isRequest:kB,isResponse:LB,isHeaders:IB,isUndefined:Ic,isDate:vB,isFile:SB,isBlob:NB,isRegExp:GB,isFunction:Rr,isStream:wB,isURLSearchParams:RB,isTypedArray:jB,isFileList:AB,forEach:Vc,merge:Q0,extend:MB,trim:DB,stripBOM:PB,inherits:BB,toFlatObject:UB,kindOf:Yh,kindOfTest:Ua,endsWith:FB,toArray:HB,forEachEntry:zB,matchAll:$B,isHTMLForm:qB,hasOwnProperty:nv,hasOwnProp:nv,reduceDescriptors:L2,freezeMethods:VB,toObjectSet:KB,toCamelCase:YB,noop:XB,toFiniteNumber:WB,findKey:O2,global:co,isContextDefined:k2,isSpecCompliantForm:QB,toJSONObject:ZB,isAsyncFn:JB,isThenable:e8,setImmediate:I2,asap:t8,isIterable:n8};function gt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}fe.inherits(gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const D2=gt.prototype,M2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{M2[e]={value:e}});Object.defineProperties(gt,M2);Object.defineProperty(D2,"isAxiosError",{value:!0});gt.from=(e,t,n,r,i,o)=>{const l=Object.create(D2);return fe.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),gt.call(l,e.message,t,n,r,i),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const r8=null;function Z0(e){return fe.isPlainObject(e)||fe.isArray(e)}function P2(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function rv(e,t,n){return e?e.concat(t).map(function(i,o){return i=P2(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function a8(e){return fe.isArray(e)&&!e.some(Z0)}const i8=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Kh(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,A){return!fe.isUndefined(A[S])});const r=n.metaTokens,i=n.visitor||m,o=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(i))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(fe.isDate(v))return v.toISOString();if(!d&&fe.isBlob(v))throw new gt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(v)||fe.isTypedArray(v)?d&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function m(v,S,A){let x=v;if(v&&!A&&typeof v=="object"){if(fe.endsWith(S,"{}"))S=r?S:S.slice(0,-2),v=JSON.stringify(v);else if(fe.isArray(v)&&a8(v)||(fe.isFileList(v)||fe.endsWith(S,"[]"))&&(x=fe.toArray(v)))return S=P2(S),x.forEach(function(L,B){!(fe.isUndefined(L)||L===null)&&t.append(l===!0?rv([S],B,o):l===null?S:S+"[]",f(L))}),!1}return Z0(v)?!0:(t.append(rv(A,S,o),f(v)),!1)}const p=[],E=Object.assign(i8,{defaultVisitor:m,convertValue:f,isVisitable:Z0});function _(v,S){if(!fe.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(v),fe.forEach(v,function(x,O){(!(fe.isUndefined(x)||x===null)&&i.call(t,x,fe.isString(O)?O.trim():O,S,E))===!0&&_(x,S?S.concat(O):[O])}),p.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return _(e),t}function av(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function NE(e,t){this._pairs=[],e&&Kh(e,this,t)}const B2=NE.prototype;B2.append=function(t,n){this._pairs.push([t,n])};B2.toString=function(t){const n=t?function(r){return t.call(this,r,av)}:av;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function s8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function U2(e,t,n){if(!t)return e;const r=n&&n.encode||s8;fe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=fe.isURLSearchParams(t)?t.toString():new NE(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class iv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const F2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},o8=typeof URLSearchParams<"u"?URLSearchParams:NE,l8=typeof FormData<"u"?FormData:null,u8=typeof Blob<"u"?Blob:null,c8={isBrowser:!0,classes:{URLSearchParams:o8,FormData:l8,Blob:u8},protocols:["http","https","file","blob","url","data"]},AE=typeof window<"u"&&typeof document<"u",J0=typeof navigator=="object"&&navigator||void 0,d8=AE&&(!J0||["ReactNative","NativeScript","NS"].indexOf(J0.product)<0),f8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",h8=AE&&window.location.href||"http://localhost",m8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AE,hasStandardBrowserEnv:d8,hasStandardBrowserWebWorkerEnv:f8,navigator:J0,origin:h8},Symbol.toStringTag,{value:"Module"})),sr={...m8,...c8};function p8(e,t){return Kh(e,new sr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return sr.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function g8(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b8(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function H2(e){function t(n,r,i,o){let l=n[o++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=o>=n.length;return l=!l&&fe.isArray(i)?i.length:l,d?(fe.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!c):((!i[l]||!fe.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],o)&&fe.isArray(i[l])&&(i[l]=b8(i[l])),!c)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,i)=>{t(g8(r),i,n,0)}),n}return null}function E8(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kc={transitional:F2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=fe.isObject(t);if(o&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return i?JSON.stringify(H2(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return p8(t,this.formSerializer).toString();if((c=fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Kh(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),E8(t)):t}],transformResponse:[function(t){const n=this.transitional||Kc.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t))return t;if(t&&fe.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?gt.from(c,gt.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sr.classes.FormData,Blob:sr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{Kc.headers[e]={}});const y8=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_8=e=>{const t={};let n,r,i;return e&&e.split(`
256
- `).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&y8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},sv=Symbol("internals");function ic(e){return e&&String(e).trim().toLowerCase()}function qf(e){return e===!1||e==null?e:fe.isArray(e)?e.map(qf):String(e)}function T8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const x8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ug(e,t,n,r,i){if(fe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!fe.isString(t)){if(fe.isString(r))return t.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(t)}}function v8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function S8(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,l){return this[r].call(this,t,i,o,l)},configurable:!0})})}let Or=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(c,d,f){const m=ic(d);if(!m)throw new Error("header name must be a non-empty string");const p=fe.findKey(i,m);(!p||i[p]===void 0||f===!0||f===void 0&&i[p]!==!1)&&(i[p||d]=qf(c))}const l=(c,d)=>fe.forEach(c,(f,m)=>o(f,m,d));if(fe.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(fe.isString(t)&&(t=t.trim())&&!x8(t))l(_8(t),n);else if(fe.isObject(t)&&fe.isIterable(t)){let c={},d,f;for(const m of t){if(!fe.isArray(m))throw TypeError("Object iterator must return a key-value pair");c[f=m[0]]=(d=c[f])?fe.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}l(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ic(t),t){const r=fe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return T8(i);if(fe.isFunction(n))return n.call(this,i,r);if(fe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ic(t),t){const r=fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ug(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(l){if(l=ic(l),l){const c=fe.findKey(r,l);c&&(!n||Ug(r,r[c],c,n))&&(delete r[c],i=!0)}}return fe.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Ug(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return fe.forEach(this,(i,o)=>{const l=fe.findKey(r,o);if(l){n[l]=qf(i),delete n[o];return}const c=t?v8(o):String(o).trim();c!==o&&delete n[o],n[c]=qf(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
257
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[sv]=this[sv]={accessors:{}}).accessors,i=this.prototype;function o(l){const c=ic(l);r[c]||(S8(i,l),r[c]=!0)}return fe.isArray(t)?t.forEach(o):o(t),this}};Or.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(Or.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});fe.freezeMethods(Or);function Fg(e,t){const n=this||Kc,r=t||n,i=Or.from(r.headers);let o=r.data;return fe.forEach(e,function(c){o=c.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function j2(e){return!!(e&&e.__CANCEL__)}function Wl(e,t,n){gt.call(this,e??"canceled",gt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(Wl,gt,{__CANCEL__:!0});function z2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new gt("Request failed with status code "+n.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function N8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function A8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),m=r[o];l||(l=f),n[i]=d,r[i]=f;let p=o,E=0;for(;p!==i;)E+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-l<t)return;const _=m&&f-m;return _?Math.round(E*1e3/_):void 0}}function w8(e,t){let n=0,r=1e3/t,i,o;const l=(f,m=Date.now())=>{n=m,i=null,o&&(clearTimeout(o),o=null),e.apply(null,f)};return[(...f)=>{const m=Date.now(),p=m-n;p>=r?l(f,m):(i=f,o||(o=setTimeout(()=>{o=null,l(i)},r-p)))},()=>i&&l(i)]}const ch=(e,t,n=3)=>{let r=0;const i=A8(50,250);return w8(o=>{const l=o.loaded,c=o.lengthComputable?o.total:void 0,d=l-r,f=i(d),m=l<=c;r=l;const p={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&m?(c-l)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},ov=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},lv=e=>(...t)=>fe.asap(()=>e(...t)),C8=sr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,sr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(sr.origin),sr.navigator&&/(msie|trident)/i.test(sr.navigator.userAgent)):()=>!0,R8=sr.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const l=[e+"="+encodeURIComponent(t)];fe.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),fe.isString(r)&&l.push("path="+r),fe.isString(i)&&l.push("domain="+i),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function O8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k8(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $2(e,t,n){let r=!O8(t);return e&&(r||n==!1)?k8(e,t):t}const uv=e=>e instanceof Or?{...e}:e;function So(e,t){t=t||{};const n={};function r(f,m,p,E){return fe.isPlainObject(f)&&fe.isPlainObject(m)?fe.merge.call({caseless:E},f,m):fe.isPlainObject(m)?fe.merge({},m):fe.isArray(m)?m.slice():m}function i(f,m,p,E){if(fe.isUndefined(m)){if(!fe.isUndefined(f))return r(void 0,f,p,E)}else return r(f,m,p,E)}function o(f,m){if(!fe.isUndefined(m))return r(void 0,m)}function l(f,m){if(fe.isUndefined(m)){if(!fe.isUndefined(f))return r(void 0,f)}else return r(void 0,m)}function c(f,m,p){if(p in t)return r(f,m);if(p in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,m,p)=>i(uv(f),uv(m),p,!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(m){const p=d[m]||i,E=p(e[m],t[m],m);fe.isUndefined(E)&&p!==c||(n[m]=E)}),n}const q2=e=>{const t=So({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:l,auth:c}=t;t.headers=l=Or.from(l),t.url=U2($2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(fe.isFormData(n)){if(sr.hasStandardBrowserEnv||sr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...m]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...m].join("; "))}}if(sr.hasStandardBrowserEnv&&(r&&fe.isFunction(r)&&(r=r(t)),r||r!==!1&&C8(t.url))){const f=i&&o&&R8.read(o);f&&l.set(i,f)}return t},L8=typeof XMLHttpRequest<"u",I8=L8&&function(e){return new Promise(function(n,r){const i=q2(e);let o=i.data;const l=Or.from(i.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=i,m,p,E,_,v;function S(){_&&_(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let A=new XMLHttpRequest;A.open(i.method.toUpperCase(),i.url,!0),A.timeout=i.timeout;function x(){if(!A)return;const L=Or.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),k={data:!c||c==="text"||c==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:L,config:e,request:A};z2(function(U){n(U),S()},function(U){r(U),S()},k),A=null}"onloadend"in A?A.onloadend=x:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(x)},A.onabort=function(){A&&(r(new gt("Request aborted",gt.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new gt("Network Error",gt.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let B=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||F2;i.timeoutErrorMessage&&(B=i.timeoutErrorMessage),r(new gt(B,k.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,e,A)),A=null},o===void 0&&l.setContentType(null),"setRequestHeader"in A&&fe.forEach(l.toJSON(),function(B,k){A.setRequestHeader(k,B)}),fe.isUndefined(i.withCredentials)||(A.withCredentials=!!i.withCredentials),c&&c!=="json"&&(A.responseType=i.responseType),f&&([E,v]=ch(f,!0),A.addEventListener("progress",E)),d&&A.upload&&([p,_]=ch(d),A.upload.addEventListener("progress",p),A.upload.addEventListener("loadend",_)),(i.cancelToken||i.signal)&&(m=L=>{A&&(r(!L||L.type?new Wl(null,e,A):L),A.abort(),A=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const O=N8(i.url);if(O&&sr.protocols.indexOf(O)===-1){r(new gt("Unsupported protocol "+O+":",gt.ERR_BAD_REQUEST,e));return}A.send(o||null)})},D8=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(f){if(!i){i=!0,c();const m=f instanceof Error?f:this.reason;r.abort(m instanceof gt?m:new Wl(m instanceof Error?m.message:m))}};let l=t&&setTimeout(()=>{l=null,o(new gt(`timeout ${t} of ms exceeded`,gt.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>fe.asap(c),d}},M8=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},P8=async function*(e,t){for await(const n of B8(e))yield*M8(n,t)},B8=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},cv=(e,t,n,r)=>{const i=P8(e,t);let o=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:m}=await i.next();if(f){c(),d.close();return}let p=m.byteLength;if(n){let E=o+=p;n(E)}d.enqueue(new Uint8Array(m))}catch(f){throw c(f),f}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},Xh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Y2=Xh&&typeof ReadableStream=="function",U8=Xh&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),G2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},F8=Y2&&G2(()=>{let e=!1;const t=new Request(sr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),dv=64*1024,eb=Y2&&G2(()=>fe.isReadableStream(new Response("").body)),dh={stream:eb&&(e=>e.body)};Xh&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!dh[t]&&(dh[t]=fe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new gt(`Response type '${t}' is not supported`,gt.ERR_NOT_SUPPORT,r)})})})(new Response);const H8=async e=>{if(e==null)return 0;if(fe.isBlob(e))return e.size;if(fe.isSpecCompliantForm(e))return(await new Request(sr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e))return e.byteLength;if(fe.isURLSearchParams(e)&&(e=e+""),fe.isString(e))return(await U8(e)).byteLength},j8=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return n??H8(t)},z8=Xh&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:m,withCredentials:p="same-origin",fetchOptions:E}=q2(e);f=f?(f+"").toLowerCase():"text";let _=D8([i,o&&o.toAbortSignal()],l),v;const S=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let A;try{if(d&&F8&&n!=="get"&&n!=="head"&&(A=await j8(m,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),w;if(fe.isFormData(r)&&(w=k.headers.get("content-type"))&&m.setContentType(w),k.body){const[U,j]=ov(A,ch(lv(d)));r=cv(k.body,dv,U,j)}}fe.isString(p)||(p=p?"include":"omit");const x="credentials"in Request.prototype;v=new Request(t,{...E,signal:_,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:x?p:void 0});let O=await fetch(v);const L=eb&&(f==="stream"||f==="response");if(eb&&(c||L&&S)){const k={};["status","statusText","headers"].forEach(F=>{k[F]=O[F]});const w=fe.toFiniteNumber(O.headers.get("content-length")),[U,j]=c&&ov(w,ch(lv(c),!0))||[];O=new Response(cv(O.body,dv,U,()=>{j&&j(),S&&S()}),k)}f=f||"text";let B=await dh[fe.findKey(dh,f)||"text"](O,e);return!L&&S&&S(),await new Promise((k,w)=>{z2(k,w,{data:B,headers:Or.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:v})})}catch(x){throw S&&S(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new gt("Network Error",gt.ERR_NETWORK,e,v),{cause:x.cause||x}):gt.from(x,x&&x.code,e,v)}}),tb={http:r8,xhr:I8,fetch:z8};fe.forEach(tb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fv=e=>`- ${e}`,$8=e=>fe.isFunction(e)||e===null||e===!1,V2={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let l;if(r=n,!$8(n)&&(r=tb[(l=String(n)).toLowerCase()],r===void 0))throw new gt(`Unknown adapter '${l}'`);if(r)break;i[l||"#"+o]=r}if(!r){const o=Object.entries(i).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since :
258
- `+o.map(fv).join(`
259
- `):" "+fv(o[0]):"as no adapter specified";throw new gt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:tb};function Hg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wl(null,e)}function hv(e){return Hg(e),e.headers=Or.from(e.headers),e.data=Fg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),V2.getAdapter(e.adapter||Kc.adapter)(e).then(function(r){return Hg(e),r.data=Fg.call(e,e.transformResponse,r),r.headers=Or.from(r.headers),r},function(r){return j2(r)||(Hg(e),r&&r.response&&(r.response.data=Fg.call(e,e.transformResponse,r.response),r.response.headers=Or.from(r.response.headers))),Promise.reject(r)})}const K2="1.9.0",Wh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const mv={};Wh.transitional=function(t,n,r){function i(o,l){return"[Axios v"+K2+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,c)=>{if(t===!1)throw new gt(i(l," has been removed"+(n?" in "+n:"")),gt.ERR_DEPRECATED);return n&&!mv[l]&&(mv[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,c):!0}};Wh.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function q8(e,t,n){if(typeof e!="object")throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],l=t[o];if(l){const c=e[o],d=c===void 0||l(c,o,e);if(d!==!0)throw new gt("option "+o+" must be "+d,gt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new gt("Unknown option "+o,gt.ERR_BAD_OPTION)}}const Yf={assertOptions:q8,validators:Wh},Ga=Yf.validators;let mo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new iv,response:new iv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
260
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=So(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Yf.assertOptions(r,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),i!=null&&(fe.isFunction(i)?n.paramsSerializer={serialize:i}:Yf.assertOptions(i,{encode:Ga.function,serialize:Ga.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Yf.assertOptions(n,{baseUrl:Ga.spelling("baseURL"),withXsrfToken:Ga.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&fe.merge(o.common,o[n.method]);o&&fe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Or.concat(l,o);const c=[];let d=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(d=d&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let m,p=0,E;if(!d){const v=[hv.bind(this),void 0];for(v.unshift.apply(v,c),v.push.apply(v,f),E=v.length,m=Promise.resolve(n);p<E;)m=m.then(v[p++],v[p++]);return m}E=c.length;let _=n;for(p=0;p<E;){const v=c[p++],S=c[p++];try{_=v(_)}catch(A){S.call(this,A);break}}try{m=hv.call(this,_)}catch(v){return Promise.reject(v)}for(p=0,E=f.length;p<E;)m=m.then(f[p++],f[p++]);return m}getUri(t){t=So(this.defaults,t);const n=$2(t.baseURL,t.url,t.allowAbsoluteUrls);return U2(n,t.params,t.paramsSerializer)}};fe.forEach(["delete","get","head","options"],function(t){mo.prototype[t]=function(n,r){return this.request(So(r||{},{method:t,url:n,data:(r||{}).data}))}});fe.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,c){return this.request(So(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}mo.prototype[t]=n(),mo.prototype[t+"Form"]=n(!0)});let Y8=class X2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const l=new Promise(c=>{r.subscribe(c),o=c}).then(i);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,c){r.reason||(r.reason=new Wl(o,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new X2(function(i){t=i}),cancel:t}}};function G8(e){return function(n){return e.apply(null,n)}}function V8(e){return fe.isObject(e)&&e.isAxiosError===!0}const nb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nb).forEach(([e,t])=>{nb[t]=e});function W2(e){const t=new mo(e),n=A2(mo.prototype.request,t);return fe.extend(n,mo.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return W2(So(e,i))},n}const _n=W2(Kc);_n.Axios=mo;_n.CanceledError=Wl;_n.CancelToken=Y8;_n.isCancel=j2;_n.VERSION=K2;_n.toFormData=Kh;_n.AxiosError=gt;_n.Cancel=_n.CanceledError;_n.all=function(t){return Promise.all(t)};_n.spread=G8;_n.isAxiosError=V8;_n.mergeConfig=So;_n.AxiosHeaders=Or;_n.formToJSON=e=>H2(fe.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=V2.getAdapter;_n.HttpStatusCode=nb;_n.default=_n;const{Axios:nW,AxiosError:rW,CanceledError:aW,isCancel:iW,CancelToken:sW,VERSION:oW,all:lW,Cancel:uW,isAxiosError:K8,spread:cW,toFormData:dW,AxiosHeaders:fW,HttpStatusCode:hW,formToJSON:mW,getAdapter:pW,mergeConfig:gW}=_n;var Gf={exports:{}},X8=Gf.exports,pv;function W8(){return pv||(pv=1,function(e){(function(t,n){e.exports?e.exports=n():t.log=n()})(X8,function(){var t=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],o={},l=null;function c(S,A){var x=S[A];if(typeof x.bind=="function")return x.bind(S);try{return Function.prototype.bind.call(x,S)}catch{return function(){return Function.prototype.apply.apply(x,[S,arguments])}}}function d(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function f(S){return S==="debug"&&(S="log"),typeof console===n?!1:S==="trace"&&r?d:console[S]!==void 0?c(console,S):console.log!==void 0?c(console,"log"):t}function m(){for(var S=this.getLevel(),A=0;A<i.length;A++){var x=i[A];this[x]=A<S?t:this.methodFactory(x,S,this.name)}if(this.log=this.debug,typeof console===n&&S<this.levels.SILENT)return"No console available for logging"}function p(S){return function(){typeof console!==n&&(m.call(this),this[S].apply(this,arguments))}}function E(S,A,x){return f(S)||p.apply(this,arguments)}function _(S,A){var x=this,O,L,B,k="loglevel";typeof S=="string"?k+=":"+S:typeof S=="symbol"&&(k=void 0);function w(J){var X=(i[J]||"silent").toUpperCase();if(!(typeof window===n||!k)){try{window.localStorage[k]=X;return}catch{}try{window.document.cookie=encodeURIComponent(k)+"="+X+";"}catch{}}}function U(){var J;if(!(typeof window===n||!k)){try{J=window.localStorage[k]}catch{}if(typeof J===n)try{var X=window.document.cookie,V=encodeURIComponent(k),ne=X.indexOf(V+"=");ne!==-1&&(J=/^([^;]+)/.exec(X.slice(ne+V.length+1))[1])}catch{}return x.levels[J]===void 0&&(J=void 0),J}}function j(){if(!(typeof window===n||!k)){try{window.localStorage.removeItem(k)}catch{}try{window.document.cookie=encodeURIComponent(k)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function F(J){var X=J;if(typeof X=="string"&&x.levels[X.toUpperCase()]!==void 0&&(X=x.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=x.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+J)}x.name=S,x.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},x.methodFactory=A||E,x.getLevel=function(){return B??L??O},x.setLevel=function(J,X){return B=F(J),X!==!1&&w(B),m.call(x)},x.setDefaultLevel=function(J){L=F(J),U()||x.setLevel(J,!1)},x.resetLevel=function(){B=null,j(),m.call(x)},x.enableAll=function(J){x.setLevel(x.levels.TRACE,J)},x.disableAll=function(J){x.setLevel(x.levels.SILENT,J)},x.rebuild=function(){if(l!==x&&(O=F(l.getLevel())),m.call(x),l===x)for(var J in o)o[J].rebuild()},O=F(l?l.getLevel():"WARN");var M=U();M!=null&&(B=F(M)),m.call(x)}l=new _,l.getLogger=function(A){if(typeof A!="symbol"&&typeof A!="string"||A==="")throw new TypeError("You must supply a name when creating a logger.");var x=o[A];return x||(x=o[A]=new _(A,l.methodFactory)),x};var v=typeof window!==n?window.log:void 0;return l.noConflict=function(){return typeof window!==n&&window.log===l&&(window.log=v),l},l.getLoggers=function(){return o},l.default=l,l})}(Gf)),Gf.exports}var Q8=W8();const Ka=zl(Q8),jg={},Z8=typeof import.meta<"u"?jg==null?void 0:jg.VITE_LOG_LEVEL:void 0,J8=typeof localStorage<"u"?localStorage.getItem("LOG_LEVEL"):null,e9=Z8??J8??"error";Ka.setLevel(e9);typeof window<"u"&&(window.setLogLevel=e=>{Ka.setLevel(e);try{localStorage.setItem("LOG_LEVEL",String(e))}catch{}console.log(`✏️ loglevel set to '${e}'`)});const oo={info:(e,t)=>t?Ka.info(e,t):Ka.info(e),warn:(e,t)=>t?Ka.warn(e,t):Ka.warn(e),error:(e,t)=>t?Ka.error(e,t):Ka.error(e),debug:(e,t)=>t?Ka.debug(e,t):Ka.debug(e)};class gv extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function zg(e){}function t9(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=zg,onError:n=zg,onRetry:r=zg,onComment:i}=e;let o="",l=!0,c,d="",f="";function m(S){const A=l?S.replace(/^\xEF\xBB\xBF/,""):S,[x,O]=n9(`${o}${A}`);for(const L of x)p(L);o=O,l=!1}function p(S){if(S===""){_();return}if(S.startsWith(":")){i&&i(S.slice(S.startsWith(": ")?2:1));return}const A=S.indexOf(":");if(A!==-1){const x=S.slice(0,A),O=S[A+1]===" "?2:1,L=S.slice(A+O);E(x,L,S);return}E(S,"",S)}function E(S,A,x){switch(S){case"event":f=A;break;case"data":d=`${d}${A}
261
- `;break;case"id":c=A.includes("\0")?void 0:A;break;case"retry":/^\d+$/.test(A)?r(parseInt(A,10)):n(new gv(`Invalid \`retry\` value: "${A}"`,{type:"invalid-retry",value:A,line:x}));break;default:n(new gv(`Unknown field "${S.length>20?`${S.slice(0,20)}…`:S}"`,{type:"unknown-field",field:S,value:A,line:x}));break}}function _(){d.length>0&&t({id:c,event:f||void 0,data:d.endsWith(`
262
- `)?d.slice(0,-1):d}),c=void 0,d="",f=""}function v(S={}){o&&S.consume&&p(o),l=!0,c=void 0,d="",f="",o=""}return{feed:m,reset:v}}function n9(e){const t=[];let n="",r=0;for(;r<e.length;){const i=e.indexOf("\r",r),o=e.indexOf(`
263
- `,r);let l=-1;if(i!==-1&&o!==-1?l=Math.min(i,o):i!==-1?l=i:o!==-1&&(l=o),l===-1){n=e.slice(r);break}else{const c=e.slice(r,l);t.push(c),r=l+1,e[r-1]==="\r"&&e[r]===`
264
- `&&r++}}return[t,n]}let wE=N.createContext({state:{},filteredState:{},dispatch(){},configs:{},async execute(){}});function r9(e,t){return{...e,[`${t.source}:${t.operation}:${t.key}`]:t.state}}function a9(e,t){const n=_n.create({...e??{},...t??{}});async function r(o){var c,d;let l=await((c=e==null?void 0:e.requestInterceptor)==null?void 0:c.call(e,o))??o;return((d=t==null?void 0:t.requestInterceptor)==null?void 0:d.call(t,l))??l}async function i(o){var c,d;let l=await((c=e==null?void 0:e.responseInterceptor)==null?void 0:c.call(e,o))??o;return((d=t==null?void 0:t.responseInterceptor)==null?void 0:d.call(t,l))??l}return n.interceptors.request.use(r),n.interceptors.response.use(i,o=>Promise.reject(o)),n}function i9({children:e,configs:t={}}){const[n,r]=N.useReducer(r9,{}),i=N.useMemo(()=>({deamon_api:a9(t.defaults,t.deamon_api)}),[t]),o=N.useMemo(()=>{async function l(c,d,f,m){var p,E,_,v,S;try{d(uh());let A=await i[c.source].request(c);if(A.status>=200&&A.status<300)if((E=(p=A.headers)==null?void 0:p["content-type"])!=null&&E.includes("text/event-stream")){const x=A.data.getReader(),O=new TextDecoder;let L;const B=t9({onEvent(k){let w=k.data;try{let U=JSON.parse(w);if(f){let j=f.safeParse(U);if(!j.success){d(ac(j.error.issues,A.status,c));return}U=j.data}w=U}catch(U){oo.error(U)}L=w,Cl.flushSync(()=>d(uh(void 0,w)))}});for(;;){let{done:k,value:w}=await x.read();if(k){Cl.flushSync(()=>d(Bg(L)));break}B.feed(O.decode(w,{stream:!0}))}}else if(f){let x=f.safeParse(A.data);if(!x.success){d(ac(x.error.issues,A.status,c));return}d(Bg(x.data))}else d(Bg(A.data));else{let{data:x,error:O}=(m==null?void 0:m.safeParse(A.data??{}))??{};d(ac(x??A.data??A.statusText,A.status))}}catch(A){if(K8(A)){let{data:x,error:O}=(m==null?void 0:m.safeParse(((_=A.response)==null?void 0:_.data)??{}))??{};d(ac(x??((v=A.response)==null?void 0:v.data),(S=A.response)==null?void 0:S.status,c))}else d(ac(A))}}return{state:n,dispatch:r,filteredState:n,configs:t,execute:l}},[n,i]);return b.jsx(wE.Provider,{value:o,children:e})}function Fi({key:e,operation:t,source:n,schema:r,errorSchema:i,debounceDelay:o}){var S;const l=N.useContext(wE),[c,d]=N.useState(),f=N.useMemo(()=>{var A,x;return oo.info(`Updating status ${e} ${t} ${n}`),oo.debug("<=",(A=l.state)==null?void 0:A[`${n}:${t}:${e}`]),((x=l.state)==null?void 0:x[`${n}:${t}:${e}`])??tv()},[JSON.stringify((S=l.state)==null?void 0:S[`${n}:${t}:${e}`])]),m=N.useCallback(A=>{l.dispatch({key:e,operation:t,source:n,state:A})},[e,t,n,l.dispatch]),p=N.useMemo(()=>{var A,x;return o??((x=(A=l.configs)==null?void 0:A[n])==null?void 0:x.debounceDelay)??0},[l.configs,o,n]),E=N.useCallback(async A=>{oo.info(`Executing request ${e} ${t} ${n}`),oo.debug("=>",A);let x=new AbortController;d(x);let O={...A,onUploadProgress(L){var B;m(uh({type:"upload",loaded:L.loaded,total:L.total})),(B=A.onUploadProgress)==null||B.call(A,L)},onDownloadProgress(L){var B;m(uh({type:"download",loaded:L.loaded,total:L.total})),(B=A.onDownloadProgress)==null||B.call(A,L)},signal:x.signal};await l.execute(O,m,r,i)},[f,l.dispatch,_n]),_=N.useMemo(()=>o9(E,p??0),[E]),v=N.useCallback(()=>{oo.info(`Clearing request ${e} ${t} ${n}`),m(tv()),d(A=>{oo.info(`Aborting request ${e} ${t} ${n}`),A==null||A.abort()})},[m,c]);return[f,_,v,m]}function s9({schema:e,errorSchema:t}){const n=N.useContext(wE),r=N.useRef(null),i=N.useCallback(async l=>{var d;(d=r.current)==null||d.abort();const c=new AbortController;return r.current=c,new Promise((f,m)=>{n.execute({...l,signal:c.signal},p=>{lr(p)?f(p.data):Kl(p)&&m(p.error)},e,t)})},[n,e,t]),o=N.useCallback(()=>{var l;(l=r.current)==null||l.abort()},[]);return[i,o]}function o9(e,t){let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}var $g={},qg={},bv;function CE(){return bv||(bv=1,function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r="["+t+"]["+n+"]*",i=new RegExp("^"+r+"$"),o=function(c,d){const f=[];let m=d.exec(c);for(;m;){const p=[];p.startIndex=d.lastIndex-m[0].length;const E=m.length;for(let _=0;_<E;_++)p.push(m[_]);f.push(p),m=d.exec(c)}return f},l=function(c){const d=i.exec(c);return!(d===null||typeof d>"u")};e.isExist=function(c){return typeof c<"u"},e.isEmptyObject=function(c){return Object.keys(c).length===0},e.merge=function(c,d,f){if(d){const m=Object.keys(d),p=m.length;for(let E=0;E<p;E++)f==="strict"?c[m[E]]=[d[m[E]]]:c[m[E]]=d[m[E]]}},e.getValue=function(c){return e.isExist(c)?c:""},e.isName=l,e.getAllMatches=o,e.nameRegexp=r}(qg)),qg}var Ev;function Q2(){if(Ev)return $g;Ev=1;const e=CE(),t={allowBooleanAttributes:!1,unpairedTags:[]};$g.validate=function(x,O){O=Object.assign({},t,O);const L=[];let B=!1,k=!1;x[0]==="\uFEFF"&&(x=x.substr(1));for(let w=0;w<x.length;w++)if(x[w]==="<"&&x[w+1]==="?"){if(w+=2,w=r(x,w),w.err)return w}else if(x[w]==="<"){let U=w;if(w++,x[w]==="!"){w=i(x,w);continue}else{let j=!1;x[w]==="/"&&(j=!0,w++);let F="";for(;w<x.length&&x[w]!==">"&&x[w]!==" "&&x[w]!==" "&&x[w]!==`
265
- `&&x[w]!=="\r";w++)F+=x[w];if(F=F.trim(),F[F.length-1]==="/"&&(F=F.substring(0,F.length-1),w--),!v(F)){let X;return F.trim().length===0?X="Invalid space after '<'.":X="Tag '"+F+"' is an invalid name.",E("InvalidTag",X,S(x,w))}const M=c(x,w);if(M===!1)return E("InvalidAttr","Attributes for '"+F+"' have open quote.",S(x,w));let J=M.value;if(w=M.index,J[J.length-1]==="/"){const X=w-J.length;J=J.substring(0,J.length-1);const V=f(J,O);if(V===!0)B=!0;else return E(V.err.code,V.err.msg,S(x,X+V.err.line))}else if(j)if(M.tagClosed){if(J.trim().length>0)return E("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",S(x,U));if(L.length===0)return E("InvalidTag","Closing tag '"+F+"' has not been opened.",S(x,U));{const X=L.pop();if(F!==X.tagName){let V=S(x,X.tagStartPos);return E("InvalidTag","Expected closing tag '"+X.tagName+"' (opened in line "+V.line+", col "+V.col+") instead of closing tag '"+F+"'.",S(x,U))}L.length==0&&(k=!0)}}else return E("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",S(x,w));else{const X=f(J,O);if(X!==!0)return E(X.err.code,X.err.msg,S(x,w-J.length+X.err.line));if(k===!0)return E("InvalidXml","Multiple possible root nodes found.",S(x,w));O.unpairedTags.indexOf(F)!==-1||L.push({tagName:F,tagStartPos:U}),B=!0}for(w++;w<x.length;w++)if(x[w]==="<")if(x[w+1]==="!"){w++,w=i(x,w);continue}else if(x[w+1]==="?"){if(w=r(x,++w),w.err)return w}else break;else if(x[w]==="&"){const X=p(x,w);if(X==-1)return E("InvalidChar","char '&' is not expected.",S(x,w));w=X}else if(k===!0&&!n(x[w]))return E("InvalidXml","Extra text at the end",S(x,w));x[w]==="<"&&w--}}else{if(n(x[w]))continue;return E("InvalidChar","char '"+x[w]+"' is not expected.",S(x,w))}if(B){if(L.length==1)return E("InvalidTag","Unclosed tag '"+L[0].tagName+"'.",S(x,L[0].tagStartPos));if(L.length>0)return E("InvalidXml","Invalid '"+JSON.stringify(L.map(w=>w.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return E("InvalidXml","Start tag expected.",1);return!0};function n(x){return x===" "||x===" "||x===`
266
- `||x==="\r"}function r(x,O){const L=O;for(;O<x.length;O++)if(x[O]=="?"||x[O]==" "){const B=x.substr(L,O-L);if(O>5&&B==="xml")return E("InvalidXml","XML declaration allowed only at the start of the document.",S(x,O));if(x[O]=="?"&&x[O+1]==">"){O++;break}else continue}return O}function i(x,O){if(x.length>O+5&&x[O+1]==="-"&&x[O+2]==="-"){for(O+=3;O<x.length;O++)if(x[O]==="-"&&x[O+1]==="-"&&x[O+2]===">"){O+=2;break}}else if(x.length>O+8&&x[O+1]==="D"&&x[O+2]==="O"&&x[O+3]==="C"&&x[O+4]==="T"&&x[O+5]==="Y"&&x[O+6]==="P"&&x[O+7]==="E"){let L=1;for(O+=8;O<x.length;O++)if(x[O]==="<")L++;else if(x[O]===">"&&(L--,L===0))break}else if(x.length>O+9&&x[O+1]==="["&&x[O+2]==="C"&&x[O+3]==="D"&&x[O+4]==="A"&&x[O+5]==="T"&&x[O+6]==="A"&&x[O+7]==="["){for(O+=8;O<x.length;O++)if(x[O]==="]"&&x[O+1]==="]"&&x[O+2]===">"){O+=2;break}}return O}const o='"',l="'";function c(x,O){let L="",B="",k=!1;for(;O<x.length;O++){if(x[O]===o||x[O]===l)B===""?B=x[O]:B!==x[O]||(B="");else if(x[O]===">"&&B===""){k=!0;break}L+=x[O]}return B!==""?!1:{value:L,index:O,tagClosed:k}}const d=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function f(x,O){const L=e.getAllMatches(x,d),B={};for(let k=0;k<L.length;k++){if(L[k][1].length===0)return E("InvalidAttr","Attribute '"+L[k][2]+"' has no space in starting.",A(L[k]));if(L[k][3]!==void 0&&L[k][4]===void 0)return E("InvalidAttr","Attribute '"+L[k][2]+"' is without value.",A(L[k]));if(L[k][3]===void 0&&!O.allowBooleanAttributes)return E("InvalidAttr","boolean attribute '"+L[k][2]+"' is not allowed.",A(L[k]));const w=L[k][2];if(!_(w))return E("InvalidAttr","Attribute '"+w+"' is an invalid name.",A(L[k]));if(!B.hasOwnProperty(w))B[w]=1;else return E("InvalidAttr","Attribute '"+w+"' is repeated.",A(L[k]))}return!0}function m(x,O){let L=/\d/;for(x[O]==="x"&&(O++,L=/[\da-fA-F]/);O<x.length;O++){if(x[O]===";")return O;if(!x[O].match(L))break}return-1}function p(x,O){if(O++,x[O]===";")return-1;if(x[O]==="#")return O++,m(x,O);let L=0;for(;O<x.length;O++,L++)if(!(x[O].match(/\w/)&&L<20)){if(x[O]===";")break;return-1}return O}function E(x,O,L){return{err:{code:x,msg:O,line:L.line||L,col:L.col}}}function _(x){return e.isName(x)}function v(x){return e.isName(x)}function S(x,O){const L=x.substring(0,O).split(/\r?\n/);return{line:L.length,col:L[L.length-1].length+1}}function A(x){return x.startIndex+x[1].length}return $g}var Sf={},yv;function l9(){if(yv)return Sf;yv=1;const e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(n,r){return r},attributeValueProcessor:function(n,r){return r},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(n,r,i){return n}},t=function(n){return Object.assign({},e,n)};return Sf.buildOptions=t,Sf.defaultOptions=e,Sf}var Yg,_v;function u9(){if(_v)return Yg;_v=1;class e{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,r){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:r})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}return Yg=e,Yg}var Gg,Tv;function c9(){if(Tv)return Gg;Tv=1;const e=CE();function t(f,m){const p={};if(f[m+3]==="O"&&f[m+4]==="C"&&f[m+5]==="T"&&f[m+6]==="Y"&&f[m+7]==="P"&&f[m+8]==="E"){m=m+9;let E=1,_=!1,v=!1,S="";for(;m<f.length;m++)if(f[m]==="<"&&!v){if(_&&i(f,m)){m+=7;let A,x;[A,x,m]=n(f,m+1),x.indexOf("&")===-1&&(p[d(A)]={regx:RegExp(`&${A};`,"g"),val:x})}else if(_&&o(f,m))m+=8;else if(_&&l(f,m))m+=8;else if(_&&c(f,m))m+=9;else if(r)v=!0;else throw new Error("Invalid DOCTYPE");E++,S=""}else if(f[m]===">"){if(v?f[m-1]==="-"&&f[m-2]==="-"&&(v=!1,E--):E--,E===0)break}else f[m]==="["?_=!0:S+=f[m];if(E!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:p,i:m}}function n(f,m){let p="";for(;m<f.length&&f[m]!=="'"&&f[m]!=='"';m++)p+=f[m];if(p=p.trim(),p.indexOf(" ")!==-1)throw new Error("External entites are not supported");const E=f[m++];let _="";for(;m<f.length&&f[m]!==E;m++)_+=f[m];return[p,_,m]}function r(f,m){return f[m+1]==="!"&&f[m+2]==="-"&&f[m+3]==="-"}function i(f,m){return f[m+1]==="!"&&f[m+2]==="E"&&f[m+3]==="N"&&f[m+4]==="T"&&f[m+5]==="I"&&f[m+6]==="T"&&f[m+7]==="Y"}function o(f,m){return f[m+1]==="!"&&f[m+2]==="E"&&f[m+3]==="L"&&f[m+4]==="E"&&f[m+5]==="M"&&f[m+6]==="E"&&f[m+7]==="N"&&f[m+8]==="T"}function l(f,m){return f[m+1]==="!"&&f[m+2]==="A"&&f[m+3]==="T"&&f[m+4]==="T"&&f[m+5]==="L"&&f[m+6]==="I"&&f[m+7]==="S"&&f[m+8]==="T"}function c(f,m){return f[m+1]==="!"&&f[m+2]==="N"&&f[m+3]==="O"&&f[m+4]==="T"&&f[m+5]==="A"&&f[m+6]==="T"&&f[m+7]==="I"&&f[m+8]==="O"&&f[m+9]==="N"}function d(f){if(e.isName(f))return f;throw new Error(`Invalid entity name ${f}`)}return Gg=t,Gg}var Vg,xv;function d9(){if(xv)return Vg;xv=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function r(l,c={}){if(c=Object.assign({},n,c),!l||typeof l!="string")return l;let d=l.trim();if(c.skipLike!==void 0&&c.skipLike.test(d))return l;if(l==="0")return 0;if(c.hex&&e.test(d))return o(d,16);if(d.search(/[eE]/)!==-1){const f=d.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(f){if(c.leadingZeros)d=(f[1]||"")+f[3];else if(!(f[2]==="0"&&f[3][0]==="."))return l;return c.eNotation?Number(d):l}else return l}else{const f=t.exec(d);if(f){const m=f[1],p=f[2];let E=i(f[3]);if(!c.leadingZeros&&p.length>0&&m&&d[2]!==".")return l;if(!c.leadingZeros&&p.length>0&&!m&&d[1]!==".")return l;if(c.leadingZeros&&p===l)return 0;{const _=Number(d),v=""+_;return v.search(/[eE]/)!==-1?c.eNotation?_:l:d.indexOf(".")!==-1?v==="0"&&E===""||v===E||m&&v==="-"+E?_:l:p?E===v||m+E===v?_:l:d===v||d===m+v?_:l}}else return l}}function i(l){return l&&l.indexOf(".")!==-1&&(l=l.replace(/0+$/,""),l==="."?l="0":l[0]==="."?l="0"+l:l[l.length-1]==="."&&(l=l.substr(0,l.length-1))),l}function o(l,c){if(parseInt)return parseInt(l,c);if(Number.parseInt)return Number.parseInt(l,c);if(window&&window.parseInt)return window.parseInt(l,c);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return Vg=r,Vg}var Kg,vv;function Z2(){if(vv)return Kg;vv=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?n=>{for(const r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1}return Kg=e,Kg}var Xg,Sv;function f9(){if(Sv)return Xg;Sv=1;const e=CE(),t=u9(),n=c9(),r=d9(),i=Z2();class o{constructor(w){this.options=w,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(U,j)=>String.fromCharCode(Number.parseInt(j,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,j)=>String.fromCharCode(Number.parseInt(j,16))}},this.addExternalEntities=l,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=d,this.buildAttributesMap=m,this.isItStopNode=S,this.replaceEntitiesValue=_,this.readStopNodeData=L,this.saveTextToParentTag=v,this.addChild=E,this.ignoreAttributesFn=i(this.options.ignoreAttributes)}}function l(k){const w=Object.keys(k);for(let U=0;U<w.length;U++){const j=w[U];this.lastEntities[j]={regex:new RegExp("&"+j+";","g"),val:k[j]}}}function c(k,w,U,j,F,M,J){if(k!==void 0&&(this.options.trimValues&&!j&&(k=k.trim()),k.length>0)){J||(k=this.replaceEntitiesValue(k));const X=this.options.tagValueProcessor(w,k,U,F,M);return X==null?k:typeof X!=typeof k||X!==k?X:this.options.trimValues?B(k,this.options.parseTagValue,this.options.numberParseOptions):k.trim()===k?B(k,this.options.parseTagValue,this.options.numberParseOptions):k}}function d(k){if(this.options.removeNSPrefix){const w=k.split(":"),U=k.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";w.length===2&&(k=U+w[1])}return k}const f=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function m(k,w,U){if(this.options.ignoreAttributes!==!0&&typeof k=="string"){const j=e.getAllMatches(k,f),F=j.length,M={};for(let J=0;J<F;J++){const X=this.resolveNameSpace(j[J][1]);if(this.ignoreAttributesFn(X,w))continue;let V=j[J][4],ne=this.options.attributeNamePrefix+X;if(X.length)if(this.options.transformAttributeName&&(ne=this.options.transformAttributeName(ne)),ne==="__proto__"&&(ne="#__proto__"),V!==void 0){this.options.trimValues&&(V=V.trim()),V=this.replaceEntitiesValue(V);const ae=this.options.attributeValueProcessor(X,V,w);ae==null?M[ne]=V:typeof ae!=typeof V||ae!==V?M[ne]=ae:M[ne]=B(V,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(M[ne]=!0)}if(!Object.keys(M).length)return;if(this.options.attributesGroupName){const J={};return J[this.options.attributesGroupName]=M,J}return M}}const p=function(k){k=k.replace(/\r\n?/g,`
267
- `);const w=new t("!xml");let U=w,j="",F="";for(let M=0;M<k.length;M++)if(k[M]==="<")if(k[M+1]==="/"){const X=x(k,">",M,"Closing Tag is not closed.");let V=k.substring(M+2,X).trim();if(this.options.removeNSPrefix){const Q=V.indexOf(":");Q!==-1&&(V=V.substr(Q+1))}this.options.transformTagName&&(V=this.options.transformTagName(V)),U&&(j=this.saveTextToParentTag(j,U,F));const ne=F.substring(F.lastIndexOf(".")+1);if(V&&this.options.unpairedTags.indexOf(V)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${V}>`);let ae=0;ne&&this.options.unpairedTags.indexOf(ne)!==-1?(ae=F.lastIndexOf(".",F.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ae=F.lastIndexOf("."),F=F.substring(0,ae),U=this.tagsNodeStack.pop(),j="",M=X}else if(k[M+1]==="?"){let X=O(k,M,!1,"?>");if(!X)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,U,F),!(this.options.ignoreDeclaration&&X.tagName==="?xml"||this.options.ignorePiTags)){const V=new t(X.tagName);V.add(this.options.textNodeName,""),X.tagName!==X.tagExp&&X.attrExpPresent&&(V[":@"]=this.buildAttributesMap(X.tagExp,F,X.tagName)),this.addChild(U,V,F)}M=X.closeIndex+1}else if(k.substr(M+1,3)==="!--"){const X=x(k,"-->",M+4,"Comment is not closed.");if(this.options.commentPropName){const V=k.substring(M+4,X-2);j=this.saveTextToParentTag(j,U,F),U.add(this.options.commentPropName,[{[this.options.textNodeName]:V}])}M=X}else if(k.substr(M+1,2)==="!D"){const X=n(k,M);this.docTypeEntities=X.entities,M=X.i}else if(k.substr(M+1,2)==="!["){const X=x(k,"]]>",M,"CDATA is not closed.")-2,V=k.substring(M+9,X);j=this.saveTextToParentTag(j,U,F);let ne=this.parseTextData(V,U.tagname,F,!0,!1,!0,!0);ne==null&&(ne=""),this.options.cdataPropName?U.add(this.options.cdataPropName,[{[this.options.textNodeName]:V}]):U.add(this.options.textNodeName,ne),M=X+2}else{let X=O(k,M,this.options.removeNSPrefix),V=X.tagName;const ne=X.rawTagName;let ae=X.tagExp,Q=X.attrExpPresent,be=X.closeIndex;this.options.transformTagName&&(V=this.options.transformTagName(V)),U&&j&&U.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,U,F,!1));const K=U;if(K&&this.options.unpairedTags.indexOf(K.tagname)!==-1&&(U=this.tagsNodeStack.pop(),F=F.substring(0,F.lastIndexOf("."))),V!==w.tagname&&(F+=F?"."+V:V),this.isItStopNode(this.options.stopNodes,F,V)){let xe="";if(ae.length>0&&ae.lastIndexOf("/")===ae.length-1)V[V.length-1]==="/"?(V=V.substr(0,V.length-1),F=F.substr(0,F.length-1),ae=V):ae=ae.substr(0,ae.length-1),M=X.closeIndex;else if(this.options.unpairedTags.indexOf(V)!==-1)M=X.closeIndex;else{const le=this.readStopNodeData(k,ne,be+1);if(!le)throw new Error(`Unexpected end of ${ne}`);M=le.i,xe=le.tagContent}const R=new t(V);V!==ae&&Q&&(R[":@"]=this.buildAttributesMap(ae,F,V)),xe&&(xe=this.parseTextData(xe,V,F,!0,Q,!0,!0)),F=F.substr(0,F.lastIndexOf(".")),R.add(this.options.textNodeName,xe),this.addChild(U,R,F)}else{if(ae.length>0&&ae.lastIndexOf("/")===ae.length-1){V[V.length-1]==="/"?(V=V.substr(0,V.length-1),F=F.substr(0,F.length-1),ae=V):ae=ae.substr(0,ae.length-1),this.options.transformTagName&&(V=this.options.transformTagName(V));const xe=new t(V);V!==ae&&Q&&(xe[":@"]=this.buildAttributesMap(ae,F,V)),this.addChild(U,xe,F),F=F.substr(0,F.lastIndexOf("."))}else{const xe=new t(V);this.tagsNodeStack.push(U),V!==ae&&Q&&(xe[":@"]=this.buildAttributesMap(ae,F,V)),this.addChild(U,xe,F),U=xe}j="",M=be}}else j+=k[M];return w.child};function E(k,w,U){const j=this.options.updateTag(w.tagname,U,w[":@"]);j===!1||(typeof j=="string"&&(w.tagname=j),k.addChild(w))}const _=function(k){if(this.options.processEntities){for(let w in this.docTypeEntities){const U=this.docTypeEntities[w];k=k.replace(U.regx,U.val)}for(let w in this.lastEntities){const U=this.lastEntities[w];k=k.replace(U.regex,U.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const U=this.htmlEntities[w];k=k.replace(U.regex,U.val)}k=k.replace(this.ampEntity.regex,this.ampEntity.val)}return k};function v(k,w,U,j){return k&&(j===void 0&&(j=w.child.length===0),k=this.parseTextData(k,w.tagname,U,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,j),k!==void 0&&k!==""&&w.add(this.options.textNodeName,k),k=""),k}function S(k,w,U){const j="*."+U;for(const F in k){const M=k[F];if(j===M||w===M)return!0}return!1}function A(k,w,U=">"){let j,F="";for(let M=w;M<k.length;M++){let J=k[M];if(j)J===j&&(j="");else if(J==='"'||J==="'")j=J;else if(J===U[0])if(U[1]){if(k[M+1]===U[1])return{data:F,index:M}}else return{data:F,index:M};else J===" "&&(J=" ");F+=J}}function x(k,w,U,j){const F=k.indexOf(w,U);if(F===-1)throw new Error(j);return F+w.length-1}function O(k,w,U,j=">"){const F=A(k,w+1,j);if(!F)return;let M=F.data;const J=F.index,X=M.search(/\s/);let V=M,ne=!0;X!==-1&&(V=M.substring(0,X),M=M.substring(X+1).trimStart());const ae=V;if(U){const Q=V.indexOf(":");Q!==-1&&(V=V.substr(Q+1),ne=V!==F.data.substr(Q+1))}return{tagName:V,tagExp:M,closeIndex:J,attrExpPresent:ne,rawTagName:ae}}function L(k,w,U){const j=U;let F=1;for(;U<k.length;U++)if(k[U]==="<")if(k[U+1]==="/"){const M=x(k,">",U,`${w} is not closed`);if(k.substring(U+2,M).trim()===w&&(F--,F===0))return{tagContent:k.substring(j,U),i:M};U=M}else if(k[U+1]==="?")U=x(k,"?>",U+1,"StopNode is not closed.");else if(k.substr(U+1,3)==="!--")U=x(k,"-->",U+3,"StopNode is not closed.");else if(k.substr(U+1,2)==="![")U=x(k,"]]>",U,"StopNode is not closed.")-2;else{const M=O(k,U,">");M&&((M&&M.tagName)===w&&M.tagExp[M.tagExp.length-1]!=="/"&&F++,U=M.closeIndex)}}function B(k,w,U){if(w&&typeof k=="string"){const j=k.trim();return j==="true"?!0:j==="false"?!1:r(k,U)}else return e.isExist(k)?k:""}return Xg=o,Xg}var Wg={},Nv;function h9(){if(Nv)return Wg;Nv=1;function e(o,l){return t(o,l)}function t(o,l,c){let d;const f={};for(let m=0;m<o.length;m++){const p=o[m],E=n(p);let _="";if(c===void 0?_=E:_=c+"."+E,E===l.textNodeName)d===void 0?d=p[E]:d+=""+p[E];else{if(E===void 0)continue;if(p[E]){let v=t(p[E],l,_);const S=i(v,l);p[":@"]?r(v,p[":@"],_,l):Object.keys(v).length===1&&v[l.textNodeName]!==void 0&&!l.alwaysCreateTextNode?v=v[l.textNodeName]:Object.keys(v).length===0&&(l.alwaysCreateTextNode?v[l.textNodeName]="":v=""),f[E]!==void 0&&f.hasOwnProperty(E)?(Array.isArray(f[E])||(f[E]=[f[E]]),f[E].push(v)):l.isArray(E,_,S)?f[E]=[v]:f[E]=v}}}return typeof d=="string"?d.length>0&&(f[l.textNodeName]=d):d!==void 0&&(f[l.textNodeName]=d),f}function n(o){const l=Object.keys(o);for(let c=0;c<l.length;c++){const d=l[c];if(d!==":@")return d}}function r(o,l,c,d){if(l){const f=Object.keys(l),m=f.length;for(let p=0;p<m;p++){const E=f[p];d.isArray(E,c+"."+E,!0,!0)?o[E]=[l[E]]:o[E]=l[E]}}}function i(o,l){const{textNodeName:c}=l,d=Object.keys(o).length;return!!(d===0||d===1&&(o[c]||typeof o[c]=="boolean"||o[c]===0))}return Wg.prettify=e,Wg}var Qg,Av;function m9(){if(Av)return Qg;Av=1;const{buildOptions:e}=l9(),t=f9(),{prettify:n}=h9(),r=Q2();class i{constructor(l){this.externalEntities={},this.options=e(l)}parse(l,c){if(typeof l!="string")if(l.toString)l=l.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(c){c===!0&&(c={});const m=r.validate(l,c);if(m!==!0)throw Error(`${m.err.msg}:${m.err.line}:${m.err.col}`)}const d=new t(this.options);d.addExternalEntities(this.externalEntities);const f=d.parseXml(l);return this.options.preserveOrder||f===void 0?f:n(f,this.options)}addEntity(l,c){if(c.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(l.indexOf("&")!==-1||l.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[l]=c}}return Qg=i,Qg}var Zg,wv;function p9(){if(wv)return Zg;wv=1;const e=`
268
- `;function t(c,d){let f="";return d.format&&d.indentBy.length>0&&(f=e),n(c,d,"",f)}function n(c,d,f,m){let p="",E=!1;for(let _=0;_<c.length;_++){const v=c[_],S=r(v);if(S===void 0)continue;let A="";if(f.length===0?A=S:A=`${f}.${S}`,S===d.textNodeName){let k=v[S];o(A,d)||(k=d.tagValueProcessor(S,k),k=l(k,d)),E&&(p+=m),p+=k,E=!1;continue}else if(S===d.cdataPropName){E&&(p+=m),p+=`<![CDATA[${v[S][0][d.textNodeName]}]]>`,E=!1;continue}else if(S===d.commentPropName){p+=m+`<!--${v[S][0][d.textNodeName]}-->`,E=!0;continue}else if(S[0]==="?"){const k=i(v[":@"],d),w=S==="?xml"?"":m;let U=v[S][0][d.textNodeName];U=U.length!==0?" "+U:"",p+=w+`<${S}${U}${k}?>`,E=!0;continue}let x=m;x!==""&&(x+=d.indentBy);const O=i(v[":@"],d),L=m+`<${S}${O}`,B=n(v[S],d,A,x);d.unpairedTags.indexOf(S)!==-1?d.suppressUnpairedNode?p+=L+">":p+=L+"/>":(!B||B.length===0)&&d.suppressEmptyNode?p+=L+"/>":B&&B.endsWith(">")?p+=L+`>${B}${m}</${S}>`:(p+=L+">",B&&m!==""&&(B.includes("/>")||B.includes("</"))?p+=m+d.indentBy+B+m:p+=B,p+=`</${S}>`),E=!0}return p}function r(c){const d=Object.keys(c);for(let f=0;f<d.length;f++){const m=d[f];if(c.hasOwnProperty(m)&&m!==":@")return m}}function i(c,d){let f="";if(c&&!d.ignoreAttributes)for(let m in c){if(!c.hasOwnProperty(m))continue;let p=d.attributeValueProcessor(m,c[m]);p=l(p,d),p===!0&&d.suppressBooleanAttributes?f+=` ${m.substr(d.attributeNamePrefix.length)}`:f+=` ${m.substr(d.attributeNamePrefix.length)}="${p}"`}return f}function o(c,d){c=c.substr(0,c.length-d.textNodeName.length-1);let f=c.substr(c.lastIndexOf(".")+1);for(let m in d.stopNodes)if(d.stopNodes[m]===c||d.stopNodes[m]==="*."+f)return!0;return!1}function l(c,d){if(c&&c.length>0&&d.processEntities)for(let f=0;f<d.entities.length;f++){const m=d.entities[f];c=c.replace(m.regex,m.val)}return c}return Zg=t,Zg}var Jg,Cv;function g9(){if(Cv)return Jg;Cv=1;const e=p9(),t=Z2(),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(c,d){return d},attributeValueProcessor:function(c,d){return d},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function r(c){this.options=Object.assign({},n,c),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=i,this.options.format?(this.indentate=o,this.tagEndChar=`>
269
- `,this.newLine=`
270
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}r.prototype.build=function(c){return this.options.preserveOrder?e(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c={[this.options.arrayNodeName]:c}),this.j2x(c,0,[]).val)},r.prototype.j2x=function(c,d,f){let m="",p="";const E=f.join(".");for(let _ in c)if(Object.prototype.hasOwnProperty.call(c,_))if(typeof c[_]>"u")this.isAttribute(_)&&(p+="");else if(c[_]===null)this.isAttribute(_)||_===this.options.cdataPropName?p+="":_[0]==="?"?p+=this.indentate(d)+"<"+_+"?"+this.tagEndChar:p+=this.indentate(d)+"<"+_+"/"+this.tagEndChar;else if(c[_]instanceof Date)p+=this.buildTextValNode(c[_],_,"",d);else if(typeof c[_]!="object"){const v=this.isAttribute(_);if(v&&!this.ignoreAttributesFn(v,E))m+=this.buildAttrPairStr(v,""+c[_]);else if(!v)if(_===this.options.textNodeName){let S=this.options.tagValueProcessor(_,""+c[_]);p+=this.replaceEntitiesValue(S)}else p+=this.buildTextValNode(c[_],_,"",d)}else if(Array.isArray(c[_])){const v=c[_].length;let S="",A="";for(let x=0;x<v;x++){const O=c[_][x];if(!(typeof O>"u"))if(O===null)_[0]==="?"?p+=this.indentate(d)+"<"+_+"?"+this.tagEndChar:p+=this.indentate(d)+"<"+_+"/"+this.tagEndChar;else if(typeof O=="object")if(this.options.oneListGroup){const L=this.j2x(O,d+1,f.concat(_));S+=L.val,this.options.attributesGroupName&&O.hasOwnProperty(this.options.attributesGroupName)&&(A+=L.attrStr)}else S+=this.processTextOrObjNode(O,_,d,f);else if(this.options.oneListGroup){let L=this.options.tagValueProcessor(_,O);L=this.replaceEntitiesValue(L),S+=L}else S+=this.buildTextValNode(O,_,"",d)}this.options.oneListGroup&&(S=this.buildObjectNode(S,_,A,d)),p+=S}else if(this.options.attributesGroupName&&_===this.options.attributesGroupName){const v=Object.keys(c[_]),S=v.length;for(let A=0;A<S;A++)m+=this.buildAttrPairStr(v[A],""+c[_][v[A]])}else p+=this.processTextOrObjNode(c[_],_,d,f);return{attrStr:m,val:p}},r.prototype.buildAttrPairStr=function(c,d){return d=this.options.attributeValueProcessor(c,""+d),d=this.replaceEntitiesValue(d),this.options.suppressBooleanAttributes&&d==="true"?" "+c:" "+c+'="'+d+'"'};function i(c,d,f,m){const p=this.j2x(c,f+1,m.concat(d));return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],d,p.attrStr,f):this.buildObjectNode(p.val,d,p.attrStr,f)}r.prototype.buildObjectNode=function(c,d,f,m){if(c==="")return d[0]==="?"?this.indentate(m)+"<"+d+f+"?"+this.tagEndChar:this.indentate(m)+"<"+d+f+this.closeTag(d)+this.tagEndChar;{let p="</"+d+this.tagEndChar,E="";return d[0]==="?"&&(E="?",p=""),(f||f==="")&&c.indexOf("<")===-1?this.indentate(m)+"<"+d+f+E+">"+c+p:this.options.commentPropName!==!1&&d===this.options.commentPropName&&E.length===0?this.indentate(m)+`<!--${c}-->`+this.newLine:this.indentate(m)+"<"+d+f+E+this.tagEndChar+c+this.indentate(m)+p}},r.prototype.closeTag=function(c){let d="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(d="/"):this.options.suppressEmptyNode?d="/":d=`></${c}`,d},r.prototype.buildTextValNode=function(c,d,f,m){if(this.options.cdataPropName!==!1&&d===this.options.cdataPropName)return this.indentate(m)+`<![CDATA[${c}]]>`+this.newLine;if(this.options.commentPropName!==!1&&d===this.options.commentPropName)return this.indentate(m)+`<!--${c}-->`+this.newLine;if(d[0]==="?")return this.indentate(m)+"<"+d+f+"?"+this.tagEndChar;{let p=this.options.tagValueProcessor(d,c);return p=this.replaceEntitiesValue(p),p===""?this.indentate(m)+"<"+d+f+this.closeTag(d)+this.tagEndChar:this.indentate(m)+"<"+d+f+">"+p+"</"+d+this.tagEndChar}},r.prototype.replaceEntitiesValue=function(c){if(c&&c.length>0&&this.options.processEntities)for(let d=0;d<this.options.entities.length;d++){const f=this.options.entities[d];c=c.replace(f.regex,f.val)}return c};function o(c){return this.options.indentBy.repeat(c)}function l(c){return c.startsWith(this.options.attributeNamePrefix)&&c!==this.options.textNodeName?c.substr(this.attrPrefixLen):!1}return Jg=r,Jg}var e0,Rv;function b9(){if(Rv)return e0;Rv=1;const e=Q2(),t=m9(),n=g9();return e0={XMLParser:t,XMLValidator:e,XMLBuilder:n},e0}b9();const Pl={};function E9(e,t,n){return Pl[t]?Pl[t](e,t,n):e}Pl["application/json"]=(e,t,n)=>e;function rb(e,t,n){t instanceof Blob||typeof t=="string"?e.append(n,t):t!==null&&typeof t=="object"?Array.isArray(t)?t.forEach((r,i)=>{const o=`${n}`;rb(e,r,o)}):Object.keys(t).forEach(r=>{const i=n?`${n}[${r}]`:r;rb(e,t[r],i)}):e.append(n,t==null?"":String(t))}Pl["multipart/form-data"]=(e,t,n)=>{let r=e,i=new FormData;return Object.keys(r).forEach(o=>{rb(i,r[o],o)}),i};Pl["application/octet-stream"]=(e,t,n)=>e;Pl["application/x-www-form-urlencoded"]=(e,t,n)=>{let r=new FormData;for(let i in e){const o=e[i];r.append(i,o instanceof Blob||typeof o=="string"?o:String(o))}return r};const y9=kr({total:Yr(),page:Yr(),limit:Yr(),totalPages:Yr(),hasNext:W0(),hasPrevious:W0()}),_9=kr({id:wt(),name:wt(),type:vE(["rest","schema"]),source:wt(),path:wt(),data:Er(),lastAccessed:Yr().optional().nullable()}),T9=bB(Cr(()=>y9),kr({data:La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>_9))).optional().nullable()})),x9=Er(),ab="GET /api/data/search| -> application/json",ib="deamon_api";function J2(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:ab,source:ib,schema:T9,errorSchema:x9}),i=N.useCallback((o={})=>{let{...l}=o;return n({method:"get",url:"/api/data/search",headers:{},params:l,key:`${ib}: ${ab}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}J2.key=`${ib}: ${ab}`;const RE=J2;function OE(e,t){const[n,r]=N.useState(e),[i,o]=N.useState(e),l=N.useRef(null);return N.useEffect(()=>(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{o(n)},t),()=>{l.current&&clearTimeout(l.current)}),[n,t]),[n,r,i]}function kE({placeholder:e="Search endpoints and data types...",source:t}){const[n,r]=N.useState(!1),[i,o,l]=OE("",300),[c,d]=RE({clearOnUnmount:!0});N.useEffect(()=>{l?d({query:l,page:1,size:10,source:t}):m([])},[l]);const[f,m]=N.useState([]);N.useEffect(()=>{lr(c)&&c.data&&m(c.data.data??[])},[c]),N.useEffect(()=>{const v=S=>{S.key==="k"&&(S.metaKey||S.ctrlKey)&&(S.preventDefault(),r(A=>!A))};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[]);const p=v=>{o(v)},E=N.useMemo(()=>f.filter(v=>v.type==="rest"),[f]),_=N.useMemo(()=>f.filter(v=>v.type==="schema"),[f]);return b.jsxs(b.Fragment,{children:[b.jsxs("button",{onClick:()=>r(!0),className:"flex items-center w-full gap-2 px-3 py-2 text-lg text-muted-foreground rounded-md bg-secondary",children:[b.jsx(Rh,{className:"w-4 h-4"}),b.jsx("span",{children:e}),b.jsxs("kbd",{className:"ml-auto pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground",children:[b.jsx("span",{className:"text-xs",children:"⌘"}),"K"]})]}),b.jsxs(H5,{open:n,onOpenChange:r,className:"fixed w-[500px] h-[700px]",children:[b.jsx(j5,{placeholder:e,value:i,onValueChange:p}),b.jsxs(z5,{className:"h-[650px] max-h-[650px] overflow-y-auto",children:[b.jsx($5,{children:"No results found."}),E.length>0&&b.jsx(Hx,{heading:"REST APIs",children:E.map(v=>{var S,A,x,O,L,B,k,w,U,j,F,M,J,X,V,ne,ae,Q,be,K,xe;return b.jsx(jx,{value:v.name,onSelect:()=>{r(!1)},children:b.jsxs(Mn,{to:`/sources/${v.source}/endpoint/${v.id}`,className:"flex items-center w-full",children:[b.jsx(Eo,{className:"mr-2 h-4 w-4"}),b.jsxs("div",{className:"flex flex-col w-full",children:[b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("span",{className:"font-medium",children:v.name}),((S=v.data)==null?void 0:S.method)&&b.jsx("span",{className:`text-xs px-2 py-1 rounded-md font-medium ${v.data.method.toLowerCase()==="get"?"bg-blue-100 text-blue-700":v.data.method.toLowerCase()==="post"?"bg-green-100 text-green-700":v.data.method.toLowerCase()==="put"?"bg-amber-100 text-amber-700":v.data.method.toLowerCase()==="delete"?"bg-red-100 text-red-700":v.data.method.toLowerCase()==="patch"?"bg-purple-100 text-purple-700":"bg-gray-100 text-gray-700"}`,children:v.data.method.toUpperCase()})]}),b.jsx("span",{className:"text-xs text-muted-foreground",children:((A=v.data)==null?void 0:A.requestUrl)||v.path}),((x=v.data)==null?void 0:x.summary)&&b.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:v.data.summary}),b.jsx("div",{className:"flex gap-1 mt-1",children:b.jsxs(Ds,{children:[((L=(O=v.data)==null?void 0:O.contentType)==null?void 0:L.includes("multipart/form-data"))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-purple-100 text-purple-700",children:b.jsx(zN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"Multipart Form Data"})})]}),((k=(B=v.data)==null?void 0:B.contentType)==null?void 0:k.includes("application/x-www-form-urlencoded"))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-blue-100 text-blue-700",children:b.jsx(UN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"Form URL Encoded"})})]}),((U=(w=v.data)==null?void 0:w.responseType)==null?void 0:U.includes("text/event-stream"))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-green-100 text-green-700",children:b.jsx(jN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"SSE (Server-Sent Events)"})})]}),(((F=(j=v.data)==null?void 0:j.responseType)==null?void 0:F.includes("application/octet-stream"))||((J=(M=v.data)==null?void 0:M.responseType)==null?void 0:J.includes("application/pdf"))||((V=(X=v.data)==null?void 0:X.responseType)==null?void 0:V.includes("application/zip"))||((ae=(ne=v.data)==null?void 0:ne.responseType)==null?void 0:ae.includes("application/x-msdownload"))||((be=(Q=v.data)==null?void 0:Q.responseType)==null?void 0:be.includes("application/vnd.ms-excel"))||((xe=(K=v.data)==null?void 0:K.responseType)==null?void 0:xe.includes("application/vnd.openxmlformats-officedocument")))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-amber-100 text-amber-700",children:b.jsx(PN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"Downloadable Content"})})]})]})})]})]})},v.id)})}),_.length>0&&b.jsx(Hx,{heading:"Schemas",children:_.map(v=>{var S,A;return b.jsx(jx,{value:v.name,onSelect:()=>{r(!1)},children:b.jsxs(Mn,{to:`/sources/${v.source}/datatype/${v.id}`,className:"flex items-center w-full",children:[b.jsx(bo,{className:"mr-2 h-4 w-4"}),b.jsxs("div",{className:"flex flex-col w-full",children:[b.jsx("span",{className:"font-medium",children:v.name}),((A=(S=v.data)==null?void 0:S.schema)==null?void 0:A.properties)&&b.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:b.jsx("div",{className:"flex flex-wrap gap-1",children:Object.keys(v.data.schema.properties).map(x=>b.jsx("span",{className:"px-2 py-0.5 rounded-md bg-secondary text-secondary-foreground",children:x},x))})})]})]})},v.id)})})]}),b.jsxs("div",{className:"border-t py-2",children:[b.jsx(q5,{}),b.jsxs("div",{className:"flex justify-between px-4 pt-2 text-xs text-muted-foreground",children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx("kbd",{className:"mr-1 rounded border bg-muted px-1.5 font-mono",children:"Enter"}),b.jsx("span",{children:"to select"})]}),b.jsxs("div",{className:"flex items-center",children:[b.jsx("kbd",{className:"mr-1 rounded border bg-muted px-1.5 font-mono",children:"↑"}),b.jsx("kbd",{className:"mx-1 rounded border bg-muted px-1.5 font-mono",children:"↓"}),b.jsx("span",{children:"to navigate"})]}),b.jsxs("div",{className:"flex items-center",children:[b.jsx("kbd",{className:"mr-1 rounded border bg-muted px-1.5 font-mono",children:"Esc"}),b.jsx("span",{children:"to close"})]})]})]})]})]})}var v9=N.createContext(void 0);function LE(e){const t=N.useContext(v9);return e||t||"ltr"}function S9(e,[t,n]){return Math.min(n,Math.max(t,e))}function N9(e,t){return N.useReducer((n,r)=>t[n][r]??n,e)}var IE="ScrollArea",[ew,bW]=Is(IE),[A9,va]=ew(IE),tw=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...l}=e,[c,d]=N.useState(null),[f,m]=N.useState(null),[p,E]=N.useState(null),[_,v]=N.useState(null),[S,A]=N.useState(null),[x,O]=N.useState(0),[L,B]=N.useState(0),[k,w]=N.useState(!1),[U,j]=N.useState(!1),F=yn(t,J=>d(J)),M=LE(i);return b.jsx(A9,{scope:n,type:r,dir:M,scrollHideDelay:o,scrollArea:c,viewport:f,onViewportChange:m,content:p,onContentChange:E,scrollbarX:_,onScrollbarXChange:v,scrollbarXEnabled:k,onScrollbarXEnabledChange:w,scrollbarY:S,onScrollbarYChange:A,scrollbarYEnabled:U,onScrollbarYEnabledChange:j,onCornerWidthChange:O,onCornerHeightChange:B,children:b.jsx(Ot.div,{dir:M,...l,ref:F,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":L+"px",...e.style}})})});tw.displayName=IE;var nw="ScrollAreaViewport",rw=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...o}=e,l=va(nw,n),c=N.useRef(null),d=yn(t,c,l.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),b.jsx(Ot.div,{"data-radix-scroll-area-viewport":"",...o,ref:d,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:b.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});rw.displayName=nw;var si="ScrollAreaScrollbar",aw=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=va(si,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:l}=i,c=e.orientation==="horizontal";return N.useEffect(()=>(c?o(!0):l(!0),()=>{c?o(!1):l(!1)}),[c,o,l]),i.type==="hover"?b.jsx(w9,{...r,ref:t,forceMount:n}):i.type==="scroll"?b.jsx(C9,{...r,ref:t,forceMount:n}):i.type==="auto"?b.jsx(iw,{...r,ref:t,forceMount:n}):i.type==="always"?b.jsx(DE,{...r,ref:t}):null});aw.displayName=si;var w9=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=va(si,e.__scopeScrollArea),[o,l]=N.useState(!1);return N.useEffect(()=>{const c=i.scrollArea;let d=0;if(c){const f=()=>{window.clearTimeout(d),l(!0)},m=()=>{d=window.setTimeout(()=>l(!1),i.scrollHideDelay)};return c.addEventListener("pointerenter",f),c.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),c.removeEventListener("pointerenter",f),c.removeEventListener("pointerleave",m)}}},[i.scrollArea,i.scrollHideDelay]),b.jsx(ea,{present:n||o,children:b.jsx(iw,{"data-state":o?"visible":"hidden",...r,ref:t})})}),C9=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=va(si,e.__scopeScrollArea),o=e.orientation==="horizontal",l=Zh(()=>d("SCROLL_END"),100),[c,d]=N9("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return N.useEffect(()=>{if(c==="idle"){const f=window.setTimeout(()=>d("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(f)}},[c,i.scrollHideDelay,d]),N.useEffect(()=>{const f=i.viewport,m=o?"scrollLeft":"scrollTop";if(f){let p=f[m];const E=()=>{const _=f[m];p!==_&&(d("SCROLL"),l()),p=_};return f.addEventListener("scroll",E),()=>f.removeEventListener("scroll",E)}},[i.viewport,o,d,l]),b.jsx(ea,{present:n||c!=="hidden",children:b.jsx(DE,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Lt(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:Lt(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),iw=N.forwardRef((e,t)=>{const n=va(si,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,l]=N.useState(!1),c=e.orientation==="horizontal",d=Zh(()=>{if(n.viewport){const f=n.viewport.offsetWidth<n.viewport.scrollWidth,m=n.viewport.offsetHeight<n.viewport.scrollHeight;l(c?f:m)}},10);return Bl(n.viewport,d),Bl(n.content,d),b.jsx(ea,{present:r||o,children:b.jsx(DE,{"data-state":o?"visible":"hidden",...i,ref:t})})}),DE=N.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=va(si,e.__scopeScrollArea),o=N.useRef(null),l=N.useRef(0),[c,d]=N.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=cw(c.viewport,c.content),m={...r,sizes:c,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:E=>o.current=E,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:E=>l.current=E};function p(E,_){return D9(E,l.current,c,_)}return n==="horizontal"?b.jsx(R9,{...m,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const E=i.viewport.scrollLeft,_=Ov(E,c,i.dir);o.current.style.transform=`translate3d(${_}px, 0, 0)`}},onWheelScroll:E=>{i.viewport&&(i.viewport.scrollLeft=E)},onDragScroll:E=>{i.viewport&&(i.viewport.scrollLeft=p(E,i.dir))}}):n==="vertical"?b.jsx(O9,{...m,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const E=i.viewport.scrollTop,_=Ov(E,c);o.current.style.transform=`translate3d(0, ${_}px, 0)`}},onWheelScroll:E=>{i.viewport&&(i.viewport.scrollTop=E)},onDragScroll:E=>{i.viewport&&(i.viewport.scrollTop=p(E))}}):null}),R9=N.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=va(si,e.__scopeScrollArea),[l,c]=N.useState(),d=N.useRef(null),f=yn(t,d,o.onScrollbarXChange);return N.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),b.jsx(ow,{"data-orientation":"horizontal",...i,ref:f,sizes:n,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Qh(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,p)=>{if(o.viewport){const E=o.viewport.scrollLeft+m.deltaX;e.onWheelScroll(E),fw(E,p)&&m.preventDefault()}},onResize:()=>{d.current&&o.viewport&&l&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:hh(l.paddingLeft),paddingEnd:hh(l.paddingRight)}})}})}),O9=N.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=va(si,e.__scopeScrollArea),[l,c]=N.useState(),d=N.useRef(null),f=yn(t,d,o.onScrollbarYChange);return N.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),b.jsx(ow,{"data-orientation":"vertical",...i,ref:f,sizes:n,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Qh(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,p)=>{if(o.viewport){const E=o.viewport.scrollTop+m.deltaY;e.onWheelScroll(E),fw(E,p)&&m.preventDefault()}},onResize:()=>{d.current&&o.viewport&&l&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:hh(l.paddingTop),paddingEnd:hh(l.paddingBottom)}})}})}),[k9,sw]=ew(si),ow=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:d,onDragScroll:f,onWheelScroll:m,onResize:p,...E}=e,_=va(si,n),[v,S]=N.useState(null),A=yn(t,F=>S(F)),x=N.useRef(null),O=N.useRef(""),L=_.viewport,B=r.content-r.viewport,k=wr(m),w=wr(d),U=Zh(p,10);function j(F){if(x.current){const M=F.clientX-x.current.left,J=F.clientY-x.current.top;f({x:M,y:J})}}return N.useEffect(()=>{const F=M=>{const J=M.target;(v==null?void 0:v.contains(J))&&k(M,B)};return document.addEventListener("wheel",F,{passive:!1}),()=>document.removeEventListener("wheel",F,{passive:!1})},[L,v,B,k]),N.useEffect(w,[r,w]),Bl(v,U),Bl(_.content,U),b.jsx(k9,{scope:n,scrollbar:v,hasThumb:i,onThumbChange:wr(o),onThumbPointerUp:wr(l),onThumbPositionChange:w,onThumbPointerDown:wr(c),children:b.jsx(Ot.div,{...E,ref:A,style:{position:"absolute",...E.style},onPointerDown:Lt(e.onPointerDown,F=>{F.button===0&&(F.target.setPointerCapture(F.pointerId),x.current=v.getBoundingClientRect(),O.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",_.viewport&&(_.viewport.style.scrollBehavior="auto"),j(F))}),onPointerMove:Lt(e.onPointerMove,j),onPointerUp:Lt(e.onPointerUp,F=>{const M=F.target;M.hasPointerCapture(F.pointerId)&&M.releasePointerCapture(F.pointerId),document.body.style.webkitUserSelect=O.current,_.viewport&&(_.viewport.style.scrollBehavior=""),x.current=null})})})}),fh="ScrollAreaThumb",lw=N.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=sw(fh,e.__scopeScrollArea);return b.jsx(ea,{present:n||i.hasThumb,children:b.jsx(L9,{ref:t,...r})})}),L9=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,o=va(fh,n),l=sw(fh,n),{onThumbPositionChange:c}=l,d=yn(t,p=>l.onThumbChange(p)),f=N.useRef(void 0),m=Zh(()=>{f.current&&(f.current(),f.current=void 0)},100);return N.useEffect(()=>{const p=o.viewport;if(p){const E=()=>{if(m(),!f.current){const _=M9(p,c);f.current=_,c()}};return c(),p.addEventListener("scroll",E),()=>p.removeEventListener("scroll",E)}},[o.viewport,m,c]),b.jsx(Ot.div,{"data-state":l.hasThumb?"visible":"hidden",...i,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Lt(e.onPointerDownCapture,p=>{const _=p.target.getBoundingClientRect(),v=p.clientX-_.left,S=p.clientY-_.top;l.onThumbPointerDown({x:v,y:S})}),onPointerUp:Lt(e.onPointerUp,l.onThumbPointerUp)})});lw.displayName=fh;var ME="ScrollAreaCorner",uw=N.forwardRef((e,t)=>{const n=va(ME,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?b.jsx(I9,{...e,ref:t}):null});uw.displayName=ME;var I9=N.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=va(ME,n),[o,l]=N.useState(0),[c,d]=N.useState(0),f=!!(o&&c);return Bl(i.scrollbarX,()=>{var p;const m=((p=i.scrollbarX)==null?void 0:p.offsetHeight)||0;i.onCornerHeightChange(m),d(m)}),Bl(i.scrollbarY,()=>{var p;const m=((p=i.scrollbarY)==null?void 0:p.offsetWidth)||0;i.onCornerWidthChange(m),l(m)}),f?b.jsx(Ot.div,{...r,ref:t,style:{width:o,height:c,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function hh(e){return e?parseInt(e,10):0}function cw(e,t){const n=e/t;return isNaN(n)?0:n}function Qh(e){const t=cw(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function D9(e,t,n,r="ltr"){const i=Qh(n),o=i/2,l=t||o,c=i-l,d=n.scrollbar.paddingStart+l,f=n.scrollbar.size-n.scrollbar.paddingEnd-c,m=n.content-n.viewport,p=r==="ltr"?[0,m]:[m*-1,0];return dw([d,f],p)(e)}function Ov(e,t,n="ltr"){const r=Qh(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,l=t.content-t.viewport,c=o-r,d=n==="ltr"?[0,l]:[l*-1,0],f=S9(e,d);return dw([0,l],[0,c])(f)}function dw(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function fw(e,t){return e>0&&e<t}var M9=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},l=n.left!==o.left,c=n.top!==o.top;(l||c)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Zh(e,t){const n=wr(e),r=N.useRef(0);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),N.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Bl(e,t){const n=wr(t);Di(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var P9=tw,B9=rw,U9=uw;function mh({className:e,children:t,...n}){return b.jsxs(P9,{"data-slot":"scroll-area",className:et("relative",e),...n,children:[b.jsx(B9,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),b.jsx(F9,{}),b.jsx(U9,{})]})}function F9({className:e,orientation:t="vertical",...n}){return b.jsx(aw,{"data-slot":"scroll-area-scrollbar",orientation:t,className:et("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:b.jsx(lw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const hw=kr({id:wt(),name:wt(),source:wt(),accessTime:wt(),type:vE(["schema","endpoint"]),pinned:W0().optional().nullable()}),H9=La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>hw))),j9=Er(),sb="GET /api/data/last-visited| -> application/json",ob="deamon_api";function mw(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:sb,source:ob,schema:H9,errorSchema:j9}),i=N.useCallback((o={})=>{let{...l}=o;return n({method:"get",url:"/api/data/last-visited",headers:{},params:l,key:`${ob}: ${sb}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}mw.key=`${ob}: ${sb}`;const z9=mw;Er();const $9=La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>hw))),q9=Er(),lb="GET /api/data/pinned| -> application/json",ub="deamon_api";function pw(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:lb,source:ub,schema:$9,errorSchema:q9}),i=N.useCallback((o={})=>{let{...l}=o;return n({method:"get",url:"/api/data/pinned",headers:{},params:l,key:`${ub}: ${lb}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}pw.key=`${ub}: ${lb}`;const gw=pw,cb=kr({id:wt(),type:vE(["schema","endpoint"]),source:wt().optional().nullable(),name:wt().optional().nullable()}),Y9=La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>cb))),G9=Er(),bw="POST /api/data/toggle-pin| application/json -> application/json",Ew="deamon_api";function yw(){const[e,t]=s9({schema:Y9,errorSchema:G9});return[N.useCallback(async(r,i={})=>{let{...o}=i;const l=cb.safeParse(r);return l.success?await e({method:"post",url:"/api/data/toggle-pin",headers:{"Content-Type":"application/json"},params:o,key:`${Ew}: ${bw}`,source:"deamon_api",data:E9(r,"application/json",cb)}):Promise.reject(l.error)},[e]),t]}yw.key=`${Ew}: ${bw}`;const V9=yw,_w=N.createContext({pinnedItems:[],refreshPinnedItems:()=>{}});function PE({children:e}){const[t,n]=N.useState([]),[r,i]=gw({clearOnUnmount:!0,fetchOnMount:!0,params:{limit:1e3}});N.useEffect(()=>{lr(r)&&n(r.data)},[r]);const o=N.useCallback(()=>{i({limit:1e3})},[]);return b.jsx(_w.Provider,{value:{pinnedItems:t,refreshPinnedItems:o},children:e})}function Jh({item:e}){const{pinnedItems:t,refreshPinnedItems:n}=N.useContext(_w),r=N.useMemo(()=>t.some(d=>d.id===e.id&&d.type===e.type),[t,e.id,e.type]),[i]=V9(),[o,l]=N.useTransition(),c=N.useCallback(()=>{l(async()=>{await i({id:e.id,type:e.type,source:e.source,name:e.name},{}),n()})},[e]);return b.jsx(Ii,{variant:"ghost",size:"sm",className:"ml-2 h-6 w-6 p-0",onClick:c,title:r?"Unpin":"Pin",disabled:o,children:o?b.jsx("span",{className:"h-3 w-3 animate-spin",children:"⋯"}):r?b.jsx(ID,{className:"h-3 w-3"}):b.jsx(HN,{className:"h-3 w-3"})})}function K9(){const{pathname:e}=ai(),[t,n]=z9({clearOnUnmount:!0,fetchOnMount:!0,params:{limit:20}}),[r,i]=N.useState([]);return N.useEffect(()=>{lr(t)&&i(t.data)},[t]),N.useEffect(()=>{n({limit:20})},[e]),r.length===0?b.jsx(mh,{className:"h-[calc(100vh-250px)] w-full",children:b.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"No recently viewed components."})}):b.jsx("div",{className:"px-2 py-1",children:r.map((o,l)=>b.jsxs(N.Fragment,{children:[b.jsx(Mn,{to:o.type==="schema"?`/sources/${o.source}/datatype/${o.id}`:`/sources/${o.source}/endpoint/${o.id}`,style:{textDecoration:"none",color:"inherit"},children:b.jsxs("div",{className:"flex items-center py-2 px-2 hover:bg-accent/50 rounded-md relative group",children:[b.jsxs("div",{className:"mr-2 flex-shrink-0",children:[o.type==="schema"&&b.jsx(bo,{className:"h-4 w-4 text-muted-foreground"}),o.type==="endpoint"&&b.jsx(Eo,{className:"h-4 w-4 text-muted-foreground"}),!["schema","endpoint"].includes(o.type)&&b.jsx(zc,{className:"h-4 w-4 text-muted-foreground"})]}),b.jsx("div",{className:"flex-1 truncate",children:b.jsx(Ds,{children:b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsxs("div",{children:[b.jsx("div",{className:"font-medium text-sm truncate",children:o.name}),b.jsx("div",{className:"text-xs text-muted-foreground truncate",children:o.source})]})}),b.jsx(ya,{children:b.jsx("p",{children:o.name})})]})})}),b.jsx("div",{className:"absolute bottom-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity",children:b.jsx(Jh,{item:o})})]})}),l<r.length-1&&b.jsx(Oh,{className:"my-1"})]},`${o.type}-${o.id}`))})}Er();function X9(){const{pathname:e}=ai(),[t,n]=gw({clearOnUnmount:!0,fetchOnMount:!0,params:{limit:20}}),[r,i]=N.useState([]);return N.useEffect(()=>{lr(t)&&i(t.data)},[t]),N.useEffect(()=>{n({limit:20})},[e]),r.length===0?b.jsx(mh,{className:"h-[calc(100vh-250px)] w-full",children:b.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"No recently viewed components."})}):b.jsx(mh,{className:"h-[calc(100vh-250px)] w-full",children:b.jsx("div",{className:"px-2 py-1",children:r.map((o,l)=>b.jsxs(N.Fragment,{children:[b.jsx(Mn,{to:o.type==="schema"?`/sources/${o.source}/datatype/${o.id}`:`/sources/${o.source}/endpoint/${o.id}`,style:{textDecoration:"none",color:"inherit"},children:b.jsxs("div",{className:"flex items-center py-2 px-2 hover:bg-accent/50 rounded-md relative w-[85%] group",children:[b.jsxs("div",{className:"mr-2 flex-shrink-0",children:[o.type==="schema"&&b.jsx(bo,{className:"h-4 w-4 text-muted-foreground"}),o.type==="endpoint"&&b.jsx(Eo,{className:"h-4 w-4 text-muted-foreground"}),!["schema","endpoint"].includes(o.type)&&b.jsx(zc,{className:"h-4 w-4 text-muted-foreground"})]}),b.jsx("div",{className:"flex-1 truncate",children:b.jsx(Ds,{children:b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsxs("div",{children:[b.jsx("div",{className:"font-medium text-sm truncate",children:o.name}),b.jsxs("div",{className:"text-xs text-muted-foreground truncate",children:[o.type," • ",o.source]})]})}),b.jsx(ya,{children:b.jsx("p",{children:o.name})})]})})}),b.jsx("div",{className:"absolute bottom-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity",children:b.jsx(Jh,{item:o})})]})}),l<r.length-1&&b.jsx(Oh,{className:"my-1"})]},`${o.type}-${o.id}`))})})}function W9(e){const t=e+"CollectionProvider",[n,r]=Is(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=S=>{const{scope:A,children:x}=S,O=Oi.useRef(null),L=Oi.useRef(new Map).current;return b.jsx(i,{scope:A,itemMap:L,collectionRef:O,children:x})};l.displayName=t;const c=e+"CollectionSlot",d=Rl(c),f=Oi.forwardRef((S,A)=>{const{scope:x,children:O}=S,L=o(c,x),B=yn(A,L.collectionRef);return b.jsx(d,{ref:B,children:O})});f.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",E=Rl(m),_=Oi.forwardRef((S,A)=>{const{scope:x,children:O,...L}=S,B=Oi.useRef(null),k=yn(A,B),w=o(m,x);return Oi.useEffect(()=>(w.itemMap.set(B,{ref:B,...L}),()=>void w.itemMap.delete(B))),b.jsx(E,{[p]:"",ref:k,children:O})});_.displayName=m;function v(S){const A=o(e+"CollectionConsumer",S);return Oi.useCallback(()=>{const O=A.collectionRef.current;if(!O)return[];const L=Array.from(O.querySelectorAll(`[${p}]`));return Array.from(A.itemMap.values()).sort((w,U)=>L.indexOf(w.ref.current)-L.indexOf(U.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:l,Slot:f,ItemSlot:_},v,r]}var t0="rovingFocusGroup.onEntryFocus",Q9={bubbles:!1,cancelable:!0},Xc="RovingFocusGroup",[db,Tw,Z9]=W9(Xc),[J9,xw]=Is(Xc,[Z9]),[eU,tU]=J9(Xc),vw=N.forwardRef((e,t)=>b.jsx(db.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(db.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(nU,{...e,ref:t})})}));vw.displayName=Xc;var nU=N.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...p}=e,E=N.useRef(null),_=yn(t,E),v=LE(o),[S,A]=$c({prop:l,defaultProp:c??null,onChange:d,caller:Xc}),[x,O]=N.useState(!1),L=wr(f),B=Tw(n),k=N.useRef(!1),[w,U]=N.useState(0);return N.useEffect(()=>{const j=E.current;if(j)return j.addEventListener(t0,L),()=>j.removeEventListener(t0,L)},[L]),b.jsx(eU,{scope:n,orientation:r,dir:v,loop:i,currentTabStopId:S,onItemFocus:N.useCallback(j=>A(j),[A]),onItemShiftTab:N.useCallback(()=>O(!0),[]),onFocusableItemAdd:N.useCallback(()=>U(j=>j+1),[]),onFocusableItemRemove:N.useCallback(()=>U(j=>j-1),[]),children:b.jsx(Ot.div,{tabIndex:x||w===0?-1:0,"data-orientation":r,...p,ref:_,style:{outline:"none",...e.style},onMouseDown:Lt(e.onMouseDown,()=>{k.current=!0}),onFocus:Lt(e.onFocus,j=>{const F=!k.current;if(j.target===j.currentTarget&&F&&!x){const M=new CustomEvent(t0,Q9);if(j.currentTarget.dispatchEvent(M),!M.defaultPrevented){const J=B().filter(Q=>Q.focusable),X=J.find(Q=>Q.active),V=J.find(Q=>Q.id===S),ae=[X,V,...J].filter(Boolean).map(Q=>Q.ref.current);Aw(ae,m)}}k.current=!1}),onBlur:Lt(e.onBlur,()=>O(!1))})})}),Sw="RovingFocusGroupItem",Nw=N.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:l,...c}=e,d=Wr(),f=o||d,m=tU(Sw,n),p=m.currentTabStopId===f,E=Tw(n),{onFocusableItemAdd:_,onFocusableItemRemove:v,currentTabStopId:S}=m;return N.useEffect(()=>{if(r)return _(),()=>v()},[r,_,v]),b.jsx(db.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:b.jsx(Ot.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:Lt(e.onMouseDown,A=>{r?m.onItemFocus(f):A.preventDefault()}),onFocus:Lt(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:Lt(e.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){m.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const x=iU(A,m.orientation,m.dir);if(x!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let L=E().filter(B=>B.focusable).map(B=>B.ref.current);if(x==="last")L.reverse();else if(x==="prev"||x==="next"){x==="prev"&&L.reverse();const B=L.indexOf(A.currentTarget);L=m.loop?sU(L,B+1):L.slice(B+1)}setTimeout(()=>Aw(L))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:S!=null}):l})})});Nw.displayName=Sw;var rU={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function aU(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function iU(e,t,n){const r=aU(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rU[r]}function Aw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function sU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var oU=vw,lU=Nw,em="Tabs",[uU,EW]=Is(em,[xw]),ww=xw(),[cU,BE]=uU(em),Cw=N.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:l="horizontal",dir:c,activationMode:d="automatic",...f}=e,m=LE(c),[p,E]=$c({prop:r,onChange:i,defaultProp:o??"",caller:em});return b.jsx(cU,{scope:n,baseId:Wr(),value:p,onValueChange:E,orientation:l,dir:m,activationMode:d,children:b.jsx(Ot.div,{dir:m,"data-orientation":l,...f,ref:t})})});Cw.displayName=em;var Rw="TabsList",Ow=N.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,o=BE(Rw,n),l=ww(n);return b.jsx(oU,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:r,children:b.jsx(Ot.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});Ow.displayName=Rw;var kw="TabsTrigger",Lw=N.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,l=BE(kw,n),c=ww(n),d=Mw(l.baseId,r),f=Pw(l.baseId,r),m=r===l.value;return b.jsx(lU,{asChild:!0,...c,focusable:!i,active:m,children:b.jsx(Ot.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":f,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...o,ref:t,onMouseDown:Lt(e.onMouseDown,p=>{!i&&p.button===0&&p.ctrlKey===!1?l.onValueChange(r):p.preventDefault()}),onKeyDown:Lt(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&l.onValueChange(r)}),onFocus:Lt(e.onFocus,()=>{const p=l.activationMode!=="manual";!m&&!i&&p&&l.onValueChange(r)})})})});Lw.displayName=kw;var Iw="TabsContent",Dw=N.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:o,...l}=e,c=BE(Iw,n),d=Mw(c.baseId,r),f=Pw(c.baseId,r),m=r===c.value,p=N.useRef(m);return N.useEffect(()=>{const E=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(E)},[]),b.jsx(ea,{present:i||m,children:({present:E})=>b.jsx(Ot.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!E,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:E&&o})})});Dw.displayName=Iw;function Mw(e,t){return`${e}-trigger-${t}`}function Pw(e,t){return`${e}-content-${t}`}var dU=Cw,fU=Ow,hU=Lw,mU=Dw;function Wc({className:e,...t}){return b.jsx(dU,{"data-slot":"tabs",className:et("flex flex-col gap-2",e),...t})}function Qc({className:e,...t}){return b.jsx(fU,{"data-slot":"tabs-list",className:et("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function ks({className:e,...t}){return b.jsx(hU,{"data-slot":"tabs-trigger",className:et("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Li({className:e,...t}){return b.jsx(mU,{"data-slot":"tabs-content",className:et("flex-1 outline-none",e),...t})}function pU(){const{state:e}=jh(),t=e==="collapsed",[n,r]=N.useState("recent-viewed");return b.jsxs(ZP,{className:"relative",children:[b.jsx(JP,{className:"relative",children:b.jsxs("div",{className:"flex items-center justify-between w-full",children:[b.jsx(Mn,{to:"/",style:{textDecoration:"none",color:"inherit"},className:"flex items-center",children:b.jsx(r5,{})}),!t&&b.jsx(F0,{className:"absolute top-5 right-2"})]})}),b.jsx(Px,{}),b.jsxs(t5,{children:[b.jsx("div",{className:"px-4 py-2",children:b.jsx(kE,{placeholder:"Search..."})}),b.jsx("div",{className:"px-4 py-2",children:b.jsxs(Wc,{value:n,onValueChange:r,className:"w-full",children:[b.jsxs(Qc,{className:"w-full grid grid-cols-2",children:[b.jsx(ks,{value:"recent-viewed",className:"flex items-center gap-1",children:b.jsx(fD,{className:"h-4 w-4"})}),b.jsx(ks,{value:"pinned",className:"flex items-center gap-1",children:b.jsx(HN,{className:"h-4 w-4"})})]}),b.jsx(Li,{value:"recent-viewed",children:b.jsx(K9,{})}),b.jsx(Li,{value:"pinned",children:b.jsx(X9,{})}),b.jsx(Li,{value:"recent-searches",children:b.jsx("div",{className:"p-4 text-center text-gray-500",children:"Recent searches feature coming soon."})})]})})]}),b.jsx(Px,{}),b.jsx(e5,{children:b.jsxs("div",{className:"flex items-center justify-between px-2",children:[b.jsx(a5,{}),b.jsx(o5,{})]})})]})}class gU extends N.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Error caught by ErrorBoundary:",t,n)}render(){var t;return this.state.hasError?this.props.fallback?this.props.fallback:b.jsx("div",{className:"flex items-center justify-center min-h-[50vh] p-6",children:b.jsxs("div",{className:"w-full max-w-md p-6 bg-white rounded-lg shadow-lg border border-red-200",children:[b.jsx("div",{className:"flex items-center justify-center w-12 h-12 mx-auto mb-4 bg-red-100 rounded-full",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),b.jsx("h2",{className:"mb-4 text-xl font-semibold text-center text-gray-800",children:"Something went wrong"}),b.jsx("div",{className:"mb-4 p-3 bg-gray-50 rounded border border-gray-200 overflow-auto",children:b.jsx("p",{className:"text-sm font-mono text-red-600",children:((t=this.state.error)==null?void 0:t.message)||"An unexpected error occurred"})}),b.jsx("button",{onClick:()=>window.location.reload(),className:"w-full px-4 py-2 text-white bg-blue-600 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 transition-colors",children:"Reload page"})]})}):this.props.children}}function bU(){const{state:e}=jh(),t=e==="collapsed";return b.jsxs(b.Fragment,{children:[b.jsx(F0,{className:"fixed bottom-4 right-4 md:hidden"}),t&&b.jsx(F0,{className:"fixed top-4 left-4 z-20 hidden md:flex"})]})}function EU(){return b.jsxs(QP,{children:[b.jsxs("div",{className:"flex min-h-screen h-screen w-full",children:[b.jsx(pU,{}),b.jsx("main",{className:"flex-1 p-4 w-full h-full overflow-auto",children:b.jsx(gU,{children:b.jsx(lI,{})})})]}),b.jsx(bU,{})]})}function yU(){return b.jsx(EU,{})}function fo({title:e,value:t,usedValue:n,icon:r,description:i}){return b.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm p-6",children:[b.jsxs("div",{className:"flex items-center justify-between space-y-0 pb-2",children:[b.jsx("h3",{className:"text-sm font-medium tracking-tight mr-2",children:e}),r&&b.jsx("div",{className:"text-muted-foreground",children:r})]}),b.jsx("div",{className:"text-3xl font-bold",children:n!==void 0?b.jsxs("span",{children:[b.jsx("span",{className:"text-green-600",children:n})," / ",t]}):t})]})}function _U({name:e,id:t,specUrl:n,isOpenApi:r=!1}){return b.jsx(Mn,{to:`/sources/${t}`,className:"block no-underline text-inherit",children:b.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm p-4 hover:shadow-md transition-shadow",children:[b.jsxs("div",{className:"flex items-center justify-between space-y-0 pb-2",children:[b.jsx("h3",{className:"text-sm font-medium tracking-tight",children:e}),r&&b.jsx("div",{className:"text-blue-500",title:"OpenAPI Source",children:b.jsx(zc,{className:"h-4 w-4"})}),!r&&b.jsx("div",{className:"text-muted-foreground",title:"Source",children:b.jsx(BN,{className:"h-4 w-4"})})]}),b.jsxs("div",{className:"text-xs text-muted-foreground mb-2",children:["ID: ",t]}),b.jsx("div",{className:"text-xs text-muted-foreground truncate",title:n,children:n})]})})}const TU=kr({sourceCount:Yr(),endpointCount:Yr(),dataTypeCount:Yr(),controllerCount:Yr(),usedEndpointCount:Yr(),usedDataTypeCount:Yr(),usedSourceCount:Yr(),usedControllerCount:Yr()}),xU=Er(),fb="GET /api/data/data-stats| -> application/json",hb="deamon_api";function Bw(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:fb,source:hb,schema:TU,errorSchema:xU}),i=N.useCallback((o={})=>{let{...l}=o;return n({method:"get",url:"/api/data/data-stats",headers:{},params:l,key:`${hb}: ${fb}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}Bw.key=`${hb}: ${fb}`;const Uw=Bw,Fw=kr({id:wt(),name:wt(),specUrl:wt()}),vU=La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>Fw))),SU=Er(),mb="GET /api/config/sources/list| -> application/json",pb="deamon_api";function Hw(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:mb,source:pb,schema:vU,errorSchema:SU}),i=N.useCallback((o={})=>{let{...l}=o;return n({method:"get",url:"/api/config/sources/list",headers:{},params:l,key:`${pb}: ${mb}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}Hw.key=`${pb}: ${mb}`;const NU=Hw;function AU(){const[e]=Uw({clearOnUnmount:!0,fetchOnMount:!0,params:{}}),[t]=NU({clearOnUnmount:!0,fetchOnMount:!0,params:{}}),n=N.useMemo(()=>lr(t)?t.data:[],[t]),r=N.useMemo(()=>lr(e)?e.data:(Kl(e)&&console.error("Error fetching stats:",e.error),null),[e]);return b.jsxs("div",{className:"container mx-auto p-4 w-full flex flex-col",children:[b.jsxs("div",{className:"flex items-center mb-6",children:[b.jsx(ND,{className:"h-6 w-6 mr-2 text-primary"}),b.jsx("h1",{className:"text-2xl font-bold",children:"API Insight Dashboard"})]}),b.jsx("p",{className:"text-muted-foreground mb-8 max-w-3xl",children:"Welcome to the API Insight Dashboard. Explore your API sources, search for endpoints and data types, and view detailed statistics about your APIs."}),r&&b.jsxs("div",{className:"p-4 border rounded-lg shadow-sm bg-card mb-8",children:[b.jsx("h2",{className:"text-lg font-semibold mb-3",children:"API Statistics Overview"}),b.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Summary of all API resources across all sources"}),b.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[b.jsx(fo,{title:"Sources",value:r.sourceCount,usedValue:r.usedSourceCount,icon:b.jsx(zc,{className:"h-4 w-4"}),description:"Total number of API sources"}),b.jsx(fo,{title:"Controllers",value:r.controllerCount,usedValue:r.usedControllerCount,icon:b.jsx(MN,{className:"h-4 w-4"}),description:"Total number of API controllers"}),b.jsx(fo,{title:"Endpoints",value:r.endpointCount,usedValue:r.usedEndpointCount,icon:b.jsx(Eo,{className:"h-4 w-4"}),description:"Total number of API endpoints"}),b.jsx(fo,{title:"Data Types",value:r.dataTypeCount,usedValue:r.usedDataTypeCount,icon:b.jsx(bo,{className:"h-4 w-4"}),description:"Total number of data models"})]})]}),b.jsx("div",{className:"max-w-xl mx-auto w-full mb-8",children:b.jsxs("div",{className:"p-4 border rounded-lg shadow-sm bg-card",children:[b.jsx("h2",{className:"text-lg font-semibold mb-3",children:"Search API Resources"}),b.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Search across all sources for endpoints, controllers, or data types"}),b.jsx(kE,{})]})}),b.jsx("div",{className:"w-full",children:b.jsxs("div",{className:"p-4 border rounded-lg shadow-sm bg-card",children:[b.jsx("h2",{className:"text-lg font-semibold mb-3",children:"API Sources"}),b.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Browse all available API sources and click to view detailed information"}),b.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:[n.map(i=>b.jsx(_U,{id:i.id,name:i.name,specUrl:i.specUrl,isOpenApi:!0},i.id)),n.length===0&&b.jsx("div",{className:"col-span-full text-center p-8 text-muted-foreground",children:"No API sources found. Add a source to get started."})]})]})})]})}function wU(){return b.jsxs("div",{className:"container mx-auto p-4",children:[b.jsx("h1",{className:"text-2xl font-bold mb-4",children:"About Page"}),b.jsx("p",{children:"This is the about page for the Insight application."})]})}function CU(){return b.jsxs("div",{className:"container mx-auto p-4",children:[b.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Dashboard"}),b.jsx("p",{children:"This is the dashboard page for the Insight application."}),b.jsxs("div",{className:"grid grid-cols-2 gap-4 mt-4",children:[b.jsxs("div",{className:"border p-4 rounded",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Analytics"}),b.jsx("p",{children:"Your analytics data will appear here."})]}),b.jsxs("div",{className:"border p-4 rounded",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Reports"}),b.jsx("p",{children:"Your reports will appear here."})]})]})]})}function UE({...e}){return b.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function FE({className:e,...t}){return b.jsx("ol",{"data-slot":"breadcrumb-list",className:et("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function xs({className:e,...t}){return b.jsx("li",{"data-slot":"breadcrumb-item",className:et("inline-flex items-center gap-1.5",e),...t})}function Dc({asChild:e,className:t,...n}){const r=e?ON:"a";return b.jsx(r,{"data-slot":"breadcrumb-link",className:et("hover:text-foreground transition-colors",t),...n})}function HE({className:e,...t}){return b.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:et("text-foreground font-normal",e),...t})}function Mc({children:e,className:t,...n}){return b.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:et("[&>svg]:size-3.5",t),...n,children:e??b.jsx(Zb,{})})}function jw({className:e,...t}){return b.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:et("mx-auto flex w-full justify-center",e),...t})}function zw({className:e,...t}){return b.jsx("ul",{"data-slot":"pagination-content",className:et("flex flex-row items-center gap-1",e),...t})}function Xn({...e}){return b.jsx("li",{"data-slot":"pagination-item",...e})}function ga({className:e,isActive:t,size:n="icon",...r}){return b.jsx("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:et(eA({variant:t?"outline":"ghost",size:n}),e),...r})}function $w({className:e,...t}){return b.jsxs(ga,{"aria-label":"Go to previous page",size:"default",className:et("gap-1 px-2.5 sm:pl-2.5",e),...t,children:[b.jsx(oD,{}),b.jsx("span",{className:"hidden sm:block",children:"Previous"})]})}function qw({className:e,...t}){return b.jsxs(ga,{"aria-label":"Go to next page",size:"default",className:et("gap-1 px-2.5 sm:pr-2.5",e),...t,children:[b.jsx("span",{className:"hidden sm:block",children:"Next"}),b.jsx(Zb,{})]})}function ph({className:e,...t}){return b.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:et("flex size-9 items-center justify-center",e),...t,children:[b.jsx(gD,{className:"size-4"}),b.jsx("span",{className:"sr-only",children:"More pages"})]})}const RU=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),OU=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),kU=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),LU=/[^\p{L}\d]+/giu,kv="$1\0$2",Lv="";function Yw(e){let t=e.trim();t=t.replace(RU,kv).replace(OU,kv),t=t.replace(LU,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function IU(e){const t=Yw(e);for(let n=0;n<t.length;n++){const r=t[n],i=kU.exec(r);if(i){const o=i.index+(i[1]??i[2]).length;t.splice(n,1,r.slice(0,o),r.slice(o))}}return t}function sc(e,t){const[n,r,i]=MU(e,t);return n+r.map(DU(t==null?void 0:t.locale)).join("_")+i}function DU(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function MU(e,t={}){const n=t.split??(t.separateNumbers?IU:Yw),r=t.prefixCharacters??Lv,i=t.suffixCharacters??Lv;let o=0,l=e.length;for(;o<e.length;){const c=e.charAt(o);if(!r.includes(c))break;o++}for(;l>o;){const c=l-1,d=e.charAt(c);if(!i.includes(d))break;l=c}return[e.slice(0,o),n(e.slice(o,l)),e.slice(l)]}function PU({sourceId:e}){var f,m;const[t,n,r]=OE("",300),[i,o]=N.useState(1),[l,c]=RE({clearOnUnmount:!0,fetchOnMount:!0,params:{source:e,type:"rest",query:r,page:i,size:12},key:"endpoint"});N.useEffect(()=>{c({source:e,type:"rest",query:r,page:i,size:12})},[r,i]);const d=N.useMemo(()=>lr(l)?l.data:null,[l]);return b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:"mb-4 relative",children:[b.jsx(Rh,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),b.jsx(tA,{placeholder:"Search endpoints...",value:t,onChange:p=>n(p.target.value),className:"pl-10"})]}),b.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:(f=d==null?void 0:d.data)==null?void 0:f.map(p=>{var E,_,v,S,A,x,O,L,B;return b.jsx(Mn,{to:`endpoint/${p.id}`,className:"block no-underline text-inherit",children:b.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm p-4 hover:shadow-md transition-shadow h-full flex flex-col relative",children:[b.jsx("span",{className:`absolute top-2 right-2 px-2 py-1 text-xs rounded-md text-white font-medium ${sc(p.data.method)==="GET"?"bg-blue-600":sc(p.data.method)==="POST"?"bg-green-600":sc(p.data.method)==="PUT"?"bg-yellow-600":sc(p.data.method)==="DELETE"?"bg-red-600":"bg-gray-600"}`,children:sc(p.data.method)}),b.jsx("div",{className:"pb-2 pr-16",children:b.jsx("h3",{className:"text-sm font-medium tracking-tight break-words",children:p.name})}),b.jsx("div",{className:"text-xs font-mono mb-2 break-all",children:p.data.requestUrl||p.path}),b.jsx("div",{className:"text-xs text-muted-foreground line-clamp-3 overflow-hidden",children:p.data.summary||p.data.description}),b.jsx("div",{className:"absolute bottom-2 right-2 flex gap-1",children:b.jsxs(Ds,{children:[((E=p.data.contentType)==null?void 0:E.includes("multipart/form-data"))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-purple-100 text-purple-700",children:b.jsx(zN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"Multipart Form Data"})})]}),((_=p.data.contentType)==null?void 0:_.includes("application/x-www-form-urlencoded"))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-blue-100 text-blue-700",children:b.jsx(UN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"Form URL Encoded"})})]}),((v=p.data.responseType)==null?void 0:v.includes("text/event-stream"))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-green-100 text-green-700",children:b.jsx(jN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"SSE (Server-Sent Events)"})})]}),(((S=p.data.responseType)==null?void 0:S.includes("application/octet-stream"))||((A=p.data.responseType)==null?void 0:A.includes("application/pdf"))||((x=p.data.responseType)==null?void 0:x.includes("application/zip"))||((O=p.data.responseType)==null?void 0:O.includes("application/x-msdownload"))||((L=p.data.responseType)==null?void 0:L.includes("application/vnd.ms-excel"))||((B=p.data.responseType)==null?void 0:B.includes("application/vnd.openxmlformats-officedocument")))&&b.jsxs(ba,{children:[b.jsx(Ea,{asChild:!0,children:b.jsx("div",{className:"p-1 rounded-md bg-amber-100 text-amber-700",children:b.jsx(PN,{className:"h-3 w-3"})})}),b.jsx(ya,{children:b.jsx("p",{children:"Downloadable Content"})})]})]})})]})},p.id)})}),((m=d==null?void 0:d.data)==null?void 0:m.length)===0&&b.jsxs("div",{className:"text-center py-8",children:[b.jsx(Eo,{className:"mx-auto h-12 w-12 text-muted-foreground/50"}),b.jsx("h3",{className:"mt-2 text-lg font-semibold",children:"No endpoints found"}),b.jsx("p",{className:"text-sm text-muted-foreground",children:t?"Try a different search term":"No endpoints available for this source"})]}),d&&d.totalPages>1&&b.jsx("div",{className:"mt-8",children:b.jsx(jw,{children:b.jsxs(zw,{children:[d.hasPrevious&&b.jsx(Xn,{children:b.jsx($w,{onClick:()=>o(p=>Math.max(1,p-1)),style:{cursor:d.hasPrevious?"pointer":"not-allowed"}})}),i>2&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>o(1),isActive:i===1,children:"1"})}),i>3&&b.jsx(Xn,{children:b.jsx(ph,{})}),i>1&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>o(i-1),children:i-1})}),b.jsx(Xn,{children:b.jsx(ga,{isActive:!0,children:i})}),i<d.totalPages&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>o(i+1),children:i+1})}),i<d.totalPages-2&&b.jsx(Xn,{children:b.jsx(ph,{})}),i<d.totalPages-1&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>o(d.totalPages),children:d.totalPages})}),d.hasNext&&b.jsx(Xn,{children:b.jsx(qw,{onClick:()=>o(p=>Math.min(d.totalPages,p+1)),style:{cursor:d.hasNext?"pointer":"not-allowed"}})})]})})})]})}function BU({datatypes:e=[],sourceId:t}){var m,p;const[n,r,i]=OE("",300),[o,l]=N.useState(1),[c,d]=RE({clearOnUnmount:!0,fetchOnMount:!0,params:{source:t,type:"schema",query:i,page:o,size:12},key:"datatype"});N.useEffect(()=>{d({source:t,type:"schema",query:i,page:o,size:12})},[i,o]);const f=N.useMemo(()=>lr(c)?c.data:null,[c]);return b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:"mb-4 relative",children:[b.jsx(Rh,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),b.jsx(tA,{placeholder:"Search data types...",value:n,onChange:E=>r(E.target.value),className:"pl-10"})]}),b.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:(m=f==null?void 0:f.data)==null?void 0:m.map(E=>{var _,v,S;return b.jsx(Mn,{to:`datatype/${E.id}`,className:"block no-underline text-inherit",children:b.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm p-4 hover:shadow-md transition-shadow h-full flex flex-col relative",children:[b.jsx("div",{className:"pb-2",children:b.jsx("h3",{className:"text-sm font-medium tracking-tight break-words",children:E.name})}),((v=(_=E.data)==null?void 0:_.schema)==null?void 0:v.properties)&&b.jsxs("div",{className:"flex flex-wrap gap-1 mb-2",children:[Object.keys(E.data.schema.properties).slice(0,5).map(A=>b.jsx("span",{className:"px-2 py-0.5 text-xs rounded-md bg-secondary text-secondary-foreground",children:A},A)),Object.keys(E.data.schema.properties).length>5&&b.jsxs("span",{className:"px-2 py-0.5 text-xs rounded-md bg-secondary text-secondary-foreground",children:["+",Object.keys(E.data.schema.properties).length-5," more"]})]}),b.jsx("div",{className:"text-xs text-muted-foreground line-clamp-3 overflow-hidden",children:(S=E.data)==null?void 0:S.description})]})},E.id)})}),((p=f==null?void 0:f.data)==null?void 0:p.length)===0&&b.jsxs("div",{className:"text-center py-8",children:[b.jsx(bo,{className:"mx-auto h-12 w-12 text-muted-foreground/50"}),b.jsx("h3",{className:"mt-2 text-lg font-semibold",children:"No data types found"}),b.jsx("p",{className:"text-sm text-muted-foreground",children:n?"Try a different search term":"No data types available for this source"})]}),f&&f.totalPages>1&&b.jsx("div",{className:"mt-8",children:b.jsx(jw,{children:b.jsxs(zw,{children:[f.hasPrevious&&b.jsx(Xn,{children:b.jsx($w,{onClick:()=>l(E=>Math.max(1,E-1)),style:{cursor:f.hasPrevious?"pointer":"not-allowed"}})}),o>2&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>l(1),isActive:o===1,children:"1"})}),o>3&&b.jsx(Xn,{children:b.jsx(ph,{})}),o>1&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>l(o-1),children:o-1})}),b.jsx(Xn,{children:b.jsx(ga,{isActive:!0,children:o})}),o<f.totalPages&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>l(o+1),children:o+1})}),o<f.totalPages-2&&b.jsx(Xn,{children:b.jsx(ph,{})}),o<f.totalPages-1&&b.jsx(Xn,{children:b.jsx(ga,{onClick:()=>l(f.totalPages),children:f.totalPages})}),f.hasNext&&b.jsx(Xn,{children:b.jsx(qw,{onClick:()=>l(E=>Math.min(f.totalPages,E+1)),style:{cursor:f.hasNext?"pointer":"not-allowed"}})})]})})})]})}const UU=Er(),gb="GET /api/config/sources/{id}| -> application/json",bb="deamon_api";function Gw(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:gb,source:bb,schema:Fw,errorSchema:UU}),i=N.useCallback(o=>{let{id:l,...c}=o;return n({method:"get",url:`/api/config/sources/${l}`,headers:{},params:c,key:`${bb}: ${gb}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}Gw.key=`${bb}: ${gb}`;const FU=Gw;function HU(){const{sourceId:e}=Vb(),[t,n]=FU({clearOnUnmount:!0}),[r,i]=Uw({clearOnUnmount:!0});N.useEffect(()=>{e&&n({id:e})},[e]);const o=N.useMemo(()=>lr(t)?t.data:null,[t]);N.useEffect(()=>{e&&i({source:e})},[e]);const l=N.useMemo(()=>lr(r)?r.data:null,[r]),[c,d]=N.useState([]),[f,m]=N.useState([]);return!o&&e?b.jsx("div",{children:"Source not found"}):b.jsx("div",{className:"container mx-auto p-4 w-full flex flex-col",children:o?b.jsxs(b.Fragment,{children:[b.jsx(UE,{className:"mb-4",children:b.jsxs(FE,{children:[b.jsx(xs,{children:b.jsx(Dc,{asChild:!0,children:b.jsx(Mn,{to:"/",children:b.jsx(vD,{className:"h-3 w-3"})})})}),b.jsx(Mc,{children:b.jsx(Zb,{className:"h-3 w-3"})}),b.jsx(xs,{children:b.jsx(HE,{children:o.name})})]})}),b.jsx("h1",{className:"text-2xl font-bold mb-6",children:o.name}),b.jsxs("div",{className:"flex flex-col md:flex-row justify-between mb-8",children:[b.jsxs("div",{className:"flex flex-col items-start p-4 border rounded-lg shadow-sm bg-card",children:[b.jsx("h3",{className:"text-lg font-semibold mb-3",children:"Source Information"}),b.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-2 items-start",children:[b.jsx("span",{className:"font-medium text-sm",children:"ID:"}),b.jsx("span",{className:"text-sm text-muted-foreground font-mono",children:o.id}),b.jsx("span",{className:"font-medium text-sm",children:"Name:"}),b.jsx("span",{className:"text-sm text-muted-foreground",children:o.name}),b.jsx("span",{className:"font-medium text-sm",children:"Spec URL:"}),b.jsx("a",{href:o.specUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-blue-600 hover:underline truncate max-w-xs",children:o.specUrl}),b.jsx("span",{className:"font-medium text-sm",children:"Type:"}),b.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-full bg-blue-100 text-blue-800 text-xs",children:[b.jsx(zc,{className:"h-3 w-3"}),b.jsx("span",{children:"OpenAPI"})]}),b.jsx("span",{className:"font-medium text-sm",children:"Last Updated:"}),b.jsx("span",{className:"text-sm text-muted-foreground",children:new Date().toLocaleDateString()})]})]}),l&&b.jsxs("div",{className:"flex flex-col p-4 border rounded-lg shadow-sm bg-card",children:[b.jsx("h3",{className:"text-lg font-semibold mb-3",children:"API Statistics"}),b.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[b.jsx(fo,{title:"Controllers",value:l.controllerCount,usedValue:l.usedControllerCount,icon:b.jsx(MN,{className:"h-4 w-4"}),description:"Total number of API controllers"}),b.jsx(fo,{title:"Endpoints",value:l.endpointCount,usedValue:l.usedEndpointCount,icon:b.jsx(Eo,{className:"h-4 w-4"}),description:"Total number of API endpoints"}),b.jsx(fo,{title:"Data Types",value:l.dataTypeCount,usedValue:l.usedDataTypeCount,icon:b.jsx(bo,{className:"h-4 w-4"}),description:"Total number of data models"})]})]})]}),b.jsx("div",{className:"max-w-xl mx-auto w-full mb-8",children:b.jsxs("div",{className:"p-4 border rounded-lg shadow-sm bg-card",children:[b.jsx("h3",{className:"text-lg font-semibold mb-3",children:"Search API Resources"}),b.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Search for endpoints, controllers, or data types in this API source"}),b.jsx(kE,{source:e})]})}),b.jsx("div",{className:"mb-8",children:b.jsxs("div",{className:"p-4 border rounded-lg shadow-sm bg-card",children:[b.jsx("h3",{className:"text-lg font-semibold mb-3",children:"API Resources"}),b.jsxs(Wc,{defaultValue:"endpoints",className:"w-full",children:[b.jsxs(Qc,{className:"mb-4",children:[b.jsxs(ks,{value:"endpoints",children:[b.jsx(Eo,{className:"h-4 w-4 mr-2"}),"Endpoints"]}),b.jsxs(ks,{value:"datatypes",children:[b.jsx(bo,{className:"h-4 w-4 mr-2"}),"Data Types"]})]}),b.jsx(Li,{value:"endpoints",className:"mt-0",children:b.jsxs("div",{className:"p-1",children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Browse all available API endpoints in this source"}),b.jsx(PU,{endpoints:c||[],sourceId:e})]})}),b.jsx(Li,{value:"datatypes",className:"mt-0",children:b.jsxs("div",{className:"p-1",children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Browse all available data models in this source"}),b.jsx(BU,{datatypes:f||[],sourceId:e})]})})]})]})})]}):b.jsx(Bf,{to:"/",replace:!0})})}const gh=kr({name:wt(),id:wt()}),jU=kr({name:wt(),in:wt(),ref:wt(),relatedType:Cr(()=>gh)}),Vw=kr({name:wt(),content:wt()}),zU=kr({id:wt(),name:wt(),method:wt(),path:wt(),description:wt().optional().nullable(),requestBody:Cr(()=>gh).optional().nullable(),contentType:wt().optional().nullable(),response:Cr(()=>gh).optional().nullable(),responseType:wt().optional().nullable(),requestUrl:wt(),variables:La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>jU))),responseExamples:Er(),tabs:La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>Vw)))}),$U=Er(),Eb="GET /api/data/get/endpoint/{id}| -> application/json",yb="deamon_api";function Kw(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:Eb,source:yb,schema:zU,errorSchema:$U}),i=N.useCallback(o=>{let{id:l,...c}=o;return n({method:"get",url:`/api/data/get/endpoint/${l}`,headers:{},params:c,key:`${yb}: ${Eb}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}Kw.key=`${yb}: ${Eb}`;const qU=Kw,YU=kr({files:La(e=>Array.isArray(e)?e:[e],ka(wt()))}),GU=Er(),_b="GET /api/data/files| -> application/json",Tb="deamon_api";function Xw(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:_b,source:Tb,schema:YU,errorSchema:GU}),i=N.useCallback((o={})=>{let{...l}=o;return n({method:"get",url:"/api/data/files",headers:{},params:l,key:`${Tb}: ${_b}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}Xw.key=`${Tb}: ${_b}`;const tm=Xw,Kr=N.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:et("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Kr.displayName="Card";const Ja=N.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:et("flex flex-col space-y-1.5 p-6",e),...t}));Ja.displayName="CardHeader";const vs=N.forwardRef(({className:e,...t},n)=>b.jsx("h3",{ref:n,className:et("text-lg font-semibold leading-none tracking-tight",e),...t}));vs.displayName="CardTitle";const Ss=N.forwardRef(({className:e,...t},n)=>b.jsx("p",{ref:n,className:et("text-sm text-muted-foreground",e),...t}));Ss.displayName="CardDescription";const Xr=N.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:et("p-6 pt-0",e),...t}));Xr.displayName="CardContent";const VU=N.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:et("flex items-center p-6 pt-0",e),...t}));VU.displayName="CardFooter";function Iv(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function Ww(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const KU=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,XU=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WU={};function Dv(e,t){return(WU.jsx?XU:KU).test(e)}const QU=/[ \t\n\f\r]/g;function ZU(e){return typeof e=="object"?e.type==="text"?Mv(e.value):!1:Mv(e)}function Mv(e){return e.replace(QU,"")===""}let Zc=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Zc.prototype.normal={};Zc.prototype.property={};Zc.prototype.space=void 0;function Qw(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Zc(n,r,t)}function Pc(e){return e.toLowerCase()}let Lr=class{constructor(t,n){this.attribute=n,this.property=t}};Lr.prototype.attribute="";Lr.prototype.booleanish=!1;Lr.prototype.boolean=!1;Lr.prototype.commaOrSpaceSeparated=!1;Lr.prototype.commaSeparated=!1;Lr.prototype.defined=!1;Lr.prototype.mustUseProperty=!1;Lr.prototype.number=!1;Lr.prototype.overloadedBoolean=!1;Lr.prototype.property="";Lr.prototype.spaceSeparated=!1;Lr.prototype.space=void 0;let JU=0;const Et=Co(),Ln=Co(),xb=Co(),Ce=Co(),rn=Co(),Al=Co(),$r=Co();function Co(){return 2**++JU}const vb=Object.freeze(Object.defineProperty({__proto__:null,boolean:Et,booleanish:Ln,commaOrSpaceSeparated:$r,commaSeparated:Al,number:Ce,overloadedBoolean:xb,spaceSeparated:rn},Symbol.toStringTag,{value:"Module"})),n0=Object.keys(vb);let jE=class extends Lr{constructor(t,n,r,i){let o=-1;if(super(t,n),Pv(this,"space",i),typeof r=="number")for(;++o<n0.length;){const l=n0[o];Pv(this,n0[o],(r&vb[l])===vb[l])}}};jE.prototype.defined=!0;function Pv(e,t,n){n&&(e[t]=n)}function Ql(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new jE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Pc(r)]=r,n[Pc(o.attribute)]=r}return new Zc(t,n,e.space)}const Zw=Ql({properties:{ariaActiveDescendant:null,ariaAtomic:Ln,ariaAutoComplete:null,ariaBusy:Ln,ariaChecked:Ln,ariaColCount:Ce,ariaColIndex:Ce,ariaColSpan:Ce,ariaControls:rn,ariaCurrent:null,ariaDescribedBy:rn,ariaDetails:null,ariaDisabled:Ln,ariaDropEffect:rn,ariaErrorMessage:null,ariaExpanded:Ln,ariaFlowTo:rn,ariaGrabbed:Ln,ariaHasPopup:null,ariaHidden:Ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rn,ariaLevel:Ce,ariaLive:null,ariaModal:Ln,ariaMultiLine:Ln,ariaMultiSelectable:Ln,ariaOrientation:null,ariaOwns:rn,ariaPlaceholder:null,ariaPosInSet:Ce,ariaPressed:Ln,ariaReadOnly:Ln,ariaRelevant:null,ariaRequired:Ln,ariaRoleDescription:rn,ariaRowCount:Ce,ariaRowIndex:Ce,ariaRowSpan:Ce,ariaSelected:Ln,ariaSetSize:Ce,ariaSort:null,ariaValueMax:Ce,ariaValueMin:Ce,ariaValueNow:Ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jw(e,t){return t in e?e[t]:t}function eC(e,t){return Jw(e,t.toLowerCase())}const eF=Ql({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Al,acceptCharset:rn,accessKey:rn,action:null,allow:null,allowFullScreen:Et,allowPaymentRequest:Et,allowUserMedia:Et,alt:null,as:null,async:Et,autoCapitalize:null,autoComplete:rn,autoFocus:Et,autoPlay:Et,blocking:rn,capture:null,charSet:null,checked:Et,cite:null,className:rn,cols:Ce,colSpan:null,content:null,contentEditable:Ln,controls:Et,controlsList:rn,coords:Ce|Al,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Et,defer:Et,dir:null,dirName:null,disabled:Et,download:xb,draggable:Ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Et,formTarget:null,headers:rn,height:Ce,hidden:xb,high:Ce,href:null,hrefLang:null,htmlFor:rn,httpEquiv:rn,id:null,imageSizes:null,imageSrcSet:null,inert:Et,inputMode:null,integrity:null,is:null,isMap:Et,itemId:null,itemProp:rn,itemRef:rn,itemScope:Et,itemType:rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Et,low:Ce,manifest:null,max:null,maxLength:Ce,media:null,method:null,min:null,minLength:Ce,multiple:Et,muted:Et,name:null,nonce:null,noModule:Et,noValidate:Et,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:Et,optimum:Ce,pattern:null,ping:rn,placeholder:null,playsInline:Et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Et,referrerPolicy:null,rel:rn,required:Et,reversed:Et,rows:Ce,rowSpan:Ce,sandbox:rn,scope:null,scoped:Et,seamless:Et,selected:Et,shadowRootClonable:Et,shadowRootDelegatesFocus:Et,shadowRootMode:null,shape:null,size:Ce,sizes:null,slot:null,span:Ce,spellCheck:Ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ce,step:null,style:null,tabIndex:Ce,target:null,title:null,translate:null,type:null,typeMustMatch:Et,useMap:null,value:Ln,width:Ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rn,axis:null,background:null,bgColor:null,border:Ce,borderColor:null,bottomMargin:Ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Et,declare:Et,event:null,face:null,frame:null,frameBorder:null,hSpace:Ce,leftMargin:Ce,link:null,longDesc:null,lowSrc:null,marginHeight:Ce,marginWidth:Ce,noResize:Et,noHref:Et,noShade:Et,noWrap:Et,object:null,profile:null,prompt:null,rev:null,rightMargin:Ce,rules:null,scheme:null,scrolling:Ln,standby:null,summary:null,text:null,topMargin:Ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Et,disableRemotePlayback:Et,prefix:null,property:null,results:Ce,security:null,unselectable:null},space:"html",transform:eC}),tF=Ql({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:$r,accentHeight:Ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ce,amplitude:Ce,arabicForm:null,ascent:Ce,attributeName:null,attributeType:null,azimuth:Ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ce,by:null,calcMode:null,capHeight:Ce,className:rn,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:Ce,diffuseConstant:Ce,direction:null,display:null,dur:null,divisor:Ce,dominantBaseline:null,download:Et,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ce,enableBackground:null,end:null,event:null,exponent:Ce,externalResourcesRequired:null,fill:null,fillOpacity:Ce,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:Al,g2:Al,glyphName:Al,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ce,horizOriginX:Ce,horizOriginY:Ce,id:null,ideographic:Ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ce,k:Ce,k1:Ce,k2:Ce,k3:Ce,k4:Ce,kernelMatrix:$r,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ce,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:Ce,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:Ce,overlineThickness:Ce,paintOrder:null,panose1:null,path:null,pathLength:Ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ce,pointsAtY:Ce,pointsAtZ:Ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$r,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$r,rev:$r,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$r,requiredFeatures:$r,requiredFonts:$r,requiredFormats:$r,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:Ce,specularExponent:Ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ce,strikethroughThickness:Ce,string:null,stroke:null,strokeDashArray:$r,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ce,strokeOpacity:Ce,strokeWidth:null,style:null,surfaceScale:Ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$r,tabIndex:Ce,tableValues:null,target:null,targetX:Ce,targetY:Ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$r,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ce,underlineThickness:Ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ce,values:null,vAlphabetic:Ce,vMathematical:Ce,vectorEffect:null,vHanging:Ce,vIdeographic:Ce,version:null,vertAdvY:Ce,vertOriginX:Ce,vertOriginY:Ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jw}),tC=Ql({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),nC=Ql({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eC}),rC=Ql({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nF={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"},rF=/[A-Z]/g,Bv=/-[a-z]/g,aF=/^data[-\w.:]+$/i;function zE(e,t){const n=Pc(t);let r=t,i=Lr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aF.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Bv,sF);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Bv.test(o)){let l=o.replace(rF,iF);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=jE}return new i(r,t)}function iF(e){return"-"+e.toLowerCase()}function sF(e){return e.charAt(1).toUpperCase()}const nm=Qw([Zw,eF,tC,nC,rC],"html"),Zl=Qw([Zw,tF,tC,nC,rC],"svg");function Uv(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function aC(e){return e.join(" ").trim()}var hl={},r0,Fv;function oF(){if(Fv)return r0;Fv=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
271
- `,f="/",m="*",p="",E="comment",_="declaration";r0=function(S,A){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];A=A||{};var x=1,O=1;function L(V){var ne=V.match(t);ne&&(x+=ne.length);var ae=V.lastIndexOf(d);O=~ae?V.length-ae:O+V.length}function B(){var V={line:x,column:O};return function(ne){return ne.position=new k(V),j(),ne}}function k(V){this.start=V,this.end={line:x,column:O},this.source=A.source}k.prototype.content=S;function w(V){var ne=new Error(A.source+":"+x+":"+O+": "+V);if(ne.reason=V,ne.filename=A.source,ne.line=x,ne.column=O,ne.source=S,!A.silent)throw ne}function U(V){var ne=V.exec(S);if(ne){var ae=ne[0];return L(ae),S=S.slice(ae.length),ne}}function j(){U(n)}function F(V){var ne;for(V=V||[];ne=M();)ne!==!1&&V.push(ne);return V}function M(){var V=B();if(!(f!=S.charAt(0)||m!=S.charAt(1))){for(var ne=2;p!=S.charAt(ne)&&(m!=S.charAt(ne)||f!=S.charAt(ne+1));)++ne;if(ne+=2,p===S.charAt(ne-1))return w("End of comment missing");var ae=S.slice(2,ne-2);return O+=2,L(ae),S=S.slice(ne),O+=2,V({type:E,comment:ae})}}function J(){var V=B(),ne=U(r);if(ne){if(M(),!U(i))return w("property missing ':'");var ae=U(o),Q=V({type:_,property:v(ne[0].replace(e,p)),value:ae?v(ae[0].replace(e,p)):p});return U(l),Q}}function X(){var V=[];F(V);for(var ne;ne=J();)ne!==!1&&(V.push(ne),F(V));return V}return j(),X()};function v(S){return S?S.replace(c,p):p}return r0}var Hv;function lF(){if(Hv)return hl;Hv=1;var e=hl&&hl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=n;var t=e(oF());function n(r,i){var o=null;if(!r||typeof r!="string")return o;var l=(0,t.default)(r),c=typeof i=="function";return l.forEach(function(d){if(d.type==="declaration"){var f=d.property,m=d.value;c?i(f,m,d):m&&(o=o||{},o[f]=m)}}),o}return hl}var oc={},jv;function uF(){if(jv)return oc;jv=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(f){return!f||n.test(f)||e.test(f)},l=function(f,m){return m.toUpperCase()},c=function(f,m){return"".concat(m,"-")},d=function(f,m){return m===void 0&&(m={}),o(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(i,c):f=f.replace(r,c),f.replace(t,l))};return oc.camelCase=d,oc}var lc,zv;function cF(){if(zv)return lc;zv=1;var e=lc&&lc.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(lF()),n=uF();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(c,d){c&&d&&(l[(0,n.camelCase)(c,o)]=d)}),l}return r.default=r,lc=r,lc}var dF=cF();const fF=zl(dF),rm=iC("end"),oi=iC("start");function iC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function hF(e){const t=oi(e),n=rm(e);if(t&&n)return{start:t,end:n}}function bc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?$v(e.position):"start"in e||"end"in e?$v(e):"line"in e||"column"in e?Sb(e):""}function Sb(e){return qv(e&&e.line)+":"+qv(e&&e.column)}function $v(e){return Sb(e&&e.start)+"-"+Sb(e&&e.end)}function qv(e){return e&&typeof e=="number"?e:1}class ur extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?o.ruleId=r:(o.source=r.slice(0,d),o.ruleId=r.slice(d+1))}if(!o.place&&o.ancestors&&o.ancestors){const d=o.ancestors[o.ancestors.length-1];d&&(o.place=d.position)}const c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=c?c.line:void 0,this.name=bc(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ur.prototype.file="";ur.prototype.name="";ur.prototype.reason="";ur.prototype.message="";ur.prototype.stack="";ur.prototype.column=void 0;ur.prototype.line=void 0;ur.prototype.ancestors=void 0;ur.prototype.cause=void 0;ur.prototype.fatal=void 0;ur.prototype.place=void 0;ur.prototype.ruleId=void 0;ur.prototype.source=void 0;const $E={}.hasOwnProperty,mF=new Map,pF=/[A-Z]/g,gF=new Set(["table","tbody","thead","tfoot","tr"]),bF=new Set(["td","th"]),sC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function EF(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=AF(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=NF(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Zl:nm,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=oC(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function oC(e,t,n){if(t.type==="element")return yF(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _F(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return xF(e,t,n);if(t.type==="mdxjsEsm")return TF(e,t);if(t.type==="root")return vF(e,t,n);if(t.type==="text")return SF(e,t)}function yF(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Zl,e.schema=i),e.ancestors.push(t);const o=uC(e,t.tagName,!1),l=wF(e,t);let c=YE(e,t);return gF.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!ZU(d):!0})),lC(e,l,o,t),qE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function _F(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Bc(e,t.position)}function TF(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Bc(e,t.position)}function xF(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Zl,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:uC(e,t.name,!0),l=CF(e,t),c=YE(e,t);return lC(e,l,o,t),qE(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function vF(e,t,n){const r={};return qE(r,YE(e,t)),e.create(t,e.Fragment,r,n)}function SF(e,t){return t.value}function lC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function qE(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function NF(e,t,n){return r;function r(i,o,l,c){const f=Array.isArray(l.children)?n:t;return c?f(o,l,c):f(o,l)}}function AF(e,t){return n;function n(r,i,o,l){const c=Array.isArray(o.children),d=oi(r);return t(i,o,l,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function wF(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&$E.call(t.properties,i)){const o=RF(e,i,t.properties[i]);if(o){const[l,c]=o;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&bF.has(t.tagName)?r=c:n[l]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function CF(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const c=l.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Bc(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,o=e.evaluater.evaluateExpression(c.expression)}else Bc(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function YE(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:mF;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const d=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(d){const f=i.get(d)||0;l=d+"-"+f,i.set(d,f+1)}}const c=oC(e,o,l);c!==void 0&&n.push(c)}return n}function RF(e,t,n){const r=zE(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ww(n):aC(n)),r.property==="style"){let i=typeof n=="object"?n:OF(e,String(n));return e.stylePropertyNameCase==="css"&&(i=kF(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?nF[r.property]||r.property:r.attribute,n]}}function OF(e,t){try{return fF(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ur("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=sC+"#cannot-parse-style-attribute",i}}function uC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const c=Dv(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=l}else r=Dv(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return $E.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Bc(e)}function Bc(e,t){const n=new ur("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=sC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function kF(e){const t={};let n;for(n in e)$E.call(e,n)&&(t[LF(n)]=e[n]);return t}function LF(e){let t=e.replace(pF,IF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function IF(e){return"-"+e.toLowerCase()}const a0={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"]},DF={};function GE(e,t){const n=DF,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return cC(e,r,i)}function cC(e,t,n){if(MF(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yv(e.children,t,n)}return Array.isArray(e)?Yv(e,t,n):""}function Yv(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=cC(e[i],t,n);return r.join("")}function MF(e){return!!(e&&typeof e=="object")}const Gv=document.createElement("i");function VE(e){const t="&"+e+";";Gv.innerHTML=t;const n=Gv.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Zr(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ma(e,t){return e.length>0?(Zr(e,e.length,0,t),e):t}const Vv={}.hasOwnProperty;function dC(e){const t={};let n=-1;for(;++n<e.length;)PF(t,e[n]);return t}function PF(e,t){let n;for(n in t){const i=(Vv.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Vv.call(i,l)||(i[l]=[]);const c=o[l];BF(i[l],Array.isArray(c)?c:c?[c]:[])}}}function BF(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Zr(e,0,0,r)}function fC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ia(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const br=Ms(/[A-Za-z]/),or=Ms(/[\dA-Za-z]/),UF=Ms(/[#-'*+\--9=?A-Z^-~]/);function bh(e){return e!==null&&(e<32||e===127)}const Nb=Ms(/\d/),FF=Ms(/[\dA-Fa-f]/),HF=Ms(/[!-/:-@[-`{-~]/);function nt(e){return e!==null&&e<-2}function Qt(e){return e!==null&&(e<0||e===32)}function Ct(e){return e===-2||e===-1||e===32}const am=Ms(new RegExp("\\p{P}|\\p{S}","u")),No=Ms(/\s/);function Ms(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Jl(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&or(e.charCodeAt(n+1))&&or(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(l=String.fromCharCode(o,c),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Mt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(d){return Ct(d)?(e.enter(n),c(d)):t(d)}function c(d){return Ct(d)&&o++<i?(e.consume(d),c):(e.exit(n),t(d))}}const jF={tokenize:zF};function zF(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Mt(e,t,"linePrefix")}function i(c){return e.enter("paragraph"),o(c)}function o(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return nt(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),l)}}const $F={tokenize:qF},Kv={tokenize:YF};function qF(e){const t=this,n=[];let r=0,i,o,l;return c;function c(L){if(r<n.length){const B=n[r];return t.containerState=B[1],e.attempt(B[0].continuation,d,f)(L)}return f(L)}function d(L){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&O();const B=t.events.length;let k=B,w;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){w=t.events[k][1].end;break}x(r);let U=B;for(;U<t.events.length;)t.events[U][1].end={...w},U++;return Zr(t.events,k+1,0,t.events.slice(B)),t.events.length=U,f(L)}return c(L)}function f(L){if(r===n.length){if(!i)return E(L);if(i.currentConstruct&&i.currentConstruct.concrete)return v(L);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Kv,m,p)(L)}function m(L){return i&&O(),x(r),E(L)}function p(L){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,v(L)}function E(L){return t.containerState={},e.attempt(Kv,_,v)(L)}function _(L){return r++,n.push([t.currentConstruct,t.containerState]),E(L)}function v(L){if(L===null){i&&O(),x(0),e.consume(L);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),S(L)}function S(L){if(L===null){A(e.exit("chunkFlow"),!0),x(0),e.consume(L);return}return nt(L)?(e.consume(L),A(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(L),S)}function A(L,B){const k=t.sliceStream(L);if(B&&k.push(null),L.previous=o,o&&(o.next=L),o=L,i.defineSkip(L.start),i.write(k),t.parser.lazy[L.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const U=t.events.length;let j=U,F,M;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(F){M=t.events[j][1].end;break}F=!0}for(x(r),w=U;w<t.events.length;)t.events[w][1].end={...M},w++;Zr(t.events,j+1,0,t.events.slice(U)),t.events.length=w}}function x(L){let B=n.length;for(;B-- >L;){const k=n[B];t.containerState=k[1],k[0].exit.call(t,e)}n.length=L}function O(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function YF(e,t,n){return Mt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ul(e){if(e===null||Qt(e)||No(e))return 1;if(am(e))return 2}function im(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Ab={name:"attention",resolveAll:GF,tokenize:VF};function GF(e,t){let n=-1,r,i,o,l,c,d,f,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},E={...e[n][1].start};Xv(p,-d),Xv(E,d),l={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},o={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:d>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=ma(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=ma(f,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),f=ma(f,im(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=ma(f,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,f=ma(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Zr(e,r-1,n-r+3,f),n=r+f.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function VF(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ul(r);let o;return l;function l(d){return o=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===o)return e.consume(d),c;const f=e.exit("attentionSequence"),m=Ul(d),p=!m||m===2&&i||n.includes(d),E=!i||i===2&&m||n.includes(r);return f._open=!!(o===42?p:p&&(i||!E)),f._close=!!(o===42?E:E&&(m||!p)),t(d)}}function Xv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const KF={name:"autolink",tokenize:XF};function XF(e,t,n){let r=0;return i;function i(_){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(_){return br(_)?(e.consume(_),l):_===64?n(_):f(_)}function l(_){return _===43||_===45||_===46||or(_)?(r=1,c(_)):f(_)}function c(_){return _===58?(e.consume(_),r=0,d):(_===43||_===45||_===46||or(_))&&r++<32?(e.consume(_),c):(r=0,f(_))}function d(_){return _===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):_===null||_===32||_===60||bh(_)?n(_):(e.consume(_),d)}function f(_){return _===64?(e.consume(_),m):UF(_)?(e.consume(_),f):n(_)}function m(_){return or(_)?p(_):n(_)}function p(_){return _===46?(e.consume(_),r=0,m):_===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):E(_)}function E(_){if((_===45||or(_))&&r++<63){const v=_===45?E:p;return e.consume(_),v}return n(_)}}const Jc={partial:!0,tokenize:WF};function WF(e,t,n){return r;function r(o){return Ct(o)?Mt(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||nt(o)?t(o):n(o)}}const hC={continuation:{tokenize:ZF},exit:JF,name:"blockQuote",tokenize:QF};function QF(e,t,n){const r=this;return i;function i(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return Ct(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function ZF(e,t,n){const r=this;return i;function i(l){return Ct(l)?Mt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(hC,t,n)(l)}}function JF(e){e.exit("blockQuote")}const mC={name:"characterEscape",tokenize:e7};function e7(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return HF(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const pC={name:"characterReference",tokenize:t7};function t7(e,t,n){const r=this;let i=0,o,l;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,l=or,m(p))}function f(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=FF,m):(e.enter("characterReferenceValue"),o=7,l=Nb,m(p))}function m(p){if(p===59&&i){const E=e.exit("characterReferenceValue");return l===or&&!VE(r.sliceSerialize(E))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(p)&&i++<o?(e.consume(p),m):n(p)}}const Wv={partial:!0,tokenize:r7},Qv={concrete:!0,name:"codeFenced",tokenize:n7};function n7(e,t,n){const r=this,i={partial:!0,tokenize:k};let o=0,l=0,c;return d;function d(w){return f(w)}function f(w){const U=r.events[r.events.length-1];return o=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,c=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(w)}function m(w){return w===c?(l++,e.consume(w),m):l<3?n(w):(e.exit("codeFencedFenceSequence"),Ct(w)?Mt(e,p,"whitespace")(w):p(w))}function p(w){return w===null||nt(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Wv,S,B)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||nt(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(w)):Ct(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Mt(e,_,"whitespace")(w)):w===96&&w===c?n(w):(e.consume(w),E)}function _(w){return w===null||nt(w)?p(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(w))}function v(w){return w===null||nt(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(w)):w===96&&w===c?n(w):(e.consume(w),v)}function S(w){return e.attempt(i,B,A)(w)}function A(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return o>0&&Ct(w)?Mt(e,O,"linePrefix",o+1)(w):O(w)}function O(w){return w===null||nt(w)?e.check(Wv,S,B)(w):(e.enter("codeFlowValue"),L(w))}function L(w){return w===null||nt(w)?(e.exit("codeFlowValue"),O(w)):(e.consume(w),L)}function B(w){return e.exit("codeFenced"),t(w)}function k(w,U,j){let F=0;return M;function M(ae){return w.enter("lineEnding"),w.consume(ae),w.exit("lineEnding"),J}function J(ae){return w.enter("codeFencedFence"),Ct(ae)?Mt(w,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):X(ae)}function X(ae){return ae===c?(w.enter("codeFencedFenceSequence"),V(ae)):j(ae)}function V(ae){return ae===c?(F++,w.consume(ae),V):F>=l?(w.exit("codeFencedFenceSequence"),Ct(ae)?Mt(w,ne,"whitespace")(ae):ne(ae)):j(ae)}function ne(ae){return ae===null||nt(ae)?(w.exit("codeFencedFence"),U(ae)):j(ae)}}}function r7(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const i0={name:"codeIndented",tokenize:i7},a7={partial:!0,tokenize:s7};function i7(e,t,n){const r=this;return i;function i(f){return e.enter("codeIndented"),Mt(e,o,"linePrefix",5)(f)}function o(f){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?d(f):nt(f)?e.attempt(a7,l,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||nt(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function s7(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):nt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):Mt(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):nt(l)?i(l):n(l)}}const o7={name:"codeText",previous:u7,resolve:l7,tokenize:c7};function l7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function u7(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function c7(e,t,n){let r=0,i,o;return l;function l(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),r++,c):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(o=e.enter("codeTextSequence"),i=0,m(p)):nt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(p))}function f(p){return p===null||p===32||p===96||nt(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),f)}function m(p){return p===96?(e.consume(p),i++,m):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",f(p))}}class d7{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&uc(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),uc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),uc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);uc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);uc(this.left,n.reverse())}}}function uc(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function gC(e){const t={};let n=-1,r,i,o,l,c,d,f;const m=new d7(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,f7(m,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=m.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...m.get(i)[1].start},c=m.slice(i,n),c.unshift(r),m.splice(i,n-i+1,c))}}return Zr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!f}function f7(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,d=[],f={};let m,p,E=-1,_=n,v=0,S=0;const A=[S];for(;_;){for(;e.get(++i)[1]!==_;);o.push(i),_._tokenizer||(m=r.sliceStream(_),_.next||m.push(null),p&&l.defineSkip(_.start),_._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(m),_._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),p=_,_=_.next}for(_=n;++E<c.length;)c[E][0]==="exit"&&c[E-1][0]==="enter"&&c[E][1].type===c[E-1][1].type&&c[E][1].start.line!==c[E][1].end.line&&(S=E+1,A.push(S),_._tokenizer=void 0,_.previous=void 0,_=_.next);for(l.events=[],_?(_._tokenizer=void 0,_.previous=void 0):A.pop(),E=A.length;E--;){const x=c.slice(A[E],A[E+1]),O=o.pop();d.push([O,O+x.length-1]),e.splice(O,2,x)}for(d.reverse(),E=-1;++E<d.length;)f[v+d[E][0]]=v+d[E][1],v+=d[E][1]-d[E][0]-1;return f}const h7={resolve:p7,tokenize:g7},m7={partial:!0,tokenize:b7};function p7(e){return gC(e),e}function g7(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(c)}function i(c){return c===null?o(c):nt(c)?e.check(m7,l,o)(c):(e.consume(c),i)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function b7(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Mt(e,o,"linePrefix")}function o(l){if(l===null||nt(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function bC(e,t,n,r,i,o,l,c,d){const f=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),E):x===null||x===32||x===41||bh(x)?n(x):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(x))}function E(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),_(x))}function _(x){return x===62?(e.exit("chunkString"),e.exit(c),E(x)):x===null||x===60||nt(x)?n(x):(e.consume(x),x===92?v:_)}function v(x){return x===60||x===62||x===92?(e.consume(x),_):_(x)}function S(x){return!m&&(x===null||x===41||Qt(x))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(x)):m<f&&x===40?(e.consume(x),m++,S):x===41?(e.consume(x),m--,S):x===null||x===32||x===40||bh(x)?n(x):(e.consume(x),x===92?A:S)}function A(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function EC(e,t,n,r,i,o){const l=this;let c=0,d;return f;function f(_){return e.enter(r),e.enter(i),e.consume(_),e.exit(i),e.enter(o),m}function m(_){return c>999||_===null||_===91||_===93&&!d||_===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(_):_===93?(e.exit(o),e.enter(i),e.consume(_),e.exit(i),e.exit(r),t):nt(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||_===91||_===93||nt(_)||c++>999?(e.exit("chunkString"),m(_)):(e.consume(_),d||(d=!Ct(_)),_===92?E:p)}function E(_){return _===91||_===92||_===93?(e.consume(_),c++,p):p(_)}}function yC(e,t,n,r,i,o){let l;return c;function c(E){return E===34||E===39||E===40?(e.enter(r),e.enter(i),e.consume(E),e.exit(i),l=E===40?41:E,d):n(E)}function d(E){return E===l?(e.enter(i),e.consume(E),e.exit(i),e.exit(r),t):(e.enter(o),f(E))}function f(E){return E===l?(e.exit(o),d(l)):E===null?n(E):nt(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Mt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===l||E===null||nt(E)?(e.exit("chunkString"),f(E)):(e.consume(E),E===92?p:m)}function p(E){return E===l||E===92?(e.consume(E),m):m(E)}}function Ec(e,t){let n;return r;function r(i){return nt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ct(i)?Mt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const E7={name:"definition",tokenize:_7},y7={partial:!0,tokenize:T7};function _7(e,t,n){const r=this;let i;return o;function o(_){return e.enter("definition"),l(_)}function l(_){return EC.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function c(_){return i=Ia(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),d):n(_)}function d(_){return Qt(_)?Ec(e,f)(_):f(_)}function f(_){return bC(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function m(_){return e.attempt(y7,p,p)(_)}function p(_){return Ct(_)?Mt(e,E,"whitespace")(_):E(_)}function E(_){return _===null||nt(_)?(e.exit("definition"),r.parser.defined.push(i),t(_)):n(_)}}function T7(e,t,n){return r;function r(c){return Qt(c)?Ec(e,i)(c):n(c)}function i(c){return yC(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return Ct(c)?Mt(e,l,"whitespace")(c):l(c)}function l(c){return c===null||nt(c)?t(c):n(c)}}const x7={name:"hardBreakEscape",tokenize:v7};function v7(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return nt(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const S7={name:"headingAtx",resolve:N7,tokenize:A7};function N7(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Zr(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function A7(e,t,n){let r=0;return i;function i(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&r++<6?(e.consume(m),l):m===null||Qt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||nt(m)?(e.exit("atxHeading"),t(m)):Ct(m)?Mt(e,c,"whitespace")(m):(e.enter("atxHeadingText"),f(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function f(m){return m===null||m===35||Qt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),f)}}const w7=["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"],Zv=["pre","script","style","textarea"],C7={concrete:!0,name:"htmlFlow",resolveTo:k7,tokenize:L7},R7={partial:!0,tokenize:D7},O7={partial:!0,tokenize:I7};function k7(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function L7(e,t,n){const r=this;let i,o,l,c,d;return f;function f(I){return m(I)}function m(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),p}function p(I){return I===33?(e.consume(I),E):I===47?(e.consume(I),o=!0,S):I===63?(e.consume(I),i=3,r.interrupt?t:R):br(I)?(e.consume(I),l=String.fromCharCode(I),A):n(I)}function E(I){return I===45?(e.consume(I),i=2,_):I===91?(e.consume(I),i=5,c=0,v):br(I)?(e.consume(I),i=4,r.interrupt?t:R):n(I)}function _(I){return I===45?(e.consume(I),r.interrupt?t:R):n(I)}function v(I){const ce="CDATA[";return I===ce.charCodeAt(c++)?(e.consume(I),c===ce.length?r.interrupt?t:X:v):n(I)}function S(I){return br(I)?(e.consume(I),l=String.fromCharCode(I),A):n(I)}function A(I){if(I===null||I===47||I===62||Qt(I)){const ce=I===47,Te=l.toLowerCase();return!ce&&!o&&Zv.includes(Te)?(i=1,r.interrupt?t(I):X(I)):w7.includes(l.toLowerCase())?(i=6,ce?(e.consume(I),x):r.interrupt?t(I):X(I)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):o?O(I):L(I))}return I===45||or(I)?(e.consume(I),l+=String.fromCharCode(I),A):n(I)}function x(I){return I===62?(e.consume(I),r.interrupt?t:X):n(I)}function O(I){return Ct(I)?(e.consume(I),O):M(I)}function L(I){return I===47?(e.consume(I),M):I===58||I===95||br(I)?(e.consume(I),B):Ct(I)?(e.consume(I),L):M(I)}function B(I){return I===45||I===46||I===58||I===95||or(I)?(e.consume(I),B):k(I)}function k(I){return I===61?(e.consume(I),w):Ct(I)?(e.consume(I),k):L(I)}function w(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),d=I,U):Ct(I)?(e.consume(I),w):j(I)}function U(I){return I===d?(e.consume(I),d=null,F):I===null||nt(I)?n(I):(e.consume(I),U)}function j(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Qt(I)?k(I):(e.consume(I),j)}function F(I){return I===47||I===62||Ct(I)?L(I):n(I)}function M(I){return I===62?(e.consume(I),J):n(I)}function J(I){return I===null||nt(I)?X(I):Ct(I)?(e.consume(I),J):n(I)}function X(I){return I===45&&i===2?(e.consume(I),Q):I===60&&i===1?(e.consume(I),be):I===62&&i===4?(e.consume(I),le):I===63&&i===3?(e.consume(I),R):I===93&&i===5?(e.consume(I),xe):nt(I)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(R7,te,V)(I)):I===null||nt(I)?(e.exit("htmlFlowData"),V(I)):(e.consume(I),X)}function V(I){return e.check(O7,ne,te)(I)}function ne(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ae}function ae(I){return I===null||nt(I)?V(I):(e.enter("htmlFlowData"),X(I))}function Q(I){return I===45?(e.consume(I),R):X(I)}function be(I){return I===47?(e.consume(I),l="",K):X(I)}function K(I){if(I===62){const ce=l.toLowerCase();return Zv.includes(ce)?(e.consume(I),le):X(I)}return br(I)&&l.length<8?(e.consume(I),l+=String.fromCharCode(I),K):X(I)}function xe(I){return I===93?(e.consume(I),R):X(I)}function R(I){return I===62?(e.consume(I),le):I===45&&i===2?(e.consume(I),R):X(I)}function le(I){return I===null||nt(I)?(e.exit("htmlFlowData"),te(I)):(e.consume(I),le)}function te(I){return e.exit("htmlFlow"),t(I)}}function I7(e,t,n){const r=this;return i;function i(l){return nt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function D7(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Jc,t,n)}}const M7={name:"htmlText",tokenize:P7};function P7(e,t,n){const r=this;let i,o,l;return c;function c(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),k):R===63?(e.consume(R),L):br(R)?(e.consume(R),j):n(R)}function f(R){return R===45?(e.consume(R),m):R===91?(e.consume(R),o=0,v):br(R)?(e.consume(R),O):n(R)}function m(R){return R===45?(e.consume(R),_):n(R)}function p(R){return R===null?n(R):R===45?(e.consume(R),E):nt(R)?(l=p,be(R)):(e.consume(R),p)}function E(R){return R===45?(e.consume(R),_):p(R)}function _(R){return R===62?Q(R):R===45?E(R):p(R)}function v(R){const le="CDATA[";return R===le.charCodeAt(o++)?(e.consume(R),o===le.length?S:v):n(R)}function S(R){return R===null?n(R):R===93?(e.consume(R),A):nt(R)?(l=S,be(R)):(e.consume(R),S)}function A(R){return R===93?(e.consume(R),x):S(R)}function x(R){return R===62?Q(R):R===93?(e.consume(R),x):S(R)}function O(R){return R===null||R===62?Q(R):nt(R)?(l=O,be(R)):(e.consume(R),O)}function L(R){return R===null?n(R):R===63?(e.consume(R),B):nt(R)?(l=L,be(R)):(e.consume(R),L)}function B(R){return R===62?Q(R):L(R)}function k(R){return br(R)?(e.consume(R),w):n(R)}function w(R){return R===45||or(R)?(e.consume(R),w):U(R)}function U(R){return nt(R)?(l=U,be(R)):Ct(R)?(e.consume(R),U):Q(R)}function j(R){return R===45||or(R)?(e.consume(R),j):R===47||R===62||Qt(R)?F(R):n(R)}function F(R){return R===47?(e.consume(R),Q):R===58||R===95||br(R)?(e.consume(R),M):nt(R)?(l=F,be(R)):Ct(R)?(e.consume(R),F):Q(R)}function M(R){return R===45||R===46||R===58||R===95||or(R)?(e.consume(R),M):J(R)}function J(R){return R===61?(e.consume(R),X):nt(R)?(l=J,be(R)):Ct(R)?(e.consume(R),J):F(R)}function X(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),i=R,V):nt(R)?(l=X,be(R)):Ct(R)?(e.consume(R),X):(e.consume(R),ne)}function V(R){return R===i?(e.consume(R),i=void 0,ae):R===null?n(R):nt(R)?(l=V,be(R)):(e.consume(R),V)}function ne(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||Qt(R)?F(R):(e.consume(R),ne)}function ae(R){return R===47||R===62||Qt(R)?F(R):n(R)}function Q(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function be(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),K}function K(R){return Ct(R)?Mt(e,xe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):xe(R)}function xe(R){return e.enter("htmlTextData"),l(R)}}const KE={name:"labelEnd",resolveAll:H7,resolveTo:j7,tokenize:z7},B7={tokenize:$7},U7={tokenize:q7},F7={tokenize:Y7};function H7(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Zr(e,0,e.length,n),e}function j7(e,t){let n=e.length,r=0,i,o,l,c;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const d={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},m={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=ma(c,e.slice(o+1,o+r+3)),c=ma(c,[["enter",m,t]]),c=ma(c,im(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),c=ma(c,[["exit",m,t],e[l-2],e[l-1],["exit",f,t]]),c=ma(c,e.slice(l+1)),c=ma(c,[["exit",d,t]]),Zr(e,o,e.length,c),e}function z7(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return c;function c(E){return o?o._inactive?p(E):(l=r.parser.defined.includes(Ia(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(B7,m,l?m:p)(E):E===91?e.attempt(U7,m,l?f:p)(E):l?m(E):p(E)}function f(E){return e.attempt(F7,m,p)(E)}function m(E){return t(E)}function p(E){return o._balanced=!0,n(E)}}function $7(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return Qt(p)?Ec(e,o)(p):o(p)}function o(p){return p===41?m(p):bC(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function l(p){return Qt(p)?Ec(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?yC(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function f(p){return Qt(p)?Ec(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function q7(e,t,n){const r=this;return i;function i(c){return EC.call(r,e,o,l,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(Ia(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function Y7(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const G7={name:"labelStartImage",resolveAll:KE.resolveAll,tokenize:V7};function V7(e,t,n){const r=this;return i;function i(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),o}function o(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const K7={name:"labelStartLink",resolveAll:KE.resolveAll,tokenize:X7};function X7(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const s0={name:"lineEnding",tokenize:W7};function W7(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Mt(e,t,"linePrefix")}}const Vf={name:"thematicBreak",tokenize:Q7};function Q7(e,t,n){let r=0,i;return o;function o(f){return e.enter("thematicBreak"),l(f)}function l(f){return i=f,c(f)}function c(f){return f===i?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||nt(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===i?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),Ct(f)?Mt(e,c,"whitespace")(f):c(f))}}const Nr={continuation:{tokenize:tH},exit:rH,name:"list",tokenize:eH},Z7={partial:!0,tokenize:aH},J7={partial:!0,tokenize:nH};function eH(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return c;function c(_){const v=r.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||_===r.containerState.marker:Nb(_)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(Vf,n,f)(_):f(_);if(!r.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(_)}return n(_)}function d(_){return Nb(_)&&++l<10?(e.consume(_),d):(!r.interrupt||l<2)&&(r.containerState.marker?_===r.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),f(_)):n(_)}function f(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||_,e.check(Jc,r.interrupt?n:m,e.attempt(Z7,E,p))}function m(_){return r.containerState.initialBlankLine=!0,o++,E(_)}function p(_){return Ct(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),E):n(_)}function E(_){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(_)}}function tH(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Jc,i,o);function i(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Mt(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!Ct(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(J7,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Mt(e,e.attempt(Nr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function nH(e,t,n){const r=this;return Mt(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function rH(e){e.exit(this.containerState.type)}function aH(e,t,n){const r=this;return Mt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!Ct(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Jv={name:"setextUnderline",resolveTo:iH,tokenize:sH};function iH(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function sH(e,t,n){const r=this;let i;return o;function o(f){let m=r.events.length,p;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){p=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===i?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),Ct(f)?Mt(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||nt(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const oH={tokenize:lH};function lH(e){const t=this,n=e.attempt(Jc,r,e.attempt(this.parser.constructs.flowInitial,i,Mt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(h7,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const uH={resolveAll:TC()},cH=_C("string"),dH=_C("text");function _C(e){return{resolveAll:TC(e==="text"?fH:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,c);return l;function l(m){return f(m)?o(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return f(m)?(n.exit("data"),o(m)):(n.consume(m),d)}function f(m){if(m===null)return!0;const p=i[m];let E=-1;if(p)for(;++E<p.length;){const _=p[E];if(!_.previous||_.previous.call(r,r.previous))return!0}return!1}}}function TC(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function fH(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,c=0,d;for(;o--;){const f=i[o];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(f===-2)d=!0,c++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const hH={42:Nr,43:Nr,45:Nr,48:Nr,49:Nr,50:Nr,51:Nr,52:Nr,53:Nr,54:Nr,55:Nr,56:Nr,57:Nr,62:hC},mH={91:E7},pH={[-2]:i0,[-1]:i0,32:i0},gH={35:S7,42:Vf,45:[Jv,Vf],60:C7,61:Jv,95:Vf,96:Qv,126:Qv},bH={38:pC,92:mC},EH={[-5]:s0,[-4]:s0,[-3]:s0,33:G7,38:pC,42:Ab,60:[KF,M7],91:K7,92:[x7,mC],93:KE,95:Ab,96:o7},yH={null:[Ab,uH]},_H={null:[42,95]},TH={null:[]},xH=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:_H,contentInitial:mH,disable:TH,document:hH,flow:gH,flowInitial:pH,insideSpan:yH,string:bH,text:EH},Symbol.toStringTag,{value:"Module"}));function vH(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],c=[];const d={attempt:U(k),check:U(w),consume:O,enter:L,exit:B,interrupt:U(w,{interrupt:!0})},f={code:null,containerState:{},defineSkip:S,events:[],now:v,parser:e,previous:null,sliceSerialize:E,sliceStream:_,write:p};let m=t.tokenize.call(f,d);return t.resolveAll&&o.push(t),f;function p(J){return l=ma(l,J),A(),l[l.length-1]!==null?[]:(j(t,0),f.events=im(o,f.events,f),f.events)}function E(J,X){return NH(_(J),X)}function _(J){return SH(l,J)}function v(){const{_bufferIndex:J,_index:X,line:V,column:ne,offset:ae}=r;return{_bufferIndex:J,_index:X,line:V,column:ne,offset:ae}}function S(J){i[J.line]=J.column,M()}function A(){let J;for(;r._index<l.length;){const X=l[r._index];if(typeof X=="string")for(J=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===J&&r._bufferIndex<X.length;)x(X.charCodeAt(r._bufferIndex));else x(X)}}function x(J){m=m(J)}function O(J){nt(J)?(r.line++,r.column=1,r.offset+=J===-3?2:1,M()):J!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=J}function L(J,X){const V=X||{};return V.type=J,V.start=v(),f.events.push(["enter",V,f]),c.push(V),V}function B(J){const X=c.pop();return X.end=v(),f.events.push(["exit",X,f]),X}function k(J,X){j(J,X.from)}function w(J,X){X.restore()}function U(J,X){return V;function V(ne,ae,Q){let be,K,xe,R;return Array.isArray(ne)?te(ne):"tokenize"in ne?te([ne]):le(ne);function le(ve){return Pe;function Pe(je){const Ze=je!==null&&ve[je],Ue=je!==null&&ve.null,Pt=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return te(Pt)(je)}}function te(ve){return be=ve,K=0,ve.length===0?Q:I(ve[K])}function I(ve){return Pe;function Pe(je){return R=F(),xe=ve,ve.partial||(f.currentConstruct=ve),ve.name&&f.parser.constructs.disable.null.includes(ve.name)?Te():ve.tokenize.call(X?Object.assign(Object.create(f),X):f,d,ce,Te)(je)}}function ce(ve){return J(xe,R),ae}function Te(ve){return R.restore(),++K<be.length?I(be[K]):Q}}}function j(J,X){J.resolveAll&&!o.includes(J)&&o.push(J),J.resolve&&Zr(f.events,X,f.events.length-X,J.resolve(f.events.slice(X),f)),J.resolveTo&&(f.events=J.resolveTo(f.events,f))}function F(){const J=v(),X=f.previous,V=f.currentConstruct,ne=f.events.length,ae=Array.from(c);return{from:ne,restore:Q};function Q(){r=J,f.previous=X,f.currentConstruct=V,f.events.length=ne,c=ae,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function SH(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function NH(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
272
- `;break}case-3:{l=`\r
273
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function AH(e){const r={constructs:dC([xH,...(e||{}).extensions||[]]),content:i(jF),defined:[],document:i($F),flow:i(oH),lazy:{},string:i(cH),text:i(dH)};return r;function i(o){return l;function l(c){return vH(r,o,c)}}}function wH(e){for(;!gC(e););return e}const eS=/[\0\t\n\r]/g;function CH(){let e=1,t="",n=!0,r;return i;function i(o,l,c){const d=[];let f,m,p,E,_;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(eS.lastIndex=p,f=eS.exec(o),E=f&&f.index!==void 0?f.index:o.length,_=o.charCodeAt(E),!f){t=o.slice(p);break}if(_===10&&p===E&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),p<E&&(d.push(o.slice(p,E)),e+=E-p),_){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}p=E+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const RH=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function OH(e){return e.replace(RH,kH)}function kH(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return fC(n.slice(o?2:1),o?16:10)}return VE(n)||e}const xC={}.hasOwnProperty;function LH(e,t,n){return typeof t!="string"&&(n=t,t=void 0),IH(n)(wH(AH(n).document().write(CH()(e,t,!0))))}function IH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Qn),autolinkProtocol:F,autolinkEmail:F,atxHeading:o(dr),blockQuote:o(Ue),characterEscape:F,characterReference:F,codeFenced:o(Pt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Pt,l),codeText:o(mn,l),codeTextData:F,data:F,codeFlowValue:F,definition:o(pn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Tn),hardBreakEscape:o(mt),hardBreakTrailing:o(mt),htmlFlow:o(zn,l),htmlFlowData:F,htmlText:o(zn,l),htmlTextData:F,image:o($n),label:l,link:o(Qn),listItem:o(ui),listItemValue:E,listOrdered:o(Na,p),listUnordered:o(Na),paragraph:o(Ir),reference:I,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(dr),strong:o(ta),thematicBreak:o(Ha)},exit:{atxHeading:d(),atxHeadingSequence:k,autolink:d(),autolinkEmail:Ze,autolinkProtocol:je,blockQuote:d(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ve,characterReference:Pe,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:_,codeFencedFenceMeta:v,codeFlowValue:M,codeIndented:d(x),codeText:d(ae),codeTextData:M,data:M,definition:d(),definitionDestinationString:B,definitionLabelString:O,definitionTitleString:L,emphasis:d(),hardBreakEscape:d(X),hardBreakTrailing:d(X),htmlFlow:d(V),htmlFlowData:M,htmlText:d(ne),htmlTextData:M,image:d(be),label:xe,labelText:K,lineEnding:J,link:d(Q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ce,resourceDestinationString:R,resourceTitleString:le,resource:te,setextHeading:d(j),setextHeadingLineSequence:U,setextHeadingText:w,strong:d(),thematicBreak:d()}};vC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(de){let Ae={type:"root",children:[]};const tt={stack:[Ae],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:m,data:n},ht=[];let It=-1;for(;++It<de.length;)if(de[It][1].type==="listOrdered"||de[It][1].type==="listUnordered")if(de[It][0]==="enter")ht.push(It);else{const ln=ht.pop();It=i(de,ln,It)}for(It=-1;++It<de.length;){const ln=t[de[It][0]];xC.call(ln,de[It][1].type)&&ln[de[It][1].type].call(Object.assign({sliceSerialize:de[It][2].sliceSerialize},tt),de[It][1])}if(tt.tokenStack.length>0){const ln=tt.tokenStack[tt.tokenStack.length-1];(ln[1]||tS).call(tt,void 0,ln[0])}for(Ae.position={start:fs(de.length>0?de[0][1].start:{line:1,column:1,offset:0}),end:fs(de.length>0?de[de.length-2][1].end:{line:1,column:1,offset:0})},It=-1;++It<t.transforms.length;)Ae=t.transforms[It](Ae)||Ae;return Ae}function i(de,Ae,tt){let ht=Ae-1,It=-1,ln=!1,yr,Nn,on,Aa;for(;++ht<=tt;){const Kt=de[ht];switch(Kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Kt[0]==="enter"?It++:It--,Aa=void 0;break}case"lineEndingBlank":{Kt[0]==="enter"&&(yr&&!Aa&&!It&&!on&&(on=ht),Aa=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Aa=void 0}if(!It&&Kt[0]==="enter"&&Kt[1].type==="listItemPrefix"||It===-1&&Kt[0]==="exit"&&(Kt[1].type==="listUnordered"||Kt[1].type==="listOrdered")){if(yr){let Xt=ht;for(Nn=void 0;Xt--;){const qn=de[Xt];if(qn[1].type==="lineEnding"||qn[1].type==="lineEndingBlank"){if(qn[0]==="exit")continue;Nn&&(de[Nn][1].type="lineEndingBlank",ln=!0),qn[1].type="lineEnding",Nn=Xt}else if(!(qn[1].type==="linePrefix"||qn[1].type==="blockQuotePrefix"||qn[1].type==="blockQuotePrefixWhitespace"||qn[1].type==="blockQuoteMarker"||qn[1].type==="listItemIndent"))break}on&&(!Nn||on<Nn)&&(yr._spread=!0),yr.end=Object.assign({},Nn?de[Nn][1].start:Kt[1].end),de.splice(Nn||ht,0,["exit",yr,Kt[2]]),ht++,tt++}if(Kt[1].type==="listItemPrefix"){const Xt={type:"listItem",_spread:!1,start:Object.assign({},Kt[1].start),end:void 0};yr=Xt,de.splice(ht,0,["enter",Xt,Kt[2]]),ht++,tt++,on=void 0,Aa=!0}}}return de[Ae][1]._spread=ln,tt}function o(de,Ae){return tt;function tt(ht){c.call(this,de(ht),ht),Ae&&Ae.call(this,ht)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(de,Ae,tt){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([Ae,tt||void 0]),de.position={start:fs(Ae.start),end:void 0}}function d(de){return Ae;function Ae(tt){de&&de.call(this,tt),f.call(this,tt)}}function f(de,Ae){const tt=this.stack.pop(),ht=this.tokenStack.pop();if(ht)ht[0].type!==de.type&&(Ae?Ae.call(this,de,ht[0]):(ht[1]||tS).call(this,de,ht[0]));else throw new Error("Cannot close `"+de.type+"` ("+bc({start:de.start,end:de.end})+"): it’s not open");tt.position.end=fs(de.end)}function m(){return GE(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function E(de){if(this.data.expectingFirstListItemValue){const Ae=this.stack[this.stack.length-2];Ae.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function _(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.lang=de}function v(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.meta=de}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.value=de.replace(/(\r?\n|\r)$/g,"")}function O(de){const Ae=this.resume(),tt=this.stack[this.stack.length-1];tt.label=Ae,tt.identifier=Ia(this.sliceSerialize(de)).toLowerCase()}function L(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.title=de}function B(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.url=de}function k(de){const Ae=this.stack[this.stack.length-1];if(!Ae.depth){const tt=this.sliceSerialize(de).length;Ae.depth=tt}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function U(de){const Ae=this.stack[this.stack.length-1];Ae.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function F(de){const tt=this.stack[this.stack.length-1].children;let ht=tt[tt.length-1];(!ht||ht.type!=="text")&&(ht=dn(),ht.position={start:fs(de.start),end:void 0},tt.push(ht)),this.stack.push(ht)}function M(de){const Ae=this.stack.pop();Ae.value+=this.sliceSerialize(de),Ae.position.end=fs(de.end)}function J(de){const Ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const tt=Ae.children[Ae.children.length-1];tt.position.end=fs(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ae.type)&&(F.call(this,de),M.call(this,de))}function X(){this.data.atHardBreak=!0}function V(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.value=de}function ne(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.value=de}function ae(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.value=de}function Q(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const Ae=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=Ae,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function be(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const Ae=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=Ae,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function K(de){const Ae=this.sliceSerialize(de),tt=this.stack[this.stack.length-2];tt.label=OH(Ae),tt.identifier=Ia(Ae).toLowerCase()}function xe(){const de=this.stack[this.stack.length-1],Ae=this.resume(),tt=this.stack[this.stack.length-1];if(this.data.inReference=!0,tt.type==="link"){const ht=de.children;tt.children=ht}else tt.alt=Ae}function R(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.url=de}function le(){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.title=de}function te(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function ce(de){const Ae=this.resume(),tt=this.stack[this.stack.length-1];tt.label=Ae,tt.identifier=Ia(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function Te(de){this.data.characterReferenceType=de.type}function ve(de){const Ae=this.sliceSerialize(de),tt=this.data.characterReferenceType;let ht;tt?(ht=fC(Ae,tt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ht=VE(Ae);const It=this.stack[this.stack.length-1];It.value+=ht}function Pe(de){const Ae=this.stack.pop();Ae.position.end=fs(de.end)}function je(de){M.call(this,de);const Ae=this.stack[this.stack.length-1];Ae.url=this.sliceSerialize(de)}function Ze(de){M.call(this,de);const Ae=this.stack[this.stack.length-1];Ae.url="mailto:"+this.sliceSerialize(de)}function Ue(){return{type:"blockquote",children:[]}}function Pt(){return{type:"code",lang:null,meta:null,value:""}}function mn(){return{type:"inlineCode",value:""}}function pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tn(){return{type:"emphasis",children:[]}}function dr(){return{type:"heading",depth:0,children:[]}}function mt(){return{type:"break"}}function zn(){return{type:"html",value:""}}function $n(){return{type:"image",title:null,url:"",alt:null}}function Qn(){return{type:"link",title:null,url:"",children:[]}}function Na(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function ui(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function Ir(){return{type:"paragraph",children:[]}}function ta(){return{type:"strong",children:[]}}function dn(){return{type:"text",value:""}}function Ha(){return{type:"thematicBreak"}}}function fs(e){return{line:e.line,column:e.column,offset:e.offset}}function vC(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vC(e,r):DH(e,r)}}function DH(e,t){let n;for(n in t)if(xC.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function tS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bc({start:t.start,end:t.end})+") is still open")}function MH(e){const t=this;t.parser=n;function n(r){return LH(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function PH(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function BH(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
274
- `}]}function UH(e,t){const n=t.value?t.value+`
275
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function FH(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jH(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Jl(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function zH(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $H(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function SC(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function qH(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return SC(e,t);const i={src:Jl(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function YH(e,t){const n={src:Jl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function GH(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function VH(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return SC(e,t);const i={href:Jl(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function KH(e,t){const n={href:Jl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function XH(e,t,n){const r=e.all(t),i=n?WH(n):NC(t),o={},l=[];if(typeof t.checked=="boolean"){const m=r[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(i||c!==0||m.type!=="element"||m.tagName!=="p")&&l.push({type:"text",value:`
276
- `}),m.type==="element"&&m.tagName==="p"&&!i?l.push(...m.children):l.push(m)}const d=r[r.length-1];d&&(i||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
277
- `});const f={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,f),e.applyData(t,f)}function WH(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=NC(n[r])}return t}function NC(e){const t=e.spread;return t??e.children.length>1}function QH(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function ZH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JH(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ej(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tj(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=oi(t.children[1]),d=rm(t.children[t.children.length-1]);c&&d&&(l.position={start:c,end:d}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function nj(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,c=l?l.length:t.children.length;let d=-1;const f=[];for(;++d<c;){const p=t.children[d],E={},_=l?l[d]:void 0;_&&(E.align=_);let v={type:"element",tagName:o,properties:E,children:[]};p&&(v.children=e.all(p),e.patch(p,v),v=e.applyData(p,v)),f.push(v)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,m),e.applyData(t,m)}function rj(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const nS=9,rS=32;function aj(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(aS(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(aS(t.slice(i),i>0,!1)),o.join("")}function aS(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===nS||o===rS;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===nS||o===rS;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ij(e,t){const n={type:"text",value:aj(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sj(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const oj={blockquote:PH,break:BH,code:UH,delete:FH,emphasis:HH,footnoteReference:jH,heading:zH,html:$H,imageReference:qH,image:YH,inlineCode:GH,linkReference:VH,link:KH,listItem:XH,list:QH,paragraph:ZH,root:JH,strong:ej,table:tj,tableCell:rj,tableRow:nj,text:ij,thematicBreak:sj,toml:Nf,yaml:Nf,definition:Nf,footnoteDefinition:Nf};function Nf(){}const AC=-1,sm=0,yc=1,Eh=2,XE=3,WE=4,QE=5,ZE=6,wC=7,CC=8,iS=typeof self=="object"?self:globalThis,lj=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case sm:case AC:return n(l,i);case yc:{const c=n([],i);for(const d of l)c.push(r(d));return c}case Eh:{const c=n({},i);for(const[d,f]of l)c[r(d)]=r(f);return c}case XE:return n(new Date(l),i);case WE:{const{source:c,flags:d}=l;return n(new RegExp(c,d),i)}case QE:{const c=n(new Map,i);for(const[d,f]of l)c.set(r(d),r(f));return c}case ZE:{const c=n(new Set,i);for(const d of l)c.add(r(d));return c}case wC:{const{name:c,message:d}=l;return n(new iS[c](d),i)}case CC:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new iS[o](l),i)};return r},sS=e=>lj(new Map,e)(0),ml="",{toString:uj}={},{keys:cj}=Object,cc=e=>{const t=typeof e;if(t!=="object"||!e)return[sm,t];const n=uj.call(e).slice(8,-1);switch(n){case"Array":return[yc,ml];case"Object":return[Eh,ml];case"Date":return[XE,ml];case"RegExp":return[WE,ml];case"Map":return[QE,ml];case"Set":return[ZE,ml];case"DataView":return[yc,n]}return n.includes("Array")?[yc,n]:n.includes("Error")?[wC,n]:[Eh,n]},Af=([e,t])=>e===sm&&(t==="function"||t==="symbol"),dj=(e,t,n,r)=>{const i=(l,c)=>{const d=r.push(l)-1;return n.set(c,d),d},o=l=>{if(n.has(l))return n.get(l);let[c,d]=cc(l);switch(c){case sm:{let m=l;switch(d){case"bigint":c=CC,m=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return i([AC],l)}return i([c,m],l)}case yc:{if(d){let E=l;return d==="DataView"?E=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(l)),i([d,[...E]],l)}const m=[],p=i([c,m],l);for(const E of l)m.push(o(E));return p}case Eh:{if(d)switch(d){case"BigInt":return i([d,l.toString()],l);case"Boolean":case"Number":case"String":return i([d,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const m=[],p=i([c,m],l);for(const E of cj(l))(e||!Af(cc(l[E])))&&m.push([o(E),o(l[E])]);return p}case XE:return i([c,l.toISOString()],l);case WE:{const{source:m,flags:p}=l;return i([c,{source:m,flags:p}],l)}case QE:{const m=[],p=i([c,m],l);for(const[E,_]of l)(e||!(Af(cc(E))||Af(cc(_))))&&m.push([o(E),o(_)]);return p}case ZE:{const m=[],p=i([c,m],l);for(const E of l)(e||!Af(cc(E)))&&m.push(o(E));return p}}const{message:f}=l;return i([c,{name:d,message:f}],l)};return o},oS=(e,{json:t,lossy:n}={})=>{const r=[];return dj(!(t||n),!!t,new Map,r)(e),r},Fl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?sS(oS(e,t)):structuredClone(e):(e,t)=>sS(oS(e,t));function fj(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function hj(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function mj(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||fj,r=e.options.footnoteBackLabel||hj,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const m=e.all(f),p=String(f.identifier).toUpperCase(),E=Jl(p.toLowerCase());let _=0;const v=[],S=e.footnoteCounts.get(p);for(;S!==void 0&&++_<=S;){v.length>0&&v.push({type:"text",value:" "});let O=typeof n=="string"?n:n(d,_);typeof O=="string"&&(O={type:"text",value:O}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,_),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const O=A.children[A.children.length-1];O&&O.type==="text"?O.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...v)}else m.push(...v);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(m,!0)};e.patch(f,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Fl(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
278
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
279
- `}]}}const ed=function(e){if(e==null)return Ej;if(typeof e=="function")return om(e);if(typeof e=="object")return Array.isArray(e)?pj(e):gj(e);if(typeof e=="string")return bj(e);throw new Error("Expected function, string, or object as test")};function pj(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ed(e[n]);return om(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function gj(e){const t=e;return om(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function bj(e){return om(t);function t(n){return n&&n.type===e}}function om(e){return t;function t(n,r,i){return!!(yj(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ej(){return!0}function yj(e){return e!==null&&typeof e=="object"&&"type"in e}const RC=[],_j=!0,wb=!1,Tj="skip";function OC(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=ed(i),l=r?-1:1;c(e,void 0,[])();function c(d,f,m){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const _=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(_?"<"+_+">":""))+")"})}return E;function E(){let _=RC,v,S,A;if((!t||o(d,f,m[m.length-1]||void 0))&&(_=xj(n(d,m)),_[0]===wb))return _;if("children"in d&&d.children){const x=d;if(x.children&&_[0]!==Tj)for(S=(r?x.children.length:-1)+l,A=m.concat(x);S>-1&&S<x.children.length;){const O=x.children[S];if(v=c(O,S,A)(),v[0]===wb)return v;S=typeof v[1]=="number"?v[1]:S+l}}return _}}}function xj(e){return Array.isArray(e)?e:typeof e=="number"?[_j,e]:e==null?RC:[e]}function td(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),OC(e,o,c,i);function c(d,f){const m=f[f.length-1],p=m?m.children.indexOf(d):void 0;return l(d,p,m)}}const Cb={}.hasOwnProperty,vj={};function Sj(e,t){const n=t||vj,r=new Map,i=new Map,o=new Map,l={...oj,...n.handlers},c={all:f,applyData:Aj,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:d,options:n,patch:Nj,wrap:Cj};return td(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?r:i,E=String(m.identifier).toUpperCase();p.has(E)||p.set(E,m)}}),c;function d(m,p){const E=m.type,_=c.handlers[E];if(Cb.call(c.handlers,E)&&_)return _(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(E)){if("children"in m){const{children:S,...A}=m,x=Fl(A);return x.children=c.all(m),x}return Fl(m)}return(c.options.unknownHandler||wj)(c,m,p)}function f(m){const p=[];if("children"in m){const E=m.children;let _=-1;for(;++_<E.length;){const v=c.one(E[_],m);if(v){if(_&&E[_-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=lS(v.value)),!Array.isArray(v)&&v.type==="element")){const S=v.children[0];S&&S.type==="text"&&(S.value=lS(S.value))}Array.isArray(v)?p.push(...v):p.push(v)}}}return p}}function Nj(e,t){e.position&&(t.position=hF(e))}function Aj(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,Fl(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function wj(e,t){const n=t.data||{},r="value"in t&&!(Cb.call(n,"hProperties")||Cb.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Cj(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
280
- `});++r<e.length;)r&&n.push({type:"text",value:`
281
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
282
- `}),n}function lS(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function uS(e,t){const n=Sj(e,t),r=n.one(e,void 0),i=mj(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
283
- `},i),o}function Rj(e,t){return e&&"run"in e?async function(n,r){const i=uS(n,{file:r,...t});await e.run(i,r)}:function(n,r){return uS(n,{file:r,...e||t})}}function cS(e){if(e)throw e}var o0,dS;function Oj(){if(dS)return o0;dS=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),p=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!p)return!1;var E;for(E in f);return typeof E>"u"||e.call(f,E)},l=function(f,m){n&&m.name==="__proto__"?n(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},c=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(r)return r(f,m).value}else return;return f[m]};return o0=function d(){var f,m,p,E,_,v,S=arguments[0],A=1,x=arguments.length,O=!1;for(typeof S=="boolean"&&(O=S,S=arguments[1]||{},A=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});A<x;++A)if(f=arguments[A],f!=null)for(m in f)p=c(S,m),E=c(f,m),S!==E&&(O&&E&&(o(E)||(_=i(E)))?(_?(_=!1,v=p&&i(p)?p:[]):v=p&&o(p)?p:{},l(S,{name:m,newValue:d(O,v,E)})):typeof E<"u"&&l(S,{name:m,newValue:E}));return S},o0}var kj=Oj();const l0=zl(kj);function Rb(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lj(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...i);function c(d,...f){const m=e[++o];let p=-1;if(d){l(d);return}for(;++p<i.length;)(f[p]===null||f[p]===void 0)&&(f[p]=i[p]);i=f,m?Ij(m,c)(...f):l(null,...f)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Ij(e,t){let n;return r;function r(...l){const c=e.length>l.length;let d;c&&l.push(i);try{d=e.apply(this,l)}catch(f){const m=f;if(c&&n)throw m;return i(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(o,i):d instanceof Error?i(d):o(d))}function i(l,...c){n||(n=!0,t(l,...c))}function o(l){i(null,l)}}const Xa={basename:Dj,dirname:Mj,extname:Pj,join:Bj,sep:"/"};function Dj(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nd(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(r=i):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Mj(e){if(nd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Pj(e){nd(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Bj(...e){let t=-1,n;for(;++t<e.length;)nd(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Uj(n)}function Uj(e){nd(e);const t=e.codePointAt(0)===47;let n=Fj(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Fj(e,t){let n="",r=0,i=-1,o=0,l=-1,c,d;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else c===46&&o>-1?o++:o=-1}return n}function nd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Hj={cwd:jj};function jj(){return"/"}function Ob(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function zj(e){if(typeof e=="string")e=new URL(e);else if(!Ob(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return $j(e)}function $j(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const u0=["history","path","basename","stem","extname","dirname"];class kC{constructor(t){let n;t?Ob(t)?n={path:t}:typeof t=="string"||qj(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Hj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<u0.length;){const o=u0[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)u0.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Xa.basename(this.path):void 0}set basename(t){d0(t,"basename"),c0(t,"basename"),this.path=Xa.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xa.dirname(this.path):void 0}set dirname(t){fS(this.basename,"dirname"),this.path=Xa.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xa.extname(this.path):void 0}set extname(t){if(c0(t,"extname"),fS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xa.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ob(t)&&(t=zj(t)),d0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xa.basename(this.path,this.extname):void 0}set stem(t){d0(t,"stem"),c0(t,"stem"),this.path=Xa.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ur(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function c0(e,t){if(e&&e.includes(Xa.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xa.sep+"`")}function d0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function qj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Yj=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Gj={}.hasOwnProperty;class JE extends Yj{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=Lj()}copy(){const t=new JE;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(l0(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(m0("data",this.frozen),this.namespace[t]=n,this):Gj.call(this.namespace,t)&&this.namespace[t]||void 0:t?(m0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=wf(t),r=this.parser||this.Parser;return f0("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),f0("process",this.parser||this.Parser),h0("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const c=wf(t),d=r.parse(c);r.run(d,c,function(m,p,E){if(m||!p||!E)return f(m);const _=p,v=r.stringify(_,E);Xj(v)?E.value=v:E.result=v,f(m,E)});function f(m,p){m||!p?l(m):o?o(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),f0("processSync",this.parser||this.Parser),h0("processSync",this.compiler||this.Compiler),this.process(t,i),mS("processSync","process",n),r;function i(o,l){n=!0,cS(o),r=l}}run(t,n,r){hS(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,c){const d=wf(n);i.run(t,d,f);function f(m,p,E){const _=p||t;m?c(m):l?l(_):r(void 0,_,E)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),mS("runSync","run",r),i;function o(l,c){cS(l),i=c,r=!0}}stringify(t,n){this.freeze();const r=wf(n),i=this.compiler||this.Compiler;return h0("stringify",i),hS(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(m0("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[m,...p]=f;d(m,p)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))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");c(f.plugins),f.settings&&(i.settings=l0(!0,i.settings,f.settings))}function c(f){let m=-1;if(f!=null)if(Array.isArray(f))for(;++m<f.length;){const p=f[m];o(p)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,m){let p=-1,E=-1;for(;++p<r.length;)if(r[p][0]===f){E=p;break}if(E===-1)r.push([f,...m]);else if(m.length>0){let[_,...v]=m;const S=r[E][1];Rb(S)&&Rb(_)&&(_=l0(!0,S,_)),r[E]=[f,_,...v]}}}}const Vj=new JE().freeze();function f0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function h0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function m0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hS(e){if(!Rb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function mS(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wf(e){return Kj(e)?e:new kC(e)}function Kj(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Xj(e){return typeof e=="string"||Wj(e)}function Wj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Qj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pS=[],gS={allowDangerousHtml:!0},Zj=/^(https?|ircs?|mailto|xmpp)$/i,Jj=[{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 ez(e){const t=tz(e),n=nz(e);return rz(t.runSync(t.parse(n),n),e)}function tz(e){const t=e.rehypePlugins||pS,n=e.remarkPlugins||pS,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gS}:gS;return Vj().use(MH).use(n).use(Rj,r).use(t)}function nz(e){const t=e.children||"",n=new kC;return typeof t=="string"&&(n.value=t),n}function rz(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||az;for(const m of Jj)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+Qj+m.id,void 0);return td(e,f),EF(e,{Fragment:b.Fragment,components:i,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function f(m,p,E){if(m.type==="raw"&&E&&typeof p=="number")return l?E.children.splice(p,1):E.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let _;for(_ in a0)if(Object.hasOwn(a0,_)&&Object.hasOwn(m.properties,_)){const v=m.properties[_],S=a0[_];(S===null||S.includes(m.tagName))&&(m.properties[_]=d(String(v||""),_,m))}}if(m.type==="element"){let _=n?!n.includes(m.tagName):o?o.includes(m.tagName):!1;if(!_&&r&&typeof p=="number"&&(_=!r(m,p,E)),_&&E&&typeof p=="number")return c&&m.children?E.children.splice(p,1,...m.children):E.children.splice(p,1),p}}}function az(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Zj.test(e.slice(0,t))?e:""}const bS=function(e,t,n){const r=ed(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Ro=function(e){if(e==null)return oz;if(typeof e=="string")return sz(e);if(typeof e=="object")return iz(e);if(typeof e=="function")return ey(e);throw new Error("Expected function, string, or array as `test`")};function iz(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ro(e[n]);return ey(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function sz(e){return ey(t);function t(n){return n.tagName===e}}function ey(e){return t;function t(n,r,i){return!!(lz(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function oz(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function lz(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const ES=/\n/g,yS=/[\t ]+/g,kb=Ro("br"),_S=Ro(gz),uz=Ro("p"),TS=Ro("tr"),cz=Ro(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",pz,bz]),LC=Ro(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function dz(e,t){const n=t||{},r="children"in e?e.children:[],i=LC(e),o=MC(e,{whitespace:n.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...DC(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<r.length;)l.push(...IC(r[c],e,{whitespace:o,breakBefore:c?void 0:i,breakAfter:c<r.length-1?kb(r[c+1]):i}));const d=[];let f;for(c=-1;++c<l.length;){const m=l[c];typeof m=="number"?f!==void 0&&m>f&&(f=m):m&&(f!==void 0&&f>-1&&d.push(`
284
- `.repeat(f)||" "),f=-1,d.push(m))}return d.join("")}function IC(e,t,n){return e.type==="element"?fz(e,t,n):e.type==="text"?n.whitespace==="normal"?DC(e,n):hz(e):[]}function fz(e,t,n){const r=MC(e,n),i=e.children||[];let o=-1,l=[];if(cz(e))return l;let c,d;for(kb(e)||TS(e)&&bS(t,e,TS)?d=`
285
- `:uz(e)?(c=2,d=2):LC(e)&&(c=1,d=1);++o<i.length;)l=l.concat(IC(i[o],e,{whitespace:r,breakBefore:o?void 0:c,breakAfter:o<i.length-1?kb(i[o+1]):d}));return _S(e)&&bS(t,e,_S)&&l.push(" "),c&&l.unshift(c),d&&l.push(d),l}function DC(e,t){const n=String(e.value),r=[],i=[];let o=0;for(;o<=n.length;){ES.lastIndex=o;const d=ES.exec(n),f=d&&"index"in d?d.index:n.length;r.push(mz(n.slice(o,f).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,f===n.length?t.breakAfter:!0)),o=f+1}let l=-1,c;for(;++l<r.length;)r[l].charCodeAt(r[l].length-1)===8203||l<r.length-1&&r[l+1].charCodeAt(0)===8203?(i.push(r[l]),c=void 0):r[l]?(typeof c=="number"&&i.push(c),i.push(r[l]),c=0):(l===0||l===r.length-1)&&i.push(0);return i}function hz(e){return[String(e.value)]}function mz(e,t,n){const r=[];let i=0,o;for(;i<e.length;){yS.lastIndex=i;const l=yS.exec(e);o=l?l.index:e.length,!i&&!o&&l&&!t&&r.push(""),i!==o&&r.push(e.slice(i,o)),i=l?o+l[0].length:o}return i!==o&&!n&&r.push(""),r.join(" ")}function MC(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function pz(e){return!!(e.properties||{}).hidden}function gz(e){return e.tagName==="td"||e.tagName==="th"}function bz(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function Ez(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",l="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},_=t.optional(i)+e.IDENT_RE+"\\s*\\(",v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],S=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],B={type:S,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},k={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[k,p,c,n,e.C_BLOCK_COMMENT_MODE,m,f],U={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:w.concat([{begin:/\(/,end:/\)/,keywords:B,contains:w.concat(["self"]),relevance:0}]),relevance:0},j={className:"function",begin:"("+l+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:B,relevance:0},{begin:_,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(U,j,k,w,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:B,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function yz(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Ez(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function _z(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(c);const d={match:/\\"/},f={className:"string",begin:/'/,end:/'/},m={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),v={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},S=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],x={match:/(\/[a-z._-]+)+/},O=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],L=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],B=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],k=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:S,literal:A,built_in:[...O,...L,"set","shopt",...B,...k]},contains:[_,e.SHEBANG(),v,p,o,l,x,c,d,f,m,n]}}function Tz(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",l="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},_=t.optional(i)+e.IDENT_RE+"\\s*\\(",A={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},x=[p,c,n,e.C_BLOCK_COMMENT_MODE,m,f],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:x.concat([{begin:/\(/,end:/\)/,keywords:A,contains:x.concat(["self"]),relevance:0}]),relevance:0},L={begin:"("+l+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:A,relevance:0},{begin:_,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:A,disableAutodetect:!0,illegal:"</",contains:[].concat(O,L,x,[p,{begin:e.IDENT_RE+"::",keywords:A},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:f,keywords:A}}}function xz(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",l="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},_=t.optional(i)+e.IDENT_RE+"\\s*\\(",v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],S=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],B={type:S,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},k={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[k,p,c,n,e.C_BLOCK_COMMENT_MODE,m,f],U={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:w.concat([{begin:/\(/,end:/\)/,keywords:B,contains:w.concat(["self"]),relevance:0}]),relevance:0},j={className:"function",begin:"("+l+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:B,relevance:0},{begin:_,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,f,m,c,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,f,m,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(U,j,k,w,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:B,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function vz(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],l={keyword:i.concat(o),built_in:t,literal:r},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(m,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:l},_=e.inherit(E,{illegal:/\n/}),v={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},A=e.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});E.contains=[S,v,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],_.contains=[A,v,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[f,S,v,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},O={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},L=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",B={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:l,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,O,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,O,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+L+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:l,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,O],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,relevance:0,contains:[x,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},B]}}const Sz=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Nz=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Az=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],wz=[...Nz,...Az],Cz=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Rz=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Oz=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),kz=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Lz(e){const t=e.regex,n=Sz(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",c=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Rz.join("|")+")"},{begin:":(:)?("+Oz.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+kz.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...c,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...c,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Cz.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...c,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+wz.join("|")+")\\b"}]}}function Iz(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Dz(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}function Mz(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function Pz(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[r,o,i,l,n,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,f=/"(\\"|[^"])*"/,m=/'[^']*'/,p=t.either(d,f,m),E=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[r,c,o,i,l,n]}}]}}var yl="[0-9](_*[0-9])*",Cf=`\\.(${yl})`,Rf="[0-9a-fA-F](_*[0-9a-fA-F])*",xS={className:"number",variants:[{begin:`(\\b(${yl})((${Cf})|\\.)?|(${Cf}))[eE][+-]?(${yl})[fFdD]?\\b`},{begin:`\\b(${yl})((${Cf})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Cf})[fFdD]?\\b`},{begin:`\\b(${yl})[fFdD]\\b`},{begin:`\\b0[xX]((${Rf})\\.?|(${Rf})?\\.(${Rf}))[pP][+-]?(${yl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Rf})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function PC(e,t,n){return n===-1?"":e.replace(t,r=>PC(e,t,n-1))}function Bz(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+PC("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),d={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},f={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},m={className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:d,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:d,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,xS,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},xS,f]}}const vS="[A-Za-z$_][0-9A-Za-z$_]*",Uz=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Fz=["true","false","null","undefined","NaN","Infinity"],BC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],UC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],FC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Hz=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],jz=[].concat(FC,BC,UC);function zz(e){const t=e.regex,n=(K,{after:xe})=>{const R="</"+K[0].slice(1);return K.input.indexOf(R,xe)!==-1},r=vS,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,xe)=>{const R=K[0].length+K.index,le=K.input[R];if(le==="<"||le===","){xe.ignoreMatch();return}le===">"&&(n(K,{after:R})||xe.ignoreMatch());let te;const I=K.input.substring(R);if(te=I.match(/^\s*=/)){xe.ignoreMatch();return}if((te=I.match(/^\s+extends\s+/))&&te.index===0){xe.ignoreMatch();return}}},c={$pattern:vS,keyword:Uz,literal:Fz,built_in:jz,"variable.language":Hz},d="[0-9](_?[0-9])*",f=`\\.(${d})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${m})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},S={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},O={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},L=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,S,A,{match:/\$\d+/},p];E.contains=L.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(L)});const B=[].concat(O,E.contains),k=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(B)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:k},U={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},j={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...BC,...UC]}},F={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},J={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function X(K){return t.concat("(?!",K.join("|"),")")}const V={match:t.concat(/\b/,X([...FC,"super","import"].map(K=>`${K}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},ne={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",be={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:j},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),F,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,S,A,O,{match:/\$\d+/},p,j,{scope:"attr",match:r+t.lookahead(":"),relevance:0},be,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,e.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},ne,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},V,J,U,ae,{match:/\$[(.]/}]}}function $z(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var _l="[0-9](_*[0-9])*",Of=`\\.(${_l})`,kf="[0-9a-fA-F](_*[0-9a-fA-F])*",qz={className:"number",variants:[{begin:`(\\b(${_l})((${Of})|\\.)?|(${Of}))[eE][+-]?(${_l})[fFdD]?\\b`},{begin:`\\b(${_l})((${Of})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Of})[fFdD]?\\b`},{begin:`\\b(${_l})[fFdD]\\b`},{begin:`\\b0[xX]((${kf})\\.?|(${kf})?\\.(${kf}))[pP][+-]?(${_l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${kf})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Yz(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},l={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(l);const c={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},d={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(l,{className:"string"}),"self"]}]},f=qz,m=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=p;return E.variants[1].contains=[p],p.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,m,n,r,c,d,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[p,e.C_LINE_COMMENT_MODE,m],relevance:0},e.C_LINE_COMMENT_MODE,m,c,d,l,e.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,d]},l,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
286
- `},f]}}const Gz=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Vz=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Kz=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Xz=[...Vz,...Kz],Wz=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),HC=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),jC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Qz=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Zz=HC.concat(jC).sort().reverse();function Jz(e){const t=Gz(e),n=Zz,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",l=[],c=[],d=function(L){return{className:"string",begin:"~?"+L+".*?"+L}},f=function(L,B,k){return{className:L,begin:B,relevance:k}},m={$pattern:/[a-z-]+/,keyword:r,attribute:Wz.join(" ")},p={begin:"\\(",end:"\\)",contains:c,keywords:m,relevance:0};c.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d("'"),d('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,p,f("variable","@@?"+i,10),f("variable","@\\{"+i+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const E=c.concat({begin:/\{/,end:/\}/,contains:l}),_={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(c)},v={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Qz.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:c}}]},S={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:m,returnEnd:!0,contains:c,relevance:0}},A={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:E}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,f("keyword","all\\b"),f("variable","@\\{"+i+"\\}"),{begin:"\\b("+Xz.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,f("selector-tag",o,0),f("selector-id","#"+o),f("selector-class","\\."+o,0),f("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+HC.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+jC.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:E},{begin:"!important"},t.FUNCTION_DISPATCH]},O={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[x]};return l.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,S,A,O,v,x,_,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:l}}function e$(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function t$(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,l]}}function n$(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},l={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},f={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(f,{contains:[]}),E=e.inherit(m,{contains:[]});f.contains.push(E),m.contains.push(p);let _=[n,d];return[f,m,p,E].forEach(x=>{x.contains=x.contains.concat(_)}),_=_.concat(f,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},n,o,f,m,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},i,r,d,l,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function r$(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function a$(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},l={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},f={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},m=[e.BACKSLASH_ESCAPE,o,d],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(S,A,x="\\1")=>{const O=x==="\\1"?x:t.concat(x,A);return t.concat(t.concat("(?:",S,")"),A,/(?:\\.|[^\\\/])*?/,O,/(?:\\.|[^\\\/])*?/,x,r)},_=(S,A,x)=>t.concat(t.concat("(?:",S,")"),A,/(?:\\.|[^\\\/])*?/,x,r),v=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),l,{className:"string",contains:m,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},f,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",t.either(...p,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",t.either(...p,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,f]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=v,l.contains=v,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:v}}function i$(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),l={scope:"variable",match:"\\$+"+r},c={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},d={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},f=e.inherit(e.APOS_STRING_MODE,{illegal:null}),m=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(d)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(d),"on:begin":(ne,ae)=>{ae.data._beginMatch=ne[1]||ne[2]},"on:end":(ne,ae)=>{ae.data._beginMatch!==ne[1]&&ae.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
287
- ]`,v={scope:"string",variants:[m,f,p,E]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},A=["false","null","true"],x=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],O=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],B={keyword:x,literal:(ne=>{const ae=[];return ne.forEach(Q=>{ae.push(Q),Q.toLowerCase()===Q?ae.push(Q.toUpperCase()):ae.push(Q.toLowerCase())}),ae})(A),built_in:O},k=ne=>ne.map(ae=>ae.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(_,"+"),t.concat("(?!",k(O).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},U=t.concat(r,"\\b(?!\\()"),j={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),U],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),U],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},F={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:B,contains:[F,l,j,e.C_BLOCK_COMMENT_MODE,v,S,w]},J={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",k(x).join("\\b|"),"|",k(O).join("\\b|"),"\\b)"),r,t.concat(_,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push(J);const X=[F,j,e.C_BLOCK_COMMENT_MODE,v,S,w],V={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...X]},...X,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:B,contains:[V,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},c,{scope:"variable.language",match:/\$this\b/},l,J,j,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:B,contains:["self",V,l,j,e.C_BLOCK_COMMENT_MODE,v,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},v,S]}}function s$(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function o$(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function l$(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},m={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,m,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,m,f]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,m,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,m,f]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",_=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,v=`\\b|${r.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${_}))[eE][+-]?(${E})[jJ]?(?=${v})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${v})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${v})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`},{begin:`\\b(${E})[jJ](?=${v})`}]},A={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},x={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",d,S,p,e.HASH_COMMENT_MODE]}]};return f.contains=[p,S,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[d,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,A,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[x]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[S,x,p]}]}}function u$(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function c$(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function d$(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),l={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},f=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:l},p={className:"string",contains:[e.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,m]})]}]},E="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",v={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},S={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:l}]},w=[p,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:l},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:l},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[S]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:n}],relevance:0},v,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:l},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,f),relevance:0}].concat(d,f);m.contains=w,S.contains=w;const M=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:l,contains:w}}];return f.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:l,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(M).concat(f).concat(w)}}function f$(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},l="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],d=["true","false","Some","None","Ok","Err"],f=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],m=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:m,keyword:c,literal:d,built_in:f},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+l},{begin:"\\b0o([0-7_]+)"+l},{begin:"\\b0x([A-Fa-f0-9_]+)"+l},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+l}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:f,type:m}},{className:"punctuation",begin:"->"},o]}}const h$=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),m$=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],p$=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],g$=[...m$,...p$],b$=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),E$=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),y$=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),_$=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function T$(e){const t=h$(e),n=y$,r=E$,i="@[a-z-]+",o="and or not only",c={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+g$.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+_$.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,c,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:b$.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},c,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function x$(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function v$(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],l=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=m,v=[...f,...d].filter(k=>!m.includes(k)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={match:t.concat(/\b/,t.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function O(k){return t.concat(/\b/,t.either(...k.map(w=>w.replace(/\s+/,"\\s+"))),/\b/)}const L={scope:"keyword",match:O(E),relevance:0};function B(k,{exceptions:w,when:U}={}){const j=U;return w=w||[],k.map(F=>F.match(/\|\d+$/)||w.includes(F)?F:j(F)?`${F}|0`:F)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(v,{when:k=>k.length<3}),literal:o,type:c,built_in:p},contains:[{scope:"type",match:O(l)},L,x,S,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,A]}}function zC(e){return e?typeof e=="string"?e:e.source:null}function dc(e){return Vt("(?=",e,")")}function Vt(...e){return e.map(n=>zC(n)).join("")}function S$(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function gr(...e){return"("+(S$(e).capture?"":"?:")+e.map(r=>zC(r)).join("|")+")"}const ty=e=>Vt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),N$=["Protocol","Type"].map(ty),SS=["init","self"].map(ty),A$=["Any","Self"],p0=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],NS=["false","nil","true"],w$=["assignment","associativity","higherThan","left","lowerThan","none","right"],C$=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],AS=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],$C=gr(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),qC=gr($C,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),g0=Vt($C,qC,"*"),YC=gr(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),yh=gr(YC,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Va=Vt(YC,yh,"*"),Lf=Vt(/[A-Z]/,yh,"*"),R$=["attached","autoclosure",Vt(/convention\(/,gr("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Vt(/objc\(/,Va,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],O$=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function k$(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,gr(...N$,...SS)],className:{2:"keyword"}},o={match:Vt(/\./,gr(...p0)),relevance:0},l=p0.filter(mt=>typeof mt=="string").concat(["_|0"]),c=p0.filter(mt=>typeof mt!="string").concat(A$).map(ty),d={variants:[{className:"keyword",match:gr(...c,...SS)}]},f={$pattern:gr(/\b\w+/,/#\w+/),keyword:l.concat(C$),literal:NS},m=[i,o,d],p={match:Vt(/\./,gr(...AS)),relevance:0},E={className:"built_in",match:Vt(/\b/,gr(...AS),/(?=\()/)},_=[p,E],v={match:/->/,relevance:0},S={className:"operator",relevance:0,variants:[{match:g0},{match:`\\.(\\.|${qC})+`}]},A=[v,S],x="([0-9]_*)+",O="([0-9a-fA-F]_*)+",L={className:"number",relevance:0,variants:[{match:`\\b(${x})(\\.(${x}))?([eE][+-]?(${x}))?\\b`},{match:`\\b0x(${O})(\\.(${O}))?([pP][+-]?(${x}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},B=(mt="")=>({className:"subst",variants:[{match:Vt(/\\/,mt,/[0\\tnr"']/)},{match:Vt(/\\/,mt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),k=(mt="")=>({className:"subst",match:Vt(/\\/,mt,/[\t ]*(?:[\r\n]|\r\n)/)}),w=(mt="")=>({className:"subst",label:"interpol",begin:Vt(/\\/,mt,/\(/),end:/\)/}),U=(mt="")=>({begin:Vt(mt,/"""/),end:Vt(/"""/,mt),contains:[B(mt),k(mt),w(mt)]}),j=(mt="")=>({begin:Vt(mt,/"/),end:Vt(/"/,mt),contains:[B(mt),w(mt)]}),F={className:"string",variants:[U(),U("#"),U("##"),U("###"),j(),j("#"),j("##"),j("###")]},M=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],J={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:M},X=mt=>{const zn=Vt(mt,/\//),$n=Vt(/\//,mt);return{begin:zn,end:$n,contains:[...M,{scope:"comment",begin:`#(?!.*${$n})`,end:/$/}]}},V={scope:"regexp",variants:[X("###"),X("##"),X("#"),J]},ne={match:Vt(/`/,Va,/`/)},ae={className:"variable",match:/\$\d+/},Q={className:"variable",match:`\\$${yh}+`},be=[ne,ae,Q],K={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:O$,contains:[...A,L,F]}]}},xe={scope:"keyword",match:Vt(/@/,gr(...R$),dc(gr(/\(/,/\s+/)))},R={scope:"meta",match:Vt(/@/,Va)},le=[K,xe,R],te={match:dc(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Vt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,yh,"+")},{className:"type",match:Lf,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Vt(/\s+&\s+/,dc(Lf)),relevance:0}]},I={begin:/</,end:/>/,keywords:f,contains:[...r,...m,...le,v,te]};te.contains.push(I);const ce={match:Vt(Va,/\s*:/),keywords:"_|0",relevance:0},Te={begin:/\(/,end:/\)/,relevance:0,keywords:f,contains:["self",ce,...r,V,...m,..._,...A,L,F,...be,...le,te]},ve={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,te]},Pe={begin:gr(dc(Vt(Va,/\s*:/)),dc(Vt(Va,/\s+/,Va,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Va}]},je={begin:/\(/,end:/\)/,keywords:f,contains:[Pe,...r,...m,...A,L,F,...le,te,Te],endsParent:!0,illegal:/["']/},Ze={match:[/(func|macro)/,/\s+/,gr(ne.match,Va,g0)],className:{1:"keyword",3:"title.function"},contains:[ve,je,t],illegal:[/\[/,/%/]},Ue={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ve,je,t],illegal:/\[|%/},Pt={match:[/operator/,/\s+/,g0],className:{1:"keyword",3:"title"}},mn={begin:[/precedencegroup/,/\s+/,Lf],className:{1:"keyword",3:"title"},contains:[te],keywords:[...w$,...NS],end:/}/},pn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Tn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},dr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Va,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:f,contains:[ve,...m,{begin:/:/,end:/\{/,keywords:f,contains:[{scope:"title.class.inherited",match:Lf},...m],relevance:0}]};for(const mt of F.variants){const zn=mt.contains.find(Qn=>Qn.label==="interpol");zn.keywords=f;const $n=[...m,..._,...A,L,F,...be];zn.contains=[...$n,{begin:/\(/,end:/\)/,contains:["self",...$n]}]}return{name:"Swift",keywords:f,contains:[...r,Ze,Ue,pn,Tn,dr,Pt,mn,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},V,...m,..._,...A,L,F,...be,...le,te,Te]}}const _h="[A-Za-z$_][0-9A-Za-z$_]*",GC=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],VC=["true","false","null","undefined","NaN","Infinity"],KC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],XC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],WC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],QC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ZC=[].concat(WC,KC,XC);function L$(e){const t=e.regex,n=(K,{after:xe})=>{const R="</"+K[0].slice(1);return K.input.indexOf(R,xe)!==-1},r=_h,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,xe)=>{const R=K[0].length+K.index,le=K.input[R];if(le==="<"||le===","){xe.ignoreMatch();return}le===">"&&(n(K,{after:R})||xe.ignoreMatch());let te;const I=K.input.substring(R);if(te=I.match(/^\s*=/)){xe.ignoreMatch();return}if((te=I.match(/^\s+extends\s+/))&&te.index===0){xe.ignoreMatch();return}}},c={$pattern:_h,keyword:GC,literal:VC,built_in:ZC,"variable.language":QC},d="[0-9](_?[0-9])*",f=`\\.(${d})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${m})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},S={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},O={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},L=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,S,A,{match:/\$\d+/},p];E.contains=L.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(L)});const B=[].concat(O,E.contains),k=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(B)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:k},U={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},j={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...KC,...XC]}},F={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},J={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function X(K){return t.concat("(?!",K.join("|"),")")}const V={match:t.concat(/\b/,X([...WC,"super","import"].map(K=>`${K}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},ne={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",be={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:j},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),F,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,S,A,O,{match:/\$\d+/},p,j,{scope:"attr",match:r+t.lookahead(":"),relevance:0},be,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,e.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},ne,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},V,J,U,ae,{match:/\$[(.]/}]}}function I$(e){const t=e.regex,n=L$(e),r=_h,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},c={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},d=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:_h,keyword:GC.concat(d),literal:VC,built_in:ZC.concat(i),"variable.language":QC},m={className:"meta",begin:"@"+r},p=(S,A,x)=>{const O=S.contains.findIndex(L=>L.label===A);if(O===-1)throw new Error("can not find mode to replace");S.contains.splice(O,1,x)};Object.assign(n.keywords,f),n.exports.PARAMS_CONTAINS.push(m);const E=n.contains.find(S=>S.scope==="attr"),_=Object.assign({},E,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,E,_]),n.contains=n.contains.concat([m,o,l,_]),p(n,"shebang",e.SHEBANG()),p(n,"use_strict",c);const v=n.contains.find(S=>S.label==="func.def");return v.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function D$(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,l=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,l,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(l,c),/ *#/)}]},f={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},m={className:"label",begin:/^\w+:/},p=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),E=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,d,f,m,p,E,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[E]}]}}function M$(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},l={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},f={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,l,i,e.QUOTE_STRING_MODE,d,f,c]}}function P$(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(o,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,d,c,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,l,d,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:f}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function B$(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},l={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},c=e.inherit(l,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},v={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},A=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},v,S,o,l],x=[...A];return x.pop(),x.push(c),_.contains=x,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}const U$={arduino:yz,bash:_z,c:Tz,cpp:xz,csharp:vz,css:Lz,diff:Iz,go:Dz,graphql:Mz,ini:Pz,java:Bz,javascript:zz,json:$z,kotlin:Yz,less:Jz,lua:e$,makefile:t$,markdown:n$,objectivec:r$,perl:a$,php:i$,"php-template":s$,plaintext:o$,python:l$,"python-repl":u$,r:c$,ruby:d$,rust:f$,scss:T$,shell:x$,sql:v$,swift:k$,typescript:I$,vbnet:D$,wasm:M$,xml:P$,yaml:B$};var b0,wS;function F$(){if(wS)return b0;wS=1;function e(Y){return Y instanceof Map?Y.clear=Y.delete=Y.set=function(){throw new Error("map is read-only")}:Y instanceof Set&&(Y.add=Y.clear=Y.delete=function(){throw new Error("set is read-only")}),Object.freeze(Y),Object.getOwnPropertyNames(Y).forEach(pe=>{const ke=Y[pe],st=typeof ke;(st==="object"||st==="function")&&!Object.isFrozen(ke)&&e(ke)}),Y}class t{constructor(pe){pe.data===void 0&&(pe.data={}),this.data=pe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(Y){return Y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(Y,...pe){const ke=Object.create(null);for(const st in Y)ke[st]=Y[st];return pe.forEach(function(st){for(const $ in st)ke[$]=st[$]}),ke}const i="</span>",o=Y=>!!Y.scope,l=(Y,{prefix:pe})=>{if(Y.startsWith("language:"))return Y.replace("language:","language-");if(Y.includes(".")){const ke=Y.split(".");return[`${pe}${ke.shift()}`,...ke.map((st,$)=>`${st}${"_".repeat($+1)}`)].join(" ")}return`${pe}${Y}`};class c{constructor(pe,ke){this.buffer="",this.classPrefix=ke.classPrefix,pe.walk(this)}addText(pe){this.buffer+=n(pe)}openNode(pe){if(!o(pe))return;const ke=l(pe.scope,{prefix:this.classPrefix});this.span(ke)}closeNode(pe){o(pe)&&(this.buffer+=i)}value(){return this.buffer}span(pe){this.buffer+=`<span class="${pe}">`}}const d=(Y={})=>{const pe={children:[]};return Object.assign(pe,Y),pe};class f{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(pe){this.top.children.push(pe)}openNode(pe){const ke=d({scope:pe});this.add(ke),this.stack.push(ke)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(pe){return this.constructor._walk(pe,this.rootNode)}static _walk(pe,ke){return typeof ke=="string"?pe.addText(ke):ke.children&&(pe.openNode(ke),ke.children.forEach(st=>this._walk(pe,st)),pe.closeNode(ke)),pe}static _collapse(pe){typeof pe!="string"&&pe.children&&(pe.children.every(ke=>typeof ke=="string")?pe.children=[pe.children.join("")]:pe.children.forEach(ke=>{f._collapse(ke)}))}}class m extends f{constructor(pe){super(),this.options=pe}addText(pe){pe!==""&&this.add(pe)}startScope(pe){this.openNode(pe)}endScope(){this.closeNode()}__addSublanguage(pe,ke){const st=pe.root;ke&&(st.scope=`language:${ke}`),this.add(st)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(Y){return Y?typeof Y=="string"?Y:Y.source:null}function E(Y){return S("(?=",Y,")")}function _(Y){return S("(?:",Y,")*")}function v(Y){return S("(?:",Y,")?")}function S(...Y){return Y.map(ke=>p(ke)).join("")}function A(Y){const pe=Y[Y.length-1];return typeof pe=="object"&&pe.constructor===Object?(Y.splice(Y.length-1,1),pe):{}}function x(...Y){return"("+(A(Y).capture?"":"?:")+Y.map(st=>p(st)).join("|")+")"}function O(Y){return new RegExp(Y.toString()+"|").exec("").length-1}function L(Y,pe){const ke=Y&&Y.exec(pe);return ke&&ke.index===0}const B=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function k(Y,{joinWith:pe}){let ke=0;return Y.map(st=>{ke+=1;const $=ke;let W=p(st),G="";for(;W.length>0;){const se=B.exec(W);if(!se){G+=W;break}G+=W.substring(0,se.index),W=W.substring(se.index+se[0].length),se[0][0]==="\\"&&se[1]?G+="\\"+String(Number(se[1])+$):(G+=se[0],se[0]==="("&&ke++)}return G}).map(st=>`(${st})`).join(pe)}const w=/\b\B/,U="[a-zA-Z]\\w*",j="[a-zA-Z_]\\w*",F="\\b\\d+(\\.\\d+)?",M="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",X="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",V=(Y={})=>{const pe=/^#![ ]*\//;return Y.binary&&(Y.begin=S(pe,/.*\b/,Y.binary,/\b.*/)),r({scope:"meta",begin:pe,end:/$/,relevance:0,"on:begin":(ke,st)=>{ke.index!==0&&st.ignoreMatch()}},Y)},ne={begin:"\\\\[\\s\\S]",relevance:0},ae={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ne]},Q={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ne]},be={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},K=function(Y,pe,ke={}){const st=r({scope:"comment",begin:Y,end:pe,contains:[]},ke);st.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const $=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return st.contains.push({begin:S(/[ ]+/,"(",$,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),st},xe=K("//","$"),R=K("/\\*","\\*/"),le=K("#","$"),te={scope:"number",begin:F,relevance:0},I={scope:"number",begin:M,relevance:0},ce={scope:"number",begin:J,relevance:0},Te={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ne,{begin:/\[/,end:/\]/,relevance:0,contains:[ne]}]},ve={scope:"title",begin:U,relevance:0},Pe={scope:"title",begin:j,relevance:0},je={begin:"\\.\\s*"+j,relevance:0};var Ue=Object.freeze({__proto__:null,APOS_STRING_MODE:ae,BACKSLASH_ESCAPE:ne,BINARY_NUMBER_MODE:ce,BINARY_NUMBER_RE:J,COMMENT:K,C_BLOCK_COMMENT_MODE:R,C_LINE_COMMENT_MODE:xe,C_NUMBER_MODE:I,C_NUMBER_RE:M,END_SAME_AS_BEGIN:function(Y){return Object.assign(Y,{"on:begin":(pe,ke)=>{ke.data._beginMatch=pe[1]},"on:end":(pe,ke)=>{ke.data._beginMatch!==pe[1]&&ke.ignoreMatch()}})},HASH_COMMENT_MODE:le,IDENT_RE:U,MATCH_NOTHING_RE:w,METHOD_GUARD:je,NUMBER_MODE:te,NUMBER_RE:F,PHRASAL_WORDS_MODE:be,QUOTE_STRING_MODE:Q,REGEXP_MODE:Te,RE_STARTERS_RE:X,SHEBANG:V,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:j,UNDERSCORE_TITLE_MODE:Pe});function Pt(Y,pe){Y.input[Y.index-1]==="."&&pe.ignoreMatch()}function mn(Y,pe){Y.className!==void 0&&(Y.scope=Y.className,delete Y.className)}function pn(Y,pe){pe&&Y.beginKeywords&&(Y.begin="\\b("+Y.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Y.__beforeBegin=Pt,Y.keywords=Y.keywords||Y.beginKeywords,delete Y.beginKeywords,Y.relevance===void 0&&(Y.relevance=0))}function Tn(Y,pe){Array.isArray(Y.illegal)&&(Y.illegal=x(...Y.illegal))}function dr(Y,pe){if(Y.match){if(Y.begin||Y.end)throw new Error("begin & end are not supported with match");Y.begin=Y.match,delete Y.match}}function mt(Y,pe){Y.relevance===void 0&&(Y.relevance=1)}const zn=(Y,pe)=>{if(!Y.beforeMatch)return;if(Y.starts)throw new Error("beforeMatch cannot be used with starts");const ke=Object.assign({},Y);Object.keys(Y).forEach(st=>{delete Y[st]}),Y.keywords=ke.keywords,Y.begin=S(ke.beforeMatch,E(ke.begin)),Y.starts={relevance:0,contains:[Object.assign(ke,{endsParent:!0})]},Y.relevance=0,delete ke.beforeMatch},$n=["of","and","for","in","not","or","if","then","parent","list","value"],Qn="keyword";function Na(Y,pe,ke=Qn){const st=Object.create(null);return typeof Y=="string"?$(ke,Y.split(" ")):Array.isArray(Y)?$(ke,Y):Object.keys(Y).forEach(function(W){Object.assign(st,Na(Y[W],pe,W))}),st;function $(W,G){pe&&(G=G.map(se=>se.toLowerCase())),G.forEach(function(se){const me=se.split("|");st[me[0]]=[W,ui(me[0],me[1])]})}}function ui(Y,pe){return pe?Number(pe):Ir(Y)?0:1}function Ir(Y){return $n.includes(Y.toLowerCase())}const ta={},dn=Y=>{console.error(Y)},Ha=(Y,...pe)=>{console.log(`WARN: ${Y}`,...pe)},de=(Y,pe)=>{ta[`${Y}/${pe}`]||(console.log(`Deprecated as of ${Y}. ${pe}`),ta[`${Y}/${pe}`]=!0)},Ae=new Error;function tt(Y,pe,{key:ke}){let st=0;const $=Y[ke],W={},G={};for(let se=1;se<=pe.length;se++)G[se+st]=$[se],W[se+st]=!0,st+=O(pe[se-1]);Y[ke]=G,Y[ke]._emit=W,Y[ke]._multi=!0}function ht(Y){if(Array.isArray(Y.begin)){if(Y.skip||Y.excludeBegin||Y.returnBegin)throw dn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ae;if(typeof Y.beginScope!="object"||Y.beginScope===null)throw dn("beginScope must be object"),Ae;tt(Y,Y.begin,{key:"beginScope"}),Y.begin=k(Y.begin,{joinWith:""})}}function It(Y){if(Array.isArray(Y.end)){if(Y.skip||Y.excludeEnd||Y.returnEnd)throw dn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ae;if(typeof Y.endScope!="object"||Y.endScope===null)throw dn("endScope must be object"),Ae;tt(Y,Y.end,{key:"endScope"}),Y.end=k(Y.end,{joinWith:""})}}function ln(Y){Y.scope&&typeof Y.scope=="object"&&Y.scope!==null&&(Y.beginScope=Y.scope,delete Y.scope)}function yr(Y){ln(Y),typeof Y.beginScope=="string"&&(Y.beginScope={_wrap:Y.beginScope}),typeof Y.endScope=="string"&&(Y.endScope={_wrap:Y.endScope}),ht(Y),It(Y)}function Nn(Y){function pe(G,se){return new RegExp(p(G),"m"+(Y.case_insensitive?"i":"")+(Y.unicodeRegex?"u":"")+(se?"g":""))}class ke{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(se,me){me.position=this.position++,this.matchIndexes[this.matchAt]=me,this.regexes.push([me,se]),this.matchAt+=O(se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const se=this.regexes.map(me=>me[1]);this.matcherRe=pe(k(se,{joinWith:"|"}),!0),this.lastIndex=0}exec(se){this.matcherRe.lastIndex=this.lastIndex;const me=this.matcherRe.exec(se);if(!me)return null;const Ie=me.findIndex((Fe,Xe)=>Xe>0&&Fe!==void 0),Le=this.matchIndexes[Ie];return me.splice(0,Ie),Object.assign(me,Le)}}class st{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(se){if(this.multiRegexes[se])return this.multiRegexes[se];const me=new ke;return this.rules.slice(se).forEach(([Ie,Le])=>me.addRule(Ie,Le)),me.compile(),this.multiRegexes[se]=me,me}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(se,me){this.rules.push([se,me]),me.type==="begin"&&this.count++}exec(se){const me=this.getMatcher(this.regexIndex);me.lastIndex=this.lastIndex;let Ie=me.exec(se);if(this.resumingScanAtSamePosition()&&!(Ie&&Ie.index===this.lastIndex)){const Le=this.getMatcher(0);Le.lastIndex=this.lastIndex+1,Ie=Le.exec(se)}return Ie&&(this.regexIndex+=Ie.position+1,this.regexIndex===this.count&&this.considerAll()),Ie}}function $(G){const se=new st;return G.contains.forEach(me=>se.addRule(me.begin,{rule:me,type:"begin"})),G.terminatorEnd&&se.addRule(G.terminatorEnd,{type:"end"}),G.illegal&&se.addRule(G.illegal,{type:"illegal"}),se}function W(G,se){const me=G;if(G.isCompiled)return me;[mn,dr,yr,zn].forEach(Le=>Le(G,se)),Y.compilerExtensions.forEach(Le=>Le(G,se)),G.__beforeBegin=null,[pn,Tn,mt].forEach(Le=>Le(G,se)),G.isCompiled=!0;let Ie=null;return typeof G.keywords=="object"&&G.keywords.$pattern&&(G.keywords=Object.assign({},G.keywords),Ie=G.keywords.$pattern,delete G.keywords.$pattern),Ie=Ie||/\w+/,G.keywords&&(G.keywords=Na(G.keywords,Y.case_insensitive)),me.keywordPatternRe=pe(Ie,!0),se&&(G.begin||(G.begin=/\B|\b/),me.beginRe=pe(me.begin),!G.end&&!G.endsWithParent&&(G.end=/\B|\b/),G.end&&(me.endRe=pe(me.end)),me.terminatorEnd=p(me.end)||"",G.endsWithParent&&se.terminatorEnd&&(me.terminatorEnd+=(G.end?"|":"")+se.terminatorEnd)),G.illegal&&(me.illegalRe=pe(G.illegal)),G.contains||(G.contains=[]),G.contains=[].concat(...G.contains.map(function(Le){return Aa(Le==="self"?G:Le)})),G.contains.forEach(function(Le){W(Le,me)}),G.starts&&W(G.starts,se),me.matcher=$(me),me}if(Y.compilerExtensions||(Y.compilerExtensions=[]),Y.contains&&Y.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Y.classNameAliases=r(Y.classNameAliases||{}),W(Y)}function on(Y){return Y?Y.endsWithParent||on(Y.starts):!1}function Aa(Y){return Y.variants&&!Y.cachedVariants&&(Y.cachedVariants=Y.variants.map(function(pe){return r(Y,{variants:null},pe)})),Y.cachedVariants?Y.cachedVariants:on(Y)?r(Y,{starts:Y.starts?r(Y.starts):null}):Object.isFrozen(Y)?r(Y):Y}var Kt="11.11.1";class Xt extends Error{constructor(pe,ke){super(pe),this.name="HTMLInjectionError",this.html=ke}}const qn=n,ji=r,Lo=Symbol("nomatch"),ci=7,di=function(Y){const pe=Object.create(null),ke=Object.create(null),st=[];let $=!0;const W="Could not find the language '{}', did you forget to load/include a language module?",G={disableAutodetect:!0,name:"Plain text",contains:[]};let se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function me(ye){return se.noHighlightRe.test(ye)}function Ie(ye){let Ve=ye.className+" ";Ve+=ye.parentNode?ye.parentNode.className:"";const ut=se.languageDetectRe.exec(Ve);if(ut){const ot=un(ut[1]);return ot||(Ha(W.replace("{}",ut[1])),Ha("Falling back to no-highlight mode for this block.",ye)),ot?ut[1]:"no-highlight"}return Ve.split(/\s+/).find(ot=>me(ot)||un(ot))}function Le(ye,Ve,ut){let ot="",Jt="";typeof Ve=="object"?(ot=ye,ut=Ve.ignoreIllegals,Jt=Ve.language):(de("10.7.0","highlight(lang, code, ...args) has been deprecated."),de("10.7.0",`Please use highlight(code, options) instead.
288
- https://github.com/highlightjs/highlight.js/issues/2277`),Jt=ye,ot=Ve),ut===void 0&&(ut=!0);const Bn={code:ot,language:Jt};Jn("before:highlight",Bn);const hr=Bn.result?Bn.result:Fe(Bn.language,Bn.code,ut);return hr.code=Bn.code,Jn("after:highlight",hr),hr}function Fe(ye,Ve,ut,ot){const Jt=Object.create(null);function Bn(De,Ke){return De.keywords[Ke]}function hr(){if(!at.keywords){Cn.addText(qt);return}let De=0;at.keywordPatternRe.lastIndex=0;let Ke=at.keywordPatternRe.exec(qt),lt="";for(;Ke;){lt+=qt.substring(De,Ke.index);const Rt=er.case_insensitive?Ke[0].toLowerCase():Ke[0],Un=Bn(at,Rt);if(Un){const[Br,cd]=Un;if(Cn.addText(lt),lt="",Jt[Rt]=(Jt[Rt]||0)+1,Jt[Rt]<=ci&&(zi+=cd),Br.startsWith("_"))lt+=Ke[0];else{const Fs=er.classNameAliases[Br]||Br;Pr(Ke[0],Fs)}}else lt+=Ke[0];De=at.keywordPatternRe.lastIndex,Ke=at.keywordPatternRe.exec(qt)}lt+=qt.substring(De),Cn.addText(lt)}function _r(){if(qt==="")return;let De=null;if(typeof at.subLanguage=="string"){if(!pe[at.subLanguage]){Cn.addText(qt);return}De=Fe(at.subLanguage,qt,!0,ud[at.subLanguage]),ud[at.subLanguage]=De._top}else De=Ge(qt,at.subLanguage.length?at.subLanguage:null);at.relevance>0&&(zi+=De.relevance),Cn.__addSublanguage(De._emitter,De.language)}function en(){at.subLanguage!=null?_r():hr(),qt=""}function Pr(De,Ke){De!==""&&(Cn.startScope(Ke),Cn.addText(De),Cn.endScope())}function od(De,Ke){let lt=1;const Rt=Ke.length-1;for(;lt<=Rt;){if(!De._emit[lt]){lt++;continue}const Un=er.classNameAliases[De[lt]]||De[lt],Br=Ke[lt];Un?Pr(Br,Un):(qt=Br,hr(),qt=""),lt++}}function Bs(De,Ke){return De.scope&&typeof De.scope=="string"&&Cn.openNode(er.classNameAliases[De.scope]||De.scope),De.beginScope&&(De.beginScope._wrap?(Pr(qt,er.classNameAliases[De.beginScope._wrap]||De.beginScope._wrap),qt=""):De.beginScope._multi&&(od(De.beginScope,Ke),qt="")),at=Object.create(De,{parent:{value:at}}),at}function au(De,Ke,lt){let Rt=L(De.endRe,lt);if(Rt){if(De["on:end"]){const Un=new t(De);De["on:end"](Ke,Un),Un.isMatchIgnored&&(Rt=!1)}if(Rt){for(;De.endsParent&&De.parent;)De=De.parent;return De}}if(De.endsWithParent)return au(De.parent,Ke,lt)}function Io(De){return at.matcher.regexIndex===0?(qt+=De[0],1):($i=!0,0)}function hm(De){const Ke=De[0],lt=De.rule,Rt=new t(lt),Un=[lt.__beforeBegin,lt["on:begin"]];for(const Br of Un)if(Br&&(Br(De,Rt),Rt.isMatchIgnored))return Io(Ke);return lt.skip?qt+=Ke:(lt.excludeBegin&&(qt+=Ke),en(),!lt.returnBegin&&!lt.excludeBegin&&(qt=Ke)),Bs(lt,De),lt.returnBegin?0:Ke.length}function Tr(De){const Ke=De[0],lt=Ve.substring(De.index),Rt=au(at,De,lt);if(!Rt)return Lo;const Un=at;at.endScope&&at.endScope._wrap?(en(),Pr(Ke,at.endScope._wrap)):at.endScope&&at.endScope._multi?(en(),od(at.endScope,De)):Un.skip?qt+=Ke:(Un.returnEnd||Un.excludeEnd||(qt+=Ke),en(),Un.excludeEnd&&(qt=Ke));do at.scope&&Cn.closeNode(),!at.skip&&!at.subLanguage&&(zi+=at.relevance),at=at.parent;while(at!==Rt.parent);return Rt.starts&&Bs(Rt.starts,De),Un.returnEnd?0:Ke.length}function iu(){const De=[];for(let Ke=at;Ke!==er;Ke=Ke.parent)Ke.scope&&De.unshift(Ke.scope);De.forEach(Ke=>Cn.openNode(Ke))}let Us={};function Do(De,Ke){const lt=Ke&&Ke[0];if(qt+=De,lt==null)return en(),0;if(Us.type==="begin"&&Ke.type==="end"&&Us.index===Ke.index&&lt===""){if(qt+=Ve.slice(Ke.index,Ke.index+1),!$){const Rt=new Error(`0 width match regex (${ye})`);throw Rt.languageName=ye,Rt.badRule=Us.rule,Rt}return 1}if(Us=Ke,Ke.type==="begin")return hm(Ke);if(Ke.type==="illegal"&&!ut){const Rt=new Error('Illegal lexeme "'+lt+'" for mode "'+(at.scope||"<unnamed>")+'"');throw Rt.mode=at,Rt}else if(Ke.type==="end"){const Rt=Tr(Ke);if(Rt!==Lo)return Rt}if(Ke.type==="illegal"&&lt==="")return qt+=`
289
- `,1;if(su>1e5&&su>Ke.index*3)throw new Error("potential infinite loop, way more iterations than matches");return qt+=lt,lt.length}const er=un(ye);if(!er)throw dn(W.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const ld=Nn(er);let Mo="",at=ot||ld;const ud={},Cn=new se.__emitter(se);iu();let qt="",zi=0,hi=0,su=0,$i=!1;try{if(er.__emitTokens)er.__emitTokens(Ve,Cn);else{for(at.matcher.considerAll();;){su++,$i?$i=!1:at.matcher.considerAll(),at.matcher.lastIndex=hi;const De=at.matcher.exec(Ve);if(!De)break;const Ke=Ve.substring(hi,De.index),lt=Do(Ke,De);hi=De.index+lt}Do(Ve.substring(hi))}return Cn.finalize(),Mo=Cn.toHTML(),{language:ye,value:Mo,relevance:zi,illegal:!1,_emitter:Cn,_top:at}}catch(De){if(De.message&&De.message.includes("Illegal"))return{language:ye,value:qn(Ve),illegal:!0,relevance:0,_illegalBy:{message:De.message,index:hi,context:Ve.slice(hi-100,hi+100),mode:De.mode,resultSoFar:Mo},_emitter:Cn};if($)return{language:ye,value:qn(Ve),illegal:!1,relevance:0,errorRaised:De,_emitter:Cn,_top:at};throw De}}function Xe(ye){const Ve={value:qn(ye),illegal:!1,relevance:0,_top:G,_emitter:new se.__emitter(se)};return Ve._emitter.addText(ye),Ve}function Ge(ye,Ve){Ve=Ve||se.languages||Object.keys(pe);const ut=Xe(ye),ot=Ve.filter(un).filter(Mr).map(en=>Fe(en,ye,!1));ot.unshift(ut);const Jt=ot.sort((en,Pr)=>{if(en.relevance!==Pr.relevance)return Pr.relevance-en.relevance;if(en.language&&Pr.language){if(un(en.language).supersetOf===Pr.language)return 1;if(un(Pr.language).supersetOf===en.language)return-1}return 0}),[Bn,hr]=Jt,_r=Bn;return _r.secondBest=hr,_r}function He(ye,Ve,ut){const ot=Ve&&ke[Ve]||ut;ye.classList.add("hljs"),ye.classList.add(`language-${ot}`)}function Me(ye){let Ve=null;const ut=Ie(ye);if(me(ut))return;if(Jn("before:highlightElement",{el:ye,language:ut}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),se.throwUnescapedHTML))throw new Xt("One of your code blocks includes unescaped HTML.",ye.innerHTML);Ve=ye;const ot=Ve.textContent,Jt=ut?Le(ot,{language:ut,ignoreIllegals:!0}):Ge(ot);ye.innerHTML=Jt.value,ye.dataset.highlighted="yes",He(ye,ut,Jt.language),ye.result={language:Jt.language,re:Jt.relevance,relevance:Jt.relevance},Jt.secondBest&&(ye.secondBest={language:Jt.secondBest.language,relevance:Jt.secondBest.relevance}),Jn("after:highlightElement",{el:ye,result:Jt,text:ot})}function rt(ye){se=ji(se,ye)}const zt=()=>{$t(),de("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function An(){$t(),de("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let wn=!1;function $t(){function ye(){$t()}if(document.readyState==="loading"){wn||window.addEventListener("DOMContentLoaded",ye,!1),wn=!0;return}document.querySelectorAll(se.cssSelector).forEach(Me)}function Bt(ye,Ve){let ut=null;try{ut=Ve(Y)}catch(ot){if(dn("Language definition for '{}' could not be registered.".replace("{}",ye)),$)dn(ot);else throw ot;ut=G}ut.name||(ut.name=ye),pe[ye]=ut,ut.rawDefinition=Ve.bind(null,Y),ut.aliases&&Pn(ut.aliases,{languageName:ye})}function Dr(ye){delete pe[ye];for(const Ve of Object.keys(ke))ke[Ve]===ye&&delete ke[Ve]}function fr(){return Object.keys(pe)}function un(ye){return ye=(ye||"").toLowerCase(),pe[ye]||pe[ke[ye]]}function Pn(ye,{languageName:Ve}){typeof ye=="string"&&(ye=[ye]),ye.forEach(ut=>{ke[ut.toLowerCase()]=Ve})}function Mr(ye){const Ve=un(ye);return Ve&&!Ve.disableAutodetect}function Zt(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=Ve=>{ye["before:highlightBlock"](Object.assign({block:Ve.el},Ve))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=Ve=>{ye["after:highlightBlock"](Object.assign({block:Ve.el},Ve))})}function na(ye){Zt(ye),st.push(ye)}function fi(ye){const Ve=st.indexOf(ye);Ve!==-1&&st.splice(Ve,1)}function Jn(ye,Ve){const ut=ye;st.forEach(function(ot){ot[ut]&&ot[ut](Ve)})}function Nt(ye){return de("10.7.0","highlightBlock will be removed entirely in v12.0"),de("10.7.0","Please use highlightElement now."),Me(ye)}Object.assign(Y,{highlight:Le,highlightAuto:Ge,highlightAll:$t,highlightElement:Me,highlightBlock:Nt,configure:rt,initHighlighting:zt,initHighlightingOnLoad:An,registerLanguage:Bt,unregisterLanguage:Dr,listLanguages:fr,getLanguage:un,registerAliases:Pn,autoDetection:Mr,inherit:ji,addPlugin:na,removePlugin:fi}),Y.debugMode=function(){$=!1},Y.safeMode=function(){$=!0},Y.versionString=Kt,Y.regex={concat:S,lookahead:E,either:x,optional:v,anyNumberOfTimes:_};for(const ye in Ue)typeof Ue[ye]=="object"&&e(Ue[ye]);return Object.assign(Y,Ue),Y},Zn=di({});return Zn.newInstance=()=>di({}),b0=Zn,Zn.HighlightJS=Zn,Zn.default=Zn,b0}var H$=F$();const j$=zl(H$),CS={},z$="hljs-";function $$(e){const t=j$.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:l,registered:c};function n(d,f,m){const p=m||CS,E=typeof p.prefix=="string"?p.prefix:z$;if(!t.getLanguage(d))throw new Error("Unknown language: `"+d+"` is not registered");t.configure({__emitter:q$,classPrefix:E});const _=t.highlight(f,{ignoreIllegals:!0,language:d});if(_.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:_.errorRaised});const v=_._emitter.root,S=v.data;return S.language=_.language,S.relevance=_.relevance,v}function r(d,f){const p=(f||CS).subset||i();let E=-1,_=0,v;for(;++E<p.length;){const S=p[E];if(!t.getLanguage(S))continue;const A=n(S,d,f);A.data&&A.data.relevance!==void 0&&A.data.relevance>_&&(_=A.data.relevance,v=A)}return v||{type:"root",children:[],data:{language:void 0,relevance:_}}}function i(){return t.listLanguages()}function o(d,f){if(typeof d=="string")t.registerLanguage(d,f);else{let m;for(m in d)Object.hasOwn(d,m)&&t.registerLanguage(m,d[m])}}function l(d,f){if(typeof d=="string")t.registerAliases(typeof f=="string"?f:[...f],{languageName:d});else{let m;for(m in d)if(Object.hasOwn(d,m)){const p=d[m];t.registerAliases(typeof p=="string"?p:[...p],{languageName:m})}}}function c(d){return!!t.getLanguage(d)}}class q${constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(l,c){return c?l+"_".repeat(c):n.options.classPrefix+l}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const Y$={};function G$(e){const t=e||Y$,n=t.aliases,r=t.detect||!1,i=t.languages||U$,o=t.plainText,l=t.prefix,c=t.subset;let d="hljs";const f=$$(i);if(n&&f.registerAlias(n),l){const m=l.indexOf("-");d=m===-1?l:l.slice(0,m)}return function(m,p){td(m,"element",function(E,_,v){if(E.tagName!=="code"||!v||v.type!=="element"||v.tagName!=="pre")return;const S=V$(E);if(S===!1||!S&&!r||S&&o&&o.includes(S))return;Array.isArray(E.properties.className)||(E.properties.className=[]),E.properties.className.includes(d)||E.properties.className.unshift(d);const A=dz(E,{whitespace:"pre"});let x;try{x=S?f.highlight(S,A,{prefix:l}):f.highlightAuto(A,{prefix:l,subset:c})}catch(O){const L=O;if(S&&/Unknown language/.test(L.message)){p.message("Cannot highlight as `"+S+"`, it’s not registered",{ancestors:[v,E],cause:L,place:E.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw L}!S&&x.data&&x.data.language&&E.properties.className.push("language-"+x.data.language),x.children.length>0&&(E.children=x.children)})}}function V$(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}const RS=/[#.]/g;function K$(e,t){const n=e||"",r={};let i=0,o,l;for(;i<n.length;){RS.lastIndex=i;const c=RS.exec(n),d=n.slice(i,c?c.index:n.length);d&&(o?o==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,i+=d.length),c&&(o=c[0],i++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function JC(e,t,n){const r=n?Z$(n):void 0;function i(o,l,...c){let d;if(o==null){d={type:"root",children:[]};const f=l;c.unshift(f)}else{d=K$(o,t);const f=d.tagName.toLowerCase(),m=r?r.get(f):void 0;if(d.tagName=m||f,X$(l))c.unshift(l);else for(const[p,E]of Object.entries(l))W$(e,d.properties,p,E)}for(const f of c)Lb(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return i}function X$(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const o=i;for(const l of o)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function W$(e,t,n,r){const i=zE(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=Uv(r):i.commaSeparated?o=Iv(r):i.commaOrSpaceSeparated?o=Uv(Iv(r).join(" ")):o=OS(i,i.property,r):Array.isArray(r)?o=[...r]:o=i.property==="style"?Q$(r):String(r);if(Array.isArray(o)){const l=[];for(const c of o)l.push(OS(i,i.property,c));o=l}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Lb(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Lb(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Lb(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function OS(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Pc(n)===Pc(t)))return!0}return n}function Q$(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Z$(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const J$=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],eq=JC(nm,"div"),tq=JC(Zl,"g",J$);function nq(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const d=kS(t,n[l-1]);c=d===-1?t.length+1:d+1,n[l]=c}if(c>o)return{line:l+1,column:o-(l>0?n[l-1]:0)+1,offset:o};l++}}}function i(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const c=n[n.length-1],d=kS(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const l=(o.line>1?n[o.line-2]:0)+o.column-1;if(l<n[o.line-1])return l}}}function kS(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
290
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const ho={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},eR={}.hasOwnProperty,rq=Object.prototype;function aq(e,t){const n=t||{};return ny({file:n.file||void 0,location:!1,schema:n.space==="svg"?Zl:nm,verbose:n.verbose||!1},e)}function ny(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Kf(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:tR(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),l=nq(o),c=l.toPoint(0),d=l.toPoint(o.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Kf(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Kf(e,r,n),n}default:return n=iq(e,t),n}}function tR(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=ny(e,t[n]);r.push(i)}return r}function iq(e,t){const n=e.schema;e.schema=t.namespaceURI===ho.svg?Zl:nm;let r=-1;const i={};for(;++r<t.attrs.length;){const c=t.attrs[r],d=(c.prefix?c.prefix+":":"")+c.name;eR.call(rq,d)||(i[d]=c.value)}const l=(e.schema.space==="svg"?tq:eq)(t.tagName,i,tR(e,t.childNodes));if(Kf(e,t,l),l.tagName==="template"){const c=t,d=c.sourceCodeLocation,f=d&&d.startTag&&xl(d.startTag),m=d&&d.endTag&&xl(d.endTag),p=ny(e,c.content);f&&m&&e.file&&(p.position={start:f.end,end:m.start}),l.content=p}return e.schema=n,l}function Kf(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=sq(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function sq(e,t,n){const r=xl(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let l;if(n.attrs)for(l in n.attrs)eR.call(n.attrs,l)&&(o[zE(e.schema,l).property]=xl(n.attrs[l]));n.startTag;const c=xl(n.startTag),d=n.endTag?xl(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=o,t.data={position:f}}}return r}function xl(e){const t=LS({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=LS({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function LS(e){return e.line&&e.column?e:void 0}class rd{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}rd.prototype.property={};rd.prototype.normal={};rd.prototype.space=null;function nR(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new rd(n,r,t)}function Ib(e){return e.toLowerCase()}class Sa{constructor(t,n){this.property=t,this.attribute=n}}Sa.prototype.space=null;Sa.prototype.boolean=!1;Sa.prototype.booleanish=!1;Sa.prototype.overloadedBoolean=!1;Sa.prototype.number=!1;Sa.prototype.commaSeparated=!1;Sa.prototype.spaceSeparated=!1;Sa.prototype.commaOrSpaceSeparated=!1;Sa.prototype.mustUseProperty=!1;Sa.prototype.defined=!1;let oq=0;const pt=Oo(),In=Oo(),rR=Oo(),Re=Oo(),an=Oo(),wl=Oo(),qr=Oo();function Oo(){return 2**++oq}const Db=Object.freeze(Object.defineProperty({__proto__:null,boolean:pt,booleanish:In,commaOrSpaceSeparated:qr,commaSeparated:wl,number:Re,overloadedBoolean:rR,spaceSeparated:an},Symbol.toStringTag,{value:"Module"})),E0=Object.keys(Db);class ry extends Sa{constructor(t,n,r,i){let o=-1;if(super(t,n),IS(this,"space",i),typeof r=="number")for(;++o<E0.length;){const l=E0[o];IS(this,E0[o],(r&Db[l])===Db[l])}}}ry.prototype.defined=!0;function IS(e,t,n){n&&(e[t]=n)}const lq={}.hasOwnProperty;function eu(e){const t={},n={};let r;for(r in e.properties)if(lq.call(e.properties,r)){const i=e.properties[r],o=new ry(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ib(r)]=r,n[Ib(o.attribute)]=r}return new rd(t,n,e.space)}const aR=eu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),iR=eu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function sR(e,t){return t in e?e[t]:t}function oR(e,t){return sR(e,t.toLowerCase())}const lR=eu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:oR,properties:{xmlns:null,xmlnsXLink:null}}),uR=eu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:In,ariaAutoComplete:null,ariaBusy:In,ariaChecked:In,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:an,ariaCurrent:null,ariaDescribedBy:an,ariaDetails:null,ariaDisabled:In,ariaDropEffect:an,ariaErrorMessage:null,ariaExpanded:In,ariaFlowTo:an,ariaGrabbed:In,ariaHasPopup:null,ariaHidden:In,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:an,ariaLevel:Re,ariaLive:null,ariaModal:In,ariaMultiLine:In,ariaMultiSelectable:In,ariaOrientation:null,ariaOwns:an,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:In,ariaReadOnly:In,ariaRelevant:null,ariaRequired:In,ariaRoleDescription:an,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:In,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}}),uq=eu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:oR,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wl,acceptCharset:an,accessKey:an,action:null,allow:null,allowFullScreen:pt,allowPaymentRequest:pt,allowUserMedia:pt,alt:null,as:null,async:pt,autoCapitalize:null,autoComplete:an,autoFocus:pt,autoPlay:pt,blocking:an,capture:null,charSet:null,checked:pt,cite:null,className:an,cols:Re,colSpan:null,content:null,contentEditable:In,controls:pt,controlsList:an,coords:Re|wl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pt,defer:pt,dir:null,dirName:null,disabled:pt,download:rR,draggable:In,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pt,formTarget:null,headers:an,height:Re,hidden:pt,high:Re,href:null,hrefLang:null,htmlFor:an,httpEquiv:an,id:null,imageSizes:null,imageSrcSet:null,inert:pt,inputMode:null,integrity:null,is:null,isMap:pt,itemId:null,itemProp:an,itemRef:an,itemScope:pt,itemType:an,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pt,low:Re,manifest:null,max:null,maxLength:Re,media:null,method:null,min:null,minLength:Re,multiple:pt,muted:pt,name:null,nonce:null,noModule:pt,noValidate:pt,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:pt,optimum:Re,pattern:null,ping:an,placeholder:null,playsInline:pt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pt,referrerPolicy:null,rel:an,required:pt,reversed:pt,rows:Re,rowSpan:Re,sandbox:an,scope:null,scoped:pt,seamless:pt,selected:pt,shadowRootClonable:pt,shadowRootDelegatesFocus:pt,shadowRootMode:null,shape:null,size:Re,sizes:null,slot:null,span:Re,spellCheck:In,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re,step:null,style:null,tabIndex:Re,target:null,title:null,translate:null,type:null,typeMustMatch:pt,useMap:null,value:In,width:Re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:an,axis:null,background:null,bgColor:null,border:Re,borderColor:null,bottomMargin:Re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pt,declare:pt,event:null,face:null,frame:null,frameBorder:null,hSpace:Re,leftMargin:Re,link:null,longDesc:null,lowSrc:null,marginHeight:Re,marginWidth:Re,noResize:pt,noHref:pt,noShade:pt,noWrap:pt,object:null,profile:null,prompt:null,rev:null,rightMargin:Re,rules:null,scheme:null,scrolling:In,standby:null,summary:null,text:null,topMargin:Re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pt,disableRemotePlayback:pt,prefix:null,property:null,results:Re,security:null,unselectable:null}}),cq=eu({space:"svg",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"},transform:sR,properties:{about:qr,accentHeight:Re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re,amplitude:Re,arabicForm:null,ascent:Re,attributeName:null,attributeType:null,azimuth:Re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re,by:null,calcMode:null,capHeight:Re,className:an,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:Re,diffuseConstant:Re,direction:null,display:null,dur:null,divisor:Re,dominantBaseline:null,download:pt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re,enableBackground:null,end:null,event:null,exponent:Re,externalResourcesRequired:null,fill:null,fillOpacity:Re,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:wl,g2:wl,glyphName:wl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re,horizOriginX:Re,horizOriginY:Re,id:null,ideographic:Re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re,k:Re,k1:Re,k2:Re,k3:Re,k4:Re,kernelMatrix:qr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re,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:Re,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:Re,overlineThickness:Re,paintOrder:null,panose1:null,path:null,pathLength:Re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:an,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re,pointsAtY:Re,pointsAtZ:Re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qr,rev:qr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qr,requiredFeatures:qr,requiredFonts:qr,requiredFormats:qr,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:Re,specularExponent:Re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re,strikethroughThickness:Re,string:null,stroke:null,strokeDashArray:qr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re,strokeOpacity:Re,strokeWidth:null,style:null,surfaceScale:Re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qr,tabIndex:Re,tableValues:null,target:null,targetX:Re,targetY:Re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re,underlineThickness:Re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re,values:null,vAlphabetic:Re,vMathematical:Re,vectorEffect:null,vHanging:Re,vIdeographic:Re,version:null,vertAdvY:Re,vertOriginX:Re,vertOriginY:Re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),dq=/^data[-\w.:]+$/i,DS=/-[a-z]/g,fq=/[A-Z]/g;function hq(e,t){const n=Ib(t);let r=t,i=Sa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&dq.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(DS,pq);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!DS.test(o)){let l=o.replace(fq,mq);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=ry}return new i(r,t)}function mq(e){return"-"+e.toLowerCase()}function pq(e){return e.charAt(1).toUpperCase()}const gq=nR([iR,aR,lR,uR,uq],"html"),cR=nR([iR,aR,lR,uR,cq],"svg"),MS={}.hasOwnProperty;function dR(e,t){const n=t||{};function r(i,...o){let l=r.invalid;const c=r.handlers;if(i&&MS.call(i,e)){const d=String(i[e]);l=MS.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const bq={},Eq={}.hasOwnProperty,fR=dR("type",{handlers:{root:_q,element:Nq,text:vq,comment:Sq,doctype:xq}});function yq(e,t){const r=(t||bq).space;return fR(e,r==="svg"?cR:gq)}function _q(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ay(e.children,n,t),tu(e,n),n}function Tq(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ay(e.children,n,t),tu(e,n),n}function xq(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return tu(e,t),t}function vq(e){const t={nodeName:"#text",value:e.value,parentNode:null};return tu(e,t),t}function Sq(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return tu(e,t),t}function Nq(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=cR);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&Eq.call(e.properties,o)){const d=Aq(r,o,e.properties[o]);d&&i.push(d)}}const l=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:ho[l],childNodes:[],parentNode:null};return c.childNodes=ay(e.children,c,r),tu(e,c),e.tagName==="template"&&e.content&&(c.content=Tq(e.content,r)),c}function Aq(e,t,n){const r=hq(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Ww(n):aC(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=i.name.indexOf(":");o<0?i.prefix="":(i.name=i.name.slice(o+1),i.prefix=r.attribute.slice(0,o)),i.namespace=ho[r.space]}return i}function ay(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=fR(e[r],n);o.parentNode=t,i.push(o)}return i}function tu(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const wq=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Cq=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),cn="�";var P;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(P||(P={}));const Sr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function hR(e){return e>=55296&&e<=57343}function Rq(e){return e>=56320&&e<=57343}function Oq(e,t){return(e-55296)*1024+9216+t}function mR(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function pR(e){return e>=64976&&e<=65007||Cq.has(e)}var he;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(he||(he={}));const kq=65536;class Lq{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=kq,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:o}=this,l=i+n,c=o+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Rq(n))return this.pos++,this._addGap(),Oq(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(he.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;const r=this.html.charCodeAt(n);return r===P.CARRIAGE_RETURN?P.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;let t=this.html.charCodeAt(this.pos);return t===P.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,P.LINE_FEED):t===P.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,hR(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===P.LINE_FEED||t===P.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){mR(t)?this._err(he.controlCharacterInInputStream):pR(t)&&this._err(he.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var xt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(xt||(xt={}));function gR(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Iq=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Dq=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Mq(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Dq.get(e))!==null&&t!==void 0?t:e}var Wn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Wn||(Wn={}));const Pq=32;var _s;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(_s||(_s={}));function Mb(e){return e>=Wn.ZERO&&e<=Wn.NINE}function Bq(e){return e>=Wn.UPPER_A&&e<=Wn.UPPER_F||e>=Wn.LOWER_A&&e<=Wn.LOWER_F}function Uq(e){return e>=Wn.UPPER_A&&e<=Wn.UPPER_Z||e>=Wn.LOWER_A&&e<=Wn.LOWER_Z||Mb(e)}function Fq(e){return e===Wn.EQUALS||Uq(e)}var Kn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Kn||(Kn={}));var ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ki||(ki={}));class Hq{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Kn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ki.Strict}startEntity(t){this.decodeMode=t,this.state=Kn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Kn.EntityStart:return t.charCodeAt(n)===Wn.NUM?(this.state=Kn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Kn.NamedEntity,this.stateNamedEntity(t,n));case Kn.NumericStart:return this.stateNumericStart(t,n);case Kn.NumericDecimal:return this.stateNumericDecimal(t,n);case Kn.NumericHex:return this.stateNumericHex(t,n);case Kn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Pq)===Wn.LOWER_X?(this.state=Kn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Kn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+Number.parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Mb(i)||Bq(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Mb(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Wn.SEMI)this.consumed+=1;else if(this.decodeMode===ki.Strict)return 0;return this.emitCodePoint(Mq(this.result),this.consumed),this.errors&&(t!==Wn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],o=(i&_s.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=jq(r,i,this.treeIndex+Math.max(1,o),l),this.treeIndex<0)return this.result===0||this.decodeMode===ki.Attribute&&(o===0||Fq(l))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],o=(i&_s.VALUE_LENGTH)>>14,o!==0){if(l===Wn.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==ki.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&_s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~_s.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Kn.NamedEntity:return this.result!==0&&(this.decodeMode!==ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Kn.NumericDecimal:return this.emitNumericEntity(0,2);case Kn.NumericHex:return this.emitNumericEntity(0,3);case Kn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Kn.EntityStart:return 0}}}function jq(e,t,n,r){const i=(t&_s.BRANCH_LENGTH)>>7,o=t&_s.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const d=r-o;return d<0||d>=i?-1:e[n+d]-1}let l=n,c=l+i-1;for(;l<=c;){const d=l+c>>>1,f=e[d];if(f<r)l=d+1;else if(f>r)c=d-1;else return e[d+i]}return-1}var Ne;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Ne||(Ne={}));var po;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(po||(po={}));var pa;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(pa||(pa={}));var ie;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ie||(ie={}));var T;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(T||(T={}));const zq=new Map([[ie.A,T.A],[ie.ADDRESS,T.ADDRESS],[ie.ANNOTATION_XML,T.ANNOTATION_XML],[ie.APPLET,T.APPLET],[ie.AREA,T.AREA],[ie.ARTICLE,T.ARTICLE],[ie.ASIDE,T.ASIDE],[ie.B,T.B],[ie.BASE,T.BASE],[ie.BASEFONT,T.BASEFONT],[ie.BGSOUND,T.BGSOUND],[ie.BIG,T.BIG],[ie.BLOCKQUOTE,T.BLOCKQUOTE],[ie.BODY,T.BODY],[ie.BR,T.BR],[ie.BUTTON,T.BUTTON],[ie.CAPTION,T.CAPTION],[ie.CENTER,T.CENTER],[ie.CODE,T.CODE],[ie.COL,T.COL],[ie.COLGROUP,T.COLGROUP],[ie.DD,T.DD],[ie.DESC,T.DESC],[ie.DETAILS,T.DETAILS],[ie.DIALOG,T.DIALOG],[ie.DIR,T.DIR],[ie.DIV,T.DIV],[ie.DL,T.DL],[ie.DT,T.DT],[ie.EM,T.EM],[ie.EMBED,T.EMBED],[ie.FIELDSET,T.FIELDSET],[ie.FIGCAPTION,T.FIGCAPTION],[ie.FIGURE,T.FIGURE],[ie.FONT,T.FONT],[ie.FOOTER,T.FOOTER],[ie.FOREIGN_OBJECT,T.FOREIGN_OBJECT],[ie.FORM,T.FORM],[ie.FRAME,T.FRAME],[ie.FRAMESET,T.FRAMESET],[ie.H1,T.H1],[ie.H2,T.H2],[ie.H3,T.H3],[ie.H4,T.H4],[ie.H5,T.H5],[ie.H6,T.H6],[ie.HEAD,T.HEAD],[ie.HEADER,T.HEADER],[ie.HGROUP,T.HGROUP],[ie.HR,T.HR],[ie.HTML,T.HTML],[ie.I,T.I],[ie.IMG,T.IMG],[ie.IMAGE,T.IMAGE],[ie.INPUT,T.INPUT],[ie.IFRAME,T.IFRAME],[ie.KEYGEN,T.KEYGEN],[ie.LABEL,T.LABEL],[ie.LI,T.LI],[ie.LINK,T.LINK],[ie.LISTING,T.LISTING],[ie.MAIN,T.MAIN],[ie.MALIGNMARK,T.MALIGNMARK],[ie.MARQUEE,T.MARQUEE],[ie.MATH,T.MATH],[ie.MENU,T.MENU],[ie.META,T.META],[ie.MGLYPH,T.MGLYPH],[ie.MI,T.MI],[ie.MO,T.MO],[ie.MN,T.MN],[ie.MS,T.MS],[ie.MTEXT,T.MTEXT],[ie.NAV,T.NAV],[ie.NOBR,T.NOBR],[ie.NOFRAMES,T.NOFRAMES],[ie.NOEMBED,T.NOEMBED],[ie.NOSCRIPT,T.NOSCRIPT],[ie.OBJECT,T.OBJECT],[ie.OL,T.OL],[ie.OPTGROUP,T.OPTGROUP],[ie.OPTION,T.OPTION],[ie.P,T.P],[ie.PARAM,T.PARAM],[ie.PLAINTEXT,T.PLAINTEXT],[ie.PRE,T.PRE],[ie.RB,T.RB],[ie.RP,T.RP],[ie.RT,T.RT],[ie.RTC,T.RTC],[ie.RUBY,T.RUBY],[ie.S,T.S],[ie.SCRIPT,T.SCRIPT],[ie.SEARCH,T.SEARCH],[ie.SECTION,T.SECTION],[ie.SELECT,T.SELECT],[ie.SOURCE,T.SOURCE],[ie.SMALL,T.SMALL],[ie.SPAN,T.SPAN],[ie.STRIKE,T.STRIKE],[ie.STRONG,T.STRONG],[ie.STYLE,T.STYLE],[ie.SUB,T.SUB],[ie.SUMMARY,T.SUMMARY],[ie.SUP,T.SUP],[ie.TABLE,T.TABLE],[ie.TBODY,T.TBODY],[ie.TEMPLATE,T.TEMPLATE],[ie.TEXTAREA,T.TEXTAREA],[ie.TFOOT,T.TFOOT],[ie.TD,T.TD],[ie.TH,T.TH],[ie.THEAD,T.THEAD],[ie.TITLE,T.TITLE],[ie.TR,T.TR],[ie.TRACK,T.TRACK],[ie.TT,T.TT],[ie.U,T.U],[ie.UL,T.UL],[ie.SVG,T.SVG],[ie.VAR,T.VAR],[ie.WBR,T.WBR],[ie.XMP,T.XMP]]);function nu(e){var t;return(t=zq.get(e))!==null&&t!==void 0?t:T.UNKNOWN}const we=T,$q={[Ne.HTML]:new Set([we.ADDRESS,we.APPLET,we.AREA,we.ARTICLE,we.ASIDE,we.BASE,we.BASEFONT,we.BGSOUND,we.BLOCKQUOTE,we.BODY,we.BR,we.BUTTON,we.CAPTION,we.CENTER,we.COL,we.COLGROUP,we.DD,we.DETAILS,we.DIR,we.DIV,we.DL,we.DT,we.EMBED,we.FIELDSET,we.FIGCAPTION,we.FIGURE,we.FOOTER,we.FORM,we.FRAME,we.FRAMESET,we.H1,we.H2,we.H3,we.H4,we.H5,we.H6,we.HEAD,we.HEADER,we.HGROUP,we.HR,we.HTML,we.IFRAME,we.IMG,we.INPUT,we.LI,we.LINK,we.LISTING,we.MAIN,we.MARQUEE,we.MENU,we.META,we.NAV,we.NOEMBED,we.NOFRAMES,we.NOSCRIPT,we.OBJECT,we.OL,we.P,we.PARAM,we.PLAINTEXT,we.PRE,we.SCRIPT,we.SECTION,we.SELECT,we.SOURCE,we.STYLE,we.SUMMARY,we.TABLE,we.TBODY,we.TD,we.TEMPLATE,we.TEXTAREA,we.TFOOT,we.TH,we.THEAD,we.TITLE,we.TR,we.TRACK,we.UL,we.WBR,we.XMP]),[Ne.MATHML]:new Set([we.MI,we.MO,we.MN,we.MS,we.MTEXT,we.ANNOTATION_XML]),[Ne.SVG]:new Set([we.TITLE,we.FOREIGN_OBJECT,we.DESC]),[Ne.XLINK]:new Set,[Ne.XML]:new Set,[Ne.XMLNS]:new Set},Pb=new Set([we.H1,we.H2,we.H3,we.H4,we.H5,we.H6]);ie.STYLE,ie.SCRIPT,ie.XMP,ie.IFRAME,ie.NOEMBED,ie.NOFRAMES,ie.PLAINTEXT;var H;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(H||(H={}));const vn={DATA:H.DATA,RCDATA:H.RCDATA,RAWTEXT:H.RAWTEXT,SCRIPT_DATA:H.SCRIPT_DATA,PLAINTEXT:H.PLAINTEXT,CDATA_SECTION:H.CDATA_SECTION};function qq(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function gc(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function Yq(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function ps(e){return Yq(e)||gc(e)}function PS(e){return ps(e)||qq(e)}function If(e){return e+32}function bR(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function BS(e){return bR(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function Gq(e){return e===P.NULL?he.nullCharacterReference:e>1114111?he.characterReferenceOutsideUnicodeRange:hR(e)?he.surrogateCharacterReference:pR(e)?he.noncharacterCharacterReference:mR(e)||e===P.CARRIAGE_RETURN?he.controlCharacterReference:null}class Vq{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=H.DATA,this.returnState=H.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Lq(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Hq(Iq,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(he.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(he.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=Gq(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:xt.START_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:xt.END_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:xt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:xt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(gR(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(he.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=nu(t.tagName),t.type===xt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(he.endTagWithAttributes),t.selfClosing&&this._err(he.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case xt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case xt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case xt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:xt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=bR(t)?xt.WHITESPACE_CHARACTER:t===P.NULL?xt.NULL_CHARACTER:xt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(xt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=H.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ki.Attribute:ki.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===H.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===H.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===H.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case H.DATA:{this._stateData(t);break}case H.RCDATA:{this._stateRcdata(t);break}case H.RAWTEXT:{this._stateRawtext(t);break}case H.SCRIPT_DATA:{this._stateScriptData(t);break}case H.PLAINTEXT:{this._statePlaintext(t);break}case H.TAG_OPEN:{this._stateTagOpen(t);break}case H.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case H.TAG_NAME:{this._stateTagName(t);break}case H.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case H.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case H.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case H.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case H.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case H.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case H.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case H.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case H.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case H.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case H.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case H.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case H.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case H.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case H.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case H.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case H.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case H.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case H.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case H.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case H.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case H.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case H.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case H.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case H.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case H.BOGUS_COMMENT:{this._stateBogusComment(t);break}case H.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case H.COMMENT_START:{this._stateCommentStart(t);break}case H.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case H.COMMENT:{this._stateComment(t);break}case H.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case H.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case H.COMMENT_END:{this._stateCommentEnd(t);break}case H.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case H.DOCTYPE:{this._stateDoctype(t);break}case H.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case H.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case H.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case H.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case H.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case H.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case H.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case H.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case H.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case H.CDATA_SECTION:{this._stateCdataSection(t);break}case H.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case H.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case H.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case H.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=H.TAG_OPEN;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(he.unexpectedNullCharacter),this._emitCodePoint(t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case P.AMPERSAND:{this._startCharacterReference();break}case P.LESS_THAN_SIGN:{this.state=H.RCDATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(cn);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case P.LESS_THAN_SIGN:{this.state=H.RAWTEXT_LESS_THAN_SIGN;break}case P.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(cn);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(cn);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(cn);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ps(t))this._createStartTagToken(),this.state=H.TAG_NAME,this._stateTagName(t);else switch(t){case P.EXCLAMATION_MARK:{this.state=H.MARKUP_DECLARATION_OPEN;break}case P.SOLIDUS:{this.state=H.END_TAG_OPEN;break}case P.QUESTION_MARK:{this._err(he.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(he.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(he.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=H.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ps(t))this._createEndTagToken(),this.state=H.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(he.missingEndTagName),this.state=H.DATA;break}case P.EOF:{this._err(he.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(he.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=H.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this.state=H.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.tagName+=cn;break}case P.EOF:{this._err(he.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(gc(t)?If(t):t)}}_stateRcdataLessThanSign(t){t===P.SOLIDUS?this.state=H.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=H.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ps(t)?(this.state=H.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=H.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=H.BEFORE_ATTRIBUTE_NAME,!1;case P.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=H.SELF_CLOSING_START_TAG,!1;case P.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=H.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===P.SOLIDUS?this.state=H.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ps(t)?(this.state=H.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case P.SOLIDUS:{this.state=H.SCRIPT_DATA_END_TAG_OPEN;break}case P.EXCLAMATION_MARK:{this.state=H.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=H.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ps(t)?(this.state=H.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===P.HYPHEN_MINUS?(this.state=H.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===P.HYPHEN_MINUS?(this.state=H.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(cn);break}case P.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_ESCAPED,this._emitChars(cn);break}case P.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.GREATER_THAN_SIGN:{this.state=H.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_ESCAPED,this._emitChars(cn);break}case P.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===P.SOLIDUS?this.state=H.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ps(t)?(this._emitChars("<"),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ps(t)?(this.state=H.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Sr.SCRIPT,!1)&&BS(this.preprocessor.peek(Sr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Sr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(cn);break}case P.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(cn);break}case P.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.GREATER_THAN_SIGN:{this.state=H.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(cn);break}case P.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===P.SOLIDUS?(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Sr.SCRIPT,!1)&&BS(this.preprocessor.peek(Sr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Sr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=H.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this.state=H.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._err(he.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=H.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=H.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this._leaveAttrName(),this.state=H.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._leaveAttrName(),this.state=H.BEFORE_ATTRIBUTE_VALUE;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:{this._err(he.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.currentAttr.name+=cn;break}default:this.currentAttr.name+=String.fromCodePoint(gc(t)?If(t):t)}}_stateAfterAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:{this.state=H.SELF_CLOSING_START_TAG;break}case P.EQUALS_SIGN:{this.state=H.BEFORE_ATTRIBUTE_VALUE;break}case P.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(he.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=H.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{this.state=H.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this.state=H.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(he.missingAttributeValue),this.state=H.DATA,this.emitCurrentTagToken();break}default:this.state=H.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case P.QUOTATION_MARK:{this.state=H.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.currentAttr.value+=cn;break}case P.EOF:{this._err(he.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case P.APOSTROPHE:{this.state=H.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.currentAttr.value+=cn;break}case P.EOF:{this._err(he.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=H.BEFORE_ATTRIBUTE_NAME;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=H.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(he.unexpectedNullCharacter),this.currentAttr.value+=cn;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(he.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(he.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=H.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this._leaveAttrValue(),this.state=H.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=H.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(he.eofInTag),this._emitEOFToken();break}default:this._err(he.missingWhitespaceBetweenAttributes),this.state=H.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case P.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=H.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(he.eofInTag),this._emitEOFToken();break}default:this._err(he.unexpectedSolidusInTag),this.state=H.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentComment(n);break}case P.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.data+=cn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Sr.DASH_DASH,!0)?(this._createCommentToken(Sr.DASH_DASH.length+1),this.state=H.COMMENT_START):this._consumeSequenceIfMatch(Sr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Sr.DOCTYPE.length+1),this.state=H.DOCTYPE):this._consumeSequenceIfMatch(Sr.CDATA_START,!0)?this.inForeignNode?this.state=H.CDATA_SECTION:(this._err(he.cdataInHtmlContent),this._createCommentToken(Sr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=H.BOGUS_COMMENT):this._ensureHibernation()||(this._err(he.incorrectlyOpenedComment),this._createCommentToken(2),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case P.HYPHEN_MINUS:{this.state=H.COMMENT_START_DASH;break}case P.GREATER_THAN_SIGN:{this._err(he.abruptClosingOfEmptyComment),this.state=H.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=H.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=H.COMMENT_END;break}case P.GREATER_THAN_SIGN:{this._err(he.abruptClosingOfEmptyComment),this.state=H.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(he.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=H.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=H.COMMENT_END_DASH;break}case P.LESS_THAN_SIGN:{n.data+="<",this.state=H.COMMENT_LESS_THAN_SIGN;break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.data+=cn;break}case P.EOF:{this._err(he.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case P.EXCLAMATION_MARK:{n.data+="!",this.state=H.COMMENT_LESS_THAN_SIGN_BANG;break}case P.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=H.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===P.HYPHEN_MINUS?this.state=H.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=H.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===P.HYPHEN_MINUS?this.state=H.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=H.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(he.nestedComment),this.state=H.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=H.COMMENT_END;break}case P.EOF:{this._err(he.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=H.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentComment(n);break}case P.EXCLAMATION_MARK:{this.state=H.COMMENT_END_BANG;break}case P.HYPHEN_MINUS:{n.data+="-";break}case P.EOF:{this._err(he.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=H.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{n.data+="--!",this.state=H.COMMENT_END_DASH;break}case P.GREATER_THAN_SIGN:{this._err(he.incorrectlyClosedComment),this.state=H.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(he.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=H.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=H.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case P.EOF:{this._err(he.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.missingWhitespaceBeforeDoctypeName),this.state=H.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(gc(t))this._createDoctypeToken(String.fromCharCode(If(t))),this.state=H.DOCTYPE_NAME;else switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.NULL:{this._err(he.unexpectedNullCharacter),this._createDoctypeToken(cn),this.state=H.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(he.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.EOF:{this._err(he.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=H.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=H.AFTER_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(n);break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.name+=cn;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(gc(t)?If(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Sr.PUBLIC,!1)?this.state=H.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Sr.SYSTEM,!1)?this.state=H.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(he.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(he.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(he.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(he.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(he.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.publicId+=cn;break}case P.GREATER_THAN_SIGN:{this._err(he.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.publicId+=cn;break}case P.GREATER_THAN_SIGN:{this._err(he.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=H.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case P.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(n);break}case P.QUOTATION_MARK:{this._err(he.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(he.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.QUOTATION_MARK:{n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(he.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(he.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(he.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(he.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.systemId+=cn;break}case P.GREATER_THAN_SIGN:{this._err(he.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(he.unexpectedNullCharacter),n.systemId+=cn;break}case P.GREATER_THAN_SIGN:{this._err(he.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.EOF:{this._err(he.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(he.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=H.DATA;break}case P.NULL:{this._err(he.unexpectedNullCharacter);break}case P.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case P.RIGHT_SQUARE_BRACKET:{this.state=H.CDATA_SECTION_BRACKET;break}case P.EOF:{this._err(he.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===P.RIGHT_SQUARE_BRACKET?this.state=H.CDATA_SECTION_END:(this._emitChars("]"),this.state=H.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case P.GREATER_THAN_SIGN:{this.state=H.DATA;break}case P.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=H.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&PS(this.preprocessor.peek(1))?H.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){PS(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(he.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const ER=new Set([T.DD,T.DT,T.LI,T.OPTGROUP,T.OPTION,T.P,T.RB,T.RP,T.RT,T.RTC]),US=new Set([...ER,T.CAPTION,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]),Th=new Set([T.APPLET,T.CAPTION,T.HTML,T.MARQUEE,T.OBJECT,T.TABLE,T.TD,T.TEMPLATE,T.TH]),Kq=new Set([...Th,T.OL,T.UL]),Xq=new Set([...Th,T.BUTTON]),FS=new Set([T.ANNOTATION_XML,T.MI,T.MN,T.MO,T.MS,T.MTEXT]),HS=new Set([T.DESC,T.FOREIGN_OBJECT,T.TITLE]),Wq=new Set([T.TR,T.TEMPLATE,T.HTML]),Qq=new Set([T.TBODY,T.TFOOT,T.THEAD,T.TEMPLATE,T.HTML]),Zq=new Set([T.TABLE,T.TEMPLATE,T.HTML]),Jq=new Set([T.TD,T.TH]);class eY{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=T.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===T.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ne.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Ne.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Pb,Ne.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Jq,Ne.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Zq,Ne.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Qq,Ne.HTML)}clearBackToTableRowContext(){this.clearBackTo(Wq,Ne.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===T.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===T.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ne.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case Ne.SVG:{if(HS.has(i))return!1;break}case Ne.MATHML:{if(FS.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Th)}hasInListItemScope(t){return this.hasInDynamicScope(t,Kq)}hasInButtonScope(t){return this.hasInDynamicScope(t,Xq)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Ne.HTML:{if(Pb.has(n))return!0;if(Th.has(n))return!1;break}case Ne.SVG:{if(HS.has(n))return!1;break}case Ne.MATHML:{if(FS.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ne.HTML)switch(this.tagIDs[n]){case t:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ne.HTML)switch(this.tagIDs[t]){case T.TBODY:case T.THEAD:case T.TFOOT:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ne.HTML)switch(this.tagIDs[n]){case t:return!0;case T.OPTION:case T.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&ER.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&US.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&US.has(this.currentTagId);)this.pop()}}const y0=3;var Wa;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Wa||(Wa={}));const jS={type:Wa.Marker};class tY{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===Wa.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===o&&this.treeAdapter.getNamespaceURI(f)===l){const m=this.treeAdapter.getAttrList(f);m.length===i&&r.push({idx:c,attrs:m})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<y0)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<y0)return;const i=new Map(n.map(l=>[l.name,l.value]));let o=0;for(let l=0;l<r.length;l++){const c=r[l];c.attrs.every(d=>i.get(d.name)===d.value)&&(o+=1,o>=y0&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(jS)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Wa.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Wa.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(jS);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Wa.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Wa.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Wa.Element&&n.element===t)}}const gs={createDocument(){return{nodeName:"#document",mode:pa.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};gs.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(gs.isTextNode(n)){n.value+=t;return}}gs.appendChild(e,gs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&gs.isTextNode(r)?r.value+=t:gs.insertBefore(e,gs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},yR="html",nY="about:legacy-compat",rY="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_R=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],aY=[..._R,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],iY=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),TR=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],sY=[...TR,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function zS(e,t){return t.some(n=>e.startsWith(n))}function oY(e){return e.name===yR&&e.publicId===null&&(e.systemId===null||e.systemId===nY)}function lY(e){if(e.name!==yR)return pa.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===rY)return pa.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),iY.has(n))return pa.QUIRKS;let r=t===null?aY:_R;if(zS(n,r))return pa.QUIRKS;if(r=t===null?TR:sY,zS(n,r))return pa.LIMITED_QUIRKS}return pa.NO_QUIRKS}const $S={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},uY="definitionurl",cY="definitionURL",dY=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),fY=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ne.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ne.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ne.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ne.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ne.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ne.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ne.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ne.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ne.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ne.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ne.XMLNS}]]),hY=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),mY=new Set([T.B,T.BIG,T.BLOCKQUOTE,T.BODY,T.BR,T.CENTER,T.CODE,T.DD,T.DIV,T.DL,T.DT,T.EM,T.EMBED,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HR,T.I,T.IMG,T.LI,T.LISTING,T.MENU,T.META,T.NOBR,T.OL,T.P,T.PRE,T.RUBY,T.S,T.SMALL,T.SPAN,T.STRONG,T.STRIKE,T.SUB,T.SUP,T.TABLE,T.TT,T.U,T.UL,T.VAR]);function pY(e){const t=e.tagID;return t===T.FONT&&e.attrs.some(({name:r})=>r===po.COLOR||r===po.SIZE||r===po.FACE)||mY.has(t)}function xR(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===uY){e.attrs[t].name=cY;break}}function vR(e){for(let t=0;t<e.attrs.length;t++){const n=dY.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function iy(e){for(let t=0;t<e.attrs.length;t++){const n=fY.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function gY(e){const t=hY.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=nu(e.tagName))}function bY(e,t){return t===Ne.MATHML&&(e===T.MI||e===T.MO||e===T.MN||e===T.MS||e===T.MTEXT)}function EY(e,t,n){if(t===Ne.MATHML&&e===T.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===po.ENCODING){const i=n[r].value.toLowerCase();return i===$S.TEXT_HTML||i===$S.APPLICATION_XML}}return t===Ne.SVG&&(e===T.FOREIGN_OBJECT||e===T.DESC||e===T.TITLE)}function yY(e,t,n,r){return(!r||r===Ne.HTML)&&EY(e,t,n)||(!r||r===Ne.MATHML)&&bY(e,t)}const _Y="hidden",TY=8,xY=3;var q;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(q||(q={}));const vY={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},SR=new Set([T.TABLE,T.TBODY,T.TFOOT,T.THEAD,T.TR]),qS={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:gs,onParseError:null};class YS{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=q.INITIAL,this.originalInsertionMode=q.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...qS,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Vq(this.options,this),this.activeFormattingElements=new tY(this.treeAdapter),this.fragmentContextID=r?nu(this.treeAdapter.getTagName(r)):T.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new eY(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...qS,...n};t??(t=r.treeAdapter.createElement(ie.TEMPLATE,Ne.HTML,[]));const i=r.treeAdapter.createElement("documentmock",Ne.HTML,[]),o=new this(r,i,t);return o.fragmentContextID===T.TEMPLATE&&o.tmplInsertionModeStack.unshift(q.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const o=(i=t.location)!==null&&i!==void 0?i:vY,l={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(l)}onItemPush(t,n,r){var i,o;(o=(i=this.treeAdapter).onItemPush)===null||o===void 0||o.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let o,l;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,l=this.fragmentContextID):{current:o,currentTagId:l}=this.openElements,this._setContextModes(o,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Ne.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Ne.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=q.TEXT}switchToPlaintextParsing(){this.insertionMode=q.TEXT,this.originalInsertionMode=q.IN_BODY,this.tokenizer.state=vn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===ie.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ne.HTML))switch(this.fragmentContextID){case T.TITLE:case T.TEXTAREA:{this.tokenizer.state=vn.RCDATA;break}case T.STYLE:case T.XMP:case T.IFRAME:case T.NOEMBED:case T.NOFRAMES:case T.NOSCRIPT:{this.tokenizer.state=vn.RAWTEXT;break}case T.SCRIPT:{this.tokenizer.state=vn.SCRIPT_DATA;break}case T.PLAINTEXT:{this.tokenizer.state=vn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Ne.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ne.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ie.HTML,Ne.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,T.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),o=r?i.lastIndexOf(r):i.length,l=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:d,endCol:f,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:d,endCol:f,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===xt.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===T.SVG&&this.treeAdapter.getTagName(n)===ie.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Ne.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===T.MGLYPH||t.tagID===T.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Ne.HTML)}_processToken(t){switch(t.type){case xt.CHARACTER:{this.onCharacter(t);break}case xt.NULL_CHARACTER:{this.onNullCharacter(t);break}case xt.COMMENT:{this.onComment(t);break}case xt.DOCTYPE:{this.onDoctype(t);break}case xt.START_TAG:{this._processStartTag(t);break}case xt.END_TAG:{this.onEndTag(t);break}case xt.EOF:{this.onEof(t);break}case xt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return yY(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Wa.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=q.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(T.P),this.openElements.popUntilTagNamePopped(T.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case T.TR:{this.insertionMode=q.IN_ROW;return}case T.TBODY:case T.THEAD:case T.TFOOT:{this.insertionMode=q.IN_TABLE_BODY;return}case T.CAPTION:{this.insertionMode=q.IN_CAPTION;return}case T.COLGROUP:{this.insertionMode=q.IN_COLUMN_GROUP;return}case T.TABLE:{this.insertionMode=q.IN_TABLE;return}case T.BODY:{this.insertionMode=q.IN_BODY;return}case T.FRAMESET:{this.insertionMode=q.IN_FRAMESET;return}case T.SELECT:{this._resetInsertionModeForSelect(t);return}case T.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case T.HTML:{this.insertionMode=this.headElement?q.AFTER_HEAD:q.BEFORE_HEAD;return}case T.TD:case T.TH:{if(t>0){this.insertionMode=q.IN_CELL;return}break}case T.HEAD:{if(t>0){this.insertionMode=q.IN_HEAD;return}break}}this.insertionMode=q.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===T.TEMPLATE)break;if(r===T.TABLE){this.insertionMode=q.IN_SELECT_IN_TABLE;return}}this.insertionMode=q.IN_SELECT}_isElementCausesFosterParenting(t){return SR.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case T.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Ne.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case T.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return $q[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){JG(this,t);return}switch(this.insertionMode){case q.INITIAL:{fc(this,t);break}case q.BEFORE_HTML:{_c(this,t);break}case q.BEFORE_HEAD:{Tc(this,t);break}case q.IN_HEAD:{xc(this,t);break}case q.IN_HEAD_NO_SCRIPT:{vc(this,t);break}case q.AFTER_HEAD:{Sc(this,t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:{AR(this,t);break}case q.TEXT:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{_0(this,t);break}case q.IN_TABLE_TEXT:{LR(this,t);break}case q.IN_COLUMN_GROUP:{xh(this,t);break}case q.AFTER_BODY:{vh(this,t);break}case q.AFTER_AFTER_BODY:{Xf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ZG(this,t);return}switch(this.insertionMode){case q.INITIAL:{fc(this,t);break}case q.BEFORE_HTML:{_c(this,t);break}case q.BEFORE_HEAD:{Tc(this,t);break}case q.IN_HEAD:{xc(this,t);break}case q.IN_HEAD_NO_SCRIPT:{vc(this,t);break}case q.AFTER_HEAD:{Sc(this,t);break}case q.TEXT:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{_0(this,t);break}case q.IN_COLUMN_GROUP:{xh(this,t);break}case q.AFTER_BODY:{vh(this,t);break}case q.AFTER_AFTER_BODY:{Xf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bb(this,t);return}switch(this.insertionMode){case q.INITIAL:case q.BEFORE_HTML:case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_TEMPLATE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{Bb(this,t);break}case q.IN_TABLE_TEXT:{hc(this,t);break}case q.AFTER_BODY:{OY(this,t);break}case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{kY(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case q.INITIAL:{LY(this,t);break}case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:{this._err(t,he.misplacedDoctype);break}case q.IN_TABLE_TEXT:{hc(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,he.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?eV(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{fc(this,t);break}case q.BEFORE_HTML:{IY(this,t);break}case q.BEFORE_HEAD:{MY(this,t);break}case q.IN_HEAD:{Fa(this,t);break}case q.IN_HEAD_NO_SCRIPT:{UY(this,t);break}case q.AFTER_HEAD:{HY(this,t);break}case q.IN_BODY:{cr(this,t);break}case q.IN_TABLE:{Hl(this,t);break}case q.IN_TABLE_TEXT:{hc(this,t);break}case q.IN_CAPTION:{PG(this,t);break}case q.IN_COLUMN_GROUP:{ly(this,t);break}case q.IN_TABLE_BODY:{cm(this,t);break}case q.IN_ROW:{dm(this,t);break}case q.IN_CELL:{FG(this,t);break}case q.IN_SELECT:{MR(this,t);break}case q.IN_SELECT_IN_TABLE:{jG(this,t);break}case q.IN_TEMPLATE:{$G(this,t);break}case q.AFTER_BODY:{YG(this,t);break}case q.IN_FRAMESET:{GG(this,t);break}case q.AFTER_FRAMESET:{KG(this,t);break}case q.AFTER_AFTER_BODY:{WG(this,t);break}case q.AFTER_AFTER_FRAMESET:{QG(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?tV(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{fc(this,t);break}case q.BEFORE_HTML:{DY(this,t);break}case q.BEFORE_HEAD:{PY(this,t);break}case q.IN_HEAD:{BY(this,t);break}case q.IN_HEAD_NO_SCRIPT:{FY(this,t);break}case q.AFTER_HEAD:{jY(this,t);break}case q.IN_BODY:{um(this,t);break}case q.TEXT:{AG(this,t);break}case q.IN_TABLE:{Uc(this,t);break}case q.IN_TABLE_TEXT:{hc(this,t);break}case q.IN_CAPTION:{BG(this,t);break}case q.IN_COLUMN_GROUP:{UG(this,t);break}case q.IN_TABLE_BODY:{Ub(this,t);break}case q.IN_ROW:{DR(this,t);break}case q.IN_CELL:{HG(this,t);break}case q.IN_SELECT:{PR(this,t);break}case q.IN_SELECT_IN_TABLE:{zG(this,t);break}case q.IN_TEMPLATE:{qG(this,t);break}case q.AFTER_BODY:{UR(this,t);break}case q.IN_FRAMESET:{VG(this,t);break}case q.AFTER_FRAMESET:{XG(this,t);break}case q.AFTER_AFTER_BODY:{Xf(this,t);break}}}onEof(t){switch(this.insertionMode){case q.INITIAL:{fc(this,t);break}case q.BEFORE_HTML:{_c(this,t);break}case q.BEFORE_HEAD:{Tc(this,t);break}case q.IN_HEAD:{xc(this,t);break}case q.IN_HEAD_NO_SCRIPT:{vc(this,t);break}case q.AFTER_HEAD:{Sc(this,t);break}case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{OR(this,t);break}case q.TEXT:{wG(this,t);break}case q.IN_TABLE_TEXT:{hc(this,t);break}case q.IN_TEMPLATE:{BR(this,t);break}case q.AFTER_BODY:case q.IN_FRAMESET:case q.AFTER_FRAMESET:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{oy(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===P.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.TEXT:case q.IN_COLUMN_GROUP:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{this._insertCharacters(t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:case q.AFTER_BODY:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{NR(this,t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{_0(this,t);break}case q.IN_TABLE_TEXT:{kR(this,t);break}}}}function SY(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):RR(e,t),n}function NY(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function AY(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,l=i;l!==n;o++,l=i){i=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),d=c&&o>=xY;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=wY(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function wY(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function CY(e,t,n){const r=e.treeAdapter.getTagName(t),i=nu(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===T.TEMPLATE&&o===Ne.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function RY(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function sy(e,t){for(let n=0;n<TY;n++){const r=SY(e,t);if(!r)break;const i=NY(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const o=AY(e,i,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),l&&CY(e,l,o),RY(e,i,r)}}function Bb(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function OY(e,t){e._appendCommentNode(t,e.openElements.items[0])}function kY(e,t){e._appendCommentNode(t,e.document)}function oy(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(o);l&&!l.endTag&&e._setEndLocation(o,t)}}}}function LY(e,t){e._setDocumentType(t);const n=t.forceQuirks?pa.QUIRKS:lY(t);oY(t)||e._err(t,he.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=q.BEFORE_HTML}function fc(e,t){e._err(t,he.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,pa.QUIRKS),e.insertionMode=q.BEFORE_HTML,e._processToken(t)}function IY(e,t){t.tagID===T.HTML?(e._insertElement(t,Ne.HTML),e.insertionMode=q.BEFORE_HEAD):_c(e,t)}function DY(e,t){const n=t.tagID;(n===T.HTML||n===T.HEAD||n===T.BODY||n===T.BR)&&_c(e,t)}function _c(e,t){e._insertFakeRootElement(),e.insertionMode=q.BEFORE_HEAD,e._processToken(t)}function MY(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.HEAD:{e._insertElement(t,Ne.HTML),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD;break}default:Tc(e,t)}}function PY(e,t){const n=t.tagID;n===T.HEAD||n===T.BODY||n===T.HTML||n===T.BR?Tc(e,t):e._err(t,he.endTagWithoutMatchingOpenElement)}function Tc(e,t){e._insertFakeElement(ie.HEAD,T.HEAD),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD,e._processToken(t)}function Fa(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:{e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case T.TITLE:{e._switchToTextParsing(t,vn.RCDATA);break}case T.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,vn.RAWTEXT):(e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_HEAD_NO_SCRIPT);break}case T.NOFRAMES:case T.STYLE:{e._switchToTextParsing(t,vn.RAWTEXT);break}case T.SCRIPT:{e._switchToTextParsing(t,vn.SCRIPT_DATA);break}case T.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(q.IN_TEMPLATE);break}case T.HEAD:{e._err(t,he.misplacedStartTagForHeadElement);break}default:xc(e,t)}}function BY(e,t){switch(t.tagID){case T.HEAD:{e.openElements.pop(),e.insertionMode=q.AFTER_HEAD;break}case T.BODY:case T.BR:case T.HTML:{xc(e,t);break}case T.TEMPLATE:{ko(e,t);break}default:e._err(t,he.endTagWithoutMatchingOpenElement)}}function ko(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==T.TEMPLATE&&e._err(t,he.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,he.endTagWithoutMatchingOpenElement)}function xc(e,t){e.openElements.pop(),e.insertionMode=q.AFTER_HEAD,e._processToken(t)}function UY(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.BASEFONT:case T.BGSOUND:case T.HEAD:case T.LINK:case T.META:case T.NOFRAMES:case T.STYLE:{Fa(e,t);break}case T.NOSCRIPT:{e._err(t,he.nestedNoscriptInHead);break}default:vc(e,t)}}function FY(e,t){switch(t.tagID){case T.NOSCRIPT:{e.openElements.pop(),e.insertionMode=q.IN_HEAD;break}case T.BR:{vc(e,t);break}default:e._err(t,he.endTagWithoutMatchingOpenElement)}}function vc(e,t){const n=t.type===xt.EOF?he.openElementsLeftAfterEof:he.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=q.IN_HEAD,e._processToken(t)}function HY(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.BODY:{e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=q.IN_BODY;break}case T.FRAMESET:{e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_FRAMESET;break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{e._err(t,he.abandonedHeadElementChild),e.openElements.push(e.headElement,T.HEAD),Fa(e,t),e.openElements.remove(e.headElement);break}case T.HEAD:{e._err(t,he.misplacedStartTagForHeadElement);break}default:Sc(e,t)}}function jY(e,t){switch(t.tagID){case T.BODY:case T.HTML:case T.BR:{Sc(e,t);break}case T.TEMPLATE:{ko(e,t);break}default:e._err(t,he.endTagWithoutMatchingOpenElement)}}function Sc(e,t){e._insertFakeElement(ie.BODY,T.BODY),e.insertionMode=q.IN_BODY,lm(e,t)}function lm(e,t){switch(t.type){case xt.CHARACTER:{AR(e,t);break}case xt.WHITESPACE_CHARACTER:{NR(e,t);break}case xt.COMMENT:{Bb(e,t);break}case xt.START_TAG:{cr(e,t);break}case xt.END_TAG:{um(e,t);break}case xt.EOF:{OR(e,t);break}}}function NR(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function AR(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function zY(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function $Y(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function qY(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_FRAMESET)}function YY(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function GY(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Pb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ne.HTML)}function VY(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function KY(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),n||(e.formElement=e.openElements.current))}function XY(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===T.LI&&i===T.LI||(n===T.DD||n===T.DT)&&(i===T.DD||i===T.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==T.ADDRESS&&i!==T.DIV&&i!==T.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function WY(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.tokenizer.state=vn.PLAINTEXT}function QY(e,t){e.openElements.hasInScope(T.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1}function ZY(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ie.A);n&&(sy(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function JY(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function eG(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(T.NOBR)&&(sy(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function tG(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function nG(e,t){e.treeAdapter.getDocumentMode(e.document)!==pa.QUIRKS&&e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=q.IN_TABLE}function wR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function CR(e){const t=gR(e,po.TYPE);return t!=null&&t.toLowerCase()===_Y}function rG(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML),CR(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function aG(e,t){e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0}function iG(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sG(e,t){t.tagName=ie.IMG,t.tagID=T.IMG,wR(e,t)}function oG(e,t){e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.tokenizer.state=vn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=q.TEXT}function lG(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,vn.RAWTEXT)}function uG(e,t){e.framesetOk=!1,e._switchToTextParsing(t,vn.RAWTEXT)}function GS(e,t){e._switchToTextParsing(t,vn.RAWTEXT)}function cG(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===q.IN_TABLE||e.insertionMode===q.IN_CAPTION||e.insertionMode===q.IN_TABLE_BODY||e.insertionMode===q.IN_ROW||e.insertionMode===q.IN_CELL?q.IN_SELECT_IN_TABLE:q.IN_SELECT}function dG(e,t){e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function fG(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ne.HTML)}function hG(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(T.RTC),e._insertElement(t,Ne.HTML)}function mG(e,t){e._reconstructActiveFormattingElements(),xR(t),iy(t),t.selfClosing?e._appendElement(t,Ne.MATHML):e._insertElement(t,Ne.MATHML),t.ackSelfClosing=!0}function pG(e,t){e._reconstructActiveFormattingElements(),vR(t),iy(t),t.selfClosing?e._appendElement(t,Ne.SVG):e._insertElement(t,Ne.SVG),t.ackSelfClosing=!0}function VS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function cr(e,t){switch(t.tagID){case T.I:case T.S:case T.B:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.SMALL:case T.STRIKE:case T.STRONG:{JY(e,t);break}case T.A:{ZY(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{GY(e,t);break}case T.P:case T.DL:case T.OL:case T.UL:case T.DIV:case T.DIR:case T.NAV:case T.MAIN:case T.MENU:case T.ASIDE:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.DETAILS:case T.ADDRESS:case T.ARTICLE:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{YY(e,t);break}case T.LI:case T.DD:case T.DT:{XY(e,t);break}case T.BR:case T.IMG:case T.WBR:case T.AREA:case T.EMBED:case T.KEYGEN:{wR(e,t);break}case T.HR:{iG(e,t);break}case T.RB:case T.RTC:{fG(e,t);break}case T.RT:case T.RP:{hG(e,t);break}case T.PRE:case T.LISTING:{VY(e,t);break}case T.XMP:{lG(e,t);break}case T.SVG:{pG(e,t);break}case T.HTML:{zY(e,t);break}case T.BASE:case T.LINK:case T.META:case T.STYLE:case T.TITLE:case T.SCRIPT:case T.BGSOUND:case T.BASEFONT:case T.TEMPLATE:{Fa(e,t);break}case T.BODY:{$Y(e,t);break}case T.FORM:{KY(e,t);break}case T.NOBR:{eG(e,t);break}case T.MATH:{mG(e,t);break}case T.TABLE:{nG(e,t);break}case T.INPUT:{rG(e,t);break}case T.PARAM:case T.TRACK:case T.SOURCE:{aG(e,t);break}case T.IMAGE:{sG(e,t);break}case T.BUTTON:{QY(e,t);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{tG(e,t);break}case T.IFRAME:{uG(e,t);break}case T.SELECT:{cG(e,t);break}case T.OPTION:case T.OPTGROUP:{dG(e,t);break}case T.NOEMBED:case T.NOFRAMES:{GS(e,t);break}case T.FRAMESET:{qY(e,t);break}case T.TEXTAREA:{oG(e,t);break}case T.NOSCRIPT:{e.options.scriptingEnabled?GS(e,t):VS(e,t);break}case T.PLAINTEXT:{WY(e,t);break}case T.COL:case T.TH:case T.TD:case T.TR:case T.HEAD:case T.FRAME:case T.TBODY:case T.TFOOT:case T.THEAD:case T.CAPTION:case T.COLGROUP:break;default:VS(e,t)}}function gG(e,t){if(e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function bG(e,t){e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,UR(e,t))}function EG(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function yG(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(T.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(T.FORM):n&&e.openElements.remove(n))}function _G(e){e.openElements.hasInButtonScope(T.P)||e._insertFakeElement(ie.P,T.P),e._closePElement()}function TG(e){e.openElements.hasInListItemScope(T.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(T.LI),e.openElements.popUntilTagNamePopped(T.LI))}function xG(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function vG(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function SG(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function NG(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ie.BR,T.BR),e.openElements.pop(),e.framesetOk=!1}function RR(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],l=e.openElements.tagIDs[i];if(r===l&&(r!==T.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,l))break}}function um(e,t){switch(t.tagID){case T.A:case T.B:case T.I:case T.S:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.NOBR:case T.SMALL:case T.STRIKE:case T.STRONG:{sy(e,t);break}case T.P:{_G(e);break}case T.DL:case T.UL:case T.OL:case T.DIR:case T.DIV:case T.NAV:case T.PRE:case T.MAIN:case T.MENU:case T.ASIDE:case T.BUTTON:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.ADDRESS:case T.ARTICLE:case T.DETAILS:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.LISTING:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{EG(e,t);break}case T.LI:{TG(e);break}case T.DD:case T.DT:{xG(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{vG(e);break}case T.BR:{NG(e);break}case T.BODY:{gG(e,t);break}case T.HTML:{bG(e,t);break}case T.FORM:{yG(e);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{SG(e,t);break}case T.TEMPLATE:{ko(e,t);break}default:RR(e,t)}}function OR(e,t){e.tmplInsertionModeStack.length>0?BR(e,t):oy(e,t)}function AG(e,t){var n;t.tagID===T.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function wG(e,t){e._err(t,he.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function _0(e,t){if(e.openElements.currentTagId!==void 0&&SR.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=q.IN_TABLE_TEXT,t.type){case xt.CHARACTER:{LR(e,t);break}case xt.WHITESPACE_CHARACTER:{kR(e,t);break}}else ad(e,t)}function CG(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_CAPTION}function RG(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_COLUMN_GROUP}function OG(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ie.COLGROUP,T.COLGROUP),e.insertionMode=q.IN_COLUMN_GROUP,ly(e,t)}function kG(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_TABLE_BODY}function LG(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ie.TBODY,T.TBODY),e.insertionMode=q.IN_TABLE_BODY,cm(e,t)}function IG(e,t){e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function DG(e,t){CR(t)?e._appendElement(t,Ne.HTML):ad(e,t),t.ackSelfClosing=!0}function MG(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ne.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hl(e,t){switch(t.tagID){case T.TD:case T.TH:case T.TR:{LG(e,t);break}case T.STYLE:case T.SCRIPT:case T.TEMPLATE:{Fa(e,t);break}case T.COL:{OG(e,t);break}case T.FORM:{MG(e,t);break}case T.TABLE:{IG(e,t);break}case T.TBODY:case T.TFOOT:case T.THEAD:{kG(e,t);break}case T.INPUT:{DG(e,t);break}case T.CAPTION:{CG(e,t);break}case T.COLGROUP:{RG(e,t);break}default:ad(e,t)}}function Uc(e,t){switch(t.tagID){case T.TABLE:{e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode());break}case T.TEMPLATE:{ko(e,t);break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:ad(e,t)}}function ad(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,lm(e,t),e.fosterParentingEnabled=n}function kR(e,t){e.pendingCharacterTokens.push(t)}function LR(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ad(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const IR=new Set([T.CAPTION,T.COL,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]);function PG(e,t){const n=t.tagID;IR.has(n)?e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,Hl(e,t)):cr(e,t)}function BG(e,t){const n=t.tagID;switch(n){case T.CAPTION:case T.TABLE:{e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,n===T.TABLE&&Uc(e,t));break}case T.BODY:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:um(e,t)}}function ly(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.COL:{e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case T.TEMPLATE:{Fa(e,t);break}default:xh(e,t)}}function UG(e,t){switch(t.tagID){case T.COLGROUP:{e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE);break}case T.TEMPLATE:{ko(e,t);break}case T.COL:break;default:xh(e,t)}}function xh(e,t){e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE,e._processToken(t))}function cm(e,t){switch(t.tagID){case T.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_ROW;break}case T.TH:case T.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ie.TR,T.TR),e.insertionMode=q.IN_ROW,dm(e,t);break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE,Hl(e,t));break}default:Hl(e,t)}}function Ub(e,t){const n=t.tagID;switch(t.tagID){case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE);break}case T.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE,Uc(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:case T.TR:break;default:Uc(e,t)}}function dm(e,t){switch(t.tagID){case T.TH:case T.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ne.HTML),e.insertionMode=q.IN_CELL,e.activeFormattingElements.insertMarker();break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,cm(e,t));break}default:Hl(e,t)}}function DR(e,t){switch(t.tagID){case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY);break}case T.TABLE:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,Ub(e,t));break}case T.TBODY:case T.TFOOT:case T.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(T.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,Ub(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:break;default:Uc(e,t)}}function FG(e,t){const n=t.tagID;IR.has(n)?(e.openElements.hasInTableScope(T.TD)||e.openElements.hasInTableScope(T.TH))&&(e._closeTableCell(),dm(e,t)):cr(e,t)}function HG(e,t){const n=t.tagID;switch(n){case T.TD:case T.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_ROW);break}case T.TABLE:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),DR(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:break;default:um(e,t)}}function MR(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._insertElement(t,Ne.HTML);break}case T.OPTGROUP:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ne.HTML);break}case T.HR:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case T.INPUT:case T.KEYGEN:case T.TEXTAREA:case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),t.tagID!==T.SELECT&&e._processStartTag(t));break}case T.SCRIPT:case T.TEMPLATE:{Fa(e,t);break}}}function PR(e,t){switch(t.tagID){case T.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===T.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===T.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop();break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop();break}case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode());break}case T.TEMPLATE:{ko(e,t);break}}}function jG(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e._processStartTag(t)):MR(e,t)}function zG(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e.onEndTag(t)):PR(e,t)}function $G(e,t){switch(t.tagID){case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{Fa(e,t);break}case T.CAPTION:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.tmplInsertionModeStack[0]=q.IN_TABLE,e.insertionMode=q.IN_TABLE,Hl(e,t);break}case T.COL:{e.tmplInsertionModeStack[0]=q.IN_COLUMN_GROUP,e.insertionMode=q.IN_COLUMN_GROUP,ly(e,t);break}case T.TR:{e.tmplInsertionModeStack[0]=q.IN_TABLE_BODY,e.insertionMode=q.IN_TABLE_BODY,cm(e,t);break}case T.TD:case T.TH:{e.tmplInsertionModeStack[0]=q.IN_ROW,e.insertionMode=q.IN_ROW,dm(e,t);break}default:e.tmplInsertionModeStack[0]=q.IN_BODY,e.insertionMode=q.IN_BODY,cr(e,t)}}function qG(e,t){t.tagID===T.TEMPLATE&&ko(e,t)}function BR(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):oy(e,t)}function YG(e,t){t.tagID===T.HTML?cr(e,t):vh(e,t)}function UR(e,t){var n;if(t.tagID===T.HTML){if(e.fragmentContext||(e.insertionMode=q.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===T.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else vh(e,t)}function vh(e,t){e.insertionMode=q.IN_BODY,lm(e,t)}function GG(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.FRAMESET:{e._insertElement(t,Ne.HTML);break}case T.FRAME:{e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case T.NOFRAMES:{Fa(e,t);break}}}function VG(e,t){t.tagID===T.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==T.FRAMESET&&(e.insertionMode=q.AFTER_FRAMESET))}function KG(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.NOFRAMES:{Fa(e,t);break}}}function XG(e,t){t.tagID===T.HTML&&(e.insertionMode=q.AFTER_AFTER_FRAMESET)}function WG(e,t){t.tagID===T.HTML?cr(e,t):Xf(e,t)}function Xf(e,t){e.insertionMode=q.IN_BODY,lm(e,t)}function QG(e,t){switch(t.tagID){case T.HTML:{cr(e,t);break}case T.NOFRAMES:{Fa(e,t);break}}}function ZG(e,t){t.chars=cn,e._insertCharacters(t)}function JG(e,t){e._insertCharacters(t),e.framesetOk=!1}function FR(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ne.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function eV(e,t){if(pY(t))FR(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ne.MATHML?xR(t):r===Ne.SVG&&(gY(t),vR(t)),iy(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function tV(e,t){if(t.tagID===T.P||t.tagID===T.BR){FR(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ne.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}ie.AREA,ie.BASE,ie.BASEFONT,ie.BGSOUND,ie.BR,ie.COL,ie.EMBED,ie.FRAME,ie.HR,ie.IMG,ie.INPUT,ie.KEYGEN,ie.LINK,ie.META,ie.PARAM,ie.SOURCE,ie.TRACK,ie.WBR;const nV=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,rV=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),KS={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function HR(e,t){const n=hV(e),r=dR("type",{handlers:{root:aV,element:iV,text:sV,comment:zR,doctype:oV,raw:uV},unknown:cV}),i={parser:n?new YS(KS):YS.getFragmentParser(void 0,KS),handle(c){r(c,i)},stitches:!1,options:t||{}};r(e,i),ru(i,oi());const o=n?i.parser.document:i.parser.getFragment(),l=aq(o,{file:i.options.file});return i.stitches&&td(l,"comment",function(c,d,f){const m=c;if(m.value.stitch&&f&&d!==void 0){const p=f.children;return p[d]=m.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function jR(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function aV(e,t){jR(e.children,t)}function iV(e,t){dV(e,t),jR(e.children,t),fV(e,t)}function sV(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:xt.CHARACTER,chars:e.value,location:id(e)};ru(t,oi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function oV(e,t){const n={type:xt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:id(e)};ru(t,oi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function lV(e,t){t.stitches=!0;const n=mV(e);if("children"in e&&"children"in n){const r=HR({type:"root",children:e.children},t.options);n.children=r.children}zR({type:"comment",value:{stitch:n}},t)}function zR(e,t){const n=e.value,r={type:xt.COMMENT,data:n,location:id(e)};ru(t,oi(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function uV(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,$R(t,oi(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nV,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function cV(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))lV(n,t);else{let r="";throw rV.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function ru(e,t){$R(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=vn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function $R(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function dV(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===vn.PLAINTEXT)return;ru(t,oi(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:ho.html;i===ho.html&&n==="svg"&&(i=ho.svg);const o=yq({...e,children:[]},{space:i===ho.svg?"svg":"html"}),l={type:xt.START_TAG,tagName:n,tagID:nu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:id(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function fV(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&wq.includes(n)||t.parser.tokenizer.state===vn.PLAINTEXT)return;ru(t,rm(e));const r={type:xt.END_TAG,tagName:n,tagID:nu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:id(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===vn.RCDATA||t.parser.tokenizer.state===vn.RAWTEXT||t.parser.tokenizer.state===vn.SCRIPT_DATA)&&(t.parser.tokenizer.state=vn.DATA)}function hV(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function id(e){const t=oi(e)||{line:void 0,column:void 0,offset:void 0},n=rm(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function mV(e){return"children"in e?Fl({...e,children:[]}):Fl(e)}function pV(e){return function(t,n){return HR(t,{...e,file:n})}}function XS(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function gV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function bV(e,t,n){const i=ed((n||{}).ignore||[]),o=EV(t);let l=-1;for(;++l<o.length;)OC(e,"text",c);function c(f,m){let p=-1,E;for(;++p<m.length;){const _=m[p],v=E?E.children:void 0;if(i(_,v?v.indexOf(_):void 0,E))return;E=_}if(E)return d(f,m)}function d(f,m){const p=m[m.length-1],E=o[l][0],_=o[l][1];let v=0;const A=p.children.indexOf(f);let x=!1,O=[];E.lastIndex=0;let L=E.exec(f.value);for(;L;){const B=L.index,k={index:L.index,input:L.input,stack:[...m,f]};let w=_(...L,k);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?E.lastIndex=B+1:(v!==B&&O.push({type:"text",value:f.value.slice(v,B)}),Array.isArray(w)?O.push(...w):w&&O.push(w),v=B+L[0].length,x=!0),!E.global)break;L=E.exec(f.value)}return x?(v<f.value.length&&O.push({type:"text",value:f.value.slice(v)}),p.children.splice(A,1,...O)):O=[f],A+O.length}}function EV(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([yV(i[0]),_V(i[1])])}return t}function yV(e){return typeof e=="string"?new RegExp(gV(e),"g"):e}function _V(e){return typeof e=="function"?e:function(){return e}}const T0="phrasing",x0=["autolink","link","image","label"];function TV(){return{transforms:[CV],enter:{literalAutolink:vV,literalAutolinkEmail:v0,literalAutolinkHttp:v0,literalAutolinkWww:v0},exit:{literalAutolink:wV,literalAutolinkEmail:AV,literalAutolinkHttp:SV,literalAutolinkWww:NV}}}function xV(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:T0,notInConstruct:x0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:T0,notInConstruct:x0},{character:":",before:"[ps]",after:"\\/",inConstruct:T0,notInConstruct:x0}]}}function vV(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function v0(e){this.config.enter.autolinkProtocol.call(this,e)}function SV(e){this.config.exit.autolinkProtocol.call(this,e)}function NV(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function AV(e){this.config.exit.autolinkEmail.call(this,e)}function wV(e){this.exit(e)}function CV(e){bV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,RV],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),OV]],{ignore:["link","linkReference"]})}function RV(e,t,n,r,i){let o="";if(!qR(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!kV(n)))return!1;const l=LV(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function OV(e,t,n,r){return!qR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function kV(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function LV(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=XS(e,"(");let o=XS(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function qR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||No(n)||am(n))&&(!t||n!==47)}YR.peek=jV;function IV(){this.buffer()}function DV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function MV(){this.buffer()}function PV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function BV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ia(this.sliceSerialize(e)).toLowerCase(),n.label=t}function UV(e){this.exit(e)}function FV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ia(this.sliceSerialize(e)).toLowerCase(),n.label=t}function HV(e){this.exit(e)}function jV(){return"["}function YR(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),l(),o+=i.move("]"),o}function zV(){return{enter:{gfmFootnoteCallString:IV,gfmFootnoteCall:DV,gfmFootnoteDefinitionLabelString:MV,gfmFootnoteDefinition:PV},exit:{gfmFootnoteCallString:BV,gfmFootnoteCall:UV,gfmFootnoteDefinitionLabelString:FV,gfmFootnoteDefinition:HV}}}function $V(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:YR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const c=o.createTracker(l);let d=c.move("[^");const f=o.enter("footnoteDefinition"),m=o.enter("label");return d+=c.move(o.safe(o.associationId(r),{before:d,after:"]"})),m(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
291
- `:" ")+o.indentLines(o.containerFlow(r,c.current()),t?GR:qV))),f(),d}}function qV(e,t,n){return t===0?e:GR(e,t,n)}function GR(e,t,n){return(n?"":" ")+e}const YV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];VR.peek=WV;function GV(){return{canContainEols:["delete"],enter:{strikethrough:KV},exit:{strikethrough:XV}}}function VV(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:YV}],handlers:{delete:VR}}}function KV(e){this.enter({type:"delete",children:[]},e)}function XV(e){this.exit(e)}function VR(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function WV(){return"~"}function QV(e){return e.length}function ZV(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||QV,o=[],l=[],c=[],d=[];let f=0,m=-1;for(;++m<e.length;){const S=[],A=[];let x=-1;for(e[m].length>f&&(f=e[m].length);++x<e[m].length;){const O=JV(e[m][x]);if(n.alignDelimiters!==!1){const L=i(O);A[x]=L,(d[x]===void 0||L>d[x])&&(d[x]=L)}S.push(O)}l[m]=S,c[m]=A}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<f;)o[p]=WS(r[p]);else{const S=WS(r);for(;++p<f;)o[p]=S}p=-1;const E=[],_=[];for(;++p<f;){const S=o[p];let A="",x="";S===99?(A=":",x=":"):S===108?A=":":S===114&&(x=":");let O=n.alignDelimiters===!1?1:Math.max(1,d[p]-A.length-x.length);const L=A+"-".repeat(O)+x;n.alignDelimiters!==!1&&(O=A.length+O+x.length,O>d[p]&&(d[p]=O),_[p]=O),E[p]=L}l.splice(1,0,E),c.splice(1,0,_),m=-1;const v=[];for(;++m<l.length;){const S=l[m],A=c[m];p=-1;const x=[];for(;++p<f;){const O=S[p]||"";let L="",B="";if(n.alignDelimiters!==!1){const k=d[p]-(A[p]||0),w=o[p];w===114?L=" ".repeat(k):w===99?k%2?(L=" ".repeat(k/2+.5),B=" ".repeat(k/2-.5)):(L=" ".repeat(k/2),B=L):B=" ".repeat(k)}n.delimiterStart!==!1&&!p&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||p)&&x.push(" "),n.alignDelimiters!==!1&&x.push(L),x.push(O),n.alignDelimiters!==!1&&x.push(B),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||p!==f-1)&&x.push("|")}v.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return v.join(`
292
- `)}function JV(e){return e==null?"":String(e)}function WS(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function eK(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),tK);return i(),l}function tK(e,t,n){return">"+(n?"":" ")+e}function nK(e,t){return QS(e,t.inConstruct,!0)&&!QS(e,t.notInConstruct,!1)}function QS(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ZS(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
293
- `&&nK(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
294
- `}function rK(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function aK(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iK(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function sK(e,t,n,r){const i=iK(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(aK(e,n)){const p=n.enter("codeIndented"),E=n.indentLines(o,oK);return p(),E}const c=n.createTracker(r),d=i.repeat(Math.max(rK(o,i)+1,3)),f=n.enter("codeFenced");let m=c.move(d);if(e.lang){const p=n.enter(`codeFencedLang${l}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${l}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
295
- `,encode:["`"],...c.current()})),p()}return m+=c.move(`
296
- `),o&&(m+=c.move(o+`
297
- `)),m+=c.move(d),f(),m}function oK(e,t,n){return(n?"":" ")+e}function uy(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lK(e,t,n,r){const i=uy(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
298
- `,...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+i),f+=d.move(n.safe(e.title,{before:f,after:i,...d.current()})),f+=d.move(i),c()),l(),f}function uK(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Fc(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Sh(e,t,n){const r=Ul(e),i=Ul(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}KR.peek=cK;function KR(e,t,n,r){const i=uK(n),o=n.enter("emphasis"),l=n.createTracker(r),c=l.move(i);let d=l.move(n.containerPhrasing(e,{after:i,before:c,...l.current()}));const f=d.charCodeAt(0),m=Sh(r.before.charCodeAt(r.before.length-1),f,i);m.inside&&(d=Fc(f)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Sh(r.after.charCodeAt(0),p,i);E.inside&&(d=d.slice(0,-1)+Fc(p));const _=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+_}function cK(e,t,n){return n.options.emphasis||"*"}function dK(e,t){let n=!1;return td(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,wb}),!!((!e.depth||e.depth<3)&&GE(e)&&(t.options.setext||n))}function fK(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(dK(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),E=n.containerPhrasing(e,{...o.current(),before:`
299
- `,after:`
300
- `});return p(),m(),E+`
301
- `+(i===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
302
- `))+1))}const l="#".repeat(i),c=n.enter("headingAtx"),d=n.enter("phrasing");o.move(l+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
303
- `,...o.current()});return/^[\t ]/.test(f)&&(f=Fc(f.charCodeAt(0))+f.slice(1)),f=f?l+" "+f:l,n.options.closeAtx&&(f+=" "+l),d(),c(),f}XR.peek=hK;function XR(e){return e.value||""}function hK(){return"<"}WR.peek=mK;function WR(e,t,n,r){const i=uy(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=d.move(" "+i),f+=d.move(n.safe(e.title,{before:f,after:i,...d.current()})),f+=d.move(i),c()),f+=d.move(")"),l(),f}function mK(){return"!"}QR.peek=pK;function QR(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const m=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=m,o(),i==="full"||!f||f!==p?d+=c.move(p+"]"):i==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function pK(){return"!"}ZR.peek=gK;function ZR(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],c=n.compilePattern(l);let d;if(l.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return i+r+i}function gK(){return"`"}function JR(e,t){const n=GE(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}eO.peek=bK;function eO(e,t,n,r){const i=uy(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,d;if(JR(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=l.move("<");return p+=l.move(n.containerPhrasing(e,{before:p,after:">",...l.current()})),p+=l.move(">"),c(),n.stack=m,p}c=n.enter("link"),d=n.enter("label");let f=l.move("[");return f+=l.move(n.containerPhrasing(e,{before:f,after:"](",...l.current()})),f+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=l.move("<"),f+=l.move(n.safe(e.url,{before:f,after:">",...l.current()})),f+=l.move(">")):(d=n.enter("destinationRaw"),f+=l.move(n.safe(e.url,{before:f,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${o}`),f+=l.move(" "+i),f+=l.move(n.safe(e.title,{before:f,after:i,...l.current()})),f+=l.move(i),d()),f+=l.move(")"),c(),f}function bK(e,t,n){return JR(e,n)?"<":"["}tO.peek=EK;function tO(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const m=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=m,o(),i==="full"||!f||f!==p?d+=c.move(p+"]"):i==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function EK(){return"["}function cy(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function yK(e){const t=cy(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function _K(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nO(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function TK(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?_K(n):cy(n);const c=e.ordered?l==="."?")":".":yK(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),nO(n)===l&&m){let p=-1;for(;++p<e.children.length;){const E=e.children[p];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=c),n.bulletCurrent=l;const f=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),f}function xK(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vK(e,t,n,r){const i=xK(n);let o=n.bulletCurrent||cy(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(o+" ".repeat(l-o.length)),c.shift(l);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),m);return d(),f;function m(p,E,_){return E?(_?"":" ".repeat(l))+p:(_?o:o+" ".repeat(l-o.length))+p}}function SK(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const NK=ed(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function AK(e,t,n,r){return(e.children.some(function(l){return NK(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function wK(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rO.peek=CK;function rO(e,t,n,r){const i=wK(n),o=n.enter("strong"),l=n.createTracker(r),c=l.move(i+i);let d=l.move(n.containerPhrasing(e,{after:i,before:c,...l.current()}));const f=d.charCodeAt(0),m=Sh(r.before.charCodeAt(r.before.length-1),f,i);m.inside&&(d=Fc(f)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Sh(r.after.charCodeAt(0),p,i);E.inside&&(d=d.slice(0,-1)+Fc(p));const _=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+_}function CK(e,t,n){return n.options.strong||"*"}function RK(e,t,n,r){return n.safe(e.value,r)}function OK(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function kK(e,t,n){const r=(nO(n)+(n.options.ruleSpaces?" ":"")).repeat(OK(n));return n.options.ruleSpaces?r.slice(0,-1):r}const aO={blockquote:eK,break:ZS,code:sK,definition:lK,emphasis:KR,hardBreak:ZS,heading:fK,html:XR,image:WR,imageReference:QR,inlineCode:ZR,link:eO,linkReference:tO,list:TK,listItem:vK,paragraph:SK,root:AK,strong:rO,text:RK,thematicBreak:kK};function LK(){return{enter:{table:IK,tableData:JS,tableHeader:JS,tableRow:MK},exit:{codeText:PK,table:DK,tableData:S0,tableHeader:S0,tableRow:S0}}}function IK(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function DK(e){this.exit(e),this.data.inTable=void 0}function MK(e){this.enter({type:"tableRow",children:[]},e)}function S0(e){this.exit(e)}function JS(e){this.enter({type:"tableCell",children:[]},e)}function PK(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,BK));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function BK(e,t){return t==="|"?t:e}function UK(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
304
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:l,tableCell:d,tableRow:c}};function l(_,v,S,A){return f(m(_,S,A),_.align)}function c(_,v,S,A){const x=p(_,S,A),O=f([x]);return O.slice(0,O.indexOf(`
305
- `))}function d(_,v,S,A){const x=S.enter("tableCell"),O=S.enter("phrasing"),L=S.containerPhrasing(_,{...A,before:o,after:o});return O(),x(),L}function f(_,v){return ZV(_,{align:v,alignDelimiters:r,padding:n,stringLength:i})}function m(_,v,S){const A=_.children;let x=-1;const O=[],L=v.enter("table");for(;++x<A.length;)O[x]=p(A[x],v,S);return L(),O}function p(_,v,S){const A=_.children;let x=-1;const O=[],L=v.enter("tableRow");for(;++x<A.length;)O[x]=d(A[x],_,v,S);return L(),O}function E(_,v,S){let A=aO.inlineCode(_,v,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function FK(){return{exit:{taskListCheckValueChecked:eN,taskListCheckValueUnchecked:eN,paragraph:jK}}}function HK(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zK}}}function eN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function jK(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const c=i[o];if(c.type==="paragraph"){l=c;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function zK(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(l);let d=aO.listItem(e,t,n,{...r,...c.current()});return o&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(m){return m+l}}function $K(){return[TV(),zV(),GV(),LK(),FK()]}function qK(e){return{extensions:[xV(),$V(e),VV(),UK(e),HK()]}}const YK={tokenize:QK,partial:!0},iO={tokenize:ZK,partial:!0},sO={tokenize:JK,partial:!0},oO={tokenize:eX,partial:!0},GK={tokenize:tX,partial:!0},lO={name:"wwwAutolink",tokenize:XK,previous:cO},uO={name:"protocolAutolink",tokenize:WK,previous:dO},Hi={name:"emailAutolink",tokenize:KK,previous:fO},li={};function VK(){return{text:li}}let so=48;for(;so<123;)li[so]=Hi,so++,so===58?so=65:so===91&&(so=97);li[43]=Hi;li[45]=Hi;li[46]=Hi;li[95]=Hi;li[72]=[Hi,uO];li[104]=[Hi,uO];li[87]=[Hi,lO];li[119]=[Hi,lO];function KK(e,t,n){const r=this;let i,o;return l;function l(p){return!Fb(p)||!fO.call(r,r.previous)||dy(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return Fb(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(GK,m,f)(p):p===45||p===95||or(p)?(o=!0,e.consume(p),d):m(p)}function f(p){return e.consume(p),i=!0,d}function m(p){return o&&i&&br(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function XK(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!cO.call(r,r.previous)||dy(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(YK,e.attempt(iO,e.attempt(sO,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function WK(e,t,n){const r=this;let i="",o=!1;return l;function l(p){return(p===72||p===104)&&dO.call(r,r.previous)&&!dy(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(br(p)&&i.length<5)return i+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const E=i.toLowerCase();if(E==="http"||E==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),o?f:(o=!0,d)):n(p)}function f(p){return p===null||bh(p)||Qt(p)||No(p)||am(p)?n(p):e.attempt(iO,e.attempt(sO,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function QK(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function ZK(e,t,n){let r,i,o;return l;function l(f){return f===46||f===95?e.check(oO,d,c)(f):f===null||Qt(f)||No(f)||f!==45&&am(f)?d(f):(o=!0,e.consume(f),l)}function c(f){return f===95?r=!0:(i=r,r=void 0),e.consume(f),l}function d(f){return i||r||!o?n(f):t(f)}}function JK(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(oO,t,o)(l):l===null||Qt(l)||No(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function eX(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),o):c===93?(e.consume(c),i):c===60||c===null||Qt(c)||No(c)?t(c):n(c)}function i(c){return c===null||c===40||c===91||Qt(c)||No(c)?t(c):r(c)}function o(c){return br(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):br(c)?(e.consume(c),l):n(c)}}function tX(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return or(o)?n(o):t(o)}}function cO(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Qt(e)}function dO(e){return!br(e)}function fO(e){return!(e===47||Fb(e))}function Fb(e){return e===43||e===45||e===46||e===95||or(e)}function dy(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const nX={tokenize:cX,partial:!0};function rX(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:oX,continuation:{tokenize:lX},exit:uX}},text:{91:{name:"gfmFootnoteCall",tokenize:sX},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aX,resolveTo:iX}}}}function aX(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const d=r.events[i][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!l||!l._balanced)return n(d);const f=Ia(r.sliceSerialize({start:l.end,end:r.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function iX(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function sX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(p){if(o>999||p===93&&!l||p===null||p===91||Qt(p))return n(p);if(p===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return i.includes(Ia(r.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return Qt(p)||(l=!0),o++,e.consume(p),p===92?m:f}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function oX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,c;return d;function d(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(v)}function m(v){if(l>999||v===93&&!c||v===null||v===91||Qt(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return o=Ia(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return Qt(v)||(c=!0),l++,e.consume(v),v===92?p:m}function p(v){return v===91||v===92||v===93?(e.consume(v),l++,m):m(v)}function E(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),i.includes(o)||i.push(o),Mt(e,_,"gfmFootnoteDefinitionWhitespace")):n(v)}function _(v){return t(v)}}function lX(e,t,n){return e.check(Jc,t,e.attempt(nX,t,n))}function uX(e){e.exit("gfmFootnoteDefinition")}function cX(e,t,n){const r=this;return Mt(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function dX(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,c){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let f=d;for(;f--;)if(l[f][0]==="exit"&&l[f][1].type==="strikethroughSequenceTemporary"&&l[f][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[f][1].end.offset-l[f][1].start.offset){l[d][1].type="strikethroughSequence",l[f][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},l[f][1].start),end:Object.assign({},l[d][1].end)},p={type:"strikethroughText",start:Object.assign({},l[f][1].end),end:Object.assign({},l[d][1].start)},E=[["enter",m,c],["enter",l[f][1],c],["exit",l[f][1],c],["enter",p,c]],_=c.parser.constructs.insideSpan.null;_&&Zr(E,E.length,0,im(_,l.slice(f+1,d),c)),Zr(E,E.length,0,[["exit",p,c],["enter",l[d][1],c],["exit",l[d][1],c],["exit",m,c]]),Zr(l,f-1,d-f+3,E),d=f+E.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function o(l,c,d){const f=this.previous,m=this.events;let p=0;return E;function E(v){return f===126&&m[m.length-1][1].type!=="characterEscape"?d(v):(l.enter("strikethroughSequenceTemporary"),_(v))}function _(v){const S=Ul(f);if(v===126)return p>1?d(v):(l.consume(v),p++,_);if(p<2&&!n)return d(v);const A=l.exit("strikethroughSequenceTemporary"),x=Ul(v);return A._open=!x||x===2&&!!S,A._close=!S||S===2&&!!x,c(v)}}}class fX{constructor(){this.map=[]}add(t,n,r){hX(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function hX(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function mX(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function pX(){return{flow:{null:{name:"table",tokenize:gX,resolveAll:bX}}}}function gX(e,t,n){const r=this;let i=0,o=0,l;return c;function c(M){let J=r.events.length-1;for(;J>-1;){const ne=r.events[J][1].type;if(ne==="lineEnding"||ne==="linePrefix")J--;else break}const X=J>-1?r.events[J][1].type:null,V=X==="tableHead"||X==="tableRow"?w:d;return V===w&&r.parser.lazy[r.now().line]?n(M):V(M)}function d(M){return e.enter("tableHead"),e.enter("tableRow"),f(M)}function f(M){return M===124||(l=!0,o+=1),m(M)}function m(M){return M===null?n(M):nt(M)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),_):n(M):Ct(M)?Mt(e,m,"whitespace")(M):(o+=1,l&&(l=!1,i+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),l=!0,m):(e.enter("data"),p(M)))}function p(M){return M===null||M===124||Qt(M)?(e.exit("data"),m(M)):(e.consume(M),M===92?E:p)}function E(M){return M===92||M===124?(e.consume(M),p):p(M)}function _(M){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(M):(e.enter("tableDelimiterRow"),l=!1,Ct(M)?Mt(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):v(M))}function v(M){return M===45||M===58?A(M):M===124?(l=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),S):k(M)}function S(M){return Ct(M)?Mt(e,A,"whitespace")(M):A(M)}function A(M){return M===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),x):M===45?(o+=1,x(M)):M===null||nt(M)?B(M):k(M)}function x(M){return M===45?(e.enter("tableDelimiterFiller"),O(M)):k(M)}function O(M){return M===45?(e.consume(M),O):M===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(M))}function L(M){return Ct(M)?Mt(e,B,"whitespace")(M):B(M)}function B(M){return M===124?v(M):M===null||nt(M)?!l||i!==o?k(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):k(M)}function k(M){return n(M)}function w(M){return e.enter("tableRow"),U(M)}function U(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),U):M===null||nt(M)?(e.exit("tableRow"),t(M)):Ct(M)?Mt(e,U,"whitespace")(M):(e.enter("data"),j(M))}function j(M){return M===null||M===124||Qt(M)?(e.exit("data"),U(M)):(e.consume(M),M===92?F:j)}function F(M){return M===92||M===124?(e.consume(M),j):j(M)}}function bX(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],c=!1,d=0,f,m,p;const E=new fX;for(;++n<e.length;){const _=e[n],v=_[1];_[0]==="enter"?v.type==="tableHead"?(c=!1,d!==0&&(tN(E,t,d,f,m),m=void 0,d=0),f={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",f,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(r=!0,p=void 0,o=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",m,t]])),i=v.type==="tableDelimiterRow"?2:m?3:1):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],p=Df(E,t,o,i,void 0,p),o=[0,0,0,0]),l[2]=n)):v.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],p=Df(E,t,o,i,void 0,p)),o=l,l=[o[1],n,0,0])):v.type==="tableHead"?(c=!0,d=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(d=n,o[1]!==0?(l[0]=l[1],p=Df(E,t,o,i,n,p)):l[1]!==0&&(p=Df(E,t,l,i,n,p)),i=0):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&tN(E,t,d,f,m),E.consume(t.events),n=-1;++n<t.events.length;){const _=t.events[n];_[0]==="enter"&&_[1].type==="table"&&(_[1]._align=mX(t.events,n))}return e}function Df(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},Tl(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const d=Tl(t.events,n[1]);if(o={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const f=Tl(t.events,n[2]),m=Tl(t.events,n[3]),p={type:c,start:Object.assign({},f),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const E=t.events[n[2]],_=t.events[n[3]];if(E[1].end=Object.assign({},_[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return i!==void 0&&(o.end=Object.assign({},Tl(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function tN(e,t,n,r,i){const o=[],l=Tl(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Tl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const EX={name:"tasklistCheck",tokenize:_X};function yX(){return{text:{91:EX}}}function _X(e,t,n){const r=this;return i;function i(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),o)}function o(d){return Qt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return nt(d)?t(d):Ct(d)?e.check({tokenize:TX},t,n)(d):n(d)}}function TX(e,t,n){return Mt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function xX(e){return dC([VK(),rX(),dX(e),pX(),yX()])}const vX={};function SX(e){const t=this,n=e||vX,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(xX(n)),o.push($K()),l.push(qK(n))}function fy({content:e,className:t}){return N.useEffect(()=>{document.querySelectorAll("link[data-hljs-theme]").forEach(o=>o.remove());const r=document.documentElement.classList.contains("dark")?"github-dark":"github",i=document.createElement("link");return i.rel="stylesheet",i.href=`/node_modules/highlight.js/styles/${r}.css`,i.setAttribute("data-hljs-theme","true"),document.head.appendChild(i),()=>{document.querySelectorAll("link[data-hljs-theme]").forEach(o=>o.remove())}},[]),b.jsx("div",{className:et("markdown-renderer prose dark:prose-invert max-w-none",t),children:b.jsx(ez,{remarkPlugins:[SX],rehypePlugins:[pV,[G$,{detect:!0,ignoreMissing:!0}]],components:{pre:({node:n,...r})=>{const i=N.useRef(null),[o,l]=N.useState(!1);return b.jsxs("div",{className:"relative group",children:[b.jsx("pre",{className:"bg-muted p-4 rounded-md overflow-x-auto text-sm my-4",...r,ref:i}),b.jsx("button",{className:"absolute top-3 right-3 bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground p-1.5 rounded-md opacity-0 group-hover:opacity-100 transition-opacity shadow-sm border border-border",onClick:()=>{var d;const c=(d=i.current)==null?void 0:d.innerText;c&&(navigator.clipboard.writeText(c),l(!0),setTimeout(()=>l(!1),2e3))},"aria-label":o?"Copied":"Copy code",title:o?"Copied":"Copy code",children:o?b.jsx(iD,{className:"h-4 w-4"}):b.jsx(cD,{className:"h-4 w-4"})})]})},code:({node:n,className:r,children:i,...o})=>/language-(\w+)/.exec(r||"")?b.jsx("code",{className:r,...o,children:i}):b.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono",...o,children:i}),a:({node:n,...r})=>b.jsx("a",{className:"text-primary underline hover:text-primary/80",...r}),h1:({node:n,...r})=>b.jsx("h1",{className:"text-2xl font-bold tracking-tight mt-8 mb-4",...r}),h2:({node:n,...r})=>b.jsx("h2",{className:"text-xl font-bold tracking-tight mt-8 mb-4",...r}),h3:({node:n,...r})=>b.jsx("h3",{className:"text-lg font-bold tracking-tight mt-6 mb-3",...r}),h4:({node:n,...r})=>b.jsx("h4",{className:"text-sm font-bold tracking-tight mt-4 mb-2 underline",...r}),ul:({node:n,...r})=>b.jsx("ul",{className:"list-disc pl-6 my-4",...r}),ol:({node:n,...r})=>b.jsx("ol",{className:"list-decimal pl-6 my-4",...r}),blockquote:({node:n,...r})=>b.jsx("blockquote",{className:"border-l-4 border-muted-foreground/30 pl-4 italic my-4",...r}),table:({node:n,...r})=>b.jsx("div",{className:"overflow-x-auto my-6",children:b.jsx("table",{className:"w-full border-collapse",...r})}),th:({node:n,...r})=>b.jsx("th",{className:"border border-border px-4 py-2 text-left font-bold bg-muted",...r}),td:({node:n,...r})=>b.jsx("td",{className:"border border-border px-4 py-2",...r}),summary:({node:n,...r})=>b.jsx("summary",{className:"text-lg font-bold tracking-tight mt-1 mb-1 cursor-pointer hover:text-primary transition-colors",...r}),details:({node:n,...r})=>b.jsx("details",{className:"border rounded-md border-border my-4 p-4 bg-muted/20 hover:bg-muted/30 transition-colors shadow-sm",...r})},children:e})})}var fm="Popover",[hO,xW]=Is(fm,[Uh]),sd=Uh(),[NX,Ps]=hO(fm),mO=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!1}=e,c=sd(t),d=N.useRef(null),[f,m]=N.useState(!1),[p,E]=$c({prop:r,defaultProp:i??!1,onChange:o,caller:fm});return b.jsx(t2,{...c,children:b.jsx(NX,{scope:t,contentId:Wr(),triggerRef:d,open:p,onOpenChange:E,onOpenToggle:N.useCallback(()=>E(_=>!_),[E]),hasCustomAnchor:f,onCustomAnchorAdd:N.useCallback(()=>m(!0),[]),onCustomAnchorRemove:N.useCallback(()=>m(!1),[]),modal:l,children:n})})};mO.displayName=fm;var pO="PopoverAnchor",AX=N.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Ps(pO,n),o=sd(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return N.useEffect(()=>(l(),()=>c()),[l,c]),b.jsx(EE,{...o,...r,ref:t})});AX.displayName=pO;var gO="PopoverTrigger",bO=N.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Ps(gO,n),o=sd(n),l=yn(t,i.triggerRef),c=b.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":xO(i.open),...r,ref:l,onClick:Lt(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:b.jsx(EE,{asChild:!0,...o,children:c})});bO.displayName=gO;var hy="PopoverPortal",[wX,CX]=hO(hy,{forceMount:void 0}),EO=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=Ps(hy,t);return b.jsx(wX,{scope:t,forceMount:n,children:b.jsx(ea,{present:n||o.open,children:b.jsx(Lh,{asChild:!0,container:i,children:r})})})};EO.displayName=hy;var jl="PopoverContent",yO=N.forwardRef((e,t)=>{const n=CX(jl,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=Ps(jl,e.__scopePopover);return b.jsx(ea,{present:r||o.open,children:o.modal?b.jsx(OX,{...i,ref:t}):b.jsx(kX,{...i,ref:t})})});yO.displayName=jl;var RX=Rl("PopoverContent.RemoveScroll"),OX=N.forwardRef((e,t)=>{const n=Ps(jl,e.__scopePopover),r=N.useRef(null),i=yn(t,r),o=N.useRef(!1);return N.useEffect(()=>{const l=r.current;if(l)return pA(l)},[]),b.jsx(tE,{as:RX,allowPinchZoom:!0,children:b.jsx(_O,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lt(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),o.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Lt(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;o.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:Lt(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),kX=N.forwardRef((e,t)=>{const n=Ps(jl,e.__scopePopover),r=N.useRef(!1),i=N.useRef(!1);return b.jsx(_O,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),_O=N.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,...p}=e,E=Ps(jl,n),_=sd(n);return sA(),b.jsx(eE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:b.jsx(kh,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>E.onOpenChange(!1),children:b.jsx(n2,{"data-state":xO(E.open),role:"dialog",id:E.contentId,..._,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),TO="PopoverClose",LX=N.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Ps(TO,n);return b.jsx(Ot.button,{type:"button",...r,ref:t,onClick:Lt(e.onClick,()=>i.onOpenChange(!1))})});LX.displayName=TO;var IX="PopoverArrow",DX=N.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=sd(n);return b.jsx(r2,{...i,...r,ref:t})});DX.displayName=IX;function xO(e){return e?"open":"closed"}var MX=mO,PX=bO,BX=EO,UX=yO;function FX({...e}){return b.jsx(MX,{"data-slot":"popover",...e})}function HX({...e}){return b.jsx(PX,{"data-slot":"popover-trigger",...e})}function jX({className:e,align:t="center",sideOffset:n=4,...r}){return b.jsx(BX,{children:b.jsx(UX,{"data-slot":"popover-content",align:t,sideOffset:n,className:et("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}const zX=kr({id:wt(),name:wt(),method:wt(),path:wt()}),$X=kr({id:wt(),name:wt(),description:wt(),jsonSchema:Er(),tabs:La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>Vw))),relatedTypes:La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>gh))),relatedEndpoints:La(e=>Array.isArray(e)?e:[e],ka(Cr(()=>zX)))}),qX=Er(),Hb="GET /api/data/get/schema/{id}| -> application/json",jb="deamon_api";function vO(e={}){let[t,n,r]=Fi({key:(e==null?void 0:e.key)??"default",operation:Hb,source:jb,schema:$X,errorSchema:qX}),i=N.useCallback(o=>{let{id:l,...c}=o;return n({method:"get",url:`/api/data/get/schema/${l}`,headers:{},params:c,key:`${jb}: ${Hb}`,source:"deamon_api"}),Ui()},[n]);return N.useEffect(()=>(e.fetchOnMount&&i(e.params),()=>{e.clearOnUnmount&&r()}),[]),[t,i,r]}vO.key=`${jb}: ${Hb}`;const SO=vO;function nN({schemaId:e,schemaName:t,sourceId:n,buttonText:r="View Model Schema"}){const[i,o]=N.useState(!1),[l,c]=SO({clearOnUnmount:!0,fetchOnMount:!1,params:{id:e}}),d=m=>{o(m),m&&c({id:e})},f=Oi.useMemo(()=>lr(l)?l.data:null,[l]);return b.jsxs("div",{className:"flex",children:[b.jsxs(FX,{open:i,onOpenChange:d,children:[b.jsx(HX,{asChild:!0,children:b.jsxs(Ii,{variant:"outline",size:"sm",className:"rounded-r-none border-r-0",children:[b.jsx(BN,{className:"mr-2 h-4 w-4"}),r]})}),b.jsxs(jX,{className:"w-[500px] p-0",align:"start",children:[$h(l)&&b.jsxs("div",{className:"p-4 space-y-2",children:[b.jsx("div",{className:"h-4 w-48 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-8 w-96 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-72 bg-muted rounded animate-pulse"})]}),Kl(l)&&b.jsx("div",{className:"p-4",children:b.jsx("p",{className:"text-destructive",children:"Failed to load schema data"})}),f&&b.jsxs("div",{className:"p-4",children:[b.jsx("h3",{className:"text-lg font-semibold mb-2",children:f.name}),b.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:f.description}),f.tabs&&f.tabs.length>0&&b.jsxs(Wc,{defaultValue:f.tabs[0].name,className:"w-full",children:[b.jsx(Qc,{className:"mb-4",children:f.tabs.map(m=>b.jsx(ks,{value:m.name,children:m.name},m.name))}),f.tabs.map(m=>b.jsx(Li,{value:m.name,className:"mt-0",children:b.jsx(Kr,{children:b.jsx(Xr,{className:"pt-6",children:b.jsx(fy,{content:m.content.trim()})})})},m.name))]})]})]})]}),b.jsx(Ii,{variant:"outline",size:"sm",className:"rounded-l-none px-2",asChild:!0,children:b.jsx(Mn,{to:`/sources/${n}/datatype/${e}`,rel:"noopener noreferrer",children:b.jsx(ED,{className:"h-4 w-4"})})})]})}function NO(){const[e]=tm(),t=N.useMemo(()=>lr(e)?e.data.files.length:0,[]);return t===0?null:b.jsxs("div",{className:"flex items-center gap-1 bg-muted px-2 py-1 rounded-full text-xs font-medium",children:[b.jsx(FN,{className:"h-3 w-3"}),b.jsx("span",{children:t})]})}function AO({sourceId:e,id:t,type:n}){const[r]=tm(),[i,o]=N.useState([]);return N.useEffect(()=>{lr(r)&&o(r.data.files)},[r]),$h(r)?b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx(vs,{children:"Usage"}),b.jsxs(Ss,{children:["Loading files where this ",n," is used..."]})]}),b.jsx(Xr,{children:b.jsx("div",{className:"flex justify-center py-4",children:b.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})})})]}):Kl(r)?b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx(vs,{children:"Usage"}),b.jsxs(Ss,{children:["Files where this ",n," is used"]})]}),b.jsx(Xr,{children:b.jsx("div",{className:"text-center text-muted-foreground py-2",children:r.error.message})})]}):b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx(vs,{children:"Usage"}),b.jsx(Ss,{children:n==="datatype"?"TSX files where this datatype is used (usage will not count unless explicitly imported)":"TSX files where this endpoint is used"})]}),b.jsx(Xr,{children:i.length===0?b.jsxs("div",{className:"text-center text-muted-foreground py-2",children:["No TSX files found using this ",n]}):b.jsx(mh,{className:"h-[200px]",children:b.jsx("div",{className:"px-2 py-1",children:i.map((l,c)=>{const d=l.split("/"),f=d[d.length-1],m=d.slice(0,-1).join("/");return b.jsxs(N.Fragment,{children:[b.jsxs("div",{className:"flex items-center py-2 px-2 rounded-md hover:bg-accent/50",children:[b.jsx("div",{className:"mr-2 flex-shrink-0",children:b.jsx(FN,{className:"h-4 w-4 text-muted-foreground"})}),b.jsxs("div",{className:"flex-1 truncate",children:[b.jsx("div",{className:"font-medium text-sm truncate",children:f}),b.jsx("div",{className:"text-xs text-muted-foreground truncate font-mono",children:m})]})]}),c<i.length-1&&b.jsx(Oh,{className:"my-1"})]},c)})})})})]})}function YX(){var o,l,c;const{sourceId:e,endpointId:t}=Vb();tm({clearOnUnmount:!0,fetchOnMount:!0,params:{sourceId:e??"",id:t??"",type:"endpoint"}});const[n,r]=qU({clearOnUnmount:!0,fetchOnMount:!0,params:{id:t??""}});N.useEffect(()=>{r({id:t??""})},[t]);const i=N.useMemo(()=>lr(n)?n.data:(Kl(n)&&console.error(n),null),[n]);return $h(n)?b.jsxs("div",{className:"container mx-auto space-y-8 py-6",children:[b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx("div",{className:"h-4 w-24 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-8 w-64 bg-muted rounded animate-pulse"}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"h-6 w-16 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-6 w-48 bg-muted rounded animate-pulse"})]}),b.jsx("div",{className:"h-4 w-96 bg-muted rounded animate-pulse"})]}),b.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[b.jsx("div",{className:"md:col-span-2 h-96 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-64 bg-muted rounded animate-pulse"})]}),b.jsx("div",{className:"h-96 bg-muted rounded animate-pulse"})]}):i?b.jsxs("div",{className:"container mx-auto space-y-8 py-6",children:[b.jsxs("div",{className:"flex flex-col gap-2 relative",children:[b.jsx(UE,{children:b.jsxs(FE,{children:[b.jsx(xs,{children:b.jsx(Dc,{asChild:!0,children:b.jsx(Mn,{to:"/sources",children:"Sources"})})}),b.jsx(Mc,{}),b.jsx(xs,{children:b.jsx(Dc,{asChild:!0,children:b.jsx(Mn,{to:`/sources/${e}`,children:e})})}),b.jsx(Mc,{}),b.jsx(xs,{children:b.jsx(HE,{children:i.name})})]})}),b.jsx("div",{className:"absolute top-0 right-0",children:b.jsx(Jh,{item:{id:i.id||t||"",name:i.name,source:e||"",type:"endpoint",accessTime:new Date().toISOString()}})}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:i.name}),b.jsx(NO,{})]}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:`px-2 py-1 text-xs font-medium rounded-md text-white ${i.method==="GET"?"bg-blue-600":i.method==="POST"?"bg-green-600":i.method==="PUT"?"bg-yellow-600":"bg-red-600"}`,children:i.method}),b.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1 rounded",children:i.path})]}),b.jsx("p",{className:"text-muted-foreground",children:i.description})]}),b.jsxs(Wc,{defaultValue:((l=(o=i.tabs)==null?void 0:o[0])==null?void 0:l.name)??"overview",className:"w-full",children:[b.jsxs(Qc,{className:"mb-4",children:[b.jsx(ks,{value:"overview",children:"Overview"}),i.tabs&&i.tabs.map(d=>b.jsx(ks,{value:d.name,children:d.name},d.name))]}),b.jsx(Li,{value:"overview",children:b.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[b.jsxs(Kr,{className:"md:col-span-2",children:[b.jsxs(Ja,{children:[b.jsx(vs,{children:"Request"}),b.jsxs(Ss,{children:["Information about the request for ",i.name," endpoint"]})]}),b.jsxs(Xr,{className:"space-y-6",children:[i.requestBody&&b.jsxs("div",{className:"border-b pb-4",children:[b.jsx("h3",{className:"text-sm font-medium mb-2",children:"Request Model"}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1 rounded",children:i.requestBody.name}),b.jsx(nN,{schemaId:i.requestBody.id,schemaName:i.requestBody.name,sourceId:e||"",buttonText:"View Model Schema"})]})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-sm font-medium mb-2",children:"Parameters"}),i.variables&&i.variables.length>0?b.jsx("div",{className:"border rounded-md overflow-hidden",children:b.jsxs("table",{className:"w-full text-sm",children:[b.jsx("thead",{className:"bg-muted",children:b.jsxs("tr",{children:[b.jsx("th",{className:"text-left p-2 font-medium",children:"Parameter"}),b.jsx("th",{className:"text-left p-2 font-medium",children:"Type"}),b.jsx("th",{className:"text-left p-2 font-medium",children:"Required"}),b.jsx("th",{className:"text-left p-2 font-medium",children:"Description"})]})}),b.jsx("tbody",{className:"divide-y",children:i.variables.map(d=>b.jsxs("tr",{children:[b.jsx("td",{className:"p-2 font-mono",children:d.name}),b.jsx("td",{className:"p-2 font-mono text-xs",children:d.relatedType&&b.jsx(Mn,{to:`/sources/${e}/datatype/${d.relatedType.id}`,children:d.relatedType.name})}),b.jsx("td",{className:"p-2",children:d.in==="path"?"Yes":"No"}),b.jsx("td",{className:"p-2",children:d.description||""})]},d.name))})]})}):b.jsx("p",{className:"text-muted-foreground",children:"This endpoint doesn't require any parameters."})]})]})]}),b.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx(vs,{children:"Response"}),b.jsx(Ss,{children:"Response data structure"})]}),b.jsxs(Xr,{children:[b.jsxs("div",{className:"mb-4",children:[b.jsx("p",{className:"text-sm mb-2",children:"Response Type:"}),b.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1 rounded block overflow-auto",children:((c=i.response)==null?void 0:c.name)||"No response type defined"})]}),b.jsx("div",{className:"flex flex-col gap-2",children:i.response&&b.jsx(nN,{schemaId:i.response.id,schemaName:i.response.name,sourceId:e||"",buttonText:"View Response Model"})})]})]}),b.jsx(AO,{sourceId:e||"",id:i.id||t||"",type:"endpoint"})]})]})}),i.tabs&&i.tabs.map(d=>b.jsx(Li,{value:d.name,children:b.jsx(Kr,{children:b.jsx(Xr,{className:"pt-6",children:b.jsx(fy,{content:d.content||""})})})},d.name))]})]}):b.jsxs("div",{className:"container mx-auto py-12 text-center",children:[b.jsx("h1",{className:"text-2xl font-bold",children:"Endpoint not found"}),b.jsx("p",{className:"mt-4",children:"The endpoint you're looking for doesn't exist or hasn't been configured yet."}),b.jsx(Ii,{asChild:!0,className:"mt-6",children:b.jsx(Mn,{to:`/sources/${e}`,children:"Back to Source"})})]})}function GX(){return b.jsx(PE,{children:b.jsx(YX,{})})}function VX(){var l,c;const{sourceId:e,datatypeId:t}=Vb();tm({clearOnUnmount:!0,fetchOnMount:!0,params:{sourceId:e??"",id:t??"",type:"datatype"}});const[n,r]=SO({clearOnUnmount:!0,fetchOnMount:!0,params:{id:t??""}});N.useEffect(()=>{r({id:t??""})},[t]);const i=N.useMemo(()=>lr(n)?n.data:(Kl(n)&&console.error(n),null),[n]),o=N.useMemo(()=>i==null?void 0:i.jsonSchema,[i]);return $h(n)?b.jsxs("div",{className:"container mx-auto space-y-8 py-6",children:[b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx("div",{className:"h-4 w-48 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-8 w-96 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-72 bg-muted rounded animate-pulse"})]}),b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx("div",{className:"h-6 w-32 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-64 bg-muted rounded animate-pulse"})]}),b.jsx(Xr,{children:b.jsx("div",{className:"space-y-4",children:[1,2,3,4].map(d=>b.jsxs("div",{className:"flex gap-4",children:[b.jsx("div",{className:"h-4 w-32 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-24 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-24 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-16 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-48 bg-muted rounded animate-pulse"})]},d))})})]}),b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx("div",{className:"h-6 w-40 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-4 w-56 bg-muted rounded animate-pulse"})]}),b.jsx(Xr,{children:b.jsx("div",{className:"space-y-4",children:[1,2].map(d=>b.jsxs("div",{className:"flex justify-between items-center p-3 border rounded-md",children:[b.jsx("div",{className:"h-4 w-64 bg-muted rounded animate-pulse"}),b.jsx("div",{className:"h-8 w-24 bg-muted rounded animate-pulse"})]},d))})})]})]}):i?b.jsxs("div",{className:"container mx-auto space-y-8 py-6",children:[b.jsxs("div",{className:"flex flex-col gap-2 relative",children:[b.jsx(UE,{children:b.jsxs(FE,{children:[b.jsx(xs,{children:b.jsx(Dc,{asChild:!0,children:b.jsx(Mn,{to:"/sources",children:"Sources"})})}),b.jsx(Mc,{}),b.jsx(xs,{children:b.jsx(Dc,{asChild:!0,children:b.jsx(Mn,{to:`/sources/${e}`,children:e})})}),b.jsx(Mc,{}),b.jsx(xs,{children:b.jsx(HE,{children:i.name})})]})}),b.jsx("div",{className:"absolute top-0 right-0",children:b.jsx(Jh,{item:{id:i.id||t||"",name:i.name,source:e||"",type:"schema",accessTime:new Date().toISOString()}})}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:i.name}),b.jsx(NO,{})]}),b.jsx("p",{className:"text-muted-foreground",children:i.description})]}),b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx(vs,{children:"Properties"}),b.jsxs(Ss,{children:["Fields and types for the ",i.name," model"]})]}),b.jsx(Xr,{children:b.jsx("div",{className:"border rounded-md overflow-hidden",children:b.jsxs("table",{className:"w-full text-sm",children:[b.jsx("thead",{className:"bg-muted",children:b.jsxs("tr",{children:[b.jsx("th",{className:"text-left p-2 font-medium",children:"Property"}),b.jsx("th",{className:"text-left p-2 font-medium",children:"Type"}),b.jsx("th",{className:"text-left p-2 font-medium",children:"Format"}),b.jsx("th",{className:"text-left p-2 font-medium",children:"Required"}),b.jsx("th",{className:"text-left p-2 font-medium",children:"Description"})]})}),b.jsx("tbody",{className:"divide-y",children:(l=Object.entries((o==null?void 0:o.properties)??{}))==null?void 0:l.map(([d,f])=>{var p,E;const m=f;return b.jsxs("tr",{children:[b.jsx("td",{className:"p-2 font-mono",children:d}),b.jsx("td",{className:"p-2 font-mono",children:m==null?void 0:m.type}),b.jsx("td",{className:"p-2 font-mono text-xs",children:(m==null?void 0:m.format)||((p=m==null?void 0:m.enum)==null?void 0:p.join(", "))||"-"}),b.jsx("td",{className:"p-2",children:(E=o==null?void 0:o.required)!=null&&E.includes(d)?"Yes":"No"}),b.jsx("td",{className:"p-2",children:m==null?void 0:m.description})]},d)})})]})})})]}),i.tabs&&i.tabs.length>0&&b.jsxs(Wc,{defaultValue:i.tabs[0].name,className:"w-full",children:[b.jsx(Qc,{className:"mb-4",children:i.tabs.map(d=>b.jsx(ks,{value:d.name,children:d.name},d.name))}),i.tabs.map(d=>b.jsx(Li,{value:d.name,className:"mt-0",children:b.jsx(Kr,{children:b.jsx(Xr,{className:"pt-6",children:b.jsx(fy,{content:d.content.trim()})})})},d.name))]}),b.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[b.jsxs(Kr,{children:[b.jsxs(Ja,{children:[b.jsx(vs,{children:"Related Endpoints"}),b.jsx(Ss,{children:"Endpoints that use this model"})]}),b.jsx(Xr,{children:b.jsxs("div",{className:"space-y-3",children:[(c=i.relatedEndpoints)==null?void 0:c.map(d=>b.jsxs("div",{className:"flex justify-between items-center p-3 border rounded-md",children:[b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:`px-2 py-1 text-xs font-medium rounded-md text-white ${d.method==="GET"?"bg-blue-600":d.method==="POST"?"bg-green-600":d.method==="PUT"?"bg-yellow-600":"bg-red-600"}`,children:d.method}),b.jsx("span",{className:"font-medium",children:d.name})]}),b.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1 rounded",children:d.path})]}),b.jsx(Ii,{variant:"outline",size:"sm",asChild:!0,children:b.jsx(Mn,{to:`/sources/${e}/endpoints/${d.id}`,children:"View Details"})})]},d.id)),(!i.relatedEndpoints||i.relatedEndpoints.length===0)&&b.jsx("p",{className:"text-muted-foreground",children:"No related endpoints found for this data type."})]})})]}),b.jsx(AO,{sourceId:e||"",id:i.id||t||"",type:"datatype"})]})]}):b.jsxs("div",{className:"container mx-auto py-12 text-center",children:[b.jsx("h1",{className:"text-2xl font-bold",children:"Data Type not found"}),b.jsx("p",{className:"mt-4",children:"The data type you're looking for doesn't exist or hasn't been configured yet."}),b.jsx(Ii,{asChild:!0,className:"mt-6",children:b.jsx(Mn,{to:`/sources/${e}`,children:"Back to Source"})})]})}function KX(){return b.jsx(PE,{children:b.jsx(VX,{})})}const XX=LI([{path:"/",element:b.jsx(yU,{}),children:[{index:!0,element:b.jsx(AU,{})},{path:"about",element:b.jsx(wU,{})},{path:"dashboard",element:b.jsx(CU,{})},{path:"sources",element:b.jsx(Bf,{to:"/",replace:!0})},{path:"sources/:sourceId",element:b.jsx(HU,{})},{path:"sources/:sourceId/endpoint",element:b.jsx(Bf,{to:e=>`/sources/${e.sourceId}`,replace:!0})},{path:"sources/:sourceId/endpoint/:endpointId",element:b.jsx(GX,{})},{path:"sources/:sourceId/datatype",element:b.jsx(Bf,{to:e=>`./sources/${e.sourceId}`,replace:!0})},{path:"sources/:sourceId/datatype/:datatypeId",element:b.jsx(KX,{})}]}],{basename:"/"}),WX=P3.createRoot(document.getElementById("root"));WX.render(b.jsx(N.StrictMode,{children:b.jsx(i9,{configs:{deamon_api:{baseURL:"http://localhost:3000"}},children:b.jsx(PE,{children:b.jsx(YI,{router:XX})})})}));