cherry-works 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +253 -0
- package/dist/cw.js +116 -0
- package/dist/main.js +4086 -0
- package/dist/portal/index.html +11 -0
- package/dist/portal/logo.png +0 -0
- package/dist/portal/main.js +227 -0
- package/dist/portal/styles.css +2 -0
- package/package.json +97 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
var sN=Object.create;var y0=Object.defineProperty;var lN=Object.getOwnPropertyDescriptor;var uN=Object.getOwnPropertyNames;var cN=Object.getPrototypeOf,fN=Object.prototype.hasOwnProperty;var Nn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cu=(t,e)=>{for(var a in e)y0(t,a,{get:e[a],enumerable:!0})},dN=(t,e,a,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uN(e))!fN.call(t,n)&&n!==a&&y0(t,n,{get:()=>e[n],enumerable:!(r=lN(e,n))||r.enumerable});return t};var L=(t,e,a)=>(a=t!=null?sN(cN(t)):{},dN(e||!t||!t.__esModule?y0(a,"default",{value:t,enumerable:!0}):a,t));var lk=Nn(me=>{"use strict";var S0=Symbol.for("react.transitional.element"),hN=Symbol.for("react.portal"),pN=Symbol.for("react.fragment"),mN=Symbol.for("react.strict_mode"),gN=Symbol.for("react.profiler"),ON=Symbol.for("react.consumer"),xN=Symbol.for("react.context"),yN=Symbol.for("react.forward_ref"),bN=Symbol.for("react.suspense"),vN=Symbol.for("react.memo"),ek=Symbol.for("react.lazy"),SN=Symbol.for("react.activity"),wN=Symbol.for("react.view_transition"),YC=Symbol.iterator;function CN(t){return t===null||typeof t!="object"?null:(t=YC&&t[YC]||t["@@iterator"],typeof t=="function"?t:null)}var tk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ak=Object.assign,rk={};function du(t,e,a){this.props=t,this.context=e,this.refs=rk,this.updater=a||tk}du.prototype.isReactComponent={};du.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};du.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function nk(){}nk.prototype=du.prototype;function w0(t,e,a){this.props=t,this.context=e,this.refs=rk,this.updater=a||tk}var C0=w0.prototype=new nk;C0.constructor=w0;ak(C0,du.prototype);C0.isPureReactComponent=!0;var WC=Array.isArray;function v0(){}var ot={H:null,A:null,T:null,S:null},ik=Object.prototype.hasOwnProperty;function k0(t,e,a){var r=a.ref;return{$$typeof:S0,type:t,key:e,ref:r!==void 0?r:null,props:a}}function kN(t,e){return k0(t.type,e,t.props)}function L0(t){return typeof t=="object"&&t!==null&&t.$$typeof===S0}function LN(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(a){return e[a]})}var KC=/\/+/g;function b0(t,e){return typeof t=="object"&&t!==null&&t.key!=null?LN(""+t.key):e.toString(36)}function TN(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(v0,v0):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function fu(t,e,a,r,n){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case S0:case hN:o=!0;break;case ek:return o=t._init,fu(o(t._payload),e,a,r,n)}}if(o)return n=n(t),o=r===""?"."+b0(t,0):r,WC(n)?(a="",o!=null&&(a=o.replace(KC,"$&/")+"/"),fu(n,e,a,"",function(u){return u})):n!=null&&(L0(n)&&(n=kN(n,a+(n.key==null||t&&t.key===n.key?"":(""+n.key).replace(KC,"$&/")+"/")+o)),e.push(n)),1;o=0;var s=r===""?".":r+":";if(WC(t))for(var l=0;l<t.length;l++)r=t[l],i=s+b0(r,l),o+=fu(r,e,a,i,n);else if(l=CN(t),typeof l=="function")for(t=l.call(t),l=0;!(r=t.next()).done;)r=r.value,i=s+b0(r,l++),o+=fu(r,e,a,i,n);else if(i==="object"){if(typeof t.then=="function")return fu(TN(t),e,a,r,n);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return o}function Uh(t,e,a){if(t==null)return t;var r=[],n=0;return fu(t,r,"","",function(i){return e.call(a,i,n++)}),r}function PN(t){if(t._status===-1){var e=t._result,a=e();a.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r,a.status===void 0&&(a.status="fulfilled",a.value=r))},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r,a.status===void 0&&(a.status="rejected",a.reason=r))}),t._status===-1&&(t._status=0,t._result=a)}if(t._status===1)return t._result.default;throw t._result}var JC=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function ok(t){var e=ot.T,a={};a.types=e!==null?e.types:null,ot.T=a;try{var r=t(),n=ot.S;n!==null&&n(a,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(v0,JC)}catch(i){JC(i)}finally{e!==null&&a.types!==null&&(e.types=a.types),ot.T=e}}function sk(t){var e=ot.T;if(e!==null){var a=e.types;a===null?e.types=[t]:a.indexOf(t)===-1&&a.push(t)}else ok(sk.bind(null,t))}var RN={map:Uh,forEach:function(t,e,a){Uh(t,function(){e.apply(this,arguments)},a)},count:function(t){var e=0;return Uh(t,function(){e++}),e},toArray:function(t){return Uh(t,function(e){return e})||[]},only:function(t){if(!L0(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};me.Activity=SN;me.Children=RN;me.Component=du;me.Fragment=pN;me.Profiler=gN;me.PureComponent=w0;me.StrictMode=mN;me.Suspense=bN;me.ViewTransition=wN;me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ot;me.__COMPILER_RUNTIME={__proto__:null,c:function(t){return ot.H.useMemoCache(t)}};me.addTransitionType=sk;me.cache=function(t){return function(){return t.apply(null,arguments)}};me.cacheSignal=function(){return null};me.cloneElement=function(t,e,a){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var r=ak({},t.props),n=t.key;if(e!=null)for(i in e.key!==void 0&&(n=""+e.key),e)!ik.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(r[i]=e[i]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];r.children=o}return k0(t.type,n,r)};me.createContext=function(t){return t={$$typeof:xN,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:ON,_context:t},t};me.createElement=function(t,e,a){var r,n={},i=null;if(e!=null)for(r in e.key!==void 0&&(i=""+e.key),e)ik.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(n[r]=e[r]);var o=arguments.length-2;if(o===1)n.children=a;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];n.children=s}if(t&&t.defaultProps)for(r in o=t.defaultProps,o)n[r]===void 0&&(n[r]=o[r]);return k0(t,i,n)};me.createRef=function(){return{current:null}};me.forwardRef=function(t){return{$$typeof:yN,render:t}};me.isValidElement=L0;me.lazy=function(t){return{$$typeof:ek,_payload:{_status:-1,_result:t},_init:PN}};me.memo=function(t,e){return{$$typeof:vN,type:t,compare:e===void 0?null:e}};me.startTransition=ok;me.unstable_useCacheRefresh=function(){return ot.H.useCacheRefresh()};me.use=function(t){return ot.H.use(t)};me.useActionState=function(t,e,a){return ot.H.useActionState(t,e,a)};me.useCallback=function(t,e){return ot.H.useCallback(t,e)};me.useContext=function(t){return ot.H.useContext(t)};me.useDebugValue=function(){};me.useDeferredValue=function(t,e){return ot.H.useDeferredValue(t,e)};me.useEffect=function(t,e){return ot.H.useEffect(t,e)};me.useEffectEvent=function(t){return ot.H.useEffectEvent(t)};me.useId=function(){return ot.H.useId()};me.useImperativeHandle=function(t,e,a){return ot.H.useImperativeHandle(t,e,a)};me.useInsertionEffect=function(t,e){return ot.H.useInsertionEffect(t,e)};me.useLayoutEffect=function(t,e){return ot.H.useLayoutEffect(t,e)};me.useMemo=function(t,e){return ot.H.useMemo(t,e)};me.useOptimistic=function(t,e){return ot.H.useOptimistic(t,e)};me.useReducer=function(t,e,a){return ot.H.useReducer(t,e,a)};me.useRef=function(t){return ot.H.useRef(t)};me.useState=function(t){return ot.H.useState(t)};me.useSyncExternalStore=function(t,e,a){return ot.H.useSyncExternalStore(t,e,a)};me.useTransition=function(){return ot.H.useTransition()};me.version="19.3.0"});var F=Nn((XW,uk)=>{"use strict";uk.exports=lk()});var yk=Nn(gt=>{"use strict";function I0(t,e){var a=t.length;t.push(e);e:for(;0<a;){var r=a-1>>>1,n=t[r];if(0<jh(n,e))t[r]=e,t[a]=n,a=r;else break e}}function Xn(t){return t.length===0?null:t[0]}function Hh(t){if(t.length===0)return null;var e=t[0],a=t.pop();if(a!==e){t[0]=a;e:for(var r=0,n=t.length,i=n>>>1;r<i;){var o=2*(r+1)-1,s=t[o],l=o+1,u=t[l];if(0>jh(s,a))l<n&&0>jh(u,s)?(t[r]=u,t[l]=a,r=l):(t[r]=s,t[o]=a,r=o);else if(l<n&&0>jh(u,a))t[r]=u,t[l]=a,r=l;else break e}}return e}function jh(t,e){var a=t.sortIndex-e.sortIndex;return a!==0?a:t.id-e.id}gt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(ck=performance,gt.unstable_now=function(){return ck.now()}):(T0=Date,fk=T0.now(),gt.unstable_now=function(){return T0.now()-fk});var ck,T0,fk,Ci=[],po=[],IN=1,Rr=null,ga=3,A0=!1,mf=!1,gf=!1,Q0=!1,pk=typeof setTimeout=="function"?setTimeout:null,mk=typeof clearTimeout=="function"?clearTimeout:null,dk=typeof setImmediate<"u"?setImmediate:null;function Fh(t){for(var e=Xn(po);e!==null;){if(e.callback===null)Hh(po);else if(e.startTime<=t)Hh(po),e.sortIndex=e.expirationTime,I0(Ci,e);else break;e=Xn(po)}}function M0(t){if(gf=!1,Fh(t),!mf)if(Xn(Ci)!==null)mf=!0,pu||(pu=!0,hu());else{var e=Xn(po);e!==null&&E0(M0,e.startTime-t)}}var pu=!1,Of=-1,gk=5,Ok=-1;function xk(){return Q0?!0:!(gt.unstable_now()-Ok<gk)}function P0(){if(Q0=!1,pu){var t=gt.unstable_now();Ok=t;var e=!0;try{e:{mf=!1,gf&&(gf=!1,mk(Of),Of=-1),A0=!0;var a=ga;try{t:{for(Fh(t),Rr=Xn(Ci);Rr!==null&&!(Rr.expirationTime>t&&xk());){var r=Rr.callback;if(typeof r=="function"){Rr.callback=null,ga=Rr.priorityLevel;var n=r(Rr.expirationTime<=t);if(t=gt.unstable_now(),typeof n=="function"){Rr.callback=n,Fh(t),e=!0;break t}Rr===Xn(Ci)&&Hh(Ci),Fh(t)}else Hh(Ci);Rr=Xn(Ci)}if(Rr!==null)e=!0;else{var i=Xn(po);i!==null&&E0(M0,i.startTime-t),e=!1}}break e}finally{Rr=null,ga=a,A0=!1}e=void 0}}finally{e?hu():pu=!1}}}var hu;typeof dk=="function"?hu=function(){dk(P0)}:typeof MessageChannel<"u"?(R0=new MessageChannel,hk=R0.port2,R0.port1.onmessage=P0,hu=function(){hk.postMessage(null)}):hu=function(){pk(P0,0)};var R0,hk;function E0(t,e){Of=pk(function(){t(gt.unstable_now())},e)}gt.unstable_IdlePriority=5;gt.unstable_ImmediatePriority=1;gt.unstable_LowPriority=4;gt.unstable_NormalPriority=3;gt.unstable_Profiling=null;gt.unstable_UserBlockingPriority=2;gt.unstable_cancelCallback=function(t){t.callback=null};gt.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):gk=0<t?Math.floor(1e3/t):5};gt.unstable_getCurrentPriorityLevel=function(){return ga};gt.unstable_next=function(t){switch(ga){case 1:case 2:case 3:var e=3;break;default:e=ga}var a=ga;ga=e;try{return t()}finally{ga=a}};gt.unstable_requestPaint=function(){Q0=!0};gt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var a=ga;ga=t;try{return e()}finally{ga=a}};gt.unstable_scheduleCallback=function(t,e,a){var r=gt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,t){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=a+n,t={id:IN++,callback:e,priorityLevel:t,startTime:a,expirationTime:n,sortIndex:-1},a>r?(t.sortIndex=a,I0(po,t),Xn(Ci)===null&&t===Xn(po)&&(gf?(mk(Of),Of=-1):gf=!0,E0(M0,a-r))):(t.sortIndex=n,I0(Ci,t),mf||A0||(mf=!0,pu||(pu=!0,hu()))),t};gt.unstable_shouldYield=xk;gt.unstable_wrapCallback=function(t){var e=ga;return function(){var a=ga;ga=e;try{return t.apply(this,arguments)}finally{ga=a}}}});var vk=Nn((ZW,bk)=>{"use strict";bk.exports=yk()});var Ck=Nn(Oa=>{"use strict";var AN=F();function wk(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function mo(){}var ka={d:{f:mo,r:function(){throw Error(wk(522))},D:mo,C:mo,L:mo,m:mo,X:mo,S:mo,M:mo},p:0,findDOMNode:null},QN=Symbol.for("react.portal"),MN=Symbol.for("react.recoverable"),Sk=Symbol.for("react.optimistic_key");function EN(t,e,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:QN,key:r==null?null:r===Sk?Sk:""+r,children:t,containerInfo:e,implementation:a}}var xf=AN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Gh(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Oa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ka;Oa.browser=function(t){return{$$typeof:MN,_reason:t}};Oa.createPortal=function(t,e){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(wk(299));return EN(t,e,null,a)};Oa.flushSync=function(t){var e=xf.T,a=ka.p;try{if(xf.T=null,ka.p=2,t)return t()}finally{xf.T=e,ka.p=a,ka.d.f()}};Oa.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ka.d.C(t,e))};Oa.prefetchDNS=function(t){typeof t=="string"&&ka.d.D(t)};Oa.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var a=e.as,r=Gh(a,e.crossOrigin),n=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;a==="style"?ka.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:r,integrity:n,fetchPriority:i}):a==="script"&&ka.d.X(t,{crossOrigin:r,integrity:n,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Oa.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var a=Gh(e.as,e.crossOrigin);ka.d.M(t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}}else e==null&&ka.d.M(t)};Oa.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var a=e.as,r=Gh(a,e.crossOrigin);ka.d.L(t,a,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Oa.preloadModule=function(t,e){if(typeof t=="string")if(e){var a=Gh(e.as,e.crossOrigin);ka.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}else ka.d.m(t)};Oa.requestFormReset=function(t){ka.d.r(t)};Oa.unstable_batchedUpdates=function(t,e){return t(e)};Oa.useFormState=function(t,e,a){return xf.H.useFormState(t,e,a)};Oa.useFormStatus=function(){return xf.H.useHostTransitionStatus()};Oa.version="19.3.0"});var Es=Nn((UW,Lk)=>{"use strict";function kk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kk)}catch(t){console.error(t)}}kk(),Lk.exports=Ck()});var dI=Nn(Im=>{"use strict";var Xt=vk(),fT=F(),DN=Es();function I(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function dT(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function id(t){for(var e=t,a=e;a&&!a.alternate;)e=a,(e.flags&4098)!==0&&(t=e.return),a=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function hT(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function pT(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Tk(t){if(id(t)!==t)throw Error(I(188))}function $N(t){var e=t.alternate;if(!e){if(e=id(t),e===null)throw Error(I(188));return e!==t?null:t}for(var a=t,r=e;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(r=n.return,r!==null){a=r;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return Tk(n),t;if(i===r)return Tk(n),e;i=i.sibling}throw Error(I(188))}if(a.return!==r.return)a=n,r=i;else{for(var o=!1,s=n.child;s;){if(s===a){o=!0,a=n,r=i;break}if(s===r){o=!0,r=n,a=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===a){o=!0,a=i,r=n;break}if(s===r){o=!0,r=i,a=n;break}s=s.sibling}if(!o)throw Error(I(189))}}if(a.alternate!==r)throw Error(I(190))}if(a.tag!==3)throw Error(I(188));return a.stateNode.current===a?t:e}function mT(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=mT(t),e!==null)return e;t=t.sibling}return null}function Ya(t,e,a,r,n,i){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&a(t,r,n,i)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Ya(t.child,e,a,r,n,i))return!0;t=t.sibling}return!1}function tl(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function Pk(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function gT(t){var e=[null,null],a=tl(t);return a===null||OT(e,t,a.child,{foundSelf:!1}),e}function OT(t,e,a,r){for(;a!==null;){if(a===e)r.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(r.foundSelf)return t[1]=a,!0;t[0]=a}else if((a.tag!==22||a.memoizedState===null)&&OT(t,e,a.child,r))return!0;a=a.sibling}return!1}function Nt(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(I(559))}}var vu=null,dx=null;function BN(t,e,a){return t===a?!0:t===e?(vu=t,!0):!1}function _N(t,e,a){return t===a?(dx=t,!1):t===e?(dx!==null&&(vu=t),!0):!1}function Rk(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function hx(t,e,a){for(var r=0,n=t;n;n=a(n))r++;n=0;for(var i=e;i;i=a(i))n++;for(;0<r-n;)t=a(t),r--;for(;0<n-r;)e=a(e),n--;for(;r--;){if(t===e||e!==null&&t===e.alternate)return t;t=a(t),e=a(e)}return null}var tt=Object.assign,zN=Symbol.for("react.element"),Yh=Symbol.for("react.transitional.element"),kf=Symbol.for("react.portal"),Su=Symbol.for("react.fragment"),xT=Symbol.for("react.strict_mode"),px=Symbol.for("react.profiler"),yT=Symbol.for("react.consumer"),Fn=Symbol.for("react.context"),wy=Symbol.for("react.forward_ref"),mx=Symbol.for("react.suspense"),gx=Symbol.for("react.suspense_list"),Cy=Symbol.for("react.memo"),yo=Symbol.for("react.lazy"),Ox=Symbol.for("react.activity"),NN=Symbol.for("react.legacy_hidden"),XN=Symbol.for("react.memo_cache_sentinel"),xx=Symbol.for("react.view_transition"),qN=Symbol.for("react.recoverable"),Ik=Symbol.iterator;function yf(t){return t===null||typeof t!="object"?null:(t=Ik&&t[Ik]||t["@@iterator"],typeof t=="function"?t:null)}var ZN=Symbol.for("react.client.reference");function yx(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ZN?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Su:return"Fragment";case px:return"Profiler";case xT:return"StrictMode";case mx:return"Suspense";case gx:return"SuspenseList";case Ox:return"Activity";case xx:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case kf:return"Portal";case Fn:return t.displayName||"Context";case yT:return(t._context.displayName||"Context")+".Consumer";case wy:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Cy:return e=t.displayName||null,e!==null?e:yx(t.type)||"Memo";case yo:e=t._payload,t=t._init;try{return yx(t(e))}catch{}}return null}var Lf=Array.isArray,he=fT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=DN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qs={pending:!1,data:null,method:null,action:null},bx=[],wu=-1;function ei(t){return{current:t}}function ia(t){0>wu||(t.current=bx[wu],bx[wu]=null,wu--)}function ut(t,e){wu++,bx[wu]=t.current,t.current=e}var Wn=ei(null),Zf=ei(null),Po=ei(null),$p=ei(null);function Bp(t,e){switch(ut(Po,e),ut(Zf,t),ut(Wn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?VL(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=VL(e),t=XR(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ia(Wn),ut(Wn,t)}function Zu(){ia(Wn),ia(Zf),ia(Po)}function vx(t){var e=t.memoizedState;e!==null&&(Ju._currentValue=e.memoizedState,ut($p,t)),e=Wn.current;var a=XR(e,t.type);e!==a&&(ut(Zf,t),ut(Wn,a))}function _p(t){Zf.current===t&&(ia(Wn),ia(Zf)),$p.current===t&&(ia($p),Ju._currentValue=qs)}var D0,Ak;function Oo(t){if(D0===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);D0=e&&e[1]||"",Ak=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+D0+t+Ak}var $0=!1;function B0(t,e){if(!t||$0)return"";$0=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(e){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var d=p}Reflect.construct(t,[],f)}else{try{f.call()}catch(p){d=p}f=!1;try{var h=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),f=!0,new t}finally{f&&(h!==void 0?Object.defineProperty(t.prototype,"props",h):delete t.prototype.props)}}}else{try{throw Error()}catch(p){d=p}(f=t())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(p){if(p&&d&&typeof p.stack=="string")return[p.stack,d.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split(`
|
|
4
|
+
`),u=s.split(`
|
|
5
|
+
`);for(n=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;if(r===l.length||n===u.length)for(r=l.length-1,n=u.length-1;1<=r&&0<=n&&l[r]!==u[n];)n--;for(;1<=r&&0<=n;r--,n--)if(l[r]!==u[n]){if(r!==1||n!==1)do if(r--,n--,0>n||l[r]!==u[n]){var c=`
|
|
6
|
+
`+l[r].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=r&&0<=n);break}}}finally{$0=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Oo(a):""}function VN(t,e){switch(t.tag){case 26:case 27:case 5:return Oo(t.type);case 16:return Oo("Lazy");case 13:return t.child!==e&&e!==null?Oo("Suspense Fallback"):Oo("Suspense");case 19:return Oo("SuspenseList");case 0:case 15:return B0(t.type,!1);case 11:return B0(t.type.render,!1);case 1:return B0(t.type,!0);case 31:return Oo("Activity");case 30:return Oo("ViewTransition");default:return""}}function Qk(t){try{var e="",a=null;do e+=VN(t,a),a=t,t=t.return;while(t);return e}catch(r){return`
|
|
7
|
+
Error generating stack: `+r.message+`
|
|
8
|
+
`+r.stack}}var Sx=Object.prototype.hasOwnProperty,ky=Xt.unstable_scheduleCallback,_0=Xt.unstable_cancelCallback,UN=Xt.unstable_shouldYield,jN=Xt.unstable_requestPaint,hr=Xt.unstable_now,FN=Xt.unstable_getCurrentPriorityLevel,bT=Xt.unstable_ImmediatePriority,vT=Xt.unstable_UserBlockingPriority,zp=Xt.unstable_NormalPriority,HN=Xt.unstable_LowPriority,ST=Xt.unstable_IdlePriority,GN=Xt.log,YN=Xt.unstable_setDisableYieldValue,od=null,pr=null;function So(t){if(typeof GN=="function"&&YN(t),pr&&typeof pr.setStrictMode=="function")try{pr.setStrictMode(od,t)}catch{}}var mr=Math.clz32?Math.clz32:JN,WN=Math.log,KN=Math.LN2;function JN(t){return t>>>=0,t===0?32:31-(WN(t)/KN|0)|0}var Wh=256,Kh=262144,Jh=4194304;function Bs(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function fm(t,e,a){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var s=r&134217727;return s!==0?(r=s&~i,r!==0?n=Bs(r):(o&=s,o!==0?n=Bs(o):a||(a=s&~t,a!==0&&(n=Bs(a))))):(s=r&~i,s!==0?n=Bs(s):o!==0?n=Bs(o):a||(a=r&~t,a!==0&&(n=Bs(a)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,a=e&-e,i>=a||i===32&&(a&4194048)!==0)?e:n}function sd(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function wT(t,e){(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var r=31-mr(a),n=1<<r;e|=t[r],a&=~n}return e}function e3(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+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 CT(){var t=Jh;return Jh<<=1,(Jh&62914560)===0&&(Jh=4194304),t}function z0(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function ld(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function t3(t,e,a,r,n,i){var o=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var s=t.entanglements,l=t.expirationTimes,u=t.hiddenUpdates;for(a=o&~a;0<a;){var c=31-mr(a),f=1<<c;s[c]=0,l[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];h!==null&&(h.lane&=-536870913)}a&=~f}r!==0&&kT(t,r,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e))}function kT(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var r=31-mr(e);t.entangledLanes|=e,t.entanglements[r]=t.entanglements[r]|1073741824|a&261930}function LT(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var r=31-mr(a),n=1<<r;n&e|t[r]&e&&(t[r]|=e),a&=~n}}function TT(t,e){var a=e&-e;return a=(a&42)!==0?1:Ly(a),(a&(t.suspendedLanes|e))!==0?0:a}function Ly(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ty(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function PT(){var t=Ne.p;return t!==0?t:(t=window.event,t===void 0?32:uI(t.type))}function Mk(t,e){var a=Ne.p;try{return Ne.p=t,e()}finally{Ne.p=a}}var Bi=Math.random().toString(36).slice(2),ra="__reactFiber$"+Bi,Wa="__reactProps$"+Bi,ac="__reactContainer$"+Bi,Ek="__reactEvents$"+Bi,a3="__reactListeners$"+Bi,r3="__reactHandles$"+Bi,Dk="__reactResources$"+Bi,ud="__reactMarker$"+Bi,Np="__reactLoad$"+Bi;function dm(t){delete t[ra],delete t[Wa],delete t[a3],delete t[r3]}function Ns(t){var e;if(e=t[ra])return e;for(var a=t.parentNode;a;){if(e=a[ac]||a[ra]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=KL(t);t!==null;){if(a=t[ra])return a;t=KL(t)}return e}t=a,a=t.parentNode}return null}function rc(t){if(t=t[ra]||t[ac]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Tf(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(I(33))}function Mu(t){var e=t[Dk];return e||(e=t[Dk]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ht(t){t[ud]=!0}function RT(t){t[Np]=void 0}var IT=new Set,AT={};function al(t,e){Vu(t,e),Vu(t+"Capture",e)}function Vu(t,e){for(AT[t]=e,t=0;t<e.length;t++)IT.add(e[t])}var n3=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]*$"),$k={},Bk={};function i3(t){return Sx.call(Bk,t)?!0:Sx.call($k,t)?!1:n3.test(t)?Bk[t]=!0:($k[t]=!0,!1)}var Be=!1;function _k(){var t=Be;return Be=!1,t}function Op(t,e,a){if(i3(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var r=e.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,a)}}function ep(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,a)}}function ki(t,e,a,r){if(r===null)t.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,r)}}function ur(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function QT(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function o3(t,e,a){var r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function wx(t){if(!t._valueTracker){var e=QT(t)?"checked":"value";t._valueTracker=o3(t,e,""+t[e])}}function MT(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),r="";return t&&(r=QT(t)?t.checked?"true":"false":t.value),t=r,t!==a?(e.setValue(t),!0):!1}var s3=/[\n"\\]/g;function Er(t){return t.replace(s3,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Cx(t,e,a,r,n,i,o,s){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ur(e)):t.value!==""+ur(e)&&(t.value=""+ur(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?o==="number"&&t.value==e?N0(t,ur(t.value)):N0(t,ur(e)):a!=null?N0(t,ur(a)):r!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+ur(s):t.removeAttribute("name")}function ET(t,e,a,r,n,i,o,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){wx(t);return}a=a!=null?""+ur(a):"",e=e!=null?""+ur(e):a,s||e===t.value||(t.value=e),t.defaultValue=e}r=r??n,r=typeof r!="function"&&typeof r!="symbol"&&!!r,t.checked=s?t.checked:!!r,t.defaultChecked=!!r,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),wx(t)}function N0(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function Eu(t,e,a,r){if(t=t.options,e){e={};for(var n=0;n<a.length;n++)e["$"+a[n]]=!0;for(a=0;a<t.length;a++)n=e.hasOwnProperty("$"+t[a].value),t[a].selected!==n&&(t[a].selected=n),n&&r&&(t[a].defaultSelected=!0)}else{for(a=""+ur(a),e=null,n=0;n<t.length;n++){if(t[n].value===a){t[n].selected=!0,r&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function DT(t,e,a){if(e!=null&&(e=""+ur(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+ur(a):""}function $T(t,e,a,r){if(e==null){if(r!=null){if(a!=null)throw Error(I(92));if(Lf(r)){if(1<r.length)throw Error(I(93));r=r[0]}a=r}a==null&&(a=""),e=a}a=ur(e),t.defaultValue=a,r=t.textContent,r===a&&r!==""&&r!==null&&(t.value=r),wx(t)}function Uu(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var l3=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 zk(t,e,a){var r=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":r?t.setProperty(e,a):typeof a!="number"||a===0||l3.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function BT(t,e,a){if(e!=null&&typeof e!="object")throw Error(I(62));if(t=t.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||e!=null&&e.hasOwnProperty(r)||(r.indexOf("--")===0?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="",Be=!0);for(var n in e)r=e[n],e.hasOwnProperty(n)&&a[n]!==r&&(zk(t,n,r),Be=!0)}else for(var i in e)e.hasOwnProperty(i)&&zk(t,i,e[i])}function Py(t){if(t.indexOf("-")===-1)return!1;switch(t){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 u3=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"],["maskType","mask-type"],["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"]]),c3=/^[\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 xp(t){return c3.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Hn(){}var kx=null;function Ry(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Cu=null,Du=null;function Nk(t){var e=rc(t);if(e&&(t=e.stateNode)){var a=t[Wa]||null;e:switch(t=e.stateNode,e.type){case"input":if(Cx(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Er(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var r=a[e];if(r!==t&&r.form===t.form){var n=r[Wa]||null;if(!n)throw Error(I(90));Cx(r,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<a.length;e++)r=a[e],r.form===t.form&&MT(r)}break e;case"textarea":DT(t,a.value,a.defaultValue);break e;case"select":e=a.value,e!=null&&Eu(t,!!a.multiple,e,!1)}}}var X0=!1;function _T(t,e,a){if(X0)return t(e,a);X0=!0;try{var r=t(e);return r}finally{if(X0=!1,(Cu!==null||Du!==null)&&(Lm(),Cu&&(e=Cu,t=Du,Du=Cu=null,Nk(e),t)))for(e=0;e<t.length;e++)Nk(t[e])}}function Vf(t,e){var a=t.stateNode;if(a===null)return null;var r=a[Wa]||null;if(r===null)return null;a=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(I(231,e,typeof a));return a}var Ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lx=!1;if(Ai)try{mu={},Object.defineProperty(mu,"passive",{get:function(){Lx=!0}}),window.addEventListener("test",mu,mu),window.removeEventListener("test",mu,mu)}catch{Lx=!1}var mu,wo=null,Iy=null,yp=null;function zT(){if(yp)return yp;var t,e=Iy,a=e.length,r,n="value"in wo?wo.value:wo.textContent,i=n.length;for(t=0;t<a&&e[t]===n[t];t++);var o=a-t;for(r=1;r<=o&&e[a-r]===n[i-r];r++);return yp=n.slice(t,1<r?1-r:void 0)}function bp(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function tp(){return!0}function Xk(){return!1}function Ra(t){function e(a,r,n,i,o){this._reactName=a,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(a=t[s],this[s]=a?a(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?tp:Xk,this.isPropagationStopped=Xk,this}return tt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=tp)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=tp)},persist:function(){},isPersistent:tp}),e}var Zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hm=Ra(Zo),cd=tt({},Zo,{view:0,detail:0}),f3=Ra(cd),q0,Z0,bf,pm=tt({},cd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ay,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==bf&&(bf&&t.type==="mousemove"?(q0=t.screenX-bf.screenX,Z0=t.screenY-bf.screenY):Z0=q0=0,bf=t),q0)},movementY:function(t){return"movementY"in t?t.movementY:Z0}}),qk=Ra(pm),d3=tt({},pm,{dataTransfer:0}),h3=Ra(d3),p3=tt({},cd,{relatedTarget:0}),V0=Ra(p3),m3=tt({},Zo,{animationName:0,elapsedTime:0,pseudoElement:0}),g3=Ra(m3),O3=tt({},Zo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),x3=Ra(O3),y3=tt({},Zo,{data:0}),Zk=Ra(y3),b3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v3={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"},S3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w3(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=S3[t])?!!e[t]:!1}function Ay(){return w3}var C3=tt({},cd,{key:function(t){if(t.key){var e=b3[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=bp(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?v3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ay,charCode:function(t){return t.type==="keypress"?bp(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bp(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),k3=Ra(C3),L3=tt({},pm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vk=Ra(L3),T3=tt({},Zo,{submitter:0}),P3=Ra(T3),R3=tt({},cd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ay}),I3=Ra(R3),A3=tt({},Zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q3=Ra(A3),M3=tt({},pm,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),E3=Ra(M3),D3=tt({},Zo,{newState:0,oldState:0,source:0}),$3=Ra(D3),B3=[9,13,27,32],Qy=Ai&&"CompositionEvent"in window,If=null;Ai&&"documentMode"in document&&(If=document.documentMode);var _3=Ai&&"TextEvent"in window&&!If,NT=Ai&&(!Qy||If&&8<If&&11>=If),Uk=" ",jk=!1;function XT(t,e){switch(t){case"keyup":return B3.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qT(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ku=!1;function z3(t,e){switch(t){case"compositionend":return qT(e);case"keypress":return e.which!==32?null:(jk=!0,Uk);case"textInput":return t=e.data,t===Uk&&jk?null:t;default:return null}}function N3(t,e){if(ku)return t==="compositionend"||!Qy&&XT(t,e)?(t=zT(),yp=Iy=wo=null,ku=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return NT&&e.locale!=="ko"?null:e.data;default:return null}}var X3={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 Fk(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!X3[t.type]:e==="textarea"}function ZT(t,e,a,r){Cu?Du?Du.push(r):Du=[r]:Cu=r,e=lm(e,"onChange"),0<e.length&&(a=new hm("onChange","change",null,a,r),t.push({event:a,listeners:e}))}var Af=null,Uf=null;function q3(t){_R(t,0)}function mm(t){var e=Tf(t);if(MT(e))return t}function Hk(t,e){if(t==="change")return e}var VT=!1;Ai&&(Ai?(rp="oninput"in document,rp||(U0=document.createElement("div"),U0.setAttribute("oninput","return;"),rp=typeof U0.oninput=="function"),ap=rp):ap=!1,VT=ap&&(!document.documentMode||9<document.documentMode));var ap,rp,U0;function Gk(){Af&&(Af.detachEvent("onpropertychange",UT),Uf=Af=null)}function UT(t){if(t.propertyName==="value"&&mm(Uf)){var e=[];ZT(e,Uf,t,Ry(t)),_T(q3,e)}}function Z3(t,e,a){t==="focusin"?(Gk(),Af=e,Uf=a,Af.attachEvent("onpropertychange",UT)):t==="focusout"&&Gk()}function V3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return mm(Uf)}function U3(t,e){if(t==="click")return mm(e)}function j3(t,e){if(t==="input"||t==="change")return mm(e)}function F3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Or=typeof Object.is=="function"?Object.is:F3;function jf(t,e){if(Or(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),r=Object.keys(e);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var n=a[r];if(!Sx.call(e,n)||!Or(t[n],e[n]))return!1}return!0}function Tx(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Yk(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Wk(t,e){var a=Yk(t);t=0;for(var r;a;){if(a.nodeType===3){if(r=t+a.textContent.length,t<=e&&r>=e)return{node:a,offset:e-t};t=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Yk(a)}}function jT(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jT(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function FT(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Tx(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Tx(t.document)}return e}function My(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var H3=Ai&&"documentMode"in document&&11>=document.documentMode,Lu=null,Px=null,Qf=null,Rx=!1;function Kk(t,e,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Rx||Lu==null||Lu!==Tx(r)||(r=Lu,"selectionStart"in r&&My(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qf&&jf(Qf,r)||(Qf=r,r=lm(Px,"onSelect"),0<r.length&&(e=new hm("onSelect","select",null,e,a),t.push({event:e,listeners:r}),e.target=Lu)))}function Ds(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Tu={animationend:Ds("Animation","AnimationEnd"),animationiteration:Ds("Animation","AnimationIteration"),animationstart:Ds("Animation","AnimationStart"),transitionrun:Ds("Transition","TransitionRun"),transitionstart:Ds("Transition","TransitionStart"),transitioncancel:Ds("Transition","TransitionCancel"),transitionend:Ds("Transition","TransitionEnd")},j0={},HT={};Ai&&(HT=document.createElement("div").style,"AnimationEvent"in window||(delete Tu.animationend.animation,delete Tu.animationiteration.animation,delete Tu.animationstart.animation),"TransitionEvent"in window||delete Tu.transitionend.transition);function rl(t){if(j0[t])return j0[t];if(!Tu[t])return t;var e=Tu[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in HT)return j0[t]=e[a];return t}var GT=rl("animationend"),YT=rl("animationiteration"),WT=rl("animationstart"),G3=rl("transitionrun"),Y3=rl("transitionstart"),W3=rl("transitioncancel"),KT=rl("transitionend"),JT=new Map,Ix="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ix.push("scrollEnd");function fn(t,e){JT.set(t,e),al(e,[t])}var K3=0;function Qi(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=cn.identifierPrefix;var a=K3++;return t="_"+t+"t_"+a.toString(32)+"_",e.autoName=t}function Jk(t){if(t==null||typeof t=="string")return t;var e=null,a=qu;if(a!==null)for(var r=0;r<a.length;r++){var n=t[a[r]];if(n!=null){if(n==="none")return"none";e=e==null?n:e+(" "+n)}}return e??t.default}function _i(t,e){return t=Jk(t),e=Jk(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Xp=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ar=[],Pu=0,Ey=0;function gm(){for(var t=Pu,e=Ey=Pu=0;e<t;){var a=Ar[e];Ar[e++]=null;var r=Ar[e];Ar[e++]=null;var n=Ar[e];Ar[e++]=null;var i=Ar[e];if(Ar[e++]=null,r!==null&&n!==null){var o=r.pending;o===null?n.next=n:(n.next=o.next,o.next=n),r.pending=n}i!==0&&eP(a,n,i)}}function Om(t,e,a,r){Ar[Pu++]=t,Ar[Pu++]=e,Ar[Pu++]=a,Ar[Pu++]=r,Ey|=r,t.lanes|=r,t=t.alternate,t!==null&&(t.lanes|=r)}function Dy(t,e,a,r){return Om(t,e,a,r),qp(t)}function nl(t,e){return Om(t,null,null,e),qp(t)}function eP(t,e,a){t.lanes|=a;var r=t.alternate;r!==null&&(r.lanes|=a);for(var n=!1,i=t.return;i!==null;)i.childLanes|=a,r=i.alternate,r!==null&&(r.childLanes|=a),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-mr(a),t=i.hiddenUpdates,r=t[n],r===null?t[n]=[e]:r.push(e),e.lane=a|536870912),i):null}function qp(t){if(50<qf)throw qf=0,Ip=null,Error(I(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ru={};function J3(t,e,a,r){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ha(t,e,a,r){return new J3(t,e,a,r)}function $y(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ri(t,e){var a=t.alternate;return a===null?(a=Ha(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&1206910976,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function tP(t,e){t.flags&=1206910978;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function vp(t,e,a,r,n,i){var o=0;if(r=t,typeof r=="function")$y(r)&&(o=1);else if(typeof r=="string")o=kq(t,a,Wn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(r){case Ox:return t=Ha(31,a,e,n),t.elementType=Ox,t.lanes=i,t;case Su:return Zs(a.children,n,i,e);case xT:o=8,n|=24;break;case px:return t=Ha(12,a,e,n|2),t.elementType=px,t.lanes=i,t;case mx:return t=Ha(13,a,e,n),t.elementType=mx,t.lanes=i,t;case gx:return t=Ha(19,a,e,n),t.elementType=gx,t.lanes=i,t;case NN:case xx:return t=n|32,t=Ha(30,a,e,t),t.elementType=xx,t.lanes=i,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Fn:o=10;break e;case yT:o=9;break e;case wy:o=11;break e;case Cy:o=14;break e;case yo:o=16,r=null;break e}o=29,a=Error(I(130,t===null?"null":typeof t,"")),r=null}return e=Ha(o,a,e,n),e.elementType=t,e.type=r,e.lanes=i,e}function Zs(t,e,a,r){return t=Ha(7,t,r,e),t.lanes=a,t}function F0(t,e,a){return t=Ha(6,t,null,e),t.lanes=a,t}function aP(t){var e=Ha(18,null,null,0);return e.stateNode=t,e}function H0(t,e,a){return e=Ha(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var eL=new WeakMap;function Dr(t,e){if(typeof t=="object"&&t!==null){var a=eL.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Qk(e)},eL.set(t,e),e)}return{value:t,source:e,stack:Qk(e)}}var Iu=[],Au=0,Zp=null,Ff=0,Qr=[],Mr=0,_o=null,Gn=1,Yn="";function Ti(t,e){Iu[Au++]=Ff,Iu[Au++]=Zp,Zp=t,Ff=e}function rP(t,e,a){Qr[Mr++]=Gn,Qr[Mr++]=Yn,Qr[Mr++]=_o,_o=t;var r=Gn;t=Yn;var n=32-mr(r)-1;r&=~(1<<n),a+=1;var i=32-mr(e)+n;if(30<i){var o=n-n%5;i=(r&(1<<o)-1).toString(32),r>>=o,n-=o,Gn=1<<32-mr(e)+n|a<<n|r,Yn=i+t}else Gn=1<<i|a<<n|r,Yn=t}function xm(t){t.return!==null&&(Ti(t,1),rP(t,1,0))}function By(t){for(;t===Zp;)Zp=Iu[--Au],Iu[Au]=null,Ff=Iu[--Au],Iu[Au]=null;for(;t===_o;)_o=Qr[--Mr],Qr[Mr]=null,Yn=Qr[--Mr],Qr[Mr]=null,Gn=Qr[--Mr],Qr[Mr]=null}function nP(t,e){Qr[Mr++]=Gn,Qr[Mr++]=Yn,Qr[Mr++]=_o,Gn=e.id,Yn=e.overflow,_o=t}var Gt=null,lt=null,be=!1,Ro=null,$r=!1,Ax=Error(I(519));function zo(t){var e=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hf(Dr(e,t)),Ax}function tL(t){var e=t.stateNode,a=t.type,r=t.memoizedProps;switch(e[ra]=t,e[Wa]=r,a){case"dialog":Se("cancel",e),Se("close",e);break;case"iframe":case"object":case"embed":Se("load",e);break;case"video":case"audio":for(a=0;a<Kf.length;a++)Se(Kf[a],e);break;case"source":Se("error",e);break;case"img":case"image":case"link":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"input":Se("invalid",e),ET(e,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Se("invalid",e);break;case"textarea":Se("invalid",e),$T(e,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||r.suppressHydrationWarning===!0||NR(e.textContent,a)?(r.popover!=null&&(Se("beforetoggle",e),Se("toggle",e)),r.onScroll!=null&&Se("scroll",e),r.onScrollEnd!=null&&Se("scrollend",e),r.onClick!=null&&(e.onclick=Hn),e=!0):e=!1,e||zo(t,!0)}function Vp(t){for(Gt=t.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:$r=!1;return;case 27:case 3:$r=!0;return;default:Gt=Gt.return}}function gu(t){if(t!==Gt)return!1;if(!be)return Vp(t),be=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||my(t.type,t.memoizedProps)),a=!a),a&<&&zo(t),Vp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(317));lt=WL(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(317));lt=WL(t)}else e===27?(e=lt,Vo(t.type)?(t=yy,yy=null,lt=t):lt=e):lt=Gt?Br(t.stateNode.nextSibling):null;return!0}function Fs(){lt=Gt=null,be=!1}function G0(){var t=Ro;return t!==null&&(ja===null?ja=t:ja.push.apply(ja,t),Ro=null),t}function Hf(t){Ro===null?Ro=[t]:Ro.push(t)}var Qx=ei(null),il=null,Pi=null;function Co(t,e,a){ut(Qx,e._currentValue),e._currentValue=a}function Ii(t){t._currentValue=Qx.current,ia(Qx)}function Sp(t,e,a){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===a)break;t=t.return}}function Mx(t,e,a,r){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var o=n.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=n;for(var l=0;l<e.length;l++)if(s.context===e[l]){i.lanes|=a,s=i.alternate,s!==null&&(s.lanes|=a),Sp(i.return,a,t),r||(o=null);break e}i=s.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(I(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),Sp(o,a,t),o=null}else n.tag===13&&n.memoizedState!==null&&n.memoizedState.dehydrated===null?(n.lanes|=a,o=n.alternate,o!==null&&(o.lanes|=a),Sp(n.return,a,t),o=n.child,o=o!==null?o.sibling:null):o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===t){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Hs(t,e,a,r){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(I(387));if(o=o.memoizedProps,o!==null){var s=n.type;Or(n.pendingProps.value,o.value)||(t!==null?t.push(s):t=[s])}}else if(n===$p.current){if(o=n.alternate,o===null)throw Error(I(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Ju):t=[Ju])}n=n.return}return t!==null&&Mx(e,t,a,r),e.flags|=262144,t!==null}function Up(t){for(t=t.firstContext;t!==null;){if(!Or(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Gs(t){il=t,Pi=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function na(t){return iP(il,t)}function np(t,e){return il===null&&Gs(t),iP(t,e)}function iP(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Pi===null){if(t===null)throw Error(I(308));Pi=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Pi=Pi.next=e;return a}var eX=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,r){t.push(r)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},tX=Xt.unstable_scheduleCallback,aX=Xt.unstable_NormalPriority,Qt={$$typeof:Fn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _y(){return{controller:new eX,data:new Map,refCount:0}}function fd(t){t.refCount--,t.refCount===0&&tX(aX,function(){t.controller.abort()})}function aL(t,e){if((t.pendingLanes&4194048)!==0){var a=t.transitionTypes;for(a===null&&(a=t.transitionTypes=[]),t=0;t<e.length;t++){var r=e[t];a.indexOf(r)===-1&&a.push(r)}}}var Pf=null;function rX(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var Mf=null,Ex=0,Ys=0,$u=null;function nX(t,e){if(Mf===null){var a=Mf=[];Ex=0,Ys=db(),$u={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Ex++,e.then(rL,rL),e}function rL(){if(--Ex===0&&(Pf=null,Mf!==null)){$u!==null&&($u.status="fulfilled");var t=Mf;Mf=null,Ys=0,$u=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function iX(t,e){var a=[],r={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return t.then(function(){r.status="fulfilled",r.value=e;for(var n=0;n<a.length;n++)(0,a[n])(e)},function(n){for(r.status="rejected",r.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),r}var nL=he.S;he.S=function(t,e){if(wR=hr(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&nX(t,e),Pf!==null)for(var a=Yu;a!==null;)aL(a,Pf),a=a.next;if(a=t.types,a!==null){for(var r=Yu;r!==null;)aL(r,a),r=r.next;if(Ys!==0){r=Pf,r===null&&(r=Pf=[]);for(var n=0;n<a.length;n++){var i=a[n];r.indexOf(i)===-1&&r.push(i)}}}nL!==null&&nL(t,e)};var Vs=ei(null);function zy(){var t=Vs.current;return t!==null?t:et.pooledCache}function wp(t,e){e===null?ut(Vs,Vs.current):ut(Vs,e.pool)}function oP(){var t=zy();return t===null?null:{parent:Qt._currentValue,pool:t}}var nc=Error(I(460)),Ny=Error(I(474)),ym=Error(I(542)),jp={then:function(){}};function iL(t){return t=t.status,t==="fulfilled"||t==="rejected"}function sP(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(Hn,Hn),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,sL(t),t===void 0&&!("reason"in e)?Error(I(600)):t;default:if(typeof e.status=="string")e.then(Hn,Hn);else{if(t=et,t!==null&&100<t.shellSuspendCounter)throw Error(I(482));t=e,t.status="pending",t.then(function(r){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=r}},function(r){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=r}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,sL(t),t}throw Us=e,nc}}function _s(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Us=a,nc):a}}var Us=null;function oL(){if(Us===null)throw Error(I(459));var t=Us;return Us=null,t}function sL(t){if(t===nc||t===ym)throw Error(I(483))}var Bu=null,Gf=0;function ip(t){var e=Gf;return Gf+=1,Bu===null&&(Bu=[]),sP(Bu,t,e)}function go(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function op(t,e){throw e.$$typeof===zN?Error(I(525)):(t=Object.prototype.toString.call(e),Error(I(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function lP(t){function e(g,O){if(t){var y=g.deletions;y===null?(g.deletions=[O],g.flags|=16):y.push(O)}}function a(g,O){if(!t)return null;for(;O!==null;)e(g,O),O=O.sibling;return null}function r(g){for(var O=new Map;g!==null;)g.key===null?O.set(g.index,g):O.set(g.key,g),g=g.sibling;return O}function n(g,O){return g=Ri(g,O),g.index=0,g.sibling=null,g}function i(g,O,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<O?(g.flags|=2,O):y):(g.flags|=134217730,O)):(g.flags|=1048576,O)}function o(g){return t&&g.alternate===null&&(g.flags|=134217730),g}function s(g,O,y,b){return O===null||O.tag!==6?(O=F0(y,g.mode,b),O.return=g,O):(O=n(O,y),O.return=g,O)}function l(g,O,y,b){var v=y.type;return v===Su?(g=c(g,O,y.props.children,b,y.key),go(g,y),g):O!==null&&(O.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===yo&&_s(v)===O.type)?(O=n(O,y.props),go(O,y),O.return=g,O):(O=vp(y.type,y.key,y.props,null,g.mode,b),go(O,y),O.return=g,O)}function u(g,O,y,b){return O===null||O.tag!==4||O.stateNode.containerInfo!==y.containerInfo||O.stateNode.implementation!==y.implementation?(O=H0(y,g.mode,b),O.return=g,O):(O=n(O,y.children||[]),O.return=g,O)}function c(g,O,y,b,v){return O===null||O.tag!==7?(O=Zs(y,g.mode,b,v),O.return=g,O):(O=n(O,y),O.return=g,O)}function f(g,O,y){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=F0(""+O,g.mode,y),O.return=g,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Yh:return y=vp(O.type,O.key,O.props,null,g.mode,y),go(y,O),y.return=g,y;case kf:return O=H0(O,g.mode,y),O.return=g,O;case yo:return O=_s(O),f(g,O,y)}if(Lf(O)||yf(O))return O=Zs(O,g.mode,y,null),O.return=g,O;if(typeof O.then=="function")return f(g,ip(O),y);if(O.$$typeof===Fn)return f(g,np(g,O),y);op(g,O)}return null}function d(g,O,y,b){var v=O!==null?O.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return v!==null?null:s(g,O,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Yh:return y.key===v?l(g,O,y,b):null;case kf:return y.key===v?u(g,O,y,b):null;case yo:return y=_s(y),d(g,O,y,b)}if(Lf(y)||yf(y))return v!==null?null:c(g,O,y,b,null);if(typeof y.then=="function")return d(g,O,ip(y),b);if(y.$$typeof===Fn)return d(g,O,np(g,y),b);op(g,y)}return null}function h(g,O,y,b,v){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return g=g.get(y)||null,s(O,g,""+b,v);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Yh:return g=g.get(b.key===null?y:b.key)||null,l(O,g,b,v);case kf:return g=g.get(b.key===null?y:b.key)||null,u(O,g,b,v);case yo:return b=_s(b),h(g,O,y,b,v)}if(Lf(b)||yf(b))return g=g.get(y)||null,c(O,g,b,v,null);if(typeof b.then=="function")return h(g,O,y,ip(b),v);if(b.$$typeof===Fn)return h(g,O,y,np(O,b),v);op(O,b)}return null}function p(g,O,y,b){for(var v=null,S=null,w=O,k=O=0,T=null;w!==null&&k<y.length;k++){w.index>k?(T=w,w=null):T=w.sibling;var Q=d(g,w,y[k],b);if(Q===null){w===null&&(w=T);break}t&&w&&Q.alternate===null&&e(g,w),O=i(Q,O,k),S===null?v=Q:S.sibling=Q,S=Q,w=T}if(k===y.length)return a(g,w),be&&Ti(g,k),v;if(w===null){for(;k<y.length;k++)w=f(g,y[k],b),w!==null&&(O=i(w,O,k),S===null?v=w:S.sibling=w,S=w);return be&&Ti(g,k),v}for(w=r(w);k<y.length;k++)T=h(w,g,k,y[k],b),T!==null&&(t&&(Q=T.alternate,Q!==null&&w.delete(Q.key===null?k:Q.key)),O=i(T,O,k),S===null?v=T:S.sibling=T,S=T);return t&&w.forEach(function(D){return e(g,D)}),be&&Ti(g,k),v}function m(g,O,y,b){if(y==null)throw Error(I(151));for(var v=null,S=null,w=O,k=O=0,T=null,Q=y.next();w!==null&&!Q.done;k++,Q=y.next()){w.index>k?(T=w,w=null):T=w.sibling;var D=d(g,w,Q.value,b);if(D===null){w===null&&(w=T);break}t&&w&&D.alternate===null&&e(g,w),O=i(D,O,k),S===null?v=D:S.sibling=D,S=D,w=T}if(Q.done)return a(g,w),be&&Ti(g,k),v;if(w===null){for(;!Q.done;k++,Q=y.next())Q=f(g,Q.value,b),Q!==null&&(O=i(Q,O,k),S===null?v=Q:S.sibling=Q,S=Q);return be&&Ti(g,k),v}for(w=r(w);!Q.done;k++,Q=y.next())Q=h(w,g,k,Q.value,b),Q!==null&&(t&&(T=Q.alternate,T!==null&&w.delete(T.key===null?k:T.key)),O=i(Q,O,k),S===null?v=Q:S.sibling=Q,S=Q);return t&&w.forEach(function(A){return e(g,A)}),be&&Ti(g,k),v}function x(g,O,y,b){if(typeof y=="object"&&y!==null&&y.type===Su&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Yh:e:{for(var v=y.key;O!==null;){if(O.key===v){if(v=y.type,v===Su){if(O.tag===7){a(g,O.sibling),b=n(O,y.props.children),go(b,y),b.return=g,g=b;break e}}else if(O.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===yo&&_s(v)===O.type){a(g,O.sibling),b=n(O,y.props),go(b,y),b.return=g,g=b;break e}a(g,O);break}else e(g,O);O=O.sibling}y.type===Su?(b=Zs(y.props.children,g.mode,b,y.key),go(b,y),b.return=g,g=b):(b=vp(y.type,y.key,y.props,null,g.mode,b),go(b,y),b.return=g,g=b)}return o(g);case kf:e:{for(v=y.key;O!==null;){if(O.key===v)if(O.tag===4&&O.stateNode.containerInfo===y.containerInfo&&O.stateNode.implementation===y.implementation){a(g,O.sibling),b=n(O,y.children||[]),b.return=g,g=b;break e}else{a(g,O);break}else e(g,O);O=O.sibling}b=H0(y,g.mode,b),b.return=g,g=b}return o(g);case yo:return y=_s(y),x(g,O,y,b)}if(Lf(y))return p(g,O,y,b);if(yf(y)){if(v=yf(y),typeof v!="function")throw Error(I(150));return y=v.call(y),m(g,O,y,b)}if(typeof y.then=="function")return x(g,O,ip(y),b);if(y.$$typeof===Fn)return x(g,O,np(g,y),b);op(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,O!==null&&O.tag===6?(a(g,O.sibling),b=n(O,y),b.return=g,g=b):(a(g,O),b=F0(y,g.mode,b),b.return=g,g=b),o(g)):a(g,O)}return function(g,O,y,b){try{Gf=0;var v=x(g,O,y,b);return Bu=null,v}catch(w){if(w===nc||w===ym)throw w;var S=Ha(29,w,null,g.mode);return S.lanes=b,S.return=g,S}}}var Ws=lP(!0),uP=lP(!1),bo=!1;function Xy(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dx(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Io(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ao(t,e,a){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(ze&2)!==0){var n=r.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),r.pending=e,e=qp(t),eP(t,null,a),e}return Om(t,r,e,a),qp(t)}function Ef(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var r=e.lanes;r&=t.pendingLanes,a|=r,e.lanes=a,LT(t,a)}}function Y0(t,e){var a=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?n=i=e:i=i.next=e}else n=i=e;a={baseState:r.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var $x=!1;function Df(){if($x){var t=$u;if(t!==null)throw t}}function $f(t,e,a,r){$x=!1;var n=t.updateQueue;bo=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=n.baseState;o=0,c=u=l=null,s=i;do{var d=s.lane&-536870913,h=d!==s.lane;if(h?(Te&d)===d:(r&d)===d){d!==0&&d===Ys&&($x=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var p=t,m=s;d=e;var x=a;switch(m.tag){case 1:if(p=m.payload,typeof p=="function"){f=p.call(x,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,d=typeof p=="function"?p.call(x,f,d):p,d==null)break e;f=tt({},f,d);break e;case 2:bo=!0}}d=s.callback,d!==null&&(t.flags|=64,h&&(t.flags|=8192),h=n.callbacks,h===null?n.callbacks=[d]:h.push(d))}else h={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,o|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;h=s,s=h.next,h.next=null,n.lastBaseUpdate=h,n.shared.pending=null}}while(!0);c===null&&(l=f),n.baseState=l,n.firstBaseUpdate=u,n.lastBaseUpdate=c,i===null&&(n.shared.lanes=0),qo|=o,t.lanes=o,t.memoizedState=f}}function cP(t,e){if(typeof t!="function")throw Error(I(191,t));t.call(e)}function fP(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)cP(a[t],e)}var No=ei(null),Fp=ei(0);function lL(t,e){t=$i,ut(Fp,t),ut(No,e),$i=t|e.baseLanes}function Bx(){ut(Fp,$i),ut(No,No.current)}function qy(){$i=Fp.current,ia(No),ia(Fp)}var la=ei(null),xa=null;function Qo(t){var e=t.alternate;ut(oa,oa.current&1),ut(la,t),xa===null&&(e===null||No.current!==null||e.memoizedState!==null)&&(xa=t)}function _x(t){ut(oa,oa.current),ut(la,t),xa===null&&(xa=t)}function dP(t){t.tag===22?(ut(oa,oa.current),ut(la,t),xa===null&&(xa=t)):Mo()}function Mo(){ut(oa,oa.current),ut(la,la.current)}function cr(t){ia(la),xa===t&&(xa=null),ia(oa)}var oa=ei(0);function Yf(t,e){ut(la,la.current),ut(oa,e)}function Zy(t){ia(oa),ia(la),xa===t&&(xa=null)}function Hp(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||xy(a)||gb(a)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Mi=0,Oe=null,Ye=null,At=null,Gp=!1,_u=!1,Ks=!1,Yp=0,Wf=0,zu=null,oX=0;function Ct(){throw Error(I(321))}function Vy(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Or(t[a],e[a]))return!1;return!0}function Uy(t,e,a,r,n,i){return Mi=i,Oe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,he.H=t===null||t.memoizedState===null?ZP:VP,Ks=!1,i=a(r,n),Ks=!1,_u&&(i=pP(e,a,r,n)),hP(t),i}function hP(t){he.H=Wp;var e=Ye!==null&&Ye.next!==null;if(Mi=0,At=Ye=Oe=null,Gp=!1,Wf=0,zu=null,e)throw Error(I(300));t===null||Mt||(t=t.dependencies,t!==null&&Up(t)&&(Mt=!0))}function pP(t,e,a,r){Oe=t;var n=0;do{if(_u&&(zu=null),Wf=0,_u=!1,25<=n)throw Error(I(301));if(n+=1,At=Ye=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}he.H=pX,i=e(a,r)}while(_u);return i}function sX(){var t=he.H,e=t.useState()[0];return e=typeof e.then=="function"?dd(e):e,t=t.useState()[0],(Ye!==null?Ye.memoizedState:null)!==t&&(Oe.flags|=1024),e}function jy(){var t=Yp!==0;return Yp=0,t}function Fy(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Hy(t){if(Gp){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Gp=!1}Mi=0,At=Ye=Oe=null,_u=!1,Wf=Yp=0,zu=null}function Pa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Oe.memoizedState=At=t:At=At.next=t,At}function Pt(){if(Ye===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=Ye.next;var e=At===null?Oe.memoizedState:At.next;if(e!==null)At=e,Ye=t;else{if(t===null)throw Oe.alternate===null?Error(I(467)):Error(I(310));Ye=t,t={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},At===null?Oe.memoizedState=At=t:At=At.next=t}return At}function bm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dd(t){var e=Wf;return Wf+=1,zu===null&&(zu=[]),t=sP(zu,t,e),e=Oe,(At===null?e.memoizedState:At.next)===null&&(e=e.alternate,he.H=e===null||e.memoizedState===null?ZP:VP),t}function vm(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return dd(t);if(t.$$typeof===qN)return;if(t.$$typeof===Fn)return na(t)}throw Error(I(438,String(t)))}function Gy(t){var e=null,a=Oe.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var r=Oe.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(e={data:r.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=bm(),Oe.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),r=0;r<t;r++)a[r]=XN;return e.index++,a}function Ei(t,e){return typeof e=="function"?e(t):e}function Cp(t){var e=Pt();return Yy(e,Ye,t)}function Yy(t,e,a){var r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=a;var n=t.baseQueue,i=r.pending;if(i!==null){if(n!==null){var o=n.next;n.next=i.next,i.next=o}e.baseQueue=n=i,r.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var s=o=null,l=null,u=e,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(Te&f)===f:(Mi&f)===f){var d=u.revertLane;if(d===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ys&&(c=!0);else if((Mi&d)===d){u=u.next,d===Ys&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,o=i):l=l.next=f,Oe.lanes|=d,qo|=d;f=u.action,Ks&&a(i,f),i=u.hasEagerState?u.eagerState:a(i,f)}else d={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=d,o=i):l=l.next=d,Oe.lanes|=f,qo|=f;u=u.next}while(u!==null&&u!==e);if(l===null?o=i:l.next=s,!Or(i,t.memoizedState)&&(Mt=!0,c&&(a=$u,a!==null)))throw a;t.memoizedState=i,t.baseState=o,t.baseQueue=l,r.lastRenderedState=i}return n===null&&(r.lanes=0),[t.memoizedState,r.dispatch]}function W0(t){var e=Pt(),a=e.queue;if(a===null)throw Error(I(311));a.lastRenderedReducer=t;var r=a.dispatch,n=a.pending,i=e.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do i=t(i,o.action),o=o.next;while(o!==n);Or(i,e.memoizedState)||(Mt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),a.lastRenderedState=i}return[i,r]}function mP(t,e,a){var r=Oe,n=Pt(),i=be;if(i){if(a===void 0)throw Error(I(407));a=a()}else a=e();var o=!Or((Ye||n).memoizedState,a);if(o&&(n.memoizedState=a,Mt=!0),n=n.queue,Wy(xP.bind(null,r,n,t),[t]),t=n.getSnapshot!==e||o||At!==null&&(At.memoizedState.tag&1)!==0,ju(t?9:8,{destroy:void 0},OP.bind(null,r,n,a,e),null),t){if(r.flags|=2048,et===null)throw Error(I(349));i||(Mi&127)!==0||gP(r,e,a)}return a}function gP(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=Oe.updateQueue,e===null?(e=bm(),Oe.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function OP(t,e,a,r){e.value=a,e.getSnapshot=r,yP(e)&&bP(t)}function xP(t,e,a){return a(function(){yP(e)&&bP(t)})}function yP(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Or(t,a)}catch{return!0}}function bP(t){var e=nl(t,2);e!==null&&Ga(e,t,2)}function zx(t){var e=Pa();if(typeof t=="function"){var a=t;if(t=a(),Ks){So(!0);try{a()}finally{So(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:t},e}function vP(t,e,a,r){return t.baseState=a,Yy(t,Ye,typeof r=="function"?r:Ei)}function lX(t,e,a,r,n){if(wm(t))throw Error(I(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};he.T!==null?a(!0):i.isTransition=!1,r(i),a=e.pending,a===null?(i.next=e.pending=i,SP(e,i)):(i.next=a.next,e.pending=a.next=i)}}function SP(t,e){var a=e.action,r=e.payload,n=t.state;if(e.isTransition){var i=he.T,o={};o.types=i!==null?i.types:null,he.T=o;try{var s=a(n,r),l=he.S;l!==null&&l(o,s),uL(t,e,s)}catch(u){Nx(t,e,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),he.T=i}}else try{i=a(n,r),uL(t,e,i)}catch(u){Nx(t,e,u)}}function uL(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){cL(t,e,r)},function(r){return Nx(t,e,r)}):cL(t,e,a)}function cL(t,e,a){e.status="fulfilled",e.value=a,wP(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,SP(t,a)))}function Nx(t,e,a){var r=t.pending;if(t.pending=null,r!==null){r=r.next;do e.status="rejected",e.reason=a,wP(e),e=e.next;while(e!==r)}t.action=null}function wP(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function CP(t,e){return e}function fL(t,e){if(be){var a=et.formState;if(a!==null){e:{var r=Oe;if(be){if(lt){t:{for(var n=lt,i=$r;n.nodeType!==8;){if(!i){n=null;break t}if(n=Br(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){lt=Br(n.nextSibling),r=n.data==="F!";break e}}zo(r)}r=!1}r&&(e=a[0])}}return a=Pa(),a.memoizedState=a.baseState=e,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:CP,lastRenderedState:e},a.queue=r,a=NP.bind(null,Oe,r),r.dispatch=a,r=zx(!1),i=tb.bind(null,Oe,!1,r.queue),r=Pa(),n={state:e,dispatch:null,action:t,pending:null},r.queue=n,a=lX.bind(null,Oe,n,i,a),n.dispatch=a,r.memoizedState=t,[e,a,!1]}function dL(t){var e=Pt();return kP(e,Ye,t)}function kP(t,e,a){if(e=Yy(t,e,CP)[0],t=Cp(Ei)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var r=dd(e)}catch(o){throw o===nc?ym:o}else r=e;e=Pt();var n=e.queue,i=n.dispatch;return a!==e.memoizedState&&(Oe.flags|=2048,ju(9,{destroy:void 0},uX.bind(null,n,a),null)),[r,i,t]}function uX(t,e){t.action=e}function hL(t){var e=Pt(),a=Ye;if(a!==null)return kP(e,a,t);Pt(),e=e.memoizedState,a=Pt();var r=a.queue.dispatch;return a.memoizedState=t,[e,r,!1]}function ju(t,e,a,r){return t={tag:t,create:a,deps:r,inst:e,next:null},e=Oe.updateQueue,e===null&&(e=bm(),Oe.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(r=a.next,a.next=t,t.next=r,e.lastEffect=t),t}function LP(){return Pt().memoizedState}function kp(t,e,a,r){var n=Pa();Oe.flags|=t,n.memoizedState=ju(1|e,{destroy:void 0},a,r===void 0?null:r)}function Sm(t,e,a,r){var n=Pt();r=r===void 0?null:r;var i=n.memoizedState.inst;Ye!==null&&r!==null&&Vy(r,Ye.memoizedState.deps)?n.memoizedState=ju(e,i,a,r):(Oe.flags|=t,n.memoizedState=ju(1|e,i,a,r))}function pL(t,e){kp(8390656,8,t,e)}function Wy(t,e){Sm(2048,8,t,e)}function cX(t){Oe.flags|=4;var e=Oe.updateQueue;if(e===null)e=bm(),Oe.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function TP(t){var e=Pt().memoizedState;return cX({ref:e,nextImpl:t}),function(){if((ze&2)!==0)throw Error(I(440));return e.impl.apply(void 0,arguments)}}function PP(t,e){return Sm(4,2,t,e)}function RP(t,e){return Sm(4,4,t,e)}function IP(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function AP(t,e,a){a=a!=null?a.concat([t]):null,Sm(4,4,IP.bind(null,e,t),a)}function Ky(){}function QP(t,e){var a=Pt();e=e===void 0?null:e;var r=a.memoizedState;return e!==null&&Vy(e,r[1])?r[0]:(a.memoizedState=[t,e],t)}function MP(t,e){var a=Pt();e=e===void 0?null:e;var r=a.memoizedState;if(e!==null&&Vy(e,r[1]))return r[0];if(r=t(),Ks){So(!0);try{t()}finally{So(!1)}}return a.memoizedState=[r,e],r}function Jy(t,e,a){return a===void 0||(Mi&1073741824)!==0&&(Te&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=kR(),Oe.lanes|=t,qo|=t,a)}function EP(t,e,a,r){return Or(a,e)?a:No.current!==null?(t=Jy(t,a,r),Or(t,e)||(Mt=!0),t):(Mi&106)===0||(Mi&1073741824)!==0&&(Te&261930)===0?(Mt=!0,t.memoizedState=a):(t=kR(),Oe.lanes|=t,qo|=t,e)}function DP(t,e,a,r,n){var i=Ne.p;Ne.p=i!==0&&8>i?i:8;var o=he.T,s={};s.types=o!==null?o.types:null,he.T=s,tb(t,!1,e,a);try{var l=n(),u=he.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=iX(l,r);Bf(t,e,c,gr(t))}else Bf(t,e,r,gr(t))}catch(f){Bf(t,e,{then:function(){},status:"rejected",reason:f},gr())}finally{Ne.p=i,o!==null&&s.types!==null&&(o.types=s.types),he.T=o}}function fX(){}function Xx(t,e,a,r){if(t.tag!==5)throw Error(I(476));var n=$P(t).queue;DP(t,n,e,qs,a===null?fX:function(){return BP(t),a(r)})}function $P(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:qs,baseState:qs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:qs},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function BP(t){var e=$P(t);e.next===null&&(e=t.alternate.memoizedState),Bf(t,e.next.queue,{},gr())}function eb(){return na(Ju)}function _P(){return Pt().memoizedState}function zP(){return Pt().memoizedState}function dX(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=gr();t=Io(a);var r=Ao(e,t,a);r!==null&&(Ga(r,e,a),Ef(r,e,a)),e={cache:_y()},t.payload=e;return}e=e.return}}function hX(t,e,a){var r=gr();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wm(t)?XP(e,a):(a=Dy(t,e,a,r),a!==null&&(Ga(a,t,r),qP(a,e,r)))}function NP(t,e,a){var r=gr();Bf(t,e,a,r)}function Bf(t,e,a,r){var n={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(wm(t))XP(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,a);if(n.hasEagerState=!0,n.eagerState=s,Or(s,o))return Om(t,e,n,0),et===null&&gm(),!1}catch{}if(a=Dy(t,e,n,r),a!==null)return Ga(a,t,r),qP(a,e,r),!0}return!1}function tb(t,e,a,r){if(r={lane:2,revertLane:db(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},wm(t)){if(e)throw Error(I(479))}else e=Dy(t,a,r,2),e!==null&&Ga(e,t,2)}function wm(t){var e=t.alternate;return t===Oe||e!==null&&e===Oe}function XP(t,e){_u=Gp=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function qP(t,e,a){if((a&4194048)!==0){var r=e.lanes;r&=t.pendingLanes,a|=r,e.lanes=a,LT(t,a)}}var Wp={readContext:na,use:vm,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct,useEffectEvent:Ct},ZP={readContext:na,use:vm,useCallback:function(t,e){return Pa().memoizedState=[t,e===void 0?null:e],t},useContext:na,useEffect:pL,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,kp(4194308,4,IP.bind(null,e,t),a)},useLayoutEffect:function(t,e){return kp(4194308,4,t,e)},useInsertionEffect:function(t,e){kp(4,2,t,e)},useMemo:function(t,e){var a=Pa();e=e===void 0?null:e;var r=t();if(Ks){So(!0);try{t()}finally{So(!1)}}return a.memoizedState=[r,e],r},useReducer:function(t,e,a){var r=Pa();if(a!==void 0){var n=a(e);if(Ks){So(!0);try{a(e)}finally{So(!1)}}}else n=e;return r.memoizedState=r.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},r.queue=t,t=t.dispatch=hX.bind(null,Oe,t),[r.memoizedState,t]},useRef:function(t){var e=Pa();return t={current:t},e.memoizedState=t},useState:function(t){t=zx(t);var e=t.queue,a=NP.bind(null,Oe,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Ky,useDeferredValue:function(t,e){var a=Pa();return Jy(a,t,e)},useTransition:function(){var t=zx(!1);return t=DP.bind(null,Oe,t.queue,!0,!1),Pa().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var r=Oe,n=Pa();if(be){if(a===void 0)throw Error(I(407));a=a()}else{if(a=e(),et===null)throw Error(I(349));(Te&127)!==0||gP(r,e,a)}n.memoizedState=a;var i={value:a,getSnapshot:e};return n.queue=i,pL(xP.bind(null,r,i,t),[t]),r.flags|=2048,ju(9,{destroy:void 0},OP.bind(null,r,i,a,e),null),a},useId:function(){var t=Pa(),e=et.identifierPrefix;if(be){var a=Yn,r=Gn;a=(r&~(1<<32-mr(r)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Yp++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=oX++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:eb,useFormState:fL,useActionState:fL,useOptimistic:function(t){var e=Pa();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=tb.bind(null,Oe,!0,a),a.dispatch=e,[t,e]},useMemoCache:Gy,useCacheRefresh:function(){return Pa().memoizedState=dX.bind(null,Oe)},useEffectEvent:function(t){var e=Pa(),a={impl:t};return e.memoizedState=a,function(){if((ze&2)!==0)throw Error(I(440));return a.impl.apply(void 0,arguments)}}},VP={readContext:na,use:vm,useCallback:QP,useContext:na,useEffect:Wy,useImperativeHandle:AP,useInsertionEffect:PP,useLayoutEffect:RP,useMemo:MP,useReducer:Cp,useRef:LP,useState:function(){return Cp(Ei)},useDebugValue:Ky,useDeferredValue:function(t,e){var a=Pt();return EP(a,Ye.memoizedState,t,e)},useTransition:function(){var t=Cp(Ei)[0],e=Pt().memoizedState;return[typeof t=="boolean"?t:dd(t),e]},useSyncExternalStore:mP,useId:_P,useHostTransitionStatus:eb,useFormState:dL,useActionState:dL,useOptimistic:function(t,e){var a=Pt();return vP(a,Ye,t,e)},useMemoCache:Gy,useCacheRefresh:zP,useEffectEvent:TP},pX={readContext:na,use:vm,useCallback:QP,useContext:na,useEffect:Wy,useImperativeHandle:AP,useInsertionEffect:PP,useLayoutEffect:RP,useMemo:MP,useReducer:W0,useRef:LP,useState:function(){return W0(Ei)},useDebugValue:Ky,useDeferredValue:function(t,e){var a=Pt();return Ye===null?Jy(a,t,e):EP(a,Ye.memoizedState,t,e)},useTransition:function(){var t=W0(Ei)[0],e=Pt().memoizedState;return[typeof t=="boolean"?t:dd(t),e]},useSyncExternalStore:mP,useId:_P,useHostTransitionStatus:eb,useFormState:hL,useActionState:hL,useOptimistic:function(t,e){var a=Pt();return Ye!==null?vP(a,Ye,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Gy,useCacheRefresh:zP,useEffectEvent:TP};function K0(t,e,a,r){e=t.memoizedState,a=a(r,e),a=a==null?e:tt({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var qx={enqueueSetState:function(t,e,a){t=t._reactInternals;var r=gr(),n=Io(r);n.payload=e,a!=null&&(n.callback=a),e=Ao(t,n,r),e!==null&&(Ga(e,t,r),Ef(e,t,r))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var r=gr(),n=Io(r);n.tag=1,n.payload=e,a!=null&&(n.callback=a),e=Ao(t,n,r),e!==null&&(Ga(e,t,r),Ef(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=gr(),r=Io(a);r.tag=2,e!=null&&(r.callback=e),e=Ao(t,r,a),e!==null&&(Ga(e,t,a),Ef(e,t,a))}};function mL(t,e,a,r,n,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,o):e.prototype&&e.prototype.isPureReactComponent?!jf(a,r)||!jf(n,i):!0}function gL(t,e,a,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,r),e.state!==t&&qx.enqueueReplaceState(e,e.state,null)}function Js(t,e){var a=e;if("ref"in e){a={};for(var r in e)r!=="ref"&&(a[r]=e[r])}if(t=t.defaultProps){a===e&&(a=tt({},a));for(var n in t)a[n]===void 0&&(a[n]=t[n])}return a}function UP(t){Xp(t)}function jP(t){console.error(t)}function FP(t){Xp(t)}function Kp(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(r){setTimeout(function(){throw r})}}function OL(t,e,a){try{var r=t.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Zx(t,e,a){return a=Io(a),a.tag=3,a.payload={element:null},a.callback=function(){Kp(t,e)},a}function HP(t){return t=Io(t),t.tag=3,t}function GP(t,e,a,r){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=r.value;t.payload=function(){return n(i)},t.callback=function(){OL(e,a,r)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){OL(e,a,r),typeof n!="function"&&(Eo===null?Eo=new Set([this]):Eo.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function mX(t,e,a,r,n){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(e=a.alternate,e!==null&&Hs(e,a,n,!0),a=la.current,a!==null){switch(a.tag){case 31:case 13:case 19:return xa===null?om():a.alternate===null&&kt===0&&(kt=3),a.flags&=-257,a.flags|=65536,a.lanes=n,r===jp?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([r]):e.add(r),ix(t,r,n)),!1;case 22:return a.flags|=65536,r===jp?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([r]):a.add(r)),ix(t,r,n)),!1}throw Error(I(435,a.tag))}return ix(t,r,n),om(),!1}if(be)return e=la.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,r!==Ax&&(t=Error(I(422),{cause:r}),Hf(Dr(t,a)))):(r!==Ax&&(e=Error(I(423),{cause:r}),Hf(Dr(e,a))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,r=Dr(r,a),n=Zx(t.stateNode,r,n),Y0(t,n),kt!==4&&(kt=2)),!1;var i=Error(I(520),{cause:r});if(i=Dr(i,a),Xf===null?Xf=[i]:Xf.push(i),kt!==4&&(kt=2),e===null)return!0;r=Dr(r,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=n&-n,a.lanes|=t,t=Zx(a.stateNode,r,t),Y0(a,t),!1;case 1:if(e=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Eo===null||!Eo.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=HP(n),GP(n,t,a,r),Y0(a,n),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var ab=Error(I(461)),Mt=!1;function zt(t,e,a,r){e.child=t===null?uP(e,null,a,r):Ws(e,t.child,a,r)}function xL(t,e,a,r,n){a=a.render;var i=e.ref;if("ref"in r){var o={};for(var s in r)s!=="ref"&&(o[s]=r[s])}else o=r;return Gs(e),r=Uy(t,e,a,o,i,n),s=jy(),t!==null&&!Mt?(Fy(t,e,n),Di(t,e,n)):(be&&s&&xm(e),e.flags|=1,zt(t,e,r,n),e.child)}function yL(t,e,a,r,n){if(t===null){var i=a.type;return typeof i=="function"&&!$y(i)&&i.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=i,YP(t,e,i,r,n)):(t=vp(a.type,null,r,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!nb(t,n)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:jf,a(o,r)&&t.ref===e.ref)return Di(t,e,n)}return e.flags|=1,t=Ri(i,r),t.ref=e.ref,t.return=e,e.child=t}function YP(t,e,a,r,n){if(t!==null){var i=t.memoizedProps;if(jf(i,r)&&t.ref===e.ref)if(Mt=!1,e.pendingProps=r=i,nb(t,n))(t.flags&131072)!==0&&(Mt=!0);else return e.lanes=t.lanes,Di(t,e,n)}return Vx(t,e,a,r,n)}function WP(t,e,a,r){var n=r.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,t!==null){for(r=e.child=t.child,n=0;r!==null;)n=n|r.lanes|r.childLanes,r=r.sibling;r=n&~i}else r=0,e.child=null;return bL(t,e,i,a,r)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&wp(e,i!==null?i.cachePool:null),i!==null?lL(e,i):Bx(),dP(e);else return r=e.lanes=536870912,bL(t,e,i!==null?i.baseLanes|a:a,a,r)}else i!==null?(wp(e,i.cachePool),lL(e,i),Mo(),e.memoizedState=null):(t!==null&&wp(e,null),Bx(),Mo());return zt(t,e,n,a),e.child}function _f(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function bL(t,e,a,r,n){var i=zy();return i=i===null?null:{parent:Qt._currentValue,pool:i},e.memoizedState={baseLanes:a,cachePool:i},t!==null&&wp(e,null),Bx(),dP(e),t!==null&&Hs(t,e,r,!0),e.childLanes=n,null}function Lp(t,e){return e=Cm({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function vL(t,e,a){return Ws(e,t.child,null,a),t=Lp(e,e.pendingProps),t.flags|=2,cr(e),e.memoizedState=null,t}function gX(t,e,a){var r=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(be){if(r.mode==="hidden")return t=Lp(e,r),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},_f(null,t);if(_x(e),(t=lt)?(t=WR(t,$r),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_o!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},a=aP(t),a.return=e,e.child=a,Gt=e,lt=null)):t=null,t===null)throw zo(e);return e.lanes=536870912,null}return Lp(e,r)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(_x(e),n)if(e.flags&256)e.flags&=-257,e=vL(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(I(558));else if(Mt||Hs(t,e,a,!1),n=(a&t.childLanes)!==0,Mt||n){if(No.current===null){if(r=et,r!==null&&(o=TT(r,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,nl(t,o),Ga(r,t,o),ab;om()}e=vL(t,e,a)}else t=i.treeContext,lt=Br(o.nextSibling),Gt=e,be=!0,Ro=null,$r=!1,t!==null&&nP(e,t),e=Lp(e,r),e.flags|=134221824;return e}return t=Ri(t.child,{mode:r.mode,children:r.children}),t.ref=e.ref,e.child=t,t.return=e,t}function xu(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(I(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Vx(t,e,a,r,n){return Gs(e),a=Uy(t,e,a,r,void 0,n),r=jy(),t!==null&&!Mt?(Fy(t,e,n),Di(t,e,n)):(be&&r&&xm(e),e.flags|=1,zt(t,e,a,n),e.child)}function SL(t,e,a,r,n,i){return Gs(e),e.updateQueue=null,a=pP(e,r,a,n),hP(t),r=jy(),t!==null&&!Mt?(Fy(t,e,i),Di(t,e,i)):(be&&r&&xm(e),e.flags|=1,zt(t,e,a,i),e.child)}function wL(t,e,a,r,n){if(Gs(e),e.stateNode===null){var i=Ru,o=a.contextType;typeof o=="object"&&o!==null&&(i=na(o)),i=new a(r,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=qx,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=r,i.state=e.memoizedState,i.refs={},Xy(e),o=a.contextType,i.context=typeof o=="object"&&o!==null?na(o):Ru,i.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(K0(e,a,o,r),i.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&qx.enqueueReplaceState(i,i.state,null),$f(e,r,i,n),Df(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),r=!0}else if(t===null){i=e.stateNode;var s=e.memoizedProps,l=Js(a,s);i.props=l;var u=i.context,c=a.contextType;o=Ru,typeof c=="object"&&c!==null&&(o=na(c));var f=a.getDerivedStateFromProps;c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==o)&&gL(e,i,r,o),bo=!1;var d=e.memoizedState;i.state=d,$f(e,r,i,n),Df(),u=e.memoizedState,s||d!==u||bo?(typeof f=="function"&&(K0(e,a,f,r),u=e.memoizedState),(l=bo||mL(e,a,l,r,d,u,o))?(c||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=u),i.props=r,i.state=u,i.context=o,r=l):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{i=e.stateNode,Dx(t,e),o=e.memoizedProps,c=Js(a,o),i.props=c,f=e.pendingProps,d=i.context,u=a.contextType,l=Ru,typeof u=="object"&&u!==null&&(l=na(u)),s=a.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==f||d!==l)&&gL(e,i,r,l),bo=!1,d=e.memoizedState,i.state=d,$f(e,r,i,n),Df();var h=e.memoizedState;o!==f||d!==h||bo||t!==null&&t.dependencies!==null&&Up(t.dependencies)?(typeof s=="function"&&(K0(e,a,s,r),h=e.memoizedState),(c=bo||mL(e,a,c,r,d,h,l)||t!==null&&t.dependencies!==null&&Up(t.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,h,l)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),r=!1)}return i=r,xu(t,e),r=(e.flags&128)!==0,i||r?(i=e.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&r?(e.child=Ws(e,t.child,null,n),e.child=Ws(e,null,a,n)):zt(t,e,a,n),e.memoizedState=i.state,t=e.child):t=Di(t,e,n),t}function CL(t,e,a,r){return Fs(),e.flags|=256,zt(t,e,a,r),e.child}var Ux={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jx(t){return{baseLanes:t,cachePool:oP()}}function Fx(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=dr),t}function KP(t,e,a){var r=e.pendingProps,n=!1,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?!1:(oa.current&2)!==0),o&&(n=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(be){if(n?Qo(e):Mo(),(t=lt)?(t=WR(t,$r),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_o!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},a=aP(t),a.return=e,e.child=a,Gt=e,lt=null)):t=null,t===null)throw zo(e);return gb(t)?e.lanes=32:e.lanes=536870912,null}return i=r.children,r=r.fallback,n?(Mo(),n=e.mode,i=Cm({mode:"hidden",children:i},n),r=Zs(r,n,a,null),i.return=e,r.return=e,i.sibling=r,e.child=i,r=e.child,r.memoizedState=jx(a),r.childLanes=Fx(t,o,a),e.memoizedState=Ux,_f(null,r)):(Qo(e),rb(e,i))}var s=t.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return OX(t,e,i,o,r,l,s,a)}return n?(Mo(),n=r.fallback,i=e.mode,s=t.child,l=s.sibling,r=Ri(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,l!==null?n=Ri(l,n):(n=Zs(n,i,a,null),n.flags|=2),n.return=e,r.return=e,r.sibling=n,e.child=r,_f(null,r),r=e.child,n=t.child.memoizedState,n===null?n=jx(a):(i=n.cachePool,i!==null?(s=Qt._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=oP(),n={baseLanes:n.baseLanes|a,cachePool:i}),r.memoizedState=n,r.childLanes=Fx(t,o,a),e.memoizedState=Ux,_f(t.child,r)):(Qo(e),a=t.child,t=a.sibling,a=Ri(a,{mode:"visible",children:r.children}),a.return=e,a.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=a,e.memoizedState=null,a)}function rb(t,e){return e=Cm({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Cm(t,e){return t=Ha(22,t,null,e),t.lanes=0,t}function sp(t,e,a){return Ws(e,t.child,null,a),t=rb(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function OX(t,e,a,r,n,i,o,s){if(a)return e.flags&256?(Qo(e),e.flags&=-257,sp(t,e,s)):e.memoizedState!==null?(Mo(),e.child=t.child,e.flags|=128,null):(Mo(),i=n.fallback,o=e.mode,n=Cm({mode:"visible",children:n.children},o),i=Zs(i,o,s,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,Ws(e,t.child,null,s),n=e.child,n.memoizedState=jx(s),n.childLanes=Fx(t,r,s),e.memoizedState=Ux,_f(null,n));if(Qo(e),gb(i)){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==""&&(n=Error(I(419)),n.stack="",n.digest=r,Hf({value:n,source:null,stack:null})),sp(t,e,s)}if(Mt||Hs(t,e,s,!1),r=(s&t.childLanes)!==0,Mt||r){if(No.current!==null)return sp(t,e,s);if(r=et,r!==null&&(n=TT(r,s),n!==0&&n!==o.retryLane))throw o.retryLane=n,nl(t,n),Ga(r,t,n),ab;return xy(i)||om(),sp(t,e,s)}return xy(i)?(e.flags|=192,e.child=t.child,null):(t=o.treeContext,lt=Br(i.nextSibling),Gt=e,be=!0,Ro=null,$r=!1,t!==null&&nP(e,t),e=rb(e,n.children),e.flags|=134221824,e)}function kL(t,e,a){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Sp(t.return,e,a)}function LL(t){for(var e=null;t!==null;){var a=t.alternate;a!==null&&Hp(a)===null&&(e=t),t=t.sibling}return e}function lp(t,e,a,r,n,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:n,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=a,o.tailMode=n,o.treeForkCount=i)}function J0(t){var e=t.child;for(t.child=null;e!==null;){var a=e.sibling;e.sibling=t.child,t.child=e,e=a}}function Hx(t,e,a){var r=e.pendingProps,n=r.revealOrder,i=r.tail;r=r.children;var o=oa.current;if(e.flags&128)return Yf(e,o),null;var s=(o&2)!==0;if(s?(o=o&1|2,e.flags|=128):o&=1,Yf(e,o),n==="backwards"&&t!==null?(J0(t),zt(t,e,r,a),J0(t)):zt(t,e,r,a),r=be?Ff:0,!s&&t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&kL(t,a,e);else if(t.tag===19)kL(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"backwards":a=LL(e.child),a===null?(n=e.child,e.child=null):(n=a.sibling,a.sibling=null,J0(e)),lp(e,!0,n,null,i,r);break;case"unstable_legacy-backwards":for(a=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Hp(t)===null){e.child=n;break}t=n.sibling,n.sibling=a,a=n,n=t}lp(e,!0,a,null,i,r);break;case"together":lp(e,!1,null,null,void 0,r);break;case"independent":e.memoizedState=null;break;default:a=LL(e.child),a===null?(n=e.child,e.child=null):(n=a.sibling,a.sibling=null),lp(e,!1,n,a,i,r)}return e.child}function TL(t,e,a){var r=e.pendingProps;return Co(e,e.type,r.value),zt(t,e,r.children,a),e.child}function Di(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),qo|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Hs(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(I(153));if(e.child!==null){for(t=e.child,a=Ri(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=Ri(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function nb(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Up(t)))}function xX(t,e,a){switch(e.tag){case 3:Bp(e,e.stateNode.containerInfo),Co(e,Qt,t.memoizedState.cache),Fs();break;case 27:case 5:vx(e);break;case 4:Bp(e,e.stateNode.containerInfo);break;case 10:Co(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,_x(e),null;break;case 13:var r=e.memoizedState;if(r!==null){if(r.dehydrated!==null)return Qo(e),e.flags|=128,null;r=Hs(t,e,a,!1);var n=e.child.childLanes;return r||(a&n)!==0?KP(t,e,a):(Qo(e),t=Di(t,e,a),t!==null?t.sibling:null)}Qo(e);break;case 19:if(e.flags&128)return Hx(t,e,a);if(n=(t.flags&128)!==0,r=(a&e.childLanes)!==0,r||(Hs(t,e,a,!1),r=(a&e.childLanes)!==0),n){if(r)return Hx(t,e,a);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Yf(e,oa.current),r)break;return null;case 22:return e.lanes=0,WP(t,e,a,e.pendingProps);case 24:Co(e,Qt,t.memoizedState.cache)}return Di(t,e,a)}function JP(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Mt=!0;else{if(!nb(t,a)&&(e.flags&128)===0)return Mt=!1,xX(t,e,a);Mt=(t.flags&131072)!==0}else Mt=!1,be&&(e.flags&1048576)!==0&&rP(e,Ff,e.index);switch(e.lanes=0,e.tag){case 16:e:{var r=e.pendingProps;if(t=_s(e.elementType),e.type=t,typeof t=="function")$y(t)?(r=Js(t,r),e.tag=1,e=wL(null,e,t,r,a)):(e.tag=0,e=Vx(null,e,t,r,a));else{if(t!=null){var n=t.$$typeof;if(n===wy){e.tag=11,e=xL(null,e,t,r,a);break e}else if(n===Cy){e.tag=14,e=yL(null,e,t,r,a);break e}else if(n===Fn){e.tag=10,e.type=t,e=TL(null,e,a);break e}}throw e=yx(t)||t,Error(I(306,e,""))}}return e;case 0:return Vx(t,e,e.type,e.pendingProps,a);case 1:return r=e.type,n=Js(r,e.pendingProps),wL(t,e,r,n,a);case 3:e:{if(Bp(e,e.stateNode.containerInfo),t===null)throw Error(I(387));r=e.pendingProps;var i=e.memoizedState;n=i.element,Dx(t,e),$f(e,r,null,a);var o=e.memoizedState;if(r=o.cache,Co(e,Qt,r),r!==i.cache&&Mx(e,[Qt],a,!0),Df(),r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=CL(t,e,r,a);break e}else if(r!==n){n=Dr(Error(I(424)),e),Hf(n),e=CL(t,e,r,a);break e}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,lt=Br(t.firstChild),Gt=e,be=!0,Ro=null,$r=!0,a=uP(e,null,r,a),e.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(Fs(),r===n){e=Di(t,e,a);break e}zt(t,e,r,a)}e=e.child}return e;case 26:return xu(t,e),t===null?(a=eT(e.type,null,e.pendingProps,null))?e.memoizedState=a:be||(e.stateNode=qR(e.type,e.pendingProps,Po.current,e)):e.memoizedState=eT(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return vx(e),t===null&&be&&(r=e.stateNode=KR(e.type,e.pendingProps,Po.current),Gt=e,$r=!0,n=lt,Vo(e.type)?(yy=n,lt=Br(r.firstChild)):lt=n),zt(t,e,e.pendingProps.children,a),xu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&be&&((n=r=lt)&&(r=cq(r,e.type,e.pendingProps,$r),r!==null?(e.stateNode=r,Gt=e,lt=Br(r.firstChild),$r=!1,n=!0):n=!1),n||zo(e)),vx(e),n=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,r=i.children,my(n,i)?r=null:o!==null&&my(n,o)&&(e.flags|=32),e.memoizedState!==null&&(n=Uy(t,e,sX,null,null,a),Ju._currentValue=n),xu(t,e),zt(t,e,r,a),e.child;case 6:return t===null&&be&&((t=a=lt)&&(a=fq(a,e.pendingProps,$r),a!==null?(e.stateNode=a,Gt=e,lt=null,t=!0):t=!1),t||zo(e)),null;case 13:return KP(t,e,a);case 4:return Bp(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Ws(e,null,r,a):zt(t,e,r,a),e.child;case 11:return xL(t,e,e.type,e.pendingProps,a);case 7:return r=e.pendingProps,xu(t,e),zt(t,e,r,a),e.child;case 8:return zt(t,e,e.pendingProps.children,a),e.child;case 12:return zt(t,e,e.pendingProps.children,a),e.child;case 10:return TL(t,e,a);case 9:return n=e.type._context,r=e.pendingProps.children,Gs(e),n=na(n),r=r(n),e.flags|=1,zt(t,e,r,a),e.child;case 14:return yL(t,e,e.type,e.pendingProps,a);case 15:return YP(t,e,e.type,e.pendingProps,a);case 19:return Hx(t,e,a);case 31:return gX(t,e,a);case 22:return WP(t,e,a,e.pendingProps);case 24:return Gs(e),r=na(Qt),t===null?(n=zy(),n===null&&(n=et,i=_y(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),e.memoizedState={parent:r,cache:n},Xy(e),Co(e,Qt,n)):((t.lanes&a)!==0&&(Dx(t,e),$f(e,null,null,a),Df()),n=t.memoizedState,i=e.memoizedState,n.parent!==r?(n={parent:r,cache:r},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Co(e,Qt,r)):(r=i.cache,Co(e,Qt,r),r!==n.cache&&Mx(e,[Qt],a,!0))),zt(t,e,e.pendingProps.children,a),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=e.pendingProps,r.name!=null&&r.name!=="auto"?e.flags|=t===null?18882560:18874368:be&&xm(e),t!==null&&t.memoizedProps.name!==r.name?e.flags|=4194816:xu(t,e),zt(t,e,r.children,a),e.child;case 29:throw e.pendingProps}throw Error(I(156,e.tag))}function Li(t){t.flags|=4}function ex(t,e,a,r,n){var i;if((i=(t.mode&32)!==0)&&(i=a===null?rT(e,r):rT(e,r)&&(r.src!==a.src||r.srcSet!==a.srcSet)),i){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(PR())t.flags|=8192;else throw Us=jp,Ny}else t.flags&=-16777217}function PL(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!aI(e))if(PR())t.flags|=8192;else throw Us=jp,Ny}function up(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?CT():536870912,t.lanes|=e,Fu|=e)}function vf(t,e){if(!be)switch(t.tailMode){case"visible":break;case"collapsed":for(var a=t.tail,r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null;break;default:for(e=t.tail,a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null}}function st(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,r=0;if(e)for(var n=t.child;n!==null;)a|=n.lanes|n.childLanes,r|=n.subtreeFlags&1206910976,r|=n.flags&1206910976,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)a|=n.lanes|n.childLanes,r|=n.subtreeFlags,r|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=r,t.childLanes=a,e}function yX(t,e,a){var r=e.pendingProps;switch(By(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(e),null;case 1:return st(e),null;case 3:return a=e.stateNode,r=null,t!==null&&(r=t.memoizedState.cache),e.memoizedState.cache!==r&&(e.flags|=2048),Ii(Qt),Zu(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(gu(e)?Li(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,G0())),st(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(Li(e),i!==null?(st(e),PL(e,i)):(st(e),ex(e,n,null,r,a))):i?i!==t.memoizedState?(Li(e),st(e),PL(e,i)):(st(e),e.flags&=-16777217):(t=t.memoizedProps,t!==r&&Li(e),st(e),ex(e,n,t,r,a)),null;case 27:if(_p(e),a=Po.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&Li(e);else{if(!r){if(e.stateNode===null)throw Error(I(166));return st(e),e.subtreeFlags&=-33554433,null}t=Wn.current,gu(e)?tL(e,t):(t=KR(n,r,a),e.stateNode=t,Li(e))}return st(e),e.subtreeFlags&=-33554433,null;case 5:if(_p(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&Li(e);else{if(!r){if(e.stateNode===null)throw Error(I(166));return st(e),e.subtreeFlags&=-33554433,null}if(i=Wn.current,gu(e))tL(e,i);else{var o=ed(Po.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?o.createElement(n,{is:r.is}):o.createElement(n)}}i[ra]=e,i[Wa]=r;e:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break e;for(;o.sibling===null;){if(o.return===null||o.return===e)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=i;e:switch(sa(i,n,r),n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Li(e)}}return st(e),e.subtreeFlags&=-33554433,ex(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==r&&Li(e);else{if(typeof r!="string"&&e.stateNode===null)throw Error(I(166));if(t=Po.current,gu(e)){if(t=e.stateNode,a=e.memoizedProps,r=null,n=Gt,n!==null)switch(n.tag){case 27:case 5:r=n.memoizedProps}t[ra]=e,t=!!(t.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||NR(t.nodeValue,a)),t||zo(e,!0)}else t=ed(t).createTextNode(r),t[ra]=e,e.stateNode=t}return st(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(r=gu(e),a!==null){if(t===null){if(!r)throw Error(I(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(557));t[ra]=e}else Fs(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;st(e),t=!1}else a=G0(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(cr(e),e):(cr(e),null);if((e.flags&128)!==0)throw Error(I(558))}return st(e),null;case 13:if(r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=gu(e),r!==null&&r.dehydrated!==null){if(t===null){if(!n)throw Error(I(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(I(317));n[ra]=e}else Fs(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;st(e),n=!1}else n=G0(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(cr(e),e):(cr(e),null)}return cr(e),(e.flags&128)!==0?(e.lanes=a,e):(a=r!==null,t=t!==null&&t.memoizedState!==null,a&&(r=e.child,n=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(n=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==n&&(r.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),up(e,e.updateQueue),st(e),null);case 4:return Zu(),t===null&&hb(e.stateNode.containerInfo),e.flags|=67108864,st(e),null;case 10:return Ii(e.type),st(e),null;case 19:if(Zy(e),r=e.memoizedState,r===null)return st(e),null;if(n=(e.flags&128)!==0,i=r.rendering,i===null)if(n)vf(r,!1);else{if(kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Hp(t),i!==null){for(e.flags|=128,vf(r,!1),t=i.updateQueue,e.updateQueue=t,up(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)tP(a,t),a=a.sibling;return Yf(e,oa.current&1|2),be&&Ti(e,r.treeForkCount),e.child}t=t.sibling}r.tail!==null&&hr()>nm&&(e.flags|=128,n=!0,vf(r,!1),e.lanes=4194304)}else{if(!n)if(t=Hp(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,up(e,t),vf(r,!0),r.tail===null&&r.tailMode!=="collapsed"&&r.tailMode!=="visible"&&!i.alternate&&!be)return st(e),null}else 2*hr()-r.renderingStartTime>nm&&a!==536870912&&(e.flags|=128,n=!0,vf(r,!1),e.lanes=4194304);r.isBackwards?(i.sibling=e.child,e.child=i):(t=r.last,t!==null?t.sibling=i:e.child=i,r.last=i)}if(r.tail!==null){t=r.tail;e:{for(a=t;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return r.rendering=t,r.tail=t.sibling,r.renderingStartTime=hr(),t.sibling=null,i=oa.current,i=n?i&1|2:i&1,r.tailMode==="visible"||r.tailMode==="collapsed"||!a||be?Yf(e,i):(a=i,ut(la,e),ut(oa,a),xa===null&&(xa=e)),be&&Ti(e,r.treeForkCount),t}return st(e),null;case 22:case 23:return cr(e),qy(),r=e.memoizedState!==null,t!==null?t.memoizedState!==null!==r&&(e.flags|=8192):r&&(e.flags|=8192),r?(a&536870912)!==0&&(e.flags&128)===0&&(st(e),e.subtreeFlags&6&&(e.flags|=8192)):st(e),a=e.updateQueue,a!==null&&up(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),r=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),r!==a&&(e.flags|=2048),t!==null&&ia(Vs),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ii(Qt),st(e),null;case 25:return null;case 30:return e.flags|=33554432,st(e),null}throw Error(I(156,e.tag))}function bX(t,e){switch(By(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ii(Qt),Zu(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return _p(e),null;case 31:if(e.memoizedState!==null){if(cr(e),e.alternate===null)throw Error(I(340));Fs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(cr(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(I(340));Fs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Zy(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Zu(),null;case 10:return Ii(e.type),null;case 22:case 23:return cr(e),qy(),t!==null&&ia(Vs),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ii(Qt),null;case 25:return null;default:return null}}function eR(t,e){switch(By(e),e.tag){case 3:Ii(Qt),Zu();break;case 26:case 27:case 5:_p(e);break;case 4:Zu();break;case 31:e.memoizedState!==null&&cr(e);break;case 13:cr(e);break;case 19:Zy(e);break;case 10:Ii(e.type);break;case 22:case 23:cr(e),qy(),t!==null&&ia(Vs);break;case 24:Ii(Qt)}}function hd(t,e){try{var a=e.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var n=r.next;a=n;do{if((a.tag&t)===t){r=void 0;var i=a.create,o=a.inst;r=i(),o.destroy=r}a=a.next}while(a!==n)}}catch(s){Fe(e,e.return,s)}}function Xo(t,e,a){try{var r=e.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var i=n.next;r=i;do{if((r.tag&t)===t){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,n=e;var l=a,u=s;try{u()}catch(c){Fe(n,l,c)}}}r=r.next}while(r!==i)}}catch(c){Fe(e,e.return,c)}}function tR(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{fP(e,a)}catch(r){Fe(t,t.return,r)}}}function aR(t,e,a){a.props=Js(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(r){Fe(t,e,r)}}function Un(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var r=t.stateNode;break;case 30:var n=t.stateNode,i=Qi(t.memoizedProps,n);(n.ref===null||n.ref.name!==i)&&(n.ref=jR(i)),r=n.ref;break;case 7:if(t.stateNode===null){var o=new xr(t);Ya(t.child,!1,lq,o,void 0,void 0),t.stateNode=o}r=t.stateNode;break;default:r=t.stateNode}typeof a=="function"?t.refCleanup=a(r):a.current=r}}catch(s){Fe(t,e,s)}}function aa(t,e){var a=t.ref,r=t.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(n){Fe(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){Fe(t,e,n)}else a.current=null}function Jp(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var a=0;a<e.length;a++)YR(t.stateNode,e[a])}function RL(t){for(var e=t.return;e!==null&&(ob(e)&&YR(t.stateNode,e.stateNode),!ib(e));)e=e.return}function zf(t){for(var e=t.return;e!==null&&(ob(e)&&uq(t.stateNode,e.stateNode),!ib(e));)e=e.return}function ib(t){return t.tag===5||t.tag===3||t.tag===27}function ob(t){return t&&t.tag===7&&t.stateNode!==null}function Gx(t){var e=t.type,a=t.memoizedProps,r=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(n){Fe(t,t.return,n)}}function tx(t,e,a){try{var r=t.stateNode;VX(r,t.type,a,e),r[Wa]=e}catch(n){Fe(t,t.return,n)}}function rR(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vo(t.type)||t.tag===4}function ax(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||rR(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Vo(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Yx(t,e,a,r){var n=t.tag;if(n===5||n===6)n=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(n),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=Hn)),Jp(t,r),Be=!0;else if(n!==4&&(n===27&&(Jp(t,r),r=null,Vo(t.type)&&(a=t.stateNode,e=null)),t=t.child,t!==null))for(Yx(t,e,a,r),t=t.sibling;t!==null;)Yx(t,e,a,r),t=t.sibling}function em(t,e,a,r){var n=t.tag;if(n===5||n===6)n=t.stateNode,e?a.insertBefore(n,e):a.appendChild(n),Jp(t,r),Be=!0;else if(n!==4&&(n===27&&(Jp(t,r),r=null,Vo(t.type)&&(a=t.stateNode)),t=t.child,t!==null))for(em(t,e,a,r),t=t.sibling;t!==null;)em(t,e,a,r),t=t.sibling}function nR(t){var e=t.stateNode,a=t.memoizedProps;try{for(var r=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);sa(e,r,a),e[ra]=t,e[Wa]=a}catch(i){Fe(t,t.return,i)}}var tm=!1,fr=null;function IL(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(tm=!0)}var jn=null;function AL(){var t=jn;return jn=null,t}var Fa=0;function ic(t,e,a,r,n){return Fa=0,iR(t.child,e,a,r,n)}function iR(t,e,a,r,n){for(var i=!1;t!==null;){if(t.tag===5){var o=t.stateNode;if(r!==null){var s=gy(o);r.push(s),s.view&&(i=!0)}else i||gy(o).view&&(i=!0);tm=!0,ZR(o,Fa===0?e:e+"_"+Fa,a),Fa++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&n||iR(t.child,e,a,r,n)&&(i=!0));t=t.sibling}return i}function Jn(t,e){for(;t!==null;)t.tag===5?VR(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||Jn(t.child,e)),t=t.sibling}function Tp(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(Tp(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(I(544));var a=e.name;e=_i(e.default,e.share),e!=="none"&&(ic(t,a,e,null,!1)||Jn(t.child,!1))}t=t.sibling}}function Wx(t,e){if(t.tag===30){var a=t.stateNode,r=t.memoizedProps,n=Qi(r,a),i=_i(r.default,a.paired?r.share:r.enter);i!=="none"?ic(t,n,i,null,!1)?(Tp(t),a.paired||e||Hu(t,r.onEnter)):Jn(t.child,!1):Tp(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Wx(t,e),t=t.sibling;else Tp(t)}function Kx(t){if(fr!==null&&fr.size!==0){var e=fr;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var a=t.memoizedProps,r=a.name;if(r!=null&&r!=="auto"){var n=e.get(r);if(n!==void 0){var i=_i(a.default,a.share);if(i!=="none"&&(ic(t,r,i,null,!1)?(i=t.stateNode,n.paired=i,i.paired=n,Hu(t,a.onShare)):Jn(t.child,!1)),e.delete(r),e.size===0)break}}}Kx(t)}t=t.sibling}}}function Jx(t){if(t.tag===30){var e=t.memoizedProps,a=Qi(e,t.stateNode),r=fr!==null?fr.get(a):void 0,n=_i(e.default,r!==void 0?e.share:e.exit);n!=="none"&&(ic(t,a,n,null,!1)?r!==void 0?(n=t.stateNode,r.paired=n,n.paired=r,fr.delete(a),Hu(t,e.onShare)):Hu(t,e.onExit):Jn(t.child,!1)),fr!==null&&Kx(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Jx(t),t=t.sibling;else fr!==null&&Kx(t)}function oR(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,a=Qi(e,t.stateNode);e=_i(e.default,e.update),t.flags&=-5,e!=="none"&&ic(t,a,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&oR(t);t=t.sibling}}function ey(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,Jn(t.child,!1))}ey(t)}t=t.sibling}}function Pp(t){if(t.tag===30)t.stateNode.paired=null,Jn(t.child,!1),ey(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Pp(t),t=t.sibling;else ey(t)}function sR(t){for(t=t.child;t!==null;)t.tag===30?Jn(t.child,!1):(t.subtreeFlags&33554432)!==0&&sR(t),t=t.sibling}function sb(t,e,a,r,n,i,o){for(var s=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null&&Fa<i.length){var u=i[Fa],c=gy(l);(u.view||c.view)&&(s=!0);var f;if(f=(t.flags&4)===0)if(c.clip)f=!0;else{f=u.rect;var d=c.rect;f=f.y!==d.y||f.x!==d.x||f.height!==d.height||f.width!==d.width}f&&(t.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&ZR(l,Fa===0?a:a+"_"+Fa,n),s&&(t.flags&4)!==0||(jn===null&&(jn=[]),jn.push(l,Fa===0?r:r+"_"+Fa,e.memoizedProps)),Fa++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&o?t.flags|=e.flags&32:sb(t,e.child,a,r,n,i,o)&&(s=!0));e=e.sibling}return s}function lR(t,e){for(t=t.child;t!==null;){if(t.tag===30){var a=t.memoizedProps,r=t.stateNode,n=Qi(a,r),i=_i(a.default,a.update);if(e){r=r.clones;var o=r===null?null:r.map(YX)}else o=t.memoizedState,t.memoizedState=null;r=t;var s=t.child;Fa=0,n=sb(r,s,n,n,i,o,!1),(t.flags&4)!==0&&n&&(e||Hu(t,a.onUpdate))}else(t.subtreeFlags&33554432)!==0&&lR(t,e);t=t.sibling}}var jt=!1,Ve=!1,qn=!1,rx=!1,QL=typeof WeakSet=="function"?WeakSet:Set,Ft=null,Zn=!1,Rf=!1,am=!1,ty=!1;function vX(t,e,a){if(t=t.containerInfo,hy=ec,t=FT(t),My(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=t,h=null;t:for(;;){for(var p;d!==r||i!==0&&d.nodeType!==3||(l=s+i),d!==o||n!==0&&d.nodeType!==3||(u=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===r&&++c===i&&(l=s),h===o&&++f===n&&(u=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(py={focusedElem:t,selectionRange:r},ec=!1,a=(a&335544064)===a,Ft=e,e=a?9270:1024;Ft!==null;){if(t=Ft,a&&(r=t.deletions,r!==null))for(i=0;i<r.length;i++)a&&Jx(r[i]);if(t.alternate===null&&(t.flags&2)!==0)a&&IL(t),cp(a);else{if(t.tag===22){if(r=t.alternate,t.memoizedState!==null){r!==null&&r.memoizedState===null&&a&&Jx(r),cp(a);continue}else if(r!==null&&r.memoizedState!==null){a&&IL(t),cp(a);continue}}r=t.child,(t.subtreeFlags&e)!==0&&r!==null?(r.return=t,Ft=r):(a&&oR(t),cp(a))}}fr=null}function cp(t){for(;Ft!==null;){var e=Ft,a=t,r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((n&1024)!==0&&r!==null){a=void 0,n=r.memoizedProps,r=r.memoizedState;var i=e.stateNode;try{var o=Js(e.type,n);a=i.getSnapshotBeforeUpdate(o,r),i.__reactInternalSnapshotBeforeUpdate=a}catch(s){Fe(e,e.return,s)}}break;case 3:if((n&1024)!==0){if(r=e.stateNode.containerInfo,a=r.nodeType,a===9)Oy(r);else if(a===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Oy(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&r!==null&&(a=Qi(r.memoizedProps,r.stateNode),n=e.memoizedProps,n=_i(n.default,n.update),n!=="none"&&ic(r,a,n,r.memoizedState=[],!0));break;default:if((n&1024)!==0)throw Error(I(163))}if(r=e.sibling,r!==null){r.return=e.return,Ft=r;break}Ft=e.return}}function uR(t,e,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Vn(t,a),r&4&&hd(5,a);break;case 1:if(Vn(t,a),r&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(o){Fe(a,a.return,o)}else{var n=Js(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Fe(a,a.return,o)}}r&64&&tR(a),r&512&&Un(a,a.return);break;case 3:if(Vn(t,a),r&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{fP(t,e)}catch(o){Fe(a,a.return,o)}}break;case 27:e===null&&r&4&&nR(a);case 26:case 5:Vn(t,a),e===null&&r&4&&Gx(a),r&512&&Un(a,a.return);break;case 12:Vn(t,a);break;case 31:Vn(t,a),r&4&&hR(t,a);break;case 13:Vn(t,a),r&4&&pR(t,a),r&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=MX.bind(null,a),dq(t,a))));break;case 22:if(r=a.memoizedState!==null||jt,!r){var i=e!==null&&e.memoizedState!==null||Ve;e=jt,n=Ve,jt=r,(Ve=i)&&!n?(r=2,(a.subtreeFlags&8772)!==0&&(r|=1),sn(t,a,r)):Vn(t,a),jt=e,Ve=n}break;case 30:Vn(t,a),r&512&&Un(a,a.return);break;case 7:r&512&&Un(a,a.return);default:Vn(t,a)}}function ay(t,e){for(t=t.child;t!==null;)cR(t,e),t=t.sibling}function cR(t,e){switch(t.tag){case 5:case 26:try{var a=t.stateNode;if(e){var r=a.style;typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}else{var n=t.stateNode,i=t.memoizedProps.style,o=i!=null&&i.hasOwnProperty("display")?i.display:null;n.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(l){Fe(t,t.return,l)}ry(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,Be=!0}catch(l){Fe(t,t.return,l)}break;case 18:try{var s=t.stateNode;e?HL(s,!0):HL(t.stateNode,!1)}catch(l){Fe(t,t.return,l)}break;case 22:case 23:t.memoizedState===null&&ay(t,e);break;default:ay(t,e)}}function ry(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){e:{var a=t,r=e;switch(a.tag){case 4:cR(a,r);break e;case 22:a.memoizedState===null&&ry(a,r);break e;default:ry(a,r)}}t=t.sibling}}function fR(t){var e=t.alternate;e!==null&&(t.alternate=null,fR(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&dm(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ot=null,Ua=!1;function on(t,e,a){for(a=a.child;a!==null;)dR(t,e,a),a=a.sibling}function dR(t,e,a){if(pr&&typeof pr.onCommitFiberUnmount=="function")try{pr.onCommitFiberUnmount(od,a)}catch{}switch(a.tag){case 26:Ve||aa(a,e),on(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Ve&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ve||aa(a,e),zf(a);var r=Ot,n=Ua;Vo(a.type)&&(Ot=a.stateNode,Ua=!1),on(t,e,a),JR(a.stateNode,a.type,a.memoizedProps),Ot=r,Ua=n;break;case 5:Ve||aa(a,e),zf(a);case 6:if(a.tag===6&&zf(a),r=Ot,n=Ua,Ot=null,on(t,e,a),Ot=r,Ua=n,Ot!==null)if(Ua)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(a.stateNode),Be=!0}catch(i){Fe(a,e,i)}else try{Ot.removeChild(a.stateNode),Be=!0}catch(i){Fe(a,e,i)}break;case 18:Ot!==null&&(Ua?(t=Ot,FL(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),tc(t)):FL(Ot,a.stateNode));break;case 4:r=Ot,n=Ua,Ot=a.stateNode.containerInfo,Ua=!0,on(t,e,a),Ot=r,Ua=n;break;case 0:case 11:case 14:case 15:Xo(2,a,e),Ve||Xo(4,a,e),on(t,e,a);break;case 1:Ve||(aa(a,e),r=a.stateNode,typeof r.componentWillUnmount=="function"&&aR(a,e,r)),on(t,e,a);break;case 21:on(t,e,a);break;case 22:Ve=(r=Ve)||a.memoizedState!==null,on(t,e,a),Ve=r;break;case 30:aa(a,e),on(t,e,a);break;case 7:Ve||aa(a,e),on(t,e,a);break;default:on(t,e,a)}}function hR(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{tc(t)}catch(a){Fe(e,e.return,a)}}}function pR(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{tc(t)}catch(a){Fe(e,e.return,a)}}function SX(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new QL),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new QL),e;default:throw Error(I(435,t.tag))}}function fp(t,e){var a=SX(t);e.forEach(function(r){if(!a.has(r)){a.add(r);var n=EX.bind(null,t,r);r.then(n,n)}})}function La(t,e,a){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n],o=t,s=e,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(Vo(l.type)){Ot=l.stateNode,Ua=!1;break e}break;case 5:Ot=l.stateNode,Ua=!1;break e;case 3:case 4:Ot=l.stateNode.containerInfo,Ua=!0;break e}l=l.return}if(Ot===null)throw Error(I(160));dR(o,s,i),Ot=null,Ua=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)mR(e,t,a),e=e.sibling}var ln=null;function mR(t,e,a){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(n&4&&(r=t.updateQueue,r=r!==null?r.events:null,r!==null))for(var i=0;i<r.length;i++){var o=r[i];o.ref.impl=o.nextImpl}La(e,t,a),Ta(t),n&4&&(Xo(3,t,t.return),hd(3,t),Xo(5,t,t.return));break;case 1:La(e,t,a),Ta(t),n&512&&(Ve||r===null||aa(r,r.return)),n&64&&jt&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?e:a.concat(e))));break;case 26:if(i=ln,La(e,t,a),Ta(t),n&512&&(Ve||r===null||aa(r,r.return)),n&4)if(n=r!==null?r.memoizedState:null,a=t.memoizedState,r===null)if(a===null)if(t.stateNode===null)if(jt)t.stateNode=qR(t.type,t.memoizedProps,e.containerInfo,t);else{e:{e=t.type,a=t.memoizedProps,n=i.ownerDocument||i;t:switch(e){case"title":r=n.getElementsByTagName("title")[0],(!r||r[ud]||r[ra]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=n.createElement(e),n.head.insertBefore(r,n.querySelector("head > title"))),sa(r,e,a),r[ra]=t,Ht(r),e=r;break e;case"link":if(i=aT("link","href",n).get(e+(a.href||""))){for(o=0;o<i.length;o++)if(r=i[o],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(o,1);break t}}r=n.createElement(e),sa(r,e,a),n.head.appendChild(r);break;case"meta":if(i=aT("meta","content",n).get(e+(a.content||""))){for(o=0;o<i.length;o++)if(r=i[o],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(o,1);break t}}r=n.createElement(e),sa(r,e,a),n.head.appendChild(r);break;default:throw Error(I(468,e))}r[ra]=t,Ht(r),e=r}t.stateNode=e}else jt||by(i,t.type,t.stateNode);else t.stateNode=tT(i,a,t.memoizedProps);else n!==a?(n===null?(e=r.stateNode,e===null||Ve||e.parentNode.removeChild(e)):n.count--,a===null?jt||by(i,t.type,t.stateNode):tT(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&tx(t,t.memoizedProps,r.memoizedProps);break;case 27:La(e,t,a),Ta(t),n&512&&(Ve||r===null||aa(r,r.return)),r!==null&&n&4&&tx(t,t.memoizedProps,r.memoizedProps);break;case 5:if(i=qn,qn=!1,La(e,t,a),qn=i,Ta(t),n&512&&(Ve||r===null||aa(r,r.return)),t.flags&32){e=t.stateNode;try{Uu(e,""),Be=!0}catch(c){Fe(t,t.return,c)}}n&4&&t.stateNode!=null&&(e=t.memoizedProps,tx(t,e,r!==null?r.memoizedProps:e)),n&1024&&(rx=!0);break;case 6:if(La(e,t,a),Ta(t),n&4){if(t.stateNode===null)throw Error(I(162));e=t.memoizedProps,a=t.stateNode;try{a.nodeValue=e,Be=!0}catch(c){Fe(t,t.return,c)}}break;case 3:if(Be=!1,Qp=null,i=ln,ln=td(e.containerInfo),La(e,t,a),ln=i,Ta(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{tc(e.containerInfo)}catch(c){Fe(t,t.return,c)}rx&&(rx=!1,gR(t)),Be=!1;break;case 4:n=qn,qn=jt,r=_k(),i=ln,ln=td(t.stateNode.containerInfo),La(e,t,a),Ta(t),ln=i,Be&&Rf&&(am=!0),Be=r,qn=n;break;case 12:La(e,t,a),Ta(t);break;case 31:La(e,t,a),Ta(t),n&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,fp(t,e)));break;case 13:La(e,t,a),Ta(t),t.child.flags&8192&&t.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(km=hr()),n&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,fp(t,e)));break;case 22:i=t.memoizedState!==null,o=r!==null&&r.memoizedState!==null;var s=jt,l=Ve,u=qn;jt=s||i,qn=u||i,Ve=l||o,La(e,t,a),Ve=l,qn=u,jt=s,Ta(t),n&8192&&(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,!i||r===null||o||jt||Ve||(e=o||Ve,a=jt,r=Ve,jt=i||jt,Ve=e,xo(t,2),jt=a,Ve=r),!i&&qn||ay(t,i)),n&4&&(e=t.updateQueue,e!==null&&(a=e.retryQueue,a!==null&&(e.retryQueue=null,fp(t,a))));break;case 19:La(e,t,a),Ta(t),n&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,fp(t,e)));break;case 30:n&512&&(Ve||r===null||aa(r,r.return)),n=_k(),i=Rf,o=(a&335544064)===a,s=t.memoizedProps,Rf=o&&_i(s.default,s.update)!=="none",La(e,t,a),Ta(t),o&&r!==null&&Be&&(t.flags|=4),Rf=i,Be=n;break;case 21:break;case 7:n&512&&(Ve||r===null||aa(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=t);default:La(e,t,a),Ta(t)}}function Ta(t){var e=t.flags;if(e&2){try{for(var a,r=t.return;r!==null;){if(rR(r)){a=r;break}r=r.return}r=null;for(var n=t.return;n!==null;){if(ob(n)){var i=n.stateNode;r===null?r=[i]:r.push(i)}if(ib(n))break;n=n.return}var o=r;if(a==null)throw Error(I(160));switch(a.tag){case 27:var s=a.stateNode,l=ax(t);em(t,l,s,o);break;case 5:var u=a.stateNode;a.flags&32&&(Uu(u,""),a.flags&=-33);var c=ax(t);em(t,c,u,o);break;case 3:case 4:var f=a.stateNode.containerInfo,d=ax(t);Yx(t,d,f,o);break;default:throw Error(I(161))}}catch(h){Fe(t,t.return,h)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function gR(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;gR(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,ec=!0,e.reset(),ec=!1),t=t.sibling}}function Ou(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)OR(e,t),e=e.sibling;else lR(e,!1)}function OR(t,e){var a=t.alternate;if(a===null)Wx(t,!1);else switch(t.tag){case 3:if(ty=Zn=!1,AL(),Ou(e,t),!Zn&&!am){if(t=jn,t!==null)for(var r=0;r<t.length;r+=3){a=t[r];var n=t[r+1];VR(a,t[r+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+n+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),ty=!0}jn=null;break;case 5:Ou(e,t);break;case 4:r=Zn,Zn=!1,Ou(e,t),Zn&&(am=!0),Zn=r;break;case 22:t.memoizedState===null&&(a.memoizedState!==null?Wx(t,!1):Ou(e,t));break;case 30:r=Zn,n=AL(),Zn=!1,Ou(e,t),Zn&&(t.flags|=4);var i=t.memoizedProps,o=t.stateNode;e=Qi(i,o),o=Qi(a.memoizedProps,o);var s=_i(i.default,i.update);s==="none"?e=!1:(i=a.memoizedState,a.memoizedState=null,a=t.child,Fa=0,e=sb(t,a,e,o,s,i,!0),Fa!==(i===null?0:i.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(Hu(t,t.memoizedProps.onUpdate),jn=n):n!==null&&(n.push.apply(n,jn),jn=n),Zn=(t.flags&32)!==0?!0:r;break;default:Ou(e,t)}}function Vn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)uR(t,e.alternate,e),e=e.sibling}function xo(t,e){for(t=t.child;t!==null;){var a=t,r=e;switch(a.tag){case 0:case 11:case 14:case 15:Xo(4,a,a.return),xo(a,r);break;case 1:aa(a,a.return);var n=a.stateNode;typeof n.componentWillUnmount=="function"&&aR(a,a.return,n),xo(a,r);break;case 27:(r&2)!==0&&JR(a.stateNode,a.type,a.memoizedProps);case 5:aa(a,a.return),a.tag!==5&&a.tag!==27||zf(a),xo(a,r);break;case 6:zf(a);break;case 26:aa(a,a.return),n=a.stateNode,a.memoizedState!==null||n===null||Ve||n.parentNode.removeChild(n),xo(a,r);break;case 22:a.memoizedState===null&&xo(a,r);break;case 30:aa(a,a.return),xo(a,r);break;case 7:aa(a,a.return);default:xo(a,r)}t=t.sibling}}function sn(t,e,a){for(a=(e.subtreeFlags&8772)!==0?a:a&-2,e=e.child;e!==null;){var r=e.alternate,n=t,i=e,o=i.flags,s=(a&1)!==0;switch(i.tag){case 0:case 11:case 15:sn(n,i,a),hd(4,i);break;case 1:if(sn(n,i,a),r=i,n=r.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(c){Fe(r,r.return,c)}if(r=i,n=r.updateQueue,n!==null){var l=r.stateNode;try{var u=n.shared.hiddenCallbacks;if(u!==null)for(n.shared.hiddenCallbacks=null,n=0;n<u.length;n++)cP(u[n],l)}catch(c){Fe(r,r.return,c)}}s&&o&64&&tR(i),Un(i,i.return);break;case 27:(a&2)!==0&&nR(i);case 5:i.tag!==5&&i.tag!==27||RL(i),sn(n,i,a),s&&r===null&&o&4&&Gx(i),Un(i,i.return);break;case 6:RL(i);break;case 26:l=i.stateNode,i.memoizedState!==null||l===null||jt||by(td(l.ownerDocument),i.type,l),sn(n,i,a),s&&r===null&&o&4&&Gx(i),Un(i,i.return);break;case 12:sn(n,i,a);break;case 31:sn(n,i,a),s&&o&4&&hR(n,i);break;case 13:sn(n,i,a),s&&o&4&&pR(n,i);break;case 22:i.memoizedState===null&&sn(n,i,a),Un(i,i.return);break;case 30:sn(n,i,a),Un(i,i.return);break;case 7:Un(i,i.return);default:sn(n,i,a)}e=e.sibling}}function lb(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&fd(a))}function ub(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&fd(t))}function Ir(t,e,a,r){var n=(a&335544064)===a;if(e.subtreeFlags&(n?10262:10256))for(e=e.child;e!==null;)xR(t,e,a,r),e=e.sibling;else n&&sR(e)}function xR(t,e,a,r){var n=(a&335544064)===a;n&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&Pp(e);var i=e.flags;switch(e.tag){case 0:case 11:case 15:Ir(t,e,a,r),i&2048&&hd(9,e);break;case 1:Ir(t,e,a,r);break;case 3:Ir(t,e,a,r),n&&ty&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),i&2048&&(i=null,e.alternate!==null&&(i=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==i&&(e.refCount++,i!=null&&fd(i)));break;case 12:if(i&2048){Ir(t,e,a,r),i=e.stateNode;try{var o=e.memoizedProps,s=o.id,l=o.onPostCommit;typeof l=="function"&&l(s,e.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(u){Fe(e,e.return,u)}}else Ir(t,e,a,r);break;case 31:Ir(t,e,a,r);break;case 13:Ir(t,e,a,r);break;case 23:break;case 22:o=e.stateNode,s=e.alternate,e.memoizedState!==null?(n&&s!==null&&s.memoizedState===null&&Pp(s),o._visibility&2?Ir(t,e,a,r):Nf(t,e)):(n&&s!==null&&s.memoizedState!==null&&Pp(e),o._visibility&2?Ir(t,e,a,r):(o._visibility|=2,yu(t,e,a,r,(e.subtreeFlags&10256)!==0||!1))),i&2048&&lb(s,e);break;case 24:Ir(t,e,a,r),i&2048&&ub(e.alternate,e);break;case 30:n&&(i=e.alternate,i!==null&&(Jn(i.child,!0),Jn(e.child,!0))),Ir(t,e,a,r);break;default:Ir(t,e,a,r)}}function yu(t,e,a,r,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,o=e,s=a,l=r,u=o.flags;switch(o.tag){case 0:case 11:case 15:yu(i,o,s,l,n),hd(8,o);break;case 23:break;case 22:var c=o.stateNode;o.memoizedState!==null?c._visibility&2?yu(i,o,s,l,n):Nf(i,o):(c._visibility|=2,yu(i,o,s,l,n)),n&&u&2048&&lb(o.alternate,o);break;case 24:yu(i,o,s,l,n),n&&u&2048&&ub(o.alternate,o);break;default:yu(i,o,s,l,n)}e=e.sibling}}function Nf(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,r=e,n=r.flags;switch(r.tag){case 22:Nf(a,r),n&2048&&lb(r.alternate,r);break;case 24:Nf(a,r),n&2048&&ub(r.alternate,r);break;default:Nf(a,r)}e=e.sibling}}var zs=8192;function $s(t,e,a){if(t.subtreeFlags&zs)for(t=t.child;t!==null;)yR(t,e,a),t=t.sibling}function yR(t,e,a){switch(t.tag){case 26:$s(t,e,a),t.flags&zs&&(t.memoizedState!==null?Lq(a,ln,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&nT(a,t)));break;case 5:$s(t,e,a),t.flags&zs&&(t=t.stateNode,(e&335544128)===e&&nT(a,t));break;case 3:case 4:var r=ln;ln=td(t.stateNode.containerInfo),$s(t,e,a),ln=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=zs,zs=16777216,$s(t,e,a),zs=r):$s(t,e,a));break;case 30:if((t.flags&zs)!==0&&(r=t.memoizedProps.name,r!=null&&r!=="auto")){var n=t.stateNode;n.paired=null,fr===null&&(fr=new Map),fr.set(r,n)}$s(t,e,a);break;default:$s(t,e,a)}}function bR(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Sf(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var r=e[a];Ft=r,SR(r,t)}bR(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vR(t),t=t.sibling}function vR(t){switch(t.tag){case 0:case 11:case 15:Sf(t),t.flags&2048&&Xo(9,t,t.return);break;case 3:Sf(t);break;case 12:Sf(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Rp(t)):Sf(t);break;default:Sf(t)}}function Rp(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var r=e[a];Ft=r,SR(r,t)}bR(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Xo(8,e,e.return),Rp(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Rp(e));break;default:Rp(e)}t=t.sibling}}function SR(t,e){for(;Ft!==null;){var a=Ft;switch(a.tag){case 0:case 11:case 15:Xo(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:fd(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Ft=r;else e:for(a=t;Ft!==null;){r=Ft;var n=r.sibling,i=r.return;if(fR(r),r===a){Ft=null;break e}if(n!==null){n.return=i,Ft=n;break e}Ft=i}}}var wX={getCacheForType:function(t){var e=na(Qt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return na(Qt).controller.signal}},CX=typeof WeakMap=="function"?WeakMap:Map,ze=0,et=null,we=null,Te=0,Ue=0,lr=null,ko=!1,oc=!1,cb=!1,$i=0,kt=0,qo=0,js=0,rm=0,dr=0,Fu=0,Xf=null,ja=null,ny=!1,km=0,wR=0,nm=1/0,im=null,Eo=null,bt=0,cn=null,el=null,Kn=0,iy=0,oy=null,CR=null,Nu=null,Xu=null,qu=null,qf=0,Ip=null;function gr(){return(ze&2)!==0&&Te!==0?Te&-Te:he.T!==null?db():PT()}function kR(){if(dr===0)if((Te&536870912)===0||be){var t=Kh;Kh<<=1,(Kh&3932160)===0&&(Kh=262144),dr=t}else dr=536870912;return t=la.current,t!==null&&(t.flags|=32),dr}function Hu(t,e){if(e!=null){var a=t.stateNode,r=a.ref;r===null&&(r=a.ref=jR(Qi(t.memoizedProps,a))),Xu===null&&(Xu=[]),Xu.push(e.bind(null,r))}}function Ga(t,e,a){(t===et&&(Ue===2||Ue===9)||t.cancelPendingCommit!==null)&&(Gu(t,0),Lo(t,Te,dr,!1)),ld(t,a),((ze&2)===0||t!==et)&&(t===et&&((ze&2)===0&&(js|=a),kt===4&&Lo(t,Te,dr,!1)),ti(t))}function LR(t,e,a){if((ze&6)!==0)throw Error(I(327));var r=!a&&(e&127)===0&&(e&t.expiredLanes)===0||sd(t,e),n=r?TX(t,e):nx(t,e,!0),i=r;do{if(n===0){oc&&!r&&Lo(t,e,0,!1);break}else{if(a=t.current.alternate,i&&!kX(a)){n=nx(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;e:{var s=t;n=Xf;var l=s.current.memoizedState.isDehydrated;if(l&&(Gu(s,o).flags|=256),o=nx(s,o,!1),o!==2&&o!==6){if(cb&&!l){s.errorRecoveryDisabledLanes|=i,js|=i,n=4;break e}i=ja,ja=n,i!==null&&(ja===null?ja=i:ja.push.apply(ja,i))}n=o}if(i=!1,n!==2)continue}}if(n===1){Gu(t,0),Lo(t,e,0,!0);break}e:{switch(r=t,i=n,i){case 0:case 1:throw Error(I(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Lo(r,e,dr,!ko);break e;case 2:ja=null;break;case 3:case 5:break;default:throw Error(I(329))}if((e&62914560)===e&&(n=km+300-hr(),10<n)){if(Lo(r,e,dr,!ko),fm(r,0,!0)!==0)break e;Kn=e,r.timeoutHandle=pb(ML.bind(null,r,a,ja,im,ny,e,dr,js,Fu,ko,i,"Throttled",-0,0),n);break e}ML(r,a,ja,im,ny,e,dr,js,Fu,ko,i,null,-0,0)}}break}while(!0);ti(t)}function ML(t,e,a,r,n,i,o,s,l,u,c,f,d,h){t.timeoutHandle=-1;var p=e.subtreeFlags,m=(i&335544064)===i;if(f=null,(m||p&8192||(p&16785408)===16785408)&&(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},fr=null,yR(e,i,f),m&&(p=f,m=t.containerInfo,m=(m.nodeType===9?m:m.ownerDocument).__reactViewTransition,m!=null&&(p.count++,p.waitingForViewTransition=!0,p=ad.bind(p),m.finished.then(p,p))),p=(i&62914560)===i?km-hr():(i&4194048)===i?wR-hr():0,p=Tq(f,p),p!==null)){Kn=i,t.cancelPendingCommit=p(DL.bind(null,t,e,i,a,r,n,o,s,l,u,c,f,null,d,h)),Lo(t,i,o,!u);return}DL(t,e,i,a,r,n,o,s,l,u,c,f)}function kX(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var n=a[r],i=n.getSnapshot;n=n.value;try{if(!Or(i(),n))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Lo(t,e,a,r){e=wT(t,e),e&=~rm,e&=~js,t.suspendedLanes|=e,t.pingedLanes&=~e,r&&(t.warmLanes|=e),r=t.expirationTimes;for(var n=e;0<n;){var i=31-mr(n),o=1<<i;r[i]=-1,n&=~o}a!==0&&kT(t,a,e)}function Lm(){return(ze&6)===0?(pd(0,!1),!1):!0}function fb(){if(we!==null){if(Ue===0)var t=we.return;else t=we,Pi=il=null,Hy(t),Bu=null,Gf=0,t=we;for(;t!==null;)eR(t.alternate,t),t=t.return;we=null}}function Gu(t,e){var a=t.timeoutHandle;return a!==-1&&(t.timeoutHandle=-1,FX(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Kn=0,fb(),et=t,we=a=Ri(t.current,null),Te=e,Ue=0,lr=null,ko=!1,oc=sd(t,e),cb=!1,Fu=dr=rm=js=qo=kt=0,ja=Xf=null,ny=!1,$i=wT(t,e),gm(),a}function TR(t,e){Oe=null,he.H=Wp,e===nc||e===ym?(e=oL(),Ue=3):e===Ny?(e=oL(),Ue=4):Ue=e===ab?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,lr=e,we===null&&(kt=1,Kp(t,Dr(e,t.current)))}function PR(){var t=la.current;return t===null?!0:(Te&4194048)===Te?xa===null:(Te&62914560)===Te||(Te&536870912)!==0?t===xa:!1}function RR(){var t=he.H;return he.H=Wp,t===null?Wp:t}function IR(){var t=he.A;return he.A=wX,t}function om(){kt=4,ko||(Te&4194048)!==Te&&la.current!==null||(oc=!0),(qo&134217727)===0&&(js&134217727)===0||et===null||Lo(et,Te,dr,!1)}function nx(t,e,a){var r=ze;ze|=2;var n=RR(),i=IR();(et!==t||Te!==e)&&(im=null,Gu(t,e)),e=!1;var o=kt;e:do try{if(Ue!==0&&we!==null){var s=we,l=lr;switch(Ue){case 8:fb(),o=6;break e;case 3:case 2:case 9:case 6:la.current===null&&(e=!0);var u=Ue;if(Ue=0,lr=null,Qu(t,s,l,u),a&&oc){o=0;break e}break;default:u=Ue,Ue=0,lr=null,Qu(t,s,l,u)}}LX(),o=kt;break}catch(c){TR(t,c)}while(!0);return e&&t.shellSuspendCounter++,Pi=il=null,ze=r,he.H=n,he.A=i,we===null&&(et=null,Te=0,gm()),o}function LX(){for(;we!==null;)AR(we)}function TX(t,e){var a=ze;ze|=2;var r=RR(),n=IR();et!==t||Te!==e?(im=null,nm=hr()+500,Gu(t,e)):oc=sd(t,e);e:do try{if(Ue!==0&&we!==null){e=we;var i=lr;t:switch(Ue){case 1:Ue=0,lr=null,Qu(t,e,i,1);break;case 2:case 9:if(iL(i)){Ue=0,lr=null,EL(e);break}e=function(){Ue!==2&&Ue!==9||et!==t||(Ue=7),ti(t)},i.then(e,e);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:iL(i)?(Ue=0,lr=null,EL(e)):(Ue=0,lr=null,Qu(t,e,i,7));break;case 5:var o=null;switch(we.tag){case 26:o=we.memoizedState;case 5:case 27:var s=we;if(o?aI(o):s.stateNode.complete){Ue=0,lr=null;var l=s.sibling;if(l!==null)we=l;else{var u=s.return;u!==null?(we=u,Tm(u)):we=null}break t}}Ue=0,lr=null,Qu(t,e,i,5);break;case 6:Ue=0,lr=null,Qu(t,e,i,6);break;case 8:fb(),kt=6;break e;default:throw Error(I(462))}}PX();break}catch(c){TR(t,c)}while(!0);return Pi=il=null,he.H=r,he.A=n,ze=a,we!==null?0:(et=null,Te=0,gm(),kt)}function PX(){for(;we!==null&&!UN();)AR(we)}function AR(t){var e=JP(t.alternate,t,$i);t.memoizedProps=t.pendingProps,e===null?Tm(t):we=e}function EL(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=SL(a,e,e.pendingProps,e.type,void 0,Te);break;case 11:e=SL(a,e,e.pendingProps,e.type.render,e.ref,Te);break;case 5:Hy(e);var r=e;r===Gt&&(be?(Vp(r),r.tag===5&&r.stateNode!=null&&(lt=r.stateNode)):(Vp(r),be=!0));default:eR(a,e),e=we=tP(e,$i),e=JP(a,e,$i)}t.memoizedProps=t.pendingProps,e===null?Tm(t):we=e}function Qu(t,e,a,r){Pi=il=null,Hy(e),Bu=null,Gf=0;var n=e.return;try{if(mX(t,n,e,a,Te)){kt=1,Kp(t,Dr(a,t.current)),we=null;return}}catch(i){if(n!==null)throw we=n,i;kt=1,Kp(t,Dr(a,t.current)),we=null;return}e.flags&32768?(be||r===1?t=!0:oc||(Te&536870912)!==0?t=!1:(ko=t=!0,(r===2||r===9||r===3||r===6)&&(r=la.current,r!==null&&r.tag===13&&(r.flags|=16384))),QR(e,t)):Tm(e)}function Tm(t){var e=t;do{if((e.flags&32768)!==0){QR(e,ko);return}t=e.return;var a=yX(e.alternate,e,$i);if(a!==null){we=a;return}if(e=e.sibling,e!==null){we=e;return}we=e=t}while(e!==null);kt===0&&(kt=5)}function QR(t,e){do{var a=bX(t.alternate,t);if(a!==null){a.flags&=32767,we=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){we=t;return}we=t=a}while(t!==null);kt=6,we=null}function DL(t,e,a,r,n,i,o,s,l,u,c,f){t.cancelPendingCommit=null;do Pm();while(bt!==0);if((ze&6)!==0)throw Error(I(327));if(e!==null){if(e===t.current)throw Error(I(177));t===et&&(we=et=null,Te=0),el=e,cn=t,Kn=a,oy=n,CR=r,RX(t,e,a,o,s,l,f)}}function RX(t,e,a,r,n,i,o){var s=e.lanes|e.childLanes;if(iy=s,s|=Ey,t3(t,a,s,r,n,i),Xu=null,(a&335544064)===a?(qu=rX(t),r=10262):(qu=null,r=10256),(e.subtreeFlags&r)!==0||(e.flags&r)!==0?(t.callbackNode=null,t.callbackPriority=0,DX(zp,function(){return cy(),null})):(t.callbackNode=null,t.callbackPriority=0),tm=!1,r=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||r){r=he.T,he.T=null,n=Ne.p,Ne.p=2,i=ze,ze|=4;try{vX(t,e,a)}finally{ze=i,Ne.p=n,he.T=r}}bt=1,tm?Nu=JX(o,t.containerInfo,qu,sy,ly,AX,uy,cy,IX,null,null):(sy(),ly(),uy())}function IX(t){if(bt!==0){var e=cn.onRecoverableError;e(t,{componentStack:null})}}function AX(){bt===3&&(bt=0,OR(el,cn),bt=4)}function sy(){if(bt===1){bt=0;var t=cn,e=el,a=Kn,r=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||r){r=he.T,he.T=null;var n=Ne.p;Ne.p=2;var i=ze;ze|=4;try{Rf=am=!1,mR(e,t,a),a=py;var o=FT(t.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&jT(s.ownerDocument.documentElement,s)){if(l!==null&&My(s)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var f=s.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),p=s.textContent.length,m=Math.min(l.start,p),x=l.end===void 0?m:Math.min(l.end,p);!h.extend&&m>x&&(o=x,x=m,m=o);var g=Wk(s,m),O=Wk(s,x);if(g&&O&&(h.rangeCount!==1||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==O.node||h.focusOffset!==O.offset)){var y=f.createRange();y.setStart(g.node,g.offset),h.removeAllRanges(),m>x?(h.addRange(y),h.extend(O.node,O.offset)):(y.setEnd(O.node,O.offset),h.addRange(y))}}}}for(f=[],h=s;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<f.length;s++){var b=f[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}ec=!!hy,py=hy=null}finally{ze=i,Ne.p=n,he.T=r}}t.current=e,bt=2}}function ly(){if(bt===2){bt=0;var t=cn,e=el,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=he.T,he.T=null;var r=Ne.p;Ne.p=2;var n=ze;ze|=4;try{uR(t,e.alternate,e)}finally{ze=n,Ne.p=r,he.T=a}}bt=3}}function uy(){if(bt===4||bt===3){bt=0;var t=Nu;Nu=null,jN();var e=cn,a=el,r=Kn,n=CR,i=(r&335544064)===r?10262:10256;if((a.subtreeFlags&i)!==0||(a.flags&i)!==0?bt=5:(bt=0,el=cn=null,MR(e,e.pendingLanes)),i=e.pendingLanes,i===0&&(Eo=null),Ty(r),a=a.stateNode,pr&&typeof pr.onCommitFiberRoot=="function")try{pr.onCommitFiberRoot(od,a,void 0,(a.current.flags&128)===128)}catch{}if(n!==null){a=he.T,i=Ne.p,Ne.p=2,he.T=null;try{for(var o=e.onRecoverableError,s=0;s<n.length;s++){var l=n[s];o(l.value,{componentStack:l.stack})}}finally{he.T=a,Ne.p=i}}if(n=Xu,o=qu,qu=null,n!==null&&(Xu=null,o===null&&(o=[]),t!==null))for(l=0;l<n.length;l++)a=(0,n[l])(o),a!==void 0&&t.finished.finally(a);(Kn&3)!==0&&Pm(),ti(e),i=e.pendingLanes,(r&261930)!==0&&(i&42)!==0?e===Ip?qf++:(qf=0,Ip=e):(qf=0,Ip=null),pd(0,!1)}}function MR(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,fd(e)))}function Pm(){return Nu!==null&&(Nu.skipTransition(),Nu=null),sy(),ly(),uy(),cy()}function cy(){if(bt!==5)return!1;var t=cn,e=iy;iy=0;var a=Ty(Kn),r=he.T,n=Ne.p;try{Ne.p=32>a?32:a,he.T=null,a=oy,oy=null;var i=cn,o=Kn;if(bt=0,el=cn=null,Kn=0,(ze&6)!==0)throw Error(I(331));var s=ze;if(ze|=4,vR(i.current),xR(i,i.current,o,a),ze=s,pd(0,!1),pr&&typeof pr.onPostCommitFiberRoot=="function")try{pr.onPostCommitFiberRoot(od,i)}catch{}return!0}finally{Ne.p=n,he.T=r,MR(t,e)}}function $L(t,e,a){e=Dr(a,e),e=Zx(t.stateNode,e,2),t=Ao(t,e,2),t!==null&&(ld(t,2),ti(t))}function Fe(t,e,a){if(t.tag===3)$L(t,t,a);else for(;e!==null;){if(e.tag===3){$L(e,t,a);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Eo===null||!Eo.has(r))){t=Dr(a,t),a=HP(2),r=Ao(e,a,2),r!==null&&(GP(a,r,e,t),ld(r,2),ti(r));break}}e=e.return}}function ix(t,e,a){var r=t.pingCache;if(r===null){r=t.pingCache=new CX;var n=new Set;r.set(e,n)}else n=r.get(e),n===void 0&&(n=new Set,r.set(e,n));n.has(a)||(cb=!0,n.add(a),t=QX.bind(null,t,e,a),e.then(t,t))}function QX(t,e,a){var r=t.pingCache;r!==null&&r.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,et===t&&(Te&a)===a&&((kt===4||kt===3&&(Te&62914560)===Te&&300>hr()-km)&&(ze&2)===0?Gu(t,0):rm|=a,Fu===Te&&(Fu=0)),ti(t)}function ER(t,e){e===0&&(e=CT()),t=nl(t,e),t!==null&&(ld(t,e),ti(t))}function MX(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),ER(t,a)}function EX(t,e){var a=0;switch(t.tag){case 31:case 13:var r=t.stateNode,n=t.memoizedState;n!==null&&(a=n.retryLane);break;case 19:r=t.stateNode;break;case 22:r=t.stateNode._retryCache;break;default:throw Error(I(314))}r!==null&&r.delete(e),ER(t,a)}function DX(t,e){return ky(t,e)}var Yu=null,bu=null,fy=!1,sm=!1,ox=!1,To=0;function ti(t){t!==bu&&t.next===null&&(bu===null?Yu=bu=t:bu=bu.next=t),sm=!0,fy||(fy=!0,BX())}function pd(t,e){if(!ox&&sm){ox=!0;do for(var a=!1,r=Yu;r!==null;){if(!e)if(t!==0){var n=r.pendingLanes;if(n===0)var i=0;else{var o=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-mr(42|t)+1)-1,i&=n&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,BL(r,i))}else i=Te,i=fm(r,r===et?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(i&3)===0||sd(r,i)||(a=!0,BL(r,i));r=r.next}while(a);ox=!1}}function $X(){DR()}function DR(){sm=fy=!1;var t=0;To!==0&&jX()&&(t=To);for(var e=hr(),a=null,r=Yu;r!==null;){var n=r.next,i=$R(r,e);i===0?(r.next=null,a===null?Yu=n:a.next=n,n===null&&(bu=a)):(a=r,(t!==0||(i&3)!==0)&&(sm=!0)),r=n}bt!==0&&bt!==5||pd(t,!1),To!==0&&(To=0)}function $R(t,e){for(var a=t.suspendedLanes,r=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-mr(i),s=1<<o,l=n[o];l===-1?((s&a)===0||(s&r)!==0)&&(n[o]=e3(s,e)):l<=e&&(t.expiredLanes|=s),i&=~s}if(e=et,a=Te,a=fm(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r=t.callbackNode,a===0||t===e&&(Ue===2||Ue===9)||t.cancelPendingCommit!==null)return r!==null&&r!==null&&_0(r),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||sd(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(r!==null&&_0(r),Ty(a)){case 2:case 8:a=vT;break;case 32:a=zp;break;case 268435456:a=ST;break;default:a=zp}return r=BR.bind(null,t),a=ky(a,r),t.callbackPriority=e,t.callbackNode=a,e}return r!==null&&r!==null&&_0(r),t.callbackPriority=2,t.callbackNode=null,2}function BR(t,e){if(bt!==0&&bt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Pm()&&t.callbackNode!==a)return null;var r=Te;return r=fm(t,t===et?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r===0?null:(LR(t,r,e),$R(t,hr()),t.callbackNode!=null&&t.callbackNode===a?BR.bind(null,t):null)}function BL(t,e){if(Pm())return null;LR(t,e,!0)}function BX(){HX(function(){(ze&6)!==0?ky(bT,$X):DR()})}function db(){if(To===0){var t=Ys;t===0&&(t=Wh,Wh<<=1,(Wh&261888)===0&&(Wh=256)),To=t}return To}function _L(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:xp(t)}function _X(t,e,a,r,n){if(e==="submit"&&a&&a.stateNode===n){var i=_L((n[Wa]||null).action),o=r.submitter;o&&(e=(e=o[Wa]||null)?_L(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var s=new hm("action","action",null,r,n);t.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(To!==0){var l=new FormData(n,o);Xx(a,{pending:!0,data:l,method:n.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=new FormData(n,o),Xx(a,{pending:!0,data:l,method:n.method,action:i},i,l))},currentTarget:n}]})}}for(dp=0;dp<Ix.length;dp++)hp=Ix[dp],zL=hp.toLowerCase(),NL=hp[0].toUpperCase()+hp.slice(1),fn(zL,"on"+NL);var hp,zL,NL,dp;fn(GT,"onAnimationEnd");fn(YT,"onAnimationIteration");fn(WT,"onAnimationStart");fn("dblclick","onDoubleClick");fn("focusin","onFocus");fn("focusout","onBlur");fn(G3,"onTransitionRun");fn(Y3,"onTransitionStart");fn(W3,"onTransitionCancel");fn(KT,"onTransitionEnd");Vu("onMouseEnter",["mouseout","mouseover"]);Vu("onMouseLeave",["mouseout","mouseover"]);Vu("onPointerEnter",["pointerout","pointerover"]);Vu("onPointerLeave",["pointerout","pointerover"]);al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));al("onBeforeInput",["compositionend","keypress","textInput","paste"]);al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kf="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(" "),zX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kf));function _R(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var r=t[a],n=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=u;try{i(n)}catch(c){Xp(c)}n.currentTarget=null,i=l}else for(o=0;o<r.length;o++){if(s=r[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=u;try{i(n)}catch(c){Xp(c)}n.currentTarget=null,i=l}}}}function Se(t,e){var a=e[Ek];a===void 0&&(a=e[Ek]=new Set);var r=t+"__bubble";a.has(r)||(zR(e,t,2,!1),a.add(r))}function sx(t,e,a){var r=0;e&&(r|=4),zR(a,t,r,e)}var pp="_reactListening"+Math.random().toString(36).slice(2);function hb(t){if(!t[pp]){t[pp]=!0,IT.forEach(function(a){a!=="selectionchange"&&(zX.has(a)||sx(a,!1,t),sx(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[pp]||(e[pp]=!0,sx("selectionchange",!1,e))}}function zR(t,e,a,r){switch(uI(e)){case 2:var n=Aq;break;case 8:n=Qq;break;default:n=bb}a=n.bind(null,e,a,t),n=void 0,!Lx||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),r?n!==void 0?t.addEventListener(e,a,{capture:!0,passive:n}):t.addEventListener(e,a,!0):n!==void 0?t.addEventListener(e,a,{passive:n}):t.addEventListener(e,a,!1)}function lx(t,e,a,r,n){var i=r;if((e&1)===0&&(e&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===n)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;s!==null;){if(o=Ns(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=i=o;continue e}s=s.parentNode}}r=r.return}_T(function(){var u=i,c=Ry(a),f=[];e:{var d=JT.get(t);if(d!==void 0){var h=hm,p=t;switch(t){case"keypress":if(bp(a)===0)break e;case"keydown":case"keyup":h=k3;break;case"focusin":p="focus",h=V0;break;case"focusout":p="blur",h=V0;break;case"beforeblur":case"afterblur":h=V0;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=qk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=h3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=I3;break;case GT:case YT:case WT:h=g3;break;case KT:h=Q3;break;case"scroll":case"scrollend":h=f3;break;case"wheel":h=E3;break;case"copy":case"cut":case"paste":h=x3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Vk;break;case"submit":h=P3;break;case"toggle":case"beforetoggle":h=$3}var m=(e&4)!==0,x=!m&&(t==="scroll"||t==="scrollend"),g=m?d!==null?d+"Capture":null:d;m=[];for(var O=u,y;O!==null;){var b=O;if(y=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||y===null||g===null||(b=Vf(O,g),b!=null&&m.push(Jf(O,b,y))),x)break;O=O.return}0<m.length&&(d=new h(d,p,null,a,c),f.push({event:d,listeners:m}))}}if((e&7)===0){e:{if(h=t==="mouseover"||t==="pointerover",d=t==="mouseout"||t==="pointerout",h&&a!==kx&&(p=a.relatedTarget||a.fromElement)&&(Ns(p)||p[ac]))break e;(d||h)&&(p=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,d?(h=a.relatedTarget||a.toElement,d=u,h=h?Ns(h):null,h!==null&&(x=id(h),m=h.tag,h!==x||m!==5&&m!==27&&m!==6)&&(h=null)):(d=null,h=u),d!==h&&(m=qk,b="onMouseLeave",g="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(m=Vk,b="onPointerLeave",g="onPointerEnter",O="pointer"),x=d==null?p:Tf(d),y=h==null?p:Tf(h),p=new m(b,O+"leave",d,a,c),p.target=x,p.relatedTarget=y,b=null,Ns(c)===u&&(m=new m(g,O+"enter",h,a,c),m.target=y,m.relatedTarget=x,b=m),x=b,m=d&&h?hx(d,h,NX):null,d!==null&&XL(f,p,d,m,!1),h!==null&&x!==null&&XL(f,x,h,m,!0)))}e:{if(d=u?Tf(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var v=Hk;else if(Fk(d))if(VT)v=j3;else{v=V3;var S=Z3}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Py(u.elementType)&&(v=Hk):v=U3;if(v&&(v=v(t,u))){ZT(f,v,a,c);break e}S&&S(t,d,u)}switch(S=u?Tf(u):window,t){case"focusin":(Fk(S)||S.contentEditable==="true")&&(Lu=S,Px=u,Qf=null);break;case"focusout":Qf=Px=Lu=null;break;case"mousedown":Rx=!0;break;case"contextmenu":case"mouseup":case"dragend":Rx=!1,Kk(f,a,c);break;case"selectionchange":if(H3)break;case"keydown":case"keyup":Kk(f,a,c)}var w;if(Qy)e:{switch(t){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else ku?XT(t,a)&&(k="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(k="onCompositionStart");k&&(NT&&a.locale!=="ko"&&(ku||k!=="onCompositionStart"?k==="onCompositionEnd"&&ku&&(w=zT()):(wo=c,Iy="value"in wo?wo.value:wo.textContent,ku=!0)),S=lm(u,k),0<S.length&&(k=new Zk(k,t,null,a,c),f.push({event:k,listeners:S}),w?k.data=w:(w=qT(a),w!==null&&(k.data=w)))),(w=_3?z3(t,a):N3(t,a))&&(k=lm(u,"onBeforeInput"),0<k.length&&(S=new Zk("onBeforeInput","beforeinput",null,a,c),f.push({event:S,listeners:k}),S.data=w)),_X(f,t,u,a,c)}_R(f,e)})}function Jf(t,e,a){return{instance:t,listener:e,currentTarget:a}}function lm(t,e){for(var a=e+"Capture",r=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Vf(t,a),n!=null&&r.unshift(Jf(t,n,i)),n=Vf(t,e),n!=null&&r.push(Jf(t,n,i))),t.tag===3)return r;t=t.return}return[]}function NX(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function XL(t,e,a,r,n){for(var i=e._reactName,o=[];a!==null&&a!==r;){var s=a,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===r)break;s!==5&&s!==26&&s!==27||u===null||(l=u,n?(u=Vf(a,i),u!=null&&o.unshift(Jf(a,u,l))):n||(u=Vf(a,i),u!=null&&o.push(Jf(a,u,l)))),a=a.return}o.length!==0&&t.push({event:e,listeners:o})}var XX=/\r\n?/g,qX=/\u0000|\uFFFD/g;function qL(t){return(typeof t=="string"?t:""+t).replace(XX,`
|
|
9
|
+
`).replace(qX,"")}function NR(t,e){return e=qL(e),qL(t)===e}function je(t,e,a,r,n,i){switch(a){case"children":if(typeof r=="string")e==="body"||e==="textarea"&&r===""||Uu(t,r);else if(typeof r=="number"||typeof r=="bigint")e!=="body"&&Uu(t,""+r);else return;break;case"className":ep(t,"class",r);break;case"tabIndex":ep(t,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ep(t,a,r);break;case"style":BT(t,r,i);return;case"data":if(e!=="object"){ep(t,"data",r);break}case"src":case"href":if(r===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(a);break}r=xp(r),t.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(e!=="input"&&je(t,e,"name",n.name,n,null),je(t,e,"formEncType",n.formEncType,n,null),je(t,e,"formMethod",n.formMethod,n,null),je(t,e,"formTarget",n.formTarget,n,null)):(je(t,e,"encType",n.encType,n,null),je(t,e,"method",n.method,n,null),je(t,e,"target",n.target,n,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(a);break}r=xp(r),t.setAttribute(a,r);break;case"onClick":r!=null&&(t.onclick=Hn);return;case"onScroll":r!=null&&Se("scroll",t);return;case"onScrollEnd":r!=null&&Se("scrollend",t);return;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(a=r.__html,a!=null){if(n.children!=null)throw Error(I(60));i?.__html!==a&&(t.innerHTML=a)}}break;case"multiple":t.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":t.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){t.removeAttribute("xlink:href");break}a=xp(r),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(a,r):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":r&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":r===!0?t.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(a,r):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?t.setAttribute(a,r):t.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?t.removeAttribute(a):t.setAttribute(a,r);break;case"popover":Se("beforetoggle",t),Se("toggle",t),Op(t,"popover",r);break;case"xlinkActuate":ki(t,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ki(t,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ki(t,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ki(t,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ki(t,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ki(t,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ki(t,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ki(t,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ki(t,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Op(t,"is",r);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=u3.get(a)||a,Op(t,a,r);else return}Be=!0}function dy(t,e,a,r,n,i){switch(a){case"style":BT(t,r,i);return;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(a=r.__html,a!=null){if(n.children!=null)throw Error(I(60));i?.__html!==a&&(t.innerHTML=a)}}break;case"children":if(typeof r=="string")Uu(t,r);else if(typeof r=="number"||typeof r=="bigint")Uu(t,""+r);else return;break;case"onScroll":r!=null&&Se("scroll",t);return;case"onScrollEnd":r!=null&&Se("scrollend",t);return;case"onClick":r!=null&&(t.onclick=Hn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!AT.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),i=a.slice(2,n?a.length-7:void 0),e=t[Wa]||null,e=e!=null?e[a]:null,typeof e=="function"&&t.removeEventListener(i,e,n),typeof r=="function")){typeof e!="function"&&e!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(i,r,n);break e}Be=!0,a in t?t[a]=r:r===!0?t.setAttribute(a,""):Op(t,a,r)}return}Be=!0}function sa(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",t),Se("load",t);var r=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":r=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I(137,e));default:je(t,e,i,o,a,null)}}n&&je(t,e,"srcSet",a.srcSet,a,null),r&&je(t,e,"src",a.src,a,null);return;case"input":Se("invalid",t);var s=i=o=n=null,l=null,u=null;for(r in a)if(a.hasOwnProperty(r)){var c=a[r];if(c!=null)switch(r){case"name":n=c;break;case"type":o=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":i=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(I(137,e));break;default:je(t,e,r,c,a,null)}}ET(t,i,s,l,u,o,n,!1);return;case"select":Se("invalid",t),r=o=i=null;for(n in a)if(a.hasOwnProperty(n)&&(s=a[n],s!=null))switch(n){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":r=s;default:je(t,e,n,s,a,null)}e=i,a=o,t.multiple=!!r,e!=null?Eu(t,!!r,e,!1):a!=null&&Eu(t,!!r,a,!0);return;case"textarea":Se("invalid",t),i=n=r=null;for(o in a)if(a.hasOwnProperty(o)&&(s=a[o],s!=null))switch(o){case"value":r=s;break;case"defaultValue":n=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(I(91));break;default:je(t,e,o,s,a,null)}$T(t,r,n,i);return;case"option":for(l in a)a.hasOwnProperty(l)&&(r=a[l],r!=null)&&(l==="selected"?t.selected=r&&typeof r!="function"&&typeof r!="symbol":je(t,e,l,r,a,null));return;case"dialog":Se("beforetoggle",t),Se("toggle",t),Se("cancel",t),Se("close",t);break;case"iframe":case"object":Se("load",t);break;case"video":case"audio":for(r=0;r<Kf.length;r++)Se(Kf[r],t);break;case"image":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"embed":case"source":case"link":Se("error",t),Se("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(r=a[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(I(137,e));default:je(t,e,u,r,a,null)}return;default:if(Py(e)){for(c in a)a.hasOwnProperty(c)&&(r=a[c],r!==void 0&&dy(t,e,c,r,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(r=a[s],r!=null&&je(t,e,s,r,a,null))}var ZX={};function VX(t,e,a,r){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,o=null,s=null,l=null,u=null,c=null;for(h in a){var f=a[h];if(a.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=f;default:r.hasOwnProperty(h)||je(t,e,h,null,r,f)}}for(var d in r){var h=r[d];if(f=a[d],r.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":h!==f&&(Be=!0),i=h;break;case"name":h!==f&&(Be=!0),n=h;break;case"checked":h!==f&&(Be=!0),u=h;break;case"defaultChecked":h!==f&&(Be=!0),c=h;break;case"value":h!==f&&(Be=!0),o=h;break;case"defaultValue":h!==f&&(Be=!0),s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(I(137,e));break;default:h!==f&&je(t,e,d,h,r,f)}}Cx(t,o,s,l,u,c,i,n);return;case"select":h=o=s=d=null;for(i in a)if(l=a[i],a.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":h=l;default:r.hasOwnProperty(i)||je(t,e,i,null,r,l)}for(n in r)if(i=r[n],l=a[n],r.hasOwnProperty(n)&&(i!=null||l!=null))switch(n){case"value":i!==l&&(Be=!0),d=i;break;case"defaultValue":i!==l&&(Be=!0),s=i;break;case"multiple":i!==l&&(Be=!0),o=i;default:i!==l&&je(t,e,n,i,r,l)}e=s,a=o,r=h,d!=null?Eu(t,!!a,d,!1):!!r!=!!a&&(e!=null?Eu(t,!!a,e,!0):Eu(t,!!a,a?[]:"",!1));return;case"textarea":h=d=null;for(s in a)if(n=a[s],a.hasOwnProperty(s)&&n!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:je(t,e,s,null,r,n)}for(o in r)if(n=r[o],i=a[o],r.hasOwnProperty(o)&&(n!=null||i!=null))switch(o){case"value":n!==i&&(Be=!0),d=n;break;case"defaultValue":n!==i&&(Be=!0),h=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(I(91));break;default:n!==i&&je(t,e,o,n,r,i)}DT(t,d,h);return;case"option":for(var p in a)d=a[p],a.hasOwnProperty(p)&&d!=null&&!r.hasOwnProperty(p)&&(p==="selected"?t.selected=!1:je(t,e,p,null,r,d));for(l in r)d=r[l],h=a[l],r.hasOwnProperty(l)&&d!==h&&(d!=null||h!=null)&&(l==="selected"?(d!==h&&(Be=!0),t.selected=d&&typeof d!="function"&&typeof d!="symbol"):je(t,e,l,d,r,h));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 m in a)d=a[m],a.hasOwnProperty(m)&&d!=null&&!r.hasOwnProperty(m)&&je(t,e,m,null,r,d);for(u in r)if(d=r[u],h=a[u],r.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(I(137,e));break;default:je(t,e,u,d,r,h)}return;default:if(Py(e)){for(var x in a)d=a[x],a.hasOwnProperty(x)&&d!==void 0&&!r.hasOwnProperty(x)&&dy(t,e,x,void 0,r,d);for(c in r)d=r[c],h=a[c],!r.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||dy(t,e,c,d,r,h);return}}for(var g in a)d=a[g],a.hasOwnProperty(g)&&d!=null&&!r.hasOwnProperty(g)&&je(t,e,g,null,r,d);for(f in r)d=r[f],h=a[f],!r.hasOwnProperty(f)||d===h||d==null&&h==null||je(t,e,f,d,r,h)}function ZL(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UX(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var n=a[r],i=n.transferSize,o=n.initiatorType,s=n.duration;if(i&&s&&ZL(o)){for(o=0,s=n.responseEnd,r+=1;r<a.length;r++){var l=a[r],u=l.startTime;if(u>s)break;var c=l.transferSize,f=l.initiatorType;c&&ZL(f)&&(l=l.responseEnd,o+=c*(l<s?1:(s-u)/(l-u)))}if(--r,e+=8*(i+o)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hy=null,py=null;function ed(t){return t.nodeType===9?t:t.ownerDocument}function VL(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function XR(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function qR(t,e,a,r){return a=ed(a).createElement(t),a[ra]=r,a[Wa]=e,sa(a,t,e),Ht(a),a}function my(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ux=null;function jX(){var t=window.event;return t&&t.type==="popstate"?t===ux?!1:(ux=t,!0):(ux=null,!1)}var pb=typeof setTimeout=="function"?setTimeout:void 0,FX=typeof clearTimeout=="function"?clearTimeout:void 0,UL=typeof Promise=="function"?Promise:void 0,jL=typeof requestAnimationFrame=="function"?requestAnimationFrame:pb,HX=typeof queueMicrotask=="function"?queueMicrotask:typeof UL<"u"?function(t){return UL.resolve(null).then(t).catch(GX)}:pb;function GX(t){setTimeout(function(){throw t})}function Vo(t){return t==="head"}function FL(t,e){var a=e,r=0;do{var n=a.nextSibling;if(t.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(r===0){t.removeChild(n),tc(e);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")fx(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,fx(a);for(var i=a.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[ud]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&fx(t.ownerDocument.body);a=n}while(a);tc(e)}function HL(t,e){var a=t;t=0;do{var r=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=r}while(a)}function ZR(t,e,a){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,a!=null&&(t.style.viewTransitionClass=a),a=getComputedStyle(t),a.display==="inline"){if(e=t.getClientRects(),e.length===1)var r=1;else for(var n=r=0;n<e.length;n++){var i=e[n];0<i.width&&0<i.height&&r++}r===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+a.paddingTop,t.marginBottom="-"+a.paddingBottom)}}function VR(t,e){t=t.style,e=e.style;var a=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(a=e.display,t.display=a==null||typeof a=="boolean"?"":a,a=e.margin,a!=null?t.margin=a:(a=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=a==null||typeof a=="boolean"?"":a,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function UR(t,e,a){return a=a.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=a.innerHeight&&t.left<=a.innerWidth}}function gy(t){var e=t.getBoundingClientRect(),a=getComputedStyle(t);return UR(e,a,t)}function YX(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var a=getComputedStyle(t);return UR(e,a,t)}function WX(t){return t.documentElement.clientHeight}function KX(t){this.addEventListener("load",t),this.addEventListener("error",t)}function JX(t,e,a,r,n,i,o,s,l){var u=e.nodeType===9?e:e.ownerDocument;try{var c=u.startViewTransition({update:function(){var d=u.defaultView,h=d.navigation&&d.navigation.transition,p=u.fonts.status;r();var m=[];if(p==="loaded"&&(WX(u),u.fonts.status==="loading"&&m.push(u.fonts.ready)),p=m.length,t!==null)for(var x=t.suspenseyImages,g=0,O=0;O<x.length;O++){var y=x[O];if(!y.complete){var b=y.getBoundingClientRect();if(0<b.bottom&&0<b.right&&b.top<d.innerHeight&&b.left<d.innerWidth){if(g+=rI(y),g>Mp){m.length=p;break}y=new Promise(KX.bind(y)),m.push(y)}}}if(0<m.length)return d=Promise.race([Promise.all(m),new Promise(function(v){return setTimeout(v,500)})]).then(n,n),(h?Promise.allSettled([h.finished,d]):d).then(i,i);if(n(),h)return h.finished.then(i,i);i()},types:a});u.__reactViewTransition=c;var f=[];return c.ready.then(function(){for(var d=u.documentElement.getAnimations({subtree:!0}),h=0;h<d.length;h++){var p=d[h],m=p.effect,x=m.pseudoElement;if(x!=null&&x.startsWith("::view-transition")){f.push(p),p=m.getKeyframes();for(var g=x=void 0,O=!0,y=0;y<p.length;y++){var b=p[y],v=b.width;if(x===void 0)x=v;else if(x!==v){O=!1;break}if(v=b.height,g===void 0)g=v;else if(g!==v){O=!1;break}delete b.width,delete b.height,b.transform==="none"&&delete b.transform}O&&x!==void 0&&g!==void 0&&(m.setKeyframes(p),O=getComputedStyle(m.target,m.pseudoElement),O.width!==x||O.height!==g)&&(O=p[0],O.width=x,O.height=g,O=p[p.length-1],O.width=x,O.height=g,m.setKeyframes(p))}}o()},function(d){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{typeof d=="object"&&d!==null&&d.name==="InvalidStateError"&&(d.message==="View transition was skipped because document visibility state is hidden."||d.message==="Skipping view transition because document visibility state has become hidden."||d.message==="Skipping view transition because viewport size changed."||d.message==="Transition was aborted because of invalid state")&&(d=null),d!==null&&l(d)}finally{r(),n(),o()}}),c.finished.finally(function(){for(var d=0;d<f.length;d++)f[d].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),s()}),c}catch{return r(),n(),o(),null}}function Xs(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}Xs.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:tt({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};Xs.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,a=t.getAnimations({subtree:!0}),r=[],n=0;n<a.length;n++){var i=a[n].effect;i!==null&&i.target===t&&i.pseudoElement===e&&r.push(a[n])}return r};Xs.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function jR(t){return{name:t,group:new Xs("group",t),imagePair:new Xs("image-pair",t),old:new Xs("old",t),new:new Xs("new",t)}}function xr(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}xr.prototype.addEventListener=function(t,e,a){var r=null,n=null;if(!(a!=null&&typeof a!="boolean"&&(r=a.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(FR(i,t,e,a)===-1){var o=this,s=e;a!=null&&typeof a!="boolean"&&a.once===!0&&(s=function(l){o.removeEventListener(t,e,a),typeof e=="function"?e.call(this,l):e.handleEvent(l)}),r!==null&&(n=o.removeEventListener.bind(o,t,e,a),r.addEventListener("abort",n,{once:!0}),n=r.removeEventListener.bind(r,"abort",n)),r=Wu(a),i.push({type:t,listener:e,optionsOrUseCapture:a,attachedListener:s,cleanup:n}),Ya(this._fragmentFiber.child,!1,eq,t,s,r)}this._eventListeners=i}};function eq(t,e,a,r){return Nt(t).addEventListener(e,a,r),!1}xr.prototype.removeEventListener=function(t,e,a){var r=this._eventListeners;if(r!==null&&(e=FR(r,t,e,a),e!==-1)){var n=r[e];a=n.attachedListener;var i=n.cleanup;n=Wu(n.optionsOrUseCapture),Ya(this._fragmentFiber.child,!1,tq,t,a,n),r.splice(e,1),i!==null&&i()}};function tq(t,e,a,r){return Nt(t).removeEventListener(e,a,r),!1}function Wu(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function GL(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function FR(t,e,a,r){if(t.length===0)return-1;r=GL(r);for(var n=0;n<t.length;n++){var i=t[n];if(i.type===e&&i.listener===a&&GL(i.optionsOrUseCapture)===r)return n}return-1}xr.prototype.dispatchEvent=function(t){var e=tl(this._fragmentFiber);if(e===null)return!0;e=Nt(e);var a=this._eventListeners;if(a!==null&&0<a.length||!t.bubbles){var r=e.nodeType===9?e.createComment(""):document.createTextNode("");if(a)for(var n=0;n<a.length;n++){var i=a[n];r.addEventListener(i.type,i.attachedListener,Wu(i.optionsOrUseCapture))}if(e.appendChild(r),t=r.dispatchEvent(t),a)for(n=0;n<a.length;n++)i=a[n],r.removeEventListener(i.type,i.attachedListener,Wu(i.optionsOrUseCapture));return e.removeChild(r),t}return e.dispatchEvent(t)};xr.prototype.focus=function(t){Ya(this._fragmentFiber.child,!0,HR,t,void 0,void 0)};function HR(t,e){return t.tag===6?!1:(t=Nt(t),hq(t,e))}xr.prototype.focusLast=function(t){var e=[];Ya(this._fragmentFiber.child,!0,mb,e,void 0,void 0);for(var a=e.length-1;0<=a&&!HR(e[a],t);a--);};function mb(t,e){return e.push(t),!1}xr.prototype.blur=function(){var t=tl(this._fragmentFiber);t!==null&&(t=Nt(t),t=ed(t).activeElement,t!==null&&Ya(this._fragmentFiber.child,!1,aq,t,void 0,void 0))};function aq(t,e){return t.tag===6?!1:(t=Nt(t),t===e||t.contains(e)?(e.blur(),!0):!1)}xr.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),Ya(this._fragmentFiber.child,!1,rq,t,void 0,void 0)};function rq(t,e){return t.tag===6||(t=Nt(t),e.observe(t)),!1}xr.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),Ya(this._fragmentFiber.child,!1,nq,t,void 0,void 0);for(var a=e=0;a<un.length;a++){var r=un[a];r.fragmentInstance===this&&r.observer===t?t.unobserve(r.instance):un[e++]=r}un.length=e}};function nq(t,e){return t.tag===6||(t=Nt(t),e.unobserve(t)),!1}var un=[],cx=!1;function iq(t,e,a){un.push({fragmentInstance:t,observer:e,instance:a}),cx||(cx=!0,pq(function(){cx=!1;var r=un;un=[];for(var n=0;n<r.length;n++){var i=r[n];i.observer.unobserve(i.instance)}}))}xr.prototype.getClientRects=function(){var t=[];return Ya(this._fragmentFiber.child,!1,oq,t,void 0,void 0),t};function oq(t,e){if(t.tag===6){t=t.stateNode;var a=t.ownerDocument.createRange();a.selectNodeContents(t),e.push.apply(e,a.getClientRects())}else t=Nt(t),e.push.apply(e,t.getClientRects());return!1}xr.prototype.getRootNode=function(t){var e=tl(this._fragmentFiber);return e===null?this:Nt(e).getRootNode(t)};xr.prototype.compareDocumentPosition=function(t){var e=tl(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];Ya(this._fragmentFiber.child,!1,mb,a,void 0,void 0);var r=Nt(e);if(a.length===0){if(a=r,Pk(this._fragmentFiber)){e:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break e}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(a=e)}e=this._fragmentFiber;var n=r=a.compareDocumentPosition(t);return a===t?n=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=gT(e)[1],a===null?n=Node.DOCUMENT_POSITION_PRECEDING:(t=Nt(a).compareDocumentPosition(t),n=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),n|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=Nt(a[0]),n=Nt(a[a.length-1]);var i=Pk(this._fragmentFiber)?e.parentElement:r;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=e.compareDocumentPosition(t),s=n.compareDocumentPosition(t),l=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&i&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,e=r&&e===t||i&&n===t||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&e===t||!i&&n===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||sq(e,this._fragmentFiber,a[0],a[a.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function sq(t,e,a,r,n){var i=Ns(n);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!i)e:{for(;i!==null;){if(i.tag===7&&(i===e||i.alternate===e)){a=!0;break e}i=i.return}a=!1}return a}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=n.ownerDocument,n===i||n===i.documentElement||n===i.body;e:{for(i=e,e=tl(e);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==e&&i.alternate!==e)){i=!0;break e}i=i.return}i=!1}return i}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!i)&&!(e=i===a)&&(e=hx(a,i,Rk),e===null?e=!1:(Ya(e,!0,BN,i,a),i=vu,vu=null,e=i!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!i)&&!(e=i===r)&&(e=hx(r,i,Rk),e===null?e=!1:(Ya(e,!0,_N,i,r),i=vu,dx=vu=null,e=i!==null)),e):!1}function YL(t,e){var a=t.ownerDocument.createRange();a.selectNodeContents(t),t=a.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}xr.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(I(566));var e=[];Ya(this._fragmentFiber.child,!1,mb,e,void 0,void 0);var a=t!==!1;if(e.length===0){var r=gT(this._fragmentFiber);if(r=a?r[1]||r[0]||tl(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){t=Nt(r),YL(t,a);return}if(r=Nt(r),r.nodeType!==9){if(r.nodeType===11){a="host"in r?r.host:null,a!==null&&a.scrollIntoView(t);return}r.scrollIntoView(t)}}for(r=a?e.length-1:0;r!==(a?-1:e.length);){var n=e[r];n.tag===6?(n=Nt(n),YL(n,a)):Nt(n).scrollIntoView(t),r+=a?-1:1}};function lq(t,e){return t=Nt(t),GR(t,e),!1}function GR(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function YR(t,e){var a=e._eventListeners;if(a!==null)for(var r=0;r<a.length;r++){var n=a[r];t.addEventListener(n.type,n.attachedListener,Wu(n.optionsOrUseCapture))}t.nodeType!==3&&(a=e._observers,a!==null&&a.forEach(function(i){for(var o=0,s=0;s<un.length;s++){var l=un[s];(l.fragmentInstance!==e||l.observer!==i||l.instance!==t)&&(un[o++]=l)}un.length=o,i.observe(t)}),GR(t,e))}function uq(t,e){var a=e._eventListeners;if(a!==null)for(var r=0;r<a.length;r++){var n=a[r];t.removeEventListener(n.type,n.attachedListener,Wu(n.optionsOrUseCapture))}t.nodeType!==3&&(a=e._observers,a!==null&&a.forEach(function(i){typeof i.rootMargin=="string"?iq(e,i,t):i.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function Oy(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Oy(a),dm(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function cq(t,e,a,r){for(;t.nodeType===1;){var n=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!r&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(r){if(!t[ud])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Br(t.nextSibling),t===null)break}return null}function fq(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Br(t.nextSibling),t===null))return null;return t}function WR(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Br(t.nextSibling),t===null))return null;return t}function xy(t){return t.data==="$?"||t.data==="$~"}function gb(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function dq(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var r=function(){e(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),t._reactRetry=r}}function Br(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var yy=null;function WL(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Br(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function KL(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function hq(t,e){function a(){r=!0}if(t.ownerDocument.activeElement===t)return!0;var r=!1;try{t.ownerDocument.addEventListener("focus",a,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",a,!0)}return r}function pq(t){jL(function(){jL(function(e){return t(e)})})}function KR(t,e,a){switch(e=ed(a),t){case"html":if(t=e.documentElement,!t)throw Error(I(452));return t;case"head":if(t=e.head,!t)throw Error(I(453));return t;case"body":if(t=e.body,!t)throw Error(I(454));return t;default:throw Error(I(451))}}function JR(t,e,a){for(var r in a){var n=a[r];a.hasOwnProperty(r)&&n!=null&&je(t,e,r,null,ZX,n)}a.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===Hn&&(t.onclick=null),dm(t)}function fx(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);dm(t)}var _r=new Map,JL=new Set;function td(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var zi=Ne.d;Ne.d={f:mq,r:gq,D:Oq,C:xq,L:yq,m:bq,X:Sq,S:vq,M:wq};function mq(){var t=zi.f(),e=Lm();return t||e}function gq(t){var e=rc(t);e!==null&&e.tag===5&&e.type==="form"?BP(e):zi.r(t)}var sc=typeof document>"u"?null:document;function eI(t,e,a){var r=sc;if(r&&typeof e=="string"&&e){var n=Er(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),JL.has(n)||(JL.add(n),t={rel:t,crossOrigin:a,href:e},r.querySelector(n)===null&&(e=r.createElement("link"),sa(e,"link",t),Ht(e),r.head.appendChild(e)))}}function Oq(t){zi.D(t),eI("dns-prefetch",t,null)}function xq(t,e){zi.C(t,e),eI("preconnect",t,e)}function yq(t,e,a){zi.L(t,e,a);var r=sc;if(r&&t&&e){var n='link[rel="preload"][as="'+Er(e)+'"]';e==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Er(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Er(a.imageSizes)+'"]')):n+='[href="'+Er(t)+'"]';var i=n;switch(e){case"style":i=Ku(t);break;case"script":i=lc(t)}if(!(_r.has(i)||(t=tt({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),_r.set(i,t),r.querySelector(n)!==null||e==="style"&&r.querySelector(md(i))||e==="script"&&r.querySelector(gd(i))))){var o=r.createElement("link");sa(o,"link",t),e==="style"&&(o[Np]=!0,o.onload=o.onerror=function(){RT(o)}),Ht(o),r.head.appendChild(o)}}}function bq(t,e){zi.m(t,e);var a=sc;if(a&&t){var r=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Er(r)+'"][href="'+Er(t)+'"]',i=n;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=lc(t)}if(!_r.has(i)&&(t=tt({rel:"modulepreload",href:t},e),_r.set(i,t),a.querySelector(n)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(gd(i)))return}r=a.createElement("link"),sa(r,"link",t),Ht(r),a.head.appendChild(r)}}}function vq(t,e,a){zi.S(t,e,a);var r=sc;if(r&&t){var n=Mu(r).hoistableStyles,i=Ku(t);e=e||"default";var o=n.get(i);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(md(i)))s.loading=5;else{t=tt({rel:"stylesheet",href:t,"data-precedence":e},a),(a=_r.get(i))&&Ob(t,a);var l=o=r.createElement("link");Ht(l),sa(l,"link",t),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Ap(o,e,r)}o={type:"stylesheet",instance:o,count:1,state:s},n.set(i,o)}}}function Sq(t,e){zi.X(t,e);var a=sc;if(a&&t){var r=Mu(a).hoistableScripts,n=lc(t),i=r.get(n);i||(i=a.querySelector(gd(n)),i||(t=tt({src:t,async:!0},e),(e=_r.get(n))&&xb(t,e),i=a.createElement("script"),Ht(i),sa(i,"link",t),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(n,i))}}function wq(t,e){zi.M(t,e);var a=sc;if(a&&t){var r=Mu(a).hoistableScripts,n=lc(t),i=r.get(n);i||(i=a.querySelector(gd(n)),i||(t=tt({src:t,async:!0,type:"module"},e),(e=_r.get(n))&&xb(t,e),i=a.createElement("script"),Ht(i),sa(i,"link",t),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(n,i))}}function eT(t,e,a,r){var n=(n=Po.current)?td(n):null;if(!n)throw Error(I(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ku(a.href),e=Mu(n).hoistableStyles,r=e.get(a),r||(r={type:"style",instance:null,count:0,state:null},e.set(a,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Ku(a.href);var i=Mu(n).hoistableStyles,o=i.get(t);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=n.querySelector(md(t)))?i._p||(o.instance=i,o.state.loading=5):(i=_r.get(t),i||(i={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},_r.set(t,i)),Cq(n,t,i,o.state))),e&&r===null)throw Error(I(528,""));return o}if(e&&r!==null)throw Error(I(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(a=lc(a),e=Mu(n).hoistableScripts,r=e.get(a),r||(r={type:"script",instance:null,count:0,state:null},e.set(a,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,t))}}function Ku(t){return'href="'+Er(t)+'"'}function md(t){return'link[rel="stylesheet"]['+t+"]"}function tI(t){return tt({},t,{"data-precedence":t.precedence,precedence:null})}function Cq(t,e,a,r){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Np]!==!0){r.loading=1;return}}else e=t.createElement("link"),e[Np]=!0,e.onload=e.onerror=RT.bind(null,e),sa(e,"link",a),Ht(e),t.head.appendChild(e);r.preload=e,e.addEventListener("load",function(){return r.loading|=1}),e.addEventListener("error",function(){return r.loading|=2})}function lc(t){return'[src="'+Er(t)+'"]'}function gd(t){return"script[async]"+t}function tT(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var r=t.querySelector('style[data-href~="'+Er(a.href)+'"]');if(r)return e.instance=r,Ht(r),r;var n=tt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(t.ownerDocument||t).createElement("style"),Ht(r),sa(r,"style",n),Ap(r,a.precedence,t),e.instance=r;case"stylesheet":n=Ku(a.href);var i=t.querySelector(md(n));if(i)return e.state.loading|=4,e.instance=i,Ht(i),i;r=tI(a),(n=_r.get(n))&&Ob(r,n),i=(t.ownerDocument||t).createElement("link"),Ht(i);var o=i;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),sa(i,"link",r),e.state.loading|=4,Ap(i,a.precedence,t),e.instance=i;case"script":return i=lc(a.src),(n=t.querySelector(gd(i)))?(e.instance=n,Ht(n),n):(r=a,(n=_r.get(i))&&(r=tt({},a),xb(r,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ht(n),sa(n,"link",r),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(I(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(r=e.instance,e.state.loading|=4,Ap(r,a.precedence,t));return e.instance}function Ap(t,e,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=r.length?r[r.length-1]:null,i=n,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===e)i=s;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Ob(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function xb(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Qp=null;function aT(t,e,a){if(Qp===null){var r=new Map,n=Qp=new Map;n.set(a,r)}else n=Qp,r=n.get(a),r||(r=new Map,n.set(a,r));if(r.has(t))return r;for(r.set(t,null),a=a.getElementsByTagName(t),n=0;n<a.length;n++){var i=a[n];if(!(i[ud]||i[ra]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var s=r.get(o);s?s.push(i):r.set(o,[i])}}return r}function by(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function kq(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function rT(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function aI(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function rI(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function nT(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=rI(e),t.suspenseyImages.push(e)),t=Pq.bind(t),e.decode().then(t,t))}function Lq(t,e,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Ku(r.href),i=e.querySelector(md(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ad.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=i,Ht(i);return}i=e.ownerDocument||e,r=tI(r),(n=_r.get(n))&&Ob(r,n),i=i.createElement("link"),Ht(i);var o=i;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),sa(i,"link",r),a.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=ad.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Mp=0;function Tq(t,e){return t.stylesheets&&t.count===0&&Ep(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var r=setTimeout(function(){if(t.stylesheets&&Ep(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&Mp===0&&(Mp=62500*UX());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ep(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>Mp?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(r),clearTimeout(n)}}:null}function nI(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Ep(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function ad(){this.count--,nI(this)}function Pq(){this.imgCount--,nI(this)}var um=null;function Ep(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,um=new Map,e.forEach(Rq,t),um=null,ad.call(t))}function Rq(t,e){if(!(e.state.loading&4)){var a=um.get(t);if(a)var r=a.get(null);else{a=new Map,um.set(t,a);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var o=n[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),r=o)}r&&a.set(null,r)}n=e.instance,o=n.getAttribute("data-precedence"),i=a.get(o)||r,i===r&&a.set(null,n),a.set(o,n),this.count++,r=ad.bind(this),n.addEventListener("load",r),n.addEventListener("error",r),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Ju={$$typeof:Fn,Provider:null,Consumer:null,_currentValue:qs,_currentValue2:qs,_threadCount:0};function Iq(t,e,a,r,n,i,o,s,l){this.tag=1,this.containerInfo=t,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=z0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=z0(0),this.hiddenUpdates=z0(null),this.identifierPrefix=r,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function iI(t,e,a,r,n,i,o,s,l,u,c,f){return t=new Iq(t,e,a,o,l,u,c,f,s),e=1,i===!0&&(e|=24),i=Ha(3,null,null,e),t.current=i,i.stateNode=t,e=_y(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:r,isDehydrated:a,cache:e},Xy(i),t}function oI(t){return t?(t=Ru,t):Ru}function sI(t,e,a,r,n,i){n=oI(n),r.context===null?r.context=n:r.pendingContext=n,r=Io(e),r.payload={element:a},i=i===void 0?null:i,i!==null&&(r.callback=i),a=Ao(t,r,e),a!==null&&(Ga(a,t,e),Ef(a,t,e))}function iT(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function yb(t,e){iT(t,e),(t=t.alternate)&&iT(t,e)}function lI(t){if(t.tag===13||t.tag===31){var e=nl(t,67108864);e!==null&&Ga(e,t,67108864),yb(t,67108864)}}function oT(t){if(t.tag===13||t.tag===31){var e=gr();e=Ly(e);var a=nl(t,e);a!==null&&Ga(a,t,e),yb(t,e)}}var ec=!0;function Aq(t,e,a,r){var n=he.T;he.T=null;var i=Ne.p;try{Ne.p=2,bb(t,e,a,r)}finally{Ne.p=i,he.T=n}}function Qq(t,e,a,r){var n=he.T;he.T=null;var i=Ne.p;try{Ne.p=8,bb(t,e,a,r)}finally{Ne.p=i,he.T=n}}function bb(t,e,a,r){if(ec){var n=vy(r);if(n===null)lx(t,e,r,cm,a),sT(t,r);else if(Eq(n,t,e,a,r))r.stopPropagation();else if(sT(t,r),e&4&&-1<Mq.indexOf(t)){for(;n!==null;){var i=rc(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Bs(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-mr(o);s.entanglements[1]|=l,o&=~l}ti(i),(ze&6)===0&&(nm=hr()+500,pd(0,!1))}}break;case 31:case 13:s=nl(i,2),s!==null&&Ga(s,i,2),Lm(),yb(i,2)}if(i=vy(r),i===null&&lx(t,e,r,cm,a),i===n)break;n=i}n!==null&&r.stopPropagation()}else lx(t,e,r,null,a)}}function vy(t){return t=Ry(t),vb(t)}var cm=null;function vb(t){if(cm=null,t=Ns(t),t!==null){var e=id(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=hT(e),t!==null)return t;t=null}else if(a===31){if(t=pT(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return cm=t,null}function uI(t){switch(t){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(FN()){case bT:return 2;case vT:return 8;case zp:case HN:return 32;case ST:return 268435456;default:return 32}default:return 32}}var Sy=!1,Do=null,$o=null,Bo=null,rd=new Map,nd=new Map,vo=[],Mq="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 sT(t,e){switch(t){case"focusin":case"focusout":Do=null;break;case"dragenter":case"dragleave":$o=null;break;case"mouseover":case"mouseout":Bo=null;break;case"pointerover":case"pointerout":rd.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nd.delete(e.pointerId)}}function wf(t,e,a,r,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:a,eventSystemFlags:r,nativeEvent:i,targetContainers:[n]},e!==null&&(e=rc(e),e!==null&&lI(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Eq(t,e,a,r,n){switch(e){case"focusin":return Do=wf(Do,t,e,a,r,n),!0;case"dragenter":return $o=wf($o,t,e,a,r,n),!0;case"mouseover":return Bo=wf(Bo,t,e,a,r,n),!0;case"pointerover":var i=n.pointerId;return rd.set(i,wf(rd.get(i)||null,t,e,a,r,n)),!0;case"gotpointercapture":return i=n.pointerId,nd.set(i,wf(nd.get(i)||null,t,e,a,r,n)),!0}return!1}function cI(t){var e=Ns(t.target);if(e!==null){var a=id(e);if(a!==null){if(e=a.tag,e===13){if(e=hT(a),e!==null){t.blockedOn=e,Mk(t.priority,function(){oT(a)});return}}else if(e===31){if(e=pT(a),e!==null){t.blockedOn=e,Mk(t.priority,function(){oT(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Dp(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=vy(t.nativeEvent);if(a===null){a=t.nativeEvent;var r=new a.constructor(a.type,a);kx=r,a.target.dispatchEvent(r),kx=null}else return e=rc(a),e!==null&&lI(e),t.blockedOn=a,!1;e.shift()}return!0}function lT(t,e,a){Dp(t)&&a.delete(e)}function Dq(){Sy=!1,Do!==null&&Dp(Do)&&(Do=null),$o!==null&&Dp($o)&&($o=null),Bo!==null&&Dp(Bo)&&(Bo=null),rd.forEach(lT),nd.forEach(lT)}function mp(t,e){t.blockedOn===e&&(t.blockedOn=null,Sy||(Sy=!0,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,Dq)))}var gp=null;function uT(t){gp!==t&&(gp=t,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,function(){gp===t&&(gp=null);for(var e=0;e<t.length;e+=3){var a=t[e],r=t[e+1],n=t[e+2];if(typeof r!="function"){if(vb(r||a)===null)continue;break}var i=rc(a);i!==null&&(t.splice(e,3),e-=3,Xx(i,{pending:!0,data:n,method:a.method,action:r},r,n))}}))}function tc(t){function e(l){return mp(l,t)}Do!==null&&mp(Do,t),$o!==null&&mp($o,t),Bo!==null&&mp(Bo,t),rd.forEach(e),nd.forEach(e);for(var a=0;a<vo.length;a++){var r=vo[a];r.blockedOn===t&&(r.blockedOn=null)}for(;0<vo.length&&(a=vo[0],a.blockedOn===null);)cI(a),a.blockedOn===null&&vo.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var n=a[r],i=a[r+1],o=n[Wa]||null;if(typeof i=="function")o||uT(a);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(n=i,o=i[Wa]||null)s=o.formAction;else if(vb(n)!==null)continue}else s=o.action;typeof s=="function"?a[r+1]=s:(a.splice(r,3),r-=3),uT(a)}}}function fI(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Sb(t){this._internalRoot=t}Rm.prototype.render=Sb.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(I(409));var a=e.current,r=gr();sI(a,r,t,e,null,null)};Rm.prototype.unmount=Sb.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;sI(t.current,2,null,t,null,null),Lm(),e[ac]=null}};function Rm(t){this._internalRoot=t}Rm.prototype.unstable_scheduleHydration=function(t){if(t){var e=PT();t={blockedOn:null,target:t,priority:e};for(var a=0;a<vo.length&&e!==0&&e<vo[a].priority;a++);vo.splice(a,0,t),a===0&&cI(t)}};var cT=fT.version;if(cT!=="19.3.0")throw Error(I(527,cT,"19.3.0"));Ne.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(I(188)):(t=Object.keys(t).join(","),Error(I(268,t)));return t=$N(e),t=t!==null?mT(t):null,t=t===null?null:t.stateNode,t};var $q={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Cf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Cf.isDisabled&&Cf.supportsFiber))try{od=Cf.inject($q),pr=Cf}catch{}var Cf;Im.createRoot=function(t,e){if(!dT(t))throw Error(I(299));var a=!1,r="",n=UP,i=jP,o=FP;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=iI(t,1,!1,null,null,a,r,null,n,i,o,fI),t[ac]=e.current,hb(t),new Sb(e)};Im.hydrateRoot=function(t,e,a){if(!dT(t))throw Error(I(299));var r=!1,n="",i=UP,o=jP,s=FP,l=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),e=iI(t,1,!0,e,a??null,r,n,l,i,o,s,fI),e.context=oI(null),a=e.current,r=gr(),r=Ly(r),n=Io(r),n.callback=null,Ao(a,n,r),a=r,e.current.lanes=a,ld(e,a),ti(e),t[ac]=e.current,hb(t),new Rm(e)};Im.version="19.3.0"});var mI=Nn((FW,pI)=>{"use strict";function hI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hI)}catch(t){console.error(t)}}hI(),pI.exports=dI()});var OI=Nn(Am=>{"use strict";var Bq=Symbol.for("react.transitional.element"),_q=Symbol.for("react.fragment");function gI(t,e,a){var r=null;if(a!==void 0&&(r=""+a),e.key!==void 0&&(r=""+e.key),"key"in e){a={};for(var n in e)n!=="key"&&(a[n]=e[n])}else a=e;return e=a.ref,{$$typeof:Bq,type:t,key:r,ref:e!==void 0?e:null,props:a}}Am.Fragment=_q;Am.jsx=gI;Am.jsxs=gI});var G=Nn((GW,xI)=>{"use strict";xI.exports=OI()});var Zh=L(F(),1),Wz=L(mI(),1);var uc=L(F(),1),yI=L(G(),1),wb=uc.createContext(void 0),ol=t=>{let e=uc.useContext(wb);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Cb=({client:t,children:e})=>(uc.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,yI.jsx)(wb.Provider,{value:t,children:e}));var zq={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Nq=class{#e=zq;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},ai=new Nq;function bI(t){setTimeout(t,0)}var Lb=typeof window>"u"||"Deno"in globalThis;function vt(){}function wI(t,e){return typeof t=="function"?t(e):t}function Qm(t){return typeof t=="number"&&t>=0&&t!==1/0}function Mm(t,e){return Math.max(t+(e||0)-Date.now(),0)}function at(t,e){return typeof t=="function"?t(e):t}function Em(t,e){let{type:a="all",exact:r,fetchStatus:n,predicate:i,queryKey:o,stale:s}=t;if(o){if(r){if(e.queryHash!==Od(o,e.options))return!1}else if(!Uo(e.queryKey,o))return!1}if(a!=="all"){let l=e.isActive();if(a==="active"&&!l||a==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||n&&n!==e.state.fetchStatus||i&&!i(e))}function Dm(t,e){let{exact:a,status:r,predicate:n,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(a){if(ri(e.options.mutationKey)!==ri(i))return!1}else if(!Uo(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||n&&!n(e))}function Od(t,e){return(e?.queryKeyHashFn||ri)(t)}function ri(t){return JSON.stringify(t,(e,a)=>kb(a)?Object.keys(a).sort().reduce((r,n)=>(r[n]=a[n],r),{}):a)}function Uo(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(e.length>t.length)return!1;for(let r=0;r<e.length;r++)if(!Uo(t[r],e[r]))return!1;return!0}let a=Object.keys(e);for(let r of a)if(!Uo(t[r],e[r]))return!1;return!0}return!1}var Xq=Object.prototype.hasOwnProperty;function Tb(t,e,a=0){if(t===e)return t;if(a>500)return e;let r=vI(t)&&vI(e);if(!r&&!(kb(t)&&kb(e)))return e;let n=(r?t:Object.keys(t)).length,i=r?e:Object.keys(e),o=i.length,s=r?new Array(o):{},l=0;for(let u=0;u<o;u++){let c=r?u:i[u],f=t[c],d=e[c];if(f===d){s[c]=f,(r?u<n:Xq.call(t,c))&&l++;continue}if(f===null||d===null||typeof f!="object"||typeof d!="object"){s[c]=d;continue}let h=Tb(f,d,a+1);s[c]=h,h===f&&l++}return n===o&&l===n?t:s}function cc(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let a in t)if(t[a]!==e[a])return!1;return!0}function vI(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function kb(t){if(!SI(t))return!1;let e=Object.getPrototypeOf(t),a=e?.constructor;if(a===void 0)return!0;if(typeof a!="function")return!1;let r=a.prototype;return!(!SI(r)||!r.hasOwnProperty("isPrototypeOf")||e!==Object.prototype)}function SI(t){return Object.prototype.toString.call(t)==="[object Object]"}function CI(t){return new Promise(e=>{ai.setTimeout(e,t)})}function xd(t,e,a){return typeof a.structuralSharing=="function"?a.structuralSharing(t,e):a.structuralSharing!==!1?Tb(t,e):e}function kI(t,e,a=0){let r=[...t,e];return a&&r.length>a?r.slice(1):r}function LI(t,e,a=0){let r=[e,...t];return a&&r.length>a?r.slice(0,-1):r}var fc=Symbol();function $m(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===fc?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function dc(t,e){return typeof t=="function"?t(...e):!!t}function TI(t,e,a){let r=!1,n;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(n??=e(),r||(r=!0,n.aborted?a():n.addEventListener("abort",a,{once:!0})),n)}),t}var qq=()=>Lb,hc=()=>qq();var zr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var Zq=class extends zr{#e;#t;#a;constructor(){super(),this.#a=t=>{if(typeof window<"u"&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#a=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},pc=new Zq;var PI=bI;function Vq(){let t=[],e=0,a=s=>{s()},r=s=>{s()},n=PI,i=s=>{e?t.push(s):n(()=>{a(s)})},o=()=>{let s=t;t=[],s.length&&n(()=>{r(()=>{s.forEach(l=>{a(l)})})})};return{batch:s=>{let l;e++;try{l=s()}finally{e--,e||o()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{a=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{n=s}}}var He=Vq();var Uq=class extends zr{#e=!0;#t;#a;constructor(){super(),this.#a=t=>{if(typeof window<"u"&&window.addEventListener){let e=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#a=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#e}},mc=new Uq;function jq(t){return Math.min(1e3*2**t,3e4)}function Pb(t){return(t??"online")==="online"?mc.isOnline():!0}var Bm=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function _m(t){let e=!1,a=0,r,n="pending",i,o,s=new Promise((O,y)=>{i=O,o=y});s.catch(vt);let l=()=>n!=="pending",u=O=>{if(!l()){let y=new Bm(O);m(y),t.onCancel?.(y)}},c=()=>{e=!0},f=()=>{e=!1},d=()=>pc.isFocused()&&(t.networkMode==="always"||mc.isOnline())&&t.canRun(),h=()=>Pb(t.networkMode)&&t.canRun(),p=O=>{l()||(r?.(),n="resolved",i(O))},m=O=>{l()||(r?.(),n="rejected",o(O))},x=()=>new Promise(O=>{r=y=>{(l()||d())&&O(y)},t.onPause?.()}).then(()=>{r=void 0,l()||t.onContinue?.()}),g=()=>{if(l())return;let O,y=a===0?t.initialPromise:void 0;try{O=y??t.fn()}catch(b){O=Promise.reject(b)}Promise.resolve(O).then(p).catch(b=>{if(l())return;let v=t.retry??(hc()?0:3),S=t.retryDelay??jq,w=typeof S=="function"?S(a,b):S,k=v===!0||typeof v=="number"&&a<v||typeof v=="function"&&v(a,b);if(e||!k){m(b);return}a++,t.onFail?.(a,b),CI(w).then(()=>d()?void 0:x()).then(()=>{e?m(b):g()})})};return{promise:s,status:()=>n,cancel:u,continue:()=>(r?.(),s),cancelRetry:c,continueRetry:f,canStart:h,start:()=>(h()?g():x().then(g),s)}}var zm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qm(this.gcTime)&&(this.#e=ai.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(hc()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(ai.clearTimeout(this.#e),this.#e=void 0)}};function II(t){return{onFetch:(e,a)=>{let r=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],o=e.state.data?.pageParams||[],s={pages:[],pageParams:[]},l=0,u=async()=>{let c=!1,f=p=>{TI(p,()=>e.signal,()=>c=!0)},d=$m(e.options,e.fetchOptions),h=async(p,m,x)=>{if(c)return Promise.reject(e.signal.reason);if(m==null&&p.pages.length)return Promise.resolve(p);let O=(()=>{let S={client:e.client,queryKey:e.queryKey,pageParam:m,direction:x?"backward":"forward",meta:e.options.meta};return f(S),S})(),y=await d(O),{maxPages:b}=e.options,v=x?LI:kI;return{pages:v(p.pages,y,b),pageParams:v(p.pageParams,m,b)}};if(n&&i.length){let p=n==="backward",m=p?Fq:RI,x={pages:i,pageParams:o};s=await h(x,m(r,x),p)}else{let p=t??i.length;do{let m=l===0?o[0]??r.initialPageParam:RI(r,s);if(l>0&&m==null)break;s=await h(s,m),l++}while(l<p)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},a):e.fetchFn=u}}}function RI(t,{pages:e,pageParams:a}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,a[r],a):void 0}function Fq(t,{pages:e,pageParams:a}){return e.length>0?t.getPreviousPageParam?.(e[0],e,a[0],a):void 0}var MI=class extends zm{#e;#t;#a;#r;#i;#n;#o;#l;constructor(t){super(),this.#l=!1,this.#o=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#r=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=QI(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#n?.promise}setOptions(t){if(this.options={...this.#o,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=QI(this.options);e.data!==void 0&&(this.setState(AI(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(t,e){let a=xd(this.state.data,t,this.options);return this.#s({data:a,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),a}setState(t){this.#s({type:"setState",state:t})}cancel(t){let e=this.#n?.promise;return this.#n?.cancel(t),e?e.then(vt).catch(vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>at(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>at(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Mm(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){let e=this.observers.indexOf(t);e!==-1&&(this.observers.splice(e,1),this.observers.length||(this.#n&&(this.#l||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(t&&this.setOptions(t),!this.options.queryFn){let l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}let a=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#l=!0,a.signal)})},n=()=>{let l=$m(this.options,e),c=(()=>{let f={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(f),f})();return this.#l=!1,this.options.persister?this.options.persister(l,c,this):l(c)},o=(()=>{let l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:n};return r(l),l})();(this.#e==="infinite"?II(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#a=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#s({type:"fetch",meta:o.fetchOptions?.meta});let s=this.#n=_m({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof Bm&&l.revert&&this.setState({...this.#a,fetchStatus:"idle"}),a.abort()},onFail:(l,u)=>{this.#s({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let l=await s.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#r.config.onSuccess?.(l,this),this.#r.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof Bm){if(l.silent)return this.#n.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#s({type:"error",error:l}),this.#r.config.onError?.(l,this),this.#r.config.onSettled?.(this.state.data,l,this),l}finally{this.#n===s&&(this.#n=void 0),this.scheduleGc()}}#s(t){let e=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...Rb(a.data,this.options),fetchMeta:t.meta??null};case"success":let r={...a,...AI(t.data,t.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#a=t.manual?r:void 0,r;case"error":let n=t.error;return{...a,error:n,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=e(this.state),He.batch(()=>{this.observers.slice().forEach(a=>{a.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:t})})}};function Rb(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pb(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function AI(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function QI(t){let e=typeof t.initialData=="function"?t.initialData():t.initialData,a=e!==void 0,r=a?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:a?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Ab=class extends zr{#e;#t=void 0;#a=void 0;#r=void 0;#i;#n;#o;#l;#s;#h;#c;#f;#u;#p=new Set;constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),EI(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ib(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ib(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#v(),this.#t.removeObserver(this)}setOptions(t){let e=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof at(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!cc(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let r=this.hasListeners();r&&DI(this.#t,a,this.options,e)&&this.#d(),this.updateResult(),r&&(this.#t!==a||at(this.options.enabled,this.#t)!==at(e.enabled,this.#t)||at(this.options.staleTime,this.#t)!==at(e.staleTime,this.#t))&&this.#g();let n=this.#O();r&&(this.#t!==a||at(this.options.enabled,this.#t)!==at(e.enabled,this.#t)||n!==this.#u)&&this.#x(n)}getOptimisticResult(t){let e=this.#e.getQueryCache().build(this.#e,t),a=this.createResult(e,t);return cc(this.getCurrentResult(),a)||(this.#r=a,this.#n=this.options,this.#i=this.#t.state),a}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(a,r)=>(this.trackProp(r),e?.(r),Reflect.get(a,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#e.defaultQueryOptions(t),a=this.#e.getQueryCache().build(this.#e,e),r=()=>{},n,i=new Promise(o=>{n=o,r=this.#e.getQueryCache().subscribe(s=>{s.type==="updated"&&s.query.queryHash===a.queryHash&&a.state.data!==void 0&&(r(),o(this.createResult(a,e)))})});return Promise.race([a.fetch().then(()=>{let o=this.createResult(a,e);return n?.(o),o}).finally(()=>{r()}),i])}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(vt)),e}#m(t){return!hc()&&at(this.options.enabled,this.#t)!==!1&&Qm(t)}#g(){this.#b();let t=at(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#m(t))return;let e=Mm(this.#r.dataUpdatedAt,t)+1;this.#c=ai.setTimeout(()=>{this.#r.isStale||this.updateResult()},e)}#O(){return at(this.options.refetchInterval,this.#t)??!1}#x(t){this.#v(),this.#u=t,!(this.#u===0||!this.#m(this.#u))&&(this.#f=ai.setInterval(()=>{(this.options.refetchIntervalInBackground||pc.isFocused())&&this.#d()},this.#u))}#y(){this.#g(),this.#x(this.#O())}#b(){this.#c!==void 0&&(ai.clearTimeout(this.#c),this.#c=void 0)}#v(){this.#f!==void 0&&(ai.clearInterval(this.#f),this.#f=void 0)}createResult(t,e){let a=this.#t,r=this.options,n=this.#r,i=this.#i,o=this.#n,s=t!==a?t.state:this.#a,{state:l}=t,u={...l},c=!1,f;if(e._optimisticResults){let v=this.hasListeners(),S=!v&&EI(t,e),w=v&&DI(t,a,e,r);(S||w)&&(u={...u,...Rb(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:d,errorUpdatedAt:h,status:p}=u;f=u.data;let m=!1;if(e.placeholderData!==void 0&&f===void 0&&p==="pending"){let v;n?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(v=n.data,m=!0):v=typeof e.placeholderData=="function"?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,v!==void 0&&(p="success",f=xd(n?.data,v,e),c=!0)}if(e.select&&f!==void 0&&!m)if(n&&f===i?.data&&e.select===this.#l)f=this.#s;else try{this.#l=e.select,f=e.select(f),f=xd(n?.data,f,e),this.#s=f,this.#o=null}catch(v){this.#o=v}else f===void 0&&(this.#o=null);this.#o&&(d=this.#o,f=this.#s,h=Date.now(),p="error",c=!1);let x=u.fetchStatus==="fetching",g=p==="pending",O=p==="error",y=g&&x,b=f!==void 0;return{status:p,fetchStatus:u.fetchStatus,isPending:g,isSuccess:p==="success",isError:O,isInitialLoading:y,isLoading:y,data:f,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:x,isRefetching:x&&!g,isLoadingError:O&&!b,isPaused:u.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:O&&b,isStale:Qb(t,e),refetch:this.refetch,isEnabled:at(e.enabled,t)!==!1}}updateResult(){let t=this.#r,e=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#n=this.options,this.#i.data!==void 0&&(this.#h=this.#t),cc(e,t))return;this.#r=e;let r=(()=>{if(!t)return!0;let{notifyOnChangeProps:n}=this.options,i=typeof n=="function"?n():n;if(i==="all"||!i&&!this.#p.size)return!0;let o=new Set(i??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(s=>{let l=s;return this.#r[l]!==t[l]&&o.has(l)})})();He.batch(()=>{r&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#S(){let t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;let e=this.#t;this.#t=t,this.#a=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function Hq(t,e){return at(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&at(e.retryOnMount,t)===!1)}function EI(t,e){return Hq(t,e)||t.state.data!==void 0&&Ib(t,e,e.refetchOnMount)}function Ib(t,e,a){if(at(e.enabled,t)!==!1&&at(e.staleTime,t)!=="static"){let r=at(a,t);return r==="always"||r!==!1&&Qb(t,e)}return!1}function DI(t,e,a,r){return(t!==e||at(r.enabled,t)===!1)&&(!a.suspense||t.state.status!=="error")&&Qb(t,a)}function Qb(t,e){return at(e.enabled,t)!==!1&&t.isStaleByTime(at(e.staleTime,t))}var $I=class extends zm{#e;#t;#a;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#a=t.mutationCache,this.#t=[],this.state=t.state||Mb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#r?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){let e=()=>{this.#i({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=_m({fn:()=>this.options.mutationFn?this.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#i({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)}),n=this.state.status==="pending",i=!r.canStart();try{if(n)e();else{this.#i({type:"pending",variables:t,isPaused:i}),this.#a.config.onMutate&&await this.#a.config.onMutate(t,this,a);let s=await this.options.onMutate?.(t,a);s!==this.state.context&&this.#i({type:"pending",context:s,variables:t,isPaused:i})}let o=await r.start();return await this.#a.config.onSuccess?.(o,t,this.state.context,this,a),await this.options.onSuccess?.(o,t,this.state.context,a),await this.#a.config.onSettled?.(o,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(o,null,t,this.state.context,a),this.#i({type:"success",data:o}),o}catch(o){try{await this.#a.config.onError?.(o,t,this.state.context,this,a)}catch(s){Promise.reject(s)}try{await this.options.onError?.(o,t,this.state.context,a)}catch(s){Promise.reject(s)}try{await this.#a.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,a)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,o,t,this.state.context,a)}catch(s){Promise.reject(s)}throw this.#i({type:"error",error:o}),o}finally{this.#r===r&&(this.#r=void 0),this.#a.runNext(this)}}#i(t){let e=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),He.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(t)}),this.#a.notify({mutation:this,type:"updated",action:t})})}};function Mb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var BI=class extends zr{#e;#t;#a;constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#a=0}build(t,e,a){let r=new $I({client:t,mutationCache:this,mutationId:++this.#a,options:t.defaultMutationOptions(e),state:a});return this.add(r),r}add(t){this.#e.add(t);let e=Nm(t);if(typeof e=="string"){let a=this.#t.get(e);a?a.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){let e=Nm(t);if(typeof e=="string"){let a=this.#t.get(e);if(a)if(a.length>1){let r=a.indexOf(t);r!==-1&&a.splice(r,1)}else a[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=Nm(t);if(typeof e=="string"){let a=this.#t.get(e)?.find(r=>r.state.status==="pending");return!a||a===t}else return!0}runNext(t){let e=Nm(t);return typeof e=="string"?this.#t.get(e)?.find(a=>a!==t&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){He.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){let e={exact:!0,...t};return this.getAll().find(a=>Dm(e,a))}findAll(t={}){return this.getAll().filter(e=>Dm(t,e))}notify(t){He.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(e=>e.state.isPaused);return He.batch(()=>Promise.all(t.map(e=>e.continue().catch(vt))))}};function Nm(t){return t.options.scope?.id}var Eb=class extends zr{#e;#t=void 0;#a;#r;constructor(t,e){super(),this.#e=t,this.setOptions(e),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#e.defaultMutationOptions(t),cc(this.options,e)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),e?.mutationKey&&this.options.mutationKey&&ri(e.mutationKey)!==ri(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#a&&(this.#a.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#n(t)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#i(),this.#n()}mutate(t,e){return this.#r=e,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(t)}#i(){let t=this.#a?.state??Mb();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#n(t){He.batch(()=>{if(this.#r&&this.hasListeners()){let e=this.#t.variables,a=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,e,a,r)}catch(n){Promise.reject(n)}try{this.#r.onSettled?.(t.data,null,e,a,r)}catch(n){Promise.reject(n)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,e,a,r)}catch(n){Promise.reject(n)}try{this.#r.onSettled?.(void 0,t.error,e,a,r)}catch(n){Promise.reject(n)}}}this.listeners.forEach(e=>{e(this.#t)})})}};var _I=class extends zr{#e;constructor(t={}){super(),this.config=t,this.#e=new Map}build(t,e,a){let r=e.queryKey,n=e.queryHash??Od(r,e),i=this.get(n);return i||(i=new MI({client:t,queryKey:r,queryHash:n,options:t.defaultQueryOptions(e),state:a,defaultOptions:t.getQueryDefaults(r)}),this.add(i)),i}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){this.#e.get(t.queryHash)===t&&(t.destroy(),this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(a=>Em(e,a))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(a=>Em(t,a)):e}notify(t){He.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}};var Db=class{#e;#t;#a;#r;#i;#n;#o;#l;constructor(t={}){this.#e=t.queryCache||new _I,this.#t=t.mutationCache||new BI,this.#a=t.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#n=0}mount(){this.#n++,this.#n===1&&(this.#o=pc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=mc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#n--,this.#n===0&&(this.#o?.(),this.#o=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),a=this.#e.build(this,e),r=a.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&a.isStaleByTime(at(e.staleTime,a))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:a})=>[e,a.data])}setQueryData(t,e,a){let r=this.defaultQueryOptions({queryKey:t}),n=this.#e.get(r.queryHash)?.state.data,i=wI(e,n);if(i!==void 0)return this.#e.build(this,r).setData(i,{...a,manual:!0})}setQueriesData(t,e,a){return He.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,a)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){let e=this.#e;He.batch(()=>{e.findAll(t).forEach(a=>{e.remove(a)})})}resetQueries(t,e){let a=this.#e;return He.batch(()=>{let r=a.findAll(t),n=new Set(r);return r.forEach(i=>{i.reset()}),this.refetchQueries({type:"active",predicate:i=>n.has(i)},e)})}cancelQueries(t,e={}){let a={revert:!0,...e},r=He.batch(()=>this.#e.findAll(t).map(n=>n.cancel(a)));return Promise.all(r).then(vt).catch(vt)}invalidateQueries(t,e={}){return He.batch(()=>(this.#e.findAll(t).forEach(a=>{a.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){let a={...e,cancelRefetch:e.cancelRefetch??!0},r=He.batch(()=>this.#e.findAll(t).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let i=n.fetch(void 0,a);return a.throwOnError||(i=i.catch(vt)),n.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(vt)}async query(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);let a=this.#e.build(this,e),r=a.isStaleByTime(at(e.staleTime,a))?await a.fetch(e):a.state.data,n=e.select;return n?n(r):r}fetchQuery(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);let a=this.#e.build(this,e);return a.isStaleByTime(at(e.staleTime,a))?a.fetch(e):Promise.resolve(a.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(vt).catch(vt)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(vt).catch(vt)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return mc.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(t){this.#a=t}setQueryDefaults(t,e){this.#r.set(ri(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#r.values()],a={};return e.forEach(r=>{Uo(t,r.queryKey)&&Object.assign(a,r.defaultOptions)}),a}setMutationDefaults(t,e){this.#i.set(ri(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#i.values()],a={};return e.forEach(r=>{Uo(t,r.mutationKey)&&Object.assign(a,r.defaultOptions)}),a}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#a.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Od(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===fc&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#a.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};var Xm=L(F(),1),zI=Xm.createContext(!1),NI=()=>Xm.useContext(zI),LJ=zI.Provider;var yd=L(F(),1),Gq=L(G(),1);function Yq(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Wq=yd.createContext(Yq()),XI=()=>yd.useContext(Wq);var qI=L(F(),1);var ZI=(t,e,a)=>{let r=a?.state.error&&typeof t.throwOnError=="function"?dc(t.throwOnError,[a.state.error,a]):t.throwOnError;(t.suspense||r)&&(e.isReset()||(t.retryOnMount=!1))},VI=t=>{qI.useEffect(()=>{t.clearReset()},[t])},UI=({result:t,errorResetBoundary:e,throwOnError:a,query:r,suspense:n})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(n&&t.data===void 0||dc(a,[t.error,r]));var jI=t=>{if(t.suspense){let a=n=>n==="static"?n:Math.max(n??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...n)=>a(r(...n)):a(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},FI=(t,e)=>t?.suspense&&e.isPending,HI=(t,e,a)=>e.fetchOptimistic(t).catch(()=>{a.clearReset()});var jo=L(F(),1);function GI(t,e,a){let r=NI(),n=XI(),i=ol(a),o=i.defaultQueryOptions(t),s=i.getQueryCache().get(o.queryHash),l=t.subscribed!==!1;o._optimisticResults=r?"isRestoring":l?"optimistic":void 0,jI(o),ZI(o,n,s),VI(n);let[u]=jo.useState(()=>new e(i,o)),c=u.getOptimisticResult(o),f=!r&&l;if(jo.useSyncExternalStore(jo.useCallback(d=>{let h=f?u.subscribe(He.batchCalls(d)):vt;return u.updateResult(),h},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),jo.useEffect(()=>{u.setOptions(o)},[o,u]),FI(o,c))throw HI(o,u,n);if(UI({result:c,errorResetBoundary:n,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw c.error;return o.notifyOnChangeProps?c:u.trackResult(c)}function Nr(t,e){return GI(t,Ab,e)}var Ni=L(F(),1);function dn(t,e){let a=ol(e),[r]=Ni.useState(()=>new Eb(a,t));Ni.useEffect(()=>{r.setOptions(t)},[r,t]);let n=Ni.useSyncExternalStore(Ni.useCallback(o=>r.subscribe(He.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=Ni.useCallback((...o)=>{r.mutate(o[0],o[1]).catch(vt)},[r]);if(n.error&&dc(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:i,mutateAsync:n.mutate}}var qm=L(F(),1);var YI=t=>t?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function WI(t,e,a=[]){if(e==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:YI(t),size:24,node:e,...a.length>0?{aliases:a}:{}}}var KI=t=>{let e="",a=!1;for(let r of t){if(r==="-"||r==="_"||r<=" "){a=e.length>0;continue}e.length===0?e+=r.toLowerCase():e+=a?r.toUpperCase():r,a=!1}return e};var JI=t=>{let e=KI(t);return e.charAt(0).toUpperCase()+e.slice(1)};var vd=L(F(),1);var bd=(...t)=>t.filter((e,a,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===a).join(" ").trim();var Fo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function $b(t){return t!=null}function eA(t,e={}){let a=e.attributeNames??{},r=d=>a[d]??d,n=t.size??t.width??Fo.width,i=t.size??t.height??Fo.height,o=t.aliases?.filter(d=>typeof d=="string"&&d.trim()!=="").map(d=>`lucide-${d}`)??[],s=[...t.name?[`lucide-${t.name}`]:[],...o],l=e.className?.split(" ").filter(Boolean)??[],u=e.includeDefaultClasses===!1?bd(...l):bd("lucide",...s,...l),c=e.absoluteStrokeWidth?Number(e.strokeWidth??Fo["stroke-width"])*Number(t.size??t.width??Fo.width)/Number(e.size??e.width??Fo.width):e.strokeWidth??Fo["stroke-width"];return["svg",{...Object.entries(Fo).reduce((d,[h,p])=>(d[r(h)]=p,d),{}),..."color"in e&&e.color&&{[r("stroke")]:e.color},..."size"in e&&$b(e.size)&&{[r("width")]:e.size,[r("height")]:e.size},..."width"in e&&$b(e.width)&&{[r("width")]:e.width},..."height"in e&&$b(e.height)&&{[r("height")]:e.height},[r("stroke-width")]:c,...u&&{[r("class")]:u},[r("viewBox")]:`0 0 ${n} ${i}`,...e.hasA11yProp===!1?{[r("aria-hidden")]:"true"}:{},..."attributes"in e&&e.attributes},t.node.map(d=>{let[h,p,m]=d,x=e.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...p}:p;return m?[h,x,m]:[h,x]})]}function tA(t,e={}){return eA(t,{...e,attributeNames:{...e.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var aA=t=>{for(let e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};var gc=L(F(),1);var Kq=(0,gc.createContext)({});var rA=()=>(0,gc.useContext)(Kq);var nA=(0,vd.forwardRef)(({color:t,size:e,width:a,height:r,strokeWidth:n,absoluteStrokeWidth:i,nonScalingStroke:o,className:s="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...f},d)=>{let{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,nonScalingStroke:x=!1,color:g="currentColor",className:O=""}=rA()??{},y=!!l||aA(f),[b,v,S=[]]=tA(c,{color:t??g,width:a??e??h,height:r??e??h,strokeWidth:n??p,absoluteStrokeWidth:i??m,nonScalingStroke:o??x,className:bd(O,s),hasA11yProp:y,attributes:f});return(0,vd.createElement)(b,{ref:d,...v},[...S.map(([w,k])=>(0,vd.createElement)(w,k)),...Array.isArray(l)?l:[l]])});function Lt(t,e=[],a=[]){let r=typeof t=="string"?WI(t,e,a):t,n=(0,qm.forwardRef)(({className:i,...o},s)=>(0,qm.createElement)(nA,{ref:s,icon:r,className:i,...o}));return r.name&&(n.displayName=JI(r.name)),n}var iA={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};iA.node;var Sd=Lt(iA);var oA={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};oA.node;var Oc=Lt(oA);var sA={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};sA.node;var wd=Lt(sA);var lA={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};lA.node;var Ho=Lt(lA);var uA={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};uA.node;var hn=Lt(uA);var cA={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};cA.node;var Cd=Lt(cA);var fA={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};fA.node;var Go=Lt(fA);var dA={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};dA.node;var Yo=Lt(dA);var hA={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};hA.node;var kd=Lt(hA);var pA={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};pA.node;var Wo=Lt(pA);var mA={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};mA.node;var sl=Lt(mA);var Jq=/^[\w!#$%&'*.^`|~+-]+$/;var eZ=(t,e,a={})=>{if(!Jq.test(t))throw new Error("Invalid cookie name");let r=`${t}=${e}`;if(t.startsWith("__Secure-")&&!a.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(t.startsWith("__Host-")){if(!a.secure)throw new Error("__Host- Cookie must have Secure attributes");if(a.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(a.domain)throw new Error("__Host- Cookie must not have Domain attributes")}for(let n of["domain","path","sameSite","priority"])if(a[n]&&/[;\r\n]/.test(a[n]))throw new Error(`${n} must not contain ";", "\\r", or "\\n"`);if(a&&typeof a.maxAge=="number"&&a.maxAge>=0){if(a.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");r+=`; Max-Age=${a.maxAge|0}`}if(a.domain&&a.prefix!=="host"&&(r+=`; Domain=${a.domain}`),a.path&&(r+=`; Path=${a.path}`),a.expires){if(a.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");r+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(r+="; HttpOnly"),a.secure&&(r+="; Secure"),a.sameSite&&(r+=`; SameSite=${a.sameSite.charAt(0).toUpperCase()+a.sameSite.slice(1)}`),a.priority&&(r+=`; Priority=${a.priority.charAt(0).toUpperCase()+a.priority.slice(1)}`),a.partitioned){if(!a.secure)throw new Error("Partitioned Cookie must have Secure attributes");r+="; Partitioned"}return r},gA=(t,e,a)=>(e=encodeURIComponent(e),eZ(t,e,a));var OA=(t,e)=>(t=t.replace(/\/+$/,""),t=t+"/",e=e.replace(/^\/+/,""),t+e),Vm=(t,e)=>{for(let[a,r]of Object.entries(e)){let n=new RegExp("/:"+a+"(?:{[^/]+})?\\??(?=/|$)");t=t.replace(n,()=>r?`/${r}`:"")}return t},xA=t=>{let e=new URLSearchParams;for(let[a,r]of Object.entries(t))if(r!==void 0)if(Array.isArray(r))for(let n of r)n!==void 0&&e.append(a,n);else e.set(a,r);return e},yA=(t,e)=>{switch(e){case"ws":return t.replace(/^http/,"ws");case"http":return t.replace(/^ws/,"http")}},Um=t=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(t)?t.replace(/\/index(?=\?|$)/,"/"):t.replace(/\/index(?=\?|$)/,"");function Zm(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Bb(t,e){if(!Zm(t)&&!Zm(e))return e;let a={...t};for(let r in e){let n=e[r];Zm(a[r])&&Zm(n)?a[r]=Bb(a[r],n):a[r]=n}return a}var bA=(t,e)=>new Proxy(()=>{},{get(r,n){if(!(typeof n!="string"||n==="then"))return bA(t,[...e,n])},apply(r,n,i){return t({path:e,args:i})}}),vA=(t,e)=>{let a=e.toString();return a?`${t}?${a}`:t},aZ=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(t,e,a){this.url=t,this.method=e,this.buildSearchParams=a.buildSearchParams}fetch=async(t,e)=>{if(t){if(t.query&&(this.queryParams=this.buildSearchParams(t.query)),t.form){let s=new FormData;for(let[l,u]of Object.entries(t.form))if(u!==void 0)if(Array.isArray(u))for(let c of u)c!==void 0&&s.append(l,c);else s.append(l,u);this.rBody=s}t.json!==void 0&&(this.rBody=JSON.stringify(t.json),this.cType="application/json"),t.param&&(this.pathParams=t.param)}let a=this.method.toUpperCase(),r={...t?.header,...typeof e?.headers=="function"?await e.headers():e?.headers};if(t?.cookie){let s=[];for(let[l,u]of Object.entries(t.cookie))u!==void 0&&s.push(gA(l,u));s.length>0&&(r.Cookie=s.join("; "))}this.cType&&(r["Content-Type"]=this.cType);let n=new Headers;for(let[s,l]of Object.entries(r))l!==void 0&&n.set(s,l);let i=this.url;i=Um(i),i=Vm(i,this.pathParams),this.queryParams&&(i=vA(i,this.queryParams)),a=this.method.toUpperCase();let o=!(a==="GET"||a==="HEAD");return(e?.fetch||fetch)(i,{body:o?this.rBody:void 0,method:a,headers:n,...e?.init})}},_b=(t,e)=>bA(function a(r){let n=e?.buildSearchParams??xA,i=[...r.path],o=i.slice(-3).reverse();if(o[0]==="toString")return o[1]==="name"?o[2]||"":a.toString();if(o[0]==="valueOf")return o[1]==="name"?o[2]||"":a;let s="";if(/^\$/.test(o[0])){let f=i.pop();f&&(s=f.replace(/^\$/,""))}let l=i.join("/"),u=OA(t,l);if(s==="url"||s==="path"){let f=Um(u);return r.args[0]&&(r.args[0].param&&(f=Vm(f,r.args[0].param)),r.args[0].query&&(f=vA(f,n(r.args[0].query)))),s==="url"?new URL(f):f.slice(t.replace(/\/+$/,"").length).replace(/^\/?/,"/")}if(s==="ws"){let f=Um(u),d=yA(r.args[0]?.param?Vm(f,r.args[0].param):f,"ws"),h=new URL(d),p=r.args[0]?.query;return p&&n(p).forEach((g,O)=>{h.searchParams.append(O,g)}),((...x)=>e?.webSocket!==void 0&&typeof e.webSocket=="function"?e.webSocket(...x):new WebSocket(...x))(h.toString())}let c=new aZ(u,s,{buildSearchParams:n});if(s){e??={};let f={...r.args[1]},d=e.headers,h=f.headers;d&&h&&(f.headers=async()=>({...typeof d=="function"?await d():d,...typeof h=="function"?await h():h}));let p=Bb(e,f);return c.fetch(r.args[0],p)}return c},[]);var Et=_b("/api",{headers:{Authorization:`Bearer ${new URLSearchParams(location.search).get("t")??""}`}});function xc(){return Nr({queryKey:["kinds"],queryFn:async()=>(await Et.definitions.kinds.$get()).json()})}function ni(t){return Nr({queryKey:["primitives",t??""],queryFn:async()=>(await Et.charter.root.primitives.$get({query:t===void 0?{}:{matching:t}})).json()})}function SA(t){return Nr({queryKey:["explanation",t],queryFn:async()=>(await Et.charter.root.primitives[":identity"].explanation.$get({param:{identity:t}})).json()})}function wA(t){return Nr({queryKey:["primitive",t],enabled:t!==void 0,gcTime:0,refetchOnWindowFocus:!1,queryFn:async()=>{let e=await Et.charter.root.primitives[":identity"].$get({param:{identity:t??""}});return{answer:await e.json(),entityTag:e.headers.get("ETag")??""}}})}function CA(t){return Nr({queryKey:["requirements",t],enabled:t!=="",queryFn:async()=>(await Et.definitions.kinds[":kind"].requirements.$get({param:{kind:t}})).json()})}function Xi(){let t=ol();return async()=>{await t.resetQueries({queryKey:["testOutcome"]}),await t.invalidateQueries({predicate:({queryKey:e})=>e[0]!=="kinds"&&e[0]!=="requirements"&&e[0]!=="testOutcome"})}}function kA(){let t=Xi();return dn({mutationFn:async e=>(await Et.charter.root.primitives.$post({json:e})).json(),onSuccess:t})}function LA(){let t=Xi();return dn({mutationFn:async e=>(await Et.charter.root.primitives[":identity"].$put(e)).json(),onSuccess:t})}function TA(){let t=Xi();return dn({mutationFn:async e=>{let a=await Et.charter.root.primitives[":identity"].$delete({param:{identity:e}},{headers:{"Content-Type":"application/json"}});return a.status===422?a.json():null},onSuccess:t})}function PA(){return Nr({queryKey:["build"],gcTime:0,queryFn:async()=>(await Et.charter.root.build.$get()).json()})}function RA(){return Nr({queryKey:["health"],gcTime:0,queryFn:async()=>(await Et.charter.root.health.$get()).json()})}function jm(){let t=Xi();return dn({mutationFn:async()=>(await Et.charter.root.build.$post({},{headers:{"Content-Type":"application/json"}})).json(),onSuccess:t})}function IA(){return Nr({queryKey:["vendors"],queryFn:async()=>(await Et.vendors.$get()).json()})}function AA(){let t=Xi();return dn({mutationFn:async e=>{let a=await Et.vendors.$post({json:e});return a.status===422?a.json():null},onSuccess:t})}function QA(){let t=Xi();return dn({mutationFn:async e=>{let a=await Et.vendors[":name"].$delete({param:{name:e}},{headers:{"Content-Type":"application/json"}});return a.status===422?a.json():null},onSuccess:t})}function Fm(){return Nr({queryKey:["testSuites"],queryFn:async()=>(await Et["test-suites"].$get()).json()})}function MA(){return Nr({queryKey:["testOutcome"],enabled:!1,queryFn:async()=>(await Et["test-suites"].outcome.$get()).json()})}function EA(){let t=Xi();return dn({mutationFn:async()=>(await Et["test-suites"].$post({},{headers:{"Content-Type":"application/json"}})).json(),onSuccess:t})}function DA(){let t=Xi();return dn({mutationFn:async({name:e,text:a})=>(await Et["test-suites"][":name"].$put({param:{name:e},json:{text:a}})).json(),onSuccess:async e=>{typeof e=="string"&&await t()}})}function $A(){let t=Xi();return dn({mutationFn:async e=>{let a=await Et["test-suites"][":name"].$delete({param:{name:e}},{headers:{"Content-Type":"application/json"}});return a.status===422?a.json():null},onSuccess:t})}var tu=L(F(),1);var X=L(F(),1),NA=L(Es(),1);function rZ(t){if(!t||typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}var nZ=t=>{switch(t){case"success":return sZ;case"info":return uZ;case"warning":return lZ;case"error":return cZ;default:return null}},iZ=Array(12).fill(0),oZ=({visible:t,className:e})=>X.default.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},X.default.createElement("div",{className:"sonner-spinner"},iZ.map((a,r)=>X.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),sZ=X.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},X.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),lZ=X.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},X.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),uZ=X.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},X.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),cZ=X.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},X.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),fZ=X.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},X.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),dZ=()=>{let[t,e]=X.default.useState(document.hidden);return X.default.useEffect(()=>{let a=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",a),()=>document.removeEventListener("visibilitychange",a)},[]),t},hZ=1,pZ=100,BA=t=>{var e;return typeof t?.id=="number"||(t==null||(e=t.id)==null?void 0:e.length)>0?t.id:hZ++},zb=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(a=>e(a)),()=>{let a=this.subscribers.indexOf(e);this.subscribers.splice(a,1)}),this.publish=e=>{this.subscribers.forEach(a=>a(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-pZ;e<=0||(this.toasts=this.toasts.filter(a=>e>0&&this.dismissedToasts.has(a.id)?(this.dismissedToasts.delete(a.id),e--,!1):!0))},this.create=e=>{let{message:a,...r}=e,n=BA(e),i=this.pendingDismissals.get(n);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(n),this.dismissedToasts.delete(n));let o=this.dismissedToasts.has(n),s=e.dismissible===void 0?!0:e.dismissible;return o&&(this.dismissedToasts.delete(n),this.toasts=this.toasts.filter(u=>u.id!==n)),(o?void 0:this.toasts.find(u=>u.id===n))?this.toasts=this.toasts.map(u=>u.id===n?(this.publish({...u,...e,id:n,title:a}),{...u,...e,id:n,dismissible:s,title:a}):u):this.addToast({title:a,...r,dismissible:s,id:n}),n},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(r=>{this.dismissedToasts.add(r.id),this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let a=this.pendingDismissals.get(e);return a!==void 0&&cancelAnimationFrame(a),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(r=>r({id:e,dismiss:!0}))})),e},this.message=(e,a)=>this.create({...a,message:e,type:void 0}),this.error=(e,a)=>this.create({...a,message:e,type:"error"}),this.success=(e,a)=>this.create({...a,type:"success",message:e}),this.info=(e,a)=>this.create({...a,type:"info",message:e}),this.warning=(e,a)=>this.create({...a,type:"warning",message:e}),this.loading=(e,a)=>this.create({...a,type:"loading",message:e}),this.promise=(e,a)=>{if(!a)return;let r;a.loading!==void 0&&(r=this.create({...a,promise:e,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));let n=Promise.resolve(e instanceof Function?e():e),i=r!==void 0,o,s=n.then(async u=>{if(o=["resolve",u],X.default.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(gZ(u)&&!u.ok){i=!1;let f=typeof a.error=="function"?await a.error(`HTTP error! status: ${u.status}`):a.error,d=typeof a.description=="function"?await a.description(`HTTP error! status: ${u.status}`):a.description,p=typeof f=="object"&&!X.default.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:d,...p})}else if(u instanceof Error){i=!1;let f=typeof a.error=="function"?await a.error(u):a.error,d=typeof a.description=="function"?await a.description(u):a.description,p=typeof f=="object"&&!X.default.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:d,...p})}else if(a.success!==void 0){i=!1;let f=typeof a.success=="function"?await a.success(u):a.success,d=typeof a.description=="function"?await a.description(u):a.description,p=typeof f=="object"&&!X.default.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:d,...p})}}).catch(async u=>{if(o=["reject",u],a.error!==void 0){i=!1;let c=typeof a.error=="function"?await a.error(u):a.error,f=typeof a.description=="function"?await a.description(u):a.description,h=typeof c=="object"&&!X.default.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...h})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),a.finally==null||a.finally.call(a)}),l=()=>new Promise((u,c)=>s.then(()=>o[0]==="reject"?c(o[1]):u(o[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,a)=>{let r=BA(a);return this.create({...a,jsx:e(r),id:r,type:void 0}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},Ka=new zb,mZ=(t,e)=>Ka.message(t,e),gZ=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",OZ=mZ,xZ=()=>Ka.toasts,yZ=()=>Ka.getActiveToasts(),ll=Object.assign(OZ,{success:Ka.success,info:Ka.info,warning:Ka.warning,error:Ka.error,custom:Ka.custom,message:Ka.message,promise:Ka.promise,dismiss:Ka.dismiss,loading:Ka.loading},{getHistory:xZ,getToasts:yZ});rZ("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Hm(t){return t.label!==void 0}var bZ=3,vZ="24px",SZ="16px",_A=4e3,wZ=356,CZ=14,kZ=45,LZ=200;function ii(...t){return t.filter(Boolean).join(" ")}function TZ(t){let[e,a]=t.split("-"),r=[];return e&&r.push(e),a&&r.push(a),r}var PZ=t=>{var e,a,r,n,i,o,s,l,u;let{invert:c,toast:f,unstyled:d,interacting:h,setHeights:p,visibleToasts:m,heights:x,index:g,toasts:O,expanded:y,removeToast:b,defaultRichColors:v,closeButton:S,style:w,cancelButtonStyle:k,actionButtonStyle:T,className:Q="",descriptionClassName:D="",duration:A,position:R,gap:B,expandByDefault:W,classNames:$,icons:q,closeButtonAriaLabel:re="Close toast"}=t,[ie,z]=X.default.useState(null),[Pe,P]=X.default.useState(null),[H,N]=X.default.useState(!1),[M,j]=X.default.useState(!1),[de,ee]=X.default.useState(!1),[Z,qe]=X.default.useState(!1),[Re,Ie]=X.default.useState(!1),[Ze,Vt]=X.default.useState(0),[Za,iu]=X.default.useState(0),Si=X.default.useRef(f.duration||A||_A),ou=X.default.useRef(null),wi=X.default.useRef(null),Kz=g===0,Jz=g+1<=m,Ca=f.type,qC=Ca??"default",su=f.dismissible!==!1,eN=f.className||"",tN=f.descriptionClassName||"",Vh=X.default.useMemo(()=>x.findIndex(ge=>ge.toastId===f.id)||0,[x,f.id]),aN=X.default.useMemo(()=>{var ge;return(ge=f.closeButton)!=null?ge:S},[f.closeButton,S]),ZC=X.default.useMemo(()=>f.duration||A||_A,[f.duration,A]),m0=X.default.useRef(0),lu=X.default.useRef(0),VC=X.default.useRef(0),uu=X.default.useRef(null),[rN,nN]=R.split("-"),UC=X.default.useMemo(()=>x.reduce((ge,Ut,ma)=>ma>=Vh?ge:ge+Ut.height,0),[x,Vh]),jC=dZ(),Bn=X.default.useMemo(()=>{var ge;return(ge=t.swipeDirections)!=null?ge:TZ(R)},[t.swipeDirections,R]),iN=f.invert||c,g0=Ca==="loading";lu.current=X.default.useMemo(()=>Vh*B+UC,[Vh,UC]),X.default.useEffect(()=>{Si.current=ZC},[ZC]),X.default.useEffect(()=>{N(!0)},[]),X.default.useEffect(()=>{let ge=wi.current;if(ge){let Ut=ge.getBoundingClientRect().height;return iu(Ut),p(ma=>[{toastId:f.id,height:Ut,position:f.position},...ma]),()=>p(ma=>ma.filter(Va=>Va.toastId!==f.id))}},[p,f.id]),X.default.useLayoutEffect(()=>{if(!H)return;let ge=wi.current,Ut=ge.style.height;ge.style.height="auto";let ma=ge.getBoundingClientRect().height;ge.style.height=Ut,iu(ma),p(Va=>Va.find(ta=>ta.toastId===f.id)?Va.map(ta=>ta.toastId===f.id?{...ta,height:ma}:ta):[{toastId:f.id,height:ma,position:f.position},...Va])},[H,f.title,f.description,p,f.id,f.jsx,f.action,f.cancel]);let ho=X.default.useCallback(()=>{j(!0),Vt(lu.current),p(ge=>ge.filter(Ut=>Ut.toastId!==f.id)),setTimeout(()=>{b(f)},LZ)},[f,b,p,lu]);X.default.useEffect(()=>{if(f.promise&&Ca==="loading"||f.duration===1/0||f.type==="loading")return;let ge;return y||h||jC?(()=>{if(VC.current<m0.current){let Va=new Date().getTime()-m0.current;Si.current=Si.current-Va}VC.current=new Date().getTime()})():Si.current!==1/0&&(m0.current=new Date().getTime(),ge=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),ho()},Si.current)),()=>clearTimeout(ge)},[y,h,f,Ca,jC,ho]),X.default.useEffect(()=>{f.delete&&(ho(),f.onDismiss==null||f.onDismiss.call(f,f))},[ho,f.delete]);function FC(){var ge;if(q?.loading){var Ut;return X.default.createElement("div",{className:ii($?.loader,f==null||(Ut=f.classNames)==null?void 0:Ut.loader,"sonner-loader"),"data-visible":Ca==="loading"},q.loading)}return X.default.createElement(oZ,{className:ii($?.loader,f==null||(ge=f.classNames)==null?void 0:ge.loader),visible:Ca==="loading"})}let oN=f.icon||q?.[Ca]||nZ(Ca);var HC,GC;return X.default.createElement("li",{tabIndex:0,ref:wi,className:ii(Q,eN,$?.toast,f==null||(e=f.classNames)==null?void 0:e.toast,$?.[qC],f==null||(a=f.classNames)==null?void 0:a[qC]),"data-sonner-toast":"","data-rich-colors":(HC=f.richColors)!=null?HC:v,"data-styled":!(f.jsx||f.unstyled||d),"data-mounted":H,"data-promise":!!f.promise,"data-swiped":Re,"data-removed":M,"data-visible":Jz,"data-y-position":rN,"data-x-position":nN,"data-index":g,"data-front":Kz,"data-swiping":de,"data-dismissible":su,"data-type":Ca,"data-invert":iN,"data-swipe-out":Z,"data-swipe-direction":Pe,"data-expanded":!!(y||W&&H),"data-testid":f.testId,style:{"--index":g,"--toasts-before":g,"--z-index":O.length-g,"--offset":`${M?Ze:lu.current}px`,"--initial-height":W?"auto":`${Za}px`,...w,...f.style},onDragEnd:()=>{ee(!1),z(null),uu.current=null},onPointerDown:ge=>{ge.button!==2&&(g0||!su||(ou.current=new Date,Vt(lu.current),ge.target.setPointerCapture(ge.pointerId),ge.target.tagName!=="BUTTON"&&(ee(!0),uu.current={x:ge.clientX,y:ge.clientY})))},onPointerUp:()=>{var ge,Ut,ma;if(Z||!su)return;uu.current=null;let Va=Number(((ge=wi.current)==null?void 0:ge.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pf=Number(((Ut=wi.current)==null?void 0:Ut.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ta=new Date().getTime()-((ma=ou.current)==null?void 0:ma.getTime()),Pr=ie==="x"?Va:pf,_n=Math.abs(Pr)/ta;if((ie==="x"?Bn.includes(Va>0?"right":"left"):Bn.includes(pf>0?"bottom":"top"))&&(Math.abs(Pr)>=kZ||_n>.11)){Vt(lu.current),f.onDismiss==null||f.onDismiss.call(f,f),P(ie==="x"?Va>0?"right":"left":pf>0?"down":"up"),ho(),qe(!0);return}else{var zn,x0;(zn=wi.current)==null||zn.style.setProperty("--swipe-amount-x","0px"),(x0=wi.current)==null||x0.style.setProperty("--swipe-amount-y","0px")}Ie(!1),ee(!1),z(null)},onPointerMove:ge=>{var Ut,ma,Va;if(!uu.current||!su||((Ut=window.getSelection())==null?void 0:Ut.toString().length)>0)return;let ta=ge.clientY-uu.current.y,Pr=ge.clientX-uu.current.x;!ie&&(Math.abs(Pr)>1||Math.abs(ta)>1)&&z(Math.abs(Pr)>Math.abs(ta)?"x":"y");let _n={x:0,y:0},O0=zn=>1/(1.5+Math.abs(zn)/20);if(ie==="y"){if(Bn.includes("top")||Bn.includes("bottom"))if(Bn.includes("top")&&ta<0||Bn.includes("bottom")&&ta>0)_n.y=ta;else{let zn=ta*O0(ta);_n.y=Math.abs(zn)<Math.abs(ta)?zn:ta}}else if(ie==="x"&&(Bn.includes("left")||Bn.includes("right")))if(Bn.includes("left")&&Pr<0||Bn.includes("right")&&Pr>0)_n.x=Pr;else{let zn=Pr*O0(Pr);_n.x=Math.abs(zn)<Math.abs(Pr)?zn:Pr}(Math.abs(_n.x)>0||Math.abs(_n.y)>0)&&Ie(!0),(ma=wi.current)==null||ma.style.setProperty("--swipe-amount-x",`${_n.x}px`),(Va=wi.current)==null||Va.style.setProperty("--swipe-amount-y",`${_n.y}px`)}},aN&&!f.jsx&&Ca!=="loading"?X.default.createElement("button",{"aria-label":re,"data-disabled":g0,"data-close-button":!0,onClick:g0||!su?()=>{}:()=>{ho(),f.onDismiss==null||f.onDismiss.call(f,f)},className:ii($?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(GC=q?.close)!=null?GC:fZ):null,(Ca||f.icon||f.promise)&&f.icon!==null&&(q?.[Ca]!==null||f.icon)?X.default.createElement("div",{"data-icon":"",className:ii($?.icon,f==null||(n=f.classNames)==null?void 0:n.icon)},Ca==="loading"?f.icon||FC():f.promise?FC():null,Ca!=="loading"?oN:null):null,X.default.createElement("div",{"data-content":"",className:ii($?.content,f==null||(i=f.classNames)==null?void 0:i.content)},X.default.createElement("div",{"data-title":"",className:ii($?.title,f==null||(o=f.classNames)==null?void 0:o.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?X.default.createElement("div",{"data-description":"",className:ii(D,tN,$?.description,f==null||(s=f.classNames)==null?void 0:s.description)},typeof f.description=="function"?f.description():f.description):null),X.default.isValidElement(f.cancel)?f.cancel:f.cancel&&Hm(f.cancel)?X.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||k,onClick:ge=>{Hm(f.cancel)&&su&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ge),ho())},className:ii($?.cancelButton,f==null||(l=f.classNames)==null?void 0:l.cancelButton)},f.cancel.label):null,X.default.isValidElement(f.action)?f.action:f.action&&Hm(f.action)?X.default.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||T,onClick:ge=>{Hm(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ge),!ge.defaultPrevented&&ho())},className:ii($?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function zA(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function RZ(t,e){let a={};return[t,e].forEach((r,n)=>{let i=n===1,o=i?"--mobile-offset":"--offset",s=i?SZ:vZ;function l(u){["top","right","bottom","left"].forEach(c=>{a[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?a[`${o}-${u}`]=s:a[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),a}var XA=X.default.forwardRef(function(e,a){let{id:r,invert:n,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:c,mobileOffset:f,theme:d="light",richColors:h,duration:p,style:m,visibleToasts:x=bZ,toastOptions:g,dir:O=zA(),gap:y=CZ,icons:b,customAriaLabel:v,containerAriaLabel:S="Notifications"}=e,[w,k]=X.default.useState([]),T=X.default.useMemo(()=>r?w.filter(N=>N.toasterId===r):w.filter(N=>!N.toasterId),[w,r]),Q=X.default.useMemo(()=>Array.from(new Set([i].concat(T.filter(N=>N.position).map(N=>N.position)))),[T,i]),[D,A]=X.default.useState([]),[R,B]=X.default.useState(!1),[W,$]=X.default.useState(!1),[q,re]=X.default.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=X.default.useRef(null),z=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),Pe=X.default.useRef(null),P=X.default.useRef(!1),H=X.default.useCallback(N=>{k(M=>{var j;return(j=M.find(de=>de.id===N.id))!=null&&j.delete||Ka.dismiss(N.id),M.filter(({id:de})=>de!==N.id)})},[]);return X.default.useEffect(()=>Ka.subscribe(N=>{if(N.dismiss){requestAnimationFrame(()=>{k(M=>M.map(j=>j.id===N.id?{...j,delete:!0}:j))});return}setTimeout(()=>{NA.default.flushSync(()=>{k(M=>{let j=M.findIndex(de=>de.id===N.id);return j!==-1?[...M.slice(0,j),{...M[j],...N},...M.slice(j+1)]:[N,...M]})})})}),[]),X.default.useEffect(()=>{if(d!=="system"){re(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window>"u")return;let N=window.matchMedia("(prefers-color-scheme: dark)");try{N.addEventListener("change",({matches:M})=>{re(M?"dark":"light")})}catch{N.addListener(({matches:j})=>{try{re(j?"dark":"light")}catch(de){console.error(de)}})}},[d]),X.default.useEffect(()=>{w.length<=1&&B(!1)},[w]),X.default.useEffect(()=>{let N=M=>{var j;if(o.length>0&&o.every(Z=>M[Z]||M.code===Z)){var ee;B(!0),(ee=ie.current)==null||ee.focus()}M.code==="Escape"&&(document.activeElement===ie.current||(j=ie.current)!=null&&j.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[o]),X.default.useEffect(()=>{if(ie.current)return()=>{Pe.current&&(Pe.current.focus({preventScroll:!0}),Pe.current=null,P.current=!1)}},[ie.current]),X.default.createElement("section",{ref:a,"aria-label":v??`${S} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},Q.map((N,M)=>{var j;let[de,ee]=N.split("-");return T.length?X.default.createElement("ol",{key:N,dir:O==="auto"?zA():O,tabIndex:-1,ref:ie,className:u,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":de,"data-x-position":ee,style:{"--front-toast-height":`${((j=D[0])==null?void 0:j.height)||0}px`,"--width":`${wZ}px`,"--gap":`${y}px`,...m,...RZ(c,f)},onBlur:Z=>{P.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(P.current=!1,Pe.current&&(Pe.current.focus({preventScroll:!0}),Pe.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||P.current||(P.current=!0,Pe.current=Z.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{W||B(!1)},onDragEnd:()=>B(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},T.filter(Z=>!Z.position&&M===0||Z.position===N).map((Z,qe)=>{var Re,Ie;return X.default.createElement(PZ,{key:Z.id,icons:b,index:qe,toast:Z,defaultRichColors:h,duration:(Re=g?.duration)!=null?Re:p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Ie=g?.closeButton)!=null?Ie:l,interacting:W,position:N,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:H,toasts:T.filter(Ze=>Ze.position==Z.position),heights:D.filter(Ze=>Ze.position==Z.position),setHeights:A,expandByDefault:s,gap:y,expanded:R,swipeDirections:e.swipeDirections})})):null}))});var Oie=L(F(),1);function qA(t){var e,a,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(a=qA(t[e]))&&(r&&(r+=" "),r+=a)}else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}function Gm(){for(var t,e,a=0,r="",n=arguments.length;a<n;a++)(t=arguments[a])&&(e=qA(t))&&(r&&(r+=" "),r+=e);return r}var ZA=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,VA=Gm,oi=(t,e)=>a=>{var r;if(e?.variants==null)return VA(t,a?.class,a?.className);let{variants:n,defaultVariants:i}=e,o=Object.keys(n).map(u=>{let c=a?.[u],f=i?.[u];if(c===null)return null;let d=ZA(c)||ZA(f);return n[u][d]}),s=a&&Object.entries(a).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(p=>{let[m,x]=p;return Array.isArray(x)?x.includes({...i,...s}[m]):{...i,...s}[m]===x})?[...u,f,d]:u},[]);return VA(t,o,l,a?.class,a?.className)};var IZ=(t,e)=>{let a=new Array(t.length+e.length);for(let r=0;r<t.length;r++)a[r]=t[r];for(let r=0;r<e.length;r++)a[t.length+r]=e[r];return a},AZ=(t,e)=>({classGroupId:t,validator:e}),YA=(t=new Map,e=null,a)=>({nextPart:t,validators:e,classGroupId:a});var UA=[],QZ="arbitrary..",MZ=t=>{let e=DZ(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return EZ(o);let s=o.split("-"),l=s[0]===""&&s.length>1?1:0;return WA(s,l,e)},getConflictingClassGroupIds:(o,s)=>{if(s){let l=r[o],u=a[o];return l?u?IZ(u,l):l:u||UA}return a[o]||UA}}},WA=(t,e,a)=>{if(t.length-e===0)return a.classGroupId;let n=t[e],i=a.nextPart.get(n);if(i){let u=WA(t,e+1,i);if(u)return u}let o=a.validators;if(o===null)return;let s=e===0?t.join("-"):t.slice(e).join("-"),l=o.length;for(let u=0;u<l;u++){let c=o[u];if(c.validator(s))return c.classGroupId}},EZ=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let e=t.slice(1,-1),a=e.indexOf(":"),r=e.slice(0,a);return r?QZ+r:void 0})(),DZ=t=>{let{theme:e,classGroups:a}=t;return $Z(a,e)},$Z=(t,e)=>{let a=YA();for(let r in t){let n=t[r];Xb(n,a,r,e)}return a},Xb=(t,e,a,r)=>{let n=t.length;for(let i=0;i<n;i++){let o=t[i];BZ(o,e,a,r)}},BZ=(t,e,a,r)=>{if(typeof t=="string"){_Z(t,e,a);return}if(typeof t=="function"){zZ(t,e,a,r);return}NZ(t,e,a,r)},_Z=(t,e,a)=>{let r=t===""?e:KA(e,t);r.classGroupId=a},zZ=(t,e,a,r)=>{if(XZ(t)){Xb(t(r),e,a,r);return}e.validators===null&&(e.validators=[]),e.validators.push(AZ(a,t))},NZ=(t,e,a,r)=>{let n=Object.entries(t),i=n.length;for(let o=0;o<i;o++){let[s,l]=n[o];Xb(l,KA(e,s),a,r)}},KA=(t,e)=>{let a=t,r=e.split("-"),n=r.length;for(let i=0;i<n;i++){let o=r[i],s=a.nextPart.get(o);s||(s=YA(),a.nextPart.set(o,s)),a=s}return a},XZ=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,qZ=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,a=Object.create(null),r=Object.create(null),n=(i,o)=>{a[i]=o,e++,e>t&&(e=0,r=a,a=Object.create(null))};return{get(i){let o=a[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return n(i,o),o},set(i,o){i in a?a[i]=o:n(i,o)}}};var ZZ=[],jA=(t,e,a,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:a,maybePostfixModifierPosition:r,isExternal:n}),VZ=t=>{let{prefix:e,experimentalParseClassName:a}=t,r=n=>{let i=[],o=0,s=0,l=0,u,c=n.length;for(let m=0;m<c;m++){let x=n[m];if(o===0&&s===0){if(x===":"){i.push(n.slice(l,m)),l=m+1;continue}if(x==="/"){u=m;continue}}x==="["?o++:x==="]"?o--:x==="("?s++:x===")"&&s--}let f=i.length===0?n:n.slice(l),d=f,h=!1;f.endsWith("!")?(d=f.slice(0,-1),h=!0):f.startsWith("!")&&(d=f.slice(1),h=!0);let p=u&&u>l?u-l:void 0;return jA(i,h,d,p)};if(e){let n=e+":",i=r;r=o=>o.startsWith(n)?i(o.slice(n.length)):jA(ZZ,!1,o,void 0,!0)}if(a){let n=r;r=i=>a({className:i,parseClassName:n})}return r},UZ=t=>{let e=new Map;return t.orderSensitiveModifiers.forEach((a,r)=>{e.set(a,1e6+r)}),a=>{let r=[],n=[];for(let i=0;i<a.length;i++){let o=a[i],s=o[0]==="[",l=e.has(o);s||l?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(o)):n.push(o)}return n.length>0&&(n.sort(),r.push(...n)),r}},jZ=t=>({cache:qZ(t.cacheSize),parseClassName:VZ(t),sortModifiers:UZ(t),postfixLookupClassGroupIds:FZ(t),...MZ(t)}),FZ=t=>{let e=Object.create(null),a=t.postfixLookupClassGroups;if(a)for(let r=0;r<a.length;r++)e[a[r]]=!0;return e},HZ=/\s+/,GZ=(t,e)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i,postfixLookupClassGroupIds:o}=e,s=[],l=t.trim().split(HZ),u="";for(let c=l.length-1;c>=0;c-=1){let f=l[c],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:x}=a(f);if(d){u=f+(u.length>0?" "+u:u);continue}let g=!!x,O;if(g){let w=m.substring(0,x);O=r(w);let k=O&&o[O]?r(m):void 0;k&&k!==O&&(O=k,g=!1)}else O=r(m);if(!O){if(!g){u=f+(u.length>0?" "+u:u);continue}if(O=r(m),!O){u=f+(u.length>0?" "+u:u);continue}g=!1}let y=h.length===0?"":h.length===1?h[0]:i(h).join(":"),b=p?y+"!":y,v=b+O;if(s.indexOf(v)>-1)continue;s.push(v);let S=n(O,g);for(let w=0;w<S.length;++w){let k=S[w];s.push(b+k)}u=f+(u.length>0?" "+u:u)}return u},YZ=(...t)=>{let e=0,a,r,n="";for(;e<t.length;)(a=t[e++])&&(r=JA(a))&&(n&&(n+=" "),n+=r);return n},JA=t=>{if(typeof t=="string")return t;let e,a="";for(let r=0;r<t.length;r++)t[r]&&(e=JA(t[r]))&&(a&&(a+=" "),a+=e);return a},WZ=(t,...e)=>{let a,r,n,i,o=l=>{let u=e.reduce((c,f)=>f(c),t());return a=jZ(u),r=a.cache.get,n=a.cache.set,i=s,s(l)},s=l=>{let u=r(l);if(u)return u;let c=GZ(l,a);return n(l,c),c};return i=o,(...l)=>i(YZ(...l))},KZ=[],qt=t=>{let e=a=>a[t]||KZ;return e.isThemeGetter=!0,e.themeKey=t,e},eQ=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tQ=/^\((?:(\w[\w-]*):)?(.+)\)$/i,JZ=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,e4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t4=/\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$/,a4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,r4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,n4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ko=t=>JZ.test(t),ve=t=>!!t&&!Number.isNaN(Number(t)),si=t=>!!t&&Number.isInteger(Number(t)),Nb=t=>t.endsWith("%")&&ve(t.slice(0,-1)),qi=t=>e4.test(t),aQ=()=>!0,i4=t=>t4.test(t)&&!a4.test(t),qb=()=>!1,o4=t=>r4.test(t),s4=t=>n4.test(t),l4=t=>!te(t)&&!ae(t),u4=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),c4=t=>Jo(t,iQ,qb),te=t=>eQ.test(t),ul=t=>Jo(t,oQ,i4),FA=t=>Jo(t,x4,ve),f4=t=>Jo(t,lQ,aQ),d4=t=>Jo(t,sQ,qb),HA=t=>Jo(t,rQ,qb),h4=t=>Jo(t,nQ,s4),Ym=t=>Jo(t,uQ,o4),ae=t=>tQ.test(t),Ld=t=>cl(t,oQ),p4=t=>cl(t,sQ),GA=t=>cl(t,rQ),m4=t=>cl(t,iQ),g4=t=>cl(t,nQ),Wm=t=>cl(t,uQ,!0),O4=t=>cl(t,lQ,!0),Jo=(t,e,a)=>{let r=eQ.exec(t);return r?r[1]?e(r[1]):a(r[2]):!1},cl=(t,e,a=!1)=>{let r=tQ.exec(t);return r?r[1]?e(r[1]):a:!1},rQ=t=>t==="position"||t==="percentage",nQ=t=>t==="image"||t==="url",iQ=t=>t==="length"||t==="size"||t==="bg-size",oQ=t=>t==="length",x4=t=>t==="number",sQ=t=>t==="family-name",lQ=t=>t==="number"||t==="weight",uQ=t=>t==="shadow";var y4=()=>{let t=qt("color"),e=qt("font"),a=qt("text"),r=qt("font-weight"),n=qt("tracking"),i=qt("leading"),o=qt("breakpoint"),s=qt("container"),l=qt("spacing"),u=qt("radius"),c=qt("shadow"),f=qt("inset-shadow"),d=qt("text-shadow"),h=qt("drop-shadow"),p=qt("blur"),m=qt("perspective"),x=qt("aspect"),g=qt("ease"),O=qt("animate"),y=()=>["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"],v=()=>[...b(),ae,te],S=()=>["auto","hidden","clip","visible","scroll"],w=()=>["auto","contain","none"],k=()=>[ae,te,l],T=()=>[Ko,"full","auto",...k()],Q=()=>[si,"none","subgrid",ae,te],D=()=>["auto",{span:["full",si,ae,te]},si,ae,te],A=()=>[si,"auto",ae,te],R=()=>["auto","min","max","fr",ae,te],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...k()],q=()=>[Ko,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],re=()=>[s,Ko,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ie=()=>[Ko,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],z=()=>[t,ae,te],Pe=()=>[...b(),GA,HA,{position:[ae,te]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",m4,c4,{size:[ae,te]}],N=()=>[Nb,Ld,ul],M=()=>["","none","full",u,ae,te],j=()=>["",ve,Ld,ul],de=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[ve,Nb,GA,HA],qe=()=>["","none",p,ae,te],Re=()=>["none",ve,ae,te],Ie=()=>["none",ve,ae,te],Ze=()=>[ve,ae,te],Vt=()=>[Ko,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qi],breakpoint:[qi],color:[aQ],container:[qi],"drop-shadow":[qi],ease:["in","out","in-out"],font:[l4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qi],shadow:[qi],spacing:["px",ve],text:[qi],"text-shadow":[qi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ko,te,ae,x]}],container:["container"],"container-type":[{"@container":["","normal","size",ae,te]}],"container-named":[u4],columns:[{columns:[ve,"auto",te,ae,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:v()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:w()}],"overscroll-x":[{"overscroll-x":w()}],"overscroll-y":[{"overscroll-y":w()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[si,"auto",ae,te]}],basis:[{basis:[Ko,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ve,Ko,"auto","initial","none",te]}],grow:[{grow:["",ve,ae,te]}],shrink:[{shrink:["",ve,ae,te]}],order:[{order:[si,"first","last","none",ae,te]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[s,"screen",...q()]}],"min-w":[{"min-w":[s,"screen","none",...q()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh","none",...q()]}],"font-size":[{text:["base",a,Ld,ul]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O4,f4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nb,te]}],"font-family":[{font:[p4,d4,e]}],"font-features":[{"font-features":[te]}],"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:[n,ae,te]}],"line-clamp":[{"line-clamp":[ve,"none",ae,FA]}],leading:[{leading:["none",i,...k()]}],"list-image":[{"list-image":["none",ae,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[ve,"from-font","auto",ae,ul]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[ve,"auto",ae,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[si,ae,te]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,te]}],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",ae,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Pe()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},si,ae,te],radial:["",ae,te],conic:["",si,ae,te]},g4,h4]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-bs":[{"border-bs":j()}],"border-w-be":[{"border-be":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ve,ae,te]}],"outline-w":[{outline:["",ve,Ld,ul]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","inner","none",c,Wm,Ym]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",f,Wm,Ym]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[ve,ul]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",d,Wm,Ym]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[ve,ae,te]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"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":[ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ae,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":[ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Pe()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,te]}],filter:[{filter:["","none",ae,te]}],blur:[{blur:qe()}],brightness:[{brightness:[ve,ae,te]}],contrast:[{contrast:[ve,ae,te]}],"drop-shadow":[{"drop-shadow":["","none",h,Wm,Ym]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",ve,ae,te]}],"hue-rotate":[{"hue-rotate":[ve,ae,te]}],invert:[{invert:["",ve,ae,te]}],saturate:[{saturate:[ve,ae,te]}],sepia:[{sepia:["",ve,ae,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,te]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[ve,ae,te]}],"backdrop-contrast":[{"backdrop-contrast":[ve,ae,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ve,ae,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ve,ae,te]}],"backdrop-invert":[{"backdrop-invert":["",ve,ae,te]}],"backdrop-opacity":[{"backdrop-opacity":[ve,ae,te]}],"backdrop-saturate":[{"backdrop-saturate":[ve,ae,te]}],"backdrop-sepia":[{"backdrop-sepia":["",ve,ae,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ve,"initial",ae,te]}],ease:[{ease:["linear","initial",g,ae,te]}],delay:[{delay:[ve,ae,te]}],animate:[{animate:["none",O,ae,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ae,te]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ze()}],"skew-x":[{"skew-x":Ze()}],"skew-y":[{"skew-y":Ze()}],transform:[{transform:[ae,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Vt()}],"translate-x":[{"translate-x":Vt()}],"translate-y":[{"translate-y":Vt()}],"translate-z":[{"translate-z":Vt()}],"translate-none":["translate-none"],zoom:[{zoom:[si,ae,te]}],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",ae,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":z()}],"scrollbar-track-color":[{"scrollbar-track":z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",ae,te]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[ve,Ld,ul,FA]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var cQ=WZ(y4);function pe(...t){return cQ(Gm(t))}var li="sticky -bottom-[18px] -mx-5 -mb-[18px] mt-[18px] flex items-center gap-2 border-t border-[#f0f0f0] bg-background px-[18px] py-[13px]";var A4=L(F(),1);var OQ=L(F(),1),xQ=L(Es(),1);var yc={};cu(yc,{Root:()=>S4,Slot:()=>S4,Slottable:()=>w4,createSlot:()=>Ia,createSlottable:()=>jb});var ua=L(F(),1);var fQ=L(F(),1),b4=Object.defineProperty,Vb=(t,e)=>b4(t,"name",{value:e,configurable:!0});function Zb(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}Vb(Zb,"setRef");function es(...t){return e=>{let a=!1,r=t.map(n=>{let i=Zb(n,e);return!a&&typeof i=="function"&&(a=!0),i});if(a)return()=>{for(let n=0;n<r.length;n++){let i=r[n];typeof i=="function"?i():Zb(t[n],null)}}}}Vb(es,"composeRefs");function Qe(...t){return fQ.useCallback(es(...t),t)}Vb(Qe,"useComposedRefs");var v4=Object.defineProperty,pn=(t,e)=>v4(t,"name",{value:e,configurable:!0});function Ia(t){let e=ua.forwardRef((a,r)=>{let{children:n,...i}=a,o=null,s=!1,l=[];Ub(n)&&typeof Km=="function"&&(n=Km(n._payload)),ua.Children.forEach(n,d=>{if(mQ(d)){s=!0;let h=d,p="child"in h.props?h.props.child:h.props.children;Ub(p)&&typeof Km=="function"&&(p=Km(p._payload)),o=C4(h,p),l.push(o?.props?.children)}else l.push(d)}),o?o=ua.cloneElement(o,void 0,l):!s&&ua.Children.count(n)===1&&ua.isValidElement(n)&&(o=n);let u=o?pQ(o):void 0,c=Qe(r,u);if(!o){if(n||n===0)throw new Error(s?T4(t):L4(t));return n}let f=hQ(i,o.props??{});return o.type!==ua.Fragment&&(f.ref=r?c:u),ua.cloneElement(o,f)});return e.displayName=`${t}.Slot`,e}pn(Ia,"createSlot");var S4=Ia("Slot"),dQ=Symbol.for("radix.slottable");function jb(t){let e=pn(a=>"child"in a?a.children(a.child):a.children,"Slottable");return e.displayName=`${t}.Slottable`,e.__radixId=dQ,e}pn(jb,"createSlottable");var w4=jb("Slottable"),C4=pn((t,e)=>{if("child"in t.props){let a=t.props.child;return ua.isValidElement(a)?ua.cloneElement(a,void 0,t.props.children(a.props.children)):null}return ua.isValidElement(e)?e:null},"getSlottableElementFromSlottable");function hQ(t,e){let a={...e};for(let r in e){let n=t[r],i=e[r];/^on[A-Z]/.test(r)?n&&i?a[r]=(...s)=>{let l=i(...s);return n(...s),l}:n&&(a[r]=n):r==="style"?a[r]={...n,...i}:r==="className"&&(a[r]=[n,i].filter(Boolean).join(" "))}return{...t,...a}}pn(hQ,"mergeProps");function pQ(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning;return a?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}pn(pQ,"getElementRef");function mQ(t){return ua.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===dQ}pn(mQ,"isSlottable");var k4=Symbol.for("react.lazy");function Ub(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===k4&&"_payload"in t&&gQ(t._payload)}pn(Ub,"isLazyComponent");function gQ(t){return typeof t=="object"&&t!==null&&"then"in t}pn(gQ,"isPromiseLike");var L4=pn(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),T4=pn(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Km=ua[" use ".trim().toString()];var yQ=L(G(),1),P4=Object.defineProperty,R4=(t,e)=>P4(t,"name",{value:e,configurable:!0}),I4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=I4.reduce((t,e)=>{let a=Ia(`Primitive.${e}`),r=OQ.forwardRef((n,i)=>{let{asChild:o,...s}=n,l=o?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,yQ.jsx)(l,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Fb(t,e){t&&xQ.flushSync(()=>t.dispatchEvent(e))}R4(Fb,"dispatchDiscreteCustomEvent");var Q4=L(G(),1);var bQ=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"});var qr=L(F(),1),Hb=L(G(),1),M4=Object.defineProperty,Xr=(t,e)=>M4(t,"name",{value:e,configurable:!0});function E4(t,e){let a=qr.createContext(e);a.displayName=t+"Context";let r=Xr(i=>{let{children:o,...s}=i,l=qr.useMemo(()=>s,Object.values(s));return(0,Hb.jsx)(a.Provider,{value:l,children:o})},"Provider");r.displayName=t+"Provider";function n(i,o={}){let{optional:s=!1}=o,l=qr.useContext(a);if(l)return l;if(e!==void 0)return e;if(!s)throw new Error(`\`${i}\` must be used within \`${t}\``)}return Xr(n,"useContext"),[r,n]}Xr(E4,"createContext");function ca(t,e=[]){let a=[];function r(i,o){let s=qr.createContext(o);s.displayName=i+"Context";let l=a.length;a=[...a,o];let u=Xr(f=>{let{scope:d,children:h,...p}=f,m=d?.[t]?.[l]||s,x=qr.useMemo(()=>p,Object.values(p));return(0,Hb.jsx)(m.Provider,{value:x,children:h})},"Provider");u.displayName=i+"Provider";function c(f,d,h={}){let{optional:p=!1}=h,m=d?.[t]?.[l]||s,x=qr.useContext(m);if(x)return x;if(o!==void 0)return o;if(!p)throw new Error(`\`${f}\` must be used within \`${i}\``)}return Xr(c,"useContext"),[u,c]}Xr(r,"createContext");let n=Xr(()=>{let i=a.map(o=>qr.createContext(o));return Xr(function(s){let l=s?.[t]||i;return qr.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])},"useScope")},"createScope");return n.scopeName=t,[r,vQ(n,...e)]}Xr(ca,"createContextScope");function vQ(...t){let e=t[0];if(t.length===1)return e;let a=Xr(()=>{let r=t.map(n=>({useScope:n(),scopeName:n.scopeName}));return Xr(function(i){let o=r.reduce((s,{useScope:l,scopeName:u})=>{let f=l(i)[`__scope${u}`];return{...s,...f}},{});return qr.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return a.scopeName=e.scopeName,a}Xr(vQ,"composeContextScopes");var mn=L(F(),1);var Jm=L(G(),1),Ja=L(F(),1);var fl=L(G(),1),D4=Object.defineProperty,Yt=(t,e)=>D4(t,"name",{value:e,configurable:!0});function Td(t){let e=t+"CollectionProvider",[a,r]=ca(e),[n,i]=a(e,{collectionRef:{current:null},itemMap:new Map}),o=Yt(m=>{let{scope:x,children:g}=m,O=mn.useRef(null),y=mn.useRef(new Map).current;return(0,Jm.jsx)(n,{scope:x,itemMap:y,collectionRef:O,children:g})},"CollectionProvider");o.displayName=e;let s=t+"CollectionSlot",l=Ia(s),u=mn.forwardRef((m,x)=>{let{scope:g,children:O}=m,y=i(s,g),b=Qe(x,y.collectionRef);return(0,Jm.jsx)(l,{ref:b,children:O})});u.displayName=s;let c=t+"CollectionItemSlot",f="data-radix-collection-item",d=Ia(c),h=mn.forwardRef((m,x)=>{let{scope:g,children:O,...y}=m,b=mn.useRef(null),v=Qe(x,b),S=i(c,g);return mn.useEffect(()=>(S.itemMap.set(b,{ref:b,...y}),()=>{S.itemMap.delete(b)})),(0,Jm.jsx)(d,{[f]:"",ref:v,children:O})});h.displayName=c;function p(m){let x=i(t+"CollectionConsumer",m);return mn.useCallback(()=>{let O=x.collectionRef.current;if(!O)return[];let y=Array.from(O.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((S,w)=>y.indexOf(S.ref.current)-y.indexOf(w.ref.current))},[x.collectionRef,x.itemMap])}return Yt(p,"useCollection"),[{Provider:o,Slot:u,ItemSlot:h},p,r]}Yt(Td,"createCollection");var SQ=new WeakMap,Gb=class ts extends Map{static{Yt(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],SQ.set(this,!0)}set(e,a){return SQ.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,a),this}insert(e,a,r){let n=this.has(a),i=this.#e.length,o=Wb(e),s=o>=0?o:i+o,l=s<0||s>=i?-1:s;if(l===this.size||n&&l===this.size-1||l===-1)return this.set(a,r),this;let u=this.size+(n?0:1);o<0&&s++;let c=[...this.#e],f,d=!1;for(let h=s;h<u;h++)if(s===h){let p=c[h];c[h]===a&&(p=c[h+1]),n&&this.delete(a),f=this.get(p),this.set(a,r)}else{!d&&c[h-1]===a&&(d=!0);let p=c[d?h:h-1],m=f;f=this.get(p),this.delete(p),this.set(p,m)}return this}with(e,a,r){let n=new ts(this);return n.insert(e,a,r),n}before(e){let a=this.#e.indexOf(e)-1;if(!(a<0))return this.entryAt(a)}setBefore(e,a,r){let n=this.#e.indexOf(e);return n===-1?this:this.insert(n,a,r)}after(e){let a=this.#e.indexOf(e);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(e,a,r){let n=this.#e.indexOf(e);return n===-1?this:this.insert(n+1,a,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let a=super.delete(e);return a&&this.#e.splice(this.#e.indexOf(e),1),a}deleteAt(e){let a=this.keyAt(e);return a!==void 0?this.delete(a):!1}at(e){let a=eg(this.#e,e);if(a!==void 0)return this.get(a)}entryAt(e){let a=eg(this.#e,e);if(a!==void 0)return[a,this.get(a)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return eg(this.#e,e)}from(e,a){let r=this.indexOf(e);if(r===-1)return;let n=r+a;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,a){let r=this.indexOf(e);if(r===-1)return;let n=r+a;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,a){let r=0;for(let n of this){if(Reflect.apply(e,a,[n,r,this]))return n;r++}}findIndex(e,a){let r=0;for(let n of this){if(Reflect.apply(e,a,[n,r,this]))return r;r++}return-1}filter(e,a){let r=[],n=0;for(let i of this)Reflect.apply(e,a,[i,n,this])&&r.push(i),n++;return new ts(r)}map(e,a){let r=[],n=0;for(let i of this)r.push([i[0],Reflect.apply(e,a,[i,n,this])]),n++;return new ts(r)}reduce(...e){let[a,r]=e,n=0,i=r??this.at(0);for(let o of this)n===0&&e.length===1?i=o:i=Reflect.apply(a,this,[i,o,n,this]),n++;return i}reduceRight(...e){let[a,r]=e,n=r??this.at(-1);for(let i=this.size-1;i>=0;i--){let o=this.at(i);i===this.size-1&&e.length===1?n=o:n=Reflect.apply(a,this,[n,o,i,this])}return n}toSorted(e){let a=[...this.entries()].sort(e);return new ts(a)}toReversed(){let e=new ts;for(let a=this.size-1;a>=0;a--){let r=this.keyAt(a),n=this.get(r);e.set(r,n)}return e}toSpliced(...e){let a=[...this.entries()];return a.splice(...e),new ts(a)}slice(e,a){let r=new ts,n=this.size-1;if(e===void 0)return r;e<0&&(e=e+this.size),a!==void 0&&a>0&&(n=a-1);for(let i=e;i<=n;i++){let o=this.keyAt(i),s=this.get(o);r.set(o,s)}return r}every(e,a){let r=0;for(let n of this){if(!Reflect.apply(e,a,[n,r,this]))return!1;r++}return!0}some(e,a){let r=0;for(let n of this){if(Reflect.apply(e,a,[n,r,this]))return!0;r++}return!1}};function eg(t,e){if("at"in Array.prototype)return Array.prototype.at.call(t,e);let a=wQ(t,e);return a===-1?void 0:t[a]}Yt(eg,"at");function wQ(t,e){let a=t.length,r=Wb(e),n=r>=0?r:a+r;return n<0||n>=a?-1:n}Yt(wQ,"toSafeIndex");function Wb(t){return t!==t||t===0?0:Math.trunc(t)}Yt(Wb,"toSafeInteger");function $4(t){let e=t+"CollectionProvider",[a,r]=ca(e),[n,i]=a(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Gb,setItemMap:Yt(()=>{},"setItemMap")}),o=Yt(({state:y,...b})=>y?(0,fl.jsx)(l,{...b,state:y}):(0,fl.jsx)(s,{...b}),"CollectionProvider");o.displayName=e;let s=Yt(y=>{let b=x();return(0,fl.jsx)(l,{...y,state:b})},"CollectionInit");s.displayName=e+"Init";let l=Yt(y=>{let{scope:b,children:v,state:S}=y,w=Ja.useRef(null),[k,T]=Ja.useState(null),Q=Qe(w,T),[D,A]=S;return Ja.useEffect(()=>{if(!k)return;let R=LQ(()=>{});return R.observe(k,{childList:!0,subtree:!0}),()=>{R.disconnect()}},[k]),(0,fl.jsx)(n,{scope:b,itemMap:D,setItemMap:A,collectionRef:Q,collectionRefObject:w,collectionElement:k,children:v})},"CollectionProviderImpl");l.displayName=e+"Impl";let u=t+"CollectionSlot",c=Ia(u),f=Ja.forwardRef((y,b)=>{let{scope:v,children:S}=y,w=i(u,v),k=Qe(b,w.collectionRef);return(0,fl.jsx)(c,{ref:k,children:S})});f.displayName=u;let d=t+"CollectionItemSlot",h="data-radix-collection-item",p=Ia(d),m=Ja.forwardRef((y,b)=>{let{scope:v,children:S,...w}=y,k=Ja.useRef(null),[T,Q]=Ja.useState(null),D=Qe(b,k,Q),A=i(d,v),{setItemMap:R}=A,B=Ja.useRef(w);CQ(B.current,w)||(B.current=w);let W=B.current;return Ja.useEffect(()=>{let $=W;return R(q=>T?q.has(T)?q.set(T,{...$,element:T}).toSorted(Yb):(q.set(T,{...$,element:T}),q.toSorted(Yb)):q),()=>{R(q=>!T||!q.has(T)?q:(q.delete(T),new Gb(q)))}},[T,W,R]),(0,fl.jsx)(p,{[h]:"",ref:D,children:S})});m.displayName=d;function x(){return Ja.useState(new Gb)}Yt(x,"useInitCollection");function g(y){let{itemMap:b}=i(t+"CollectionConsumer",y);return b}return Yt(g,"useCollection"),[{Provider:o,Slot:f,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:x}]}Yt($4,"createCollection");function CQ(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t==null||e==null)return!1;let a=Object.keys(t),r=Object.keys(e);if(a.length!==r.length)return!1;for(let n of a)if(!Object.prototype.hasOwnProperty.call(e,n)||t[n]!==e[n])return!1;return!0}Yt(CQ,"shallowEqual");function kQ(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}Yt(kQ,"isElementPreceding");function Yb(t,e){return!t[1].element||!e[1].element?0:kQ(t[1].element,e[1].element)?-1:1}Yt(Yb,"sortByDocumentPosition");function LQ(t){return new MutationObserver(a=>{for(let r of a)if(r.type==="childList"){t();return}})}Yt(LQ,"getChildListObserver");var B4=Object.defineProperty,bc=(t,e)=>B4(t,"name",{value:e,configurable:!0}),TQ=!!(typeof window<"u"&&window.document&&window.document.createElement);function xe(t,e,{checkForDefaultPrevented:a=!0}={}){return bc(function(n){if(t?.(n),a===!1||!n||!n.defaultPrevented)return e?.(n)},"handleEvent")}bc(xe,"composeEventHandlers");function _4(t){if(!TQ)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}bc(_4,"getOwnerWindow");function Kb(t){if(!TQ)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}bc(Kb,"getOwnerDocument");function PQ(t,e=!1){let{activeElement:a}=Kb(t);if(!a?.nodeName)return null;if(RQ(a)&&a.contentDocument)return PQ(a.contentDocument.body,e);if(e){let r=a.getAttribute("aria-activedescendant");if(r){let n=Kb(a).getElementById(r);if(n)return n}}return a}bc(PQ,"getActiveElement");function RQ(t){return t.tagName==="IFRAME"}bc(RQ,"isFrame");var Zr=L(F(),1);var tg=!1;var IQ=L(F(),1),Xe=globalThis?.document?IQ.useLayoutEffect:()=>{};var gn=L(F(),1);var vc=L(F(),1),z4=Object.defineProperty,N4=(t,e)=>z4(t,"name",{value:e,configurable:!0}),AQ=vc[" useEffectEvent ".trim().toString()],QQ=vc[" useInsertionEffect ".trim().toString()];function Jb(t){if(typeof AQ=="function")return AQ(t);let e=vc.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof QQ=="function"?QQ(()=>{e.current=t}):Xe(()=>{e.current=t}),vc.useMemo(()=>((...a)=>e.current?.(...a)),[])}N4(Jb,"useEffectEvent");var X4=Object.defineProperty,Pd=(t,e)=>X4(t,"name",{value:e,configurable:!0}),q4=Zr[" useInsertionEffect ".trim().toString()]||Xe;function Aa({prop:t,defaultProp:e,onChange:a=Pd(()=>{},"onChange"),caller:r}){let[n,i,o]=EQ({defaultProp:e,onChange:a}),s=t!==void 0,l=s?t:n;if(tg){let c=Zr.useRef(t!==void 0);Zr.useEffect(()=>{let f=c.current;f!==s&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${s?"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.`),c.current=s},[s,r])}let u=Zr.useCallback(c=>{if(s){let f=DQ(c)?c(t):c;f!==t&&o.current?.(f)}else i(c)},[s,t,i,o]);return[l,u]}Pd(Aa,"useControllableState");function EQ({defaultProp:t,onChange:e}){let[a,r]=Zr.useState(t),n=Zr.useRef(a),i=Zr.useRef(e);return q4(()=>{i.current=e},[e]),Zr.useEffect(()=>{n.current!==a&&(i.current?.(a),n.current=a)},[a,n]),[a,r,i]}Pd(EQ,"useUncontrolledState");function DQ(t){return typeof t=="function"}Pd(DQ,"isFunction");var MQ=Symbol("RADIX:SYNC_STATE");function Z4(t,e,a,r){let{prop:n,defaultProp:i,onChange:o,caller:s}=e,l=n!==void 0,u=Jb(o);if(tg){let x=gn.useRef(n!==void 0);gn.useEffect(()=>{let g=x.current;g!==l&&console.warn(`${s} is changing from ${g?"controlled":"uncontrolled"} to ${l?"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.`),x.current=l},[l,s])}let c=[{...a,state:i}];r&&c.push(r);let[f,d]=gn.useReducer((x,g)=>{if(g.type===MQ)return{...x,state:g.state};let O=t(x,g);return l&&!Object.is(O.state,x.state)&&u(O.state),O},...c),h=f.state,p=gn.useRef(h);gn.useEffect(()=>{p.current!==h&&(p.current=h,l||u(h))},[h,p,l]);let m=gn.useMemo(()=>n!==void 0?{...f,state:n}:f,[f,n]);return gn.useEffect(()=>{l&&!Object.is(n,f.state)&&d({type:MQ,state:n})},[n,f.state,l]),[m,d]}Pd(Z4,"useControllableStateReducer");var fa=L(F(),1);var $Q=L(F(),1),V4=Object.defineProperty,Zi=(t,e)=>V4(t,"name",{value:e,configurable:!0});function BQ(t,e){return $Q.useReducer((a,r)=>e[a][r]??a,t)}Zi(BQ,"useStateMachine");var as=Zi(t=>{let{present:e,children:a}=t,r=_Q(e),n=typeof a=="function"?a({present:r.isPresent}):fa.Children.only(a),i=zQ(r.ref,NQ(n));return typeof a=="function"||r.isPresent?fa.cloneElement(n,{ref:i}):null},"Presence");function _Q(t){let[e,a]=fa.useState(),r=fa.useRef(null),n=fa.useRef(t),i=fa.useRef("none"),o=fa.useRef(void 0),s=t?"mounted":"unmounted",[l,u]=BQ(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return fa.useEffect(()=>{l==="mounted"?(i.current=o.current??Sc(r.current),o.current=void 0):i.current="none"},[l]),Xe(()=>{let c=r.current,f=n.current;if(f!==t){let h=i.current,p=Sc(c);t?(o.current=p,u("MOUNT")):p==="none"||c?.display==="none"?u("UNMOUNT"):u(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),n.current=t}},[t,u]),Xe(()=>{if(e){let c,f=e.ownerDocument.defaultView??window,d=Zi(p=>{let x=Sc(r.current).includes(CSS.escape(p.animationName));if(p.target===e&&x&&(u("ANIMATION_END"),!n.current)){let g=e.style.animationFillMode;e.style.animationFillMode="forwards",c=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},"handleAnimationEnd"),h=Zi(p=>{p.target===e&&(i.current=Sc(r.current))},"handleAnimationStart");return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{f.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:fa.useCallback(c=>{if(c){let f=getComputedStyle(c);r.current=f,o.current=Sc(f)}else r.current=null;a(c)},[])}}Zi(_Q,"usePresence");function ev(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}Zi(ev,"setRef");function zQ(...t){let e=fa.useRef(t);return e.current=t,fa.useCallback(a=>{let r=e.current,n=!1,i=r.map(o=>{let s=ev(o,a);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<i.length;o++){let s=i[o];typeof s=="function"?s():ev(r[o],null)}}},[])}Zi(zQ,"useStableComposedRefs");function Sc(t){return t?.animationName||"none"}Zi(Sc,"getAnimationName");function NQ(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning;return a?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}Zi(NQ,"getElementRef");var tv=L(F(),1);var U4=Object.defineProperty,j4=(t,e)=>U4(t,"name",{value:e,configurable:!0}),F4=tv[" useId ".trim().toString()]||(()=>{}),H4=0;function Dt(t){let[e,a]=tv.useState(F4());return Xe(()=>{t||a(r=>r??String(H4++))},[t]),t||(e?`radix-${e}`:"")}j4(Dt,"useId");var ag=L(F(),1),W4=L(G(),1),G4=Object.defineProperty,Y4=(t,e)=>G4(t,"name",{value:e,configurable:!0}),K4=ag.createContext(void 0);function Vi(t){let e=ag.useContext(K4);return t||e||"ltr"}Y4(Vi,"useDirection");var xn={};cu(xn,{Close:()=>GV,Content:()=>Qv,Description:()=>FV,Dialog:()=>Rv,DialogClose:()=>GV,DialogContent:()=>Qv,DialogDescription:()=>FV,DialogOverlay:()=>Av,DialogPortal:()=>Iv,DialogTitle:()=>UV,DialogTrigger:()=>_V,Overlay:()=>Av,Portal:()=>Iv,Root:()=>Rv,Title:()=>UV,Trigger:()=>_V,WarningProvider:()=>YV,createDialogScope:()=>DV});var ct=L(F(),1);var We=L(F(),1);var wc=L(F(),1),J4=Object.defineProperty,eV=(t,e)=>J4(t,"name",{value:e,configurable:!0});function ya(t){let e=wc.useRef(t);return wc.useEffect(()=>{e.current=t}),wc.useMemo(()=>((...a)=>e.current?.(...a)),[])}eV(ya,"useCallbackRef");var qQ=L(G(),1),tV=Object.defineProperty,Wt=(t,e)=>tV(t,"name",{value:e,configurable:!0}),av="dismissableLayer.update",aV="dismissableLayer.pointerDownOutside",rV="dismissableLayer.focusOutside",XQ,ZQ=We.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),rg=We.forwardRef(Wt(function(e,a){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,f=We.useContext(ZQ),[d,h]=We.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=We.useState({}),x=Qe(a,h),g=Array.from(f.layers),[O]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=O?g.indexOf(O):-1,b=d?g.indexOf(d):-1,v=f.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,w=We.useRef(!1),k=VQ(A=>{o?.(A),l?.(A),A.defaultPrevented||u?.()},{ownerDocument:p,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:We.useCallback(A=>{if(!(A instanceof Node))return!1;let R=[...f.branches].some(B=>B.contains(A));return S&&!R},[f.branches,S])}),T=UQ(A=>{if(n&&w.current)return;let R=A.target;[...f.branches].some(W=>W.contains(R))||(s?.(A),l?.(A),A.defaultPrevented||u?.())},p),Q=d?b===g.length-1:!1,D=ya(A=>{A.key==="Escape"&&(i?.(A),!A.defaultPrevented&&u&&(A.preventDefault(),u()))});return We.useEffect(()=>{if(Q)return p.addEventListener("keydown",D,{capture:!0}),()=>p.removeEventListener("keydown",D,{capture:!0})},[p,Q,D]),We.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(XQ=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),rv(),()=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(d),f.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=XQ))}},[d,p,r,f]),We.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),rv())},[d,f]),We.useEffect(()=>{let A=Wt(()=>m({}),"handleUpdate");return document.addEventListener(av,A),()=>document.removeEventListener(av,A)},[]),(0,qQ.jsx)(ue.div,{...c,ref:x,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,T.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function nv(){let t=We.useContext(ZQ),[e,a]=We.useState(null);return We.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),a}Wt(nv,"useDismissableLayerSurface");var nV=Wt(()=>!0,"IS_TRUE");function VQ(t,e){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:n,dismissableSurfaces:i,shouldHandlePointerDownOutside:o=nV}=e,s=ya(t),l=We.useRef(!1),u=We.useRef(!1),c=We.useRef(new Map),f=We.useRef(()=>{});return We.useEffect(()=>{function d(){u.current=!1,n.current=!1,c.current.clear()}Wt(d,"resetOutsideInteraction");function h(){return Array.from(c.current.values()).some(Boolean)}Wt(h,"isOutsideInteractionIntercepted");function p(y){if(!u.current)return;let b=y.target;b instanceof Node&&[...i].some(S=>S.contains(b))||c.current.set(y.type,!0),y.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}Wt(p,"handleInteractionCapture");function m(y){u.current&&c.current.set(y.type,!1)}Wt(m,"handleInteractionBubble");let x=Wt(y=>{if(y.target&&!l.current){let v=function(){a.removeEventListener("click",f.current);let w=h();d(),w||iv(aV,s,S,{discrete:!0})};var b=v;if(Wt(v,"handleAndDispatchPointerDownOutsideEvent"),!o(y.target)){a.removeEventListener("click",f.current),d(),l.current=!1;return}let S={originalEvent:y};u.current=!0,n.current=r&&y.button===0,c.current.clear(),!r||y.button!==0?v():(a.removeEventListener("click",f.current),f.current=v,a.addEventListener("click",f.current,{once:!0}))}else a.removeEventListener("click",f.current),d();l.current=!1},"handlePointerDown"),g=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let y of g)a.addEventListener(y,p,!0),a.addEventListener(y,m);let O=window.setTimeout(()=>{a.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(O),a.removeEventListener("pointerdown",x),a.removeEventListener("click",f.current);for(let y of g)a.removeEventListener(y,p,!0),a.removeEventListener(y,m)}},[a,s,r,n,i,o]),{onPointerDownCapture:Wt(()=>l.current=!0,"onPointerDownCapture")}}Wt(VQ,"usePointerDownOutside");function UQ(t,e=globalThis?.document){let a=ya(t),r=We.useRef(!1);return We.useEffect(()=>{let n=Wt(i=>{i.target&&!r.current&&iv(rV,a,{originalEvent:i},{discrete:!1})},"handleFocus");return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,a]),{onFocusCapture:Wt(()=>r.current=!0,"onFocusCapture"),onBlurCapture:Wt(()=>r.current=!1,"onBlurCapture")}}Wt(UQ,"useFocusOutside");function rv(){let t=new CustomEvent(av);document.dispatchEvent(t)}Wt(rv,"dispatchUpdate");function iv(t,e,a,{discrete:r}){let n=a.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:a});e&&n.addEventListener(t,e,{once:!0}),r?Fb(n,i):n.dispatchEvent(i)}Wt(iv,"handleAndDispatchCustomEvent");var Vr=L(F(),1);var HQ=L(G(),1),iV=Object.defineProperty,Qa=(t,e)=>iV(t,"name",{value:e,configurable:!0}),ov="focusScope.autoFocusOnMount",sv="focusScope.autoFocusOnUnmount",jQ={bubbles:!1,cancelable:!0},ng=Vr.forwardRef(Qa(function(e,a){let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,u]=Vr.useState(null),c=ya(i),f=ya(o),d=Vr.useRef(null),h=Qe(a,u),p=Vr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Vr.useEffect(()=>{if(n){let y=function(w){if(p.paused||!l)return;let k=w.target;l.contains(k)?d.current=k:Ui(d.current,{select:!0})},b=function(w){if(p.paused||!l)return;let k=w.relatedTarget;k!==null&&(l.contains(k)||Ui(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(let T of w)T.removedNodes.length>0&&Ui(l)};var x=y,g=b,O=v;Qa(y,"handleFocusIn"),Qa(b,"handleFocusOut"),Qa(v,"handleMutations"),document.addEventListener("focusin",y),document.addEventListener("focusout",b);let S=new MutationObserver(v);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),S.disconnect()}}},[n,l,p.paused]),Vr.useEffect(()=>{if(l){FQ.add(p);let x=document.activeElement;if(!l.contains(x)){let O=new CustomEvent(ov,jQ);l.addEventListener(ov,c),l.dispatchEvent(O),O.defaultPrevented||(GQ(e2(cv(l)),{select:!0}),document.activeElement===x&&Ui(l))}return()=>{l.removeEventListener(ov,c),setTimeout(()=>{let O=new CustomEvent(sv,jQ);l.addEventListener(sv,f),l.dispatchEvent(O),O.defaultPrevented||Ui(x??document.body,{select:!0}),l.removeEventListener(sv,f),FQ.remove(p)},0)}}},[l,c,f,p]);let m=Vr.useCallback(x=>{if(!r&&!n||p.paused)return;let g=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,O=document.activeElement;if(g&&O){let y=x.currentTarget,[b,v]=YQ(y);b&&v?!x.shiftKey&&O===v?(x.preventDefault(),r&&Ui(b,{select:!0})):x.shiftKey&&O===b&&(x.preventDefault(),r&&Ui(v,{select:!0})):O===y&&x.preventDefault()}},[r,n,p.paused]);return(0,HQ.jsx)(ue.div,{tabIndex:-1,...s,ref:h,onKeyDown:m})},"FocusScope"));function GQ(t,{select:e=!1}={}){let a=document.activeElement;for(let r of t)if(Ui(r,{select:e}),document.activeElement!==a)return}Qa(GQ,"focusFirst");function YQ(t){let e=cv(t),a=lv(e,t),r=lv(e.reverse(),t);return[a,r]}Qa(YQ,"getTabbableEdges");function cv(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:Qa(r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)e.push(a.currentNode);return e}Qa(cv,"getTabbableCandidates");function lv(t,e){let a=typeof e.checkVisibility=="function"&&e.checkVisibility({checkVisibilityCSS:!0});for(let r of t)if(!(a?!r.checkVisibility({checkVisibilityCSS:!0}):WQ(r,{upTo:e})))return r}Qa(lv,"findVisible");function WQ(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}Qa(WQ,"isHidden");function KQ(t){return t instanceof HTMLInputElement&&"select"in t}Qa(KQ,"isSelectableInput");function Ui(t,{select:e=!1}={}){if(t&&t.focus){let a=document.activeElement;t.focus({preventScroll:!0}),t!==a&&KQ(t)&&e&&t.select()}}Qa(Ui,"focus");var FQ=JQ();function JQ(){let t=[];return{add(e){let a=t[0];e!==a&&a?.pause(),t=uv(t,e),t.unshift(e)},remove(e){t=uv(t,e),t[0]?.resume()}}}Qa(JQ,"createFocusScopesStack");function uv(t,e){let a=[...t],r=a.indexOf(e);return r!==-1&&a.splice(r,1),a}Qa(uv,"arrayRemove");function e2(t){return t.filter(e=>e.tagName!=="A")}Qa(e2,"removeLinks");var ig=L(F(),1),t2=L(Es(),1);var a2=L(G(),1),oV=Object.defineProperty,sV=(t,e)=>oV(t,"name",{value:e,configurable:!0}),og=ig.forwardRef(sV(function(e,a){let{container:r,...n}=e,[i,o]=ig.useState(!1);Xe(()=>o(!0),[]);let s=r||i&&globalThis?.document?.body;return s?t2.createPortal((0,a2.jsx)(ue.div,{...n,ref:a}),s):null},"Portal"));var r2=L(F(),1),lV=Object.defineProperty,dv=(t,e)=>lV(t,"name",{value:e,configurable:!0}),sg=0,Cc=null;function uV(t){return kc(),t.children}dv(uV,"FocusGuards");function kc(){r2.useEffect(()=>{Cc||(Cc={start:fv(),end:fv()});let{start:t,end:e}=Cc;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),sg++,()=>{sg===1&&(Cc?.start.remove(),Cc?.end.remove(),Cc=null),sg=Math.max(0,sg-1)}},[])}dv(kc,"useFocusGuards");function fv(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}dv(fv,"createFocusGuard");var er=function(){return er=Object.assign||function(e){for(var a,r=1,n=arguments.length;r<n;r++){a=arguments[r];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},er.apply(this,arguments)};function lg(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(a[r[n]]=t[r[n]]);return a}function n2(t,e,a){if(a||arguments.length===2)for(var r=0,n=e.length,i;r<n;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var hg=L(F());var ba=L(F());var dl="right-scroll-bar-position",hl="width-before-scroll-bar",hv="with-scroll-bars-hidden",pv="--removed-body-scroll-bar-size";function ug(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}var i2=L(F());function o2(t,e){var a=(0,i2.useState)(function(){return{value:t,callback:e,facade:{get current(){return a.value},set current(r){var n=a.value;n!==r&&(a.value=r,a.callback(r,n))}}}})[0];return a.callback=e,a.facade}var cg=L(F());var cV=typeof window<"u"?cg.useLayoutEffect:cg.useEffect,s2=new WeakMap;function mv(t,e){var a=o2(e||null,function(r){return t.forEach(function(n){return ug(n,r)})});return cV(function(){var r=s2.get(a);if(r){var n=new Set(r),i=new Set(t),o=a.current;n.forEach(function(s){i.has(s)||ug(s,null)}),i.forEach(function(s){n.has(s)||ug(s,o)})}s2.set(a,t)},[t]),a}function fV(t){return t}function dV(t,e){e===void 0&&(e=fV);var a=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:t},useMedium:function(i){var o=e(i,r);return a.push(o),function(){a=a.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(r=!0;a.length;){var o=a;a=[],o.forEach(i)}a={push:function(s){return i(s)},filter:function(){return a}}},assignMedium:function(i){r=!0;var o=[];if(a.length){var s=a;a=[],s.forEach(i),o=a}var l=function(){var c=o;o=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),a={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),a}}}};return n}function gv(t){t===void 0&&(t={});var e=dV(null);return e.options=er({async:!0,ssr:!1},t),e}var l2=L(F()),u2=function(t){var e=t.sideCar,a=lg(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return l2.createElement(r,er({},a))};u2.isSideCarExport=!0;function Ov(t,e){return t.useMedium(e),u2}var fg=gv();var xv=function(){},Rd=ba.forwardRef(function(t,e){var a=ba.useRef(null),r=ba.useState({onScrollCapture:xv,onWheelCapture:xv,onTouchMoveCapture:xv}),n=r[0],i=r[1],o=t.forwardProps,s=t.children,l=t.className,u=t.removeScrollBar,c=t.enabled,f=t.shards,d=t.sideCar,h=t.noRelative,p=t.noIsolation,m=t.inert,x=t.allowPinchZoom,g=t.as,O=g===void 0?"div":g,y=t.gapMode,b=lg(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),v=d,S=mv([a,e]),w=er(er({},b),n);return ba.createElement(ba.Fragment,null,c&&ba.createElement(v,{sideCar:fg,removeScrollBar:u,shards:f,noRelative:h,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!x,lockRef:a,gapMode:y}),o?ba.cloneElement(ba.Children.only(s),er(er({},w),{ref:S})):ba.createElement(O,er({},w,{className:l,ref:S}),s))});Rd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rd.classNames={fullWidth:hl,zeroRight:dl};var dt=L(F());var Tc=L(F());var d2=L(F());var c2;var f2=function(){if(c2)return c2;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hV(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=f2();return e&&t.setAttribute("nonce",e),t}function pV(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function mV(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var yv=function(){var t=0,e=null;return{add:function(a){t==0&&(e=hV())&&(pV(e,a),mV(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var bv=function(){var t=yv();return function(e,a){d2.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&a])}};var Id=function(){var t=bv(),e=function(a){var r=a.styles,n=a.dynamic;return t(r,n),null};return e};var gV={left:0,top:0,right:0,gap:0},vv=function(t){return parseInt(t||"",10)||0},OV=function(t){var e=window.getComputedStyle(document.body),a=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],n=e[t==="padding"?"paddingRight":"marginRight"];return[vv(a),vv(r),vv(n)]},Sv=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return gV;var e=OV(t),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-a+e[2]-e[0])}};var xV=Id(),Lc="data-scroll-locked",yV=function(t,e,a,r){var n=t.left,i=t.top,o=t.right,s=t.gap;return a===void 0&&(a="margin"),`
|
|
10
|
+
.`.concat(hv,` {
|
|
11
|
+
overflow: hidden `).concat(r,`;
|
|
12
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(Lc,`] {
|
|
15
|
+
overflow: hidden `).concat(r,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([e&&"position: relative ".concat(r,";"),a==="margin"&&`
|
|
18
|
+
padding-left: `.concat(n,`px;
|
|
19
|
+
padding-top: `).concat(i,`px;
|
|
20
|
+
padding-right: `).concat(o,`px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
24
|
+
`),a==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(dl,` {
|
|
28
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(hl,` {
|
|
32
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(dl," .").concat(dl,` {
|
|
36
|
+
right: 0 `).concat(r,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(hl," .").concat(hl,` {
|
|
40
|
+
margin-right: 0 `).concat(r,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(Lc,`] {
|
|
44
|
+
`).concat(pv,": ").concat(s,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},h2=function(){var t=parseInt(document.body.getAttribute(Lc)||"0",10);return isFinite(t)?t:0},bV=function(){Tc.useEffect(function(){return document.body.setAttribute(Lc,(h2()+1).toString()),function(){var t=h2()-1;t<=0?document.body.removeAttribute(Lc):document.body.setAttribute(Lc,t.toString())}},[])},wv=function(t){var e=t.noRelative,a=t.noImportant,r=t.gapMode,n=r===void 0?"margin":r;bV();var i=Tc.useMemo(function(){return Sv(n)},[n]);return Tc.createElement(xV,{styles:yV(i,!e,n,a?"":"!important")})};var Cv=!1;if(typeof window<"u")try{Ad=Object.defineProperty({},"passive",{get:function(){return Cv=!0,!0}}),window.addEventListener("test",Ad,Ad),window.removeEventListener("test",Ad,Ad)}catch{Cv=!1}var Ad,pl=Cv?{passive:!1}:!1;var vV=function(t){return t.tagName==="TEXTAREA"},p2=function(t,e){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[e]!=="hidden"&&!(a.overflowY===a.overflowX&&!vV(t)&&a[e]==="visible")},SV=function(t){return p2(t,"overflowY")},wV=function(t){return p2(t,"overflowX")},kv=function(t,e){var a=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=m2(t,r);if(n){var i=g2(t,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},CV=function(t){var e=t.scrollTop,a=t.scrollHeight,r=t.clientHeight;return[e,a,r]},kV=function(t){var e=t.scrollLeft,a=t.scrollWidth,r=t.clientWidth;return[e,a,r]},m2=function(t,e){return t==="v"?SV(e):wV(e)},g2=function(t,e){return t==="v"?CV(e):kV(e)},LV=function(t,e){return t==="h"&&e==="rtl"?-1:1},O2=function(t,e,a,r,n){var i=LV(t,window.getComputedStyle(e).direction),o=i*r,s=a.target,l=e.contains(s),u=!1,c=o>0,f=0,d=0;do{if(!s)break;var h=g2(t,s),p=h[0],m=h[1],x=h[2],g=m-x-i*p;(p||g)&&m2(t,s)&&(f+=g,d+=p);var O=s.parentNode;s=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!l&&s!==document.body||l&&(e.contains(s)||e===s));return(c&&(n&&Math.abs(f)<1||!n&&o>f)||!c&&(n&&Math.abs(d)<1||!n&&-o>d))&&(u=!0),u};var dg=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},x2=function(t){return[t.deltaX,t.deltaY]},y2=function(t){return t&&"current"in t?t.current:t},TV=function(t,e){return t[0]===e[0]&&t[1]===e[1]},PV=function(t){return`
|
|
47
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
49
|
+
`)},RV=0,Pc=[];function b2(t){var e=dt.useRef([]),a=dt.useRef([0,0]),r=dt.useRef(),n=dt.useState(RV++)[0],i=dt.useState(Id)[0],o=dt.useRef(t);dt.useEffect(function(){o.current=t},[t]),dt.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var m=n2([t.lockRef.current],(t.shards||[]).map(y2),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var s=dt.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var g=dg(m),O=a.current,y="deltaX"in m?m.deltaX:O[0]-g[0],b="deltaY"in m?m.deltaY:O[1]-g[1],v,S=m.target,w=Math.abs(y)>Math.abs(b)?"h":"v";if("touches"in m&&w==="h"&&S.type==="range")return!1;var k=window.getSelection(),T=k&&k.anchorNode,Q=T?T===S||T.contains(S):!1;if(Q)return!1;var D=kv(w,S);if(!D)return!0;if(D?v=w:(v=w==="v"?"h":"v",D=kv(w,S)),!D)return!1;if(!r.current&&"changedTouches"in m&&(y||b)&&(r.current=v),!v)return!0;var A=r.current||v;return O2(A,x,m,A==="h"?y:b,!0)},[]),l=dt.useCallback(function(m){var x=m;if(!(!Pc.length||Pc[Pc.length-1]!==i)){var g="deltaY"in x?x2(x):dg(x),O=e.current.filter(function(v){return v.name===x.type&&(v.target===x.target||x.target===v.shadowParent)&&TV(v.delta,g)})[0];if(O&&O.should){x.cancelable&&x.preventDefault();return}if(!O){var y=(o.current.shards||[]).map(y2).filter(Boolean).filter(function(v){return v.contains(x.target)}),b=y.length>0?s(x,y[0]):!o.current.noIsolation;b&&x.cancelable&&x.preventDefault()}}},[]),u=dt.useCallback(function(m,x,g,O){var y={name:m,delta:x,target:g,should:O,shadowParent:IV(g)};e.current.push(y),setTimeout(function(){e.current=e.current.filter(function(b){return b!==y})},1)},[]),c=dt.useCallback(function(m){a.current=dg(m),r.current=void 0},[]),f=dt.useCallback(function(m){u(m.type,x2(m),m.target,s(m,t.lockRef.current))},[]),d=dt.useCallback(function(m){u(m.type,dg(m),m.target,s(m,t.lockRef.current))},[]);dt.useEffect(function(){return Pc.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,pl),document.addEventListener("touchmove",l,pl),document.addEventListener("touchstart",c,pl),function(){Pc=Pc.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,pl),document.removeEventListener("touchmove",l,pl),document.removeEventListener("touchstart",c,pl)}},[]);var h=t.removeScrollBar,p=t.inert;return dt.createElement(dt.Fragment,null,p?dt.createElement(i,{styles:PV(n)}):null,h?dt.createElement(wv,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function IV(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}var v2=Ov(fg,b2);var S2=hg.forwardRef(function(t,e){return hg.createElement(Rd,er({},t,{ref:e,sideCar:v2}))});S2.classNames=Rd.classNames;var Qd=S2;var AV=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Rc=new WeakMap,pg=new WeakMap,mg={},Lv=0,w2=function(t){return t&&(t.host||w2(t.parentNode))},QV=function(t,e){return e.map(function(a){if(t.contains(a))return a;var r=w2(a);return r&&t.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",t,". Doing nothing"),null)}).filter(function(a){return!!a})},MV=function(t,e,a,r){var n=QV(e,Array.isArray(t)?t:[t]);mg[a]||(mg[a]=new WeakMap);var i=mg[a],o=[],s=new Set,l=new Set(n),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};n.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))c(d);else try{var h=d.getAttribute(r),p=h!==null&&h!=="false",m=(Rc.get(d)||0)+1,x=(i.get(d)||0)+1;Rc.set(d,m),i.set(d,x),o.push(d),m===1&&p&&pg.set(d,!0),x===1&&d.setAttribute(a,"true"),p||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return c(e),s.clear(),Lv++,function(){o.forEach(function(f){var d=Rc.get(f)-1,h=i.get(f)-1;Rc.set(f,d),i.set(f,h),d||(pg.has(f)||f.removeAttribute(r),pg.delete(f)),h||f.removeAttribute(a)}),Lv--,Lv||(Rc=new WeakMap,Rc=new WeakMap,pg=new WeakMap,mg={})}},gg=function(t,e,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),n=e||AV(t);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live], script"))),MV(r,n,a,"aria-hidden")):function(){return null}};var St=L(G(),1),EV=Object.defineProperty,tr=(t,e)=>EV(t,"name",{value:e,configurable:!0}),Pv="Dialog",[C2,DV]=ca(Pv),[$V,On]=C2(Pv),Rv=tr(t=>{let{__scopeDialog:e,children:a,open:r,defaultOpen:n,onOpenChange:i,modal:o=!0}=t,s=ct.useRef(null),l=ct.useRef(null),[u,c]=Aa({prop:r,defaultProp:n??!1,onChange:i,caller:Pv}),[f,d]=ct.useState(0),[h,p]=ct.useState(0);return(0,St.jsx)($V,{scope:e,triggerRef:s,contentRef:l,contentId:Dt(),titleId:Dt(),descriptionId:Dt(),titlePresent:f>0,descriptionPresent:h>0,setTitleCount:d,setDescriptionCount:p,open:u,onOpenChange:c,onOpenToggle:ct.useCallback(()=>c(m=>!m),[c]),modal:o,children:a})},"Dialog"),BV="DialogTrigger",_V=ct.forwardRef(tr(function(e,a){let{__scopeDialog:r,...n}=e,i=On(BV,r),o=Qe(a,i.triggerRef);return(0,St.jsx)(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Og(i.open),...n,ref:o,onClick:xe(e.onClick,i.onOpenToggle)})},"DialogTrigger")),k2="DialogPortal",[zV,L2]=C2(k2,{forceMount:void 0}),Iv=tr(t=>{let{__scopeDialog:e,forceMount:a,children:r,container:n}=t,i=On(k2,e);return(0,St.jsx)(zV,{scope:e,forceMount:a,children:ct.Children.map(r,o=>(0,St.jsx)(as,{present:a||i.open,children:(0,St.jsx)(og,{asChild:!0,container:n,children:o})}))})},"DialogPortal"),Tv="DialogOverlay",Av=ct.forwardRef(tr(function(e,a){let r=L2(Tv,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=On(Tv,e.__scopeDialog);return o.modal?(0,St.jsx)(as,{present:n||o.open,children:(0,St.jsx)(XV,{...i,ref:a})}):null},"DialogOverlay")),NV=Ia("DialogOverlay.RemoveScroll"),XV=ct.forwardRef(tr(function(e,a){let{__scopeDialog:r,...n}=e,i=On(Tv,r),o=nv(),s=Qe(a,o);return(0,St.jsx)(Qd,{as:NV,allowPinchZoom:!0,shards:[i.contentRef],children:(0,St.jsx)(ue.div,{"data-state":Og(i.open),...n,ref:s,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),Md="DialogContent",Qv=ct.forwardRef(tr(function(e,a){let r=L2(Md,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=On(Md,e.__scopeDialog);return(0,St.jsx)(as,{present:n||o.open,children:o.modal?(0,St.jsx)(qV,{...i,ref:a}):(0,St.jsx)(ZV,{...i,ref:a})})},"DialogContent")),qV=ct.forwardRef(tr(function(e,a){let r=On(Md,e.__scopeDialog),n=ct.useRef(null),i=Qe(a,r.contentRef,n);return ct.useEffect(()=>{let o=n.current;if(o)return gg(o)},[]),(0,St.jsx)(T2,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:xe(e.onCloseAutoFocus,o=>{o.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:xe(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&o.preventDefault()}),onFocusOutside:xe(e.onFocusOutside,o=>o.preventDefault())})},"DialogContentModal")),ZV=ct.forwardRef(tr(function(e,a){let r=On(Md,e.__scopeDialog),n=ct.useRef(!1),i=ct.useRef(!1);return(0,St.jsx)(T2,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));let s=o.target;r.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})},"DialogContentNonModal")),T2=ct.forwardRef(tr(function(e,a){let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,l=On(Md,r);return kc(),(0,St.jsx)(St.Fragment,{children:(0,St.jsx)(ng,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,St.jsx)(rg,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Og(l.open),...s,ref:a,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),VV="DialogTitle",UV=ct.forwardRef(tr(function(e,a){let{__scopeDialog:r,...n}=e,i=On(VV,r),{setTitleCount:o}=i;return Xe(()=>(o(s=>s+1),()=>o(s=>s-1)),[o]),(0,St.jsx)(ue.h2,{id:i.titleId,...n,ref:a})},"DialogTitle")),jV="DialogDescription",FV=ct.forwardRef(tr(function(e,a){let{__scopeDialog:r,...n}=e,i=On(jV,r),{setDescriptionCount:o}=i;return Xe(()=>(o(s=>s+1),()=>o(s=>s-1)),[o]),(0,St.jsx)(ue.p,{id:i.descriptionId,...n,ref:a})},"DialogDescription")),HV="DialogClose",GV=ct.forwardRef(tr(function(e,a){let{__scopeDialog:r,...n}=e,i=On(HV,r);return(0,St.jsx)(ue.button,{type:"button",...n,ref:a,onClick:xe(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose")),YV=tr(t=>t.children,"WarningProvider");function Og(t){return t?"open":"closed"}tr(Og,"getState");var P2=L(F(),1);var WV=Object.defineProperty,KV=(t,e)=>WV(t,"name",{value:e,configurable:!0});function Mv(t){let[e,a]=P2.useState(void 0);return Xe(()=>{if(t){a({width:t.offsetWidth,height:t.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let i=n[0],o,s;if("borderBoxSize"in i){let l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=t.offsetWidth,s=t.offsetHeight;a({width:o,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else a(void 0)},[t]),e}KV(Mv,"useSize");var da=L(F(),1);var A2=["top","right","bottom","left"];var ui=Math.min,yn=Math.max,Dd=Math.round,$d=Math.floor,ci=t=>({x:t,y:t}),JV={left:"right",right:"left",bottom:"top",top:"bottom"};function Ev(t,e,a){return yn(t,ui(e,a))}function fi(t,e){return typeof t=="function"?t(e):t}function ji(t){return t.split("-")[0]}function ml(t){return t.split("-")[1]}function yg(t){return t==="x"?"y":"x"}function bg(t){return t==="y"?"height":"width"}function bn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function vg(t){return yg(bn(t))}function Q2(t,e,a){a===void 0&&(a=!1);let r=ml(t),n=vg(t),i=bg(n),o=n==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ed(o)),[o,Ed(o)]}function M2(t){let e=Ed(t);return[xg(t),e,xg(e)]}function xg(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var R2=["left","right"],I2=["right","left"],eU=["top","bottom"],tU=["bottom","top"];function aU(t,e,a){switch(t){case"top":case"bottom":return a?e?I2:R2:e?R2:I2;case"left":case"right":return e?eU:tU;default:return[]}}function E2(t,e,a,r){let n=ml(t),i=aU(ji(t),a==="start",r);return n&&(i=i.map(o=>o+"-"+n),e&&(i=i.concat(i.map(xg)))),i}function Ed(t){let e=ji(t);return JV[e]+t.slice(e.length)}function rU(t){var e,a,r,n;return{top:(e=t.top)!=null?e:0,right:(a=t.right)!=null?a:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function Dv(t){return typeof t!="number"?rU(t):{top:t,right:t,bottom:t,left:t}}function gl(t){let{x:e,y:a,width:r,height:n}=t;return{width:r,height:n,top:a,left:e,right:e+r,bottom:a+n,x:e,y:a}}function D2(t,e,a){let{reference:r,floating:n}=t,i=bn(e),o=vg(e),s=bg(o),l=ji(e),u=i==="y",c=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,d=r[s]/2-n[s]/2,h;switch(l){case"top":h={x:c,y:r.y-n.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-n.width,y:f};break;default:h={x:r.x,y:r.y}}let p=ml(e);return p&&(h[o]+=d*(p==="end"?1:-1)*(a&&u?-1:1)),h}async function _2(t,e){var a;e===void 0&&(e={});let{x:r,y:n,platform:i,rects:o,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=fi(e,t),p=Dv(h),x=s[d?f==="floating"?"reference":"floating":f],g=gl(await i.getClippingRect({element:(a=await(i.isElement==null?void 0:i.isElement(x)))==null||a?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),O=f==="floating"?{x:r,y:n,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement(y))&&await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1},v=gl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:O,offsetParent:y,strategy:l}):O);return{top:(g.top-v.top+p.top)/b.y,bottom:(v.bottom-g.bottom+p.bottom)/b.y,left:(g.left-v.left+p.left)/b.x,right:(v.right-g.right+p.right)/b.x}}var nU=50,z2=async(t,e,a)=>{let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:o}=a,s=o.detectOverflow?o:{...o,detectOverflow:_2},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:c,y:f}=D2(u,r,l),d=r,h=0,p={};for(let m=0;m<i.length;m++){let x=i[m];if(!x)continue;let{name:g,fn:O}=x,{x:y,y:b,data:v,reset:S}=await O({x:c,y:f,initialPlacement:r,placement:d,strategy:n,middlewareData:p,rects:u,platform:s,elements:{reference:t,floating:e}});c=y??c,f=b??f,p[g]={...p[g],...v},S&&h<nU&&(h++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):S.rects),{x:c,y:f}=D2(u,d,l)),m=-1)}return{x:c,y:f,placement:d,strategy:n,middlewareData:p}},N2=t=>({name:"arrow",options:t,async fn(e){let{x:a,y:r,placement:n,rects:i,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=fi(t,e)||{};if(u==null)return{};let f=Dv(c),d={x:a,y:r},h=vg(n),p=bg(h),m=await o.getDimensions(u),x=h==="y",g=x?"top":"left",O=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[h]-d[h]-i.floating[p],v=d[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u)),w=S?S[y]:0;(!w||!await(o.isElement==null?void 0:o.isElement(S)))&&(w=s.floating[y]||i.floating[p]);let k=b/2-v/2,T=w/2-m[p]/2-1,Q=ui(f[g],T),D=ui(f[O],T),A=w-m[p]-D,R=w/2-m[p]/2+k,B=Ev(Q,R,A),W=!l.arrow&&ml(n)!=null&&R!==B&&i.reference[p]/2-(R<Q?Q:D)-m[p]/2<0,$=W?R<Q?R-Q:R-A:0;return{[h]:d[h]+$,data:{[h]:B,centerOffset:R-B-$,...W&&{alignmentOffset:$}},reset:W}}});var X2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var a,r;let{placement:n,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...x}=fi(t,e);if((a=i.arrow)!=null&&a.alignmentOffset)return{};let g=ji(n),O=bn(s),y=ji(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),v=d||(y||!m?[Ed(s)]:M2(s)),S=p!=="none";!d&&S&&v.push(...E2(s,m,p,b));let w=[s,...v],k=await l.detectOverflow(e,x),T=[],Q=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&T.push(k[g]),f){let B=Q2(n,o,b);T.push(k[B[0]],k[B[1]])}if(Q=[...Q,{placement:n,overflows:T}],!T.every(B=>B<=0)){var D,A;let B=(((D=i.flip)==null?void 0:D.index)||0)+1,W=w[B];if(W&&(!(f==="alignment"?O!==bn(W):!1)||Q.every(re=>bn(re.placement)===O?re.overflows[0]>0:!0)))return{data:{index:B,overflows:Q},reset:{placement:W}};let $=(A=Q.filter(q=>q.overflows[0]<=0).sort((q,re)=>q.overflows[1]-re.overflows[1])[0])==null?void 0:A.placement;if(!$)switch(h){case"bestFit":{var R;let q=(R=Q.filter(re=>{if(S){let ie=bn(re.placement);return ie===O||ie==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(ie=>ie>0).reduce((ie,z)=>ie+z,0)]).sort((re,ie)=>re[1]-ie[1])[0])==null?void 0:R[0];q&&($=q);break}case"initialPlacement":$=s;break}if(n!==$)return{reset:{placement:$}}}return{}}}};function $2(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function B2(t){return A2.some(e=>t[e]>=0)}var q2=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:a,platform:r}=e,{strategy:n="referenceHidden",...i}=fi(t,e);switch(n){case"referenceHidden":{let o=await r.detectOverflow(e,{...i,elementContext:"reference"}),s=$2(o,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:B2(s)}}}case"escaped":{let o=await r.detectOverflow(e,{...i,altBoundary:!0}),s=$2(o,a.floating);return{data:{escapedOffsets:s,escaped:B2(s)}}}default:return{}}}}};var Z2=new Set(["left","top"]);async function iU(t,e){let{placement:a,platform:r,elements:n}=t,i=await(r.isRTL==null?void 0:r.isRTL(n.floating)),o=ji(a),s=ml(a),l=bn(a)==="y",u=Z2.has(o)?-1:1,c=i&&l?-1:1,f=fi(e,t),{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}var V2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var a,r;let{x:n,y:i,placement:o,middlewareData:s}=e,l=await iU(e,t);return o===((a=s.offset)==null?void 0:a.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:o}}}}},U2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:a,y:r,placement:n,platform:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:O=>{let{x:y,y:b}=O;return{x:y,y:b}}},...u}=fi(t,e),c={x:a,y:r},f=await i.detectOverflow(e,u),d=bn(n),h=yg(d),p=c[h],m=c[d],x=(O,y)=>Ev(y+f[O==="y"?"top":"left"],y,y-f[O==="y"?"bottom":"right"]);o&&(p=x(h,p)),s&&(m=x(d,m));let g=l.fn({...e,[h]:p,[d]:m});return{...g,data:{x:g.x-a,y:g.y-r,enabled:{[h]:o,[d]:s}}}}}},j2=function(t){return t===void 0&&(t={}),{options:t,fn(e){var a,r;let{x:n,y:i,placement:o,rects:s,middlewareData:l}=e,{offset:u=0,mainAxis:c=!0,crossAxis:f=!0}=fi(t,e),d={x:n,y:i},h=bn(o),p=yg(h),m=d[p],x=d[h],g=fi(u,e),O=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(a=g.mainAxis)!=null?a:0,crossAxis:(r=g.crossAxis)!=null?r:0};if(c){let v=p==="y"?"height":"width",S=s.reference[p]-s.floating[v]+O.mainAxis,w=s.reference[p]+s.reference[v]-O.mainAxis;m<S?m=S:m>w&&(m=w)}if(f){var y,b;let v=p==="y"?"width":"height",S=Z2.has(ji(o)),w=s.reference[h]-s.floating[v]+(S&&((y=l.offset)==null?void 0:y[h])||0)+(S?0:O.crossAxis),k=s.reference[h]+s.reference[v]+(S?0:((b=l.offset)==null?void 0:b[h])||0)-(S?O.crossAxis:0);x<w?x=w:x>k&&(x=k)}return{[p]:m,[h]:x}}}},F2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:a,rects:r,platform:n,elements:i}=e,{apply:o=()=>{},...s}=fi(t,e),l=await n.detectOverflow(e,s),u=ji(a),c=ml(a),f=bn(a)==="y",{width:d,height:h}=r.floating,p,m;u==="top"||u==="bottom"?(p=u,m=c===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,p=c==="end"?"top":"bottom");let x=h-l.top-l.bottom,g=d-l.left-l.right,O=ui(h-l[p],x),y=ui(d-l[m],g),b=e.middlewareData.shift,v=!b,S=O,w=y;b!=null&&b.enabled.x&&(w=g),b!=null&&b.enabled.y&&(S=x),v&&!c&&(f?w=d-2*yn(l.left,l.right):S=h-2*yn(l.top,l.bottom)),await o({...e,availableWidth:w,availableHeight:S});let k=await n.getDimensions(i.floating);return d!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function Sg(){return typeof window<"u"}function yl(t){return G2(t)?(t.nodeName||"").toLowerCase():"#document"}function Ma(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function di(t){var e;return(e=(G2(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function G2(t){return Sg()?t instanceof Node||t instanceof Ma(t).Node:!1}function vn(t){return Sg()?t instanceof Element||t instanceof Ma(t).Element:!1}function Fi(t){return Sg()?t instanceof HTMLElement||t instanceof Ma(t).HTMLElement:!1}function H2(t){return!Sg()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ma(t).ShadowRoot}function Bd(t){let{overflow:e,overflowX:a,overflowY:r,display:n}=Sn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+a)&&n!=="inline"&&n!=="contents"}function Y2(t){return/^(table|td|th)$/.test(yl(t))}function _d(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var oU=/transform|translate|scale|rotate|perspective|filter/,sU=/paint|layout|strict|content/,Ol=t=>!!t&&t!=="none",$v;function wg(t){let e=vn(t)?Sn(t):t;return Ol(e.transform)||Ol(e.translate)||Ol(e.scale)||Ol(e.rotate)||Ol(e.perspective)||!Cg()&&(Ol(e.backdropFilter)||Ol(e.filter))||oU.test(e.willChange||"")||sU.test(e.contain||"")}function W2(t){let e=rs(t);for(;Fi(e)&&!Ic(e);){if(wg(e))return e;if(_d(e))return null;e=rs(e)}return null}function Cg(){return $v==null&&($v=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$v}function Ic(t){return/^(html|body|#document)$/.test(yl(t))}function Sn(t){return Ma(t).getComputedStyle(t)}function zd(t){return vn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function rs(t){if(yl(t)==="html")return t;let e=t.assignedSlot||t.parentNode||H2(t)&&t.host||di(t);return H2(e)?e.host:e}function K2(t){let e=rs(t);return Ic(e)?(t.ownerDocument||t).body:Fi(e)&&Bd(e)?e:K2(e)}function xl(t,e,a){var r;e===void 0&&(e=[]),a===void 0&&(a=!0);let n=K2(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),o=Ma(n);if(i){let s=kg(o);return e.concat(o,o.visualViewport||[],Bd(n)?n:[],s&&a?xl(s):[])}else return e.concat(n,xl(n,[],a))}function kg(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tM(t){let e=Sn(t),a=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=Fi(t),i=n?t.offsetWidth:a,o=n?t.offsetHeight:r,s=Dd(a)!==i||Dd(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function _v(t){return vn(t)?t:t.contextElement}function Ac(t){let e=_v(t);if(!Fi(e))return ci(1);let a=e.getBoundingClientRect(),{width:r,height:n,$:i}=tM(e),o=(i?Dd(a.width):a.width)/r,s=(i?Dd(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var lU=ci(0);function aM(t){let e=Ma(t);return!Cg()||!e.visualViewport?lU:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uU(t,e,a){return e===void 0&&(e=!1),!!a&&e&&a===Ma(t)}function bl(t,e,a,r){e===void 0&&(e=!1),a===void 0&&(a=!1);let n=t.getBoundingClientRect(),i=_v(t),o=ci(1);e&&(r?vn(r)&&(o=Ac(r)):o=Ac(t));let s=uU(i,a,r)?aM(i):ci(0),l=(n.left+s.x)/o.x,u=(n.top+s.y)/o.y,c=n.width/o.x,f=n.height/o.y;if(i&&r){let d=Ma(i),h=vn(r)?Ma(r):r,p=d,m=kg(p);for(;m&&h!==p;){let x=Ac(m),g=m.getBoundingClientRect(),O=Sn(m),y=g.left+(m.clientLeft+parseFloat(O.paddingLeft))*x.x,b=g.top+(m.clientTop+parseFloat(O.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,f*=x.y,l+=y,u+=b,p=Ma(m),m=kg(p)}}return gl({width:c,height:f,x:l,y:u})}function Lg(t,e){let a=zd(t).scrollLeft;return e?e.left+a:bl(di(t)).left+a}function rM(t,e){let a=t.getBoundingClientRect(),r=a.left+e.scrollLeft-Lg(t,a),n=a.top+e.scrollTop;return{x:r,y:n}}function cU(t){let{elements:e,rect:a,offsetParent:r,strategy:n}=t,i=n==="fixed",o=di(r),s=e?_d(e.floating):!1;if(r===o||s&&i)return a;let l={scrollLeft:0,scrollTop:0},u=ci(1),c=ci(0),f=Fi(r);if((f||!i)&&((yl(r)!=="body"||Bd(o))&&(l=zd(r)),f)){let h=bl(r);u=Ac(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}let d=o&&!f&&!i?rM(o,l):ci(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:a.y*u.y-l.scrollTop*u.y+c.y+d.y}}function fU(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function dU(t){let e=zd(t),a=t.ownerDocument.body,r=yn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),n=yn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),i=-e.scrollLeft+Lg(t),o=-e.scrollTop;return Sn(a).direction==="rtl"&&(i+=yn(t.clientWidth,a.clientWidth)-r),{width:r,height:n,x:i,y:o}}var hU=25;function pU(t,e,a){a===void 0&&(a="viewport");let r=a==="layoutViewport",n=Ma(t),i=di(t),o=n.visualViewport,s=i.clientWidth,l=i.clientHeight,u=0,c=0;if(o){let d=!Cg()||e==="fixed";r?d||(u=-o.offsetLeft,c=-o.offsetTop):(s=o.width,l=o.height,d&&(u=o.offsetLeft,c=o.offsetTop))}if(Lg(i)<=0){let d=i.ownerDocument,h=d.body,p=getComputedStyle(h),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,x=Math.abs(i.clientWidth-h.clientWidth-m),g=getComputedStyle(i).scrollbarGutter==="stable both-edges"?x/2:x;g<=hU&&(s-=g)}return{width:s,height:l,x:u,y:c}}function mU(t,e){let a=bl(t,!0,e==="fixed"),r=a.top+t.clientTop,n=a.left+t.clientLeft,i=Ac(t),o=t.clientWidth*i.x,s=t.clientHeight*i.y,l=n*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function J2(t,e,a){let r;if(e==="viewport"||e==="layoutViewport")r=pU(t,a,e);else if(e==="document")r=dU(di(t));else if(vn(e))r=mU(e,a);else{let n=aM(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return gl(r)}function gU(t,e){let a=e.get(t);if(a)return a;let r=xl(t,[],!1).filter(s=>vn(s)&&yl(s)!=="body"),n=null,i=Sn(t).position==="fixed",o=i?rs(t):t;for(;vn(o)&&!Ic(o);){let s=Sn(o),l=wg(o),u=n?n.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?r=r.filter(f=>f!==o):n=s,o=rs(o)}return e.set(t,r),r}function OU(t){let{element:e,boundary:a,rootBoundary:r,strategy:n}=t,o=[...a==="clippingAncestors"?_d(e)?[]:gU(e,this._c):[].concat(a),r],s=J2(e,o[0],n),l=s.top,u=s.right,c=s.bottom,f=s.left;for(let d=1;d<o.length;d++){let h=J2(e,o[d],n);l=yn(h.top,l),u=ui(h.right,u),c=ui(h.bottom,c),f=yn(h.left,f)}return{width:u-f,height:c-l,x:f,y:l}}function xU(t){let{width:e,height:a}=tM(t);return{width:e,height:a}}function yU(t,e,a){let r=Fi(e),n=di(e),i=a==="fixed",o=bl(t,!0,i,e),s={scrollLeft:0,scrollTop:0},l=ci(0);if((r||!i)&&((yl(e)!=="body"||Bd(n))&&(s=zd(e)),r)){let d=bl(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}!r&&n&&(l.x=Lg(n));let u=n&&!r&&!i?rM(n,s):ci(0),c=o.left+s.scrollLeft-l.x-u.x,f=o.top+s.scrollTop-l.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function Bv(t){return Sn(t).position==="static"}function eM(t,e){if(!Fi(t)||Sn(t).position==="fixed")return null;if(e)return e(t);let a=t.offsetParent;return di(t)===a&&(a=a.ownerDocument.body),a}function nM(t,e){let a=Ma(t);if(_d(t))return a;if(!Fi(t)){let n=rs(t);for(;n&&!Ic(n);){if(vn(n)&&!Bv(n))return n;n=rs(n)}return a}let r=eM(t,e);for(;r&&Y2(r)&&Bv(r);)r=eM(r,e);return r&&Ic(r)&&Bv(r)&&!wg(r)?a:r||W2(t)||a}var bU=async function(t){let e=this.getOffsetParent||nM,a=this.getDimensions,r=await a(t.floating);return{reference:yU(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vU(t){return Sn(t).direction==="rtl"}var iM={convertOffsetParentRelativeRectToViewportRelativeRect:cU,getDocumentElement:di,getClippingRect:OU,getOffsetParent:nM,getElementRects:bU,getClientRects:fU,getDimensions:xU,getScale:Ac,isElement:vn,isRTL:vU};function oM(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function SU(t,e,a){let r=null,n,i=di(t);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();let d=t.getBoundingClientRect(),{left:h,top:p,width:m,height:x}=d;if(c||e(),!m||!x)return;let g=$d(p),O=$d(i.clientWidth-(h+m)),y=$d(i.clientHeight-(p+x)),b=$d(h),S={rootMargin:-g+"px "+-O+"px "+-y+"px "+-b+"px",threshold:yn(0,ui(1,f))||1},w=!0;function k(T){let Q=T[0].intersectionRatio;if(!oM(d,t.getBoundingClientRect()))return s();if(Q!==f){if(!w)return s();Q?s(!1,Q):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(k,{...S,root:i.ownerDocument})}catch{r=new IntersectionObserver(k,S)}r.observe(t)}let l=Ma(t),u=()=>s(a);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),o()}}function zv(t,e,a,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=_v(t),c=n||i?[...u?xl(u):[],...e?xl(e):[]]:[];c.forEach(g=>{n&&g.addEventListener("scroll",a),i&&g.addEventListener("resize",a)});let f=u&&s?SU(u,a,i):null,d=-1,h=null;o&&(h=new ResizeObserver(g=>{let[O]=g;O&&O.target===u&&h&&e&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(e)})),a()}),u&&!l&&h.observe(u),e&&h.observe(e));let p,m=l?bl(t):null;l&&x();function x(){let g=bl(t);m&&!oM(m,g)&&a(),m=g,p=requestAnimationFrame(x)}return a(),()=>{var g;c.forEach(O=>{n&&O.removeEventListener("scroll",a),i&&O.removeEventListener("resize",a)}),f?.(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var sM=V2;var lM=U2,uM=X2,cM=F2,fM=q2,Nv=N2;var dM=j2,Xv=(t,e,a)=>{let r=new Map,n=a??{},i={...iM,...n.platform,_c:r};return z2(t,e,{...n,platform:i})};var $t=L(F(),1),pM=L(F(),1),mM=L(Es(),1),wU=typeof document<"u",CU=function(){},Tg=wU?pM.useLayoutEffect:CU;function Pg(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let a,r,n;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(a=t.length,a!==e.length)return!1;for(r=a;r--!==0;)if(!Pg(t[r],e[r]))return!1;return!0}if(n=Object.keys(t),a=n.length,a!==Object.keys(e).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(e,n[r]))return!1;for(r=a;r--!==0;){let i=n[r];if(!(i==="_owner"&&t.$$typeof)&&!Pg(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function gM(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function hM(t,e){let a=gM(t);return Math.round(e*a)/a}function qv(t){let e=$t.useRef(t);return Tg(()=>{e.current=t}),e}function OM(t){t===void 0&&(t={});let{placement:e="bottom",strategy:a="absolute",middleware:r=[],platform:n,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=t,[c,f]=$t.useState({x:0,y:0,strategy:a,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=$t.useState(r);Pg(d,r)||h(r);let[p,m]=$t.useState(null),[x,g]=$t.useState(null),O=$t.useCallback(re=>{re!==S.current&&(S.current=re,m(re))},[]),y=$t.useCallback(re=>{re!==w.current&&(w.current=re,g(re))},[]),b=i||p,v=o||x,S=$t.useRef(null),w=$t.useRef(null),k=$t.useRef(c),T=l!=null,Q=qv(l),D=qv(n),A=qv(u),R=$t.useCallback(()=>{if(!S.current||!w.current)return;let re={placement:e,strategy:a,middleware:d};D.current&&(re.platform=D.current),Xv(S.current,w.current,re).then(ie=>{let z={...ie,isPositioned:A.current!==!1};B.current&&!Pg(k.current,z)&&(k.current=z,mM.flushSync(()=>{f(z)}))})},[d,e,a,D,A]);Tg(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(re=>({...re,isPositioned:!1})))},[u]);let B=$t.useRef(!1);Tg(()=>(B.current=!0,()=>{B.current=!1}),[]),Tg(()=>{if(b&&(S.current=b),v&&(w.current=v),b&&v){if(Q.current)return Q.current(b,v,R);R()}},[b,v,R,Q,T]);let W=$t.useMemo(()=>({reference:S,floating:w,setReference:O,setFloating:y}),[O,y]),$=$t.useMemo(()=>({reference:b,floating:v}),[b,v]),q=$t.useMemo(()=>{let re={position:a,left:0,top:0};if(!$.floating)return re;let ie=hM($.floating,c.x),z=hM($.floating,c.y);return s?{...re,transform:"translate("+ie+"px, "+z+"px)",...gM($.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ie,top:z}},[a,s,$.floating,c.x,c.y]);return $t.useMemo(()=>({...c,update:R,refs:W,elements:$,floatingStyles:q}),[c,R,W,$,q])}var kU=t=>{function e(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:t,fn(a){let{element:r,padding:n}=typeof t=="function"?t(a):t;return r&&e(r)?r.current!=null?Nv({element:r.current,padding:n}).fn(a):{}:r?Nv({element:r,padding:n}).fn(a):{}}}},xM=(t,e)=>{let a=sM(t);return{name:a.name,fn:a.fn,options:[t,e]}},yM=(t,e)=>{let a=lM(t);return{name:a.name,fn:a.fn,options:[t,e]}},bM=(t,e)=>({fn:dM(t).fn,options:[t,e]}),vM=(t,e)=>{let a=uM(t);return{name:a.name,fn:a.fn,options:[t,e]}},SM=(t,e)=>{let a=cM(t);return{name:a.name,fn:a.fn,options:[t,e]}};var wM=(t,e)=>{let a=fM(t);return{name:a.name,fn:a.fn,options:[t,e]}};var CM=(t,e)=>{let a=kU(t);return{name:a.name,fn:a.fn,options:[t,e]}};var kM=L(F(),1);var Zv=L(G(),1),LU=Object.defineProperty,TU=(t,e)=>LU(t,"name",{value:e,configurable:!0}),PU=kM.forwardRef(TU(function(e,a){let{children:r,width:n=10,height:i=5,...o}=e;return(0,Zv.jsx)(ue.svg,{...o,ref:a,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,Zv.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),LM=PU;var ns=L(G(),1),IU=Object.defineProperty,Hi=(t,e)=>IU(t,"name",{value:e,configurable:!0});var TM="Popper",[PM,Vv]=ca(TM),[AU,RM]=PM(TM),QU=Hi(t=>{let{__scopePopper:e,children:a}=t,[r,n]=da.useState(null),[i,o]=da.useState(void 0);return(0,ns.jsx)(AU,{scope:e,anchor:r,onAnchorChange:n,placementState:i,setPlacementState:o,children:a})},"Popper"),MU="PopperAnchor",EU=da.forwardRef(Hi(function(e,a){let{__scopePopper:r,virtualRef:n,...i}=e,o=RM(MU,r),s=da.useRef(null),l=o.onAnchorChange,u=da.useCallback(m=>{s.current=m,m&&l(m)},[l]),c=Qe(a,u),f=da.useRef(null);da.useEffect(()=>{if(!n)return;let m=f.current;f.current=n.current,m!==f.current&&l(f.current)});let d=o.placementState&&Rg(o.placementState),h=d?.[0],p=d?.[1];return n?null:(0,ns.jsx)(ue.div,{"data-radix-popper-side":h,"data-radix-popper-align":p,...i,ref:c})},"PopperAnchor")),IM="PopperContent",[DU,$U]=PM(IM),BU=da.forwardRef(Hi(function(e,a){let{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:m,...x}=e,g=RM(IM,r),[O,y]=da.useState(null),b=Qe(a,y),[v,S]=da.useState(null),w=Mv(v),k=w?.width??0,T=w?.height??0,Q=n+(o!=="center"?"-"+o:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},A=Array.isArray(c)?c:[c],R=A.length>0,B={padding:D,boundary:A.filter(AM),altBoundary:R},{refs:W,floatingStyles:$,placement:q,isPositioned:re,middlewareData:ie}=OM({strategy:"fixed",placement:Q,whileElementsMounted:Hi((...Z)=>zv(...Z,{animationFrame:p==="always"}),"whileElementsMounted"),elements:{reference:g.anchor},middleware:[xM({mainAxis:i+T,alignmentAxis:s}),u&&yM({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?bM():void 0,...B}),u&&vM({...B}),SM({...B,apply:Hi(({elements:Z,rects:qe,availableWidth:Re,availableHeight:Ie})=>{let{width:Ze,height:Vt}=qe.reference,Za=Z.floating.style;Za.setProperty("--radix-popper-available-width",`${Re}px`),Za.setProperty("--radix-popper-available-height",`${Ie}px`),Za.setProperty("--radix-popper-anchor-width",`${Ze}px`),Za.setProperty("--radix-popper-anchor-height",`${Vt}px`)},"apply")}),v&&CM({element:v,padding:l}),XU({arrowWidth:k,arrowHeight:T}),h&&wM({strategy:"referenceHidden",...B,boundary:R?B.boundary:void 0})]}),z=g.setPlacementState;Xe(()=>(z(q),()=>{z(void 0)}),[q,z]);let[Pe,P]=Rg(q),H=ya(m);Xe(()=>{re&&H?.()},[re,H]);let N=ie.arrow?.x,M=ie.arrow?.y,j=ie.arrow?.centerOffset!==0,[de,ee]=da.useState();return Xe(()=>{O&&ee(window.getComputedStyle(O).zIndex)},[O]),(0,ns.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:re?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[ie.transformOrigin?.x,ie.transformOrigin?.y].join(" "),...ie.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ns.jsx)(DU,{scope:r,placedSide:Pe,placedAlign:P,onArrowChange:S,arrowX:N,arrowY:M,shouldHideArrow:j,children:(0,ns.jsx)(ue.div,{"data-side":Pe,"data-align":P,...x,ref:b,style:{...x.style,animation:re?x.style?.animation:"none"}})})})},"PopperContent")),_U="PopperArrow",zU={top:"bottom",right:"left",bottom:"top",left:"right"},NU=da.forwardRef(Hi(function(e,a){let{__scopePopper:r,...n}=e,i=$U(_U,r),o=zU[i.placedSide];return(0,ns.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ns.jsx)(LM,{...n,ref:a,style:{...n.style,display:"block"}})})},"PopperArrow"));function AM(t){return t!==null}Hi(AM,"isNotNull");var XU=Hi(t=>({name:"transformOrigin",options:t,fn(e){let{placement:a,rects:r,middlewareData:n}=e,o=n.arrow?.centerOffset!==0,s=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[u,c]=Rg(a),f={start:"0%",center:"50%",end:"100%"}[c],d=(n.arrow?.x??0)+s/2,h=(n.arrow?.y??0)+l/2,p="",m="";return u==="bottom"?(p=o?f:`${d}px`,m=`${-l}px`):u==="top"?(p=o?f:`${d}px`,m=`${r.floating.height+l}px`):u==="right"?(p=`${-l}px`,m=o?f:`${h}px`):u==="left"&&(p=`${r.floating.width+l}px`,m=o?f:`${h}px`),{data:{x:p,y:m}}}}),"transformOrigin");function Rg(t){let[e,a="center"]=t.split("-");return[e,a]}Hi(Rg,"getSideAndAlignFromPlacement");var QM=QU,MM=EU,EM=BU,DM=NU;var Kt=L(F(),1);var VU=L(F(),1),Ig=L(F(),1),ZU=Object.defineProperty,jv=(t,e)=>ZU(t,"name",{value:e,configurable:!0}),Uv=!1;function $M(){let[t,e]=Ig.useState(Uv);return Ig.useEffect(()=>{Uv||(Uv=!0,e(!0))},[]),t}jv($M,"useIsHydrated");var BM=VU[" useSyncExternalStore ".trim().toString()];function _M(){return()=>{}}jv(_M,"subscribe");function zM(){return BM(_M,()=>!0,()=>!1)}jv(zM,"useIsHydratedModern");var NM=typeof BM=="function"?zM:$M;var is=L(G(),1),UU=Object.defineProperty,vl=(t,e)=>UU(t,"name",{value:e,configurable:!0}),Fv="rovingFocusGroup.onEntryFocus",jU={bubbles:!1,cancelable:!0},Ag="RovingFocusGroup",[Hv,XM,FU]=Td(Ag),[HU,Qc]=ca(Ag,[FU]),[GU,YU]=HU(Ag),WU=Kt.forwardRef(vl(function(e,a){return(0,is.jsx)(Hv.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,is.jsx)(Hv.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,is.jsx)(KU,{...e,ref:a})})})},"RovingFocusGroup")),KU=Kt.forwardRef(vl(function(e,a){let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...d}=e,h=Kt.useRef(null),p=Qe(a,h),m=Vi(o),[x,g]=Aa({prop:s,defaultProp:l??null,onChange:u,caller:Ag}),[O,y]=Kt.useState(!1),b=ya(c),v=XM(r),S=Kt.useRef(!1),[w,k]=Kt.useState(0);return Kt.useEffect(()=>{let T=h.current;if(T)return T.addEventListener(Fv,b),()=>T.removeEventListener(Fv,b)},[b]),(0,is.jsx)(GU,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:x,onItemFocus:Kt.useCallback(T=>g(T),[g]),onItemShiftTab:Kt.useCallback(()=>y(!0),[]),onFocusableItemAdd:Kt.useCallback(()=>k(T=>T+1),[]),onFocusableItemRemove:Kt.useCallback(()=>k(T=>T-1),[]),children:(0,is.jsx)(ue.div,{tabIndex:O||w===0?-1:0,"data-orientation":n,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:xe(e.onMouseDown,()=>{S.current=!0}),onFocus:xe(e.onFocus,T=>{let Q=!S.current;if(T.target===T.currentTarget&&Q&&!O){let D=new CustomEvent(Fv,jU);if(T.currentTarget.dispatchEvent(D),!D.defaultPrevented){let A=v().filter(q=>q.focusable),R=A.find(q=>q.active),B=A.find(q=>q.id===x),$=[R,B,...A].filter(Boolean).map(q=>q.ref.current);Gv($,f)}}S.current=!1}),onBlur:xe(e.onBlur,()=>y(!1))})})},"RovingFocusGroupImpl")),JU="RovingFocusGroupItem",ej=Kt.forwardRef(vl(function(e,a){let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,children:s,...l}=e,u=Dt(),c=o||u,f=YU(JU,r),d=f.currentTabStopId===c,h=XM(r),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:x}=f,g=NM();return Xe(()=>{if(!(!g||!n))return p(),()=>m()},[g,n,p,m]),Kt.useEffect(()=>{if(!(g||!n))return p(),()=>m()},[g,n,p,m]),(0,is.jsx)(Hv.ItemSlot,{scope:r,id:c,focusable:n,active:i,children:(0,is.jsx)(ue.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...l,ref:a,onMouseDown:xe(e.onMouseDown,O=>{n?f.onItemFocus(c):O.preventDefault()}),onFocus:xe(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:xe(e.onKeyDown,O=>{if(O.key==="Tab"&&O.shiftKey){f.onItemShiftTab();return}if(O.target!==O.currentTarget)return;let y=ZM(O,f.orientation,f.dir);if(y!==void 0){if(O.metaKey||O.ctrlKey||O.altKey||O.shiftKey)return;O.preventDefault();let v=h().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")v.reverse();else if(y==="prev"||y==="next"){y==="prev"&&v.reverse();let S=v.indexOf(O.currentTarget);v=f.loop?VM(v,S+1):v.slice(S+1)}setTimeout(()=>Gv(v))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:x!=null}):s})})},"RovingFocusGroupItem")),tj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qM(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}vl(qM,"getDirectionAwareKey");function ZM(t,e,a){let r=qM(t.key,a);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return tj[r]}vl(ZM,"getFocusIntent");function Gv(t,e=!1){let a=document.activeElement;for(let r of t)if(r===a||(r.focus({preventScroll:e}),document.activeElement!==a))return}vl(Gv,"focusFirst");function VM(t,e){return t.map((a,r)=>t[(e+r)%t.length])}vl(VM,"wrapArray");var Qg=WU,Mg=ej;var Eg={};cu(Eg,{Label:()=>HM,Root:()=>nj});var jM=L(F(),1);var FM=L(G(),1),aj=Object.defineProperty,rj=(t,e)=>aj(t,"name",{value:e,configurable:!0}),HM=jM.forwardRef(rj(function(e,a){return(0,FM.jsx)(ue.label,{...e,ref:a,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),nj=HM;var Dg=L(F(),1),ij=Object.defineProperty,oj=(t,e)=>ij(t,"name",{value:e,configurable:!0});function Yv(t){let e=Dg.useRef({value:t,previous:t});return Dg.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}oj(Yv,"usePrevious");var sj=Object.defineProperty,lj=(t,e)=>sj(t,"name",{value:e,configurable:!0});function $g(t,[e,a]){return Math.min(a,Math.max(e,t))}lj($g,"clamp");var Ea={};cu(Ea,{Arrow:()=>Gj,Content:()=>Tj,Group:()=>Bj,Icon:()=>Sj,Item:()=>Xj,ItemIndicator:()=>Vj,ItemText:()=>qj,Label:()=>zj,Portal:()=>Lj,Root:()=>Oj,ScrollDownButton:()=>jj,ScrollUpButton:()=>Uj,Select:()=>Oj,SelectArrow:()=>Gj,SelectContent:()=>Tj,SelectGroup:()=>Bj,SelectIcon:()=>Sj,SelectItem:()=>Xj,SelectItemIndicator:()=>Vj,SelectItemText:()=>qj,SelectLabel:()=>zj,SelectPortal:()=>Lj,SelectScrollDownButton:()=>jj,SelectScrollUpButton:()=>Uj,SelectSeparator:()=>Fj,SelectTrigger:()=>yj,SelectValue:()=>vj,SelectViewport:()=>Mj,Separator:()=>Fj,Trigger:()=>yj,Value:()=>vj,Viewport:()=>Mj,createSelectScope:()=>hj,unstable_BubbleInput:()=>aE,unstable_Provider:()=>Jv,unstable_SelectBubbleInput:()=>aE,unstable_SelectProvider:()=>Jv});var V=L(F(),1),Kv=L(Es(),1);var le=L(G(),1),uj=Object.defineProperty,Ce=(t,e)=>uj(t,"name",{value:e,configurable:!0}),cj=[" ","Enter","ArrowUp","ArrowDown"],fj=[" ","Enter"],Mc="Select",[_g,zg,dj]=Td(Mc),[wl,hj]=ca(Mc,[dj,Vv]),Ng=Vv(),[pj,os]=wl(Mc),[mj,gj]=wl(Mc);function Jv(t){let{__scopeSelect:e,children:a,open:r,defaultOpen:n,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:f,disabled:d,required:h,form:p,internal_do_not_use_render:m}=t,x=Ng(e),[g,O]=V.useState(null),[y,b]=V.useState(null),[v,S]=V.useState(!1),w=Vi(u),[k,T]=Aa({prop:r,defaultProp:n??!1,onChange:i,caller:Mc}),[Q,D]=Aa({prop:o,defaultProp:s,onChange:l,caller:Mc}),A=V.useRef(null),R=V.useRef(Q);V.useEffect(()=>{let P=p?g?.ownerDocument.getElementById(p):g?.form;if(P instanceof HTMLFormElement){let H=Ce(()=>D(R.current),"reset");return P.addEventListener("reset",H),()=>P.removeEventListener("reset",H)}},[p,g,D]);let B=g?!!p||!!g.closest("form"):!0,[W,$]=V.useState(new Set),q=Dt(),re=Array.from(W).map(P=>P.props.value).join(";"),ie=V.useCallback(P=>{$(H=>new Set(H).add(P))},[]),z=V.useCallback(P=>{$(H=>{let N=new Set(H);return N.delete(P),N})},[]),Pe={required:h,trigger:g,onTriggerChange:O,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:v,onValueNodeHasChildrenChange:S,contentId:q,value:Q,onValueChange:D,open:k,onOpenChange:T,dir:w,triggerPointerDownPosRef:A,disabled:d,name:c,autoComplete:f,form:p,nativeOptions:W,nativeSelectKey:re,isFormControl:B};return(0,le.jsx)(QM,{...x,children:(0,le.jsx)(pj,{scope:e,...Pe,children:(0,le.jsx)(_g.Provider,{scope:e,children:(0,le.jsx)(mj,{scope:e,onNativeOptionAdd:ie,onNativeOptionRemove:z,children:rE(m)?m(Pe):a})})})})}Ce(Jv,"SelectProvider");var Oj=Ce(t=>{let{__scopeSelect:e,children:a,...r}=t;return(0,le.jsx)(Jv,{__scopeSelect:e,...r,internal_do_not_use_render:({isFormControl:n})=>(0,le.jsxs)(le.Fragment,{children:[a,n?(0,le.jsx)(aE,{__scopeSelect:e}):null]})})},"Select"),xj="SelectTrigger",yj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,disabled:n=!1,...i}=e,o=Ng(r),s=os(xj,r),l=s.disabled||n,u=Qe(a,s.onTriggerChange),c=zg(r),f=V.useRef("touch"),[d,h,p]=tS(x=>{let g=c().filter(b=>!b.disabled),O=g.find(b=>b.value===s.value),y=aS(g,x,O);y!==void 0&&s.onValueChange(y.value)}),m=Ce(x=>{l||(s.onOpenChange(!0),p()),x&&(s.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})},"handleOpen");return(0,le.jsx)(MM,{asChild:!0,...o,children:(0,le.jsx)(ue.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Nd(s.value)?"":void 0,...i,ref:u,onClick:xe(i.onClick,x=>{x.currentTarget.focus(),f.current!=="mouse"&&m(x)}),onPointerDown:xe(i.onPointerDown,x=>{f.current=x.pointerType;let g=x.target;g.hasPointerCapture(x.pointerId)&&g.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(m(x),x.preventDefault())}),onKeyDown:xe(i.onKeyDown,x=>{let g=d.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&h(x.key),!(g&&x.key===" ")&&cj.includes(x.key)&&(m(),x.preventDefault())})})})},"SelectTrigger")),bj="SelectValue",vj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,className:n,style:i,children:o,placeholder:s="",...l}=e,u=os(bj,r),{onValueNodeHasChildrenChange:c}=u,f=o!==void 0,d=Qe(a,u.onValueNodeChange);Xe(()=>{c(f)},[c,f]);let h=Nd(u.value);return(0,le.jsx)(ue.span,{...l,asChild:h?!1:l.asChild,ref:d,style:{pointerEvents:"none"},children:(0,le.jsx)(V.Fragment,{children:h?s:o},h?"placeholder":"value")})},"SelectValue")),Sj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,children:n,...i}=e;return(0,le.jsx)(ue.span,{"aria-hidden":!0,...i,ref:a,children:n||"\u25BC"})},"SelectIcon")),wj="SelectPortal",[Cj,kj]=wl(wj,{forceMount:void 0}),Lj=Ce(t=>{let{__scopeSelect:e,forceMount:a,...r}=t;return(0,le.jsx)(Cj,{scope:t.__scopeSelect,forceMount:a,children:(0,le.jsx)(og,{asChild:!0,...r})})},"SelectPortal"),Sl="SelectContent",Tj=V.forwardRef(Ce(function(e,a){let r=kj(Sl,e.__scopeSelect),{forceMount:n=r.forceMount,...i}=e,o=os(Sl,e.__scopeSelect),[s,l]=V.useState();return Xe(()=>{l(new DocumentFragment)},[]),(0,le.jsx)(as,{present:n||o.open,children:({present:u})=>u?(0,le.jsx)(Ij,{...i,ref:a}):(0,le.jsx)(Pj,{...i,fragment:s})})},"SelectContent")),Pj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,children:n,fragment:i}=e;return i?Kv.createPortal((0,le.jsx)(JM,{scope:r,children:(0,le.jsx)(_g.Slot,{scope:r,children:(0,le.jsx)("div",{ref:a,children:n})})}),i):null},"SelectContentFragment")),wn=10,[JM,ss]=wl(Sl),Rj=Ia("SelectContent.RemoveScroll"),Ij=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r}=e,{position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:l,sideOffset:u,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:m,hideWhenDetached:x,avoidCollisions:g,...O}=e,y=os(Sl,r),[b,v]=V.useState(null),[S,w]=V.useState(null),k=Qe(a,v),[T,Q]=V.useState(null),[D,A]=V.useState(null),R=zg(r),[B,W]=V.useState(!1),$=V.useRef(!1);V.useEffect(()=>{if(b)return gg(b)},[b]),kc();let q=V.useCallback(ee=>{let[Z,...qe]=R().map(Ze=>Ze.ref.current),[Re]=qe.slice(-1),Ie=document.activeElement;for(let Ze of ee)if(Ze===Ie||(Ze?.scrollIntoView({block:"nearest"}),Ze===Z&&S&&(S.scrollTop=0),Ze===Re&&S&&(S.scrollTop=S.scrollHeight),Ze?.focus(),document.activeElement!==Ie))return},[R,S]),re=V.useCallback(()=>q([T,b]),[q,T,b]);V.useEffect(()=>{B&&re()},[B,re]);let{onOpenChange:ie,triggerPointerDownPosRef:z}=y;V.useEffect(()=>{if(b){let ee={x:0,y:0},Z=Ce(Re=>{ee={x:Math.abs(Math.round(Re.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(Re.pageY)-(z.current?.y??0))}},"handlePointerMove"),qe=Ce(Re=>{ee.x<=10&&ee.y<=10?Re.preventDefault():Re.composedPath().includes(b)||ie(!1),document.removeEventListener("pointermove",Z),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",qe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",qe,{capture:!0})}}},[b,ie,z]),V.useEffect(()=>{let ee=Ce(()=>ie(!1),"close");return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[ie]);let[Pe,P]=tS(ee=>{let Z=R().filter(Ie=>!Ie.disabled),qe=Z.find(Ie=>Ie.ref.current===document.activeElement),Re=aS(Z,ee,qe);Re&&setTimeout(()=>Re.ref.current?.focus())}),H=V.useCallback((ee,Z,qe)=>{let Re=!$.current&&!qe;(y.value!==void 0&&y.value===Z||Re)&&(Q(ee),Re&&($.current=!0))},[y.value]),N=V.useCallback(()=>b?.focus(),[b]),M=V.useCallback((ee,Z,qe)=>{let Re=!$.current&&!qe;(y.value!==void 0&&y.value===Z||Re)&&A(ee)},[y.value]),j=n==="popper"?GM:Aj,de=j===GM?{side:l,sideOffset:u,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:m,hideWhenDetached:x,avoidCollisions:g}:{};return(0,le.jsx)(JM,{scope:r,content:b,viewport:S,onViewportChange:w,itemRefCallback:H,selectedItem:T,onItemLeave:N,itemTextRefCallback:M,focusSelectedItem:re,selectedItemText:D,position:n,isPositioned:B,searchRef:Pe,children:(0,le.jsx)(Qd,{as:Rj,allowPinchZoom:!0,children:(0,le.jsx)(ng,{asChild:!0,trapped:y.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:xe(i,ee=>{y.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:(0,le.jsx)(rg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,le.jsx)(j,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:ee=>ee.preventDefault(),...O,...de,onPlaced:()=>W(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:xe(O.onKeyDown,ee=>{let Z=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!Z&&ee.key.length===1&&P(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Re=R().filter(Ie=>!Ie.disabled).map(Ie=>Ie.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Re=Re.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){let Ie=ee.target,Ze=Re.indexOf(Ie);Re=Re.slice(Ze+1)}setTimeout(()=>q(Re)),ee.preventDefault()}})})})})})})},"SelectContentImpl")),Aj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,onPlaced:n,...i}=e,o=os(Sl,r),s=ss(Sl,r),[l,u]=V.useState(null),[c,f]=V.useState(null),d=Qe(a,f),h=zg(r),p=V.useRef(!1),m=V.useRef(!0),{viewport:x,selectedItem:g,selectedItemText:O,focusSelectedItem:y}=s,b=V.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&c&&x&&g&&O){let k=o.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),Q=o.valueNode.getBoundingClientRect(),D=O.getBoundingClientRect();if(o.dir!=="rtl"){let Ie=D.left-T.left,Ze=Q.left-Ie,Vt=k.left-Ze,Za=k.width+Vt,iu=Math.max(Za,T.width),Si=window.innerWidth-wn,ou=$g(Ze,[wn,Math.max(wn,Si-iu)]);l.style.minWidth=Za+"px",l.style.left=ou+"px"}else{let Ie=T.right-D.right,Ze=window.innerWidth-Q.right-Ie,Vt=window.innerWidth-k.right-Ze,Za=k.width+Vt,iu=Math.max(Za,T.width),Si=window.innerWidth-wn,ou=$g(Ze,[wn,Math.max(wn,Si-iu)]);l.style.minWidth=Za+"px",l.style.right=ou+"px"}let A=h(),R=window.innerHeight-wn*2,B=x.scrollHeight,W=window.getComputedStyle(c),$=parseInt(W.borderTopWidth,10),q=parseInt(W.paddingTop,10),re=parseInt(W.borderBottomWidth,10),ie=parseInt(W.paddingBottom,10),z=$+q+B+ie+re,Pe=Math.min(g.offsetHeight*5,z),P=window.getComputedStyle(x),H=parseInt(P.paddingTop,10),N=parseInt(P.paddingBottom,10),M=k.top+k.height/2-wn,j=R-M,de=g.offsetHeight/2,ee=g.offsetTop+de,Z=$+q+ee,qe=z-Z;if(Z<=M){let Ie=A.length>0&&g===A[A.length-1].ref.current;l.style.bottom="0px";let Ze=c.clientHeight-x.offsetTop-x.offsetHeight,Vt=Math.max(j,de+(Ie?N:0)+Ze+re),Za=Z+Vt;l.style.height=Za+"px"}else{let Ie=A.length>0&&g===A[0].ref.current;l.style.top="0px";let Vt=Math.max(M,$+x.offsetTop+(Ie?H:0)+de)+qe;l.style.height=Vt+"px",x.scrollTop=Z-M+x.offsetTop}l.style.margin=`${wn}px 0`,l.style.minHeight=Pe+"px",l.style.maxHeight=R+"px",n?.(),requestAnimationFrame(()=>p.current=!0)}},[h,o.trigger,o.valueNode,l,c,x,g,O,o.dir,n]);Xe(()=>b(),[b]);let[v,S]=V.useState();Xe(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);let w=V.useCallback(k=>{k&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,le.jsx)(Qj,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:w,children:(0,le.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:v},children:(0,le.jsx)(ue.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),GM=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,align:n="start",collisionPadding:i=wn,...o}=e,s=Ng(r);return(0,le.jsx)(EM,{...s,...o,ref:a,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Qj,eS]=wl(Sl,{}),YM="SelectViewport",Mj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,nonce:n,...i}=e,o=ss(YM,r),s=eS(YM,r),l=Qe(a,o.onViewportChange),u=V.useRef(0);return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,le.jsx)(_g.Slot,{scope:r,children:(0,le.jsx)(ue.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:xe(i.onScroll,c=>{let f=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=s;if(h?.current&&d){let p=Math.abs(u.current-f.scrollTop);if(p>0){let m=window.innerHeight-wn*2,x=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),O=Math.max(x,g);if(O<m){let y=O+p,b=Math.min(m,y),v=y-b;d.style.height=b+"px",d.style.bottom==="0px"&&(f.scrollTop=v>0?v:0,d.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})},"SelectViewport")),Ej="SelectGroup",[Dj,$j]=wl(Ej),Bj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,...n}=e,i=Dt();return(0,le.jsx)(Dj,{scope:r,id:i,children:(0,le.jsx)(ue.div,{role:"group","aria-labelledby":i,...n,ref:a})})},"SelectGroup")),_j="SelectLabel",zj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,...n}=e,i=$j(_j,r);return(0,le.jsx)(ue.div,{id:i.id,...n,ref:a})},"SelectLabel")),Wv="SelectItem",[Nj,eE]=wl(Wv),Xj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...s}=e,l=os(Wv,r),u=ss(Wv,r),c=l.value===n,[f,d]=V.useState(o??""),[h,p]=V.useState(!1),m=ya(b=>u.itemRefCallback?.(b,n,i)),x=Qe(a,m),g=Dt(),O=V.useRef("touch"),y=Ce(()=>{i||(l.onValueChange(n),l.onOpenChange(!1))},"handleSelect");return(0,le.jsx)(Nj,{scope:r,value:n,disabled:i,textId:g,isSelected:c,onItemTextChange:V.useCallback(b=>{d(v=>v||(b?.textContent??"").trim())},[]),children:(0,le.jsx)(_g.ItemSlot,{scope:r,value:n,disabled:i,textValue:f,children:(0,le.jsx)(ue.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:x,onFocus:xe(s.onFocus,()=>p(!0)),onBlur:xe(s.onBlur,()=>p(!1)),onClick:xe(s.onClick,()=>{O.current!=="mouse"&&y()}),onPointerUp:xe(s.onPointerUp,()=>{O.current==="mouse"&&y()}),onPointerDown:xe(s.onPointerDown,b=>{O.current=b.pointerType}),onPointerMove:xe(s.onPointerMove,b=>{O.current=b.pointerType,i?u.onItemLeave?.():O.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:xe(s.onPointerLeave,b=>{b.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:xe(s.onKeyDown,b=>{i||b.target!==b.currentTarget||u.searchRef?.current!==""&&b.key===" "||(fj.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})},"SelectItem")),Bg="SelectItemText",qj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,className:n,style:i,...o}=e,s=os(Bg,r),l=ss(Bg,r),u=eE(Bg,r),c=gj(Bg,r),[f,d]=V.useState(null),h=ya(y=>l.itemTextRefCallback?.(y,u.value,u.disabled)),p=Qe(a,d,u.onItemTextChange,h),m=f?.textContent,x=V.useMemo(()=>(0,le.jsx)("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:O}=c;return Xe(()=>(g(x),()=>O(x)),[g,O,x]),(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(ue.span,{id:u.textId,...o,ref:p}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!Nd(s.value)?Kv.createPortal(o.children,s.valueNode):null]})},"SelectItemText")),Zj="SelectItemIndicator",Vj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,...n}=e;return eE(Zj,r).isSelected?(0,le.jsx)(ue.span,{"aria-hidden":!0,...n,ref:a}):null},"SelectItemIndicator")),WM="SelectScrollUpButton",Uj=V.forwardRef(Ce(function(e,a){let r=ss(WM,e.__scopeSelect),n=eS(WM,e.__scopeSelect),[i,o]=V.useState(!1),s=Qe(a,n.onScrollButtonChange);return Xe(()=>{if(r.viewport&&r.isPositioned){let u=function(){let f=c.scrollTop>0;o(f)};var l=u;Ce(u,"handleScroll");let c=r.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?(0,le.jsx)(tE,{...e,ref:s,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),KM="SelectScrollDownButton",jj=V.forwardRef(Ce(function(e,a){let r=ss(KM,e.__scopeSelect),n=eS(KM,e.__scopeSelect),[i,o]=V.useState(!1),s=Qe(a,n.onScrollButtonChange);return Xe(()=>{if(r.viewport&&r.isPositioned){let u=function(){let f=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<f;o(d)};var l=u;Ce(u,"handleScroll");let c=r.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?(0,le.jsx)(tE,{...e,ref:s,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),tE=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,onAutoScroll:n,...i}=e,o=ss("SelectScrollButton",r),s=V.useRef(null),l=zg(r),u=V.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return V.useEffect(()=>()=>u(),[u]),Xe(()=>{l().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,le.jsx)(ue.div,{"aria-hidden":!0,...i,ref:a,style:{flexShrink:0,...i.style},onPointerDown:xe(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:xe(i.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:xe(i.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),Fj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,...n}=e;return(0,le.jsx)(ue.div,{"aria-hidden":!0,...n,ref:a})},"SelectSeparator")),Hj="SelectArrow",Gj=V.forwardRef(Ce(function(e,a){let{__scopeSelect:r,...n}=e,i=Ng(r);return ss(Hj,r).position==="popper"?(0,le.jsx)(DM,{...i,...n,ref:a}):null},"SelectArrow")),Yj="SelectBubbleInput",aE=V.forwardRef(Ce(function({__scopeSelect:e,...a},r){let n=os(Yj,e),{value:i,onValueChange:o,required:s,disabled:l,name:u,autoComplete:c,form:f}=n,{nativeOptions:d,nativeSelectKey:h}=n,p=V.useRef(null),m=Qe(r,p),x=i??"",g=Yv(x),O=Array.from(d).some(y=>(y.props.value??"")==="");return V.useEffect(()=>{let y=p.current;if(!y)return;let b=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(b,"value").set;if(g!==x&&S){let w=new Event("change",{bubbles:!0});S.call(y,x),y.dispatchEvent(w)}},[g,x]),(0,le.jsxs)(ue.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:u,autoComplete:c,disabled:l,form:f,onChange:y=>o(y.target.value),...a,style:{...bQ,...a.style},ref:m,defaultValue:x,children:[Nd(i)&&!O?(0,le.jsx)("option",{value:""}):null,Array.from(d)]},h)},"SelectBubbleInput"));function rE(t){return typeof t=="function"}Ce(rE,"isFunction");function Nd(t){return t===""||t===void 0}Ce(Nd,"shouldShowPlaceholder");function tS(t){let e=ya(t),a=V.useRef(""),r=V.useRef(0),n=V.useCallback(o=>{let s=a.current+o;e(s),Ce((function l(u){a.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(s)},[e]),i=V.useCallback(()=>{a.current="",window.clearTimeout(r.current)},[]);return V.useEffect(()=>()=>window.clearTimeout(r.current),[]),[a,n,i]}Ce(tS,"useTypeaheadSearch");function aS(t,e,a){let n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=a?t.indexOf(a):-1,o=nE(t,Math.max(i,0));n.length===1&&(o=o.filter(u=>u!==a));let l=o.find(u=>u.textValue.toLowerCase().startsWith(n.toLowerCase()));return l!==a?l:void 0}Ce(aS,"findNextItem");function nE(t,e){return t.map((a,r)=>t[(e+r)%t.length])}Ce(nE,"wrapArray");var Cl={};cu(Cl,{Content:()=>sF,List:()=>iF,Root:()=>nF,Tabs:()=>oE,TabsContent:()=>uE,TabsList:()=>sE,TabsTrigger:()=>lE,Trigger:()=>oF,createTabsScope:()=>Jj});var Yi=L(F(),1);var Gi=L(G(),1),Wj=Object.defineProperty,Ec=(t,e)=>Wj(t,"name",{value:e,configurable:!0}),rS="Tabs",[Kj,Jj]=ca(rS,[Qc]),iE=Qc(),[eF,nS]=Kj(rS),oE=Yi.forwardRef(Ec(function(e,a){let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:l,activationMode:u="automatic",...c}=e,f=Vi(l),[d,h]=Aa({prop:n,onChange:i,defaultProp:o??"",caller:rS});return(0,Gi.jsx)(eF,{scope:r,baseId:Dt(),value:d,onValueChange:h,orientation:s,dir:f,activationMode:u,children:(0,Gi.jsx)(ue.div,{dir:f,"data-orientation":s,...c,ref:a})})},"Tabs")),tF="TabsList",sE=Yi.forwardRef(Ec(function(e,a){let{__scopeTabs:r,loop:n=!0,...i}=e,o=nS(tF,r),s=iE(r);return(0,Gi.jsx)(Qg,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:n,children:(0,Gi.jsx)(ue.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:a})})},"TabsList")),aF="TabsTrigger",lE=Yi.forwardRef(Ec(function(e,a){let{__scopeTabs:r,value:n,disabled:i=!1,...o}=e,s=nS(aF,r),l=iE(r),u=iS(s.baseId,n),c=oS(s.baseId,n),f=n===s.value;return(0,Gi.jsx)(Mg,{asChild:!0,...l,focusable:!i,active:f,children:(0,Gi.jsx)(ue.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...o,ref:a,onMouseDown:xe(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:xe(e.onKeyDown,d=>{i||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:xe(e.onFocus,()=>{let d=s.activationMode!=="manual";!f&&!i&&d&&s.onValueChange(n)})})})},"TabsTrigger")),rF="TabsContent",uE=Yi.forwardRef(Ec(function(e,a){let{__scopeTabs:r,value:n,forceMount:i,children:o,...s}=e,l=nS(rF,r),u=iS(l.baseId,n),c=oS(l.baseId,n),f=n===l.value,d=Yi.useRef(f);return Yi.useEffect(()=>{let h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),(0,Gi.jsx)(as,{present:i||f,children:({present:h})=>(0,Gi.jsx)(ue.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:c,tabIndex:0,...s,ref:a,style:{...e.style,animationDuration:d.current?"0s":void 0},children:h&&o})})},"TabsContent"));function iS(t,e){return`${t}-trigger-${e}`}Ec(iS,"makeTriggerId");function oS(t,e){return`${t}-content-${e}`}Ec(oS,"makeContentId");var nF=oE,iF=sE,oF=lE,sF=uE;var cE=L(F(),1);var fE=L(G(),1),lF=Object.defineProperty,uF=(t,e)=>lF(t,"name",{value:e,configurable:!0}),cF="Toggle",dE=cE.forwardRef(uF(function(e,a){let{pressed:r,defaultPressed:n,onPressedChange:i,...o}=e,[s,l]=Aa({prop:r,onChange:i,defaultProp:n??!1,caller:cF});return(0,fE.jsx)(ue.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:a,onClick:xe(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle"));var Xd={};cu(Xd,{Item:()=>xF,Root:()=>hF,ToggleGroup:()=>hF,ToggleGroupItem:()=>xF,createToggleGroupScope:()=>dF});var $a=L(F(),1);var Da=L(G(),1),fF=Object.defineProperty,ls=(t,e)=>fF(t,"name",{value:e,configurable:!0}),Dc="ToggleGroup",[pE,dF]=ca(Dc,[Qc]),mE=Qc(),hF=$a.forwardRef(ls(function(e,a){let{type:r,...n}=e;if(r==="single")return(0,Da.jsx)(pF,{role:"radiogroup",...n,ref:a});if(r==="multiple")return(0,Da.jsx)(mF,{role:"toolbar",...n,ref:a});throw new Error(`Missing prop \`type\` expected on \`${Dc}\``)},"ToggleGroup")),[gE,OE]=pE(Dc),pF=$a.forwardRef(ls(function(e,a){let{value:r,defaultValue:n,onValueChange:i=ls(()=>{},"onValueChange"),...o}=e,[s,l]=Aa({prop:r,defaultProp:n??"",onChange:i,caller:Dc});return(0,Da.jsx)(gE,{scope:e.__scopeToggleGroup,type:"single",value:$a.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:$a.useCallback(()=>l(""),[l]),children:(0,Da.jsx)(xE,{...o,ref:a})})},"ToggleGroupImplSingle")),mF=$a.forwardRef(ls(function(e,a){let{value:r,defaultValue:n,onValueChange:i=ls(()=>{},"onValueChange"),...o}=e,[s,l]=Aa({prop:r,defaultProp:n??[],onChange:i,caller:Dc}),u=$a.useCallback(f=>l((d=[])=>[...d,f]),[l]),c=$a.useCallback(f=>l((d=[])=>d.filter(h=>h!==f)),[l]);return(0,Da.jsx)(gE,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:u,onItemDeactivate:c,children:(0,Da.jsx)(xE,{...o,ref:a})})},"ToggleGroupImplMultiple")),[gF,OF]=pE(Dc),xE=$a.forwardRef(ls(function(e,a){let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:i=!0,orientation:o,dir:s,loop:l=!0,...u}=e,c=mE(r),f=Vi(s),d={dir:f,...u};return(0,Da.jsx)(gF,{scope:r,rovingFocus:i,disabled:n,children:i?(0,Da.jsx)(Qg,{asChild:!0,...c,orientation:o,dir:f,loop:l,children:(0,Da.jsx)(ue.div,{...d,ref:a})}):(0,Da.jsx)(ue.div,{...d,ref:a})})},"ToggleGroupImpl")),sS="ToggleGroupItem",xF=$a.forwardRef(ls(function(e,a){let r=OE(sS,e.__scopeToggleGroup),n=OF(sS,e.__scopeToggleGroup),i=mE(e.__scopeToggleGroup),o=r.value.includes(e.value),s=n.disabled||e.disabled,l={...e,pressed:o,disabled:s},u=$a.useRef(null);return n.rovingFocus?(0,Da.jsx)(Mg,{asChild:!0,...i,focusable:!s,active:o,ref:u,children:(0,Da.jsx)(hE,{...l,ref:a})}):(0,Da.jsx)(hE,{...l,ref:a})},"ToggleGroupItem")),hE=$a.forwardRef(ls(function(e,a){let{__scopeToggleGroup:r,value:n,...i}=e,o=OE(sS,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=o.type==="single"?s:void 0;return(0,Da.jsx)(dE,{...l,...i,ref:a,onPressedChange:u=>{u?o.onItemActivate(n):o.onItemDeactivate(n)}})},"ToggleGroupItemImpl"));var yE=L(G(),1),yF=oi("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function hi({className:t,variant:e="default",asChild:a=!1,...r}){let n=a?yc.Root:"span";return(0,yE.jsx)(n,{"data-slot":"badge","data-variant":e,className:pe(yF({variant:e}),t),...r})}var Sie=L(F(),1);var us=L(G(),1);function kl({className:t,...e}){return(0,us.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,us.jsx)("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",t),...e})})}function bE({className:t,...e}){return(0,us.jsx)("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",t),...e})}function Ll({className:t,...e}){return(0,us.jsx)("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",t),...e})}function Tl({className:t,...e}){return(0,us.jsx)("tr",{"data-slot":"table-row",className:pe("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",t),...e})}function Pl({className:t,...e}){return(0,us.jsx)("th",{"data-slot":"table-head",className:pe("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function Cn({className:t,...e}){return(0,us.jsx)("td",{"data-slot":"table-cell",className:pe("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}var kn=L(G(),1);function cs({faultsByFile:t,label:e}){let a=n=>n.some(({data:i})=>i.severity==="error"),r=Object.entries(t.data.files).sort(([,n],[,i])=>Number(a(i))-Number(a(n)));return(0,kn.jsx)("div",{className:"overflow-hidden rounded-[14px] border bg-background",children:(0,kn.jsx)(kl,{"aria-label":e,children:(0,kn.jsx)(Ll,{children:r.map(([n,i])=>(0,kn.jsxs)(Tl,{className:"border-zinc-100 align-top hover:bg-transparent",children:[(0,kn.jsx)(Cn,{className:`w-[210px] py-[11px] pl-4 font-mono text-[11.5px] font-bold whitespace-normal break-all ${a(i)?"text-destructive":""}`,children:n}),(0,kn.jsx)(Cn,{className:"space-y-1.5 py-[11px] pr-4 whitespace-normal",children:[...i].sort((o,s)=>+(s.data.severity==="error")-+(o.data.severity==="error")).map(({data:{severity:o,message:s,fix:l}})=>(0,kn.jsxs)("p",{className:"text-xs leading-[1.55] text-zinc-700",children:[(0,kn.jsx)(hi,{className:`mr-2 rounded-[5px] px-[7px] py-0 align-[1px] text-[11.5px] font-bold tracking-[0.04em] [font-variant-caps:all-small-caps] ${o==="error"?"bg-[#fdeef0] text-[#b91c1c]":"bg-[#fffbeb] text-[#b45309]"}`,children:o}),s," ",(0,kn.jsx)("span",{className:"text-zinc-400",children:l})]},s))})]},n))})})})}var Pie=L(F(),1);var Xg=L(G(),1),bF=oi("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function Ur({className:t,variant:e,...a}){return(0,Xg.jsx)("div",{"data-slot":"alert",role:"alert",className:pe(bF({variant:e}),t),...a})}function jr({className:t,...e}){return(0,Xg.jsx)("div",{"data-slot":"alert-title",className:pe("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...e})}function Fr({className:t,...e}){return(0,Xg.jsx)("div",{"data-slot":"alert-description",className:pe("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",t),...e})}var Qie=L(F(),1);var vE=L(G(),1),vF=oi("inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[10px] text-xs font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-45 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"border border-primary bg-primary font-semibold text-primary-foreground hover:bg-black",destructive:"border bg-background text-destructive hover:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"border bg-background text-zinc-600 hover:border-foreground hover:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground 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-8 px-3.5 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1.5 rounded-[9px] px-2.5 text-[11.5px] has-[>svg]:px-2",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ae({className:t,variant:e="default",size:a="default",asChild:r=!1,...n}){let i=r?yc.Root:"button";return(0,vE.jsx)(i,{"data-slot":"button","data-variant":e,"data-size":a,className:pe(vF({variant:e,size:a,className:t})),...n})}var _e=L(G(),1);function SE({onBuilt:t}){let e=PA(),a=jm();if(e.data===void 0)return null;let r=e.data;if(r.type==="FaultsByFile")return(0,_e.jsx)(kE,{faultsByFile:r});let{added:n,edited:i,deleted:o,unchanged:s}=r.data,l=[...n.map(u=>["create",u]),...i.map(u=>["update",u]),...o.map(u=>["delete",u]),...s.map(u=>["unchanged",u])];return(0,_e.jsxs)("div",{className:"-mt-[18px]",children:[(0,_e.jsxs)("div",{className:"-mx-5 flex items-center gap-2.5 border-b border-[#f0f0f0] bg-[#f5f8ff] px-4 py-3.5",children:[(0,_e.jsx)("i",{className:"size-2 shrink-0 rounded-full bg-[#1d4ed8]"}),(0,_e.jsx)("span",{className:"text-[12.5px] font-bold",children:"Nothing was written"}),(0,_e.jsxs)("p",{className:"min-w-0 text-[11.5px] leading-normal text-zinc-500","aria-label":"Plan counts",children:[l.length," file",l.length===1?"":"s",": ",n.length," create, ",i.length," update, ",o.length," delete,"," ",s.length," unchanged."]})]}),(0,_e.jsx)("div",{className:"-mx-5",children:(0,_e.jsx)(kl,{"aria-label":"Build plan",children:(0,_e.jsx)(Ll,{children:l.map(([u,c])=>(0,_e.jsx)(CE,{pathChange:u,path:c},c))})})}),(0,_e.jsx)("div",{className:li,children:(0,_e.jsx)(Ae,{disabled:a.isPending,onClick:()=>a.mutate(void 0,{onSuccess:t}),children:"Build"})})]})}function wE({buildAnswer:t}){if(t.type==="FaultsByFile")return(0,_e.jsx)(kE,{faultsByFile:t});let{added:e,edited:a,deleted:r}=t.data,n=[...e,...a];return(0,_e.jsxs)("div",{className:"-mt-[18px] -mb-[18px]",children:[(0,_e.jsxs)("div",{className:"-mx-5 flex items-center gap-2.5 border-b border-[#f0f0f0] bg-[#f5fbf7] px-4 py-3.5",children:[(0,_e.jsx)("i",{className:"size-2 shrink-0 rounded-full bg-[#16a34a]"}),(0,_e.jsxs)("p",{className:"text-[12.5px] font-bold","aria-label":"Build counts",children:["Built ",n.length," file",n.length===1?"":"s",": ",e.length," added, ",a.length," changed, ",r.length," deleted."]})]}),(0,_e.jsx)("div",{className:"-mx-5",children:(0,_e.jsx)(kl,{"aria-label":"Build written",children:(0,_e.jsx)(Ll,{children:[...n.map(i=>["wrote",i]),...r.map(i=>["deleted",i])].map(([i,o])=>(0,_e.jsx)(CE,{pathChange:i,path:o},o))})})})]})}var SF={create:"bg-[#f0fdf4] text-[#15803d]",wrote:"bg-[#f0fdf4] text-[#15803d]",update:"bg-[#eff6ff] text-[#1d4ed8]",delete:"bg-[#fdeef0] text-[#b91c1c]",deleted:"bg-[#fdeef0] text-[#b91c1c]",unchanged:"bg-zinc-50 text-zinc-400"};function CE({pathChange:t,path:e}){return(0,_e.jsxs)(Tl,{className:"border-zinc-100 hover:bg-transparent",children:[(0,_e.jsx)(Cn,{className:"w-28 py-[11px] pl-4",children:(0,_e.jsx)("span",{className:`rounded-[5px] px-[7px] py-0.5 text-[9.5px] font-bold tracking-[0.04em] uppercase ${SF[t]}`,children:t})}),(0,_e.jsx)(Cn,{className:"py-[11px] pr-4 font-mono text-[11.5px] font-bold",children:e})]})}function kE({faultsByFile:t}){return(0,_e.jsxs)("div",{className:"space-y-3.5",children:[(0,_e.jsxs)(Ur,{variant:"destructive",className:"rounded-xl border-[#f6d9d9] bg-[#fef6f6]",children:[(0,_e.jsx)(jr,{className:"text-[12.5px] font-bold text-foreground",children:"Nothing was written"}),(0,_e.jsx)(Fr,{children:"The charter has errors, so there is no build until they are fixed."})]}),(0,_e.jsx)(cs,{faultsByFile:t,label:"Refused files"})]})}var yr=L(G(),1);function LE({onBuilt:t}){let e=RA(),a=jm();if(e.data===void 0)return null;let{agents:r,errorCount:n,warnCount:i,pendingCount:o,faultsByFile:s,driftedVendors:l,problemCount:u}=e.data.data,c=[["Agents",r.length===0?"none chosen, so only the neutral surface is compiled.":`${r.join(", ")}.`],["Charter",n>0?`${n} error${n===1?"":"s"}.`:i===0?"holds.":`holds, with ${i} warning${i===1?"":"s"}.`],["Vendors",l.length===0?"none edited here.":`edited here: ${l.join(", ")}. Run "git checkout" under .cw/vendor/ to undo, or commit what you meant.`],["Built",o===null?"not known, since the charter does not hold.":o===0?"up to date.":`${o} file${o===1?"":"s"} out of date.`]],[f,d]=n>0?["bg-[#fef6f6]","bg-[#b91c1c]"]:i>0?["bg-[#fffbeb]","bg-[#b45309]"]:["bg-[#f5fbf7]","bg-[#16a34a]"];return(0,yr.jsxs)("div",{className:"-mt-[18px] space-y-4",children:[(0,yr.jsxs)("div",{className:`-mx-5 flex items-center gap-2.5 border-b border-[#f0f0f0] px-4 py-3.5 ${f}`,children:[(0,yr.jsx)("i",{className:`size-2 shrink-0 rounded-full ${d}`}),(0,yr.jsx)("span",{className:"text-[12.5px] font-bold",children:u===0?"Nothing to fix.":`${u} thing${u===1?"":"s"} to fix.`})]}),(0,yr.jsx)("dl",{className:"overflow-hidden rounded-[11px] border border-[#f0f0f0]","aria-label":"Health",children:c.map(([h,p])=>(0,yr.jsxs)("div",{className:"flex items-baseline gap-3 border-b border-zinc-100 px-[13px] py-2.5 last:border-b-0",children:[(0,yr.jsx)("dt",{className:"w-[118px] shrink-0 text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:h}),(0,yr.jsx)("dd",{className:"text-xs",children:p})]},h))}),Object.keys(s.data.files).length>0&&(0,yr.jsx)(cs,{faultsByFile:s,label:"Faults"}),o!==null&&o>0&&(0,yr.jsx)("div",{className:li,children:(0,yr.jsx)(Ae,{disabled:a.isPending,onClick:()=>a.mutate(void 0,{onSuccess:t}),children:"Build"})})]})}var ke=L(G(),1);function TE({identity:t,onExplain:e}){let{data:a}=SA(t);if(a===void 0)return null;if(a.type==="Fault")return(0,ke.jsxs)(pi,{title:"Not in this charter",children:[a.data.message," ",(0,ke.jsx)("span",{className:"text-muted-foreground",children:a.data.fix})]});if(a.type==="FaultsByFile")return(0,ke.jsx)(pi,{title:"Not read",children:"The engine will not read this charter, so there is nothing to explain."});let{scopedPrimitive:r,activatesWhen:n,useMixins:i,rationale:o,hosts:s,citers:l,testCasesByFile:u}=a.data,{kind:c,description:f,file:d,scope:h,headers:p}=r.data,m=({data:y})=>(0,ke.jsx)(Ae,{variant:"link",className:"h-auto rounded-none p-0 font-mono text-[11.5px] font-normal text-[#1d4ed8] underline underline-offset-2",onClick:()=>e(y.identity),children:y.identity},y.identity),x=o===void 0&&typeof p.rationale=="string"?p.rationale:void 0,g=Object.entries(u.data),O=Object.entries(p).filter(([y])=>y!=="id"&&y!=="description");return(0,ke.jsxs)("div",{className:"-mx-5 -my-[18px]",children:[(0,ke.jsxs)(pi,{title:"What it is",children:[(0,ke.jsx)("b",{className:"font-semibold text-foreground capitalize",children:c})," \u2014 ",f]}),(0,ke.jsx)(pi,{title:"When it comes up",children:n}),O.length>0&&(0,ke.jsx)(pi,{title:"What it declares",children:(0,ke.jsx)("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 font-mono text-[11.5px]",children:O.map(([y,b])=>(0,ke.jsxs)("div",{className:"contents",children:[(0,ke.jsx)("dt",{className:"text-zinc-400",children:y}),(0,ke.jsx)("dd",{children:typeof b=="string"?b:b.join(", ")})]},y))})}),(i.length>0||o!==void 0||x!==void 0)&&(0,ke.jsxs)(pi,{title:"What it pulls in",children:[i.map(y=>(0,ke.jsxs)("div",{children:[m(y)," ",(0,ke.jsx)("span",{className:"text-zinc-500",children:"lends its body"})]},y.data.identity)),o!==void 0&&(0,ke.jsxs)("div",{children:[m(o)," ",(0,ke.jsx)("span",{className:"text-zinc-500",children:"the reasoning it cites"})]}),x!==void 0&&(0,ke.jsxs)("div",{className:"text-destructive",children:[(0,ke.jsx)("span",{className:"font-mono",children:x})," (does not resolve)"]})]}),s.length>0&&(0,ke.jsx)(pi,{title:"Lent to",children:s.map(y=>(0,ke.jsx)("div",{children:m(y)},y.data.identity))}),l.length>0&&(0,ke.jsx)(pi,{title:"Cited by",children:l.map(y=>(0,ke.jsx)("div",{children:m(y)},y.data.identity))}),(0,ke.jsx)(pi,{title:"Tested by",children:g.length===0?(0,ke.jsx)("span",{className:"text-zinc-400",children:"No test case names it."}):g.map(([y,b])=>(0,ke.jsxs)("div",{children:[(0,ke.jsx)("span",{className:"font-mono text-[11px] text-foreground",children:y}),b.map(v=>(0,ke.jsx)("div",{className:"py-0.5 pl-3 font-mono text-[11px]",children:v},v))]},y))}),(0,ke.jsxs)(pi,{title:"File",children:[(0,ke.jsx)("span",{className:"font-mono text-[11.5px] text-foreground",children:d})," ",(0,ke.jsxs)("span",{className:"text-zinc-500",children:["in the ",h," layer"]})]})]})}function pi({title:t,children:e}){return(0,ke.jsxs)("section",{"aria-label":t,className:"border-b border-zinc-100 px-4 py-3.5 last:border-b-0",children:[(0,ke.jsx)("h3",{className:"mb-[7px] text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:t}),(0,ke.jsx)("div",{className:"text-[12.5px] leading-[1.65] text-zinc-700",children:e})]})}var ff=L(F(),1);var lz=L(F(),1);var uS=[],AE=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,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let e=0,a=uS.length;;){let r=e+a>>1;if(t<uS[r])a=r;else if(t>=AE[r])e=r+1;else return!0;if(e==a)return!1}}function PE(t){return t>=127462&&t<=127487}var RE=8205;function QE(t,e,a=!0,r=!0){return(a?ME:CF)(t,e,r)}function ME(t,e,a){if(e==t.length)return e;e&&EE(t.charCodeAt(e))&&DE(t.charCodeAt(e-1))&&e--;let r=lS(t,e);for(e+=IE(r);e<t.length;){let n=lS(t,e);if(r==RE||n==RE||a&&wF(n))e+=IE(n),r=n;else if(PE(n)){let i=0,o=e-2;for(;o>=0&&PE(lS(t,o));)i++,o-=2;if(i%2==0)break;e+=2}else break}return e}function CF(t,e,a){for(;e>1;){let r=ME(t,e-2,a);if(r<e)return r;e--}return 0}function lS(t,e){let a=t.charCodeAt(e);if(!DE(a)||e+1==t.length)return a;let r=t.charCodeAt(e+1);return EE(r)?(a-55296<<10)+(r-56320)+65536:a}function EE(t){return t>=56320&&t<57344}function DE(t){return t>=55296&&t<56320}function IE(t){return t<65536?1:2}var Le=class t{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,a,r){[e,a]=Nc(this,e,a);let n=[];return this.decompose(0,e,n,2),r.length&&r.decompose(0,r.length,n,3),this.decompose(a,this.length,n,1),Bc.from(n,this.length-(a-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,a=this.length){[e,a]=Nc(this,e,a);let r=[];return this.decompose(e,a,r,0),Bc.from(r,a-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let a=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),n=new Ql(this),i=new Ql(e);for(let o=a,s=a;;){if(n.next(o),i.next(o),o=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(s+=n.value.length,n.done||s>=r)return!0}}iter(e=1){return new Ql(this,e)}iterRange(e,a=this.length){return new jg(this,e,a)}iterLines(e,a){let r;if(e==null)r=this.iter();else{a==null&&(a=this.lines+1);let n=this.line(e).from;r=this.iterRange(n,Math.max(n,a==this.lines+1?this.length:a<=1?0:this.line(a-1).to))}return new Fg(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?t.empty:e.length<=32?new br(e):Bc.from(br.split(e,[]))}},br=class t extends Le{constructor(e,a=kF(e)){super(),this.text=e,this.length=a}get lines(){return this.text.length}get children(){return null}lineInner(e,a,r,n){for(let i=0;;i++){let o=this.text[i],s=n+o.length;if((a?r:s)>=e)return new fS(n,s,r,o);n=s+1,r++}}decompose(e,a,r,n){let i=e<=0&&a>=this.length?this:new t($E(this.text,e,a),Math.min(a,this.length)-Math.max(0,e));if(n&1){let o=r.pop(),s=Ug(i.text,o.text.slice(),0,i.length);if(s.length<=32)r.push(new t(s,o.length+i.length));else{let l=s.length>>1;r.push(new t(s.slice(0,l)),new t(s.slice(l)))}}else r.push(i)}replace(e,a,r){if(!(r instanceof t))return super.replace(e,a,r);[e,a]=Nc(this,e,a);let n=Ug(this.text,Ug(r.text,$E(this.text,0,e)),a),i=this.length+r.length-(a-e);return n.length<=32?new t(n,i):Bc.from(t.split(n,[]),i)}sliceString(e,a=this.length,r=`
|
|
50
|
+
`){[e,a]=Nc(this,e,a);let n="";for(let i=0,o=0;i<=a&&o<this.text.length;o++){let s=this.text[o],l=i+s.length;i>e&&o&&(n+=r),e<l&&a>i&&(n+=s.slice(Math.max(0,e-i),a-i)),i=l+1}return n}flatten(e){for(let a of this.text)e.push(a)}scanIdentical(){return 0}static split(e,a){let r=[],n=-1;for(let i of e)r.push(i),n+=i.length+1,r.length==32&&(a.push(new t(r,n)),r=[],n=-1);return n>-1&&a.push(new t(r,n)),a}},Bc=class t extends Le{constructor(e,a){super(),this.children=e,this.length=a,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,a,r,n){for(let i=0;;i++){let o=this.children[i],s=n+o.length,l=r+o.lines-1;if((a?l:s)>=e)return o.lineInner(e,a,r,n);n=s+1,r=l+1}}decompose(e,a,r,n){for(let i=0,o=0;o<=a&&i<this.children.length;i++){let s=this.children[i],l=o+s.length;if(e<=l&&a>=o){let u=n&((o<=e?1:0)|(l>=a?2:0));o>=e&&l<=a&&!u?r.push(s):s.decompose(e-o,a-o,r,u)}o=l+1}}replace(e,a,r){if([e,a]=Nc(this,e,a),r.lines<this.lines)for(let n=0,i=0;n<this.children.length;n++){let o=this.children[n],s=i+o.length;if(e>=i&&a<=s){let l=o.replace(e-i,a-i,r),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[n]=l,new t(c,this.length-(a-e)+r.length)}return super.replace(i,s,l)}i=s+1}return super.replace(e,a,r)}sliceString(e,a=this.length,r=`
|
|
51
|
+
`){[e,a]=Nc(this,e,a);let n="";for(let i=0,o=0;i<this.children.length&&o<=a;i++){let s=this.children[i],l=o+s.length;o>e&&i&&(n+=r),e<l&&a>o&&(n+=s.sliceString(e-o,a-o,r)),o=l+1}return n}flatten(e){for(let a of this.children)a.flatten(e)}scanIdentical(e,a){if(!(e instanceof t))return 0;let r=0,[n,i,o,s]=a>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=a,i+=a){if(n==o||i==s)return r;let l=this.children[n],u=e.children[i];if(l!=u)return r+l.scanIdentical(u,a);r+=l.length+1}}static from(e,a=e.reduce((r,n)=>r+n.length+1,-1)){let r=0;for(let h of e)r+=h.lines;if(r<32){let h=[];for(let p of e)p.flatten(h);return new br(h,a)}let n=Math.max(32,r>>5),i=n<<1,o=n>>1,s=[],l=0,u=-1,c=[];function f(h){let p;if(h.lines>i&&h instanceof t)for(let m of h.children)f(m);else h.lines>o&&(l>o||!l)?(d(),s.push(h)):h instanceof br&&l&&(p=c[c.length-1])instanceof br&&h.lines+p.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new br(p.text.concat(h.text),p.length+1+h.length)):(l+h.lines>n&&d(),l+=h.lines,u+=h.length+1,c.push(h))}function d(){l!=0&&(s.push(c.length==1?c[0]:t.from(c,u)),u=-1,l=c.length=0)}for(let h of e)f(h);return d(),s.length==1?s[0]:new t(s,a)}};Le.empty=new br([""],0);function kF(t){let e=-1;for(let a of t)e+=a.length+1;return e}function Ug(t,e,a=0,r=1e9){for(let n=0,i=0,o=!0;i<t.length&&n<=r;i++){let s=t[i],l=n+s.length;l>=a&&(l>r&&(s=s.slice(0,r-n)),n<a&&(s=s.slice(a-n)),o?(e[e.length-1]+=s,o=!1):e.push(s)),n=l+1}return e}function $E(t,e,a){return Ug(t,[""],e,a)}var Ql=class{constructor(e,a=1){this.dir=a,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[a>0?1:(e instanceof br?e.text.length:e.children.length)<<1]}nextInner(e,a){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,n=this.nodes[r],i=this.offsets[r],o=i>>1,s=n instanceof br?n.text.length:n.children.length;if(o==(a>0?s:0)){if(r==0)return this.done=!0,this.value="",this;a>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(a>0?0:1)){if(this.offsets[r]+=a,e==0)return this.lineBreak=!0,this.value=`
|
|
52
|
+
`,this;e--}else if(n instanceof br){let l=n.text[o+(a<0?-1:0)];if(this.offsets[r]+=a,l.length>Math.max(0,e))return this.value=e==0?l:a>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=n.children[o+(a<0?-1:0)];e>l.length?(e-=l.length,this.offsets[r]+=a):(a<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(a>0?1:(l instanceof br?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},jg=class{constructor(e,a,r){this.value="",this.done=!1,this.cursor=new Ql(e,a>r?-1:1),this.pos=a>r?e.length:0,this.from=Math.min(a,r),this.to=Math.max(a,r)}nextInner(e,a){if(a<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,a<0?this.pos-this.to:this.from-this.pos);let r=a<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*a,this.value=n.length<=r?n:a<0?n.slice(n.length-r):n.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Fg=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:a,lineBreak:r,value:n}=this.inner.next(e);return a&&this.afterBreak?(this.value="",this.afterBreak=!1):a?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Le.prototype[Symbol.iterator]=function(){return this.iter()},Ql.prototype[Symbol.iterator]=jg.prototype[Symbol.iterator]=Fg.prototype[Symbol.iterator]=function(){return this});var fS=class{constructor(e,a,r,n){this.from=e,this.to=a,this.number=r,this.text=n}get length(){return this.to-this.from}};function Nc(t,e,a){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,a))]}function Jt(t,e,a=!0,r=!0){return QE(t,e,a,r)}function LF(t){return t>=56320&&t<57344}function TF(t){return t>=55296&&t<56320}function CS(t,e){let a=t.charCodeAt(e);if(!TF(a)||e+1==t.length)return a;let r=t.charCodeAt(e+1);return LF(r)?(a-55296<<10)+(r-56320)+65536:a}function kS(t){return t<65536?1:2}var dS=/\r\n?|\n/,ha=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(ha||(ha={})),Wi=class t{constructor(e){this.sections=e}get length(){let e=0;for(let a=0;a<this.sections.length;a+=2)e+=this.sections[a];return e}get newLength(){let e=0;for(let a=0;a<this.sections.length;a+=2){let r=this.sections[a+1];e+=r<0?this.sections[a]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let a=0,r=0,n=0;a<this.sections.length;){let i=this.sections[a++],o=this.sections[a++];o<0?(e(r,n,i),n+=i):n+=o,r+=i}}iterChangedRanges(e,a=!1){hS(this,e,a)}get invertedDesc(){let e=[];for(let a=0;a<this.sections.length;){let r=this.sections[a++],n=this.sections[a++];n<0?e.push(r,n):e.push(n,r)}return new t(e)}composeDesc(e){return this.empty?e:e.empty?this:XE(this,e)}mapDesc(e,a=!1){return e.empty?this:pS(this,e,a)}mapPos(e,a=-1,r=ha.Simple){let n=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],l=this.sections[o++],u=n+s;if(l<0){if(u>e)return i+(e-n);i+=s}else{if(r!=ha.Simple&&u>=e&&(r==ha.TrackDel&&n<e&&u>e||r==ha.TrackBefore&&n<e||r==ha.TrackAfter&&u>e))return null;if(u>e||u==e&&a<0&&!s)return e==n||a<0?i:i+l;i+=l}n=u}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return i}touchesRange(e,a=e){for(let r=0,n=0;r<this.sections.length&&n<=a;){let i=this.sections[r++],o=this.sections[r++],s=n+i;if(o>=0&&n<=a&&s>=e)return n<e&&s>a?"cover":!0;n=s}return!1}toString(){let e="";for(let a=0;a<this.sections.length;){let r=this.sections[a++],n=this.sections[a++];e+=(e?" ":"")+r+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(a=>typeof a!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}static create(e){return new t(e)}},Ba=class t extends Wi{constructor(e,a){super(e),this.inserted=a}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return hS(this,(a,r,n,i,o)=>e=e.replace(n,n+(r-a),o),!1),e}mapDesc(e,a=!1){return pS(this,e,a,!0)}invert(e){let a=this.sections.slice(),r=[];for(let n=0,i=0;n<a.length;n+=2){let o=a[n],s=a[n+1];if(s>=0){a[n]=s,a[n+1]=o;let l=n>>1;for(;r.length<l;)r.push(Le.empty);r.push(o?e.slice(i,i+o):Le.empty)}i+=o}return new t(a,r)}compose(e){return this.empty?e:e.empty?this:XE(this,e,!0)}map(e,a=!1){return e.empty?this:pS(this,e,a,!0)}iterChanges(e,a=!1){hS(this,e,a)}get desc(){return Wi.create(this.sections)}filter(e){let a=[],r=[],n=[],i=new Ml(this);e:for(let o=0,s=0;;){let l=o==e.length?1e9:e[o++];for(;s<l||s==l&&i.len==0;){if(i.done)break e;let c=Math.min(i.len,l-s);va(n,c,-1);let f=i.ins==-1?-1:i.off==0?i.ins:0;va(a,c,f),f>0&&fs(r,a,i.text),i.forward(c),s+=c}let u=e[o++];for(;s<u;){if(i.done)break e;let c=Math.min(i.len,u-s);va(a,c,-1),va(n,c,i.ins==-1?-1:i.off==0?i.ins:0),i.forward(c),s+=c}}return{changes:new t(a,r),filtered:Wi.create(n)}}toJSON(){let e=[];for(let a=0;a<this.sections.length;a+=2){let r=this.sections[a],n=this.sections[a+1];n<0?e.push(r):n==0?e.push([r]):e.push([r].concat(this.inserted[a>>1].toJSON()))}return e}static of(e,a,r){let n=[],i=[],o=0,s=null;function l(c=!1){if(!c&&!n.length)return;o<a&&va(n,a-o,-1);let f=new t(n,i);s=s?s.compose(f.map(s)):f,n=[],i=[],o=0}function u(c){if(Array.isArray(c))for(let f of c)u(f);else if(c instanceof t){if(c.length!=a)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${a})`);l(),s=s?s.compose(c.map(s)):c}else{let{from:f,to:d=f,insert:h}=c;if(f>d||f<0||d>a)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${a})`);let p=h?typeof h=="string"?Le.of(h.split(r||dS)):h:Le.empty,m=p.length;if(f==d&&m==0)return;f<o&&l(),f>o&&va(n,f-o,-1),va(n,d-f,m),fs(i,n,p),o=d}}return u(e),l(!s),s}static empty(e){return new t(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let a=[],r=[];for(let n=0;n<e.length;n++){let i=e[n];if(typeof i=="number")a.push(i,-1);else{if(!Array.isArray(i)||typeof i[0]!="number"||i.some((o,s)=>s&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)a.push(i[0],0);else{for(;r.length<n;)r.push(Le.empty);r[n]=Le.of(i.slice(1)),a.push(i[0],r[n].length)}}}return new t(a,r)}static createSet(e,a){return new t(e,a)}};function va(t,e,a,r=!1){if(e==0&&a<=0)return;let n=t.length-2;n>=0&&a<=0&&a==t[n+1]?t[n]+=e:n>=0&&e==0&&t[n]==0?t[n+1]+=a:r?(t[n]+=e,t[n+1]+=a):t.push(e,a)}function fs(t,e,a){if(a.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(a);else{for(;t.length<r;)t.push(Le.empty);t.push(a)}}function hS(t,e,a){let r=t.inserted;for(let n=0,i=0,o=0;o<t.sections.length;){let s=t.sections[o++],l=t.sections[o++];if(l<0)n+=s,i+=s;else{let u=n,c=i,f=Le.empty;for(;u+=s,c+=l,l&&r&&(f=f.append(r[o-2>>1])),!(a||o==t.sections.length||t.sections[o+1]<0);)s=t.sections[o++],l=t.sections[o++];e(n,u,i,c,f),n=u,i=c}}}function pS(t,e,a,r=!1){let n=[],i=r?[]:null,o=new Ml(t),s=new Ml(e);for(let l=-1;;){if(o.done&&s.len||s.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&s.ins==-1){let u=Math.min(o.len,s.len);va(n,u,-1),o.forward(u),s.forward(u)}else if(s.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!a))){let u=s.len;for(va(n,s.ins,-1);u;){let c=Math.min(o.len,u);o.ins>=0&&l<o.i&&o.len<=c&&(va(n,0,o.ins),i&&fs(i,n,o.text),l=o.i),o.forward(c),u-=c}s.next()}else if(o.ins>=0){let u=0,c=o.len;for(;c;)if(s.ins==-1){let f=Math.min(c,s.len);u+=f,c-=f,s.forward(f)}else if(s.ins==0&&s.len<c)c-=s.len,s.next();else break;va(n,u,l<o.i?o.ins:0),i&&l<o.i&&fs(i,n,o.text),l=o.i,o.forward(o.len-c)}else{if(o.done&&s.done)return i?Ba.createSet(n,i):Wi.create(n);throw new Error("Mismatched change set lengths")}}}function XE(t,e,a=!1){let r=[],n=a?[]:null,i=new Ml(t),o=new Ml(e);for(let s=!1;;){if(i.done&&o.done)return n?Ba.createSet(r,n):Wi.create(r);if(i.ins==0)va(r,i.len,0,s),i.next();else if(o.len==0&&!o.done)va(r,0,o.ins,s),n&&fs(n,r,o.text),o.next();else{if(i.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(i.len2,o.len),u=r.length;if(i.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;va(r,l,c,s),n&&c&&fs(n,r,o.text)}else o.ins==-1?(va(r,i.off?0:i.len,l,s),n&&fs(n,r,i.textBit(l))):(va(r,i.off?0:i.len,o.off?0:o.ins,s),n&&!o.off&&fs(n,r,o.text));s=(i.ins>l||o.ins>=0&&o.len>l)&&(s||r.length>u),i.forward2(l),o.forward(l)}}}}var Ml=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,a=this.i-2>>1;return a>=e.length?Le.empty:e[a]}textBit(e){let{inserted:a}=this.set,r=this.i-2>>1;return r>=a.length&&!e?Le.empty:a[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Rl=class t{constructor(e,a,r,n){this.from=e,this.to=a,this.flags=r,this.goalColumn=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}map(e,a=-1){let r,n;return this.empty?r=n=e.mapPos(this.from,a):(r=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),r==this.from&&n==this.to?this:new t(r,n,this.flags,this.goalColumn)}extend(e,a=e,r=0){if(e<=this.anchor&&a>=this.anchor)return E.range(e,a,void 0,void 0,r);let n=Math.abs(e-this.anchor)>Math.abs(a-this.anchor)?e:a;return E.range(this.anchor,n,void 0,void 0,r)}eq(e,a=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!a||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return E.range(e.anchor,e.head)}static create(e,a,r,n){return new t(e,a,r,n)}},E=class t{constructor(e,a){this.ranges=e,this.mainIndex=a}map(e,a=-1){return e.empty?this:t.create(this.ranges.map(r=>r.map(e,a)),this.mainIndex)}eq(e,a=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],a))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new t([this.main],0)}addRange(e,a=!0){return t.create([e].concat(this.ranges),a?0:this.mainIndex+1)}replaceRange(e,a=this.mainIndex){let r=this.ranges.slice();return r[a]=e,t.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map(a=>Rl.fromJSON(a)),e.main)}static single(e,a=e){return new t([t.range(e,a)],0)}static create(e,a=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,n=0;n<e.length;n++){let i=e[n];if(i.empty?i.from<=r:i.from<r)return t.normalized(e.slice(),a);r=i.to}return new t(e,a)}static cursor(e,a=0,r,n){return Rl.create(e,e,(a==0?0:a<0?8:16)|(r==null?7:Math.min(6,r)),n)}static range(e,a,r,n,i){let o=n==null?7:Math.min(6,n);return!i&&e!=a&&(i=a<e?1:-1),i&&(o|=i<0?8:16),a<e?Rl.create(a,e,o|32,r):Rl.create(e,a,o,r)}static undirectionalRange(e,a){return Rl.create(e,a,64,void 0)}static normalized(e,a=0){let r=e[a];e.sort((n,i)=>n.from-i.from),a=e.indexOf(r);for(let n=1;n<e.length;n++){let i=e[n],o=e[n-1];if(i.empty?i.from<=o.to:i.from<o.to){let s=o.from,l=Math.max(i.to,o.to);n<=a&&a--,e.splice(--n,2,i.anchor>i.head?t.range(l,s):t.range(s,l))}}return new t(e,a)}};function qE(t,e){for(let a of t.ranges)if(a.to>e)throw new RangeError("Selection points outside of document")}var LS=0,ce=class t{constructor(e,a,r,n,i){this.combine=e,this.compareInput=a,this.compare=r,this.isStatic=n,this.id=LS++,this.default=e([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(e={}){return new t(e.combine||(a=>a),e.compareInput||((a,r)=>a===r),e.compare||(e.combine?(a,r)=>a===r:TS),!!e.static,e.enables)}of(e){return new _c([],this,0,e)}compute(e,a){if(this.isStatic)throw new Error("Can't compute a static facet");return new _c(e,this,1,a)}computeN(e,a){if(this.isStatic)throw new Error("Can't compute a static facet");return new _c(e,this,2,a)}from(e,a){return a||(a=r=>r),this.compute([e],r=>a(r.field(e)))}};function TS(t,e){return t==e||t.length==e.length&&t.every((a,r)=>a===e[r])}var _c=class{constructor(e,a,r,n){this.dependencies=e,this.facet=a,this.type=r,this.value=n,this.id=LS++}dynamicSlot(e){var a;let r=this.value,n=this.facet.compareInput,i=this.id,o=e[i]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:(((a=e[f.id])!==null&&a!==void 0?a:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=r(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||mS(f,c)){let h=r(f);if(s?!BE(h,f.values[o],n):!n(h,f.values[o]))return f.values[o]=h,1}return 0},reconfigure:(f,d)=>{let h,p=d.config.address[i];if(p!=null){let m=Wg(d,p);if(this.dependencies.every(x=>x instanceof ce?d.facet(x)===f.facet(x):x instanceof vr?d.field(x,!1)==f.field(x,!1):!0)||(s?BE(h=r(f),m,n):n(h=r(f),m)))return f.values[o]=m,0}else h=r(f);return f.values[o]=h,1}}}get extension(){return this}};function BE(t,e,a){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!a(t[r],e[r]))return!1;return!0}function mS(t,e){let a=!1;for(let r of e)Zd(t,r)&1&&(a=!0);return a}function PF(t,e,a){let r=a.map(l=>t[l.id]),n=a.map(l=>l.type),i=r.filter(l=>!(l&1)),o=t[e.id]>>1;function s(l){let u=[];for(let c=0;c<r.length;c++){let f=Wg(l,r[c]);if(n[c]==2)for(let d of f)u.push(d);else u.push(f)}return e.combine(u)}return{create(l){for(let u of r)Zd(l,u);return l.values[o]=s(l),1},update(l,u){if(!mS(l,i))return 0;let c=s(l);return e.compare(c,l.values[o])?0:(l.values[o]=c,1)},reconfigure(l,u){let c=mS(l,r),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&TS(a,f))return l.values[o]=d,0;let h=s(l);return e.compare(h,d)?(l.values[o]=d,0):(l.values[o]=h,1)}}}var qg=ce.define({static:!0}),vr=class t{constructor(e,a,r,n,i){this.id=e,this.createF=a,this.updateF=r,this.compareF=n,this.spec=i,this.provides=void 0}static define(e){let a=new t(LS++,e.create,e.update,e.compare||((r,n)=>r===n),e);return e.provide&&(a.provides=e.provide(a)),a}create(e){let a=e.facet(qg).find(r=>r.field==this);return(a?.create||this.createF)(e)}slot(e){let a=e[this.id]>>1;return{create:r=>(r.values[a]=this.create(r),1),update:(r,n)=>{let i=r.values[a],o=this.updateF(i,n);return this.compareF(i,o)?0:(r.values[a]=o,1)},reconfigure:(r,n)=>{let i=r.facet(qg),o=n.facet(qg),s;return(s=i.find(l=>l.field==this))&&s!=o.find(l=>l.field==this)?(r.values[a]=s.create(r),1):n.config.address[this.id]!=null?(r.values[a]=n.field(this),0):(r.values[a]=this.create(r),1)}}}init(e){return[this,qg.of({field:this,create:e})]}get extension(){return this}},Il={lowest:4,low:3,default:2,high:1,highest:0};function qd(t){return e=>new Hg(e,t)}var mi={highest:qd(Il.highest),high:qd(Il.high),default:qd(Il.default),low:qd(Il.low),lowest:qd(Il.lowest)},Hg=class{constructor(e,a){this.inner=e,this.prec=a}get extension(){return this}},Gg=class t{of(e){return new Vd(this,e)}reconfigure(e){return t.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Vd=class{constructor(e,a){this.compartment=e,this.inner=a}get extension(){return this}},Yg=class t{constructor(e,a,r,n,i,o){for(this.base=e,this.compartments=a,this.dynamicSlots=r,this.address=n,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let a=this.address[e.id];return a==null?e.default:this.staticValues[a>>1]}static resolve(e,a,r){let n=[],i=Object.create(null),o=new Map;for(let d of RF(e,a,o))d instanceof vr?n.push(d):(i[d.facet.id]||(i[d.facet.id]=[])).push(d);let s=Object.create(null),l=[],u=[];for(let d of n)s[d.id]=u.length<<1,u.push(h=>d.slot(h));let c=r?.config.facets;for(let d in i){let h=i[d],p=h[0].facet,m=c&&c[d]||[];if(h.every(x=>x.type==0))if(s[p.id]=l.length<<1|1,TS(m,h))l.push(r.facet(p));else{let x=p.combine(h.map(g=>g.value));l.push(r&&p.compare(x,r.facet(p))?r.facet(p):x)}else{for(let x of h)x.type==0?(s[x.id]=l.length<<1|1,l.push(x.value)):(s[x.id]=u.length<<1,u.push(g=>x.dynamicSlot(g)));s[p.id]=u.length<<1,u.push(x=>PF(x,p,h))}}let f=u.map(d=>d(s));return new t(e,o,f,s,l,i)}};function RF(t,e,a){let r=[[],[],[],[],[]],n=new Map;function i(o,s){let l=n.get(o);if(l!=null){if(l<=s)return;let u=r[l].indexOf(o);u>-1&&r[l].splice(u,1),o instanceof Vd&&a.delete(o.compartment)}if(n.set(o,s),Array.isArray(o))for(let u of o)i(u,s);else if(o instanceof Vd){if(a.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(o.compartment)||o.inner;a.set(o.compartment,u),i(u,s)}else if(o instanceof Hg)i(o.inner,o.prec);else if(o instanceof vr)r[s].push(o),o.provides&&i(o.provides,s);else if(o instanceof _c)r[s].push(o),o.facet.extensions&&i(o.facet.extensions,Il.default);else{let u=o.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(u==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,s)}}return i(t,Il.default),r.reduce((o,s)=>o.concat(s))}function Zd(t,e){if(e&1)return 2;let a=e>>1,r=t.status[a];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[a]=4;let n=t.computeSlot(t,t.config.dynamicSlots[a]);return t.status[a]=2|n}function Wg(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}var ZE=ce.define(),gS=ce.define({combine:t=>t.some(e=>e),static:!0}),VE=ce.define({combine:t=>t.length?t[0]:void 0,static:!0}),UE=ce.define(),jE=ce.define(),FE=ce.define(),HE=ce.define({combine:t=>t.length?t[0]:!1}),ar=class{constructor(e,a){this.type=e,this.value=a}static define(){return new OS}},OS=class{of(e){return new ar(this,e)}},xS=class{constructor(e){this.map=e}of(e){return new Ke(this,e)}},Ke=class t{constructor(e,a){this.type=e,this.value=a}map(e){let a=this.type.map(this.value,e);return a===void 0?void 0:a==this.value?this:new t(this.type,a)}is(e){return this.type==e}static define(e={}){return new xS(e.map||(a=>a))}static mapEffects(e,a){if(!e.length)return e;let r=[];for(let n of e){let i=n.map(a);i&&r.push(i)}return r}};Ke.reconfigure=Ke.define();Ke.appendConfig=Ke.define();var Bt=class t{constructor(e,a,r,n,i,o){this.startState=e,this.changes=a,this.selection=r,this.effects=n,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,r&&qE(r,a.newLength),i.some(s=>s.type==t.time)||(this.annotations=i.concat(t.time.of(Date.now())))}static create(e,a,r,n,i,o){return new t(e,a,r,n,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let a of this.annotations)if(a.type==e)return a.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let a=this.annotation(t.userEvent);return!!(a&&(a==e||a.length>e.length&&a.slice(0,e.length)==e&&a[e.length]=="."))}};Bt.time=ar.define();Bt.userEvent=ar.define();Bt.addToHistory=ar.define();Bt.remote=ar.define();function IF(t,e){let a=[];for(let r=0,n=0;;){let i,o;if(r<t.length&&(n==e.length||e[n]>=t[r]))i=t[r++],o=t[r++];else if(n<e.length)i=e[n++],o=e[n++];else return a;!a.length||a[a.length-1]<i?a.push(i,o):a[a.length-1]<o&&(a[a.length-1]=o)}}function GE(t,e,a){var r;let n,i,o;return a?(n=e.changes,i=Ba.empty(e.changes.length),o=t.changes.compose(e.changes)):(n=e.changes.map(t.changes),i=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(n)),{changes:o,selection:e.selection?e.selection.map(i):(r=t.selection)===null||r===void 0?void 0:r.map(n),effects:Ke.mapEffects(t.effects,n).concat(Ke.mapEffects(e.effects,i)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function yS(t,e,a){let r=e.selection,n=zc(e.annotations);return e.userEvent&&(n=n.concat(Bt.userEvent.of(e.userEvent))),{changes:e.changes instanceof Ba?e.changes:Ba.of(e.changes||[],a,t.facet(VE)),selection:r&&(r instanceof E?r:E.single(r.anchor,r.head)),effects:zc(e.effects),annotations:n,scrollIntoView:!!e.scrollIntoView}}function YE(t,e,a){let r=yS(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(a=!1);for(let i=1;i<e.length;i++){e[i].filter===!1&&(a=!1);let o=!!e[i].sequential;r=GE(r,yS(t,e[i],o?r.changes.newLength:t.doc.length),o)}let n=Bt.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return QF(a?AF(n):n)}function AF(t){let e=t.startState,a=!0;for(let n of e.facet(UE)){let i=n(t);if(i===!1){a=!1;break}Array.isArray(i)&&(a=a===!0?i:IF(a,i))}if(a!==!0){let n,i;if(a===!1)i=t.changes.invertedDesc,n=Ba.empty(e.doc.length);else{let o=t.changes.filter(a);n=o.changes,i=o.filtered.mapDesc(o.changes).invertedDesc}t=Bt.create(e,n,t.selection&&t.selection.map(i),Ke.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let r=e.facet(jE);for(let n=r.length-1;n>=0;n--){let i=r[n](t);i instanceof Bt?t=i:Array.isArray(i)&&i.length==1&&i[0]instanceof Bt?t=i[0]:t=YE(e,zc(i),!1)}return t}function QF(t){let e=t.startState,a=e.facet(FE),r=t;for(let n=a.length-1;n>=0;n--){let i=a[n](t);i&&Object.keys(i).length&&(r=GE(r,yS(e,i,t.changes.newLength),!0))}return r==t?t:Bt.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}var MF=[];function zc(t){return t==null?MF:Array.isArray(t)?t:[t]}var Hr=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(Hr||(Hr={})),EF=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,bS;try{bS=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function DF(t){if(bS)return bS.test(t);for(let e=0;e<t.length;e++){let a=t[e];if(/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||EF.test(a)))return!0}return!1}function $F(t){return e=>{if(!/\S/.test(e))return Hr.Space;if(DF(e))return Hr.Word;for(let a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return Hr.Word;return Hr.Other}}var xt=class t{constructor(e,a,r,n,i,o){this.config=e,this.doc=a,this.selection=r,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)Zd(this,s<<1);this.computeSlot=null}field(e,a=!0){let r=this.config.address[e.id];if(r==null){if(a)throw new RangeError("Field is not present in this state");return}return Zd(this,r),Wg(this,r)}update(...e){return YE(this,e,!0)}applyTransaction(e){let a=this.config,{base:r,compartments:n}=a;for(let s of e.effects)s.is(Gg.reconfigure)?(a&&(n=new Map,a.compartments.forEach((l,u)=>n.set(u,l)),a=null),n.set(s.value.compartment,s.value.extension)):s.is(Ke.reconfigure)?(a=null,r=s.value):s.is(Ke.appendConfig)&&(a=null,r=zc(r).concat(s.value));let i;a?i=e.startState.values.slice():(a=Yg.resolve(r,n,this),i=new t(a,this.doc,this.selection,a.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let o=e.startState.facet(gS)?e.newSelection:e.newSelection.asSingle();new t(a,e.newDoc,o,i,(s,l)=>l.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(a=>({changes:{from:a.from,to:a.to,insert:e},range:E.cursor(a.from+e.length)}))}changeByRange(e){let a=this.selection,r=e(a.ranges[0]),n=this.changes(r.changes),i=[r.range],o=zc(r.effects);for(let s=1;s<a.ranges.length;s++){let l=e(a.ranges[s]),u=this.changes(l.changes),c=u.map(n);for(let d=0;d<s;d++)i[d]=i[d].map(c);let f=n.mapDesc(u,!0);i.push(l.range.map(f)),n=n.compose(c),o=Ke.mapEffects(o,c).concat(Ke.mapEffects(zc(l.effects),f))}return{changes:n,selection:E.create(i,a.mainIndex),effects:o}}changes(e=[]){return e instanceof Ba?e:Ba.of(e,this.doc.length,this.facet(t.lineSeparator))}toText(e){return Le.of(e.split(this.facet(t.lineSeparator)||dS))}sliceDoc(e=0,a=this.doc.length){return this.doc.sliceString(e,a,this.lineBreak)}facet(e){let a=this.config.address[e.id];return a==null?e.default:(Zd(this,a),Wg(this,a))}toJSON(e){let a={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let n=e[r];n instanceof vr&&this.config.address[n.id]!=null&&(a[r]=n.spec.toJSON(this.field(e[r]),this))}return a}static fromJSON(e,a={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(r){for(let i in r)if(Object.prototype.hasOwnProperty.call(e,i)){let o=r[i],s=e[i];n.push(o.init(l=>o.spec.fromJSON(s,l)))}}return t.create({doc:e.doc,selection:E.fromJSON(e.selection),extensions:a.extensions?n.concat([a.extensions]):n})}static create(e={}){let a=Yg.resolve(e.extensions||[],new Map),r=e.doc instanceof Le?e.doc:Le.of((e.doc||"").split(a.staticFacet(t.lineSeparator)||dS)),n=e.selection?e.selection instanceof E?e.selection:E.single(e.selection.anchor,e.selection.head):E.single(0);return qE(n,r.length),a.staticFacet(gS)||(n=n.asSingle()),new t(a,r,n,a.dynamicSlots.map(()=>null),(i,o)=>o.create(i),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||`
|
|
53
|
+
`}get readOnly(){return this.facet(HE)}phrase(e,...a){for(let r of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return a.length&&(e=e.replace(/\$(\$|\d*)/g,(r,n)=>{if(n=="$")return"$";let i=+(n||1);return!i||i>a.length?r:a[i-1]})),e}languageDataAt(e,a,r=-1){let n=[];for(let i of this.facet(ZE))for(let o of i(this,a,r))Object.prototype.hasOwnProperty.call(o,e)&&n.push(o[e]);return n}charCategorizer(e){let a=this.languageDataAt("wordChars",e);return $F(a.length?a[0]:"")}wordAt(e){let{text:a,from:r,length:n}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-r,s=e-r;for(;o>0;){let l=Jt(a,o,!1);if(i(a.slice(l,o))!=Hr.Word)break;o=l}for(;s<n;){let l=Jt(a,s);if(i(a.slice(s,l))!=Hr.Word)break;s=l}return o==s?null:E.range(o+r,s+r)}};xt.allowMultipleSelections=gS;xt.tabSize=ce.define({combine:t=>t.length?t[0]:4});xt.lineSeparator=VE;xt.readOnly=HE;xt.phrases=ce.define({compare(t,e){let a=Object.keys(t),r=Object.keys(e);return a.length==r.length&&a.every(n=>t[n]==e[n])}});xt.languageData=ZE;xt.changeFilter=UE;xt.transactionFilter=jE;xt.transactionExtender=FE;Gg.reconfigure=Ke.define();function Fd(t,e,a={}){let r={};for(let n of t)for(let i of Object.keys(n)){let o=n[i],s=r[i];if(s===void 0)r[i]=o;else if(!(s===o||o===void 0))if(Object.hasOwnProperty.call(a,i))r[i]=a[i](s,o);else throw new Error("Config merge conflict for field "+i)}for(let n in e)r[n]===void 0&&(r[n]=e[n]);return r}var Gr=class{eq(e){return this==e}range(e,a=e){return Ud.create(e,a,this)}};Gr.prototype.startSide=Gr.prototype.endSide=0;Gr.prototype.point=!1;Gr.prototype.mapMode=ha.TrackDel;function PS(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}var Ud=class t{constructor(e,a,r){this.from=e,this.to=a,this.value=r}static create(e,a,r){return new t(e,a,r)}};function vS(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}var SS=class t{constructor(e,a,r,n){this.from=e,this.to=a,this.value=r,this.maxPoint=n}get length(){return $c(this.to)}findIndex(e,a,r,n=0){let i=r?this.to:this.from;for(let o=n,s=i.length;;){if(o==s)return o;let l=o+s>>1,u=i[l]-e||(r?this.value[l].endSide:this.value[l].startSide)-a;if(l==o)return u>=0?o:s;u>=0?s=l:o=l+1}}between(e,a,r,n){for(let i=this.findIndex(a,-1e9,!0),o=this.findIndex(r,1e9,!1,i);i<o;i++)if(n(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(e,a,r,n,i){let o=[],s=[],l=[],u=-1,c=-1;e:for(let f=0;f<this.value.length;f++){let d=this.value[f],h=this.from[f]+e,p=this.to[f]+e,m,x;if(h==p){let g=a.mapPos(h,d.startSide,d.mapMode);if(g==null||(m=x=g,d.startSide!=d.endSide&&(x=a.mapPos(h,d.endSide),x<m)))continue}else if(m=a.mapPos(h,d.startSide),x=a.mapPos(p,d.endSide),m>x||m==x&&d.startSide>0&&d.endSide<=0)continue;if(!((x-m||d.endSide-d.startSide)<0))if(u<0&&(u=m),d.point&&(c=Math.max(c,x-m)),(m-r||d.startSide-n)>=0)o.push(d),s.push(m-u),l.push(x-u),r=x,n=d.endSide;else{if(m==x)for(let g=o.length;g>0;g--){if((m-(l[g-1]+u)||d.startSide-o[g-1].endSide)>=0){o.splice(g,0,d),s.splice(g,0,m-u),l.splice(g,0,x-u);continue e}if((m-(s[g-1]+u)||d.endSide-o[g-1].startSide)>0)break}i(m,x,d)}}return{mapped:o.length?new t(s,l,o,c):null,pos:u}}},ht=class t{constructor(e,a,r,n){this.chunkPos=e,this.chunk=a,this.nextLayer=r,this.maxPoint=n}static create(e,a,r,n){return new t(e,a,r,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let a of this.chunk)e+=a.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:a=[],sort:r=!1,filterFrom:n=0,filterTo:i=this.length}=e,o=e.filter;if(a.length==0&&!o)return this;if(r&&(a=a.slice().sort(vS)),this.isEmpty)return a.length?t.of(a):this;let s=new Kg(this,null,-1).goto(0),l=0,u=[],c=new ds;for(;s.value||l<a.length;)if(l<a.length&&(s.from-a[l].from||s.startSide-a[l].value.startSide)>=0){let f=a[l++];c.addInner(f.from,f.to,f.value,!1)||u.push(f)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==a.length||this.chunkEnd(s.chunkIndex)<a[l].from)&&(!o||n>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||n>s.to||i<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value,!1)||u.push(Ud.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?t.empty:this.nextLayer.update({add:u,filter:o,filterFrom:n,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let a=[],r=[],n=-1,i,o=(l,u,c)=>{i||(i=new ds),i.addRange(l,u,c,!1)};for(let l=0;l<this.chunk.length;l++){let u=this.chunkPos[l],c=this.chunk[l],f=e.touchesRange(u,u+c.length);if(f===!1)n=Math.max(n,c.maxPoint),a.push(c),r.push(e.mapPos(u));else if(f===!0){let[d,h]=a.length?[$c(r)+$c(a).length,$c($c(a).value).endSide]:[-1,-1],{mapped:p,pos:m}=c.map(u,e,d,h,o);p&&(n=Math.max(n,p.maxPoint),a.push(p),r.push(m))}}let s=this.nextLayer.map(e);return i&&(s=i.finishInner(s)),a.length==0?s:new t(r,a,s||t.empty,n)}between(e,a,r){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let i=this.chunkPos[n],o=this.chunk[n];if(a>=i&&e<=i+o.length&&o.between(i,e-i,a-i,r)===!1)return}this.nextLayer.between(e,a,r)}}iter(e=0){return jd.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,a=0){return jd.from(e).goto(a)}static compare(e,a,r,n,i=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i),s=a.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i),l=_E(o,s,r),u=new Al(o,l,i),c=new Al(s,l,i);r.iterGaps((f,d,h)=>zE(u,f,c,d,h,n)),r.empty&&r.length==0&&zE(u,0,c,0,0,n)}static eq(e,a,r=0,n){n==null&&(n=999999999);let i=e.filter(c=>!c.isEmpty&&a.indexOf(c)<0),o=a.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let s=_E(i,o),l=new Al(i,s,0).goto(r),u=new Al(o,s,0).goto(r);for(;;){if(l.to!=u.to||!wS(l.active,u.active)||l.point&&(!u.point||!PS(l.point,u.point)))return!1;if(l.to>n)return!0;l.next(),u.next()}}static spans(e,a,r,n,i=-1){let o=new Al(e,null,i).goto(a),s=a,l=o.openStart;for(;;){let u=Math.min(o.to,r);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFrom<a?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,l);n.point(s,u,o.point,c,f,o.pointRank),l=Math.min(o.openEnd(u),c.length)}else u>s&&(n.span(s,u,o.active,l),l=o.openEnd(u));if(o.to>r)return l+(o.point&&o.to>r?1:0);s=o.to,o.next()}}static of(e,a=!1){let r=new ds;for(let n of e instanceof Ud?[e]:a?BF(e):e)r.add(n.from,n.to,n.value);return r.finish()}static join(e){if(!e.length)return t.empty;let a=$c(e);for(let r=e.length-2;r>=0;r--)for(let n=e[r];n!=t.empty;n=n.nextLayer)a=new t(n.chunkPos,n.chunk,a,Math.max(n.maxPoint,a.maxPoint));return a}};ht.empty=new ht([],[],null,-1);function $c(t){return t[t.length-1]}function BF(t){if(t.length>1)for(let e=t[0],a=1;a<t.length;a++){let r=t[a];if(vS(e,r)>0)return t.slice().sort(vS);e=r}return t}ht.empty.nextLayer=ht.empty;var ds=class t{finishChunk(e){this.chunks.push(new SS(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,a,r){this.addRange(e,a,r,!0)}addRange(e,a,r,n){this.addInner(e,a,r,n)||(this.nextLayer||(this.nextLayer=new t)).addRange(e,a,r,n)}addInner(e,a,r,n){let i=e-this.lastTo||r.startSide-this.last.endSide;if(n&&i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(a-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=a,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,a-e)),!0)}addChunk(e,a){if((e-this.lastTo||a.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,a.maxPoint),this.chunks.push(a),this.chunkPos.push(e);let r=a.value.length-1;return this.last=a.value[r],this.lastFrom=a.from[r]+e,this.lastTo=a.to[r]+e,!0}finish(){return this.finishInner(ht.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let a=ht.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,a}};function _E(t,e,a){let r=new Map;for(let i of t)for(let o=0;o<i.chunk.length;o++)i.chunk[o].maxPoint<=0&&r.set(i.chunk[o],i.chunkPos[o]);let n=new Set;for(let i of e)for(let o=0;o<i.chunk.length;o++){let s=r.get(i.chunk[o]);s!=null&&(a?a.mapPos(s):s)==i.chunkPos[o]&&!a?.touchesRange(s,s+i.chunk[o].length)&&n.add(i.chunk[o])}return n}var Kg=class{constructor(e,a,r,n=0){this.layer=e,this.skip=a,this.minPoint=r,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,a=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,a,!1),this}gotoInner(e,a,r){for(;this.chunkIndex<this.layer.chunk.length;){let n=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(n)||this.layer.chunkEnd(this.chunkIndex)<e||n.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],a,!0);(!r||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,a){(this.to-e||this.endSide-a)<0&&this.gotoInner(e,a,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],a=this.layer.chunk[this.chunkIndex],r=e+a.from[this.rangeIndex];if(this.from=r,this.to=e+a.to[this.rangeIndex],this.value=a.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}},jd=class t{constructor(e){this.heap=e}static from(e,a=null,r=-1){let n=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=r&&n.push(new Kg(o,a,r,i));return n.length==1?n[0]:new t(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,a=-1e9){for(let r of this.heap)r.goto(e,a);for(let r=this.heap.length>>1;r>=0;r--)cS(this.heap,r);return this.next(),this}forward(e,a){for(let r of this.heap)r.forward(e,a);for(let r=this.heap.length>>1;r>=0;r--)cS(this.heap,r);(this.to-e||this.value.endSide-a)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),cS(this.heap,0)}}};function cS(t,e){for(let a=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let n=t[r];if(r+1<t.length&&n.compare(t[r+1])>=0&&(n=t[r+1],r++),a.compare(n)<0)break;t[r]=a,t[e]=n,e=r}}var Al=class{constructor(e,a,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=jd.from(e,a,r)}goto(e,a=-1e9){return this.cursor.goto(e,a),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=a,this.openStart=-1,this.next(),this}forward(e,a){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-a)<0;)this.removeActive(this.minActive);this.cursor.forward(e,a)}removeActive(e){Zg(this.active,e),Zg(this.activeTo,e),Zg(this.activeRank,e),this.minActive=NE(this.active,this.activeTo)}addActive(e){let a=0,{value:r,to:n,rank:i}=this.cursor;for(;a<this.activeRank.length&&(i-this.activeRank[a]||n-this.activeTo[a])>0;)a++;Vg(this.active,a,r),Vg(this.activeTo,a,n),Vg(this.activeRank,a,i),e&&Vg(e,a,this.cursor.from),this.minActive=NE(this.active,this.activeTo)}next(){let e=this.to,a=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),r&&Zg(r,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(r),this.cursor.next();else if(a&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let n=r.length-1;n>=0&&r[n]<e;n--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let a=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&a.push(this.active[r]);return a.reverse()}openEnd(e){let a=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)a++;return a}};function zE(t,e,a,r,n,i){t.goto(e),a.goto(r);let o=r+n,s=r,l=r-e,u=!!i.boundChange;for(let c=!1;;){let f=t.to+l-a.to,d=f||t.endSide-a.endSide,h=d<0?t.to+l:a.to,p=Math.min(h,o);if(t.point||a.point?(t.point&&a.point&&PS(t.point,a.point)&&wS(t.activeForPoint(t.to),a.activeForPoint(a.to))||i.comparePoint(s,p,t.point,a.point),c=!1):(c&&i.boundChange(s),p>s&&!wS(t.active,a.active)&&i.compareRange(s,p,t.active,a.active),u&&p<o&&(f||t.openEnd(h)!=a.openEnd(h))&&(c=!0)),h>o)break;s=h,d<=0&&t.next(),d>=0&&a.next()}}function wS(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!=e[a]&&!PS(t[a],e[a]))return!1;return!0}function Zg(t,e){for(let a=e,r=t.length-1;a<r;a++)t[a]=t[a+1];t.pop()}function Vg(t,e,a){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=a}function NE(t,e){let a=-1,r=1e9;for(let n=0;n<e.length;n++)(e[n]-r||t[n].endSide-t[a].endSide)<0&&(a=n,r=e[n]);return a}function Sr(t,e,a=t.length){let r=0;for(let n=0;n<a&&n<t.length;)t.charCodeAt(n)==9?(r+=e-r%e,n++):(r++,n=Jt(t,n));return r}function WE(t,e,a,r){for(let n=0,i=0;;){if(i>=e)return n;if(n==t.length)break;i+=t.charCodeAt(n)==9?a-i%a:1,n=Jt(t,n)}return r===!0?-1:t.length}var KE=typeof Symbol>"u"?"__\u037C":Symbol.for("\u037C"),RS=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),JE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Yr=class{constructor(e,a){this.rules=[];let{finish:r}=a||{};function n(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function i(o,s,l,u){let c=[],f=/^@(\w+)\b/.exec(o[0]),d=f&&f[1]=="keyframes";if(f&&s==null)return l.push(o[0]+";");for(let h in s){let p=s[h];if(/&/.test(h))i(h.split(/,\s*/).map(m=>o.map(x=>m.replace(/&/,x))).reduce((m,x)=>m.concat(x)),p,l);else if(p&&typeof p=="object"){if(!f)throw new RangeError("The value of a property ("+h+") should be a primitive value.");i(n(h),p,c,d)}else p!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(c.length||d)&&l.push((r&&!f&&!u?o.map(r):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)i(n(o),e[o],this.rules)}getRules(){return this.rules.join(`
|
|
54
|
+
`)}static newName(){let e=JE[KE]||1;return JE[KE]=e+1,"\u037C"+e.toString(36)}static mount(e,a,r){let n=e[RS],i=r&&r.nonce;n?i&&n.setNonce(i):n=new IS(e,i),n.mount(Array.isArray(a)?a:[a],e)}},eD=new Map,IS=class{constructor(e,a){let r=e.ownerDocument||e,n=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let i=eD.get(r);if(i)return e[RS]=i;this.sheet=new n.CSSStyleSheet,eD.set(r,this)}else this.styleTag=r.createElement("style"),a&&this.styleTag.setAttribute("nonce",a);this.modules=[],e[RS]=this}mount(e,a){let r=this.sheet,n=0,i=0;for(let o=0;o<e.length;o++){let s=e[o],l=this.modules.indexOf(s);if(l<i&&l>-1&&(this.modules.splice(l,1),i--,l=-1),l==-1){if(this.modules.splice(i++,0,s),r)for(let u=0;u<s.rules.length;u++)r.insertRule(s.rules[u],n++)}else{for(;i<l;)n+=this.modules[i++].rules.length;n+=s.rules.length,i++}}if(r)a.adoptedStyleSheets.indexOf(this.sheet)<0&&(a.adoptedStyleSheets=[this.sheet,...a.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
|
|
55
|
+
`;this.styleTag.textContent=o;let s=a.head||a;this.styleTag.parentNode!=s&&s.insertBefore(this.styleTag,s.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var Ki={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Xc={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},_F=typeof navigator<"u"&&/Mac/.test(navigator.platform),zF=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(_t=0;_t<10;_t++)Ki[48+_t]=Ki[96+_t]=String(_t);var _t;for(_t=1;_t<=24;_t++)Ki[_t+111]="F"+_t;var _t;for(_t=65;_t<=90;_t++)Ki[_t]=String.fromCharCode(_t+32),Xc[_t]=String.fromCharCode(_t);var _t;for(Jg in Ki)Xc.hasOwnProperty(Jg)||(Xc[Jg]=Ki[Jg]);var Jg;function tD(t){var e=_F&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||zF&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",a=!e&&t.key||(t.shiftKey?Xc:Ki)[t.keyCode]||t.key||"Unidentified";return a=="Esc"&&(a="Escape"),a=="Del"&&(a="Delete"),a=="Left"&&(a="ArrowLeft"),a=="Up"&&(a="ArrowUp"),a=="Right"&&(a="ArrowRight"),a=="Down"&&(a="ArrowDown"),a}var _a=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},$S=typeof document<"u"?document:{documentElement:{style:{}}},BS=/Edge\/(\d+)/.exec(_a.userAgent),RD=/MSIE \d/.test(_a.userAgent),_S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_a.userAgent),SO=!!(RD||_S||BS),aD=!SO&&/gecko\/(\d+)/i.test(_a.userAgent),AS=!SO&&/Chrome\/(\d+)/.exec(_a.userAgent),rD="webkitFontSmoothing"in $S.documentElement.style,zS=!SO&&/Apple Computer/.test(_a.vendor),nD=zS&&(/Mobile\/\w+/.test(_a.userAgent)||_a.maxTouchPoints>2),Y={mac:nD||/Mac/.test(_a.platform),windows:/Win/.test(_a.platform),linux:/Linux|X11/.test(_a.platform),ie:SO,ie_version:RD?$S.documentMode||6:_S?+_S[1]:BS?+BS[1]:0,gecko:aD,gecko_version:aD?+(/Firefox\/(\d+)/.exec(_a.userAgent)||[0,0])[1]:0,chrome:!!AS,chrome_version:AS?+AS[1]:0,ios:nD,android:/Android\b/.test(_a.userAgent),webkit:rD,webkit_version:rD?+(/\bAppleWebKit\/(\d+)/.exec(_a.userAgent)||[0,0])[1]:0,safari:zS,safari_version:zS?+(/\bVersion\/(\d+(\.\d+)?)/.exec(_a.userAgent)||[0,0])[1]:0,tabSize:$S.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function b1(t,e){for(let a in t)a=="class"&&e.class?e.class+=" "+t.class:a=="style"&&e.style?e.style+=";"+t.style:e[a]=t[a];return e}var uO=Object.create(null);function v1(t,e,a){if(t==e)return!0;t||(t=uO),e||(e=uO);let r=Object.keys(t),n=Object.keys(e);if(r.length-(a&&r.indexOf(a)>-1?1:0)!=n.length-(a&&n.indexOf(a)>-1?1:0))return!1;for(let i of r)if(i!=a&&(n.indexOf(i)==-1||t[i]!==e[i]))return!1;return!0}function NF(t,e){for(let a=t.attributes.length-1;a>=0;a--){let r=t.attributes[a].name;e[r]==null&&t.removeAttribute(r)}for(let a in e){let r=e[a];a=="style"?t.style.cssText=r:t.getAttribute(a)!=r&&t.setAttribute(a,r)}}function iD(t,e,a){let r=!1;if(e)for(let n in e)a&&n in a||(r=!0,n=="style"?t.style.cssText="":t.removeAttribute(n));if(a)for(let n in a)e&&e[n]==a[n]||(r=!0,n=="style"?t.style.cssText=a[n]:t.setAttribute(n,a[n]));return r}function XF(t){let e=Object.create(null);for(let a=0;a<t.attributes.length;a++){let r=t.attributes[a];e[r.name]=r.value}return e}var to=class{eq(e){return!1}updateDOM(e,a,r){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,a,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},tn=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(tn||(tn={})),nt=class extends Gr{constructor(e,a,r,n){super(),this.startSide=e,this.endSide=a,this.widget=r,this.spec=n}get heightRelevant(){return!1}static mark(e){return new rh(e)}static widget(e){let a=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return a+=r&&!e.inlineOrder?a>0?3e8:-4e8:a>0?1e8:-1e8,new $l(e,a,a,r,e.widget||null,!1)}static replace(e){let a=!!e.block,r,n;if(e.isBlockGap)r=-5e8,n=4e8;else{let{start:i,end:o}=ID(e,a);r=(i?a?-3e8:-1:5e8)-1,n=(o?a?2e8:1:-6e8)+1}return new $l(e,r,n,a,e.widget||null,!0)}static line(e){return new nh(e)}static set(e,a=!1){return ht.of(e,a)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};nt.none=ht.empty;var rh=class t extends nt{constructor(e){let{start:a,end:r}=ID(e);super(a?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?b1(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||uO}eq(e){return this==e||e instanceof t&&this.tagName==e.tagName&&v1(this.attrs,e.attrs)}range(e,a=e){if(e>=a)throw new RangeError("Mark decorations may not be empty");return super.range(e,a)}};rh.prototype.point=!1;var nh=class t extends nt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof t&&this.spec.class==e.spec.class&&v1(this.spec.attributes,e.spec.attributes)}range(e,a=e){if(a!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,a)}};nh.prototype.mapMode=ha.TrackBefore;nh.prototype.point=!0;var $l=class t extends nt{constructor(e,a,r,n,i,o){super(a,r,i,e),this.block=n,this.isReplace=o,this.mapMode=n?a<=0?ha.TrackBefore:ha.TrackAfter:ha.TrackDel}get type(){return this.startSide!=this.endSide?tn.WidgetRange:this.startSide<=0?tn.WidgetBefore:tn.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof t&&qF(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,a=e){if(this.isReplace&&(e>a||e==a&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&a!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,a)}};$l.prototype.point=!0;function ID(t,e=!1){let{inclusiveStart:a,inclusiveEnd:r}=t;return a==null&&(a=t.inclusive),r==null&&(r=t.inclusive),{start:a??e,end:r??e}}function qF(t,e){return t==e||!!(t&&e&&t.compare(e))}function Uc(t,e,a,r=0){let n=a.length-1;n>=0&&a[n]+r>=t?a[n]=Math.max(a[n],e):a.push(t,e)}var cO=class t extends Gr{constructor(e,a,r){super(),this.tagName=e,this.attributes=a,this.rank=r}eq(e){return e==this||e instanceof t&&this.tagName==e.tagName&&v1(this.attributes,e.attributes)}static create(e){return new t(e.tagName,e.attributes||uO,e.rank==null?50:Math.max(0,Math.min(e.rank,100)))}static set(e,a=!1){return ht.of(e,a)}};cO.prototype.startSide=cO.prototype.endSide=-1;function ih(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function NS(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function Yd(t,e){if(!e.anchorNode)return!1;try{return NS(t,e.anchorNode)}catch{return!1}}function sO(t){return t.nodeType==3?oh(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Wd(t,e,a,r){return a?oD(t,e,a,r,-1)||oD(t,e,a,r,1):!1}function ms(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function fO(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function oD(t,e,a,r,n){for(;;){if(t==a&&e==r)return!0;if(e==(n<0?0:ao(t))){if(t.nodeName=="DIV")return!1;let i=t.parentNode;if(!i||i.nodeType!=1)return!1;e=ms(t)+(n<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(n<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=n<0?ao(t):0}else return!1}}function ao(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function dO(t,e){let{left:a,right:r}=t;if(a==r)return t;let n=e?a:r;return{left:n,right:n,top:t.top,bottom:t.bottom}}function ZF(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function AD(t,e){let a=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(a>.995&&a<1.005||!isFinite(a)||Math.abs(e.width-t.offsetWidth)<1)&&(a=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:a,scaleY:r}}function VF(t,e,a,r,n,i,o,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=!1;c&&!f;)if(c.nodeType==1){let d,h=c==l.body,p=1,m=1;if(h)d=ZF(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let O=c.getBoundingClientRect();({scaleX:p,scaleY:m}=AD(c,O)),d={left:O.left,right:O.left+c.clientWidth*p,top:O.top,bottom:O.top+c.clientHeight*m}}let x=0,g=0;if(n=="nearest")e.top<d.top+o?(g=e.top-(d.top+o),a>0&&e.bottom>d.bottom+g&&(g=e.bottom-d.bottom+o)):e.bottom>d.bottom-o&&(g=e.bottom-d.bottom+o,a<0&&e.top-g<d.top&&(g=e.top-(d.top+o)));else{let O=e.bottom-e.top,y=d.bottom-d.top;g=(n=="center"&&O<=y?e.top+O/2-y/2:n=="start"||n=="center"&&a<0?e.top-o:e.bottom-y+o)-d.top}if(r=="nearest"?e.left<d.left+i?(x=e.left-(d.left+i),a>0&&e.right>d.right+x&&(x=e.right-d.right+i)):e.right>d.right-i&&(x=e.right-d.right+i,a<0&&e.left<d.left+x&&(x=e.left-(d.left+i))):x=(r=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:r=="start"==s?e.left-i:e.right-(d.right-d.left)+i)-d.left,x||g)if(h)u.scrollBy(x,g);else{let O=0,y=0;if(g){let b=c.scrollTop;c.scrollTop+=g/m,y=(c.scrollTop-b)*m}if(x){let b=c.scrollLeft;c.scrollLeft+=x/p,O=(c.scrollLeft-b)*p}e={left:e.left-O,top:e.top-y,right:e.right-O,bottom:e.bottom-y},O&&Math.abs(O-x)<1&&(r="nearest"),y&&Math.abs(y-g)<1&&(n="nearest")}if(h)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function QD(t,e=!0){let a=t.ownerDocument,r=null,n=null;for(let i=t.parentNode;i&&!(i==a.body||(!e||r)&&n);)if(i.nodeType==1)!n&&i.scrollHeight>i.clientHeight&&(n=i),e&&!r&&i.scrollWidth>i.clientWidth&&(r=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:r,y:n}}var XS=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:a,focusNode:r}=e;this.set(a,Math.min(e.anchorOffset,a?ao(a):0),r,Math.min(e.focusOffset,r?ao(r):0))}set(e,a,r,n){this.anchorNode=e,this.anchorOffset=a,this.focusNode=r,this.focusOffset=n}};function MD(t){let e=[];for(let a=t;a;a=a.nodeType==11?a.host:a.parentNode)a.nodeType==1&&e.push({node:a,left:a.scrollLeft,top:a.scrollTop});return e}function ED(t,e=!0){for(let{node:a,left:r,top:n}of t)e&&a.scrollTop!=n&&(a.scrollTop=n),a.scrollLeft!=r&&(a.scrollLeft=r)}var El=null;Y.safari&&Y.safari_version>=26&&(El=!1);function DD(t){if(t.setActive)return t.setActive();if(El)return t.focus(El);let e=MD(t);t.focus(El==null?{get preventScroll(){return El={preventScroll:!0},!0}}:void 0),El||(El=!1,ED(e))}var sD;function oh(t,e,a=e){let r=sD||(sD=document.createRange());return r.setEnd(t,a),r.setStart(t,e),r}function jc(t,e,a,r){let n={key:e,code:e,keyCode:a,which:a,cancelable:!0};r&&({altKey:n.altKey,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,metaKey:n.metaKey}=r);let i=new KeyboardEvent("keydown",n);i.synthetic=!0,t.dispatchEvent(i);let o=new KeyboardEvent("keyup",n);return o.synthetic=!0,t.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function UF(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function jF(t,e){let a=e.focusNode,r=e.focusOffset;if(!a||e.anchorNode!=a||e.anchorOffset!=r)return!1;for(r=Math.min(r,ao(a));;)if(r){if(a.nodeType!=1)return!1;let n=a.childNodes[r-1];n.contentEditable=="false"?r--:(a=n,r=ao(a))}else{if(a==t)return!0;r=ms(a),a=a.parentNode}}function $D(t){return t instanceof Window?t.pageYOffset>Math.max(0,t.document.documentElement.scrollHeight-t.innerHeight-4):t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function BD(t,e){for(let a=t,r=e;;){if(a.nodeType==3&&r>0)return{node:a,offset:r};if(a.nodeType==1&&r>0){if(a.contentEditable=="false")return null;a=a.childNodes[r-1],r=ao(a)}else if(a.parentNode&&!fO(a))r=ms(a),a=a.parentNode;else return null}}function _D(t,e){for(let a=t,r=e;;){if(a.nodeType==3&&r<a.nodeValue.length)return{node:a,offset:r};if(a.nodeType==1&&r<a.childNodes.length){if(a.contentEditable=="false")return null;a=a.childNodes[r],r=0}else if(a.parentNode&&!fO(a))r=ms(a)+1,a=a.parentNode;else return null}}var Oi=class t{constructor(e,a,r=!0){this.node=e,this.offset=a,this.precise=r}static before(e,a){return new t(e.parentNode,ms(e),a)}static after(e,a){return new t(e.parentNode,ms(e)+1,a)}},wt=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(wt||(wt={})),Bl=wt.LTR,S1=wt.RTL;function zD(t){let e=[];for(let a=0;a<t.length;a++)e.push(1<<+t[a]);return e}var FF=zD("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),HF=zD("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),qS=Object.create(null),gi=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),a=t.charCodeAt(1);qS[e]=a,qS[a]=-e}function ND(t){return t<=247?FF[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?HF[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}var GF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,Jr=class{get dir(){return this.level%2?S1:Bl}constructor(e,a,r){this.from=e,this.to=a,this.level=r}side(e,a){return this.dir==a==e?this.to:this.from}forward(e,a){return e==(this.dir==a)}static find(e,a,r,n){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=a&&s.to>=a){if(s.level==r)return o;(i<0||(n!=0?n<0?s.from<a:s.to>a:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}};function XD(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++){let r=t[a],n=e[a];if(r.from!=n.from||r.to!=n.to||r.direction!=n.direction||!XD(r.inner,n.inner))return!1}return!0}var rt=[];function YF(t,e,a,r,n){for(let i=0;i<=r.length;i++){let o=i?r[i-1].to:e,s=i<r.length?r[i].from:a,l=i?256:n;for(let u=o,c=l,f=l;u<s;u++){let d=ND(t.charCodeAt(u));d==512?d=c:d==8&&f==4&&(d=16),rt[u]=d==4?2:d,d&7&&(f=d),c=d}for(let u=o,c=l,f=l;u<s;u++){let d=rt[u];if(d==128)u<s-1&&c==rt[u+1]&&c&24?d=rt[u]=c:rt[u]=256;else if(d==64){let h=u+1;for(;h<s&&rt[h]==64;)h++;let p=u&&c==8||h<a&&rt[h]==8?f==1?1:8:256;for(let m=u;m<h;m++)rt[m]=p;u=h-1}else d==8&&f==1&&(rt[u]=1);c=d,d&7&&(f=d)}}}function WF(t,e,a,r,n){let i=n==1?2:1;for(let o=0,s=0,l=0;o<=r.length;o++){let u=o?r[o-1].to:e,c=o<r.length?r[o].from:a;for(let f=u,d,h,p;f<c;f++)if(h=qS[d=t.charCodeAt(f)])if(h<0){for(let m=s-3;m>=0;m-=3)if(gi[m+1]==-h){let x=gi[m+2],g=x&2?n:x&4?x&1?i:n:0;g&&(rt[f]=rt[gi[m]]=g),s=m;break}}else{if(gi.length==189)break;gi[s++]=f,gi[s++]=d,gi[s++]=l}else if((p=rt[f])==2||p==1){let m=p==n;l=m?0:1;for(let x=s-3;x>=0;x-=3){let g=gi[x+2];if(g&2)break;if(m)gi[x+2]|=2;else{if(g&4)break;gi[x+2]|=4}}}}}function KF(t,e,a,r){for(let n=0,i=r;n<=a.length;n++){let o=n?a[n-1].to:t,s=n<a.length?a[n].from:e;for(let l=o;l<s;){let u=rt[l];if(u==256){let c=l+1;for(;;)if(c==s){if(n==a.length)break;c=a[n++].to,s=n<a.length?a[n].from:e}else if(rt[c]==256)c++;else break;let f=i==1,d=(c<e?rt[c]:r)==1,h=f==d?f?1:2:r;for(let p=c,m=n,x=m?a[m-1].to:t;p>l;)p==x&&(p=a[--m].from,x=m?a[m-1].to:t),rt[--p]=h;l=c}else i=u,l++}}}function ZS(t,e,a,r,n,i,o){let s=r%2?2:1;if(r%2==n%2)for(let l=e,u=0;l<a;){let c=!0,f=!1;if(u==i.length||l<i[u].from){let m=rt[l];m!=s&&(c=!1,f=m==16)}let d=!c&&s==1?[]:null,h=c?r:r+1,p=l;e:for(;;)if(u<i.length&&p==i[u].from){if(f)break e;let m=i[u];if(!c)for(let x=m.to,g=u+1;;){if(x==a)break e;if(g<i.length&&i[g].from==x)x=i[g++].to;else{if(rt[x]==s)break e;break}}if(u++,d)d.push(m);else{m.from>l&&o.push(new Jr(l,m.from,h));let x=m.direction==Bl!=!(h%2);VS(t,x?r+1:r,n,m.inner,m.from,m.to,o),l=m.to}p=m.to}else{if(p==a||(c?rt[p]!=s:rt[p]==s))break;p++}d?ZS(t,l,p,r+1,n,d,o):l<p&&o.push(new Jr(l,p,h)),l=p}else for(let l=a,u=i.length;l>e;){let c=!0,f=!1;if(!u||l>i[u-1].to){let m=rt[l-1];m!=s&&(c=!1,f=m==16)}let d=!c&&s==1?[]:null,h=c?r:r+1,p=l;e:for(;;)if(u&&p==i[u-1].to){if(f)break e;let m=i[--u];if(!c)for(let x=m.from,g=u;;){if(x==e)break e;if(g&&i[g-1].to==x)x=i[--g].from;else{if(rt[x-1]==s)break e;break}}if(d)d.push(m);else{m.to<l&&o.push(new Jr(m.to,l,h));let x=m.direction==Bl!=!(h%2);VS(t,x?r+1:r,n,m.inner,m.from,m.to,o),l=m.from}p=m.from}else{if(p==e||(c?rt[p-1]!=s:rt[p-1]==s))break;p--}d?ZS(t,p,l,r+1,n,d,o):p<l&&o.push(new Jr(p,l,h)),l=p}}function VS(t,e,a,r,n,i,o){let s=e%2?2:1;YF(t,n,i,r,s),WF(t,n,i,r,s),KF(n,i,r,s),ZS(t,n,i,e,a,r,o)}function JF(t,e,a){if(!t)return[new Jr(0,0,e==S1?1:0)];if(e==Bl&&!a.length&&!GF.test(t))return qD(t.length);if(a.length)for(;t.length>rt.length;)rt[rt.length]=256;let r=[],n=e==Bl?0:1;return VS(t,n,n,a,0,t.length,r),r}function qD(t){return[new Jr(0,t,0)]}var ZD="";function eH(t,e,a,r,n){var i;let o=r.head-t.from,s=Jr.find(e,o,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc),l=e[s],u=l.side(n,a);if(o==u){let d=s+=n?1:-1;if(d<0||d>=e.length)return null;l=e[s=d],o=l.side(!n,a),u=l.side(n,a)}let c=Jt(t.text,o,l.forward(n,a));(c<l.from||c>l.to)&&(c=u),ZD=t.text.slice(Math.min(o,c),Math.max(o,c));let f=s==(n?e.length-1:0)?null:e[s+(n?1:-1)];return f&&c==u&&f.level+(n?0:1)<l.level?E.cursor(f.side(!n,a)+t.from,f.forward(n,a)?1:-1,f.level):E.cursor(c+t.from,l.forward(n,a)?-1:1,l.level)}function tH(t,e,a){for(let r=e;r<a;r++){let n=ND(t.charCodeAt(r));if(n==1)return Bl;if(n==2||n==4)return S1}return Bl}var VD=ce.define(),UD=ce.define(),jD=ce.define(),FD=ce.define(),US=ce.define(),HD=ce.define(),GD=ce.define(),w1=ce.define(),C1=ce.define(),YD=ce.define({combine:t=>t.some(e=>e)}),aH=ce.define({combine:t=>t.some(e=>e)}),WD=ce.define(),Kd=class t{constructor(e,a,r,n,i,o=!1){this.range=e,this.y=a,this.x=r,this.yMargin=n,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new t(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new t(E.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},eO=Ke.define({map:(t,e)=>t.map(e)}),KD=Ke.define();function en(t,e,a){let r=t.facet(FD);r.length?r[0](e):window.onerror&&window.onerror(String(e),a,void 0,void 0,e)||(a?console.error(a+":",e):console.error(e))}var Ji=ce.define({combine:t=>t.length?t[0]:!0}),rH=0,Zc=ce.define({combine(t){return t.filter((e,a)=>{for(let r=0;r<a;r++)if(t[r].plugin==e.plugin)return!1;return!0})}}),gs=class t{constructor(e,a,r,n,i){this.id=e,this.create=a,this.domEventHandlers=r,this.domEventObservers=n,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(Zc.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Zc.of({plugin:this,arg:e}))}static define(e,a){let{eventHandlers:r,eventObservers:n,provide:i,decorations:o}=a||{};return new t(rH++,e,r,n,s=>{let l=[];return o&&l.push(wO.of(u=>{let c=u.plugin(s);return c?o(c):nt.none})),i&&l.push(i(s)),l})}static fromClass(e,a){return t.define((r,n)=>new e(r,n),a)}},Jd=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let a=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(a)}catch(r){if(en(a.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(a){en(e.state,a,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var a;if(!((a=this.value)===null||a===void 0)&&a.destroy)try{this.value.destroy()}catch(r){en(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},JD=ce.define(),k1=ce.define(),wO=ce.define(),e$=ce.define(),L1=ce.define(),sh=ce.define(),t$=ce.define();function lD(t,e){let a=t.state.facet(t$);if(!a.length)return a;let r=a.map(i=>i instanceof Function?i(t):i),n=[];return ht.spans(r,e.from,e.to,{point(){},span(i,o,s,l){let u=i-e.from,c=o-e.from,f=n;for(let d=s.length-1;d>=0;d--,l--){let h=s[d].spec.bidiIsolate,p;if(h==null&&(h=tH(e.text,u,c)),l>0&&f.length&&(p=f[f.length-1]).to==u&&p.direction==h)p.to=c,f=p.inner;else{let m={from:u,to:c,direction:h,inner:[]};f.push(m),f=m.inner}}}}),n}var a$=ce.define();function r$(t){let e=0,a=0,r=0,n=0;for(let i of t.state.facet(a$)){let o=i(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(a=Math.max(a,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(n=Math.max(n,o.bottom)))}return{left:e,right:a,top:r,bottom:n}}var Hd=ce.define(),Tn=class t{constructor(e,a,r,n){this.fromA=e,this.toA=a,this.fromB=r,this.toB=n}join(e){return new t(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let a=e.length,r=this;for(;a>0;a--){let n=e[a-1];if(!(n.fromA>r.toA)){if(n.toA<r.fromA)break;r=r.join(n),e.splice(a-1,1)}}return e.splice(a,0,r),e}static extendWithRanges(e,a){if(a.length==0)return e;let r=[];for(let n=0,i=0,o=0;;){let s=n<e.length?e[n].fromB:1e9,l=i<a.length?a[i]:1e9,u=Math.min(s,l);if(u==1e9)break;let c=u+o,f=u,d=c;for(;;)if(i<a.length&&a[i]<=f){let h=a[i+1];i+=2,f=Math.max(f,h);for(let p=n;p<e.length&&e[p].fromB<=f;p++)o=e[p].toA-e[p].toB;d=Math.max(d,h+o)}else if(n<e.length&&e[n].fromB<=f){let h=e[n++];f=Math.max(f,h.toB),d=Math.max(d,h.toA),o=h.toA-h.toB}else break;r.push(new t(c,d,u,f))}return r}},hO=class t{constructor(e,a,r){this.view=e,this.state=a,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=Ba.empty(this.startState.doc.length);for(let i of r)this.changes=this.changes.compose(i.changes);let n=[];this.changes.iterChangedRanges((i,o,s,l)=>n.push(new Tn(i,o,s,l))),this.changedRanges=n}static create(e,a,r){return new t(e,a,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},nH=[],yt=class{constructor(e,a,r=0){this.dom=e,this.length=a,this.flags=r,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return nH}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let a=this.domAttrs;a&&NF(this.dom,a)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,a=this.posAtStart){let r=a;for(let n of this.children){if(n==e)return r;r+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,a,r){return null}domPosFor(e,a){let r=ms(this.dom),n=this.length?e>0:a>0;return new Oi(this.parent.dom,r+(n?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof Hc)return e;return null}static get(e){return e.cmTile}},Fc=class extends yt{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let a=this.dom,r=null,n,i=e?.node==a?e:null,o=0;for(let s of this.children){if(s.sync(e),o+=s.length+s.breakAfter,n=r?r.nextSibling:a.firstChild,i&&n!=s.dom&&(i.written=!0),s.dom.parentNode==a)for(;n&&n!=s.dom;)n=uD(n);else a.insertBefore(s.dom,n);r=s.dom}for(n=r?r.nextSibling:a.firstChild,i&&n&&(i.written=!0);n;)n=uD(n);this.length=o}};function uD(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}var Hc=class extends Fc{constructor(e,a){super(a),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let a=yt.get(e);if(a&&this.owns(a))return a;e=e.parentNode}}blockTiles(e){for(let a=[],r=this,n=0,i=0;;)if(n==r.children.length){if(!a.length)return;r=r.parent,r.breakAfter&&i++,n=a.pop()}else{let o=r.children[n++];if(o instanceof eo)a.push(n),r=o,n=0;else{let s=i+o.length,l=e(o,i);if(l!==void 0)return l;i=s+o.breakAfter}}}resolveBlock(e,a){let r,n=-1,i,o=-1;if(this.blockTiles((s,l)=>{let u=l+s.length;if(e>=l&&e<=u){if(s.isWidget()&&a>=-1&&a<=1){if(s.flags&32)return!0;s.flags&16&&(r=void 0)}(l<e||e==u&&(a<-1?s.length:s.covers(1)))&&(!r||!s.isWidget()&&r.isWidget())&&(r=s,n=e-l),(u>e||e==l&&(a>1?s.length:s.covers(-1)))&&(!i||!s.isWidget()&&i.isWidget())&&(i=s,o=e-l)}}),!r&&!i)throw new Error("No tile at position "+e);return r&&a<0||!i?{tile:r,offset:n}:{tile:i,offset:o}}},eo=class t extends Fc{constructor(e,a){super(e),this.wrapper=a}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,a){let r=new t(a||document.createElement(e.tagName),e);return a||(r.flags|=4),r}},Gc=class t extends Fc{constructor(e,a){super(e),this.attrs=a}isLine(){return!0}static start(e,a,r){let n=new t(a||document.createElement("div"),e);return(!a||!r)&&(n.flags|=4),n}get domAttrs(){return this.attrs}resolveInline(e,a,r){let n=null,i=-1,o=null,s=-1;function l(c,f){for(let d=0,h=0;d<c.children.length&&h<=f;d++){let p=c.children[d],m=h+p.length;m>=f&&(p.isComposite()?l(p,f-h):(!o||o.isHidden&&(a>0&&!(o.flags&32)||r&&oH(o,p)))&&(m>f||p.flags&32&&a<=1)?(o=p,s=f-h):(h<f||p.flags&16&&!p.isHidden&&a>=-1)&&(n=p,i=f-h)),h=m}}l(this,e);let u=(a<0?n:o)||n||o;return u?{tile:u,offset:u==n?i:s}:null}coordsIn(e,a,r){let n=this.resolveInline(e,a,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),a,r):iH(this)}domIn(e,a){let r=this.resolveInline(e,a);if(r){let{tile:n,offset:i}=r;if(this.dom.contains(n.dom))return n.isText()?new Oi(n.dom,Math.min(n.dom.nodeValue.length,i)):n.domPosFor(i,n.flags&16?1:n.flags&32?-1:a);let o=r.tile.parent,s=!1;for(let l of o.children){if(s)return new Oi(l.dom,0);l==r.tile&&(s=!0)}}return new Oi(this.dom,0)}};function iH(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let a=sO(e);return a[a.length-1]||null}function oH(t,e){let a=t.coordsIn(0,1),r=e.coordsIn(0,1);return a&&r&&r.top<a.bottom}var rr=class t extends Fc{constructor(e,a){super(e),this.mark=a}get domAttrs(){return this.mark.attrs}static of(e,a){let r=new t(a||document.createElement(e.tagName),e);return a||(r.flags|=4),r}},Dl=class t extends yt{constructor(e,a){super(e,a.length),this.text=a}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,a,r){let n=this.dom.nodeValue.length;e>n&&(e=n);let i=e,o=e,s=0;e==0&&a<0||e==n&&a>=0?Y.chrome||Y.gecko||(e?(i--,s=1):o<n&&(o++,s=-1)):a<0?i--:o<n&&o++;let l=oh(this.dom,i,o).getClientRects();if(!l.length)return null;let u=l[(s?s<0:a>=0)?0:l.length-1];return Y.safari&&!s&&u.width==0&&(u=Array.prototype.find.call(l,c=>c.width)||u),r==null?u:dO(u,(s?s>0:a<0)==r)}static of(e,a){let r=new t(a||document.createTextNode(e),e);return a||(r.flags|=2),r}},_l=class t extends yt{constructor(e,a,r,n){super(e,a,n),this.widget=r}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,a){return this.coordsInWidget(e,a,!1)}coordsInWidget(e,a,r){let n=this.widget.coordsAt(this.dom,e,a);if(n)return n;if(r)return dO(this.dom.getBoundingClientRect(),this.length?e==0:a<=0);{let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let s=this.flags&16?!0:this.flags&32?!1:e>0;for(let l=s?i.length-1:0;o=i[l],!(e>0?l==0:l==i.length-1||o.top<o.bottom);l+=s?-1:1);return dO(o,!s)}}get overrideDOMText(){if(!this.length)return Le.empty;let{root:e}=this;if(!e)return Le.empty;let a=this.posAtStart;return e.view.state.doc.slice(a,a+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,a,r,n,i){return i||(i=e.toDOM(a),e.editable||(i.contentEditable="false")),new t(i,r,e,n)}},Yc=class extends yt{constructor(e){let a=document.createElement("img");a.className="cm-widgetBuffer",a.setAttribute("aria-hidden","true"),super(a,0,e)}get isHidden(){return!0}get overrideDOMText(){return Le.empty}coordsIn(e,a,r){let n=this.dom.getBoundingClientRect();return r==null?n:dO(n,a>0==r)}},jS=class{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,a,r){let{tile:n,index:i,beforeBreak:o,parents:s}=this;for(;e||a>0;)if(n.isComposite())if(o){if(!e)break;r&&r.break(),e--,o=!1}else if(i==n.children.length){if(!e&&!s.length)break;r&&r.leave(n),o=!!n.breakAfter,{tile:n,index:i}=s.pop(),i++}else{let l=n.children[i],u=l.breakAfter;(a>0?l.length<=e:l.length<e)&&(!r||r.skip(l,0,l.length)!==!1||!l.isComposite)?(o=!!u,i++,e-=l.length):(s.push({tile:n,index:i}),n=l,i=0,r&&l.isComposite()&&r.enter(l))}else{let l=n.length;if(i<l&&e){let u=Math.min(e,l-i);r&&r.skip(n,i,i+u),e-=u,i+=u}if(i==l)o=!!n.breakAfter,{tile:n,index:i}=s.pop(),i++;else if(!e)break}return this.tile=n,this.index=i,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}},FS=class{constructor(e,a,r,n){this.from=e,this.to=a,this.wrapper=r,this.rank=n}},HS=class{constructor(e,a,r){this.cache=e,this.root=a,this.blockWrappers=r,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,a,r,n){var i;this.flushBuffer();let o=this.ensureMarks(a,r),s=o.lastChild;if(s&&s.isText()&&!(s.flags&8)&&s.length+e.length<512){this.cache.reused.set(s,2);let l=o.children[o.children.length-1]=new Dl(s.dom,s.text+e);l.parent=o}else o.append(n||Dl.of(e,(i=this.cache.find(Dl))===null||i===void 0?void 0:i.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,a){let r=this.curLine;r.dom!=a.line.dom&&(r.setDOM(this.cache.reused.has(a.line)?QS(a.line.dom):a.line.dom),this.cache.reused.set(a.line,2));let n=r;for(let s=a.marks.length-1;s>=0;s--){let l=a.marks[s],u=n.lastChild;if(u instanceof rr&&u.mark.eq(l.mark))u.dom!=l.dom&&u.setDOM(QS(l.dom)),n=u;else{if(this.cache.reused.get(l)){let f=yt.get(l.dom);f&&f.setDOM(QS(l.dom))}let c=rr.of(l.mark,l.dom);n.append(c),n=c}this.cache.reused.set(l,2)}let i=yt.get(e.text);i&&this.cache.reused.set(i,2);let o=new Dl(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,n.append(o)}addInlineWidget(e,a,r){let n=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);n||this.flushBuffer();let i=this.ensureMarks(a,r);!n&&!(e.flags&16)&&i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,a,r){this.flushBuffer(),this.ensureMarks(a,r).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let a=this.afterWidget||this.lastBlock;a.length+=e,this.pos+=e}addLineStart(e,a){var r;e||(e=n$);let n=Gc.start(e,a||((r=this.cache.find(Gc))===null||r===void 0?void 0:r.dom),!!a);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,a){var r;let n=this.curLine;for(let i=e.length-1;i>=0;i--){let o=e[i],s;if(a>0&&(s=n.lastChild)&&s instanceof rr&&s.mark.eq(o))n=s,a--;else{let l=rr.of(o,(r=this.cache.find(rr,u=>u.mark.eq(o)))===null||r===void 0?void 0:r.dom);n.append(l),n=l,a=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!cD(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(Y.ios&&cD(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(MS,0,32)||new _l(MS.toDOM(),0,MS,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let a=e.rank*102+e.value.rank,r=new FS(e.from,e.to,e.value,a),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-r.rank||this.wrappers[n-1].to-r.to)<0;)n--;this.wrappers.splice(n,0,r)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let a=this.root;for(let r of this.wrappers){let n=a.lastChild;if(r.from<this.pos&&n instanceof eo&&n.wrapper.eq(r.wrapper))a=n;else{let i=eo.of(r.wrapper,(e=this.cache.find(eo,o=>o.wrapper.eq(r.wrapper)))===null||e===void 0?void 0:e.dom);a.append(i),a=i}}return a}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let a=2|(e<0?16:32),r=this.cache.find(Yc,void 0,1);return r&&(r.flags=a),r||new Yc(a)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},GS=class{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:n,lineBreak:i,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=n;let s=this.textOff=Math.min(e,n.length);return i?null:n.slice(0,s)}let a=Math.min(this.text.length,this.textOff+e),r=this.text.slice(this.textOff,a);return this.textOff=a,r}},pO=[_l,Gc,Dl,rr,Yc,eo,Hc];for(let t=0;t<pO.length;t++)pO[t].bucket=t;var YS=class{constructor(e){this.view=e,this.buckets=pO.map(()=>[]),this.index=pO.map(()=>0),this.reused=new Map}add(e){let a=e.constructor.bucket,r=this.buckets[a];r.length<6?r.push(e):r[this.index[a]=(this.index[a]+1)%6]=e}find(e,a,r=2){let n=e.bucket,i=this.buckets[n],o=this.index[n];for(let s=0;s<i.length;s++){let l=(s+o)%i.length,u=i[l];if((!a||a(u))&&!this.reused.has(u))return i.splice(l,1),l<o&&this.index[n]--,this.reused.set(u,r),u}return null}findWidget(e,a,r){let n=this.buckets[0];if(n.length)for(let i=0,o=0;;i++){if(i==n.length){if(o)return null;o=1,i=0}let s=n[i];if(!this.reused.has(s)&&(o==0?s.widget.compare(e):s.widget.constructor==e.constructor&&e.updateDOM(s.dom,this.view,s.widget)))return n.splice(i,1),i<this.index[0]&&this.index[0]--,s.widget==e&&s.length==a&&(s.flags&497)==r?(this.reused.set(s,1),s):(this.reused.set(s,2),new _l(s.dom,a,e,s.flags&-498|r))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,a=2){if(!this.reused.has(e))return this.reused.set(e,a),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}},WS=class{constructor(e,a,r,n,i){this.view=e,this.decorations=n,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new YS(e),this.text=new GS(e.state.doc),this.builder=new HS(this.cache,new Hc(e,e.contentDOM),ht.iter(r)),this.cache.reused.set(a,2),this.old=new jS(a),this.reuseWalker={skip:(o,s,l)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,a){let r=a&&this.getCompositionContext(a.text);for(let n=0,i=0,o=0;;){let s=o<e.length?e[o++]:null,l=s?s.fromA:this.old.root.length;if(l>n){let u=l-n;this.preserve(u,!o,!s),n=l,i+=u}if(!s)break;a&&s.fromA<=a.range.fromA&&s.toA>=a.range.toA?(this.forward(s.fromA,a.range.fromA,a.range.fromA<a.range.toA?1:-1),this.emit(i,a.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(a,r),this.text.skip(a.range.toB-a.range.fromB),this.forward(a.range.fromA,s.toA),this.emit(a.range.toB,s.toB)):(this.forward(s.fromA,s.toA),this.emit(i,s.toB)),i=s.toB,n=s.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,a,r){let n=uH(this.old),i=this.openMarks;this.old.advance(e,r?1:-1,{skip:(o,s,l)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(l-s);else{let u=l>0||s<o.length?_l.of(o.widget,this.view,l-s,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);u.flags&256?(u.flags&=-2,this.builder.addBlockWidget(u)):(this.builder.ensureLine(null),this.builder.addInlineWidget(u,n,i),i=n.length)}else if(o.isText())this.builder.ensureLine(null),!s&&l==o.length&&!this.cache.reused.has(o)?this.builder.addText(o.text,n,i,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(s,l),n,i)),i=n.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof Yc)this.cache.add(o);else if(o instanceof rr)this.builder.ensureLine(null),this.builder.addMark(o,n,i),this.cache.reused.set(o,1),i=n.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof rr&&n.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?n.length&&(n.length=i=0):o instanceof rr&&(n.shift(),i=Math.min(i,n.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,a){let r=null,n=this.builder,i=-1,o=ht.spans(this.decorations,e,a,{point:(s,l,u,c,f,d)=>{if(u instanceof $l){if(this.disallowBlockEffectsFor[d]){if(u.block)throw new RangeError("Block decorations may not be specified via plugins");if(l>this.view.state.doc.lineAt(s).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=c.length,f>c.length)n.continueWidget(l-s);else{let h=u.widget||(u.block?Os.block:Os.inline),p=sH(u),m=this.cache.findWidget(h,l-s,p)||_l.of(h,this.view,l-s,p);u.block?(u.startSide>0&&n.addLineStartIfNotCovered(r),n.addBlockWidget(m)):(n.ensureLine(r),n.addInlineWidget(m,c,f))}r=null}else r=lH(r,u);l>s&&this.text.skip(l-s)},span:(s,l,u,c)=>{for(let f=s;f<l;){let d=this.text.next(Math.min(512,l-f));d==null?(n.addLineStartIfNotCovered(r),n.addBreak(),f++):(n.ensureLine(r),n.addText(d,u,f==s?c:u.length),f+=d.length),r=null}i=u.length}});i>-1&&(this.openWidget=o>i),this.openWidget||n.addLineStartIfNotCovered(r),this.openMarks=o}forward(e,a,r=1){a-e<=10?this.old.advance(a-e,r,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(a-e-10,-1),this.old.advance(5,r,this.reuseWalker))}getCompositionContext(e){let a=[],r=null;for(let n=e.parentNode;;n=n.parentNode){let i=yt.get(n);if(n==this.view.contentDOM)break;i instanceof rr?a.push(i):i?.isLine()?r=i:i instanceof eo||(n.nodeName=="DIV"&&!r&&n!=this.view.contentDOM?r=new Gc(n,n$):r||a.push(rr.of(new rh({tagName:n.nodeName.toLowerCase(),attributes:XF(n)}),n)))}return{line:r,marks:a}}};function cD(t,e){let a=r=>{for(let n of r.children)if((e?n.isText():n.length)||a(n))return!0;return!1};return a(t)}function sH(t){let e=t.isReplace?(t.startSide<0?64:0)|(t.endSide>0?128:0):t.startSide>0?32:16;return t.block&&(e|=256),e}var n$={class:"cm-line"};function lH(t,e){let a=e.spec.attributes,r=e.spec.class;return!a&&!r||(t||(t={class:"cm-line"}),a&&b1(a,t),r&&(t.class+=" "+r)),t}function uH(t){let e=[];for(let a=t.parents.length;a>1;a--){let r=a==t.parents.length?t.tile:t.parents[a].tile;r instanceof rr&&e.push(r.mark)}return e}function QS(t){let e=yt.get(t);return e&&e.setDOM(t.cloneNode()),t}var Os=class extends to{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};Os.inline=new Os("span");Os.block=new Os("div");var MS=new class extends to{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}},mO=class{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=nt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Hc(e,e.contentDOM),this.updateInner([new Tn(0,0,0,e.state.doc.length)],null)}update(e){var a;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:c,toA:f})=>f<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((a=this.domChanged)===null||a===void 0)&&a.newSel?n=this.domChanged.newSel.head:!OH(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let i=n>-1?fH(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:f}=this.hasComposition;r=new Tn(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(Y.ie||Y.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,s=this.blockWrappers;this.updateDeco();let l=pH(o,this.decorations,e.changes);l.length&&(r=Tn.extendWithRanges(r,l));let u=mH(s,this.blockWrappers,e.changes);return u.length&&(r=Tn.extendWithRanges(r,u)),i&&!r.some(c=>c.fromA<=i.range.fromA&&c.toA>=i.range.toA)&&(r=i.range.addToSet(r.slice())),this.tile.flags&2&&r.length==0?!1:(this.updateInner(r,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,a){this.view.viewState.mustMeasureContent=!0;let{observer:r}=this.view;r.ignore(()=>{if(a||e.length){let o=this.tile,s=new WS(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);a&&yt.get(a.text)&&s.cache.reused.set(yt.get(a.text),2),this.tile=s.run(e,a),KS(o,s.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=Y.chrome||Y.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(i),i&&(i.written||r.selectionRange.focusNode!=i.node||!this.tile.dom.contains(i.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.tile.children)i.isWidget()&&i.widget instanceof eh&&n.push(i.dom);r.updateGaps(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let a of e.transactions)for(let r of a.effects)r.is(KD)&&(this.editContextFormatting=r.value)}updateSelection(e=!1,a=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:r}=this.tile,n=this.view.root.activeElement,i=n==r,o=!i&&!(this.view.state.facet(Ji)||r.tabIndex>-1)&&Yd(r,this.view.observer.selectionRange)&&!(n&&r.contains(n));if(!(i||a||o))return;let s=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,u,c;if(l.empty?c=u=this.inlineDOMNearPos(l.anchor,l.assoc||1):(c=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),u=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),Y.gecko&&l.empty&&!this.hasComposition&&cH(u)){let d=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(d,u.node.childNodes[u.offset]||null)),u=c=new Oi(d,0),s=!0}let f=this.view.observer.selectionRange;(s||!f.focusNode||(!Wd(u.node,u.offset,f.anchorNode,f.anchorOffset)||!Wd(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,l))&&(this.view.observer.ignore(()=>{Y.android&&Y.chrome&&r.contains(f.focusNode)&&gH(f.focusNode,r)&&(r.blur(),r.focus({preventScroll:!0}));let d=ih(this.view.root);if(d)if(l.empty){if(Y.gecko){let h=dH(u.node,u.offset);if(h&&h!=3){let p=(h==1?BD:_D)(u.node,u.offset);p&&(u=new Oi(p.node,p.offset))}}d.collapse(u.node,u.offset),l.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=l.bidiLevel)}else if(d.extend){d.collapse(u.node,u.offset);try{d.extend(c.node,c.offset)}catch{}}else{let h=document.createRange();l.anchor>l.head&&([u,c]=[c,u]),h.setEnd(c.node,c.offset),h.setStart(u.node,u.offset),d.removeAllRanges(),d.addRange(h)}o&&this.view.root.activeElement==r&&(r.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(u,c)),this.impreciseAnchor=u.precise?null:new Oi(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new Oi(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,a){return this.hasComposition&&a.empty&&Wd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==a.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,a=e.state.selection.main,r=ih(e.root),{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!r||!a.empty||!a.assoc||!r.modify)return;let o=this.lineAt(a.head,a.assoc);if(!o)return;let s=o.posAtStart;if(a.head==s||a.head==s+o.length)return;let l=this.coordsAt(a.head,-1),u=this.coordsAt(a.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(a.head+a.assoc,a.assoc);r.collapse(c.node,c.offset),r.modify("move",a.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=a.from&&r.collapse(n,i)}posFromDOM(e,a){let r=this.tile.nearest(e);if(!r)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let n=r.posAtStart;if(r.isComposite()){let i;if(e==r.dom)i=r.dom.childNodes[a];else{let o=ao(e)==0?0:a==0?-1:1;for(;;){let s=e.parentNode;if(s==r.dom)break;o==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?o=-1:o=1),e=s}o<0?i=e:i=e.nextSibling}if(i==r.dom.firstChild)return n;for(;i&&!yt.get(i);)i=i.nextSibling;if(!i)return n+r.length;for(let o=0,s=n;;o++){let l=r.children[o];if(l.dom==i)return s;s+=l.length+l.breakAfter}}else return r.isText()?e==r.dom?n+a:n+(a?r.length:0):n}domAtPos(e,a){let{tile:r,offset:n}=this.tile.resolveBlock(e,a);return r.isWidget()?r.domPosFor(n,a):r.domIn(n,a)}inlineDOMNearPos(e,a){let r,n=-1,i=!1,o,s=-1,l=!1;return this.tile.blockTiles((u,c)=>{if(u.isWidget()){if(u.flags&32&&c>=e)return!0;u.flags&16&&(i=!0)}else{let f=c+u.length;if(c<=e&&(r=u,n=e-c,i=f<e),f>=e&&!o&&(o=u,s=e-c,l=c>e),c>e&&o)return!0}}),!r&&!o?this.domAtPos(e,a):(i&&o?r=null:l&&r&&(o=null),r&&a<0||!o?r.domIn(n,a):o.domIn(s,a))}coordsAt(e,a,r){let{tile:n,offset:i}=this.tile.resolveBlock(e,a);return n.isWidget()?n.widget instanceof eh?null:n.coordsInWidget(i,a,!0):n.coordsIn(i,a,r)}lineAt(e,a){let{tile:r}=this.tile.resolveBlock(e,a);return r.isLine()?r:null}coordsForChar(e){let{tile:a,offset:r}=this.tile.resolveBlock(e,1);if(!a.isLine())return null;function n(i,o){if(i.isComposite())for(let s of i.children){if(s.length>=o){let l=n(s,o);if(l)return l}if(o-=s.length,o<0)break}else if(i.isText()&&o<i.length){let s=Jt(i.text,o);if(s==o)return null;let l=oh(i.dom,o,s).getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(u==l.length-1||c.top<c.bottom&&c.left<c.right)return c}}return null}return n(a,r)}measureVisibleLineHeights(e){let a=[],{from:r,to:n}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==wt.LTR,u=0,c=(f,d,h)=>{for(let p=0;p<f.children.length&&!(d>n);p++){let m=f.children[p],x=d+m.length,g=m.dom.getBoundingClientRect(),{height:O}=g;if(h&&!p&&(u+=g.top-h.top),m instanceof eo)x>r&&c(m,d,g);else if(d>=r&&(u>0&&a.push(-u),a.push(O+u),u=0,o)){let y=m.dom.lastChild,b=y?sO(y):[];if(b.length){let v=b[b.length-1],S=l?v.right-g.left:g.right-v.left;S>s&&(s=S,this.minWidth=i,this.minWidthFrom=d,this.minWidthTo=x)}}h&&p==f.children.length-1&&(u+=h.bottom-g.bottom),d=x+m.breakAfter}};return c(this.tile,0,null),a}textDirectionAt(e){let{tile:a}=this.tile.resolveBlock(e,1);return getComputedStyle(a.dom).direction=="rtl"?wt.RTL:wt.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let s=0,l;for(let u of o.children){if(!u.isText()||/[^ -~]/.test(u.text))return;let c=sO(u.dom);if(c.length!=1)return;s+=c[0].width,l=c[0].height}if(s)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:s/o.length,textHeight:l}}});if(e)return e;let a=document.createElement("div"),r,n,i;return a.className="cm-line",a.style.width="99999px",a.style.position="absolute",a.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(a);let o=sO(a.firstChild)[0];r=a.getBoundingClientRect().height,n=o&&o.width?o.width/27:7,i=o&&o.height?o.height:r,a.remove()}),{lineHeight:r,charWidth:n,textHeight:i}}computeBlockGapDeco(){let e=[],a=this.view.viewState;for(let r=0,n=0;;n++){let i=n==a.viewports.length?null:a.viewports[n],o=i?i.from-1:this.view.state.doc.length;if(o>r){let s=(a.lineBlockAt(o).bottom-a.lineBlockAt(r).top)/this.view.scaleY;e.push(nt.replace({widget:new eh(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!i)break;r=i.to+1}return nt.set(e)}updateDeco(){let e=1,a=this.view.state.facet(wO).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),r=!1,n=this.view.state.facet(L1).map((i,o)=>{let s=typeof i=="function";return s&&(r=!0),s?i(this.view):i});for(n.length&&(this.dynamicDecorationMap[e++]=r,a.push(ht.join(n))),this.decorations=[this.editContextFormatting,...a,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(e$).map(i=>typeof i=="function"?i(this.view):i)}scrollIntoView(e){if(e.isSnapshot){let u=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=u.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let u of this.view.state.facet(WD))try{if(u(this.view,e.range,e))return!0}catch(c){en(this.view.state,c,"scroll handler")}let{range:a}=e,r=this.coordsAt(a.head,a.assoc||(a.head>a.anchor?-1:1)),n;if(!r)return;!a.empty&&(n=this.coordsAt(a.anchor,a.anchor>a.head?-1:1))&&(r={left:Math.min(r.left,n.left),top:Math.min(r.top,n.top),right:Math.max(r.right,n.right),bottom:Math.max(r.bottom,n.bottom)});let i=r$(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;if(VF(this.view.scrollDOM,o,a.head<a.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==wt.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(r.top>window.visualViewport.offsetTop+window.visualViewport.height||r.bottom<window.visualViewport.offsetTop)){let u=this.view.docView.lineAt(a.head,1);if(u){let c=MD(u.dom);u.dom.scrollIntoView({block:"nearest"}),ED(c,!1)}}}lineHasWidget(e){let a=r=>r.isWidget()||r.children.some(a);return a(this.tile.resolveBlock(e,1).tile)}destroy(){KS(this.tile)}};function KS(t,e){let a=e?.get(t);if(a!=1){a==null&&t.destroy();for(let r of t.children)KS(r,e)}}function cH(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function i$(t,e){let a=t.observer.selectionRange;if(!a.focusNode)return null;let r=BD(a.focusNode,a.focusOffset),n=_D(a.focusNode,a.focusOffset),i=r||n;if(n&&r&&n.node!=r.node){let s=yt.get(n.node);if(!s||s.isText()&&s.text!=n.node.nodeValue)i=n;else if(t.docView.lastCompositionAfterCursor){let l=yt.get(r.node);!l||l.isText()&&l.text!=r.node.nodeValue||(i=n)}}if(t.docView.lastCompositionAfterCursor=i!=r,!i)return null;let o=e-i.offset;return{from:o,to:o+i.node.nodeValue.length,node:i.node}}function fH(t,e,a){let r=i$(t,a);if(!r)return null;let{node:n,from:i,to:o}=r,s=n.nodeValue;if(/[\n\r]/.test(s)||t.state.doc.sliceString(r.from,r.to)!=s)return null;let l=e.invertedDesc;return{range:new Tn(l.mapPos(i),l.mapPos(o),i,o),text:n}}function dH(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}var hH=class{constructor(){this.changes=[]}compareRange(e,a){Uc(e,a,this.changes)}comparePoint(e,a){Uc(e,a,this.changes)}boundChange(e){Uc(e,e,this.changes)}};function pH(t,e,a){let r=new hH;return ht.compare(t,e,a,r),r.changes}var JS=class{constructor(){this.changes=[]}compareRange(e,a){Uc(e,a,this.changes)}comparePoint(){}boundChange(e){Uc(e,e,this.changes)}};function mH(t,e,a){let r=new JS;return ht.compare(t,e,a,r),r.changes}function gH(t,e){for(let a=t;a&&a!=e;a=a.assignedSlot||a.parentNode)if(a.nodeType==1&&a.contentEditable=="false")return!0;return!1}function OH(t,e){let a=!1;return e&&t.iterChangedRanges((r,n)=>{r<e.to&&n>e.from&&(a=!0)}),a}var eh=class extends to{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}};function xH(t,e,a=1){let r=t.charCategorizer(e),n=t.doc.lineAt(e),i=e-n.from;if(n.length==0)return E.cursor(e);i==0?a=1:i==n.length&&(a=-1);let o=i,s=i;a<0?o=Jt(n.text,i,!1):s=Jt(n.text,i);let l=r(n.text.slice(o,s));for(;o>0;){let u=Jt(n.text,o,!1);if(r(n.text.slice(u,o))!=l)break;o=u}for(;s<n.length;){let u=Jt(n.text,s);if(r(n.text.slice(s,u))!=l)break;s=u}return E.undirectionalRange(o+n.from,s+n.from)}function yH(t,e,a,r,n){let i=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&a.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,l=Math.floor((n-a.top-(t.defaultLineHeight-s)*.5)/s);i+=l*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(a.from,a.to);return a.from+WE(o,i,t.state.tabSize)}function bH(t,e,a){let r=t.lineBlockAt(e);if(Array.isArray(r.type)){let n;for(let i of r.type){if(i.from>e)break;if(!(i.to<e)){if(i.from<e&&i.to>e)return i;(!n||i.type==tn.Text&&(n.type!=i.type||(a<0?i.from<e:i.to>e)))&&(n=i)}}return n||r}return r}function vH(t,e,a,r){let n=bH(t,e.head,e.assoc||-1),i=!r||n.type!=tn.Text||!(t.lineWrapping||n.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(i){let o=t.dom.getBoundingClientRect(),s=t.textDirectionAt(n.from),l=t.posAtCoords({x:a==(s==wt.LTR)?o.right-1:o.left+1,y:(i.top+i.bottom)/2});if(l!=null)return E.cursor(l,a?-1:1)}return E.cursor(a?n.to:n.from,a?-1:1)}function fD(t,e,a,r){let n=t.state.doc.lineAt(e.head),i=t.bidiSpans(n),o=t.textDirectionAt(n.from);for(let s=e,l=null;;){let u=eH(n,i,o,s,a),c=ZD;if(!u){if(n.number==(a?t.state.doc.lines:1))return s;c=`
|
|
56
|
+
`,n=t.state.doc.line(n.number+(a?1:-1)),i=t.bidiSpans(n),u=t.visualLineSide(n,!a)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function SH(t,e,a){let r=t.state.charCategorizer(e),n=r(a);return i=>{let o=r(i);return n==Hr.Space&&(n=o),n==o}}function wH(t,e,a,r){let n=e.head,i=a?1:-1;if(n==(a?t.state.doc.length:0))return E.cursor(n,e.assoc);let o=e.goalColumn,s,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(n,e.assoc||((e.empty?a:e.head==e.from)?1:-1)),c=t.documentTop;if(u)o==null&&(o=u.left-l.left),s=i<0?u.top:u.bottom;else{let p=t.viewState.lineBlockAt(n);o==null&&(o=Math.min(l.right-l.left,t.defaultCharacterWidth*(n-p.from))),s=(i<0?p.top:p.bottom)+c}let f=l.left+o,d=t.viewState.heightOracle.textHeight>>1,h=r??d;for(let p=0;;p+=d){let m=s+(h+p)*i,x=e1(t,{x:f,y:m},!1,i);if(a?m>l.bottom:m<l.top)return E.cursor(x.pos,x.assoc);let g=t.coordsAtPos(x.pos,x.assoc),O=g?(g.top+g.bottom)/2:0;if(!g||(a?O>s:O<s))return E.cursor(x.pos,x.assoc,void 0,o)}}function th(t,e,a){for(;;){let r=0;for(let n of t)n.between(e-1,e+1,(i,o,s)=>{if(e>i&&e<o){let l=r||a||(e-i<o-e?-1:1);e=l<0?i:o,r=l}});if(!r)return e}}function o$(t,e){let a=null;for(let r=0;r<e.ranges.length;r++){let n=e.ranges[r],i=null;if(n.empty){let o=th(t,n.from,0);o!=n.from&&(i=E.cursor(o,-1))}else{let o=th(t,n.from,-1),s=th(t,n.to,1);(o!=n.from||s!=n.to)&&(n.undirectional?i=E.undirectionalRange(n.from,n.to):i=E.range(n.from==n.anchor?o:s,n.from==n.head?o:s))}i&&(a||(a=e.ranges.slice()),a[r]=i)}return a?E.create(a,e.mainIndex):e}function ES(t,e,a){let r=th(t.state.facet(sh).map(n=>n(t)),a.from,e.head>a.from?-1:1);return r==a.from?a:E.cursor(r,r<a.from?1:-1)}var Kr=class{constructor(e,a){this.pos=e,this.assoc=a}};function e1(t,e,a,r){let n=t.contentDOM.getBoundingClientRect(),i=n.top+t.viewState.paddingTop,{x:o,y:s}=e,l=s-i,u;for(;;){if(l<0)return new Kr(0,1);if(l>t.viewState.docHeight)return new Kr(t.state.doc.length,-1);if(u=t.elementAtHeight(l),r==null)break;if(u.type==tn.Text){if(r<0?u.to<t.viewport.from:u.from>t.viewport.to)break;let d=t.docView.coordsAt(r<0?u.from:u.to,r>0?-1:1);if(d&&(r<0?d.top<=l+i:d.bottom>=l+i))break}let f=t.viewState.heightOracle.textHeight/2;l=r>0?u.bottom+f:u.top-f}if(t.viewport.from>=u.to||t.viewport.to<=u.from){if(a)return null;if(u.type==tn.Text){let f=yH(t,n,u,o,s);return new Kr(f,f==u.from?1:-1)}}if(u.type!=tn.Text)return l<(u.top+u.bottom)/2?new Kr(u.from,1):new Kr(u.to,-1);let c=t.docView.lineAt(u.from,2);return(!c||c.length!=u.length)&&(c=t.docView.lineAt(u.from,-2)),new t1(t,o,s,t.textDirectionAt(u.from)).scanTile(c,u.from)}var t1=class{constructor(e,a,r,n){this.view=e,this.x=a,this.y=r,this.baseDir=n,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,a){let{line:r,spans:n}=this.bidiSpansAt(e);return n[Jr.find(n,e-r.from,-1,a)].level==this.baseDir}dirAt(e,a){let{line:r,spans:n}=this.bidiSpansAt(e);return n[Jr.find(n,e-r.from,-1,a)].dir}bidiIn(e,a){let{spans:r,line:n}=this.bidiSpansAt(e);return r.length>1||r.length&&(r[0].level!=this.baseDir||r[0].to+n.from<a)}scan(e,a,r=!1){let n=0,i=e.length-1,o=new Set,s=this.bidiIn(e[0],e[i]),l,u,c=-1,f=1e9,d;e:for(;n<i;){let p=i-n,m=n+i>>1;t:if(o.has(m)){for(let O=1;O<p;O++){let y=m+O;if(y>=i&&(y-=p),!o.has(y)){m=y;break t}}break e}o.add(m);let x=a(m),g=0;if(x)for(let O=0;O<x.length;O++){let y=x[O];if(!(y.width==0&&x.length>1))if(y.bottom<this.y)(!l||l.bottom<y.bottom)&&(l=y),g=1;else if(y.top>this.y)(!u||u.top>y.top)&&(u=y),g=-1;else{let b=y.left>this.x?this.x-y.left:y.right<this.x?this.x-y.right:0,v=Math.abs(b);v<f&&(c=m,f=v,d=y),b&&(g=b<0==(this.baseDir==wt.LTR)?-1:1)}}g==-1&&(!s||this.baseDirAt(e[m],1))?i=m:g==1&&(!s||this.baseDirAt(e[m+1],-1))&&(n=m+1)}if(!d){if(!u&&!l)return{i:0,after:!1};let p=l&&(!u||this.y-l.bottom<u.top-this.y)?l:u;return this.y=(p.top+p.bottom)/2,this.scan(e,a,!0)}if(f&&!r){let{top:p,bottom:m}=d;if(l&&l.bottom>(p+p+m)/3)return this.y=l.bottom-1,this.scan(e,a,!0);if(u&&u.top<(p+m+m)/3)return this.y=u.top+1,this.scan(e,a,!0)}let h=(s?this.dirAt(e[c],1):this.baseDir)==wt.LTR;return{i:c,after:this.x>(d.left+d.right)/2==h}}scanText(e,a){let r=[];for(let i=0;i<e.length;i=Jt(e.text,i))r.push(a+i);r.push(a+e.length);let n=this.scan(r,i=>{let o=r[i]-a,s=r[i+1]-a;return oh(e.dom,o,s).getClientRects()});return n.after?new Kr(r[n.i+1],-1):new Kr(r[n.i],1)}scanTile(e,a){if(!e.length)return new Kr(a,1);if(e.children.length==1){let s=e.children[0];if(s.isText())return this.scanText(s,a);if(s.isComposite())return this.scanTile(s,a)}let r=[a];for(let s=0,l=a;s<e.children.length;s++)r.push(l+=e.children[s].length);let n=this.scan(r,s=>{let l=e.children[s];return l.flags&48?null:(l.dom.nodeType==1?l.dom:oh(l.dom,0,l.length)).getClientRects()}),i=e.children[n.i],o=r[n.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):n.after?new Kr(r[n.i+1],-1):new Kr(o,1)}},qc="\uFFFF",a1=class{constructor(e,a){this.points=e,this.view=a,this.text="",this.lineSeparator=a.state.facet(xt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=qc}readRange(e,a){if(!e)return this;let r=e.parentNode;for(let n=e;;){this.findPointBefore(r,n);let i=this.text.length;this.readNode(n);let o=yt.get(n),s=n.nextSibling;if(s==a){o?.breakAfter&&!s&&r!=this.view.contentDOM&&this.lineBreak();break}let l=yt.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:fO(n))||fO(s)&&(n.nodeName!="BR"||o?.isWidget())&&this.text.length>i)&&!kH(s,a)&&this.lineBreak(),n=s}return this.findPointBefore(r,a),this}readTextNode(e){let a=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,a.length));for(let r=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator?(i=a.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(s=n.exec(a))&&(i=s.index,o=s[0].length),this.append(a.slice(r,i<0?a.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);r=i+o}}readNode(e){let a=yt.get(e),r=a&&a.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let n=r.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,a){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==a&&(r.pos=this.text.length)}findPointInside(e,a){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(CH(e,r.node,r.offset)?a:0))}};function CH(t,e,a){for(;;){if(!e||a<ao(e))return!1;if(e==t)return!0;a=ms(e)+1,e=e.parentNode}}function kH(t,e){let a;for(;!(t==e||!t);t=t.nextSibling){let r=yt.get(t);if(!r?.isWidget())return!1;r&&(a||(a=[])).push(r)}if(a)for(let r of a){let n=r.overrideDOMText;if(n?.length)return!1}return!0}var gO=class{constructor(e,a){this.node=e,this.offset=a,this.pos=-1}},r1=class{constructor(e,a,r,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=a>-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,s=e.state.selection;if(e.state.readOnly&&a>-1)this.newSel=null;else if(a>-1&&(this.bounds=s$(e.docView.tile,a,r,0))){let l=i||o?[]:TH(e),u=new a1(l,e);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=PH(l,this.bounds.from)}else{let l=e.observer.selectionRange,u=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!NS(e.contentDOM,l.focusNode)?s.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!NS(e.contentDOM,l.anchorNode)?s.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),f=e.viewport;if((Y.ios||Y.chrome)&&u!=c&&Math.min(u,c)<=s.main.from&&Math.max(u,c)>=s.main.to&&(f.from>0||f.to<e.state.doc.length)){let d=Math.min(u,c),h=Math.max(u,c),p=f.from-d,m=f.to-h;(p==0||p==1||d==0)&&(m==0||m==-1||h==e.state.doc.length)&&(u=0,c=e.state.doc.length)}if(e.inputState.composing>-1&&s.ranges.length>1)this.newSel=s.replaceRange(E.range(c,u));else if(e.lineWrapping&&c==u&&!(s.main.empty&&s.main.head==u)&&e.inputState.lastTouchTime>Date.now()-100){let d=e.coordsAtPos(u,-1),h=0;d&&(h=e.inputState.lastTouchY<=d.bottom?-1:1),this.newSel=E.create([E.cursor(u,h)])}else this.newSel=E.single(c,u)}}};function s$(t,e,a,r){if(t.isComposite()){let n=-1,i=-1,o=-1,s=-1;for(let l=0,u=r,c=r;l<t.children.length;l++){let f=t.children[l],d=u+f.length;if(u<e&&d>a)return s$(f,e,a,u);if(d>=e&&n==-1&&(n=l,i=u),u>a&&f.dom.parentNode==t.dom){o=l,s=c;break}c=d,u=d+f.breakAfter}return{from:i,to:s<0?r+t.length:s,startDOM:(n?t.children[n-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:o<t.children.length&&o>=0?t.children[o].dom:null}}else return t.isText()?{from:r,to:r+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}function l$(t,e){let a,{newSel:r}=e,{state:n}=t,i=n.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:l}=e.bounds,u=i.from,c=null;(o===8||Y.android&&e.text.length<l-s)&&(u=i.to,c="end");let f=n.doc.sliceString(s,l,qc),d,h;!i.empty&&i.from>=s&&i.to<=l&&(e.typeOver||f!=e.text)&&f.slice(0,i.from-s)==e.text.slice(0,i.from-s)&&f.slice(i.to-s)==e.text.slice(d=e.text.length-(f.length-(i.to-s)))?a={from:i.from,to:i.to,insert:Le.of(e.text.slice(i.from-s,d).split(qc))}:(h=u$(f,e.text,u-s,c))&&(Y.chrome&&o==13&&h.toB==h.from+2&&e.text.slice(h.from,h.toB)==qc+qc&&h.toB--,a={from:s+h.from,to:s+h.toA,insert:Le.of(e.text.slice(h.from,h.toB).split(qc))})}else r&&(!t.hasFocus&&n.facet(Ji)||OO(r,i))&&(r=null);if(!a&&!r)return!1;if((Y.mac||Y.android)&&a&&a.from==a.to&&a.from==i.head-1&&/^\. ?$/.test(a.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&a.insert.length==2&&(r=E.single(r.main.anchor-1,r.main.head-1)),a={from:a.from,to:a.to,insert:Le.of([a.insert.toString().replace("."," ")])}):n.doc.lineAt(i.from).to<i.to&&t.docView.lineHasWidget(i.to)&&t.inputState.insertingTextAt>Date.now()-50?a={from:i.from,to:i.to,insert:n.toText(t.inputState.insertingText)}:Y.chrome&&a&&a.from==a.to&&a.from==i.head&&a.insert.toString()==`
|
|
57
|
+
`&&t.lineWrapping&&(r&&(r=E.single(r.main.anchor-1,r.main.head-1)),a={from:i.from,to:i.to,insert:Le.of([" "])}),a)return T1(t,a,r,o);if(r&&!OO(r,i)){let s=!1,l="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),l=t.inputState.lastSelectionOrigin,l=="select.pointer"&&(r=o$(n.facet(sh).map(u=>u(t)),r))),t.dispatch({selection:r,scrollIntoView:s,userEvent:l}),!0}else return!1}function T1(t,e,a,r=-1){if(Y.ios&&t.inputState.flushIOSKey(e))return!0;let n=t.state.selection.main;if(Y.android&&(e.to==n.to&&(e.from==n.from||e.from==n.from-1&&t.state.sliceDoc(e.from,n.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&jc(t.contentDOM,"Enter",13)||(e.from==n.from-1&&e.to==n.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>n.head)&&jc(t.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&jc(t.contentDOM,"Delete",46)))return!0;let i=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,s=()=>o||(o=LH(t,e,a));return t.state.facet(HD).some(l=>l(t,e.from,e.to,i,s))||t.dispatch(s()),!0}function LH(t,e,a){let r,n=t.state,i=n.selection.main,o=-1;if(e.from==e.to&&e.from<i.from||e.from>i.to){let l=e.from<i.from?-1:1,u=l<0?i.from:i.to,c=th(n.facet(sh).map(f=>f(t)),u,l);e.from==c&&(o=c)}if(o>-1)r={changes:e,selection:E.cursor(e.from+e.insert.length,-1)};else if(e.from>=i.from&&e.to<=i.to&&e.to-e.from>=(i.to-i.from)/3&&(!a||a.main.empty&&a.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let l=i.from<e.from?n.sliceDoc(i.from,e.from):"",u=i.to>e.to?n.sliceDoc(e.to,i.to):"";r=n.replaceSelection(t.state.toText(l+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let l=n.changes(e),u=a&&a.main.to<=l.newLength?a.main:void 0;if(n.selection.ranges.length>1&&(t.inputState.composing>=0||t.inputState.compositionPendingChange)&&e.to<=i.to+10&&e.to>=i.to-10){let c=t.state.sliceDoc(e.from,e.to),f,d=a&&i$(t,a.main.head);if(d){let p=e.insert.length-(e.to-e.from);f={from:d.from,to:d.to-p}}else f=t.state.doc.lineAt(i.head);let h=i.to-e.to;r=n.changeByRange(p=>{if(p.from==i.from&&p.to==i.to)return{changes:l,range:u||p.map(l)};let m=p.to-h,x=m-c.length;if(t.state.sliceDoc(x,m)!=c||m>=f.from&&x<=f.to)return{range:p};let g=n.changes({from:x,to:m,insert:e.insert}),O=p.to-i.to;return{changes:g,range:u?E.range(Math.max(0,u.anchor+O),Math.max(0,u.head+O)):p.map(g)}})}else r={changes:l,selection:u&&n.selection.replaceRange(u)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),n.update(r,{userEvent:s,scrollIntoView:!0})}function u$(t,e,a,r){let n=Math.min(t.length,e.length),i=0;for(;i<n&&t.charCodeAt(i)==e.charCodeAt(i);)i++;if(i==n&&t.length==e.length)return null;let o=t.length,s=e.length;for(;o>0&&s>0&&t.charCodeAt(o-1)==e.charCodeAt(s-1);)o--,s--;if(r=="end"){let l=Math.max(0,i-Math.min(o,s));a-=o+l-i}if(o<i&&t.length<e.length){let l=a<=i&&a>=o?i-a:0;i-=l,s=i+(s-o),o=i}else if(s<i){let l=a<=i&&a>=s?i-a:0;i-=l,o=i+(o-s),s=i}return{from:i,toA:o,toB:s}}function TH(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:a,anchorOffset:r,focusNode:n,focusOffset:i}=t.observer.selectionRange;return a&&(e.push(new gO(a,r)),(n!=a||i!=r)&&e.push(new gO(n,i))),e}function PH(t,e){if(t.length==0)return null;let a=t[0].pos,r=t.length==2?t[1].pos:a;return a>-1&&r>-1?E.single(a+e,r+e):null}function OO(t,e){return e.head==t.main.head&&e.anchor==t.main.anchor}var n1=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Y.safari&&e.contentDOM.addEventListener("input",()=>null),Y.gecko&&ZH(e.contentDOM.ownerDocument)}handleEvent(e){!$H(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,a){let r=this.handlers[e];if(r){for(let n of r.observers)n(this.view,a);for(let n of r.handlers){if(a.defaultPrevented)break;if(n(this.view,a)){a.preventDefault();break}}}}ensureHandlers(e){let a=IH(e),r=this.handlers,n=this.view.contentDOM;for(let i in a)if(i!="scroll"){let o=!a[i].handlers.length,s=r[i];s&&o!=!s.handlers.length&&(n.removeEventListener(i,this.handleEvent),s=null),s||n.addEventListener(i,this.handleEvent,{passive:o})}for(let i in r)i!="scroll"&&!a[i]&&n.removeEventListener(i,this.handleEvent);this.handlers=a}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&f$.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Y.android&&Y.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(Y.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(c$.some(a=>a.keyCode==e.keyCode)&&!e.ctrlKey||AH.indexOf(e.key)>-1&&e.ctrlKey)){let a={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};return a.shiftKey&&Y.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&RH(this.view.win)&&(a.shiftKey=!1),this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:a},setTimeout(()=>this.flushIOSKey(),50),!0}return e.keyCode!=229&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let a=this.pendingIOSKey;return!a||this.view.observer.pendingRecords().length||a.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,jc(this.view.contentDOM,a.key,a.keyCode,a.mods))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:Y.safari&&!Y.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function RH(t){return t.visualViewport?t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85:!1}function dD(t,e){return(a,r)=>{try{return e.call(t,r,a)}catch(n){en(a.state,n)}}}function IH(t){let e=Object.create(null);function a(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let n=r.spec,i=n&&n.plugin.domEventHandlers,o=n&&n.plugin.domEventObservers;if(i)for(let s in i){let l=i[s];l&&a(s).handlers.push(dD(r.value,l))}if(o)for(let s in o){let l=o[s];l&&a(s).observers.push(dD(r.value,l))}}for(let r in Pn)a(r).handlers.push(Pn[r]);for(let r in za)a(r).observers.push(za[r]);return e}var c$=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],AH="dthko",f$=[16,17,18,20,91,92,224,225],tO=6;function aO(t){return Math.max(0,t)*.7+8}function QH(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}var i1=class{constructor(e,a,r,n){this.view=e,this.startEvent=a,this.style=r,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=a,this.scrollParents=QD(e.contentDOM),this.atoms=e.state.facet(sh).map(o=>o(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=a.shiftKey,this.multiple=e.state.facet(xt.allowMultipleSelections)&&MH(e,a),this.dragging=DH(e,a)&&p$(a)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&QH(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let a=0,r=0,n=0,i=0,o=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=r$(this.view);e.clientX-l.left<=n+tO?a=-aO(n-e.clientX):e.clientX+l.right>=o-tO&&(a=aO(e.clientX-o)),e.clientY-l.top<=i+tO?r=-aO(i-e.clientY):e.clientY+l.bottom>=s-tO&&(r=aO(e.clientY-s)),this.setScrollSpeed(a,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,a){this.scrollSpeed={x:e,y:a},e||a?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:a}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),a&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=a,a=0),(e||a)&&this.view.win.scrollBy(e,a),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:a}=this,r=o$(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(a.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(a=>a.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function MH(t,e){let a=t.state.facet(VD);return a.length?a[0](e):Y.mac?e.metaKey:e.ctrlKey}function EH(t,e){let a=t.state.facet(UD);return a.length?a[0](e):Y.mac?!e.altKey:!e.ctrlKey}function DH(t,e){let{main:a}=t.state.selection;if(a.empty)return!1;let r=ih(t.root);if(!r||r.rangeCount==0)return!0;let n=r.getRangeAt(0).getClientRects();for(let i=0;i<n.length;i++){let o=n[i];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function $H(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let a=e.target,r;a!=t.contentDOM;a=a.parentNode)if(!a||a.nodeType==11||(r=yt.get(a))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(e))return!1;return!0}var Pn=Object.create(null),za=Object.create(null),d$=Y.ie&&Y.ie_version<15||Y.ios&&Y.webkit_version<604;function BH(t){let e=t.dom.parentNode;if(!e)return;let a=e.appendChild(document.createElement("textarea"));a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus(),setTimeout(()=>{t.focus(),a.remove(),h$(t,a.value)},50)}function CO(t,e,a){for(let r of t.facet(e))a=r(a,t);return a}function h$(t,e){e=CO(t.state,w1,e);let{state:a}=t,r,n=1,i=a.toText(e),o=i.lines==a.selection.ranges.length;if(o1!=null&&a.selection.ranges.every(l=>l.empty)&&o1==i.toString()){let l=-1;r=a.changeByRange(u=>{let c=a.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let f=a.toText((o?i.line(n++).text:e)+a.lineBreak);return{changes:{from:c.from,insert:f},range:E.cursor(u.from+f.length)}})}else o?r=a.changeByRange(l=>{let u=i.line(n++);return{changes:{from:l.from,to:l.to,insert:u.text},range:E.cursor(l.from+u.length)}}):r=a.replaceSelection(i);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}za.scroll=t=>{let e=t.inputState;e.lastScrollTop=t.scrollDOM.scrollTop,e.lastScrollLeft=t.scrollDOM.scrollLeft,Y.ios&&!e.touchActive&&(e.lastIOSMomentumScroll=Date.now())};za.wheel=za.mousewheel=t=>{t.inputState.lastWheelEvent=Date.now()};Pn.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);za.touchstart=(t,e)=>{let a=t.inputState,r=e.targetTouches[0];a.touchActive=!0,a.lastTouchTime=Date.now(),r&&(a.lastTouchX=r.clientX,a.lastTouchY=r.clientY),a.setSelectionOrigin("select.pointer")};za.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};za.touchend=(t,e)=>{t.inputState.touchActive=!1};Pn.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let a=null;for(let r of t.state.facet(jD))if(a=r(t,e),a)break;if(!a&&e.button==0&&(a=zH(t,e)),a){let r=!t.hasFocus;t.inputState.startMouseSelection(new i1(t,e,a,r)),r&&t.observer.ignore(()=>{DD(t.contentDOM);let i=t.root.activeElement;i&&!i.contains(t.contentDOM)&&i.blur()});let n=t.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}else t.inputState.setSelectionOrigin("select.pointer");return!1};function hD(t,e,a,r){if(r==1)return E.cursor(e,a);if(r==2)return xH(t.state,e,a);{let n=t.docView.lineAt(e,a),i=t.state.doc.lineAt(n?n.posAtEnd:e),o=n?n.posAtStart:i.from,s=n?n.posAtEnd:i.to;return s<t.state.doc.length&&s==i.to&&s++,E.undirectionalRange(o,s)}}var _H=Y.ie&&Y.ie_version<=11,pD=null,mD=0,gD=0;function p$(t){if(!_H)return t.detail;let e=pD,a=gD;return pD=t,gD=Date.now(),mD=!e||a>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(mD+1)%3:1}function zH(t,e){let a=t.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),r=p$(e),n=t.state.selection;return{update(i){i.docChanged&&(a.pos=i.changes.mapPos(a.pos),n=n.map(i.changes))},get(i,o,s){let l=t.posAndSideAtCoords({x:i.clientX,y:i.clientY},!1),u,c=hD(t,l.pos,l.assoc,r);if(a.pos!=l.pos&&!o){let f=hD(t,a.pos,a.assoc,r),d=Math.min(f.from,c.from),h=Math.max(f.to,c.to);c=d<c.from?E.range(d,h,c.assoc):E.range(h,d,c.assoc)}return o?n.replaceRange(n.main.extend(c.from,c.to,c.assoc)):s&&r==1&&n.ranges.length>1&&(u=NH(n,l.pos))?u:s?n.addRange(c):E.create([c])}}}function NH(t,e){for(let a=0;a<t.ranges.length;a++){let{from:r,to:n}=t.ranges[a];if(r<=e&&n>=e)return E.create(t.ranges.slice(0,a).concat(t.ranges.slice(a+1)),t.mainIndex==a?0:t.mainIndex-(t.mainIndex>a?1:0))}return null}Pn.dragstart=(t,e)=>{let{selection:{main:a}}=t.state;if(e.target.draggable){let n=t.docView.tile.nearest(e.target);if(n&&n.isWidget()){let i=n.posAtStart,o=i+n.length;(i>=a.to||o<=a.from)&&(a=E.undirectionalRange(i,o))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=a,e.dataTransfer&&(e.dataTransfer.setData("Text",CO(t.state,C1,t.state.sliceDoc(a.from,a.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Pn.dragend=t=>(t.inputState.draggedContent=null,!1);function OD(t,e,a,r){if(a=CO(t.state,w1,a),!a)return;let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=t.inputState,o=r&&i&&EH(t,e)?{from:i.from,to:i.to}:null,s={from:n,insert:a},l=t.state.changes(o?[o,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(n,-1),head:l.mapPos(n,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Pn.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let a=e.dataTransfer.files;if(a&&a.length){let r=Array(a.length),n=0,i=()=>{++n==a.length&&OD(t,e,r.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<a.length;o++){let s=new FileReader;s.onerror=i,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[o]=s.result),i()},s.readAsText(a[o])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return OD(t,e,r,!0),!0}return!1};Pn.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let a=d$?null:e.clipboardData;return a?(h$(t,a.getData("text/plain")||a.getData("text/uri-list")),!0):(BH(t),!1)};function XH(t,e){let a=t.dom.parentNode;if(!a)return;let r=a.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function qH(t){let e=[],a=[],r=!1;for(let n of t.selection.ranges)n.empty||(e.push(t.sliceDoc(n.from,n.to)),a.push(n));if(!e.length){let n=-1;for(let{from:i}of t.selection.ranges){let o=t.doc.lineAt(i);o.number>n&&(e.push(o.text),a.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),n=o.number}r=!0}return{text:CO(t,C1,e.join(t.lineBreak)),ranges:a,linewise:r}}var o1=null;Pn.copy=Pn.cut=(t,e)=>{if(!Yd(t.contentDOM,t.observer.selectionRange))return!1;let{text:a,ranges:r,linewise:n}=qH(t.state);if(!a&&!n)return!1;o1=n?a:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let i=d$?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",a),!0):(XH(t,a),!1)};var m$=ar.define();function g$(t,e){let a=[];for(let r of t.facet(GD)){let n=r(t,e);n&&a.push(n)}return a.length?t.update({effects:a,annotations:m$.of(!0)}):null}function O$(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let a=g$(t.state,e);a?t.dispatch(a):t.update([])}},10)}za.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),O$(t)};za.blur=t=>{t.observer.clearSelectionRange(),O$(t)};za.compositionstart=za.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};za.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Y.chrome&&Y.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};za.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Pn.beforeinput=(t,e)=>{var a,r;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(t.inputState.insertingText=e.data,t.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&t.observer.editContext){let i=(a=e.dataTransfer)===null||a===void 0?void 0:a.getData("text/plain"),o=e.getTargetRanges();if(i&&o.length){let s=o[0],l=t.posAtDOM(s.startContainer,s.startOffset),u=t.posAtDOM(s.endContainer,s.endOffset);return T1(t,{from:l,to:u,insert:t.state.toText(i)},null),!0}}let n;if(Y.chrome&&Y.android&&(n=c$.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let i=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Y.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),Y.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>za.compositionend(t,e),20),!1};var xD=new Set;function ZH(t){xD.has(t)||(xD.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}var yD=["pre-wrap","normal","pre-line","break-spaces"],Wc=!1;function bD(){Wc=!1}var s1=class{constructor(e){this.lineWrapping=e,this.doc=Le.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,a){let r=this.doc.lineAt(a).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((a-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return yD.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let a=!1;for(let r=0;r<e.length;r++){let n=e[r];n<0?r++:this.heightSamples[Math.floor(n*10)]||(a=!0,this.heightSamples[Math.floor(n*10)]=!0)}return a}refresh(e,a,r,n,i,o){let s=yD.indexOf(e)>-1,l=Math.abs(a-this.lineHeight)>.3||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=a,this.charWidth=r,this.textHeight=n,this.lineLength=i,l){this.heightSamples={};for(let u=0;u<o.length;u++){let c=o[u];c<0?u++:this.heightSamples[Math.floor(c*10)]=!0}}return l}},l1=class{constructor(e,a){this.from=e,this.heights=a,this.index=0}get more(){return this.index<this.heights.length}},Ln=class t{constructor(e,a,r,n,i){this.from=e,this.length=a,this.top=r,this.height=n,this._content=i}get type(){return typeof this._content=="number"?tn.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof $l?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let a=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new t(this.from,this.length+e.length,this.top,this.height+e.height,a)}},ft=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(ft||(ft={})),lO=.001,wr=class t{constructor(e,a,r=2){this.length=e,this.height=a,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>lO&&(Wc=!0),this.height=e)}replace(e,a,r){return t.of(r)}decomposeLeft(e,a){a.push(this)}decomposeRight(e,a){a.push(this)}applyChanges(e,a,r,n){let i=this,o=r.doc;for(let s=n.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:f}=n[s],d=i.lineAt(l,ft.ByPosNoHeight,r.setDoc(a),0,0),h=d.to>=u?d:i.lineAt(u,ft.ByPosNoHeight,r,0,0);for(f+=h.to-u,u=h.to;s>0&&d.from<=n[s-1].toA;)l=n[s-1].fromA,c=n[s-1].fromB,s--,l<d.from&&(d=i.lineAt(l,ft.ByPosNoHeight,r,0,0));c+=d.from-l,l=d.from;let p=c1.build(r.setDoc(o),e,c,f);i=xO(i,i.replace(l,u,p))}return i.updateHeight(r,0)}static empty(){return new Wr(0,0,0)}static of(e){if(e.length==1)return e[0];let a=0,r=e.length,n=0,i=0;for(;;)if(a==r)if(n>i*2){let s=e[a-1];s.break?e.splice(--a,1,s.left,null,s.right):e.splice(--a,1,s.left,s.right),r+=1+s.break,n-=s.size}else if(i>n*2){let s=e[r];s.break?e.splice(r,1,s.left,null,s.right):e.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else break;else if(n<i){let s=e[a++];s&&(n+=s.size)}else{let s=e[--r];s&&(i+=s.size)}let o=0;return e[a-1]==null?(o=1,a--):e[a]==null&&(o=1,r++),new u1(t.of(e.slice(0,a)),o,t.of(e.slice(r)))}};function xO(t,e){return t==e?t:(t.constructor!=e.constructor&&(Wc=!0),e)}wr.prototype.size=1;var VH=nt.replace({}),yO=class extends wr{constructor(e,a,r){super(e,a),this.deco=r,this.spaceAbove=0}mainBlock(e,a){return new Ln(a,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,a,r,n){return this.spaceAbove&&e<r+this.spaceAbove?new Ln(n,0,r,this.spaceAbove,VH):this.mainBlock(r,n)}lineAt(e,a,r,n,i){let o=this.mainBlock(n,i);return this.spaceAbove?this.blockAt(0,r,n,i).join(o):o}forEachLine(e,a,r,n,i,o){e<=i+this.length&&a>=i&&o(this.lineAt(0,ft.ByPos,r,n,i))}setMeasuredHeight(e){let a=e.heights[e.index++];a<0?(this.spaceAbove=-a,a=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(a)}updateHeight(e,a=0,r=!1,n){return n&&n.from<=a&&n.more&&this.setMeasuredHeight(n),this.outdated=!1,this}toString(){return`block(${this.length})`}},Wr=class t extends yO{constructor(e,a,r){super(e,a,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=r}mainBlock(e,a){return new Ln(a,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,a,r){let n=r[0];return r.length==1&&(n instanceof t||n instanceof ps&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof ps?n=new t(n.length,this.height,this.spaceAbove):n.height=this.height,this.outdated||(n.outdated=!1),n):wr.of(r)}updateHeight(e,a=0,r=!1,n){return n&&n.from<=a&&n.more?this.setMeasuredHeight(n):(r||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},ps=class t extends wr{constructor(e){super(e,0)}heightMetrics(e,a){let r=e.doc.lineAt(a).number,n=e.doc.lineAt(a+this.length).number,i=n-r+1,o,s=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*i);o=l/i,this.length>i+1&&(s=(this.height-l)/(this.length-i-1))}else o=this.height/i;return{firstLine:r,lastLine:n,perLine:o,perChar:s}}blockAt(e,a,r,n){let{firstLine:i,lastLine:o,perLine:s,perChar:l}=this.heightMetrics(a,n);if(a.lineWrapping){let u=n+(e<a.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),c=a.doc.lineAt(u),f=s+c.length*l,d=Math.max(r,e-f/2);return new Ln(c.from,c.length,d,f,0)}else{let u=Math.max(0,Math.min(o-i,Math.floor((e-r)/s))),{from:c,length:f}=a.doc.line(i+u);return new Ln(c,f,r+s*u,s,0)}}lineAt(e,a,r,n,i){if(a==ft.ByHeight)return this.blockAt(e,r,n,i);if(a==ft.ByPosNoHeight){let{from:h,to:p}=r.doc.lineAt(e);return new Ln(h,p-h,0,0,0)}let{firstLine:o,perLine:s,perChar:l}=this.heightMetrics(r,i),u=r.doc.lineAt(e),c=s+u.length*l,f=u.number-o,d=n+s*f+l*(u.from-i-f);return new Ln(u.from,u.length,Math.max(n,Math.min(d,n+this.height-c)),c,0)}forEachLine(e,a,r,n,i,o){e=Math.max(e,i),a=Math.min(a,i+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,i);for(let c=e,f=n;c<=a;){let d=r.doc.lineAt(c);if(c==e){let p=d.number-s;f+=l*p+u*(e-i-p)}let h=l+u*d.length;o(new Ln(d.from,d.length,f,h,0)),f+=h,c=d.to+1}}replace(e,a,r){let n=this.length-a;if(n>0){let i=r[r.length-1];i instanceof t?r[r.length-1]=new t(i.length+n):r.push(null,new t(n-1))}if(e>0){let i=r[0];i instanceof t?r[0]=new t(e+i.length):r.unshift(new t(e-1),null)}return wr.of(r)}decomposeLeft(e,a){a.push(new t(e-1),null)}decomposeRight(e,a){a.push(null,new t(this.length-e-1))}updateHeight(e,a=0,r=!1,n){let i=a+this.length;if(n&&n.from<=a+this.length&&n.more){let o=[],s=Math.max(a,n.from),l=-1;for(n.from>a&&o.push(new t(n.from-a-1).updateHeight(e,a));s<=i&&n.more;){let c=e.doc.lineAt(s).length;o.length&&o.push(null);let f=n.heights[n.index++],d=0;f<0&&(d=-f,f=n.heights[n.index++]),l==-1?l=f:Math.abs(f-l)>=lO&&(l=-2);let h=new Wr(c,f,d);h.outdated=!1,o.push(h),s+=c+1}s<=i&&o.push(null,new t(i-s).updateHeight(e,s));let u=wr.of(o);return(l<0||Math.abs(u.height-this.height)>=lO||Math.abs(l-this.heightMetrics(e,a).perLine)>=lO)&&(Wc=!0),xO(this,u)}else(r||this.outdated)&&(this.setHeight(e.heightForGap(a,a+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},u1=class extends wr{constructor(e,a,r){super(e.length+a+r.length,e.height+r.height,a|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,a,r,n){let i=r+this.left.height;return e<i?this.left.blockAt(e,a,r,n):this.right.blockAt(e,a,i,n+this.left.length+this.break)}lineAt(e,a,r,n,i){let o=n+this.left.height,s=i+this.left.length+this.break,l=a==ft.ByHeight?e<o:e<s,u=l?this.left.lineAt(e,a,r,n,i):this.right.lineAt(e,a,r,o,s);if(this.break||(l?u.to<s:u.from>s))return u;let c=a==ft.ByPosNoHeight?ft.ByPosNoHeight:ft.ByPos;return l?u.join(this.right.lineAt(s,c,r,o,s)):this.left.lineAt(s,c,r,n,i).join(u)}forEachLine(e,a,r,n,i,o){let s=n+this.left.height,l=i+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,a,r,n,i,o),a>=l&&this.right.forEachLine(e,a,r,s,l,o);else{let u=this.lineAt(l,ft.ByPos,r,n,i);e<u.from&&this.left.forEachLine(e,u.from-1,r,n,i,o),u.to>=e&&u.from<=a&&o(u),a>u.to&&this.right.forEachLine(u.to+1,a,r,s,l,o)}}replace(e,a,r){let n=this.left.length+this.break;if(a<n)return this.balanced(this.left.replace(e,a,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,a-n,r));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let s of r)i.push(s);if(e>0&&vD(i,o-1),a<this.length){let s=i.length;this.decomposeRight(a,i),vD(i,s)}return wr.of(i)}decomposeLeft(e,a){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,a);a.push(this.left),this.break&&(r++,e>=r&&a.push(null)),e>r&&this.right.decomposeLeft(e-r,a)}decomposeRight(e,a){let r=this.left.length,n=r+this.break;if(e>=n)return this.right.decomposeRight(e-n,a);e<r&&this.left.decomposeRight(e,a),this.break&&e<n&&a.push(null),a.push(this.right)}balanced(e,a){return e.size>2*a.size||a.size>2*e.size?wr.of(this.break?[e,null,a]:[e,a]):(this.left=xO(this.left,e),this.right=xO(this.right,a),this.setHeight(e.height+a.height),this.outdated=e.outdated||a.outdated,this.size=e.size+a.size,this.length=e.length+this.break+a.length,this)}updateHeight(e,a=0,r=!1,n){let{left:i,right:o}=this,s=a+i.length+this.break,l=null;return n&&n.from<=a+i.length&&n.more?l=i=i.updateHeight(e,a,r,n):i.updateHeight(e,a,r),n&&n.from<=s+o.length&&n.more?l=o=o.updateHeight(e,s,r,n):o.updateHeight(e,s,r),l?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function vD(t,e){let a,r;t[e]==null&&(a=t[e-1])instanceof ps&&(r=t[e+1])instanceof ps&&t.splice(e-1,3,new ps(a.length+1+r.length))}var UH=5,c1=class t{constructor(e,a){this.pos=e,this.oracle=a,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,a){if(this.lineStart>-1){let r=Math.min(a,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Wr?n.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Wr(r-this.pos,-1,0)),this.writtenTo=r,a>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=a}point(e,a,r){if(e<a||r.heightRelevant){let n=r.widget?r.widget.estimatedHeight:0,i=r.widget?r.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let o=a-e;r.block?this.addBlock(new yO(o,n,r)):(o||i||n>=UH)&&this.addLineDeco(n,i,o)}else a>e&&this.span(e,a);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:a}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=a,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Wr(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,a){let r=new ps(a-e);return this.oracle.doc.lineAt(e).to==a&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Wr)return e;let a=new Wr(0,-1,0);return this.nodes.push(a),a}addBlock(e){this.enterLine();let a=e.deco;a&&a.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,a&&a.endSide>0&&(this.covering=e)}addLineDeco(e,a,r){let n=this.ensureLine();n.length+=r,n.collapsed+=r,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=a,this.writtenTo=this.pos=this.pos+r}finish(e){let a=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(a instanceof Wr)&&!this.isCovered?this.nodes.push(new Wr(0,-1,0)):(this.writtenTo<this.pos||a==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let n of this.nodes)n instanceof Wr&&n.updateHeight(this.oracle,r),r+=n?n.length:1;return this.nodes}static build(e,a,r,n){let i=new t(r,e);return ht.spans(a,r,n,i,0),i.finish(r)}};function jH(t,e,a){let r=new f1;return ht.compare(t,e,a,r,0),r.changes}var f1=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,a,r,n){(e<a||r&&r.heightRelevant||n&&n.heightRelevant)&&Uc(e,a,this.changes,5)}};function FH(t,e){let a=t.getBoundingClientRect(),r=t.ownerDocument,n=r.defaultView||window,i=Math.max(0,a.left),o=Math.min(n.innerWidth,a.right),s=Math.max(0,a.top),l=Math.min(n.innerHeight,a.bottom);for(let u=t.parentNode;u&&u!=r.body;)if(u.nodeType==1){let c=u,f=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let d=c.getBoundingClientRect();i=Math.max(i,d.left),o=Math.min(o,d.right),s=Math.max(s,d.top),l=Math.min(u==t.parentNode?n.innerHeight:l,d.bottom)}u=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-a.left,right:Math.max(i,o)-a.left,top:s-(a.top+e),bottom:Math.max(s,l)-(a.top+e)}}function HH(t){let e=t.getBoundingClientRect(),a=t.ownerDocument.defaultView||window;return e.left<a.innerWidth&&e.right>0&&e.top<a.innerHeight&&e.bottom>0}function GH(t,e){let a=t.getBoundingClientRect();return{left:0,right:a.right-a.left,top:e,bottom:a.bottom-(a.top+e)}}var ah=class{constructor(e,a,r,n){this.from=e,this.to=a,this.size=r,this.displaySize=n}static same(e,a){if(e.length!=a.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=a[r];if(n.from!=i.from||n.to!=i.to||n.size!=i.size)return!1}return!0}draw(e,a){return nt.replace({widget:new d1(this.displaySize*(a?e.scaleY:e.scaleX),a)}).range(this.from,this.to)}},d1=class extends to{constructor(e,a){super(),this.size=e,this.vertical=a}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}},bO=class{constructor(e,a){this.view=e,this.state=a,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=SD,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=wt.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let r=a.facet(k1).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new s1(r),this.stateDeco=wD(a),this.heightMap=wr.empty().applyChanges(this.stateDeco,Le.empty,this.heightOracle.setDoc(a.doc),[new Tn(0,0,0,a.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=nt.set(this.lineGaps.map(n=>n.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:a}=this.state.selection;for(let r=0;r<=1;r++){let n=r?a.head:a.anchor;if(!e.some(({from:i,to:o})=>n>=i&&n<=o)){let{from:i,to:o}=this.lineBlockAt(n);e.push(new Vc(i,o))}}return this.viewports=e.sort((r,n)=>r.from-n.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?SD:new h1(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Gd(e,this.scaler))})}update(e,a=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=wD(this.state);let n=e.changedRanges,i=Tn.extendWithRanges(n,jH(r,this.stateDeco,e?e.changes:Ba.empty(this.state.doc.length))),o=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);bD(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||Wc)&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(a&&(a.range.head<l.from||a.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,a));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),a&&(this.scrollTarget=a),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(aH)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,a=e.contentDOM,r=window.getComputedStyle(a),n=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?wt.RTL:wt.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||this.mustMeasureContent==="refresh",s=a.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:v,scaleY:S}=AD(a,s);(v>.005&&Math.abs(this.scaleX-v)>.005||S>.005&&Math.abs(this.scaleY-S)>.005)&&(this.scaleX=v,this.scaleY=S,u|=16,o=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,u|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=16);let h=QD(this.view.contentDOM,!1).y;h!=this.scrollParent&&(this.scrollParent=h,this.scrollAnchorHeight=-1,this.scrollOffset=0);let p=this.getScrollOffset();this.scrollOffset!=p&&(this.scrollAnchorHeight=-1,this.scrollOffset=p),this.scrolledToBottom=$D(this.scrollParent||e.win);let m=(this.printing?GH:FH)(a,this.paddingTop),x=m.top-this.pixelViewport.top,g=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget&&!HH(e.dom))return 0;let y=s.width;if((this.contentDOMWidth!=y||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=16),l){let v=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(v)&&(o=!0),o||n.lineWrapping&&Math.abs(y-this.contentDOMWidth)>n.charWidth){let{lineHeight:S,charWidth:w,textHeight:k}=e.docView.measureTextSize();o=S>0&&n.refresh(i,S,w,k,Math.max(5,y/w),v),o&&(e.docView.minWidth=0,u|=16)}x>0&&g>0?c=Math.max(x,g):x<0&&g<0&&(c=Math.min(x,g)),bD();for(let S of this.viewports){let w=S.from==this.viewport.from?v:e.docView.measureVisibleLineHeights(S);this.heightMap=(o?wr.empty().applyChanges(this.stateDeco,Le.empty,this.heightOracle,[new Tn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new l1(S.from,w))}Wc&&(u|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return b&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,a){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,l=new Vc(n.lineAt(o-r*1e3,ft.ByHeight,i,0,0).from,n.lineAt(s+(1-r)*1e3,ft.ByHeight,i,0,0).to);if(a){let{head:u}=a.range;if(u<l.from||u>l.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=n.lineAt(u,ft.ByPos,i,0,0),d;a.y=="center"?d=(f.top+f.bottom)/2-c/2:a.y=="start"||a.y=="nearest"&&u<l.from?d=f.top:d=f.bottom-c,l=new Vc(n.lineAt(d-1e3/2,ft.ByHeight,i,0,0).from,n.lineAt(d+c+1e3/2,ft.ByHeight,i,0,0).to)}}return l}mapViewport(e,a){let r=a.mapPos(e.from,-1),n=a.mapPos(e.to,1);return new Vc(this.heightMap.lineAt(r,ft.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,ft.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:a},r=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,ft.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(a,ft.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(e==0||n<=o-Math.max(10,Math.min(-r,250)))&&(a==this.state.doc.length||i>=s+Math.max(10,Math.min(r,250)))&&n>o-2*1e3&&i<s+2*1e3}mapLineGaps(e,a){if(!e.length||a.empty)return e;let r=[];for(let n of e)a.touchesRange(n.from,n.to)||r.push(new ah(a.mapPos(n.from),a.mapPos(n.to),n.size,n.displaySize));return r}ensureLineGaps(e,a){let r=this.heightOracle.lineWrapping,n=r?1e4:2e3,i=n>>1,o=n<<1;if(this.defaultTextDirection!=wt.LTR&&!r)return[];let s=[],l=(c,f,d,h)=>{if(f-c<i)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let g of m)if(g>c&&g<f){l(c,g-10,d,h),l(g+10,f,d,h);return}let x=WH(e,g=>g.from>=d.from&&g.to<=d.to&&Math.abs(g.from-c)<i&&Math.abs(g.to-f)<i&&!m.some(O=>g.from<O&&g.to>O));if(!x){if(f<d.to&&a&&r&&a.visibleRanges.some(y=>y.from<=f&&y.to>=f)){let y=a.moveToLineBoundary(E.cursor(f),!1,!0).head;y>c&&(f=y)}let g=this.gapSize(d,c,f,h),O=r||g<2e6?g:2e6;x=new ah(c,f,g,O)}s.push(x)},u=c=>{if(c.length<o||c.type!=tn.Text)return;let f=YH(c.from,c.to,this.stateDeco);if(f.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,p;if(r){let m=n/this.heightOracle.lineLength*this.heightOracle.lineHeight,x,g;if(d!=null){let O=nO(f,d),y=((this.visibleBottom-this.visibleTop)/2+m)/c.height;x=O-y,g=O+y}else x=(this.visibleTop-c.top-m)/c.height,g=(this.visibleBottom-c.top+m)/c.height;h=rO(f,x),p=rO(f,g)}else{let m=f.total*this.heightOracle.charWidth,x=n*this.heightOracle.charWidth,g=0;if(m>2e6)for(let S of e)S.from>=c.from&&S.from<c.to&&S.size!=S.displaySize&&S.from*this.heightOracle.charWidth+g<this.pixelViewport.left&&(g=S.size-S.displaySize);let O=this.pixelViewport.left+g,y=this.pixelViewport.right+g,b,v;if(d!=null){let S=nO(f,d),w=((y-O)/2+x)/m;b=S-w,v=S+w}else b=(O-x)/m,v=(y+x)/m;h=rO(f,b),p=rO(f,v)}h>c.from&&l(c.from,h,c,f),p<c.to&&l(p,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(u):u(c);return s}gapSize(e,a,r,n){let i=nO(n,r)-nO(n,a);return this.heightOracle.lineWrapping?e.height*i:n.total*this.heightOracle.charWidth*i}updateLineGaps(e){ah.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=nt.set(e.map(a=>a.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let a=this.stateDeco;this.lineGaps.length&&(a=a.concat(this.lineGapDeco));let r=[];ht.spans(a,this.viewport.from,this.viewport.to,{span(i,o){r.push({from:i,to:o})},point(){}},20);let n=0;if(r.length!=this.visibleRanges.length)n=12;else for(let i=0;i<r.length&&!(n&8);i++){let o=this.visibleRanges[i],s=r[i];(o.from!=s.from||o.to!=s.to)&&(n|=4,e&&e.mapPos(o.from,-1)==s.from&&e.mapPos(o.to,1)==s.to||(n|=8))}return this.visibleRanges=r,n}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(a=>a.from<=e&&a.to>=e)||Gd(this.heightMap.lineAt(e,ft.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(a=>a.top<=e&&a.bottom>=e)||Gd(this.heightMap.lineAt(this.scaler.fromDOM(e),ft.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop*this.scaleY:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top}scrollAnchorAt(e){let a=this.lineBlockAtHeight(e+8);return a.from>=this.viewport.from||this.viewportLines[0].top-e>200?a:this.viewportLines[0]}elementAtHeight(e){return Gd(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},Vc=class{constructor(e,a){this.from=e,this.to=a}};function YH(t,e,a){let r=[],n=t,i=0;return ht.spans(a,t,e,{span(){},point(o,s){o>n&&(r.push({from:n,to:o}),i+=o-n),n=s}},20),n<e&&(r.push({from:n,to:e}),i+=e-n),{total:i,ranges:r}}function rO({total:t,ranges:e},a){if(a<=0)return e[0].from;if(a>=1)return e[e.length-1].to;let r=Math.floor(t*a);for(let n=0;;n++){let{from:i,to:o}=e[n],s=o-i;if(r<=s)return i+r;r-=s}}function nO(t,e){let a=0;for(let{from:r,to:n}of t.ranges){if(e<=n){a+=e-r;break}a+=n-r}return a/t.total}function WH(t,e){for(let a of t)if(e(a))return a}var SD={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};function wD(t){let e=t.facet(wO).filter(r=>typeof r!="function"),a=t.facet(L1).filter(r=>typeof r!="function");return a.length&&e.push(ht.join(a)),e}var h1=class t{constructor(e,a,r){let n=0,i=0,o=0;this.viewports=r.map(({from:s,to:l})=>{let u=a.lineAt(s,ft.ByPos,e,0,0).top,c=a.lineAt(l,ft.ByPos,e,0,0).bottom;return n+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(a.height-n);for(let s of this.viewports)s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(e){for(let a=0,r=0,n=0;;a++){let i=a<this.viewports.length?this.viewports[a]:null;if(!i||e<i.top)return n+(e-r)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);r=i.bottom,n=i.domBottom}}fromDOM(e){for(let a=0,r=0,n=0;;a++){let i=a<this.viewports.length?this.viewports[a]:null;if(!i||e<i.domTop)return r+(e-n)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);r=i.bottom,n=i.domBottom}}eq(e){return e instanceof t?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((a,r)=>a.from==e.viewports[r].from&&a.to==e.viewports[r].to):!1}};function Gd(t,e){if(e.scale==1)return t;let a=e.toDOM(t.top),r=e.toDOM(t.bottom);return new Ln(t.from,t.length,a,r-a,Array.isArray(t._content)?t._content.map(n=>Gd(n,e)):t._content)}var iO=ce.define({combine:t=>t.join(" ")}),p1=ce.define({combine:t=>t.indexOf(!0)>-1}),m1=Yr.newName(),x$=Yr.newName(),y$=Yr.newName(),b$={"&light":"."+x$,"&dark":"."+y$};function g1(t,e,a){return new Yr(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,n=>{if(n=="&")return t;if(!a||!a[n])throw new RangeError(`Unsupported selector: ${n}`);return a[n]}):t+" "+r}})}var KH=g1("."+m1,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},".cm-panels-top":{top:"0"},".cm-panels-bottom":{bottom:"0"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{background:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 0) no-repeat",backgroundSize:".4em",backgroundPosition:"calc(min(50%, 0px)) center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},b$),JH={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},DS=Y.ie&&Y.ie_version<=11,O1=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new XS,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(a=>{for(let r of a)this.queue.push(r);(Y.ie&&Y.ie_version<=11||Y.ios&&e.composing)&&a.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&Y.android&&e.constructor.EDIT_CONTEXT!==!1&&!(Y.chrome&&Y.chrome_version<126)&&(this.editContext=new x1(e),e.state.facet(Ji)&&(e.contentDOM.editContext=this.editContext.editContext)),DS&&(this.onCharData=a=>{this.queue.push({target:a.target,type:"characterData",oldValue:a.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var a;((a=this.view.docView)===null||a===void 0?void 0:a.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(a=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),a.length>0&&a[a.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(a=>{a.length>0&&a[a.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((a,r)=>a!=e[r]))){this.gapIntersection.disconnect();for(let a of e)this.gapIntersection.observe(a);this.gaps=e}}onSelectionChange(e){let a=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,n=this.selectionRange;if(r.state.facet(Ji)?r.root.activeElement!=this.dom:!Yd(this.dom,n))return;let i=n.anchorNode&&r.docView.tile.nearest(n.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){a||(this.selectionChanged=!1);return}(Y.ie&&Y.ie_version<=11||Y.android&&Y.chrome)&&!r.state.selection.main.empty&&n.focusNode&&Wd(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,a=ih(e.root);if(!a)return!1;let r=Y.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&eG(this.view,a)||a;if(!r||this.selectionRange.eq(r))return!1;let n=Yd(this.dom,r);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&jF(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,a){this.selectionRange.set(e.node,e.offset,a.node,a.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,a=null;for(let r=this.dom;r;)if(r.nodeType==1)!a&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:a||(a=this.scrollTargets.slice(0,e)),a&&a.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!a&&(a=this.scrollTargets.slice(0,e)),a){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=a)r.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,JH),DS&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),DS&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,a){var r;if(!this.delayedAndroidKey){let n=()=>{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&jc(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:a,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let a=-1,r=-1,n=!1;for(let i of e){let o=this.readMutation(i);o&&(o.typeOver&&(n=!0),a==-1?{from:a,to:r}=o:(a=Math.min(o.from,a),r=Math.max(o.to,r)))}return{from:a,to:r,typeOver:n}}readChange(){let{from:e,to:a,typeOver:r}=this.processRecords(),n=this.selectionChanged&&Yd(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new r1(this.view,e,a,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let a=this.readChange();if(!a)return this.view.requestMeasure(),!1;let r=this.view.state,n=l$(this.view,a);return this.view.state==r&&(a.domChanged||a.newSel&&!OO(this.view.state.selection,a.newSel.main))&&this.view.update([]),n}readMutation(e){let a=this.view.docView.tile.nearest(e.target);if(!a||a.isWidget())return null;if(a.markDirty(e.type=="attributes"),e.type=="childList"){let r=CD(a,e.previousSibling||e.target.previousSibling,-1),n=CD(a,e.nextSibling||e.target.nextSibling,1);return{from:r?a.posAfter(r):a.posAtStart,to:n?a.posBefore(n):a.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:a.posAtStart,to:a.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ji)!=e.state.facet(Ji)&&(e.view.contentDOM.editContext=e.state.facet(Ji)?this.editContext.editContext:null))}destroy(){var e,a,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(a=this.gapIntersection)===null||a===void 0||a.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function CD(t,e,a){for(;e;){let r=yt.get(e);if(r&&r.parent==t)return r;let n=e.parentNode;e=n!=t.dom?n:a>0?e.nextSibling:e.previousSibling}return null}function kD(t,e){let a=e.startContainer,r=e.startOffset,n=e.endContainer,i=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor,1);return Wd(o.node,o.offset,n,i)&&([a,r,n,i]=[n,i,a,r]),{anchorNode:a,anchorOffset:r,focusNode:n,focusOffset:i}}function eG(t,e){if(e.getComposedRanges){let n=e.getComposedRanges(t.root)[0];if(n)return kD(t,n)}let a=null;function r(n){n.preventDefault(),n.stopImmediatePropagation(),a=n.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),a?kD(t,a):null}var x1=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let a=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=r=>{let n=e.state.selection.main,{anchor:i,head:o}=n,s=this.toEditorPos(r.updateRangeStart),l=this.toEditorPos(r.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:s,drifted:!1});let u=l-s>r.text.length;s==this.from&&i<this.from?s=i:l==this.to&&i>this.to&&(l=i);let c=u$(e.state.sliceDoc(s,l),r.text,(u?n.from:n.to)-s,u?"end":null);if(!c){let d=E.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));OO(d,n)||e.dispatch({selection:d,userEvent:"select"});return}let f={from:c.from+s,to:c.toA+s,insert:Le.of(r.text.slice(c.from,c.toB).split(`
|
|
58
|
+
`))};if((Y.mac||Y.android)&&f.from==o-1&&/^\. ?$/.test(r.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(f={from:s,to:l,insert:Le.of([r.text.replace("."," ")])}),this.pendingContextChange=f,!e.state.readOnly){let d=this.to-this.from+(f.to-f.from+f.insert.length);T1(e,f,E.single(this.toEditorPos(r.selectionStart,d),this.toEditorPos(r.selectionEnd,d)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),f.from<f.to&&!f.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(a.text.slice(Math.max(0,r.updateRangeStart-1),Math.min(a.text.length,r.updateRangeStart+1)))&&this.handlers.compositionend(r)},this.handlers.characterboundsupdate=r=>{let n=[],i=null;for(let o=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);o<s;o++){let l=e.coordsForChar(o);i=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||i||new DOMRect,n.push(i)}a.updateCharacterBounds(r.rangeStart,n)},this.handlers.textformatupdate=r=>{let n=[];for(let i of r.getTextFormats()){let o=i.underlineStyle,s=i.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(s)){let l=this.toEditorPos(i.rangeStart),u=this.toEditorPos(i.rangeEnd);if(l<u){let c=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(s)?1:2}px`;n.push(nt.mark({attributes:{style:c}}).range(l,u))}}}e.dispatch({effects:KD.of(nt.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(e.state)}};for(let r in this.handlers)a.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{let n=ih(r.root);n&&n.rangeCount&&this.editContext.updateSelectionBounds(n.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let a=0,r=!1,n=this.pendingContextChange;return e.changes.iterChanges((i,o,s,l,u)=>{if(r)return;let c=u.length-(o-i);if(n&&o>=n.to)if(n.from==i&&n.to==o&&n.insert.eq(u)){n=this.pendingContextChange=null,a+=c,this.to+=c;return}else n=null,this.revertPending(e.state);if(i+=a,o+=a,o<=this.from)this.from+=c,this.to+=c;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+u.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),u.toString()),this.to+=c}a+=c}),n&&!r&&this.revertPending(e.state),!r}update(e){let a=this.pendingContextChange,r=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(n=>!n.isUserEvent("input.type")&&n.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||a)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:a}=e.selection.main;this.from=Math.max(0,a-1e4),this.to=Math.min(e.doc.length,a+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let a=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(a.from),this.toContextPos(a.from+a.insert.length),e.doc.sliceString(a.from,a.to))}setSelection(e){let{main:a}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,a.anchor))),n=this.toContextPos(a.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(r,n)}rangeIsValid(e){let{head:a}=e.selection.main;return!(this.from>0&&a-this.from<500||this.to<e.doc.length&&this.to-a<500||this.to-this.from>1e4*3)}toEditorPos(e,a=this.to-this.from){e=Math.min(e,a);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let a=this.composing;return a&&a.drifted?a.contextBase+(e-a.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},oe=class t{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var a;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(n=>n.forEach(i=>r(i,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||UF(e.parent)||document,this.viewState=new bO(this,e.state||xt.create(e)),e.scrollTo&&e.scrollTo.is(eO)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Zc).map(n=>new Jd(n));for(let n of this.plugins)n.update(this);this.observer=new O1(this),this.inputState=new n1(this),this.inputState.ensureHandlers(this.plugins),this.docView=new mO(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((a=document.fonts)===null||a===void 0)&&a.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let a=e.length==1&&e[0]instanceof Bt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(a,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let a=!1,r=!1,n,i=this.state;for(let d of e){if(d.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=d.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,s=0,l=null;e.some(d=>d.annotation(m$))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=g$(i,o),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(xt.phrases)!=this.state.facet(xt.phrases))return this.setState(i);n=hO.create(this,i,e),n.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:h}=d.state.selection,{x:p,y:m}=this.state.facet(t.cursorScrollMargin);f=new Kd(h.empty?h:E.cursor(h.head,h.head>h.anchor?-1:1),"nearest","nearest",m,p)}for(let h of d.effects)h.is(eO)&&(f=h.value.clip(this.state))}this.viewState.update(n,f),this.bidiCache=vO.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),a=this.docView.update(n),this.state.facet(Hd)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(a,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(iO)!=n.state.facet(iO)&&(this.viewState.mustMeasureContent=!0),(a||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),a&&this.docViewUpdate(),!n.empty)for(let d of this.state.facet(US))try{d(n)}catch(h){en(this.state,h,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!l$(this,c)&&u.force&&jc(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let a=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new bO(this,e),this.plugins=e.facet(Zc).map(r=>new Jd(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new mO(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}a&&this.focus(),this.requestMeasure()}updatePlugins(e){let a=e.startState.facet(Zc),r=e.state.facet(Zc);if(a!=r){let n=[];for(let i of r){let o=a.indexOf(i);if(o<0)n.push(new Jd(i));else{let s=this.plugins[o];s.mustUpdate=e,n.push(s)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n<this.plugins.length;n++)this.plugins[n].update(this);a!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let a=e.value;if(a&&a.docViewUpdate)try{a.docViewUpdate(this)}catch(r){en(this.state,r,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let a=null,r=this.viewState.scrollParent,n=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o,scaleY:s}=this.viewState;Math.abs(n-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0){if($D(r||this.win))i=-1,o=this.viewState.heightMap.height/this.viewState.scaleY;else{let p=this.viewState.scrollAnchorAt(n);i=p.from,o=p.top}s=this.viewState.scaleY}this.updateState=1;let u=this.viewState.measure();if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];u&4||([this.measureRequests,c]=[c,this.measureRequests]);let f=c.map(p=>{try{return p.read(this)}catch(m){return en(this.state,m),LD}}),d=hO.create(this,this.state,[]),h=!1;d.flags|=u,a?a.flags|=u:a=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),h=this.docView.update(d),h&&this.docViewUpdate());for(let p=0;p<c.length;p++)if(f[p]!=LD)try{let m=c[p];m.write&&m.write(f[p],this)}catch(m){en(this.state,m)}if(h&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let m=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)/this.viewState.scaleY-o/s;if((m>1||m<-1)&&!(Y.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(r==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){n=n+m,r?i<0?r.scrollTop=r.scrollHeight:r.scrollTop+=m:this.win.scrollBy(0,m),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(a&&!a.empty)for(let l of this.state.facet(US))l(a)}get themeClasses(){return m1+" "+(this.state.facet(p1)?y$:x$)+" "+this.state.facet(iO)}updateAttrs(){let e=TD(this,JD,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),a={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ji)?"true":"false",class:"cm-content",style:`${Y.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(a["aria-readonly"]="true"),TD(this,k1,a);let r=this.observer.ignore(()=>{let n=iD(this.contentDOM,this.contentAttrs,a),i=iD(this.dom,this.editorAttrs,e);return n||i});return this.editorAttrs=e,this.contentAttrs=a,r}showAnnouncements(e){let a=!0;for(let r of e)for(let n of r.effects)if(n.is(t.announce)){a&&(this.announceDOM.textContent=""),a=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(Hd);let e=this.state.facet(t.cspNonce);Yr.mount(this.root,this.styleModules.concat(KH).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let a=0;a<this.measureRequests.length;a++)if(this.measureRequests[a].key===e.key){this.measureRequests[a]=e;return}}this.measureRequests.push(e)}}plugin(e){let a=this.pluginMap.get(e);return(a===void 0||a&&a.plugin!=e)&&this.pluginMap.set(e,a=this.plugins.find(r=>r.plugin==e)||null),a&&a.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,a,r){return ES(this,e,fD(this,e,a,r))}moveByGroup(e,a){return ES(this,e,fD(this,e,a,r=>SH(this,e.head,r)))}visualLineSide(e,a){let r=this.bidiSpans(e),n=this.textDirectionAt(e.from),i=r[a?r.length-1:0];return E.cursor(i.side(a,n)+e.from,i.forward(!a,n)?1:-1)}moveToLineBoundary(e,a,r=!0){return vH(this,e,a,r)}moveVertically(e,a,r){return ES(this,e,wH(this,e,a,r))}domAtPos(e,a=1){return this.docView.domAtPos(e,a)}posAtDOM(e,a=0){return this.docView.posFromDOM(e,a)}posAtCoords(e,a=!0){this.readMeasured();let r=e1(this,e,a);return r&&r.pos}posAndSideAtCoords(e,a=!0){return this.readMeasured(),e1(this,e,a)}coordsAtPos(e,a=1){this.readMeasured();let r=this.state.doc.lineAt(e),n=this.bidiSpans(r),i=n[Jr.find(n,e-r.from,-1,a)];return this.docView.coordsAt(e,a,i.dir==wt.RTL)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(YD)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>tG)return qD(e.length);let a=this.textDirectionAt(e.from),r;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==a&&(i.fresh||XD(i.isolates,r=lD(this,e))))return i.order;r||(r=lD(this,e));let n=JF(e.text,a,r);return this.bidiCache.push(new vO(e.from,e.to,a,r,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Y.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{DD(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,a={}){var r,n,i,o;return eO.of(new Kd(typeof e=="number"?E.cursor(e):e,(r=a.y)!==null&&r!==void 0?r:"nearest",(n=a.x)!==null&&n!==void 0?n:"nearest",(i=a.yMargin)!==null&&i!==void 0?i:5,(o=a.xMargin)!==null&&o!==void 0?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:a}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return eO.of(new Kd(E.cursor(r.from),"start","start",r.top-e,a,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return gs.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return gs.define(()=>({}),{eventObservers:e})}static theme(e,a){let r=Yr.newName(),n=[iO.of(r),Hd.of(g1(`.${r}`,e))];return a&&a.dark&&n.push(p1.of(!0)),n}static baseTheme(e){return mi.lowest(Hd.of(g1("."+m1,e,b$)))}static findFromDOM(e){var a;let r=e.querySelector(".cm-content"),n=r&&yt.get(r)||yt.get(e);return((a=n?.root)===null||a===void 0?void 0:a.view)||null}};oe.styleModule=Hd;oe.inputHandler=HD;oe.clipboardInputFilter=w1;oe.clipboardOutputFilter=C1;oe.scrollHandler=WD;oe.focusChangeEffect=GD;oe.perLineTextDirection=YD;oe.exceptionSink=FD;oe.updateListener=US;oe.editable=Ji;oe.mouseSelectionStyle=jD;oe.dragMovesSelection=UD;oe.clickAddsSelectionRange=VD;oe.decorations=wO;oe.blockWrappers=e$;oe.outerDecorations=L1;oe.atomicRanges=sh;oe.bidiIsolatedRanges=t$;oe.cursorScrollMargin=ce.define({combine:t=>{let e=5,a=5;for(let r of t)typeof r=="number"?e=a=r:{x:e,y:a}=r;return{x:e,y:a}}});oe.scrollMargins=a$;oe.darkTheme=p1;oe.cspNonce=ce.define({combine:t=>t.length?t[0]:""});oe.contentAttributes=k1;oe.editorAttributes=JD;oe.lineWrapping=oe.contentAttributes.of({class:"cm-lineWrapping"});oe.announce=Ke.define();var tG=4096,LD={},vO=class t{constructor(e,a,r,n,i,o){this.from=e,this.to=a,this.dir=r,this.isolates=n,this.fresh=i,this.order=o}static update(e,a){if(a.empty&&!e.some(i=>i.fresh))return e;let r=[],n=e.length?e[e.length-1].dir:wt.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir==n&&!a.touchesRange(o.from,o.to)&&r.push(new t(a.mapPos(o.from,1),a.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}};function TD(t,e,a){for(let r=t.state.facet(e),n=r.length-1;n>=0;n--){let i=r[n],o=typeof i=="function"?i(t):i;o&&b1(o,a)}return a}var aG=Y.mac?"mac":Y.windows?"win":Y.linux?"linux":"key";function rG(t,e){let a=t.split(/-(?!$)/),r=a[a.length-1];r=="Space"&&(r=" ");let n,i,o,s;for(let l=0;l<a.length-1;++l){let u=a[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))n=!0;else if(/^(c|ctrl|control)$/i.test(u))i=!0;else if(/^s(hift)?$/i.test(u))o=!0;else if(/^mod$/i.test(u))e=="mac"?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+u)}return n&&(r="Alt-"+r),i&&(r="Ctrl-"+r),s&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function oO(t,e,a){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),a!==!1&&e.shiftKey&&(t="Shift-"+t),t}var nG=mi.default(oe.domEventHandlers({keydown(t,e){return lG(iG(e.state),t,e,"editor")}})),zl=ce.define({enables:nG}),PD=new WeakMap;function iG(t){let e=t.facet(zl),a=PD.get(e);return a||PD.set(e,a=sG(e.reduce((r,n)=>r.concat(n),[]))),a}var hs=null,oG=4e3;function sG(t,e=aG){let a=Object.create(null),r=Object.create(null),n=(o,s)=>{let l=r[o];if(l==null)r[o]=s;else if(l!=s)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},i=(o,s,l,u,c)=>{var f,d;let h=a[o]||(a[o]=Object.create(null)),p=s.split(/ (?!$)/).map(g=>rG(g,e));for(let g=1;g<p.length;g++){let O=p.slice(0,g).join(" ");n(O,!0),h[O]||(h[O]={preventDefault:!0,stopPropagation:!1,run:[y=>{let b=hs={view:y,prefix:O,scope:o};return setTimeout(()=>{hs==b&&(hs=null)},oG),!0}]})}let m=p.join(" ");n(m,!1);let x=h[m]||(h[m]={preventDefault:!1,stopPropagation:!1,run:((d=(f=h._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});l&&x.run.push(l),u&&(x.preventDefault=!0),c&&(x.stopPropagation=!0)};for(let o of t){let s=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let u of s){let c=a[u]||(a[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=o;for(let d in c)c[d].run.push(h=>f(h,y1))}let l=o[e]||o.key;if(l)for(let u of s)i(u,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&i(u,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return a}var y1=null;function lG(t,e,a,r){y1=e;let n=tD(e),i=CS(n,0),o=kS(i)==n.length&&n!=" ",s="",l=!1,u=!1,c=!1;hs&&hs.view==a&&hs.scope==r&&(s=hs.prefix+" ",f$.indexOf(e.keyCode)<0&&(u=!0,hs=null));let f=new Set,d=x=>{if(x){for(let g of x.run)if(!f.has(g)&&(f.add(g),g(a)))return x.stopPropagation&&(c=!0),!0;x.preventDefault&&(x.stopPropagation&&(c=!0),u=!0)}return!1},h=t[r],p,m;return h&&(d(h[s+oO(n,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Y.windows&&e.ctrlKey&&e.altKey)&&!(Y.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=Ki[e.keyCode])&&p!=n?(d(h[s+oO(p,e,!0)])||e.shiftKey&&(m=Xc[e.keyCode])!=n&&m!=p&&d(h[s+oO(m,e,!1)]))&&(l=!0):o&&e.shiftKey&&d(h[s+oO(n,e,!0)])&&(l=!0),!l&&d(h._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),y1=null,l}var uG=Y.gecko&&Y.gecko_version==153?"#ffffff01":"transparent",coe=mi.highest(oe.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:`${uG} !important`},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}}));var foe=/x/.unicode!=null?"gu":"g";var ro=class extends Gr{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};ro.prototype.elementClass="";ro.prototype.toDOM=void 0;ro.prototype.mapMode=ha.TrackBefore;ro.prototype.startSide=ro.prototype.endSide=-1;ro.prototype.point=!0;var cG=0,nr=class{constructor(e,a){this.from=e,this.to=a}},fe=class{constructor(e={}){this.id=cG++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Tt.match(e)),a=>{let r=e(a);return r===void 0?null:[this,r]}}};fe.closedBy=new fe({deserialize:t=>t.split(" ")});fe.openedBy=new fe({deserialize:t=>t.split(" ")});fe.group=new fe({deserialize:t=>t.split(" ")});fe.isolate=new fe({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});fe.contextHash=new fe({perNode:!0});fe.lookAhead=new fe({perNode:!0});fe.mounted=new fe({perNode:!0});var xs=class{constructor(e,a,r,n=!1){this.tree=e,this.overlay=a,this.parser=r,this.bracketed=n}static get(e){return e&&e.props&&e.props[fe.mounted.id]}},fG=Object.create(null),Tt=class t{constructor(e,a,r,n=0){this.name=e,this.props=a,this.id=r,this.flags=n}static define(e){let a=e.props&&e.props.length?Object.create(null):fG,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new t(e.name||"",a,e.id,r);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");a[i[0].id]=i[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let a=this.prop(fe.group);return a?a.indexOf(e)>-1:!1}return this.id==e}static match(e){let a=Object.create(null);for(let r in e)for(let n of r.split(" "))a[n]=e[r];return r=>{for(let n=r.prop(fe.group),i=-1;i<(n?n.length:0);i++){let o=a[i<0?r.name:n[i]];if(o)return o}}}};Tt.none=new Tt("",Object.create(null),0,8);var ys=class t{constructor(e){this.types=e;for(let a=0;a<e.length;a++)if(e[a].id!=a)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let a=[];for(let r of this.types){let n=null;for(let i of e){let o=i(r);if(o){n||(n=Object.assign({},r.props));let s=o[1],l=o[0];l.combine&&l.id in n&&(s=l.combine(n[l.id],s)),n[l.id]=s}}a.push(n?new Tt(r.name,n,r.id,r.flags):r)}return new t(a)}},kO=new WeakMap,v$=new WeakMap,Me;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays",t[t.EnterBracketed=16]="EnterBracketed"})(Me||(Me={}));var $e=class t{constructor(e,a,r,n,i){if(this.type=e,this.children=a,this.positions=r,this.length=n,this.props=null,i&&i.length){this.props=Object.create(null);for(let[o,s]of i)this.props[typeof o=="number"?o:o.id]=s}}toString(){let e=xs.get(this);if(e&&!e.overlay)return e.tree.toString();let a="";for(let r of this.children){let n=r.toString();n&&(a&&(a+=","),a+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(a.length?"("+a+")":""):a}cursor(e=0){return new Kc(this.topNode,e)}cursorAt(e,a=0,r=0){let n=kO.get(this)||this.topNode,i=new Kc(n);return i.moveTo(e,a),kO.set(this,i._tree),i}get topNode(){return new ir(this,0,0,null)}resolve(e,a=0){let r=lh(kO.get(this)||this.topNode,e,a,!1);return kO.set(this,r),r}resolveInner(e,a=0){let r=lh(v$.get(this)||this.topNode,e,a,!0);return v$.set(this,r),r}resolveStack(e,a=0){return dG(this,e,a)}iterate(e){let{enter:a,leave:r,from:n=0,to:i=this.length}=e,o=e.mode||0,s=(o&Me.IncludeAnonymous)>0;for(let l=this.cursor(o|Me.IncludeAnonymous);;){let u=!1;if(l.from<=i&&l.to>=n&&(!s&&l.type.isAnonymous||a(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let a in this.props)e.push([+a,this.props[a]]);return e}balance(e={}){return this.children.length<=8?this:_1(Tt.none,this.children,this.positions,0,this.children.length,0,this.length,(a,r,n)=>new t(this.type,a,r,n,this.propValues),e.makeTree||((a,r,n)=>new t(Tt.none,a,r,n)))}static build(e){return hG(e)}};$e.empty=new $e(Tt.none,[],[],0);var P1=class t{constructor(e,a){this.buffer=e,this.index=a}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new t(this.buffer,this.index)}},bs=class t{constructor(e,a,r){this.buffer=e,this.length=a,this.set=r}get type(){return Tt.none}toString(){let e=[];for(let a=0;a<this.buffer.length;)e.push(this.childString(a)),a=this.buffer[a+3];return e.join(",")}childString(e){let a=this.buffer[e],r=this.buffer[e+3],n=this.set.types[a],i=n.name;if(/\W/.test(i)&&!n.isError&&(i=JSON.stringify(i)),e+=4,r==e)return i;let o=[];for(;e<r;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,a,r,n,i){let{buffer:o}=this,s=-1;for(let l=e;l!=a&&!(P$(i,n,o[l+1],o[l+2])&&(s=l,r>0));l=o[l+3]);return s}slice(e,a,r){let n=this.buffer,i=new Uint16Array(a-e),o=0;for(let s=e,l=0;s<a;){i[l++]=n[s++],i[l++]=n[s++]-r;let u=i[l++]=n[s++]-r;i[l++]=n[s++]-e,o=Math.max(o,u)}return new t(i,o,this.set)}};function P$(t,e,a,r){switch(t){case-2:return a<e;case-1:return r>=e&&a<e;case 0:return a<e&&r>e;case 1:return a<=e&&r>e;case 2:return r>e;case 4:return!0}}function lh(t,e,a,r){for(var n;t.from==t.to||(a<1?t.from>=e:t.from>e)||(a>-1?t.to<=e:t.to<e);){let o=!r&&t instanceof ir&&t.index<0?null:t.parent;if(!o)return t;t=o}let i=r?0:Me.IgnoreOverlays;if(r)for(let o=t,s=o.parent;s;o=s,s=o.parent)o instanceof ir&&o.index<0&&((n=s.enter(e,a,i))===null||n===void 0?void 0:n.from)!=o.from&&(t=s);for(;;){let o=t.enter(e,a,i);if(!o)return t;t=o}}var TO=class{cursor(e=0){return new Kc(this,e)}getChild(e,a=null,r=null){let n=S$(this,e,a,r);return n.length?n[0]:null}getChildren(e,a=null,r=null){return S$(this,e,a,r)}resolve(e,a=0){return lh(this,e,a,!1)}resolveInner(e,a=0){return lh(this,e,a,!0)}matchContext(e){return R1(this.parent,e)}enterUnfinishedNodesBefore(e){let a=this.childBefore(e),r=this;for(;a;){let n=a.lastChild;if(!n||n.to!=a.to)break;n.type.isError&&n.from==n.to?(r=a,a=n.prevSibling):a=n}return r}get node(){return this}get next(){return this.parent}},ir=class t extends TO{constructor(e,a,r,n){super(),this._tree=e,this.from=a,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,a,r,n,i=0){for(let o=this;;){for(let{children:s,positions:l}=o._tree,u=a>0?s.length:-1;e!=u;e+=a){let c=s[e],f=l[e]+o.from,d;if(!(!(i&Me.EnterBracketed&&c instanceof $e&&(d=xs.get(c))&&!d.overlay&&d.bracketed&&r>=f&&r<=f+c.length)&&!P$(n,r,f,f+c.length))){if(c instanceof bs){if(i&Me.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,a,r-f,n);if(h>-1)return new Nl(new I1(o,c,e,f),null,h)}else if(i&Me.IncludeAnonymous||!c.type.isAnonymous||B1(c)){let h;if(!(i&Me.IgnoreMounts)&&(h=xs.get(c))&&!h.overlay)return new t(h.tree,f,e,o);let p=new t(c,f,e,o);return i&Me.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(a<0?c.children.length-1:0,a,r,n,i)}}}if(i&Me.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+a:e=a<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,a,r=0){let n;if(!(r&Me.IgnoreOverlays)&&(n=xs.get(this._tree))&&n.overlay){let i=e-this.from,o=r&Me.EnterBracketed&&n.bracketed;for(let{from:s,to:l}of n.overlay)if((a>0||o?s<=i:s<i)&&(a<0||o?l>=i:l>i))return new t(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,a,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function S$(t,e,a,r){let n=t.cursor(),i=[];if(!n.firstChild())return i;if(a!=null){for(let o=!1;!o;)if(o=n.type.is(a),!n.nextSibling())return i}for(;;){if(r!=null&&n.type.is(r))return i;if(n.type.is(e)&&i.push(n.node),!n.nextSibling())return r==null?i:[]}}function R1(t,e,a=e.length-1){for(let r=t;a>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[a]&&e[a]!=r.name)return!1;a--}}return!0}var I1=class{constructor(e,a,r,n){this.parent=e,this.buffer=a,this.index=r,this.start=n}},Nl=class t extends TO{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,a,r){super(),this.context=e,this._parent=a,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,a,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,a-this.context.start,r);return i<0?null:new t(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,a,r=0){if(r&Me.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],a>0?1:-1,e-this.context.start,a);return i<0?null:new t(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,a=e.buffer[this.index+3];return a<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,a):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,a=this._parent?this._parent.index+4:0;return this.index==a?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(a,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],a=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let o=r.buffer[this.index+1];e.push(r.slice(n,i,o)),a.push(0)}return new $e(this.type,e,a,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function R$(t){if(!t.length)return null;let e=0,a=t[0];for(let i=1;i<t.length;i++){let o=t[i];(o.from>a.from||o.to<a.to)&&(a=o,e=i)}let r=a instanceof ir&&a.index<0?null:a.parent,n=t.slice();return r?n[e]=r:n.splice(e,1),new A1(n,a)}var A1=class{constructor(e,a){this.heads=e,this.node=a}get next(){return R$(this.heads)}};function dG(t,e,a){let r=t.resolveInner(e,a),n=null;for(let i=r instanceof ir?r:r.context.parent;i;i=i.parent)if(i.index<0){let o=i.parent;(n||(n=[r])).push(o.resolve(e,a)),i=o}else{let o=xs.get(i.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let s=new ir(o.tree,o.overlay[0].from+i.from,-1,i);(n||(n=[r])).push(lh(s,e,a,!1))}}return n?R$(n):r}var Kc=class{get name(){return this.type.name}constructor(e,a=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=a&~Me.EnterBracketed,e instanceof ir)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,a){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=a||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return e?e instanceof ir?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,a,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,a,r,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,a-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,a,r=this.mode){return this.buffer?r&Me.ExcludeBuffers?!1:this.enterChild(1,e,a):this.yield(this._tree.enter(e,a,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Me.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Me.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:a}=this.buffer,r=this.stack.length-1;if(e<0){let n=r<0?0:this.stack[r]+4;if(this.index!=n)return this.yieldBuf(a.findChild(n,this.index,-1,0,4))}else{let n=a.buffer[this.index+3];if(n<(r<0?a.buffer.length:a.buffer[this.stack[r]+3]))return this.yieldBuf(n)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let a,r,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(n.buffer.buffer[i+3]<this.index)return!1;({index:a,parent:r}=n)}else({index:a,_parent:r}=this._tree);for(;r;{index:a,_parent:r}=r)if(a>-1)for(let i=a+e,o=e<0?-1:r._tree.children.length;i!=o;i+=e){let s=r._tree.children[i];if(this.mode&Me.IncludeAnonymous||s instanceof bs||!s.type.isAnonymous||B1(s))return!1}return!0}move(e,a){if(a&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,a=0){for(;(this.from==this.to||(a<1?this.from>=e:this.from>e)||(a>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,a););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,a=null,r=0;if(e&&e.context==this.buffer)e:for(let n=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;a=o,r=i+1;break e}n=this.stack[--i]}for(let n=r;n<this.stack.length;n++)a=new Nl(this.buffer,a,this.stack[n]);return this.bufferNode=new Nl(this.buffer,a,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,a){for(let r=0;;){let n=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&a&&a(this),n=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return R1(this.node.parent,e);let{buffer:a}=this.buffer,{types:r}=a.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return R1(this._tree,e,n);let o=r[a.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}};function B1(t){return t.children.some(e=>e instanceof bs||!e.type.isAnonymous||B1(e))}function hG(t){var e;let{buffer:a,nodeSet:r,maxBufferLength:n=1024,reused:i=[],minRepeatType:o=r.types.length}=t,s=Array.isArray(a)?new P1(a,a.length):a,l=r.types,u=0,c=0;function f(v,S,w,k,T,Q){let{id:D,start:A,end:R,size:B}=s,W=c,$=u;if(B<0)if(s.next(),B==-1){let Pe=i[D];w.push(Pe),k.push(A-v);return}else if(B==-3){u=D;return}else if(B==-4){c=D;return}else throw new RangeError(`Unrecognized record size: ${B}`);let q=l[D],re,ie,z=A-v;if(R-A<=n&&(ie=x(s.pos-S,T))){let Pe=new Uint16Array(ie.size-ie.skip),P=s.pos-ie.size,H=Pe.length;for(;s.pos>P;)H=g(ie.start,Pe,H);re=new bs(Pe,R-ie.start,r),z=ie.start-v}else{let Pe=s.pos-B;s.next();let P=[],H=[],N=D>=o?D:-1,M=0,j=R;for(;s.pos>Pe;)N>=0&&s.id==N&&s.size>=0?(s.end<=j-n&&(p(P,H,A,M,s.end,j,N,W,$),M=P.length,j=s.end),s.next()):Q>2500?d(A,Pe,P,H):f(A,Pe,P,H,N,Q+1);if(N>=0&&M>0&&M<P.length&&p(P,H,A,M,A,j,N,W,$),P.reverse(),H.reverse(),N>-1&&M>0){let de=h(q,$);re=_1(q,P,H,0,P.length,0,R-A,de,de)}else re=m(q,P,H,R-A,W-R,$)}w.push(re),k.push(z)}function d(v,S,w,k){let T=[],Q=0,D=-1;for(;s.pos>S;){let{id:A,start:R,end:B,size:W}=s;if(W>4)s.next();else{if(D>-1&&R<D)break;D<0&&(D=B-n),T.push(A,R,B),Q++,s.next()}}if(Q){let A=new Uint16Array(Q*4),R=T[T.length-2];for(let B=T.length-3,W=0;B>=0;B-=3)A[W++]=T[B],A[W++]=T[B+1]-R,A[W++]=T[B+2]-R,A[W++]=W;w.push(new bs(A,T[2]-R,r)),k.push(R-v)}}function h(v,S){return(w,k,T)=>{let Q=0,D=w.length-1,A,R;if(D>=0&&(A=w[D])instanceof $e){if(!D&&A.type==v&&A.length==T)return A;(R=A.prop(fe.lookAhead))&&(Q=k[D]+A.length+R)}return m(v,w,k,T,Q,S)}}function p(v,S,w,k,T,Q,D,A,R){let B=[],W=[];for(;v.length>k;)B.push(v.pop()),W.push(S.pop()+w-T);v.push(m(r.types[D],B,W,Q-T,A-Q,R)),S.push(T-w)}function m(v,S,w,k,T,Q,D){if(Q){let A=[fe.contextHash,Q];D=D?[A].concat(D):[A]}if(T>25){let A=[fe.lookAhead,T];D=D?[A].concat(D):[A]}return new $e(v,S,w,k,D)}function x(v,S){let w=s.fork(),k=0,T=0,Q=0,D=w.end-n,A={size:0,start:0,skip:0};e:for(let R=w.pos-v;w.pos>R;){let B=w.size;if(w.id==S&&B>=0){A.size=k,A.start=T,A.skip=Q,Q+=4,k+=4,w.next();continue}let W=w.pos-B;if(B<0||W<R||w.start<D)break;let $=w.id>=o?4:0,q=w.start;for(w.next();w.pos>W;){if(w.size<0)if(w.size==-3||w.size==-4)$+=4;else break e;else w.id>=o&&($+=4);w.next()}T=q,k+=B,Q+=$}return(S<0||k==v)&&(A.size=k,A.start=T,A.skip=Q),A.size>4?A:void 0}function g(v,S,w){let{id:k,start:T,end:Q,size:D}=s;if(s.next(),D>=0&&k<o){let A=w;if(D>4){let R=s.pos-(D-4);for(;s.pos>R;)w=g(v,S,w)}S[--w]=A,S[--w]=Q-v,S[--w]=T-v,S[--w]=k}else D==-3?u=k:D==-4&&(c=k);return w}let O=[],y=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,O,y,-1,0);let b=(e=t.length)!==null&&e!==void 0?e:O.length?y[0]+O[0].length:0;return new $e(l[t.topID],O.reverse(),y.reverse(),b)}var w$=new WeakMap;function LO(t,e){if(!t.isAnonymous||e instanceof bs||e.type!=t)return 1;let a=w$.get(e);if(a==null){a=1;for(let r of e.children){if(r.type!=t||!(r instanceof $e)){a=1;break}a+=LO(t,r)}w$.set(e,a)}return a}function _1(t,e,a,r,n,i,o,s,l){let u=0;for(let p=r;p<n;p++)u+=LO(t,e[p]);let c=Math.ceil(u*1.5/8),f=[],d=[];function h(p,m,x,g,O){for(let y=x;y<g;){let b=y,v=m[y],S=LO(t,p[y]);for(y++;y<g;y++){let w=LO(t,p[y]);if(S+w>=c)break;S+=w}if(y==b+1){if(S>c){let w=p[b];h(w.children,w.positions,0,w.children.length,m[b]+O);continue}f.push(p[b])}else{let w=m[y-1]+p[y-1].length-v;f.push(_1(t,p,m,b,y,v,w,null,l))}d.push(v+O-i)}}return h(e,a,r,n,0),(s||l)(f,d,o)}var Jc=class{constructor(){this.map=new WeakMap}setBuffer(e,a,r){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(a,r)}getBuffer(e,a){let r=this.map.get(e);return r&&r.get(a)}set(e,a){e instanceof Nl?this.setBuffer(e.context.buffer,e.index,a):e instanceof ir&&this.map.set(e.tree,a)}get(e){return e instanceof Nl?this.getBuffer(e.context.buffer,e.index):e instanceof ir?this.map.get(e.tree):void 0}cursorSet(e,a){e.buffer?this.setBuffer(e.buffer.buffer,e.index,a):this.map.set(e.tree,a)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},no=class t{constructor(e,a,r,n,i=!1,o=!1){this.from=e,this.to=a,this.tree=r,this.offset=n,this.open=(i?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,a=[],r=!1){let n=[new t(0,e.length,e,0,!1,r)];for(let i of a)i.to>e.length&&n.push(i);return n}static applyChanges(e,a,r=128){if(!a.length)return e;let n=[],i=1,o=e.length?e[0]:null;for(let s=0,l=0,u=0;;s++){let c=s<a.length?a[s]:null,f=c?c.fromA:1e9;if(f-l>=r)for(;o&&o.from<f;){let d=o;if(l>=d.from||f<=d.to||u){let h=Math.max(d.from,l)-u,p=Math.min(d.to,f)-u;d=h>=p?null:new t(h,p,d.tree,d.offset+u,s>0,!!c)}if(d&&n.push(d),o.to>f)break;o=i<e.length?e[i++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return n}},vs=class{startParse(e,a,r){return typeof e=="string"&&(e=new Q1(e)),r=r?r.length?r.map(n=>new nr(n.from,n.to)):[new nr(0,0)]:[new nr(0,e.length)],this.createParse(e,a||[],r)}parse(e,a,r){let n=this.startParse(e,a,r);for(;;){let i=n.advance();if(i)return i}}},Q1=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,a){return this.string.slice(e,a)}};function IO(t){return(e,a,r,n)=>new D1(e,t,a,r,n)}var PO=class{constructor(e,a,r,n,i,o){this.parser=e,this.parse=a,this.overlay=r,this.bracketed=n,this.target=i,this.from=o}};function C$(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}var M1=class{constructor(e,a,r,n,i,o,s,l){this.parser=e,this.predicate=a,this.mounts=r,this.index=n,this.start=i,this.bracketed=o,this.target=s,this.prev=l,this.depth=0,this.ranges=[]}},E1=new fe({perNode:!0}),D1=class{constructor(e,a,r,n,i){this.nest=a,this.input=r,this.fragments=n,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let n of this.inner)n.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new $e(r.type,r.children,r.positions,r.length,r.propValues.concat([[E1,this.stoppedAt]]))),r}let e=this.inner[this.innerDone],a=e.parse.advance();if(a){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[fe.mounted.id]=new xs(a,e.overlay,e.parser,e.bracketed),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let a=this.innerDone;a<this.inner.length;a++)this.inner[a].from<e&&(e=Math.min(e,this.inner[a].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let a=this.innerDone;a<this.inner.length;a++)this.inner[a].parse.stopAt(e)}startInner(){let e=new $1(this.fragments),a=null,r=null,n=new Kc(new ir(this.baseTree,this.ranges[0].from,0,null),Me.IncludeAnonymous|Me.IgnoreMounts);e:for(let i,o;;){let s=!0,l;if(this.stoppedAt!=null&&n.from>=this.stoppedAt)s=!1;else if(e.hasNode(n)){if(a){let u=a.mounts.find(c=>c.frag.from<=n.from&&c.frag.to>=n.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let f=c.from+u.pos,d=c.to+u.pos;f>=n.from&&d<=n.to&&!a.ranges.some(h=>h.from<d&&h.to>f)&&a.ranges.push({from:f,to:d})}}s=!1}else if(r&&(o=pG(r.ranges,n.from,n.to)))s=o!=2;else if(!n.type.isAnonymous&&(i=this.nest(n,this.input))&&(n.from<n.to||!i.overlay)){n.tree||(mG(n),a&&a.depth++,r&&r.depth++);let u=e.findMounts(n.from,i.parser);if(typeof i.overlay=="function")a=new M1(i.parser,i.overlay,u,this.inner.length,n.from,!!i.bracketed,n.tree,a);else{let c=L$(this.ranges,i.overlay||(n.from<n.to?[new nr(n.from,n.to)]:[]));c.length&&C$(c),(c.length||!i.overlay)&&this.inner.push(new PO(i.parser,c.length?i.parser.startParse(this.input,T$(u,c),c):i.parser.startParse(""),i.overlay?i.overlay.map(f=>new nr(f.from-n.from,f.to-n.from)):null,!!i.bracketed,n.tree,c.length?c[0].from:n.from)),i.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):s=!1}}else if(a&&(l=a.predicate(n))&&(l===!0&&(l=new nr(n.from,n.to)),l.from<l.to)){let u=a.ranges.length-1;u>=0&&a.ranges[u].to==l.from?a.ranges[u]={from:a.ranges[u].from,to:l.to}:a.ranges.push(l)}if(s&&n.firstChild())a&&a.depth++,r&&r.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(a&&!--a.depth){let u=L$(this.ranges,a.ranges);u.length&&(C$(u),this.inner.splice(a.index,0,new PO(a.parser,a.parser.startParse(this.input,T$(a.mounts,u),u),a.ranges.map(c=>new nr(c.from-a.start,c.to-a.start)),a.bracketed,a.target,u[0].from))),a=a.prev}r&&!--r.depth&&(r=r.prev)}}}};function pG(t,e,a){for(let r of t){if(r.from>=a)break;if(r.to>e)return r.from<=e&&r.to>=a?2:1}return 0}function k$(t,e,a,r,n,i){if(e<a){let o=t.buffer[e+1];r.push(t.slice(e,a,o)),n.push(o-i)}}function mG(t){let{node:e}=t,a=[],r=e.context.buffer;do a.push(t.index),t.parent();while(!t.tree);let n=t.tree,i=n.children.indexOf(r),o=n.children[i],s=o.buffer,l=[i];function u(c,f,d,h,p,m){let x=a[m],g=[],O=[];k$(o,c,x,g,O,h);let y=s[x+1],b=s[x+2];l.push(g.length);let v=m?u(x+4,s[x+3],o.set.types[s[x]],y,b-y,m-1):e.toTree();return g.push(v),O.push(y-h),k$(o,s[x+3],f,g,O,h),new $e(d,g,O,p)}n.children[i]=u(0,s.length,Tt.none,0,o.length,a.length-1);for(let c of l){let f=t.tree.children[c],d=t.tree.positions[c];t.yield(new ir(f,d+t.from,c,t._tree))}}var RO=class{constructor(e,a){this.offset=a,this.done=!1,this.cursor=e.cursor(Me.IncludeAnonymous|Me.IgnoreMounts)}moveTo(e){let{cursor:a}=this,r=e-this.offset;for(;!this.done&&a.from<r;)if(!(a.to>=e&&a.enter(r,1,Me.IgnoreOverlays|Me.ExcludeBuffers)))if(a.to<=e)a.next(!1)||(this.done=!0);else break}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let a=this.cursor.tree;;){if(a==e.tree)return!0;if(a.children.length&&a.positions[0]==0&&a.children[0]instanceof $e)a=a.children[0];else break}return!1}},$1=class{constructor(e){var a;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=(a=r.tree.prop(E1))!==null&&a!==void 0?a:r.to,this.inner=new RO(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let a=this.curFrag=this.fragments[this.fragI];this.curTo=(e=a.tree.prop(E1))!==null&&e!==void 0?e:a.to,this.inner=new RO(a.tree,-a.offset)}}findMounts(e,a){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let i=this.inner.cursor.node;i;i=i.parent){let o=(r=i.tree)===null||r===void 0?void 0:r.prop(fe.mounted);if(o&&o.parser==a)for(let s=this.fragI;s<this.fragments.length;s++){let l=this.fragments[s];if(l.from>=i.to)break;l.tree==this.curFrag.tree&&n.push({frag:l,pos:i.from-l.offset,mount:o})}}}return n}};function L$(t,e){let a=null,r=e;for(let n=1,i=0;n<t.length;n++){let o=t[n-1].to,s=t[n].from;for(;i<r.length;i++){let l=r[i];if(l.from>=s)break;l.to<=o||(a||(r=a=e.slice()),l.from<o?(a[i]=new nr(l.from,o),l.to>s&&a.splice(i+1,0,new nr(s,l.to))):l.to>s?a[i--]=new nr(s,l.to):a.splice(i--,1))}}return r}function gG(t,e,a,r){let n=0,i=0,o=!1,s=!1,l=-1e9,u=[];for(;;){let c=n==t.length?1e9:o?t[n].to:t[n].from,f=i==e.length?1e9:s?e[i].to:e[i].from;if(o!=s){let d=Math.max(l,a),h=Math.min(c,f,r);d<h&&u.push(new nr(d,h))}if(l=Math.min(c,f),l==1e9)break;c==l&&(o?(o=!1,n++):o=!0),f==l&&(s?(s=!1,i++):s=!0)}return u}function T$(t,e){let a=[];for(let{pos:r,mount:n,frag:i}of t){let o=r+(n.overlay?n.overlay[0].from:0),s=o+n.tree.length,l=Math.max(i.from,o),u=Math.min(i.to,s);if(n.overlay){let c=n.overlay.map(d=>new nr(d.from+r,d.to+r)),f=gG(e,c,l,u);for(let d=0,h=l;;d++){let p=d==f.length,m=p?u:f[d].from;if(m>h&&a.push(new no(h,m,n.tree,-o,i.from>=h||i.openStart,i.to<=m||i.openEnd)),p)break;h=f[d].to}}else a.push(new no(l,u,n.tree,-o,i.from>=o||i.openStart,i.to<=s||i.openEnd))}return a}var OG=0,Cr=class t{constructor(e,a,r,n){this.name=e,this.set=a,this.base=r,this.modified=n,this.id=OG++}toString(){let{name:e}=this;for(let a of this.modified)a.name&&(e=`${a.name}(${e})`);return e}static define(e,a){let r=typeof e=="string"?e:"?";if(e instanceof t&&(a=e),a?.base)throw new Error("Can not derive from a modified tag");let n=new t(r,[],null,[]);if(n.set.push(n),a)for(let i of a.set)n.set.push(i);return n}static defineModifier(e){let a=new EO(e);return r=>r.modified.indexOf(a)>-1?r:EO.get(r.base||r,r.modified.concat(a).sort((n,i)=>n.id-i.id))}},xG=0,EO=class t{constructor(e){this.name=e,this.instances=[],this.id=xG++}static get(e,a){if(!a.length)return e;let r=a[0].instances.find(s=>s.base==e&&yG(a,s.modified));if(r)return r;let n=[],i=new Cr(e.name,n,e,a);for(let s of a)s.instances.push(i);let o=bG(a);for(let s of e.set)if(!s.modified.length)for(let l of o)n.push(t.get(s,l));return i}};function yG(t,e){return t.length==e.length&&t.every((a,r)=>a==e[r])}function bG(t){let e=[[]];for(let a=0;a<t.length;a++)for(let r=0,n=e.length;r<n;r++)e.push(e[r].concat(t[a]));return e.sort((a,r)=>r.length-a.length)}function Rn(t){let e=Object.create(null);for(let a in t){let r=t[a];Array.isArray(r)||(r=[r]);for(let n of a.split(" "))if(n){let i=[],o=2,s=n;for(let f=0;;){if(s=="..."&&f>0&&f+3==n.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+n);if(i.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==n.length)break;let h=n[f++];if(f==n.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+n);s=n.slice(f)}let l=i.length-1,u=i[l];if(!u)throw new RangeError("Invalid path: "+n);let c=new ql(r,o,l>0?i.slice(0,l):null);e[u]=c.sort(e[u])}}return Q$.add(e)}var Q$=new fe({combine(t,e){let a,r,n;for(;t||e;){if(!t||e&&t.depth>=e.depth?(n=e,e=e.next):(n=t,t=t.next),a&&a.mode==n.mode&&!n.context&&!a.context)continue;let i=new ql(n.tags,n.mode,n.context);a?a.next=i:r=i,a=i}return r}}),ql=class{constructor(e,a,r,n){this.tags=e,this.mode=a,this.context=r,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};ql.empty=new ql([],2,null);function q1(t,e){let a=Object.create(null);for(let i of t)if(!Array.isArray(i.tag))a[i.tag.id]=i.class;else for(let o of i.tag)a[o.id]=i.class;let{scope:r,all:n=null}=e||{};return{style:i=>{let o=n;for(let s of i)for(let l of s.set){let u=a[l.id];if(u){o=o?o+" "+u:u;break}}return o},scope:r}}function vG(t,e){let a=null;for(let r of t){let n=r.style(e);n&&(a=a?a+" "+n:n)}return a}function M$(t,e,a,r=0,n=t.length){let i=new N1(r,Array.isArray(e)?e:[e],a);i.highlightRange(t.cursor(),r,n,"",i.highlighters),i.flush(n)}var N1=class{constructor(e,a,r){this.at=e,this.highlighters=a,this.span=r,this.class=""}startSpan(e,a){a!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=a)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,a,r,n,i){let{type:o,from:s,to:l}=e;if(s>=r||l<=a)return;o.isTop&&(i=this.highlighters.filter(h=>!h.scope||h.scope(o)));let u=n,c=SG(e)||ql.empty,f=vG(i,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(n+=(n?" ":"")+f)),this.startSpan(Math.max(a,s),u),c.opaque)return;let d=e.tree&&e.tree.prop(fe.mounted);if(d&&d.overlay){let h=e.node.enter(d.overlay[0].from+s,1),p=this.highlighters.filter(x=>!x.scope||x.scope(d.tree.type)),m=e.firstChild();for(let x=0,g=s;;x++){let O=x<d.overlay.length?d.overlay[x]:null,y=O?O.from+s:l,b=Math.max(a,g),v=Math.min(r,y);if(b<v&&m)for(;e.from<v&&(this.highlightRange(e,b,v,n,i),this.startSpan(Math.min(v,e.to),u),!(e.to>=y||!e.nextSibling())););if(!O||y>r)break;g=O.to+s,g>a&&(this.highlightRange(h.cursor(),Math.max(a,O.from+s),Math.min(r,g),"",p),this.startSpan(Math.min(r,g),u))}m&&e.parent()}else if(e.firstChild()){d&&(n="");do if(!(e.to<=a)){if(e.from>=r)break;this.highlightRange(e,a,r,n,i),this.startSpan(Math.min(r,e.to),u)}while(e.nextSibling());e.parent()}}};function SG(t){let e=t.type.prop(Q$);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}var U=Cr.define,AO=U(),Ss=U(),I$=U(Ss),A$=U(Ss),ws=U(),QO=U(ws),z1=U(ws),bi=U(),Xl=U(bi),xi=U(),yi=U(),X1=U(),uh=U(X1),MO=U(),C={comment:AO,lineComment:U(AO),blockComment:U(AO),docComment:U(AO),name:Ss,variableName:U(Ss),typeName:I$,tagName:U(I$),propertyName:A$,attributeName:U(A$),className:U(Ss),labelName:U(Ss),namespace:U(Ss),macroName:U(Ss),literal:ws,string:QO,docString:U(QO),character:U(QO),attributeValue:U(QO),number:z1,integer:U(z1),float:U(z1),bool:U(ws),regexp:U(ws),escape:U(ws),color:U(ws),url:U(ws),keyword:xi,self:U(xi),null:U(xi),atom:U(xi),unit:U(xi),modifier:U(xi),operatorKeyword:U(xi),controlKeyword:U(xi),definitionKeyword:U(xi),moduleKeyword:U(xi),operator:yi,derefOperator:U(yi),arithmeticOperator:U(yi),logicOperator:U(yi),bitwiseOperator:U(yi),compareOperator:U(yi),updateOperator:U(yi),definitionOperator:U(yi),typeOperator:U(yi),controlOperator:U(yi),punctuation:X1,separator:U(X1),bracket:uh,angleBracket:U(uh),squareBracket:U(uh),paren:U(uh),brace:U(uh),content:bi,heading:Xl,heading1:U(Xl),heading2:U(Xl),heading3:U(Xl),heading4:U(Xl),heading5:U(Xl),heading6:U(Xl),contentSeparator:U(bi),list:U(bi),quote:U(bi),emphasis:U(bi),strong:U(bi),link:U(bi),monospace:U(bi),strikethrough:U(bi),inserted:U(),deleted:U(),changed:U(),invalid:U(),meta:MO,documentMeta:U(MO),annotation:U(MO),processingInstruction:U(MO),definition:Cr.defineModifier("definition"),constant:Cr.defineModifier("constant"),function:Cr.defineModifier("function"),standard:Cr.defineModifier("standard"),local:Cr.defineModifier("local"),special:Cr.defineModifier("special")};for(let t in C){let e=C[t];e instanceof Cr&&(e.name=t)}var goe=q1([{tag:C.link,class:"tok-link"},{tag:C.heading,class:"tok-heading"},{tag:C.emphasis,class:"tok-emphasis"},{tag:C.strong,class:"tok-strong"},{tag:C.keyword,class:"tok-keyword"},{tag:C.atom,class:"tok-atom"},{tag:C.bool,class:"tok-bool"},{tag:C.url,class:"tok-url"},{tag:C.labelName,class:"tok-labelName"},{tag:C.inserted,class:"tok-inserted"},{tag:C.deleted,class:"tok-deleted"},{tag:C.literal,class:"tok-literal"},{tag:C.string,class:"tok-string"},{tag:C.number,class:"tok-number"},{tag:[C.regexp,C.escape,C.special(C.string)],class:"tok-string2"},{tag:C.variableName,class:"tok-variableName"},{tag:C.local(C.variableName),class:"tok-variableName tok-local"},{tag:C.definition(C.variableName),class:"tok-variableName tok-definition"},{tag:C.special(C.variableName),class:"tok-variableName2"},{tag:C.definition(C.propertyName),class:"tok-propertyName tok-definition"},{tag:C.typeName,class:"tok-typeName"},{tag:C.namespace,class:"tok-namespace"},{tag:C.className,class:"tok-className"},{tag:C.macroName,class:"tok-macroName"},{tag:C.propertyName,class:"tok-propertyName"},{tag:C.operator,class:"tok-operator"},{tag:C.comment,class:"tok-comment"},{tag:C.meta,class:"tok-meta"},{tag:C.invalid,class:"tok-invalid"},{tag:C.punctuation,class:"tok-punctuation"}]);var Z1,Cs=new fe;function ph(t){return ce.define({combine:t?e=>e.concat(t):void 0})}var $O=new fe,Na=class{constructor(e,a,r=[],n=""){this.data=e,this.name=n,xt.prototype.hasOwnProperty("tree")||Object.defineProperty(xt.prototype,"tree",{get(){return Je(this)}}),this.parser=a,this.extension=[ef.of(this),xt.languageData.of((i,o,s)=>{let l=E$(i,o,s),u=l.type.prop(Cs);if(!u)return[];let c=i.facet(u),f=l.type.prop($O);if(f){let d=l.resolve(o-l.from,s);for(let h of f)if(h.test(d,i)){let p=i.facet(h.facet);return h.type=="replace"?p:p.concat(c)}}return c})].concat(r)}isActiveAt(e,a,r=-1){return E$(e,a,r).type.prop(Cs)==this.data}findRegions(e){let a=e.facet(ef);if(a?.data==this.data)return[{from:0,to:e.doc.length}];if(!a||!a.allowsNesting)return[];let r=[],n=(i,o)=>{if(i.prop(Cs)==this.data){r.push({from:o,to:o+i.length});return}let s=i.prop(fe.mounted);if(s){if(s.tree.prop(Cs)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+i.length});return}else if(s.overlay){let l=r.length;if(n(s.tree,s.overlay[0].from+o),r.length>l)return}}for(let l=0;l<i.children.length;l++){let u=i.children[l];u instanceof $e&&n(u,i.positions[l]+o)}};return n(Je(e),0),r}get allowsNesting(){return!0}};Na.setState=Ke.define();function E$(t,e,a){let r=t.facet(ef),n=Je(t).topNode;if(!r||r.allowsNesting)for(let i=n;i;i=i.enter(e,a,Me.ExcludeBuffers|Me.EnterBracketed))i.type.isTop&&(n=i);return n}var ks=class t extends Na{constructor(e,a,r){super(e,a,[],r),this.parser=a}static define(e){let a=ph(e.languageData);return new t(a,e.parser.configure({props:[Cs.add(r=>r.isTop?a:void 0)]}),e.name)}configure(e,a){return new t(this.data,this.parser.configure(e),a||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function Je(t){let e=t.field(Na.state,!1);return e?e.tree:$e.empty}var F1=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,a){let r=this.cursorPos-this.string.length;return e<r||a>=this.cursorPos?this.doc.sliceString(e,a):this.string.slice(e-r,a-r)}},ch=null,fh=class t{constructor(e,a,r=[],n,i,o,s,l){this.parser=e,this.state=a,this.fragments=r,this.tree=n,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,a,r){return new t(e,a,[],$e.empty,0,r,[],null)}startParse(){return this.parser.startParse(new F1(this.state.doc),this.fragments)}work(e,a){return a!=null&&a>=this.state.doc.length&&(a=void 0),this.tree!=$e.empty&&this.isDone(a??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),a!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>a)&&a<this.state.doc.length&&this.parse.stopAt(a);;){let n=this.parse.advance();if(n)if(this.fragments=this.withoutTempSkipped(no.addTree(n,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=n,this.parse=null,this.treeLen<(a??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,a;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(a=this.parse.advance()););}),this.treeLen=e,this.tree=a,this.fragments=this.withoutTempSkipped(no.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let a=ch;ch=this;try{return e()}finally{ch=a}}withoutTempSkipped(e){for(let a;a=this.tempSkipped.pop();)e=D$(e,a.from,a.to);return e}changes(e,a){let{fragments:r,tree:n,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,c,f,d)=>l.push({fromA:u,toA:c,fromB:f,toB:d})),r=no.applyChanges(r,l),n=$e.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),f=e.mapPos(u.to,-1);c<f&&s.push({from:c,to:f})}}}return new t(this.parser,a,r,n,i,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let a=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:n,to:i}=this.skipped[r];n<e.to&&i>e.from&&(this.fragments=D$(this.fragments,n,i),this.skipped.splice(r--,1))}return this.skipped.length>=a?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,a){this.skipped.push({from:e,to:a})}static getSkippingParser(e){return new class extends vs{createParse(a,r,n){let i=n[0].from,o=n[n.length-1].to;return{parsedPos:i,advance(){let l=ch;if(l){for(let u of n)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new $e(Tt.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let a=this.fragments;return this.treeLen>=e&&a.length&&a[0].from==0&&a[0].to>=e}static get(){return ch}};function D$(t,e,a){return no.applyChanges(t,[{fromA:e,toA:a,fromB:e,toB:a}])}var dh=class t{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let a=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),a.viewport.to);return a.work(20,r)||a.takeTree(),new t(a)}static init(e){let a=Math.min(3e3,e.doc.length),r=fh.create(e.facet(ef).parser,e,{from:0,to:a});return r.work(20,a)||r.takeTree(),new t(r)}};Na.state=vr.define({create:dh.init,update(t,e){for(let a of e.effects)if(a.is(Na.setState))return a.value;return e.startState.facet(ef)!=e.state.facet(ef)?dh.init(e.state):t.apply(e)}});var z$=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(z$=t=>{let e=-1,a=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(a):cancelIdleCallback(e)});var V1=typeof navigator<"u"&&(!((Z1=navigator.scheduling)===null||Z1===void 0)&&Z1.isInputPending)?()=>navigator.scheduling.isInputPending():null,wG=gs.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let a=this.view.state.field(Na.state).context;(a.updateViewport(e.view.viewport)||this.view.viewport.to>a.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(a)}scheduleWork(){if(this.working)return;let{state:e}=this.view,a=e.field(Na.state);(a.tree!=a.context.tree||!a.context.isDone(e.doc.length))&&(this.working=z$(this.work))}work(e){this.working=null;let a=Date.now();if(this.chunkEnd<a&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=a+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,i=r.field(Na.state);if(i.tree==i.context.tree&&i.context.isDone(n+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!V1?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<n&&r.doc.length>n+1e3,l=i.context.work(()=>V1&&V1()||Date.now()>o,n+(s?0:1e5));this.chunkBudget-=Date.now()-a,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Na.setState.of(new dh(i.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(a=>en(this.view.state,a)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ef=ce.define({combine(t){return t.length?t[0]:null},enables:t=>[Na.state,wG,oe.contentAttributes.compute([t],e=>{let a=e.facet(t);return a&&a.name?{"data-language":a.name}:{}})]}),In=class{constructor(e,a=[]){this.language=e,this.support=a,this.extension=[e,a]}},hh=class t{constructor(e,a,r,n,i,o=void 0){this.name=e,this.alias=a,this.extensions=r,this.filename=n,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:a,support:r}=e;if(!a){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");a=()=>Promise.resolve(r)}return new t(e.name,(e.alias||[]).concat(e.name).map(n=>n.toLowerCase()),e.extensions||[],e.filename,a,r)}static matchFilename(e,a){for(let n of e)if(n.filename&&n.filename.test(a))return n;let r=/\.([^.]+)$/.exec(a);if(r){for(let n of e)if(n.extensions.indexOf(r[1])>-1)return n}return null}static matchLanguageName(e,a,r=!0){a=a.toLowerCase();for(let n of e)if(n.alias.some(i=>i==a))return n;if(r)for(let n of e)for(let i of n.alias){let o=a.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(a[o-1])&&!/\w/.test(a[o+i.length])))return n}return null}},CG=ce.define(),Ls=ce.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(a=>a!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function mh(t){let e=t.facet(Ls);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function gh(t,e){let a="",r=t.tabSize,n=t.facet(Ls)[0];if(n==" "){for(;e>=r;)a+=" ",e-=r;n=" "}for(let i=0;i<e;i++)a+=n;return a}function J1(t,e){t instanceof xt&&(t=new Zl(t));for(let r of t.state.facet(CG)){let n=r(t,e);if(n!==void 0)return n}let a=Je(t.state);return a.length>=e?kG(t,a,e):null}var Zl=class{constructor(e,a={}){this.state=e,this.options=a,this.unit=mh(e)}lineAt(e,a=1){let r=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return n!=null&&n>=r.from&&n<=r.to?i&&n==e?{text:"",from:e}:(a<0?n<e:n<=e)?{text:r.text.slice(n-r.from),from:n}:{text:r.text.slice(0,n-r.from),from:r.from}:r}textAfterPos(e,a=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(e,a);return r.slice(e-n,Math.min(r.length,e+100-n))}column(e,a=1){let{text:r,from:n}=this.lineAt(e,a),i=this.countColumn(r,e-n),o=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return o>-1&&(i+=o-this.countColumn(r,r.search(/\S|$/))),i}countColumn(e,a=e.length){return Sr(e,this.state.tabSize,a)}lineIndent(e,a=1){let{text:r,from:n}=this.lineAt(e,a),i=this.options.overrideIndentation;if(i){let o=i(n);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},io=new fe;function kG(t,e,a){let r=e.resolveStack(a),n=e.resolveInner(a,-1).resolve(a,0).enterUnfinishedNodesBefore(a);if(n!=r.node){let i=[];for(let o=n;o&&!(o.from<r.node.from||o.to>r.node.to||o.from==r.node.from&&o.type==r.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)r={node:i[o],next:r}}return N$(r,t,a)}function N$(t,e,a){for(let r=t;r;r=r.next){let n=TG(r.node);if(n)return n(H1.create(e,a,r))}return 0}function LG(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function TG(t){let e=t.type.prop(io);if(e)return e;let a=t.firstChild,r;if(a&&(r=a.type.prop(fe.closedBy))){let n=t.lastChild,i=n&&r.indexOf(n.name)>-1;return o=>q$(o,!0,1,void 0,i&&!LG(o)?n.from:void 0)}return t.parent==null?PG:null}function PG(){return 0}var H1=class t extends Zl{constructor(e,a,r){super(e.state,e.options),this.base=e,this.pos=a,this.context=r}get node(){return this.context.node}static create(e,a,r){return new t(e,a,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let a=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(a.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(RG(r,e))break;a=this.state.doc.lineAt(r.from)}return this.lineIndent(a.from)}continue(){return N$(this.context.next,this.base,this.pos)}};function RG(t,e){for(let a=e;a;a=a.parent)if(t==a)return!0;return!1}function IG(t){let e=t.node,a=e.childAfter(e.from),r=e.lastChild;if(!a)return null;let n=t.options.simulateBreak,i=t.state.doc.lineAt(a.from),o=n==null||n<=i.from?i.to:Math.min(i.to,n);for(let s=a.to;;){let l=e.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let u=/^ */.exec(i.text.slice(a.to-i.from))[0].length;return{from:a.from,to:a.to+u}}s=l.to}}function X$({closing:t,align:e=!0,units:a=1}){return r=>q$(r,e,a,t)}function q$(t,e,a,r,n){let i=t.textAfter,o=i.match(/^\s*/)[0].length,s=r&&i.slice(o,o+r.length)==r||n==t.pos+o,l=e?IG(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*a)}var Z$=t=>t.baseIndent;function tf({except:t,units:e=1}={}){return a=>{let r=t&&t.test(a.textAfter);return a.baseIndent+(r?0:e*a.unit)}}var V$=ce.define(),oo=new fe;function BO(t){let e=t.firstChild,a=t.lastChild;return e&&e.to<a.from?{from:e.to,to:a.type.isError?t.to:a.from}:null}var DO=class t{constructor(e,a){this.specs=e;let r;function n(s){let l=Yr.newName();return(r||(r=Object.create(null)))["."+l]=s,l}let i=typeof a.all=="string"?a.all:a.all?n(a.all):void 0,o=a.scope;this.scope=o instanceof Na?s=>s.prop(Cs)==o.data:o?s=>s==o:void 0,this.style=q1(e.map(s=>({tag:s.tag,class:s.class||n(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=r?new Yr(r):null,this.themeType=a.themeType}static define(e,a){return new t(e,a||{})}},G1=ce.define(),U$=ce.define({combine(t){return t.length?[t[0]]:null}});function U1(t){let e=t.facet(G1);return e.length?e:t.facet(U$)}function j$(t,e){let a=[AG],r;return t instanceof DO&&(t.module&&a.push(oe.styleModule.of(t.module)),r=t.themeType),e?.fallback?a.push(U$.of(t)):r?a.push(G1.computeN([oe.darkTheme],n=>n.facet(oe.darkTheme)==(r=="dark")?[t]:[])):a.push(G1.of(t)),a}var Y1=class{constructor(e){this.markCache=Object.create(null),this.tree=Je(e.state),this.decorations=this.buildDeco(e,U1(e.state)),this.decoratedTo=e.viewport.to}update(e){let a=Je(e.state),r=U1(e.state),n=r!=U1(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);a.length<i.to&&!n&&a.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(a!=this.tree||e.viewportChanged||n)&&(this.tree=a,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=i.to)}buildDeco(e,a){if(!a||!this.tree.length)return nt.none;let r=new ds;for(let{from:n,to:i}of e.visibleRanges)M$(this.tree,a,(o,s,l)=>{r.add(o,s,this.markCache[l]||(this.markCache[l]=nt.mark({class:l})))},n,i);return r.finish()}},AG=mi.high(gs.fromClass(Y1,{decorations:t=>t.decorations})),F$=DO.define([{tag:C.meta,color:"#404740"},{tag:C.link,textDecoration:"underline"},{tag:C.heading,textDecoration:"underline",fontWeight:"bold"},{tag:C.emphasis,fontStyle:"italic"},{tag:C.strong,fontWeight:"bold"},{tag:C.strikethrough,textDecoration:"line-through"},{tag:C.keyword,color:"#708"},{tag:[C.atom,C.bool,C.url,C.contentSeparator,C.labelName],color:"#219"},{tag:[C.literal,C.inserted],color:"#164"},{tag:[C.string,C.deleted],color:"#a11"},{tag:[C.regexp,C.escape,C.special(C.string)],color:"#e40"},{tag:C.definition(C.variableName),color:"#00f"},{tag:C.local(C.variableName),color:"#30a"},{tag:[C.typeName,C.namespace],color:"#085"},{tag:C.className,color:"#167"},{tag:[C.special(C.variableName),C.macroName],color:"#256"},{tag:C.definition(C.propertyName),color:"#00c"},{tag:C.comment,color:"#940"},{tag:C.invalid,color:"#f00"}]);var QG=1e4,MG="()[]{}";var ew=new fe;function W1(t,e,a){let r=t.prop(e<0?fe.openedBy:fe.closedBy);if(r)return r;if(t.name.length==1){let n=a.indexOf(t.name);if(n>-1&&n%2==(e<0?1:0))return[a[n+e]]}return null}function K1(t){let e=t.type.prop(ew);return e?e(t.node):t}function Vl(t,e,a,r={}){let n=r.maxScanDistance||QG,i=r.brackets||MG,o=Je(t),s=o.resolveInner(e,a);for(let l=s;l;l=l.parent){let u=W1(l.type,a,i);if(u&&l.from<l.to){let c=K1(l);if(c&&(a>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return EG(t,e,a,l,c,u,i)}}return DG(t,e,a,o,s.type,n,i)}function EG(t,e,a,r,n,i,o){let s=r.parent,l={from:n.from,to:n.to},u=0,c=s?.cursor();if(c&&(a<0?c.childBefore(r.from):c.childAfter(r.to)))do if(a<0?c.to<=r.from:c.from>=r.to){if(u==0&&i.indexOf(c.type.name)>-1&&c.from<c.to){let f=K1(c);return{start:l,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(W1(c.type,a,o))u++;else if(W1(c.type,-a,o)){if(u==0){let f=K1(c);return{start:l,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}u--}}while(a<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function DG(t,e,a,r,n,i,o){if(a<0?!e:e==t.doc.length)return null;let s=a<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.indexOf(s);if(l<0||l%2==0!=a>0)return null;let u={from:a<0?e-1:e,to:a>0?e+1:e},c=t.doc.iterRange(e,a>0?t.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=i;){let h=c.value;a<0&&(d+=h.length);let p=e+d*a;for(let m=a>0?0:h.length-1,x=a>0?h.length:-1;m!=x;m+=a){let g=o.indexOf(h[m]);if(!(g<0||r.resolveInner(p+m,1).type!=n))if(g%2==0==a>0)f++;else{if(f==1)return{start:u,end:{from:p+m,to:p+m+1},matched:g>>1==l>>1};f--}}a>0&&(d+=h.length)}return c.done?{start:u,matched:!1}:null}var $G=Object.create(null),$$=[Tt.none];var B$=[],_$=Object.create(null),BG=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])BG[t]=_G($G,e);function j1(t,e){B$.indexOf(t)>-1||(B$.push(t),console.warn(e))}function _G(t,e){let a=[];for(let s of e.split(" ")){let l=[];for(let u of s.split(".")){let c=t[u]||C[u];c?typeof c=="function"?l.length?l=l.map(c):j1(u,`Modifier ${u} used at start of tag`):l.length?j1(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:j1(u,`Unknown highlighting tag ${u}`)}for(let u of l)a.push(u)}if(!a.length)return 0;let r=e.replace(/ /g,"_"),n=r+" "+a.map(s=>s.id),i=_$[n];if(i)return i.id;let o=_$[n]=Tt.define({id:$$.length,name:r,props:[Rn({[r]:a})]});return $$.push(o),o.id}var koe={rtl:nt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:wt.RTL}),ltr:nt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:wt.LTR}),auto:nt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var zG=t=>{let{state:e}=t,a=e.doc.lineAt(e.selection.main.from),r=sw(t.state,a.from);return r.line?NG(t):r.block?qG(t):!1};function ow(t,e){return({state:a,dispatch:r})=>{if(a.readOnly)return!1;let n=t(e,a);return n?(r(a.update(n)),!0):!1}}var NG=ow(UG,0);var XG=ow(aB,0);var qG=ow((t,e)=>aB(t,e,VG(e)),0);function sw(t,e){let a=t.languageDataAt("commentTokens",e,1);return a.length?a[0]:{}}var Oh=50;function ZG(t,{open:e,close:a},r,n){let i=t.sliceDoc(r-Oh,r),o=t.sliceDoc(n,n+Oh),s=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(o)[0].length,u=i.length-s;if(i.slice(u-e.length,u)==e&&o.slice(l,l+a.length)==a)return{open:{pos:r-s,margin:s&&1},close:{pos:n+l,margin:l&&1}};let c,f;n-r<=2*Oh?c=f=t.sliceDoc(r,n):(c=t.sliceDoc(r,r+Oh),f=t.sliceDoc(n-Oh,n));let d=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(f)[0].length,p=f.length-h-a.length;return c.slice(d,d+e.length)==e&&f.slice(p,p+a.length)==a?{open:{pos:r+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:n-h-a.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function VG(t){let e=[];for(let a of t.selection.ranges){let r=t.doc.lineAt(a.from),n=a.to<=r.to?r:t.doc.lineAt(a.to);n.from>r.from&&n.from==a.to&&(n=a.to==r.to+1?r:t.doc.lineAt(a.to-1));let i=e.length-1;i>=0&&e[i].to>r.from?e[i].to=n.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:n.to})}return e}function aB(t,e,a=e.selection.ranges){let r=a.map(i=>sw(e,i.from).block);if(!r.every(i=>i))return null;let n=a.map((i,o)=>ZG(e,r[o],i.from,i.to));if(t!=2&&!n.every(i=>i))return{changes:e.changes(a.map((i,o)=>n[o]?[]:[{from:i.from,insert:r[o].open+" "},{from:i.to,insert:" "+r[o].close}]))};if(t!=1&&n.some(i=>i)){let i=[];for(let o=0,s;o<n.length;o++)if(s=n[o]){let l=r[o],{open:u,close:c}=s;i.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:c.pos-c.margin,to:c.pos+l.close.length})}return{changes:i}}return null}function UG(t,e,a=e.selection.ranges){let r=[],n=-1;e:for(let{from:i,to:o}of a){let s=r.length,l=1e9,u;for(let c=i;c<=o;){let f=e.doc.lineAt(c);if(u==null&&(u=sw(e,f.from).line,!u))continue e;if(f.from>n&&(i==o||o>f.from)){n=f.from;let d=/^\s*/.exec(f.text)[0].length,h=d==f.length,p=f.text.slice(d,d+u.length)==u?d:-1;d<f.text.length&&d<l&&(l=d),r.push({line:f,comment:p,token:u,indent:d,empty:h,single:!1})}c=f.to+1}if(l<1e9)for(let c=s;c<r.length;c++)r[c].indent<r[c].line.text.length&&(r[c].indent=l);r.length==s+1&&(r[s].single=!0)}if(t!=2&&r.some(i=>i.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&i.push({from:s.from+u,insert:l+" "});let o=e.changes(i);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&r.some(i=>i.comment>=0)){let i=[];for(let{line:o,comment:s,token:l}of r)if(s>=0){let u=o.from+s,c=u+l.length;o.text[c-o.from]==" "&&c++,i.push({from:u,to:c})}return{changes:i}}return null}var aw=ar.define(),jG=ar.define(),FG=ce.define(),rB=ce.define({combine(t){return Fd(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,a)=>a},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,a)=>(r,n)=>e(r,n)||a(r,n)})}}),nB=vr.define({create(){return Ul.empty},update(t,e){let a=e.state.facet(rB),r=e.annotation(aw);if(r){let l=An.fromTransaction(e,r.selection),u=r.side,c=u==0?t.undone:t.done;return l?c=zO(c,c.length,a.minDepth,l):c=lB(c,e.startState.selection),new Ul(u==0?r.rest:c,u==0?c:r.rest)}let n=e.annotation(jG);if((n=="full"||n=="before")&&(t=t.isolate()),e.annotation(Bt.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let i=An.fromTransaction(e),o=e.annotation(Bt.time),s=e.annotation(Bt.userEvent);return i?t=t.addChanges(i,o,s,a,e):e.selection&&(t=t.addSelection(e.startState.selection,o,s,a.newGroupDelay)),(n=="full"||n=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Ul(t.done.map(An.fromJSON),t.undone.map(An.fromJSON))}});function iB(t={}){return[nB,rB.of(t),oe.domEventHandlers({beforeinput(e,a){let r=e.inputType=="historyUndo"?oB:e.inputType=="historyRedo"?rw:null;return r?(e.preventDefault(),r(a)):!1}})]}function NO(t,e){return function({state:a,dispatch:r}){if(!e&&a.readOnly)return!1;let n=a.field(nB,!1);if(!n)return!1;let i=n.pop(t,a,e);return i?(r(i),!0):!1}}var oB=NO(0,!1),rw=NO(1,!1),HG=NO(0,!0),GG=NO(1,!0);var An=class t{constructor(e,a,r,n,i){this.changes=e,this.effects=a,this.mapped=r,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,a,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(a=this.mapped)===null||a===void 0?void 0:a.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(e){return new t(e.changes&&Ba.fromJSON(e.changes),[],e.mapped&&Wi.fromJSON(e.mapped),e.startSelection&&E.fromJSON(e.startSelection),e.selectionsAfter.map(E.fromJSON))}static fromTransaction(e,a){let r=an;for(let n of e.startState.facet(FG)){let i=n(e);i.length&&(r=r.concat(i))}return!r.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),r,void 0,a||e.startState.selection,an)}static selection(e){return new t(void 0,an,void 0,void 0,e)}};function zO(t,e,a,r){let n=e+1>a+20?e-a-1:0,i=t.slice(n,e);return i.push(r),i}function YG(t,e){let a=[],r=!1;return t.iterChangedRanges((n,i)=>a.push(n,i)),e.iterChangedRanges((n,i,o,s)=>{for(let l=0;l<a.length;){let u=a[l++],c=a[l++];s>=u&&o<=c&&(r=!0)}}),r}function WG(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((a,r)=>a.empty!=e.ranges[r].empty).length===0}function sB(t,e){return t.length?e.length?t.concat(e):t:e}var an=[],KG=200;function lB(t,e){if(t.length){let a=t[t.length-1],r=a.selectionsAfter.slice(Math.max(0,a.selectionsAfter.length-KG));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),zO(t,t.length-1,1e9,a.setSelAfter(r)))}else return[An.selection([e])]}function JG(t){let e=t[t.length-1],a=t.slice();return a[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),a}function tw(t,e){if(!t.length)return t;let a=t.length,r=an;for(;a;){let n=eY(t[a-1],e,r);if(n.changes&&!n.changes.empty||n.effects.length){let i=t.slice(0,a);return i[a-1]=n,i}else e=n.mapped,a--,r=n.selectionsAfter}return r.length?[An.selection(r)]:an}function eY(t,e,a){let r=sB(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):an,a);if(!t.changes)return An.selection(r);let n=t.changes.map(e),i=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(i):i;return new An(n,Ke.mapEffects(t.effects,e),o,t.startSelection.map(i),r)}var tY=/^(input\.type|delete)($|\.)/,Ul=class t{constructor(e,a,r=0,n=void 0){this.done=e,this.undone=a,this.prevTime=r,this.prevUserEvent=n}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(e,a,r,n,i){let o=this.done,s=o[o.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!r||tY.test(r))&&(!s.selectionsAfter.length&&a-this.prevTime<n.newGroupDelay&&n.joinToEvent(i,YG(s.changes,e.changes))||r=="input.type.compose")?o=zO(o,o.length-1,n.minDepth,new An(e.changes.compose(s.changes),sB(Ke.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,an)):o=zO(o,o.length,n.minDepth,e),new t(o,an,a,r)}addSelection(e,a,r,n){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:an;return i.length>0&&a-this.prevTime<n&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&WG(i[i.length-1],e)?this:new t(lB(this.done,e),this.undone,a,r)}addMapping(e){return new t(tw(this.done,e),tw(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,a,r){let n=e==0?this.done:this.undone;if(n.length==0)return null;let i=n[n.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):a.selection);if(r&&i.selectionsAfter.length)return a.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:aw.of({side:e,rest:JG(n),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let s=n.length==1?an:n.slice(0,n.length-1);return i.mapped&&(s=tw(s,i.mapped)),a.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:aw.of({side:e,rest:s,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};Ul.empty=new Ul(an,an);var uB=[{key:"Mod-z",run:oB,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:rw,preventDefault:!0},{linux:"Ctrl-Shift-z",run:rw,preventDefault:!0},{key:"Mod-u",run:HG,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:GG,preventDefault:!0}];function af(t,e){return E.create(t.ranges.map(e),t.mainIndex)}function Qn(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Mn({state:t,dispatch:e},a){let r=af(t.selection,a);return r.eq(t.selection,!0)?!1:(e(Qn(t,r)),!0)}function XO(t,e){return E.cursor(e?t.to:t.from)}function cB(t,e){return Mn(t,a=>a.empty?t.moveByChar(a,e):XO(a,e))}function Sa(t){return t.textDirectionAt(t.state.selection.main.head)==wt.LTR}var fB=t=>cB(t,!Sa(t)),dB=t=>cB(t,Sa(t));function hB(t,e){return Mn(t,a=>a.empty?t.moveByGroup(a,e):XO(a,e))}var aY=t=>hB(t,!Sa(t)),rY=t=>hB(t,Sa(t));var Qoe=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function nY(t,e,a){if(e.type.prop(a))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function qO(t,e,a){let r=Je(t).resolveInner(e.head),n=a?fe.closedBy:fe.openedBy;for(let l=e.head;;){let u=a?r.childAfter(l):r.childBefore(l);if(!u)break;nY(t,u,n)?r=u:l=a?u.to:u.from}let i=r.type.prop(n),o,s;return i&&(o=a?Vl(t,r.from,1):Vl(t,r.to,-1))&&o.matched?s=a?o.end.to:o.end.from:s=a?r.to:r.from,E.cursor(s,a?-1:1)}var iY=t=>Mn(t,e=>qO(t.state,e,!Sa(t))),oY=t=>Mn(t,e=>qO(t.state,e,Sa(t)));function pB(t,e){return Mn(t,a=>{if(!a.empty)return XO(a,e);let r=t.moveVertically(a,e);return r.head!=a.head?r:t.moveToLineBoundary(a,e)})}var mB=t=>pB(t,!1),gB=t=>pB(t,!0);function OB(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,a=0,r=0,n;if(e){for(let i of t.state.facet(oe.scrollMargins)){let o=i(t);o?.top&&(a=Math.max(o?.top,a)),o?.bottom&&(r=Math.max(o?.bottom,r))}n=t.scrollDOM.clientHeight-a-r}else n=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:a,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,n-5)}}function xB(t,e){let a=OB(t),{state:r}=t,n=af(r.selection,o=>o.empty?t.moveVertically(o,e,a.height):XO(o,e));if(n.eq(r.selection))return!1;let i;if(a.selfScroll){let o=t.coordsAtPos(r.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),l=s.top+a.marginTop,u=s.bottom-a.marginBottom;o&&o.top>l&&o.bottom<u&&(i=oe.scrollIntoView(n.main.head,{y:"start",yMargin:o.top-l}))}return t.dispatch(Qn(r,n),{effects:i}),!0}var H$=t=>xB(t,!1),nw=t=>xB(t,!0);function Ts(t,e,a){let r=t.lineBlockAt(e.head),n=t.moveToLineBoundary(e,a);if(n.head==e.head&&n.head!=(a?r.to:r.from)&&(n=t.moveToLineBoundary(e,a,!1)),!a&&n.head==r.from&&r.length){let i=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&e.head!=r.from+i&&(n=E.cursor(r.from+i))}return n}var sY=t=>Mn(t,e=>Ts(t,e,!0)),lY=t=>Mn(t,e=>Ts(t,e,!1)),uY=t=>Mn(t,e=>Ts(t,e,!Sa(t))),cY=t=>Mn(t,e=>Ts(t,e,Sa(t))),fY=t=>Mn(t,e=>t.moveToLineBoundary(e,!1,!1)),dY=t=>Mn(t,e=>t.moveToLineBoundary(e,!0,!1));function hY(t,e,a){let r=!1,n=af(t.selection,i=>{let o=Vl(t,i.head,-1)||Vl(t,i.head,1)||i.head>0&&Vl(t,i.head-1,1)||i.head<t.doc.length&&Vl(t,i.head+1,-1);if(!o||!o.end)return i;r=!0;let s=o.start.from==i.head?o.end.to:o.end.from;return a?E.range(i.anchor,s):E.cursor(s)});return r?(e(Qn(t,n)),!0):!1}var pY=({state:t,dispatch:e})=>hY(t,e,!1);function rn(t,e,a){let r=af(t.state.selection,n=>{n.undirectional&&n.head>=n.anchor!=e&&(n=E.range(n.head,n.anchor));let i=a(n);return E.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return r.eq(t.state.selection)?!1:(t.dispatch(Qn(t.state,r)),!0)}function yB(t,e){return rn(t,e,a=>t.moveByChar(a,e))}var bB=t=>yB(t,!Sa(t)),vB=t=>yB(t,Sa(t));function SB(t,e){return rn(t,e,a=>t.moveByGroup(a,e))}var mY=t=>SB(t,!Sa(t)),gY=t=>SB(t,Sa(t));var OY=t=>{let e=!Sa(t);return rn(t,e,a=>qO(t.state,a,e))},xY=t=>{let e=Sa(t);return rn(t,e,a=>qO(t.state,a,e))};function wB(t,e){return rn(t,e,a=>t.moveVertically(a,e))}var CB=t=>wB(t,!1),kB=t=>wB(t,!0);function LB(t,e){return rn(t,e,a=>t.moveVertically(a,e,OB(t).height))}var G$=t=>LB(t,!1),Y$=t=>LB(t,!0),yY=t=>rn(t,!0,e=>Ts(t,e,!0)),bY=t=>rn(t,!1,e=>Ts(t,e,!1)),vY=t=>{let e=!Sa(t);return rn(t,e,a=>Ts(t,a,e))},SY=t=>{let e=Sa(t);return rn(t,e,a=>Ts(t,a,e))},wY=t=>rn(t,!1,e=>E.cursor(t.lineBlockAt(e.head).from)),CY=t=>rn(t,!0,e=>E.cursor(t.lineBlockAt(e.head).to)),W$=({state:t,dispatch:e})=>(e(Qn(t,{anchor:0})),!0),K$=({state:t,dispatch:e})=>(e(Qn(t,{anchor:t.doc.length})),!0),J$=({state:t,dispatch:e})=>(e(Qn(t,{anchor:t.selection.main.anchor,head:0})),!0),eB=({state:t,dispatch:e})=>(e(Qn(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),kY=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),LY=({state:t,dispatch:e})=>{let a=ZO(t).map(({from:r,to:n})=>E.undirectionalRange(r,Math.min(n+1,t.doc.length)));return e(t.update({selection:E.create(a),userEvent:"select"})),!0},TY=({state:t,dispatch:e})=>{let a=af(t.selection,r=>{let n=Je(t),i=n.resolveStack(r.from,1);if(r.empty){let o=n.resolveStack(r.from,-1);o.node.from>=i.node.from&&o.node.to<=i.node.to&&(i=o)}for(let o=i;o;o=o.next){let{node:s}=o;if((s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from)&&o.next)return E.undirectionalRange(s.from,s.to)}return r});return a.eq(t.selection)?!1:(e(Qn(t,a)),!0)};function TB(t,e){let{state:a}=t,r=a.selection,n=a.selection.ranges.slice();for(let i of a.selection.ranges){let o=a.doc.lineAt(i.head);if(e?o.to<t.state.doc.length:o.from>0)for(let s=i;;){let l=t.moveVertically(s,e);if(l.head<o.from||l.head>o.to){n.some(u=>u.head==l.head)||n.push(l);break}else{if(l.head==s.head)break;s=l}}}return n.length==r.ranges.length?!1:(t.dispatch(Qn(a,E.create(n,n.length-1))),!0)}var PY=t=>TB(t,!1),RY=t=>TB(t,!0),IY=({state:t,dispatch:e})=>{let a=t.selection,r=null;return a.ranges.length>1?r=E.create([a.main]):a.main.empty||(r=E.create([E.cursor(a.main.head)])),r?(e(Qn(t,r)),!0):!1};function xh(t,e){if(t.state.readOnly)return!1;let a="delete.selection",{state:r}=t,n=r.changeByRange(i=>{let{from:o,to:s}=i;if(o==s){let l=e(i);l<o?(a="delete.backward",l=_O(t,l,!1)):l>o&&(a="delete.forward",l=_O(t,l,!0)),o=Math.min(o,l),s=Math.max(s,l)}else o=_O(t,o,!1),s=_O(t,s,!0);return o==s?{range:i}:{changes:{from:o,to:s},range:E.cursor(o,o<i.head?-1:1)}});return n.changes.empty?!1:(t.dispatch(r.update(n,{scrollIntoView:!0,userEvent:a,effects:a=="delete.selection"?oe.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function _O(t,e,a){if(t instanceof oe)for(let r of t.state.facet(oe.atomicRanges).map(n=>n(t)))r.between(e,e,(n,i)=>{n<e&&i>e&&(e=a?i:n)});return e}var PB=(t,e,a)=>xh(t,r=>{let n=r.from,{state:i}=t,o=i.doc.lineAt(n),s,l;if(a&&!e&&n>o.from&&n<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,n-o.from))){if(s[s.length-1]==" ")return n-1;let u=Sr(s,i.tabSize),c=u%mh(i)||mh(i);for(let f=0;f<c&&s[s.length-1-f]==" ";f++)n--;l=n}else l=Jt(o.text,n-o.from,e,e)+o.from,l==n&&o.number!=(e?i.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,n-o.from))&&(l=Jt(o.text,l-o.from,!1,!1)+o.from);return l}),iw=t=>PB(t,!1,!0);var RB=t=>PB(t,!0,!1),IB=(t,e)=>xh(t,a=>{let r=a.head,{state:n}=t,i=n.doc.lineAt(r),o=n.charCategorizer(r);for(let s=null;;){if(r==(e?i.to:i.from)){r==a.head&&i.number!=(e?n.doc.lines:1)&&(r+=e?1:-1);break}let l=Jt(i.text,r-i.from,e)+i.from,u=i.text.slice(Math.min(r,l)-i.from,Math.max(r,l)-i.from),c=o(u);if(s!=null&&c!=s)break;(u!=" "||r!=a.head)&&(s=c),r=l}return r}),AB=t=>IB(t,!1),AY=t=>IB(t,!0);var QY=t=>xh(t,e=>{let a=t.lineBlockAt(e.head).to;return e.head<a?a:Math.min(t.state.doc.length,e.head+1)});var MY=t=>xh(t,e=>{let a=t.moveToLineBoundary(e,!1).head;return e.head>a?a:Math.max(0,e.head-1)}),EY=t=>xh(t,e=>{let a=t.moveToLineBoundary(e,!0).head;return e.head<a?a:Math.min(t.state.doc.length,e.head+1)});var DY=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:Le.of(["",""])},range:E.cursor(r.from)}));return e(t.update(a,{scrollIntoView:!0,userEvent:"input"})),!0},$Y=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let n=r.from,i=t.doc.lineAt(n),o=n==i.from?n-1:Jt(i.text,n-i.from,!1)+i.from,s=n==i.to?n+1:Jt(i.text,n-i.from,!0)+i.from;return{changes:{from:o,to:s,insert:t.doc.slice(n,s).append(t.doc.slice(o,n))},range:E.cursor(s)}});return a.changes.empty?!1:(e(t.update(a,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function ZO(t){let e=[],a=-1;for(let r of t.selection.ranges){let n=t.doc.lineAt(r.from),i=t.doc.lineAt(r.to);if(!r.empty&&r.to==i.from&&(i=t.doc.lineAt(r.to-1)),a>=n.number){let o=e[e.length-1];o.to=i.to,o.ranges.push(r)}else e.push({from:n.from,to:i.to,ranges:[r]});a=i.number+1}return e}function QB(t,e,a){if(t.readOnly)return!1;let r=[],n=[];for(let i of ZO(t)){if(a?i.to==t.doc.length:i.from==0)continue;let o=t.doc.lineAt(a?i.to+1:i.from-1),s=o.length+1;if(a){r.push({from:i.to,to:o.to},{from:i.from,insert:o.text+t.lineBreak});for(let l of i.ranges)n.push(E.range(Math.min(t.doc.length,l.anchor+s),Math.min(t.doc.length,l.head+s)))}else{r.push({from:o.from,to:i.from},{from:i.to,insert:t.lineBreak+o.text});for(let l of i.ranges)n.push(E.range(l.anchor-s,l.head-s))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:E.create(n,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}var BY=({state:t,dispatch:e})=>QB(t,e,!1),_Y=({state:t,dispatch:e})=>QB(t,e,!0);function MB(t,e,a){if(t.readOnly)return!1;let r=[];for(let i of ZO(t))a?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});let n=t.changes(r);return e(t.update({changes:n,selection:t.selection.map(n,a?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}var zY=({state:t,dispatch:e})=>MB(t,e,!1),NY=({state:t,dispatch:e})=>MB(t,e,!0),XY=t=>{if(t.state.readOnly)return!1;let{state:e}=t,a=e.changes(ZO(e).map(({from:n,to:i})=>(n>0?n--:i<e.doc.length&&i++,{from:n,to:i}))),r=af(e.selection,n=>{let i;if(t.lineWrapping){let o=t.lineBlockAt(n.head),s=t.coordsAtPos(n.head,n.assoc||1);s&&(i=o.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(n,!0,i)}).map(a);return t.dispatch({changes:a,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function qY(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let a=Je(t).resolveInner(e),r=a.childBefore(e),n=a.childAfter(e),i;return r&&n&&r.to<=e&&n.from>=e&&(i=r.type.prop(fe.closedBy))&&i.indexOf(n.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(n.from).from&&!/\S/.test(t.sliceDoc(r.to,n.from))?{from:r.to,to:n.from}:null}var tB=EB(!1),ZY=EB(!0);function EB(t){return({state:e,dispatch:a})=>{if(e.readOnly)return!1;let r=e.changeByRange(n=>{let{from:i,to:o}=n,s=e.doc.lineAt(i),l=!t&&i==o&&qY(e,i);t&&(i=o=(o<=s.to?s:e.doc.lineAt(o)).to);let u=new Zl(e,{simulateBreak:i,simulateDoubleBreak:!!l}),c=J1(u,i);for(c==null&&(c=Sr(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));o<s.to&&/\s/.test(s.text[o-s.from]);)o++;l?{from:i,to:o}=l:i>s.from&&i<s.from+100&&!/\S/.test(s.text.slice(0,i))&&(i=s.from);let f=["",gh(e,c)];return l&&f.push(gh(e,u.lineIndent(s.from,-1))),{changes:{from:i,to:o,insert:Le.of(f)},range:E.cursor(i+1+f[1].length)}});return a(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function lw(t,e){let a=-1;return t.changeByRange(r=>{let n=[];for(let o=r.from;o<=r.to;){let s=t.doc.lineAt(o);s.number>a&&(r.empty||r.to>s.from)&&(e(s,n,r),a=s.number),o=s.to+1}let i=t.changes(n);return{changes:n,range:E.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}})}var VY=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=Object.create(null),r=new Zl(t,{overrideIndentation:i=>{let o=a[i];return o??-1}}),n=lw(t,(i,o,s)=>{let l=J1(r,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let u=/^\s*/.exec(i.text)[0],c=gh(t,l);(u!=c||s.from<i.from+u.length)&&(a[i.from]=l,o.push({from:i.from,to:i.from+u.length,insert:c}))});return n.changes.empty||e(t.update(n,{userEvent:"indent"})),!0},UY=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(lw(t,(a,r)=>{r.push({from:a.from,insert:t.facet(Ls)})}),{userEvent:"input.indent"})),!0),jY=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(lw(t,(a,r)=>{let n=/^\s*/.exec(a.text)[0];if(!n)return;let i=Sr(n,t.tabSize),o=0,s=gh(t,Math.max(0,i-mh(t)));for(;o<n.length&&o<s.length&&n.charCodeAt(o)==s.charCodeAt(o);)o++;r.push({from:a.from+o,to:a.from+n.length,insert:s.slice(o)})}),{userEvent:"delete.dedent"})),!0),FY=t=>(t.setTabFocusMode(),!0);var HY=[{key:"Ctrl-b",run:fB,shift:bB,preventDefault:!0},{key:"Ctrl-f",run:dB,shift:vB},{key:"Ctrl-p",run:mB,shift:CB},{key:"Ctrl-n",run:gB,shift:kB},{key:"Ctrl-a",run:fY,shift:wY},{key:"Ctrl-e",run:dY,shift:CY},{key:"Ctrl-d",run:RB},{key:"Ctrl-h",run:iw},{key:"Ctrl-k",run:QY},{key:"Ctrl-Alt-h",run:AB},{key:"Ctrl-o",run:DY},{key:"Ctrl-t",run:$Y},{key:"Ctrl-v",run:nw}],GY=[{key:"ArrowLeft",run:fB,shift:bB,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:aY,shift:mY,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:uY,shift:vY,preventDefault:!0},{key:"ArrowRight",run:dB,shift:vB,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:rY,shift:gY,preventDefault:!0},{mac:"Cmd-ArrowRight",run:cY,shift:SY,preventDefault:!0},{key:"ArrowUp",run:mB,shift:CB,preventDefault:!0},{mac:"Cmd-ArrowUp",run:W$,shift:J$},{mac:"Ctrl-ArrowUp",run:H$,shift:G$},{key:"ArrowDown",run:gB,shift:kB,preventDefault:!0},{mac:"Cmd-ArrowDown",run:K$,shift:eB},{mac:"Ctrl-ArrowDown",run:nw,shift:Y$},{key:"PageUp",run:H$,shift:G$},{key:"PageDown",run:nw,shift:Y$},{key:"Home",run:lY,shift:bY,preventDefault:!0},{key:"Mod-Home",run:W$,shift:J$},{key:"End",run:sY,shift:yY,preventDefault:!0},{key:"Mod-End",run:K$,shift:eB},{key:"Enter",run:tB,shift:tB},{key:"Mod-a",run:kY},{key:"Backspace",run:iw,shift:iw,preventDefault:!0},{key:"Delete",run:RB,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:AB,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:AY,preventDefault:!0},{mac:"Mod-Backspace",run:MY,preventDefault:!0},{mac:"Mod-Delete",run:EY,preventDefault:!0}].concat(HY.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),DB=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:iY,shift:OY},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:oY,shift:xY},{key:"Alt-ArrowUp",run:BY},{key:"Shift-Alt-ArrowUp",run:zY},{key:"Alt-ArrowDown",run:_Y},{key:"Shift-Alt-ArrowDown",run:NY},{key:"Mod-Alt-ArrowUp",run:PY},{key:"Mod-Alt-ArrowDown",run:RY},{key:"Escape",run:IY},{key:"Mod-Enter",run:ZY},{key:"Alt-l",mac:"Ctrl-l",run:LY},{key:"Mod-i",run:TY,preventDefault:!0},{key:"Mod-[",run:jY},{key:"Mod-]",run:UY},{key:"Mod-Alt-\\",run:VY},{key:"Shift-Mod-k",run:XY},{key:"Shift-Mod-\\",run:pY},{key:"Mod-/",run:zG},{key:"Alt-A",mac:"Ctrl-A",run:XG},{key:"Ctrl-m",mac:"Shift-Alt-m",run:FY}].concat(GY);var VO=class{constructor(e,a,r,n){this.state=e,this.pos=a,this.explicit=r,this.view=n,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let a=Je(this.state).resolveInner(this.pos,-1);for(;a&&e.indexOf(a.name)<0;)a=a.parent;return a?{from:a.from,to:this.pos,text:this.state.sliceDoc(a.from,this.pos),type:a.type}:null}matchBefore(e){let a=this.state.doc.lineAt(this.pos),r=Math.max(a.from,this.pos-250),n=a.text.slice(r-a.from,this.pos-a.from),i=n.search(WY(e,!1));return i<0?null:{from:r+i,to:this.pos,text:n.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,a,r){e=="abort"&&this.abortListeners&&(this.abortListeners.push(a),r&&r.onDocChange&&(this.abortOnDocChange=!0))}};function $B(t){let e=Object.keys(t).join(""),a=/\w/.test(e);return a&&(e=e.replace(/\w/g,"")),`[${a?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function YY(t){let e=Object.create(null),a=Object.create(null);for(let{label:n}of t){e[n[0]]=!0;for(let i=1;i<n.length;i++)a[n[i]]=!0}let r=$B(e)+$B(a)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function _B(t){let e=t.map(n=>typeof n=="string"?{label:n}:n),[a,r]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:YY(e);return n=>{let i=n.matchBefore(r);return i||n.explicit?{from:i?i.from:n.pos,options:e,validFor:a}:null}}function zB(t,e){return a=>{for(let r=Je(a.state).resolveInner(a.pos,-1);r;r=r.parent){if(t.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(a)}}function WY(t,e){var a;let{source:r}=t,n=e&&r[0]!="^",i=r[r.length-1]!="$";return!n&&!i?t:new RegExp(`${n?"^":""}(?:${r})${i?"$":""}`,(a=t.flags)!==null&&a!==void 0?a:t.ignoreCase?"i":"")}var KY=ar.define();var Noe=typeof navigator=="object"&&/Win/.test(navigator.platform);var JY=oe.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),uw=class{constructor(e,a,r,n){this.field=e,this.line=a,this.from=r,this.to=n}},cw=class t{constructor(e,a,r){this.field=e,this.from=a,this.to=r}map(e){let a=e.mapPos(this.from,-1,ha.TrackDel),r=e.mapPos(this.to,1,ha.TrackDel);return a==null||r==null?null:new t(this.field,a,r)}},fw=class t{constructor(e,a){this.lines=e,this.fieldPositions=a}instantiate(e,a){let r=[],n=[a],i=e.doc.lineAt(a),o=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(r.length){let u=o,c=/^\t*/.exec(l)[0].length;for(let f=0;f<c;f++)u+=e.facet(Ls);n.push(a+u.length-c),l=u+l.slice(c)}r.push(l),a+=l.length+1}let s=this.fieldPositions.map(l=>new cw(l.field,n[l.line]+l.from,n[l.line]+l.to));return{text:r,ranges:s}}static parse(e){let a=[],r=[],n=[],i;for(let o of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let s=i[1]?+i[1]:null,l=i[2]||i[3]||"",u=-1;s===0&&(s=1e9);let c=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f<a.length;f++)(s!=null?a[f].seq==s:c&&a[f].name==c)&&(u=f);if(u<0){let f=0;for(;f<a.length&&(s==null||a[f].seq!=null&&a[f].seq<s);)f++;a.splice(f,0,{seq:s,name:c}),u=f;for(let d of n)d.field>=u&&d.field++}for(let f of n)if(f.line==r.length&&f.from>i.index){let d=i[2]?3+(i[1]||"").length:2;f.from-=d,f.to-=d}n.push(new uw(u,r.length,i.index,i.index+c.length)),o=o.slice(0,i.index)+l+o.slice(i.index+i[0].length)}o=o.replace(/\\([{}])/g,(s,l,u)=>{for(let c of n)c.line==r.length&&c.from>u&&(c.from--,c.to--);return l}),r.push(o)}return new t(r,n)}},e7=nt.widget({widget:new class extends to{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),t7=nt.mark({class:"cm-snippetField"}),rf=class t{constructor(e,a){this.ranges=e,this.active=a,this.deco=nt.set(e.map(r=>(r.from==r.to?e7:t7).range(r.from,r.to)),!0)}map(e){let a=[];for(let r of this.ranges){let n=r.map(e);if(!n)return null;a.push(n)}return new t(a,this.active)}selectionInsideField(e){return e.ranges.every(a=>this.ranges.some(r=>r.field==this.active&&r.from<=a.from&&r.to>=a.to))}},bh=Ke.define({map(t,e){return t&&t.map(e)}}),a7=Ke.define(),yh=vr.define({create(){return null},update(t,e){for(let a of e.effects){if(a.is(bh))return a.value;if(a.is(a7)&&t)return new rf(t.ranges,a.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>oe.decorations.from(t,e=>e?e.deco:nt.none)});function dw(t,e){return E.create(t.filter(a=>a.field==e).map(a=>E.range(a.from,a.to)))}function r7(t){let e=fw.parse(t);return(a,r,n,i)=>{let{text:o,ranges:s}=e.instantiate(a.state,n),{main:l}=a.state.selection,u={changes:{from:n,to:i==l.from?l.to:i,insert:Le.of(o)},scrollIntoView:!0,annotations:r?[KY.of(r),Bt.userEvent.of("input.complete")]:void 0};if(s.length&&(u.selection=dw(s,0)),s.some(c=>c.field>0)){let c=new rf(s,0),f=u.effects=[bh.of(c)];a.state.field(yh,!1)===void 0&&f.push(Ke.appendConfig.of([yh,l7,u7,JY]))}a.dispatch(a.state.update(u))}}function NB(t){return({state:e,dispatch:a})=>{let r=e.field(yh,!1);if(!r||t<0&&r.active==0)return!1;let n=r.active+t,i=t>0&&!r.ranges.some(o=>o.field==n+t);return a(e.update({selection:dw(r.ranges,n),effects:bh.of(i?null:new rf(r.ranges,n)),scrollIntoView:!0})),!0}}var n7=({state:t,dispatch:e})=>t.field(yh,!1)?(e(t.update({effects:bh.of(null)})),!0):!1,i7=NB(1),o7=NB(-1);var s7=[{key:"Tab",run:i7,shift:o7},{key:"Escape",run:n7}],BB=ce.define({combine(t){return t.length?t[0]:s7}}),l7=mi.highest(zl.compute([BB],t=>t.facet(BB)));function Xa(t,e){return{...e,apply:r7(t)}}var u7=oe.domEventHandlers({mousedown(t,e){let a=e.state.field(yh,!1),r;if(!a||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let n=a.ranges.find(i=>i.from<=r&&i.to>=r);return!n||n.field==a.active?!1:(e.dispatch({selection:dw(a.ranges,n.field),effects:bh.of(a.ranges.some(i=>i.field>n.field)?new rf(a.ranges,n.field):null),scrollIntoView:!0}),!0)}});var XB=new class extends Gr{};XB.startSide=1;XB.endSide=-1;var Xoe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent);var FO=class t{static create(e,a,r,n,i){let o=n+(n<<8)+e+(a<<4)|0;return new t(e,a,r,o,i,[],[])}constructor(e,a,r,n,i,o,s){this.type=e,this.value=a,this.from=r,this.hash=n,this.end=i,this.children=o,this.positions=s,this.hashProp=[[fe.contextHash,n]]}addChild(e,a){e.prop(fe.contextHash)!=this.hash&&(e=new $e(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(a)}toTree(e,a=this.end){let r=this.children.length-1;return r>=0&&(a=Math.max(a,this.positions[r]+this.children[r].length+this.from)),new $e(e.types[this.type],this.children,this.positions,a-this.from).balance({makeTree:(n,i,o)=>new $e(Tt.none,n,i,o,this.hashProp)})}},_;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(_||(_={}));var mw=class{constructor(e,a){this.start=e,this.content=a,this.marks=[],this.parsers=[]}},gw=class{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return Sh(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,a=0,r=0){for(let n=a;n<e;n++)r+=this.text.charCodeAt(n)==9?4-r%4:1;return r}findColumn(e){let a=0;for(let r=0;a<this.text.length&&r<e;a++)r+=this.text.charCodeAt(a)==9?4-r%4:1;return a}scrub(){if(!this.baseIndent)return this.text;let e="";for(let a=0;a<this.basePos;a++)e+=" ";return e+this.text.slice(this.basePos)}};function qB(t,e,a){if(a.pos==a.text.length||t!=e.block&&a.indent>=e.stack[a.depth+1].value+a.baseIndent)return!0;if(a.indent>=a.baseIndent+4)return!1;let r=(t.type==_.OrderedList?Pw:Tw)(a,e,!1);return r>0&&(t.type!=_.BulletList||Lw(a,e,!1)<0)&&a.text.charCodeAt(a.pos+r-1)==t.value}var JB={[_.Blockquote](t,e,a){return a.next!=62?!1:(a.markers.push(Ee(_.QuoteMark,e.lineStart+a.pos,e.lineStart+a.pos+1)),a.moveBase(a.pos+(nn(a.text.charCodeAt(a.pos+1))?2:1)),t.end=e.lineStart+a.text.length,!0)},[_.ListItem](t,e,a){return a.indent<a.baseIndent+t.value&&a.next>-1?!1:(a.moveBaseColumn(a.baseIndent+t.value),!0)},[_.OrderedList]:qB,[_.BulletList]:qB,[_.Document](){return!0}};function nn(t){return t==32||t==9||t==10||t==13}function Sh(t,e=0){for(;e<t.length&&nn(t.charCodeAt(e));)e++;return e}function ZB(t,e,a){for(;e>a&&nn(t.charCodeAt(e-1));)e--;return e}function e_(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let a=e;a<t.text.length;a++)if(t.text.charCodeAt(a)==96)return-1}return e}function t_(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function Lw(t,e,a){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let r=1;for(let n=t.pos+1;n<t.text.length;n++){let i=t.text.charCodeAt(n);if(i==t.next)r++;else if(!nn(i))return-1}return a&&t.next==45&&n_(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(l_.SetextHeading)>-1||r<3?-1:1}function a_(t,e){for(let a=t.stack.length-1;a>=0;a--)if(t.stack[a].type==e)return!0;return!1}function Tw(t,e,a){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||nn(t.text.charCodeAt(t.pos+1)))&&(!a||a_(e,_.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function Pw(t,e,a){let r=t.pos,n=t.next;for(;n>=48&&n<=57;){r++;if(r==t.text.length)return-1;n=t.text.charCodeAt(r)}return r==t.pos||r>t.pos+9||n!=46&&n!=41||r<t.text.length-1&&!nn(t.text.charCodeAt(r+1))||a&&!a_(e,_.OrderedList)&&(t.skipSpace(r+1)==t.text.length||r>t.pos+1||t.next!=49)?-1:r+1-t.pos}function r_(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let a=e-t.pos;return a>6?-1:a}function n_(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let a=e;for(;e<t.text.length&&nn(t.text.charCodeAt(e));)e++;return e==t.text.length?a:-1}var Ow=/^[ \t]*$/,i_=/-->/,o_=/\?>/,xw=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,i_],[/^\s*<\?/,o_],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,Ow],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,Ow]];function s_(t,e,a){if(t.next!=60)return-1;let r=t.text.slice(t.pos);for(let n=0,i=xw.length-(a?1:0);n<i;n++)if(xw[n][0].test(r))return n;return-1}function VB(t,e){let a=t.countIndent(e,t.pos,t.indent),r=t.skipSpace(e),n=t.countIndent(r,e,a);return n>=a+5||r==t.text.length?a+1:n}function Ps(t,e,a){let r=t.length-1;r>=0&&t[r].to==e&&t[r].type==_.CodeText?t[r].to=a:t.push(Ee(_.CodeText,e,a))}var UO={LinkReference:void 0,IndentedCode(t,e){let a=e.baseIndent+4;if(e.indent<a)return!1;let r=e.findColumn(a),n=t.lineStart+r,i=t.lineStart+e.text.length,o=[],s=[];for(Ps(o,n,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){Ps(s,t.lineStart-1,t.lineStart);for(let l of e.markers)s.push(l)}else{if(e.indent<a)break;{if(s.length){for(let u of s)u.type==_.CodeText?Ps(o,u.from,u.to):o.push(u);s=[]}Ps(o,t.lineStart-1,t.lineStart);for(let u of e.markers)o.push(u);i=t.lineStart+e.text.length;let l=t.lineStart+e.findColumn(e.baseIndent+4);l<i&&Ps(o,l,i)}}return s.length&&(s=s.filter(l=>l.type!=_.CodeText),s.length&&(e.markers=s.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-n).finish(_.CodeBlock,i-n),n),!0},FencedCode(t,e){let a=e_(e);if(a<0)return!1;let r=t.lineStart+e.pos,n=e.next,i=a-e.pos,o=e.skipSpace(a),s=ZB(e.text,e.text.length,o),l=[Ee(_.CodeMark,r,r+i)];o<s&&l.push(Ee(_.CodeInfo,t.lineStart+o,t.lineStart+s));for(let u=!0,c=!0,f=!1;t.nextLine()&&e.depth>=t.stack.length;u=!1){let d=e.pos;if(e.indent-e.baseIndent<4)for(;d<e.text.length&&e.text.charCodeAt(d)==n;)d++;if(d-e.pos>=i&&e.skipSpace(d)==e.text.length){for(let h of e.markers)l.push(h);c&&f&&Ps(l,t.lineStart-1,t.lineStart),l.push(Ee(_.CodeMark,t.lineStart+e.pos,t.lineStart+d)),t.nextLine();break}else{f=!0,u||(Ps(l,t.lineStart-1,t.lineStart),c=!1);for(let m of e.markers)l.push(m);let h=t.lineStart+e.basePos,p=t.lineStart+e.text.length;h<p&&(Ps(l,h,p),c=!1)}}return t.addNode(t.buffer.writeElements(l,-r).finish(_.FencedCode,t.prevLineEnd()-r),r),!0},Blockquote(t,e){let a=t_(e);return a<0?!1:(t.startContext(_.Blockquote,e.pos),t.addNode(_.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+a),null)},HorizontalRule(t,e){if(Lw(e,t,!1)<0)return!1;let a=t.lineStart+e.pos;return t.nextLine(),t.addNode(_.HorizontalRule,a),!0},BulletList(t,e){let a=Tw(e,t,!1);if(a<0)return!1;t.block.type!=_.BulletList&&t.startContext(_.BulletList,e.basePos,e.next);let r=VB(e,e.pos+1);return t.startContext(_.ListItem,e.basePos,r-e.baseIndent),t.addNode(_.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+a),e.moveBaseColumn(r),null},OrderedList(t,e){let a=Pw(e,t,!1);if(a<0)return!1;t.block.type!=_.OrderedList&&t.startContext(_.OrderedList,e.basePos,e.text.charCodeAt(e.pos+a-1));let r=VB(e,e.pos+a);return t.startContext(_.ListItem,e.basePos,r-e.baseIndent),t.addNode(_.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+a),e.moveBaseColumn(r),null},ATXHeading(t,e){let a=r_(e);if(a<0)return!1;let r=e.pos,n=t.lineStart+r,i=ZB(e.text,e.text.length,r),o=i;for(;o>r&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==r||!nn(e.text.charCodeAt(o-1)))&&(o=e.text.length);let s=t.buffer.write(_.HeaderMark,0,a).writeElements(t.parser.parseInline(e.text.slice(r+a+1,o),n+a+1),-n);o<e.text.length&&s.write(_.HeaderMark,o-r,i-r);let l=s.finish(_.ATXHeading1-1+a,e.text.length-r);return t.nextLine(),t.addNode(l,n),!0},HTMLBlock(t,e){let a=s_(e,t,!1);if(a<0)return!1;let r=t.lineStart+e.pos,n=xw[a][1],i=[],o=n!=Ow;for(;!n.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let u of e.markers)i.push(u)}o&&t.nextLine();let s=n==i_?_.CommentBlock:n==o_?_.ProcessingInstructionBlock:_.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-r).finish(s,l-r),r),!0},SetextHeading:void 0},yw=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,a,r){if(this.stage==-1)return!1;let n=r.content+`
|
|
59
|
+
`+a.scrub(),i=this.advance(n);return i>-1&&i<n.length?this.complete(e,r,i):!1}finish(e,a){return(this.stage==2||this.stage==3)&&Sh(a.content,this.pos)==a.content.length?this.complete(e,a,a.content.length):!1}complete(e,a,r){return e.addLeafElement(a,Ee(_.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(m_(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Ee(_.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(h_(e,Sh(e,this.pos),this.start)))return-1}else if(this.stage==2){let a=Sh(e,this.pos),r=0;if(a>this.pos){let n=p_(e,a,this.start);if(n){let i=hw(e,n.to-this.start);i>0&&(this.nextStage(n),r=i)}}return r||(r=hw(e,this.pos)),r>0&&r<e.length?r:-1}else return hw(e,this.pos)}}};function hw(t,e){for(;e<t.length;e++){let a=t.charCodeAt(e);if(a==10)break;if(!nn(a))return-1}return e}var bw=class{nextLine(e,a,r){let n=a.depth<e.stack.length?-1:n_(a),i=a.next;if(n<0)return!1;let o=Ee(_.HeaderMark,e.lineStart+a.pos,e.lineStart+n);return e.nextLine(),e.addLeafElement(r,Ee(i==61?_.SetextHeading1:_.SetextHeading2,r.start,e.prevLineEnd(),[...e.parser.parseInline(r.content,r.start),o])),!0}finish(){return!1}},l_={LinkReference(t,e){return e.content.charCodeAt(0)==91?new yw(e):null},SetextHeading(){return new bw}},c7=[(t,e)=>r_(e)>=0,(t,e)=>e_(e)>=0,(t,e)=>t_(e)>=0,(t,e)=>Tw(e,t,!0)>=0,(t,e)=>Pw(e,t,!0)>=0,(t,e)=>Lw(e,t,!0)>=0,(t,e)=>s_(e,t,!0)>=0],f7={text:"",end:0},vw=class{constructor(e,a,r,n){this.parser=e,this.input=a,this.ranges=n,this.line=new gw,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=n[n.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=n[0].from,this.block=FO.create(_.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new Cw(r,a):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let r=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<e.markers.length&&(!n||e.markers[r].from<n.end);){let i=e.markers[r++];this.addNode(i.type,i.from,i.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let r of this.parser.blockParsers)if(r){let n=r(this,e);if(n!=!1){if(n==!0)return null;e.forward();continue e}}break}if(e.pos==e.text.length)return this.nextLine()?null:this.finish();let a=new mw(this.lineStart+e.pos,e.text.slice(e.pos));for(let r of this.parser.leafBlockParsers)if(r){let n=r(this,a);n&&a.parsers.push(n)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,e,a))break e}for(let r of a.parsers)if(r.nextLine(this,e,a))return null;a.content+=`
|
|
60
|
+
`+e.scrub();for(let r of e.markers)a.marks.push(r)}return this.finishLeaf(a),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let a=this.fragments.takeNodes(this);return a?(this.absoluteLineStart+=a,this.lineStart=g_(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let a=f7;if(a.end=e,e>=this.to)a.text="";else if(a.text=this.lineChunkAt(e),a.end+=a.text.length,this.ranges.length>1){let r=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<a.end;){n++;let i=this.ranges[n].from,o=this.lineChunkAt(i);a.end=i+o.length,a.text=a.text.slice(0,this.ranges[n-1].to-r)+o,r=a.end-a.text.length}}return a}readLine(){let{line:e}=this,{text:a,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,e.reset(a);e.depth<this.stack.length;e.depth++){let n=this.stack[e.depth],i=this.parser.skipContextMarkup[n.type];if(!i)throw new Error("Unhandled block context "+_[n.type]);let o=this.line.markers.length;if(!i(n,this,e)){this.line.markers.length>o&&(n.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let a=this.input.chunk(e),r;if(this.input.lineChunks)r=a==`
|
|
61
|
+
`?"":a;else{let n=a.indexOf(`
|
|
62
|
+
`);r=n<0?a:a.slice(0,n)}return e+r.length>this.to?r.slice(0,this.to-e):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,a,r=0){this.block=FO.create(e,r,this.lineStart+a,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,a,r=0){this.startContext(this.parser.getNodeType(e),a,r)}addNode(e,a,r){typeof e=="number"&&(e=new $e(this.parser.nodeSet.types[e],nf,nf,(r??this.prevLineEnd())-a)),this.block.addChild(e,a-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,a){this.addNode(this.buffer.writeElements(ww(a.children,e.marks),-a.from).finish(a.type,a.to-a.from),a.from)}finishContext(){let e=this.stack.pop(),a=this.stack[this.stack.length-1];a.addChild(e.toTree(this.parser.nodeSet),e.from-a.from),this.block=a}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?u_(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let r of e.parsers)if(r.finish(this,e))return;let a=ww(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(a,-e.start).finish(_.Paragraph,e.content.length),e.start)}elt(e,a,r,n){return typeof e=="string"?Ee(this.parser.getNodeType(e),a,r,n):new GO(e,a)}get buffer(){return new HO(this.parser.nodeSet)}};function u_(t,e,a,r,n){let i=t[e].to,o=[],s=[],l=a.from+r;function u(c,f){for(;f?c>=i:c>i;){let d=t[e+1].from-i;r+=d,c+=d,e++,i=t[e].to}}for(let c=a.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let f=c.from+r,d,h=n.get(c.tree);h?d=h:c.to+r>i?(d=u_(t,e,c,r,n),u(c.to+r,!1)):d=c.toTree(),o.push(d),s.push(f-l)}return u(a.to+r,!1),new $e(a.type,o,s,a.to+r-l,a.tree?a.tree.propValues:void 0)}var Ch=class t extends vs{constructor(e,a,r,n,i,o,s,l,u){super(),this.nodeSet=e,this.blockParsers=a,this.leafBlockParsers=r,this.blockNames=n,this.endLeafBlock=i,this.skipContextMarkup=o,this.inlineParsers=s,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,a,r){let n=new vw(this,e,a,r);for(let i of this.wrappers)n=i(n,e,a,r);return n}configure(e){let a=Sw(e);if(!a)return this;let{nodeSet:r,skipContextMarkup:n}=this,i=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),f=this.wrappers;if(vh(a.defineNodes)){n=Object.assign({},n);let d=r.types.slice(),h;for(let p of a.defineNodes){let{name:m,block:x,composite:g,style:O}=typeof p=="string"?{name:p}:p;if(d.some(v=>v.name==m))continue;g&&(n[d.length]=(v,S,w)=>g(S,w,v.value));let y=d.length,b=g?["Block","BlockContext"]:x?y>=_.ATXHeading1&&y<=_.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;d.push(Tt.define({id:y,name:m,props:b&&[[fe.group,b]]})),O&&(h||(h={}),Array.isArray(O)||O instanceof Cr?h[m]=O:Object.assign(h,O))}r=new ys(d),h&&(r=r.extend(Rn(h)))}if(vh(a.props)&&(r=r.extend(...a.props)),vh(a.remove))for(let d of a.remove){let h=this.blockNames.indexOf(d),p=this.inlineNames.indexOf(d);h>-1&&(i[h]=o[h]=void 0),p>-1&&(l[p]=void 0)}if(vh(a.parseBlock))for(let d of a.parseBlock){let h=s.indexOf(d.name);if(h>-1)i[h]=d.parse,o[h]=d.leaf;else{let p=d.before?jO(s,d.before):d.after?jO(s,d.after)+1:s.length-1;i.splice(p,0,d.parse),o.splice(p,0,d.leaf),s.splice(p,0,d.name)}d.endLeaf&&c.push(d.endLeaf)}if(vh(a.parseInline))for(let d of a.parseInline){let h=u.indexOf(d.name);if(h>-1)l[h]=d.parse;else{let p=d.before?jO(u,d.before):d.after?jO(u,d.after)+1:u.length-1;l.splice(p,0,d.parse),u.splice(p,0,d.name)}}return a.wrap&&(f=f.concat(a.wrap)),new t(r,i,o,s,c,n,l,u,f)}getNodeType(e){let a=this.nodeTypes[e];if(a==null)throw new RangeError(`Unknown node type '${e}'`);return a}parseInline(e,a){let r=new Lh(this,e,a);e:for(let n=a;n<r.end;){let i=r.char(n);for(let o of this.inlineParsers)if(o){let s=o(r,i,n);if(s>=0){n=s;continue e}}n++}return r.resolveMarkers(0)}};function vh(t){return t!=null&&t.length>0}function Sw(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Sw(t[0]);if(t.length==1)return e;let a=Sw(t.slice(1));if(!a||!e)return e||a;let r=(o,s)=>(o||nf).concat(s||nf),n=e.wrap,i=a.wrap;return{props:r(e.props,a.props),defineNodes:r(e.defineNodes,a.defineNodes),parseBlock:r(e.parseBlock,a.parseBlock),parseInline:r(e.parseInline,a.parseInline),remove:r(e.remove,a.remove),wrap:n?i?(o,s,l,u)=>n(i(o,s,l,u),s,l,u):n:i}}function jO(t,e){let a=t.indexOf(e);if(a<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return a}var c_=[Tt.none];for(let t=1,e;e=_[t];t++)c_[t]=Tt.define({id:t,name:e,props:t>=_.Escape?[]:[[fe.group,t in JB?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});var nf=[],HO=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,a,r,n=0){return this.content.push(e,a,r,4+n*4),this}writeElements(e,a=0){for(let r of e)r.writeTo(this,a);return this}finish(e,a){return $e.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:a})}},Fl=class{constructor(e,a,r,n=nf){this.type=e,this.from=a,this.to=r,this.children=n}writeTo(e,a){let r=e.content.length;e.writeElements(this.children,a),e.content.push(this.type,this.from+a,this.to+a,e.content.length+4-r)}toTree(e){return new HO(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},GO=class{constructor(e,a){this.tree=e,this.from=a}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return nf}writeTo(e,a){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+a,this.to+a,-1)}toTree(){return this.tree}};function Ee(t,e,a,r){return new Fl(t,e,a,r)}var f_={resolve:"Emphasis",mark:"EmphasisMark"},d_={resolve:"Emphasis",mark:"EmphasisMark"},jl={},YO={},qa=class{constructor(e,a,r,n){this.type=e,this.from=a,this.to=r,this.side=n}},UB="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",kh=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{kh=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}var pw={Escape(t,e,a){if(e!=92||a==t.end-1)return-1;let r=t.char(a+1);for(let n=0;n<UB.length;n++)if(UB.charCodeAt(n)==r)return t.append(Ee(_.Escape,a,a+2));return-1},Entity(t,e,a){if(e!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(a+1,a+31));return r?t.append(Ee(_.Entity,a,a+1+r[0].length)):-1},InlineCode(t,e,a){if(e!=96||a&&t.char(a-1)==96)return-1;let r=a+1;for(;r<t.end&&t.char(r)==96;)r++;let n=r-a,i=0;for(;r<t.end;r++)if(t.char(r)==96){if(i++,i==n&&t.char(r+1)!=96)return t.append(Ee(_.InlineCode,a,r+1,[Ee(_.CodeMark,a,a+n),Ee(_.CodeMark,r+1-n,r+1)]))}else i=0;return-1},HTMLTag(t,e,a){if(e!=60||a==t.end-1)return-1;let r=t.slice(a+1,t.end),n=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(n)return t.append(Ee(_.Autolink,a,a+1+n[0].length,[Ee(_.LinkMark,a,a+1),Ee(_.URL,a+1,a+n[0].length),Ee(_.LinkMark,a+n[0].length,a+1+n[0].length)]));let i=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(i)return t.append(Ee(_.Comment,a,a+1+i[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return t.append(Ee(_.ProcessingInstruction,a,a+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?t.append(Ee(_.HTMLTag,a,a+1+s[0].length)):-1},Emphasis(t,e,a){if(e!=95&&e!=42)return-1;let r=a+1;for(;t.char(r)==e;)r++;let n=t.slice(a-1,a),i=t.slice(r,r+1),o=kh.test(n),s=kh.test(i),l=/\s|^$/.test(n),u=/\s|^$/.test(i),c=!u&&(!s||l||o),f=!l&&(!o||u||s),d=c&&(e==42||!f||o),h=f&&(e==42||!c||s);return t.append(new qa(e==95?f_:d_,a,r,(d?1:0)|(h?2:0)))},HardBreak(t,e,a){if(e==92&&t.char(a+1)==10)return t.append(Ee(_.HardBreak,a,a+2));if(e==32){let r=a+1;for(;t.char(r)==32;)r++;if(t.char(r)==10&&r>=a+2)return t.append(Ee(_.HardBreak,a,r+1))}return-1},Link(t,e,a){return e==91?t.append(new qa(jl,a,a+1,1)):-1},Image(t,e,a){return e==33&&t.char(a+1)==91?t.append(new qa(YO,a,a+2,1)):-1},LinkEnd(t,e,a){if(e!=93)return-1;for(let r=t.parts.length-1;r>=0;r--){let n=t.parts[r];if(n instanceof qa&&(n.type==jl||n.type==YO)){if(!n.side||t.skipSpace(n.to)==a&&!/[(\[]/.test(t.slice(a+1,a+2)))return t.parts[r]=null,-1;let i=t.takeContent(r),o=t.parts[r]=d7(t,i,n.type==jl?_.Link:_.Image,n.from,a+1);if(n.type==jl)for(let s=0;s<r;s++){let l=t.parts[s];l instanceof qa&&l.type==jl&&(l.side=0)}return o.to}}return-1}};function d7(t,e,a,r,n){let{text:i}=t,o=t.char(n),s=n;if(e.unshift(Ee(_.LinkMark,r,r+(a==_.Image?2:1))),e.push(Ee(_.LinkMark,n-1,n)),o==40){let l=t.skipSpace(n+1),u=h_(i,l-t.offset,t.offset),c;u&&(l=t.skipSpace(u.to),l!=u.to&&(c=p_(i,l-t.offset,t.offset),c&&(l=t.skipSpace(c.to)))),t.char(l)==41&&(e.push(Ee(_.LinkMark,n,n+1)),s=l+1,u&&e.push(u),c&&e.push(c),e.push(Ee(_.LinkMark,l,s)))}else if(o==91){let l=m_(i,n-t.offset,t.offset,!1);l&&(e.push(l),s=l.to)}return Ee(a,r,s,e)}function h_(t,e,a){if(t.charCodeAt(e)==60){for(let n=e+1;n<t.length;n++){let i=t.charCodeAt(n);if(i==62)return Ee(_.URL,e+a,n+1+a);if(i==60||i==10)return!1}return null}else{let n=0,i=e;for(let o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(nn(s))break;if(o)o=!1;else if(s==40)n++;else if(s==41){if(!n)break;n--}else s==92&&(o=!0)}return i>e?Ee(_.URL,e+a,i+a):i==t.length?null:!1}}function p_(t,e,a){let r=t.charCodeAt(e);if(r!=39&&r!=34&&r!=40)return!1;let n=r==40?41:r;for(let i=e+1,o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(o)o=!1;else{if(s==n)return Ee(_.LinkTitle,e+a,i+1+a);s==92&&(o=!0)}}return null}function m_(t,e,a,r){for(let n=!1,i=e+1,o=Math.min(t.length,i+999);i<o;i++){let s=t.charCodeAt(i);if(n)n=!1;else{if(s==93)return r?!1:Ee(_.LinkLabel,e+a,i+1+a);if(r&&!nn(s)&&(r=!1),s==91)return!1;s==92&&(n=!0)}}return null}var Lh=class{constructor(e,a,r){this.parser=e,this.text=a,this.offset=r,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,a){return this.text.slice(e-this.offset,a-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,a,r,n,i){return this.append(new qa(e,a,r,(n?1:0)|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let a=this.parts[e];if(a instanceof qa&&(a.type==jl||a.type==YO))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let r=e;r<this.parts.length;r++){let n=this.parts[r];if(!(n instanceof qa&&n.type.resolve&&n.side&2))continue;let i=n.type==f_||n.type==d_,o=n.to-n.from,s,l=r-1;for(;l>=e;l--){let m=this.parts[l];if(m instanceof qa&&m.side&1&&m.type==n.type&&!(i&&(n.side&1||m.side&2)&&(m.to-m.from+o)%3==0&&((m.to-m.from)%3||o%3))){s=m;break}}if(!s)continue;let u=n.type.resolve,c=[],f=s.from,d=n.to;if(i){let m=Math.min(2,s.to-s.from,o);f=s.to-m,d=n.from+m,u=m==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,f,s.to));for(let m=l+1;m<r;m++)this.parts[m]instanceof Fl&&c.push(this.parts[m]),this.parts[m]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,d));let h=this.elt(u,f,d,c);this.parts[l]=i&&s.from!=f?new qa(s.type,s.from,f,s.side):null,(this.parts[r]=i&&n.to!=d?new qa(n.type,d,n.to,n.side):null)?this.parts.splice(r,0,h):this.parts[r]=h}let a=[];for(let r=e;r<this.parts.length;r++){let n=this.parts[r];n instanceof Fl&&a.push(n)}return a}findOpeningDelimiter(e){for(let a=this.parts.length-1;a>=0;a--){let r=this.parts[a];if(r instanceof qa&&r.type==e&&r.side&1)return a}return null}takeContent(e){let a=this.resolveMarkers(e);return this.parts.length=e,a}getDelimiterAt(e){let a=this.parts[e];return a instanceof qa?a:null}skipSpace(e){return Sh(this.text,e-this.offset)+this.offset}elt(e,a,r,n){return typeof e=="string"?Ee(this.parser.getNodeType(e),a,r,n):new GO(e,a)}};Lh.linkStart=jl;Lh.imageStart=YO;function ww(t,e){if(!e.length)return t;if(!t.length)return e;let a=t.slice(),r=0;for(let n of e){for(;r<a.length&&a[r].to<n.to;)r++;if(r<a.length&&a[r].from<n.from){let i=a[r];i instanceof Fl&&(a[r]=new Fl(i.type,i.from,i.to,ww(i.children,[n])))}else a.splice(r++,0,n)}return a}var h7=[_.CodeBlock,_.ListItem,_.OrderedList,_.BulletList],Cw=class{constructor(e,a){this.fragments=e,this.input=a,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,a){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let i=this.fragment.to;for(;i>0&&this.input.read(i-1,i)!=`
|
|
63
|
+
`;)i--;this.fragmentEnd=i?i-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let n=e+this.fragment.offset;for(;r.to<=n;)if(!r.parent())return!1;for(;;){if(r.from>=n)return this.fragment.from<=a;if(!r.childAfter(n))return!1}}matches(e){let a=this.cursor.tree;return a&&a.prop(fe.contextHash)==e}takeNodes(e){let a=this.cursor,r=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,o=i,s=e.block.children.length,l=o,u=s;for(;;){if(a.to-r>n){if(a.type.isAnonymous&&a.firstChild())continue;break}let c=g_(a.from-r,e.ranges);if(a.to-r<=e.ranges[e.rangeI].to)e.addNode(a.tree,c);else{let f=new $e(e.parser.nodeSet.types[_.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,a.tree),e.addNode(f,c)}if(a.type.is("Block")&&(h7.indexOf(a.type.id)<0?(o=a.to-r,s=e.block.children.length):(o=l,s=u),l=a.to-r,u=e.block.children.length),!a.nextSibling())break}for(;e.block.children.length>s;)e.block.children.pop(),e.block.positions.pop();return o-i}};function g_(t,e){let a=t;for(let r=1;r<e.length;r++){let n=e[r-1].to,i=e[r].from;n<t&&(a-=i-n)}return a}var p7=Rn({"Blockquote/...":C.quote,HorizontalRule:C.contentSeparator,"ATXHeading1/... SetextHeading1/...":C.heading1,"ATXHeading2/... SetextHeading2/...":C.heading2,"ATXHeading3/...":C.heading3,"ATXHeading4/...":C.heading4,"ATXHeading5/...":C.heading5,"ATXHeading6/...":C.heading6,"Comment CommentBlock":C.comment,Escape:C.escape,Entity:C.character,"Emphasis/...":C.emphasis,"StrongEmphasis/...":C.strong,"Link/... Image/...":C.link,"OrderedList/... BulletList/...":C.list,"BlockQuote/...":C.quote,"InlineCode CodeText":C.monospace,"URL Autolink":C.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":C.processingInstruction,"CodeInfo LinkLabel":C.labelName,LinkTitle:C.string,Paragraph:C.content}),O_=new Ch(new ys(c_).extend(p7),Object.keys(UO).map(t=>UO[t]),Object.keys(UO).map(t=>l_[t]),Object.keys(UO),c7,JB,Object.keys(pw).map(t=>pw[t]),Object.keys(pw),[]);function m7(t,e,a){let r=[];for(let n=t.firstChild,i=e;;n=n.nextSibling){let o=n?n.from:a;if(o>i&&r.push({from:i,to:o}),!n)break;i=n.to}return r}function x_(t){let{codeParser:e,htmlParser:a}=t;return{wrap:IO((n,i)=>{let o=n.type.id;if(e&&(o==_.CodeBlock||o==_.FencedCode)){let s="";if(o==_.FencedCode){let u=n.node.getChild(_.CodeInfo);u&&(s=i.read(u.from,u.to))}let l=e(s);if(l)return{parser:l,overlay:u=>u.type.id==_.CodeText,bracketed:o==_.FencedCode}}else if(a&&(o==_.HTMLBlock||o==_.HTMLTag||o==_.CommentBlock))return{parser:a,overlay:m7(n.node,n.from,n.to)};return null})}}var g7={resolve:"Strikethrough",mark:"StrikethroughMark"},O7={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":C.strikethrough}},{name:"StrikethroughMark",style:C.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,a){if(e!=126||t.char(a+1)!=126||t.char(a+2)==126)return-1;let r=t.slice(a-1,a),n=t.slice(a+2,a+3),i=/\s|^$/.test(r),o=/\s|^$/.test(n),s=kh.test(r),l=kh.test(n);return t.addDelimiter(g7,a,a+2,!o&&(!l||i||s),!i&&(!s||o||l))},after:"Emphasis"}]};function wh(t,e,a=0,r,n=0){let i=0,o=!0,s=-1,l=-1,u=!1,c=()=>{r.push(t.elt("TableCell",n+s,n+l,t.parser.parseInline(e.slice(s,l),n+s)))};for(let f=a;f<e.length;f++){let d=e.charCodeAt(f);d==124&&!u?((!o||s>-1)&&i++,o=!1,r&&(s>-1&&c(),r.push(t.elt("TableDelimiter",f+n,f+n+1))),s=l=-1):(u||d!=32&&d!=9)&&(s<0&&(s=f),l=f+1),u=!u&&d==92}return s>-1&&(i++,r&&c()),i}function jB(t,e){for(let a=e;a<t.length;a++){let r=t.charCodeAt(a);if(r==124)return!0;r==92&&a++}return!1}var y_=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,WO=class{constructor(){this.rows=null}nextLine(e,a,r){if(this.rows==null){this.rows=!1;let n;if((a.next==45||a.next==58||a.next==124)&&y_.test(n=a.text.slice(a.pos))){let i=[];wh(e,r.content,0,i,r.start)==wh(e,n,0)&&(this.rows=[e.elt("TableHeader",r.start,r.start+r.content.length,i),e.elt("TableDelimiter",e.lineStart+a.pos,e.lineStart+a.text.length)])}}else if(this.rows){let n=[];wh(e,a.text,a.pos,n,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+a.pos,e.lineStart+a.text.length,n))}return!1}finish(e,a){return this.rows?(e.addLeafElement(a,e.elt("Table",a.start,a.start+a.content.length,this.rows)),!0):!1}},x7={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":C.heading}},"TableRow",{name:"TableCell",style:C.content},{name:"TableDelimiter",style:C.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return jB(e.content,0)?new WO:null},endLeaf(t,e,a){if(a.parsers.some(n=>n instanceof WO)||!jB(e.text,e.basePos))return!1;let r=t.peekLine();return y_.test(r)&&wh(t,e.text,e.basePos)==wh(t,r,e.basePos)},before:"SetextHeading"}]},kw=class{nextLine(){return!1}finish(e,a){return e.addLeafElement(a,e.elt("Task",a.start,a.start+a.content.length,[e.elt("TaskMarker",a.start,a.start+3),...e.parser.parseInline(a.content.slice(3),a.start+3)])),!0}},y7={defineNodes:[{name:"Task",block:!0,style:C.list},{name:"TaskMarker",style:C.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new kw:null},after:"SetextHeading"}]},FB=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,HB=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,b7=/[\w-]+\.[\w-]+($|[/:])/,GB=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,YB=/\/[a-zA-Z\d@.]+/gy;function WB(t,e,a,r){let n=0;for(let i=e;i<a;i++)t[i]==r&&n++;return n}function v7(t,e){HB.lastIndex=e;let a=HB.exec(t);if(!a||b7.exec(a[0])[0].indexOf("_")>-1)return-1;let r=e+a[0].length;for(;;){let n=t[r-1],i;if(/[?!.,:*_~]/.test(n)||n==")"&&WB(t,e,r,")")>WB(t,e,r,"("))r--;else if(n==";"&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,r))))r=e+i.index;else break}return r}function KB(t,e){GB.lastIndex=e;let a=GB.exec(t);if(!a)return-1;let r=a[0][a[0].length-1];return r=="_"||r=="-"?-1:e+a[0].length-(r=="."?1:0)}var S7={parseInline:[{name:"Autolink",parse(t,e,a){let r=a-t.offset;if(r&&/\w/.test(t.text[r-1]))return-1;FB.lastIndex=r;let n=FB.exec(t.text),i=-1;if(!n)return-1;if(n[1]||n[2]){if(i=v7(t.text,r+n[0].length),i>-1&&t.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(r,i));i=r+o[0].length}}else n[3]?i=KB(t.text,r):(i=KB(t.text,r+n[0].length),i>-1&&n[0]=="xmpp:"&&(YB.lastIndex=i,n=YB.exec(t.text),n&&(i=n.index+n[0].length)));return i<0?-1:(t.addElement(t.elt("URL",a,i+t.offset)),i+t.offset)}}]},b_=[x7,y7,O7,S7];function v_(t,e,a){return(r,n,i)=>{if(n!=t||r.char(i+1)==t)return-1;let o=[r.elt(a,i,i+1)];for(let s=i+1;s<r.end;s++){let l=r.char(s);if(l==t)return r.addElement(r.elt(e,i,s+1,o.concat(r.elt(a,s,s+1))));if(l==92&&o.push(r.elt("Escape",s,s+++2)),nn(l))break}return-1}}var S_={defineNodes:[{name:"Superscript",style:C.special(C.content)},{name:"SuperscriptMark",style:C.processingInstruction}],parseInline:[{name:"Superscript",parse:v_(94,"Superscript","SuperscriptMark")}]},w_={defineNodes:[{name:"Subscript",style:C.special(C.content)},{name:"SubscriptMark",style:C.processingInstruction}],parseInline:[{name:"Subscript",parse:v_(126,"Subscript","SubscriptMark")}]},C_={defineNodes:[{name:"Emoji",style:C.character}],parseInline:[{name:"Emoji",parse(t,e,a){let r;return e!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(t.slice(a+1,t.end)))?-1:t.addElement(t.elt("Emoji",a,a+1+r[0].length))}}]};var Aw=class t{constructor(e,a,r,n,i,o,s,l,u,c=0,f){this.p=e,this.stack=a,this.state=r,this.reducePos=n,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,a)=>a%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,a,r=0){let n=e.parser.context;return new t(e,[],a,r,r,0,[],0,n?new KO(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,a){this.stack.push(this.state,a,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var a;let r=e>>19,n=e&65535,{parser:i}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),s=i.dynamicPrecedence(n);if(s&&(this.score+=s),r==0){n<i.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n<i.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(n,this.reducePos);return}let l=this.stack.length-(r-1)*3-(e&262144?6:0),u=l?this.stack[l-2]:this.p.ranges[0].from;n<i.minRepeatTerm&&u==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-u;c>=2e3&&!(!((a=this.p.parser.nodeSet.types[n])===null||a===void 0)&&a.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=u,this.p.lastBigReductionSize=c));let f=l?this.stack[l-1]:0,d=this.bufferBase+this.buffer.length-f;if(n<i.minRepeatTerm||e&131072){let h=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,u,h,d+4,!0)}if(e&262144)this.state=this.stack[l];else{let h=this.stack[l-3];this.state=i.getGoto(h,n,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(n,u)}storeNode(e,a,r,n=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this.buffer.length;if(o>0&&this.buffer[o-4]==0&&this.buffer[o-1]>-1){if(a==r)return;if(this.buffer[o-2]>=a){this.buffer[o-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(e,a,r,n);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let s=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){s=!0;break}if(s)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4)}this.buffer[o]=e,this.buffer[o+1]=a,this.buffer[o+2]=r,this.buffer[o+3]=n}}shift(e,a,r,n){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let i=e,{parser:o}=this.p;this.pos=n;let s=o.stateFlag(i,1);!s&&(n>r||a<=o.maxNode)&&(this.reducePos=n),this.pushState(i,s?r:Math.min(r,this.reducePos)),this.shiftContext(a,r),a<=o.maxNode&&this.buffer.push(a,r,n,4)}else this.pos=n,this.shiftContext(a,r),a<=this.p.parser.maxNode&&this.buffer.push(a,r,n,4)}apply(e,a,r,n){e&65536?this.reduce(e):this.shift(e,a,r,n)}useNode(e,a){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(a,n),this.buffer.push(r,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,a=e.buffer.length;for(a&&e.buffer[a-4]==0&&(a-=4);a>0&&e.buffer[a-2]>e.reducePos;)a-=4;let r=e.buffer.slice(a),n=e.bufferBase+a;for(;e&&n==e.bufferBase;)e=e.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,a){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,a,4),this.storeNode(0,this.pos,a,r?8:4),this.pos=this.reducePos=a,this.score-=190}canShift(e){for(let a=new Qw(this);;){let r=this.p.parser.stateSlot(a.state,4)||this.p.parser.hasAction(a.state,e);if(r==0)return!1;if((r&65536)==0)return!0;a.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let a=this.p.parser.nextStates(this.state);if(a.length>8||this.stack.length>=120){let n=[];for(let i=0,o;i<a.length;i+=2)(o=a[i+1])!=this.state&&this.p.parser.hasAction(o,e)&&n.push(a[i],o);if(this.stack.length<120)for(let i=0;n.length<8&&i<a.length;i+=2){let o=a[i+1];n.some((s,l)=>l&1&&s==o)||n.push(a[i],o)}a=n}let r=[];for(let n=0;n<a.length&&r.length<4;n+=2){let i=a[n+1];if(i==this.state)continue;let o=this.split();o.pushState(i,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(a[n],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:e}=this.p,a=e.stateSlot(this.state,5);if((a&65536)==0)return!1;if(!e.validAction(this.state,a)){let r=a>>19,n=a&65535,i=this.stack.length-r*3;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;a=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(a),!0}findForcedReduction(){let{parser:e}=this.p,a=[],r=(n,i)=>{if(!a.includes(n))return a.push(n),e.allActions(n,o=>{if(!(o&393216))if(o&65536){let s=(o>>19)-i;if(s>1){let l=o&65535,u=this.stack.length-s*3;if(u>=0&&e.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(o,i+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let a=0;a<this.stack.length;a+=3)if(this.stack[a]!=e.stack[a])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,a){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(a)))}reduceContext(e,a){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(a)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let a=new KO(this.curContext.tracker,e);a.hash!=this.curContext.hash&&this.emitContext(),this.curContext=a}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},KO=class{constructor(e,a){this.tracker=e,this.context=a,this.hash=e.strict?e.hash(a):0}},Qw=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let a=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],a,!0);this.state=n}},Mw=class t{constructor(e,a,r){this.stack=e,this.pos=a,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,a=e.bufferBase+e.buffer.length){return new t(e,a,a-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new t(this.stack,this.pos,this.index)}};function Th(t,e=Uint16Array){if(typeof t!="string")return t;let a=null;for(let r=0,n=0;r<t.length;){let i=0;for(;;){let o=t.charCodeAt(r++),s=!1;if(o==126){i=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,s=!0),i+=l,s)break;i*=46}a?a[n++]=i:a=new e(i)}return a}var of=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},k_=new of,Ew=class{constructor(e,a){this.input=e,this.ranges=a,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=k_,this.rangeIndex=0,this.pos=this.chunkPos=a[0].from,this.range=a[0],this.end=a[a.length-1].to,this.readNext()}resolveOffset(e,a){let r=this.range,n=this.rangeIndex,i=this.pos+e;for(;i<r.from;){if(!n)return null;let o=this.ranges[--n];i-=r.from-o.to,r=o}for(;a<0?i>r.to:i>=r.to;){if(n==this.ranges.length-1)return null;let o=this.ranges[++n];i+=o.from-r.to,r=o}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let a of this.ranges)if(a.to>e)return Math.max(e,a.from);return this.end}peek(e){let a=this.chunkOff+e,r,n;if(a>=0&&a<this.chunk.length)r=this.pos+e,n=this.chunk.charCodeAt(a);else{let i=this.resolveOffset(e,1);if(i==null)return-1;if(r=i,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),n=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),n}acceptToken(e,a=0){let r=a?this.resolveOffset(a,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,a){this.token.value=e,this.token.end=a}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:a}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=a,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),a=this.pos+e.length;this.chunk=a>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,a){if(a?(this.token=a,a.start=e,a.lookAhead=e+1,a.value=a.extended=-1):this.token=k_,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,a){if(e>=this.chunkPos&&a<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,a-this.chunkPos);if(e>=this.chunk2Pos&&a<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,a-this.chunk2Pos);if(e>=this.range.from&&a<=this.range.to)return this.input.read(e,a);let r="";for(let n of this.ranges){if(n.from>=a)break;n.to>e&&(r+=this.input.read(Math.max(n.from,e),Math.min(n.to,a)))}return r}},Rs=class{constructor(e,a){this.data=e,this.id=a}token(e,a){let{parser:r}=a.p;I_(this.data,e,a,this.id,r.data,r.tokenPrecTable)}};Rs.prototype.contextual=Rs.prototype.fallback=Rs.prototype.extend=!1;var Is=class{constructor(e,a,r){this.precTable=a,this.elseToken=r,this.data=typeof e=="string"?Th(e):e}token(e,a){let r=e.pos,n=0;for(;;){let i=e.next<0,o=e.resolveOffset(1,1);if(I_(this.data,e,a,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||n++,o==null)break;e.reset(o,e.token)}n&&(e.reset(r,e.token),e.acceptToken(this.elseToken,n))}};Is.prototype.contextual=Rs.prototype.fallback=Rs.prototype.extend=!1;var ea=class{constructor(e,a={}){this.token=e,this.contextual=!!a.contextual,this.fallback=!!a.fallback,this.extend=!!a.extend}};function I_(t,e,a,r,n,i){let o=0,s=1<<r,{dialect:l}=a.p.parser;e:for(;(s&t[o])!=0;){let u=t[o+1];for(let h=o+3;h<u;h+=2)if((t[h+1]&s)>0){let p=t[h];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||C7(p,e.token.value,n,i))){e.acceptToken(p);break}}let c=e.next,f=0,d=t[o+2];if(e.next<0&&d>f&&t[u+d*3-3]==65535){o=t[u+d*3-1];continue e}for(;f<d;){let h=f+d>>1,p=u+h+(h<<1),m=t[p],x=t[p+1]||65536;if(c<m)d=h;else if(c>=x)f=h+1;else{o=t[p+2],e.advance();continue e}}break}}function L_(t,e,a){for(let r=e,n;(n=t[r])!=65535;r++)if(n==a)return r-e;return-1}function C7(t,e,a,r){let n=L_(a,r,e);return n<0||L_(a,r,t)<n}var kr=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),Rw=null;function T_(t,e,a){let r=t.cursor(Me.IncludeAnonymous);for(r.moveTo(e);;)if(!(a<0?r.childBefore(e):r.childAfter(e)))for(;;){if((a<0?r.to<e:r.from>e)&&!r.type.isError)return a<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(a<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return a<0?0:t.length}}var Dw=class{constructor(e,a){this.fragments=e,this.nodeSet=a,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?T_(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?T_(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let a=this.trees.length-1;if(a<0)return this.nextFragment(),null;let r=this.trees[a],n=this.index[a];if(n==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[n],o=this.start[a]+r.positions[n];if(o>e)return this.nextStart=o,null;if(i instanceof $e){if(o==e){if(o<this.safeFrom)return null;let s=o+i.length;if(s<=this.safeTo){let l=i.prop(fe.lookAhead);if(!l||s+l<this.fragment.to)return i}}this.index[a]++,o+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[a]++,this.nextStart=o+i.length}}},$w=class{constructor(e,a){this.stream=a,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new of)}getActions(e){let a=0,r=null,{parser:n}=e.p,{tokenizers:i}=n,o=n.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<i.length;u++){if((1<<u&o)==0)continue;let c=i[u],f=this.tokens[u];if(!(r&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=o||f.context!=s)&&(this.updateCachedToken(f,c,e),f.mask=o,f.context=s),f.lookAhead>f.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let d=a;if(f.extended>-1&&(a=this.addActions(e,f.extended,f.end,a)),a=this.addActions(e,f.value,f.end,a),!c.extend&&(r=f,a>d))break}}for(;this.actions.length>a;)this.actions.pop();return l&&e.setLookAhead(l),!r&&e.pos==this.stream.end&&(r=new of,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,a=this.addActions(e,r.value,r.end,a)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let a=new of,{pos:r,p:n}=e;return a.start=r,a.end=Math.min(r+1,n.stream.end),a.value=r==n.stream.end?n.parser.eofTerm:0,a}updateCachedToken(e,a,r){let n=this.stream.clipPos(r.pos);if(a.token(this.stream.reset(n,e),r),e.value>-1){let{parser:i}=r.p;for(let o=0;o<i.specialized.length;o++)if(i.specialized[o]==e.value){let s=i.specializers[o](this.stream.read(e.start,e.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){(s&1)==0?e.value=s>>1:e.extended=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,a,r,n){for(let i=0;i<n;i+=3)if(this.actions[i]==e)return n;return this.actions[n++]=e,this.actions[n++]=a,this.actions[n++]=r,n}addActions(e,a,r,n){let{state:i}=e,{parser:o}=e.p,{data:s}=o;for(let l=0;l<2;l++)for(let u=o.stateSlot(i,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=so(s,u+2);else{n==0&&s[u+1]==2&&(n=this.putAction(so(s,u+2),a,r,n));break}s[u]==a&&(n=this.putAction(so(s,u+1),a,r,n))}return n}},Bw=class{constructor(e,a,r,n){this.parser=e,this.input=a,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Ew(a,n),this.tokens=new $w(e,this.stream),this.topTerm=e.top[1];let{from:i}=n[0];this.stacks=[Aw.start(this,e.top[0],i)],this.fragments=r.length&&this.stream.end-i>e.bufferLength*4?new Dw(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,a=this.minStackPos,r=this.stacks=[],n,i;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let s=e[o];for(;;){if(this.tokens.mainToken=null,s.pos>a)r.push(s);else{if(this.advanceStack(s,r,e))continue;{n||(n=[],i=[]),n.push(s);let l=this.tokens.getMainToken(s);i.push(l.value,l.end)}}break}}if(!r.length){let o=n&&k7(n);if(o)return kr&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw kr&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+a);this.recovering||(this.recovering=5)}if(this.recovering&&n){let o=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,i,r);if(o)return kr&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((s,l)=>l.score-s.score);r.length>o;)r.pop();r.some(s=>s.reducePos>a)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let s=r[o];for(let l=o+1;l<r.length;l++){let u=r[l];if(s.sameState(u)||s.buffer.length>500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&(r.sort((o,s)=>s.score-o.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,a,r){let n=e.pos,{parser:i}=this,o=kr?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let f=this.fragments.nodeAt(n);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?i.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!u||(f.prop(fe.contextHash)||0)==c))return e.useNode(f,d),kr&&console.log(o+this.stackID(e)+` (via reuse of ${i.getName(f.type.id)})`),!0;if(!(f instanceof $e)||f.children.length==0||f.positions[0]>0)break;let h=f.children[0];if(h instanceof $e&&f.positions[0]==0)f=h;else break}}let s=i.stateSlot(e.state,4);if(s>0)return e.reduce(s),kr&&console.log(o+this.stackID(e)+` (via always-reduce ${i.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;u<l.length;){let c=l[u++],f=l[u++],d=l[u++],h=u==l.length||!r,p=h?e:e.split(),m=this.tokens.mainToken;if(p.apply(c,f,m?m.start:p.pos,d),kr&&console.log(o+this.stackID(p)+` (via ${(c&65536)==0?"shift":`reduce of ${i.getName(c&65535)}`} for ${i.getName(f)} @ ${n}${p==e?"":", split"})`),h)return!0;p.pos>n?a.push(p):r.push(p)}return!1}advanceFully(e,a){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return P_(e,a),!0}}runRecovery(e,a,r){let n=null,i=!1;for(let o=0;o<e.length;o++){let s=e[o],l=a[o<<1],u=a[(o<<1)+1],c=kr?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),kr&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let f=s.split(),d=c;for(let h=0;h<10&&f.forceReduce()&&(kr&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));h++)kr&&(d=this.stackID(f)+" -> ");for(let h of s.recoverByInsert(l))kr&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),kr&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),P_(s,r)):(!n||n.score<f.score)&&(n=f)}return n}stackToTree(e){return e.close(),$e.build({buffer:Mw.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let a=(Rw||(Rw=new WeakMap)).get(e);return a||Rw.set(e,a=String.fromCodePoint(this.nextStackID++)),a+e}};function P_(t,e){for(let a=0;a<e.length;a++){let r=e[a];if(r.pos==t.pos&&r.sameState(t)){e[a].score<t.score&&(e[a]=t);return}}e.push(t)}var _w=class{constructor(e,a,r){this.source=e,this.flags=a,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}},Iw=t=>t,sf=class{constructor(e){this.start=e.start,this.shift=e.shift||Iw,this.reduce=e.reduce||Iw,this.reuse=e.reuse||Iw,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},As=class t extends vs{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let a=e.nodeNames.split(" ");this.minRepeatTerm=a.length;for(let s=0;s<e.repeatNodeCount;s++)a.push("");let r=Object.keys(e.topRules).map(s=>e.topRules[s][1]),n=[];for(let s=0;s<a.length;s++)n.push([]);function i(s,l,u){n[s].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let s of e.nodeProps){let l=s[0];typeof l=="string"&&(l=fe[l]);for(let u=1;u<s.length;){let c=s[u++];if(c>=0)i(c,l,s[u++]);else{let f=s[u+-c];for(let d=-c;d>0;d--)i(s[u++],l,f);u++}}}this.nodeSet=new ys(a.map((s,l)=>Tt.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:n[l],top:r.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let o=Th(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(R_),this.states=Th(e.states,Uint32Array),this.data=Th(e.stateData),this.goto=Th(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(s=>typeof s=="number"?new Rs(o,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,a,r){let n=new Bw(this,e,a,r);for(let i of this.wrappers)n=i(n,e,a,r);return n}getGoto(e,a,r=!1){let n=this.goto;if(a>=n[0])return-1;for(let i=n[a+1];;){let o=n[i++],s=o&1,l=n[i++];if(s&&r)return l;for(let u=i+(o>>1);i<u;i++)if(n[i]==e)return l;if(s)return-1}}hasAction(e,a){let r=this.data;for(let n=0;n<2;n++)for(let i=this.stateSlot(e,n?2:1),o;;i+=3){if((o=r[i])==65535)if(r[i+1]==1)o=r[i=so(r,i+2)];else{if(r[i+1]==2)return so(r,i+2);break}if(o==a||o==0)return so(r,i+1)}return 0}stateSlot(e,a){return this.states[e*6+a]}stateFlag(e,a){return(this.stateSlot(e,0)&a)>0}validAction(e,a){return!!this.allActions(e,r=>r==a?!0:null)}allActions(e,a){let r=this.stateSlot(e,4),n=r?a(r):void 0;for(let i=this.stateSlot(e,1);n==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=so(this.data,i+2);else break;n=a(so(this.data,i+1))}return n}nextStates(e){let a=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=so(this.data,r+2);else break;if((this.data[r+2]&1)==0){let n=this.data[r+1];a.some((i,o)=>o&1&&i==n)||a.push(this.data[r],n)}}return a}configure(e){let a=Object.assign(Object.create(t.prototype),this);if(e.props&&(a.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);a.top=r}return e.tokenizers&&(a.tokenizers=this.tokenizers.map(r=>{let n=e.tokenizers.find(i=>i.from==r);return n?n.to:r})),e.specializers&&(a.specializers=this.specializers.slice(),a.specializerSpecs=this.specializerSpecs.map((r,n)=>{let i=e.specializers.find(s=>s.from==r.external);if(!i)return r;let o=Object.assign(Object.assign({},r),{external:i.to});return a.specializers[n]=R_(o),o})),e.contextTracker&&(a.context=e.contextTracker),e.dialect&&(a.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(a.strict=e.strict),e.wrap&&(a.wrappers=a.wrappers.concat(e.wrap)),e.bufferLength!=null&&(a.bufferLength=e.bufferLength),a}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let a=this.dynamicPrecedences;return a==null?0:a[e]||0}parseDialect(e){let a=Object.keys(this.dialects),r=a.map(()=>!1);if(e)for(let i of e.split(" ")){let o=a.indexOf(i);o>=0&&(r[o]=!0)}let n=null;for(let i=0;i<a.length;i++)if(!r[i])for(let o=this.dialects[a[i]],s;(s=this.data[o++])!=65535;)(n||(n=new Uint8Array(this.maxTerm+1)))[s]=1;return new _w(e,r,n)}static deserialize(e){return new t(e)}};function so(t,e){return t[e]|t[e+1]<<16}function k7(t){let e=null;for(let a of t){let r=a.p.stoppedAt;(a.pos==a.p.stream.end||r!=null&&a.pos>r)&&a.p.parser.stateFlag(a.state,2)&&(!e||e.score<a.score)&&(e=a)}return e}function R_(t){if(t.external){let e=t.extend?1:0;return(a,r)=>t.external(a,r)<<1|e}return t.get}var L7=55,T7=1,P7=56,R7=2,I7=57,A7=3,A_=4,Q7=5,Zw=6,z_=7,N_=8,X_=9,q_=10,M7=11,E7=12,D7=13,zw=58,$7=14,B7=15,Q_=59,Z_=21,_7=23,V_=24,z7=25,Xw=27,U_=28,N7=29,X7=32,q7=35,Z7=37,V7=38,U7=0,j7=1,F7={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},H7={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},M_={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function G7(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}var E_=null,D_=null,$_=0;function qw(t,e){let a=t.pos+e;if($_==a&&D_==t)return E_;let r=t.peek(e),n="";for(;G7(r);)n+=String.fromCharCode(r),r=t.peek(++e);return D_=t,$_=a,E_=n?n.toLowerCase():r==Y7||r==W7?void 0:null}var j_=60,JO=62,Vw=47,Y7=63,W7=33,K7=45;function B_(t,e){this.name=t,this.parent=e}var J7=[Zw,q_,z_,N_,X_],e6=new sf({start:null,shift(t,e,a,r){return J7.indexOf(e)>-1?new B_(qw(r,1)||"",t):t},reduce(t,e){return e==Z_&&t?t.parent:t},reuse(t,e,a,r){let n=e.type.id;return n==Zw||n==Z7?new B_(qw(r,1)||"",t):t},strict:!1}),t6=new ea((t,e)=>{if(t.next!=j_){t.next<0&&e.context&&t.acceptToken(zw);return}t.advance();let a=t.next==Vw;a&&t.advance();let r=qw(t,0);if(r===void 0)return;if(!r)return t.acceptToken(a?B7:$7);let n=e.context?e.context.name:null;if(a){if(r==n)return t.acceptToken(M7);if(n&&H7[n])return t.acceptToken(zw,-2);if(e.dialectEnabled(U7))return t.acceptToken(E7);for(let i=e.context;i;i=i.parent)if(i.name==r)return;t.acceptToken(D7)}else{if(r=="script")return t.acceptToken(z_);if(r=="style")return t.acceptToken(N_);if(r=="textarea")return t.acceptToken(X_);if(F7.hasOwnProperty(r))return t.acceptToken(q_);n&&M_[n]&&M_[n][r]?t.acceptToken(zw,-1):t.acceptToken(Zw)}},{contextual:!0}),a6=new ea(t=>{for(let e=0,a=0;;a++){if(t.next<0){a&&t.acceptToken(Q_);break}if(t.next==K7)e++;else if(t.next==JO&&e>=2){a>=3&&t.acceptToken(Q_,-2);break}else e=0;t.advance()}});function r6(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}var n6=new ea((t,e)=>{if(t.next==Vw&&t.peek(1)==JO){let a=e.dialectEnabled(j7)||r6(e.context);t.acceptToken(a?Q7:A_,2)}else t.next==JO&&t.acceptToken(A_,1)});function Uw(t,e,a){let r=2+t.length;return new ea(n=>{for(let i=0,o=0,s=0;;s++){if(n.next<0){s&&n.acceptToken(e);break}if(i==0&&n.next==j_||i==1&&n.next==Vw||i>=2&&i<r&&n.next==t.charCodeAt(i-2))i++,o++;else if(i==r&&n.next==JO){s>o?n.acceptToken(e,-o):n.acceptToken(a,-(o-2));break}else if((n.next==10||n.next==13)&&s){n.acceptToken(e,1);break}else i=o=0;n.advance()}})}var i6=Uw("script",L7,T7),o6=Uw("style",P7,R7),s6=Uw("textarea",I7,A7),l6=Rn({"Text RawText IncompleteTag IncompleteCloseTag":C.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":C.angleBracket,TagName:C.tagName,"MismatchedCloseTag/TagName":[C.tagName,C.invalid],AttributeName:C.attributeName,"AttributeValue UnquotedAttributeValue":C.attributeValue,Is:C.definitionOperator,"EntityReference CharacterReference":C.character,Comment:C.blockComment,ProcessingInst:C.processingInstruction,DoctypeDecl:C.documentMeta}),F_=As.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,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!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:e6,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[l6],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$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ch:0,selfClosing:515},tokenPrec:517});function H_(t,e){let a=Object.create(null);for(let r of t.getChildren(V_)){let n=r.getChild(z7),i=r.getChild(Xw)||r.getChild(U_);n&&(a[e.read(n.from,n.to)]=i?i.type.id==Xw?e.read(i.from+1,i.to-1):e.read(i.from,i.to):"")}return a}function __(t,e){let a=t.getChild(_7);return a?e.read(a.from,a.to):" "}function Nw(t,e,a){let r;for(let n of a)if(!n.attrs||n.attrs(r||(r=H_(t.node.parent.firstChild,e))))return{parser:n.parser,bracketed:!0};return null}function jw(t=[],e=[]){let a=[],r=[],n=[],i=[];for(let s of t)(s.tag=="script"?a:s.tag=="style"?r:s.tag=="textarea"?n:i).push(s);let o=e.length?Object.create(null):null;for(let s of e)(o[s.name]||(o[s.name]=[])).push(s);return IO((s,l)=>{let u=s.type.id;if(u==N7)return Nw(s,l,a);if(u==X7)return Nw(s,l,r);if(u==q7)return Nw(s,l,n);if(u==Z_&&i.length){let c=s.node,f=c.firstChild,d=f&&__(f,l),h;if(d){for(let p of i)if(p.tag==d&&(!p.attrs||p.attrs(h||(h=H_(f,l))))){let m=c.lastChild,x=m.type.id==V7?m.from:c.to;if(x>f.to)return{parser:p.parser,overlay:[{from:f.to,to:x}]}}}}if(o&&u==V_){let c=s.node,f;if(f=c.firstChild){let d=o[l.read(f.from,f.to)];if(d)for(let h of d){if(h.tagName&&h.tagName!=__(c.parent,l))continue;let p=c.lastChild;if(p.type.id==Xw){let m=p.from+1,x=p.lastChild,g=p.to-(x&&x.isError?0:1);if(g>m)return{parser:h.parser,overlay:[{from:m,to:g}],bracketed:!0}}else if(p.type.id==U_)return{parser:h.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}var u6=148,G_=1,c6=149,f6=150,W_=2,d6=151,h6=3,p6=4,K_=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],m6=58,g6=40,J_=95,O6=91,e0=45,x6=46,y6=35,b6=37,v6=38,S6=92,w6=10,C6=42;function Ph(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Fw(t){return t>=48&&t<=57}function Y_(t){return Fw(t)||t>=97&&t<=102||t>=65&&t<=70}var e5=(t,e,a)=>(r,n)=>{for(let i=!1,o=0,s=0;;s++){let{next:l}=r;if(Ph(l)||l==e0||l==J_||i&&Fw(l))!i&&(l!=e0||s>0)&&(i=!0),o===s&&l==e0&&o++,r.advance();else if(l==S6&&r.peek(1)!=w6){if(r.advance(),Y_(r.next)){do r.advance();while(Y_(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();i=!0}else{i&&r.acceptToken(o==2&&n.canShift(W_)?e:l==g6?a:t);break}}},k6=new ea(e5(c6,W_,f6),{contextual:!0}),L6=new ea(e5(d6,h6,p6),{contextual:!0}),T6=new ea(t=>{if(K_.includes(t.peek(-1))){let{next:e}=t;(Ph(e)||e==J_||e==y6||e==x6||e==C6||e==O6||e==m6&&Ph(t.peek(1))||e==e0||e==v6)&&t.acceptToken(u6)}}),P6=new ea(t=>{if(!K_.includes(t.peek(-1))){let{next:e}=t;if(e==b6&&(t.advance(),t.acceptToken(G_)),Ph(e)){do t.advance();while(Ph(t.next)||Fw(t.next));t.acceptToken(G_)}}}),R6=Rn({"AtKeyword import charset namespace keyframes media supports font-feature-values":C.definitionKeyword,"from to selector scope MatchFlag":C.keyword,NamespaceName:C.namespace,KeyframeName:C.labelName,KeyframeRangeName:C.operatorKeyword,TagName:C.tagName,ClassName:C.className,PseudoClassName:C.constant(C.className),IdName:C.labelName,"FeatureName PropertyName":C.propertyName,AttributeName:C.attributeName,NumberLiteral:C.number,KeywordQuery:C.keyword,UnaryQueryOp:C.operatorKeyword,"CallTag ValueName FontName":C.atom,VariableName:C.variableName,Callee:C.operatorKeyword,Unit:C.unit,"UniversalSelector NestingSelector":C.definitionOperator,"MatchOp CompareOp":C.compareOperator,"ChildOp SiblingOp, LogicOp":C.logicOperator,BinOp:C.arithmeticOperator,Important:C.modifier,Comment:C.blockComment,ColorLiteral:C.color,"ParenthesizedContent StringLiteral":C.string,":":C.punctuation,"PseudoOp #":C.derefOperator,"; , |":C.separator,"( )":C.paren,"[ ]":C.squareBracket,"{ }":C.brace}),I6={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:158,"url-prefix":158,domain:158,regexp:158},A6={__proto__:null,or:104,and:104,not:112,only:112,layer:212},Q6={__proto__:null,selector:118,style:124,layer:208},M6={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},E6={__proto__:null,to:249},t5=As.deserialize({version:14,states:"MrQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FqO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#ERO'dQdO'#ETO'oQdO'#E[O'oQdO'#E_OOQP'#Fq'#FqO)RQhO'#FQOOQS'#Fp'#FpOOQS'#FT'#FTQYQdOOO)YQdO'#EeO*iQhO'#EkO)YQdO'#EmO*pQdO'#EoO*{QdO'#ErO)}QhO'#ExO+TQdO'#EzO+`QdO'#E}O+eQaO'#CfO+lQ`O'#EbO+qQ`O'#F}O+|QdO'#F}QOQ`OOP,WO&jO'#CaPOOO)CA`)CA`OOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,cQdO,59YO'_QdO,5:mO'dQdO,5:oO'oQdO,5:vO'oQdO,5:xO'oQdO,5:yO'oQdO'#F[O,nQ`O,58}O,vQdO'#EaOOQS,58},58}OOQP'#Cq'#CqOOQO'#EP'#EPOOQP,59Y,59YO,}Q`O,59YO-SQ`O,59YOOQP'#ES'#ESOOQP,5:m,5:mO-XQpO'#EUO-dQdO'#EVO-iQ`O'#EVO-nQpO,5:oO.XQaO,5:vO.oQaO,5:yOOQW'#D^'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bQ%`#vQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!n!o!p$[$^$`Q!d`U!ye!r$gQ#RiQ#y!cS#|!d$PQ$R!eQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!cW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#pQpPR#o!RQ!zeQ$f!rR%}$g",nodeNames:"\u26A0 Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:174,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[R6],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&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T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!}WOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!}WOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!r`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!r`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!r`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!r`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!r`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!r`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!r`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$rQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$fUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU#SQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[T6,P6,k6,L6,1,2,3,4,new Is("m~RRYZ[z{a~~g~aO$b~~dP!P!Qg~lO$c~~",28,155)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:150,get:t=>I6[t]||-1},{term:151,get:t=>A6[t]||-1},{term:4,get:t=>Q6[t]||-1},{term:28,get:t=>M6[t]||-1},{term:149,get:t=>E6[t]||-1}],tokenPrec:2444});var Hw=null;function Gw(){if(!Hw&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],a=new Set;for(let r in t)r!="cssText"&&r!="cssFloat"&&typeof t[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,n=>"-"+n.toLowerCase())),a.has(r)||(e.push(r),a.add(r)));Hw=e.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return Hw||[]}var a5=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),r5=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),D6=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),$6=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),lo=/^(\w[\w-]*|-\w[\w-]*|)$/,B6=/^-(-[\w-]*)?$/;function _6(t,e){var a;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let r=(a=t.parent)===null||a===void 0?void 0:a.firstChild;return r?.name!="Callee"?!1:e.sliceString(r.from,r.to)=="var"}var n5=new Jc,z6=["Declaration"];function N6(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function i5(t,e,a){if(e.to-e.from>4096){let r=n5.get(e);if(r)return r;let n=[],i=new Set,o=e.cursor(Me.IncludeAnonymous);if(o.firstChild())do for(let s of i5(t,o.node,a))i.has(s.label)||(i.add(s.label),n.push(s));while(o.nextSibling());return n5.set(e,n),n}else{let r=[],n=new Set;return e.cursor().iterate(i=>{var o;if(a(i)&&i.matchContext(z6)&&((o=i.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let s=t.sliceString(i.from,i.to);n.has(s)||(n.add(s),r.push({label:s,type:"variable"}))}}),r}}var X6=t=>e=>{let{state:a,pos:r}=e,n=Je(a).resolveInner(r,-1),i=n.type.isError&&n.from==n.to-1&&a.doc.sliceString(n.from,n.to)=="-";if(n.name=="PropertyName"||(i||n.name=="TagName")&&/^(Block|Styles)$/.test(n.resolve(n.to).name))return{from:n.from,options:Gw(),validFor:lo};if(n.name=="ValueName")return{from:n.from,options:r5,validFor:lo};if(n.name=="PseudoClassName")return{from:n.from,options:a5,validFor:lo};if(t(n)||(e.explicit||i)&&_6(n,a.doc))return{from:t(n)||i?n.from:r,options:i5(a.doc,N6(n),t),validFor:B6};if(n.name=="TagName"){for(let{parent:l}=n;l;l=l.parent)if(l.name=="Block")return{from:n.from,options:Gw(),validFor:lo};return{from:n.from,options:D6,validFor:lo}}if(n.name=="AtKeyword")return{from:n.from,options:$6,validFor:lo};if(!e.explicit)return null;let o=n.resolve(r),s=o.childBefore(r);return s&&s.name==":"&&o.name=="PseudoClassSelector"?{from:r,options:a5,validFor:lo}:s&&s.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:r,options:r5,validFor:lo}:o.name=="Block"||o.name=="Styles"?{from:r,options:Gw(),validFor:lo}:null},q6=X6(t=>t.name=="VariableName"),Rh=ks.define({name:"css",parser:t5.configure({props:[io.add({Declaration:tf()}),oo.add({"Block KeyframeList":BO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function o5(){return new In(Rh,Rh.data.of({autocomplete:q6}))}var Z6=316,V6=317,s5=1,U6=2,j6=3,F6=4,H6=318,G6=320,Y6=321,W6=5,K6=6,J6=0,Ww=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],l5=125,e9=59,Kw=47,t9=42,a9=43,r9=45,n9=60,i9=44,o9=63,s9=46,l9=91,u9=new sf({start:!1,shift(t,e){return e==W6||e==K6||e==G6?t:e==Y6},strict:!1}),c9=new ea((t,e)=>{let{next:a}=t;(a==l5||a==-1||e.context)&&t.acceptToken(H6)},{contextual:!0,fallback:!0}),f9=new ea((t,e)=>{let{next:a}=t,r;Ww.indexOf(a)>-1||a==Kw&&((r=t.peek(1))==Kw||r==t9)||a!=l5&&a!=e9&&a!=-1&&!e.context&&t.acceptToken(Z6)},{contextual:!0}),d9=new ea((t,e)=>{t.next==l9&&!e.context&&t.acceptToken(V6)},{contextual:!0}),h9=new ea((t,e)=>{let{next:a}=t;if(a==a9||a==r9){if(t.advance(),a==t.next){t.advance();let r=!e.context&&e.canShift(s5);t.acceptToken(r?s5:U6)}}else a==o9&&t.peek(1)==s9&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(j6))},{contextual:!0});function Yw(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}var p9=new ea((t,e)=>{if(t.next!=n9||!e.dialectEnabled(J6)||(t.advance(),t.next==Kw))return;let a=0;for(;Ww.indexOf(t.next)>-1;)t.advance(),a++;if(Yw(t.next,!0)){for(t.advance(),a++;Yw(t.next,!1);)t.advance(),a++;for(;Ww.indexOf(t.next)>-1;)t.advance(),a++;if(t.next==i9)return;for(let r=0;;r++){if(r==7){if(!Yw(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),a++}}t.acceptToken(F6,-a)}),m9=Rn({"get set async static":C.modifier,"for while do if else switch try catch finally return throw break continue default case defer":C.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":C.operatorKeyword,"let var const using function class extends":C.definitionKeyword,"import export from":C.moduleKeyword,"with debugger new":C.keyword,TemplateString:C.special(C.string),super:C.atom,BooleanLiteral:C.bool,this:C.self,null:C.null,Star:C.modifier,VariableName:C.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":C.function(C.variableName),VariableDefinition:C.definition(C.variableName),Label:C.labelName,PropertyName:C.propertyName,PrivatePropertyName:C.special(C.propertyName),"CallExpression/MemberExpression/PropertyName":C.function(C.propertyName),"FunctionDeclaration/VariableDefinition":C.function(C.definition(C.variableName)),"ClassDeclaration/VariableDefinition":C.definition(C.className),"NewExpression/VariableName":C.className,PropertyDefinition:C.definition(C.propertyName),PrivatePropertyDefinition:C.definition(C.special(C.propertyName)),UpdateOp:C.updateOperator,"LineComment Hashbang":C.lineComment,BlockComment:C.blockComment,Number:C.number,String:C.string,Escape:C.escape,ArithOp:C.arithmeticOperator,LogicOp:C.logicOperator,BitOp:C.bitwiseOperator,CompareOp:C.compareOperator,RegExp:C.regexp,Equals:C.definitionOperator,Arrow:C.function(C.punctuation),": Spread":C.punctuation,"( )":C.paren,"[ ]":C.squareBracket,"{ }":C.brace,"InterpolationStart InterpolationEnd":C.special(C.brace),".":C.derefOperator,", ;":C.separator,"@":C.meta,TypeName:C.typeName,TypeDefinition:C.definition(C.typeName),"type enum interface implements namespace module declare":C.definitionKeyword,"abstract global Privacy readonly override":C.modifier,"is keyof unique infer asserts":C.operatorKeyword,JSXAttributeValue:C.attributeValue,JSXText:C.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":C.angleBracket,"JSXIdentifier JSXNameSpacedName":C.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":C.attributeName,"JSXBuiltin/JSXIdentifier":C.standard(C.tagName)}),g9={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},O9={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},x9={__proto__:null,"<":193},u5=As.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[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rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"\u26A0 ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:u9,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[m9],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&h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!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[f9,d9,h9,p9,2,3,4,5,6,7,8,9,10,11,12,13,14,c9,new Is("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new Is("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>g9[t]||-1},{term:343,get:t=>O9[t]||-1},{term:95,get:t=>x9[t]||-1}],tokenPrec:15201});var h5=[Xa("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Xa("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Xa("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Xa("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Xa("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Xa(`try {
|
|
64
|
+
\${}
|
|
65
|
+
} catch (\${error}) {
|
|
66
|
+
\${}
|
|
67
|
+
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Xa("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Xa(`if (\${}) {
|
|
68
|
+
\${}
|
|
69
|
+
} else {
|
|
70
|
+
\${}
|
|
71
|
+
}`,{label:"if",detail:"/ else block",type:"keyword"}),Xa(`class \${name} {
|
|
72
|
+
constructor(\${params}) {
|
|
73
|
+
\${}
|
|
74
|
+
}
|
|
75
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),Xa('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Xa('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],y9=h5.concat([Xa("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Xa("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Xa("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),c5=new Jc,p5=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ih(t){return(e,a)=>{let r=e.node.getChild("VariableDefinition");return r&&a(r,t),!0}}var b9=["FunctionDeclaration"],v9={FunctionDeclaration:Ih("function"),ClassDeclaration:Ih("class"),ClassExpression:()=>!0,EnumDeclaration:Ih("constant"),TypeAliasDeclaration:Ih("type"),NamespaceDeclaration:Ih("namespace"),VariableDefinition(t,e){t.matchContext(b9)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function m5(t,e){let a=c5.get(e);if(a)return a;let r=[],n=!0;function i(o,s){let l=t.sliceString(o.from,o.to);r.push({label:l,type:s})}return e.cursor(Me.IncludeAnonymous).iterate(o=>{if(n)n=!1;else if(o.name){let s=v9[o.name];if(s&&s(o,i)||p5.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of m5(t,o.node))r.push(s);return!1}}),c5.set(e,r),r}var f5=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,g5=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function S9(t){let e=Je(t.state).resolveInner(t.pos,-1);if(g5.indexOf(e.name)>-1)return null;let a=e.name=="VariableName"||e.to-e.from<20&&f5.test(t.state.sliceDoc(e.from,e.to));if(!a&&!t.explicit)return null;let r=[];for(let n=e;n;n=n.parent)p5.has(n.name)&&(r=r.concat(m5(t.state.doc,n)));return{options:r,from:a?e.from:t.pos,validFor:f5}}var En=ks.define({name:"javascript",parser:u5.configure({props:[io.add({IfStatement:tf({except:/^\s*({|else\b)/}),TryStatement:tf({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Z$,SwitchBody:t=>{let e=t.textAfter,a=/^\s*\}/.test(e),r=/^\s*(case|default)\b/.test(e);return t.baseIndent+(a?0:r?1:2)*t.unit},Block:X$({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":tf({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),oo.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":BO,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let e=t.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let a=t.lastChild;return{from:e.to,to:a.type.isError?t.to:a.from}},"JSXSelfClosingTag JSXOpenTag"(t){var e;let a=(e=t.firstChild)===null||e===void 0?void 0:e.nextSibling,r=t.lastChild;return!a||a.type.isError?null:{from:a.to,to:r.type.isError?t.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),O5={test:t=>/^JSX/.test(t.name),facet:ph({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Jw=En.configure({dialect:"ts"},"typescript"),eC=En.configure({dialect:"jsx",props:[$O.add(t=>t.isTop?[O5]:void 0)]}),tC=En.configure({dialect:"jsx ts",props:[$O.add(t=>t.isTop?[O5]:void 0)]},"typescript"),x5=t=>({label:t,type:"keyword"}),y5="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(x5),w9=y5.concat(["declare","implements","private","protected","public"].map(x5));function b5(t={}){let e=t.jsx?t.typescript?tC:eC:t.typescript?Jw:En,a=t.typescript?y9.concat(w9):h5.concat(y5);return new In(e,[En.data.of({autocomplete:zB(g5,_B(a))}),En.data.of({autocomplete:S9}),t.jsx?L9:[]])}function C9(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function d5(t,e,a=t.length){for(let r=e?.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return t.sliceString(r.from,Math.min(r.to,a));return""}var k9=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),L9=oe.inputHandler.of((t,e,a,r,n)=>{if((k9?t.composing:t.compositionStarted)||t.state.readOnly||e!=a||r!=">"&&r!="/"||!En.isActiveAt(t.state,e,-1))return!1;let i=n(),{state:o}=i,s=o.changeByRange(l=>{var u;let{head:c}=l,f=Je(o).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(o.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:"</>"}};if(r=="/"&&f.name=="JSXStartCloseTag"){let h=f.parent,p=h.parent;if(p&&h.from==c-2&&((d=d5(o.doc,p.firstChild,c))||((u=p.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let m=`${d}>`;return{range:E.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(r==">"){let h=C9(f);if(h&&h.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=d5(o.doc,h,c)))return{range:l,changes:{from:c,insert:`</${d}>`}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var Ah=["_blank","_self","_top","_parent"],aC=["ascii","utf-8","utf-16","latin1","latin1"],rC=["get","post","put","delete"],nC=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Lr=["true","false"],ne={},T9={a:{attrs:{href:null,ping:null,type:null,media:null,target:Ah,hreflang:null}},abbr:ne,address:ne,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ne,aside:ne,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ne,base:{attrs:{href:null,target:Ah}},bdi:ne,bdo:ne,blockquote:{attrs:{cite:null}},body:ne,br:ne,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:nC,formmethod:rC,formnovalidate:["novalidate"],formtarget:Ah,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ne,center:ne,cite:ne,code:ne,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:ne,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ne,div:ne,dl:ne,dt:ne,em:ne,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ne,figure:ne,footer:ne,form:{attrs:{action:null,name:null,"accept-charset":aC,autocomplete:["on","off"],enctype:nC,method:rC,novalidate:["novalidate"],target:Ah}},h1:ne,h2:ne,h3:ne,h4:ne,h5:ne,h6:ne,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ne,hgroup:ne,hr:ne,html:{attrs:{manifest:null}},i:ne,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:nC,formmethod:rC,formnovalidate:["novalidate"],formtarget:Ah,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:ne,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ne,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:ne,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:aC,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:ne,noscript:ne,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:ne,param:{attrs:{name:null,value:null}},pre:ne,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ne,rt:ne,ruby:ne,samp:ne,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:aC}},section:ne,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ne,source:{attrs:{src:null,type:null,media:null}},span:ne,strong:ne,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ne,summary:ne,sup:ne,table:ne,tbody:ne,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ne,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:ne,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ne,time:{attrs:{datetime:null}},title:ne,tr:ne,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ne,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:ne},C5={accesskey:null,class:null,contenteditable:Lr,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Lr,autocorrect:Lr,autocapitalize:Lr,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Lr,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Lr,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Lr,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Lr,"aria-hidden":Lr,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Lr,"aria-multiselectable":Lr,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Lr,"aria-relevant":null,"aria-required":Lr,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},k5="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of k5)C5[t]=null;var Hl=class{constructor(e,a){this.tags={...T9,...e},this.globalAttrs={...C5,...a},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Hl.default=new Hl;function Gl(t,e,a=t.length){if(!e)return"";let r=e.firstChild,n=r&&r.getChild("TagName");return n?t.sliceString(n.from,Math.min(n.to,a)):""}function lf(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function L5(t,e,a){let r=a.tags[Gl(t,lf(e))];return r?.children||a.allTags}function iC(t,e){let a=[];for(let r=lf(e);r&&!r.type.isTop;r=lf(r.parent)){let n=Gl(t,r);if(n&&r.lastChild.name=="CloseTag")break;n&&a.indexOf(n)<0&&(e.name=="EndTag"||e.from>=r.firstChild.to)&&a.push(n)}return a}var T5=/^[:\-\.\w\u00b7-\uffff]*$/;function v5(t,e,a,r,n){let i=/\s*>/.test(t.sliceDoc(n,n+5))?"":">",o=lf(a,a.name=="StartTag"||a.name=="TagName");return{from:r,to:n,options:L5(t.doc,o,e).map(s=>({label:s,type:"type"})).concat(iC(t.doc,a).map((s,l)=>({label:"/"+s,apply:"/"+s+i,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function S5(t,e,a,r){let n=/\s*>/.test(t.sliceDoc(r,r+5))?"":">";return{from:a,to:r,options:iC(t.doc,e).map((i,o)=>({label:i,apply:i+n,type:"type",boost:99-o})),validFor:T5}}function P9(t,e,a,r){let n=[],i=0;for(let o of L5(t.doc,a,e))n.push({label:"<"+o,type:"type"});for(let o of iC(t.doc,a))n.push({label:"</"+o+">",type:"type",boost:99-i++});return{from:r,to:r,options:n,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function R9(t,e,a,r,n){let i=lf(a),o=i?e.tags[Gl(t.doc,i)]:null,s=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?s:s.length?s.concat(e.globalAttrNames):e.globalAttrNames;return{from:r,to:n,options:l.map(u=>({label:u,type:"property"})),validFor:T5}}function I9(t,e,a,r,n){var i;let o=(i=a.parent)===null||i===void 0?void 0:i.getChild("AttributeName"),s=[],l;if(o){let u=t.sliceDoc(o.from,o.to),c=e.globalAttrs[u];if(!c){let f=lf(a),d=f?e.tags[Gl(t.doc,f)]:null;c=d?.attrs&&d.attrs[u]}if(c){let f=t.sliceDoc(r,n).toLowerCase(),d='"',h='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",h=t.sliceDoc(n,n+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let p of c)s.push({label:p,apply:d+p+h,type:"constant"})}}return{from:r,to:n,options:s,validFor:l}}function P5(t,e){let{state:a,pos:r}=e,n=Je(a).resolveInner(r,-1),i=n.resolve(r);for(let o=r,s;i==n&&(s=n.childBefore(o));){let l=s.lastChild;if(!l||!l.type.isError||l.from<l.to)break;i=n=s,o=l.from}return n.name=="TagName"?n.parent&&/CloseTag$/.test(n.parent.name)?S5(a,n,n.from,r):v5(a,t,n,n.from,r):n.name=="StartTag"||n.name=="IncompleteTag"?v5(a,t,n,r,r):n.name=="StartCloseTag"||n.name=="IncompleteCloseTag"?S5(a,n,r,r):n.name=="OpenTag"||n.name=="SelfClosingTag"||n.name=="AttributeName"?R9(a,t,n,n.name=="AttributeName"?n.from:r,r):n.name=="Is"||n.name=="AttributeValue"||n.name=="UnquotedAttributeValue"?I9(a,t,n,n.name=="Is"?r:n.from,r):e.explicit&&(i.name=="Element"||i.name=="Text"||i.name=="Document")?P9(a,t,n,r):null}function R5(t){return P5(Hl.default,t)}function A9(t){let{extraTags:e,extraGlobalAttributes:a}=t,r=a||e?new Hl(e,a):Hl.default;return n=>P5(r,n)}var Q9=En.parser.configure({top:"SingleExpression"}),I5=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Jw.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:eC.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:tC.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:Q9},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:En.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Rh.parser}],A5=[{name:"style",parser:Rh.parser.configure({top:"Styles"})}].concat(k5.map(t=>({name:t,parser:En.parser}))),Q5=ks.define({name:"html",parser:F_.configure({props:[io.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,a;for(let r=t.node;;){let n=r.lastChild;if(!n||n.name!="Element"||n.to!=r.to)break;e=r=n}return e&&!((a=e.lastChild)&&(a.name=="CloseTag"||a.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),oo.add({Element(t){let e=t.firstChild,a=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:a.name=="CloseTag"?a.from:t.to}}}),ew.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),t0=Q5.configure({wrap:jw(I5,A5)});function M5(t={}){let e="",a;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(a=jw((t.nestedLanguages||[]).concat(I5),(t.nestedAttributes||[]).concat(A5)));let r=a?Q5.configure({wrap:a,dialect:e}):e?t0.configure({dialect:e}):t0;return new In(r,[t0.data.of({autocomplete:A9(t)}),t.autoCloseTags!==!1?E9:[],b5().support,o5().support])}var w5=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));function M9(t,e,a){for(var r;;){if(((r=e.lastChild)===null||r===void 0?void 0:r.name)!="CloseTag")return!1;let n=e.parent;if(!n||Gl(t,n)!=a)return!0;e=n}}var E9=oe.inputHandler.of((t,e,a,r,n)=>{if(t.composing||t.state.readOnly||e!=a||r!=">"&&r!="/"||!t0.isActiveAt(t.state,e,-1))return!1;let i=n(),{state:o}=i,s=o.changeByRange(l=>{var u;let c=o.doc.sliceString(l.from-1,l.to)==r,{head:f}=l,d=Je(o).resolveInner(f,-1),h;if(c&&r==">"&&d.name=="EndTag"){let p=d.parent;if((h=Gl(o.doc,p.parent,f))&&!w5.has(h)&&!M9(o.doc,p.parent,h)){let m=f+(o.doc.sliceString(f,f+1)===">"?1:0),x=`</${h}>`;return{range:l,changes:{from:f,to:m,insert:x}}}}else if(c&&r=="/"&&d.name=="IncompleteCloseTag"){let p=d.parent;if(d.from==f-2&&((u=p.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(h=Gl(o.doc,p,f))&&!w5.has(h)){let m=f+(o.doc.sliceString(f,f+1)===">"?1:0),x=`${h}>`;return{range:E.cursor(f+x.length,-1),changes:{from:f,to:m,insert:x}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var $5=ph({commentTokens:{block:{open:"<!--",close:"-->"}}}),B5=new fe,_5=O_.configure({props:[oo.add(t=>!t.is("Block")||t.is("Document")||lC(t)!=null||D9(t)?void 0:(e,a)=>({from:a.doc.lineAt(e.from).to,to:e.to})),B5.add(lC),io.add({Document:()=>null}),Cs.add({Document:$5})]});function lC(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function D9(t){return t.name=="OrderedList"||t.name=="BulletList"}function $9(t,e){let a=t;for(;;){let r=a.nextSibling,n;if(!r||(n=lC(r.type))!=null&&n<=e)break;a=r}return a.to}var B9=V$.of((t,e,a)=>{for(let r=Je(t).resolveInner(a,-1);r&&!(r.from<e);r=r.parent){let n=r.type.prop(B5);if(n==null)continue;let i=$9(r,n);if(i>a)return{from:a,to:i}}return null});function uC(t){return new Na($5,t,[],"markdown")}var _9=uC(_5),z9=_5.configure([b_,w_,S_,C_,{props:[oo.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),a0=uC(z9);function N9(t,e){return a=>{if(a&&t){let r=null;if(a=/\S*/.exec(a)[0],typeof t=="function"?r=t(a):r=hh.matchLanguageName(t,a,!0),r instanceof hh)return r.support?r.support.language.parser:fh.getSkippingParser(r.load());if(r)return r.parser}return e?e.parser:null}}var Qh=class{constructor(e,a,r,n,i,o,s){this.node=e,this.from=a,this.to=r,this.spaceBefore=n,this.spaceAfter=i,this.type=o,this.item=s}blank(e,a=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;r.length<e;)r+=" ";return r}else{for(let n=this.to-this.from-r.length-this.spaceAfter.length;n>0;n--)r+=" ";return r+(a?this.spaceAfter:"")}}marker(e,a){let r=this.node.name=="OrderedList"?String(+N5(this.item,e)[2]+a):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function z5(t,e){let a=[],r=[];for(let n=t;n;n=n.parent){if(n.name=="FencedCode")return r;(n.name=="ListItem"||n.name=="Blockquote")&&a.push(n)}for(let n=a.length-1;n>=0;n--){let i=a[n],o,s=e.lineAt(i.from),l=i.from-s.from;if(i.name=="Blockquote"&&(o=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new Qh(i,l,l+o[0].length,"",o[1],">",null));else if(i.name=="ListItem"&&i.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=o[3],c=o[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new Qh(i.parent,l,l+c,o[1],u,o[2],i))}else if(i.name=="ListItem"&&i.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=o[4],c=o[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),r.push(new Qh(i.parent,l,l+c,o[1],u,f,i))}}return r}function N5(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function oC(t,e,a,r=0){for(let n=-1,i=t;;){if(i.name=="ListItem"){let s=N5(i,e),l=+s[2];if(n>=0){if(l!=n+1)return;a.push({from:i.from+s[1].length,to:i.from+s[0].length,insert:String(n+2+r)})}n=l}let o=i.nextSibling;if(!o)break;i=o}}function cC(t,e){let a=/^[ \t]*/.exec(t)[0].length;if(!a||e.facet(Ls)!=" ")return t;let r=Sr(t,4,a),n="";for(let i=r;i>0;)i>=4?(n+=" ",i-=4):(n+=" ",i--);return n+t.slice(a)}var X9=(t={})=>({state:e,dispatch:a})=>{let r=Je(e),{doc:n}=e,i=null,o=e.changeByRange(s=>{if(!s.empty||!a0.isActiveAt(e,s.from,-1)&&!a0.isActiveAt(e,s.from,1))return i={range:s};let l=s.from,u=n.lineAt(l),c=z5(r.resolveInner(l,-1),n);for(;c.length&&c[c.length-1].from>l-u.from;)c.pop();if(!c.length)return i={range:s};let f=c[c.length-1];if(f.to-f.spaceAfter.length>l-u.from)return i={range:s};let d=l>=f.to-f.spaceAfter.length&&!/\S/.test(u.text.slice(f.to));if(f.item&&d){if(f.item.from<u.from&&!/^[\s>]*$/.test(u.text.slice(0,f.to)))return i={range:s};let g=f.node.firstChild,O=f.node.getChild("ListItem","ListItem");if(g.to>=l||O&&O.to<l||u.from>0&&!/[^\s>]/.test(n.lineAt(u.from-1).text)||t.nonTightLists===!1){let y=c.length>1?c[c.length-2]:null,b,v="";y&&y.item?(b=u.from+y.from,v=y.marker(n,1)):b=u.from+(y?y.to:0);let S=[{from:b,to:l,insert:v}];return f.node.name=="OrderedList"&&oC(f.item,n,S,-2),y&&y.node.name=="OrderedList"&&oC(y.item,n,S),{range:E.cursor(b+v.length),changes:S}}else{let y=D5(c,e,u);return{range:E.cursor(l+y.length+1),changes:{from:u.from,insert:y+e.lineBreak}}}}if(f.node.name=="Blockquote"&&d&&u.from){let g=n.lineAt(u.from-1),O=/>\s*$/.exec(g.text);if(O&&O.index==f.from){let y=e.changes([{from:g.from+O.index,to:g.to},{from:u.from+f.from,to:u.to}]);return{range:s.map(y),changes:y}}}let h=[];f.node.name=="OrderedList"&&oC(f.item,n,h);let p=f.item&&f.item.from<u.from,m="";if(!p||/^[\s\d.)\-+*>]*/.exec(u.text)[0].length>=f.to)for(let g=0,O=c.length-1;g<=O;g++)m+=g==O&&!p?c[g].marker(n,1):c[g].blank(g<O?Sr(u.text,4,c[g+1].from)-m.length:null);let x=l;for(;x>u.from&&/\s/.test(u.text.charAt(x-u.from-1));)x--;return m=cC(m,e),Z9(f.node,e.doc)&&(m=D5(c,e,u)+e.lineBreak+m),h.push({from:x,to:l,insert:e.lineBreak+m}),{range:E.cursor(x+m.length+1),changes:h}});return i?!1:(a(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},q9=X9();function E5(t){return t.name=="QuoteMark"||t.name=="ListMark"}function Z9(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let a=t.firstChild,r=t.getChild("ListItem","ListItem");if(!r)return!1;let n=e.lineAt(a.to),i=e.lineAt(r.from),o=/^[\s>]*$/.test(n.text);return n.number+(o?0:1)<i.number}function D5(t,e,a){let r="";for(let n=0,i=t.length-2;n<=i;n++)r+=t[n].blank(n<i?Sr(a.text,4,t[n+1].from)-r.length:null,n<i);return cC(r,e)}function V9(t,e){let a=t.resolveInner(e,-1),r=e;E5(a)&&(r=a.from,a=a.parent);for(let n;n=a.childBefore(r);)if(E5(n))r=n.from;else if(n.name=="OrderedList"||n.name=="BulletList")a=n.lastChild,r=a.to;else break;return a}var U9=({state:t,dispatch:e})=>{let a=Je(t),r=null,n=t.changeByRange(i=>{let o=i.from,{doc:s}=t;if(i.empty&&a0.isActiveAt(t,i.from)){let l=s.lineAt(o),u=z5(V9(a,o),s);if(u.length){let c=u[u.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-l.from>f&&!/\S/.test(l.text.slice(f,o-l.from)))return{range:E.cursor(l.from+f),changes:{from:l.from+f,to:o}};if(o-l.from==f&&(c.item&&l.from<=c.item.from||/^[\s>]*$/.test(l.text.slice(0,c.to)))){let d=l.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(l.text.slice(c.from,c.to))){let h=c.blank(Sr(l.text,4,c.to)-Sr(l.text,4,c.from));return d==l.from&&(h=cC(h,t)),{range:E.cursor(d+h.length),changes:{from:d,to:l.from+c.to,insert:h}}}if(d<o)return{range:E.cursor(d),changes:{from:d,to:o}}}}}return r={range:i}});return r?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"delete"})),!0)},j9=[{key:"Enter",run:q9},{key:"Backspace",run:U9}],X5=M5({matchClosingTags:!1});function q5(t={}){let{codeLanguages:e,defaultCodeLanguage:a,addKeymap:r=!0,base:{parser:n}=_9,completeHTMLTags:i=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=X5}=t;if(!(n instanceof Ch))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=t.extensions?[t.extensions]:[],u=[s.support,B9],c;o&&u.push(Y9),a instanceof In?(u.push(a.support),c=a.language):a&&(c=a);let f=e||c?N9(e,c):void 0;l.push(x_({codeParser:f,htmlParser:s.language.parser})),r&&u.push(mi.high(zl.of(j9)));let d=uC(n.configure(l));return i&&u.push(d.data.of({autocomplete:F9})),new In(d,u)}function F9(t){let{state:e,pos:a}=t,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(a-25,a));if(!r)return null;let n=Je(e).resolveInner(a,-1);for(;n&&!n.type.isTop;){if(n.name=="CodeBlock"||n.name=="FencedCode"||n.name=="ProcessingInstructionBlock"||n.name=="CommentBlock"||n.name=="Link"||n.name=="Image")return null;n=n.parent}return{from:a-r[0].length,to:a,options:H9(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var sC=null;function H9(){if(sC)return sC;let t=R5(new VO(xt.create({extensions:X5}),0,!0));return sC=t?t.options:[]}var G9=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Y9=oe.domEventHandlers({paste:(t,e)=>{var a;let{main:r}=e.state.selection;if(r.empty)return!1;let n=(a=t.clipboardData)===null||a===void 0?void 0:a.getData("text/plain");if(!n||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(n)||(/^www\./.test(n)&&(n="https://"+n),!a0.isActiveAt(e.state,r.from,1)))return!1;let i=Je(e.state),o=!1;return i.iterate({from:r.from,to:r.to,enter:s=>{(s.from>r.from||G9.test(s.name))&&(o=!0)},leave:s=>{s.to<r.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:r.from,insert:"["},{from:r.to,insert:`](${n})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}});function pC(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Kl=pC();function K5(t){Kl=t}var Yl={exec:()=>null};function uf(t){let e=[];return a=>{let r=Math.max(0,Math.min(3,a-1)),n=e[r];return n||(n=t(r),e[r]=n),n}}function ye(t,e=""){let a=typeof t=="string"?t:t.source,r={replace:(n,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(wa.caret,"$1"),a=a.replace(n,o),r},getRegex:()=>new RegExp(a,e)};return r}var W9=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),wa={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:uf(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:uf(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:uf(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:uf(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:uf(t=>new RegExp(`^ {0,${t}}(?:</?(?:${$h})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:uf(t=>new RegExp(`^ {0,${t}}>`))},K9=/^(?:[ \t]*(?:\n|$))+/,J9=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,e8=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Dh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,t8=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mC=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,J5=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ez=ye(J5).replace(/bull/g,mC).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),a8=ye(J5).replace(/bull/g,mC).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gC=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,r8=/^[^\n]+/,OC=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,n8=ye(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",OC).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),i8=ye(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,mC).getRegex(),$h="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xC=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,o8=ye("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",xC).replace("tag",$h).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tz=t=>ye(gC).replace("hr",Dh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$h).getRegex(),s8=tz(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),l8=tz(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),u8=ye(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",l8).getRegex(),yC={blockquote:u8,code:J9,def:n8,fences:e8,heading:t8,hr:Dh,html:o8,lheading:ez,list:i8,newline:K9,paragraph:s8,table:Yl,text:r8},Z5=ye("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Dh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$h).getRegex(),c8={...yC,lheading:a8,table:Z5,paragraph:ye(gC).replace("hr",Dh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Z5).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$h).getRegex()},f8={...yC,html:ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xC).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Yl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ye(gC).replace("hr",Dh).replace("heading",` *#{1,6} *[^
|
|
76
|
+
]`).replace("lheading",ez).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},d8=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,h8=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,az=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,p8=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,uo=/[\p{P}\p{S}]/u,cf=/[\s\p{P}\p{S}]/u,Bh=/[^\s\p{P}\p{S}]/u,m8=ye(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,cf).getRegex(),g8=/[\p{Pi}\p{Ps}"']/u,rz=/(?!~)[\p{P}\p{S}]/u,O8=/(?!~)[\s\p{P}\p{S}]/u,x8=/(?:[^\s\p{P}\p{S}]|~)/u,y8=ye(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",W9?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),nz=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,b8=ye(nz,"u").replace(/punct/g,uo).getRegex(),v8=ye(nz,"u").replace(/punct/g,rz).getRegex(),S8=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,w8=ye(S8,"u").replace(/openQuote/g,g8).replace(/punct/g,uo).getRegex(),iz="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",C8=ye(iz,"gu").replace(/notPunctSpace/g,Bh).replace(/punctSpace/g,cf).replace(/punct/g,uo).getRegex(),k8=ye(iz,"gu").replace(/notPunctSpace/g,x8).replace(/punctSpace/g,O8).replace(/punct/g,rz).getRegex(),L8="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",T8=ye(L8,"gu").replace(/notPunctSpace/g,Bh).replace(/punctSpace/g,cf).replace(/punct/g,uo).getRegex(),P8=ye("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Bh).replace(/punctSpace/g,cf).replace(/punct/g,uo).getRegex(),R8="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",I8=ye(R8,"gu").replace(/notPunctSpace/g,Bh).replace(/punctSpace/g,cf).replace(/punct/g,uo).getRegex(),A8=ye(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,uo).getRegex(),Q8="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",M8=ye(Q8,"gu").replace(/notPunctSpace/g,Bh).replace(/punctSpace/g,cf).replace(/punct/g,uo).getRegex(),E8=ye(/\\(punct)/,"gu").replace(/punct/g,uo).getRegex(),D8=ye(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),$8=ye(xC).replace("(?:-->|$)","-->").getRegex(),B8=ye("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",$8).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),oz=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,n0=ye(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",oz).getRegex(),_8=ye(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",n0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),z8=ye(/^!?\[(label)\]\[(ref)\]/).replace("label",n0).replace("ref",OC).getRegex(),N8=ye(/^!?\[(ref)\](?:\[\])?/).replace("ref",OC).getRegex(),V5=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,X8=ye(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",oz).getRegex(),q8=ye("reflink|nolink(?!\\()","g").replace("reflink",ye(/^!?\[(label)\]\[(ref)\]/).replace("label",X8).replace("ref",V5).getRegex()).replace("nolink",ye(/^!?\[(ref)\](?:\[\])?/).replace("ref",V5).getRegex()).getRegex(),U5=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,bC={_backpedal:Yl,anyPunctuation:E8,autolink:D8,blockSkip:y8,br:az,code:h8,del:Yl,delLDelim:Yl,delRDelim:Yl,emStrongLDelim:b8,emStrongRDelimAst:C8,emStrongRDelimUnd:P8,escape:d8,link:_8,nolink:N8,punctuation:m8,reflink:z8,reflinkSearch:q8,tag:B8,text:p8,url:Yl},Z8={...bC,emStrongLDelim:w8,emStrongRDelimAst:T8,emStrongRDelimUnd:I8,link:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",n0).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n0).getRegex()},fC={...bC,emStrongRDelimAst:k8,emStrongLDelim:v8,delLDelim:A8,delRDelim:M8,url:ye(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",U5).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ye(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",U5).getRegex()},V8={...fC,br:ye(az).replace("{2,}","*").getRegex(),text:ye(fC.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},r0={normal:yC,gfm:c8,pedantic:f8},Mh={normal:bC,gfm:fC,breaks:V8,pedantic:Z8},U8={"&":"&","<":"<",">":">",'"':""","'":"'"},j5=t=>U8[t];function Tr(t,e){if(e){if(wa.escapeTest.test(t))return t.replace(wa.escapeReplace,j5)}else if(wa.escapeTestNoEncode.test(t))return t.replace(wa.escapeReplaceNoEncode,j5);return t}function F5(t){try{t=encodeURI(t).replace(wa.percentDecode,"%")}catch{return null}return t}function H5(t,e){let a=t.replace(wa.findPipe,(i,o,s)=>{let l=!1,u=o;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),r=a.split(wa.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(wa.slashPipe,"|");return r}function Qs(t,e,a){let r=t.length;if(r===0)return"";let n=0;for(;n<r;){let i=t.charAt(r-n-1);if(i===e&&!a)n++;else if(i!==e&&a)n++;else break}return t.slice(0,r-n)}function G5(t){let e=t.split(`
|
|
77
|
+
`),a=e.length-1;for(;a>=0&&wa.blankLine.test(e[a]);)a--;return e.length-a<=2?t:e.slice(0,a+1).join(`
|
|
78
|
+
`)}function i0(t){return t.toLowerCase().toUpperCase().toLowerCase()}function j8(t,e){if(t.indexOf(e[1])===-1)return-1;let a=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])a++;else if(t[r]===e[1]&&(a--,a<0))return r;return a>0?-2:-1}function F8(t,e=0){let a=e,r="";for(let n of t)if(n===" "){let i=4-a%4;r+=" ".repeat(i),a+=i}else r+=n,a++;return r}function Y5(t,e,a,r,n){let i=e.href,o=e.title||null,s=t[1].replace(n.other.outputLinkReplace,"$1"),l=t[0].charAt(0)==="!";r.state.inLink=!0;let u=r.state.linkEmitted,c=r.state.inRawBlock;r.state.linkEmitted=!1;let f=r.inlineTokens(s),d=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=!1,!l){if(d){r.state.inRawBlock=c;return}r.state.linkEmitted=!0}return{type:l?"image":"link",raw:a,href:i,title:o,text:s,tokens:f}}function H8(t,e,a){let r=t.match(a.other.indentCodeCompensation);if(r===null)return e;let n=r[1];return e.split(`
|
|
79
|
+
`).map(i=>{let o=i.match(a.other.beginningSpace);if(o===null)return i;let[s]=o;return i.slice(Math.min(s.length,n.length))}).join(`
|
|
80
|
+
`)}function W5(t,e,a,r){if(!e.includes("<"))return!1;for(let n=0;n<e.length;n++){if(e[n]==="\\"){n++;continue}if(e[n]==="`"){let s=r.inline.code.exec(e.slice(n));if(s){n+=s[0].length-1;continue}}if(e[n]!=="<")continue;let i=t.slice(a+n),o=r.inline.tag.exec(i)||r.inline.autolink.exec(i);if(o){if(o[0].length>e.length-n)return!0;n+=o[0].length-1}}return!1}var o0=class{options;rules;lexer;constructor(t){this.options=t||Kl}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let a=this.options.pedantic?e[0]:G5(e[0]),r=a.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:a,codeBlockStyle:"indented",text:r}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let a=e[0],r=H8(a,e[3]||"",this.rules);return{type:"code",raw:a,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let a=e[2].trim();if(this.rules.other.endingHash.test(a)){let r=Qs(a,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceTabChar.test(r))&&(a=r.trim())}return{type:"heading",raw:Qs(e[0],`
|
|
81
|
+
`),depth:e[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Qs(e[0],`
|
|
82
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let a=Qs(e[0],`
|
|
83
|
+
`).split(`
|
|
84
|
+
`),r="",n="",i=[];for(;a.length>0;){let o=!1,s=[],l;for(l=0;l<a.length;l++)if(this.rules.other.blockquoteStart.test(a[l]))s.push(a[l]),o=!0;else if(!o)s.push(a[l]);else break;a=a.slice(l);let u=s.join(`
|
|
85
|
+
`),c=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
86
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
87
|
+
${u}`:u,n=n?`${n}
|
|
88
|
+
${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=f,a.length===0)break;let d=i.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let h=d,p=a.join(`
|
|
89
|
+
`),m=h.raw+`
|
|
90
|
+
`+p.replace(this.rules.other.blockquoteSetextReplace2,""),x=this.blockquote(m);i[i.length-1]=x,r=`${r}
|
|
91
|
+
${p}`,n=n.substring(0,n.length-h.text.length)+x.text;break}else if(d?.type==="list"){let h=d,p=h.raw+`
|
|
92
|
+
`+a.join(`
|
|
93
|
+
`),m=this.list(p);i[i.length-1]=m,r=r.substring(0,r.length-d.raw.length)+m.raw,n=n.substring(0,n.length-h.raw.length)+m.raw,a=p.substring(i.at(-1).raw.length).split(`
|
|
94
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let a=e[1].trim(),r=a.length>1,n={type:"list",raw:"",ordered:r,start:r?+a.slice(0,-1):"",loose:!1,items:[]};a=r?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=r?a:"[*+-]");let i=this.rules.other.listItemRegex(a),o=!1;for(;t;){let l=!1,u="",c="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;u=e[0],t=t.substring(u.length);let f=F8(e[2].split(`
|
|
95
|
+
`,1)[0],e[1].length),d=t.split(`
|
|
96
|
+
`,1)[0],h=!f.trim(),p=0;if(this.options.pedantic?(p=2,c=f.trimStart()):h?p=e[1].length+1:(p=f.search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=f.slice(p),p+=e[1].length),h&&this.rules.other.blankLine.test(d)&&(u+=d+`
|
|
97
|
+
`,t=t.substring(d.length+1),l=!0),!l){let m=this.rules.other.nextBulletRegex(p),x=this.rules.other.hrRegex(p),g=this.rules.other.fencesBeginRegex(p),O=this.rules.other.headingBeginRegex(p),y=this.rules.other.htmlBeginRegex(p),b=this.rules.other.blockquoteBeginRegex(p);for(;t;){let v=t.split(`
|
|
98
|
+
`,1)[0],S;if(d=v,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),S=d):S=d.replace(this.rules.other.tabCharGlobal," "),g.test(d)||O.test(d)||y.test(d)||b.test(d)||m.test(d)||x.test(d))break;if(S.search(this.rules.other.nonSpaceChar)>=p||!d.trim())c+=`
|
|
99
|
+
`+S.slice(p);else{if(h||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||g.test(f)||O.test(f)||x.test(f))break;c+=`
|
|
100
|
+
`+d}h=!d.trim(),u+=v+`
|
|
101
|
+
`,t=t.substring(v.length+1),f=S.slice(p)}}n.loose||(o?n.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0)),n.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),n.raw+=u}let s=n.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let l of n.items)if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),!n.loose){let u=l.tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));n.loose=c}for(let l of n.items){let u=l.tokens[0];if(l.task&&(u?.type==="text"||u?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let f={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=f.checked,n.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=f.raw+l.tokens[0].raw,l.tokens[0].text=f.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(f)):l.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):l.tokens.unshift(f)}}else l.task&&(l.task=!1)}if(n.loose)for(let l of n.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return n}}html(t){let e=this.rules.block.html.exec(t);if(e){let a=G5(e[0]);return{type:"html",block:!0,raw:a,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:a}}}def(t){let e=this.rules.block.def.exec(t);if(e){let a=i0(e[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:a,raw:Qs(e[0],`
|
|
102
|
+
`),href:r,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let a=H5(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
103
|
+
`):[],i={type:"table",raw:Qs(e[0],`
|
|
104
|
+
`),header:[],align:[],rows:[]};if(a.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<a.length;o++)i.header.push({text:a[o],tokens:this.lexer.inline(a[o]),header:!0,align:i.align[o]});for(let o of n)i.rows.push(H5(o,i.header.length).map((s,l)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:i.align[l]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let a=e[1].trim();return{type:"heading",raw:Qs(e[0],`
|
|
105
|
+
`),depth:e[2].charAt(0)==="="?1:2,text:a,tokens:this.lexer.inline(a)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let a=e[1].charAt(e[1].length-1)===`
|
|
106
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let a=e[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&W5(t,e[1],a,this.rules))return;let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let o=Qs(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{let o=j8(e[2],"()");if(o===-2)return;if(o>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],i=o[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),Y5(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let r=a[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&W5(t,a[1],r,this.rules))return;let n=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[i0(n)];if(!i){let o=a[0].charAt(0);return{type:"text",raw:o,text:o}}return Y5(a,i,a[0],this.lexer,this.rules)}}emStrong(t,e,a=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!a||this.rules.inline.punctuation.exec(a))){let n=[...r[0]].length-1,i,o,s=n,l=0,u=r[0][0],c=a===u,f=u==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,e=e.slice(-1*t.length+n);(r=f.exec(e))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){s+=o;continue}else if(r[5]||r[6]){if(n%3&&!((n+o)%3)){l+=o;continue}if(c)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+l);let d=[...r[0]][0].length,h=t.slice(0,n+r.index+d+o);if(Math.min(n,o)%2){let m=h.slice(1,-1);return{type:"em",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}let p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let a=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(a),n=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return r&&n&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:e[0],text:a}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,a=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!a||this.rules.inline.punctuation.exec(a))){let n=[...r[0]].length-1,i,o,s=n,l=this.rules.inline.delRDelim;for(l.lastIndex=0,e=e.slice(-1*t.length+n);(r=l.exec(e))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(o=[...i].length,o!==n))continue;if(r[3]||r[4]){s+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s);let u=[...r[0]][0].length,c=t.slice(0,n+r.index+u+o),f=c.slice(n,-n);return{type:"del",raw:c,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let a,r;return e[2]==="@"?(a=e[1],r="mailto:"+a):(a=e[1],r=a),{type:"link",raw:e[0],text:a,href:r,autolink:!0,tokens:[{type:"text",raw:a,text:a}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let a,r;if(e[2]==="@")a=e[0],r="mailto:"+a;else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);a=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:a,href:r,autolink:!0,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let a=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:a}}}},Dn=class dC{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Kl,this.options.tokenizer=this.options.tokenizer||new o0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let a={other:wa,block:r0.normal,inline:Mh.normal};this.options.pedantic?(a.block=r0.pedantic,a.inline=Mh.pedantic):this.options.gfm&&(a.block=r0.gfm,this.options.breaks?a.inline=Mh.breaks:a.inline=Mh.gfm),this.tokenizer.rules=a}static get rules(){return{block:r0,inline:Mh}}static lex(e,a){return new dC(a).lex(e)}static lexInline(e,a){return new dC(a).inlineTokens(e)}lex(e){e=e.replace(wa.carriageReturn,`
|
|
107
|
+
`),this.blockTokens(e,this.tokens);for(let a=0;a<this.inlineQueue.length;a++){let r=this.inlineQueue[a];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,a=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(wa.tabCharGlobal," ").replace(wa.spaceLine,""));let n=1/0;for(;e;){if(e.length<n)n=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},e,a))?(e=e.substring(i.raw.length),a.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let s=a.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
|
|
108
|
+
`:a.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let s=a.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
109
|
+
`)?"":`
|
|
110
|
+
`)+i.raw,s.text+=`
|
|
111
|
+
`+i.text,this.inlineQueue.at(-1).src=s.text):a.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),a.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),a.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),a.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),a.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),a.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),a.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let s=a.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
112
|
+
`)?"":`
|
|
113
|
+
`)+i.raw,s.text+=`
|
|
114
|
+
`+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},a.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),a.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),a.push(i);continue}let o=e;if(this.options.extensions?.startBlock){let s=1/0,l=e.slice(1),u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},l),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(o=e.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let s=a.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
115
|
+
`)?"":`
|
|
116
|
+
`)+i.raw,s.text+=`
|
|
117
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):a.push(i),r=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let s=a.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
118
|
+
`)?"":`
|
|
119
|
+
`)+i.raw,s.text+=`
|
|
120
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):a.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,a}inline(e,a=[]){return this.inlineQueue.push({src:e,tokens:a}),a}linkInText(e){if(!e.includes("["))return!1;let a=this.tokenizer.rules.inline.link;for(let r of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(a.test(r[0])&&e.charAt(r.index-1)!=="!")return!0;for(let r of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let n=r[0],i=n.lastIndexOf("[");if(!(n.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,i0(n.slice(i+1,-1))))&&!(i>1&&this.linkInText(n.slice(1,i-1))))return!0}return!1}inlineTokens(e,a=[]){this.tokenizer.lexer=this;let r=e;if(this.tokens.links&&e.includes("[")){let s=this.tokenizer.rules.inline.reflinkSearch,l=u=>{let c=u.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,i0(u.slice(c+1,-1))))return u;if(c>1&&u.charAt(0)!=="!"){let f=u.slice(1,c-1);if(this.linkInText(f))return"["+f.replace(s,l)+"]["+"a".repeat(u.length-c-2)+"]"}return"["+"a".repeat(u.length-2)+"]"};r=r.replace(s,l)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,s=>"+".repeat(s.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(s,l,u)=>{let c=u?u.length:0;return s.slice(0,c)+"["+"a".repeat(s.length-c-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let n=!1,i="",o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}n||(i=""),n=!1;let s;if(this.options.extensions?.inline?.some(u=>(s=u.call({lexer:this},e,a))?(e=e.substring(s.raw.length),a.push(s),!0):!1))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);let u=a.at(-1);s.type==="text"&&u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):a.push(s);continue}if(s=this.tokenizer.emStrong(e,r,i)){e=e.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.del(e,r,i)){e=e.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),a.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),a.push(s);continue}let l=e;if(this.options.extensions?.startInline){let u=1/0,c=e.slice(1),f;this.options.extensions.startInline.forEach(d=>{f=d.call({lexer:this},c),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(s=this.tokenizer.inlineText(l)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(i=s.raw.slice(-1)),n=!0;let u=a.at(-1);u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):a.push(s);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return a}infiniteLoopError(e){let a="Infinite loop on byte: "+e;if(this.options.silent)console.error(a);else throw new Error(a)}},s0=class{options;parser;constructor(t){this.options=t||Kl}space(t){return""}code({text:t,lang:e,escaped:a}){let r=(e||"").match(wa.notSpaceStart)?.[0],n=t?t.replace(wa.endingNewline,"")+`
|
|
121
|
+
`:"";return r?'<pre><code class="language-'+Tr(r)+'">'+(a?n:Tr(n,!0))+`</code></pre>
|
|
122
|
+
`:"<pre><code>"+(a?n:Tr(n,!0))+`</code></pre>
|
|
123
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
124
|
+
${this.parser.parse(t)}</blockquote>
|
|
125
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
126
|
+
`}hr(t){return`<hr>
|
|
127
|
+
`}list(t){let e=t.ordered,a=t.start,r="";for(let o=0;o<t.items.length;o++){let s=t.items[o];r+=this.listitem(s)}let n=e?"ol":"ul",i=e&&a!==1?' start="'+a+'"':"";return"<"+n+i+`>
|
|
128
|
+
`+r+"</"+n+`>
|
|
129
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
130
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
131
|
+
`}table(t){let e="",a="";for(let n=0;n<t.header.length;n++)a+=this.tablecell(t.header[n]);e+=this.tablerow({text:a});let r="";for(let n=0;n<t.rows.length;n++){let i=t.rows[n];a="";for(let o=0;o<i.length;o++)a+=this.tablecell(i[o]);r+=this.tablerow({text:a})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
132
|
+
<thead>
|
|
133
|
+
`+e+`</thead>
|
|
134
|
+
`+r+`</table>
|
|
135
|
+
`}tablerow({text:t}){return`<tr>
|
|
136
|
+
${t}</tr>
|
|
137
|
+
`}tablecell(t){let e=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+e+`</${a}>
|
|
138
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Tr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,text:a,tokens:r,autolink:n}){let i=n?Tr(a,!0):this.parser.parseInline(r),o=F5(t);if(o===null)return i;t=Tr(o,n);let s='<a href="'+t+'"';return e&&(s+=' title="'+Tr(e)+'"'),s+=">"+i+"</a>",s}image({href:t,title:e,text:a,tokens:r}){r&&(a=this.parser.parseInline(r,this.parser.textRenderer));let n=F5(t);if(n===null)return Tr(a);t=n;let i=`<img src="${Tr(t)}" alt="${Tr(a)}"`;return e&&(i+=` title="${Tr(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Tr(t.text)}},vC=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},$n=class hC{options;renderer;textRenderer;constructor(e){this.options=e||Kl,this.options.renderer=this.options.renderer||new s0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new vC}static parse(e,a){return new hC(a).parse(e)}static parseInline(e,a){return new hC(a).parseInline(e)}parse(e){this.renderer.parser=this;let a="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let o=n,s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(o.type)){a+=s||"";continue}}let i=n;switch(i.type){case"space":{a+=this.renderer.space(i);break}case"hr":{a+=this.renderer.hr(i);break}case"heading":{a+=this.renderer.heading(i);break}case"code":{a+=this.renderer.code(i);break}case"table":{a+=this.renderer.table(i);break}case"blockquote":{a+=this.renderer.blockquote(i);break}case"list":{a+=this.renderer.list(i);break}case"checkbox":{a+=this.renderer.checkbox(i);break}case"html":{a+=this.renderer.html(i);break}case"def":{a+=this.renderer.def(i);break}case"paragraph":{a+=this.renderer.paragraph(i);break}case"text":{a+=this.renderer.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return a}parseInline(e,a=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions?.renderers?.[i.type]){let s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){r+=s||"";continue}}let o=i;switch(o.type){case"escape":{r+=a.text(o);break}case"html":{r+=a.html(o);break}case"link":{r+=a.link(o);break}case"image":{r+=a.image(o);break}case"checkbox":{r+=a.checkbox(o);break}case"strong":{r+=a.strong(o);break}case"em":{r+=a.em(o);break}case"codespan":{r+=a.codespan(o);break}case"br":{r+=a.br(o);break}case"del":{r+=a.del(o);break}case"text":{r+=a.text(o);break}default:{let s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}},Eh=class{options;block;constructor(t){this.options=t||Kl}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?Dn.lex:Dn.lexInline}provideParser(t=this.block){return t?$n.parse:$n.parseInline}},SC=class{defaults=pC();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=$n;Renderer=s0;TextRenderer=vC;Lexer=Dn;Tokenizer=o0;Hooks=Eh;constructor(...t){this.use(...t)}walkTokens(t,e){let a=[];for(let r of t)switch(a=a.concat(e.call(this,r)),r.type){case"table":{let n=r;for(let i of n.header)a=a.concat(this.walkTokens(i.tokens,e));for(let i of n.rows)for(let o of i)a=a.concat(this.walkTokens(o.tokens,e));break}case"list":{let n=r;a=a.concat(this.walkTokens(n.items,e));break}default:{let n=r;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(i=>{let o=n[i].flat(1/0);a=a.concat(this.walkTokens(o,e))}):n.tokens&&(a=a.concat(this.walkTokens(n.tokens,e)))}}return a}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let r={...a};if(r.async=this.defaults.async||r.async||!1,a.extensions&&(a.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let i=e.renderers[n.name];i?e.renderers[n.name]=function(...o){let s=n.renderer.apply(this,o);return s===!1&&(s=i.apply(this,o)),s}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[n.level];i?i.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),r.extensions=e),a.renderer){let n=this.defaults.renderer||new s0(this.defaults);for(let i in a.renderer){if(!(i in n))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,s=a.renderer[o],l=n[o];n[o]=(...u)=>{let c=s.apply(n,u);return c===!1&&(c=l.apply(n,u)),c||""}}r.renderer=n}if(a.tokenizer){let n=this.defaults.tokenizer||new o0(this.defaults);for(let i in a.tokenizer){if(!(i in n))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,s=a.tokenizer[o],l=n[o];n[o]=(...u)=>{let c=s.apply(n,u);return c===!1&&(c=l.apply(n,u)),c}}r.tokenizer=n}if(a.hooks){let n=this.defaults.hooks||new Eh;for(let i in a.hooks){if(!(i in n))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,s=a.hooks[o],l=n[o];Eh.passThroughHooks.has(i)?n[o]=u=>{if(this.defaults.async&&Eh.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await s.call(n,u);return l.call(n,f)})();let c=s.call(n,u);return l.call(n,c)}:n[o]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await s.apply(n,u);return f===!1&&(f=await l.apply(n,u)),f})();let c=s.apply(n,u);return c===!1&&(c=l.apply(n,u)),c}}r.hooks=n}if(a.walkTokens){let n=this.defaults.walkTokens,i=a.walkTokens;r.walkTokens=function(o){let s=[];return s.push(i.call(this,o)),n&&(s=s.concat(n.call(this,o))),s}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Dn.lex(t,e??this.defaults)}parser(t,e){return $n.parse(t,e??this.defaults)}parseMarkdown(t){return(e,a)=>{let r={...a},n={...this.defaults,...r},i=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let o=n.hooks?await n.hooks.preprocess(e):e,s=await(n.hooks?await n.hooks.provideLexer(t):t?Dn.lex:Dn.lexInline)(o,n),l=n.hooks?await n.hooks.processAllTokens(s):s;n.walkTokens&&await Promise.all(this.walkTokens(l,n.walkTokens));let u=await(n.hooks?await n.hooks.provideParser(t):t?$n.parse:$n.parseInline)(l,n);return n.hooks?await n.hooks.postprocess(u):u})().catch(i);try{n.hooks&&(e=n.hooks.preprocess(e));let o=(n.hooks?n.hooks.provideLexer(t):t?Dn.lex:Dn.lexInline)(e,n);n.hooks&&(o=n.hooks.processAllTokens(o)),n.walkTokens&&this.walkTokens(o,n.walkTokens);let s=(n.hooks?n.hooks.provideParser(t):t?$n.parse:$n.parseInline)(o,n);return n.hooks&&(s=n.hooks.postprocess(s)),s}catch(o){return i(o)}}}onError(t,e){return a=>{if(a.message+=`
|
|
139
|
+
Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+Tr(a.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(a);throw a}}},Wl=new SC;function it(t,e){return Wl.parse(t,e)}it.options=it.setOptions=function(t){return Wl.setOptions(t),it.defaults=Wl.defaults,K5(it.defaults),it};it.getDefaults=pC;it.defaults=Kl;function G8(...t){return Wl.use(...t),it.defaults=Wl.defaults,K5(it.defaults),it}it.use=G8;it.walkTokens=function(t,e){return Wl.walkTokens(t,e)};it.parseInline=Wl.parseInline;it.Parser=$n;it.parser=$n.parse;it.Renderer=s0;it.TextRenderer=vC;it.Lexer=Dn;it.lexer=Dn.lex;it.Tokenizer=o0;it.Hooks=Eh;it.parse=it;var Qse=it.options,Mse=it.setOptions,Ese=it.walkTokens,Dse=it.parseInline;var $se=$n.parse,Bse=Dn.lex;var Vse=L(F(),1);var zh=L(G(),1);function l0({className:t,orientation:e="horizontal",...a}){return(0,zh.jsx)(Cl.Root,{"data-slot":"tabs","data-orientation":e,orientation:e,className:pe("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",t),...a})}var Y8=oi("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function u0({className:t,variant:e="default",...a}){return(0,zh.jsx)(Cl.List,{"data-slot":"tabs-list","data-variant":e,className:pe(Y8({variant:e}),t),...a})}function _h({className:t,...e}){return(0,zh.jsx)(Cl.Trigger,{"data-slot":"tabs-trigger",className:pe("relative 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 text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",t),...e})}function Jl({className:t,...e}){return(0,zh.jsx)(Cl.Content,{"data-slot":"tabs-content",className:pe("flex-1 outline-none",t),...e})}var or=L(G(),1),W8=new SC({renderer:{html:({text:t})=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},walkTokens:t=>{(t.type==="link"||t.type==="image")&&/^\s*(javascript|vbscript|data):/i.test(t.href)&&(t.href="#")}}),sz="h-auto flex-none cursor-pointer rounded-md px-[11px] py-[5px] text-[11.5px] font-semibold text-zinc-500 data-[state=active]:shadow-[0_1px_2px_rgba(0,0,0,0.08)]";function wC({body:t,onChange:e}){return(0,or.jsxs)(l0,{defaultValue:e===void 0?"preview":"source",className:"gap-0 overflow-hidden rounded-xl border bg-background",children:[(0,or.jsxs)("div",{className:"flex items-center gap-2.5 border-b border-[#f0f0f0] px-[13px] py-[9px]",children:[(0,or.jsx)("span",{className:"text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:"Body"}),(0,or.jsx)("span",{className:"font-mono text-[10.5px] text-zinc-400",children:"markdown"}),(0,or.jsxs)(u0,{className:"ml-auto h-auto gap-0.5 rounded-lg bg-[#f0f0f2] p-[3px]",children:[(0,or.jsx)(_h,{value:"source",className:sz,children:"Source"}),(0,or.jsx)(_h,{value:"preview",className:sz,children:"Preview"})]})]}),(0,or.jsx)(Jl,{value:"source",className:"h-[300px] flex-none",children:(0,or.jsx)(K8,{body:t,onChange:e})}),(0,or.jsx)(Jl,{value:"preview",children:(0,or.jsx)("div",{className:"min-h-32 px-[18px] py-4 text-[12.5px] leading-[1.65] text-zinc-700 [&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:font-mono [&_code]:text-xs [&_h1]:mb-[7px] [&_h1]:text-[15px] [&_h1]:font-bold [&_h1]:text-foreground [&_h2]:mt-4 [&_h2]:mb-[7px] [&_h2]:text-[13px] [&_h2]:font-bold [&_h2]:text-foreground [&_strong]:font-semibold [&_strong]:text-foreground [&_li]:ml-5 [&_ol]:list-decimal [&_p]:mb-2 [&_ul]:list-disc",dangerouslySetInnerHTML:{__html:W8.parse(t,{async:!1})}})})]})}function K8({body:t,onChange:e}){let a=(0,lz.useCallback)(r=>{let n=new oe({parent:r,doc:t,extensions:[q5(),j$(F$),iB(),zl.of([...DB,...uB]),oe.lineWrapping,oe.editable.of(e!==void 0),oe.updateListener.of(i=>{i.docChanged&&e?.(i.state.doc.toString())})]});return()=>n.destroy()},[]);return(0,or.jsx)("div",{className:"h-full",ref:a})}var ale=L(F(),1);var uz=L(G(),1);function eu({className:t,type:e,...a}){return(0,uz.jsx)("input",{type:e,"data-slot":"input",className:pe("h-[30px] w-full min-w-0 rounded-lg border border-input bg-background px-[11px] py-1 font-mono text-[11.5px] text-foreground transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30","focus-visible:border-[#d92f45]","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",t),...a})}var ile=L(F(),1);var cz=L(G(),1);function Nh({className:t,...e}){return(0,cz.jsx)(Eg.Root,{"data-slot":"label",className:pe("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...e})}var ule=L(F(),1);var Rt=L(G(),1);function CC({...t}){return(0,Rt.jsx)(Ea.Root,{"data-slot":"select",...t})}function kC({...t}){return(0,Rt.jsx)(Ea.Value,{"data-slot":"select-value",...t})}function LC({className:t,size:e="default",children:a,...r}){return(0,Rt.jsxs)(Ea.Trigger,{"data-slot":"select-trigger","data-size":e,className:pe("flex w-fit cursor-pointer items-center justify-between gap-2 rounded-lg border border-input bg-background px-[11px] py-1 font-mono text-[11.5px] whitespace-nowrap text-foreground transition-[color,box-shadow] outline-none focus-visible:border-[#d92f45] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-[30px] data-[size=sm]:h-7 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",t),...r,children:[a,(0,Rt.jsx)(Ea.Icon,{asChild:!0,children:(0,Rt.jsx)(Oc,{className:"size-4 opacity-50"})})]})}function TC({className:t,children:e,position:a="item-aligned",align:r="center",...n}){return(0,Rt.jsx)(Ea.Portal,{children:(0,Rt.jsxs)(Ea.Content,{"data-slot":"select-content",className:pe("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,align:r,...n,children:[(0,Rt.jsx)(J8,{}),(0,Rt.jsx)(Ea.Viewport,{className:pe("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:e}),(0,Rt.jsx)(eW,{})]})})}function PC({className:t,children:e,...a}){return(0,Rt.jsxs)(Ea.Item,{"data-slot":"select-item",className:pe("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...a,children:[(0,Rt.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,Rt.jsx)(Ea.ItemIndicator,{children:(0,Rt.jsx)(Sd,{className:"size-4"})})}),(0,Rt.jsx)(Ea.ItemText,{children:e})]})}function J8({className:t,...e}){return(0,Rt.jsx)(Ea.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:pe("flex cursor-default items-center justify-center py-1",t),...e,children:(0,Rt.jsx)(wd,{className:"size-4"})})}function eW({className:t,...e}){return(0,Rt.jsx)(Ea.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:pe("flex cursor-default items-center justify-center py-1",t),...e,children:(0,Rt.jsx)(Oc,{className:"size-4"})})}var K=L(G(),1);function RC({identity:t,newKind:e,onDone:a,onClose:r}){let{data:n}=wA(t);if(t===void 0)return(0,K.jsx)(fz,{primitiveSnapshot:null,entityTag:"",newKind:e??"",onDone:a,onClose:r});if(n===void 0)return null;let{answer:i,entityTag:o}=n;return i.type==="Fault"?(0,K.jsx)(hz,{faults:[i]}):i.data.scopedPrimitive.data.scope!=="repo"?(0,K.jsx)(tW,{primitiveSnapshot:i}):(0,K.jsx)(fz,{primitiveSnapshot:i,entityTag:o,newKind:"",onDone:a,onClose:r})}function fz({primitiveSnapshot:t,entityTag:e,newKind:a,onDone:r,onClose:n}){let i=t?.data.scopedPrimitive.data,[o,s]=(0,ff.useState)(i?.kind??a),[l,u]=(0,ff.useState)(i===void 0?"":String(i.headers.id)),[c,f]=(0,ff.useState)(()=>Object.fromEntries(Object.entries(i?.headers??{}).filter(([R])=>R!=="id").map(([R,B])=>[R,typeof B=="string"?B:[...B]]))),[d,h]=(0,ff.useState)(t?.data.body??""),[p,m]=(0,ff.useState)([]),{data:x}=xc(),{data:g}=CA(o),{data:O}=ni(),y=kA(),b=LA(),v=TA(),S=x===void 0?[]:Object.keys(x.data),w=g?.type==="PrimitiveRequirements"?g.data.headers:[],k=O?.type==="ScopedPrimitives"?O.data.primitives.filter(({data:R})=>R.kind==="corpus").map(({data:R})=>R.identity):[],T=Object.fromEntries(w.flatMap(({data:{field:R}})=>{let B=c[R],W=typeof B=="string"?B.trim():(B??[]).map($=>$.trim()).filter($=>$!=="");return W.length===0?[]:[[R,W]]})),Q=R=>m(R.type==="Faults"?R.data.faults:[R]),D=async()=>{let R=t===null?await y.mutateAsync({kind:o,id:l,headers:T,body:d}):await b.mutateAsync({param:{identity:t.data.scopedPrimitive.data.identity},header:{"if-match":e},json:{headers:T,body:d}});if(R.type!=="ScopedPrimitive")return Q(R);r(t===null?"Primitive created":"Primitive saved",`${R.data.file} \xB7 nothing compiled until the next build`)},A=async()=>{if(t===null)return;let R=await v.mutateAsync(t.data.scopedPrimitive.data.identity);if(R!==null)return Q(R);r("Primitive deleted",`${t.data.scopedPrimitive.data.file} \xB7 what still names it is reported by Doctor`)};return(0,K.jsxs)("div",{className:"space-y-3.5",children:[(0,K.jsxs)("div",{className:dz,children:[t===null?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(co,{label:"kind",htmlFor:"primitive-kind",children:(0,K.jsxs)(CC,{value:o,onValueChange:s,children:[(0,K.jsx)(LC,{id:"primitive-kind",className:"w-full",children:(0,K.jsx)(kC,{})}),(0,K.jsx)(TC,{children:S.map(R=>(0,K.jsx)(PC,{value:R,children:R},R))})]})}),(0,K.jsx)(co,{label:"id",htmlFor:"primitive-id",hint:`.cw/charter/${o}/${l||"<id>"}.md`,children:(0,K.jsx)(eu,{id:"primitive-id",value:l,placeholder:"no-any",spellCheck:!1,onChange:R=>u(R.currentTarget.value)})})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(co,{label:"kind",hint:"the identity is the file \u2014 rename by creating a new primitive and deleting this one",children:(0,K.jsx)("span",{className:"font-mono text-[11.5px]",children:o})}),(0,K.jsx)(co,{label:"id",children:(0,K.jsx)("span",{className:"font-mono text-[11.5px]",children:l})})]}),w.map(({data:{field:R,shape:B,required:W,allowedValues:$}})=>(0,K.jsx)(co,{label:R,htmlFor:`header-${R}`,hint:W?"required":void 0,children:B==="list"?(0,K.jsx)(aW,{field:R,entries:Array.isArray(c[R])?c[R]:[],onChange:q=>f({...c,[R]:q})}):$!==void 0?(0,K.jsxs)(CC,{value:typeof c[R]=="string"?c[R]:"",onValueChange:q=>f({...c,[R]:q}),children:[(0,K.jsx)(LC,{id:`header-${R}`,className:"w-full",children:(0,K.jsx)(kC,{placeholder:"\u2014"})}),(0,K.jsx)(TC,{children:$.map(q=>(0,K.jsx)(PC,{value:q,children:q},q))})]}):(0,K.jsx)(eu,{id:`header-${R}`,spellCheck:!1,autoComplete:"off",value:typeof c[R]=="string"?c[R]:"",list:R==="rationale"?"corpus-identities":void 0,onChange:q=>f({...c,[R]:q.currentTarget.value})})},R))]}),(0,K.jsx)("datalist",{id:"corpus-identities",children:k.map(R=>(0,K.jsx)("option",{value:R},R))}),(0,K.jsx)(wC,{body:d,onChange:h}),p.length>0&&(0,K.jsx)(hz,{faults:p}),(0,K.jsxs)("div",{className:li,children:[(0,K.jsx)(Ae,{onClick:()=>{D()},children:t===null?"Create primitive":"Save"}),(0,K.jsx)(Ae,{variant:"outline",onClick:n,children:"Cancel"}),t!==null&&(0,K.jsx)(Ae,{variant:"destructive",className:"ml-auto",onClick:()=>{A()},children:"Delete"})]})]})}function tW({primitiveSnapshot:t}){let{kind:e,description:a,file:r,scope:n,headers:i}=t.data.scopedPrimitive.data;return(0,K.jsxs)("div",{className:"space-y-3.5",children:[(0,K.jsxs)(Ur,{className:"rounded-xl border-[#7c3aed33] bg-[#f6f2ff]",children:[(0,K.jsx)(jr,{className:"text-[12.5px] font-bold",children:n==="vendor"?"Installed from a vendor, and read-only here.":"Built into cw, and read-only here."}),(0,K.jsx)(Fr,{className:"text-[11.5px] text-zinc-600",children:"To differ from it, author a primitive of your own under an identity of its own."})]}),(0,K.jsxs)("div",{className:dz,children:[(0,K.jsx)(co,{label:"kind",children:(0,K.jsx)("span",{className:"font-mono text-[11.5px]",children:e})}),(0,K.jsx)(co,{label:"file",children:(0,K.jsx)("span",{className:"font-mono text-[11.5px]",children:r})}),(0,K.jsx)(co,{label:"description",children:(0,K.jsx)("span",{className:"text-xs",children:a})}),Object.entries(i).filter(([o])=>o!=="id"&&o!=="description").map(([o,s])=>(0,K.jsx)(co,{label:o,children:(0,K.jsx)("span",{className:"font-mono text-[11.5px]",children:typeof s=="string"?s:s.join(", ")})},o))]}),(0,K.jsx)(wC,{body:t.data.body})]})}var dz="overflow-hidden rounded-[11px] border border-[#f0f0f0] bg-background divide-y divide-zinc-100";function co({label:t,htmlFor:e,hint:a,children:r}){return(0,K.jsxs)("div",{className:"flex items-center gap-3 px-[13px] py-2.5",children:[(0,K.jsx)(Nh,{htmlFor:e,className:"w-[118px] shrink-0 text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:t}),(0,K.jsx)("div",{className:"min-w-0 flex-1",children:r}),a!==void 0&&(0,K.jsx)("span",{className:"max-w-[45%] shrink text-right text-[11.5px] text-zinc-400",children:a})]})}function aW({field:t,entries:e,onChange:a}){let r=e.length===0?[""]:e;return(0,K.jsxs)("div",{className:"flex flex-col gap-1.5",children:[r.map((n,i)=>(0,K.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,K.jsx)(eu,{id:i===0?`header-${t}`:void 0,"aria-label":`${t} ${i+1}`,spellCheck:!1,value:n,onChange:o=>a(r.map((s,l)=>l===i?o.currentTarget.value:s))}),r.length>1&&(0,K.jsx)(Ae,{variant:"outline",size:"icon",className:"size-[26px] shrink-0 rounded-[7px] text-zinc-400 [&_svg:not([class*='size-'])]:size-[11px]","aria-label":`Remove this ${t} entry`,onClick:()=>a(r.filter((o,s)=>s!==i)),children:(0,K.jsx)(sl,{})})]},i)),(0,K.jsxs)(Ae,{variant:"outline",size:"sm",className:"h-auto self-start rounded-[7px] border-dashed border-zinc-300 px-2.5 py-[5px] text-[11px] font-normal text-zinc-500",onClick:()=>a([...r,""]),children:["Add ",t]})]})}function hz({faults:t}){return(0,K.jsxs)(Ur,{variant:"destructive",className:"rounded-xl border-[#f6d9d9] bg-[#fef6f6]",children:[(0,K.jsx)(jr,{className:"text-[12.5px] font-bold text-foreground",children:"Refused, and nothing was written"}),(0,K.jsx)(Fr,{children:t.map(({data:{message:e,fix:a}})=>(0,K.jsxs)("p",{className:"whitespace-pre-line",children:[e," ",(0,K.jsx)("span",{className:"text-muted-foreground",children:a})]},e))})]})}var c0=L(F(),1);var pt=L(G(),1);function pz({onDone:t,onClose:e}){let[a,r]=(0,c0.useState)(""),[n,i]=(0,c0.useState)(""),[o,s]=(0,c0.useState)(null),l=xc(),u=AA(),c=async()=>{let f=n.trim(),d=await u.mutateAsync({source:a.trim(),...f===""?{}:{version:f}});if(d!==null)return s(d);t("Vendor source added",`${a.trim()}${f===""?"":` @ ${f}`} \xB7 run Build to compile what it adds`)};return(0,pt.jsxs)("div",{className:"space-y-3.5",children:[(0,pt.jsx)("p",{className:"text-[13px] leading-[1.65] text-zinc-700",children:"A vendor source is a repository of primitives laid out by kind."}),(0,pt.jsxs)("div",{className:"divide-y divide-zinc-100 overflow-hidden rounded-[11px] border border-[#f0f0f0]",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-3 px-[13px] py-2.5",children:[(0,pt.jsx)(Nh,{htmlFor:"vendor-source",className:"w-[118px] shrink-0 text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:"source"}),(0,pt.jsx)(eu,{id:"vendor-source",value:a,spellCheck:!1,onChange:f=>r(f.target.value)})]}),(0,pt.jsxs)("div",{className:"flex items-center gap-3 px-[13px] py-2.5",children:[(0,pt.jsx)(Nh,{htmlFor:"vendor-version",className:"w-[118px] shrink-0 text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:"version"}),(0,pt.jsx)(eu,{id:"vendor-version",value:n,spellCheck:!1,onChange:f=>i(f.target.value)}),(0,pt.jsx)("span",{className:"max-w-[45%] shrink text-right text-[11.5px] text-zinc-400",children:"a tag, branch or commit; left empty, the source's default"})]})]}),(0,pt.jsxs)("div",{className:"rounded-[11px] border bg-zinc-50 px-3.5 py-3","aria-label":"Reserved directories",children:[(0,pt.jsx)("div",{className:"mb-1 text-[11px] font-bold tracking-[0.07em] text-zinc-400 uppercase",children:"Reserved directories at its root"}),Object.entries(l.data?.data??{}).map(([f,d])=>(0,pt.jsxs)("div",{className:"flex items-baseline gap-[9px] border-t border-zinc-100 py-[7px]",children:[(0,pt.jsxs)("span",{className:"min-w-[150px] font-mono text-[11.5px]",children:[f,"/"]}),(0,pt.jsx)("span",{className:"text-[11.5px] text-zinc-500",children:d})]},f))]}),o!==null&&(0,pt.jsxs)(Ur,{variant:"destructive",className:"rounded-xl border-[#f6d9d9] bg-[#fef6f6]",children:[(0,pt.jsx)(jr,{className:"text-[12.5px] font-bold text-foreground",children:"Refused, and nothing was installed"}),(0,pt.jsx)(Fr,{children:(0,pt.jsxs)("p",{className:"whitespace-pre-line",children:[o.data.message," ",(0,pt.jsx)("span",{className:"text-muted-foreground",children:o.data.fix})]})})]}),(0,pt.jsxs)("div",{className:li,children:[(0,pt.jsx)(Ae,{disabled:u.isPending||a.trim()==="",onClick:()=>{c()},children:"Add source"}),(0,pt.jsx)(Ae,{variant:"outline",onClick:e,children:"Cancel"})]})]})}var IC=L(F(),1);var It=L(G(),1);function mz({name:t,onDone:e,onClose:a}){let n=Fm().data?.data.testSuites.find(({data:i})=>i.name===t);return n===void 0?null:(0,It.jsx)(rW,{name:t,initialText:n.data.text??"",onDone:e,onClose:a},t)}function rW({name:t,initialText:e,onDone:a,onClose:r}){let[n,i]=(0,IC.useState)(e),[o,s]=(0,IC.useState)(null),l=DA(),u=$A(),c=async()=>{let d=await l.mutateAsync({name:t,text:n});if(typeof d!="string")return s(d);a("Saved",`.cw/test/${t} rewritten \xB7 run the cases again`)},f=async()=>{let d=await u.mutateAsync(t);if(d!==null)return s(d);a("Test file deleted",`.cw/test/${t} removed`)};return(0,It.jsxs)("div",{className:"space-y-3",children:[(0,It.jsxs)("p",{className:"text-xs leading-[1.65] text-zinc-600 [&_code]:font-mono",children:["A case is one situation \u2014 a touched file (",(0,It.jsx)("code",{children:"do.touchFile"}),") or a raised event (",(0,It.jsx)("code",{children:"when"}),") \u2014 and expects one thing:"," ",(0,It.jsx)("code",{children:"activate"}),", ",(0,It.jsx)("code",{children:"run"})," or ",(0,It.jsx)("code",{children:"allow"}),"."]}),(0,It.jsx)("textarea",{"aria-label":"Test file text",className:"h-[340px] w-full resize-y rounded-[11px] border bg-zinc-50 px-3.5 py-3 font-mono text-[11.5px] leading-[1.65] outline-none",spellCheck:!1,value:n,onChange:d=>i(d.target.value)}),o!==null&&(0,It.jsxs)(Ur,{variant:"destructive",className:"rounded-xl border-[#f6d9d9] bg-[#fef6f6]",children:[(0,It.jsx)(jr,{className:"text-[12.5px] font-bold text-foreground",children:"Refused, and nothing was written"}),(0,It.jsx)(Fr,{children:(0,It.jsxs)("p",{className:"break-words whitespace-pre-line",children:[o.data.message," ",(0,It.jsx)("span",{className:"text-muted-foreground",children:o.data.fix})]})})]}),(0,It.jsx)("p",{className:"text-[11.5px] leading-[1.6] text-zinc-400",children:"Read only when tests run \u2014 never compiled, never read by an agent."}),(0,It.jsxs)("div",{className:li,children:[(0,It.jsx)(Ae,{disabled:l.isPending,onClick:()=>{c()},children:"Save"}),(0,It.jsx)(Ae,{variant:"outline",onClick:r,children:"Cancel"}),(0,It.jsx)(Ae,{variant:"destructive",className:"ml-auto",disabled:u.isPending,onClick:()=>{f()},children:"Delete file"})]})]})}var $le=L(F(),1);var sr=L(G(),1);function gz({...t}){return(0,sr.jsx)(xn.Root,{"data-slot":"dialog",...t})}function nW({...t}){return(0,sr.jsx)(xn.Portal,{"data-slot":"dialog-portal",...t})}function iW({className:t,...e}){return(0,sr.jsx)(xn.Overlay,{"data-slot":"dialog-overlay",className:pe("fixed inset-0 z-50 bg-[rgba(9,9,11,0.35)] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",t),...e})}function Oz({className:t,children:e,showCloseButton:a=!0,...r}){return(0,sr.jsxs)(nW,{"data-slot":"dialog-portal",children:[(0,sr.jsx)(iW,{}),(0,sr.jsxs)(xn.Content,{"data-slot":"dialog-content",className:pe("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 bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",t),...r,children:[e,a&&(0,sr.jsxs)(xn.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-[18px] cursor-pointer rounded-xs p-0.5 text-zinc-400 ring-offset-background transition-colors hover:text-foreground focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,sr.jsx)(sl,{}),(0,sr.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function xz({className:t,...e}){return(0,sr.jsx)("div",{"data-slot":"dialog-header",className:pe("flex flex-col gap-2 text-center sm:text-left",t),...e})}function yz({className:t,...e}){return(0,sr.jsx)(xn.Title,{"data-slot":"dialog-title",className:pe("text-lg leading-none font-semibold",t),...e})}function bz({className:t,...e}){return(0,sr.jsx)(xn.Description,{"data-slot":"dialog-description",className:pe("text-sm text-muted-foreground",t),...e})}var pa=L(G(),1),oW={explanation:{title:()=>"Explain",context:({identity:t})=>t,holdsDraft:!1,render:({identity:t},{open:e})=>(0,pa.jsx)(TE,{identity:t,onExplain:a=>e("explanation",{identity:a})},t)},primitive:{title:({identity:t})=>t,context:()=>"",holdsDraft:!0,render:({identity:t},{close:e})=>(0,pa.jsx)(RC,{identity:t,onDone:f0(e),onClose:e},t)},newPrimitive:{title:()=>"New primitive",context:()=>"",holdsDraft:!0,render:({kind:t},{close:e})=>(0,pa.jsx)(RC,{newKind:t,onDone:f0(e),onClose:e},`new ${t}`)},buildPreview:{title:()=>"cw build",context:()=>"nothing written yet",holdsDraft:!1,render:(t,{open:e})=>(0,pa.jsx)(SE,{onBuilt:a=>e("buildOutcome",{buildAnswer:a})})},buildOutcome:{title:()=>"cw build",context:()=>"",holdsDraft:!1,render:({buildAnswer:t})=>(0,pa.jsx)(wE,{buildAnswer:t})},addVendor:{title:()=>"Add vendor source",context:()=>"",holdsDraft:!0,render:(t,{close:e})=>(0,pa.jsx)(pz,{onDone:f0(e),onClose:e})},testSuite:{title:({name:t})=>`.cw/test/${t}`,context:()=>"",holdsDraft:!0,render:({name:t},{close:e})=>(0,pa.jsx)(mz,{name:t,onDone:f0(e),onClose:e},t)},doctor:{title:()=>"Doctor",context:()=>"cw 0.1.0",holdsDraft:!1,render:(t,{open:e})=>(0,pa.jsx)(LE,{onBuilt:a=>e("buildOutcome",{buildAnswer:a})})}};function f0(t){return(e,a)=>{t(),ll(e,{description:a})}}var vz=(0,tu.createContext)(null);function fo(){return(0,tu.useContext)(vz)}function Sz({children:t}){let[e,a]=(0,tu.useState)(null),[r,n]=(0,tu.useState)(!1),i={open:(s,l)=>{a({name:s,params:l}),n(!0)},close:()=>n(!1)},o=e===null?null:oW[e.name];return(0,pa.jsxs)(vz.Provider,{value:i,children:[t,(0,pa.jsx)(gz,{open:r,onOpenChange:n,children:e!==null&&o!==null&&(0,pa.jsxs)(Oz,{className:"flex max-h-[88vh] w-[920px] max-w-[calc(100%-48px)] flex-col gap-0 overflow-hidden rounded-[15px] border-0 p-0 shadow-[0_34px_80px_-22px_rgba(0,0,0,0.4)] sm:max-w-[calc(100%-48px)]",onInteractOutside:s=>o.holdsDraft&&s.preventDefault(),onEscapeKeyDown:s=>o.holdsDraft&&s.preventDefault(),children:[(0,pa.jsxs)(xz,{className:"flex-row items-baseline gap-2.5 border-b border-[#f0f0f0] py-[15px] pr-12 pl-[18px]",children:[(0,pa.jsx)(yz,{className:"text-[14.5px] font-bold tracking-[-0.01em]",children:o.title(e.params)}),(0,pa.jsx)(bz,{className:"font-mono text-[11px] text-zinc-400",children:o.context(e.params)})]}),(0,pa.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-[18px]",children:o.render(e.params,i)})]})})]})}var h0=L(F(),1);var Wle=L(F(),1);var sW=L(G(),1),wz=oi("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});var d0=L(G(),1),Cz=h0.createContext({size:"default",variant:"default",spacing:0});function kz({className:t,variant:e,size:a,spacing:r=0,children:n,...i}){return(0,d0.jsx)(Xd.Root,{"data-slot":"toggle-group","data-variant":e,"data-size":a,"data-spacing":r,style:{"--gap":r},className:pe("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",t),...i,children:(0,d0.jsx)(Cz.Provider,{value:{variant:e,size:a,spacing:r},children:n})})}function Lz({className:t,children:e,variant:a,size:r,...n}){let i=h0.useContext(Cz);return(0,d0.jsx)(Xd.Item,{"data-slot":"toggle-group-item","data-variant":i.variant||a,"data-size":i.size||r,"data-spacing":i.spacing,className:pe(wz({variant:i.variant||a,size:i.size||r}),"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10","data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",t),...n,children:e})}var se=L(G(),1);function MC({scopes:t,kind:e,onKindChange:a}){let{open:r}=fo(),n=xc(),i=ni();if(n.data===void 0||i.data===void 0)return null;let o=n.data.data,s=i.data;if(s.type==="FaultsByFile")return(0,se.jsx)(lW,{faultsByFile:s});if(s.type==="Fault")return(0,se.jsx)(uW,{fault:s});let l=s.data.primitives.filter(({data:d})=>t.includes(d.scope)),u=new Map(Object.keys(o).map(d=>[d,l.filter(({data:h})=>h.kind===d).length])),c=e??[...u].find(([,d])=>d>0)?.[0]??Object.keys(o)[0],f=l.filter(({data:d})=>d.kind===c);return(0,se.jsxs)("div",{className:"min-w-0",children:[(0,se.jsxs)("div",{className:"mb-3 flex items-baseline gap-[9px]",children:[(0,se.jsx)("h2",{className:"text-[12.5px] font-bold",children:"Charter primitives"}),(0,se.jsxs)("span",{className:"text-[11.5px] text-zinc-400",children:[l.length," in this charter"]}),t.includes("repo")&&(0,se.jsxs)(Ae,{size:"sm",variant:"outline",className:"ml-auto",onClick:()=>r("newPrimitive",{kind:c}),children:["New ",c]})]}),(0,se.jsx)(kz,{type:"single",spacing:1.5,"aria-label":"Kinds",className:"mb-3 flex-wrap",value:c,onValueChange:d=>d!==""&&a(d),children:[...u].map(([d,h])=>(0,se.jsxs)(Lz,{value:d,"aria-label":d,className:`group/chip h-auto cursor-pointer gap-1.5 rounded-[9px] border bg-background px-2.5 py-1.5 text-[11.5px] font-medium text-zinc-700 capitalize hover:bg-background hover:text-zinc-700 data-[state=on]:border-foreground data-[state=on]:bg-foreground data-[state=on]:font-semibold data-[state=on]:text-white ${h===0&&d!==c?"opacity-50":""}`,children:[d,(0,se.jsx)(hi,{className:"rounded-none bg-transparent p-0 font-mono text-[10px] font-normal text-zinc-400 group-data-[state=on]/chip:text-white/70",children:h})]},d))}),(0,se.jsxs)("p",{className:"mb-2.5 flex items-baseline gap-2 px-0.5",children:[(0,se.jsx)("span",{className:"shrink-0 text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:"Activates when"}),(0,se.jsx)("span",{className:"text-xs leading-normal text-zinc-700","aria-label":"Activates when",children:o[c]})]}),f.length===0?(0,se.jsxs)("p",{className:"rounded-[14px] border p-[22px] text-center text-[12.5px] text-zinc-400",children:["No ",c," in this charter yet."]}):(0,se.jsx)(cW,{kind:c,listed:f})]})}function lW({faultsByFile:t}){let e=Object.entries(t.data.files);return(0,se.jsxs)("div",{className:"space-y-3.5",children:[(0,se.jsxs)(Ur,{variant:"destructive",className:"rounded-xl border-[#f6d9d9] bg-[#fef6f6]",children:[(0,se.jsx)(jr,{className:"text-[12.5px] font-bold text-foreground",children:"The engine will not read this charter"}),(0,se.jsxs)(Fr,{children:[e.length," file",e.length===1?" is":"s are"," refused, so there is no listing to show. Fix",e.length===1?" it":" them"," and the charter comes back."]})]}),(0,se.jsx)(cs,{faultsByFile:t,label:"Refused files"})]})}function uW({fault:t}){return(0,se.jsxs)(Ur,{variant:"destructive",className:"rounded-xl border-[#f6d9d9] bg-[#fef6f6]",children:[(0,se.jsx)(jr,{className:"text-[12.5px] font-bold text-foreground",children:t.data.message}),(0,se.jsx)(Fr,{children:t.data.fix})]})}function AC(t){return t===void 0?void 0:typeof t=="string"?[t]:t}function cW({kind:t,listed:e}){let{open:a}=fo(),r=t==="guide",n=t!=="mixin";return(0,se.jsx)("div",{className:"overflow-hidden rounded-[14px] border bg-background",children:(0,se.jsxs)(kl,{"aria-label":`${t} primitives`,className:"table-fixed",children:[(0,se.jsx)(bE,{children:(0,se.jsxs)(Tl,{className:"border-[#ececef] bg-zinc-50 hover:bg-zinc-50 [&>th]:h-auto [&>th]:px-[15px] [&>th]:py-[9px] [&>th]:text-[9.5px] [&>th]:font-bold [&>th]:tracking-[0.07em] [&>th]:text-zinc-400 [&>th]:uppercase",children:[(0,se.jsx)(Pl,{className:"w-[170px]",children:"Id"}),(0,se.jsx)(Pl,{children:"Description"}),r&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Pl,{className:"w-[170px] text-right",children:"Matching globs"}),(0,se.jsx)(Pl,{className:"w-[120px] text-right",children:"Rationale"})]}),n&&(0,se.jsx)(Pl,{className:"w-[120px] text-right",children:"Mixins"}),(0,se.jsx)(Pl,{className:"w-[50px]"})]})}),(0,se.jsx)(Ll,{children:e.map(({data:{identity:i,description:o,file:s,headers:l}})=>{let u=AC(l.globs);return(0,se.jsxs)(Tl,{className:"group/row border-[#f7f7f8] align-top hover:bg-zinc-50 [&>td]:px-[15px] [&>td]:py-3",children:[(0,se.jsx)(Cn,{className:"truncate",children:(0,se.jsx)(Ae,{variant:"link",className:"block h-auto max-w-full truncate rounded-none p-0 text-left font-mono text-[11.5px] font-bold text-foreground",title:`Open ${s}`,onClick:()=>a("primitive",{identity:i}),children:String(l.id)})}),(0,se.jsxs)(Cn,{className:"whitespace-normal",children:[(0,se.jsx)("div",{className:"text-[12.5px] font-semibold",children:o}),(0,se.jsx)("div",{className:"mt-[3px] truncate font-mono text-[10.5px] text-zinc-400",children:s})]}),r&&(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(QC,{named:u,none:"all patterns",said:u===void 0,label:"Matching globs"}),(0,se.jsx)(QC,{named:AC(l.rationale),none:"none",said:!1,label:"Rationale"})]}),n&&(0,se.jsx)(QC,{named:AC(l.mixins),none:"none",said:!1,label:"Mixins"}),(0,se.jsx)(Cn,{children:(0,se.jsx)(Ae,{variant:"ghost",size:"icon",className:"ml-auto size-6 rounded-[7px] border border-transparent text-zinc-300 group-hover/row:border-zinc-200 group-hover/row:bg-background group-hover/row:text-zinc-400 hover:!border-foreground hover:bg-background hover:!text-foreground [&_svg:not([class*='size-'])]:size-[13px]","aria-label":`Explain ${i}`,onClick:()=>a("explanation",{identity:i}),children:(0,se.jsx)(hn,{})})})]},i)})})]})})}function QC({named:t,none:e,said:a,label:r}){return(0,se.jsx)(Cn,{"aria-label":r,children:(0,se.jsx)("div",{className:"flex min-w-0 flex-wrap content-start justify-end gap-1",children:t===void 0||t.length===0?(0,se.jsx)("span",{className:`text-[10.5px] ${a?"text-destructive":"text-zinc-300"}`,children:e}):t.map(n=>(0,se.jsx)(hi,{title:n,className:"block max-w-full truncate rounded-[5px] bg-zinc-100 px-1.5 py-0.5 font-mono text-[10px] font-normal text-zinc-700",children:n},n))})})}var NC=L(F(),1);var Sue=L(F(),1);var Tz=1,fW=.9,dW=.8,hW=.17,EC=.1,DC=.999,pW=.9999,mW=.99,gW=/[\\\/_+.#"@\[\(\{&]/,OW=/[\\\/_+.#"@\[\(\{&]/g,xW=/[\s-]/,Rz=/[\s-]/g;function $C(t,e,a,r,n,i,o){if(i===e.length)return n===t.length?Tz:mW;var s=`${n},${i}`;if(o[s]!==void 0)return o[s];for(var l=r.charAt(i),u=a.indexOf(l,n),c=0,f,d,h,p;u>=0;)f=$C(t,e,a,r,u+1,i+1,o),f>c&&(u===n?f*=Tz:gW.test(t.charAt(u-1))?(f*=dW,h=t.slice(n,u-1).match(OW),h&&n>0&&(f*=Math.pow(DC,h.length))):xW.test(t.charAt(u-1))?(f*=fW,p=t.slice(n,u-1).match(Rz),p&&n>0&&(f*=Math.pow(DC,p.length))):(f*=hW,n>0&&(f*=Math.pow(DC,u-n))),t.charAt(u)!==e.charAt(i)&&(f*=pW)),(f<EC&&a.charAt(u-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&a.charAt(u-1)!==r.charAt(i))&&(d=$C(t,e,a,r,u+1,i+2,o),d*EC>f&&(f=d*EC)),f>c&&(c=f),u=a.indexOf(l,u+1);return o[s]=c,c}function Pz(t){return t.toLowerCase().replace(Rz," ")}function Iz(t,e,a){return t=a&&a.length>0?`${t+" "+a.join(" ")}`:t,$C(t,e,Pz(t),Pz(e),0,0,{})}var J=L(F(),1);var Xh='[cmdk-group=""]',BC='[cmdk-group-items=""]',yW='[cmdk-group-heading=""]',Qz='[cmdk-item=""]',Az=`${Qz}:not([aria-disabled="true"])`,_C="cmdk-item-select",df="data-value",bW=(t,e,a)=>Iz(t,e,a),Mz=J.createContext(void 0),qh=()=>J.useContext(Mz),Ez=J.createContext(void 0),zC=()=>J.useContext(Ez),Dz=J.createContext(void 0),$z=J.forwardRef((t,e)=>{let a=hf(()=>{var P,H;return{search:"",value:(H=(P=t.value)!=null?P:t.defaultValue)!=null?H:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=hf(()=>new Set),n=hf(()=>new Map),i=hf(()=>new Map),o=hf(()=>new Set),s=Bz(t),{label:l,children:u,value:c,onValueChange:f,filter:d,shouldFilter:h,loop:p,disablePointerSelection:m=!1,vimBindings:x=!0,...g}=t,O=Dt(),y=Dt(),b=Dt(),v=J.useRef(null),S=AW();au(()=>{if(c!==void 0){let P=c.trim();a.current.value=P,w.emit()}},[c]),au(()=>{S(6,R)},[]);let w=J.useMemo(()=>({subscribe:P=>(o.current.add(P),()=>o.current.delete(P)),snapshot:()=>a.current,setState:(P,H,N)=>{var M,j,de,ee;if(!Object.is(a.current[P],H)){if(a.current[P]=H,P==="search")A(),Q(),S(1,D);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Z=document.getElementById(b);Z?Z.focus():(M=document.getElementById(O))==null||M.focus()}if(S(7,()=>{var Z;a.current.selectedItemId=(Z=B())==null?void 0:Z.id,w.emit()}),N||S(5,R),((j=s.current)==null?void 0:j.value)!==void 0){let Z=H??"";(ee=(de=s.current).onValueChange)==null||ee.call(de,Z);return}}w.emit()}},emit:()=>{o.current.forEach(P=>P())}}),[]),k=J.useMemo(()=>({value:(P,H,N)=>{var M;H!==((M=i.current.get(P))==null?void 0:M.value)&&(i.current.set(P,{value:H,keywords:N}),a.current.filtered.items.set(P,T(H,N)),S(2,()=>{Q(),w.emit()}))},item:(P,H)=>(r.current.add(P),H&&(n.current.has(H)?n.current.get(H).add(P):n.current.set(H,new Set([P]))),S(3,()=>{A(),Q(),a.current.value||D(),w.emit()}),()=>{i.current.delete(P),r.current.delete(P),a.current.filtered.items.delete(P);let N=B();S(4,()=>{A(),N?.getAttribute("id")===P&&D(),w.emit()})}),group:P=>(n.current.has(P)||n.current.set(P,new Set),()=>{i.current.delete(P),n.current.delete(P)}),filter:()=>s.current.shouldFilter,label:l||t["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:O,inputId:b,labelId:y,listInnerRef:v}),[]);function T(P,H){var N,M;let j=(M=(N=s.current)==null?void 0:N.filter)!=null?M:bW;return P?j(P,a.current.search,H):0}function Q(){if(!a.current.search||s.current.shouldFilter===!1)return;let P=a.current.filtered.items,H=[];a.current.filtered.groups.forEach(M=>{let j=n.current.get(M),de=0;j.forEach(ee=>{let Z=P.get(ee);de=Math.max(Z,de)}),H.push([M,de])});let N=v.current;W().sort((M,j)=>{var de,ee;let Z=M.getAttribute("id"),qe=j.getAttribute("id");return((de=P.get(qe))!=null?de:0)-((ee=P.get(Z))!=null?ee:0)}).forEach(M=>{let j=M.closest(BC);j?j.appendChild(M.parentElement===j?M:M.closest(`${BC} > *`)):N.appendChild(M.parentElement===N?M:M.closest(`${BC} > *`))}),H.sort((M,j)=>j[1]-M[1]).forEach(M=>{var j;let de=(j=v.current)==null?void 0:j.querySelector(`${Xh}[${df}="${encodeURIComponent(M[0])}"]`);de?.parentElement.appendChild(de)})}function D(){let P=W().find(N=>N.getAttribute("aria-disabled")!=="true"),H=P?.getAttribute(df);w.setState("value",H||void 0)}function A(){var P,H,N,M;if(!a.current.search||s.current.shouldFilter===!1){a.current.filtered.count=r.current.size;return}a.current.filtered.groups=new Set;let j=0;for(let de of r.current){let ee=(H=(P=i.current.get(de))==null?void 0:P.value)!=null?H:"",Z=(M=(N=i.current.get(de))==null?void 0:N.keywords)!=null?M:[],qe=T(ee,Z);a.current.filtered.items.set(de,qe),qe>0&&j++}for(let[de,ee]of n.current)for(let Z of ee)if(a.current.filtered.items.get(Z)>0){a.current.filtered.groups.add(de);break}a.current.filtered.count=j}function R(){var P,H,N;let M=B();M&&(((P=M.parentElement)==null?void 0:P.firstChild)===M&&((N=(H=M.closest(Xh))==null?void 0:H.querySelector(yW))==null||N.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function B(){var P;return(P=v.current)==null?void 0:P.querySelector(`${Qz}[aria-selected="true"]`)}function W(){var P;return Array.from(((P=v.current)==null?void 0:P.querySelectorAll(Az))||[])}function $(P){let H=W()[P];H&&w.setState("value",H.getAttribute(df))}function q(P){var H;let N=B(),M=W(),j=M.findIndex(ee=>ee===N),de=M[j+P];(H=s.current)!=null&&H.loop&&(de=j+P<0?M[M.length-1]:j+P===M.length?M[0]:M[j+P]),de&&w.setState("value",de.getAttribute(df))}function re(P){let H=B(),N=H?.closest(Xh),M;for(;N&&!M;)N=P>0?RW(N,Xh):IW(N,Xh),M=N?.querySelector(Az);M?w.setState("value",M.getAttribute(df)):q(P)}let ie=()=>$(W().length-1),z=P=>{P.preventDefault(),P.metaKey?ie():P.altKey?re(1):q(1)},Pe=P=>{P.preventDefault(),P.metaKey?$(0):P.altKey?re(-1):q(-1)};return J.createElement(ue.div,{ref:e,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:P=>{var H;(H=g.onKeyDown)==null||H.call(g,P);let N=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||N))switch(P.key){case"n":case"j":{x&&P.ctrlKey&&z(P);break}case"ArrowDown":{z(P);break}case"p":case"k":{x&&P.ctrlKey&&Pe(P);break}case"ArrowUp":{Pe(P);break}case"Home":{P.preventDefault(),$(0);break}case"End":{P.preventDefault(),ie();break}case"Enter":{P.preventDefault();let M=B();if(M){let j=new Event(_C);M.dispatchEvent(j)}}}}},J.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:MW},l),p0(t,P=>J.createElement(Ez.Provider,{value:w},J.createElement(Mz.Provider,{value:k},P))))}),vW=J.forwardRef((t,e)=>{var a,r;let n=Dt(),i=J.useRef(null),o=J.useContext(Dz),s=qh(),l=Bz(t),u=(r=(a=l.current)==null?void 0:a.forceMount)!=null?r:o?.forceMount;au(()=>{if(!u)return s.item(n,o?.id)},[u]);let c=_z(n,i,[t.value,t.children,i],t.keywords),f=zC(),d=Ms(S=>S.value&&S.value===c.current),h=Ms(S=>u||s.filter()===!1?!0:S.search?S.filtered.items.get(n)>0:!0);J.useEffect(()=>{let S=i.current;if(!(!S||t.disabled))return S.addEventListener(_C,p),()=>S.removeEventListener(_C,p)},[h,t.onSelect,t.disabled]);function p(){var S,w;m(),(w=(S=l.current).onSelect)==null||w.call(S,c.current)}function m(){f.setState("value",c.current,!0)}if(!h)return null;let{disabled:x,value:g,onSelect:O,forceMount:y,keywords:b,...v}=t;return J.createElement(ue.div,{ref:es(i,e),...v,id:n,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!d,"data-disabled":!!x,"data-selected":!!d,onPointerMove:x||s.getDisablePointerSelection()?void 0:m,onClick:x?void 0:p},t.children)}),SW=J.forwardRef((t,e)=>{let{heading:a,children:r,forceMount:n,...i}=t,o=Dt(),s=J.useRef(null),l=J.useRef(null),u=Dt(),c=qh(),f=Ms(h=>n||c.filter()===!1?!0:h.search?h.filtered.groups.has(o):!0);au(()=>c.group(o),[]),_z(o,s,[t.value,t.heading,l]);let d=J.useMemo(()=>({id:o,forceMount:n}),[n]);return J.createElement(ue.div,{ref:es(s,e),...i,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},a&&J.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},a),p0(t,h=>J.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?u:void 0},J.createElement(Dz.Provider,{value:d},h))))}),wW=J.forwardRef((t,e)=>{let{alwaysRender:a,...r}=t,n=J.useRef(null),i=Ms(o=>!o.search);return!a&&!i?null:J.createElement(ue.div,{ref:es(n,e),...r,"cmdk-separator":"",role:"separator"})}),CW=J.forwardRef((t,e)=>{let{onValueChange:a,...r}=t,n=t.value!=null,i=zC(),o=Ms(u=>u.search),s=Ms(u=>u.selectedItemId),l=qh();return J.useEffect(()=>{t.value!=null&&i.setState("search",t.value)},[t.value]),J.createElement(ue.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:n?t.value:o,onChange:u=>{n||i.setState("search",u.target.value),a?.(u.target.value)}})}),kW=J.forwardRef((t,e)=>{let{children:a,label:r="Suggestions",...n}=t,i=J.useRef(null),o=J.useRef(null),s=Ms(u=>u.selectedItemId),l=qh();return J.useEffect(()=>{if(o.current&&i.current){let u=o.current,c=i.current,f,d=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;c.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return d.observe(u),()=>{cancelAnimationFrame(f),d.unobserve(u)}}},[]),J.createElement(ue.div,{ref:es(i,e),...n,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},p0(t,u=>J.createElement("div",{ref:es(o,l.listInnerRef),"cmdk-list-sizer":""},u)))}),LW=J.forwardRef((t,e)=>{let{open:a,onOpenChange:r,overlayClassName:n,contentClassName:i,container:o,...s}=t;return J.createElement(Rv,{open:a,onOpenChange:r},J.createElement(Iv,{container:o},J.createElement(Av,{"cmdk-overlay":"",className:n}),J.createElement(Qv,{"aria-label":t.label,"cmdk-dialog":"",className:i},J.createElement($z,{ref:e,...s}))))}),TW=J.forwardRef((t,e)=>Ms(a=>a.filtered.count===0)?J.createElement(ue.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),PW=J.forwardRef((t,e)=>{let{progress:a,children:r,label:n="Loading...",...i}=t;return J.createElement(ue.div,{ref:e,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n},p0(t,o=>J.createElement("div",{"aria-hidden":!0},o)))}),ru=Object.assign($z,{List:kW,Item:vW,Input:CW,Group:SW,Separator:wW,Dialog:LW,Empty:TW,Loading:PW});function RW(t,e){let a=t.nextElementSibling;for(;a;){if(a.matches(e))return a;a=a.nextElementSibling}}function IW(t,e){let a=t.previousElementSibling;for(;a;){if(a.matches(e))return a;a=a.previousElementSibling}}function Bz(t){let e=J.useRef(t);return au(()=>{e.current=t}),e}var au=typeof window>"u"?J.useEffect:J.useLayoutEffect;function hf(t){let e=J.useRef();return e.current===void 0&&(e.current=t()),e}function Ms(t){let e=zC(),a=()=>t(e.snapshot());return J.useSyncExternalStore(e.subscribe,a,a)}function _z(t,e,a,r=[]){let n=J.useRef(),i=qh();return au(()=>{var o;let s=(()=>{var u;for(let c of a){if(typeof c=="string")return c.trim();if(typeof c=="object"&&"current"in c)return c.current?(u=c.current.textContent)==null?void 0:u.trim():n.current}})(),l=r.map(u=>u.trim());i.value(t,s,l),(o=e.current)==null||o.setAttribute(df,s),n.current=s}),n}var AW=()=>{let[t,e]=J.useState(),a=hf(()=>new Map);return au(()=>{a.current.forEach(r=>r()),a.current=new Map},[t]),(r,n)=>{a.current.set(r,n),e({})}};function QW(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function p0({asChild:t,children:e},a){return t&&J.isValidElement(e)?J.cloneElement(QW(e),{ref:e.ref},a(e.props.children)):a(e)}var MW={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};var vi=L(G(),1);function zz({className:t,...e}){return(0,vi.jsx)(ru,{"data-slot":"command",className:pe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e})}function Nz({className:t,...e}){return(0,vi.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,vi.jsx)(kd,{className:"size-4 shrink-0 opacity-50"}),(0,vi.jsx)(ru.Input,{"data-slot":"command-input",className:pe("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...e})]})}function Xz({className:t,...e}){return(0,vi.jsx)(ru.List,{"data-slot":"command-list",className:pe("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...e})}function qz({...t}){return(0,vi.jsx)(ru.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function Zz({className:t,...e}){return(0,vi.jsx)(ru.Group,{"data-slot":"command-group",className:pe("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...e})}function Vz({className:t,...e}){return(0,vi.jsx)(ru.Item,{"data-slot":"command-item",className:pe("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 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",t),...e})}var mt=L(G(),1);function jz({onPick:t}){let[e,a]=(0,NC.useState)(""),[r,n]=(0,NC.useState)(!1),{data:i}=ni(e);return(0,mt.jsxs)(zz,{shouldFilter:!1,className:"relative w-full overflow-visible rounded-[9px] border bg-zinc-50 text-zinc-400 focus-within:border-foreground focus-within:bg-background focus-within:text-zinc-500 [&_[data-slot=command-input-wrapper]]:h-[32px] [&_[data-slot=command-input-wrapper]]:border-0 [&_[data-slot=command-input]]:h-8 [&_[data-slot=command-input]]:text-[12.5px] [&_[data-slot=command-input]]:text-foreground [&_[data-slot=command-input]]:placeholder:text-zinc-400",onFocus:()=>n(!0),onBlur:()=>n(!1),children:[(0,mt.jsx)(Nz,{placeholder:"Search everything",spellCheck:!1,value:e,onValueChange:a,onKeyDown:o=>o.key==="Escape"&&a("")}),r&&e!==""&&(0,mt.jsxs)(Xz,{className:"absolute top-full right-0 left-0 z-50 mt-[7px] max-h-[min(460px,62vh)] rounded-xl border bg-popover p-[5px] shadow-[0_20px_44px_-16px_rgba(0,0,0,0.3)] [&_[cmdk-group-heading]]:px-[11px] [&_[cmdk-group-heading]]:pt-2 [&_[cmdk-group-heading]]:pb-1.5 [&_[cmdk-group-heading]]:text-[10px] [&_[cmdk-group-heading]]:font-bold [&_[cmdk-group-heading]]:tracking-[0.07em] [&_[cmdk-group-heading]]:text-zinc-400 [&_[cmdk-group-heading]]:uppercase [&_[data-slot=command-group]]:p-0",onMouseDown:o=>o.preventDefault(),children:[i?.type==="FaultsByFile"&&(0,mt.jsx)("p",{className:"px-3 py-3.5 text-xs text-zinc-400",children:"The engine will not read this charter, so there is nothing to search."}),i?.type==="Fault"&&(0,mt.jsxs)("p",{className:"px-3 py-3.5 text-xs text-zinc-400",children:[i.data.message," ",i.data.fix]}),i?.type==="ScopedPrimitives"&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(qz,{className:"px-3 py-3.5 text-xs text-zinc-400",children:"Nothing in the charter says that."}),i.data.primitives.length>0&&(0,mt.jsx)(Zz,{heading:`${i.data.primitives.length} primitive${i.data.primitives.length===1?"":"s"}`,children:i.data.primitives.map(o=>{let{identity:s,kind:l,description:u,scope:c,headers:f}=o.data;return(0,mt.jsxs)(Vz,{value:s,className:"grid cursor-pointer grid-cols-[74px_minmax(0,1fr)_max-content] items-baseline gap-2.5 rounded-lg px-[11px] py-2 data-[selected=true]:bg-zinc-50 data-[selected=true]:outline data-[selected=true]:outline-zinc-200",onSelect:()=>{a(""),n(!1),t(o)},children:[(0,mt.jsx)("span",{className:"font-mono text-[9.5px] font-bold tracking-[0.03em] text-zinc-500 uppercase",children:l}),(0,mt.jsxs)("span",{className:"min-w-0",children:[(0,mt.jsx)("span",{className:"block truncate font-mono text-xs text-foreground",children:(0,mt.jsx)(Uz,{text:String(f.id),word:e})}),(0,mt.jsx)("span",{className:"mt-0.5 block truncate text-[11px] leading-[1.45] text-zinc-400",children:(0,mt.jsx)(Uz,{text:u,word:e})})]}),(0,mt.jsx)(hi,{className:`rounded-[5px] px-1.5 py-0.5 font-mono text-[9.5px] font-bold tracking-[0.03em] ${EW[c]}`,children:c})]},s)})})]})]})]})}var EW={repo:"bg-[#eff6ff] text-[#1d4ed8]",vendor:"bg-[#f6f2ff] text-[#7c3aed]",builtin:"bg-zinc-100 text-zinc-700"};function Uz({text:t,word:e}){let a=t.toLowerCase().indexOf(e.toLowerCase());return a===-1||e===""?(0,mt.jsx)(mt.Fragment,{children:t}):(0,mt.jsxs)(mt.Fragment,{children:[t.slice(0,a),(0,mt.jsx)("mark",{className:"rounded-[2px] bg-[#fff2b8] text-inherit",children:t.slice(a,a+e.length)}),t.slice(a+e.length)]})}var Fz=L(F(),1);var De=L(G(),1);function Hz(){let{open:t}=fo(),e=Fm(),a=MA(),r=ni(),n=EA(),[i,o]=(0,Fz.useState)(null);if(e.data===void 0)return null;let{testSuites:s}=e.data.data,l=new Set(r.data?.type==="ScopedPrimitives"?r.data.data.primitives.map(({data:m})=>m.identity):[]),u=a.data?.type==="TestRunReport"?a.data:void 0,c=m=>u?.data.testCaseReports.filter(({data:x})=>x.suiteName===m)??[],f=s.reduce((m,{data:x})=>m+x.cases.length,0),d=u?.data.testCaseReports.filter(({data:m})=>!m.passed).length??0,h=async()=>{let{data:m}=await a.refetch();if(m?.type!=="TestRunReport")return;let x=m.data.testCaseReports.find(({data:g})=>!g.passed);x!==void 0&&o(x.data.suiteName)},p=async()=>{let m=await n.mutateAsync();o(m),t("testSuite",{name:m}),ll("Test file created",{description:`.cw/test/${m} \xB7 edit the cases, then run them`})};return(0,De.jsxs)("div",{className:"space-y-2.5",children:[(0,De.jsxs)("div",{className:`mb-[18px] flex flex-wrap items-center gap-[11px] rounded-xl border px-[15px] py-[13px] ${u===void 0?"":d>0?"border-[#f6d9d9] bg-[#fef6f6]":"border-[#dcf0e2] bg-[#f5fbf7]"}`,"aria-label":"Test summary",children:[(0,De.jsx)("span",{className:"text-[12.5px] font-bold",children:u===void 0?`${f} case${f===1?"":"s"} in ${s.length} file${s.length===1?"":"s"}`:`${u.data.testCaseReports.length-d} of ${u.data.testCaseReports.length} cases pass`}),(0,De.jsx)("span",{className:"min-w-0 flex-1 text-[11.5px] leading-[1.6] text-zinc-500",children:"A case names the file a change touches or the event it raises, then says what must come up. It runs nothing and asks no agent."}),(0,De.jsx)(Ae,{variant:"outline",disabled:n.isPending,onClick:()=>{p()},children:"New test file"}),(0,De.jsx)(Ae,{disabled:a.isFetching,onClick:()=>{h()},children:"Run all tests"})]}),a.data?.type==="FaultsByFile"&&(0,De.jsx)(cs,{faultsByFile:a.data,label:"Nothing was resolved"}),s.length===0&&(0,De.jsx)("div",{className:"rounded-xl border border-dashed px-[15px] py-3.5 text-[11.5px] leading-[1.6] text-zinc-500",children:"No test file yet. Test files live in .cw/test/."}),s.map(({data:m})=>{let x=c(m.name),g=x.filter(({data:O})=>!O.passed).length;return(0,De.jsxs)("section",{className:"overflow-hidden rounded-[14px] border bg-background","aria-label":m.name,children:[(0,De.jsxs)("div",{className:"flex items-baseline gap-2.5 px-[15px] py-3",children:[(0,De.jsxs)("button",{className:"flex min-w-0 flex-1 cursor-pointer items-baseline gap-2.5 text-left","aria-expanded":i===m.name,onClick:()=>o(i===m.name?null:m.name),children:[(0,De.jsx)("span",{className:"font-mono text-[11.5px] font-bold",children:m.name}),(0,De.jsx)("span",{className:"min-w-0 flex-1 text-[11.5px] text-zinc-500",children:m.description}),(0,De.jsxs)("span",{className:`font-mono text-[10.5px] ${g>0?"text-destructive":"text-zinc-400"}`,children:[m.cases.length," case",m.cases.length===1?"":"s",g>0&&` \xB7 ${g} failing`]})]}),(0,De.jsx)(Ae,{variant:"ghost",className:"h-auto p-0 text-[11.5px] text-zinc-400 hover:bg-transparent hover:text-foreground",onClick:()=>t("testSuite",{name:m.name}),children:"Edit"})]}),m.fault!==void 0&&(0,De.jsxs)("p",{className:"border-t border-[#f7f7f8] px-[15px] py-2.5 text-[11.5px] text-destructive",children:[m.fault.data.message," ",(0,De.jsx)("span",{className:"text-zinc-400",children:m.fault.data.fix})]}),i===m.name&&m.cases.map(({data:O},y)=>(0,De.jsx)(DW,{testCase:O,testCaseReport:x[y],isHeld:O.identity===void 0||l.has(O.identity),onOpen:b=>t("primitive",{identity:b})},y))]},m.name)})]})}function DW({testCase:t,testCaseReport:e,isHeld:a,onOpen:r}){let n=e?.data.unmet,{identity:i,expectation:o}=t;return(0,De.jsxs)("div",{className:`grid grid-cols-[minmax(150px,1fr)_minmax(0,1.4fr)_auto] items-baseline gap-3 border-t border-[#f7f7f8] px-[15px] py-2.5 ${n?"bg-[#fef6f6]":""}`,children:[(0,De.jsx)("span",{className:"font-mono text-[10.5px]",children:t.situation}),n!==void 0?(0,De.jsxs)("span",{className:"font-mono text-[10.5px] text-destructive",children:[n.data.message," ",(0,De.jsx)("span",{className:"text-zinc-400",children:n.data.fix})]}):(0,De.jsx)("span",{className:"font-mono text-[10.5px] text-zinc-400",children:i===void 0||!o.endsWith(i)?o:(0,De.jsxs)(De.Fragment,{children:[o.slice(0,-i.length),a?(0,De.jsx)("button",{className:"cursor-pointer text-[#1d4ed8] underline underline-offset-2",onClick:()=>r(i),children:i}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("span",{className:"underline decoration-dotted underline-offset-2",children:i})," ",(0,De.jsx)(hi,{className:"rounded-[5px] bg-zinc-100 px-1.5 py-0 font-sans text-[10px] font-normal text-zinc-500",children:"not in the charter"})]})]})}),(0,De.jsx)(hi,{className:`rounded-[5px] px-[7px] py-0 text-[11.5px] font-bold tracking-[0.04em] [font-variant-caps:all-small-caps] ${e===void 0?"bg-zinc-50 text-[#c4c4c8]":e.data.passed?"bg-[#f0fdf4] text-[#15803d]":"bg-[#fdeef0] text-[#b91c1c]"}`,children:e===void 0?"not run":e.data.passed?"pass":"fail"})]})}var Zt=L(G(),1);function Gz(){let{open:t}=fo(),e=IA(),a=ni(),r=QA();if(e.data===void 0)return null;let n=e.data,i=a.data?.type==="ScopedPrimitives"?a.data.data.primitives.filter(({data:s})=>s.scope==="vendor"):[],o=async s=>{let l=await r.mutateAsync(s.split("/").at(-1)??"");if(l!==null)return void ll.error(l.data.message,{description:l.data.fix});ll("Vendor source removed",{description:`${s} \xB7 run Build to compile the charter without it`})};return n.length===0?(0,Zt.jsxs)("div",{className:"flex items-center gap-[9px] rounded-xl border border-dashed px-[15px] py-3.5","aria-label":"Vendor sources",children:[(0,Zt.jsx)("span",{className:"text-xs font-semibold",children:"No vendor source installed"}),(0,Zt.jsx)(Ae,{size:"sm",className:"ml-auto",onClick:()=>t("addVendor",{}),children:"Add vendor source"})]}):(0,Zt.jsxs)("section",{className:"divide-y divide-[#f0f0f0] overflow-hidden rounded-[13px] border bg-background","aria-label":"Vendor sources",children:[(0,Zt.jsx)("h2",{className:"px-3.5 py-[11px] text-[10.5px] font-bold tracking-[0.06em] text-zinc-400 uppercase",children:"Vendor sources"}),n.map(s=>{let l=i.filter(({data:c})=>c.file.startsWith(`${s}/`)),u=[...new Set(l.map(({data:c})=>c.kind))].map(c=>[c,l.filter(({data:f})=>f.kind===c).length]);return(0,Zt.jsxs)("div",{className:"flex flex-col gap-2.5 bg-[#f6f2ff] px-3.5 py-3","aria-label":s,children:[(0,Zt.jsxs)("div",{className:"min-w-0 space-y-0.5",children:[(0,Zt.jsx)("div",{className:"text-[12.5px] font-semibold",children:s.split("/").at(-1)}),(0,Zt.jsxs)("div",{className:"text-[11px] text-zinc-500",children:[(0,Zt.jsxs)("span",{className:"font-mono",children:[s,"/"]})," \xB7 read-only"]})]}),(0,Zt.jsx)("dl",{className:"grid grid-cols-[1fr_auto] gap-x-2 gap-y-1.5 text-[11.5px] text-zinc-500","aria-label":"Primitives by kind",children:u.map(([c,f])=>(0,Zt.jsxs)("div",{className:"contents",children:[(0,Zt.jsx)("dt",{children:c}),(0,Zt.jsx)("dd",{className:"font-mono text-[10.5px] text-zinc-400",children:f})]},c))}),(0,Zt.jsx)(Ae,{size:"sm",variant:"outline",className:"self-start",disabled:r.isPending,onClick:()=>{o(s)},children:"Remove"})]},s)}),(0,Zt.jsx)("div",{className:"px-3.5 py-[11px]",children:(0,Zt.jsx)(Ae,{size:"sm",variant:"outline",onClick:()=>t("addVendor",{}),children:"Add source"})})]})}var nu=L(G(),1),Yz=({...t})=>(0,nu.jsx)(XA,{theme:"light",className:"toaster group",icons:{success:(0,nu.jsx)(Ho,{className:"size-4"}),info:(0,nu.jsx)(Cd,{className:"size-4"}),warning:(0,nu.jsx)(Wo,{className:"size-4"}),error:(0,nu.jsx)(Yo,{className:"size-4"}),loading:(0,nu.jsx)(Go,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...t});var Ge=L(G(),1),$W=[["repo","Repo Charter"],["vendor","Vendor"],["test","Test"]],XC="rounded-2xl border bg-background px-[22px] py-5";function BW(){let[t,e]=(0,Zh.useState)("repo"),[a,r]=(0,Zh.useState)(null),{open:n}=fo();return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)("header",{className:"sticky top-0 z-20 flex h-14 items-center gap-3 border-b bg-background px-[26px]",children:[(0,Ge.jsxs)("span",{className:"flex items-center gap-[9px] text-[13.5px] font-bold tracking-[-0.01em]",children:[(0,Ge.jsx)("img",{src:"./logo.png",alt:"",className:"size-[22px] object-contain"}),"Cherry Works"]}),(0,Ge.jsx)("span",{className:"font-mono text-[11.5px] text-zinc-400"}),(0,Ge.jsx)("div",{className:"ml-auto flex w-full max-w-[460px]",children:(0,Ge.jsx)(jz,{onPick:({data:{identity:i,kind:o,scope:s}})=>{e(s==="vendor"?"vendor":"repo"),r(o),n("primitive",{identity:i})}})}),(0,Ge.jsx)(Ae,{variant:"outline",onClick:()=>n("buildPreview",{}),children:"Build"}),(0,Ge.jsx)(Ae,{variant:"outline",onClick:()=>n("doctor",{}),children:"Doctor"})]}),(0,Ge.jsx)("main",{className:"mx-auto max-w-[1120px] px-[26px] pt-[22px] pb-[60px]",children:(0,Ge.jsxs)(l0,{value:t,onValueChange:i=>{e(i),r(null)},children:[(0,Ge.jsx)(u0,{className:"mb-4 h-auto w-full gap-1 rounded-[11px] bg-[#e9e9ec] p-1",children:$W.map(([i,o])=>(0,Ge.jsx)(_h,{value:i,className:"h-auto rounded-lg py-[9px] text-[12.5px] font-semibold text-zinc-500 data-[state=active]:shadow-[0_1px_3px_rgba(0,0,0,0.09)]",children:o},i))}),(0,Ge.jsx)(Jl,{value:"repo",className:XC,children:(0,Ge.jsx)(MC,{scopes:["repo","builtin"],kind:a,onKindChange:r})}),(0,Ge.jsxs)(Jl,{value:"vendor",className:`${XC} grid items-start gap-4 md:has-[>section]:grid-cols-[210px_minmax(0,1fr)]`,children:[(0,Ge.jsx)(Gz,{}),(0,Ge.jsx)(MC,{scopes:["vendor"],kind:a,onKindChange:r})]}),(0,Ge.jsx)(Jl,{value:"test",className:XC,children:(0,Ge.jsx)(Hz,{})})]})}),(0,Ge.jsx)(Yz,{})]})}var _W=new Db;(0,Wz.createRoot)(document.getElementById("root")).render((0,Ge.jsx)(Zh.StrictMode,{children:(0,Ge.jsx)(Cb,{client:_W,children:(0,Ge.jsx)(Sz,{children:(0,Ge.jsx)(BW,{})})})}));
|
|
140
|
+
/*! Bundled license information:
|
|
141
|
+
|
|
142
|
+
react/cjs/react.production.js:
|
|
143
|
+
(**
|
|
144
|
+
* @license React
|
|
145
|
+
* react.production.js
|
|
146
|
+
*
|
|
147
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the MIT license found in the
|
|
150
|
+
* LICENSE file in the root directory of this source tree.
|
|
151
|
+
*)
|
|
152
|
+
|
|
153
|
+
scheduler/cjs/scheduler.production.js:
|
|
154
|
+
(**
|
|
155
|
+
* @license React
|
|
156
|
+
* scheduler.production.js
|
|
157
|
+
*
|
|
158
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the MIT license found in the
|
|
161
|
+
* LICENSE file in the root directory of this source tree.
|
|
162
|
+
*)
|
|
163
|
+
|
|
164
|
+
react-dom/cjs/react-dom.production.js:
|
|
165
|
+
(**
|
|
166
|
+
* @license React
|
|
167
|
+
* react-dom.production.js
|
|
168
|
+
*
|
|
169
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the MIT license found in the
|
|
172
|
+
* LICENSE file in the root directory of this source tree.
|
|
173
|
+
*)
|
|
174
|
+
|
|
175
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
176
|
+
(**
|
|
177
|
+
* @license React
|
|
178
|
+
* react-dom-client.production.js
|
|
179
|
+
*
|
|
180
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the MIT license found in the
|
|
183
|
+
* LICENSE file in the root directory of this source tree.
|
|
184
|
+
*)
|
|
185
|
+
|
|
186
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
187
|
+
(**
|
|
188
|
+
* @license React
|
|
189
|
+
* react-jsx-runtime.production.js
|
|
190
|
+
*
|
|
191
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the MIT license found in the
|
|
194
|
+
* LICENSE file in the root directory of this source tree.
|
|
195
|
+
*)
|
|
196
|
+
|
|
197
|
+
lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs:
|
|
198
|
+
lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs:
|
|
199
|
+
lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs:
|
|
200
|
+
lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs:
|
|
201
|
+
lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs:
|
|
202
|
+
lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs:
|
|
203
|
+
lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs:
|
|
204
|
+
lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs:
|
|
205
|
+
lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs:
|
|
206
|
+
lucide-react/dist/esm/context.mjs:
|
|
207
|
+
lucide-react/dist/esm/Icon.mjs:
|
|
208
|
+
lucide-react/dist/esm/createLucideIcon.mjs:
|
|
209
|
+
lucide-react/dist/esm/icons/check.mjs:
|
|
210
|
+
lucide-react/dist/esm/icons/chevron-down.mjs:
|
|
211
|
+
lucide-react/dist/esm/icons/chevron-up.mjs:
|
|
212
|
+
lucide-react/dist/esm/icons/circle-check.mjs:
|
|
213
|
+
lucide-react/dist/esm/icons/circle-question-mark.mjs:
|
|
214
|
+
lucide-react/dist/esm/icons/info.mjs:
|
|
215
|
+
lucide-react/dist/esm/icons/loader-circle.mjs:
|
|
216
|
+
lucide-react/dist/esm/icons/octagon-x.mjs:
|
|
217
|
+
lucide-react/dist/esm/icons/search.mjs:
|
|
218
|
+
lucide-react/dist/esm/icons/triangle-alert.mjs:
|
|
219
|
+
lucide-react/dist/esm/icons/x.mjs:
|
|
220
|
+
lucide-react/dist/esm/lucide-react.mjs:
|
|
221
|
+
(**
|
|
222
|
+
* @license lucide-react v1.47.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*)
|
|
227
|
+
*/
|