modelroom 0.0.2 → 0.0.3
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/CHANGELOG.md +7 -0
- package/dist/lib/server.d.ts.map +1 -1
- package/dist/lib/server.js +73 -24
- package/dist/lib/server.js.map +1 -1
- package/package.json +35 -4
- package/ui/assets/app.js +68 -0
- package/ui/kit.html +16 -0
- package/ui/modelroom.css +1 -1
- package/ui/room.html +6 -456
package/ui/assets/app.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* modelroom UI — built from web/ by scripts/build-web.mjs. Do not edit by hand; run `npm run build:web`. */
|
|
2
|
+
var e5=Object.create;var yO=Object.defineProperty;var t5=Object.getOwnPropertyDescriptor;var a5=Object.getOwnPropertyNames;var n5=Object.getPrototypeOf,r5=Object.prototype.hasOwnProperty;var ge=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(a){throw e=0,a}},SC=(t,e)=>{for(var a in e)yO(t,a,{get:e[a],enumerable:!0})},i5=(t,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of a5(e))!r5.call(t,r)&&r!==a&&yO(t,r,{get:()=>e[r],enumerable:!(n=t5(e,r))||n.enumerable});return t};var B=(t,e,a)=>(a=t!=null?e5(n5(t)):{},i5(e||!t||!t.__esModule?yO(a,"default",{value:t,enumerable:!0}):a,t));var RC=ge(dt=>{"use strict";function kO(t,e){var a=t.length;t.push(e);e:for(;0<a;){var n=a-1>>>1,r=t[n];if(0<Yd(r,e))t[n]=e,t[a]=r,a=n;else break e}}function mr(t){return t.length===0?null:t[0]}function Kd(t){if(t.length===0)return null;var e=t[0],a=t.pop();if(a!==e){t[0]=a;e:for(var n=0,r=t.length,i=r>>>1;n<i;){var o=2*(n+1)-1,s=t[o],l=o+1,u=t[l];if(0>Yd(s,a))l<r&&0>Yd(u,s)?(t[n]=u,t[l]=a,n=l):(t[n]=s,t[o]=a,n=o);else if(l<r&&0>Yd(u,a))t[n]=u,t[l]=a,n=l;else break e}}return e}function Yd(t,e){var a=t.sortIndex-e.sortIndex;return a!==0?a:t.id-e.id}dt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(yC=performance,dt.unstable_now=function(){return yC.now()}):(vO=Date,vC=vO.now(),dt.unstable_now=function(){return vO.now()-vC});var yC,vO,vC,jr=[],wi=[],o5=1,On=null,ha=3,LO=!1,tc=!1,ac=!1,EO=!1,kC=typeof setTimeout=="function"?setTimeout:null,LC=typeof clearTimeout=="function"?clearTimeout:null,CC=typeof setImmediate<"u"?setImmediate:null;function Wd(t){for(var e=mr(wi);e!==null;){if(e.callback===null)Kd(wi);else if(e.startTime<=t)Kd(wi),e.sortIndex=e.expirationTime,kO(jr,e);else break;e=mr(wi)}}function _O(t){if(ac=!1,Wd(t),!tc)if(mr(jr)!==null)tc=!0,al||(al=!0,tl());else{var e=mr(wi);e!==null&&AO(_O,e.startTime-t)}}var al=!1,nc=-1,EC=5,_C=-1;function AC(){return EO?!0:!(dt.unstable_now()-_C<EC)}function CO(){if(EO=!1,al){var t=dt.unstable_now();_C=t;var e=!0;try{e:{tc=!1,ac&&(ac=!1,LC(nc),nc=-1),LO=!0;var a=ha;try{t:{for(Wd(t),On=mr(jr);On!==null&&!(On.expirationTime>t&&AC());){var n=On.callback;if(typeof n=="function"){On.callback=null,ha=On.priorityLevel;var r=n(On.expirationTime<=t);if(t=dt.unstable_now(),typeof r=="function"){On.callback=r,Wd(t),e=!0;break t}On===mr(jr)&&Kd(jr),Wd(t)}else Kd(jr);On=mr(jr)}if(On!==null)e=!0;else{var i=mr(wi);i!==null&&AO(_O,i.startTime-t),e=!1}}break e}finally{On=null,ha=a,LO=!1}e=void 0}}finally{e?tl():al=!1}}}var tl;typeof CC=="function"?tl=function(){CC(CO)}:typeof MessageChannel<"u"?(wO=new MessageChannel,wC=wO.port2,wO.port1.onmessage=CO,tl=function(){wC.postMessage(null)}):tl=function(){kC(CO,0)};var wO,wC;function AO(t,e){nc=kC(function(){t(dt.unstable_now())},e)}dt.unstable_IdlePriority=5;dt.unstable_ImmediatePriority=1;dt.unstable_LowPriority=4;dt.unstable_NormalPriority=3;dt.unstable_Profiling=null;dt.unstable_UserBlockingPriority=2;dt.unstable_cancelCallback=function(t){t.callback=null};dt.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"):EC=0<t?Math.floor(1e3/t):5};dt.unstable_getCurrentPriorityLevel=function(){return ha};dt.unstable_next=function(t){switch(ha){case 1:case 2:case 3:var e=3;break;default:e=ha}var a=ha;ha=e;try{return t()}finally{ha=a}};dt.unstable_requestPaint=function(){EO=!0};dt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var a=ha;ha=t;try{return e()}finally{ha=a}};dt.unstable_scheduleCallback=function(t,e,a){var n=dt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,t){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,t={id:o5++,callback:e,priorityLevel:t,startTime:a,expirationTime:r,sortIndex:-1},a>n?(t.sortIndex=a,kO(wi,t),mr(jr)===null&&t===mr(wi)&&(ac?(LC(nc),nc=-1):ac=!0,AO(_O,a-n))):(t.sortIndex=r,kO(jr,t),tc||LO||(tc=!0,al||(al=!0,tl()))),t};dt.unstable_shouldYield=AC;dt.unstable_wrapCallback=function(t){var e=ha;return function(){var a=ha;ha=e;try{return t.apply(this,arguments)}finally{ha=a}}}});var IC=ge((GK,TC)=>{"use strict";TC.exports=RC()});var FC=ge(be=>{"use strict";var IO=Symbol.for("react.transitional.element"),s5=Symbol.for("react.portal"),l5=Symbol.for("react.fragment"),u5=Symbol.for("react.strict_mode"),c5=Symbol.for("react.profiler"),f5=Symbol.for("react.consumer"),d5=Symbol.for("react.context"),h5=Symbol.for("react.forward_ref"),p5=Symbol.for("react.suspense"),m5=Symbol.for("react.memo"),NC=Symbol.for("react.lazy"),g5=Symbol.for("react.activity"),O5=Symbol.for("react.view_transition"),PC=Symbol.iterator;function b5(t){return t===null||typeof t!="object"?null:(t=PC&&t[PC]||t["@@iterator"],typeof t=="function"?t:null)}var $C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BC=Object.assign,zC={};function rl(t,e,a){this.props=t,this.context=e,this.refs=zC,this.updater=a||$C}rl.prototype.isReactComponent={};rl.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")};rl.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function UC(){}UC.prototype=rl.prototype;function PO(t,e,a){this.props=t,this.context=e,this.refs=zC,this.updater=a||$C}var MO=PO.prototype=new UC;MO.constructor=PO;BC(MO,rl.prototype);MO.isPureReactComponent=!0;var MC=Array.isArray;function TO(){}var it={H:null,A:null,T:null,S:null},XC=Object.prototype.hasOwnProperty;function DO(t,e,a){var n=a.ref;return{$$typeof:IO,type:t,key:e,ref:n!==void 0?n:null,props:a}}function x5(t,e){return DO(t.type,e,t.props)}function QO(t){return typeof t=="object"&&t!==null&&t.$$typeof===IO}function S5(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(a){return e[a]})}var DC=/\/+/g;function RO(t,e){return typeof t=="object"&&t!==null&&t.key!=null?S5(""+t.key):e.toString(36)}function y5(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(TO,TO):(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 nl(t,e,a,n,r){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 IO:case s5:o=!0;break;case NC:return o=t._init,nl(o(t._payload),e,a,n,r)}}if(o)return r=r(t),o=n===""?"."+RO(t,0):n,MC(r)?(a="",o!=null&&(a=o.replace(DC,"$&/")+"/"),nl(r,e,a,"",function(u){return u})):r!=null&&(QO(r)&&(r=x5(r,a+(r.key==null||t&&t.key===r.key?"":(""+r.key).replace(DC,"$&/")+"/")+o)),e.push(r)),1;o=0;var s=n===""?".":n+":";if(MC(t))for(var l=0;l<t.length;l++)n=t[l],i=s+RO(n,l),o+=nl(n,e,a,i,r);else if(l=b5(t),typeof l=="function")for(t=l.call(t),l=0;!(n=t.next()).done;)n=n.value,i=s+RO(n,l++),o+=nl(n,e,a,i,r);else if(i==="object"){if(typeof t.then=="function")return nl(y5(t),e,a,n,r);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 Jd(t,e,a){if(t==null)return t;var n=[],r=0;return nl(t,n,"","",function(i){return e.call(a,i,r++)}),n}function v5(t){if(t._status===-1){var e=t._result,a=e();a.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n,a.status===void 0&&(a.status="fulfilled",a.value=n))},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n,a.status===void 0&&(a.status="rejected",a.reason=n))}),t._status===-1&&(t._status=0,t._result=a)}if(t._status===1)return t._result.default;throw t._result}var QC=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 qC(t){var e=it.T,a={};a.types=e!==null?e.types:null,it.T=a;try{var n=t(),r=it.S;r!==null&&r(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(TO,QC)}catch(i){QC(i)}finally{e!==null&&a.types!==null&&(e.types=a.types),it.T=e}}function ZC(t){var e=it.T;if(e!==null){var a=e.types;a===null?e.types=[t]:a.indexOf(t)===-1&&a.push(t)}else qC(ZC.bind(null,t))}var C5={map:Jd,forEach:function(t,e,a){Jd(t,function(){e.apply(this,arguments)},a)},count:function(t){var e=0;return Jd(t,function(){e++}),e},toArray:function(t){return Jd(t,function(e){return e})||[]},only:function(t){if(!QO(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};be.Activity=g5;be.Children=C5;be.Component=rl;be.Fragment=l5;be.Profiler=c5;be.PureComponent=PO;be.StrictMode=u5;be.Suspense=p5;be.ViewTransition=O5;be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=it;be.__COMPILER_RUNTIME={__proto__:null,c:function(t){return it.H.useMemoCache(t)}};be.addTransitionType=ZC;be.cache=function(t){return function(){return t.apply(null,arguments)}};be.cacheSignal=function(){return null};be.cloneElement=function(t,e,a){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=BC({},t.props),r=t.key;if(e!=null)for(i in e.key!==void 0&&(r=""+e.key),e)!XC.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(n[i]=e[i]);var i=arguments.length-2;if(i===1)n.children=a;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];n.children=o}return DO(t.type,r,n)};be.createContext=function(t){return t={$$typeof:d5,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:f5,_context:t},t};be.createElement=function(t,e,a){var n,r={},i=null;if(e!=null)for(n in e.key!==void 0&&(i=""+e.key),e)XC.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(r[n]=e[n]);var o=arguments.length-2;if(o===1)r.children=a;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];r.children=s}if(t&&t.defaultProps)for(n in o=t.defaultProps,o)r[n]===void 0&&(r[n]=o[n]);return DO(t,i,r)};be.createRef=function(){return{current:null}};be.forwardRef=function(t){return{$$typeof:h5,render:t}};be.isValidElement=QO;be.lazy=function(t){return{$$typeof:NC,_payload:{_status:-1,_result:t},_init:v5}};be.memo=function(t,e){return{$$typeof:m5,type:t,compare:e===void 0?null:e}};be.startTransition=qC;be.unstable_useCacheRefresh=function(){return it.H.useCacheRefresh()};be.use=function(t){return it.H.use(t)};be.useActionState=function(t,e,a){return it.H.useActionState(t,e,a)};be.useCallback=function(t,e){return it.H.useCallback(t,e)};be.useContext=function(t){return it.H.useContext(t)};be.useDebugValue=function(){};be.useDeferredValue=function(t,e){return it.H.useDeferredValue(t,e)};be.useEffect=function(t,e){return it.H.useEffect(t,e)};be.useEffectEvent=function(t){return it.H.useEffectEvent(t)};be.useId=function(){return it.H.useId()};be.useImperativeHandle=function(t,e,a){return it.H.useImperativeHandle(t,e,a)};be.useInsertionEffect=function(t,e){return it.H.useInsertionEffect(t,e)};be.useLayoutEffect=function(t,e){return it.H.useLayoutEffect(t,e)};be.useMemo=function(t,e){return it.H.useMemo(t,e)};be.useOptimistic=function(t,e){return it.H.useOptimistic(t,e)};be.useReducer=function(t,e,a){return it.H.useReducer(t,e,a)};be.useRef=function(t){return it.H.useRef(t)};be.useState=function(t){return it.H.useState(t)};be.useSyncExternalStore=function(t,e,a){return it.H.useSyncExternalStore(t,e,a)};be.useTransition=function(){return it.H.useTransition()};be.version="19.3.1"});var Ce=ge((jK,GC)=>{"use strict";GC.exports=FC()});var VC=ge(pa=>{"use strict";var w5=Ce();function jC(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 ki(){}var xa={d:{f:ki,r:function(){throw Error(jC(522))},D:ki,C:ki,L:ki,m:ki,X:ki,S:ki,M:ki},p:0,findDOMNode:null},k5=Symbol.for("react.portal"),L5=Symbol.for("react.recoverable"),HC=Symbol.for("react.optimistic_key");function E5(t,e,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:k5,key:n==null?null:n===HC?HC:""+n,children:t,containerInfo:e,implementation:a}}var rc=w5.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function eh(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}pa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xa;pa.browser=function(t){return{$$typeof:L5,_reason:t}};pa.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(jC(299));return E5(t,e,null,a)};pa.flushSync=function(t){var e=rc.T,a=xa.p;try{if(rc.T=null,xa.p=2,t)return t()}finally{rc.T=e,xa.p=a,xa.d.f()}};pa.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,xa.d.C(t,e))};pa.prefetchDNS=function(t){typeof t=="string"&&xa.d.D(t)};pa.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var a=e.as,n=eh(a,e.crossOrigin),r=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;a==="style"?xa.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:r,fetchPriority:i}):a==="script"&&xa.d.X(t,{crossOrigin:n,integrity:r,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};pa.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var a=eh(e.as,e.crossOrigin);xa.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&&xa.d.M(t)};pa.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var a=e.as,n=eh(a,e.crossOrigin);xa.d.L(t,a,{crossOrigin:n,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})}};pa.preloadModule=function(t,e){if(typeof t=="string")if(e){var a=eh(e.as,e.crossOrigin);xa.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 xa.d.m(t)};pa.requestFormReset=function(t){xa.d.r(t)};pa.unstable_batchedUpdates=function(t,e){return t(e)};pa.useFormState=function(t,e,a){return rc.H.useFormState(t,e,a)};pa.useFormStatus=function(){return rc.H.useHostTransitionStatus()};pa.version="19.3.1"});var NO=ge((YK,WC)=>{"use strict";function YC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YC)}catch(t){console.error(t)}}YC(),WC.exports=VC()});var N_=ge(Dp=>{"use strict";var $t=IC(),Qk=Ce(),_5=NO();function P(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 Nk(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Fc(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 $k(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 Bk(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 KC(t){if(Fc(t)!==t)throw Error(P(188))}function A5(t){var e=t.alternate;if(!e){if(e=Fc(t),e===null)throw Error(P(188));return e!==t?null:t}for(var a=t,n=e;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return KC(r),t;if(i===n)return KC(r),e;i=i.sibling}throw Error(P(188))}if(a.return!==n.return)a=r,n=i;else{for(var o=!1,s=r.child;s;){if(s===a){o=!0,a=r,n=i;break}if(s===n){o=!0,n=r,a=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===a){o=!0,a=i,n=r;break}if(s===n){o=!0,n=i,a=r;break}s=s.sibling}if(!o)throw Error(P(189))}}if(a.alternate!==n)throw Error(P(190))}if(a.tag!==3)throw Error(P(188));return a.stateNode.current===a?t:e}function zk(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=zk(t),e!==null)return e;t=t.sibling}return null}function Ba(t,e,a,n,r,i){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&a(t,n,r,i)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Ba(t.child,e,a,n,r,i))return!0;t=t.sibling}return!1}function cs(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 JC(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 Uk(t){var e=[null,null],a=cs(t);return a===null||Xk(e,t,a.child,{foundSelf:!1}),e}function Xk(t,e,a,n){for(;a!==null;){if(a===e)n.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(n.foundSelf)return t[1]=a,!0;t[0]=a}else if((a.tag!==22||a.memoizedState===null)&&Xk(t,e,a.child,n))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(P(559))}}var fl=null,mb=null;function R5(t,e,a){return t===a?!0:t===e?(fl=t,!0):!1}function T5(t,e,a){return t===a?(mb=t,!1):t===e?(mb!==null&&(fl=t),!0):!1}function ew(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 gb(t,e,a){for(var n=0,r=t;r;r=a(r))n++;r=0;for(var i=e;i;i=a(i))r++;for(;0<n-r;)t=a(t),n--;for(;0<r-n;)e=a(e),r--;for(;n--;){if(t===e||e!==null&&t===e.alternate)return t;t=a(t),e=a(e)}return null}var at=Object.assign,I5=Symbol.for("react.element"),th=Symbol.for("react.transitional.element"),fc=Symbol.for("react.portal"),dl=Symbol.for("react.fragment"),qk=Symbol.for("react.strict_mode"),Ob=Symbol.for("react.profiler"),Zk=Symbol.for("react.consumer"),yr=Symbol.for("react.context"),L0=Symbol.for("react.forward_ref"),bb=Symbol.for("react.suspense"),xb=Symbol.for("react.suspense_list"),E0=Symbol.for("react.memo"),Ai=Symbol.for("react.lazy"),Sb=Symbol.for("react.activity"),P5=Symbol.for("react.legacy_hidden"),M5=Symbol.for("react.memo_cache_sentinel"),yb=Symbol.for("react.view_transition"),D5=Symbol.for("react.recoverable"),tw=Symbol.iterator;function ic(t){return t===null||typeof t!="object"?null:(t=tw&&t[tw]||t["@@iterator"],typeof t=="function"?t:null)}var Q5=Symbol.for("react.client.reference");function vb(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Q5?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case dl:return"Fragment";case Ob:return"Profiler";case qk:return"StrictMode";case bb:return"Suspense";case xb:return"SuspenseList";case Sb:return"Activity";case yb:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case fc:return"Portal";case yr:return t.displayName||"Context";case Zk:return(t._context.displayName||"Context")+".Consumer";case L0:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case E0:return e=t.displayName||null,e!==null?e:vb(t.type)||"Memo";case Ai:e=t._payload,t=t._init;try{return vb(t(e))}catch{}}return null}var dc=Array.isArray,Oe=Qk.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe=_5.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Wo={pending:!1,data:null,method:null,action:null},Cb=[],hl=-1;function _r(t){return{current:t}}function na(t){0>hl||(t.current=Cb[hl],Cb[hl]=null,hl--)}function lt(t,e){hl++,Cb[hl]=t.current,t.current=e}var kr=_r(null),Ac=_r(null),$i=_r(null),Uh=_r(null);function Xh(t,e){switch(lt($i,e),lt(Ac,t),lt(kr,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?mk(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=mk(e),t=d_(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}na(kr),lt(kr,t)}function Pl(){na(kr),na(Ac),na($i)}function wb(t){var e=t.memoizedState;e!==null&&(ql._currentValue=e.memoizedState,lt(Uh,t)),e=kr.current;var a=d_(e,t.type);e!==a&&(lt(Ac,t),lt(kr,a))}function qh(t){Ac.current===t&&(na(kr),na(Ac)),Uh.current===t&&(na(Uh),ql._currentValue=Wo)}var $O,aw;function Ei(t){if($O===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);$O=e&&e[1]||"",aw=-1<a.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+$O+t+aw}var BO=!1;function zO(t,e){if(!t||BO)return"";BO=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={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]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split(`
|
|
5
|
+
`),u=s.split(`
|
|
6
|
+
`);for(r=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(n===l.length||r===u.length)for(n=l.length-1,r=u.length-1;1<=n&&0<=r&&l[n]!==u[r];)r--;for(;1<=n&&0<=r;n--,r--)if(l[n]!==u[r]){if(n!==1||r!==1)do if(n--,r--,0>r||l[n]!==u[r]){var c=`
|
|
7
|
+
`+l[n].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=n&&0<=r);break}}}finally{BO=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Ei(a):""}function N5(t,e){switch(t.tag){case 26:case 27:case 5:return Ei(t.type);case 16:return Ei("Lazy");case 13:return t.child!==e&&e!==null?Ei("Suspense Fallback"):Ei("Suspense");case 19:return Ei("SuspenseList");case 0:case 15:return zO(t.type,!1);case 11:return zO(t.type.render,!1);case 1:return zO(t.type,!0);case 31:return Ei("Activity");case 30:return Ei("ViewTransition");default:return""}}function nw(t){try{var e="",a=null;do e+=N5(t,a),a=t,t=t.return;while(t);return e}catch(n){return`
|
|
8
|
+
Error generating stack: `+n.message+`
|
|
9
|
+
`+n.stack}}var kb=Object.prototype.hasOwnProperty,_0=$t.unstable_scheduleCallback,UO=$t.unstable_cancelCallback,$5=$t.unstable_shouldYield,B5=$t.unstable_requestPaint,Ka=$t.unstable_now,z5=$t.unstable_getCurrentPriorityLevel,Fk=$t.unstable_ImmediatePriority,Gk=$t.unstable_UserBlockingPriority,Zh=$t.unstable_NormalPriority,U5=$t.unstable_LowPriority,Hk=$t.unstable_IdlePriority,X5=$t.log,q5=$t.unstable_setDisableYieldValue,Gc=null,Ja=null;function Ii(t){if(typeof X5=="function"&&q5(t),Ja&&typeof Ja.setStrictMode=="function")try{Ja.setStrictMode(Gc,t)}catch{}}var en=Math.clz32?Math.clz32:G5,Z5=Math.log,F5=Math.LN2;function G5(t){return t>>>=0,t===0?32:31-(Z5(t)/F5|0)|0}var ah=256,nh=262144,rh=4194304;function Go(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 gp(t,e,a){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var s=n&134217727;return s!==0?(n=s&~i,n!==0?r=Go(n):(o&=s,o!==0?r=Go(o):a||(a=s&~t,a!==0&&(r=Go(a))))):(s=n&~i,s!==0?r=Go(s):o!==0?r=Go(o):a||(a=n&~t,a!==0&&(r=Go(a)))),r===0?0:e!==0&&e!==r&&(e&i)===0&&(i=r&-r,a=e&-e,i>=a||i===32&&(a&4194048)!==0)?e:r}function Hc(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function jk(t,e){(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-en(a),r=1<<n;e|=t[n],a&=~r}return e}function H5(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 Vk(){var t=rh;return rh<<=1,(rh&62914560)===0&&(rh=4194304),t}function XO(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function jc(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function j5(t,e,a,n,r,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-en(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}n!==0&&Yk(t,n,0),i!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e))}function Yk(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-en(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|a&261930}function Wk(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var n=31-en(a),r=1<<n;r&e|t[n]&e&&(t[n]|=e),a&=~r}}function Kk(t,e){var a=e&-e;return a=(a&42)!==0?1:A0(a),(a&(t.suspendedLanes|e))!==0?0:a}function A0(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 R0(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Jk(){var t=qe.p;return t!==0?t:(t=window.event,t===void 0?32:M_(t.type))}function rw(t,e){var a=qe.p;try{return qe.p=t,e()}finally{qe.p=a}}var si=Math.random().toString(36).slice(2),ta="__reactFiber$"+si,za="__reactProps$"+si,Gl="__reactContainer$"+si,iw="__reactEvents$"+si,V5="__reactListeners$"+si,Y5="__reactHandles$"+si,ow="__reactResources$"+si,Vc="__reactMarker$"+si,Fh="__reactLoad$"+si;function Op(t){delete t[ta],delete t[za],delete t[V5],delete t[Y5]}function Vo(t){var e;if(e=t[ta])return e;for(var a=t.parentNode;a;){if(e=a[Gl]||a[ta]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Ck(t);t!==null;){if(a=t[ta])return a;t=Ck(t)}return e}t=a,a=t.parentNode}return null}function Hl(t){if(t=t[ta]||t[Gl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function hc(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(P(33))}function Cl(t){var e=t[ow];return e||(e=t[ow]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Gt(t){t[Vc]=!0}function eL(t){t[Fh]=void 0}var tL=new Set,aL={};function fs(t,e){Ml(t,e),Ml(t+"Capture",e)}function Ml(t,e){for(aL[t]=e,t=0;t<e.length;t++)tL.add(e[t])}var W5=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]*$"),sw={},lw={};function K5(t){return kb.call(lw,t)?!0:kb.call(sw,t)?!1:W5.test(t)?lw[t]=!0:(sw[t]=!0,!1)}var Be=!1;function uw(){var t=Be;return Be=!1,t}function vh(t,e,a){if(K5(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,a)}}function ih(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 Vr(t,e,a,n){if(n===null)t.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,n)}}function ja(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function nL(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function J5(t,e,a){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Lb(t){if(!t._valueTracker){var e=nL(t)?"checked":"value";t._valueTracker=J5(t,e,""+t[e])}}function rL(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=nL(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}var e3=/[\n"\\]/g;function vn(t){return t.replace(e3,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Eb(t,e,a,n,r,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=""+ja(e)):t.value!==""+ja(e)&&(t.value=""+ja(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?o==="number"&&t.value==e?qO(t,ja(t.value)):qO(t,ja(e)):a!=null?qO(t,ja(a)):n!=null&&t.removeAttribute("value"),r==null&&i!=null&&(t.defaultChecked=!!i),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+ja(s):t.removeAttribute("name")}function iL(t,e,a,n,r,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)){Lb(t);return}a=a!=null?""+ja(a):"",e=e!=null?""+ja(e):a,s||e===t.value||(t.value=e),t.defaultValue=e}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=s?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Lb(t)}function qO(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function wl(t,e,a,n){if(t=t.options,e){e={};for(var r=0;r<a.length;r++)e["$"+a[r]]=!0;for(a=0;a<t.length;a++)r=e.hasOwnProperty("$"+t[a].value),t[a].selected!==r&&(t[a].selected=r),r&&n&&(t[a].defaultSelected=!0)}else{for(a=""+ja(a),e=null,r=0;r<t.length;r++){if(t[r].value===a){t[r].selected=!0,n&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function oL(t,e,a){if(e!=null&&(e=""+ja(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+ja(a):""}function sL(t,e,a,n){if(e==null){if(n!=null){if(a!=null)throw Error(P(92));if(dc(n)){if(1<n.length)throw Error(P(93));n=n[0]}a=n}a==null&&(a=""),e=a}a=ja(e),t.defaultValue=a,n=t.textContent,n===a&&n!==""&&n!==null&&(t.value=n),Lb(t)}function Dl(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var t3=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 cw(t,e,a){var n=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,a):typeof a!="number"||a===0||t3.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function lL(t,e,a){if(e!=null&&typeof e!="object")throw Error(P(62));if(t=t.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="",Be=!0);for(var r in e)n=e[r],e.hasOwnProperty(r)&&a[r]!==n&&(cw(t,r,n),Be=!0)}else for(var i in e)e.hasOwnProperty(i)&&cw(t,i,e[i])}function T0(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 a3=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"]]),n3=/^[\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 Ch(t){return n3.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function vr(){}var _b=null;function I0(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var pl=null,kl=null;function fw(t){var e=Hl(t);if(e&&(t=e.stateNode)){var a=t[za]||null;e:switch(t=e.stateNode,e.type){case"input":if(Eb(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="'+vn(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var n=a[e];if(n!==t&&n.form===t.form){var r=n[za]||null;if(!r)throw Error(P(90));Eb(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<a.length;e++)n=a[e],n.form===t.form&&rL(n)}break e;case"textarea":oL(t,a.value,a.defaultValue);break e;case"select":e=a.value,e!=null&&wl(t,!!a.multiple,e,!1)}}}var ZO=!1;function uL(t,e,a){if(ZO)return t(e,a);ZO=!0;try{var n=t(e);return n}finally{if(ZO=!1,(pl!==null||kl!==null)&&(Tp(),pl&&(e=pl,t=kl,kl=pl=null,fw(e),t)))for(e=0;e<t.length;e++)fw(t[e])}}function Rc(t,e){var a=t.stateNode;if(a===null)return null;var n=a[za]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(P(231,e,typeof a));return a}var ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ab=!1;if(ti)try{il={},Object.defineProperty(il,"passive",{get:function(){Ab=!0}}),window.addEventListener("test",il,il),window.removeEventListener("test",il,il)}catch{Ab=!1}var il,Pi=null,P0=null,wh=null;function cL(){if(wh)return wh;var t,e=P0,a=e.length,n,r="value"in Pi?Pi.value:Pi.textContent,i=r.length;for(t=0;t<a&&e[t]===r[t];t++);var o=a-t;for(n=1;n<=o&&e[a-n]===r[i-n];n++);return wh=r.slice(t,1<n?1-n:void 0)}function kh(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 oh(){return!0}function dw(){return!1}function Ca(t){function e(a,n,r,i,o){this._reactName=a,this._targetInst=r,this.type=n,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)?oh:dw,this.isPropagationStopped=dw,this}return at(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=oh)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=oh)},persist:function(){},isPersistent:oh}),e}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bp=Ca(Ji),Yc=at({},Ji,{view:0,detail:0}),r3=Ca(Yc),FO,GO,oc,xp=at({},Yc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:M0,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!==oc&&(oc&&t.type==="mousemove"?(FO=t.screenX-oc.screenX,GO=t.screenY-oc.screenY):GO=FO=0,oc=t),FO)},movementY:function(t){return"movementY"in t?t.movementY:GO}}),hw=Ca(xp),i3=at({},xp,{dataTransfer:0}),o3=Ca(i3),s3=at({},Yc,{relatedTarget:0}),HO=Ca(s3),l3=at({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),u3=Ca(l3),c3=at({},Ji,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),f3=Ca(c3),d3=at({},Ji,{data:0}),pw=Ca(d3),h3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p3={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"},m3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g3(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=m3[t])?!!e[t]:!1}function M0(){return g3}var O3=at({},Yc,{key:function(t){if(t.key){var e=h3[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=kh(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?p3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:M0,charCode:function(t){return t.type==="keypress"?kh(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?kh(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),b3=Ca(O3),x3=at({},xp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mw=Ca(x3),S3=at({},Ji,{submitter:0}),y3=Ca(S3),v3=at({},Yc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:M0}),C3=Ca(v3),w3=at({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),k3=Ca(w3),L3=at({},xp,{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=Ca(L3),_3=at({},Ji,{newState:0,oldState:0,source:0}),A3=Ca(_3),R3=[9,13,27,32],D0=ti&&"CompositionEvent"in window,gc=null;ti&&"documentMode"in document&&(gc=document.documentMode);var T3=ti&&"TextEvent"in window&&!gc,fL=ti&&(!D0||gc&&8<gc&&11>=gc),gw=" ",Ow=!1;function dL(t,e){switch(t){case"keyup":return R3.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hL(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ml=!1;function I3(t,e){switch(t){case"compositionend":return hL(e);case"keypress":return e.which!==32?null:(Ow=!0,gw);case"textInput":return t=e.data,t===gw&&Ow?null:t;default:return null}}function P3(t,e){if(ml)return t==="compositionend"||!D0&&dL(t,e)?(t=cL(),wh=P0=Pi=null,ml=!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 fL&&e.locale!=="ko"?null:e.data;default:return null}}var M3={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 bw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!M3[t.type]:e==="textarea"}function pL(t,e,a,n){pl?kl?kl.push(n):kl=[n]:pl=n,e=hp(e,"onChange"),0<e.length&&(a=new bp("onChange","change",null,a,n),t.push({event:a,listeners:e}))}var Oc=null,Tc=null;function D3(t){u_(t,0)}function Sp(t){var e=hc(t);if(rL(e))return t}function xw(t,e){if(t==="change")return e}var mL=!1;ti&&(ti?(lh="oninput"in document,lh||(jO=document.createElement("div"),jO.setAttribute("oninput","return;"),lh=typeof jO.oninput=="function"),sh=lh):sh=!1,mL=sh&&(!document.documentMode||9<document.documentMode));var sh,lh,jO;function Sw(){Oc&&(Oc.detachEvent("onpropertychange",gL),Tc=Oc=null)}function gL(t){if(t.propertyName==="value"&&Sp(Tc)){var e=[];pL(e,Tc,t,I0(t)),uL(D3,e)}}function Q3(t,e,a){t==="focusin"?(Sw(),Oc=e,Tc=a,Oc.attachEvent("onpropertychange",gL)):t==="focusout"&&Sw()}function N3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Sp(Tc)}function $3(t,e){if(t==="click")return Sp(e)}function B3(t,e){if(t==="input"||t==="change")return Sp(e)}function z3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var an=typeof Object.is=="function"?Object.is:z3;function Ic(t,e){if(an(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),n=Object.keys(e);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!kb.call(e,r)||!an(t[r],e[r]))return!1}return!0}function Rb(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 yw(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function vw(t,e){var a=yw(t);t=0;for(var n;a;){if(a.nodeType===3){if(n=t+a.textContent.length,t<=e&&n>=e)return{node:a,offset:e-t};t=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=yw(a)}}function OL(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?OL(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function bL(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Rb(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=Rb(t.document)}return e}function Q0(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 U3=ti&&"documentMode"in document&&11>=document.documentMode,gl=null,Tb=null,bc=null,Ib=!1;function Cw(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ib||gl==null||gl!==Rb(n)||(n=gl,"selectionStart"in n&&Q0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bc&&Ic(bc,n)||(bc=n,n=hp(Tb,"onSelect"),0<n.length&&(e=new bp("onSelect","select",null,e,a),t.push({event:e,listeners:n}),e.target=gl)))}function Zo(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ol={animationend:Zo("Animation","AnimationEnd"),animationiteration:Zo("Animation","AnimationIteration"),animationstart:Zo("Animation","AnimationStart"),transitionrun:Zo("Transition","TransitionRun"),transitionstart:Zo("Transition","TransitionStart"),transitioncancel:Zo("Transition","TransitionCancel"),transitionend:Zo("Transition","TransitionEnd")},VO={},xL={};ti&&(xL=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function ds(t){if(VO[t])return VO[t];if(!Ol[t])return t;var e=Ol[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in xL)return VO[t]=e[a];return t}var SL=ds("animationend"),yL=ds("animationiteration"),vL=ds("animationstart"),X3=ds("transitionrun"),q3=ds("transitionstart"),Z3=ds("transitioncancel"),CL=ds("transitionend"),wL=new Map,Pb="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(" ");Pb.push("scrollEnd");function Yn(t,e){wL.set(t,e),fs(e,[t])}var F3=0;function ai(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=Vn.identifierPrefix;var a=F3++;return t="_"+t+"t_"+a.toString(32)+"_",e.autoName=t}function ww(t){if(t==null||typeof t=="string")return t;var e=null,a=Il;if(a!==null)for(var n=0;n<a.length;n++){var r=t[a[n]];if(r!=null){if(r==="none")return"none";e=e==null?r:e+(" "+r)}}return e??t.default}function li(t,e){return t=ww(t),e=ww(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Gh=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)},xn=[],bl=0,N0=0;function yp(){for(var t=bl,e=N0=bl=0;e<t;){var a=xn[e];xn[e++]=null;var n=xn[e];xn[e++]=null;var r=xn[e];xn[e++]=null;var i=xn[e];if(xn[e++]=null,n!==null&&r!==null){var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}i!==0&&kL(a,r,i)}}function vp(t,e,a,n){xn[bl++]=t,xn[bl++]=e,xn[bl++]=a,xn[bl++]=n,N0|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function $0(t,e,a,n){return vp(t,e,a,n),Hh(t)}function hs(t,e){return vp(t,null,null,e),Hh(t)}function kL(t,e,a){t.lanes|=a;var n=t.alternate;n!==null&&(n.lanes|=a);for(var r=!1,i=t.return;i!==null;)i.childLanes|=a,n=i.alternate,n!==null&&(n.childLanes|=a),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(r=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,r&&e!==null&&(r=31-en(a),t=i.hiddenUpdates,n=t[r],n===null?t[r]=[e]:n.push(e),e.lane=a|536870912),i):null}function Hh(t){if(50<_c)throw _c=0,Dh=null,Error(P(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var xl={};function G3(t,e,a,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Na(t,e,a,n){return new G3(t,e,a,n)}function B0(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Jr(t,e){var a=t.alternate;return a===null?(a=Na(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 LL(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 Lh(t,e,a,n,r,i){var o=0;if(n=t,typeof n=="function")B0(n)&&(o=1);else if(typeof n=="string")o=bX(t,a,kr.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(n){case Sb:return t=Na(31,a,e,r),t.elementType=Sb,t.lanes=i,t;case dl:return Ko(a.children,r,i,e);case qk:o=8,r|=24;break;case Ob:return t=Na(12,a,e,r|2),t.elementType=Ob,t.lanes=i,t;case bb:return t=Na(13,a,e,r),t.elementType=bb,t.lanes=i,t;case xb:return t=Na(19,a,e,r),t.elementType=xb,t.lanes=i,t;case P5:case yb:return t=r|32,t=Na(30,a,e,t),t.elementType=yb,t.lanes=i,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case yr:o=10;break e;case Zk:o=9;break e;case L0:o=11;break e;case E0:o=14;break e;case Ai:o=16,n=null;break e}o=29,a=Error(P(130,t===null?"null":typeof t,"")),n=null}return e=Na(o,a,e,r),e.elementType=t,e.type=n,e.lanes=i,e}function Ko(t,e,a,n){return t=Na(7,t,n,e),t.lanes=a,t}function YO(t,e,a){return t=Na(6,t,null,e),t.lanes=a,t}function EL(t){var e=Na(18,null,null,0);return e.stateNode=t,e}function WO(t,e,a){return e=Na(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var kw=new WeakMap;function Cn(t,e){if(typeof t=="object"&&t!==null){var a=kw.get(t);return a!==void 0?a:(e={value:t,source:e,stack:nw(e)},kw.set(t,e),e)}return{value:t,source:e,stack:nw(e)}}var Sl=[],yl=0,jh=null,Pc=0,Sn=[],yn=0,ji=null,Cr=1,wr="";function Wr(t,e){Sl[yl++]=Pc,Sl[yl++]=jh,jh=t,Pc=e}function _L(t,e,a){Sn[yn++]=Cr,Sn[yn++]=wr,Sn[yn++]=ji,ji=t;var n=Cr;t=wr;var r=32-en(n)-1;n&=~(1<<r),a+=1;var i=32-en(e)+r;if(30<i){var o=r-r%5;i=(n&(1<<o)-1).toString(32),n>>=o,r-=o,Cr=1<<32-en(e)+r|a<<r|n,wr=i+t}else Cr=1<<i|a<<r|n,wr=t}function Cp(t){t.return!==null&&(Wr(t,1),_L(t,1,0))}function z0(t){for(;t===jh;)jh=Sl[--yl],Sl[yl]=null,Pc=Sl[--yl],Sl[yl]=null;for(;t===ji;)ji=Sn[--yn],Sn[yn]=null,wr=Sn[--yn],Sn[yn]=null,Cr=Sn[--yn],Sn[yn]=null}function AL(t,e){Sn[yn++]=Cr,Sn[yn++]=wr,Sn[yn++]=ji,Cr=e.id,wr=e.overflow,ji=t}var Ht=null,st=null,Le=!1,Bi=null,wn=!1,Mb=Error(P(519));function Vi(t){var e=Error(P(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Mc(Cn(e,t)),Mb}function Lw(t){var e=t.stateNode,a=t.type,n=t.memoizedProps;switch(e[ta]=t,e[za]=n,a){case"dialog":Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":case"embed":Ae("load",e);break;case"video":case"audio":for(a=0;a<$c.length;a++)Ae($c[a],e);break;case"source":Ae("error",e);break;case"img":case"image":case"link":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"input":Ae("invalid",e),iL(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ae("invalid",e);break;case"textarea":Ae("invalid",e),sL(e,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||n.suppressHydrationWarning===!0||f_(e.textContent,a)?(n.popover!=null&&(Ae("beforetoggle",e),Ae("toggle",e)),n.onScroll!=null&&Ae("scroll",e),n.onScrollEnd!=null&&Ae("scrollend",e),n.onClick!=null&&(e.onclick=vr),e=!0):e=!1,e||Vi(t,!0)}function Vh(t){for(Ht=t.return;Ht;)switch(Ht.tag){case 5:case 31:case 13:wn=!1;return;case 27:case 3:wn=!0;return;default:Ht=Ht.return}}function ol(t){if(t!==Ht)return!1;if(!Le)return Vh(t),Le=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||b0(t.type,t.memoizedProps)),a=!a),a&&st&&Vi(t),Vh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(P(317));st=vk(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(P(317));st=vk(t)}else e===27?(e=st,eo(t.type)?(t=v0,v0=null,st=t):st=e):st=Ht?kn(t.stateNode.nextSibling):null;return!0}function as(){st=Ht=null,Le=!1}function KO(){var t=Bi;return t!==null&&(Da===null?Da=t:Da.push.apply(Da,t),Bi=null),t}function Mc(t){Bi===null?Bi=[t]:Bi.push(t)}var Db=_r(null),ps=null,Kr=null;function Mi(t,e,a){lt(Db,e._currentValue),e._currentValue=a}function ei(t){t._currentValue=Db.current,na(Db)}function Eh(t,e,a){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===a)break;t=t.return}}function Qb(t,e,a,n){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var i=r.dependencies;if(i!==null){var o=r.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=r;for(var l=0;l<e.length;l++)if(s.context===e[l]){i.lanes|=a,s=i.alternate,s!==null&&(s.lanes|=a),Eh(i.return,a,t),n||(o=null);break e}i=s.next}}else if(r.tag===18){if(o=r.return,o===null)throw Error(P(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),Eh(o,a,t),o=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=a,o=r.alternate,o!==null&&(o.lanes|=a),Eh(r.return,a,t),o=r.child,o=o!==null?o.sibling:null):o=r.child;if(o!==null)o.return=r;else for(o=r;o!==null;){if(o===t){o=null;break}if(r=o.sibling,r!==null){r.return=o.return,o=r;break}o=o.return}r=o}}function ns(t,e,a,n){t=null;for(var r=e,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var o=r.alternate;if(o===null)throw Error(P(387));if(o=o.memoizedProps,o!==null){var s=r.type;an(r.pendingProps.value,o.value)||(t!==null?t.push(s):t=[s])}}else if(r===Uh.current){if(o=r.alternate,o===null)throw Error(P(387));o.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(ql):t=[ql])}r=r.return}return t!==null&&Qb(e,t,a,n),e.flags|=262144,t!==null}function Yh(t){for(t=t.firstContext;t!==null;){if(!an(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function rs(t){ps=t,Kr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function aa(t){return RL(ps,t)}function uh(t,e){return ps===null&&rs(t),RL(t,e)}function RL(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Kr===null){if(t===null)throw Error(P(308));Kr=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Kr=Kr.next=e;return a}var H3=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},j3=$t.unstable_scheduleCallback,V3=$t.unstable_NormalPriority,At={$$typeof:yr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function U0(){return{controller:new H3,data:new Map,refCount:0}}function Wc(t){t.refCount--,t.refCount===0&&j3(V3,function(){t.controller.abort()})}function Ew(t,e){if((t.pendingLanes&4194048)!==0){var a=t.transitionTypes;for(a===null&&(a=t.transitionTypes=[]),t=0;t<e.length;t++){var n=e[t];a.indexOf(n)===-1&&a.push(n)}}}var pc=null;function Y3(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var xc=null,Nb=0,is=0,Ll=null;function W3(t,e){if(xc===null){var a=xc=[];Nb=0,is=mx(),Ll={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Nb++,e.then(_w,_w),e}function _w(){if(--Nb===0&&(pc=null,xc!==null)){Ll!==null&&(Ll.status="fulfilled");var t=xc;xc=null,is=0,Ll=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function K3(t,e){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var r=0;r<a.length;r++)(0,a[r])(e)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var Aw=Oe.S;Oe.S=function(t,e){if(jE=Ka(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&W3(t,e),pc!==null)for(var a=zl;a!==null;)Ew(a,pc),a=a.next;if(a=t.types,a!==null){for(var n=zl;n!==null;)Ew(n,a),n=n.next;if(is!==0){n=pc,n===null&&(n=pc=[]);for(var r=0;r<a.length;r++){var i=a[r];n.indexOf(i)===-1&&n.push(i)}}}Aw!==null&&Aw(t,e)};var Jo=_r(null);function X0(){var t=Jo.current;return t!==null?t:tt.pooledCache}function _h(t,e){e===null?lt(Jo,Jo.current):lt(Jo,e.pool)}function TL(){var t=X0();return t===null?null:{parent:At._currentValue,pool:t}}var jl=Error(P(460)),q0=Error(P(474)),wp=Error(P(542)),Wh={then:function(){}};function Rw(t){return t=t.status,t==="fulfilled"||t==="rejected"}function IL(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(vr,vr),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Iw(t),t===void 0&&!("reason"in e)?Error(P(600)):t;default:if(typeof e.status=="string")e.then(vr,vr);else{if(t=tt,t!==null&&100<t.shellSuspendCounter)throw Error(P(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=n}},function(n){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Iw(t),t}throw es=e,jl}}function Ho(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(es=a,jl):a}}var es=null;function Tw(){if(es===null)throw Error(P(459));var t=es;return es=null,t}function Iw(t){if(t===jl||t===wp)throw Error(P(483))}var El=null,Dc=0;function ch(t){var e=Dc;return Dc+=1,El===null&&(El=[]),IL(El,t,e)}function Li(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function fh(t,e){throw e.$$typeof===I5?Error(P(525)):(t=Object.prototype.toString.call(e),Error(P(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function PL(t){function e(g,O){if(t){var x=g.deletions;x===null?(g.deletions=[O],g.flags|=16):x.push(O)}}function a(g,O){if(!t)return null;for(;O!==null;)e(g,O),O=O.sibling;return null}function n(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 r(g,O){return g=Jr(g,O),g.index=0,g.sibling=null,g}function i(g,O,x){return g.index=x,t?(x=g.alternate,x!==null?(x=x.index,x<O?(g.flags|=2,O):x):(g.flags|=134217730,O)):(g.flags|=1048576,O)}function o(g){return t&&g.alternate===null&&(g.flags|=134217730),g}function s(g,O,x,S){return O===null||O.tag!==6?(O=YO(x,g.mode,S),O.return=g,O):(O=r(O,x),O.return=g,O)}function l(g,O,x,S){var y=x.type;return y===dl?(g=c(g,O,x.props.children,S,x.key),Li(g,x),g):O!==null&&(O.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Ai&&Ho(y)===O.type)?(O=r(O,x.props),Li(O,x),O.return=g,O):(O=Lh(x.type,x.key,x.props,null,g.mode,S),Li(O,x),O.return=g,O)}function u(g,O,x,S){return O===null||O.tag!==4||O.stateNode.containerInfo!==x.containerInfo||O.stateNode.implementation!==x.implementation?(O=WO(x,g.mode,S),O.return=g,O):(O=r(O,x.children||[]),O.return=g,O)}function c(g,O,x,S,y){return O===null||O.tag!==7?(O=Ko(x,g.mode,S,y),O.return=g,O):(O=r(O,x),O.return=g,O)}function f(g,O,x){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=YO(""+O,g.mode,x),O.return=g,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case th:return x=Lh(O.type,O.key,O.props,null,g.mode,x),Li(x,O),x.return=g,x;case fc:return O=WO(O,g.mode,x),O.return=g,O;case Ai:return O=Ho(O),f(g,O,x)}if(dc(O)||ic(O))return O=Ko(O,g.mode,x,null),O.return=g,O;if(typeof O.then=="function")return f(g,ch(O),x);if(O.$$typeof===yr)return f(g,uh(g,O),x);fh(g,O)}return null}function d(g,O,x,S){var y=O!==null?O.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return y!==null?null:s(g,O,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case th:return x.key===y?l(g,O,x,S):null;case fc:return x.key===y?u(g,O,x,S):null;case Ai:return x=Ho(x),d(g,O,x,S)}if(dc(x)||ic(x))return y!==null?null:c(g,O,x,S,null);if(typeof x.then=="function")return d(g,O,ch(x),S);if(x.$$typeof===yr)return d(g,O,uh(g,x),S);fh(g,x)}return null}function h(g,O,x,S,y){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return g=g.get(x)||null,s(O,g,""+S,y);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case th:return g=g.get(S.key===null?x:S.key)||null,l(O,g,S,y);case fc:return g=g.get(S.key===null?x:S.key)||null,u(O,g,S,y);case Ai:return S=Ho(S),h(g,O,x,S,y)}if(dc(S)||ic(S))return g=g.get(x)||null,c(O,g,S,y,null);if(typeof S.then=="function")return h(g,O,x,ch(S),y);if(S.$$typeof===yr)return h(g,O,x,uh(O,S),y);fh(O,S)}return null}function p(g,O,x,S){for(var y=null,v=null,C=O,k=O=0,L=null;C!==null&&k<x.length;k++){C.index>k?(L=C,C=null):L=C.sibling;var E=d(g,C,x[k],S);if(E===null){C===null&&(C=L);break}t&&C&&E.alternate===null&&e(g,C),O=i(E,O,k),v===null?y=E:v.sibling=E,v=E,C=L}if(k===x.length)return a(g,C),Le&&Wr(g,k),y;if(C===null){for(;k<x.length;k++)C=f(g,x[k],S),C!==null&&(O=i(C,O,k),v===null?y=C:v.sibling=C,v=C);return Le&&Wr(g,k),y}for(C=n(C);k<x.length;k++)L=h(C,g,k,x[k],S),L!==null&&(t&&(E=L.alternate,E!==null&&C.delete(E.key===null?k:E.key)),O=i(L,O,k),v===null?y=L:v.sibling=L,v=L);return t&&C.forEach(function(A){return e(g,A)}),Le&&Wr(g,k),y}function m(g,O,x,S){if(x==null)throw Error(P(151));for(var y=null,v=null,C=O,k=O=0,L=null,E=x.next();C!==null&&!E.done;k++,E=x.next()){C.index>k?(L=C,C=null):L=C.sibling;var A=d(g,C,E.value,S);if(A===null){C===null&&(C=L);break}t&&C&&A.alternate===null&&e(g,C),O=i(A,O,k),v===null?y=A:v.sibling=A,v=A,C=L}if(E.done)return a(g,C),Le&&Wr(g,k),y;if(C===null){for(;!E.done;k++,E=x.next())E=f(g,E.value,S),E!==null&&(O=i(E,O,k),v===null?y=E:v.sibling=E,v=E);return Le&&Wr(g,k),y}for(C=n(C);!E.done;k++,E=x.next())E=h(C,g,k,E.value,S),E!==null&&(t&&(L=E.alternate,L!==null&&C.delete(L.key===null?k:L.key)),O=i(E,O,k),v===null?y=E:v.sibling=E,v=E);return t&&C.forEach(function(R){return e(g,R)}),Le&&Wr(g,k),y}function b(g,O,x,S){if(typeof x=="object"&&x!==null&&x.type===dl&&x.key===null&&x.props.ref===void 0&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case th:e:{for(var y=x.key;O!==null;){if(O.key===y){if(y=x.type,y===dl){if(O.tag===7){a(g,O.sibling),S=r(O,x.props.children),Li(S,x),S.return=g,g=S;break e}}else if(O.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Ai&&Ho(y)===O.type){a(g,O.sibling),S=r(O,x.props),Li(S,x),S.return=g,g=S;break e}a(g,O);break}else e(g,O);O=O.sibling}x.type===dl?(S=Ko(x.props.children,g.mode,S,x.key),Li(S,x),S.return=g,g=S):(S=Lh(x.type,x.key,x.props,null,g.mode,S),Li(S,x),S.return=g,g=S)}return o(g);case fc:e:{for(y=x.key;O!==null;){if(O.key===y)if(O.tag===4&&O.stateNode.containerInfo===x.containerInfo&&O.stateNode.implementation===x.implementation){a(g,O.sibling),S=r(O,x.children||[]),S.return=g,g=S;break e}else{a(g,O);break}else e(g,O);O=O.sibling}S=WO(x,g.mode,S),S.return=g,g=S}return o(g);case Ai:return x=Ho(x),b(g,O,x,S)}if(dc(x))return p(g,O,x,S);if(ic(x)){if(y=ic(x),typeof y!="function")throw Error(P(150));return x=y.call(x),m(g,O,x,S)}if(typeof x.then=="function")return b(g,O,ch(x),S);if(x.$$typeof===yr)return b(g,O,uh(g,x),S);fh(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,O!==null&&O.tag===6?(a(g,O.sibling),S=r(O,x),S.return=g,g=S):(a(g,O),S=YO(x,g.mode,S),S.return=g,g=S),o(g)):a(g,O)}return function(g,O,x,S){try{Dc=0;var y=b(g,O,x,S);return El=null,y}catch(C){if(C===jl||C===wp)throw C;var v=Na(29,C,null,g.mode);return v.lanes=S,v.return=g,v}}}var os=PL(!0),ML=PL(!1),Ri=!1;function Z0(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $b(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 zi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ui(t,e,a){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Xe&2)!==0){var r=n.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),n.pending=e,e=Hh(t),kL(t,null,a),e}return vp(t,n,e,a),Hh(t)}function Sc(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Wk(t,a)}}function JO(t,e){var a=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=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?r=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?r=i=e:i=i.next=e}else r=i=e;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Bb=!1;function yc(){if(Bb){var t=Ll;if(t!==null)throw t}}function vc(t,e,a,n){Bb=!1;var r=t.updateQueue;Ri=!1;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.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=r.baseState;o=0,c=u=l=null,s=i;do{var d=s.lane&-536870913,h=d!==s.lane;if(h?(Ie&d)===d:(n&d)===d){d!==0&&d===is&&(Bb=!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 b=a;switch(m.tag){case 1:if(p=m.payload,typeof p=="function"){f=p.call(b,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(b,f,d):p,d==null)break e;f=at({},f,d);break e;case 2:Ri=!0}}d=s.callback,d!==null&&(t.flags|=64,h&&(t.flags|=8192),h=r.callbacks,h===null?r.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=r.shared.pending,s===null)break;h=s,s=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);c===null&&(l=f),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,i===null&&(r.shared.lanes=0),Ki|=o,t.lanes=o,t.memoizedState=f}}function DL(t,e){if(typeof t!="function")throw Error(P(191,t));t.call(e)}function QL(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)DL(a[t],e)}var Yi=_r(null),Kh=_r(0);function Pw(t,e){t=oi,lt(Kh,t),lt(Yi,e),oi=t|e.baseLanes}function zb(){lt(Kh,oi),lt(Yi,Yi.current)}function F0(){oi=Kh.current,na(Yi),na(Kh)}var oa=_r(null),ma=null;function Xi(t){var e=t.alternate;lt(ra,ra.current&1),lt(oa,t),ma===null&&(e===null||Yi.current!==null||e.memoizedState!==null)&&(ma=t)}function Ub(t){lt(ra,ra.current),lt(oa,t),ma===null&&(ma=t)}function NL(t){t.tag===22?(lt(ra,ra.current),lt(oa,t),ma===null&&(ma=t)):qi()}function qi(){lt(ra,ra.current),lt(oa,oa.current)}function Va(t){na(oa),ma===t&&(ma=null),na(ra)}var ra=_r(0);function Qc(t,e){lt(oa,oa.current),lt(ra,e)}function G0(t){na(ra),na(oa),ma===t&&(ma=null)}function Jh(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||y0(a)||xx(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 ni=0,Se=null,We=null,_t=null,ep=!1,_l=!1,ss=!1,tp=0,Nc=0,Al=null,J3=0;function bt(){throw Error(P(321))}function H0(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!an(t[a],e[a]))return!1;return!0}function j0(t,e,a,n,r,i){return ni=i,Se=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Oe.H=t===null||t.memoizedState===null?pE:mE,ss=!1,i=a(n,r),ss=!1,_l&&(i=BL(e,a,n,r)),$L(t),i}function $L(t){Oe.H=ap;var e=We!==null&&We.next!==null;if(ni=0,_t=We=Se=null,ep=!1,Nc=0,Al=null,e)throw Error(P(300));t===null||Rt||(t=t.dependencies,t!==null&&Yh(t)&&(Rt=!0))}function BL(t,e,a,n){Se=t;var r=0;do{if(_l&&(Al=null),Nc=0,_l=!1,25<=r)throw Error(P(301));if(r+=1,_t=We=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}Oe.H=sU,i=e(a,n)}while(_l);return i}function eU(){var t=Oe.H,e=t.useState()[0];return e=typeof e.then=="function"?Kc(e):e,t=t.useState()[0],(We!==null?We.memoizedState:null)!==t&&(Se.flags|=1024),e}function V0(){var t=tp!==0;return tp=0,t}function Y0(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function W0(t){if(ep){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ep=!1}ni=0,_t=We=Se=null,_l=!1,Nc=tp=0,Al=null}function va(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Se.memoizedState=_t=t:_t=_t.next=t,_t}function Ct(){if(We===null){var t=Se.alternate;t=t!==null?t.memoizedState:null}else t=We.next;var e=_t===null?Se.memoizedState:_t.next;if(e!==null)_t=e,We=t;else{if(t===null)throw Se.alternate===null?Error(P(467)):Error(P(310));We=t,t={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},_t===null?Se.memoizedState=_t=t:_t=_t.next=t}return _t}function kp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kc(t){var e=Nc;return Nc+=1,Al===null&&(Al=[]),t=IL(Al,t,e),e=Se,(_t===null?e.memoizedState:_t.next)===null&&(e=e.alternate,Oe.H=e===null||e.memoizedState===null?pE:mE),t}function Lp(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Kc(t);if(t.$$typeof===D5)return;if(t.$$typeof===yr)return aa(t)}throw Error(P(438,String(t)))}function K0(t){var e=null,a=Se.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var n=Se.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=kp(),Se.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),n=0;n<t;n++)a[n]=M5;return e.index++,a}function ri(t,e){return typeof e=="function"?e(t):e}function Ah(t){var e=Ct();return J0(e,We,t)}function J0(t,e,a){var n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=a;var r=t.baseQueue,i=n.pending;if(i!==null){if(r!==null){var o=r.next;r.next=i.next,i.next=o}e.baseQueue=r=i,n.pending=null}if(i=t.baseState,r===null)t.memoizedState=i;else{e=r.next;var s=o=null,l=null,u=e,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(Ie&f)===f:(ni&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===is&&(c=!0);else if((ni&d)===d){u=u.next,d===is&&(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,Se.lanes|=d,Ki|=d;f=u.action,ss&&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,Se.lanes|=f,Ki|=f;u=u.next}while(u!==null&&u!==e);if(l===null?o=i:l.next=s,!an(i,t.memoizedState)&&(Rt=!0,c&&(a=Ll,a!==null)))throw a;t.memoizedState=i,t.baseState=o,t.baseQueue=l,n.lastRenderedState=i}return r===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function eb(t){var e=Ct(),a=e.queue;if(a===null)throw Error(P(311));a.lastRenderedReducer=t;var n=a.dispatch,r=a.pending,i=e.memoizedState;if(r!==null){a.pending=null;var o=r=r.next;do i=t(i,o.action),o=o.next;while(o!==r);an(i,e.memoizedState)||(Rt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),a.lastRenderedState=i}return[i,n]}function zL(t,e,a){var n=Se,r=Ct(),i=Le;if(i){if(a===void 0)throw Error(P(407));a=a()}else a=e();var o=!an((We||r).memoizedState,a);if(o&&(r.memoizedState=a,Rt=!0),r=r.queue,ex(qL.bind(null,n,r,t),[t]),t=r.getSnapshot!==e||o||_t!==null&&(_t.memoizedState.tag&1)!==0,Ql(t?9:8,{destroy:void 0},XL.bind(null,n,r,a,e),null),t){if(n.flags|=2048,tt===null)throw Error(P(349));i||(ni&127)!==0||UL(n,e,a)}return a}function UL(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=Se.updateQueue,e===null?(e=kp(),Se.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function XL(t,e,a,n){e.value=a,e.getSnapshot=n,ZL(e)&&FL(t)}function qL(t,e,a){return a(function(){ZL(e)&&FL(t)})}function ZL(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!an(t,a)}catch{return!0}}function FL(t){var e=hs(t,2);e!==null&&$a(e,t,2)}function Xb(t){var e=va();if(typeof t=="function"){var a=t;if(t=a(),ss){Ii(!0);try{a()}finally{Ii(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:t},e}function GL(t,e,a,n){return t.baseState=a,J0(t,We,typeof n=="function"?n:ri)}function tU(t,e,a,n,r){if(_p(t))throw Error(P(485));if(t=e.action,t!==null){var i={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};Oe.T!==null?a(!0):i.isTransition=!1,n(i),a=e.pending,a===null?(i.next=e.pending=i,HL(e,i)):(i.next=a.next,e.pending=a.next=i)}}function HL(t,e){var a=e.action,n=e.payload,r=t.state;if(e.isTransition){var i=Oe.T,o={};o.types=i!==null?i.types:null,Oe.T=o;try{var s=a(r,n),l=Oe.S;l!==null&&l(o,s),Mw(t,e,s)}catch(u){qb(t,e,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),Oe.T=i}}else try{i=a(r,n),Mw(t,e,i)}catch(u){qb(t,e,u)}}function Mw(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Dw(t,e,n)},function(n){return qb(t,e,n)}):Dw(t,e,a)}function Dw(t,e,a){e.status="fulfilled",e.value=a,jL(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,HL(t,a)))}function qb(t,e,a){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=a,jL(e),e=e.next;while(e!==n)}t.action=null}function jL(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function VL(t,e){return e}function Qw(t,e){if(Le){var a=tt.formState;if(a!==null){e:{var n=Se;if(Le){if(st){t:{for(var r=st,i=wn;r.nodeType!==8;){if(!i){r=null;break t}if(r=kn(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i==="F!"||i==="F"?r:null}if(r){st=kn(r.nextSibling),n=r.data==="F!";break e}}Vi(n)}n=!1}n&&(e=a[0])}}return a=va(),a.memoizedState=a.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:VL,lastRenderedState:e},a.queue=n,a=fE.bind(null,Se,n),n.dispatch=a,n=Xb(!1),i=rx.bind(null,Se,!1,n.queue),n=va(),r={state:e,dispatch:null,action:t,pending:null},n.queue=r,a=tU.bind(null,Se,r,i,a),r.dispatch=a,n.memoizedState=t,[e,a,!1]}function Nw(t){var e=Ct();return YL(e,We,t)}function YL(t,e,a){if(e=J0(t,e,VL)[0],t=Ah(ri)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Kc(e)}catch(o){throw o===jl?wp:o}else n=e;e=Ct();var r=e.queue,i=r.dispatch;return a!==e.memoizedState&&(Se.flags|=2048,Ql(9,{destroy:void 0},aU.bind(null,r,a),null)),[n,i,t]}function aU(t,e){t.action=e}function $w(t){var e=Ct(),a=We;if(a!==null)return YL(e,a,t);Ct(),e=e.memoizedState,a=Ct();var n=a.queue.dispatch;return a.memoizedState=t,[e,n,!1]}function Ql(t,e,a,n){return t={tag:t,create:a,deps:n,inst:e,next:null},e=Se.updateQueue,e===null&&(e=kp(),Se.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(n=a.next,a.next=t,t.next=n,e.lastEffect=t),t}function WL(){return Ct().memoizedState}function Rh(t,e,a,n){var r=va();Se.flags|=t,r.memoizedState=Ql(1|e,{destroy:void 0},a,n===void 0?null:n)}function Ep(t,e,a,n){var r=Ct();n=n===void 0?null:n;var i=r.memoizedState.inst;We!==null&&n!==null&&H0(n,We.memoizedState.deps)?r.memoizedState=Ql(e,i,a,n):(Se.flags|=t,r.memoizedState=Ql(1|e,i,a,n))}function Bw(t,e){Rh(8390656,8,t,e)}function ex(t,e){Ep(2048,8,t,e)}function nU(t){Se.flags|=4;var e=Se.updateQueue;if(e===null)e=kp(),Se.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function KL(t){var e=Ct().memoizedState;return nU({ref:e,nextImpl:t}),function(){if((Xe&2)!==0)throw Error(P(440));return e.impl.apply(void 0,arguments)}}function JL(t,e){return Ep(4,2,t,e)}function eE(t,e){return Ep(4,4,t,e)}function tE(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 aE(t,e,a){a=a!=null?a.concat([t]):null,Ep(4,4,tE.bind(null,e,t),a)}function tx(){}function nE(t,e){var a=Ct();e=e===void 0?null:e;var n=a.memoizedState;return e!==null&&H0(e,n[1])?n[0]:(a.memoizedState=[t,e],t)}function rE(t,e){var a=Ct();e=e===void 0?null:e;var n=a.memoizedState;if(e!==null&&H0(e,n[1]))return n[0];if(n=t(),ss){Ii(!0);try{t()}finally{Ii(!1)}}return a.memoizedState=[n,e],n}function ax(t,e,a){return a===void 0||(ni&1073741824)!==0&&(Ie&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=YE(),Se.lanes|=t,Ki|=t,a)}function iE(t,e,a,n){return an(a,e)?a:Yi.current!==null?(t=ax(t,a,n),an(t,e)||(Rt=!0),t):(ni&106)===0||(ni&1073741824)!==0&&(Ie&261930)===0?(Rt=!0,t.memoizedState=a):(t=YE(),Se.lanes|=t,Ki|=t,e)}function oE(t,e,a,n,r){var i=qe.p;qe.p=i!==0&&8>i?i:8;var o=Oe.T,s={};s.types=o!==null?o.types:null,Oe.T=s,rx(t,!1,e,a);try{var l=r(),u=Oe.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=K3(l,n);Cc(t,e,c,tn(t))}else Cc(t,e,n,tn(t))}catch(f){Cc(t,e,{then:function(){},status:"rejected",reason:f},tn())}finally{qe.p=i,o!==null&&s.types!==null&&(o.types=s.types),Oe.T=o}}function rU(){}function Zb(t,e,a,n){if(t.tag!==5)throw Error(P(476));var r=sE(t).queue;oE(t,r,e,Wo,a===null?rU:function(){return lE(t),a(n)})}function sE(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Wo,baseState:Wo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:Wo},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function lE(t){var e=sE(t);e.next===null&&(e=t.alternate.memoizedState),Cc(t,e.next.queue,{},tn())}function nx(){return aa(ql)}function uE(){return Ct().memoizedState}function cE(){return Ct().memoizedState}function iU(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=tn();t=zi(a);var n=Ui(e,t,a);n!==null&&($a(n,e,a),Sc(n,e,a)),e={cache:U0()},t.payload=e;return}e=e.return}}function oU(t,e,a){var n=tn();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_p(t)?dE(e,a):(a=$0(t,e,a,n),a!==null&&($a(a,t,n),hE(a,e,n)))}function fE(t,e,a){var n=tn();Cc(t,e,a,n)}function Cc(t,e,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(_p(t))dE(e,r);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(r.hasEagerState=!0,r.eagerState=s,an(s,o))return vp(t,e,r,0),tt===null&&yp(),!1}catch{}if(a=$0(t,e,r,n),a!==null)return $a(a,t,n),hE(a,e,n),!0}return!1}function rx(t,e,a,n){if(n={lane:2,revertLane:mx(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_p(t)){if(e)throw Error(P(479))}else e=$0(t,a,n,2),e!==null&&$a(e,t,2)}function _p(t){var e=t.alternate;return t===Se||e!==null&&e===Se}function dE(t,e){_l=ep=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function hE(t,e,a){if((a&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Wk(t,a)}}var ap={readContext:aa,use:Lp,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt,useEffectEvent:bt},pE={readContext:aa,use:Lp,useCallback:function(t,e){return va().memoizedState=[t,e===void 0?null:e],t},useContext:aa,useEffect:Bw,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Rh(4194308,4,tE.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Rh(4194308,4,t,e)},useInsertionEffect:function(t,e){Rh(4,2,t,e)},useMemo:function(t,e){var a=va();e=e===void 0?null:e;var n=t();if(ss){Ii(!0);try{t()}finally{Ii(!1)}}return a.memoizedState=[n,e],n},useReducer:function(t,e,a){var n=va();if(a!==void 0){var r=a(e);if(ss){Ii(!0);try{a(e)}finally{Ii(!1)}}}else r=e;return n.memoizedState=n.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},n.queue=t,t=t.dispatch=oU.bind(null,Se,t),[n.memoizedState,t]},useRef:function(t){var e=va();return t={current:t},e.memoizedState=t},useState:function(t){t=Xb(t);var e=t.queue,a=fE.bind(null,Se,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:tx,useDeferredValue:function(t,e){var a=va();return ax(a,t,e)},useTransition:function(){var t=Xb(!1);return t=oE.bind(null,Se,t.queue,!0,!1),va().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var n=Se,r=va();if(Le){if(a===void 0)throw Error(P(407));a=a()}else{if(a=e(),tt===null)throw Error(P(349));(Ie&127)!==0||UL(n,e,a)}r.memoizedState=a;var i={value:a,getSnapshot:e};return r.queue=i,Bw(qL.bind(null,n,i,t),[t]),n.flags|=2048,Ql(9,{destroy:void 0},XL.bind(null,n,i,a,e),null),a},useId:function(){var t=va(),e=tt.identifierPrefix;if(Le){var a=wr,n=Cr;a=(n&~(1<<32-en(n)-1)).toString(32)+a,e="_"+e+"R_"+a,a=tp++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=J3++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:nx,useFormState:Qw,useActionState:Qw,useOptimistic:function(t){var e=va();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=rx.bind(null,Se,!0,a),a.dispatch=e,[t,e]},useMemoCache:K0,useCacheRefresh:function(){return va().memoizedState=iU.bind(null,Se)},useEffectEvent:function(t){var e=va(),a={impl:t};return e.memoizedState=a,function(){if((Xe&2)!==0)throw Error(P(440));return a.impl.apply(void 0,arguments)}}},mE={readContext:aa,use:Lp,useCallback:nE,useContext:aa,useEffect:ex,useImperativeHandle:aE,useInsertionEffect:JL,useLayoutEffect:eE,useMemo:rE,useReducer:Ah,useRef:WL,useState:function(){return Ah(ri)},useDebugValue:tx,useDeferredValue:function(t,e){var a=Ct();return iE(a,We.memoizedState,t,e)},useTransition:function(){var t=Ah(ri)[0],e=Ct().memoizedState;return[typeof t=="boolean"?t:Kc(t),e]},useSyncExternalStore:zL,useId:uE,useHostTransitionStatus:nx,useFormState:Nw,useActionState:Nw,useOptimistic:function(t,e){var a=Ct();return GL(a,We,t,e)},useMemoCache:K0,useCacheRefresh:cE,useEffectEvent:KL},sU={readContext:aa,use:Lp,useCallback:nE,useContext:aa,useEffect:ex,useImperativeHandle:aE,useInsertionEffect:JL,useLayoutEffect:eE,useMemo:rE,useReducer:eb,useRef:WL,useState:function(){return eb(ri)},useDebugValue:tx,useDeferredValue:function(t,e){var a=Ct();return We===null?ax(a,t,e):iE(a,We.memoizedState,t,e)},useTransition:function(){var t=eb(ri)[0],e=Ct().memoizedState;return[typeof t=="boolean"?t:Kc(t),e]},useSyncExternalStore:zL,useId:uE,useHostTransitionStatus:nx,useFormState:$w,useActionState:$w,useOptimistic:function(t,e){var a=Ct();return We!==null?GL(a,We,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:K0,useCacheRefresh:cE,useEffectEvent:KL};function tb(t,e,a,n){e=t.memoizedState,a=a(n,e),a=a==null?e:at({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Fb={enqueueSetState:function(t,e,a){t=t._reactInternals;var n=tn(),r=zi(n);r.payload=e,a!=null&&(r.callback=a),e=Ui(t,r,n),e!==null&&($a(e,t,n),Sc(e,t,n))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var n=tn(),r=zi(n);r.tag=1,r.payload=e,a!=null&&(r.callback=a),e=Ui(t,r,n),e!==null&&($a(e,t,n),Sc(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=tn(),n=zi(a);n.tag=2,e!=null&&(n.callback=e),e=Ui(t,n,a),e!==null&&($a(e,t,a),Sc(e,t,a))}};function zw(t,e,a,n,r,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!Ic(a,n)||!Ic(r,i):!0}function Uw(t,e,a,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,n),e.state!==t&&Fb.enqueueReplaceState(e,e.state,null)}function ls(t,e){var a=e;if("ref"in e){a={};for(var n in e)n!=="ref"&&(a[n]=e[n])}if(t=t.defaultProps){a===e&&(a=at({},a));for(var r in t)a[r]===void 0&&(a[r]=t[r])}return a}function gE(t){Gh(t)}function OE(t){console.error(t)}function bE(t){Gh(t)}function np(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Xw(t,e,a){try{var n=t.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Gb(t,e,a){return a=zi(a),a.tag=3,a.payload={element:null},a.callback=function(){np(t,e)},a}function xE(t){return t=zi(t),t.tag=3,t}function SE(t,e,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=n.value;t.payload=function(){return r(i)},t.callback=function(){Xw(e,a,n)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Xw(e,a,n),typeof r!="function"&&(Zi===null?Zi=new Set([this]):Zi.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function lU(t,e,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=a.alternate,e!==null&&ns(e,a,r,!0),a=oa.current,a!==null){switch(a.tag){case 31:case 13:case 19:return ma===null?fp():a.alternate===null&&xt===0&&(xt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Wh?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([n]):e.add(n),lb(t,n,r)),!1;case 22:return a.flags|=65536,n===Wh?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([n]):a.add(n)),lb(t,n,r)),!1}throw Error(P(435,a.tag))}return lb(t,n,r),fp(),!1}if(Le)return e=oa.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,n!==Mb&&(t=Error(P(422),{cause:n}),Mc(Cn(t,a)))):(n!==Mb&&(e=Error(P(423),{cause:n}),Mc(Cn(e,a))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,n=Cn(n,a),r=Gb(t.stateNode,n,r),JO(t,r),xt!==4&&(xt=2)),!1;var i=Error(P(520),{cause:n});if(i=Cn(i,a),Ec===null?Ec=[i]:Ec.push(i),xt!==4&&(xt=2),e===null)return!0;n=Cn(n,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=r&-r,a.lanes|=t,t=Gb(a.stateNode,n,t),JO(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"&&(Zi===null||!Zi.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=xE(r),SE(r,t,a,n),JO(a,r),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var ix=Error(P(461)),Rt=!1;function Qt(t,e,a,n){e.child=t===null?ML(e,null,a,n):os(e,t.child,a,n)}function qw(t,e,a,n,r){a=a.render;var i=e.ref;if("ref"in n){var o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}else o=n;return rs(e),n=j0(t,e,a,o,i,r),s=V0(),t!==null&&!Rt?(Y0(t,e,r),ii(t,e,r)):(Le&&s&&Cp(e),e.flags|=1,Qt(t,e,n,r),e.child)}function Zw(t,e,a,n,r){if(t===null){var i=a.type;return typeof i=="function"&&!B0(i)&&i.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=i,yE(t,e,i,n,r)):(t=Lh(a.type,null,n,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!sx(t,r)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:Ic,a(o,n)&&t.ref===e.ref)return ii(t,e,r)}return e.flags|=1,t=Jr(i,n),t.ref=e.ref,t.return=e,e.child=t}function yE(t,e,a,n,r){if(t!==null){var i=t.memoizedProps;if(Ic(i,n)&&t.ref===e.ref)if(Rt=!1,e.pendingProps=n=i,sx(t,r))(t.flags&131072)!==0&&(Rt=!0);else return e.lanes=t.lanes,ii(t,e,r)}return Hb(t,e,a,n,r)}function vE(t,e,a,n){var r=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,t!==null){for(n=e.child=t.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~i}else n=0,e.child=null;return Fw(t,e,i,a,n)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&_h(e,i!==null?i.cachePool:null),i!==null?Pw(e,i):zb(),NL(e);else return n=e.lanes=536870912,Fw(t,e,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(_h(e,i.cachePool),Pw(e,i),qi(),e.memoizedState=null):(t!==null&&_h(e,null),zb(),qi());return Qt(t,e,r,a),e.child}function wc(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Fw(t,e,a,n,r){var i=X0();return i=i===null?null:{parent:At._currentValue,pool:i},e.memoizedState={baseLanes:a,cachePool:i},t!==null&&_h(e,null),zb(),NL(e),t!==null&&ns(t,e,n,!0),e.childLanes=r,null}function Th(t,e){return e=Ap({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Gw(t,e,a){return os(e,t.child,null,a),t=Th(e,e.pendingProps),t.flags|=2,Va(e),e.memoizedState=null,t}function uU(t,e,a){var n=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Le){if(n.mode==="hidden")return t=Th(e,n),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},wc(null,t);if(Ub(e),(t=st)?(t=v_(t,wn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ji!==null?{id:Cr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},a=EL(t),a.return=e,e.child=a,Ht=e,st=null)):t=null,t===null)throw Vi(e);return e.lanes=536870912,null}return Th(e,n)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(Ub(e),r)if(e.flags&256)e.flags&=-257,e=Gw(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(P(558));else if(Rt||ns(t,e,a,!1),r=(a&t.childLanes)!==0,Rt||r){if(Yi.current===null){if(n=tt,n!==null&&(o=Kk(n,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,hs(t,o),$a(n,t,o),ix;fp()}e=Gw(t,e,a)}else t=i.treeContext,st=kn(o.nextSibling),Ht=e,Le=!0,Bi=null,wn=!1,t!==null&&AL(e,t),e=Th(e,n),e.flags|=134221824;return e}return t=Jr(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ll(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(P(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Hb(t,e,a,n,r){return rs(e),a=j0(t,e,a,n,void 0,r),n=V0(),t!==null&&!Rt?(Y0(t,e,r),ii(t,e,r)):(Le&&n&&Cp(e),e.flags|=1,Qt(t,e,a,r),e.child)}function Hw(t,e,a,n,r,i){return rs(e),e.updateQueue=null,a=BL(e,n,a,r),$L(t),n=V0(),t!==null&&!Rt?(Y0(t,e,i),ii(t,e,i)):(Le&&n&&Cp(e),e.flags|=1,Qt(t,e,a,i),e.child)}function jw(t,e,a,n,r){if(rs(e),e.stateNode===null){var i=xl,o=a.contextType;typeof o=="object"&&o!==null&&(i=aa(o)),i=new a(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Fb,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},Z0(e),o=a.contextType,i.context=typeof o=="object"&&o!==null?aa(o):xl,i.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(tb(e,a,o,n),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&&Fb.enqueueReplaceState(i,i.state,null),vc(e,n,i,r),yc(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){i=e.stateNode;var s=e.memoizedProps,l=ls(a,s);i.props=l;var u=i.context,c=a.contextType;o=xl,typeof c=="object"&&c!==null&&(o=aa(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)&&Uw(e,i,n,o),Ri=!1;var d=e.memoizedState;i.state=d,vc(e,n,i,r),yc(),u=e.memoizedState,s||d!==u||Ri?(typeof f=="function"&&(tb(e,a,f,n),u=e.memoizedState),(l=Ri||zw(e,a,l,n,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=n,e.memoizedState=u),i.props=n,i.state=u,i.context=o,n=l):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,$b(t,e),o=e.memoizedProps,c=ls(a,o),i.props=c,f=e.pendingProps,d=i.context,u=a.contextType,l=xl,typeof u=="object"&&u!==null&&(l=aa(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)&&Uw(e,i,n,l),Ri=!1,d=e.memoizedState,i.state=d,vc(e,n,i,r),yc();var h=e.memoizedState;o!==f||d!==h||Ri||t!==null&&t.dependencies!==null&&Yh(t.dependencies)?(typeof s=="function"&&(tb(e,a,s,n),h=e.memoizedState),(c=Ri||zw(e,a,c,n,d,h,l)||t!==null&&t.dependencies!==null&&Yh(t.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,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=n,e.memoizedState=h),i.props=n,i.state=h,i.context=l,n=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),n=!1)}return i=n,ll(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=os(e,t.child,null,r),e.child=os(e,null,a,r)):Qt(t,e,a,r),e.memoizedState=i.state,t=e.child):t=ii(t,e,r),t}function Vw(t,e,a,n){return as(),e.flags|=256,Qt(t,e,a,n),e.child}var jb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vb(t){return{baseLanes:t,cachePool:TL()}}function Yb(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Wa),t}function CE(t,e,a){var n=e.pendingProps,r=!1,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?!1:(ra.current&2)!==0),o&&(r=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(Le){if(r?Xi(e):qi(),(t=st)?(t=v_(t,wn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ji!==null?{id:Cr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},a=EL(t),a.return=e,e.child=a,Ht=e,st=null)):t=null,t===null)throw Vi(e);return xx(t)?e.lanes=32:e.lanes=536870912,null}return i=n.children,n=n.fallback,r?(qi(),r=e.mode,i=Ap({mode:"hidden",children:i},r),n=Ko(n,r,a,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n=e.child,n.memoizedState=Vb(a),n.childLanes=Yb(t,o,a),e.memoizedState=jb,wc(null,n)):(Xi(e),ox(e,i))}var s=t.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return cU(t,e,i,o,n,l,s,a)}return r?(qi(),r=n.fallback,i=e.mode,s=t.child,l=s.sibling,n=Jr(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&1206910976,l!==null?r=Jr(l,r):(r=Ko(r,i,a,null),r.flags|=2),r.return=e,n.return=e,n.sibling=r,e.child=n,wc(null,n),n=e.child,r=t.child.memoizedState,r===null?r=Vb(a):(i=r.cachePool,i!==null?(s=At._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=TL(),r={baseLanes:r.baseLanes|a,cachePool:i}),n.memoizedState=r,n.childLanes=Yb(t,o,a),e.memoizedState=jb,wc(t.child,n)):(Xi(e),a=t.child,t=a.sibling,a=Jr(a,{mode:"visible",children:n.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 ox(t,e){return e=Ap({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ap(t,e){return t=Na(22,t,null,e),t.lanes=0,t}function dh(t,e,a){return os(e,t.child,null,a),t=ox(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function cU(t,e,a,n,r,i,o,s){if(a)return e.flags&256?(Xi(e),e.flags&=-257,dh(t,e,s)):e.memoizedState!==null?(qi(),e.child=t.child,e.flags|=128,null):(qi(),i=r.fallback,o=e.mode,r=Ap({mode:"visible",children:r.children},o),i=Ko(i,o,s,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,os(e,t.child,null,s),r=e.child,r.memoizedState=Vb(s),r.childLanes=Yb(t,n,s),e.memoizedState=jb,wc(null,r));if(Xi(e),xx(i)){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,n!==""&&(r=Error(P(419)),r.stack="",r.digest=n,Mc({value:r,source:null,stack:null})),dh(t,e,s)}if(Rt||ns(t,e,s,!1),n=(s&t.childLanes)!==0,Rt||n){if(Yi.current!==null)return dh(t,e,s);if(n=tt,n!==null&&(r=Kk(n,s),r!==0&&r!==o.retryLane))throw o.retryLane=r,hs(t,r),$a(n,t,r),ix;return y0(i)||fp(),dh(t,e,s)}return y0(i)?(e.flags|=192,e.child=t.child,null):(t=o.treeContext,st=kn(i.nextSibling),Ht=e,Le=!0,Bi=null,wn=!1,t!==null&&AL(e,t),e=ox(e,r.children),e.flags|=134221824,e)}function Yw(t,e,a){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Eh(t.return,e,a)}function Ww(t){for(var e=null;t!==null;){var a=t.alternate;a!==null&&Jh(a)===null&&(e=t),t=t.sibling}return e}function hh(t,e,a,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=a,o.tailMode=r,o.treeForkCount=i)}function ab(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 Wb(t,e,a){var n=e.pendingProps,r=n.revealOrder,i=n.tail;n=n.children;var o=ra.current;if(e.flags&128)return Qc(e,o),null;var s=(o&2)!==0;if(s?(o=o&1|2,e.flags|=128):o&=1,Qc(e,o),r==="backwards"&&t!==null?(ab(t),Qt(t,e,n,a),ab(t)):Qt(t,e,n,a),n=Le?Pc:0,!s&&t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Yw(t,a,e);else if(t.tag===19)Yw(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(r){case"backwards":a=Ww(e.child),a===null?(r=e.child,e.child=null):(r=a.sibling,a.sibling=null,ab(e)),hh(e,!0,r,null,i,n);break;case"unstable_legacy-backwards":for(a=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Jh(t)===null){e.child=r;break}t=r.sibling,r.sibling=a,a=r,r=t}hh(e,!0,a,null,i,n);break;case"together":hh(e,!1,null,null,void 0,n);break;case"independent":e.memoizedState=null;break;default:a=Ww(e.child),a===null?(r=e.child,e.child=null):(r=a.sibling,a.sibling=null),hh(e,!1,r,a,i,n)}return e.child}function Kw(t,e,a){var n=e.pendingProps;return Mi(e,e.type,n.value),Qt(t,e,n.children,a),e.child}function ii(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Ki|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(ns(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(P(153));if(e.child!==null){for(t=e.child,a=Jr(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=Jr(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function sx(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Yh(t)))}function fU(t,e,a){switch(e.tag){case 3:Xh(e,e.stateNode.containerInfo),Mi(e,At,t.memoizedState.cache),as();break;case 27:case 5:wb(e);break;case 4:Xh(e,e.stateNode.containerInfo);break;case 10:Mi(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ub(e),null;break;case 13:var n=e.memoizedState;if(n!==null){if(n.dehydrated!==null)return Xi(e),e.flags|=128,null;n=ns(t,e,a,!1);var r=e.child.childLanes;return n||(a&r)!==0?CE(t,e,a):(Xi(e),t=ii(t,e,a),t!==null?t.sibling:null)}Xi(e);break;case 19:if(e.flags&128)return Wb(t,e,a);if(r=(t.flags&128)!==0,n=(a&e.childLanes)!==0,n||(ns(t,e,a,!1),n=(a&e.childLanes)!==0),r){if(n)return Wb(t,e,a);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Qc(e,ra.current),n)break;return null;case 22:return e.lanes=0,vE(t,e,a,e.pendingProps);case 24:Mi(e,At,t.memoizedState.cache)}return ii(t,e,a)}function wE(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Rt=!0;else{if(!sx(t,a)&&(e.flags&128)===0)return Rt=!1,fU(t,e,a);Rt=(t.flags&131072)!==0}else Rt=!1,Le&&(e.flags&1048576)!==0&&_L(e,Pc,e.index);switch(e.lanes=0,e.tag){case 16:e:{var n=e.pendingProps;if(t=Ho(e.elementType),e.type=t,typeof t=="function")B0(t)?(n=ls(t,n),e.tag=1,e=jw(null,e,t,n,a)):(e.tag=0,e=Hb(null,e,t,n,a));else{if(t!=null){var r=t.$$typeof;if(r===L0){e.tag=11,e=qw(null,e,t,n,a);break e}else if(r===E0){e.tag=14,e=Zw(null,e,t,n,a);break e}else if(r===yr){e.tag=10,e.type=t,e=Kw(null,e,a);break e}}throw e=vb(t)||t,Error(P(306,e,""))}}return e;case 0:return Hb(t,e,e.type,e.pendingProps,a);case 1:return n=e.type,r=ls(n,e.pendingProps),jw(t,e,n,r,a);case 3:e:{if(Xh(e,e.stateNode.containerInfo),t===null)throw Error(P(387));n=e.pendingProps;var i=e.memoizedState;r=i.element,$b(t,e),vc(e,n,null,a);var o=e.memoizedState;if(n=o.cache,Mi(e,At,n),n!==i.cache&&Qb(e,[At],a,!0),yc(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=Vw(t,e,n,a);break e}else if(n!==r){r=Cn(Error(P(424)),e),Mc(r),e=Vw(t,e,n,a);break e}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,st=kn(t.firstChild),Ht=e,Le=!0,Bi=null,wn=!0,a=ML(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(as(),n===r){e=ii(t,e,a);break e}Qt(t,e,n,a)}e=e.child}return e;case 26:return ll(t,e),t===null?(a=kk(e.type,null,e.pendingProps,null))?e.memoizedState=a:Le||(e.stateNode=h_(e.type,e.pendingProps,$i.current,e)):e.memoizedState=kk(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return wb(e),t===null&&Le&&(n=e.stateNode=C_(e.type,e.pendingProps,$i.current),Ht=e,wn=!0,r=st,eo(e.type)?(v0=r,st=kn(n.firstChild)):st=r),Qt(t,e,e.pendingProps.children,a),ll(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Le&&((r=n=st)&&(n=nX(n,e.type,e.pendingProps,wn),n!==null?(e.stateNode=n,Ht=e,st=kn(n.firstChild),wn=!1,r=!0):r=!1),r||Vi(e)),wb(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,n=i.children,b0(r,i)?n=null:o!==null&&b0(r,o)&&(e.flags|=32),e.memoizedState!==null&&(r=j0(t,e,eU,null,null,a),ql._currentValue=r),ll(t,e),Qt(t,e,n,a),e.child;case 6:return t===null&&Le&&((t=a=st)&&(a=rX(a,e.pendingProps,wn),a!==null?(e.stateNode=a,Ht=e,st=null,t=!0):t=!1),t||Vi(e)),null;case 13:return CE(t,e,a);case 4:return Xh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=os(e,null,n,a):Qt(t,e,n,a),e.child;case 11:return qw(t,e,e.type,e.pendingProps,a);case 7:return n=e.pendingProps,ll(t,e),Qt(t,e,n,a),e.child;case 8:return Qt(t,e,e.pendingProps.children,a),e.child;case 12:return Qt(t,e,e.pendingProps.children,a),e.child;case 10:return Kw(t,e,a);case 9:return r=e.type._context,n=e.pendingProps.children,rs(e),r=aa(r),n=n(r),e.flags|=1,Qt(t,e,n,a),e.child;case 14:return Zw(t,e,e.type,e.pendingProps,a);case 15:return yE(t,e,e.type,e.pendingProps,a);case 19:return Wb(t,e,a);case 31:return uU(t,e,a);case 22:return vE(t,e,a,e.pendingProps);case 24:return rs(e),n=aa(At),t===null?(r=X0(),r===null&&(r=tt,i=U0(),r.pooledCache=i,i.refCount++,i!==null&&(r.pooledCacheLanes|=a),r=i),e.memoizedState={parent:n,cache:r},Z0(e),Mi(e,At,r)):((t.lanes&a)!==0&&($b(t,e),vc(e,null,null,a),yc()),r=t.memoizedState,i=e.memoizedState,r.parent!==n?(r={parent:n,cache:n},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Mi(e,At,n)):(n=i.cache,Mi(e,At,n),n!==r.cache&&Qb(e,[At],a,!0))),Qt(t,e,e.pendingProps.children,a),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=e.pendingProps,n.name!=null&&n.name!=="auto"?e.flags|=t===null?18882560:18874368:Le&&Cp(e),t!==null&&t.memoizedProps.name!==n.name?e.flags|=4194816:ll(t,e),Qt(t,e,n.children,a),e.child;case 29:throw e.pendingProps}throw Error(P(156,e.tag))}function Yr(t){t.flags|=4}function nb(t,e,a,n,r){var i;if((i=(t.mode&32)!==0)&&(i=a===null?_k(e,n):_k(e,n)&&(n.src!==a.src||n.srcSet!==a.srcSet)),i){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(JE())t.flags|=8192;else throw es=Wh,q0}else t.flags&=-16777217}function Jw(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!E_(e))if(JE())t.flags|=8192;else throw es=Wh,q0}function ph(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Vk():536870912,t.lanes|=e,Nl|=e)}function sc(t,e){if(!Le)switch(t.tailMode){case"visible":break;case"collapsed":for(var a=t.tail,n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.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 ot(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,n=0;if(e)for(var r=t.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&1206910976,n|=r.flags&1206910976,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=n,t.childLanes=a,e}function dU(t,e,a){var n=e.pendingProps;switch(z0(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(e),null;case 1:return ot(e),null;case 3:return a=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ei(At),Pl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(ol(e)?Yr(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,KO())),ot(e),null;case 26:var r=e.type,i=e.memoizedState;return t===null?(Yr(e),i!==null?(ot(e),Jw(e,i)):(ot(e),nb(e,r,null,n,a))):i?i!==t.memoizedState?(Yr(e),ot(e),Jw(e,i)):(ot(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Yr(e),ot(e),nb(e,r,t,n,a)),null;case 27:if(qh(e),a=$i.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Yr(e);else{if(!n){if(e.stateNode===null)throw Error(P(166));return ot(e),e.subtreeFlags&=-33554433,null}t=kr.current,ol(e)?Lw(e,t):(t=C_(r,n,a),e.stateNode=t,Yr(e))}return ot(e),e.subtreeFlags&=-33554433,null;case 5:if(qh(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Yr(e);else{if(!n){if(e.stateNode===null)throw Error(P(166));return ot(e),e.subtreeFlags&=-33554433,null}if(i=kr.current,ol(e))Lw(e,i);else{var o=zc($i.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(r,{is:n.is}):o.createElement(r)}}i[ta]=e,i[za]=n;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(ia(i,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Yr(e)}}return ot(e),e.subtreeFlags&=-33554433,nb(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Yr(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(P(166));if(t=$i.current,ol(e)){if(t=e.stateNode,a=e.memoizedProps,n=null,r=Ht,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}t[ta]=e,t=!!(t.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||f_(t.nodeValue,a)),t||Vi(e,!0)}else t=zc(t).createTextNode(n),t[ta]=e,e.stateNode=t}return ot(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(n=ol(e),a!==null){if(t===null){if(!n)throw Error(P(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(P(557));t[ta]=e}else as(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ot(e),t=!1}else a=KO(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Va(e),e):(Va(e),null);if((e.flags&128)!==0)throw Error(P(558))}return ot(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=ol(e),n!==null&&n.dehydrated!==null){if(t===null){if(!r)throw Error(P(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(P(317));r[ta]=e}else as(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ot(e),r=!1}else r=KO(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Va(e),e):(Va(e),null)}return Va(e),(e.flags&128)!==0?(e.lanes=a,e):(a=n!==null,t=t!==null&&t.memoizedState!==null,a&&(n=e.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),ph(e,e.updateQueue),ot(e),null);case 4:return Pl(),t===null&&gx(e.stateNode.containerInfo),e.flags|=67108864,ot(e),null;case 10:return ei(e.type),ot(e),null;case 19:if(G0(e),n=e.memoizedState,n===null)return ot(e),null;if(r=(e.flags&128)!==0,i=n.rendering,i===null)if(r)sc(n,!1);else{if(xt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Jh(t),i!==null){for(e.flags|=128,sc(n,!1),t=i.updateQueue,e.updateQueue=t,ph(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)LL(a,t),a=a.sibling;return Qc(e,ra.current&1|2),Le&&Wr(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Ka()>up&&(e.flags|=128,r=!0,sc(n,!1),e.lanes=4194304)}else{if(!r)if(t=Jh(i),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,ph(e,t),sc(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!i.alternate&&!Le)return ot(e),null}else 2*Ka()-n.renderingStartTime>up&&a!==536870912&&(e.flags|=128,r=!0,sc(n,!1),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i)}if(n.tail!==null){t=n.tail;e:{for(a=t;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Ka(),t.sibling=null,i=ra.current,i=r?i&1|2:i&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!a||Le?Qc(e,i):(a=i,lt(oa,e),lt(ra,a),ma===null&&(ma=e)),Le&&Wr(e,n.treeForkCount),t}return ot(e),null;case 22:case 23:return Va(e),F0(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(a&536870912)!==0&&(e.flags&128)===0&&(ot(e),e.subtreeFlags&6&&(e.flags|=8192)):ot(e),a=e.updateQueue,a!==null&&ph(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==a&&(e.flags|=2048),t!==null&&na(Jo),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ei(At),ot(e),null;case 25:return null;case 30:return e.flags|=33554432,ot(e),null}throw Error(P(156,e.tag))}function hU(t,e){switch(z0(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ei(At),Pl(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return qh(e),null;case 31:if(e.memoizedState!==null){if(Va(e),e.alternate===null)throw Error(P(340));as()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Va(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(P(340));as()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G0(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 Pl(),null;case 10:return ei(e.type),null;case 22:case 23:return Va(e),F0(),t!==null&&na(Jo),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ei(At),null;case 25:return null;default:return null}}function kE(t,e){switch(z0(e),e.tag){case 3:ei(At),Pl();break;case 26:case 27:case 5:qh(e);break;case 4:Pl();break;case 31:e.memoizedState!==null&&Va(e);break;case 13:Va(e);break;case 19:G0(e);break;case 10:ei(e.type);break;case 22:case 23:Va(e),F0(),t!==null&&na(Jo);break;case 24:ei(At)}}function Jc(t,e){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&t)===t){n=void 0;var i=a.create,o=a.inst;n=i(),o.destroy=n}a=a.next}while(a!==r)}}catch(s){Ve(e,e.return,s)}}function Wi(t,e,a){try{var n=e.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&t)===t){var o=n.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,r=e;var l=a,u=s;try{u()}catch(c){Ve(r,l,c)}}}n=n.next}while(n!==i)}}catch(c){Ve(e,e.return,c)}}function LE(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{QL(e,a)}catch(n){Ve(t,t.return,n)}}}function EE(t,e,a){a.props=ls(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(n){Ve(t,e,n)}}function xr(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:var r=t.stateNode,i=ai(t.memoizedProps,r);(r.ref===null||r.ref.name!==i)&&(r.ref=O_(i)),n=r.ref;break;case 7:if(t.stateNode===null){var o=new nn(t);Ba(t.child,!1,tX,o,void 0,void 0),t.stateNode=o}n=t.stateNode;break;default:n=t.stateNode}typeof a=="function"?t.refCleanup=a(n):a.current=n}}catch(s){Ve(t,e,s)}}function ea(t,e){var a=t.ref,n=t.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ve(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ve(t,e,r)}else a.current=null}function rp(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++)y_(t.stateNode,e[a])}function ek(t){for(var e=t.return;e!==null&&(ux(e)&&y_(t.stateNode,e.stateNode),!lx(e));)e=e.return}function kc(t){for(var e=t.return;e!==null&&(ux(e)&&aX(t.stateNode,e.stateNode),!lx(e));)e=e.return}function lx(t){return t.tag===5||t.tag===3||t.tag===27}function ux(t){return t&&t.tag===7&&t.stateNode!==null}function Kb(t){var e=t.type,a=t.memoizedProps,n=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Ve(t,t.return,r)}}function rb(t,e,a){try{var n=t.stateNode;NU(n,t.type,a,e),n[za]=e}catch(r){Ve(t,t.return,r)}}function _E(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&eo(t.type)||t.tag===4}function ib(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||_E(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&&eo(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 Jb(t,e,a,n){var r=t.tag;if(r===5||r===6)r=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(r),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=vr)),rp(t,n),Be=!0;else if(r!==4&&(r===27&&(rp(t,n),n=null,eo(t.type)&&(a=t.stateNode,e=null)),t=t.child,t!==null))for(Jb(t,e,a,n),t=t.sibling;t!==null;)Jb(t,e,a,n),t=t.sibling}function ip(t,e,a,n){var r=t.tag;if(r===5||r===6)r=t.stateNode,e?a.insertBefore(r,e):a.appendChild(r),rp(t,n),Be=!0;else if(r!==4&&(r===27&&(rp(t,n),n=null,eo(t.type)&&(a=t.stateNode)),t=t.child,t!==null))for(ip(t,e,a,n),t=t.sibling;t!==null;)ip(t,e,a,n),t=t.sibling}function AE(t){var e=t.stateNode,a=t.memoizedProps;try{for(var n=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ia(e,n,a),e[ta]=t,e[za]=a}catch(i){Ve(t,t.return,i)}}var op=!1,Ya=null;function tk(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(op=!0)}var Sr=null;function ak(){var t=Sr;return Sr=null,t}var Qa=0;function Vl(t,e,a,n,r){return Qa=0,RE(t.child,e,a,n,r)}function RE(t,e,a,n,r){for(var i=!1;t!==null;){if(t.tag===5){var o=t.stateNode;if(n!==null){var s=x0(o);n.push(s),s.view&&(i=!0)}else i||x0(o).view&&(i=!0);op=!0,p_(o,Qa===0?e:e+"_"+Qa,a),Qa++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&r||RE(t.child,e,a,n,r)&&(i=!0));t=t.sibling}return i}function Er(t,e){for(;t!==null;)t.tag===5?m_(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||Er(t.child,e)),t=t.sibling}function Ih(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(Ih(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(P(544));var a=e.name;e=li(e.default,e.share),e!=="none"&&(Vl(t,a,e,null,!1)||Er(t.child,!1))}t=t.sibling}}function e0(t,e){if(t.tag===30){var a=t.stateNode,n=t.memoizedProps,r=ai(n,a),i=li(n.default,a.paired?n.share:n.enter);i!=="none"?Vl(t,r,i,null,!1)?(Ih(t),a.paired||e||$l(t,n.onEnter)):Er(t.child,!1):Ih(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)e0(t,e),t=t.sibling;else Ih(t)}function t0(t){if(Ya!==null&&Ya.size!==0){var e=Ya;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,n=a.name;if(n!=null&&n!=="auto"){var r=e.get(n);if(r!==void 0){var i=li(a.default,a.share);if(i!=="none"&&(Vl(t,n,i,null,!1)?(i=t.stateNode,r.paired=i,i.paired=r,$l(t,a.onShare)):Er(t.child,!1)),e.delete(n),e.size===0)break}}}t0(t)}t=t.sibling}}}function a0(t){if(t.tag===30){var e=t.memoizedProps,a=ai(e,t.stateNode),n=Ya!==null?Ya.get(a):void 0,r=li(e.default,n!==void 0?e.share:e.exit);r!=="none"&&(Vl(t,a,r,null,!1)?n!==void 0?(r=t.stateNode,n.paired=r,r.paired=n,Ya.delete(a),$l(t,e.onShare)):$l(t,e.onExit):Er(t.child,!1)),Ya!==null&&t0(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)a0(t),t=t.sibling;else Ya!==null&&t0(t)}function TE(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,a=ai(e,t.stateNode);e=li(e.default,e.update),t.flags&=-5,e!=="none"&&Vl(t,a,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&TE(t);t=t.sibling}}function n0(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,Er(t.child,!1))}n0(t)}t=t.sibling}}function Ph(t){if(t.tag===30)t.stateNode.paired=null,Er(t.child,!1),n0(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Ph(t),t=t.sibling;else n0(t)}function IE(t){for(t=t.child;t!==null;)t.tag===30?Er(t.child,!1):(t.subtreeFlags&33554432)!==0&&IE(t),t=t.sibling}function cx(t,e,a,n,r,i,o){for(var s=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null&&Qa<i.length){var u=i[Qa],c=x0(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&&p_(l,Qa===0?a:a+"_"+Qa,r),s&&(t.flags&4)!==0||(Sr===null&&(Sr=[]),Sr.push(l,Qa===0?n:n+"_"+Qa,e.memoizedProps)),Qa++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&o?t.flags|=e.flags&32:cx(t,e.child,a,n,r,i,o)&&(s=!0));e=e.sibling}return s}function PE(t,e){for(t=t.child;t!==null;){if(t.tag===30){var a=t.memoizedProps,n=t.stateNode,r=ai(a,n),i=li(a.default,a.update);if(e){n=n.clones;var o=n===null?null:n.map(qU)}else o=t.memoizedState,t.memoizedState=null;n=t;var s=t.child;Qa=0,r=cx(n,s,r,r,i,o,!1),(t.flags&4)!==0&&r&&(e||$l(t,a.onUpdate))}else(t.subtreeFlags&33554432)!==0&&PE(t,e);t=t.sibling}}var Zt=!1,Fe=!1,gr=!1,ob=!1,nk=typeof WeakSet=="function"?WeakSet:Set,Ft=null,Or=!1,mc=!1,sp=!1,r0=!1;function pU(t,e,a){if(t=t.containerInfo,g0=Zl,t=bL(t),Q0(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=t,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(u=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===n&&++c===i&&(l=s),h===o&&++f===r&&(u=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(O0={focusedElem:t,selectionRange:n},Zl=!1,a=(a&335544064)===a,Ft=e,e=a?9270:1024;Ft!==null;){if(t=Ft,a&&(n=t.deletions,n!==null))for(i=0;i<n.length;i++)a&&a0(n[i]);if(t.alternate===null&&(t.flags&2)!==0)a&&tk(t),mh(a);else{if(t.tag===22){if(n=t.alternate,t.memoizedState!==null){n!==null&&n.memoizedState===null&&a&&a0(n),mh(a);continue}else if(n!==null&&n.memoizedState!==null){a&&tk(t),mh(a);continue}}n=t.child,(t.subtreeFlags&e)!==0&&n!==null?(n.return=t,Ft=n):(a&&TE(t),mh(a))}}Ya=null}function mh(t){for(;Ft!==null;){var e=Ft,a=t,n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&n!==null){a=void 0,r=n.memoizedProps,n=n.memoizedState;var i=e.stateNode;try{var o=ls(e.type,r);a=i.getSnapshotBeforeUpdate(o,n),i.__reactInternalSnapshotBeforeUpdate=a}catch(s){Ve(e,e.return,s)}}break;case 3:if((r&1024)!==0){if(n=e.stateNode.containerInfo,a=n.nodeType,a===9)S0(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":S0(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&n!==null&&(a=ai(n.memoizedProps,n.stateNode),r=e.memoizedProps,r=li(r.default,r.update),r!=="none"&&Vl(n,a,r,n.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(P(163))}if(n=e.sibling,n!==null){n.return=e.return,Ft=n;break}Ft=e.return}}function ME(t,e,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:br(t,a),n&4&&Jc(5,a);break;case 1:if(br(t,a),n&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(o){Ve(a,a.return,o)}else{var r=ls(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Ve(a,a.return,o)}}n&64&&LE(a),n&512&&xr(a,a.return);break;case 3:if(br(t,a),n&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{QL(t,e)}catch(o){Ve(a,a.return,o)}}break;case 27:e===null&&n&4&&AE(a);case 26:case 5:br(t,a),e===null&&n&4&&Kb(a),n&512&&xr(a,a.return);break;case 12:br(t,a);break;case 31:br(t,a),n&4&&$E(t,a);break;case 13:br(t,a),n&4&&BE(t,a),n&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=LU.bind(null,a),iX(t,a))));break;case 22:if(n=a.memoizedState!==null||Zt,!n){var i=e!==null&&e.memoizedState!==null||Fe;e=Zt,r=Fe,Zt=n,(Fe=i)&&!r?(n=2,(a.subtreeFlags&8772)!==0&&(n|=1),Gn(t,a,n)):br(t,a),Zt=e,Fe=r}break;case 30:br(t,a),n&512&&xr(a,a.return);break;case 7:n&512&&xr(a,a.return);default:br(t,a)}}function i0(t,e){for(t=t.child;t!==null;)DE(t,e),t=t.sibling}function DE(t,e){switch(t.tag){case 5:case 26:try{var a=t.stateNode;if(e){var n=a.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var r=t.stateNode,i=t.memoizedProps.style,o=i!=null&&i.hasOwnProperty("display")?i.display:null;r.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(l){Ve(t,t.return,l)}o0(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,Be=!0}catch(l){Ve(t,t.return,l)}break;case 18:try{var s=t.stateNode;e?xk(s,!0):xk(t.stateNode,!1)}catch(l){Ve(t,t.return,l)}break;case 22:case 23:t.memoizedState===null&&i0(t,e);break;default:i0(t,e)}}function o0(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){e:{var a=t,n=e;switch(a.tag){case 4:DE(a,n);break e;case 22:a.memoizedState===null&&o0(a,n);break e;default:o0(a,n)}}t=t.sibling}}function QE(t){var e=t.alternate;e!==null&&(t.alternate=null,QE(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Op(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 ht=null,Ma=!1;function Fn(t,e,a){for(a=a.child;a!==null;)NE(t,e,a),a=a.sibling}function NE(t,e,a){if(Ja&&typeof Ja.onCommitFiberUnmount=="function")try{Ja.onCommitFiberUnmount(Gc,a)}catch{}switch(a.tag){case 26:Fe||ea(a,e),Fn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Fe&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Fe||ea(a,e),kc(a);var n=ht,r=Ma;eo(a.type)&&(ht=a.stateNode,Ma=!1),Fn(t,e,a),w_(a.stateNode,a.type,a.memoizedProps),ht=n,Ma=r;break;case 5:Fe||ea(a,e),kc(a);case 6:if(a.tag===6&&kc(a),n=ht,r=Ma,ht=null,Fn(t,e,a),ht=n,Ma=r,ht!==null)if(Ma)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(a.stateNode),Be=!0}catch(i){Ve(a,e,i)}else try{ht.removeChild(a.stateNode),Be=!0}catch(i){Ve(a,e,i)}break;case 18:ht!==null&&(Ma?(t=ht,bk(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Fl(t)):bk(ht,a.stateNode));break;case 4:n=ht,r=Ma,ht=a.stateNode.containerInfo,Ma=!0,Fn(t,e,a),ht=n,Ma=r;break;case 0:case 11:case 14:case 15:Wi(2,a,e),Fe||Wi(4,a,e),Fn(t,e,a);break;case 1:Fe||(ea(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"&&EE(a,e,n)),Fn(t,e,a);break;case 21:Fn(t,e,a);break;case 22:Fe=(n=Fe)||a.memoizedState!==null,Fn(t,e,a),Fe=n;break;case 30:ea(a,e),Fn(t,e,a);break;case 7:Fe||ea(a,e),Fn(t,e,a);break;default:Fn(t,e,a)}}function $E(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Fl(t)}catch(a){Ve(e,e.return,a)}}}function BE(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Fl(t)}catch(a){Ve(e,e.return,a)}}function mU(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new nk),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new nk),e;default:throw Error(P(435,t.tag))}}function gh(t,e){var a=mU(t);e.forEach(function(n){if(!a.has(n)){a.add(n);var r=EU.bind(null,t,n);n.then(r,r)}})}function Sa(t,e,a){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=t,s=e,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(eo(l.type)){ht=l.stateNode,Ma=!1;break e}break;case 5:ht=l.stateNode,Ma=!1;break e;case 3:case 4:ht=l.stateNode.containerInfo,Ma=!0;break e}l=l.return}if(ht===null)throw Error(P(160));NE(o,s,i),ht=null,Ma=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zE(e,t,a),e=e.sibling}var Hn=null;function zE(t,e,a){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(r&4&&(n=t.updateQueue,n=n!==null?n.events:null,n!==null))for(var i=0;i<n.length;i++){var o=n[i];o.ref.impl=o.nextImpl}Sa(e,t,a),ya(t),r&4&&(Wi(3,t,t.return),Jc(3,t),Wi(5,t,t.return));break;case 1:Sa(e,t,a),ya(t),r&512&&(Fe||n===null||ea(n,n.return)),r&64&&Zt&&(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=Hn,Sa(e,t,a),ya(t),r&512&&(Fe||n===null||ea(n,n.return)),r&4)if(r=n!==null?n.memoizedState:null,a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null)if(Zt)t.stateNode=h_(t.type,t.memoizedProps,e.containerInfo,t);else{e:{e=t.type,a=t.memoizedProps,r=i.ownerDocument||i;t:switch(e){case"title":n=r.getElementsByTagName("title")[0],(!n||n[Vc]||n[ta]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=r.createElement(e),r.head.insertBefore(n,r.querySelector("head > title"))),ia(n,e,a),n[ta]=t,Gt(n),e=n;break e;case"link":if(i=Ek("link","href",r).get(e+(a.href||""))){for(o=0;o<i.length;o++)if(n=i[o],n.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(o,1);break t}}n=r.createElement(e),ia(n,e,a),r.head.appendChild(n);break;case"meta":if(i=Ek("meta","content",r).get(e+(a.content||""))){for(o=0;o<i.length;o++)if(n=i[o],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(o,1);break t}}n=r.createElement(e),ia(n,e,a),r.head.appendChild(n);break;default:throw Error(P(468,e))}n[ta]=t,Gt(n),e=n}t.stateNode=e}else Zt||C0(i,t.type,t.stateNode);else t.stateNode=Lk(i,a,t.memoizedProps);else r!==a?(r===null?(e=n.stateNode,e===null||Fe||e.parentNode.removeChild(e)):r.count--,a===null?Zt||C0(i,t.type,t.stateNode):Lk(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&rb(t,t.memoizedProps,n.memoizedProps);break;case 27:Sa(e,t,a),ya(t),r&512&&(Fe||n===null||ea(n,n.return)),n!==null&&r&4&&rb(t,t.memoizedProps,n.memoizedProps);break;case 5:if(i=gr,gr=!1,Sa(e,t,a),gr=i,ya(t),r&512&&(Fe||n===null||ea(n,n.return)),t.flags&32){e=t.stateNode;try{Dl(e,""),Be=!0}catch(c){Ve(t,t.return,c)}}r&4&&t.stateNode!=null&&(e=t.memoizedProps,rb(t,e,n!==null?n.memoizedProps:e)),r&1024&&(ob=!0);break;case 6:if(Sa(e,t,a),ya(t),r&4){if(t.stateNode===null)throw Error(P(162));e=t.memoizedProps,a=t.stateNode;try{a.nodeValue=e,Be=!0}catch(c){Ve(t,t.return,c)}}break;case 3:if(Be=!1,Nh=null,i=Hn,Hn=Uc(e.containerInfo),Sa(e,t,a),Hn=i,ya(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fl(e.containerInfo)}catch(c){Ve(t,t.return,c)}ob&&(ob=!1,UE(t)),Be=!1;break;case 4:r=gr,gr=Zt,n=uw(),i=Hn,Hn=Uc(t.stateNode.containerInfo),Sa(e,t,a),ya(t),Hn=i,Be&&mc&&(sp=!0),Be=n,gr=r;break;case 12:Sa(e,t,a),ya(t);break;case 31:Sa(e,t,a),ya(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,gh(t,e)));break;case 13:Sa(e,t,a),ya(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Rp=Ka()),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,gh(t,e)));break;case 22:i=t.memoizedState!==null,o=n!==null&&n.memoizedState!==null;var s=Zt,l=Fe,u=gr;Zt=s||i,gr=u||i,Fe=l||o,Sa(e,t,a),Fe=l,gr=u,Zt=s,ya(t),r&8192&&(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,!i||n===null||o||Zt||Fe||(e=o||Fe,a=Zt,n=Fe,Zt=i||Zt,Fe=e,_i(t,2),Zt=a,Fe=n),!i&&gr||i0(t,i)),r&4&&(e=t.updateQueue,e!==null&&(a=e.retryQueue,a!==null&&(e.retryQueue=null,gh(t,a))));break;case 19:Sa(e,t,a),ya(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,gh(t,e)));break;case 30:r&512&&(Fe||n===null||ea(n,n.return)),r=uw(),i=mc,o=(a&335544064)===a,s=t.memoizedProps,mc=o&&li(s.default,s.update)!=="none",Sa(e,t,a),ya(t),o&&n!==null&&Be&&(t.flags|=4),mc=i,Be=r;break;case 21:break;case 7:r&512&&(Fe||n===null||ea(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=t);default:Sa(e,t,a),ya(t)}}function ya(t){var e=t.flags;if(e&2){try{for(var a,n=t.return;n!==null;){if(_E(n)){a=n;break}n=n.return}n=null;for(var r=t.return;r!==null;){if(ux(r)){var i=r.stateNode;n===null?n=[i]:n.push(i)}if(lx(r))break;r=r.return}var o=n;if(a==null)throw Error(P(160));switch(a.tag){case 27:var s=a.stateNode,l=ib(t);ip(t,l,s,o);break;case 5:var u=a.stateNode;a.flags&32&&(Dl(u,""),a.flags&=-33);var c=ib(t);ip(t,c,u,o);break;case 3:case 4:var f=a.stateNode.containerInfo,d=ib(t);Jb(t,d,f,o);break;default:throw Error(P(161))}}catch(h){Ve(t,t.return,h)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function UE(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;UE(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,Zl=!0,e.reset(),Zl=!1),t=t.sibling}}function sl(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)XE(e,t),e=e.sibling;else PE(e,!1)}function XE(t,e){var a=t.alternate;if(a===null)e0(t,!1);else switch(t.tag){case 3:if(r0=Or=!1,ak(),sl(e,t),!Or&&!sp){if(t=Sr,t!==null)for(var n=0;n<t.length;n+=3){a=t[n];var r=t[n+1];m_(a,t[n+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}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"})),r0=!0}Sr=null;break;case 5:sl(e,t);break;case 4:n=Or,Or=!1,sl(e,t),Or&&(sp=!0),Or=n;break;case 22:t.memoizedState===null&&(a.memoizedState!==null?e0(t,!1):sl(e,t));break;case 30:n=Or,r=ak(),Or=!1,sl(e,t),Or&&(t.flags|=4);var i=t.memoizedProps,o=t.stateNode;e=ai(i,o),o=ai(a.memoizedProps,o);var s=li(i.default,i.update);s==="none"?e=!1:(i=a.memoizedState,a.memoizedState=null,a=t.child,Qa=0,e=cx(t,a,e,o,s,i,!0),Qa!==(i===null?0:i.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?($l(t,t.memoizedProps.onUpdate),Sr=r):r!==null&&(r.push.apply(r,Sr),Sr=r),Or=(t.flags&32)!==0?!0:n;break;default:sl(e,t)}}function br(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ME(t,e.alternate,e),e=e.sibling}function _i(t,e){for(t=t.child;t!==null;){var a=t,n=e;switch(a.tag){case 0:case 11:case 14:case 15:Wi(4,a,a.return),_i(a,n);break;case 1:ea(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&EE(a,a.return,r),_i(a,n);break;case 27:(n&2)!==0&&w_(a.stateNode,a.type,a.memoizedProps);case 5:ea(a,a.return),a.tag!==5&&a.tag!==27||kc(a),_i(a,n);break;case 6:kc(a);break;case 26:ea(a,a.return),r=a.stateNode,a.memoizedState!==null||r===null||Fe||r.parentNode.removeChild(r),_i(a,n);break;case 22:a.memoizedState===null&&_i(a,n);break;case 30:ea(a,a.return),_i(a,n);break;case 7:ea(a,a.return);default:_i(a,n)}t=t.sibling}}function Gn(t,e,a){for(a=(e.subtreeFlags&8772)!==0?a:a&-2,e=e.child;e!==null;){var n=e.alternate,r=t,i=e,o=i.flags,s=(a&1)!==0;switch(i.tag){case 0:case 11:case 15:Gn(r,i,a),Jc(4,i);break;case 1:if(Gn(r,i,a),n=i,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){Ve(n,n.return,c)}if(n=i,r=n.updateQueue,r!==null){var l=n.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)DL(u[r],l)}catch(c){Ve(n,n.return,c)}}s&&o&64&&LE(i),xr(i,i.return);break;case 27:(a&2)!==0&&AE(i);case 5:i.tag!==5&&i.tag!==27||ek(i),Gn(r,i,a),s&&n===null&&o&4&&Kb(i),xr(i,i.return);break;case 6:ek(i);break;case 26:l=i.stateNode,i.memoizedState!==null||l===null||Zt||C0(Uc(l.ownerDocument),i.type,l),Gn(r,i,a),s&&n===null&&o&4&&Kb(i),xr(i,i.return);break;case 12:Gn(r,i,a);break;case 31:Gn(r,i,a),s&&o&4&&$E(r,i);break;case 13:Gn(r,i,a),s&&o&4&&BE(r,i);break;case 22:i.memoizedState===null&&Gn(r,i,a),xr(i,i.return);break;case 30:Gn(r,i,a),xr(i,i.return);break;case 7:xr(i,i.return);default:Gn(r,i,a)}e=e.sibling}}function fx(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&&Wc(a))}function dx(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Wc(t))}function bn(t,e,a,n){var r=(a&335544064)===a;if(e.subtreeFlags&(r?10262:10256))for(e=e.child;e!==null;)qE(t,e,a,n),e=e.sibling;else r&&IE(e)}function qE(t,e,a,n){var r=(a&335544064)===a;r&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&Ph(e);var i=e.flags;switch(e.tag){case 0:case 11:case 15:bn(t,e,a,n),i&2048&&Jc(9,e);break;case 1:bn(t,e,a,n);break;case 3:bn(t,e,a,n),r&&r0&&(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&&Wc(i)));break;case 12:if(i&2048){bn(t,e,a,n),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){Ve(e,e.return,u)}}else bn(t,e,a,n);break;case 31:bn(t,e,a,n);break;case 13:bn(t,e,a,n);break;case 23:break;case 22:o=e.stateNode,s=e.alternate,e.memoizedState!==null?(r&&s!==null&&s.memoizedState===null&&Ph(s),o._visibility&2?bn(t,e,a,n):Lc(t,e)):(r&&s!==null&&s.memoizedState!==null&&Ph(e),o._visibility&2?bn(t,e,a,n):(o._visibility|=2,ul(t,e,a,n,(e.subtreeFlags&10256)!==0||!1))),i&2048&&fx(s,e);break;case 24:bn(t,e,a,n),i&2048&&dx(e.alternate,e);break;case 30:r&&(i=e.alternate,i!==null&&(Er(i.child,!0),Er(e.child,!0))),bn(t,e,a,n);break;default:bn(t,e,a,n)}}function ul(t,e,a,n,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,o=e,s=a,l=n,u=o.flags;switch(o.tag){case 0:case 11:case 15:ul(i,o,s,l,r),Jc(8,o);break;case 23:break;case 22:var c=o.stateNode;o.memoizedState!==null?c._visibility&2?ul(i,o,s,l,r):Lc(i,o):(c._visibility|=2,ul(i,o,s,l,r)),r&&u&2048&&fx(o.alternate,o);break;case 24:ul(i,o,s,l,r),r&&u&2048&&dx(o.alternate,o);break;default:ul(i,o,s,l,r)}e=e.sibling}}function Lc(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,n=e,r=n.flags;switch(n.tag){case 22:Lc(a,n),r&2048&&fx(n.alternate,n);break;case 24:Lc(a,n),r&2048&&dx(n.alternate,n);break;default:Lc(a,n)}e=e.sibling}}var jo=8192;function Fo(t,e,a){if(t.subtreeFlags&jo)for(t=t.child;t!==null;)ZE(t,e,a),t=t.sibling}function ZE(t,e,a){switch(t.tag){case 26:Fo(t,e,a),t.flags&jo&&(t.memoizedState!==null?xX(a,Hn,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&Ak(a,t)));break;case 5:Fo(t,e,a),t.flags&jo&&(t=t.stateNode,(e&335544128)===e&&Ak(a,t));break;case 3:case 4:var n=Hn;Hn=Uc(t.stateNode.containerInfo),Fo(t,e,a),Hn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=jo,jo=16777216,Fo(t,e,a),jo=n):Fo(t,e,a));break;case 30:if((t.flags&jo)!==0&&(n=t.memoizedProps.name,n!=null&&n!=="auto")){var r=t.stateNode;r.paired=null,Ya===null&&(Ya=new Map),Ya.set(n,r)}Fo(t,e,a);break;default:Fo(t,e,a)}}function FE(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 lc(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];Ft=n,HE(n,t)}FE(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)GE(t),t=t.sibling}function GE(t){switch(t.tag){case 0:case 11:case 15:lc(t),t.flags&2048&&Wi(9,t,t.return);break;case 3:lc(t);break;case 12:lc(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Mh(t)):lc(t);break;default:lc(t)}}function Mh(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];Ft=n,HE(n,t)}FE(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Wi(8,e,e.return),Mh(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Mh(e));break;default:Mh(e)}t=t.sibling}}function HE(t,e){for(;Ft!==null;){var a=Ft;switch(a.tag){case 0:case 11:case 15:Wi(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Wc(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Ft=n;else e:for(a=t;Ft!==null;){n=Ft;var r=n.sibling,i=n.return;if(QE(n),n===a){Ft=null;break e}if(r!==null){r.return=i,Ft=r;break e}Ft=i}}}var gU={getCacheForType:function(t){var e=aa(At),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return aa(At).controller.signal}},OU=typeof WeakMap=="function"?WeakMap:Map,Xe=0,tt=null,Re=null,Ie=0,He=0,Ha=null,Di=!1,Yl=!1,hx=!1,oi=0,xt=0,Ki=0,ts=0,lp=0,Wa=0,Nl=0,Ec=null,Da=null,s0=!1,Rp=0,jE=0,up=1/0,cp=null,Zi=null,Ot=0,Vn=null,us=null,Lr=0,l0=0,u0=null,VE=null,Rl=null,Tl=null,Il=null,_c=0,Dh=null;function tn(){return(Xe&2)!==0&&Ie!==0?Ie&-Ie:Oe.T!==null?mx():Jk()}function YE(){if(Wa===0)if((Ie&536870912)===0||Le){var t=nh;nh<<=1,(nh&3932160)===0&&(nh=262144),Wa=t}else Wa=536870912;return t=oa.current,t!==null&&(t.flags|=32),Wa}function $l(t,e){if(e!=null){var a=t.stateNode,n=a.ref;n===null&&(n=a.ref=O_(ai(t.memoizedProps,a))),Tl===null&&(Tl=[]),Tl.push(e.bind(null,n))}}function $a(t,e,a){(t===tt&&(He===2||He===9)||t.cancelPendingCommit!==null)&&(Bl(t,0),Qi(t,Ie,Wa,!1)),jc(t,a),((Xe&2)===0||t!==tt)&&(t===tt&&((Xe&2)===0&&(ts|=a),xt===4&&Qi(t,Ie,Wa,!1)),Ar(t))}function WE(t,e,a){if((Xe&6)!==0)throw Error(P(327));var n=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Hc(t,e),r=n?SU(t,e):sb(t,e,!0),i=n;do{if(r===0){Yl&&!n&&Qi(t,e,0,!1);break}else{if(a=t.current.alternate,i&&!bU(a)){r=sb(t,e,!1),i=!1;continue}if(r===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;r=Ec;var l=s.current.memoizedState.isDehydrated;if(l&&(Bl(s,o).flags|=256),o=sb(s,o,!1),o!==2&&o!==6){if(hx&&!l){s.errorRecoveryDisabledLanes|=i,ts|=i,r=4;break e}i=Da,Da=r,i!==null&&(Da===null?Da=i:Da.push.apply(Da,i))}r=o}if(i=!1,r!==2)continue}}if(r===1){Bl(t,0),Qi(t,e,0,!0);break}e:{switch(n=t,i=r,i){case 0:case 1:throw Error(P(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Qi(n,e,Wa,!Di);break e;case 2:Da=null;break;case 3:case 5:break;default:throw Error(P(329))}if((e&62914560)===e&&(r=Rp+300-Ka(),10<r)){if(Qi(n,e,Wa,!Di),gp(n,0,!0)!==0)break e;Lr=e,n.timeoutHandle=Ox(rk.bind(null,n,a,Da,cp,s0,e,Wa,ts,Nl,Di,i,"Throttled",-0,0),r);break e}rk(n,a,Da,cp,s0,e,Wa,ts,Nl,Di,i,null,-0,0)}}break}while(!0);Ar(t)}function rk(t,e,a,n,r,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:vr},Ya=null,ZE(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=Xc.bind(p),m.finished.then(p,p))),p=(i&62914560)===i?Rp-Ka():(i&4194048)===i?jE-Ka():0,p=SX(f,p),p!==null)){Lr=i,t.cancelPendingCommit=p(ok.bind(null,t,e,i,a,n,r,o,s,l,u,c,f,null,d,h)),Qi(t,i,o,!u);return}ok(t,e,i,a,n,r,o,s,l,u,c,f)}function bU(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 n=0;n<a.length;n++){var r=a[n],i=r.getSnapshot;r=r.value;try{if(!an(i(),r))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 Qi(t,e,a,n){e=jk(t,e),e&=~lp,e&=~ts,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var r=e;0<r;){var i=31-en(r),o=1<<i;n[i]=-1,r&=~o}a!==0&&Yk(t,a,e)}function Tp(){return(Xe&6)===0?(ef(0,!1),!1):!0}function px(){if(Re!==null){if(He===0)var t=Re.return;else t=Re,Kr=ps=null,W0(t),El=null,Dc=0,t=Re;for(;t!==null;)kE(t.alternate,t),t=t.return;Re=null}}function Bl(t,e){var a=t.timeoutHandle;return a!==-1&&(t.timeoutHandle=-1,zU(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Lr=0,px(),tt=t,Re=a=Jr(t.current,null),Ie=e,He=0,Ha=null,Di=!1,Yl=Hc(t,e),hx=!1,Nl=Wa=lp=ts=Ki=xt=0,Da=Ec=null,s0=!1,oi=jk(t,e),yp(),a}function KE(t,e){Se=null,Oe.H=ap,e===jl||e===wp?(e=Tw(),He=3):e===q0?(e=Tw(),He=4):He=e===ix?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ha=e,Re===null&&(xt=1,np(t,Cn(e,t.current)))}function JE(){var t=oa.current;return t===null?!0:(Ie&4194048)===Ie?ma===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?t===ma:!1}function e_(){var t=Oe.H;return Oe.H=ap,t===null?ap:t}function t_(){var t=Oe.A;return Oe.A=gU,t}function fp(){xt=4,Di||(Ie&4194048)!==Ie&&oa.current!==null||(Yl=!0),(Ki&134217727)===0&&(ts&134217727)===0||tt===null||Qi(tt,Ie,Wa,!1)}function sb(t,e,a){var n=Xe;Xe|=2;var r=e_(),i=t_();(tt!==t||Ie!==e)&&(cp=null,Bl(t,e)),e=!1;var o=xt;e:do try{if(He!==0&&Re!==null){var s=Re,l=Ha;switch(He){case 8:px(),o=6;break e;case 3:case 2:case 9:case 6:oa.current===null&&(e=!0);var u=He;if(He=0,Ha=null,vl(t,s,l,u),a&&Yl){o=0;break e}break;default:u=He,He=0,Ha=null,vl(t,s,l,u)}}xU(),o=xt;break}catch(c){KE(t,c)}while(!0);return e&&t.shellSuspendCounter++,Kr=ps=null,Xe=n,Oe.H=r,Oe.A=i,Re===null&&(tt=null,Ie=0,yp()),o}function xU(){for(;Re!==null;)a_(Re)}function SU(t,e){var a=Xe;Xe|=2;var n=e_(),r=t_();tt!==t||Ie!==e?(cp=null,up=Ka()+500,Bl(t,e)):Yl=Hc(t,e);e:do try{if(He!==0&&Re!==null){e=Re;var i=Ha;t:switch(He){case 1:He=0,Ha=null,vl(t,e,i,1);break;case 2:case 9:if(Rw(i)){He=0,Ha=null,ik(e);break}e=function(){He!==2&&He!==9||tt!==t||(He=7),Ar(t)},i.then(e,e);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Rw(i)?(He=0,Ha=null,ik(e)):(He=0,Ha=null,vl(t,e,i,7));break;case 5:var o=null;switch(Re.tag){case 26:o=Re.memoizedState;case 5:case 27:var s=Re;if(o?E_(o):s.stateNode.complete){He=0,Ha=null;var l=s.sibling;if(l!==null)Re=l;else{var u=s.return;u!==null?(Re=u,Ip(u)):Re=null}break t}}He=0,Ha=null,vl(t,e,i,5);break;case 6:He=0,Ha=null,vl(t,e,i,6);break;case 8:px(),xt=6;break e;default:throw Error(P(462))}}yU();break}catch(c){KE(t,c)}while(!0);return Kr=ps=null,Oe.H=n,Oe.A=r,Xe=a,Re!==null?0:(tt=null,Ie=0,yp(),xt)}function yU(){for(;Re!==null&&!$5();)a_(Re)}function a_(t){var e=wE(t.alternate,t,oi);t.memoizedProps=t.pendingProps,e===null?Ip(t):Re=e}function ik(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=Hw(a,e,e.pendingProps,e.type,void 0,Ie);break;case 11:e=Hw(a,e,e.pendingProps,e.type.render,e.ref,Ie);break;case 5:W0(e);var n=e;n===Ht&&(Le?(Vh(n),n.tag===5&&n.stateNode!=null&&(st=n.stateNode)):(Vh(n),Le=!0));default:kE(a,e),e=Re=LL(e,oi),e=wE(a,e,oi)}t.memoizedProps=t.pendingProps,e===null?Ip(t):Re=e}function vl(t,e,a,n){Kr=ps=null,W0(e),El=null,Dc=0;var r=e.return;try{if(lU(t,r,e,a,Ie)){xt=1,np(t,Cn(a,t.current)),Re=null;return}}catch(i){if(r!==null)throw Re=r,i;xt=1,np(t,Cn(a,t.current)),Re=null;return}e.flags&32768?(Le||n===1?t=!0:Yl||(Ie&536870912)!==0?t=!1:(Di=t=!0,(n===2||n===9||n===3||n===6)&&(n=oa.current,n!==null&&n.tag===13&&(n.flags|=16384))),n_(e,t)):Ip(e)}function Ip(t){var e=t;do{if((e.flags&32768)!==0){n_(e,Di);return}t=e.return;var a=dU(e.alternate,e,oi);if(a!==null){Re=a;return}if(e=e.sibling,e!==null){Re=e;return}Re=e=t}while(e!==null);xt===0&&(xt=5)}function n_(t,e){do{var a=hU(t.alternate,t);if(a!==null){a.flags&=32767,Re=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){Re=t;return}Re=t=a}while(t!==null);xt=6,Re=null}function ok(t,e,a,n,r,i,o,s,l,u,c,f){t.cancelPendingCommit=null;do Pp();while(Ot!==0);if((Xe&6)!==0)throw Error(P(327));if(e!==null){if(e===t.current)throw Error(P(177));t===tt&&(Re=tt=null,Ie=0),us=e,Vn=t,Lr=a,u0=r,VE=n,vU(t,e,a,o,s,l,f)}}function vU(t,e,a,n,r,i,o){var s=e.lanes|e.childLanes;if(l0=s,s|=N0,j5(t,a,s,n,r,i),Tl=null,(a&335544064)===a?(Il=Y3(t),n=10262):(Il=null,n=10256),(e.subtreeFlags&n)!==0||(e.flags&n)!==0?(t.callbackNode=null,t.callbackPriority=0,_U(Zh,function(){return h0(),null})):(t.callbackNode=null,t.callbackPriority=0),op=!1,n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=Oe.T,Oe.T=null,r=qe.p,qe.p=2,i=Xe,Xe|=4;try{pU(t,e,a)}finally{Xe=i,qe.p=r,Oe.T=n}}Ot=1,op?Rl=GU(o,t.containerInfo,Il,c0,f0,wU,d0,h0,CU,null,null):(c0(),f0(),d0())}function CU(t){if(Ot!==0){var e=Vn.onRecoverableError;e(t,{componentStack:null})}}function wU(){Ot===3&&(Ot=0,XE(us,Vn),Ot=4)}function c0(){if(Ot===1){Ot=0;var t=Vn,e=us,a=Lr,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=Oe.T,Oe.T=null;var r=qe.p;qe.p=2;var i=Xe;Xe|=4;try{mc=sp=!1,zE(e,t,a),a=O0;var o=bL(t.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&OL(s.ownerDocument.documentElement,s)){if(l!==null&&Q0(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),b=l.end===void 0?m:Math.min(l.end,p);!h.extend&&m>b&&(o=b,b=m,m=o);var g=vw(s,m),O=vw(s,b);if(g&&O&&(h.rangeCount!==1||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==O.node||h.focusOffset!==O.offset)){var x=f.createRange();x.setStart(g.node,g.offset),h.removeAllRanges(),m>b?(h.addRange(x),h.extend(O.node,O.offset)):(x.setEnd(O.node,O.offset),h.addRange(x))}}}}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 S=f[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Zl=!!g0,O0=g0=null}finally{Xe=i,qe.p=r,Oe.T=n}}t.current=e,Ot=2}}function f0(){if(Ot===2){Ot=0;var t=Vn,e=us,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=Oe.T,Oe.T=null;var n=qe.p;qe.p=2;var r=Xe;Xe|=4;try{ME(t,e.alternate,e)}finally{Xe=r,qe.p=n,Oe.T=a}}Ot=3}}function d0(){if(Ot===4||Ot===3){Ot=0;var t=Rl;Rl=null,B5();var e=Vn,a=us,n=Lr,r=VE,i=(n&335544064)===n?10262:10256;if((a.subtreeFlags&i)!==0||(a.flags&i)!==0?Ot=5:(Ot=0,us=Vn=null,r_(e,e.pendingLanes)),i=e.pendingLanes,i===0&&(Zi=null),R0(n),a=a.stateNode,Ja&&typeof Ja.onCommitFiberRoot=="function")try{Ja.onCommitFiberRoot(Gc,a,void 0,(a.current.flags&128)===128)}catch{}if(r!==null){a=Oe.T,i=qe.p,qe.p=2,Oe.T=null;try{for(var o=e.onRecoverableError,s=0;s<r.length;s++){var l=r[s];o(l.value,{componentStack:l.stack})}}finally{Oe.T=a,qe.p=i}}if(r=Tl,o=Il,Il=null,r!==null&&(Tl=null,o===null&&(o=[]),t!==null))for(l=0;l<r.length;l++)a=(0,r[l])(o),a!==void 0&&t.finished.finally(a);(Lr&3)!==0&&Pp(),Ar(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Dh?_c++:(_c=0,Dh=e):(_c=0,Dh=null),ef(0,!1)}}function r_(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Wc(e)))}function Pp(){return Rl!==null&&(Rl.skipTransition(),Rl=null),c0(),f0(),d0(),h0()}function h0(){if(Ot!==5)return!1;var t=Vn,e=l0;l0=0;var a=R0(Lr),n=Oe.T,r=qe.p;try{qe.p=32>a?32:a,Oe.T=null,a=u0,u0=null;var i=Vn,o=Lr;if(Ot=0,us=Vn=null,Lr=0,(Xe&6)!==0)throw Error(P(331));var s=Xe;if(Xe|=4,GE(i.current),qE(i,i.current,o,a),Xe=s,ef(0,!1),Ja&&typeof Ja.onPostCommitFiberRoot=="function")try{Ja.onPostCommitFiberRoot(Gc,i)}catch{}return!0}finally{qe.p=r,Oe.T=n,r_(t,e)}}function sk(t,e,a){e=Cn(a,e),e=Gb(t.stateNode,e,2),t=Ui(t,e,2),t!==null&&(jc(t,2),Ar(t))}function Ve(t,e,a){if(t.tag===3)sk(t,t,a);else for(;e!==null;){if(e.tag===3){sk(e,t,a);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Zi===null||!Zi.has(n))){t=Cn(a,t),a=xE(2),n=Ui(e,a,2),n!==null&&(SE(a,n,e,t),jc(n,2),Ar(n));break}}e=e.return}}function lb(t,e,a){var n=t.pingCache;if(n===null){n=t.pingCache=new OU;var r=new Set;n.set(e,r)}else r=n.get(e),r===void 0&&(r=new Set,n.set(e,r));r.has(a)||(hx=!0,r.add(a),t=kU.bind(null,t,e,a),e.then(t,t))}function kU(t,e,a){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,tt===t&&(Ie&a)===a&&((xt===4||xt===3&&(Ie&62914560)===Ie&&300>Ka()-Rp)&&(Xe&2)===0?Bl(t,0):lp|=a,Nl===Ie&&(Nl=0)),Ar(t)}function i_(t,e){e===0&&(e=Vk()),t=hs(t,e),t!==null&&(jc(t,e),Ar(t))}function LU(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),i_(t,a)}function EU(t,e){var a=0;switch(t.tag){case 31:case 13:var n=t.stateNode,r=t.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(P(314))}n!==null&&n.delete(e),i_(t,a)}function _U(t,e){return _0(t,e)}var zl=null,cl=null,p0=!1,dp=!1,ub=!1,Ni=0;function Ar(t){t!==cl&&t.next===null&&(cl===null?zl=cl=t:cl=cl.next=t),dp=!0,p0||(p0=!0,RU())}function ef(t,e){if(!ub&&dp){ub=!0;do for(var a=!1,n=zl;n!==null;){if(!e)if(t!==0){var r=n.pendingLanes;if(r===0)var i=0;else{var o=n.suspendedLanes,s=n.pingedLanes;i=(1<<31-en(42|t)+1)-1,i&=r&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,lk(n,i))}else i=Ie,i=gp(n,n===tt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||Hc(n,i)||(a=!0,lk(n,i));n=n.next}while(a);ub=!1}}function AU(){o_()}function o_(){dp=p0=!1;var t=0;Ni!==0&&BU()&&(t=Ni);for(var e=Ka(),a=null,n=zl;n!==null;){var r=n.next,i=s_(n,e);i===0?(n.next=null,a===null?zl=r:a.next=r,r===null&&(cl=a)):(a=n,(t!==0||(i&3)!==0)&&(dp=!0)),n=r}Ot!==0&&Ot!==5||ef(t,!1),Ni!==0&&(Ni=0)}function s_(t,e){for(var a=t.suspendedLanes,n=t.pingedLanes,r=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-en(i),s=1<<o,l=r[o];l===-1?((s&a)===0||(s&n)!==0)&&(r[o]=H5(s,e)):l<=e&&(t.expiredLanes|=s),i&=~s}if(e=tt,a=Ie,a=gp(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,a===0||t===e&&(He===2||He===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&UO(n),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Hc(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(n!==null&&UO(n),R0(a)){case 2:case 8:a=Gk;break;case 32:a=Zh;break;case 268435456:a=Hk;break;default:a=Zh}return n=l_.bind(null,t),a=_0(a,n),t.callbackPriority=e,t.callbackNode=a,e}return n!==null&&n!==null&&UO(n),t.callbackPriority=2,t.callbackNode=null,2}function l_(t,e){if(Ot!==0&&Ot!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Pp()&&t.callbackNode!==a)return null;var n=Ie;return n=gp(t,t===tt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(WE(t,n,e),s_(t,Ka()),t.callbackNode!=null&&t.callbackNode===a?l_.bind(null,t):null)}function lk(t,e){if(Pp())return null;WE(t,e,!0)}function RU(){UU(function(){(Xe&6)!==0?_0(Fk,AU):o_()})}function mx(){if(Ni===0){var t=is;t===0&&(t=ah,ah<<=1,(ah&261888)===0&&(ah=256)),Ni=t}return Ni}function uk(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ch(t)}function TU(t,e,a,n,r){if(e==="submit"&&a&&a.stateNode===r){var i=uk((r[za]||null).action),o=n.submitter;o&&(e=(e=o[za]||null)?uk(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var s=new bp("action","action",null,n,r);t.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ni!==0){var l=new FormData(r,o);Zb(a,{pending:!0,data:l,method:r.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=new FormData(r,o),Zb(a,{pending:!0,data:l,method:r.method,action:i},i,l))},currentTarget:r}]})}}for(Oh=0;Oh<Pb.length;Oh++)bh=Pb[Oh],ck=bh.toLowerCase(),fk=bh[0].toUpperCase()+bh.slice(1),Yn(ck,"on"+fk);var bh,ck,fk,Oh;Yn(SL,"onAnimationEnd");Yn(yL,"onAnimationIteration");Yn(vL,"onAnimationStart");Yn("dblclick","onDoubleClick");Yn("focusin","onFocus");Yn("focusout","onBlur");Yn(X3,"onTransitionRun");Yn(q3,"onTransitionStart");Yn(Z3,"onTransitionCancel");Yn(CL,"onTransitionEnd");Ml("onMouseEnter",["mouseout","mouseover"]);Ml("onMouseLeave",["mouseout","mouseover"]);Ml("onPointerEnter",["pointerout","pointerover"]);Ml("onPointerLeave",["pointerout","pointerover"]);fs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fs("onBeforeInput",["compositionend","keypress","textInput","paste"]);fs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $c="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(" "),IU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($c));function u_(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var n=t[a],r=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&r.isPropagationStopped())break e;i=s,r.currentTarget=u;try{i(r)}catch(c){Gh(c)}r.currentTarget=null,i=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&r.isPropagationStopped())break e;i=s,r.currentTarget=u;try{i(r)}catch(c){Gh(c)}r.currentTarget=null,i=l}}}}function Ae(t,e){var a=e[iw];a===void 0&&(a=e[iw]=new Set);var n=t+"__bubble";a.has(n)||(c_(e,t,2,!1),a.add(n))}function cb(t,e,a){var n=0;e&&(n|=4),c_(a,t,n,e)}var xh="_reactListening"+Math.random().toString(36).slice(2);function gx(t){if(!t[xh]){t[xh]=!0,tL.forEach(function(a){a!=="selectionchange"&&(IU.has(a)||cb(a,!1,t),cb(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xh]||(e[xh]=!0,cb("selectionchange",!1,e))}}function c_(t,e,a,n){switch(M_(e)){case 2:var r=wX;break;case 8:r=kX;break;default:r=Cx}a=r.bind(null,e,a,t),r=void 0,!Ab||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),n?r!==void 0?t.addEventListener(e,a,{capture:!0,passive:r}):t.addEventListener(e,a,!0):r!==void 0?t.addEventListener(e,a,{passive:r}):t.addEventListener(e,a,!1)}function fb(t,e,a,n,r){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===r)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===r)return;o=o.return}for(;s!==null;){if(o=Vo(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){n=i=o;continue e}s=s.parentNode}}n=n.return}uL(function(){var u=i,c=I0(a),f=[];e:{var d=wL.get(t);if(d!==void 0){var h=bp,p=t;switch(t){case"keypress":if(kh(a)===0)break e;case"keydown":case"keyup":h=b3;break;case"focusin":p="focus",h=HO;break;case"focusout":p="blur",h=HO;break;case"beforeblur":case"afterblur":h=HO;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=hw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=o3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=C3;break;case SL:case yL:case vL:h=u3;break;case CL:h=k3;break;case"scroll":case"scrollend":h=r3;break;case"wheel":h=E3;break;case"copy":case"cut":case"paste":h=f3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=mw;break;case"submit":h=y3;break;case"toggle":case"beforetoggle":h=A3}var m=(e&4)!==0,b=!m&&(t==="scroll"||t==="scrollend"),g=m?d!==null?d+"Capture":null:d;m=[];for(var O=u,x;O!==null;){var S=O;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||g===null||(S=Rc(O,g),S!=null&&m.push(Bc(O,S,x))),b)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!==_b&&(p=a.relatedTarget||a.fromElement)&&(Vo(p)||p[Gl]))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?Vo(h):null,h!==null&&(b=Fc(h),m=h.tag,h!==b||m!==5&&m!==27&&m!==6)&&(h=null)):(d=null,h=u),d!==h&&(m=hw,S="onMouseLeave",g="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(m=mw,S="onPointerLeave",g="onPointerEnter",O="pointer"),b=d==null?p:hc(d),x=h==null?p:hc(h),p=new m(S,O+"leave",d,a,c),p.target=b,p.relatedTarget=x,S=null,Vo(c)===u&&(m=new m(g,O+"enter",h,a,c),m.target=x,m.relatedTarget=b,S=m),b=S,m=d&&h?gb(d,h,PU):null,d!==null&&dk(f,p,d,m,!1),h!==null&&b!==null&&dk(f,b,h,m,!0)))}e:{if(d=u?hc(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var y=xw;else if(bw(d))if(mL)y=B3;else{y=N3;var v=Q3}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&T0(u.elementType)&&(y=xw):y=$3;if(y&&(y=y(t,u))){pL(f,y,a,c);break e}v&&v(t,d,u)}switch(v=u?hc(u):window,t){case"focusin":(bw(v)||v.contentEditable==="true")&&(gl=v,Tb=u,bc=null);break;case"focusout":bc=Tb=gl=null;break;case"mousedown":Ib=!0;break;case"contextmenu":case"mouseup":case"dragend":Ib=!1,Cw(f,a,c);break;case"selectionchange":if(U3)break;case"keydown":case"keyup":Cw(f,a,c)}var C;if(D0)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 ml?dL(t,a)&&(k="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(k="onCompositionStart");k&&(fL&&a.locale!=="ko"&&(ml||k!=="onCompositionStart"?k==="onCompositionEnd"&&ml&&(C=cL()):(Pi=c,P0="value"in Pi?Pi.value:Pi.textContent,ml=!0)),v=hp(u,k),0<v.length&&(k=new pw(k,t,null,a,c),f.push({event:k,listeners:v}),C?k.data=C:(C=hL(a),C!==null&&(k.data=C)))),(C=T3?I3(t,a):P3(t,a))&&(k=hp(u,"onBeforeInput"),0<k.length&&(v=new pw("onBeforeInput","beforeinput",null,a,c),f.push({event:v,listeners:k}),v.data=C)),TU(f,t,u,a,c)}u_(f,e)})}function Bc(t,e,a){return{instance:t,listener:e,currentTarget:a}}function hp(t,e){for(var a=e+"Capture",n=[];t!==null;){var r=t,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=Rc(t,a),r!=null&&n.unshift(Bc(t,r,i)),r=Rc(t,e),r!=null&&n.push(Bc(t,r,i))),t.tag===3)return n;t=t.return}return[]}function PU(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function dk(t,e,a,n,r){for(var i=e._reactName,o=[];a!==null&&a!==n;){var s=a,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===n)break;s!==5&&s!==26&&s!==27||u===null||(l=u,r?(u=Rc(a,i),u!=null&&o.unshift(Bc(a,u,l))):r||(u=Rc(a,i),u!=null&&o.push(Bc(a,u,l)))),a=a.return}o.length!==0&&t.push({event:e,listeners:o})}var MU=/\r\n?/g,DU=/\u0000|\uFFFD/g;function hk(t){return(typeof t=="string"?t:""+t).replace(MU,`
|
|
10
|
+
`).replace(DU,"")}function f_(t,e){return e=hk(e),hk(t)===e}function je(t,e,a,n,r,i){switch(a){case"children":if(typeof n=="string")e==="body"||e==="textarea"&&n===""||Dl(t,n);else if(typeof n=="number"||typeof n=="bigint")e!=="body"&&Dl(t,""+n);else return;break;case"className":ih(t,"class",n);break;case"tabIndex":ih(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ih(t,a,n);break;case"style":lL(t,n,i);return;case"data":if(e!=="object"){ih(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Ch(n),t.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="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",r.name,r,null),je(t,e,"formEncType",r.formEncType,r,null),je(t,e,"formMethod",r.formMethod,r,null),je(t,e,"formTarget",r.formTarget,r,null)):(je(t,e,"encType",r.encType,r,null),je(t,e,"method",r.method,r,null),je(t,e,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Ch(n),t.setAttribute(a,n);break;case"onClick":n!=null&&(t.onclick=vr);return;case"onScroll":n!=null&&Ae("scroll",t);return;case"onScrollEnd":n!=null&&Ae("scrollend",t);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(P(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(P(60));i?.__html!==a&&(t.innerHTML=a)}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}a=Ch(n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":n===!0?t.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(a,n):t.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(a):t.setAttribute(a,n);break;case"popover":Ae("beforetoggle",t),Ae("toggle",t),vh(t,"popover",n);break;case"xlinkActuate":Vr(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Vr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Vr(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Vr(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Vr(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Vr(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Vr(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Vr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Vr(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":vh(t,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=a3.get(a)||a,vh(t,a,n);else return}Be=!0}function m0(t,e,a,n,r,i){switch(a){case"style":lL(t,n,i);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(P(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(P(60));i?.__html!==a&&(t.innerHTML=a)}}break;case"children":if(typeof n=="string")Dl(t,n);else if(typeof n=="number"||typeof n=="bigint")Dl(t,""+n);else return;break;case"onScroll":n!=null&&Ae("scroll",t);return;case"onScrollEnd":n!=null&&Ae("scrollend",t);return;case"onClick":n!=null&&(t.onclick=vr);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!aL.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),i=a.slice(2,r?a.length-7:void 0),e=t[za]||null,e=e!=null?e[a]:null,typeof e=="function"&&t.removeEventListener(i,e,r),typeof n=="function")){typeof e!="function"&&e!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(i,n,r);break e}Be=!0,a in t?t[a]=n:n===!0?t.setAttribute(a,""):vh(t,a,n)}return}Be=!0}function ia(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",t),Ae("load",t);var n=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(P(137,e));default:je(t,e,i,o,a,null)}}r&&je(t,e,"srcSet",a.srcSet,a,null),n&&je(t,e,"src",a.src,a,null);return;case"input":Ae("invalid",t);var s=i=o=r=null,l=null,u=null;for(n in a)if(a.hasOwnProperty(n)){var c=a[n];if(c!=null)switch(n){case"name":r=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(P(137,e));break;default:je(t,e,n,c,a,null)}}iL(t,i,s,l,u,o,r,!1);return;case"select":Ae("invalid",t),n=o=i=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":n=s;default:je(t,e,r,s,a,null)}e=i,a=o,t.multiple=!!n,e!=null?wl(t,!!n,e,!1):a!=null&&wl(t,!!n,a,!0);return;case"textarea":Ae("invalid",t),i=r=n=null;for(o in a)if(a.hasOwnProperty(o)&&(s=a[o],s!=null))switch(o){case"value":n=s;break;case"defaultValue":r=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(P(91));break;default:je(t,e,o,s,a,null)}sL(t,n,r,i);return;case"option":for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null)&&(l==="selected"?t.selected=n&&typeof n!="function"&&typeof n!="symbol":je(t,e,l,n,a,null));return;case"dialog":Ae("beforetoggle",t),Ae("toggle",t),Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":Ae("load",t);break;case"video":case"audio":for(n=0;n<$c.length;n++)Ae($c[n],t);break;case"image":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"embed":case"source":case"link":Ae("error",t),Ae("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)&&(n=a[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(P(137,e));default:je(t,e,u,n,a,null)}return;default:if(T0(e)){for(c in a)a.hasOwnProperty(c)&&(n=a[c],n!==void 0&&m0(t,e,c,n,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(n=a[s],n!=null&&je(t,e,s,n,a,null))}var QU={};function NU(t,e,a,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=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:n.hasOwnProperty(h)||je(t,e,h,null,n,f)}}for(var d in n){var h=n[d];if(f=a[d],n.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":h!==f&&(Be=!0),i=h;break;case"name":h!==f&&(Be=!0),r=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(P(137,e));break;default:h!==f&&je(t,e,d,h,n,f)}}Eb(t,o,s,l,u,c,i,r);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:n.hasOwnProperty(i)||je(t,e,i,null,n,l)}for(r in n)if(i=n[r],l=a[r],n.hasOwnProperty(r)&&(i!=null||l!=null))switch(r){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,r,i,n,l)}e=s,a=o,n=h,d!=null?wl(t,!!a,d,!1):!!n!=!!a&&(e!=null?wl(t,!!a,e,!0):wl(t,!!a,a?[]:"",!1));return;case"textarea":h=d=null;for(s in a)if(r=a[s],a.hasOwnProperty(s)&&r!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:je(t,e,s,null,n,r)}for(o in n)if(r=n[o],i=a[o],n.hasOwnProperty(o)&&(r!=null||i!=null))switch(o){case"value":r!==i&&(Be=!0),d=r;break;case"defaultValue":r!==i&&(Be=!0),h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(P(91));break;default:r!==i&&je(t,e,o,r,n,i)}oL(t,d,h);return;case"option":for(var p in a)d=a[p],a.hasOwnProperty(p)&&d!=null&&!n.hasOwnProperty(p)&&(p==="selected"?t.selected=!1:je(t,e,p,null,n,d));for(l in n)d=n[l],h=a[l],n.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,n,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&&!n.hasOwnProperty(m)&&je(t,e,m,null,n,d);for(u in n)if(d=n[u],h=a[u],n.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(P(137,e));break;default:je(t,e,u,d,n,h)}return;default:if(T0(e)){for(var b in a)d=a[b],a.hasOwnProperty(b)&&d!==void 0&&!n.hasOwnProperty(b)&&m0(t,e,b,void 0,n,d);for(c in n)d=n[c],h=a[c],!n.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||m0(t,e,c,d,n,h);return}}for(var g in a)d=a[g],a.hasOwnProperty(g)&&d!=null&&!n.hasOwnProperty(g)&&je(t,e,g,null,n,d);for(f in n)d=n[f],h=a[f],!n.hasOwnProperty(f)||d===h||d==null&&h==null||je(t,e,f,d,n,h)}function pk(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $U(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],i=r.transferSize,o=r.initiatorType,s=r.duration;if(i&&s&&pk(o)){for(o=0,s=r.responseEnd,n+=1;n<a.length;n++){var l=a[n],u=l.startTime;if(u>s)break;var c=l.transferSize,f=l.initiatorType;c&&pk(f)&&(l=l.responseEnd,o+=c*(l<s?1:(s-u)/(l-u)))}if(--n,e+=8*(i+o)/(r.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 g0=null,O0=null;function zc(t){return t.nodeType===9?t:t.ownerDocument}function mk(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 d_(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 h_(t,e,a,n){return a=zc(a).createElement(t),a[ta]=n,a[za]=e,ia(a,t,e),Gt(a),a}function b0(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 db=null;function BU(){var t=window.event;return t&&t.type==="popstate"?t===db?!1:(db=t,!0):(db=null,!1)}var Ox=typeof setTimeout=="function"?setTimeout:void 0,zU=typeof clearTimeout=="function"?clearTimeout:void 0,gk=typeof Promise=="function"?Promise:void 0,Ok=typeof requestAnimationFrame=="function"?requestAnimationFrame:Ox,UU=typeof queueMicrotask=="function"?queueMicrotask:typeof gk<"u"?function(t){return gk.resolve(null).then(t).catch(XU)}:Ox;function XU(t){setTimeout(function(){throw t})}function eo(t){return t==="head"}function bk(t,e){var a=e,n=0;do{var r=a.nextSibling;if(t.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){t.removeChild(r),Fl(e);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")pb(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,pb(a);for(var i=a.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[Vc]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&pb(t.ownerDocument.body);a=r}while(a);Fl(e)}function xk(t,e){var a=t;t=0;do{var n=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||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=n}while(a)}function p_(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 n=1;else for(var r=n=0;r<e.length;r++){var i=e[r];0<i.width&&0<i.height&&n++}n===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+a.paddingTop,t.marginBottom="-"+a.paddingBottom)}}function m_(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 g_(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 x0(t){var e=t.getBoundingClientRect(),a=getComputedStyle(t);return g_(e,a,t)}function qU(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var a=getComputedStyle(t);return g_(e,a,t)}function ZU(t){return t.documentElement.clientHeight}function FU(t){this.addEventListener("load",t),this.addEventListener("error",t)}function GU(t,e,a,n,r,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;n();var m=[];if(p==="loaded"&&(ZU(u),u.fonts.status==="loading"&&m.push(u.fonts.ready)),p=m.length,t!==null)for(var b=t.suspenseyImages,g=0,O=0;O<b.length;O++){var x=b[O];if(!x.complete){var S=x.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<d.innerHeight&&S.left<d.innerWidth){if(g+=__(x),g>$h){m.length=p;break}x=new Promise(FU.bind(x)),m.push(x)}}}if(0<m.length)return d=Promise.race([Promise.all(m),new Promise(function(y){return setTimeout(y,500)})]).then(r,r),(h?Promise.allSettled([h.finished,d]):d).then(i,i);if(r(),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,b=m.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){f.push(p),p=m.getKeyframes();for(var g=b=void 0,O=!0,x=0;x<p.length;x++){var S=p[x],y=S.width;if(b===void 0)b=y;else if(b!==y){O=!1;break}if(y=S.height,g===void 0)g=y;else if(g!==y){O=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}O&&b!==void 0&&g!==void 0&&(m.setKeyframes(p),O=getComputedStyle(m.target,m.pseudoElement),O.width!==b||O.height!==g)&&(O=p[0],O.width=b,O.height=g,O=p[p.length-1],O.width=b,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{n(),r(),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 n(),r(),o(),null}}function Yo(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}Yo.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:at({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};Yo.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,a=t.getAnimations({subtree:!0}),n=[],r=0;r<a.length;r++){var i=a[r].effect;i!==null&&i.target===t&&i.pseudoElement===e&&n.push(a[r])}return n};Yo.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function O_(t){return{name:t,group:new Yo("group",t),imagePair:new Yo("image-pair",t),old:new Yo("old",t),new:new Yo("new",t)}}function nn(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}nn.prototype.addEventListener=function(t,e,a){var n=null,r=null;if(!(a!=null&&typeof a!="boolean"&&(n=a.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(b_(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)}),n!==null&&(r=o.removeEventListener.bind(o,t,e,a),n.addEventListener("abort",r,{once:!0}),r=n.removeEventListener.bind(n,"abort",r)),n=Ul(a),i.push({type:t,listener:e,optionsOrUseCapture:a,attachedListener:s,cleanup:r}),Ba(this._fragmentFiber.child,!1,HU,t,s,n)}this._eventListeners=i}};function HU(t,e,a,n){return Nt(t).addEventListener(e,a,n),!1}nn.prototype.removeEventListener=function(t,e,a){var n=this._eventListeners;if(n!==null&&(e=b_(n,t,e,a),e!==-1)){var r=n[e];a=r.attachedListener;var i=r.cleanup;r=Ul(r.optionsOrUseCapture),Ba(this._fragmentFiber.child,!1,jU,t,a,r),n.splice(e,1),i!==null&&i()}};function jU(t,e,a,n){return Nt(t).removeEventListener(e,a,n),!1}function Ul(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function Sk(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function b_(t,e,a,n){if(t.length===0)return-1;n=Sk(n);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===e&&i.listener===a&&Sk(i.optionsOrUseCapture)===n)return r}return-1}nn.prototype.dispatchEvent=function(t){var e=cs(this._fragmentFiber);if(e===null)return!0;e=Nt(e);var a=this._eventListeners;if(a!==null&&0<a.length||!t.bubbles){var n=e.nodeType===9?e.createComment(""):document.createTextNode("");if(a)for(var r=0;r<a.length;r++){var i=a[r];n.addEventListener(i.type,i.attachedListener,Ul(i.optionsOrUseCapture))}if(e.appendChild(n),t=n.dispatchEvent(t),a)for(r=0;r<a.length;r++)i=a[r],n.removeEventListener(i.type,i.attachedListener,Ul(i.optionsOrUseCapture));return e.removeChild(n),t}return e.dispatchEvent(t)};nn.prototype.focus=function(t){Ba(this._fragmentFiber.child,!0,x_,t,void 0,void 0)};function x_(t,e){return t.tag===6?!1:(t=Nt(t),oX(t,e))}nn.prototype.focusLast=function(t){var e=[];Ba(this._fragmentFiber.child,!0,bx,e,void 0,void 0);for(var a=e.length-1;0<=a&&!x_(e[a],t);a--);};function bx(t,e){return e.push(t),!1}nn.prototype.blur=function(){var t=cs(this._fragmentFiber);t!==null&&(t=Nt(t),t=zc(t).activeElement,t!==null&&Ba(this._fragmentFiber.child,!1,VU,t,void 0,void 0))};function VU(t,e){return t.tag===6?!1:(t=Nt(t),t===e||t.contains(e)?(e.blur(),!0):!1)}nn.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),Ba(this._fragmentFiber.child,!1,YU,t,void 0,void 0)};function YU(t,e){return t.tag===6||(t=Nt(t),e.observe(t)),!1}nn.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),Ba(this._fragmentFiber.child,!1,WU,t,void 0,void 0);for(var a=e=0;a<jn.length;a++){var n=jn[a];n.fragmentInstance===this&&n.observer===t?t.unobserve(n.instance):jn[e++]=n}jn.length=e}};function WU(t,e){return t.tag===6||(t=Nt(t),e.unobserve(t)),!1}var jn=[],hb=!1;function KU(t,e,a){jn.push({fragmentInstance:t,observer:e,instance:a}),hb||(hb=!0,sX(function(){hb=!1;var n=jn;jn=[];for(var r=0;r<n.length;r++){var i=n[r];i.observer.unobserve(i.instance)}}))}nn.prototype.getClientRects=function(){var t=[];return Ba(this._fragmentFiber.child,!1,JU,t,void 0,void 0),t};function JU(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}nn.prototype.getRootNode=function(t){var e=cs(this._fragmentFiber);return e===null?this:Nt(e).getRootNode(t)};nn.prototype.compareDocumentPosition=function(t){var e=cs(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];Ba(this._fragmentFiber.child,!1,bx,a,void 0,void 0);var n=Nt(e);if(a.length===0){if(a=n,JC(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 r=n=a.compareDocumentPosition(t);return a===t?r=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=Uk(e)[1],a===null?r=Node.DOCUMENT_POSITION_PRECEDING:(t=Nt(a).compareDocumentPosition(t),r=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=Nt(a[0]),r=Nt(a[a.length-1]);var i=JC(this._fragmentFiber)?e.parentElement:n;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=e.compareDocumentPosition(t),s=r.compareDocumentPosition(t),l=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=n&&i&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,e=n&&e===t||i&&r===t||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&e===t||!i&&r===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||eX(e,this._fragmentFiber,a[0],a[a.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function eX(t,e,a,n,r){var i=Vo(r);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=r.ownerDocument,r===i||r===i.documentElement||r===i.body;e:{for(i=e,e=cs(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=gb(a,i,ew),e===null?e=!1:(Ba(e,!0,R5,i,a),i=fl,fl=null,e=i!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!i)&&!(e=i===n)&&(e=gb(n,i,ew),e===null?e=!1:(Ba(e,!0,T5,i,n),i=fl,mb=fl=null,e=i!==null)),e):!1}function yk(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)}nn.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(P(566));var e=[];Ba(this._fragmentFiber.child,!1,bx,e,void 0,void 0);var a=t!==!1;if(e.length===0){var n=Uk(this._fragmentFiber);if(n=a?n[1]||n[0]||cs(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){t=Nt(n),yk(t,a);return}if(n=Nt(n),n.nodeType!==9){if(n.nodeType===11){a="host"in n?n.host:null,a!==null&&a.scrollIntoView(t);return}n.scrollIntoView(t)}}for(n=a?e.length-1:0;n!==(a?-1:e.length);){var r=e[n];r.tag===6?(r=Nt(r),yk(r,a)):Nt(r).scrollIntoView(t),n+=a?-1:1}};function tX(t,e){return t=Nt(t),S_(t,e),!1}function S_(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function y_(t,e){var a=e._eventListeners;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n];t.addEventListener(r.type,r.attachedListener,Ul(r.optionsOrUseCapture))}t.nodeType!==3&&(a=e._observers,a!==null&&a.forEach(function(i){for(var o=0,s=0;s<jn.length;s++){var l=jn[s];(l.fragmentInstance!==e||l.observer!==i||l.instance!==t)&&(jn[o++]=l)}jn.length=o,i.observe(t)}),S_(t,e))}function aX(t,e){var a=e._eventListeners;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n];t.removeEventListener(r.type,r.attachedListener,Ul(r.optionsOrUseCapture))}t.nodeType!==3&&(a=e._observers,a!==null&&a.forEach(function(i){typeof i.rootMargin=="string"?KU(e,i,t):i.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function S0(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":S0(a),Op(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function nX(t,e,a,n){for(;t.nodeType===1;){var r=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Vc])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!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=kn(t.nextSibling),t===null)break}return null}function rX(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=kn(t.nextSibling),t===null))return null;return t}function v_(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=kn(t.nextSibling),t===null))return null;return t}function y0(t){return t.data==="$?"||t.data==="$~"}function xx(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function iX(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var n=function(){e(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function kn(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 v0=null;function vk(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return kn(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Ck(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 oX(t,e){function a(){n=!0}if(t.ownerDocument.activeElement===t)return!0;var n=!1;try{t.ownerDocument.addEventListener("focus",a,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",a,!0)}return n}function sX(t){Ok(function(){Ok(function(e){return t(e)})})}function C_(t,e,a){switch(e=zc(a),t){case"html":if(t=e.documentElement,!t)throw Error(P(452));return t;case"head":if(t=e.head,!t)throw Error(P(453));return t;case"body":if(t=e.body,!t)throw Error(P(454));return t;default:throw Error(P(451))}}function w_(t,e,a){for(var n in a){var r=a[n];a.hasOwnProperty(n)&&r!=null&&je(t,e,n,null,QU,r)}a.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===vr&&(t.onclick=null),Op(t)}function pb(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Op(t)}var Ln=new Map,wk=new Set;function Uc(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 ui=qe.d;qe.d={f:lX,r:uX,D:cX,C:fX,L:dX,m:hX,X:mX,S:pX,M:gX};function lX(){var t=ui.f(),e=Tp();return t||e}function uX(t){var e=Hl(t);e!==null&&e.tag===5&&e.type==="form"?lE(e):ui.r(t)}var Wl=typeof document>"u"?null:document;function k_(t,e,a){var n=Wl;if(n&&typeof e=="string"&&e){var r=vn(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),wk.has(r)||(wk.add(r),t={rel:t,crossOrigin:a,href:e},n.querySelector(r)===null&&(e=n.createElement("link"),ia(e,"link",t),Gt(e),n.head.appendChild(e)))}}function cX(t){ui.D(t),k_("dns-prefetch",t,null)}function fX(t,e){ui.C(t,e),k_("preconnect",t,e)}function dX(t,e,a){ui.L(t,e,a);var n=Wl;if(n&&t&&e){var r='link[rel="preload"][as="'+vn(e)+'"]';e==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+vn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+vn(a.imageSizes)+'"]')):r+='[href="'+vn(t)+'"]';var i=r;switch(e){case"style":i=Xl(t);break;case"script":i=Kl(t)}if(!(Ln.has(i)||(t=at({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Ln.set(i,t),n.querySelector(r)!==null||e==="style"&&n.querySelector(tf(i))||e==="script"&&n.querySelector(af(i))))){var o=n.createElement("link");ia(o,"link",t),e==="style"&&(o[Fh]=!0,o.onload=o.onerror=function(){eL(o)}),Gt(o),n.head.appendChild(o)}}}function hX(t,e){ui.m(t,e);var a=Wl;if(a&&t){var n=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+vn(n)+'"][href="'+vn(t)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Kl(t)}if(!Ln.has(i)&&(t=at({rel:"modulepreload",href:t},e),Ln.set(i,t),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(af(i)))return}n=a.createElement("link"),ia(n,"link",t),Gt(n),a.head.appendChild(n)}}}function pX(t,e,a){ui.S(t,e,a);var n=Wl;if(n&&t){var r=Cl(n).hoistableStyles,i=Xl(t);e=e||"default";var o=r.get(i);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(tf(i)))s.loading=5;else{t=at({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Ln.get(i))&&Sx(t,a);var l=o=n.createElement("link");Gt(l),ia(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,Qh(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:s},r.set(i,o)}}}function mX(t,e){ui.X(t,e);var a=Wl;if(a&&t){var n=Cl(a).hoistableScripts,r=Kl(t),i=n.get(r);i||(i=a.querySelector(af(r)),i||(t=at({src:t,async:!0},e),(e=Ln.get(r))&&yx(t,e),i=a.createElement("script"),Gt(i),ia(i,"link",t),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}function gX(t,e){ui.M(t,e);var a=Wl;if(a&&t){var n=Cl(a).hoistableScripts,r=Kl(t),i=n.get(r);i||(i=a.querySelector(af(r)),i||(t=at({src:t,async:!0,type:"module"},e),(e=Ln.get(r))&&yx(t,e),i=a.createElement("script"),Gt(i),ia(i,"link",t),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}function kk(t,e,a,n){var r=(r=$i.current)?Uc(r):null;if(!r)throw Error(P(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Xl(a.href),e=Cl(r).hoistableStyles,n=e.get(a),n||(n={type:"style",instance:null,count:0,state:null},e.set(a,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Xl(a.href);var i=Cl(r).hoistableStyles,o=i.get(t);if(o||(r=r.ownerDocument||r,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=r.querySelector(tf(t)))?i._p||(o.instance=i,o.state.loading=5):(i=Ln.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},Ln.set(t,i)),OX(r,t,i,o.state))),e&&n===null)throw Error(P(528,""));return o}if(e&&n!==null)throw Error(P(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(a=Kl(a),e=Cl(r).hoistableScripts,n=e.get(a),n||(n={type:"script",instance:null,count:0,state:null},e.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(P(444,t))}}function Xl(t){return'href="'+vn(t)+'"'}function tf(t){return'link[rel="stylesheet"]['+t+"]"}function L_(t){return at({},t,{"data-precedence":t.precedence,precedence:null})}function OX(t,e,a,n){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Fh]!==!0){n.loading=1;return}}else e=t.createElement("link"),e[Fh]=!0,e.onload=e.onerror=eL.bind(null,e),ia(e,"link",a),Gt(e),t.head.appendChild(e);n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2})}function Kl(t){return'[src="'+vn(t)+'"]'}function af(t){return"script[async]"+t}function Lk(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+vn(a.href)+'"]');if(n)return e.instance=n,Gt(n),n;var r=at({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Gt(n),ia(n,"style",r),Qh(n,a.precedence,t),e.instance=n;case"stylesheet":r=Xl(a.href);var i=t.querySelector(tf(r));if(i)return e.state.loading|=4,e.instance=i,Gt(i),i;n=L_(a),(r=Ln.get(r))&&Sx(n,r),i=(t.ownerDocument||t).createElement("link"),Gt(i);var o=i;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),ia(i,"link",n),e.state.loading|=4,Qh(i,a.precedence,t),e.instance=i;case"script":return i=Kl(a.src),(r=t.querySelector(af(i)))?(e.instance=r,Gt(r),r):(n=a,(r=Ln.get(i))&&(n=at({},a),yx(n,r)),t=t.ownerDocument||t,r=t.createElement("script"),Gt(r),ia(r,"link",n),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(P(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Qh(n,a.precedence,t));return e.instance}function Qh(t,e,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,i=r,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===e)i=s;else if(i!==r)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Sx(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yx(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Nh=null;function Ek(t,e,a){if(Nh===null){var n=new Map,r=Nh=new Map;r.set(a,n)}else r=Nh,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(t))return n;for(n.set(t,null),a=a.getElementsByTagName(t),r=0;r<a.length;r++){var i=a[r];if(!(i[Vc]||i[ta]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var s=n.get(o);s?s.push(i):n.set(o,[i])}}return n}function C0(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function bX(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 _k(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function E_(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function __(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Ak(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=__(e),t.suspenseyImages.push(e)),t=yX.bind(t),e.decode().then(t,t))}function xX(t,e,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Xl(n.href),i=e.querySelector(tf(r));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Xc.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=i,Gt(i);return}i=e.ownerDocument||e,n=L_(n),(r=Ln.get(r))&&Sx(n,r),i=i.createElement("link"),Gt(i);var o=i;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),ia(i,"link",n),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=Xc.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var $h=0;function SX(t,e){return t.stylesheets&&t.count===0&&Bh(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var n=setTimeout(function(){if(t.stylesheets&&Bh(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&$h===0&&($h=62500*$U());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bh(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>$h?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function A_(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Bh(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function Xc(){this.count--,A_(this)}function yX(){this.imgCount--,A_(this)}var pp=null;function Bh(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,pp=new Map,e.forEach(vX,t),pp=null,Xc.call(t))}function vX(t,e){if(!(e.state.loading&4)){var a=pp.get(t);if(a)var n=a.get(null);else{a=new Map,pp.set(t,a);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var o=r[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),n=o)}n&&a.set(null,n)}r=e.instance,o=r.getAttribute("data-precedence"),i=a.get(o)||n,i===n&&a.set(null,r),a.set(o,r),this.count++,n=Xc.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),i?i.parentNode.insertBefore(r,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var ql={$$typeof:yr,Provider:null,Consumer:null,_currentValue:Wo,_currentValue2:Wo,_threadCount:0};function CX(t,e,a,n,r,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=XO(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=XO(0),this.hiddenUpdates=XO(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function R_(t,e,a,n,r,i,o,s,l,u,c,f){return t=new CX(t,e,a,o,l,u,c,f,s),e=1,i===!0&&(e|=24),i=Na(3,null,null,e),t.current=i,i.stateNode=t,e=U0(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:a,cache:e},Z0(i),t}function T_(t){return t?(t=xl,t):xl}function I_(t,e,a,n,r,i){r=T_(r),n.context===null?n.context=r:n.pendingContext=r,n=zi(e),n.payload={element:a},i=i===void 0?null:i,i!==null&&(n.callback=i),a=Ui(t,n,e),a!==null&&($a(a,t,e),Sc(a,t,e))}function Rk(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function vx(t,e){Rk(t,e),(t=t.alternate)&&Rk(t,e)}function P_(t){if(t.tag===13||t.tag===31){var e=hs(t,67108864);e!==null&&$a(e,t,67108864),vx(t,67108864)}}function Tk(t){if(t.tag===13||t.tag===31){var e=tn();e=A0(e);var a=hs(t,e);a!==null&&$a(a,t,e),vx(t,e)}}var Zl=!0;function wX(t,e,a,n){var r=Oe.T;Oe.T=null;var i=qe.p;try{qe.p=2,Cx(t,e,a,n)}finally{qe.p=i,Oe.T=r}}function kX(t,e,a,n){var r=Oe.T;Oe.T=null;var i=qe.p;try{qe.p=8,Cx(t,e,a,n)}finally{qe.p=i,Oe.T=r}}function Cx(t,e,a,n){if(Zl){var r=w0(n);if(r===null)fb(t,e,n,mp,a),Ik(t,n);else if(EX(r,t,e,a,n))n.stopPropagation();else if(Ik(t,n),e&4&&-1<LX.indexOf(t)){for(;r!==null;){var i=Hl(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Go(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-en(o);s.entanglements[1]|=l,o&=~l}Ar(i),(Xe&6)===0&&(up=Ka()+500,ef(0,!1))}}break;case 31:case 13:s=hs(i,2),s!==null&&$a(s,i,2),Tp(),vx(i,2)}if(i=w0(n),i===null&&fb(t,e,n,mp,a),i===r)break;r=i}r!==null&&n.stopPropagation()}else fb(t,e,n,null,a)}}function w0(t){return t=I0(t),wx(t)}var mp=null;function wx(t){if(mp=null,t=Vo(t),t!==null){var e=Fc(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=$k(e),t!==null)return t;t=null}else if(a===31){if(t=Bk(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 mp=t,null}function M_(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(z5()){case Fk:return 2;case Gk:return 8;case Zh:case U5:return 32;case Hk:return 268435456;default:return 32}default:return 32}}var k0=!1,Fi=null,Gi=null,Hi=null,qc=new Map,Zc=new Map,Ti=[],LX="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 Ik(t,e){switch(t){case"focusin":case"focusout":Fi=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":Hi=null;break;case"pointerover":case"pointerout":qc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zc.delete(e.pointerId)}}function uc(t,e,a,n,r,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:a,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]},e!==null&&(e=Hl(e),e!==null&&P_(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function EX(t,e,a,n,r){switch(e){case"focusin":return Fi=uc(Fi,t,e,a,n,r),!0;case"dragenter":return Gi=uc(Gi,t,e,a,n,r),!0;case"mouseover":return Hi=uc(Hi,t,e,a,n,r),!0;case"pointerover":var i=r.pointerId;return qc.set(i,uc(qc.get(i)||null,t,e,a,n,r)),!0;case"gotpointercapture":return i=r.pointerId,Zc.set(i,uc(Zc.get(i)||null,t,e,a,n,r)),!0}return!1}function D_(t){var e=Vo(t.target);if(e!==null){var a=Fc(e);if(a!==null){if(e=a.tag,e===13){if(e=$k(a),e!==null){t.blockedOn=e,rw(t.priority,function(){Tk(a)});return}}else if(e===31){if(e=Bk(a),e!==null){t.blockedOn=e,rw(t.priority,function(){Tk(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 zh(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=w0(t.nativeEvent);if(a===null){a=t.nativeEvent;var n=new a.constructor(a.type,a);_b=n,a.target.dispatchEvent(n),_b=null}else return e=Hl(a),e!==null&&P_(e),t.blockedOn=a,!1;e.shift()}return!0}function Pk(t,e,a){zh(t)&&a.delete(e)}function _X(){k0=!1,Fi!==null&&zh(Fi)&&(Fi=null),Gi!==null&&zh(Gi)&&(Gi=null),Hi!==null&&zh(Hi)&&(Hi=null),qc.forEach(Pk),Zc.forEach(Pk)}function Sh(t,e){t.blockedOn===e&&(t.blockedOn=null,k0||(k0=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,_X)))}var yh=null;function Mk(t){yh!==t&&(yh=t,$t.unstable_scheduleCallback($t.unstable_NormalPriority,function(){yh===t&&(yh=null);for(var e=0;e<t.length;e+=3){var a=t[e],n=t[e+1],r=t[e+2];if(typeof n!="function"){if(wx(n||a)===null)continue;break}var i=Hl(a);i!==null&&(t.splice(e,3),e-=3,Zb(i,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function Fl(t){function e(l){return Sh(l,t)}Fi!==null&&Sh(Fi,t),Gi!==null&&Sh(Gi,t),Hi!==null&&Sh(Hi,t),qc.forEach(e),Zc.forEach(e);for(var a=0;a<Ti.length;a++){var n=Ti[a];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Ti.length&&(a=Ti[0],a.blockedOn===null);)D_(a),a.blockedOn===null&&Ti.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],i=a[n+1],o=r[za]||null;if(typeof i=="function")o||Mk(a);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(r=i,o=i[za]||null)s=o.formAction;else if(wx(r)!==null)continue}else s=o.action;typeof s=="function"?a[n+1]=s:(a.splice(n,3),n-=3),Mk(a)}}}function Q_(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return r=o})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!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 n=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function kx(t){this._internalRoot=t}Mp.prototype.render=kx.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(P(409));var a=e.current,n=tn();I_(a,n,t,e,null,null)};Mp.prototype.unmount=kx.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;I_(t.current,2,null,t,null,null),Tp(),e[Gl]=null}};function Mp(t){this._internalRoot=t}Mp.prototype.unstable_scheduleHydration=function(t){if(t){var e=Jk();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Ti.length&&e!==0&&e<Ti[a].priority;a++);Ti.splice(a,0,t),a===0&&D_(t)}};var Dk=Qk.version;if(Dk!=="19.3.1")throw Error(P(527,Dk,"19.3.1"));qe.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(P(188)):(t=Object.keys(t).join(","),Error(P(268,t)));return t=A5(e),t=t!==null?zk(t):null,t=t===null?null:t.stateNode,t};var AX={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:Oe,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(cc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!cc.isDisabled&&cc.supportsFiber))try{Gc=cc.inject(AX),Ja=cc}catch{}var cc;Dp.createRoot=function(t,e){if(!Nk(t))throw Error(P(299));var a=!1,n="",r=gE,i=OE,o=bE;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=R_(t,1,!1,null,null,a,n,null,r,i,o,Q_),t[Gl]=e.current,gx(t),new kx(e)};Dp.hydrateRoot=function(t,e,a){if(!Nk(t))throw Error(P(299));var n=!1,r="",i=gE,o=OE,s=bE,l=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=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=R_(t,1,!0,e,a??null,n,r,l,i,o,s,Q_),e.context=T_(null),a=e.current,n=tn(),n=A0(n),r=zi(n),r.callback=null,Ui(a,r,n),a=n,e.current.lanes=a,jc(e,a),Ar(e),t[Gl]=e.current,gx(t),new Mp(e)};Dp.version="19.3.1"});var z_=ge((KK,B_)=>{"use strict";function $_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($_)}catch(t){console.error(t)}}$_(),B_.exports=N_()});var X_=ge(Qp=>{"use strict";var RX=Symbol.for("react.transitional.element"),TX=Symbol.for("react.fragment");function U_(t,e,a){var n=null;if(a!==void 0&&(n=""+a),e.key!==void 0&&(n=""+e.key),"key"in e){a={};for(var r in e)r!=="key"&&(a[r]=e[r])}else a=e;return e=a.ref,{$$typeof:RX,type:t,key:n,ref:e!==void 0?e:null,props:a}}Qp.Fragment=TX;Qp.jsx=U_;Qp.jsxs=U_});var ue=ge((eJ,q_)=>{"use strict";q_.exports=X_()});var DI=ge((mne,MI)=>{function vI(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{let a=t[e],n=typeof a;(n==="object"||n==="function")&&!Object.isFrozen(a)&&vI(a)}),t}var fm=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function CI(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Oo(t,...e){let a=Object.create(null);for(let n in t)a[n]=t[n];return e.forEach(function(n){for(let r in n)a[r]=n[r]}),a}var j4="</span>",gI=t=>!!t.scope,V4=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){let a=t.split(".");return[`${e}${a.shift()}`,...a.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${e}${t}`},bS=class{constructor(e,a){this.buffer="",this.classPrefix=a.classPrefix,e.walk(this)}addText(e){this.buffer+=CI(e)}openNode(e){if(!gI(e))return;let a=V4(e.scope,{prefix:this.classPrefix});this.span(a)}closeNode(e){gI(e)&&(this.buffer+=j4)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},OI=(t={})=>{let e={children:[]};return Object.assign(e,t),e},xS=class t{constructor(){this.rootNode=OI(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let a=OI({scope:e});this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,a){return typeof a=="string"?e.addText(a):a.children&&(e.openNode(a),a.children.forEach(n=>this._walk(e,n)),e.closeNode(a)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(a=>typeof a=="string")?e.children=[e.children.join("")]:e.children.forEach(a=>{t._collapse(a)}))}},SS=class extends xS{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,a){let n=e.root;a&&(n.scope=`language:${a}`),this.add(n)}toHTML(){return new bS(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function Xf(t){return t?typeof t=="string"?t:t.source:null}function wI(t){return Cs("(?=",t,")")}function Y4(t){return Cs("(?:",t,")*")}function W4(t){return Cs("(?:",t,")?")}function Cs(...t){return t.map(a=>Xf(a)).join("")}function K4(t){let e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function hm(...t){return"("+(K4(t).capture?"":"?:")+t.map(n=>Xf(n)).join("|")+")"}function kI(t){return new RegExp(t.toString()+"|").exec("").length-1}function J4(t,e){let a=t&&t.exec(e);return a&&a.index===0}var e9=new RegExp(hm(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function vS(t,{joinWith:e}){let a=0;return t.map(n=>{a+=1;let r=a,i=Xf(n),o="";for(;i.length>0;){let s=e9.exec(i);if(!s){o+=i;break}o+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+r):(o+=s[0],(s[0]==="("||/^\(\?[<']/.test(s[0]))&&a++)}return o}).map(n=>`(${n})`).join(e)}var t9=/\b\B/,LI="[a-zA-Z]\\w*",CS="[a-zA-Z_]\\w*",EI="\\b\\d+(\\.\\d+)?",_I="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",AI="\\b(0b[01]+)",a9="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",n9=(t={})=>{let e=/^#![ ]*\//;return t.binary&&(t.begin=Cs(e,/.*\b/,t.binary,/\b.*/)),Oo({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(a,n)=>{a.index!==0&&n.ignoreMatch()}},t)},qf={begin:"\\\\[\\s\\S]",relevance:0},r9={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[qf]},i9={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[qf]},o9={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},pm=function(t,e,a={}){let n=Oo({scope:"comment",begin:t,end:e,contains:[]},a);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let r=hm("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:Cs(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},s9=pm("//","$"),l9=pm("/\\*","\\*/"),u9=pm("#","$"),c9={scope:"number",begin:EI,relevance:0},f9={scope:"number",begin:_I,relevance:0},d9={scope:"number",begin:AI,relevance:0},h9={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[qf,{begin:/\[/,end:/\]/,relevance:0,contains:[qf]}]},p9={scope:"title",begin:LI,relevance:0},m9={scope:"title",begin:CS,relevance:0},g9={begin:"\\.\\s*"+CS,relevance:0},O9=function(t){return Object.assign(t,{"on:begin":(e,a)=>{a.data._beginMatch=e[1]},"on:end":(e,a)=>{a.data._beginMatch!==e[1]&&a.ignoreMatch()}})},cm=Object.freeze({__proto__:null,APOS_STRING_MODE:r9,BACKSLASH_ESCAPE:qf,BINARY_NUMBER_MODE:d9,BINARY_NUMBER_RE:AI,COMMENT:pm,C_BLOCK_COMMENT_MODE:l9,C_LINE_COMMENT_MODE:s9,C_NUMBER_MODE:f9,C_NUMBER_RE:_I,END_SAME_AS_BEGIN:O9,HASH_COMMENT_MODE:u9,IDENT_RE:LI,MATCH_NOTHING_RE:t9,METHOD_GUARD:g9,NUMBER_MODE:c9,NUMBER_RE:EI,PHRASAL_WORDS_MODE:o9,QUOTE_STRING_MODE:i9,REGEXP_MODE:h9,RE_STARTERS_RE:a9,SHEBANG:n9,TITLE_MODE:p9,UNDERSCORE_IDENT_RE:CS,UNDERSCORE_TITLE_MODE:m9});function b9(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function x9(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function S9(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=b9,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function y9(t,e){Array.isArray(t.illegal)&&(t.illegal=hm(...t.illegal))}function v9(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function C9(t,e){t.relevance===void 0&&(t.relevance=1)}var w9=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");let a=Object.assign({},t);Object.keys(t).forEach(n=>{delete t[n]}),t.keywords=a.keywords,t.begin=Cs(a.beforeMatch,wI(a.begin)),t.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},t.relevance=0,delete a.beforeMatch},k9=["of","and","for","in","not","or","if","then","parent","list","value"],L9="keyword";function RI(t,e,a=L9){let n=Object.create(null);return typeof t=="string"?r(a,t.split(" ")):Array.isArray(t)?r(a,t):Object.keys(t).forEach(function(i){Object.assign(n,RI(t[i],e,i))}),n;function r(i,o){e&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){let l=s.split("|");n[l[0]]=[i,E9(l[0],l[1])]})}}function E9(t,e){return e?Number(e):_9(t)?0:1}function _9(t){return k9.includes(t.toLowerCase())}var bI={},vs=t=>{console.error(t)},xI=(t,...e)=>{console.log(`WARN: ${t}`,...e)},lu=(t,e)=>{bI[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),bI[`${t}/${e}`]=!0)},dm=new Error;function TI(t,e,{key:a}){let n=0,r=t[a],i={},o={};for(let s=1;s<=e.length;s++)o[s+n]=r[s],i[s+n]=!0,n+=kI(e[s-1]);t[a]=o,t[a]._emit=i,t[a]._multi=!0}function A9(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw vs("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),dm;if(typeof t.beginScope!="object"||t.beginScope===null)throw vs("beginScope must be object"),dm;TI(t,t.begin,{key:"beginScope"}),t.begin=vS(t.begin,{joinWith:""})}}function R9(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw vs("skip, excludeEnd, returnEnd not compatible with endScope: {}"),dm;if(typeof t.endScope!="object"||t.endScope===null)throw vs("endScope must be object"),dm;TI(t,t.end,{key:"endScope"}),t.end=vS(t.end,{joinWith:""})}}function T9(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function I9(t){T9(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),A9(t),R9(t)}function P9(t){function e(o,s){return new RegExp(Xf(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=kI(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(l=>l[1]);this.matcherRe=e(vS(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let l=this.matcherRe.exec(s);if(!l)return null;let u=l.findIndex((f,d)=>d>0&&f!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let l=new a;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){let l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){let c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function r(o){let s=new n;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function i(o,s){let l=o;if(o.isCompiled)return l;[x9,v9,I9,w9].forEach(c=>c(o,s)),t.compilerExtensions.forEach(c=>c(o,s)),o.__beforeBegin=null,[S9,y9,C9].forEach(c=>c(o,s)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=RI(o.keywords,t.case_insensitive)),l.keywordPatternRe=e(u,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=Xf(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return M9(c==="self"?o:c)})),o.contains.forEach(function(c){i(c,l)}),o.starts&&i(o.starts,s),l.matcher=r(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=Oo(t.classNameAliases||{}),i(t)}function II(t){return t?t.endsWithParent||II(t.starts):!1}function M9(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return Oo(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:II(t)?Oo(t,{starts:t.starts?Oo(t.starts):null}):Object.isFrozen(t)?Oo(t):t}var D9="11.12.0",yS=class extends Error{constructor(e,a){super(e),this.name="HTMLInjectionError",this.html=a}},OS=CI,SI=Oo,yI=Symbol("nomatch"),Q9=7,PI=function(t){let e=Object.create(null),a=Object.create(null),n=[],r=!0,i="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:SS};function l(_){return s.noHighlightRe.test(_)}function u(_){let D=_.className+" ";D+=_.parentNode?_.parentNode.className:"";let N=s.languageDetectRe.exec(D);if(N){let X=k(N[1]);return X||(xI(i.replace("{}",N[1])),xI("Falling back to no-highlight mode for this block.",_)),X?N[1]:"no-highlight"}return D.split(/\s+/).find(X=>l(X)||k(X))}function c(_,D,N){let X="",T="";typeof D=="object"?(X=_,N=D.ignoreIllegals,T=D.language):(lu("10.7.0","highlight(lang, code, ...args) has been deprecated."),lu("10.7.0",`Please use highlight(code, options) instead.
|
|
11
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),T=_,X=D),N===void 0&&(N=!0);let ae={code:X,language:T};Q("before:highlight",ae);let le=ae.result?ae.result:f(ae.language,ae.code,N);return le.code=ae.code,Q("after:highlight",le),le}function f(_,D,N,X){let T=Object.create(null);function ae(H,oe){return H.keywords[oe]}function le(){if(!te.keywords){Dt.addText($e);return}let H=0;te.keywordPatternRe.lastIndex=0;let oe=te.keywordPatternRe.exec($e),ke="";for(;oe;){ke+=$e.substring(H,oe.index);let Ge=qt.case_insensitive?oe[0].toLowerCase():oe[0],da=ae(te,Ge);if(da){let[Hr,Kz]=da;if(Dt.addText(ke),ke="",T[Ge]=(T[Ge]||0)+1,T[Ge]<=Q9&&(qo+=Kz),Hr.startsWith("_"))ke+=oe[0];else{let Jz=qt.classNameAliases[Hr]||Hr;Z(oe[0],Jz)}}else ke+=oe[0];H=te.keywordPatternRe.lastIndex,oe=te.keywordPatternRe.exec($e)}ke+=$e.substring(H),Dt.addText(ke)}function $(){if($e==="")return;let H=null;if(typeof te.subLanguage=="string"){if(!e[te.subLanguage]){Dt.addText($e);return}H=f(te.subLanguage,$e,!0,Xo[te.subLanguage]),Xo[te.subLanguage]=H._top}else H=h($e,te.subLanguage.length?te.subLanguage:null);te.relevance>0&&(qo+=H.relevance),Dt.__addSublanguage(H._emitter,H.language)}function Y(){te.subLanguage!=null?$():le(),$e=""}function Z(H,oe){H!==""&&(Dt.startScope(oe),Dt.addText(H),Dt.endScope())}function j(H,oe){let ke=1,Ge=oe.length-1;for(;ke<=Ge;){if(!H._emit[ke]){ke++;continue}let da=qt.classNameAliases[H[ke]]||H[ke],Hr=oe[ke];da?Z(Hr,da):($e=Hr,le(),$e=""),ke++}}function W(H,oe){return H.scope&&typeof H.scope=="string"&&Dt.openNode(qt.classNameAliases[H.scope]||H.scope),H.beginScope&&(H.beginScope._wrap?(Z($e,qt.classNameAliases[H.beginScope._wrap]||H.beginScope._wrap),$e=""):H.beginScope._multi&&(j(H.beginScope,oe),$e="")),te=Object.create(H,{parent:{value:te}}),te}function pe(H,oe,ke){let Ge=J4(H.endRe,ke);if(Ge){if(H["on:end"]){let da=new fm(H);H["on:end"](oe,da),da.isMatchIgnored&&(Ge=!1)}if(Ge){for(;H.endsParent&&H.parent;)H=H.parent;return H}}if(H.endsWithParent)return pe(H.parent,oe,ke)}function fe(H){return te.matcher.regexIndex===0?($e+=H[0],1):(SO=!0,0)}function et(H){let oe=H[0],ke=H.rule,Ge=new fm(ke),da=[ke.__beforeBegin,ke["on:begin"]];for(let Hr of da)if(Hr&&(Hr(H,Ge),Ge.isMatchIgnored))return fe(oe);return ke.skip?$e+=oe:(ke.excludeBegin&&($e+=oe),Y(),!ke.returnBegin&&!ke.excludeBegin&&($e=oe)),W(ke,H),ke.returnBegin?0:oe.length}function Pt(H){let oe=H[0],ke=D.substring(H.index),Ge=pe(te,H,ke);if(!Ge)return yI;let da=te;te.endScope&&te.endScope._wrap?(Y(),Z(oe,te.endScope._wrap)):te.endScope&&te.endScope._multi?(Y(),j(te.endScope,H)):da.skip?$e+=oe:(da.returnEnd||da.excludeEnd||($e+=oe),Y(),da.excludeEnd&&($e=oe));do te.scope&&Dt.closeNode(),!te.skip&&!te.subLanguage&&(qo+=te.relevance),te=te.parent;while(te!==Ge.parent);return Ge.starts&&W(Ge.starts,H),da.returnEnd?0:oe.length}function Mt(){let H=[];for(let oe=te;oe!==qt;oe=oe.parent)oe.scope&&H.unshift(oe.scope);H.forEach(oe=>Dt.openNode(oe))}let Qe={};function vt(H,oe){let ke=oe&&oe[0];if($e+=H,ke==null)return Y(),0;if(Qe.type==="begin"&&oe.type==="end"&&Qe.index===oe.index&&ke===""){if($e+=D.slice(oe.index,oe.index+1),!r){let Ge=new Error(`0 width match regex (${_})`);throw Ge.languageName=_,Ge.badRule=Qe.rule,Ge}return 1}if(Qe=oe,oe.type==="begin")return et(oe);if(oe.type==="illegal"&&!N){let Ge=new Error('Illegal lexeme "'+ke+'" for mode "'+(te.scope||"<unnamed>")+'"');throw Ge.mode=te,Ge}else if(oe.type==="end"){let Ge=Pt(oe);if(Ge!==yI)return Ge}if(oe.type==="illegal"&&ke==="")return oe.index===D.length||($e+=`
|
|
12
|
+
`),1;if(xO>1e5&&xO>oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return $e+=ke,ke.length}let qt=k(_);if(!qt)throw vs(i.replace("{}",_)),new Error('Unknown language: "'+_+'"');let Ne=P9(qt),gn="",te=X||Ne,Xo={},Dt=new s.__emitter(s);Mt();let $e="",qo=0,Gr=0,xO=0,SO=!1;try{if(qt.__emitTokens)qt.__emitTokens(D,Dt);else{for(te.matcher.considerAll();;){xO++,SO?SO=!1:te.matcher.considerAll(),te.matcher.lastIndex=Gr;let H=te.matcher.exec(D);if(!H)break;let oe=D.substring(Gr,H.index),ke=vt(oe,H);Gr=H.index+ke}vt(D.substring(Gr))}return Dt.finalize(),gn=Dt.toHTML(),{language:_,value:gn,relevance:qo,illegal:!1,_emitter:Dt,_top:te}}catch(H){if(H.message&&H.message.includes("Illegal"))return{language:_,value:OS(D),illegal:!0,relevance:0,_illegalBy:{message:H.message,index:Gr,context:D.slice(Gr-100,Gr+100),mode:H.mode,resultSoFar:gn},_emitter:Dt};if(r)return{language:_,value:OS(D),illegal:!1,relevance:0,errorRaised:H,_emitter:Dt,_top:te};throw H}}function d(_){let D={value:OS(_),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return D._emitter.addText(_),D}function h(_,D){D=D||s.languages||Object.keys(e);let N=d(_),X=D.filter(k).filter(E).map(Y=>f(Y,_,!1));X.unshift(N);let T=X.sort((Y,Z)=>{if(Y.relevance!==Z.relevance)return Z.relevance-Y.relevance;if(Y.language&&Z.language){if(k(Y.language).supersetOf===Z.language)return 1;if(k(Z.language).supersetOf===Y.language)return-1}return 0}),[ae,le]=T,$=ae;return $.secondBest=le,$}function p(_,D,N){let X=D&&a[D]||N;_.classList.add("hljs"),_.classList.add(`language-${X}`)}function m(_){let D=null,N=u(_);if(l(N))return;if(Q("before:highlightElement",{el:_,language:N}),_.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",_);return}if(_.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(_)),s.throwUnescapedHTML))throw new yS("One of your code blocks includes unescaped HTML.",_.innerHTML);D=_;let X=D.textContent,T=N?c(X,{language:N,ignoreIllegals:!0}):h(X);_.innerHTML=T.value,_.dataset.highlighted="yes",p(_,N,T.language),_.result={language:T.language,re:T.relevance,relevance:T.relevance},T.secondBest&&(_.secondBest={language:T.secondBest.language,relevance:T.secondBest.relevance}),Q("after:highlightElement",{el:_,result:T,text:X})}function b(_){s=SI(s,_)}let g=()=>{S(),lu("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function O(){S(),lu("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let x=!1;function S(){function _(){S()}if(document.readyState==="loading"){x||window.addEventListener("DOMContentLoaded",_,!1),x=!0;return}document.querySelectorAll(s.cssSelector).forEach(m)}function y(_,D){let N=null;try{N=D(t)}catch(X){if(vs("Language definition for '{}' could not be registered.".replace("{}",_)),r)vs(X);else throw X;N=o}N.name||(N.name=_),e[_]=N,N.rawDefinition=D.bind(null,t),N.aliases&&L(N.aliases,{languageName:_})}function v(_){delete e[_];for(let D of Object.keys(a))a[D]===_&&delete a[D]}function C(){return Object.keys(e)}function k(_){return _=(_||"").toLowerCase(),e[_]||e[a[_]]}function L(_,{languageName:D}){typeof _=="string"&&(_=[_]),_.forEach(N=>{a[N.toLowerCase()]=D})}function E(_){let D=k(_);return D&&!D.disableAutodetect}function A(_){_["before:highlightBlock"]&&!_["before:highlightElement"]&&(_["before:highlightElement"]=D=>{_["before:highlightBlock"](Object.assign({block:D.el},D))}),_["after:highlightBlock"]&&!_["after:highlightElement"]&&(_["after:highlightElement"]=D=>{_["after:highlightBlock"](Object.assign({block:D.el},D))})}function R(_){A(_),n.push(_)}function U(_){let D=n.indexOf(_);D!==-1&&n.splice(D,1)}function Q(_,D){let N=_;n.forEach(function(X){X[N]&&X[N](D)})}function M(_){return lu("10.7.0","highlightBlock will be removed entirely in v12.0"),lu("10.7.0","Please use highlightElement now."),m(_)}Object.assign(t,{highlight:c,highlightAuto:h,highlightAll:S,highlightElement:m,highlightBlock:M,configure:b,initHighlighting:g,initHighlightingOnLoad:O,registerLanguage:y,unregisterLanguage:v,listLanguages:C,getLanguage:k,registerAliases:L,autoDetection:E,inherit:SI,addPlugin:R,removePlugin:U}),t.debugMode=function(){r=!1},t.safeMode=function(){r=!0},t.versionString=D9,t.regex={concat:Cs,lookahead:wI,either:hm,optional:W4,anyNumberOfTimes:Y4};for(let _ in cm)typeof cm[_]=="object"&&vI(cm[_]);return Object.assign(t,cm),t},uu=PI({});uu.newInstance=()=>PI({});MI.exports=uu;uu.HighlightJS=uu;uu.default=uu});var NI=ge((gne,QI)=>{function N9(t){let e=t.regex,a=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(i,{begin:/\(/,end:/\)/}),s=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,l,s]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(a,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}QI.exports=N9});var BI=ge((One,$I)=>{function $9(t){let e=t.regex,a={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});let r={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},i=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,r]};r.contains.push(s);let l={match:/\\"/},u={className:"string",begin:/'/,end:/'/},c={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=t.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],g={match:/(\/[a-z._-]+)+/},O=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],x=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],S=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:b,built_in:[...O,...x,"set","shopt",...S,...y]},contains:[h,t.SHEBANG(),p,f,i,o,g,s,l,u,c,a]}}$I.exports=$9});var UI=ge((bne,zI)=>{function B9(t){let e=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="("+n+"|"+e.optional(r)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",s=e.concat(/\batomic_/,e.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:s}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},f={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},c,{scope:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(c,{className:"string"}),a,t.C_BLOCK_COMMENT_MODE]},p=[d,h],m={className:"title",begin:e.optional(r)+t.IDENT_RE,relevance:0},b=e.optional(r)+t.IDENT_RE+"\\s*\\(",g=12,S={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[...p,l,a,t.C_BLOCK_COMMENT_MODE,f,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:y.concat([{begin:/\(/,end:/\)/,keywords:S,contains:y.concat(["self"]),relevance:0}]),relevance:0},C={begin:"("+o+"[\\*&\\s]+){1,"+g+"}"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:S,relevance:0},{begin:b,returnBegin:!0,contains:[t.inherit(m,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,c,f,l,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,c,f,l]}]},l,a,t.C_BLOCK_COMMENT_MODE,...p]};return{name:"C",aliases:["h"],keywords:S,disableAutodetect:!0,illegal:"</",contains:[].concat(v,C,y,[...p,{begin:t.IDENT_RE+"::",keywords:S},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:h,strings:c,keywords:S}}}zI.exports=B9});var qI=ge((xne,XI)=>{function z9(t){let e=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+e.optional(r)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},c={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},u,{scope:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),a,t.C_BLOCK_COMMENT_MODE]},h=[f,d],p={className:"title",begin:e.optional(r)+t.IDENT_RE,relevance:0},m=e.optional(r)+t.IDENT_RE+"\\s*\\(",b=12,g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],O=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:O,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},k={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:e.concat(/\b/,`(?!${g.join("|")})`,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},L=[k,...h,s,a,t.C_BLOCK_COMMENT_MODE,c,u],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:L.concat([{begin:/\(/,end:/\)/,keywords:C,contains:L.concat(["self"]),relevance:0}]),relevance:0},A={className:"function",begin:"("+o+"[\\*&\\s]+){1,"+b+"}"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:C,relevance:0},{begin:m,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,a,t.C_BLOCK_COMMENT_MODE,...h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(E,A,k,L,[...h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",s]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}XI.exports=z9});var FI=ge((Sne,ZI)=>{function U9(t){let e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],r=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],i=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:r.concat(i),built_in:e,literal:n},s=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l="\\d(_*\\d)*",u="([uU][lL]?|[lL][uU]?)?",f={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+u},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+u},{begin:"(-?)(\\b"+l+"(\\.("+l+")?)?|\\."+l+")([eE][-+]?"+l+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},d={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},h={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=t.inherit(h,{illegal:/\n/}),m={className:"subst",begin:/\{/,end:/\}/,keywords:o},b=t.inherit(m,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,b]},O={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]},x=t.inherit(O,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]});m.contains=[O,g,h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],b.contains=[x,g,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let S={variants:[d,O,g,h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},v=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+v+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[S,f,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},C]}}ZI.exports=U9});var HI=ge((yne,GI)=>{var X9=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),q9=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Z9=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],F9=[...q9,...Z9],G9=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),H9=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),j9=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),V9=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Y9(t){let e=t.regex,a=X9(t),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",i=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[a.BLOCK_COMMENT,n,a.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+H9.join("|")+")"},{begin:":(:)?("+j9.join("|")+")"}]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+V9.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[a.BLOCK_COMMENT,a.HEXCOLOR,a.IMPORTANT,a.CSS_NUMBER_MODE,a.UNICODE_RANGE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},a.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:G9.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,a.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+F9.join("|")+")\\b"}]}}GI.exports=Y9});var VI=ge((vne,jI)=>{function W9(t){let e=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},r={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=t.inherit(u,{contains:[]}),d=t.inherit(c,{contains:[]});u.contains.push(d),c.contains.push(f);let h=[a,l];return[u,c,f,d].forEach(g=>{g.contains=g.contains.concat(h)}),h=h.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},a,i,n,u,c,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},r,l,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}jI.exports=W9});var WI=ge((Cne,YI)=>{function K9(t){let e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}YI.exports=K9});var JI=ge((wne,KI)=>{function J9(t){let e=t.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=e.concat(n,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[t.COMMENT("#","$",{contains:[s]}),t.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},f={className:"string",contains:[t.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,c]})]}]},d="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},v=[f,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:o},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:a}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,u),relevance:0}].concat(l,u);c.contains=v,m.contains=v;let E=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:v}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(E).concat(u).concat(v)}}KI.exports=J9});var tP=ge((kne,eP)=>{function eG(t){let i={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:i,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,illegal:/["']/}]}]}}eP.exports=eG});var nP=ge((Lne,aP)=>{function tG(t){let e=t.regex,a=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:e.concat(a,e.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}aP.exports=tG});var iP=ge((Ene,rP)=>{function aG(t){let e=t.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},n=t.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[n,i,r,o,a,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,c=/'[^']*'/,f=e.either(l,u,c),d=e.concat(f,"(\\s*\\.\\s*",f,")*",e.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:d,className:"attr",starts:{end:/$/,contains:[n,s,i,r,o,a]}}]}}rP.exports=aG});var uP=ge((_ne,lP)=>{var cu="[0-9](_*[0-9])*",mm=`\\.(${cu})`,gm="[0-9a-fA-F](_*[0-9a-fA-F])*",oP={className:"number",variants:[{begin:`(\\b(${cu})((${mm})|\\.)?|(${mm}))[eE][+-]?(${cu})[fFdD]?\\b`},{begin:`\\b(${cu})((${mm})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${mm})[fFdD]?\\b`},{begin:`\\b(${cu})[fFdD]\\b`},{begin:`\\b0[xX]((${gm})\\.?|(${gm})?\\.(${gm}))[pP][+-]?(${cu})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${gm})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function sP(t,e,a){return a===-1?"":t.replace(e,n=>sP(t,e,a-1))}function nG(t){let e=t.regex,a="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",n="(?:(?:\\s*\\[\\s*])+)?",r=a+"<@@@>"+n,o="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+r+")?")+"|"+r+")",s=sP("(?:\\s*<\\s*"+o+"(?:\\s*,\\s*"+o+")*\\s*>)?",/<@@@>/g,2),d={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},p={className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:d,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[a,e.concat(s,n,/\s+/),a,n,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,a],className:{1:"keyword",3:"title.class"},contains:[p,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{begin:[a,e.concat(s,n,/\s+/),a,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:d,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,oP,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},oP,h]}}lP.exports=nG});var mP=ge((Ane,pP)=>{var cP="[A-Za-z$_][0-9A-Za-z$_]*",rG=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],iG=["true","false","null","undefined","NaN","Infinity"],fP=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],dP=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],hP=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],oG=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],sG=[].concat(hP,fP,dP);function lG(t){let e=t.regex,a=(N,{after:X})=>{let T="</"+N[0].slice(1);return N.input.indexOf(T,X)!==-1},n=cP,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,X)=>{let T=N[0].length+N.index,ae=N.input[T];if(ae==="<"||ae===","){X.ignoreMatch();return}ae===">"&&(a(N,{after:T})||X.ignoreMatch());let le,$=N.input.substring(T);if(le=$.match(/^\s*=/)){X.ignoreMatch();return}if((le=$.match(/^\s+extends\s+/))&&le.index===0){X.ignoreMatch();return}}},s={$pattern:cP,keyword:rG,literal:iG,built_in:sG,"variable.language":oG},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},O={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},x=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,m,b,{match:/\$\d+/},f];d.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});let S=[].concat(O,d.contains),y=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(S)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y},C={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...fP,...dP]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},E={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(N){return e.concat("(?!",N.join("|"),")")}let U={match:e.concat(/\b/,R([...hP,"super","import","await"].map(N=>`${N}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},M={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},_="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(_)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:k},illegal:/#(?![$_A-Za-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,m,b,O,{match:/\$\d+/},f,k,{scope:"attr",match:n+e.lookahead(":"),relevance:0},D,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,t.REGEXP_MODE,{className:"function",begin:_,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},E,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},U,A,C,M,{match:/\$[(.]/}]}}pP.exports=lG});var OP=ge((Rne,gP)=>{var uG="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",cG={scope:"number",match:uG,relevance:0};function fG(t){let e={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],r={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:n},contains:[e,a,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,r,cG,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}gP.exports=fG});var xP=ge((Tne,bP)=>{var fu="[0-9](_*[0-9])*",Om=`\\.(${fu})`,bm="[0-9a-fA-F](_*[0-9a-fA-F])*",dG={className:"number",variants:[{begin:`(\\b(${fu})((${Om})|\\.)?|(${Om}))[eE][+-]?(${fu})[fFdD]?\\b`},{begin:`\\b(${fu})((${Om})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Om})[fFdD]?\\b`},{begin:`\\b(${fu})[fFdD]\\b`},{begin:`\\b0[xX]((${bm})\\.?|(${bm})?\\.(${bm}))[pP][+-]?(${fu})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${bm})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function hG(t){let e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,r]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,i,r]}]};r.contains.push(o);let s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(o,{className:"string"}),"self"]}]},u=dG,c=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=f;return d.variants[1].contains=[f],f.variants[1].contains=[d],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,c,a,n,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,t.C_LINE_COMMENT_MODE,c],relevance:0},t.C_LINE_COMMENT_MODE,c,s,l,o,t.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
13
|
+
`},u]}}bP.exports=hG});var CP=ge((Ine,vP)=>{var pG=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),mG=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],gG=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],OG=[...mG,...gG],bG=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),SP=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),yP=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),xG=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),SG=SP.concat(yP).sort().reverse();function yG(t){let e=pG(t),a=SG,n="and or not only",r="[\\w-]+",i="("+r+"|@\\{"+r+"\\})",o=[],s=[],l=function(x){return{className:"string",begin:"~?"+x+".*?"+x}},u=function(x,S,y){return{className:x,begin:S,relevance:y}},c={$pattern:/[a-z-]+/,keyword:n,attribute:bG.join(" ")},f={begin:"\\(",end:"\\)",contains:s,keywords:c,relevance:0};s.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,l("'"),l('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.UNICODE_RANGE,e.HEXCOLOR,f,u("variable","@@?"+r,10),u("variable","@\\{"+r+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);let d=s.concat({begin:/\{/,end:/\}/,contains:o}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},p={begin:i+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+xG.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:s,relevance:0}},b={className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r}],starts:{end:"[;}]",returnEnd:!0,contains:d}},g={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,h,u("keyword","all\\b"),u("variable","@\\{"+r+"\\}"),{begin:"\\b("+OG.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,u("selector-tag",i,0),u("selector-id","#"+i),u("selector-class","\\."+i,0),u("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+SP.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+yP.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:d},{begin:"!important"},e.FUNCTION_DISPATCH]},O={begin:r+`:(:)?(${a.join("|")})`,returnBegin:!0,contains:[g]};return o.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,m,b,O,p,g,h,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}vP.exports=yG});var kP=ge((Pne,wP)=>{function vG(t){let e="\\[=*\\[",a="\\]=*\\]",n={begin:e,end:a,contains:["self"]},r=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,a,{contains:[n],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:a,contains:[n],relevance:5}])}}wP.exports=vG});var EP=ge((Mne,LP)=>{function CG(t){let e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e,a]},r={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,e,a,n,r,i,o]}}LP.exports=CG});var AP=ge((Dne,_P)=>{function wG(t){let e=t.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:a.join(" ")},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},u={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},c=[t.BACKSLASH_ESCAPE,i,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],d=(m,b,g="\\1")=>{let O=g==="\\1"?g:e.concat(g,b);return e.concat(e.concat("(?:",m,")"),b,/(?:\\.|[^\\\/])*?/,O,/(?:\\.|[^\\\/])*?/,g,n)},h=(m,b,g)=>e.concat(e.concat("(?:",m,")"),b,/(?:\\.|[^\\\/])*?/,g,n),p=[l,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},u,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:d("s|tr|y",e.either(...f,{capture:!0}))},{begin:d("s|tr|y","\\(","\\)")},{begin:d("s|tr|y","\\[","\\]")},{begin:d("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:h("(?:m|qr)?",/\//,/\//)},{begin:h("m|qr",e.either(...f,{capture:!0}),/\1/)},{begin:h("m|qr",/\(/,/\)/)},{begin:h("m|qr",/\[/,/\]/)},{begin:h("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,s,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=p,o.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:p}}_P.exports=wG});var TP=ge((Qne,RP)=>{function kG(t){let e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}RP.exports=kG});var PP=ge((Nne,IP)=>{function LG(t){let e=t.regex,a=/(?![A-Za-z0-9])(?![$])/,n=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),r=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),i=e.concat(/[A-Z]+/,a),o={scope:"variable",match:"\\$+"+n},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=t.inherit(t.APOS_STRING_MODE,{illegal:null}),c=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(Q,M)=>{M.data._beginMatch=Q[1]||Q[2]},"on:end":(Q,M)=>{M.data._beginMatch!==Q[1]&&M.ignoreMatch()}},d=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[
|
|
14
|
+
]`,p={scope:"string",variants:[c,u,f,d]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],g=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],O=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],S={keyword:g,literal:(Q=>{let M=[];return Q.forEach(_=>{M.push(_),_.toLowerCase()===_?M.push(_.toUpperCase()):M.push(_.toLowerCase())}),M})(b),built_in:O},y=Q=>Q.map(M=>M.replace(/\|\d+$/,"")),v={variants:[{match:[/new/,e.concat(h,"+"),e.concat("(?!",y(O).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},C=e.concat(n,"\\b(?!\\()"),k={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),C],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,e.concat(/::/,e.lookahead(/(?!class\b)/)),C],scope:{1:"title.class",3:"variable.constant"}},{match:[r,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:e.concat(n,e.lookahead(":"),e.lookahead(/(?!::)/))},E={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[L,o,k,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,p,m,v]},A={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",y(g).join("\\b|"),"|",y(O).join("\\b|"),"\\b)"),n,e.concat(h,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[E]};E.contains.push(A);let R=[L,k,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,p,m,v],U={begin:e.concat(/#\[\s*\\?/,e.either(r,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...R]},...R,{scope:"meta",variants:[{match:r},{match:i}]}]};return{case_insensitive:!1,keywords:S,contains:[U,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,A,k,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},v,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:S,contains:["self",U,o,k,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,p,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},p,m]}}IP.exports=LG});var DP=ge(($ne,MP)=>{function EG(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}MP.exports=EG});var NP=ge((Bne,QP)=>{function _G(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}QP.exports=_G});var BP=ge((zne,$P)=>{function AG(t){let e=t.regex,a=/[\p{XID_Start}_]\p{XID_Continue}*/u,n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},c={begin:/\{\{/,relevance:0},f={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l,c,u]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,c,u]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,c,u]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},d="[0-9](_?[0-9])*",h=`(\\b(${d}))?\\.(${d})|\\b(${d})\\.`,p=`\\b|${n.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${d})|(${h}))[eE][+-]?(${d})[jJ]?(?=${p})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${d})[jJ](?=${p})`}]},b={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},g={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,f,t.HASH_COMMENT_MODE]}]};return u.contains=[f,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,m,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,b,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[g]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,g,f]}]}}$P.exports=AG});var UP=ge((Une,zP)=>{function RG(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}zP.exports=RG});var qP=ge((Xne,XP)=>{function TG(t){let e=t.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[r,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[i,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}XP.exports=TG});var FP=ge((qne,ZP)=>{function IG(t){let e=t.regex,a=/(r#)?/,n=e.concat(a,t.UNDERSCORE_IDENT_RE),r=e.concat(a,t.IDENT_RE),i={scope:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,r,e.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],u=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],c=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:c,keyword:s,literal:l,built_in:u},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,n],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n],scope:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:c}},{scope:"punctuation",begin:"->"},i]}}ZP.exports=IG});var HP=ge((Zne,GP)=>{var PG=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),MG=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],DG=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],QG=[...MG,...DG],NG=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),$G=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),BG=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),zG=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function UG(t){let e=PG(t),a=BG,n=$G,r="@[a-z-]+",i="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+QG.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+a.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+zG.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,s,e.HEXCOLOR,e.CSS_NUMBER_MODE,e.UNICODE_RANGE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:r,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:NG.join(" ")},contains:[{begin:r,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}GP.exports=UG});var VP=ge((Fne,jP)=>{function XG(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}jP.exports=XG});var WP=ge((Gne,YP)=>{function qG(t){let e=t.regex,a=t.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],d=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=c,p=[...u,...l].filter(y=>!c.includes(y)),m={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},b={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},g={match:e.concat(/\b/,e.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function O(y){return e.concat(/\b/,e.either(...y.map(v=>v.replace(/\s+/,"\\s+"))),/\b/)}let x={scope:"keyword",match:O(d),relevance:0};function S(y,{exceptions:v,when:C}={}){let k=C;return v=v||[],y.map(L=>L.match(/\|\d+$/)||v.includes(L)?L:k(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:S(p,{when:y=>y.length<3}),literal:i,type:s,built_in:f},contains:[{scope:"type",match:O(o)},x,g,m,n,r,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,b]}}YP.exports=qG});var oM=ge((Hne,iM)=>{function tM(t){return t?typeof t=="string"?t:t.source:null}function Zf(t){return Je("(?=",t,")")}function Je(...t){return t.map(a=>tM(a)).join("")}function ZG(t){let e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function ga(...t){return"("+(ZG(t).capture?"":"?:")+t.map(n=>tM(n)).join("|")+")"}new RegExp(ga(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));var LS=t=>Je(/\b/,t,/\w$/.test(t)?/\b/:/\B/),FG=["Protocol","Type"].map(LS),KP=["init","self"].map(LS),GG=["Any","Self"],wS=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],JP=["false","nil","true"],HG=["assignment","associativity","higherThan","left","lowerThan","none","right"],jG=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],eM=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],aM=ga(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),nM=ga(aM,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),kS=Je(aM,nM,"*"),rM=ga(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Sm=ga(rM,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),$r=Je(rM,Sm,"*"),xm=Je(/[A-Z]/,Sm,"*"),VG=["attached","autoclosure",Je(/convention\(/,ga("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Je(/objc\(/,$r,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],YG=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function WG(t){let e={match:/\s+/,relevance:0},a=t.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[t.C_LINE_COMMENT_MODE,a],r={match:[/\./,ga(...FG,...KP)],className:{2:"keyword"}},i={match:Je(/\./,ga(...wS)),relevance:0},o=wS.filter(Ne=>typeof Ne=="string").concat(["_|0"]),s=wS.filter(Ne=>typeof Ne!="string").concat(GG).map(LS),l={variants:[{className:"keyword",match:ga(...s,...KP)}]},u={$pattern:ga(/\b\w+/,/#\w+/),keyword:o.concat(jG),literal:JP},c=[r,i,l],f={match:Je(/\./,ga(...eM)),relevance:0},d={className:"built_in",match:Je(/\b/,ga(...eM),/(?=\()/)},h=[f,d],p={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:kS},{match:`\\.(\\.|${nM})+`}]},b=[p,m],g="([0-9]_*)+",O="([0-9a-fA-F]_*)+",x={className:"number",relevance:0,variants:[{match:`\\b(${g})(\\.(${g}))?([eE][+-]?(${g}))?\\b`},{match:`\\b0x(${O})(\\.(${O}))?([pP][+-]?(${g}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},S=(Ne="")=>({className:"subst",variants:[{match:Je(/\\/,Ne,/[0\\tnr"']/)},{match:Je(/\\/,Ne,/u\{[0-9a-fA-F]{1,8}\}/)}]}),y=(Ne="")=>({className:"subst",match:Je(/\\/,Ne,/[\t ]*(?:[\r\n]|\r\n)/)}),v=(Ne="")=>({className:"subst",label:"interpol",begin:Je(/\\/,Ne,/\(/),end:/\)/}),C=(Ne="")=>({begin:Je(Ne,/"""/),end:Je(/"""/,Ne),contains:[S(Ne),y(Ne),v(Ne)]}),k=(Ne="")=>({begin:Je(Ne,/"/),end:Je(/"/,Ne),contains:[S(Ne),v(Ne)]}),L={className:"string",variants:[C(),C("#"),C("##"),C("###"),k(),k("#"),k("##"),k("###")]},E=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],A={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:E},R=Ne=>{let gn=Je(Ne,/\//),te=Je(/\//,Ne);return{begin:gn,end:te,contains:[...E,{scope:"comment",begin:`#(?!.*${te})`,end:/$/}]}},U={scope:"regexp",variants:[R("###"),R("##"),R("#"),A]},Q={match:Je(/`/,$r,/`/)},M={className:"variable",match:/\$\d+/},_={className:"variable",match:`\\$${Sm}+`},D=[Q,M,_],N={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:YG,contains:[...b,x,L]}]}},X={scope:"keyword",match:Je(/@/,ga(...VG),Zf(ga(/\(/,/\s+/)))},T={scope:"meta",match:Je(/@/,$r)},ae=[N,X,T],le={match:Zf(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Je(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Sm,"+")},{className:"type",match:xm,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Je(/\s+&\s+/,Zf(xm)),relevance:0}]},$={begin:/</,end:/>/,keywords:u,contains:[...n,...c,...ae,p,le]};le.contains.push($);let Y={match:Je($r,/\s*:/),keywords:"_|0",relevance:0},Z={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",Y,...n,U,...c,...h,...b,x,L,...D,...ae,le]},j={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,le]},W={begin:ga(Zf(Je($r,/\s*:/)),Zf(Je($r,/\s+/,$r,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:$r}]},pe={begin:/\(/,end:/\)/,keywords:u,contains:[W,...n,...c,...b,x,L,...ae,le,Z],endsParent:!0,illegal:/["']/},fe={match:[/(func|macro)/,/\s+/,ga(Q.match,$r,kS)],className:{1:"keyword",3:"title.function"},contains:[j,pe,e],illegal:[/\[/,/%/]},et={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[j,pe,e],illegal:/\[|%/},Pt={match:[/operator/,/\s+/,kS],className:{1:"keyword",3:"title"}},Mt={begin:[/precedencegroup/,/\s+/,xm],className:{1:"keyword",3:"title"},contains:[le],keywords:[...HG,...JP],end:/}/},Qe={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},vt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},qt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,$r,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[j,...c,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:xm},...c],relevance:0}]};for(let Ne of L.variants){let gn=Ne.contains.find(Xo=>Xo.label==="interpol");gn.keywords=u;let te=[...c,...h,...b,x,L,...D];gn.contains=[...te,{begin:/\(/,end:/\)/,contains:["self",...te]}]}return{name:"Swift",keywords:u,contains:[...n,fe,et,Qe,vt,qt,Pt,Mt,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},U,...c,...h,...b,x,L,...D,...ae,le,Z]}}iM.exports=WG});var lM=ge((jne,sM)=>{function KG(t){let e="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,r]},s=t.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},p={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},b=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},d,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},p,m,i,o],g=[...b];return g.pop(),g.push(s),h.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}sM.exports=KG});var OM=ge((Vne,gM)=>{var ym="[A-Za-z$_][0-9A-Za-z$_]*",uM=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],cM=["true","false","null","undefined","NaN","Infinity"],fM=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],dM=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],hM=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pM=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],mM=[].concat(hM,fM,dM);function JG(t){let e=t.regex,a=(N,{after:X})=>{let T="</"+N[0].slice(1);return N.input.indexOf(T,X)!==-1},n=ym,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,X)=>{let T=N[0].length+N.index,ae=N.input[T];if(ae==="<"||ae===","){X.ignoreMatch();return}ae===">"&&(a(N,{after:T})||X.ignoreMatch());let le,$=N.input.substring(T);if(le=$.match(/^\s*=/)){X.ignoreMatch();return}if((le=$.match(/^\s+extends\s+/))&&le.index===0){X.ignoreMatch();return}}},s={$pattern:ym,keyword:uM,literal:cM,built_in:mM,"variable.language":pM},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},O={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},x=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,m,b,{match:/\$\d+/},f];d.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});let S=[].concat(O,d.contains),y=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(S)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y},C={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...fM,...dM]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},E={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(N){return e.concat("(?!",N.join("|"),")")}let U={match:e.concat(/\b/,R([...hM,"super","import","await"].map(N=>`${N}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},M={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},_="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(_)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:k},illegal:/#(?![$_A-Za-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,m,b,O,{match:/\$\d+/},f,k,{scope:"attr",match:n+e.lookahead(":"),relevance:0},D,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,t.REGEXP_MODE,{className:"function",begin:_,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},E,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},U,A,C,M,{match:/\$[(.]/}]}}function e6(t){let e=t.regex,a=JG(t),n=ym,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[a.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:ym,keyword:uM.concat(l),literal:cM,built_in:mM.concat(r),"variable.language":pM},c={className:"meta",begin:"@"+n},f=(m,b,g)=>{let O=m.contains.findIndex(x=>x.label===b);if(O===-1)throw new Error("can not find mode to replace");m.contains.splice(O,1,g)};Object.assign(a.keywords,u),a.exports.PARAMS_CONTAINS.push(c);let d=a.contains.find(m=>m.scope==="attr"),h=Object.assign({},d,{match:e.concat(n,e.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,d,h]),a.contains=a.contains.concat([c,i,o,h]),f(a,"shebang",t.SHEBANG()),f(a,"use_strict",s);let p=a.contains.find(m=>m.label==="func.def");return p.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}gM.exports=e6});var xM=ge((Yne,bM)=>{function t6(t){let e=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:e.concat(/# */,e.either(i,r),/ *#/)},{begin:e.concat(/# */,s,/ *#/)},{begin:e.concat(/# */,o,/ *#/)},{begin:e.concat(/# */,e.either(i,r),/ +/,e.either(o,s),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},f=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),d=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,n,l,u,c,f,d,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[d]}]}}bM.exports=t6});var yM=ge((Wne,SM)=>{function a6(t){t.regex;let e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");let a=t.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},i={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[a,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},i,o,r,t.QUOTE_STRING_MODE,l,u,s]}}SM.exports=a6});var CM=ge((Kne,vM)=>{var ve=DI();ve.registerLanguage("xml",NI());ve.registerLanguage("bash",BI());ve.registerLanguage("c",UI());ve.registerLanguage("cpp",qI());ve.registerLanguage("csharp",FI());ve.registerLanguage("css",HI());ve.registerLanguage("markdown",VI());ve.registerLanguage("diff",WI());ve.registerLanguage("ruby",JI());ve.registerLanguage("go",tP());ve.registerLanguage("graphql",nP());ve.registerLanguage("ini",iP());ve.registerLanguage("java",uP());ve.registerLanguage("javascript",mP());ve.registerLanguage("json",OP());ve.registerLanguage("kotlin",xP());ve.registerLanguage("less",CP());ve.registerLanguage("lua",kP());ve.registerLanguage("makefile",EP());ve.registerLanguage("perl",AP());ve.registerLanguage("objectivec",TP());ve.registerLanguage("php",PP());ve.registerLanguage("php-template",DP());ve.registerLanguage("plaintext",NP());ve.registerLanguage("python",BP());ve.registerLanguage("python-repl",UP());ve.registerLanguage("r",qP());ve.registerLanguage("rust",FP());ve.registerLanguage("scss",HP());ve.registerLanguage("shell",VP());ve.registerLanguage("sql",WP());ve.registerLanguage("swift",oM());ve.registerLanguage("yaml",lM());ve.registerLanguage("typescript",OM());ve.registerLanguage("vbnet",xM());ve.registerLanguage("wasm",yM());ve.HighlightJS=ve;ve.default=ve;vM.exports=ve});var Wz=B(z_(),1);var sa=B(Ce(),1),G_=B(ue(),1),Z_=(0,sa.createContext)(null),Lx=()=>{let t=(0,sa.useContext)(Z_);if(!t)throw new Error("useServerEvents must be used inside <ServerEventsProvider>");return t},IX=["hello","status","change","chat-start","chat","chat-done","render-start","render-done","doc-saved","settings"];function F_({children:t}){let e=(0,sa.useRef)(new Map),[a,n]=(0,sa.useState)(null),[r,i]=(0,sa.useState)(!1);(0,sa.useEffect)(()=>{let l=new EventSource("/events"),u=f=>d=>{let h=null;try{h=JSON.parse(d.data)}catch{return}f==="status"&&n(h);for(let p of e.current.get(f)??[])p(h)},c=IX.map(f=>{let d=u(f);return l.addEventListener(f,d),[f,d]});return l.addEventListener("open",()=>i(!0)),l.addEventListener("error",()=>i(!1)),()=>{for(let[f,d]of c)l.removeEventListener(f,d);l.close()}},[]);let o=(0,sa.useCallback)((l,u)=>{let c=e.current.get(l);return c||(c=new Set,e.current.set(l,c)),c.add(u),()=>{c.delete(u)}},[]),s=(0,sa.useMemo)(()=>({status:a,connected:r,subscribe:o}),[a,r,o]);return(0,G_.jsx)(Z_.Provider,{value:s,children:t})}function rn(t,e){let{subscribe:a}=Lx(),n=(0,sa.useRef)(e);n.current=e,(0,sa.useEffect)(()=>a(t,r=>n.current(r)),[a,t])}var Pa=B(Ce(),1);async function Jl(t,e){return await(await fetch(t,e)).json().catch(()=>({}))}var Ex=t=>({method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),H_=t=>Jl(`/api/room?room=${encodeURIComponent(t)}`),j_=(t,e)=>Jl(`/api/doc?room=${encodeURIComponent(t)}&name=${encodeURIComponent(e)}`);async function V_(t){let e=await fetch("/api/doc",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),a=await e.json().catch(()=>({}));return{ok:e.ok,status:e.status,data:a}}var Np=t=>Jl(`/api/session?room=${encodeURIComponent(t)}`),Y_=(t,e)=>Jl("/api/chat",Ex({room:t,prompt:e})),W_=t=>Jl("/api/session",Ex({room:t})),K_=(t,e)=>Jl("/api/artifact",Ex({room:t,device:e})),J_=t=>Math.max(0,Math.min(100,t));function Wn(t,e){try{let a=localStorage.getItem(t);return a===null?e:JSON.parse(a)}catch{return e}}function Kn(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch{}}function eA(t){var e,a,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(a=eA(t[e]))&&(n&&(n+=" "),n+=a)}else for(a in t)t[a]&&(n&&(n+=" "),n+=a);return n}function $p(){for(var t,e,a=0,n="",r=arguments.length;a<r;a++)(t=arguments[a])&&(e=eA(t))&&(n&&(n+=" "),n+=e);return n}var PX=(t,e)=>{let a=new Array(t.length+e.length);for(let n=0;n<t.length;n++)a[n]=t[n];for(let n=0;n<e.length;n++)a[t.length+n]=e[n];return a},MX=(t,e)=>({classGroupId:t,validator:e}),oA=(t=new Map,e=null,a)=>({nextPart:t,validators:e,classGroupId:a});var tA=[],DX="arbitrary..",QX=t=>{let e=$X(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return NX(o);let s=o.split("-"),l=s[0]===""&&s.length>1?1:0;return sA(s,l,e)},getConflictingClassGroupIds:(o,s)=>{if(s){let l=n[o],u=a[o];return l?u?PX(u,l):l:u||tA}return a[o]||tA}}},sA=(t,e,a)=>{if(t.length-e===0)return a.classGroupId;let r=t[e],i=a.nextPart.get(r);if(i){let u=sA(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}},NX=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let e=t.slice(1,-1),a=e.indexOf(":"),n=e.slice(0,a);return n?DX+n:void 0})(),$X=t=>{let{theme:e,classGroups:a}=t;return BX(a,e)},BX=(t,e)=>{let a=oA();for(let n in t){let r=t[n];Ax(r,a,n,e)}return a},Ax=(t,e,a,n)=>{let r=t.length;for(let i=0;i<r;i++){let o=t[i];zX(o,e,a,n)}},zX=(t,e,a,n)=>{if(typeof t=="string"){UX(t,e,a);return}if(typeof t=="function"){XX(t,e,a,n);return}qX(t,e,a,n)},UX=(t,e,a)=>{let n=t===""?e:lA(e,t);n.classGroupId=a},XX=(t,e,a,n)=>{if(ZX(t)){Ax(t(n),e,a,n);return}e.validators===null&&(e.validators=[]),e.validators.push(MX(a,t))},qX=(t,e,a,n)=>{let r=Object.entries(t),i=r.length;for(let o=0;o<i;o++){let[s,l]=r[o];Ax(l,lA(e,s),a,n)}},lA=(t,e)=>{let a=t,n=e.split("-"),r=n.length;for(let i=0;i<r;i++){let o=n[i],s=a.nextPart.get(o);s||(s=oA(),a.nextPart.set(o,s)),a=s}return a},ZX=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,FX=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,a=Object.create(null),n=Object.create(null),r=(i,o)=>{a[i]=o,e++,e>t&&(e=0,n=a,a=Object.create(null))};return{get(i){let o=a[i];if(o!==void 0)return o;if((o=n[i])!==void 0)return r(i,o),o},set(i,o){i in a?a[i]=o:r(i,o)}}};var GX=[],aA=(t,e,a,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:a,maybePostfixModifierPosition:n,isExternal:r}),HX=t=>{let{prefix:e,experimentalParseClassName:a}=t,n=r=>{let i=[],o=0,s=0,l=0,u,c=r.length;for(let m=0;m<c;m++){let b=r[m];if(o===0&&s===0){if(b===":"){i.push(r.slice(l,m)),l=m+1;continue}if(b==="/"){u=m;continue}}b==="["?o++:b==="]"?o--:b==="("?s++:b===")"&&s--}let f=i.length===0?r:r.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 aA(i,h,d,p)};if(e){let r=e+":",i=n;n=o=>o.startsWith(r)?i(o.slice(r.length)):aA(GX,!1,o,void 0,!0)}if(a){let r=n;n=i=>a({className:i,parseClassName:r})}return n},jX=t=>{let e=new Map;return t.orderSensitiveModifiers.forEach((a,n)=>{e.set(a,1e6+n)}),a=>{let n=[],r=[];for(let i=0;i<a.length;i++){let o=a[i],s=o[0]==="[",l=e.has(o);s||l?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(o)):r.push(o)}return r.length>0&&(r.sort(),n.push(...r)),n}},VX=t=>({cache:FX(t.cacheSize),parseClassName:HX(t),sortModifiers:jX(t),postfixLookupClassGroupIds:YX(t),...QX(t)}),YX=t=>{let e=Object.create(null),a=t.postfixLookupClassGroups;if(a)for(let n=0;n<a.length;n++)e[a[n]]=!0;return e},WX=/\s+/,KX=(t,e)=>{let{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i,postfixLookupClassGroupIds:o}=e,s=[],l=t.trim().split(WX),u="";for(let c=l.length-1;c>=0;c-=1){let f=l[c],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:b}=a(f);if(d){u=f+(u.length>0?" "+u:u);continue}let g=!!b,O;if(g){let C=m.substring(0,b);O=n(C);let k=O&&o[O]?n(m):void 0;k&&k!==O&&(O=k,g=!1)}else O=n(m);if(!O){if(!g){u=f+(u.length>0?" "+u:u);continue}if(O=n(m),!O){u=f+(u.length>0?" "+u:u);continue}g=!1}let x=h.length===0?"":h.length===1?h[0]:i(h).join(":"),S=p?x+"!":x,y=S+O;if(s.indexOf(y)>-1)continue;s.push(y);let v=r(O,g);for(let C=0;C<v.length;++C){let k=v[C];s.push(S+k)}u=f+(u.length>0?" "+u:u)}return u},JX=(...t)=>{let e=0,a,n,r="";for(;e<t.length;)(a=t[e++])&&(n=uA(a))&&(r&&(r+=" "),r+=n);return r},uA=t=>{if(typeof t=="string")return t;let e,a="";for(let n=0;n<t.length;n++)t[n]&&(e=uA(t[n]))&&(a&&(a+=" "),a+=e);return a},eq=(t,...e)=>{let a,n,r,i,o=l=>{let u=e.reduce((c,f)=>f(c),t());return a=VX(u),n=a.cache.get,r=a.cache.set,i=s,s(l)},s=l=>{let u=n(l);if(u)return u;let c=KX(l,a);return r(l,c),c};return i=o,(...l)=>i(JX(...l))},tq=[],Bt=t=>{let e=a=>a[t]||tq;return e.isThemeGetter=!0,e.themeKey=t,e},cA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aq=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rq=/\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$/,iq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,oq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,to=t=>aq.test(t),Ee=t=>!!t&&!Number.isNaN(Number(t)),Rr=t=>!!t&&Number.isInteger(Number(t)),_x=t=>t.endsWith("%")&&Ee(t.slice(0,-1)),ci=t=>nq.test(t),dA=()=>!0,lq=t=>rq.test(t)&&!iq.test(t),Rx=()=>!1,uq=t=>oq.test(t),cq=t=>sq.test(t),fq=t=>!K(t)&&!ee(t),dq=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)),hq=t=>ao(t,mA,Rx),K=t=>cA.test(t),ms=t=>ao(t,gA,lq),nA=t=>ao(t,yq,Ee),pq=t=>ao(t,bA,dA),mq=t=>ao(t,OA,Rx),rA=t=>ao(t,hA,Rx),gq=t=>ao(t,pA,cq),Bp=t=>ao(t,xA,uq),ee=t=>fA.test(t),nf=t=>gs(t,gA),Oq=t=>gs(t,OA),iA=t=>gs(t,hA),bq=t=>gs(t,mA),xq=t=>gs(t,pA),zp=t=>gs(t,xA,!0),Sq=t=>gs(t,bA,!0),ao=(t,e,a)=>{let n=cA.exec(t);return n?n[1]?e(n[1]):a(n[2]):!1},gs=(t,e,a=!1)=>{let n=fA.exec(t);return n?n[1]?e(n[1]):a:!1},hA=t=>t==="position"||t==="percentage",pA=t=>t==="image"||t==="url",mA=t=>t==="length"||t==="size"||t==="bg-size",gA=t=>t==="length",yq=t=>t==="number",OA=t=>t==="family-name",bA=t=>t==="number"||t==="weight",xA=t=>t==="shadow";var vq=()=>{let t=Bt("color"),e=Bt("font"),a=Bt("text"),n=Bt("font-weight"),r=Bt("tracking"),i=Bt("leading"),o=Bt("breakpoint"),s=Bt("container"),l=Bt("spacing"),u=Bt("radius"),c=Bt("shadow"),f=Bt("inset-shadow"),d=Bt("text-shadow"),h=Bt("drop-shadow"),p=Bt("blur"),m=Bt("perspective"),b=Bt("aspect"),g=Bt("ease"),O=Bt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...S(),ee,K],v=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],k=()=>[ee,K,l],L=()=>[to,"full","auto",...k()],E=()=>[Rr,"none","subgrid",ee,K],A=()=>["auto",{span:["full",Rr,ee,K]},Rr,ee,K],R=()=>[Rr,"auto",ee,K],U=()=>["auto","min","max","fr",ee,K],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...k()],D=()=>[to,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],N=()=>[s,to,"screen","full","dvw","lvw","svw","min","max","fit",...k()],X=()=>[to,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],T=()=>[t,ee,K],ae=()=>[...S(),iA,rA,{position:[ee,K]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",bq,hq,{size:[ee,K]}],Y=()=>[_x,nf,ms],Z=()=>["","none","full",u,ee,K],j=()=>["",Ee,nf,ms],W=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ee,_x,iA,rA],et=()=>["","none",p,ee,K],Pt=()=>["none",Ee,ee,K],Mt=()=>["none",Ee,ee,K],Qe=()=>[Ee,ee,K],vt=()=>[to,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ci],breakpoint:[ci],color:[dA],container:[ci],"drop-shadow":[ci],ease:["in","out","in-out"],font:[fq],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ci],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ci],shadow:[ci],spacing:["px",Ee],text:[ci],"text-shadow":[ci],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",to,K,ee,b]}],container:["container"],"container-type":[{"@container":["","normal","size",ee,K]}],"container-named":[dq],columns:[{columns:[Ee,"auto",K,ee,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Rr,"auto",ee,K]}],basis:[{basis:[to,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,to,"auto","initial","none",K]}],grow:[{grow:["",Ee,ee,K]}],shrink:[{shrink:["",Ee,ee,K]}],order:[{order:[Rr,"first","last","none",ee,K]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],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:D()}],"inline-size":[{inline:["auto",...N()]}],"min-inline-size":[{"min-inline":["auto",...N()]}],"max-inline-size":[{"max-inline":["none",...N()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[s,"screen",...D()]}],"min-w":[{"min-w":[s,"screen","none",...D()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh","none",...D()]}],"font-size":[{text:["base",a,nf,ms]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Sq,pq]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_x,K]}],"font-family":[{font:[Oq,mq,e]}],"font-features":[{"font-features":[K]}],"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:[r,ee,K]}],"line-clamp":[{"line-clamp":[Ee,"none",ee,nA]}],leading:[{leading:["none",i,...k()]}],"list-image":[{"list-image":["none",ee,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",ee,ms]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Ee,"auto",ee,K]}],"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:[Rr,ee,K]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,K]}],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",ee,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rr,ee,K],radial:["",ee,K],conic:["",Rr,ee,K]},xq,gq]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"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:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,ee,K]}],"outline-w":[{outline:["",Ee,nf,ms]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","inner","none",c,zp,Bp]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",f,zp,Bp]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Ee,ms]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",d,zp,Bp]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Ee,ee,K]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ee,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,K]}],filter:[{filter:["","none",ee,K]}],blur:[{blur:et()}],brightness:[{brightness:[Ee,ee,K]}],contrast:[{contrast:[Ee,ee,K]}],"drop-shadow":[{"drop-shadow":["","none",h,zp,Bp]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Ee,ee,K]}],"hue-rotate":[{"hue-rotate":[Ee,ee,K]}],invert:[{invert:["",Ee,ee,K]}],saturate:[{saturate:[Ee,ee,K]}],sepia:[{sepia:["",Ee,ee,K]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,K]}],"backdrop-blur":[{"backdrop-blur":et()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,ee,K]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,ee,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,ee,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,ee,K]}],"backdrop-invert":[{"backdrop-invert":["",Ee,ee,K]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,ee,K]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,ee,K]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,ee,K]}],"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",ee,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",ee,K]}],ease:[{ease:["linear","initial",g,ee,K]}],delay:[{delay:[Ee,ee,K]}],animate:[{animate:["none",O,ee,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ee,K]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:Pt()}],"rotate-x":[{"rotate-x":Pt()}],"rotate-y":[{"rotate-y":Pt()}],"rotate-z":[{"rotate-z":Pt()}],scale:[{scale:Mt()}],"scale-x":[{"scale-x":Mt()}],"scale-y":[{"scale-y":Mt()}],"scale-z":[{"scale-z":Mt()}],"scale-3d":["scale-3d"],skew:[{skew:Qe()}],"skew-x":[{"skew-x":Qe()}],"skew-y":[{"skew-y":Qe()}],transform:[{transform:[ee,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"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:[Rr,ee,K]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",ee,K]}],"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":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"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",ee,K]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Ee,nf,ms,nA]}],stroke:[{stroke:["none",...T()]}],"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 SA=eq(vq);function Ke(...t){return SA($p(t))}var Tr=B(Ce(),1);var Cq={messages:[],running:!1,sessionId:null,assistantId:null,logId:null,seq:0},Ix=(t,e)=>`${e}-${t.seq+1}`;function Tx(t,e,a,n){let r=t[a];if(r)return{...t,messages:t.messages.map(l=>l.id===r?{...l,text:l.text+n}:l)};let i=Ix(t,e),o=Date.now(),s=e==="assistant"?{id:i,role:"assistant",text:n,at:o,done:!1}:{id:i,role:"log",text:n,at:o,done:!1};return{...t,seq:t.seq+1,[a]:i,messages:[...t.messages,s]}}function wq(t,e){switch(e.type){case"replay":{if(t.messages.length)return t;let a=Date.now(),n=e.lines.map((r,i)=>{let o=`replay-${i}`;return r.role==="user"?{id:o,role:"user",text:r.text,at:a}:r.role==="assistant"?{id:o,role:"assistant",text:r.text,at:a,done:!0}:{id:o,role:"log",text:r.text,at:a,done:!0}});return{...t,sessionId:e.sessionId??t.sessionId,messages:n}}case"user":{let a=Ix(t,"user");return{...t,seq:t.seq+1,messages:[...t.messages,{id:a,role:"user",text:e.text,at:Date.now()}]}}case"notice":{let a=Ix(t,"system");return{...t,seq:t.seq+1,messages:[...t.messages,{id:a,role:"system",text:e.text,at:Date.now(),tone:e.tone}]}}case"start":return{...t,running:!0,sessionId:e.sessionId??t.sessionId,assistantId:null,logId:null};case"session":return{...t,sessionId:e.sessionId};case"chunk":return e.stream==="meta"||e.stream==="stderr"?Tx(t,"log","logId",e.chunk):Tx(t,"assistant","assistantId",e.chunk);case"done":{let a=n=>n.role==="assistant"||n.role==="log"?{...n,done:!0}:n;return{...t,running:!1,messages:t.messages.map(a),assistantId:null,logId:null}}default:return t}}function yA(t){let[e,a]=(0,Tr.useReducer)(wq,Cq),[n,r]=(0,Tr.useState)([]);rn("chat-start",s=>{s.room===t&&a({type:"start",sessionId:s.sessionId})}),rn("chat",s=>{s.room===t&&a({type:"chunk",stream:s.stream,chunk:s.chunk})}),rn("chat-done",s=>{s.room===t&&a({type:"done",code:s.code,error:s.error})}),(0,Tr.useEffect)(()=>{let s=!1;return(async()=>{try{let l=await Np(t);if(s)return;a({type:"replay",lines:l.lines??[],sessionId:l.session??null})}catch{}})(),()=>{s=!0}},[t]);let i=(0,Tr.useCallback)(async s=>{let l=s.trim();if(l){a({type:"user",text:l});try{let u=await Y_(t,l);u.started||(a({type:"notice",text:`could not send: ${u.reason??u.error??"the agent is busy"}`,tone:"error"}),a({type:"done",code:-1,error:null}))}catch{a({type:"notice",text:"could not reach the server",tone:"error"}),a({type:"done",code:-1,error:null})}}},[t]),o=(0,Tr.useCallback)(async s=>{let l=s.trim();l&&(e.running?r(u=>[...u,l]):await i(l))},[e.running,i]);return(0,Tr.useEffect)(()=>{if(e.running||n.length===0)return;let[s,...l]=n;r(l),s&&i(s)},[e.running,n,i]),{messages:e.messages,running:e.running,sessionId:e.sessionId,queue:n,submit:o,removeQueued:s=>r(l=>l.filter((u,c)=>c!==s)),setSessionId:s=>a({type:"session",sessionId:s}),notice:s=>a({type:"notice",text:s,tone:"info"})}}var Vt=B(Ce(),1);var la=B(Ce(),1);var vA=B(Ce(),1),kq=Object.defineProperty,Mx=(t,e)=>kq(t,"name",{value:e,configurable:!0});function Px(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}Mx(Px,"setRef");function CA(...t){return e=>{let a=!1,n=t.map(r=>{let i=Px(r,e);return!a&&typeof i=="function"&&(a=!0),i});if(a)return()=>{for(let r=0;r<n.length;r++){let i=n[r];typeof i=="function"?i():Px(t[r],null)}}}}Mx(CA,"composeRefs");function En(...t){return vA.useCallback(CA(...t),t)}Mx(En,"useComposedRefs");var Lq=Object.defineProperty,on=(t,e)=>Lq(t,"name",{value:e,configurable:!0});function Ir(t){let e=la.forwardRef((a,n)=>{let{children:r,...i}=a,o=null,s=!1,l=[];r=RA(r),la.Children.forEach(r,d=>{if(_A(d)){s=!0;let h=d,p="child"in h.props?h.props.child:h.props.children;for(;Dx(p)&&typeof Up=="function";)p=Up(p._payload);o=_q(h,p),l.push(o?.props?.children)}else l.push(d)}),o?o=la.cloneElement(o,void 0,l):!s&&la.Children.count(r)===1&&la.isValidElement(r)&&(o=r);let u=o?EA(o):void 0,c=En(n,u);if(!o){if(r||r===0)throw new Error(s?Tq(t):Rq(t));return r}let f=LA(i,o.props??{});return o.type!==la.Fragment&&(f.ref=n?c:u),la.cloneElement(o,f)});return e.displayName=`${t}.Slot`,e}on(Ir,"createSlot");var wA=Ir("Slot"),kA=Symbol.for("radix.slottable");function Eq(t){let e=on(a=>"child"in a?a.children(a.child):a.children,"Slottable");return e.displayName=`${t}.Slottable`,e.__radixId=kA,e}on(Eq,"createSlottable");var _q=on((t,e)=>"child"in t.props?la.isValidElement(e)?la.cloneElement(e,void 0,t.props.children(e.props.children)):null:la.isValidElement(e)?e:null,"getSlottableElementFromSlottable");function LA(t,e){let a={...e};for(let n in e){let r=t[n],i=e[n];/^on[A-Z]/.test(n)?r&&i?a[n]=(...s)=>{let l=i(...s);return r(...s),l}:r&&(a[n]=r):n==="style"?a[n]={...r,...i}:n==="className"?a[n]=[r,i].filter(Boolean).join(" "):n==="aria-describedby"&&(a[n]=TA(i,r))}return{...t,...a}}on(LA,"mergeProps");function EA(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)}on(EA,"getElementRef");function _A(t){return la.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===kA}on(_A,"isSlottable");var Aq=Symbol.for("react.lazy");function Dx(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Aq&&"_payload"in t&&AA(t._payload)}on(Dx,"isLazyComponent");function AA(t){return typeof t=="object"&&t!==null&&"then"in t}on(AA,"isPromiseLike");function RA(t){let e=t;for(;Dx(e)&&typeof Up=="function";)e=Up(e._payload);return e}on(RA,"useUnwrappedLazy");function TA(...t){let e=new Set;for(let a of t)if(typeof a=="string")for(let n of String(a).trim().split(/\s+/))n&&e.add(n);return e.size>0?Array.from(e).join(" "):void 0}on(TA,"concatAriaDescribedby");var Rq=on(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Tq=on(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Up=la[" use ".trim().toString()];var IA=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,PA=$p,Xp=(t,e)=>a=>{var n;if(e?.variants==null)return PA(t,a?.class,a?.className);let{variants:r,defaultVariants:i}=e,o=Object.keys(r).map(u=>{let c=a?.[u],f=i?.[u];if(c===null)return null;let d=IA(c)||IA(f);return r[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||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(p=>{let[m,b]=p;return Array.isArray(b)?b.includes({...i,...s}[m]):{...i,...s}[m]===b})?[...u,f,d]:u},[]);return PA(t,o,l,a?.class,a?.className)};var MA=B(ue(),1),Iq=Xp("inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-border bg-background shadow-xs hover:bg-muted",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-muted",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-3",sm:"h-7 gap-1 px-2.5 text-[13px]",xs:"h-6 gap-1 rounded-md px-2 text-xs",lg:"h-10 px-5",icon:"size-8","icon-sm":"size-7","icon-xs":"size-6"}},defaultVariants:{variant:"default",size:"default"}});function pt({className:t,variant:e,size:a,asChild:n=!1,...r}){return(0,MA.jsx)(n?wA:"button",{"data-slot":"button",className:Ke(Iq({variant:e,size:a}),t),...r})}var qp=B(Ce(),1);var DA=t=>t?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function QA(t,e,a=[]){if(e==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:DA(t),size:24,node:e,...a.length>0?{aliases:a}:{}}}var NA=t=>{let e="",a=!1;for(let n of t){if(n==="-"||n==="_"||n<=" "){a=e.length>0;continue}e.length===0?e+=n.toLowerCase():e+=a?n.toUpperCase():n,a=!1}return e};var $A=t=>{let e=NA(t);return e.charAt(0).toUpperCase()+e.slice(1)};var of=B(Ce(),1);var rf=(...t)=>t.filter((e,a,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===a).join(" ").trim();var no={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 Qx(t){return t!=null}function BA(t,e={}){let a=e.attributeNames??{},n=d=>a[d]??d,r=t.size??t.width??no.width,i=t.size??t.height??no.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?rf(...l):rf("lucide",...s,...l),c=e.absoluteStrokeWidth?Number(e.strokeWidth??no["stroke-width"])*Number(t.size??t.width??no.width)/Number(e.size??e.width??no.width):e.strokeWidth??no["stroke-width"];return["svg",{...Object.entries(no).reduce((d,[h,p])=>(d[n(h)]=p,d),{}),..."color"in e&&e.color&&{[n("stroke")]:e.color},..."size"in e&&Qx(e.size)&&{[n("width")]:e.size,[n("height")]:e.size},..."width"in e&&Qx(e.width)&&{[n("width")]:e.width},..."height"in e&&Qx(e.height)&&{[n("height")]:e.height},[n("stroke-width")]:c,...u&&{[n("class")]:u},[n("viewBox")]:`0 0 ${r} ${i}`,...e.hasA11yProp===!1?{[n("aria-hidden")]:"true"}:{},..."attributes"in e&&e.attributes},t.node.map(d=>{let[h,p,m]=d,b=e.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...p}:p;return m?[h,b,m]:[h,b]})]}function zA(t,e={}){return BA(t,{...e,attributeNames:{...e.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var UA=t=>{for(let e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};var eu=B(Ce(),1);var Pq=(0,eu.createContext)({});var XA=()=>(0,eu.useContext)(Pq);var qA=(0,of.forwardRef)(({color:t,size:e,width:a,height:n,strokeWidth:r,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:b=!1,color:g="currentColor",className:O=""}=XA()??{},x=!!l||UA(f),[S,y,v=[]]=zA(c,{color:t??g,width:a??e??h,height:n??e??h,strokeWidth:r??p,absoluteStrokeWidth:i??m,nonScalingStroke:o??b,className:rf(O,s),hasA11yProp:x,attributes:f});return(0,of.createElement)(S,{ref:d,...y},[...v.map(([C,k])=>(0,of.createElement)(C,k)),...Array.isArray(l)?l:[l]])});function de(t,e=[],a=[]){let n=typeof t=="string"?QA(t,e,a):t,r=(0,qp.forwardRef)(({className:i,...o},s)=>(0,qp.createElement)(qA,{ref:s,icon:n,className:i,...o}));return n.name&&(r.displayName=$A(n.name)),r}var ZA={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};ZA.node;var sf=de(ZA);var FA={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};FA.node;var lf=de(FA);var GA={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};GA.node;var uf=de(GA);var HA={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};HA.node;var cf=de(HA);var jA={name:"columns-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],aliases:["columns"]};jA.node;var ro=de(jA);var VA={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};VA.node;var ff=de(VA);var YA={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};YA.node;var df=de(YA);var WA={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};WA.node;var hf=de(WA);var KA={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};KA.node;var pf=de(KA);var JA={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};JA.node;var mf=de(JA);var eR={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};eR.node;var gf=de(eR);var tR={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};tR.node;var io=de(tR);var aR={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};aR.node;var Of=de(aR);var nR={name:"panel-right",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]};nR.node;var bf=de(nR);var rR={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};rR.node;var xf=de(rR);var iR={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};iR.node;var Sf=de(iR);var oR={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};oR.node;var yf=de(oR);var sR={name:"rows-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],aliases:["rows"]};sR.node;var oo=de(sR);var lR={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};lR.node;var vf=de(lR);var uR={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};uR.node;var so=de(uR);var cR={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};cR.node;var Cf=de(cR);var fR={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};fR.node;var wf=de(fR);var dR={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};dR.node;var kf=de(dR);var hR={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"]};hR.node;var lo=de(hR);var pR={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};pR.node;var Lf=de(pR);var gR=B(ue(),1),mR=["arrow-left","send","stop","copy","check","refresh","plus","pencil","eye","columns","rows","grid","terminal","x","external","chevron-down","sparkles","sun","moon","panel-right","image","alert","clock","file","loader"],Mq={"arrow-left":sf,send:vf,stop:Cf,copy:ff,check:lf,refresh:yf,plus:Sf,pencil:xf,eye:hf,columns:ro,rows:oo,grid:gf,terminal:kf,x:Lf,external:df,"chevron-down":uf,sparkles:so,sun:wf,moon:Of,"panel-right":bf,image:mf,alert:lo,clock:cf,file:pf,loader:io};function ye({name:t,className:e="size-4"}){let a=Mq[t];return(0,gR.jsx)(a,{className:e,"aria-hidden":"true"})}var ka=B(Ce(),1);var An=B(Ce(),1),Nx=B(ue(),1),Dq=Object.defineProperty,_n=(t,e)=>Dq(t,"name",{value:e,configurable:!0});function Qq(t,e){let a=An.createContext(e);a.displayName=t+"Context";let n=_n(i=>{let{children:o,...s}=i,l=An.useMemo(()=>s,Object.values(s));return(0,Nx.jsx)(a.Provider,{value:l,children:o})},"Provider");n.displayName=t+"Provider";function r(i,o={}){let{optional:s=!1}=o,l=An.useContext(a);if(l)return l;if(e!==void 0)return e;if(!s)throw new Error(`\`${i}\` must be used within \`${t}\``)}return _n(r,"useContext"),[n,r]}_n(Qq,"createContext");function Jn(t,e=[]){let a=[];function n(i,o){let s=An.createContext(o);s.displayName=i+"Context";let l=a.length;a=[...a,o];let u=_n(f=>{let{scope:d,children:h,...p}=f,m=d?.[t]?.[l]||s,b=An.useMemo(()=>p,Object.values(p));return(0,Nx.jsx)(m.Provider,{value:b,children:h})},"Provider");u.displayName=i+"Provider";function c(f,d,h={}){let{optional:p=!1}=h,m=d?.[t]?.[l]||s,b=An.useContext(m);if(b)return b;if(o!==void 0)return o;if(!p)throw new Error(`\`${f}\` must be used within \`${i}\``)}return _n(c,"useContext"),[u,c]}_n(n,"createContext");let r=_n(()=>{let i=a.map(o=>An.createContext(o));return _n(function(s){let l=s?.[t]||i;return An.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])},"useScope")},"createScope");return r.scopeName=t,[n,OR(r,...e)]}_n(Jn,"createContextScope");function OR(...t){let e=t[0];if(t.length===1)return e;let a=_n(()=>{let n=t.map(r=>({useScope:r(),scopeName:r.scopeName}));return _n(function(i){let o=n.reduce((s,{useScope:l,scopeName:u})=>{let f=l(i)[`__scope${u}`];return{...s,...f}},{});return An.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return a.scopeName=e.scopeName,a}_n(OR,"composeContextScopes");var bR=B(Ce(),1),xR=B(NO(),1);var SR=B(ue(),1),Nq=Object.defineProperty,$q=(t,e)=>Nq(t,"name",{value:e,configurable:!0}),Bq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ua=Bq.reduce((t,e)=>{let a=Ir(`Primitive.${e}`),n=bR.forwardRef((r,i)=>{let{asChild:o,...s}=r,l=o?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,SR.jsx)(l,{...s,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function zq(t,e){t&&xR.flushSync(()=>t.dispatchEvent(e))}$q(zq,"dispatchDiscreteCustomEvent");var jt=B(Ce(),1);var Uq=Object.defineProperty,tu=(t,e)=>Uq(t,"name",{value:e,configurable:!0}),yR=!!(typeof window<"u"&&window.document&&window.document.createElement);function Xa(t,e,{checkForDefaultPrevented:a=!0}={}){return tu(function(r){if(t?.(r),a===!1||!r||!r.defaultPrevented)return e?.(r)},"handleEvent")}tu(Xa,"composeEventHandlers");function Xq(t){if(!yR)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}tu(Xq,"getOwnerWindow");function $x(t){if(!yR)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}tu($x,"getOwnerDocument");function vR(t,e=!1){let{activeElement:a}=$x(t);if(!a?.nodeName)return null;if(CR(a)&&a.contentDocument)return vR(a.contentDocument.body,e);if(e){let n=a.getAttribute("aria-activedescendant");if(n){let r=$x(a).getElementById(n);if(r)return r}}return a}tu(vR,"getActiveElement");function CR(t){return t.tagName==="IFRAME"}tu(CR,"isFrame");var er=B(Ce(),1);var Fp=B(ue(),1),Ut=B(Ce(),1);var wR=B(Ce(),1),Rn=globalThis?.document?wR.useLayoutEffect:()=>{};var co=B(ue(),1),qq=Object.defineProperty,zt=(t,e)=>qq(t,"name",{value:e,configurable:!0});function Bx(t){let e=t+"CollectionProvider",[a,n]=Jn(e),[r,i]=a(e,{collectionRef:{current:null},itemMap:new Map}),o=zt(m=>{let{scope:b,children:g}=m,O=er.useRef(null),x=er.useRef(new Map).current;return(0,Fp.jsx)(r,{scope:b,itemMap:x,collectionRef:O,children:g})},"CollectionProvider");o.displayName=e;let s=t+"CollectionSlot",l=Ir(s),u=er.forwardRef((m,b)=>{let{scope:g,children:O}=m,x=i(s,g),S=En(b,x.collectionRef);return(0,Fp.jsx)(l,{ref:S,children:O})});u.displayName=s;let c=t+"CollectionItemSlot",f="data-radix-collection-item",d=Ir(c),h=er.forwardRef((m,b)=>{let{scope:g,children:O,...x}=m,S=er.useRef(null),y=En(b,S),v=i(c,g);return er.useEffect(()=>(v.itemMap.set(S,{ref:S,...x}),()=>{v.itemMap.delete(S)})),(0,Fp.jsx)(d,{[f]:"",ref:y,children:O})});h.displayName=c;function p(m){let b=i(t+"CollectionConsumer",m);return er.useCallback(()=>{let O=b.collectionRef.current;if(!O)return[];let x=Array.from(O.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((v,C)=>x.indexOf(v.ref.current)-x.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return zt(p,"useCollection"),[{Provider:o,Slot:u,ItemSlot:h},p,n]}zt(Bx,"createCollection");var kR=new WeakMap,Zp=class uo extends Map{static{zt(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],kR.set(this,!0)}set(e,a){return kR.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,a),this}insert(e,a,n){let r=this.has(a),i=r?this.size:this.size+1,o=zx(e),s=o>=0?Math.min(o,i-1):Math.max(i+o,0);if(r?this.#e.indexOf(a)===s:s===this.size)return this.set(a,n),this;let l=this.#e.filter(c=>c!==a);l.splice(s,0,a);let u=l.map(c=>[c,c===a?n:this.get(c)]);this.clear();for(let[c,f]of u)this.set(c,f);return this}with(e,a,n){let r=new uo(this);return r.insert(e,a,n),r}before(e){let a=this.#e.indexOf(e)-1;if(!(a<0))return this.entryAt(a)}setBefore(e,a,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(a),o=i!==-1&&i<r?r-1:r;return this.insert(o,a,n)}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,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(a),o=i!==-1&&i<=r?r:r+1;return this.insert(o,a,n)}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=Gp(this.#e,e);if(a!==void 0)return this.get(a)}entryAt(e){let a=Gp(this.#e,e);if(a!==void 0)return[a,this.get(a)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Gp(this.#e,e)}from(e,a){let n=this.indexOf(e);if(n===-1)return;let r=n+a;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,a){let n=this.indexOf(e);if(n===-1)return;let r=n+a;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,a){let n=0;for(let r of this){if(Reflect.apply(e,a,[r,n,this]))return r;n++}}findIndex(e,a){let n=0;for(let r of this){if(Reflect.apply(e,a,[r,n,this]))return n;n++}return-1}filter(e,a){let n=[],r=0;for(let i of this)Reflect.apply(e,a,[i,r,this])&&n.push(i),r++;return new uo(n)}map(e,a){let n=[],r=0;for(let i of this)n.push([i[0],Reflect.apply(e,a,[i,r,this])]),r++;return new uo(n)}reduce(...e){let[a,n]=e,r=e.length>1;if(!r&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let i=0,o=n;for(let s of this)i===0&&!r?o=s:o=Reflect.apply(a,this,[o,s,i,this]),i++;return o}reduceRight(...e){let[a,n]=e,r=e.length>1;if(!r&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let i=n;for(let o=this.size-1;o>=0;o--){let s=this.entryAt(o);o===this.size-1&&!r?i=s:i=Reflect.apply(a,this,[i,s,o,this])}return i}sort(e){if(typeof e!="function")throw new TypeError("OrderedDict.sort requires a compare function");let a=[...this.entries()].sort(e);this.clear();for(let[n,r]of a)this.set(n,r);return this}toSorted(e){if(typeof e!="function")throw new TypeError("OrderedDict.toSorted requires a compare function");let a=[...this.entries()].sort(e);return new uo(a)}toReversed(){let e=new uo;for(let a=this.size-1;a>=0;a--){let n=this.keyAt(a),r=this.get(n);e.set(n,r)}return e}toSpliced(...e){let a=[...this.entries()];return a.splice(...e),new uo(a)}slice(e,a){let n=new uo;for(let r of this.#e.slice(e,a))n.set(r,this.get(r));return n}every(e,a){let n=0;for(let r of this){if(!Reflect.apply(e,a,[r,n,this]))return!1;n++}return!0}some(e,a){let n=0;for(let r of this){if(Reflect.apply(e,a,[r,n,this]))return!0;n++}return!1}};function Gp(t,e){if("at"in Array.prototype)return Array.prototype.at.call(t,e);let a=LR(t,e);return a===-1?void 0:t[a]}zt(Gp,"at");function LR(t,e){let a=t.length,n=zx(e),r=n>=0?n:a+n;return r<0||r>=a?-1:r}zt(LR,"toSafeIndex");function zx(t){return t!==t||t===0?0:Math.trunc(t)}zt(zx,"toSafeInteger");function Zq(t){let e=t+"CollectionProvider",[a,n]=Jn(e),[r,i]=a(e);r.displayName=t+"CollectionStableContextProvider";let[o,s]=a(e);o.displayName=t+"CollectionStatefulContextProvider";let l=zt(({state:v,...C})=>v?(0,co.jsx)(c,{...C,state:v}):(0,co.jsx)(u,{...C}),"CollectionProvider");l.displayName=e;let u=zt(v=>{let C=O();return(0,co.jsx)(c,{...v,state:C})},"CollectionInit");u.displayName=t+"CollectionInit";let c=zt(v=>{let{scope:C,children:k,state:L}=v,E=Ut.useRef(null),[A,R]=Ut.useState(null),U=En(E,R),[Q,M]=L,_=Ut.useRef(new Zp),D=Ut.useCallback(()=>{let N=_.current;return AR(N)||N.sort(Hp),N},[]);return Ut.useEffect(()=>{if(!A)return;let N=RR(()=>{M(X=>{let T=X.toSorted(Hp);return T.some(([le],$)=>X.keyAt($)!==le)?T:X})});return N.observe(A,{childList:!0,subtree:!0}),()=>{N.disconnect()}},[A,M]),(0,co.jsx)(r,{scope:C,collectionElementRef:U,collectionElementRefObject:E,getCollection:D,setCollection:M,registryRef:_,children:(0,co.jsx)(o,{scope:C,collectionElement:A,collection:Q,children:k})})},"CollectionProviderImpl");c.displayName=t+"CollectionProviderImpl";let f=t+"CollectionSlot",d=Ir(f),h=Ut.forwardRef((v,C)=>{let{scope:k,children:L}=v,E=i(f,k),A=En(C,E.collectionElementRef);return(0,co.jsx)(d,{ref:A,children:L})});h.displayName=f;let p=t+"CollectionItemSlot",m="data-radix-collection-item",b=Ir(p),g=Ut.forwardRef((v,C)=>{let{scope:k,children:L,...E}=v,A=Ut.useRef(null),R=i(p,k),{setCollection:U,registryRef:Q}=R,M=Ut.useRef(E);ER(M.current,E)||(M.current=E);let _=M.current,D=Ut.useCallback(T=>{let ae=Q.current;T?ae.set(T,{...M.current,element:T}):A.current&&ae.delete(A.current)},[Q]),N=En(C,D,A);Rn(()=>{let T=A.current,ae=Q.current;T&&ae.has(T)&&ae.set(T,{..._,element:T})},[_,Q]);let X=Ut.useRef(null);return Ut.useEffect(()=>{let T=A.current,ae=X.current;(ae?.element??null)===T&&(!T||ae?.itemData===_)||(X.current=T?{element:T,itemData:_}:null,U(le=>{let $=new Zp(le);return ae&&ae.element!==T&&$.delete(ae.element),T&&$.set(T,{..._,element:T}),$.sort(Hp)}))}),Ut.useEffect(()=>()=>{let T=X.current;X.current=null,T&&U(ae=>{if(!ae.has(T.element))return ae;let le=new Zp(ae);return le.delete(T.element),le})},[U]),(0,co.jsx)(b,{[m]:"",ref:N,children:L})});g.displayName=p;function O(){return Ut.useState(new Zp)}zt(O,"useInitCollection");function x(v){let{collection:C}=s(t+"CollectionConsumer",v);return C}zt(x,"useCollection");function S(v){let{getCollection:C}=i(t+"CollectionConsumer",v);return C}return zt(S,"useGetCollection"),[{Provider:l,Slot:h,ItemSlot:g},{createCollectionScope:n,useCollection:x,useGetCollection:S,useInitCollection:O}]}zt(Zq,"createCollection");function ER(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),n=Object.keys(e);if(a.length!==n.length)return!1;for(let r of a)if(!Object.prototype.hasOwnProperty.call(e,r)||t[r]!==e[r])return!1;return!0}zt(ER,"shallowEqual");function _R(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}zt(_R,"isElementPreceding");function AR(t){let e;for(let a of t.keys()){if(e){let n=e.compareDocumentPosition(a);if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&n&Node.DOCUMENT_POSITION_PRECEDING)return!1}e=a}return!0}zt(AR,"isInDocumentOrder");function Hp(t,e){return!t[1].element||!e[1].element?0:_R(t[1].element,e[1].element)?-1:1}zt(Hp,"sortByDocumentPosition");function RR(t){return new MutationObserver(a=>{for(let n of a)if(n.type==="childList"){t();return}})}zt(RR,"getChildListObserver");var Ux=B(Ce(),1);var Fq=Object.defineProperty,Gq=(t,e)=>Fq(t,"name",{value:e,configurable:!0}),Hq=Ux[" useId ".trim().toString()]||(()=>{}),jq=0;function Ef(t){let[e,a]=Ux.useState(Hq());return Rn(()=>{t||a(n=>n??String(jq++))},[t]),t||(e?`radix-${e}`:"")}Gq(Ef,"useId");var _f=B(Ce(),1),Vq=Object.defineProperty,Yq=(t,e)=>Vq(t,"name",{value:e,configurable:!0}),TR=_f[" useInsertionEffect ".trim().toString()];function Xx(t){let e=_f.useRef(t);return typeof TR=="function"?TR(()=>{e.current=t}):Rn(()=>{e.current=t}),_f.useMemo(()=>((...a)=>e.current?.(...a)),[])}Yq(Xx,"useCallbackRef");var Tn=B(Ce(),1);var jp=!1;var tr=B(Ce(),1);var au=B(Ce(),1),Wq=Object.defineProperty,Kq=(t,e)=>Wq(t,"name",{value:e,configurable:!0}),IR=au[" useEffectEvent ".trim().toString()],PR=au[" useInsertionEffect ".trim().toString()];function qx(t){if(typeof IR=="function")return IR(t);let e=au.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof PR=="function"?PR(()=>{e.current=t}):Rn(()=>{e.current=t}),au.useMemo(()=>((...a)=>e.current?.(...a)),[])}Kq(qx,"useEffectEvent");var Jq=Object.defineProperty,Af=(t,e)=>Jq(t,"name",{value:e,configurable:!0}),eZ=Tn[" useInsertionEffect ".trim().toString()]||Rn;function Pr({prop:t,defaultProp:e,onChange:a=Af(()=>{},"onChange"),caller:n}){let[r,i,o]=DR({defaultProp:e,onChange:a}),s=t!==void 0,l=s?t:r;if(jp){let c=Tn.useRef(t!==void 0);Tn.useEffect(()=>{let f=c.current;f!==s&&console.warn(`${n} 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,n])}let u=Tn.useCallback(c=>{if(s){let f=QR(c)?c(t):c;f!==t&&o.current?.(f)}else i(c)},[s,t,i,o]);return[l,u]}Af(Pr,"useControllableState");function DR({defaultProp:t,onChange:e}){let[a,n]=Tn.useState(t),r=Tn.useRef(a),i=Tn.useRef(e);return eZ(()=>{i.current=e},[e]),Tn.useEffect(()=>{r.current!==a&&(i.current?.(a),r.current=a)},[a,r]),[a,n,i]}Af(DR,"useUncontrolledState");function QR(t){return typeof t=="function"}Af(QR,"isFunction");var MR=Symbol("RADIX:SYNC_STATE");function tZ(t,e,a,n){let{prop:r,defaultProp:i,onChange:o,caller:s}=e,l=r!==void 0,u=qx(o);if(jp){let b=tr.useRef(r!==void 0);tr.useEffect(()=>{let g=b.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.`),b.current=l},[l,s])}let c=[{...a,state:i}];n&&c.push(n);let[f,d]=tr.useReducer((b,g)=>{if(g.type===MR)return{...b,state:g.state};let O=t(b,g);return l&&!Object.is(O.state,b.state)&&u(O.state),O},...c),h=f.state,p=tr.useRef(h);tr.useEffect(()=>{p.current!==h&&(p.current=h,l||u(h))},[h,p,l]);let m=tr.useMemo(()=>r!==void 0?{...f,state:r}:f,[f,r]);return tr.useEffect(()=>{l&&!Object.is(r,f.state)&&d({type:MR,state:r})},[r,f.state,l]),[m,d]}Af(tZ,"useControllableStateReducer");var Vp=B(Ce(),1),rZ=B(ue(),1),aZ=Object.defineProperty,nZ=(t,e)=>aZ(t,"name",{value:e,configurable:!0}),iZ={LTR:"ltr",RTL:"rtl"},oZ=Vp.createContext(void 0);function Os(t){let e=Vp.useContext(oZ);return t||e||iZ.LTR}nZ(Os,"useDirection");var lZ=B(Ce(),1),Yp=B(Ce(),1),sZ=Object.defineProperty,Fx=(t,e)=>sZ(t,"name",{value:e,configurable:!0}),Zx=!1;function NR(){let[t,e]=Yp.useState(Zx);return Yp.useEffect(()=>{Zx||(Zx=!0,e(!0))},[]),t}Fx(NR,"useIsHydrated");var $R=lZ[" useSyncExternalStore ".trim().toString()];function BR(){return()=>{}}Fx(BR,"subscribe");function zR(){return $R(BR,()=>!0,()=>!1)}Fx(zR,"useIsHydratedModern");var UR=typeof $R=="function"?zR:NR;var fo=B(ue(),1),uZ=Object.defineProperty,bs=(t,e)=>uZ(t,"name",{value:e,configurable:!0}),Gx="rovingFocusGroup.onEntryFocus",cZ={bubbles:!1,cancelable:!0},Wp="RovingFocusGroup",[Hx,qR,fZ]=Bx(Wp),[dZ,nu]=Jn(Wp,[fZ]),XR={Vertical:"vertical",Horizontal:"horizontal"},hZ={LTR:"ltr",RTL:"rtl"},[pZ,mZ]=dZ(Wp),Kp=jt.forwardRef(bs(function(e,a){return(0,fo.jsx)(Hx.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,fo.jsx)(Hx.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,fo.jsx)(gZ,{...e,ref:a})})})},"RovingFocusGroup")),gZ=jt.forwardRef(bs(function(e,a){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...d}=e,h=jt.useRef(null),p=En(a,h),m=Os(o),[b,g]=Pr({prop:s,defaultProp:l??null,onChange:u,caller:Wp}),[O,x]=jt.useState(!1),S=Xx(c),y=qR(n),v=jt.useRef(!1),[C,k]=jt.useState(0);return jt.useEffect(()=>{let L=h.current;if(L)return L.addEventListener(Gx,S),()=>L.removeEventListener(Gx,S)},[S]),(0,fo.jsx)(pZ,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:b,onItemFocus:jt.useCallback(L=>g(L),[g]),onItemShiftTab:jt.useCallback(()=>x(!0),[]),onFocusableItemAdd:jt.useCallback(()=>k(L=>L+1),[]),onFocusableItemRemove:jt.useCallback(()=>k(L=>L-1),[]),children:(0,fo.jsx)(Ua.div,{tabIndex:O||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Xa(e.onMouseDown,()=>{v.current=!0}),onFocus:Xa(e.onFocus,L=>{let E=!v.current;if(L.target===L.currentTarget&&E&&!O){let A=new CustomEvent(Gx,cZ);if(L.currentTarget.dispatchEvent(A),!A.defaultPrevented){let R=y().filter(D=>D.focusable),U=R.find(D=>D.active),Q=R.find(D=>D.id===b),_=[U,Q,...R].filter(Boolean).map(D=>D.ref.current);jx(_,f)}}v.current=!1}),onBlur:Xa(e.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),OZ="RovingFocusGroupItem",Jp=jt.forwardRef(bs(function(e,a){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:s,...l}=e,u=Ef(),c=o||u,f=mZ(OZ,n),d=f.currentTabStopId===c,h=qR(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:b}=f,g=UR();return Rn(()=>{if(!(!g||!r))return p(),()=>m()},[g,r,p,m]),jt.useEffect(()=>{if(!(g||!r))return p(),()=>m()},[g,r,p,m]),(0,fo.jsx)(Hx.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:(0,fo.jsx)(Ua.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...l,ref:a,onMouseDown:Xa(e.onMouseDown,O=>{r?f.onItemFocus(c):O.preventDefault()}),onFocus:Xa(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:Xa(e.onKeyDown,O=>{if(O.key==="Tab"&&O.shiftKey){f.onItemShiftTab();return}if(O.target!==O.currentTarget)return;let x=FR(O,f.orientation,f.dir);if(x!==void 0){if(O.metaKey||O.ctrlKey||O.altKey||O.shiftKey)return;O.preventDefault();let y=h().filter(v=>v.focusable).map(v=>v.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();let v=y.indexOf(O.currentTarget);y=f.loop?GR(y,v+1):y.slice(v+1)}setTimeout(()=>jx(y))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:b!=null}):s})})},"RovingFocusGroupItem")),bZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ZR(t,e){return e!==hZ.RTL?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}bs(ZR,"getDirectionAwareKey");function FR(t,e,a){let n=ZR(t.key,a);if(!(e===XR.Vertical&&["ArrowLeft","ArrowRight"].includes(n))&&!(e===XR.Horizontal&&["ArrowUp","ArrowDown"].includes(n)))return bZ[n]}bs(FR,"getFocusIntent");function jx(t,e=!1){let a=document.activeElement;for(let n of t)if(n===a||(n.focus({preventScroll:e}),document.activeElement!==a))return}bs(jx,"focusFirst");function GR(t,e){return t.map((a,n)=>t[(e+n)%t.length])}bs(GR,"wrapArray");var jR=B(Ce(),1);var VR=B(ue(),1),xZ=Object.defineProperty,SZ=(t,e)=>xZ(t,"name",{value:e,configurable:!0}),yZ="Toggle",YR=jR.forwardRef(SZ(function(e,a){let{pressed:n,defaultPressed:r,onPressedChange:i,...o}=e,[s,l]=Pr({prop:n,onChange:i,defaultProp:r??!1,caller:yZ});return(0,VR.jsx)(Ua.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:a,onClick:Xa(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle"));var wa=B(ue(),1),vZ=Object.defineProperty,ho=(t,e)=>vZ(t,"name",{value:e,configurable:!0}),ru="ToggleGroup",Rf={Single:"single",Multiple:"multiple"},[KR,uae]=Jn(ru,[nu]),JR=nu(),eT=ka.forwardRef(ho(function(e,a){let{type:n,...r}=e;if(n===Rf.Single)return(0,wa.jsx)(CZ,{role:"radiogroup",...r,ref:a});if(n===Rf.Multiple)return(0,wa.jsx)(wZ,{role:"toolbar",...r,ref:a});throw new Error(`Missing prop \`type\` expected on \`${ru}\``)},"ToggleGroup")),[tT,aT]=KR(ru),CZ=ka.forwardRef(ho(function(e,a){let{value:n,defaultValue:r,onValueChange:i=ho(()=>{},"onValueChange"),...o}=e,[s,l]=Pr({prop:n,defaultProp:r??"",onChange:i,caller:ru});return(0,wa.jsx)(tT,{scope:e.__scopeToggleGroup,type:Rf.Single,value:ka.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:ka.useCallback(()=>l(""),[l]),children:(0,wa.jsx)(nT,{...o,ref:a})})},"ToggleGroupImplSingle")),wZ=ka.forwardRef(ho(function(e,a){let{value:n,defaultValue:r,onValueChange:i=ho(()=>{},"onValueChange"),...o}=e,[s,l]=Pr({prop:n,defaultProp:r??[],onChange:i,caller:ru}),u=ka.useCallback(f=>l((d=[])=>[...d,f]),[l]),c=ka.useCallback(f=>l((d=[])=>d.filter(h=>h!==f)),[l]);return(0,wa.jsx)(tT,{scope:e.__scopeToggleGroup,type:Rf.Multiple,value:s,onItemActivate:u,onItemDeactivate:c,children:(0,wa.jsx)(nT,{...o,ref:a})})},"ToggleGroupImplMultiple")),[kZ,LZ]=KR(ru),nT=ka.forwardRef(ho(function(e,a){let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:o,dir:s,loop:l=!0,...u}=e,c=JR(n),f=Os(s),d={dir:f,...u};return(0,wa.jsx)(kZ,{scope:n,rovingFocus:i,disabled:r,children:i?(0,wa.jsx)(Kp,{asChild:!0,...c,orientation:o,dir:f,loop:l,children:(0,wa.jsx)(Ua.div,{...d,ref:a})}):(0,wa.jsx)(Ua.div,{...d,ref:a})})},"ToggleGroupImpl")),Vx="ToggleGroupItem",rT=ka.forwardRef(ho(function(e,a){let n=aT(Vx,e.__scopeToggleGroup),r=LZ(Vx,e.__scopeToggleGroup),i=JR(e.__scopeToggleGroup),o=n.value.includes(e.value),s=r.disabled||e.disabled,l={...e,pressed:o,disabled:s},u=ka.useRef(null);return r.rovingFocus?(0,wa.jsx)(Jp,{asChild:!0,...i,focusable:!s,active:o,ref:u,children:(0,wa.jsx)(WR,{...l,ref:a})}):(0,wa.jsx)(WR,{...l,ref:a})},"ToggleGroupItem")),WR=ka.forwardRef(ho(function(e,a){let{__scopeToggleGroup:n,value:r,...i}=e,o=aT(Vx,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=o.type===Rf.Single?s:void 0;return(0,wa.jsx)(YR,{...l,...i,ref:a,onPressedChange:u=>{u?o.onItemActivate(r):o.onItemDeactivate(r)}})},"ToggleGroupItemImpl"));var Yx=B(ue(),1);function iT({className:t,...e}){return(0,Yx.jsx)(eT,{"data-slot":"toggle-group",className:Ke("flex w-fit items-center gap-0.5 rounded-lg bg-muted p-0.5",t),...e})}function oT({className:t,...e}){return(0,Yx.jsx)(rT,{"data-slot":"toggle-group-item",className:Ke("inline-flex h-6 min-w-6 items-center justify-center gap-1 rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-colors","hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50","data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-xs",t),...e})}var Wx=B(ue(),1);function ar({value:t,onChange:e,options:a,className:n=""}){return(0,Wx.jsx)(iT,{type:"single",value:t,onValueChange:r=>{r&&e(r)},className:n,children:a.map(r=>(0,Wx.jsx)(oT,{value:r.value,title:r.title,"aria-label":r.title,children:r.label},r.value))})}var wt=B(ue(),1),sT=[{value:"sp",label:"sp 390",width:390},{value:"tablet",label:"tablet 1024",width:1024},{value:"pc",label:"pc 1280",width:1280}],_Z=t=>sT.find(e=>e.value===t)?.width??1024;function lT({room:t,roomsPath:e,artifact:a,info:n}){let[r,i]=(0,Vt.useState)("tablet"),[o,s]=(0,Vt.useState)(!0),[l,u]=(0,Vt.useState)("artifact"),[c,f]=(0,Vt.useState)(()=>Date.now()),[d,h]=(0,Vt.useState)(()=>Date.now()),[p,m]=(0,Vt.useState)(n.hasThumb),[b,g]=(0,Vt.useState)(!1),O=(0,Vt.useRef)(null),x=(0,Vt.useRef)(null),S=(0,Vt.useRef)(null),y=(0,Vt.useRef)(null),v=(0,Vt.useCallback)(()=>{let E=O.current,A=x.current,R=S.current;if(!E||!A||!R)return;let U=_Z(r),Q=o?Math.min(1,Math.max(.2,(E.clientWidth-24)/U)):1,M=0;try{M=y.current?.contentDocument?.documentElement.scrollHeight??0}catch{M=0}M||(M=Math.max(420,E.clientHeight-24)),A.style.width=`${U}px`,A.style.height=`${M}px`,A.style.transform=`scale(${Q})`,R.style.width=`${Math.round(U*Q)}px`,R.style.height=`${Math.round(M*Q)}px`},[r,o]);(0,Vt.useEffect)(()=>{v()},[v,l]),(0,Vt.useEffect)(()=>{let E=O.current;if(!E)return;let A=new ResizeObserver(v);return A.observe(E),()=>A.disconnect()},[v]),rn("render-done",E=>{E.room&&E.room!==t||(m(!0),h(Date.now()))}),rn("change",E=>{let A=E.file.split("/").pop()??"";E.file.startsWith(`${e}/${t}/`)&&(A===a&&f(Date.now()),A===a.replace(/\.html?$/i,".png")&&(m(!0),h(Date.now())))});let C=async()=>{g(!0);try{await K_(t,r)}finally{g(!1)}},k=`/files/${e}/${t}/${a}?v=${c}`,L=`/files/${e}/${t}/${a.replace(/\.html?$/i,".png")}?v=${d}`;return(0,wt.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-col bg-card",children:[(0,wt.jsxs)("header",{className:"flex flex-wrap items-center gap-2 border-b border-border px-3 py-1.5",children:[(0,wt.jsx)(ar,{value:r,onChange:i,options:sT.map(E=>({value:E.value,label:E.label}))}),(0,wt.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-muted-foreground",children:[(0,wt.jsx)("input",{type:"checkbox",className:"size-3.5 accent-primary",checked:o,onChange:E=>s(E.target.checked)}),"fit"]}),(0,wt.jsx)(ar,{value:l,onChange:u,options:[{value:"artifact",label:"artifact"},{value:"png",label:"png"}]}),(0,wt.jsxs)(pt,{variant:"outline",size:"xs",disabled:b,onClick:()=>{C()},children:[(0,wt.jsx)(ye,{name:b?"loader":"image",className:b?"size-3.5 animate-spin":"size-3.5"}),"make png"]}),(0,wt.jsx)(pt,{variant:"ghost",size:"xs",className:"ml-auto",asChild:!0,children:(0,wt.jsxs)("a",{href:`/files/${e}/${t}/${a}`,target:"_blank",rel:"noopener noreferrer",children:["open raw",(0,wt.jsx)(ye,{name:"external",className:"size-3.5"})]})})]}),(0,wt.jsx)("div",{ref:O,className:"mr-scroll relative flex-1 overflow-auto bg-muted/20 p-3",children:n.hasArtifact?l==="artifact"?(0,wt.jsx)("div",{ref:S,className:"relative mx-auto",children:(0,wt.jsx)("div",{ref:x,className:"absolute top-0 left-0 origin-top-left overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:(0,wt.jsx)("iframe",{ref:y,src:k,onLoad:v,title:"artifact",className:"block h-full w-full border-0 bg-white"})})}):p?(0,wt.jsx)("img",{src:L,alt:"artifact thumbnail",className:"w-full rounded-lg border border-border bg-card"}):(0,wt.jsx)("div",{className:"mx-auto mt-16 max-w-sm rounded-lg border border-dashed border-border bg-card p-6 text-center text-sm text-muted-foreground",children:"No PNG yet. Use \u201Cmake png\u201D \u2014 it needs Playwright."}):(0,wt.jsxs)("div",{className:"mx-auto mt-16 max-w-sm rounded-lg border border-dashed border-border bg-card p-6 text-center text-sm text-muted-foreground",children:["No artifact yet \u2014 ",(0,wt.jsx)("span",{className:"font-mono",children:a}),". Ask the agent to create it."]})})]})}var Ff=B(Ce(),1);var iu=t=>t==null||!Number.isFinite(t)?"\u2014":t>=1e6?(t/1e6).toFixed(2)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t),Tf=t=>new Date(t??Date.now()).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});var uT=t=>t.replace(/\.md$/i,"");function cT(t){let e=/^\uFEFF?---\r?\n([\s\S]*?)\r?\n---\r?\n?/.exec(t);if(!e)return{rows:[],body:t};let a=[];for(let n of e[1].split(/\r?\n/)){let r=/^([A-Za-z0-9_-]+)\s*:\s*(.*)$/.exec(n);if(!r)continue;let i=r[1],o=r[2].trim().replace(/^["']|["']$/g,"");o=o.replace(/^\[(.*)\]$/,(s,l)=>l.split(",").map(u=>u.trim()).filter(Boolean).join(", ")),a.push({key:i,value:o})}return{rows:a,body:t.slice(e[0].length)}}var xs=["prose prose-sm max-w-none dark:prose-invert","prose-p:my-1.5 prose-pre:my-2","prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border","prose-code:before:content-none prose-code:after:content-none"].join(" ");var Mr=B(Ce(),1);var Yt=B(ue(),1),AZ=220,RZ=50;function fT({room:t,running:e,queue:a,onSubmit:n,onRemoveQueued:r}){let i=(0,Mr.useRef)(null),o=`modelroom.draft.${t}`,s=`modelroom.history.${t}`,[l,u]=(0,Mr.useState)(()=>Wn(o,"")),[c,f]=(0,Mr.useState)(()=>Wn(s,[])),[d,h]=(0,Mr.useState)(null),p=(0,Mr.useRef)("");(0,Mr.useEffect)(()=>{Kn(o,l)},[o,l]),(0,Mr.useEffect)(()=>{let O=i.current;O&&(O.style.height="auto",O.style.height=`${Math.min(O.scrollHeight,AZ)}px`)},[l]);let m=()=>{let O=l.trim();if(!O)return;n(O),u(""),h(null);let x=c.at(-1)===O?c:[...c,O].slice(-RZ);f(x),Kn(s,x)},b=O=>{let x=O.currentTarget;if(O.key==="ArrowUp"){let S=x.selectionStart===x.selectionEnd&&!x.value.slice(0,x.selectionStart).includes(`
|
|
15
|
+
`);if(!c.length||d===null&&!S)return;O.preventDefault(),d===null&&(p.current=x.value,h(c.length));let y=d===null?c.length-1:Math.max(0,d-1);h(y),u(c[y]??"");return}O.key==="ArrowDown"&&d!==null&&(O.preventDefault(),d<c.length-1?(h(d+1),u(c[d+1]??"")):(h(null),u(p.current)))},g=O=>{if(!O.nativeEvent.isComposing){if(O.key==="Enter"&&!O.shiftKey){O.preventDefault(),m();return}b(O)}};return(0,Yt.jsxs)("div",{className:"border-t border-border p-2",children:[a.length>0&&(0,Yt.jsx)("div",{className:"flex flex-wrap gap-1 px-0.5 pb-2",children:a.map((O,x)=>(0,Yt.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs text-muted-foreground",children:[(0,Yt.jsx)(ye,{name:"clock",className:"size-3"}),(0,Yt.jsx)("span",{className:"max-w-[16rem] truncate",children:O}),(0,Yt.jsx)("button",{type:"button","aria-label":"Remove queued prompt",onClick:()=>r(x),className:"rounded transition-colors hover:text-destructive",children:(0,Yt.jsx)(ye,{name:"x",className:"size-3"})})]},`${x}-${O}`))}),(0,Yt.jsxs)("div",{className:"flex flex-col gap-1 rounded-xl border border-border bg-background p-1.5 transition-colors focus-within:border-ring",children:[(0,Yt.jsx)("textarea",{ref:i,rows:1,value:l,spellCheck:!1,onChange:O=>{u(O.target.value),h(null)},onKeyDown:g,placeholder:"Ask the agent to change this room. It edits the room's files; the artifact updates here.",className:"mr-scroll w-full resize-none bg-transparent px-1.5 py-1 text-sm outline-none placeholder:text-muted-foreground"}),(0,Yt.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,Yt.jsx)("span",{className:"hidden text-[11px] text-muted-foreground sm:inline",children:"Enter to send \xB7 Shift+Enter for a new line"}),(0,Yt.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[e&&(0,Yt.jsxs)("span",{className:"hidden items-center gap-1 text-[11px] text-muted-foreground sm:flex",children:[(0,Yt.jsx)(ye,{name:"sparkles",className:"size-3"}),"agent is working\u2026"]}),(0,Yt.jsxs)(pt,{size:"sm",onClick:m,disabled:!l.trim(),children:[(0,Yt.jsx)(ye,{name:"send",className:"size-3.5"}),e?"Queue":"Send"]})]})]})]})]})}var du=B(Ce(),1);var Kx={};SC(Kx,{decode:()=>If,encode:()=>po,format:()=>ou,parse:()=>Pf});var dT={};function TZ(t){let e=dT[t];if(e)return e;e=dT[t]=[];for(let a=0;a<128;a++){let n=String.fromCharCode(a);e.push(n)}for(let a=0;a<t.length;a++){let n=t.charCodeAt(a);e[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return e}function em(t,e){typeof e!="string"&&(e=em.defaultChars);let a=TZ(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(n){let r="";for(let i=0,o=n.length;i<o;i+=3){let s=parseInt(n.slice(i+1,i+3),16);if(s<128){r+=a[s];continue}if((s&224)===192&&i+3<o){let l=parseInt(n.slice(i+4,i+6),16);if((l&192)===128){let u=s<<6&1984|l&63;u<128?r+="\uFFFD\uFFFD":r+=String.fromCharCode(u),i+=3;continue}}if((s&240)===224&&i+6<o){let l=parseInt(n.slice(i+4,i+6),16),u=parseInt(n.slice(i+7,i+9),16);if((l&192)===128&&(u&192)===128){let c=s<<12&61440|l<<6&4032|u&63;c<2048||c>=55296&&c<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(c),i+=6;continue}}if((s&248)===240&&i+9<o){let l=parseInt(n.slice(i+4,i+6),16),u=parseInt(n.slice(i+7,i+9),16),c=parseInt(n.slice(i+10,i+12),16);if((l&192)===128&&(u&192)===128&&(c&192)===128){let f=s<<18&1835008|l<<12&258048|u<<6&4032|c&63;f<65536||f>1114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),i+=9;continue}}r+="\uFFFD"}return r})}em.defaultChars=";/?:@&=+$,#";em.componentChars="";var If=em;var hT={};function IZ(t){let e=hT[t];if(e)return e;e=hT[t]=[];for(let a=0;a<128;a++){let n=String.fromCharCode(a);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2))}for(let a=0;a<t.length;a++)e[t.charCodeAt(a)]=t[a];return e}function tm(t,e,a){typeof e!="string"&&(a=e,e=tm.defaultChars),typeof a>"u"&&(a=!0);let n=IZ(e),r="";for(let i=0,o=t.length;i<o;i++){let s=t.charCodeAt(i);if(a&&s===37&&i+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(i+1,i+3))){r+=t.slice(i,i+3),i+=2;continue}if(s<128){r+=n[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<o){let l=t.charCodeAt(i+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(t[i]+t[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(t[i])}return r}tm.defaultChars=";/?:@&=+$,-_.!~*'()#";tm.componentChars="-_.!~*'()";var po=tm;function ou(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function am(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var PZ=/^([a-z0-9.+-]+:)/i,MZ=/:[0-9]*$/,DZ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,QZ=["<",">",'"',"`"," ","\r",`
|
|
16
|
+
`," "],NZ=["{","}","|","\\","^","`"].concat(QZ),$Z=["'"].concat(NZ),pT=["%","/","?",";","#"].concat($Z),mT=["/","?","#"],BZ=255,gT=/^[+a-z0-9A-Z_-]{0,63}$/,zZ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,OT={javascript:!0,"javascript:":!0},bT={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function UZ(t,e){if(t&&t instanceof am)return t;let a=new am;return a.parse(t,e),a}am.prototype.parse=function(t,e){let a,n,r,i=t;if(i=i.trim(),!e&&t.split("#").length===1){let u=DZ.exec(i);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let o=PZ.exec(i);if(o&&(o=o[0],a=o.toLowerCase(),this.protocol=o,i=i.substr(o.length)),(e||o||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(o&&OT[o])&&(i=i.substr(2),this.slashes=!0)),!OT[o]&&(r||o&&!bT[o])){let u=-1;for(let p=0;p<mT.length;p++)n=i.indexOf(mT[p]),n!==-1&&(u===-1||n<u)&&(u=n);let c,f;u===-1?f=i.lastIndexOf("@"):f=i.lastIndexOf("@",u),f!==-1&&(c=i.slice(0,f),i=i.slice(f+1),this.auth=c),u=-1;for(let p=0;p<pT.length;p++)n=i.indexOf(pT[p]),n!==-1&&(u===-1||n<u)&&(u=n);u===-1&&(u=i.length),i[u-1]===":"&&u--;let d=i.slice(0,u);i=i.slice(u),this.parseHost(d),this.hostname=this.hostname||"";let h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){let p=this.hostname.split(/\./);for(let m=0,b=p.length;m<b;m++){let g=p[m];if(g&&!g.match(gT)){let O="";for(let x=0,S=g.length;x<S;x++)g.charCodeAt(x)>127?O+="x":O+=g[x];if(!O.match(gT)){let x=p.slice(0,m),S=p.slice(m+1),y=g.match(zZ);y&&(x.push(y[1]),S.unshift(y[2])),S.length&&(i=S.join(".")+i),this.hostname=x.join(".");break}}}}this.hostname.length>BZ&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));let l=i.indexOf("?");return l!==-1&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),bT[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};am.prototype.parseHost=function(t){let e=MZ.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Pf=UZ;var nS={};SC(nS,{Any:()=>Jx,Cc:()=>eS,Cf:()=>XZ,P:()=>Mf,S:()=>tS,Z:()=>aS});var Jx=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eS=/[\0-\x1F\x7F-\x9F]/,XZ=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Mf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,tS=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802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var qZ=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function ZZ(t){return t===0||t>=55296&&t<=57343||t>1114111}function xT(t){return ZZ(t)?65533:t>=128&&t<=159&&qZ[t-128]||t}function ST(t){return t-1>>>0<127||t-160>>>0<55136?String.fromCharCode(t):String.fromCodePoint(xT(t))}var nr=(()=>{let t=new Uint8Array(127),e=0;for(let a=33;a<=126;a++)a!==34&&a!==36&&a!==92&&(t[a]=e++);return t})();function yT(t,e,a,n,r,i){let s=t.length,l=i*90,u=0,c=()=>{let L=nr[t.charCodeAt(u++)];return L<i?L:L*91-l+nr[t.charCodeAt(u++)]},f=a-n,d=a+r,h=new Int32Array(d);h.fill(-1,n,i),h.fill(-1,i+f,d);let p=new Int32Array(d),m=new Int32Array(d);function b(L,E){let A=0,R=E,U=E+L;for(;R<U;){let Q=nr[t.charCodeAt(u++)];if(Q<89)A+=Q,h[R++]=A;else if(Q===89){let M=nr[t.charCodeAt(u++)]+2;for(;M--;)h[R++]=++A}else{let M=nr[t.charCodeAt(u++)];A+=89+(M<90?M*91+nr[t.charCodeAt(u++)]:nr[t.charCodeAt(u++)]*8281+nr[t.charCodeAt(u++)]*91+nr[t.charCodeAt(u++)]),h[R++]=A}}}b(n,0),b(f,i);let g=new Int32Array(r*2),O=0,x=0;function S(L,E){for(let A=0;A<L;A++){let R=E+A,U=c(),Q=c();g[x*2]=U,g[x*2+1]=Q,x+=1,p[R]=O;let M=(h[U]<0?m[U]:1)+(h[Q]<0?m[Q]:1);m[R]=M,O+=M}}S(r-i+n,i+f),S(i-n,n);let y=new Uint16Array(O),v=0;for(let L=0;L<x;L++)for(let E=0;E<2;E++){let A=g[L*2+E],R=h[A];if(R<0){let U=p[A],Q=U+m[A];for(;U<Q;)y[v++]=y[U++]}else y[v++]=R}let C=new Uint16Array(e),k=0;for(;u<s;){let L=nr[t.charCodeAt(u++)];L>=i&&(L=L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)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61);var kt;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.FLAG13=8192]="FLAG13",t[t.BRANCH_LENGTH=8064]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE",t[t.VALUE_MASK=8191]="VALUE_MASK"})(kt||(kt={}));var ua;(function(t){t[t.AMP=38]="AMP",t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_X=120]="LOWER_X"})(ua||(ua={}));var nm=32,kT=21,FZ=2097151,rS=2047,LT=0;function GZ(t){let e=t>>>kT;return e===rS?LT:e}function ET(t){return t-ua.ZERO>>>0<=9}function HZ(t){return(t|nm)-ua.LOWER_A>>>0<=5}function _T(t){return(t|nm)-ua.LOWER_A>>>0<=25}function jZ(t){return t===ua.EQUALS||_T(t)||ET(t)}var CT;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(CT||(CT={}));var iS;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(iS||(iS={}));function VZ(t,e,a,n){let r=(e&kt.BRANCH_LENGTH)>>7,i=e&kt.JUMP_TABLE;if(i){if(r===0)return n===i?a:-1;let l=n-i;if(l>>>0>=r)return-1;let u=t[a+l];return u===0?-1:a+r+u-1&65535}if(r===0)return-1;let o=r+1>>1,s=a+o+r;for(let l=0;l<r;l++){let c=t[a+(l>>1)]>>((l&1)<<3)&255;if(c===n){let f=a+o+l;return s+t[f]&65535}if(c>n)return-1}return-1}function wT(t,e,a){return a===1?String.fromCharCode(t[e]&kt.VALUE_MASK):a===2?String.fromCharCode(t[e+1]):String.fromCharCode(t[e+1],t[e+2])}function YZ(t,e,a){let n=e+1,r=0,i=n;if(n<a&&(t.charCodeAt(n)|nm)===ua.LOWER_X)for(n+=1,i=n;n<a;){let s=t.charCodeAt(n);if(ET(s))r=r*16+(s-ua.ZERO);else if(HZ(s))r=r*16+((s|nm)-ua.LOWER_A+10);else break;n+=1}else for(;n<a;){let s=t.charCodeAt(n)-ua.ZERO;if(s>>>0>9)break;r=r*10+s,n+=1}if(n===i)return 0;n<a&&t.charCodeAt(n)===ua.SEMI&&(n+=1),r>1114111&&(r=1114112);let o=n-e;return o>=rS&&(LT=o,o=rS),o<<kT|r}function WZ(t,e,a){let n=vT,r=t.indexOf("&");if(r<0)return t;let i=t.length,o=0,s="",l=n[0],u=l&kt.JUMP_TABLE,c=(l&kt.BRANCH_LENGTH)>>7;do{let f=r+1,d=t.charCodeAt(f),h,p;if(d===ua.NUM){let m=YZ(t,f,i);h=GZ(m),e&&h>0&&t.charCodeAt(f+h-1)!==ua.SEMI&&(h=0),p=h===0?"":ST(m&FZ)}else if(_T(d)){h=0,p="";let m=d-u,b;if(m>>>0<c){let y=n[1+m];b=y===0?-1:c+y&65535}else b=-1;let g=0,O=0,x=b<0?0:n[b],S=f+1;e:for(;S<i;){for(;(x&(kt.VALUE_LENGTH|kt.FLAG13))===0&&(x&kt.JUMP_TABLE)!==0;){let k=x&kt.JUMP_TABLE,L=(x&kt.BRANCH_LENGTH)>>7;if(L===0){if(t.charCodeAt(S)!==k)break e;b+=1}else{let E=t.charCodeAt(S)-k;if(E>>>0>=L)break e;let A=n[b+1+E];if(A===0)break e;b=b+L+A&65535}if(x=n[b],S+=1,S>=i)break e}if((x&(kt.VALUE_LENGTH|kt.FLAG13))===kt.FLAG13){let k=(x&kt.BRANCH_LENGTH)>>7;if(t.charCodeAt(S)!==(x&kt.JUMP_TABLE))break;S+=1;let L=k-1,E=b+1,A=0;for(;A+1<L;A+=2){let R=n[E];if(t.charCodeAt(S)!==(R&255)||(S+=1,t.charCodeAt(S)!==(R>>8&255)))break e;S+=1,E+=1}if(A<L){if(t.charCodeAt(S)!==(n[E]&255))break;S+=1}b+=1+(k>>1),x=n[b];continue}let y=x>>>14,v=t.charCodeAt(S);if(y!==0){if(v===ua.SEMI){h=S-f+1,p=y===1?String.fromCharCode(x&kt.VALUE_MASK):wT(n,b,y);break}if(!e&&(x&kt.FLAG13)===0&&(h=S-f,g=b,O=y),y===1)break}let C=VZ(n,x,b+(y||1),v);if(C<0)break;b=C,x=n[b],S+=1}if(p===""){let y=x>>>14;y!==0&&!e&&(x&kt.FLAG13)===0&&(h=S-f,g=b,O=y),h>0&&(p=wT(n,g,O))}}else h=0,p="";h===0||a&&d!==ua.NUM&&t.charCodeAt(f+h-1)!==ua.SEMI&&f+h<i&&jZ(t.charCodeAt(f+h))?r=f:(o<r&&(s+=t.slice(o,r)),s+=p,r=o=f+h),t.charCodeAt(r)!==ua.AMP&&(r=t.indexOf("&",r))}while(r>=0);return s+t.slice(o)}function rm(t){return WZ(t,!0,!1)}var AT;(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(AT||(AT={}));var RT;(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(RT||(RT={}));var JZ=class{src_Any=Jx.source;src_Cc=eS.source;src_Z=aS.source;src_P=Mf.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(t={}){this.opts={...this.opts,...t}}set(t={}){return this.opts={...this.opts,...t},this.cache={},this}escapeRE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(t,e,a=4){let n=this.escapeRE(t),r=this.escapeRE(e),i=`(?:(?!${this.src_ZCc}|${n}|${r}).)`,o=`${n}${i}{0,1000}${r}`;for(let s=2;s<=a;s++)o=`${n}(?:${i}|${o}){0,1000}${r}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){let t="[0-9A-Fa-f]{1,4}",e=`(?:(?:${t}:${t})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${t}:){6}${e}|::(?:${t}:){5}${e}|(?:${t})?::(?:${t}:){4}${e}|(?:(?:${t}:){0,1}${t})?::(?:${t}:){3}${e}|(?:(?:${t}:){0,2}${t})?::(?:${t}:){2}${e}|(?:(?:${t}:){0,3}${t})?::${t}:${e}|(?:(?:${t}:){0,4}${t})?::${e}|(?:(?:${t}:){0,5}${t})?::${t}|(?:(?:${t}:){0,6}${t})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;let t=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${t||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uFF5C])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><\uFF5C]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},oS={validate:(t,e,a)=>{let n=a.re.get_http_validator();n.lastIndex=e;let r=n.exec(t);return r?r[0].length:0},normalize:(t,e)=>e.normalize(t)},eF={"http:":oS,"https:":oS,"ftp:":oS,"//":{validate:function(t,e,a){let n=a.re.get_relative_proto_validator();n.lastIndex=e;let r=n.exec(t);return r?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r[0].length:0},normalize:(t,e)=>e.normalize(t)},"mailto:":{validate:function(t,e,a){let n=a.re.get_mailto_validator();n.lastIndex=e;let r=n.exec(t);return r?r[0].length:0},normalize:(t,e)=>e.normalize(t)}},tF="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",aF="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444";function nF(){let t=aF.split("|");return tF.split("|").forEach(e=>{let a=e.indexOf(":"),n=e.slice(0,a);for(let r of e.slice(a+1))t.push(n+r)}),t}var rF={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:nF(),urlAuth:!1,maxLength:1e4},TT=class{schema;index;lastIndex;raw;text;url;constructor(t,e,a,n){let r=t.slice(a,n);this.schema=e.toLowerCase(),this.index=a,this.lastIndex=n,this.raw=r,this.text=r,this.url=r}},IT=class{__opts__;__schemas__;re;constructor(t={}){let{rebuilder:e,...a}=t;this.__opts__={...rF,...a},this.__schemas__={...eF},this.re=e||new JZ,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(t,e=null){if(!e)delete this.__schemas__[t];else{let a={normalize:(n,r)=>r.normalize(n),...e};this.__schemas__[t]=a}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(t={}){return this.__opts__={...this.__opts__,...t},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(t){if(!t.length)return!1;let e,a;for(a=this.re.get_schema_search(),a.lastIndex=0;(e=a.exec(t))!==null;)if(this.testSchemaAt(t,e[2],a.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(a=this.re.get_fuzzy_link_search(),a.lastIndex=0,a.exec(t)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&t.indexOf("@")>=0){let n=this.re.get_fuzzy_mail_host_search(),r=this.re.get_mail_name_validator();for(n.lastIndex=0;(e=n.exec(t))!==null;){let i=t.slice(Math.max(0,e.index-65),e.index);if(r.test(i))return!0}}return!1}testSchemaAt(t,e,a){return this.__schemas__[e.toLowerCase()]?this.__schemas__[e.toLowerCase()].validate(t.slice(0,a+this.__opts__.maxLength),a,this):0}match(t){let e=[],a=this.re.get_schema_search(),n,r,i,o,s,l,u=!1,c=!1,f=!1,d=0;if(!t.length)return null;for(a.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(r=this.re.get_fuzzy_mail_host_search(),r.lastIndex=0,i=this.re.get_mail_name_validator());;){let h=Math.max(d-1,0);if(r&&i&&!f&&(!s||s.index<d))for(r.lastIndex<h&&(r.lastIndex=h);;){let O=r.exec(t);if(!O){f=!0,s=void 0;break}let x=i.exec(t.slice(Math.max(0,O.index-65),O.index));if(x){if(s={schema:"mailto:",index:O.index-x[1].length,lastIndex:O.index+O[0].length},s.index>=d)break;r.lastIndex<h&&(r.lastIndex=h)}}if(n&&!c&&(!o||o.index<d))for(n.lastIndex<h&&(n.lastIndex=h);;){let O=n.exec(t);if(!O){c=!0,o=void 0;break}if(o={schema:"",index:O.index+O[1].length,lastIndex:O.index+O[0].length},o.index>=d)break;n.lastIndex<h&&(n.lastIndex=h)}let p=s;(!p||o&&(o.index<p.index||o.index===p.index&&o.lastIndex>p.lastIndex))&&(p=o);let m;if(!u)for(;;){if(!l){a.lastIndex<h&&(a.lastIndex=h);let S=a.exec(t);if(!S){u=!0;break}l={schema:S[2],index:S.index+S[1].length,lastIndex:S.index+S[0].length}}if(l.index<d){l=void 0;continue}if(p&&l.index>p.index)break;let O=l;l=void 0;let x=this.testSchemaAt(t,O.schema,O.lastIndex);if(x){m={schema:O.schema,index:O.index,lastIndex:O.lastIndex+x};break}}let b=m;if((!b||s&&(s.index<b.index||s.index===b.index&&s.lastIndex>b.lastIndex))&&(b=s),(!b||o&&(o.index<b.index||o.index===b.index&&o.lastIndex>b.lastIndex))&&(b=o),!b)break;b===s?s=void 0:b===o&&(o=void 0);let g=new TT(t,b.schema,b.index,b.lastIndex);g.schema?this.__schemas__[g.schema].normalize(g,this):this.normalize(g),e.push(g),d=b.lastIndex}return e.length?e:null}matchAtStart(t){if(!t.length)return null;let e=this.re.get_schema_at_start().exec(t);if(!e)return null;let a=this.testSchemaAt(t,e[2],e[0].length);if(!a)return null;let n=new TT(t,e[2],e.index+e[1].length,e.index+e[0].length+a);return this.__schemas__[n.schema].normalize(n,this),n}tlds(t,e=!1){return t=Array.isArray(t)?t:[t],e?this.__opts__.tlds=this.__opts__.tlds.concat(t):this.__opts__.tlds=t,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)}};var iF=/^xn--/,oF=/[^\0-\x7F]/,sF=/[\x2E\u3002\uFF0E\uFF61]/g,lF={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sS=35,Dr=Math.floor,lS=String.fromCharCode;function mo(t){throw new RangeError(lF[t])}function uF(t,e){let a=[],n=t.length;for(;n--;)a[n]=e(t[n]);return a}function MT(t,e){let a=t.split("@"),n="";a.length>1&&(n=a[0]+"@",t=a[1]),t=t.replace(sF,".");let r=t.split("."),i=uF(r,e).join(".");return n+i}function DT(t){let e=[],a=0,n=t.length;for(;a<n;){let r=t.charCodeAt(a++);if(r>=55296&&r<=56319&&a<n){let i=t.charCodeAt(a++);(i&64512)==56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),a--)}else e.push(r)}return e}var cF=t=>String.fromCodePoint(...t),fF=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},PT=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},QT=function(t,e,a){let n=0;for(t=a?Dr(t/700):t>>1,t+=Dr(t/e);t>sS*26>>1;n+=36)t=Dr(t/sS);return Dr(n+(sS+1)*t/(t+38))},NT=function(t){let e=[],a=t.length,n=0,r=128,i=72,o=t.lastIndexOf("-");o<0&&(o=0);for(let s=0;s<o;++s)t.charCodeAt(s)>=128&&mo("not-basic"),e.push(t.charCodeAt(s));for(let s=o>0?o+1:0;s<a;){let l=n;for(let c=1,f=36;;f+=36){s>=a&&mo("invalid-input");let d=fF(t.charCodeAt(s++));d>=36&&mo("invalid-input"),d>Dr((2147483647-n)/c)&&mo("overflow"),n+=d*c;let h=f<=i?1:f>=i+26?26:f-i;if(d<h)break;let p=36-h;c>Dr(2147483647/p)&&mo("overflow"),c*=p}let u=e.length+1;i=QT(n-l,u,l==0),Dr(n/u)>2147483647-r&&mo("overflow"),r+=Dr(n/u),n%=u,e.splice(n++,0,r)}return String.fromCodePoint(...e)},$T=function(t){let e=[];t=DT(t);let a=t.length,n=128,r=0,i=72;for(let l of t)l<128&&e.push(lS(l));let o=e.length,s=o;for(o&&e.push("-");s<a;){let l=2147483647;for(let c of t)c>=n&&c<l&&(l=c);let u=s+1;l-n>Dr((2147483647-r)/u)&&mo("overflow"),r+=(l-n)*u,n=l;for(let c of t)if(c<n&&++r>2147483647&&mo("overflow"),c===n){let f=r;for(let d=36;;d+=36){let h=d<=i?1:d>=i+26?26:d-i;if(f<h)break;let p=f-h,m=36-h;e.push(lS(PT(h+p%m,0))),f=Dr(p/m)}e.push(lS(PT(f,0))),i=QT(r,u,s===o),r=0,++s}++r,++n}return e.join("")},dF=function(t){return MT(t,function(e){return iF.test(e)?NT(e.slice(4).toLowerCase()):e})},hF=function(t){return MT(t,function(e){return oF.test(e)?"xn--"+$T(e):e})},pF={version:"2.3.1",ucs2:{decode:DT,encode:cF},decode:NT,encode:$T,toASCII:hF,toUnicode:dF};var uS=pF;var BT=Object.defineProperty,WT=(t,e)=>{let a={};for(var n in t)BT(a,n,{get:t[n],enumerable:!0});return e||BT(a,Symbol.toStringTag,{value:"Module"}),a},mF=WT({arrayReplaceAt:()=>gF,asciiTrim:()=>um,callable:()=>KT,escapeHtml:()=>go,escapeRE:()=>LF,fromCodePoint:()=>Qf,isMdAsciiPunct:()=>Bf,isPunctChar:()=>eI,isPunctCharCode:()=>$f,isSpace:()=>ut,isValidEntityCode:()=>mS,isWhiteSpace:()=>Nf,lib:()=>EF,normalizeReference:()=>lm,unescapeAll:()=>su,unescapeMd:()=>SF});function KT(t){let e=function(...a){return Reflect.construct(t,a,new.target&&new.target!==e?new.target:t)};return Object.defineProperty(e,"name",{value:t.name}),Object.setPrototypeOf(e,t),e.prototype=t.prototype,e}function gF(t,e,a){return[].concat(t.slice(0,e),a,t.slice(e+1))}function mS(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Qf(t){if(t>65535){t-=65536;let e=55296+(t>>10),a=56320+(t&1023);return String.fromCharCode(e,a)}return String.fromCharCode(t)}var JT=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,OF=new RegExp(`${JT.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),bF=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function xF(t,e){if(e.charCodeAt(0)===35&&bF.test(e)){let n=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return mS(n)?Qf(n):t}let a=rm(t);return a!==t?a:t}function SF(t){return t.indexOf("\\")<0?t:t.replace(JT,"$1")}function su(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(OF,function(e,a,n){return a||xF(e,n)})}var yF=/[&<>"]/,vF=/[&<>"]/g,CF={"&":"&","<":"<",">":">",'"':"""};function wF(t){return CF[t]}function go(t){return yF.test(t)?t.replace(vF,wF):t}var kF=/[.?*+^$[\]\\(){}|-]/g;function LF(t){return t.replace(kF,"\\$&")}function ut(t){switch(t){case 9:case 32:return!0}return!1}function Nf(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eI(t){return Mf.test(t)||tS.test(t)}function $f(t){return eI(Qf(t))}function Bf(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function lm(t){return t=t.trim().replace(/\s+/g," "),t.toLowerCase().toUpperCase()}function zT(t){return t===32||t===9||t===10||t===13}function um(t){let e=0;for(;e<t.length&&zT(t.charCodeAt(e));e++);let a=t.length-1;for(;a>=e&&zT(t.charCodeAt(a));a--);return t.slice(e,a+1)}var EF={mdurl:Kx,ucmicro:nS};function _F(t,e,a){let n,r,i,o,s=t.posMax,l=t.pos;for(t.pos=e+1,n=1;t.pos<s;){if(i=t.src.charCodeAt(t.pos),i===93&&(n--,n===0)){r=!0;break}if(o=t.pos,t.md.inline.skipToken(t),i===91){if(o===t.pos-1)n++;else if(a)return t.pos=l,-1}}let u=-1;return r&&(u=t.pos),t.pos=l,u}function AF(t,e,a){let n,r=e,i={ok:!1,pos:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<a;){if(n=t.charCodeAt(r),n===10||n===60)return i;if(n===62)return i.pos=r+1,i.str=su(t.slice(e+1,r)),i.ok=!0,i;if(n===92&&r+1<a){r+=2;continue}r++}return i}let o=0;for(;r<a&&(n=t.charCodeAt(r),!(n===32||n<32||n===127));){if(n===92&&r+1<a){if(t.charCodeAt(r+1)===32){r++;continue}r+=2;continue}if(n===40&&(o++,o>32))return i;if(n===41){if(o===0)break;o--}r++}return e===r||o!==0||(i.str=su(t.slice(e,r)),i.pos=r,i.ok=!0),i}function RF(t,e,a,n){let r,i=e,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(i>=a)return o;let s=t.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return o;e++,i++,s===40&&(s=41),o.marker=s}for(;i<a;){if(r=t.charCodeAt(i),r===o.marker)return o.pos=i+1,o.str+=su(t.slice(e,i)),o.ok=!0,o;if(r===40&&o.marker===41)return o;r===92&&i+1<a&&i++,i++}return o.can_continue=!0,o.str+=su(t.slice(e,i)),o}var TF=WT({parseLinkDestination:()=>AF,parseLinkLabel:()=>_F,parseLinkTitle:()=>RF});function zf(t){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zf(t)}function IF(t,e){if(zf(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var n=a.call(t,e||"default");if(zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function PF(t){var e=IF(t,"string");return zf(e)=="symbol"?e:e+""}function ne(t,e,a){return(e=PF(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var ys=class{constructor(t,e,a){ne(this,"map",null),ne(this,"level",0),ne(this,"children",null),ne(this,"content",""),ne(this,"markup",""),ne(this,"info",""),ne(this,"block",!1),ne(this,"hidden",!1),this.type=t,this.tag=e,this.attrs=null,this.nesting=a,this.meta=null}attrIndex(t){if(!this.attrs)return-1;let e=this.attrs;for(let a=0,n=e.length;a<n;a++)if(e[a][0]===t)return a;return-1}attrPush(t){this.attrs?this.attrs.push(t):this.attrs=[t]}attrSet(t,e){let a=this.attrIndex(t),n=[t,e];a<0?this.attrPush(n):this.attrs[a]=n}attrGet(t){let e=this.attrIndex(t),a=null;return e>=0&&(a=this.attrs[e][1]),a}attrJoin(t,e){let a=this.attrIndex(t);a<0?this.attrPush([t,e]):this.attrs[a][1]=`${this.attrs[a][1]} ${e}`}},Uf=class{constructor(){ne(this,"__rules__",[]),ne(this,"__cache__",null)}__find__(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1}__compile__(){let t=new Set;this.__rules__.forEach(e=>{e.enabled&&e.alt.forEach(a=>{a&&t.add(a)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[""].push(e.fn)}),t.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(a=>{a.enabled&&a.alt.indexOf(e)>=0&&this.__cache__[e].push(a.fn)})})}at(t,e,a={}){let n=this.__find__(t);if(n===-1)throw new Error(`Parser rule not found: ${t}`);this.__rules__[n].fn=e,this.__rules__[n].alt=a.alt||[],this.__cache__=null}before(t,e,a,n={}){let r=this.__find__(t);if(r===-1)throw new Error(`Parser rule not found: ${t}`);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null}after(t,e,a,n={}){let r=this.__find__(t);if(r===-1)throw new Error(`Parser rule not found: ${t}`);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null}push(t,e,a={}){this.__rules__.push({name:t,enabled:!0,fn:e,alt:a.alt||[]}),this.__cache__=null}enable(t,e=!1){Array.isArray(t)||(t=[t]);let a=[];return t.forEach(n=>{let r=this.__find__(n);if(r<0){if(e)return;throw new Error(`Rules manager: invalid rule name ${n}`)}this.__rules__[r].enabled=!0,a.push(n)}),this.__cache__=null,a}enableOnly(t,e=!1){Array.isArray(t)||(t=[t]),this.__rules__.forEach(a=>{a.enabled=!1}),this.enable(t,e)}disable(t,e=!1){Array.isArray(t)||(t=[t]);let a=[];return t.forEach(n=>{let r=this.__find__(n);if(r<0){if(e)return;throw new Error(`Rules manager: invalid rule name ${n}`)}this.__rules__[r].enabled=!1,a.push(n)}),this.__cache__=null,a}getRules(t){return this.__cache__||this.__compile__(),this.__cache__[t]||[]}},Qr={};Qr.code_inline=function(t,e,a,n,r){let i=t[e];return`<code${r.renderAttrs(i)}>${go(i.content)}</code>`};Qr.code_block=function(t,e,a,n,r){let i=t[e];return`<pre${r.renderAttrs(i)}><code>${go(t[e].content)}</code></pre>
|
|
17
|
+
`};Qr.fence=function(t,e,a,n,r){let i=t[e],o=i.info?su(i.info).trim():"",s="",l="";if(o){let c=o.split(/(\s+)/g);s=c[0],l=c.slice(2).join("")}let u;if(a.highlight?u=a.highlight(i.content,s,l)||go(i.content):u=go(i.content),u.indexOf("<pre")===0)return u+`
|
|
18
|
+
`;if(o){let c=i.attrIndex("class"),f=i.attrs?i.attrs.slice():[];c<0?f.push(["class",`${a.langPrefix}${s}`]):(f[c]=[f[c][0],f[c][1]],f[c][1]+=` ${a.langPrefix}${s}`);let d={attrs:f};return`<pre><code${r.renderAttrs(d)}>${u}</code></pre>
|
|
19
|
+
`}return`<pre><code${r.renderAttrs(i)}>${u}</code></pre>
|
|
20
|
+
`};Qr.image=function(t,e,a,n,r){let i=t[e];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,a,n),r.renderToken(t,e,a)};Qr.hardbreak=function(t,e,a){return a.xhtmlOut?`<br />
|
|
21
|
+
`:`<br>
|
|
22
|
+
`};Qr.softbreak=function(t,e,a){return a.breaks?a.xhtmlOut?`<br />
|
|
23
|
+
`:`<br>
|
|
24
|
+
`:`
|
|
25
|
+
`};Qr.text=function(t,e){return go(t[e].content)};Qr.html_block=function(t,e){return t[e].content};Qr.html_inline=function(t,e){return t[e].content};var tI=class{constructor(){ne(this,"rules",Object.assign({},Qr))}renderAttrs(t){let e,a,n;if(!t.attrs)return"";for(n="",e=0,a=t.attrs.length;e<a;e++)n+=` ${go(t.attrs[e][0])}="${go(String(t.attrs[e][1]))}"`;return n}renderToken(t,e,a){let n=t[e],r="";if(n.hidden)return"";let i=e-1;for(;i>=0&&t[i].hidden&&t[i].nesting===0;)i--;n.block&&n.nesting!==-1&&i>=0&&t[i].hidden&&t[i].nesting===-1&&(r+=`
|
|
26
|
+
`),r+=(n.nesting===-1?"</":"<")+n.tag,r+=this.renderAttrs(n),n.nesting===0&&a.xhtmlOut&&(r+=" /");let o=!1;if(n.block&&(o=!0,n.nesting===1)){let s=e+1;for(;s<t.length&&t[s].hidden&&t[s].nesting===0;)s++;if(s<t.length){let l=t[s];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===n.tag)&&(o=!1)}}return r+=o?`>
|
|
27
|
+
`:">",r}renderInline(t,e,a){let n="",r=this.rules;for(let i=0,o=t.length;i<o;i++){let s=t[i].type;typeof r[s]<"u"?n+=r[s](t,i,e,a,this):n+=this.renderToken(t,i,e)}return n}renderInlineAsText(t,e,a){let n="";for(let r=0,i=t.length;r<i;r++)switch(t[r].type){case"text":case"code_inline":n+=t[r].content;break;case"image":n+=this.renderInlineAsText(t[r].children,e,a);break;case"html_inline":case"html_block":n+=t[r].content;break;case"softbreak":case"hardbreak":n+=`
|
|
28
|
+
`}return n}render(t,e,a){let n="",r=this.rules;for(let i=0,o=t.length;i<o;i++){let s=t[i].type;s==="inline"?n+=this.renderInline(t[i].children,e,a):typeof r[s]<"u"?n+=r[s](t,i,e,a,this):n+=this.renderToken(t,i,e)}return n}},aI=class{constructor(t,e,a){ne(this,"tokens",[]),ne(this,"inlineMode",!1),ne(this,"Token",ys),this.src=t,this.env=a,this.md=e}},MF=/\r\n?/g,DF=/\0/g;function QF(t){let e;e=t.src.replace(MF,`
|
|
29
|
+
`),e=e.replace(DF,"\uFFFD"),t.src=e}function NF(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function $F(t){let e=t.tokens,a=0;for(let n=0;n<e.length;n++)e[n].type!=="reference_definition"&&(n!==a&&(e[a]=e[n]),a++);e.length!==a&&(e.length=a)}function BF(t){let e=t.tokens;for(let a=0,n=e.length;a<n;a++){let r=e[a];r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}}function zF(t){return/^<a[>\s]/i.test(t)}function UF(t){return/^<\/a\s*>/i.test(t)}function XF(t){let e=t.tokens;if(t.md.options.linkify)for(let a=0,n=e.length;a<n;a++){if(e[a].type!=="inline"||!t.md.linkify.test(e[a].content))continue;let r=e[a].children,i=[],o=0;for(let s=r.length-1;s>=0;s--){let l=r[s];if(l.type==="link_close"){for(s--;r[s].level!==l.level&&r[s].type!=="link_open";)s--;continue}if(l.type==="html_inline"&&(zF(l.content)&&o>0&&o--,UF(l.content)&&o++),!(o>0)&&l.type==="text"&&t.md.linkify.test(l.content)){let u=l.content,c=t.md.linkify.match(u),f=[],d=l.level,h=0;c.length>0&&c[0].index===0&&s>0&&r[s-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){let m=c[p].url,b=t.md.normalizeLink(m);if(!t.md.validateLink(b))continue;let g=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(g)?g=t.md.normalizeLinkText(`mailto:${g}`).replace(/^mailto:/,""):g=t.md.normalizeLinkText(g):g=t.md.normalizeLinkText(`http://${g}`).replace(/^http:\/\//,"");let O=c[p].index;if(O>h){let v=new t.Token("text","",0);v.content=u.slice(h,O),v.level=d,f.push(v)}let x=new t.Token("link_open","a",1);x.attrs=[["href",b]],x.level=d++,x.markup="linkify",x.info="auto",f.push(x);let S=new t.Token("text","",0);S.content=g,S.level=d,f.push(S);let y=new t.Token("link_close","a",-1);y.level=--d,y.markup="linkify",y.info="auto",f.push(y),h=c[p].lastIndex}if(h<u.length){let p=new t.Token("text","",0);p.content=u.slice(h),p.level=d,f.push(p)}i.push({index:s,nodes:f})}}if(i.length>0){let s=r.length;for(let f of i)s+=f.nodes.length-1;let l=new Array(s),u=0,c=0;i.reverse();for(let f=0;f<r.length;f++){let d=i[u];if(d?.index===f){for(let h of d.nodes)l[c++]=h;u++}else l[c++]=r[f]}e[a].children=l}}}var nI=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,qF=/\((c|tm|r)\)/i,ZF=/\((c|tm|r)\)/gi,FF={c:"\xA9",r:"\xAE",tm:"\u2122"};function GF(t,e){return FF[e.toLowerCase()]}function HF(t){let e=0;for(let a=t.length-1;a>=0;a--){let n=t[a];n.type==="text"&&!e&&(n.content=n.content.replace(ZF,GF)),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function jF(t){let e=0;for(let a=t.length-1;a>=0;a--){let n=t[a];n.type==="text"&&!e&&nI.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function VF(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(qF.test(t.tokens[e].content)&&HF(t.tokens[e].children),nI.test(t.tokens[e].content)&&jF(t.tokens[e].children))}var YF=/['"]/,UT=/['"]/g,XT="\u2019",WF=1e3;function qT(t,e,a){for(;t.length>a;){let n=t.pop();n.isSingleQuote?e.single=n.prevSameQuoteIdx:e.double=n.prevSameQuoteIdx}}function im(t,e,a,n){t[e]||(t[e]=[]),t[e].push({pos:a,ch:n})}function KF(t,e){let a="",n=0;e.sort((r,i)=>r.pos-i.pos);for(let r=0;r<e.length;r++){let i=e[r];a+=t.slice(n,i.pos)+i.ch,n=i.pos+1}return a+t.slice(n)}function JF(t,e){let a,n=[],r={single:-1,double:-1},i={};for(let o=0;o<t.length;o++){let s=t[o],l=t[o].level;for(a=n.length-1;a>=0&&!(n[a].level<=l);a--);if(qT(n,r,a+1),s.type!=="text")continue;let u=s.content,c=0,f=u.length;e:for(;c<f;){UT.lastIndex=c;let d=UT.exec(u);if(!d)break;let h=!0,p=!0;c=d.index+1;let m=d[0]==="'",b=32;if(d.index-1>=0)b=u.charCodeAt(d.index-1);else for(a=o-1;a>=0&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a--)if(t[a].content){b=t[a].content.charCodeAt(t[a].content.length-1);break}let g=32;if(c<f)g=u.charCodeAt(c);else for(a=o+1;a<t.length&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a++)if(t[a].content){g=t[a].content.charCodeAt(0);break}let O=Bf(b)||$f(b),x=Bf(g)||$f(g),S=Nf(b),y=Nf(g);if(y?h=!1:x&&(S||O||(h=!1)),S?p=!1:O&&(y||x||(p=!1)),g===34&&d[0]==='"'&&b>=48&&b<=57&&(p=h=!1),h&&p&&(h=O,p=x),!h&&!p){m&&im(i,o,d.index,XT);continue}if(p&&(a=m?r.single:r.double,a>=0&&n[a].level===l)){let v=n[a],C,k;m?(C=e.md.options.quotes[2],k=e.md.options.quotes[3]):(C=e.md.options.quotes[0],k=e.md.options.quotes[1]),im(i,o,d.index,k),im(i,v.tokenIdx,v.contentPos,C),qT(n,r,a);continue e}if(h){if(n.length>=WF)return;n.push({tokenIdx:o,contentPos:d.index,isSingleQuote:m,level:l,prevSameQuoteIdx:m?r.single:r.double}),m?r.single=n.length-1:r.double=n.length-1}else p&&m&&im(i,o,d.index,XT)}}Object.keys(i).forEach(function(o){let s=Number(o);t[s].content=KF(t[s].content,i[o])})}function e4(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!YF.test(t.tokens[e].content)||JF(t.tokens[e].children,t)}function t4(t){let e,a,n=t.length;for(e=0;e<n;e++)t[e].type==="text_special"&&(t[e].type="text");for(e=a=0;e<n;e++)t[e].type==="text"&&e+1<n&&t[e+1].type==="text"?t[e+1].content=t[e].content+t[e+1].content:(e!==a&&(t[a]=t[e]),a++);e!==a&&(t.length=a)}function a4(t){let e,a,n=t.tokens,r=n.length;for(let i=0;i<r;i++){if(n[i].type!=="inline")continue;let o=n[i].children,s=o.length;for(e=0;e<s;e++)o[e].type==="text_special"&&(o[e].type="text"),o[e].children&&t4(o[e].children);for(e=a=0;e<s;e++)o[e].type==="text"&&e+1<s&&o[e+1].type==="text"?o[e+1].content=o[e].content+o[e+1].content:(e!==a&&(o[a]=o[e]),a++);e!==a&&(o.length=a)}}var cS=[["normalize",QF],["block",NF],["strip_references",$F],["inline",BF],["linkify",XF],["replacements",VF],["smartquotes",e4],["text_join",a4]],rI=class{constructor(){ne(this,"ruler",new Uf),ne(this,"State",aI);for(let t=0;t<cS.length;t++)this.ruler.push(cS[t][0],cS[t][1])}process(t){let e=this.ruler.getRules("");for(let a=0,n=e.length;a<n;a++)e[a](t)}},iI=class{constructor(t,e,a,n){ne(this,"bMarks",[]),ne(this,"eMarks",[]),ne(this,"tShift",[]),ne(this,"sCount",[]),ne(this,"bsCount",[]),ne(this,"blkIndent",0),ne(this,"line",0),ne(this,"lineMax",0),ne(this,"tight",!1),ne(this,"listIndent",-1),ne(this,"parentType","root"),ne(this,"level",0),ne(this,"Token",ys),this.src=t,this.md=e,this.env=a,this.tokens=n;let r=this.src;for(let i=0,o=0,s=0,l=0,u=r.length,c=!1;o<u;o++){let f=r.charCodeAt(o);if(!c)if(ut(f)){s++,f===9?l+=4-l%4:l++;continue}else c=!0;(f===10||o===u-1)&&(f!==10&&o++,this.bMarks.push(i),this.eMarks.push(o),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),c=!1,s=0,l=0,i=o+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(t,e,a){let n=new ys(t,e,a);return n.block=!0,a<0&&this.level--,n.level=this.level,a>0&&this.level++,this.tokens.push(n),n}isEmpty(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]}skipEmptyLines(t){for(let e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t}skipSpaces(t){for(let e=this.src.length;t<e&&ut(this.src.charCodeAt(t));t++);return t}skipSpacesBack(t,e){if(t<=e)return t;for(;t>e;)if(!ut(this.src.charCodeAt(--t)))return t+1;return t}skipChars(t,e){for(let a=this.src.length;t<a&&this.src.charCodeAt(t)===e;t++);return t}skipCharsBack(t,e,a){if(t<=a)return t;for(;t>a;)if(e!==this.src.charCodeAt(--t))return t+1;return t}getLines(t,e,a,n){if(t>=e)return"";let r=new Array(e-t);for(let i=0,o=t;o<e;o++,i++){let s=0,l=this.bMarks[o],u=l,c;for(o+1<e||n?c=this.eMarks[o]+1:c=this.eMarks[o];u<c&&s<a;){let f=this.src.charCodeAt(u);if(ut(f))f===9?s+=4-(s+this.bsCount[o])%4:s++;else if(u-l<this.tShift[o])s++;else break;u++}s>a?r[i]=new Array(s-a+1).join(" ")+this.src.slice(u,c):r[i]=this.src.slice(u,c)}return r.join("")}},n4=65536;function fS(t,e){let a=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.slice(a,n)}function ZT(t){let e=[],a=t.length,n=0,r=t.charCodeAt(n),i=!1,o=0,s="";for(;n<a;)r===124&&(i?(s+=t.substring(o,n-1),o=n):(e.push(s+t.substring(o,n)),s="",o=n+1)),i=r===92,n++,r=t.charCodeAt(n);return e.push(s+t.substring(o)),e}function r4(t,e,a,n){if(e+2>a)return!1;let r=e+1;if(t.sCount[r]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)return!1;let i=t.bMarks[r]+t.tShift[r];if(i>=t.eMarks[r])return!1;let o=t.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58||i>=t.eMarks[r])return!1;let s=t.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!ut(s)||o===45&&ut(s))return!1;for(;i<t.eMarks[r];){let S=t.src.charCodeAt(i);if(S!==124&&S!==45&&S!==58&&!ut(S))return!1;i++}let l=fS(t,e+1),u=l.split("|"),c=[];for(let S=0;S<u.length;S++){let y=u[S].trim();if(!y){if(S===0||S===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?c.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?c.push("left"):c.push("")}if(l=fS(t,e).trim(),l.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;u=ZT(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();let f=u.length;if(f===0||f!==c.length)return!1;if(n)return!0;let d=t.parentType;t.parentType="table";let h=t.md.block.ruler.getRules("blockquote"),p=t.push("table_open","table",1),m=[e,0];p.map=m;let b=t.push("thead_open","thead",1);b.map=[e,e+1];let g=t.push("tr_open","tr",1);g.map=[e,e+1];for(let S=0;S<u.length;S++){let y=t.push("th_open","th",1);c[S]&&(y.attrs=[["style",`text-align:${c[S]}`]]);let v=t.push("inline","",0);v.content=u[S].trim(),v.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let O,x=0;for(r=e+2;r<a&&!(t.sCount[r]<t.blkIndent);r++){let S=!1;for(let v=0,C=h.length;v<C;v++)if(h[v](t,r,a,!0)){S=!0;break}if(S||(l=fS(t,r).trim(),!l)||t.sCount[r]-t.blkIndent>=4||(u=ZT(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),x+=f-u.length,x>n4))break;if(r===e+2){let v=t.push("tbody_open","tbody",1);v.map=O=[e+2,0]}let y=t.push("tr_open","tr",1);y.map=[r,r+1];for(let v=0;v<f;v++){let C=t.push("td_open","td",1);c[v]&&(C.attrs=[["style",`text-align:${c[v]}`]]);let k=t.push("inline","",0);k.content=u[v]?u[v].trim():"",k.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return O&&(t.push("tbody_close","tbody",-1),O[1]=r),t.push("table_close","table",-1),m[1]=r,t.parentType=d,t.line=r,!0}function i4(t,e,a){if(t.sCount[e]-t.blkIndent<4)return!1;let n=e+1,r=n;for(;n<a;){if(t.isEmpty(n)){n++;continue}if(t.sCount[n]-t.blkIndent>=4){n++,r=n;continue}break}t.line=r;let i=t.push("code_block","code",0);return i.content=t.getLines(e,r,4+t.blkIndent,!1)+`
|
|
30
|
+
`,i.map=[e,t.line],!0}function o4(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||r+3>i)return!1;let o=t.src.charCodeAt(r);if(o!==126&&o!==96)return!1;let s=r;r=t.skipChars(r,o);let l=r-s;if(l<3)return!1;let u=t.src.slice(s,r),c=t.src.slice(r,i);if(o===96&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let f=e,d=!1;for(;f++,!(f>=a||(r=s=t.bMarks[f]+t.tShift[f],i=t.eMarks[f],r<i&&t.sCount[f]<t.blkIndent));)if(t.src.charCodeAt(r)===o&&!(t.sCount[f]-t.blkIndent>=4)&&(r=t.skipChars(r,o),!(r-s<l)&&(r=t.skipSpaces(r),!(r<i)))){d=!0;break}l=t.sCount[e],t.line=f+(d?1:0);let h=t.push("fence","code",0);return h.info=c,h.content=t.getLines(e+1,f,l,!0),h.markup=u,h.map=[e,t.line],!0}function s4(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],o=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(r)!==62)return!1;if(n)return!0;let s=[],l=[],u=[],c=[],f=t.md.block.ruler.getRules("blockquote"),d=t.parentType;t.parentType="blockquote";let h=!1,p;for(p=e;p<a;p++){let x=t.sCount[p]<t.blkIndent;if(r=t.bMarks[p]+t.tShift[p],i=t.eMarks[p],r>=i)break;if(t.src.charCodeAt(r++)===62&&!x){let y=t.sCount[p]+1,v,C;t.src.charCodeAt(r)===32?(r++,y++,C=!1,v=!0):t.src.charCodeAt(r)===9?(v=!0,(t.bsCount[p]+y)%4===3?(r++,y++,C=!1):C=!0):v=!1;let k=y;for(s.push(t.bMarks[p]),t.bMarks[p]=r;r<i;){let L=t.src.charCodeAt(r);if(ut(L))L===9?k+=4-(k+t.bsCount[p]+(C?1:0))%4:k++;else break;r++}h=r>=i,l.push(t.bsCount[p]),t.bsCount[p]=t.sCount[p]+1+(v?1:0),u.push(t.sCount[p]),t.sCount[p]=k-y,c.push(t.tShift[p]),t.tShift[p]=r-t.bMarks[p];continue}if(h)break;let S=!1;for(let y=0,v=f.length;y<v;y++)if(f[y](t,p,a,!0)){S=!0;break}if(S){t.lineMax=p,t.blkIndent!==0&&(s.push(t.bMarks[p]),l.push(t.bsCount[p]),c.push(t.tShift[p]),u.push(t.sCount[p]),t.sCount[p]-=t.blkIndent);break}s.push(t.bMarks[p]),l.push(t.bsCount[p]),c.push(t.tShift[p]),u.push(t.sCount[p]),t.sCount[p]=-1}let m=t.blkIndent;t.blkIndent=0;let b=t.push("blockquote_open","blockquote",1);b.markup=">";let g=[e,0];b.map=g,t.md.block.tokenize(t,e,p);let O=t.push("blockquote_close","blockquote",-1);O.markup=">",t.lineMax=o,t.parentType=d,g[1]=t.line;for(let x=0;x<c.length;x++)t.bMarks[x+e]=s[x],t.tShift[x+e]=c[x],t.sCount[x+e]=u[x],t.bsCount[x+e]=l[x];return t.blkIndent=m,!0}function l4(t,e,a,n){let r=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let i=t.bMarks[e]+t.tShift[e],o=t.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;i<r;){let u=t.src.charCodeAt(i++);if(u!==o&&!ut(u))return!1;u===o&&s++}if(s<3)return!1;if(n)return!0;t.line=e+1;let l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0}function FT(t,e){let a=t.eMarks[e],n=t.bMarks[e]+t.tShift[e],r=t.src.charCodeAt(n++);return r!==42&&r!==45&&r!==43||n<a&&!ut(t.src.charCodeAt(n))?-1:n}function GT(t,e){let a=t.bMarks[e]+t.tShift[e],n=t.eMarks[e],r=a;if(r+1>=n)return-1;let i=t.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=n)return-1;if(i=t.src.charCodeAt(r++),i>=48&&i<=57){if(r-a>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<n&&(i=t.src.charCodeAt(r),!ut(i))?-1:r}function u4(t,e){let a=t.level+2;for(let n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===a&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}function c4(t,e,a,n){let r,i,o,s,l=e,u=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let c=!1;n&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(c=!0);let f,d,h;if((h=GT(t,l))>=0){if(f=!0,o=t.bMarks[l]+t.tShift[l],d=Number(t.src.slice(o,h-1)),c&&d!==1)return!1}else if((h=FT(t,l))>=0)f=!1;else return!1;if(c&&t.skipSpaces(h)>=t.eMarks[l])return!1;if(n)return!0;let p=t.src.charCodeAt(h-1),m=t.tokens.length;f?(s=t.push("ordered_list_open","ol",1),d!==1&&(s.attrs=[["start",d]])):s=t.push("bullet_list_open","ul",1);let b=[l,0];s.map=b,s.markup=String.fromCharCode(p);let g=!1,O=t.md.block.ruler.getRules("list"),x=t.parentType;for(t.parentType="list";l<a;){i=h,r=t.eMarks[l];let S=t.sCount[l]+h-(t.bMarks[l]+t.tShift[l]),y=S;for(;i<r;){let M=t.src.charCodeAt(i);if(M===9)y+=4-(y+t.bsCount[l])%4;else if(M===32)y++;else break;i++}let v=i,C;v>=r?C=1:C=y-S,C>4&&(C=1);let k=S+C;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(p);let L=[l,0];s.map=L,f&&(s.info=t.src.slice(o,h-1));let E=t.tight,A=t.tShift[l],R=t.sCount[l],U=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=k,t.tight=!0,t.tShift[l]=v-t.bMarks[l],t.sCount[l]=y,v>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,a):t.md.block.tokenize(t,l,a),(!t.tight||g)&&(u=!1),g=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=U,t.tShift[l]=A,t.sCount[l]=R,t.tight=E,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),l=t.line,L[1]=l,l>=a||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let Q=!1;for(let M=0,_=O.length;M<_;M++)if(O[M](t,l,a,!0)){Q=!0;break}if(Q)break;if(f){if(h=GT(t,l),h<0)break;o=t.bMarks[l]+t.tShift[l]}else if(h=FT(t,l),h<0)break;if(p!==t.src.charCodeAt(h-1))break}return f?s=t.push("ordered_list_close","ol",-1):s=t.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),b[1]=l,t.line=l,t.parentType=x,u&&u4(t,m),!0}var dS=999;function f4(t){let e=t.length;for(let a=0;a<t.length-1;a++){let n=t.charCodeAt(a);if(n<55296||n>56319)continue;let r=t.charCodeAt(a+1);r>=56320&&r<=57343&&(e--,a++)}return e}function Df(t,e){return Math.min(t.eMarks[e]+1,t.src.length)}function om(t,e){let a=t.lineMax;if(e>=a||t.isEmpty(e))return-1;let n=!1;if(t.sCount[e]-t.blkIndent>3&&(n=!0),t.sCount[e]<0&&(n=!0),!n){let r=t.md.block.ruler.getRules("reference"),i=t.parentType;t.parentType="reference";let o=!1;for(let s=0,l=r.length;s<l;s++)if(r[s](t,e,a,!0)){o=!0;break}if(t.parentType=i,o)return-1}return t.bMarks[e]+t.tShift[e]}function d4(t,e,a,n){let r=t.src,i=t.bMarks[e]+t.tShift[e],o=e+1;if(t.sCount[e]-t.blkIndent>=4||r.charCodeAt(i)!==91)return!1;let s=Df(t,e),l="",u=-1,c=++i;for(;i<s;){if(l.length+i-c>dS*2)return!1;let v=r.charCodeAt(i);if(v===91)return!1;if(v===93){u=i;break}if(v===92&&(v=r.charCodeAt(++i)),v===10&&i<s){let C=om(t,o);if(C<0)return!1;l+=r.slice(c,s),i=c=C,s=Df(t,o++);continue}i++}if(u<0||r.charCodeAt(u+1)!==58||(l+=r.slice(c,u),l.length>dS&&f4(l)>dS))return!1;for(i=u+2;i<s;){let v=r.charCodeAt(i);if(v===10){let C=om(t,o);if(C<0)break;i=C,s=Df(t,o++)}else if(ut(v))i++;else break}let f=t.md.helpers.parseLinkDestination(r,i,s);if(!f.ok)return!1;let d=t.md.normalizeLink(f.str);if(!t.md.validateLink(d))return!1;i=f.pos;let h=i,p=s,m=o;for(;i<s;){let v=r.charCodeAt(i);if(v===10){let C=om(t,o);if(C<0)break;i=C,s=Df(t,o++)}else if(ut(v))i++;else break}let b=i,g=t.md.helpers.parseLinkTitle(r,i,s);for(;g.can_continue;){let v=om(t,o);if(v<0)break;i=v,s=Df(t,o++),g=t.md.helpers.parseLinkTitle(r,i,s,g)}let O;for(b!==h&&g.ok?(O=g.str,i=g.pos):(O="",i=h,s=p,o=m);i<s&&ut(r.charCodeAt(i));)i++;if(i<s&&r.charCodeAt(i)!==10&&O)for(O="",i=h,s=p,o=m;i<s&&ut(r.charCodeAt(i));)i++;if(i<s&&r.charCodeAt(i)!==10)return!1;let x=lm(l);if(!x)return!1;if(n)return!0;typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[x]>"u"&&(t.env.references[x]={title:O,href:d});let S=t.push("reference_definition","",0);S.map=[e,o],S.hidden=!0;let y=Object.create(null);return y.label=x,S.meta=y,t.line=o,!0}var h4=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],oI=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,sI="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";new RegExp(`^(?:${oI}|${sI}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var lI=new RegExp(`^(?:${oI}|${sI})`),Ss=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${h4.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${lI.source}\\s*$`),/^$/,!1]];function p4(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(r)!==60)return!1;let o=t.src.slice(r,i),s=0;for(;s<Ss.length&&!Ss[s][0].test(o);s++);if(s===Ss.length)return!1;if(n)return Ss[s][2];let l=e+1,u=Ss[s][1].test("");if(!Ss[s][1].test(o)){for(;l<a&&!(t.sCount[l]<t.blkIndent&&(u||!t.isEmpty(l)));l++)if(r=t.bMarks[l]+t.tShift[l],i=t.eMarks[l],o=t.src.slice(r,i),Ss[s][1].test(o)){o.length!==0&&l++;break}}t.line=l;let c=t.push("html_block","",0);return c.map=[e,l],c.content=t.getLines(e,l,t.blkIndent,!0),!0}function m4(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.src.charCodeAt(r);if(o!==35||r>=i)return!1;let s=1;for(o=t.src.charCodeAt(++r);o===35&&r<i&&s<=6;)s++,o=t.src.charCodeAt(++r);if(s>6||r<i&&!ut(o))return!1;if(n)return!0;i=t.skipSpacesBack(i,r);let l=t.skipCharsBack(i,35,r);l>r&&ut(t.src.charCodeAt(l-1))&&(i=l),t.line=e+1;let u=t.push("heading_open",`h${s}`,1);u.markup="########".slice(0,s),u.map=[e,t.line];let c=t.push("inline","",0);c.content=um(t.src.slice(r,i)),c.map=[e,t.line],c.children=[];let f=t.push("heading_close",`h${s}`,-1);return f.markup="########".slice(0,s),!0}function g4(t,e,a){let n=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;let r=t.parentType;t.parentType="paragraph";let i=0,o,s=e+1;for(;s<a&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let h=t.bMarks[s]+t.tShift[s],p=t.eMarks[s];if(h<p&&(o=t.src.charCodeAt(h),(o===45||o===61)&&(h=t.skipChars(h,o),h=t.skipSpaces(h),h>=p))){i=o===61?1:2;break}}if(t.sCount[s]<0)continue;let d=!1;for(let h=0,p=n.length;h<p;h++)if(n[h](t,s,a,!0)){d=!0;break}if(d)break}if(!i)return t.parentType=r,!1;let l=um(t.getLines(e,s,t.blkIndent,!1));t.line=s+1;let u=t.push("heading_open",`h${i}`,1);u.markup=String.fromCharCode(o),u.map=[e,t.line];let c=t.push("inline","",0);c.content=l,c.map=[e,t.line-1],c.children=[];let f=t.push("heading_close",`h${i}`,-1);return f.markup=String.fromCharCode(o),t.parentType=r,!0}function O4(t,e,a){let n=t.md.block.ruler.getRules("paragraph"),r=t.parentType,i=e+1;for(t.parentType="paragraph";i<a&&!t.isEmpty(i);i++){if(t.sCount[i]-t.blkIndent>3||t.sCount[i]<0)continue;let u=!1;for(let c=0,f=n.length;c<f;c++)if(n[c](t,i,a,!0)){u=!0;break}if(u)break}let o=um(t.getLines(e,i,t.blkIndent,!1));t.line=i;let s=t.push("paragraph_open","p",1);s.map=[e,t.line];let l=t.push("inline","",0);return l.content=o,l.map=[e,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=r,!0}var sm=[["table",r4,["paragraph","reference"]],["code",i4],["fence",o4,["paragraph","reference","blockquote","list"]],["blockquote",s4,["paragraph","reference","blockquote","list"]],["hr",l4,["paragraph","reference","blockquote","list"]],["list",c4,["paragraph","reference","blockquote"]],["reference",d4],["html_block",p4,["paragraph","reference","blockquote"]],["heading",m4,["paragraph","reference","blockquote"]],["lheading",g4],["paragraph",O4]],uI=class{constructor(){ne(this,"ruler",new Uf),ne(this,"State",iI);for(let t=0;t<sm.length;t++)this.ruler.push(sm[t][0],sm[t][1],{alt:(sm[t][2]||[]).slice()})}tokenize(t,e,a){let n=this.ruler.getRules(""),r=n.length,i=t.md.options.maxNesting,o=e,s=!1;for(;o<a&&(t.line=o=t.skipEmptyLines(o),!(o>=a||t.sCount[o]<t.blkIndent));){if(t.level>=i){t.line=a;break}let l=t.line,u=!1;for(let c=0;c<r;c++)if(u=n[c](t,o,a,!1),u){if(l>=t.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),o=t.line,o<a&&t.isEmpty(o)&&(s=!0,o++,t.line=o)}}parse(t,e,a,n){if(!t)return;let r=new this.State(t,e,a,n);this.tokenize(r,r.line,r.lineMax)}},cI=class{constructor(t,e,a,n){ne(this,"pos",0),ne(this,"level",0),ne(this,"pending",""),ne(this,"pendingLevel",0),ne(this,"cache",{}),ne(this,"backticks",{}),ne(this,"backticksScanned",!1),ne(this,"skipHtmlSpecial",!1),ne(this,"linkLevel",0),ne(this,"delimiters",[]),ne(this,"_prev_delimiters",[]),ne(this,"Token",ys),this.src=t,this.env=a,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.posMax=this.src.length}pushPending(){let t=new ys("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t}push(t,e,a){this.pending&&this.pushPending();let n=new ys(t,e,a),r;return a<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,a>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n}scanDelims(t,e){let a=this.posMax,n=this.src.charCodeAt(t),r;if(t===0)r=32;else if(t===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(t-1),(r&64512)===56320){let p=this.src.charCodeAt(t-2);r=(p&64512)===55296?65536+(p-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let i=t;for(;i<a&&this.src.charCodeAt(i)===n;)i++;let o=i-t,s=i<a?this.src.charCodeAt(i):32;if((s&64512)===55296){let p=this.src.charCodeAt(i+1);s=(p&64512)===56320?65536+(s-55296<<10)+(p-56320):65533}else(s&64512)===56320&&(s=65533);let l=Bf(r)||$f(r),u=Bf(s)||$f(s),c=Nf(r),f=Nf(s),d=!f&&(!u||c||l),h=!c&&(!l||f||u);return{can_open:d&&(e||!h||l),can_close:h&&(e||!d||u),length:o}}};function b4(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function x4(t,e){let a=t.pos;for(;a<t.posMax&&!b4(t.src.charCodeAt(a));)a++;return a===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,a)),t.pos=a,!0)}function S4(t){return t>=65&&t<=90||t>=97&&t<=122}function y4(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===45||t===46}function v4(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;let a=t.pos,n=t.posMax;if(a+3>n||t.src.charCodeAt(a)!==58||t.src.charCodeAt(a+1)!==47||t.src.charCodeAt(a+2)!==47)return!1;let r=a-Math.min(10,t.pending.length,a),i=a;for(;i>r&&y4(t.src.charCodeAt(i-1));)i--;if(i===a||!S4(t.src.charCodeAt(i)))return!1;let o=a-i,s=t.md.linkify.matchAtStart(t.src.slice(i));if(!s)return!1;let l=s.url;if(l.length<=o)return!1;let u=l.length;for(;u>0&&l.charCodeAt(u-1)===42;)u--;u!==l.length&&(l=l.slice(0,u));let c=t.md.normalizeLink(l);if(!t.md.validateLink(c))return!1;if(!e){t.pending=t.pending.slice(0,-o);let f=t.push("link_open","a",1);f.attrs=[["href",c]],f.markup="linkify",f.info="auto";let d=t.push("text","",0);d.content=t.md.normalizeLinkText(l);let h=t.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return t.pos+=l.length-o,!0}function C4(t,e){let a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;let n=t.pending.length-1,r=t.posMax;if(!e)if(n>=0&&t.pending.charCodeAt(n)===32)if(n>=1&&t.pending.charCodeAt(n-1)===32){let i=n-1;for(;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a<r&&ut(t.src.charCodeAt(a));)a++;return t.pos=a,!0}var gS=[];for(let t=0;t<256;t++)gS.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){gS[t.charCodeAt(0)]=1});function w4(t,e){let a=t.pos,n=t.posMax;if(t.src.charCodeAt(a)!==92||(a++,a>=n))return!1;let r=t.src.charCodeAt(a);if(r===10){for(e||t.push("hardbreak","br",0),a++;a<n&&(r=t.src.charCodeAt(a),!!ut(r));)a++;return t.pos=a,!0}if(r===32){if(!e){let s=t.push("text_special","",0);s.content="\\",s.markup="\\",s.info="escape"}return t.pos=a,!0}let i=t.src[a];if(r>=55296&&r<=56319&&a+1<n){let s=t.src.charCodeAt(a+1);s>=56320&&s<=57343&&(i+=t.src[a+1],a++)}let o="\\"+i;if(!e){let s=t.push("text_special","",0);r<256&&gS[r]!==0?s.content=i:s.content=o,s.markup=o,s.info="escape"}return t.pos=a+1,!0}function k4(t){let e={},a=0;for(;(a=t.indexOf("`",a))!==-1;){let n=a;for(;t.charCodeAt(++a)===96;);e[a-n]=n}return e}function L4(t,e){var a;let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;let r=t.posMax,i=n+1;for(;i<r&&t.src.charCodeAt(i)===96;)i++;let o=t.src.slice(n,i),s=o.length;if(t.backticksScanned||(t.backticks=k4(t.src),t.backticksScanned=!0),((a=t.backticks[s])!==null&&a!==void 0?a:-1)>=i){let l=i,u;for(;(u=t.src.indexOf("`",l))!==-1&&u<r;){for(l=u+1;t.src.charCodeAt(l)===96;)l++;if(l>r)break;if(l-u===s){if(!e){let c=t.push("code_inline","code",0);c.markup=o;let f=t.src.slice(i,u).replace(/\n/g," ");f.startsWith(" ")&&f.endsWith(" ")&&/[^ ]/.test(f)&&(f=f.slice(1,-1)),c.content=f}return t.pos=l,!0}}}return e||(t.pending+=o),t.pos=i,!0}function E4(t,e){let a=t.pos,n=t.src.charCodeAt(a);if(e||n!==126)return!1;let r=t.scanDelims(t.pos,!0),i=r.length,o=String.fromCharCode(n);if(i<2)return!1;let s;i%2&&(s=t.push("text","",0),s.content=o,i--);for(let l=0;l<i;l+=2)s=t.push("text","",0),s.content=o+o,t.delimiters.push({marker:n,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}function HT(t,e){let a,n=[],r=e.length;for(let i=0;i<r;i++){let o=e[i];if(o.marker!==126||o.end===-1)continue;let s=e[o.end];a=t.tokens[o.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&n.push(s.token-1)}for(;n.length;){let i=n.pop(),o=i+1;for(;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,i!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[i],t.tokens[i]=a)}}function _4(t){let e=t.tokens_meta,a=t.tokens_meta.length;HT(t,t.delimiters);for(let r=0;r<a;r++){var n;let i=(n=e[r])===null||n===void 0?void 0:n.delimiters;i&&HT(t,i)}}var fI={tokenize:E4,postProcess:_4};function A4(t,e){let a=t.pos,n=t.src.charCodeAt(a);if(e||n!==95&&n!==42)return!1;let r=t.scanDelims(t.pos,n===42);for(let i=0;i<r.length;i++){let o=t.push("text","",0);o.content=String.fromCharCode(n),t.delimiters.push({marker:n,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return t.pos+=r.length,!0}function jT(t,e){let a=e.length;for(let n=a-1;n>=0;n--){let r=e[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;let i=e[r.end],o=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),l=t.tokens[r.token];l.type=o?"strong_open":"em_open",l.tag=o?"strong":"em",l.nesting=1,l.markup=o?s+s:s,l.content="";let u=t.tokens[i.token];u.type=o?"strong_close":"em_close",u.tag=o?"strong":"em",u.nesting=-1,u.markup=o?s+s:s,u.content="",o&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--)}}function R4(t){let e=t.tokens_meta,a=t.tokens_meta.length;jT(t,t.delimiters);for(let r=0;r<a;r++){var n;let i=(n=e[r])===null||n===void 0?void 0:n.delimiters;i&&jT(t,i)}}var dI={tokenize:A4,postProcess:R4};function T4(t,e){let a,n,r,i,o="",s="",l=t.pos,u=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;let c=t.pos,f=t.posMax,d=t.pos+1,h=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(h<0)return!1;let p=h+1;if(p<f&&t.src.charCodeAt(p)===40){for(u=!1,p++;p<f&&(a=t.src.charCodeAt(p),!(!ut(a)&&a!==10));p++);if(p>=f)return!1;if(l=p,r=t.md.helpers.parseLinkDestination(t.src,p,t.posMax),r.ok){for(o=t.md.normalizeLink(r.str),t.md.validateLink(o)?p=r.pos:o="",l=p;p<f&&(a=t.src.charCodeAt(p),!(!ut(a)&&a!==10));p++);if(r=t.md.helpers.parseLinkTitle(t.src,p,t.posMax),p<f&&l!==p&&r.ok)for(s=r.str,p=r.pos;p<f&&(a=t.src.charCodeAt(p),!(!ut(a)&&a!==10));p++);}(p>=f||t.src.charCodeAt(p)!==41)&&(u=!0),p++}if(u){if(typeof t.env.references>"u")return!1;if(p<f&&t.src.charCodeAt(p)===91?(l=p+1,p=t.md.helpers.parseLinkLabel(t,p),p>=0?n=t.src.slice(l,p++):p=h+1):p=h+1,n||(n=t.src.slice(d,h)),n=lm(n),i=t.env.references[n],!i)return t.pos=c,!1;o=i.href,s=i.title}if(!e){t.pos=d,t.posMax=h;let m=t.push("link_open","a",1),b=[["href",o]];if(m.attrs=b,s&&b.push(["title",s]),n){let g=Object.create(null);g.label=n,m.meta=g}t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=p,t.posMax=f,!0}function I4(t,e){let a,n,r,i,o,s,l,u,c="",f=t.pos,d=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;let h=t.pos+2,p=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(p<0)return!1;if(i=p+1,i<d&&t.src.charCodeAt(i)===40){for(i++;i<d&&(a=t.src.charCodeAt(i),!(!ut(a)&&a!==10));i++);if(i>=d)return!1;for(u=i,s=t.md.helpers.parseLinkDestination(t.src,i,t.posMax),s.ok&&(c=t.md.normalizeLink(s.str),t.md.validateLink(c)?i=s.pos:c=""),u=i;i<d&&(a=t.src.charCodeAt(i),!(!ut(a)&&a!==10));i++);if(s=t.md.helpers.parseLinkTitle(t.src,i,t.posMax),i<d&&u!==i&&s.ok)for(l=s.str,i=s.pos;i<d&&(a=t.src.charCodeAt(i),!(!ut(a)&&a!==10));i++);else l="";if(i>=d||t.src.charCodeAt(i)!==41)return t.pos=f,!1;i++}else{if(typeof t.env.references>"u")return!1;if(i<d&&t.src.charCodeAt(i)===91?(u=i+1,i=t.md.helpers.parseLinkLabel(t,i),i>=0?r=t.src.slice(u,i++):i=p+1):i=p+1,r||(r=t.src.slice(h,p)),r=lm(r),o=t.env.references[r],!o)return t.pos=f,!1;c=o.href,l=o.title}if(!e){n=t.src.slice(h,p);let m=[];t.md.inline.parse(n,t.md,t.env,m);let b=t.push("image","img",0),g=[["src",c],["alt",""]];if(b.attrs=g,b.children=m,b.content=n,l&&g.push(["title",l]),r){let O=Object.create(null);O.label=r,b.meta=O}}return t.pos=i,t.posMax=d,!0}var P4=/^([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])?)*)$/,M4=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function D4(t,e){let a=t.pos;if(t.src.charCodeAt(a)!==60)return!1;let n=t.pos,r=t.posMax;for(;;){if(++a>=r)return!1;let o=t.src.charCodeAt(a);if(o===60)return!1;if(o===62)break}let i=t.src.slice(n+1,a);if(M4.test(i)){let o=t.md.normalizeLink(i);if(!t.md.validateLink(o))return!1;if(!e){let s=t.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(i);let u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=i.length+2,!0}if(P4.test(i)){let o=t.md.normalizeLink(`mailto:${i}`);if(!t.md.validateLink(o))return!1;if(!e){let s=t.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(i);let u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=i.length+2,!0}return!1}function Q4(t){return/^<a[>\s]/i.test(t)}function N4(t){return/^<\/a\s*>/i.test(t)}function hI(t){let e=t|32;return e>=97&&e<=122}function $4(t,e){let a=t.src,n,r;if(a.startsWith("<!--",e)){if(a.startsWith(">",e+4))return e+5;if(a.startsWith("->",e+4))return e+6;n=e+4,r="-->"}else if(a.startsWith("<![CDATA[",e))n=e+9,r="]]>";else if(a.charCodeAt(e+1)===63)n=e+2,r="?>";else if(hI(a.charCodeAt(e+2)))n=e+3,r=">";else return-1;if(t.skipHtmlSpecial)return-1;let i=a.indexOf(r,n);return i<0?(t.skipHtmlSpecial=!0,-1):i+r.length}function B4(t,e){if(!t.md.options.html)return!1;let a=t.posMax,n=t.pos;if(t.src.charCodeAt(n)!==60||n+2>=a)return!1;let r,i=t.src.charCodeAt(n+1);if(i===33||i===63)r=$4(t,n);else if(i===47||hI(i)){let o=t.src.slice(n).match(lI);r=o?n+o[0].length:-1}else return!1;if(r<0)return!1;if(!e){let o=t.push("html_inline","",0);o.content=t.src.slice(n,r),Q4(o.content)&&t.linkLevel++,N4(o.content)&&t.linkLevel--}return t.pos=r,!0}var z4=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,U4=/^&([a-z][a-z0-9]{1,31});/i;function X4(t,e){let a=t.pos,n=t.posMax;if(t.src.charCodeAt(a)!==38||a+1>=n)return!1;if(t.src.charCodeAt(a+1)===35){let r=t.src.slice(a).match(z4);if(r){if(!e){let i=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=t.push("text_special","",0);o.content=mS(i)?Qf(i):Qf(65533),o.markup=r[0],o.info="entity"}return t.pos+=r[0].length,!0}}else{let r=t.src.slice(a).match(U4);if(r){let i=rm(r[0]);if(i!==r[0]){if(!e){let o=t.push("text_special","",0);o.content=i,o.markup=r[0],o.info="entity"}return t.pos+=r[0].length,!0}}}return!1}function VT(t){let e={},a=t.length;if(!a)return;let n=0,r=-2,i=[];for(let o=0;o<a;o++){let s=t[o];if(i.push(0),(t[n].marker!==s.marker||r!==s.token-1)&&(n=o),r=s.token,s.length=s.length||0,!s.close)continue;e.hasOwnProperty(s.marker)||(e[s.marker]=[-1,-1,-1,-1,-1,-1]);let l=e[s.marker][(s.open?3:0)+s.length%3],u=n-i[n]-1,c=u;for(;u>l;u-=i[u]+1){let f=t[u];if(f.marker===s.marker&&f.open&&f.end<0){let d=!1;if((f.close||s.open)&&(f.length+s.length)%3===0&&(f.length%3!==0||s.length%3!==0)&&(d=!0),!d){let h=u>0&&!t[u-1].open?i[u-1]+1:0;i[o]=o-u+h,i[u]=h,s.open=!1,f.end=o,f.close=!1,c=-1,r=-2;break}}}c!==-1&&(e[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}function q4(t){let e=t.tokens_meta,a=t.tokens_meta.length;VT(t.delimiters);for(let r=0;r<a;r++){var n;let i=(n=e[r])===null||n===void 0?void 0:n.delimiters;i&&VT(i)}}function Z4(t){let e,a,n=0,r=t.tokens,i=t.tokens.length;for(e=a=0;e<i;e++)r[e].nesting<0&&n--,r[e].level=n,r[e].nesting>0&&n++,r[e].type==="text"&&e+1<i&&r[e+1].type==="text"?r[e+1].content=r[e].content+r[e+1].content:(e!==a&&(r[a]=r[e]),a++);e!==a&&(r.length=a)}var hS=[["text",x4],["linkify",v4],["newline",C4],["escape",w4],["backticks",L4],["strikethrough",fI.tokenize],["emphasis",dI.tokenize],["link",T4],["image",I4],["autolink",D4],["html_inline",B4],["entity",X4]],pS=[["balance_pairs",q4],["strikethrough",fI.postProcess],["emphasis",dI.postProcess],["fragments_join",Z4]],pI=class{constructor(){ne(this,"ruler",new Uf),ne(this,"ruler2",new Uf),ne(this,"State",cI);for(let t=0;t<hS.length;t++)this.ruler.push(hS[t][0],hS[t][1]);for(let t=0;t<pS.length;t++)this.ruler2.push(pS[t][0],pS[t][1])}skipToken(t){let e=t.pos,a=this.ruler.getRules(""),n=a.length,r=t.md.options.maxNesting,i=t.cache;if(typeof i[e]<"u"){t.pos=i[e];return}let o=!1;if(t.level<r){for(let s=0;s<n;s++)if(t.level++,o=a[s](t,!0),t.level--,o){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;o||t.pos++,i[e]=t.pos}tokenize(t){let e=this.ruler.getRules(""),a=e.length,n=t.posMax,r=t.md.options.maxNesting;for(;t.pos<n;){let i=t.pos,o=!1;if(t.level<r){for(let s=0;s<a;s++)if(o=e[s](t,!1),o){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()}parse(t,e,a,n){let r=new this.State(t,e,a,n);this.tokenize(r);let i=this.ruler2.getRules(""),o=i.length;for(let s=0;s<o;s++)i[s](r)}},F4={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},G4=/^(vbscript|javascript|file|data):/,H4=/^data:image\/(gif|png|jpeg|webp);/,YT=["http:","https:","mailto:"],Nr=class{validateLink(t){let e=t.trim().toLowerCase();return G4.test(e)?H4.test(e):!0}normalizeLink(t){let e=Pf(t,!0);if(e.hostname&&(!e.protocol||YT.indexOf(e.protocol)>=0))try{e.hostname=uS.toASCII(e.hostname)}catch{}return e.auth&&(e.auth=po(e.auth)),e.hostname&&(e.hostname=po(e.hostname)),e.pathname&&(e.pathname=po(e.pathname)),e.search&&(e.search=po(e.search)),e.hash&&(e.hash=po(e.hash)),ou(e)}normalizeLinkText(t){let e=Pf(t,!0);if(e.hostname&&(!e.protocol||YT.indexOf(e.protocol)>=0))try{e.hostname=uS.toUnicode(e.hostname)}catch{}return If(ou(e),If.defaultChars+"%")}constructor(...t){ne(this,"inline",new pI),ne(this,"block",new uI),ne(this,"core",new rI),ne(this,"renderer",new tI),ne(this,"linkify",new IT),ne(this,"utils",mF),ne(this,"helpers",Object.assign({},TF));let[e,a]=t;typeof e=="string"?(this.configure(e),a&&this.set(a)):(this.configure("default"),this.set(e||{}))}set(t){return Object.assign(this.options,t),this}configure(t){let e;if(typeof t=="string"){let r=t;if(e=F4[r],!e)throw new Error(`Wrong 'markdown-it' preset "${r}", check name`)}else e=t;if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");e.options&&(this.options={...e.options});let a=e.components;if(a){var n;["core","block","inline"].forEach(i=>{var o;let s=(o=a[i])===null||o===void 0?void 0:o.rules;s&&this[i].ruler.enableOnly(s)});let r=(n=a.inline)===null||n===void 0?void 0:n.rules2;r&&this.inline.ruler2.enableOnly(r)}return this}enable(t,e=!1){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(r=>{a=a.concat(this[r].ruler.enable(t,!0))}),a=a.concat(this.inline.ruler2.enable(t,!0));let n=t.filter(r=>a.indexOf(r)<0);if(n.length&&!e)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${n}`);return this}disable(t,e=!1){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(r=>{a=a.concat(this[r].ruler.disable(t,!0))}),a=a.concat(this.inline.ruler2.disable(t,!0));let n=t.filter(r=>a.indexOf(r)<0);if(n.length&&!e)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${n}`);return this}use(t,...e){return t.apply(t,[this,...e]),this}parse(t,e){if(typeof t!="string")throw new Error("Input data should be a String");let a=new this.core.State(t,this,e);return this.core.process(a),a.tokens}render(t,e={}){return this.renderer.render(this.parse(t,e),this.options,e)}parseInline(t,e){let a=new this.core.State(t,this,e);return a.inlineMode=!0,this.core.process(a),a.tokens}renderInline(t,e={}){return this.renderer.render(this.parseInline(t,e),this.options,e)}};ne(Nr,"Token",ys);ne(Nr,"Ruler",Uf);ne(Nr,"Renderer",tI);ne(Nr,"ParserCore",rI);ne(Nr,"StateCore",aI);ne(Nr,"ParserBlock",uI);ne(Nr,"StateBlock",iI);ne(Nr,"ParserInline",pI);ne(Nr,"StateInline",cI);var mI=KT(Nr);var wM=B(CM(),1);var ES=wM.default;var n6=(t,e)=>{if(e&&ES.getLanguage(e))try{return ES.highlight(t,{language:e,ignoreIllegals:!0}).value}catch{}return""};function kM(t){let e=new mI({html:!1,linkify:!0,breaks:t,highlight:n6}),a=e.renderer.rules.link_open??((n,r,i,o,s)=>s.renderToken(n,r,i));return e.renderer.rules.link_open=(n,r,i,o,s)=>(n[r]?.attrSet("target","_blank"),n[r]?.attrSet("rel","noopener noreferrer"),a(n,r,i,o,s)),e}var r6=kM(!0),i6=kM(!1),LM=t=>r6.render(t),vm=t=>i6.render(t);var EM=B(ue(),1);function ws({source:t,render:e=LM,className:a=""}){let n=(0,du.useMemo)(()=>e(t),[t,e]),r=(0,du.useRef)(null);return(0,du.useEffect)(()=>{let i=r.current;if(!i)return;let o=[];for(let s of i.querySelectorAll("pre")){if(s.dataset.mrCopy==="1")continue;let l=s.textContent??"";s.dataset.mrCopy="1";let u=document.createElement("button");u.type="button",u.textContent="copy",u.className="btn btn-ghost btn-xs absolute right-1.5 top-1.5 opacity-60 hover:opacity-100",u.addEventListener("click",()=>{(async()=>{try{await navigator.clipboard.writeText(l),u.textContent="copied",window.setTimeout(()=>{u.textContent="copy"},1200)}catch{}})()}),s.appendChild(u),o.push({pre:s,button:u})}return()=>{for(let{pre:s,button:l}of o)l.remove(),delete s.dataset.mrCopy}},[n]),(0,EM.jsx)("div",{ref:r,className:`mr-markdown ${a}`,dangerouslySetInnerHTML:{__html:n}})}var bo=B(Ce(),1);var hu=B(ue(),1);function Cm({text:t,label:e="copy",size:a="xs",className:n=""}){let[r,i]=(0,bo.useState)(!1),o=(0,bo.useRef)(null);(0,bo.useEffect)(()=>()=>{o.current!==null&&window.clearTimeout(o.current)},[]);let s=(0,bo.useCallback)(()=>{(async()=>{try{await navigator.clipboard.writeText(t),i(!0),o.current!==null&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>i(!1),1200)}catch{}})()},[t]);return a!=="xs"?(0,hu.jsx)(pt,{variant:"ghost",size:a,onClick:s,title:e,className:n,children:(0,hu.jsx)(ye,{name:r?"check":"copy",className:"size-3.5"})}):(0,hu.jsxs)(pt,{variant:"ghost",size:"xs",onClick:s,title:e,className:n,children:[(0,hu.jsx)(ye,{name:r?"check":"copy",className:"size-3.5"}),r?"copied":e]})}var Me=B(ue(),1),o6=["Tighten the spacing and the type scale.","Add a loading state and an error state.","Make the primary action the obvious one.","Rewrite SPEC.md so it only holds what the screen cannot show."];function s6({message:t}){return(0,Me.jsxs)("details",{open:!t.done,className:"rounded-lg border border-border bg-muted/40 text-xs",children:[(0,Me.jsxs)("summary",{className:"flex cursor-pointer items-center gap-1.5 px-2.5 py-1.5 font-mono text-muted-foreground",children:[(0,Me.jsx)(ye,{name:"terminal",className:"size-3.5"}),"agent log",!t.done&&(0,Me.jsx)(ye,{name:"loader",className:"size-3 animate-spin"})]}),(0,Me.jsx)("pre",{className:"mr-scroll max-h-56 overflow-auto px-2.5 pb-2 font-mono whitespace-pre-wrap text-muted-foreground",children:t.text})]})}function l6({message:t}){return t.role==="log"?(0,Me.jsx)(s6,{message:t}):t.role==="system"?(0,Me.jsx)("p",{className:Ke("text-center font-mono text-[11px]",t.tone==="error"?"text-destructive":"text-muted-foreground"),children:t.text}):t.role==="user"?(0,Me.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,Me.jsx)("div",{className:"max-w-[92%] rounded-2xl rounded-tr-sm bg-primary px-3 py-2 text-primary-foreground",children:(0,Me.jsx)("p",{className:"text-sm break-words whitespace-pre-wrap",children:t.text})}),(0,Me.jsx)("span",{className:"text-[11px] text-muted-foreground",children:Tf(t.at)})]}):(0,Me.jsxs)("div",{className:"flex flex-col items-start gap-1",children:[(0,Me.jsxs)("div",{className:"max-w-[95%] rounded-2xl rounded-tl-sm border border-border bg-card px-3 py-2 shadow-xs",children:[(0,Me.jsx)(ws,{source:t.text,className:xs}),!t.done&&(0,Me.jsx)("span",{className:"mt-1 inline-block h-3.5 w-1.5 animate-pulse rounded-sm bg-primary align-middle"})]}),(0,Me.jsxs)("div",{className:"flex items-center gap-0.5 text-[11px] text-muted-foreground",children:[(0,Me.jsx)("span",{children:Tf(t.at)}),t.done&&(0,Me.jsx)(Cm,{text:t.text,size:"icon-xs",label:"Copy reply"})]})]})}function _M({room:t,chat:e,agentLabel:a}){let n=(0,Ff.useRef)(null),r=(0,Ff.useRef)(!0);return(0,Ff.useEffect)(()=>{let i=n.current;i&&r.current&&(i.scrollTop=i.scrollHeight)},[e.messages]),(0,Me.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-col bg-card",children:[(0,Me.jsxs)("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[(0,Me.jsx)("span",{className:"text-sm font-medium",children:"Chat"}),e.running&&(0,Me.jsx)(ye,{name:"loader",className:"size-3.5 animate-spin text-primary"}),(0,Me.jsx)("span",{className:"ml-auto truncate font-mono text-[11px] text-muted-foreground",title:a,children:a})]}),(0,Me.jsxs)("div",{ref:n,onScroll:i=>{let o=i.currentTarget;r.current=o.scrollHeight-o.scrollTop-o.clientHeight<40},className:"mr-scroll flex flex-1 flex-col gap-3 overflow-y-auto p-3",children:[e.messages.length===0&&(0,Me.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 text-center",children:[(0,Me.jsx)("div",{className:"rounded-full bg-primary/10 p-3 text-primary",children:(0,Me.jsx)(ye,{name:"sparkles",className:"size-5"})}),(0,Me.jsx)("p",{className:"max-w-[15rem] text-sm text-muted-foreground",children:"A room is one screen. Ask for the change; watch the artifact move."}),(0,Me.jsx)("div",{className:"flex flex-wrap justify-center gap-1.5",children:o6.map(i=>(0,Me.jsx)("button",{type:"button",onClick:()=>{e.submit(i)},className:"max-w-full rounded-md border border-border px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:i},i))})]}),e.messages.map(i=>(0,Me.jsx)(l6,{message:i},i.id))]}),(0,Me.jsx)(fT,{room:t,running:e.running,queue:e.queue,onSubmit:i=>{e.submit(i)},onRemoveQueued:e.removeQueued},t)]})}var gt=B(Ce(),1);var js=B(Ce(),1);var AS=[],IM=[];(()=>{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,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,a=0;e<t.length;e++)(e%2?IM:AS).push(a=a+t[e])})();function u6(t){if(t<768)return!1;for(let e=0,a=AS.length;;){let n=e+a>>1;if(t<AS[n])a=n;else if(t>=IM[n])e=n+1;else return!0;if(e==a)return!1}}function AM(t){return t>=127462&&t<=127487}var RM=8205;function PM(t,e,a=!0,n=!0){return(a?MM:c6)(t,e,n)}function MM(t,e,a){if(e==t.length)return e;e&&DM(t.charCodeAt(e))&&QM(t.charCodeAt(e-1))&&e--;let n=_S(t,e);for(e+=TM(n);e<t.length;){let r=_S(t,e);if(n==RM||r==RM||a&&u6(r))e+=TM(r),n=r;else if(AM(r)){let i=0,o=e-2;for(;o>=0&&AM(_S(t,o));)i++,o-=2;if(i%2==0)break;e+=2}else break}return e}function c6(t,e,a){for(;e>1;){let n=MM(t,e-2,a);if(n<e)return n;e--}return 0}function _S(t,e){let a=t.charCodeAt(e);if(!QM(a)||e+1==t.length)return a;let n=t.charCodeAt(e+1);return DM(n)?(a-55296<<10)+(n-56320)+65536:a}function DM(t){return t>=56320&&t<57344}function QM(t){return t>=55296&&t<56320}function TM(t){return t<65536?1:2}var Te=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,n){[e,a]=bu(this,e,a);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(a,this.length,r,1),mu.from(r,this.length-(a-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,a=this.length){[e,a]=bu(this,e,a);let n=[];return this.decompose(e,a,n,0),mu.from(n,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),n=this.length-this.scanIdentical(e,-1),r=new _s(this),i=new _s(e);for(let o=a,s=a;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(e=1){return new _s(this,e)}iterRange(e,a=this.length){return new _m(this,e,a)}iterLines(e,a){let n;if(e==null)n=this.iter();else{a==null&&(a=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,a==this.lines+1?this.length:a<=1?0:this.line(a-1).to))}return new Am(n)}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 sn(e):mu.from(sn.split(e,[]))}},sn=class t extends Te{constructor(e,a=f6(e)){super(),this.text=e,this.length=a}get lines(){return this.text.length}get children(){return null}lineInner(e,a,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((a?n:s)>=e)return new TS(r,s,n,o);r=s+1,n++}}decompose(e,a,n,r){let i=e<=0&&a>=this.length?this:new t(NM(this.text,e,a),Math.min(a,this.length)-Math.max(0,e));if(r&1){let o=n.pop(),s=Em(i.text,o.text.slice(),0,i.length);if(s.length<=32)n.push(new t(s,o.length+i.length));else{let l=s.length>>1;n.push(new t(s.slice(0,l)),new t(s.slice(l)))}}else n.push(i)}replace(e,a,n){if(!(n instanceof t))return super.replace(e,a,n);[e,a]=bu(this,e,a);let r=Em(this.text,Em(n.text,NM(this.text,0,e)),a),i=this.length+n.length-(a-e);return r.length<=32?new t(r,i):mu.from(t.split(r,[]),i)}sliceString(e,a=this.length,n=`
|
|
31
|
+
`){[e,a]=bu(this,e,a);let r="";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&&(r+=n),e<l&&a>i&&(r+=s.slice(Math.max(0,e-i),a-i)),i=l+1}return r}flatten(e){for(let a of this.text)e.push(a)}scanIdentical(){return 0}static split(e,a){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,n.length==32&&(a.push(new t(n,r)),n=[],r=-1);return r>-1&&a.push(new t(n,r)),a}},mu=class t extends Te{constructor(e,a){super(),this.children=e,this.length=a,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,a,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,l=n+o.lines-1;if((a?l:s)>=e)return o.lineInner(e,a,n,r);r=s+1,n=l+1}}decompose(e,a,n,r){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=r&((o<=e?1:0)|(l>=a?2:0));o>=e&&l<=a&&!u?n.push(s):s.decompose(e-o,a-o,n,u)}o=l+1}}replace(e,a,n){if([e,a]=bu(this,e,a),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],s=i+o.length;if(e>=i&&a<=s){let l=o.replace(e-i,a-i,n),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[r]=l,new t(c,this.length-(a-e)+n.length)}return super.replace(i,s,l)}i=s+1}return super.replace(e,a,n)}sliceString(e,a=this.length,n=`
|
|
32
|
+
`){[e,a]=bu(this,e,a);let r="";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&&(r+=n),e<l&&a>o&&(r+=s.sliceString(e-o,a-o,n)),o=l+1}return r}flatten(e){for(let a of this.children)a.flatten(e)}scanIdentical(e,a){if(!(e instanceof t))return 0;let n=0,[r,i,o,s]=a>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=a,i+=a){if(r==o||i==s)return n;let l=this.children[r],u=e.children[i];if(l!=u)return n+l.scanIdentical(u,a);n+=l.length+1}}static from(e,a=e.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let h of e)n+=h.lines;if(n<32){let h=[];for(let p of e)p.flatten(h);return new sn(h,a)}let r=Math.max(32,n>>5),i=r<<1,o=r>>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 sn&&l&&(p=c[c.length-1])instanceof sn&&h.lines+p.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new sn(p.text.concat(h.text),p.length+1+h.length)):(l+h.lines>r&&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)}};Te.empty=new sn([""],0);function f6(t){let e=-1;for(let a of t)e+=a.length+1;return e}function Em(t,e,a=0,n=1e9){for(let r=0,i=0,o=!0;i<t.length&&r<=n;i++){let s=t[i],l=r+s.length;l>=a&&(l>n&&(s=s.slice(0,n-r)),r<a&&(s=s.slice(a-r)),o?(e[e.length-1]+=s,o=!1):e.push(s)),r=l+1}return e}function NM(t,e,a){return Em(t,[""],e,a)}var _s=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 sn?e.text.length:e.children.length)<<1]}nextInner(e,a){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof sn?r.text.length:r.children.length;if(o==(a>0?s:0)){if(n==0)return this.done=!0,this.value="",this;a>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(a>0?0:1)){if(this.offsets[n]+=a,e==0)return this.lineBreak=!0,this.value=`
|
|
33
|
+
`,this;e--}else if(r instanceof sn){let l=r.text[o+(a<0?-1:0)];if(this.offsets[n]+=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=r.children[o+(a<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=a):(a<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(a>0?1:(l instanceof sn?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)}},_m=class{constructor(e,a,n){this.value="",this.done=!1,this.cursor=new _s(e,a>n?-1:1),this.pos=a>n?e.length:0,this.from=Math.min(a,n),this.to=Math.max(a,n)}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 n=a<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*a,this.value=r.length<=n?r:a<0?r.slice(r.length-n):r.slice(0,n),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!=""}},Am=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:a,lineBreak:n,value:r}=this.inner.next(e);return a&&this.afterBreak?(this.value="",this.afterBreak=!1):a?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Te.prototype[Symbol.iterator]=function(){return this.iter()},_s.prototype[Symbol.iterator]=_m.prototype[Symbol.iterator]=Am.prototype[Symbol.iterator]=function(){return this});var TS=class{constructor(e,a,n,r){this.from=e,this.to=a,this.number=n,this.text=r}get length(){return this.to-this.from}};function bu(t,e,a){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,a))]}function Lt(t,e,a=!0,n=!0){return PM(t,e,a,n)}function d6(t){return t>=56320&&t<57344}function h6(t){return t>=55296&&t<56320}function xu(t,e){let a=t.charCodeAt(e);if(!h6(a)||e+1==t.length)return a;let n=t.charCodeAt(e+1);return d6(n)?(a-55296<<10)+(n-56320)+65536:a}function ZS(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Wf(t){return t<65536?1:2}var IS=/\r\n?|\n/,ca=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(ca||(ca={})),fi=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 n=this.sections[a+1];e+=n<0?this.sections[a]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let a=0,n=0,r=0;a<this.sections.length;){let i=this.sections[a++],o=this.sections[a++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,a=!1){PS(this,e,a)}get invertedDesc(){let e=[];for(let a=0;a<this.sections.length;){let n=this.sections[a++],r=this.sections[a++];r<0?e.push(n,r):e.push(r,n)}return new t(e)}composeDesc(e){return this.empty?e:e.empty?this:XM(this,e)}mapDesc(e,a=!1){return e.empty?this:MS(this,e,a)}mapPos(e,a=-1,n=ca.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],l=this.sections[o++],u=r+s;if(l<0){if(u>e)return i+(e-r);i+=s}else{if(n!=ca.Simple&&u>=e&&(n==ca.TrackDel&&r<e&&u>e||n==ca.TrackBefore&&r<e||n==ca.TrackAfter&&u>e))return null;if(u>e||u==e&&a<0&&!s)return e==r||a<0?i:i+l;i+=l}r=u}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,a=e){for(let n=0,r=0;n<this.sections.length&&r<=a;){let i=this.sections[n++],o=this.sections[n++],s=r+i;if(o>=0&&r<=a&&s>=e)return r<e&&s>a?"cover":!0;r=s}return!1}toString(){let e="";for(let a=0;a<this.sections.length;){let n=this.sections[a++],r=this.sections[a++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}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)}},La=class t extends fi{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 PS(this,(a,n,r,i,o)=>e=e.replace(r,r+(n-a),o),!1),e}mapDesc(e,a=!1){return MS(this,e,a,!0)}invert(e){let a=this.sections.slice(),n=[];for(let r=0,i=0;r<a.length;r+=2){let o=a[r],s=a[r+1];if(s>=0){a[r]=s,a[r+1]=o;let l=r>>1;for(;n.length<l;)n.push(Te.empty);n.push(o?e.slice(i,i+o):Te.empty)}i+=o}return new t(a,n)}compose(e){return this.empty?e:e.empty?this:XM(this,e,!0)}map(e,a=!1){return e.empty?this:MS(this,e,a,!0)}iterChanges(e,a=!1){PS(this,e,a)}get desc(){return fi.create(this.sections)}filter(e){let a=[],n=[],r=[],i=new As(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);Oa(r,c,-1);let f=i.ins==-1?-1:i.off==0?i.ins:0;Oa(a,c,f),f>0&&xo(n,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);Oa(a,c,-1),Oa(r,c,i.ins==-1?-1:i.off==0?i.ins:0),i.forward(c),s+=c}}return{changes:new t(a,n),filtered:fi.create(r)}}toJSON(){let e=[];for(let a=0;a<this.sections.length;a+=2){let n=this.sections[a],r=this.sections[a+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[a>>1].toJSON()))}return e}static of(e,a,n){let r=[],i=[],o=0,s=null;function l(c=!1){if(!c&&!r.length)return;o<a&&Oa(r,a-o,-1);let f=new t(r,i);s=s?s.compose(f.map(s)):f,r=[],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"?Te.of(h.split(n||IS)):h:Te.empty,m=p.length;if(f==d&&m==0)return;f<o&&l(),f>o&&Oa(r,f-o,-1),Oa(r,d-f,m),xo(i,r,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=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];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(;n.length<r;)n.push(Te.empty);n[r]=Te.of(i.slice(1)),a.push(i[0],n[r].length)}}}return new t(a,n)}static createSet(e,a){return new t(e,a)}};function Oa(t,e,a,n=!1){if(e==0&&a<=0)return;let r=t.length-2;r>=0&&a<=0&&a==t[r+1]?t[r]+=e:r>=0&&e==0&&t[r]==0?t[r+1]+=a:n?(t[r]+=e,t[r+1]+=a):t.push(e,a)}function xo(t,e,a){if(a.length==0)return;let n=e.length-2>>1;if(n<t.length)t[t.length-1]=t[t.length-1].append(a);else{for(;t.length<n;)t.push(Te.empty);t.push(a)}}function PS(t,e,a){let n=t.inserted;for(let r=0,i=0,o=0;o<t.sections.length;){let s=t.sections[o++],l=t.sections[o++];if(l<0)r+=s,i+=s;else{let u=r,c=i,f=Te.empty;for(;u+=s,c+=l,l&&n&&(f=f.append(n[o-2>>1])),!(a||o==t.sections.length||t.sections[o+1]<0);)s=t.sections[o++],l=t.sections[o++];e(r,u,i,c,f),r=u,i=c}}}function MS(t,e,a,n=!1){let r=[],i=n?[]:null,o=new As(t),s=new As(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);Oa(r,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(Oa(r,s.ins,-1);u;){let c=Math.min(o.len,u);o.ins>=0&&l<o.i&&o.len<=c&&(Oa(r,0,o.ins),i&&xo(i,r,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;Oa(r,u,l<o.i?o.ins:0),i&&l<o.i&&xo(i,r,o.text),l=o.i,o.forward(o.len-c)}else{if(o.done&&s.done)return i?La.createSet(r,i):fi.create(r);throw new Error("Mismatched change set lengths")}}}function XM(t,e,a=!1){let n=[],r=a?[]:null,i=new As(t),o=new As(e);for(let s=!1;;){if(i.done&&o.done)return r?La.createSet(n,r):fi.create(n);if(i.ins==0)Oa(n,i.len,0,s),i.next();else if(o.len==0&&!o.done)Oa(n,0,o.ins,s),r&&xo(r,n,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=n.length;if(i.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;Oa(n,l,c,s),r&&c&&xo(r,n,o.text)}else o.ins==-1?(Oa(n,i.off?0:i.len,l,s),r&&xo(r,n,i.textBit(l))):(Oa(n,i.off?0:i.len,o.off?0:o.ins,s),r&&!o.off&&xo(r,n,o.text));s=(i.ins>l||o.ins>=0&&o.len>l)&&(s||n.length>u),i.forward2(l),o.forward(l)}}}}var As=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?Te.empty:e[a]}textBit(e){let{inserted:a}=this.set,n=this.i-2>>1;return n>=a.length&&!e?Te.empty:a[n].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)}},ks=class t{constructor(e,a,n,r){this.from=e,this.to=a,this.flags=n,this.goalColumn=r}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 n,r;return this.empty?n=r=e.mapPos(this.from,a):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new t(n,r,this.flags,this.goalColumn)}extend(e,a=e,n=0){if(e<=this.anchor&&a>=this.anchor)return I.range(e,a,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(a-this.anchor)?e:a;return I.range(this.anchor,r,void 0,void 0,n)}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 I.range(e.anchor,e.head)}static create(e,a,n,r){return new t(e,a,n,r)}},I=class t{constructor(e,a){this.ranges=e,this.mainIndex=a}map(e,a=-1){return e.empty?this:t.create(this.ranges.map(n=>n.map(e,a)),this.mainIndex)}eq(e,a=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],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 n=this.ranges.slice();return n[a]=e,t.create(n,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=>ks.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 n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return t.normalized(e.slice(),a);n=i.to}return new t(e,a)}static cursor(e,a=0,n,r){return ks.create(e,e,(a==0?0:a<0?8:16)|(n==null?7:Math.min(6,n)),r)}static range(e,a,n,r,i){let o=r==null?7:Math.min(6,r);return!i&&e!=a&&(i=a<e?1:-1),i&&(o|=i<0?8:16),a<e?ks.create(a,e,o|32,n):ks.create(e,a,o,n)}static undirectionalRange(e,a){return ks.create(e,a,64,void 0)}static normalized(e,a=0){let n=e[a];e.sort((r,i)=>r.from-i.from),a=e.indexOf(n);for(let r=1;r<e.length;r++){let i=e[r],o=e[r-1];if(i.empty?i.from<=o.to:i.from<o.to){let s=o.from,l=Math.max(i.to,o.to);r<=a&&a--,e.splice(--r,2,i.anchor>i.head?t.range(l,s):t.range(s,l))}}return new t(e,a)}};function qM(t,e){for(let a of t.ranges)if(a.to>e)throw new RangeError("Selection points outside of document")}var FS=0,V=class t{constructor(e,a,n,r,i){this.combine=e,this.compareInput=a,this.compare=n,this.isStatic=r,this.id=FS++,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,n)=>a===n),e.compare||(e.combine?(a,n)=>a===n:GS),!!e.static,e.enables)}of(e){return new gu([],this,0,e)}compute(e,a){if(this.isStatic)throw new Error("Can't compute a static facet");return new gu(e,this,1,a)}computeN(e,a){if(this.isStatic)throw new Error("Can't compute a static facet");return new gu(e,this,2,a)}from(e,a){return a||(a=n=>n),this.compute([e],n=>a(n.field(e)))}};function GS(t,e){return t==e||t.length==e.length&&t.every((a,n)=>a===e[n])}var gu=class{constructor(e,a,n,r){this.dependencies=e,this.facet=a,this.type=n,this.value=r,this.id=FS++}dynamicSlot(e){var a;let n=this.value,r=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]=n(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||DS(f,c)){let h=n(f);if(s?!$M(h,f.values[o],r):!r(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=Pm(d,p);if(this.dependencies.every(b=>b instanceof V?d.facet(b)===f.facet(b):b instanceof Wt?d.field(b,!1)==f.field(b,!1):!0)||(s?$M(h=n(f),m,r):r(h=n(f),m)))return f.values[o]=m,0}else h=n(f);return f.values[o]=h,1}}}get extension(){return this}};function $M(t,e,a){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!a(t[n],e[n]))return!1;return!0}function DS(t,e){let a=!1;for(let n of e)Hf(t,n)&1&&(a=!0);return a}function p6(t,e,a){let n=a.map(l=>t[l.id]),r=a.map(l=>l.type),i=n.filter(l=>!(l&1)),o=t[e.id]>>1;function s(l){let u=[];for(let c=0;c<n.length;c++){let f=Pm(l,n[c]);if(r[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 n)Hf(l,u);return l.values[o]=s(l),1},update(l,u){if(!DS(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=DS(l,n),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&GS(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 wm=V.define({static:!0}),Wt=class t{constructor(e,a,n,r,i){this.id=e,this.createF=a,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let a=new t(FS++,e.create,e.update,e.compare||((n,r)=>n===r),e);return e.provide&&(a.provides=e.provide(a)),a}create(e){let a=e.facet(wm).find(n=>n.field==this);return(a?.create||this.createF)(e)}slot(e){let a=e[this.id]>>1;return{create:n=>(n.values[a]=this.create(n),1),update:(n,r)=>{let i=n.values[a],o=this.updateF(i,r);return this.compareF(i,o)?0:(n.values[a]=o,1)},reconfigure:(n,r)=>{let i=n.facet(wm),o=r.facet(wm),s;return(s=i.find(l=>l.field==this))&&s!=o.find(l=>l.field==this)?(n.values[a]=s.create(n),1):r.config.address[this.id]!=null?(n.values[a]=r.field(this),0):(n.values[a]=this.create(n),1)}}}init(e){return[this,wm.of({field:this,create:e})]}get extension(){return this}},Ls={lowest:4,low:3,default:2,high:1,highest:0};function Gf(t){return e=>new Rm(e,t)}var Mn={highest:Gf(Ls.highest),high:Gf(Ls.high),default:Gf(Ls.default),low:Gf(Ls.low),lowest:Gf(Ls.lowest)},Rm=class{constructor(e,a){this.inner=e,this.prec=a}get extension(){return this}},Tm=class t{of(e){return new jf(this,e)}reconfigure(e){return t.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},jf=class{constructor(e,a){this.compartment=e,this.inner=a}get extension(){return this}},Im=class t{constructor(e,a,n,r,i,o){for(this.base=e,this.compartments=a,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.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,n){let r=[],i=Object.create(null),o=new Map;for(let d of m6(e,a,o))d instanceof Wt?r.push(d):(i[d.facet.id]||(i[d.facet.id]=[])).push(d);let s=Object.create(null),l=[],u=[];for(let d of r)s[d.id]=u.length<<1,u.push(h=>d.slot(h));let c=n?.config.facets;for(let d in i){let h=i[d],p=h[0].facet,m=c&&c[d]||[];if(h.every(b=>b.type==0))if(s[p.id]=l.length<<1|1,GS(m,h))l.push(n.facet(p));else{let b=p.combine(h.map(g=>g.value));l.push(n&&p.compare(b,n.facet(p))?n.facet(p):b)}else{for(let b of h)b.type==0?(s[b.id]=l.length<<1|1,l.push(b.value)):(s[b.id]=u.length<<1,u.push(g=>b.dynamicSlot(g)));s[p.id]=u.length<<1,u.push(b=>p6(b,p,h))}}let f=u.map(d=>d(s));return new t(e,o,f,s,l,i)}};function m6(t,e,a){let n=[[],[],[],[],[]],r=new Map;function i(o,s){let l=r.get(o);if(l!=null){if(l<=s)return;let u=n[l].indexOf(o);u>-1&&n[l].splice(u,1),o instanceof jf&&a.delete(o.compartment)}if(r.set(o,s),Array.isArray(o))for(let u of o)i(u,s);else if(o instanceof jf){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 Rm)i(o.inner,o.prec);else if(o instanceof Wt)n[s].push(o),o.provides&&i(o.provides,s);else if(o instanceof gu)n[s].push(o),o.facet.extensions&&i(o.facet.extensions,Ls.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,Ls.default),n.reduce((o,s)=>o.concat(s))}function Hf(t,e){if(e&1)return 2;let a=e>>1,n=t.status[a];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;t.status[a]=4;let r=t.computeSlot(t,t.config.dynamicSlots[a]);return t.status[a]=2|r}function Pm(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}var ZM=V.define(),QS=V.define({combine:t=>t.some(e=>e),static:!0}),FM=V.define({combine:t=>t.length?t[0]:void 0,static:!0}),GM=V.define(),HM=V.define(),jM=V.define(),VM=V.define({combine:t=>t.length?t[0]:!1}),qa=class{constructor(e,a){this.type=e,this.value=a}static define(){return new NS}},NS=class{of(e){return new qa(this,e)}},$S=class{constructor(e){this.map=e}of(e){return new _e(this,e)}},_e=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 $S(e.map||(a=>a))}static mapEffects(e,a){if(!e.length)return e;let n=[];for(let r of e){let i=r.map(a);i&&n.push(i)}return n}};_e.reconfigure=_e.define();_e.appendConfig=_e.define();var Tt=class t{constructor(e,a,n,r,i,o){this.startState=e,this.changes=a,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&qM(n,a.newLength),i.some(s=>s.type==t.time)||(this.annotations=i.concat(t.time.of(Date.now())))}static create(e,a,n,r,i,o){return new t(e,a,n,r,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]=="."))}};Tt.time=qa.define();Tt.userEvent=qa.define();Tt.addToHistory=qa.define();Tt.remote=qa.define();function g6(t,e){let a=[];for(let n=0,r=0;;){let i,o;if(n<t.length&&(r==e.length||e[r]>=t[n]))i=t[n++],o=t[n++];else if(r<e.length)i=e[r++],o=e[r++];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 YM(t,e,a){var n;let r,i,o;return a?(r=e.changes,i=La.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),i=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(i):(n=t.selection)===null||n===void 0?void 0:n.map(r),effects:_e.mapEffects(t.effects,r).concat(_e.mapEffects(e.effects,i)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function BS(t,e,a){let n=e.selection,r=Ou(e.annotations);return e.userEvent&&(r=r.concat(Tt.userEvent.of(e.userEvent))),{changes:e.changes instanceof La?e.changes:La.of(e.changes||[],a,t.facet(FM)),selection:n&&(n instanceof I?n:I.single(n.anchor,n.head)),effects:Ou(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function WM(t,e,a){let n=BS(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;n=YM(n,BS(t,e[i],o?n.changes.newLength:t.doc.length),o)}let r=Tt.create(t,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return b6(a?O6(r):r)}function O6(t){let e=t.startState,a=!0;for(let r of e.facet(GM)){let i=r(t);if(i===!1){a=!1;break}Array.isArray(i)&&(a=a===!0?i:g6(a,i))}if(a!==!0){let r,i;if(a===!1)i=t.changes.invertedDesc,r=La.empty(e.doc.length);else{let o=t.changes.filter(a);r=o.changes,i=o.filtered.mapDesc(o.changes).invertedDesc}t=Tt.create(e,r,t.selection&&t.selection.map(i),_e.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let n=e.facet(HM);for(let r=n.length-1;r>=0;r--){let i=n[r](t);i instanceof Tt?t=i:Array.isArray(i)&&i.length==1&&i[0]instanceof Tt?t=i[0]:t=WM(e,Ou(i),!1)}return t}function b6(t){let e=t.startState,a=e.facet(jM),n=t;for(let r=a.length-1;r>=0;r--){let i=a[r](t);i&&Object.keys(i).length&&(n=YM(n,BS(e,i,t.changes.newLength),!0))}return n==t?t:Tt.create(e,t.changes,t.selection,n.effects,n.annotations,n.scrollIntoView)}var x6=[];function Ou(t){return t==null?x6:Array.isArray(t)?t:[t]}var ft=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(ft||(ft={})),S6=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,zS;try{zS=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function y6(t){if(zS)return zS.test(t);for(let e=0;e<t.length;e++){let a=t[e];if(/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||S6.test(a)))return!0}return!1}function v6(t){return e=>{if(!/\S/.test(e))return ft.Space;if(y6(e))return ft.Word;for(let a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return ft.Word;return ft.Other}}var Ye=class t{constructor(e,a,n,r,i,o){this.config=e,this.doc=a,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)Hf(this,s<<1);this.computeSlot=null}field(e,a=!0){let n=this.config.address[e.id];if(n==null){if(a)throw new RangeError("Field is not present in this state");return}return Hf(this,n),Pm(this,n)}update(...e){return WM(this,e,!0)}applyTransaction(e){let a=this.config,{base:n,compartments:r}=a;for(let s of e.effects)s.is(Tm.reconfigure)?(a&&(r=new Map,a.compartments.forEach((l,u)=>r.set(u,l)),a=null),r.set(s.value.compartment,s.value.extension)):s.is(_e.reconfigure)?(a=null,n=s.value):s.is(_e.appendConfig)&&(a=null,n=Ou(n).concat(s.value));let i;a?i=e.startState.values.slice():(a=Im.resolve(n,r,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(QS)?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:I.cursor(a.from+e.length,-1)}))}changeByRange(e){let a=this.selection,n=e(a.ranges[0]),r=this.changes(n.changes),i=[n.range],o=Ou(n.effects);for(let s=1;s<a.ranges.length;s++){let l=e(a.ranges[s]),u=this.changes(l.changes),c=u.map(r);for(let d=0;d<s;d++)i[d]=i[d].map(c);let f=r.mapDesc(u,!0);i.push(l.range.map(f)),r=r.compose(c),o=_e.mapEffects(o,c).concat(_e.mapEffects(Ou(l.effects),f))}return{changes:r,selection:I.create(i,a.mainIndex),effects:o}}changes(e=[]){return e instanceof La?e:La.of(e,this.doc.length,this.facet(t.lineSeparator))}toText(e){return Te.of(e.split(this.facet(t.lineSeparator)||IS))}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:(Hf(this,a),Pm(this,a))}toJSON(e){let a={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof Wt&&this.config.address[r.id]!=null&&(a[n]=r.spec.toJSON(this.field(e[n]),this))}return a}static fromJSON(e,a={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let i in n)if(Object.prototype.hasOwnProperty.call(e,i)){let o=n[i],s=e[i];r.push(o.init(l=>o.spec.fromJSON(s,l)))}}return t.create({doc:e.doc,selection:I.fromJSON(e.selection),extensions:a.extensions?r.concat([a.extensions]):r})}static create(e={}){let a=Im.resolve(e.extensions||[],new Map),n=e.doc instanceof Te?e.doc:Te.of((e.doc||"").split(a.staticFacet(t.lineSeparator)||IS)),r=e.selection?e.selection instanceof I?e.selection:I.single(e.selection.anchor,e.selection.head):I.single(0);return qM(r,n.length),a.staticFacet(QS)||(r=r.asSingle()),new t(a,n,r,a.dynamicSlots.map(()=>null),(i,o)=>o.create(i),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||`
|
|
34
|
+
`}get readOnly(){return this.facet(VM)}phrase(e,...a){for(let n of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return a.length&&(e=e.replace(/\$(\$|\d*)/g,(n,r)=>{if(r=="$")return"$";let i=+(r||1);return!i||i>a.length?n:a[i-1]})),e}languageDataAt(e,a,n=-1){let r=[];for(let i of this.facet(ZM))for(let o of i(this,a,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let a=this.languageDataAt("wordChars",e);return v6(a.length?a[0]:"")}wordAt(e){let{text:a,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let l=Lt(a,o,!1);if(i(a.slice(l,o))!=ft.Word)break;o=l}for(;s<r;){let l=Lt(a,s);if(i(a.slice(s,l))!=ft.Word)break;s=l}return o==s?null:I.range(o+n,s+n)}};Ye.allowMultipleSelections=QS;Ye.tabSize=V.define({combine:t=>t.length?t[0]:4});Ye.lineSeparator=FM;Ye.readOnly=VM;Ye.phrases=V.define({compare(t,e){let a=Object.keys(t),n=Object.keys(e);return a.length==n.length&&a.every(r=>t[r]==e[r])}});Ye.languageData=ZM;Ye.changeFilter=GM;Ye.transactionFilter=HM;Ye.transactionExtender=jM;Tm.reconfigure=_e.define();function ln(t,e,a={}){let n={};for(let r of t)for(let i of Object.keys(r)){let o=r[i],s=n[i];if(s===void 0)n[i]=o;else if(!(s===o||o===void 0))if(Object.hasOwnProperty.call(a,i))n[i]=a[i](s,o);else throw new Error("Config merge conflict for field "+i)}for(let r in e)n[r]===void 0&&(n[r]=e[r]);return n}var Pn=class{eq(e){return this==e}range(e,a=e){return Vf.create(e,a,this)}};Pn.prototype.startSide=Pn.prototype.endSide=0;Pn.prototype.point=!1;Pn.prototype.mapMode=ca.TrackDel;function HS(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}var Vf=class t{constructor(e,a,n){this.from=e,this.to=a,this.value=n}static create(e,a,n){return new t(e,a,n)}};function US(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}var XS=class t{constructor(e,a,n,r){this.from=e,this.to=a,this.value=n,this.maxPoint=r}get length(){return pu(this.to)}findIndex(e,a,n,r=0){let i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let l=o+s>>1,u=i[l]-e||(n?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,n,r){for(let i=this.findIndex(a,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(r(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(e,a,n,r,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,b;if(h==p){let g=a.mapPos(h,d.startSide,d.mapMode);if(g==null||(m=b=g,d.startSide!=d.endSide&&(b=a.mapPos(h,d.endSide),b<m)))continue}else if(m=a.mapPos(h,d.startSide),b=a.mapPos(p,d.endSide),m>b||m==b&&d.startSide>0&&d.endSide<=0)continue;if(!((b-m||d.endSide-d.startSide)<0))if(u<0&&(u=m),d.point&&(c=Math.max(c,b-m)),(m-n||d.startSide-r)>=0)o.push(d),s.push(m-u),l.push(b-u),n=b,r=d.endSide;else{if(m==b)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,b-u);continue e}if((m-(s[g-1]+u)||d.endSide-o[g-1].startSide)>0)break}i(m,b,d)}}return{mapped:o.length?new t(s,l,o,c):null,pos:u}}},ze=class t{constructor(e,a,n,r){this.chunkPos=e,this.chunk=a,this.nextLayer=n,this.maxPoint=r}static create(e,a,n,r){return new t(e,a,n,r)}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:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(a.length==0&&!o)return this;if(n&&(a=a.slice().sort(US)),this.isEmpty)return a.length?t.of(a):this;let s=new Mm(this,null,-1).goto(0),l=0,u=[],c=new In;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||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value,!1)||u.push(Vf.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:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let a=[],n=[],r=-1,i,o=(l,u,c)=>{i||(i=new In),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)r=Math.max(r,c.maxPoint),a.push(c),n.push(e.mapPos(u));else if(f===!0){let[d,h]=a.length?[pu(n)+pu(a).length,pu(pu(a).value).endSide]:[-1,-1],{mapped:p,pos:m}=c.map(u,e,d,h,o);p&&(r=Math.max(r,p.maxPoint),a.push(p),n.push(m))}}let s=this.nextLayer.map(e);return i&&(s=i.finishInner(s)),a.length==0?s:new t(n,a,s||t.empty,r)}between(e,a,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(a>=i&&e<=i+o.length&&o.between(i,e-i,a-i,n)===!1)return}this.nextLayer.between(e,a,n)}}iter(e=0){return Yf.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,a=0){return Yf.from(e).goto(a)}static compare(e,a,n,r,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=BM(o,s,n),u=new Es(o,l,i),c=new Es(s,l,i);n.iterGaps((f,d,h)=>zM(u,f,c,d,h,r)),n.empty&&n.length==0&&zM(u,0,c,0,0,r)}static eq(e,a,n=0,r){r==null&&(r=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=BM(i,o),l=new Es(i,s,0).goto(n),u=new Es(o,s,0).goto(n);for(;;){if(l.to!=u.to||!qS(l.active,u.active)||l.point&&(!u.point||!HS(l.point,u.point)))return!1;if(l.to>r)return!0;l.next(),u.next()}}static spans(e,a,n,r,i=-1){let o=new Es(e,null,i).goto(a),s=a,l=o.openStart;for(;;){let u=Math.min(o.to,n);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);r.point(s,u,o.point,c,f,o.pointRank),l=Math.min(o.openEnd(u),c.length)}else u>s&&(r.span(s,u,o.active,l),l=o.openEnd(u));if(o.to>n)return l+(o.point&&o.to>n?1:0);s=o.to,o.next()}}static of(e,a=!1){let n=new In;for(let r of e instanceof Vf?[e]:a?C6(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return t.empty;let a=pu(e);for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=t.empty;r=r.nextLayer)a=new t(r.chunkPos,r.chunk,a,Math.max(r.maxPoint,a.maxPoint));return a}};ze.empty=new ze([],[],null,-1);function pu(t){return t[t.length-1]}function C6(t){if(t.length>1)for(let e=t[0],a=1;a<t.length;a++){let n=t[a];if(US(e,n)>0)return t.slice().sort(US);e=n}return t}ze.empty.nextLayer=ze.empty;var In=class t{finishChunk(e){this.chunks.push(new XS(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,n){this.addRange(e,a,n,!0)}addRange(e,a,n,r){this.addInner(e,a,n,r)||(this.nextLayer||(this.nextLayer=new t)).addRange(e,a,n,r)}addInner(e,a,n,r){let i=e-this.lastTo||n.startSide-this.last.endSide;if(r&&i<=0&&(e-this.lastFrom||n.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=n,this.lastFrom=e,this.lastTo=a,this.value.push(n),n.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 n=a.value.length-1;return this.last=a.value[n],this.lastFrom=a.from[n]+e,this.lastTo=a.to[n]+e,!0}finish(){return this.finishInner(ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let a=ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,a}};function BM(t,e,a){let n=new Map;for(let i of t)for(let o=0;o<i.chunk.length;o++)i.chunk[o].maxPoint<=0&&n.set(i.chunk[o],i.chunkPos[o]);let r=new Set;for(let i of e)for(let o=0;o<i.chunk.length;o++){let s=n.get(i.chunk[o]);s!=null&&(a?a.mapPos(s):s)==i.chunkPos[o]&&!a?.touchesRange(s,s+i.chunk[o].length)&&r.add(i.chunk[o])}return r}var Mm=class{constructor(e,a,n,r=0){this.layer=e,this.skip=a,this.minPoint=n,this.rank=r}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,n){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],a,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}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],n=e+a.from[this.rangeIndex];if(this.from=n,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}},Yf=class t{constructor(e){this.heap=e}static from(e,a=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new Mm(o,a,n,i));return r.length==1?r[0]:new t(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,a=-1e9){for(let n of this.heap)n.goto(e,a);for(let n=this.heap.length>>1;n>=0;n--)RS(this.heap,n);return this.next(),this}forward(e,a){for(let n of this.heap)n.forward(e,a);for(let n=this.heap.length>>1;n>=0;n--)RS(this.heap,n);(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(),RS(this.heap,0)}}};function RS(t,e){for(let a=t[e];;){let n=(e<<1)+1;if(n>=t.length)break;let r=t[n];if(n+1<t.length&&r.compare(t[n+1])>=0&&(r=t[n+1],n++),a.compare(r)<0)break;t[n]=a,t[e]=r,e=n}}var Es=class{constructor(e,a,n){this.minPoint=n,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=Yf.from(e,a,n)}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){km(this.active,e),km(this.activeTo,e),km(this.activeRank,e),this.minActive=UM(this.active,this.activeTo)}addActive(e){let a=0,{value:n,to:r,rank:i}=this.cursor;for(;a<this.activeRank.length&&(i-this.activeRank[a]||r-this.activeTo[a])>0;)a++;Lm(this.active,a,n),Lm(this.activeTo,a,r),Lm(this.activeRank,a,i),e&&Lm(e,a,this.cursor.from),this.minActive=UM(this.active,this.activeTo)}next(){let e=this.to,a=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&km(n,r)}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(n),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(n){this.openStart=0;for(let r=n.length-1;r>=0&&n[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let a=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&a.push(this.active[n]);return a.reverse()}openEnd(e){let a=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)a++;return a}};function zM(t,e,a,n,r,i){t.goto(e),a.goto(n);let o=n+r,s=n,l=n-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&&HS(t.point,a.point)&&qS(t.activeForPoint(t.to),a.activeForPoint(a.to))||i.comparePoint(s,p,t.point,a.point),c=!1):(c&&(i.boundChange(s),c=!1),p>s&&!qS(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 qS(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!=e[a]&&!HS(t[a],e[a]))return!1;return!0}function km(t,e){for(let a=e,n=t.length-1;a<n;a++)t[a]=t[a+1];t.pop()}function Lm(t,e,a){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=a}function UM(t,e){let a=-1,n=1e9;for(let r=0;r<e.length;r++)(e[r]-n||t[r].endSide-t[a].endSide)<0&&(a=r,n=e[r]);return a}function Ea(t,e,a=t.length){let n=0;for(let r=0;r<a&&r<t.length;)t.charCodeAt(r)==9?(n+=e-n%e,r++):(n++,r=Lt(t,r));return n}function Dm(t,e,a,n){for(let r=0,i=0;;){if(i>=e)return r;if(r==t.length)break;i+=t.charCodeAt(r)==9?a-i%a:1,r=Lt(t,r)}return n===!0?-1:t.length}var KM=typeof Symbol>"u"?"__\u037C":Symbol.for("\u037C"),jS=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),JM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Dn=class{constructor(e,a){this.rules=[];let{finish:n}=a||{};function r(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(b=>m.replace(/&/,b))).reduce((m,b)=>m.concat(b)),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(r(h),p,c,d)}else p!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(c.length||d)&&l.push((n&&!f&&!u?o.map(n):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)i(r(o),e[o],this.rules)}getRules(){return this.rules.join(`
|
|
35
|
+
`)}static newName(){let e=JM[KM]||1;return JM[KM]=e+1,"\u037C"+e.toString(36)}static mount(e,a,n){let r=e[jS],i=n&&n.nonce;r?i&&r.setNonce(i):r=new VS(e,i),r.mount(Array.isArray(a)?a:[a],e)}},e2=new Map,VS=class{constructor(e,a){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let i=e2.get(n);if(i)return e[jS]=i;this.sheet=new r.CSSStyleSheet,e2.set(n,this)}else this.styleTag=n.createElement("style"),a&&this.styleTag.setAttribute("nonce",a);this.modules=[],e[jS]=this}mount(e,a){let n=this.sheet,r=0,i=0,o=!1;for(let s=0;s<e.length;s++){let l=e[s],u=this.modules.indexOf(l);if(u<i&&u>-1&&(this.modules.splice(u,1),o=!0,i--,u=-1),u==-1){if(this.modules.splice(i++,0,l),o=!0,n)for(let c=0;c<l.rules.length;c++)n.insertRule(l.rules[c],r++)}else{for(;i<u;)r+=this.modules[i++].rules.length;r+=l.rules.length,i++}}if(n)a.adoptedStyleSheets.indexOf(this.sheet)<0&&(a.adoptedStyleSheets=[this.sheet,...a.adoptedStyleSheets]);else{if(o){let l="";for(let u=0;u<this.modules.length;u++)l+=this.modules[u].getRules()+`
|
|
36
|
+
`;this.styleTag.textContent=l}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 di={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:"'"},Su={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},w6=typeof navigator<"u"&&/Mac/.test(navigator.platform),k6=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(It=0;It<10;It++)di[48+It]=di[96+It]=String(It);var It;for(It=1;It<=24;It++)di[It+111]="F"+It;var It;for(It=65;It<=90;It++)di[It]=String.fromCharCode(It+32),Su[It]=String.fromCharCode(It);var It;for(Qm in di)Su.hasOwnProperty(Qm)||(Su[Qm]=di[Qm]);var Qm;function t2(t){var e=w6&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||k6&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",a=!e&&t.key||(t.shiftKey?Su:di)[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}function Et(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,a=arguments[1];if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){var r=a[n];typeof r=="string"?t.setAttribute(n,r):r!=null&&(t[n]=r)}e++}for(;e<arguments.length;e++)a2(t,arguments[e]);return t}function a2(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var a=0;a<e.length;a++)a2(t,e[a]);else throw new RangeError("Unsupported child node: "+e)}var _a=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},ny=typeof document<"u"?document:{documentElement:{style:{}}},ry=/Edge\/(\d+)/.exec(_a.userAgent),B2=/MSIE \d/.test(_a.userAgent),iy=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_a.userAgent),cg=!!(B2||iy||ry),n2=!cg&&/gecko\/(\d+)/i.test(_a.userAgent),YS=!cg&&/Chrome\/(\d+)/.exec(_a.userAgent),r2="webkitFontSmoothing"in ny.documentElement.style,oy=!cg&&/Apple Computer/.test(_a.vendor),i2=oy&&(/Mobile\/\w+/.test(_a.userAgent)||_a.maxTouchPoints>2),F={mac:i2||/Mac/.test(_a.platform),windows:/Win/.test(_a.platform),linux:/Linux|X11/.test(_a.platform),ie:cg,ie_version:B2?ny.documentMode||6:iy?+iy[1]:ry?+ry[1]:0,gecko:n2,gecko_version:n2?+(/Firefox\/(\d+)/.exec(_a.userAgent)||[0,0])[1]:0,chrome:!!YS,chrome_version:YS?+YS[1]:0,ios:i2,android:/Android\b/.test(_a.userAgent),webkit:r2,webkit_version:r2?+(/\bAppleWebKit\/(\d+)/.exec(_a.userAgent)||[0,0])[1]:0,safari:oy,safari_version:oy?+(/\bVersion\/(\d+(\.\d+)?)/.exec(_a.userAgent)||[0,0])[1]:0,tabSize:ny.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Jy(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 Ym=Object.create(null);function ev(t,e,a){if(t==e)return!0;t||(t=Ym),e||(e=Ym);let n=Object.keys(t),r=Object.keys(e);if(n.length-0!=r.length-0)return!1;for(let i of n)if(i!=a&&(r.indexOf(i)==-1||t[i]!==e[i]))return!1;return!0}function L6(t,e){for(let a=t.attributes.length-1;a>=0;a--){let n=t.attributes[a].name;e[n]==null&&t.removeAttribute(n)}for(let a in e){let n=e[a];a=="style"?t.style.cssText=n:t.getAttribute(a)!=n&&t.setAttribute(a,n)}}function o2(t,e,a){let n=!1;if(e)for(let r in e)a&&r in a||(n=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(a)for(let r in a)e&&e[r]==a[r]||(n=!0,r=="style"?t.style.cssText=a[r]:t.setAttribute(r,a[r]));return n}function E6(t){let e=Object.create(null);for(let a=0;a<t.attributes.length;a++){let n=t.attributes[a];e[n.name]=n.value}return e}var cn=class{eq(e){return!1}updateDOM(e,a,n){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,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},fa=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(fa||(fa={})),ce=class extends Pn{constructor(e,a,n,r){super(),this.startSide=e,this.endSide=a,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new cd(e)}static widget(e){let a=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return a+=n&&!e.inlineOrder?a>0?3e8:-4e8:a>0?1e8:-1e8,new Ps(e,a,a,n,e.widget||null,!1)}static replace(e){let a=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:o}=z2(e,a);n=(i?a?-3e8:-1:5e8)-1,r=(o?a?2e8:1:-6e8)+1}return new Ps(e,n,r,a,e.widget||null,!0)}static line(e){return new fd(e)}static set(e,a=!1){return ze.of(e,a)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};ce.none=ze.empty;var cd=class t extends ce{constructor(e){let{start:a,end:n}=z2(e);super(a?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Jy(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Ym}eq(e){return this==e||e instanceof t&&this.tagName==e.tagName&&ev(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)}};cd.prototype.point=!1;var fd=class t extends ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof t&&this.spec.class==e.spec.class&&ev(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)}};fd.prototype.mapMode=ca.TrackBefore;fd.prototype.point=!0;var Ps=class t extends ce{constructor(e,a,n,r,i,o){super(a,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?a<=0?ca.TrackBefore:ca.TrackAfter:ca.TrackDel}get type(){return this.startSide!=this.endSide?fa.WidgetRange:this.startSide<=0?fa.WidgetBefore:fa.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof t&&_6(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)}};Ps.prototype.point=!0;function z2(t,e=!1){let{inclusiveStart:a,inclusiveEnd:n}=t;return a==null&&(a=t.inclusive),n==null&&(n=t.inclusive),{start:a??e,end:n??e}}function _6(t,e){return t==e||!!(t&&e&&t.compare(e))}function Lu(t,e,a,n=0){let r=a.length-1;r>=0&&a[r]+n>=t?a[r]=Math.max(a[r],e):a.push(t,e)}var Wm=class t extends Pn{constructor(e,a,n){super(),this.tagName=e,this.attributes=a,this.rank=n}eq(e){return e==this||e instanceof t&&this.tagName==e.tagName&&ev(this.attributes,e.attributes)}static create(e){return new t(e.tagName,e.attributes||Ym,e.rank==null?50:Math.max(0,Math.min(e.rank,100)))}static set(e,a=!1){return ze.of(e,a)}};Wm.prototype.startSide=Wm.prototype.endSide=-1;var Kt=t=>t.nodeType==1,_u=t=>t.nodeType==3;function dd(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function sy(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function td(t,e){if(!e.anchorNode)return!1;try{return sy(t,e.anchorNode)}catch{return!1}}function Zm(t){return _u(t)?hd(t,0,t.nodeValue.length).getClientRects():Kt(t)?t.getClientRects():[]}function ad(t,e,a,n){return a?s2(t,e,a,n,-1)||s2(t,e,a,n,1):!1}function vo(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function Km(t){return Kt(t)&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function s2(t,e,a,n,r){for(;;){if(t==a&&e==n)return!0;if(e==(r<0?0:mi(t))){if(t.nodeName=="DIV")return!1;let i=t.parentNode;if(!i||!Kt(i))return!1;e=vo(t)+(r<0?0:1),t=i}else if(Kt(t)){if(t=t.childNodes[e+(r<0?-1:0)],Kt(t)&&(t.nodeName=="IMG"||t.nodeName=="BR"||t.contentEditable=="false"))return!1;e=r<0?mi(t):0}else return!1}}function mi(t){return _u(t)?t.nodeValue.length:t.childNodes.length}function Jm(t,e){let{left:a,right:n}=t;if(a==n)return t;let r=e?a:n;return{left:r,right:r,top:t.top,bottom:t.bottom}}function A6(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 U2(t,e){let a=e.width/t.offsetWidth,n=e.height/t.offsetHeight;return(a>.995&&a<1.005||!isFinite(a)||Math.abs(e.width-t.offsetWidth)<1)&&(a=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-t.offsetHeight)<1)&&(n=1),{scaleX:a,scaleY:n}}function R6(t,e,a,n,r,i,o,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=!1;c&&!f;)if(Kt(c)){let d,h=c==l.body,p=1,m=1;if(h)d=A6(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}=U2(c,O)),d={left:O.left,right:O.left+c.clientWidth*p,top:O.top,bottom:O.top+c.clientHeight*m}}let b=0,g=0;if(r=="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,x=d.bottom-d.top;g=(r=="center"&&O<=x?e.top+O/2-x/2:r=="start"||r=="center"&&a<0?e.top-o:e.bottom-x+o)-d.top}if(n=="nearest"?e.left<d.left+i?(b=e.left-(d.left+i),a>0&&e.right>d.right+b&&(b=e.right-d.right+i)):e.right>d.right-i&&(b=e.right-d.right+i,a<0&&e.left<d.left+b&&(b=e.left-(d.left+i))):b=(n=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:n=="start"==s?e.left-i:e.right-(d.right-d.left)+i)-d.left,b||g)if(h)u.scrollBy(b,g);else{let O=0,x=0;if(g){let S=c.scrollTop;c.scrollTop+=g/m,x=(c.scrollTop-S)*m}if(b){let S=c.scrollLeft;c.scrollLeft+=b/p,O=(c.scrollLeft-S)*p}e={left:e.left-O,top:e.top-x,right:e.right-O,bottom:e.bottom-x},O&&Math.abs(O-b)<1&&(n="nearest"),x&&Math.abs(x-g)<1&&(r="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 X2(t,e=!0){let a=t.ownerDocument,n=null,r=null;for(let i=t.parentNode;i&&!(i==a.body||(!e||n)&&r);)if(Kt(i))!r&&i.scrollHeight>i.clientHeight&&(r=i),e&&!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:n,y:r}}var ly=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:n}=e;this.set(a,Math.min(e.anchorOffset,a?mi(a):0),n,Math.min(e.focusOffset,n?mi(n):0))}set(e,a,n,r){this.anchorNode=e,this.anchorOffset=a,this.focusNode=n,this.focusOffset=r}};function q2(t){let e=[];for(let a=t;a;a=a.nodeType==11?a.host:a.parentNode)Kt(a)&&e.push({node:a,left:a.scrollLeft,top:a.scrollTop});return e}function Z2(t,e=!0){for(let{node:a,left:n,top:r}of t)e&&a.scrollTop!=r&&(a.scrollTop=r),a.scrollLeft!=n&&(a.scrollLeft=n)}var Rs=null;F.safari&&F.safari_version>=26&&(Rs=!1);function F2(t){if(t.setActive)return t.setActive();if(Rs)return t.focus(Rs);let e=q2(t);t.focus(Rs==null?{get preventScroll(){return Rs={preventScroll:!0},!0}}:void 0),Rs||(Rs=!1,Z2(e))}var l2;function hd(t,e,a=e){let n=l2||(l2=document.createRange());return n.setEnd(t,a),n.setStart(t,e),n}function Eu(t,e,a,n){let r={key:e,code:e,keyCode:a,which:a,cancelable:!0};n&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=n);let i=new KeyboardEvent("keydown",r);i.synthetic=!0,t.dispatchEvent(i);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function T6(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function I6(t,e){let a=e.focusNode,n=e.focusOffset;if(!a||e.anchorNode!=a||e.anchorOffset!=n)return!1;for(n=Math.min(n,mi(a));;)if(n){if(!Kt(a))return!1;let r=a.childNodes[n-1];r.contentEditable=="false"?n--:(a=r,n=mi(a))}else{if(a==t)return!0;n=vo(a),a=a.parentNode}}function G2(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 H2(t,e){for(let a=t,n=e;;){if(_u(a)&&n>0)return{node:a,offset:n};if(Kt(a)&&n>0){if(a.contentEditable=="false")return null;a=a.childNodes[n-1],n=mi(a)}else if(a.parentNode&&!Km(a))n=vo(a),a=a.parentNode;else return null}}function j2(t,e){for(let a=t,n=e;;){if(_u(a)&&n<a.nodeValue.length)return{node:a,offset:n};if(Kt(a)&&n<a.childNodes.length){if(a.contentEditable=="false")return null;a=a.childNodes[n],n=0}else if(a.parentNode&&!Km(a))n=vo(a)+1,a=a.parentNode;else return null}}var zr=class t{constructor(e,a,n=!0){this.node=e,this.offset=a,this.precise=n}static before(e,a){return new t(e.parentNode,vo(e),a)}static after(e,a){return new t(e.parentNode,vo(e)+1,a)}},rt=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(rt||(rt={})),Ms=rt.LTR,tv=rt.RTL;function V2(t){let e=[];for(let a=0;a<t.length;a++)e.push(1<<+t[a]);return e}var P6=V2("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),M6=V2("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),uy=Object.create(null),Br=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),a=t.charCodeAt(1);uy[e]=a,uy[a]=-e}function Y2(t){return t<=247?P6[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?M6[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}var D6=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,$n=class{get dir(){return this.level%2?tv:Ms}constructor(e,a,n){this.from=e,this.to=a,this.level=n}side(e,a){return this.dir==a==e?this.to:this.from}forward(e,a){return e==(this.dir==a)}static find(e,a,n,r){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==n)return o;(i<0||(r!=0?r<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 W2(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++){let n=t[a],r=e[a];if(n.from!=r.from||n.to!=r.to||n.direction!=r.direction||!W2(n.inner,r.inner))return!1}return!0}var nt=[];function Q6(t,e,a,n,r){for(let i=0;i<=n.length;i++){let o=i?n[i-1].to:e,s=i<n.length?n[i].from:a,l=i?256:r;for(let u=o,c=l,f=l;u<s;u++){let d=Y2(t.charCodeAt(u));d==512?d=c:d==8&&f==4&&(d=16),nt[u]=d==4?2:d,d&7&&(f=d),c=d}for(let u=o,c=l,f=l;u<s;u++){let d=nt[u];if(d==128)u<s-1&&c==nt[u+1]&&c&24?d=nt[u]=c:nt[u]=256;else if(d==64){let h=u+1;for(;h<s&&nt[h]==64;)h++;let p=u&&c==8||h<a&&nt[h]==8?f==1?1:8:256;for(let m=u;m<h;m++)nt[m]=p;u=h-1}else d==8&&f==1&&(nt[u]=1);c=d,d&7&&(f=d)}}}function N6(t,e,a,n,r){let i=r==1?2:1;for(let o=0,s=0,l=0;o<=n.length;o++){let u=o?n[o-1].to:e,c=o<n.length?n[o].from:a;for(let f=u,d,h,p;f<c;f++)if(h=uy[d=t.charCodeAt(f)])if(h<0){for(let m=s-3;m>=0;m-=3)if(Br[m+1]==-h){let b=Br[m+2],g=b&2?r:b&4?b&1?i:r:0;g&&(nt[f]=nt[Br[m]]=g),s=m;break}}else{if(Br.length==189)break;Br[s++]=f,Br[s++]=d,Br[s++]=l}else if((p=nt[f])==2||p==1){let m=p==r;l=m?0:1;for(let b=s-3;b>=0;b-=3){let g=Br[b+2];if(g&2)break;if(m)Br[b+2]|=2;else{if(g&4)break;Br[b+2]|=4}}}}}function $6(t,e,a,n){for(let r=0,i=n;r<=a.length;r++){let o=r?a[r-1].to:t,s=r<a.length?a[r].from:e;for(let l=o;l<s;){let u=nt[l];if(u==256){let c=l+1;for(;;)if(c==s){if(r==a.length)break;c=a[r++].to,s=r<a.length?a[r].from:e}else if(nt[c]==256)c++;else break;let f=i==1,d=(c<e?nt[c]:n)==1,h=f==d?f?1:2:n;for(let p=c,m=r,b=m?a[m-1].to:t;p>l;)p==b&&(p=a[--m].from,b=m?a[m-1].to:t),nt[--p]=h;l=c}else i=u,l++}}}function cy(t,e,a,n,r,i,o){let s=n%2?2:1;if(n%2==r%2)for(let l=e,u=0;l<a;){let c=!0,f=!1;if(u==i.length||l<i[u].from){let m=nt[l];m!=s&&(c=!1,f=m==16)}let d=!c&&s==1?[]:null,h=c?n:n+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 b=m.to,g=u+1;;){if(b==a)break e;if(g<i.length&&i[g].from==b)b=i[g++].to;else{if(nt[b]==s)break e;break}}if(u++,d)d.push(m);else{m.from>l&&o.push(new $n(l,m.from,h));let b=m.direction==Ms!=!(h%2);fy(t,b?n+1:n,r,m.inner,m.from,m.to,o),l=m.to}p=m.to}else{if(p==a||(c?nt[p]!=s:nt[p]==s))break;p++}d?cy(t,l,p,n+1,r,d,o):l<p&&o.push(new $n(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=nt[l-1];m!=s&&(c=!1,f=m==16)}let d=!c&&s==1?[]:null,h=c?n:n+1,p=l;e:for(;;)if(u&&p==i[u-1].to){if(f)break e;let m=i[--u];if(!c)for(let b=m.from,g=u;;){if(b==e)break e;if(g&&i[g-1].to==b)b=i[--g].from;else{if(nt[b-1]==s)break e;break}}if(d)d.push(m);else{m.to<l&&o.push(new $n(m.to,l,h));let b=m.direction==Ms!=!(h%2);fy(t,b?n+1:n,r,m.inner,m.from,m.to,o),l=m.from}p=m.from}else{if(p==e||(c?nt[p-1]!=s:nt[p-1]==s))break;p--}d?cy(t,p,l,n+1,r,d,o):p<l&&o.push(new $n(p,l,h)),l=p}}function fy(t,e,a,n,r,i,o){let s=e%2?2:1;Q6(t,r,i,n,s),N6(t,r,i,n,s),$6(r,i,n,s),cy(t,r,i,e,a,n,o)}function B6(t,e,a){if(!t)return[new $n(0,0,e==tv?1:0)];if(e==Ms&&!a.length&&!D6.test(t))return K2(t.length);if(a.length)for(;t.length>nt.length;)nt[nt.length]=256;let n=[],r=e==Ms?0:1;return fy(t,r,r,a,0,t.length,n),n}function K2(t){return[new $n(0,t,0)]}var J2="";function z6(t,e,a,n,r){var i;if(!t.length)return null;let o=n.head-t.from,s;if(n.head==t.from&&n.assoc<0){if(!r)return null;o=e[s=0].side(!1,a)}else if(n.head==t.to&&n.assoc>0){if(r)return null;o=e[s=e.length-1].side(!0,a)}else s=$n.find(e,o,(i=n.bidiLevel)!==null&&i!==void 0?i:-1,n.assoc);let l=e[s],u=l.side(r,a);if(o==u){let d=s+=r?1:-1;if(d<0||d>=e.length)return null;l=e[s=d],o=l.side(!r,a),u=l.side(r,a)}let c=Lt(t.text,o,l.forward(r,a));(c<l.from||c>l.to)&&(c=u),J2=t.text.slice(Math.min(o,c),Math.max(o,c));let f=s==(r?e.length-1:0)?null:e[s+(r?1:-1)];if(c==u){if(!f)return r?I.cursor(t.to,1):I.cursor(t.from,-1);if(f.level+(r?0:1)<l.level)return I.cursor(f.side(!r,a)+t.from,f.forward(r,a)?1:-1,f.level)}return I.cursor(c+t.from,l.forward(r,a)?-1:1,l.level)}function U6(t,e,a){for(let n=e;n<a;n++){let r=Y2(t.charCodeAt(n));if(r==1)return Ms;if(r==2||r==4)return tv}return Ms}var eD=V.define(),tD=V.define(),aD=V.define(),nD=V.define(),dy=V.define(),rD=V.define(),iD=V.define(),av=V.define(),nv=V.define(),oD=V.define({combine:t=>t.some(e=>e)}),sD=V.define({combine:t=>t.some(e=>e)}),lD=V.define(),nd=class t{constructor(e,a,n,r,i,o=!1){this.range=e,this.y=a,this.x=n,this.yMargin=r,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(I.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},Nm=_e.define({map:(t,e)=>t.map(e)}),uD=_e.define();function Bn(t,e,a){let n=t.facet(nD);n.length?n[0](e):window.onerror&&window.onerror(String(e),a,void 0,void 0,e)||(a?console.error(a+":",e):console.error(e))}var hi=V.define({combine:t=>t.length?t[0]:!0}),X6=0,vu=V.define({combine(t){return t.filter((e,a)=>{for(let n=0;n<a;n++)if(t[n].plugin==e.plugin)return!1;return!0})}}),Xt=class t{constructor(e,a,n,r,i){this.id=e,this.create=a,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(vu.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(vu.of({plugin:this,arg:e}))}static define(e,a){let{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=a||{};return new t(X6++,e,n,r,s=>{let l=[];return o&&l.push(fg.of(u=>{let c=u.plugin(s);return c?o(c):ce.none})),i&&l.push(i(s)),l})}static fromClass(e,a){return t.define((n,r)=>new e(n,r),a)}},rd=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(n){if(Bn(a.state,n,"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){Bn(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(n){Bn(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},cD=V.define(),rv=V.define(),fg=V.define(),fD=V.define(),iv=V.define(),md=V.define(),dD=V.define();function u2(t,e){let a=t.state.facet(dD);if(!a.length)return a;let n=a.map(i=>i instanceof Function?i(t):i),r=[];return ze.spans(n,e.from,e.to,{point(){},span(i,o,s,l){let u=i-e.from,c=o-e.from,f=r;for(let d=s.length-1;d>=0;d--,l--){let h=s[d].spec.bidiIsolate,p;if(h==null&&(h=U6(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}}}}),r}var hD=V.define();function pD(t){let e=0,a=0,n=0,r=0;for(let i of t.state.facet(hD)){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&&(n=Math.max(n,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:a,top:n,bottom:r}}var Kf=V.define(),ir=class t{constructor(e,a,n,r){this.fromA=e,this.toA=a,this.fromB=n,this.toB=r}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,n=this;for(;a>0;a--){let r=e[a-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(a-1,1)}}return e.splice(a,0,n),e}static extendWithRanges(e,a){if(a.length==0)return e;let n=[];for(let r=0,i=0,o=0;;){let s=r<e.length?e[r].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=r;p<e.length&&e[p].fromB<=f;p++)o=e[p].toA-e[p].toB;d=Math.max(d,h+o)}else if(r<e.length&&e[r].fromB<=f){let h=e[r++];f=Math.max(f,h.toB),d=Math.max(d,h.toA),o=h.toA-h.toB}else break;n.push(new t(c,d,u,f))}return n}},eg=class t{constructor(e,a,n){this.view=e,this.state=a,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=La.empty(this.startState.doc.length);for(let i of n)this.changes=this.changes.compose(i.changes);let r=[];this.changes.iterChangedRanges((i,o,s,l)=>r.push(new ir(i,o,s,l))),this.changedRanges=r}static create(e,a,n){return new t(e,a,n)}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}},q6=[],mt=class{constructor(e,a,n=0){this.dom=e,this.length=a,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return q6}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&&L6(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 n=a;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,a,n){return null}domPosFor(e,a){let n=vo(this.dom),r=this.length?e>0:a>0;return new zr(this.parent.dom,n+(r?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 Ru)return e;return null}static get(e){return e.cmTile}},Au=class extends mt{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,n=null,r,i=e?.node==a?e:null,o=0;for(let s of this.children){if(s.sync(e),o+=s.length+s.breakAfter,r=n?n.nextSibling:a.firstChild,i&&r!=s.dom&&(i.written=!0),s.dom.parentNode==a)for(;r&&r!=s.dom;)r=c2(r);else a.insertBefore(s.dom,r);n=s.dom}for(r=n?n.nextSibling:a.firstChild,i&&r&&(i.written=!0);r;)r=c2(r);this.length=o}};function c2(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}var Ru=class extends Au{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=mt.get(e);if(a&&this.owns(a))return a;e=e.parentNode}}blockTiles(e){for(let a=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!a.length)return;n=n.parent,n.breakAfter&&i++,r=a.pop()}else{let o=n.children[r++];if(o instanceof pi)a.push(r),n=o,r=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 n,r=-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&&(n=void 0)}(l<e||e==u&&(a<-1?s.length:s.covers(1)))&&(!n||!s.isWidget()&&n.isWidget())&&(n=s,r=e-l),(u>e||e==l&&(a>1?s.length:s.covers(-1)))&&(!i||!s.isWidget()&&i.isWidget())&&(i=s,o=e-l)}}),!n&&!i)throw new Error("No tile at position "+e);return n&&a<0||!i?{tile:n,offset:r}:{tile:i,offset:o}}},pi=class t extends Au{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 n=new t(a||document.createElement(e.tagName),e);return a||(n.flags|=4),n}},Tu=class t extends Au{constructor(e,a){super(e),this.attrs=a}isLine(){return!0}static start(e,a,n){let r=new t(a||document.createElement("div"),e);return(!a||!n)&&(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,a,n=!1){let r=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||n&&o.isHidden&&(a>0&&!(o.flags&32)||n&&F6(o,p)))&&(m>f||p.flags&32&&a<=1)?(o=p,s=f-h):(h<f||p.flags&16&&!(n&&p.isHidden)&&a>=-1)&&(r=p,i=f-h)),h=m}}l(this,e);let u=(a<0?r:o)||r||o;return u?{tile:u,offset:u==r?i:s}:null}coordsIn(e,a,n){let r=this.resolveInline(e,a,!0);return r?r.tile.coordsIn(Math.max(0,r.offset),a,n):Z6(this)}domIn(e,a){let n=this.resolveInline(e,a);if(n){let{tile:r,offset:i}=n;if(this.dom.contains(r.dom))return r.isText()?new zr(r.dom,Math.min(r.dom.nodeValue.length,i)):r.domPosFor(i,r.flags&16?1:r.flags&32?-1:a);let o=n.tile.parent,s=!1;for(let l of o.children){if(s)return new zr(l.dom,0);l==n.tile&&(s=!0)}}return new zr(this.dom,0)}};function Z6(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let a=Zm(e);return a[a.length-1]||null}function F6(t,e){let a=t.coordsIn(0,1),n=e.coordsIn(0,1);return a&&n&&n.top<a.bottom}var Za=class t extends Au{constructor(e,a){super(e),this.mark=a}get domAttrs(){return this.mark.attrs}static of(e,a){let n=new t(a||document.createElement(e.tagName),e);return a||(n.flags|=4),n}},Ts=class t extends mt{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,n){let r=this.dom.nodeValue.length;e>r&&(e=r);let i=e,o=e,s=0;e==0&&a<0||e==r&&a>=0?F.chrome||F.gecko||(e?(i--,s=1):o<r&&(o++,s=-1)):a<0?i--:o<r&&o++;let l=hd(this.dom,i,o).getClientRects();if(!l.length)return null;let u=l[(s?s<0:a>=0)?0:l.length-1];return F.safari&&!s&&u.width==0&&(u=Array.prototype.find.call(l,c=>c.width)||u),n==null?u:Jm(u,(s?s>0:a<0)==n)}static of(e,a){let n=new t(a||document.createTextNode(e),e);return a||(n.flags|=2),n}},Ds=class t extends mt{constructor(e,a,n,r){super(e,a,r),this.widget=n}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,n){let r=this.widget.coordsAt(this.dom,e,a);if(r)return r;if(n)return Jm(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 Jm(o,!s)}}get overrideDOMText(){if(!this.length)return Te.empty;let{root:e}=this;if(!e)return Te.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,n,r,i){return i||(i=e.toDOM(a),e.editable||(i.contentEditable="false")),new t(i,n,e,r)}},Iu=class extends mt{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 Te.empty}coordsIn(e,a,n){let r=this.dom.getBoundingClientRect();return n==null?r:Jm(r,a>0==n)}},hy=class{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,a,n){let{tile:r,index:i,beforeBreak:o,parents:s}=this;for(;e||a>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(i==r.children.length){if(!e&&!s.length)break;n&&n.leave(r),o=!!r.breakAfter,{tile:r,index:i}=s.pop(),i++}else{let l=r.children[i],u=l.breakAfter;(a>0?l.length<=e:l.length<e)&&(!n||n.skip(l,0,l.length)!==!1||!l.isComposite)?(o=!!u,i++,e-=l.length):(s.push({tile:r,index:i}),r=l,i=0,n&&l.isComposite()&&n.enter(l))}else{let l=r.length;if(i<l&&e){let u=Math.min(e,l-i);n&&n.skip(r,i,i+u),e-=u,i+=u}if(i==l)o=!!r.breakAfter,{tile:r,index:i}=s.pop(),i++;else if(!e)break}return this.tile=r,this.index=i,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}},py=class{constructor(e,a,n,r){this.from=e,this.to=a,this.wrapper=n,this.rank=r}},my=class{constructor(e,a,n){this.cache=e,this.root=a,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,a,n,r){var i;this.flushBuffer();let o=this.ensureMarks(a,n),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 Ts(s.dom,s.text+e);l.parent=o}else o.append(r||Ts.of(e,(i=this.cache.find(Ts))===null||i===void 0?void 0:i.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,a){let n=this.curLine;n.dom!=a.line.dom&&(n.setDOM(this.cache.reused.has(a.line)?WS(a.line.dom):a.line.dom),this.cache.reused.set(a.line,2));let r=n;for(let s=a.marks.length-1;s>=0;s--){let l=a.marks[s],u=r.lastChild;if(u instanceof Za&&u.mark.eq(l.mark))u.dom!=l.dom&&u.setDOM(WS(l.dom)),r=u;else{let{dom:c}=l;this.cache.reused.get(l)&&mt.get(l.dom)&&(c=WS(l.dom));let f=Za.of(l.mark,c);r.append(f),r=f}this.cache.reused.set(l,2)}let i=mt.get(e.text);i&&this.cache.reused.set(i,2);let o=new Ts(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,r.append(o)}addInlineWidget(e,a,n){let r=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);r||this.flushBuffer();let i=this.ensureMarks(a,n);!r&&!(e.flags&16)&&i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,a,n){this.flushBuffer(),this.ensureMarks(a,n).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 n;e||(e=mD);let r=Tu.start(e,a||((n=this.cache.find(Tu))===null||n===void 0?void 0:n.dom),!!a);this.getBlockPos().append(this.lastBlock=this.curLine=r)}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 n;let r=this.curLine;for(let i=e.length-1;i>=0;i--){let o=e[i],s;if(a>0&&(s=r.lastChild)&&s instanceof Za&&s.mark.eq(o))r=s,a--;else{let l=Za.of(o,(n=this.cache.find(Za,u=>u.mark.eq(o)))===null||n===void 0?void 0:n.dom);r.append(l),r=l,a=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!f2(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(F.ios&&f2(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(KS,0,32)||new Ds(KS.toDOM(),0,KS,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,n=new py(e.from,e.to,e.value,a),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let a=this.root;for(let n of this.wrappers){let r=a.lastChild;if(n.from<this.pos&&r instanceof pi&&r.wrapper.eq(n.wrapper))a=r;else{let i=pi.of(n.wrapper,(e=this.cache.find(pi,o=>o.wrapper.eq(n.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),n=this.cache.find(Iu,void 0,1);return n&&(n.flags=a),n||new Iu(a)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},gy=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:r,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=r;let s=this.textOff=Math.min(e,r.length);return i?null:r.slice(0,s)}let a=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,a);return this.textOff=a,n}},tg=[Ds,Tu,Ts,Za,Iu,pi,Ru];for(let t=0;t<tg.length;t++)tg[t].bucket=t;var Oy=class{constructor(e){this.view=e,this.buckets=tg.map(()=>[]),this.index=tg.map(()=>0),this.reused=new Map}add(e){let a=e.constructor.bucket,n=this.buckets[a];n.length<6?n.push(e):n[this.index[a]=(this.index[a]+1)%6]=e}find(e,a,n=2){let r=e.bucket,i=this.buckets[r],o=this.index[r];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[r]--,this.reused.set(u,n),u}return null}findWidget(e,a,n){let r=this.buckets[0];if(r.length)for(let i=0,o=0;;i++){if(i==r.length){if(o)return null;o=1,i=0}let s=r[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 r.splice(i,1),i<this.index[0]&&this.index[0]--,s.widget==e&&s.length==a&&(s.flags&497)==n?(this.reused.set(s,1),s):(this.reused.set(s,2),new Ds(s.dom,a,e,s.flags&-498|n))}}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}},by=class{constructor(e,a,n,r,i){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new Oy(e),this.text=new gy(e.state.doc),this.builder=new my(this.cache,new Ru(e,e.contentDOM),ze.iter(n)),this.cache.reused.set(a,2),this.old=new hy(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 n=a&&this.getCompositionContext(a.text);for(let r=0,i=0,o=0;;){let s=o<e.length?e[o++]:null,l=s?s.fromA:this.old.root.length;if(l>r){let u=l-r;this.preserve(u,!o,!s),r=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,n),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,r=s.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,a,n){let r=j6(this.old),i=this.openMarks;this.old.advance(e,n?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?Ds.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,r,i),i=r.length)}else if(o.isText())this.builder.ensureLine(null),!s&&l==o.length&&!this.cache.reused.has(o)?this.builder.addText(o.text,r,i,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(s,l),r,i)),i=r.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof Iu)this.cache.add(o);else if(o instanceof Za)this.builder.ensureLine(null),this.builder.addMark(o,r,i),this.cache.reused.set(o,1),i=r.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 Za&&r.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?r.length&&(r.length=i=0):o instanceof Za&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,a){let n=null,r=this.builder,i=-1,o=ze.spans(this.decorations,e,a,{point:(s,l,u,c,f,d)=>{if(u instanceof Ps){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)r.continueWidget(l-s);else{let h=u.widget||(u.block?Co.block:Co.inline),p=G6(u),m=this.cache.findWidget(h,l-s,p)||Ds.of(h,this.view,l-s,p);u.block?(u.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(m)):(r.ensureLine(n),r.addInlineWidget(m,c,f))}n=null}else n=H6(n,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?(r.addLineStartIfNotCovered(n),r.addBreak(),f++):(r.ensureLine(n),r.addText(d,u,f==s?c:u.length),f+=d.length),n=null}i=u.length}});i>-1&&(this.openWidget=o>i),this.openWidget||r.addLineStartIfNotCovered(n),this.openMarks=o}forward(e,a,n=1){a-e<=10?this.old.advance(a-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(a-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let a=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let i=mt.get(r);if(r==this.view.contentDOM)break;i instanceof Za?a.push(i):i?.isLine()?n=i:i instanceof pi||(r.nodeName=="DIV"&&!n?n=new Tu(r,mD):n||a.push(Za.of(new cd({tagName:r.nodeName.toLowerCase(),attributes:E6(r)}),r)))}return n?{line:n,marks:a}:null}};function f2(t,e){let a=n=>{for(let r of n.children)if((e?r.isText():r.length)||a(r))return!0;return!1};return a(t)}function G6(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 mD={class:"cm-line"};function H6(t,e){let a=e.spec.attributes,n=e.spec.class;return!a&&!n||(t||(t={class:"cm-line"}),a&&Jy(a,t),n&&(t.class+=" "+n)),t}function j6(t){let e=[];for(let a=t.parents.length;a>1;a--){let n=a==t.parents.length?t.tile:t.parents[a].tile;n instanceof Za&&e.push(n.mark)}return e}function WS(t){let e=mt.get(t);return e&&e.setDOM(t.cloneNode()),t}var Co=class extends cn{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}};Co.inline=new Co("span");Co.block=new Co("div");var KS=new class extends cn{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}},ag=class{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=ce.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 Ru(e,e.contentDOM),this.updateInner([new ir(0,0,0,e.state.doc.length)],null)}update(e){var a;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.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 r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((a=this.domChanged)===null||a===void 0)&&a.newSel?r=this.domChanged.newSel.head:!aH(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let i=r>-1?Y6(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:f}=this.hasComposition;n=new ir(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(n.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(F.ie||F.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=J6(o,this.decorations,e.changes);l.length&&(n=ir.extendWithRanges(n,l));let u=eH(s,this.blockWrappers,e.changes);return u.length&&(n=ir.extendWithRanges(n,u)),i&&!n.some(c=>c.fromA<=i.range.fromA&&c.toA>=i.range.toA)&&(n=i.range.addToSet(n.slice())),this.tile.flags&2&&n.length==0?!1:(this.updateInner(n,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,a){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(a||e.length){let o=this.tile,s=new by(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);a&&mt.get(a.text)&&s.cache.reused.set(mt.get(a.text),2),this.tile=s.run(e,a),xy(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=F.chrome||F.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(i),i&&(i.written||n.selectionRange.focusNode!=i.node||!this.tile.dom.contains(i.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];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 id&&r.push(i.dom);n.updateGaps(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let a of e.transactions)for(let n of a.effects)n.is(uD)&&(this.editContextFormatting=n.value)}updateSelection(e=!1,a=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,r=this.view.root.activeElement,i=r==n,o=!i&&!(this.view.state.facet(hi)||n.tabIndex>-1)&&td(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));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)),F.gecko&&l.empty&&!this.hasComposition&&V6(u)){let d=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(d,u.node.childNodes[u.offset]||null)),u=c=new zr(d,0),s=!0}let f=this.view.observer.selectionRange;(s||!f.focusNode||(!ad(u.node,u.offset,f.anchorNode,f.anchorOffset)||!ad(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,l))&&(this.view.observer.ignore(()=>{F.android&&F.chrome&&n.contains(f.focusNode)&&tH(f.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let d=dd(this.view.root);if(d)if(l.empty){if(F.gecko){let h=W6(u.node,u.offset);if(h&&h!=3){let p=(h==1?H2:j2)(u.node,u.offset);p&&(u=new zr(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==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(u,c)),this.impreciseAnchor=u.precise?null:new zr(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new zr(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,a){return this.hasComposition&&a.empty&&ad(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,n=dd(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!a.empty||!a.assoc||!n.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);n.collapse(c.node,c.offset),n.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&&n.collapse(r,i)}posFromDOM(e,a){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let i;if(e==n.dom)i=n.dom.childNodes[a];else{let o=mi(e)==0?0:a==0?-1:1;for(;;){let s=e.parentNode;if(s==n.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==n.dom.firstChild)return r;for(;i&&!mt.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let o=0,s=r;;o++){let l=n.children[o];if(l.dom==i)return s;s+=l.length+l.breakAfter}}else return n.isText()?e==n.dom?r+a:r+(a?n.length:0):r}domAtPos(e,a){let{tile:n,offset:r}=this.tile.resolveBlock(e,a);return n.isWidget()?n.domPosFor(r,a):n.domIn(r,a)}inlineDOMNearPos(e,a){let n,r=-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&&(n=u,r=e-c,i=f<e),f>=e&&!o&&(o=u,s=e-c,l=c>e),c>e&&o)return!0}}),!n&&!o?this.domAtPos(e,a):(i&&o?n=null:l&&n&&(o=null),n&&a<0||!o?n.domIn(r,a):o.domIn(s,a))}coordsAt(e,a,n){let{tile:r,offset:i}=this.tile.resolveBlock(e,a);return r.isWidget()?r.widget instanceof id?null:r.coordsInWidget(i,a,!0):r.coordsIn(i,a,n)}lineAt(e,a){let{tile:n}=this.tile.resolveBlock(e,a);return n.isLine()?n:null}coordsForChar(e){let{tile:a,offset:n}=this.tile.resolveBlock(e,1);if(!a.isLine())return null;function r(i,o){if(i.isComposite())for(let s of i.children){if(s.length>=o){let l=r(s,o);if(l)return l}if(o-=s.length,o<0)break}else if(i.isText()&&o<i.length){let s=Lt(i.text,o);if(s==o)return null;let l=hd(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 r(a,n)}measureVisibleLineHeights(e){let a=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==rt.LTR,u=0,c=(f,d,h)=>{for(let p=0;p<f.children.length&&!(d>r);p++){let m=f.children[p],b=d+m.length,g=m.dom.getBoundingClientRect(),{height:O}=g;if(h&&!p&&(u+=g.top-h.top),m instanceof pi)b>n&&c(m,d,g);else if(d>=n&&(u>0&&a.push(-u),a.push(O+u),u=0,o)){let x=m.dom.lastChild,S=x?Zm(x):[];if(S.length){let y=S[S.length-1],v=l?y.right-g.left:g.right-y.left;v>s&&(s=v,this.minWidth=i,this.minWidthFrom=d,this.minWidthTo=b)}}h&&p==f.children.length-1&&(u+=h.bottom-g.bottom),d=b+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"?rt.RTL:rt.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=Zm(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"),n,r,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=Zm(a.firstChild)[0];n=a.getBoundingClientRect().height,r=o&&o.width?o.width/27:7,i=o&&o.height?o.height:n,a.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}computeBlockGapDeco(){let e=[],a=this.view.viewState;for(let n=0,r=0;;r++){let i=r==a.viewports.length?null:a.viewports[r],o=i?i.from-1:this.view.state.doc.length;if(o>n){let s=(a.lineBlockAt(o).bottom-a.lineBlockAt(n).top)/this.view.scaleY;e.push(ce.replace({widget:new id(s),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return ce.set(e)}updateDeco(){let e=1,a=this.view.state.facet(fg).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(iv).map((i,o)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});for(r.length&&(this.dynamicDecorationMap[e++]=n,a.push(ze.join(r))),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(fD).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(lD))try{if(u(this.view,e.range,e))return!0}catch(c){Bn(this.view.state,c,"scroll handler")}let{range:a}=e,n=this.coordsAt(a.head,a.assoc||(a.head>a.anchor?-1:1)),r;if(!n)return;!a.empty&&(r=this.coordsAt(a.anchor,a.anchor>a.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=pD(this.view),o={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;if(R6(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==rt.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(n.top>window.visualViewport.offsetTop+window.visualViewport.height||n.bottom<window.visualViewport.offsetTop)){let u=this.view.docView.lineAt(a.head,1);if(u){let c=q2(u.dom);u.dom.scrollIntoView({block:"nearest"}),Z2(c,!1)}}}lineHasWidget(e){let a=n=>n.isWidget()||n.children.some(a);return a(this.tile.resolveBlock(e,1).tile)}destroy(){xy(this.tile)}};function xy(t,e){let a=e?.get(t);if(a!=1){a==null&&t.destroy();for(let n of t.children)xy(n,e)}}function V6(t){return Kt(t.node)&&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 gD(t,e){let a=t.observer.selectionRange;if(!a.focusNode)return null;let n=H2(a.focusNode,a.focusOffset),r=j2(a.focusNode,a.focusOffset),i=n||r;if(r&&n&&r.node!=n.node){let s=mt.get(r.node);if(!s||s.isText()&&s.text!=r.node.nodeValue)i=r;else if(t.docView.lastCompositionAfterCursor){let l=mt.get(n.node);!l||l.isText()&&l.text!=n.node.nodeValue||(i=r)}}if(t.docView.lastCompositionAfterCursor=i!=n,!i)return null;let o=e-i.offset;return{from:o,to:o+i.node.nodeValue.length,node:i.node}}function Y6(t,e,a){let n=gD(t,a);if(!n)return null;let{node:r,from:i,to:o}=n,s=r.nodeValue;if(/[\n\r]/.test(s)||t.state.doc.sliceString(n.from,n.to)!=s)return null;let l=e.invertedDesc;return{range:new ir(l.mapPos(i),l.mapPos(o),i,o),text:r}}function W6(t,e){return Kt(t)?(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0):0}var K6=class{constructor(){this.changes=[]}compareRange(e,a){Lu(e,a,this.changes)}comparePoint(e,a){Lu(e,a,this.changes)}boundChange(e){Lu(e,e,this.changes)}};function J6(t,e,a){let n=new K6;return ze.compare(t,e,a,n),n.changes}var Sy=class{constructor(){this.changes=[]}compareRange(e,a){Lu(e,a,this.changes)}comparePoint(){}boundChange(e){Lu(e,e,this.changes)}};function eH(t,e,a){let n=new Sy;return ze.compare(t,e,a,n),n.changes}function tH(t,e){for(let a=t;a&&a!=e;a=a.assignedSlot||a.parentNode)if(Kt(a)&&a.contentEditable=="false")return!0;return!1}function aH(t,e){let a=!1;return e&&t.iterChangedRanges((n,r)=>{n<e.to&&r>e.from&&(a=!0)}),a}var id=class extends cn{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 nH(t,e,a=1){let n=t.charCategorizer(e),r=t.doc.lineAt(e),i=e-r.from;if(r.length==0)return I.cursor(e);i==0?a=1:i==r.length&&(a=-1);let o=i,s=i;a<0?o=Lt(r.text,i,!1):s=Lt(r.text,i);let l=n(r.text.slice(o,s));for(;o>0;){let u=Lt(r.text,o,!1);if(n(r.text.slice(u,o))!=l)break;o=u}for(;s<r.length;){let u=Lt(r.text,s);if(n(r.text.slice(s,u))!=l)break;s=u}return I.undirectionalRange(o+r.from,s+r.from)}function rH(t,e,a,n,r){let i=Math.round((n-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&a.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,l=Math.floor((r-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+Dm(o,i,t.state.tabSize)}function yy(t,e,a){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){let r;for(let i of n.type){if(i.from>e)break;if(!(i.to<e)){if(i.from<e&&i.to>e)return i;(!r||i.type==fa.Text&&(r.type!=i.type||(a<0?i.from<e:i.to>e)))&&(r=i)}}return r||n}return n}function iH(t,e,a,n){let r=yy(t,e.head,e.assoc||-1),i=!n||r.type!=fa.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(i){let o=t.dom.getBoundingClientRect(),s=t.textDirectionAt(r.from),l=t.posAtCoords({x:a==(s==rt.LTR)?o.right-1:o.left+1,y:(i.top+i.bottom)/2});if(l!=null)return I.cursor(l,a?-1:1)}return I.cursor(a?r.to:r.from,a?-1:1)}function d2(t,e,a,n){let r=t.state.doc.lineAt(e.head),i=t.bidiSpans(r),o=t.textDirectionAt(r.from);for(let s=e,l=null;;){let u=z6(r,i,o,s,a),c=J2;if(!u){if(r.number==(a?t.state.doc.lines:1))return s;c=`
|
|
37
|
+
`,r=t.state.doc.line(r.number+(a?1:-1)),i=t.bidiSpans(r),u=a?I.cursor(r.from,-1):I.cursor(r.to,1)}if(l){if(!l(c))return s}else{if(!n)return u;l=n(c)}s=u}}function oH(t,e,a){let n=t.state.charCategorizer(e),r=n(a);return i=>{let o=n(i);return r==ft.Space&&(r=o),r==o}}function sH(t,e,a,n){let r=e.head,i=a?1:-1;if(r==(a?t.state.doc.length:0))return I.cursor(r,e.assoc);let o=e.goalColumn,s,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(r,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(r);o==null&&(o=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-p.from))),s=(i<0?p.top:p.bottom)+c}let f=l.left+o,d=t.viewState.heightOracle.textHeight>>1,h=n??d;for(let p=0;;p+=d){let m=s+(h+p)*i,b=vy(t,{x:f,y:m},!1,i);if(a?m>l.bottom:m<l.top)return I.cursor(b.pos,b.assoc);let g=t.coordsAtPos(b.pos,b.assoc),O=g?(g.top+g.bottom)/2:0;if(!g||(a?O>s:O<s))return I.cursor(b.pos,b.assoc,void 0,o)}}function od(t,e,a){for(;;){let n=0;for(let r of t)r.between(e-1,e+1,(i,o,s)=>{if(e>i&&e<o){let l=n||a||(e-i<o-e?-1:1);e=l<0?i:o,n=l}});if(!n)return e}}function OD(t,e){let a=null;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],i=null;if(r.empty){let o=od(t,r.from,0);o!=r.from&&(i=I.cursor(o,-1))}else{let o=od(t,r.from,-1),s=od(t,r.to,1);(o!=r.from||s!=r.to)&&(r.undirectional?i=I.undirectionalRange(r.from,r.to):i=I.range(r.from==r.anchor?o:s,r.from==r.head?o:s))}i&&(a||(a=e.ranges.slice()),a[n]=i)}return a?I.create(a,e.mainIndex):e}function JS(t,e,a){let n=od(t.state.facet(md).map(r=>r(t)),a.from,e.head>a.from?-1:1);return n==a.from?a:I.cursor(n,n<a.from?1:-1)}var Nn=class{constructor(e,a){this.pos=e,this.assoc=a}};function vy(t,e,a,n){let r=t.contentDOM.getBoundingClientRect(),i=r.top+t.viewState.paddingTop,{x:o,y:s}=e,l=s-i,u;for(;;){if(l<0)return new Nn(0,1);if(l>t.viewState.docHeight)return new Nn(t.state.doc.length,-1);if(u=t.elementAtHeight(l),n==null)break;if(u.type==fa.Text){if(n<0?u.to<t.viewport.from:u.from>t.viewport.to)break;let d=t.docView.coordsAt(n<0?u.from:u.to,n>0?-1:1);if(d&&(n<0?d.top<=l+i:d.bottom>=l+i))break}let f=t.viewState.heightOracle.textHeight/2;l=n>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==fa.Text){let f=rH(t,r,u,o,s);return new Nn(f,f==u.from?1:-1)}}if(u.type!=fa.Text)return l<(u.top+u.bottom)/2?new Nn(u.from,1):new Nn(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 Cy(t,o,s,t.textDirectionAt(u.from)).scanTile(c,u.from)}var Cy=class{constructor(e,a,n,r){this.view=e,this.x=a,this.y=n,this.baseDir=r,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:n,spans:r}=this.bidiSpansAt(e);return r[$n.find(r,e-n.from,-1,a)].level==this.baseDir}dirAt(e,a){let{line:n,spans:r}=this.bidiSpansAt(e);return r[$n.find(r,e-n.from,-1,a)].dir}bidiIn(e,a){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<a)}scan(e,a,n=!1){let r=0,i=e.length-1,o=new Set,s=this.bidiIn(e[0],e[i]),l,u,c=-1,f=1e9,d;e:for(;r<i;){let p=i-r,m=r+i>>1;t:if(o.has(m)){for(let O=1;O<p;O++){let x=m+O;if(x>=i&&(x-=p),!o.has(x)){m=x;break t}}break e}o.add(m);let b=a(m),g=0;if(b)for(let O=0;O<b.length;O++){let x=b[O];if(!(x.width==0&&b.length>1))if(x.bottom<this.y)(!l||l.bottom<x.bottom)&&(l=x),g=1;else if(x.top>this.y)(!u||u.top>x.top)&&(u=x),g=-1;else{let S=x.left>this.x?this.x-x.left:x.right<this.x?this.x-x.right:0,y=Math.abs(S);y<f&&(c=m,f=y,d=x),S&&(g=S<0==(this.baseDir==rt.LTR)?-1:1)}}g==-1&&(!s||this.baseDirAt(e[m],1))?i=m:g==1&&(!s||this.baseDirAt(e[m+1],-1))&&(r=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&&!n){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)==rt.LTR;return{i:c,after:this.x>(d.left+d.right)/2==h}}scanText(e,a){let n=[];for(let i=0;i<e.length;i=Lt(e.text,i))n.push(a+i);n.push(a+e.length);let r=this.scan(n,i=>{let o=n[i]-a,s=n[i+1]-a;return hd(e.dom,o,s).getClientRects()});return r.after?new Nn(n[r.i+1],-1):new Nn(n[r.i],1)}scanTile(e,a){if(!e.length)return new Nn(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 n=[a];for(let s=0,l=a;s<e.children.length;s++)n.push(l+=e.children[s].length);let r=this.scan(n,s=>{let l=e.children[s];return l.flags&48?null:(Kt(l.dom)?l.dom:hd(l.dom,0,l.length)).getClientRects()}),i=e.children[r.i],o=n[r.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):r.after?new Nn(n[r.i+1],-1):new Nn(o,1)}},yu="\uFFFF",wy=class{constructor(e,a){this.points=e,this.view=a,this.text="",this.lineSeparator=a.state.facet(Ye.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=yu}readRange(e,a){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let i=this.text.length;this.readNode(r);let o=mt.get(r),s=r.nextSibling;if(s==a){o?.breakAfter&&!s&&n!=this.view.contentDOM&&this.lineBreak();break}let l=mt.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:Km(r))||Km(s)&&(r.nodeName!="BR"||o?.isWidget())&&this.text.length>i)&&!uH(s,a)&&this.lineBreak(),r=s}return this.findPointBefore(n,a),this}readTextNode(e){let a=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,a.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator?(i=a.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(s=r.exec(a))&&(i=s.index,o=s[0].length),this.append(a.slice(n,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);n=i+o}}readNode(e){let a=mt.get(e),n=a&&a.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else _u(e)?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():Kt(e)&&this.readRange(e.firstChild,null)}findPointBefore(e,a){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==a&&(n.pos=this.text.length)}findPointInside(e,a){for(let n of this.points)(_u(e)?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(lH(e,n.node,n.offset)?a:0))}};function lH(t,e,a){for(;;){if(!e||a<mi(e))return!1;if(e==t)return!0;a=vo(e)+1,e=e.parentNode}}function uH(t,e){let a;for(;!(t==e||!t);t=t.nextSibling){let n=mt.get(t);if(!n?.isWidget())return!1;n&&(a||(a=[])).push(n)}if(a)for(let n of a){let r=n.overrideDOMText;if(r?.length)return!1}return!0}var ng=class{constructor(e,a){this.node=e,this.offset=a,this.pos=-1}},ky=class{constructor(e,a,n,r){this.typeOver=r,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=bD(e.docView.tile,a,n,0))){let l=i||o?[]:fH(e),u=new wy(l,e);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=dH(l,this.bounds.from)}else{let l=e.observer.selectionRange,u=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!sy(e.contentDOM,l.focusNode)?s.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!sy(e.contentDOM,l.anchorNode)?s.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),f=e.viewport;if((F.ios||F.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(I.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=I.create([I.cursor(u,h)])}else this.newSel=I.single(c,u)}}};function bD(t,e,a,n){if(t.isComposite()){let r=-1,i=-1,o=-1,s=-1;for(let l=0,u=n,c=n;l<t.children.length;l++){let f=t.children[l],d=u+f.length;if(u<e&&d>a)return bD(f,e,a,u);if(d>=e&&r==-1&&(r=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?n+t.length:s,startDOM:(r?t.children[r-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:o<t.children.length&&o>=0?t.children[o].dom:null}}else return t.isText()?{from:n,to:n+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}function xD(t,e){let a,{newSel:n}=e,{state:r}=t,i=r.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||F.android&&e.text.length<l-s)&&(u=i.to,c="end");let f=r.doc.sliceString(s,l,yu),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:Te.of(e.text.slice(i.from-s,d).split(yu))}:(h=SD(f,e.text,u-s,c))&&(F.chrome&&o==13&&h.toB==h.from+2&&e.text.slice(h.from,h.toB)==yu+yu&&h.toB--,a={from:s+h.from,to:s+h.toA,insert:Te.of(e.text.slice(h.from,h.toB).split(yu))})}else n&&(!t.hasFocus&&r.facet(hi)||Ly(n,i))&&(n=null);if(!a&&!n)return!1;if((F.mac||F.android)&&a&&a.from==a.to&&a.from==i.head-1&&/^\. ?$/.test(a.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(n&&a.insert.length==2&&(n=I.single(n.main.anchor-1,n.main.head-1)),a={from:a.from,to:a.to,insert:Te.of([a.insert.toString().replace("."," ")])}):r.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:r.toText(t.inputState.insertingText)}:F.chrome&&a&&a.from==a.to&&a.from==i.head&&a.insert.toString()==`
|
|
38
|
+
`&&t.lineWrapping&&(n&&(n=I.single(n.main.anchor-1,n.main.head-1)),a={from:i.from,to:i.to,insert:Te.of([" "])}),a)return ov(t,a,n,o);if(n&&!Ly(n,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"&&(n=OD(r.facet(md).map(u=>u(t)),n))),t.dispatch({selection:n,scrollIntoView:s,userEvent:l}),!0}else return!1}function ov(t,e,a,n=-1){if(F.ios&&t.inputState.flushIOSKey(e))return!0;let r=t.state.selection.main;if(F.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&t.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Eu(t.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&Eu(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Eu(t.contentDOM,"Delete",46)))return!0;let i=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,s=()=>o||(o=cH(t,e,a));return t.state.facet(rD).some(l=>l(t,e.from,e.to,i,s))||t.dispatch(s()),!0}function cH(t,e,a){let n,r=t.state,i=r.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=od(r.facet(md).map(f=>f(t)),u,l);e.from==c&&(o=c)}if(o>-1)n={changes:e,selection:I.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?r.sliceDoc(i.from,e.from):"",u=i.to>e.to?r.sliceDoc(e.to,i.to):"";n=r.replaceSelection(t.state.toText(l+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let l=r.changes(e),u=a&&a.main.to<=l.newLength?a.main:void 0;if(r.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&&gD(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;n=r.changeByRange(p=>{if(p.from==i.from&&p.to==i.to)return{changes:l,range:u||p.map(l)};let m=p.to-h,b=m-c.length;if(t.state.sliceDoc(b,m)!=c||m>=f.from&&b<=f.to)return{range:p};let g=r.changes({from:b,to:m,insert:e.insert}),O=p.to-i.to;return{changes:g,range:u?I.range(Math.max(0,u.anchor+O),Math.max(0,u.head+O)):p.map(g)}})}else n={changes:l,selection:u&&r.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)),r.update(n,{userEvent:s,scrollIntoView:!0})}function SD(t,e,a,n){let r=Math.min(t.length,e.length),i=0;for(;i<r&&t.charCodeAt(i)==e.charCodeAt(i);)i++;if(i==r&&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(n=="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 fH(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:a,anchorOffset:n,focusNode:r,focusOffset:i}=t.observer.selectionRange;return a&&(e.push(new ng(a,n)),(r!=a||i!=n)&&e.push(new ng(r,i))),e}function dH(t,e){if(t.length==0)return null;let a=t[0].pos,n=t.length==2?t[1].pos:a;return a<0||n<0?null:a==n?I.create([I.cursor(n+e,-1)]):I.single(a+e,n+e)}function Ly(t,e){return e.head==t.main.head&&e.anchor==t.main.anchor}var Ey=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,F.safari&&e.contentDOM.addEventListener("input",()=>null),F.gecko&&EH(e.contentDOM.ownerDocument)}handleEvent(e){!SH(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 n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,a);for(let r of n.handlers){if(a.defaultPrevented)break;if(r(this.view,a)){a.preventDefault();break}}}}ensureHandlers(e){let a=pH(e),n=this.handlers,r=this.view.contentDOM;for(let i in a)if(i!="scroll"){let o=!a[i].handlers.length,s=n[i];s&&o!=!s.handlers.length&&(r.removeEventListener(i,this.handleEvent),s=null),s||r.addEventListener(i,this.handleEvent,{passive:o})}for(let i in n)i!="scroll"&&!a[i]&&r.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&&vD.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),F.android&&F.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(F.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(yD.some(a=>a.keyCode==e.keyCode)&&!e.ctrlKey||mH.indexOf(e.key)>-1&&e.ctrlKey)){let a={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};a.shiftKey&&F.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&hH(this.view.win)&&(a.shiftKey=!1);let n=this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:a};return setTimeout(()=>{this.pendingIOSKey==n&&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,Eu(this.view.contentDOM,a.key,a.keyCode,a.mods))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:F.safari&&!F.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 hH(t){return t.visualViewport?t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85:!1}function h2(t,e){return(a,n)=>{try{return e.call(t,n,a)}catch(r){Bn(a.state,r)}}}function pH(t){let e=Object.create(null);function a(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of t){let r=n.spec,i=r&&r.plugin.domEventHandlers,o=r&&r.plugin.domEventObservers;if(i)for(let s in i){let l=i[s];l&&a(s).handlers.push(h2(n.value,l))}if(o)for(let s in o){let l=o[s];l&&a(s).observers.push(h2(n.value,l))}}for(let n in or)a(n).handlers.push(or[n]);for(let n in Aa)a(n).observers.push(Aa[n]);return e}var yD=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],mH="dthko",vD=[16,17,18,20,91,92,224,225],$m=6;function Bm(t){return Math.max(0,t)*.7+8}function gH(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}var _y=class{constructor(e,a,n,r){this.view=e,this.startEvent=a,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=a,this.scrollParents=X2(e.contentDOM),this.atoms=e.state.facet(md).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(Ye.allowMultipleSelections)&&OH(e,a),this.dragging=xH(e,a)&&kD(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&&gH(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let a=0,n=0,r=0,i=0,o=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=pD(this.view);e.clientX-l.left<=r+$m?a=-Bm(r-e.clientX):e.clientX+l.right>=o-$m&&(a=Bm(e.clientX-o)),e.clientY-l.top<=i+$m?n=-Bm(i-e.clientY):e.clientY+l.bottom>=s-$m&&(n=Bm(e.clientY-s)),this.setScrollSpeed(a,n)}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,n=OD(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(a.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,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 OH(t,e){let a=t.state.facet(eD);return a.length?a[0](e):F.mac?e.metaKey:e.ctrlKey}function bH(t,e){let a=t.state.facet(tD);return a.length?a[0](e):F.mac?!e.altKey:!e.ctrlKey}function xH(t,e){let{main:a}=t.state.selection;if(a.empty)return!1;let n=dd(t.root);if(!n||n.rangeCount==0)return!0;let r=n.getRangeAt(0).getClientRects();for(let i=0;i<r.length;i++){let o=r[i];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function SH(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let a=e.target,n;a!=t.contentDOM;a=a.parentNode)if(!a||a.nodeType==11||(n=mt.get(a))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(e))return!1;return!0}var or=Object.create(null),Aa=Object.create(null),CD=F.ie&&F.ie_version<15||F.ios&&F.webkit_version<604;function yH(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(),wD(t,a.value)},50)}function dg(t,e,a){for(let n of t.facet(e))a=n(a,t);return a}function wD(t,e){e=dg(t.state,av,e);let{state:a}=t,n,r=1,i=a.toText(e),o=i.lines==a.selection.ranges.length;if(Ay!=null&&a.selection.ranges.every(l=>l.empty)&&Ay==i.toString()){let l=-1;n=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(r++).text:e)+a.lineBreak);return{changes:{from:c.from,insert:f},range:I.cursor(u.from+f.length,-1)}})}else o?n=a.changeByRange(l=>{let u=i.line(r++);return{changes:{from:l.from,to:l.to,insert:u.text},range:I.cursor(l.from+u.length,-1)}}):n=a.replaceSelection(i);t.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Aa.scroll=t=>{let e=t.inputState;e.lastScrollTop=t.scrollDOM.scrollTop,e.lastScrollLeft=t.scrollDOM.scrollLeft,F.ios&&!e.touchActive&&(e.lastIOSMomentumScroll=Date.now())};Aa.wheel=Aa.mousewheel=t=>{t.inputState.lastWheelEvent=Date.now()};or.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Aa.touchstart=(t,e)=>{let a=t.inputState,n=e.targetTouches[0];a.touchActive=!0,a.lastTouchTime=Date.now(),n&&(a.lastTouchX=n.clientX,a.lastTouchY=n.clientY),a.setSelectionOrigin("select.pointer")};Aa.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Aa.touchend=(t,e)=>{t.inputState.touchActive=!1};or.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let a=null;for(let n of t.state.facet(aD))if(a=n(t,e),a)break;if(!a&&e.button==0&&(a=CH(t,e)),a){let n=!t.hasFocus;t.inputState.startMouseSelection(new _y(t,e,a,n)),n&&t.observer.ignore(()=>{F2(t.contentDOM);let i=t.root.activeElement;i&&!i.contains(t.contentDOM)&&i.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}else t.inputState.setSelectionOrigin("select.pointer");return!1};function p2(t,e,a,n){if(n==1)return I.cursor(e,a);if(n==2)return nH(t.state,e,a);{let r=t.docView.lineAt(e,a),i=t.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:i.from,s=r?r.posAtEnd:i.to;return s<t.state.doc.length&&s==i.to&&s++,I.undirectionalRange(o,s)}}var vH=F.ie&&F.ie_version<=11,m2=null,g2=0,O2=0;function kD(t){if(!vH)return t.detail;let e=m2,a=O2;return m2=t,O2=Date.now(),g2=!e||a>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(g2+1)%3:1}function CH(t,e){let a=t.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),n=kD(e),r=t.state.selection;return{update(i){i.docChanged&&(a.pos=i.changes.mapPos(a.pos),r=r.map(i.changes))},get(i,o,s){let l=t.posAndSideAtCoords({x:i.clientX,y:i.clientY},!1),u,c=p2(t,l.pos,l.assoc,n);if(a.pos!=l.pos&&!o){let f=p2(t,a.pos,a.assoc,n),d=Math.min(f.from,c.from),h=Math.max(f.to,c.to);c=d<c.from?I.range(d,h,c.assoc):I.range(h,d,c.assoc)}return o?r.replaceRange(r.main.extend(c.from,c.to,c.assoc)):s&&n==1&&r.ranges.length>1&&(u=wH(r,l.pos))?u:s?r.addRange(c):I.create([c])}}}function wH(t,e){for(let a=0;a<t.ranges.length;a++){let{from:n,to:r}=t.ranges[a];if(n<=e&&r>=e)return I.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}or.dragstart=(t,e)=>{let{selection:{main:a}}=t.state;if(e.target.draggable){let r=t.docView.tile.nearest(e.target);if(r&&r.isWidget()){let i=r.posAtStart,o=i+r.length;(i>=a.to||o<=a.from)&&(a=I.undirectionalRange(i,o))}}let{inputState:n}=t;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=a,e.dataTransfer&&(e.dataTransfer.setData("Text",dg(t.state,nv,t.state.sliceDoc(a.from,a.to))),e.dataTransfer.effectAllowed="copyMove"),!1};or.dragend=t=>(t.inputState.draggedContent=null,!1);function b2(t,e,a,n){if(a=dg(t.state,av,a),!a)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=t.inputState,o=n&&i&&bH(t,e)?{from:i.from,to:i.to}:null,s={from:r,insert:a},l=t.state.changes(o?[o,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}or.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let a=e.dataTransfer.files;if(a&&a.length){let n=Array(a.length),r=0,i=()=>{++r==a.length&&b2(t,e,n.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)||(n[o]=s.result),i()},s.readAsText(a[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return b2(t,e,n,!0),!0}return!1};or.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let a=CD?null:e.clipboardData;return a?(wD(t,a.getData("text/plain")||a.getData("text/uri-list")),!0):(yH(t),!1)};function kH(t,e){let a=t.dom.parentNode;if(!a)return;let n=a.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),t.focus()},50)}function LH(t){let e=[],a=[],n=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),a.push(r));if(!e.length){let r=-1;for(let{from:i}of t.selection.ranges){let o=t.doc.lineAt(i);o.number>r&&(e.push(o.text),a.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),r=o.number}n=!0}return{text:dg(t,nv,e.join(t.lineBreak)),ranges:a,linewise:n}}var Ay=null;or.copy=or.cut=(t,e)=>{if(!td(t.contentDOM,t.observer.selectionRange))return!1;let{text:a,ranges:n,linewise:r}=LH(t.state);if(!a&&!r)return!1;Ay=r?a:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let i=CD?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",a),!0):(kH(t,a),!1)};var LD=qa.define();function ED(t,e){let a=[];for(let n of t.facet(iD)){let r=n(t,e);r&&a.push(r)}return a.length?t.update({effects:a,annotations:LD.of(!0)}):null}function _D(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let a=ED(t.state,e);a?t.dispatch(a):t.update([])}},10)}Aa.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),_D(t)};Aa.blur=t=>{t.observer.clearSelectionRange(),_D(t)};Aa.compositionstart=Aa.compositionupdate=(t,e)=>{if(!t.observer.editContext&&(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0)){let{main:a}=t.state.selection;!a.empty&&t.lineBlockAt(a.from).from!=t.lineBlockAt(a.to).from&&!t.state.readOnly&&t.dispatch({changes:t.state.selection.ranges.filter(n=>!n.empty).map(n=>({from:n.from,to:n.to})),userEvent:"input"}),t.inputState.composing=0}};Aa.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,F.chrome&&F.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};Aa.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};or.beforeinput=(t,e)=>{var a,n;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 ov(t,{from:l,to:u,insert:t.state.toText(i)},null),!0}}let r;if(F.chrome&&F.android&&(r=yD.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.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 F.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),F.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Aa.compositionend(t,e),20),!1};var x2=new Set;function EH(t){x2.has(t)||(x2.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}var S2=["pre-wrap","normal","pre-line","break-spaces"],Pu=!1;function y2(){Pu=!1}var Ry=class{constructor(e){this.lineWrapping=e,this.doc=Te.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,a){let n=this.doc.lineAt(a).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((a-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}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 S2.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let a=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(r*10)]||(a=!0,this.heightSamples[Math.floor(r*10)]=!0)}return a}refresh(e,a,n,r,i,o){let s=S2.indexOf(e)>-1,l=Math.abs(a-this.lineHeight)>.3||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=a,this.charWidth=n,this.textHeight=r,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}},Ty=class{constructor(e,a){this.from=e,this.heights=a,this.index=0}get more(){return this.index<this.heights.length}},rr=class t{constructor(e,a,n,r,i){this.from=e,this.length=a,this.top=n,this.height=r,this._content=i}get type(){return typeof this._content=="number"?fa.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 Ps?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)}},ct=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(ct||(ct={})),Fm=.001,un=class t{constructor(e,a,n=2){this.length=e,this.height=a,this.flags=n}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)>Fm&&(Pu=!0),this.height=e)}replace(e,a,n){return t.of(n)}decomposeLeft(e,a){a.push(this)}decomposeRight(e,a){a.push(this)}applyChanges(e,a,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:f}=r[s],d=i.lineAt(l,ct.ByPosNoHeight,n.setDoc(a),0,0),h=d.to>=u?d:i.lineAt(u,ct.ByPosNoHeight,n,0,0);for(f+=h.to-u,u=h.to;s>0&&d.from<=r[s-1].toA;)l=r[s-1].fromA,c=r[s-1].fromB,s--,l<d.from&&(d=i.lineAt(l,ct.ByPosNoHeight,n,0,0));c+=d.from-l,l=d.from;let p=Py.build(n.setDoc(o),e,c,f);i=rg(i,i.replace(l,u,p))}return i.updateHeight(n,0)}static empty(){return new Qn(0,0,0)}static of(e){if(e.length==1)return e[0];let a=0,n=e.length,r=0,i=0;for(;;)if(a==n)if(r>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),n+=1+s.break,r-=s.size}else if(i>r*2){let s=e[n];s.break?e.splice(n,1,s.left,null,s.right):e.splice(n,1,s.left,s.right),n+=2+s.break,i-=s.size}else break;else if(r<i){let s=e[a++];s&&(r+=s.size)}else{let s=e[--n];s&&(i+=s.size)}let o=!1;return e[a-1]==null?(o=!0,a--):e[a]==null&&(o=!0,n++),new Iy(t.of(e.slice(0,a)),o,t.of(e.slice(n)))}};function rg(t,e){return t==e?t:(t.constructor!=e.constructor&&(Pu=!0),e)}un.prototype.size=1;var _H=ce.replace({}),ig=class extends un{constructor(e,a,n){super(e,a),this.deco=n,this.spaceAbove=0}mainBlock(e,a){return new rr(a,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,a,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new rr(r,0,n,this.spaceAbove,_H):this.mainBlock(n,r)}lineAt(e,a,n,r,i){let o=this.mainBlock(r,i);return this.spaceAbove?this.blockAt(0,n,r,i).join(o):o}forEachLine(e,a,n,r,i,o){e<=i+this.length&&a>=i&&o(this.lineAt(0,ct.ByPos,n,r,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,n=!1,r){return r&&r.from<=a&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}},Qn=class t extends ig{constructor(e,a,n){super(e,a,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,a){return new rr(a,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,a,n){let r=n[0];return n.length==1&&(r instanceof t||r instanceof yo&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof yo?r=new t(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):un.of(n)}updateHeight(e,a=0,n=!1,r){return r&&r.from<=a&&r.more?this.setMeasuredHeight(r):(n||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:""})`}},yo=class t extends un{constructor(e){super(e,0)}heightMetrics(e,a){let n=e.doc.lineAt(a).number,r=e.doc.lineAt(a+this.length).number,i=r-n+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:n,lastLine:r,perLine:o,perChar:s}}blockAt(e,a,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:l}=this.heightMetrics(a,r);if(a.lineWrapping){let u=r+(e<a.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),c=a.doc.lineAt(u),f=s+c.length*l,d=Math.max(n,e-f/2);return new rr(c.from,c.length,d,f,0)}else{let u=Math.max(0,Math.min(o-i,Math.floor((e-n)/s))),{from:c,length:f}=a.doc.line(i+u);return new rr(c,f,n+s*u,s,0)}}lineAt(e,a,n,r,i){if(a==ct.ByHeight)return this.blockAt(e,n,r,i);if(a==ct.ByPosNoHeight){let{from:h,to:p}=n.doc.lineAt(e);return new rr(h,p-h,0,0,0)}let{firstLine:o,perLine:s,perChar:l}=this.heightMetrics(n,i),u=n.doc.lineAt(e),c=s+u.length*l,f=u.number-o,d=r+s*f+l*(u.from-i-f);return new rr(u.from,u.length,Math.max(r,Math.min(d,r+this.height-c)),c,0)}forEachLine(e,a,n,r,i,o){e=Math.max(e,i),a=Math.min(a,i+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(n,i);for(let c=e,f=r;c<=a;){let d=n.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 rr(d.from,d.length,f,h,0)),f+=h,c=d.to+1}}replace(e,a,n){let r=this.length-a;if(r>0){let i=n[n.length-1];i instanceof t?n[n.length-1]=new t(i.length+r):n.push(null,new t(r-1))}if(e>0){let i=n[0];i instanceof t?n[0]=new t(e+i.length):n.unshift(new t(e-1),null)}return un.of(n)}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,n=!1,r){let i=a+this.length;if(r&&r.from<=a+this.length&&r.more){let o=[],s=Math.max(a,r.from),l=-1;for(r.from>a&&o.push(new t(r.from-a-1).updateHeight(e,a));s<=i&&r.more;){let c=e.doc.lineAt(s).length;o.length&&o.push(null);let f=r.heights[r.index++],d=0;f<0&&(d=-f,f=r.heights[r.index++]),l==-1?l=f:Math.abs(f-l)>=Fm&&(l=-2);let h=new Qn(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=un.of(o);return(l<0||Math.abs(u.height-this.height)>=Fm||Math.abs(l-this.heightMetrics(e,a).perLine)>=Fm)&&(Pu=!0),rg(this,u)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(a,a+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Iy=class extends un{constructor(e,a,n){super(e.length+(a?1:0)+n.length,e.height+n.height,(a?1:0)|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,a,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,a,n,r):this.right.blockAt(e,a,i,r+this.left.length+this.break)}lineAt(e,a,n,r,i){let o=r+this.left.height,s=i+this.left.length+this.break,l=a==ct.ByHeight?e<o:e<s,u=l?this.left.lineAt(e,a,n,r,i):this.right.lineAt(e,a,n,o,s);if(this.break||(l?u.to<s:u.from>s))return u;let c=a==ct.ByPosNoHeight?ct.ByPosNoHeight:ct.ByPos;return l?u.join(this.right.lineAt(s,c,n,o,s)):this.left.lineAt(s,c,n,r,i).join(u)}forEachLine(e,a,n,r,i,o){let s=r+this.left.height,l=i+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,a,n,r,i,o),a>=l&&this.right.forEachLine(e,a,n,s,l,o);else{let u=this.lineAt(l,ct.ByPos,n,r,i);e<u.from&&this.left.forEachLine(e,Math.min(a,u.from-1),n,r,i,o),u.to>=e&&u.from<=a&&o(u),a>u.to&&this.right.forEachLine(Math.max(e,u.to+1),a,n,s,l,o)}}replace(e,a,n){let r=this.left.length+this.break;if(a<r)return this.balanced(this.left.replace(e,a,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,a-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let s of n)i.push(s);if(e>0&&v2(i,o-1),a<this.length){let s=i.length;this.decomposeRight(a,i),v2(i,s)}return un.of(i)}decomposeLeft(e,a){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,a);a.push(this.left),this.break&&(n++,e>=n&&a.push(null)),e>n&&this.right.decomposeLeft(e-n,a)}decomposeRight(e,a){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,a);e<n&&this.left.decomposeRight(e,a),this.break&&e<r&&a.push(null),a.push(this.right)}balanced(e,a){return e.size>2*a.size||a.size>2*e.size?un.of(this.break?[e,null,a]:[e,a]):(this.left=rg(this.left,e),this.right=rg(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,n=!1,r){let{left:i,right:o}=this,s=a+i.length+this.break,l=null;return r&&r.from<=a+i.length&&r.more?l=i=i.updateHeight(e,a,n,r):i.updateHeight(e,a,n),r&&r.from<=s+o.length&&r.more?l=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),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 v2(t,e){let a,n;t[e]==null&&(a=t[e-1])instanceof yo&&(n=t[e+1])instanceof yo&&t.splice(e-1,3,new yo(a.length+1+n.length))}var AH=5,Py=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 n=Math.min(a,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Qn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Qn(n-this.pos,-1,0)),this.writtenTo=n,a>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=a}point(e,a,n){if(e<a||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=a-e;n.block?this.addBlock(new ig(o,r,n)):(o||i||r>=AH)&&this.addLineDeco(r,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 Qn(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,a){let n=new yo(a-e);return this.oracle.doc.lineAt(e).to==a&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Qn)return e;let a=new Qn(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,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=a,this.writtenTo=this.pos=this.pos+n}finish(e){let a=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(a instanceof Qn)&&!this.isCovered?this.nodes.push(new Qn(0,-1,0)):(this.writtenTo<this.pos||a==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let r of this.nodes)r instanceof Qn&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,a,n,r){let i=new t(n,e);return ze.spans(a,n,r,i,0),i.finish(n)}};function RH(t,e,a){let n=new My;return ze.compare(t,e,a,n,0),n.changes}var My=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,a,n,r){(e<a||n&&n.heightRelevant||r&&r.heightRelevant)&&Lu(e,a,this.changes,5)}};function TH(t,e){let a=t.getBoundingClientRect(),n=t.ownerDocument,r=n.defaultView||window,i=Math.max(0,a.left),o=Math.min(r.innerWidth,a.right),s=Math.max(0,a.top),l=Math.min(r.innerHeight,a.bottom);for(let u=t.parentNode;u&&u!=n.body;)if(Kt(u)){let c=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&c.overflow!="visible"){let f=u.getBoundingClientRect();i=Math.max(i,f.left),o=Math.min(o,f.right),s=Math.max(s,f.top),l=Math.min(u==t.parentNode?r.innerHeight:l,f.bottom)}u=c.position=="absolute"||c.position=="fixed"?u.offsetParent:u.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 IH(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 PH(t,e){let a=t.getBoundingClientRect();return{left:0,right:a.right-a.left,top:e,bottom:a.bottom-(a.top+e)}}var sd=class{constructor(e,a,n,r){this.from=e,this.to=a,this.size=n,this.displaySize=r}static same(e,a){if(e.length!=a.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=a[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,a){return ce.replace({widget:new Dy(this.displaySize*(a?e.scaleY:e.scaleX),a)}).range(this.from,this.to)}},Dy=class extends cn{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}},og=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=C2,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=rt.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=a.facet(rv).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new Ry(n),this.stateDeco=w2(a),this.heightMap=un.empty().applyChanges(this.stateDeco,Te.empty,this.heightOracle.setDoc(a.doc),[new ir(0,0,0,a.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ce.set(this.lineGaps.map(r=>r.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:a}=this.state.selection;for(let n=0;n<=1;n++){let r=n?a.head:a.anchor;if(!e.some(({from:i,to:o})=>r>=i&&r<=o)){let{from:i,to:o}=this.lineBlockAt(r);e.push(new Cu(i,o))}}return this.viewports=e.sort((n,r)=>n.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?C2:new Qy(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(Jf(e,this.scaler))})}update(e,a=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=w2(this.state);let r=e.changedRanges,i=ir.extendWithRanges(r,RH(n,this.stateDeco,e?e.changes:La.empty(this.state.doc.length))),o=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);y2(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||Pu)&&(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(sD)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,a=e.contentDOM,n=window.getComputedStyle(a),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?rt.RTL:rt.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:y,scaleY:v}=U2(a,s);(y>.005&&Math.abs(this.scaleX-y)>.005||v>.005&&Math.abs(this.scaleY-v)>.005)&&(this.scaleX=y,this.scaleY=v,u|=16,o=l=!0)}let f=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,u|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=16);let h=X2(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=G2(this.scrollParent||e.win);let m=(this.printing?PH:TH)(a,this.paddingTop),b=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&&!IH(e.dom))return 0;let x=s.width;if((this.contentDOMWidth!=x||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=16),l){let y=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(o=!0),o||r.lineWrapping&&Math.abs(x-this.contentDOMWidth)>r.charWidth){let{lineHeight:v,charWidth:C,textHeight:k}=e.docView.measureTextSize();o=v>0&&r.refresh(i,v,C,k,Math.max(5,x/C),y),o&&(e.docView.minWidth=0,u|=16)}b>0&&g>0?c=Math.max(b,g):b<0&&g<0&&(c=Math.min(b,g)),y2();for(let v of this.viewports){let C=v.from==this.viewport.from?y:e.docView.measureVisibleLineHeights(v);this.heightMap=(o?un.empty().applyChanges(this.stateDeco,Te.empty,this.heightOracle,[new ir(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new Ty(v.from,C))}Pu&&(u|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return S&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||S)&&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 n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,l=new Cu(r.lineAt(o-n*1e3,ct.ByHeight,i,0,0).from,r.lineAt(s+(1-n)*1e3,ct.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=r.lineAt(u,ct.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 Cu(r.lineAt(d-1e3/2,ct.ByHeight,i,0,0).from,r.lineAt(d+c+1e3/2,ct.ByHeight,i,0,0).to)}}return l}mapViewport(e,a){let n=a.mapPos(e.from,-1),r=a.mapPos(e.to,1);return new Cu(this.heightMap.lineAt(n,ct.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,ct.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:a},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,ct.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(a,ct.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(e==0||r<=o-Math.max(10,Math.min(-n,250)))&&(a==this.state.doc.length||i>=s+Math.max(10,Math.min(n,250)))&&r>o-2*1e3&&i<s+2*1e3}mapLineGaps(e,a){if(!e.length||a.empty)return e;let n=[];for(let r of e)a.touchesRange(r.from,r.to)||n.push(new sd(a.mapPos(r.from),a.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,a){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,o=r<<1;if(this.defaultTextDirection!=rt.LTR&&!n)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 b=DH(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(!b){if(f<d.to&&a&&n&&a.visibleRanges.some(x=>x.from<=f&&x.to>=f)){let x=a.moveToLineBoundary(I.cursor(f),!1,!0).head;x>c&&(f=x)}let g=this.gapSize(d,c,f,h),O=n||g<2e6?g:2e6;b=new sd(c,f,g,O)}s.push(b)},u=c=>{if(c.length<o||c.type!=fa.Text)return;let f=MH(c.from,c.to,this.stateDeco);if(f.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,p;if(n){let m=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,b,g;if(d!=null){let O=Um(f,d),x=((this.visibleBottom-this.visibleTop)/2+m)/c.height;b=O-x,g=O+x}else b=(this.visibleTop-c.top-m)/c.height,g=(this.visibleBottom-c.top+m)/c.height;h=zm(f,b),p=zm(f,g)}else{let m=f.total*this.heightOracle.charWidth,b=r*this.heightOracle.charWidth,g=0;if(m>2e6)for(let v of e)v.from>=c.from&&v.from<c.to&&v.size!=v.displaySize&&v.from*this.heightOracle.charWidth+g<this.pixelViewport.left&&(g=v.size-v.displaySize);let O=this.pixelViewport.left+g,x=this.pixelViewport.right+g,S,y;if(d!=null){let v=Um(f,d),C=((x-O)/2+b)/m;S=v-C,y=v+C}else S=(O-b)/m,y=(x+b)/m;h=zm(f,S),p=zm(f,y)}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,n,r){let i=Um(r,n)-Um(r,a);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){sd.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ce.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 n=[];ze.spans(a,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let i=0;i<n.length&&!(r&8);i++){let o=this.visibleRanges[i],s=n[i];(o.from!=s.from||o.to!=s.to)&&(r|=4,e&&e.mapPos(o.from,-1)==s.from&&e.mapPos(o.to,1)==s.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(a=>a.from<=e&&a.to>=e)||Jf(this.heightMap.lineAt(e,ct.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)||Jf(this.heightMap.lineAt(this.scaler.fromDOM(e),ct.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 Jf(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}},Cu=class{constructor(e,a){this.from=e,this.to=a}};function MH(t,e,a){let n=[],r=t,i=0;return ze.spans(a,t,e,{span(){},point(o,s){o>r&&(n.push({from:r,to:o}),i+=o-r),r=s}},20),r<e&&(n.push({from:r,to:e}),i+=e-r),{total:i,ranges:n}}function zm({total:t,ranges:e},a){if(a<=0)return e[0].from;if(a>=1)return e[e.length-1].to;let n=Math.floor(t*a);for(let r=0;;r++){let{from:i,to:o}=e[r],s=o-i;if(n<=s)return i+n;n-=s}}function Um(t,e){let a=0;for(let{from:n,to:r}of t.ranges){if(e<=r){a+=e-n;break}a+=r-n}return a/t.total}function DH(t,e){for(let a of t)if(e(a))return a}var C2={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};function w2(t){let e=t.facet(fg).filter(n=>typeof n!="function"),a=t.facet(iv).filter(n=>typeof n!="function");return a.length&&e.push(ze.join(a)),e}var Qy=class t{constructor(e,a,n){let r=0,i=0,o=0;this.viewports=n.map(({from:s,to:l})=>{let u=a.lineAt(s,ct.ByPos,e,0,0).top,c=a.lineAt(l,ct.ByPos,e,0,0).bottom;return r+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(a.height-r);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,n=0,r=0;;a++){let i=a<this.viewports.length?this.viewports[a]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let a=0,n=0,r=0;;a++){let i=a<this.viewports.length?this.viewports[a]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(e){return e instanceof t?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((a,n)=>a.from==e.viewports[n].from&&a.to==e.viewports[n].to):!1}};function Jf(t,e){if(e.scale==1)return t;let a=e.toDOM(t.top),n=e.toDOM(t.bottom);return new rr(t.from,t.length,a,n-a,Array.isArray(t._content)?t._content.map(r=>Jf(r,e)):t._content)}var Xm=V.define({combine:t=>t.join(" ")}),Ny=V.define({combine:t=>t.indexOf(!0)>-1}),$y=Dn.newName(),AD=Dn.newName(),RD=Dn.newName(),TD={"&light":"."+AD,"&dark":"."+RD};function By(t,e,a){return new Dn(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,r=>{if(r=="&")return t;if(!a||!a[r])throw new RangeError(`Unsupported selector: ${r}`);return a[r]}):t+" "+n}})}var QH=By("."+$y,{"&":{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:"baseline",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"}},TD),NH={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ey=F.ie&&F.ie_version<=11,zy=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new ly,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 n of a)this.queue.push(n);(F.ie&&F.ie_version<=11||F.ios&&e.composing)&&a.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&F.android&&e.constructor.EDIT_CONTEXT!==!1&&!(F.chrome&&F.chrome_version<126)&&(this.editContext=new Uy(e),e.state.facet(hi)&&(e.contentDOM.editContext=this.editContext.editContext)),ey&&(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,n)=>a!=e[n]))){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:n}=this,r=this.selectionRange;if(n.state.facet(hi)?n.root.activeElement!=this.dom:!td(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){a||(this.selectionChanged=!1);return}(F.ie&&F.ie_version<=11||F.android&&F.chrome)&&!n.state.selection.main.empty&&r.focusNode&&ad(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,a=dd(e.root);if(!a)return!1;let n=F.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&$H(this.view,a)||a;if(!n||this.selectionRange.eq(n))return!1;let r=td(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&I6(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(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 n=this.dom;n;)if(Kt(n))!a&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:a||(a=this.scrollTargets.slice(0,e)),a&&a.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!a&&(a=this.scrollTargets.slice(0,e)),a){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=a)n.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,NH),ey&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),ey&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,a){var n;if(!this.delayedAndroidKey){let r=()=>{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&Eu(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:a,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.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,n=-1,r=!1;for(let i of e){let o=this.readMutation(i);o&&(o.typeOver&&(r=!0),a==-1?{from:a,to:n}=o:(a=Math.min(o.from,a),n=Math.max(o.to,n)))}return{from:a,to:n,typeOver:r}}readChange(){let{from:e,to:a,typeOver:n}=this.processRecords(),r=this.selectionChanged&&td(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new ky(this.view,e,a,n);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.selectionChanged,n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=xD(this.view,n);return this.view.state==r&&(n.domChanged||a)&&this.view.update([]),i}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 n=k2(a,e.previousSibling||e.target.previousSibling,-1),r=k2(a,e.nextSibling||e.target.nextSibling,1);return{from:n?a.posAfter(n):a.posAtStart,to:r?a.posBefore(r):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(hi)!=e.state.facet(hi)&&(e.view.contentDOM.editContext=e.state.facet(hi)?this.editContext.editContext:null))}destroy(){var e,a,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(a=this.gapIntersection)===null||a===void 0||a.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let r of this.scrollTargets)r.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 k2(t,e,a){for(;e;){let n=mt.get(e);if(n&&n.parent==t)return n;let r=e.parentNode;e=r!=t.dom?r:a>0?e.nextSibling:e.previousSibling}return null}function L2(t,e){let a=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor,1);return ad(o.node,o.offset,r,i)&&([a,n,r,i]=[r,i,a,n]),{anchorNode:a,anchorOffset:n,focusNode:r,focusOffset:i}}function $H(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return L2(t,r)}let a=null;function n(r){r.preventDefault(),r.stopImmediatePropagation(),a=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",n,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",n,!0),a?L2(t,a):null}var Uy=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=n=>{let r=e.state.selection.main,{anchor:i,head:o}=r,s=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:s,drifted:!1});let u=l-s>n.text.length;s==this.from&&i<this.from?s=i:l==this.to&&i>this.to&&(l=i);let c=SD(e.state.sliceDoc(s,l),n.text,(u?r.from:r.to)-s,u?"end":null);if(!c){let d=I.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));Ly(d,r)||e.dispatch({selection:d,userEvent:"select"});return}let f={from:c.from+s,to:c.toA+s,insert:Te.of(n.text.slice(c.from,c.toB).split(`
|
|
39
|
+
`))};if((F.mac||F.android)&&f.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(f={from:s,to:l,insert:Te.of([n.text.replace("."," ")])}),this.pendingContextChange=f,!e.state.readOnly){let d=this.to-this.from+(f.to-f.from+f.insert.length);ov(e,f,I.single(this.toEditorPos(n.selectionStart,d),this.toEditorPos(n.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,n.updateRangeStart-1),Math.min(a.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let o=this.toEditorPos(n.rangeStart),s=this.toEditorPos(n.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,r.push(i)}a.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=n=>{let r=[];for(let i of n.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`;r.push(ce.mark({attributes:{style:c}}).range(l,u))}}}e.dispatch({effects:uD.of(ce.set(r))})},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:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)a.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{let r=dd(n.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let a=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,s,l,u)=>{if(n)return;let c=u.length-(o-i);if(r&&o>=r.to)if(r.from==i&&r.to==o&&r.insert.eq(u)){r=this.pendingContextChange=null,a+=c,this.to+=c;return}else r=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){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),u.toString()),this.to+=c}a+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let a=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.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,n=this.toContextPos(Math.max(this.from,Math.min(this.to,a.anchor))),r=this.toContextPos(a.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}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 n=this.composing;return n&&n.drifted?n.editorBase+(e-n.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])}},G=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.clearAnnouncement=-1,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:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||T6(e.parent)||document,this.viewState=new og(this,e.state||Ye.create(e)),e.scrollTo&&e.scrollTo.is(Nm)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(vu).map(r=>new rd(r));for(let r of this.plugins)r.update(this);this.observer=new zy(this),this.inputState=new Ey(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ag(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 Tt?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,n=!1,r,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(LD))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=ED(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(Ye.phrases)!=this.state.facet(Ye.phrases))return this.setState(i);r=eg.create(this,i,e),r.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 nd(h.empty?h:I.cursor(h.head,h.head>h.anchor?-1:1),"nearest","nearest",m,p)}for(let h of d.effects)h.is(Nm)&&(f=h.value.clip(this.state))}this.viewState.update(r,f),this.bidiCache=sg.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),a=this.docView.update(r),this.state.facet(Kf)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(a,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(Xm)!=r.state.facet(Xm)&&(this.viewState.mustMeasureContent=!0),(a||n||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),a&&this.docViewUpdate(),!r.empty)for(let d of this.state.facet(dy))try{d(r)}catch(h){Bn(this.state,h,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!xD(this,c)&&u.force&&Eu(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 n of this.plugins)n.destroy(this);this.viewState=new og(this,e),this.plugins=e.facet(vu).map(n=>new rd(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new ag(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(vu),n=e.state.facet(vu);if(a!=n){let r=[];for(let i of n){let o=a.indexOf(i);if(o<0)r.push(new rd(i));else{let s=this.plugins[o];s.mustUpdate=e,r.push(s)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);a!=n&&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(n){Bn(this.state,n,"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,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o,scaleY:s}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0){if(G2(n||this.win))i=-1,o=this.viewState.heightMap.height/this.viewState.scaleY;else{let p=this.viewState.scrollAnchorAt(r);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 Bn(this.state,m),E2}}),d=eg.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]!=E2)try{let m=c[p];m.write&&m.write(f[p],this)}catch(m){Bn(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)&&!(F.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r=r+m,n?i<0?n.scrollTop=n.scrollHeight:n.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(dy))l(a)}get themeClasses(){return $y+" "+(this.state.facet(Ny)?RD:AD)+" "+this.state.facet(Xm)}updateAttrs(){let e=_2(this,cD,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),a={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(hi)?"true":"false",class:"cm-content",style:`${F.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(a["aria-readonly"]="true"),_2(this,rv,a);let n=this.observer.ignore(()=>{let r=o2(this.contentDOM,this.contentAttrs,a),i=o2(this.dom,this.editorAttrs,e);return r||i});return this.editorAttrs=e,this.contentAttrs=a,n}showAnnouncements(e){let a=!0;for(let n of e)for(let r of n.effects)if(r.is(t.announce)){a&&(this.announceDOM.textContent="",this.win.clearTimeout(this.clearAnnouncement),this.clearAnnouncement=this.win.setTimeout(()=>{this.announceDOM.textContent="\xA0"},200),a=!1);let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(Kf);let e=this.state.facet(t.cspNonce);Dn.mount(this.root,this.styleModules.concat(QH).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(n=>n.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,n){return JS(this,e,d2(this,e,a,n))}moveByGroup(e,a){return JS(this,e,d2(this,e,a,n=>oH(this,e.head,n)))}visualLineSide(e,a){return a?I.cursor(e.to,1):I.cursor(e.from,-1)}moveToLineBoundary(e,a,n=!0){return iH(this,e,a,n)}moveVertically(e,a,n){return JS(this,e,sH(this,e,a,n))}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 n=vy(this,e,a);return n&&n.pos}posAndSideAtCoords(e,a=!0){return this.readMeasured(),vy(this,e,a)}coordsAtPos(e,a=1){this.readMeasured();let n=this.state.doc.lineAt(e),r=this.bidiSpans(n),i=r[$n.find(r,e-n.from,-1,a)];return n.length&&(e==n.from&&a<0||e==n.to&&a>0)&&i.dir!=this.textDirectionAt(n.from)&&(e==n.to?(e=n.from+i.from,a=1):(e=n.from+i.to,a=-1)),this.docView.coordsAt(e,a,i.dir==rt.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(oD)||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>BH)return K2(e.length);let a=this.textDirectionAt(e.from),n;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==a&&(i.fresh||W2(i.isolates,n=u2(this,e))))return i.order;n||(n=u2(this,e));let r=B6(e.text,a,n);return this.bidiCache.push(new sg(e.from,e.to,a,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||F.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{F2(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.win.clearTimeout(this.clearAnnouncement),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,a={}){var n,r,i,o;return Nm.of(new nd(typeof e=="number"?I.cursor(e):e,(n=a.y)!==null&&n!==void 0?n:"nearest",(r=a.x)!==null&&r!==void 0?r:"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,n=this.viewState.scrollAnchorAt(e);return Nm.of(new nd(I.cursor(n.from),"start","start",n.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 Xt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Xt.define(()=>({}),{eventObservers:e})}static theme(e,a){let n=Dn.newName(),r=[Xm.of(n),Kf.of(By(`.${n}`,e))];return a&&a.dark&&r.push(Ny.of(!0)),r}static baseTheme(e){return Mn.lowest(Kf.of(By("."+$y,e,TD)))}static findFromDOM(e){var a;let n=e.querySelector(".cm-content"),r=n&&mt.get(n)||mt.get(e);return((a=r?.root)===null||a===void 0?void 0:a.view)||null}};G.styleModule=Kf;G.inputHandler=rD;G.clipboardInputFilter=av;G.clipboardOutputFilter=nv;G.scrollHandler=lD;G.focusChangeEffect=iD;G.perLineTextDirection=oD;G.exceptionSink=nD;G.updateListener=dy;G.editable=hi;G.mouseSelectionStyle=aD;G.dragMovesSelection=tD;G.clickAddsSelectionRange=eD;G.decorations=fg;G.blockWrappers=fD;G.outerDecorations=iv;G.atomicRanges=md;G.bidiIsolatedRanges=dD;G.cursorScrollMargin=V.define({combine:t=>{let e=5,a=5;for(let n of t)typeof n=="number"?e=a=n:{x:e,y:a}=n;return{x:e,y:a}}});G.scrollMargins=hD;G.darkTheme=Ny;G.cspNonce=V.define({combine:t=>t.length?t[0]:""});G.contentAttributes=rv;G.editorAttributes=cD;G.lineWrapping=G.contentAttributes.of({class:"cm-lineWrapping"});G.announce=_e.define();var BH=4096,E2={},sg=class t{constructor(e,a,n,r,i,o){this.from=e,this.to=a,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,a){if(a.empty&&!e.some(i=>i.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:rt.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir==r&&!a.touchesRange(o.from,o.to)&&n.push(new t(a.mapPos(o.from,1),a.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}};function _2(t,e,a){for(let n=t.state.facet(e),r=n.length-1;r>=0;r--){let i=n[r],o=typeof i=="function"?i(t):i;o&&Jy(o,a)}return a}var zH=F.mac?"mac":F.windows?"win":F.linux?"linux":"key";function UH(t,e){let a=t.split(/-(?!$)/),n=a[a.length-1];n=="Space"&&(n=" ");let r,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))r=!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 r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function qm(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 XH=Mn.default(G.domEventHandlers({keydown(t,e){return MD(ID(e.state),t,e,"editor")}})),Qs=V.define({enables:XH}),A2=new WeakMap;function ID(t){let e=t.facet(Qs),a=A2.get(e);return a||A2.set(e,a=ZH(e.reduce((n,r)=>n.concat(r),[]))),a}function PD(t,e,a){return MD(ID(t.state),e,t,a)}var So=null,qH=4e3;function ZH(t,e=zH){let a=Object.create(null),n=Object.create(null),r=(o,s)=>{let l=n[o];if(l==null)n[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=>UH(g,e));for(let g=1;g<p.length;g++){let O=p.slice(0,g).join(" ");r(O,!0),h[O]||(h[O]={preventDefault:!0,stopPropagation:!1,run:[x=>{let S=So={view:x,prefix:O,scope:o};return setTimeout(()=>{So==S&&(So=null)},qH),!0}]})}let m=p.join(" ");r(m,!1);let b=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&&b.run.push(l),u&&(b.preventDefault=!0),c&&(b.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,Xy))}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 Xy=null;function MD(t,e,a,n){Xy=e;let r=t2(e),i=xu(r,0),o=Wf(i)==r.length&&r!=" ",s="",l=!1,u=!1,c=!1;So&&So.view==a&&So.scope==n&&(s=So.prefix+" ",vD.indexOf(e.keyCode)<0&&(u=!0,So=null));let f=new Set,d=b=>{if(b){for(let g of b.run)if(!f.has(g)&&(f.add(g),g(a)))return b.stopPropagation&&(c=!0),!0;b.preventDefault&&(b.stopPropagation&&(c=!0),u=!0)}return!1},h=t[n],p,m;return h&&(d(h[s+qm(r,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(F.windows&&e.ctrlKey&&e.altKey)&&!(F.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=di[e.keyCode])&&p!=r?(d(h[s+qm(p,e,!0)])||e.shiftKey&&(m=Su[e.keyCode])!=r&&m!=p&&d(h[s+qm(m,e,!1)]))&&(l=!0):o&&e.shiftKey&&d(h[s+qm(r,e,!0)])&&(l=!0),!l&&d(h._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),Xy=null,l}var Is=class t{constructor(e,a,n,r,i){this.className=e,this.left=a,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,a){return a.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,a,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=DD(e);return[new t(a,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}else return FH(e,a,n)}};function DD(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==rt.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function R2(t,e,a,n){let r=t.coordsAtPos(e,a*2);if(!r)return n;let i=t.dom.getBoundingClientRect(),o=(r.top+r.bottom)/2,s=t.posAtCoords({x:i.left+1,y:o}),l=t.posAtCoords({x:i.right-1,y:o});return s==null||l==null?n:{from:Math.max(n.from,Math.min(s,l)),to:Math.min(n.to,Math.max(s,l))}}function FH(t,e,a){if(a.to<=t.viewport.from||a.from>=t.viewport.to)return[];let n=Math.max(a.from,t.viewport.from),r=Math.min(a.to,t.viewport.to),i=t.textDirection==rt.LTR,o=t.contentDOM,s=o.getBoundingClientRect(),l=DD(t),u=o.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=s.right-(c?parseInt(c.paddingRight):0),h=yy(t,n,1),p=yy(t,r,-1),m=h.type==fa.Text?h:null,b=p.type==fa.Text?p:null;if(m&&(t.lineWrapping||h.widgetLineBreaks)&&(m=R2(t,n,1,m)),b&&(t.lineWrapping||p.widgetLineBreaks)&&(b=R2(t,r,-1,b)),m&&b&&m.from==b.from&&m.to==b.to)return O(x(a.from,a.to,m));{let y=m?x(a.from,null,m):S(h,!1),v=b?x(null,a.to,b):S(p,!0),C=[];return(m||h).to<(b||p).from-(m&&b?1:0)||h.widgetLineBreaks>1&&y.bottom+t.defaultLineHeight/2<v.top?C.push(g(f,y.bottom,d,v.top)):y.bottom<v.top&&t.elementAtHeight((y.bottom+v.top)/2).type==fa.Text&&(y.bottom=v.top=(y.bottom+v.top)/2),O(y).concat(C).concat(O(v))}function g(y,v,C,k){return new Is(e,y-l.left,v-l.top,Math.max(0,C-y),k-v)}function O({top:y,bottom:v,horizontal:C}){let k=[];for(let L=0;L<C.length;L+=2)k.push(g(C[L],y,C[L+1],v));return k}function x(y,v,C){let k=1e9,L=-1e9,E=[];function A(Q,M,_,D,N){let X=t.coordsAtPos(Q,Q==C.to?-2:2),T=t.coordsAtPos(_,_==C.from?2:-2);!X||!T||(k=Math.min(X.top,T.top,k),L=Math.max(X.bottom,T.bottom,L),N==rt.LTR?E.push(i&&M?f:X.left,i&&D?d:T.right):E.push(!i&&D?f:T.left,!i&&M?d:X.right))}let R=y??C.from,U=v??C.to;for(let Q of t.visibleRanges)if(Q.to>R&&Q.from<U)for(let M=Math.max(Q.from,R),_=Math.min(Q.to,U);;){let D=t.state.doc.lineAt(M);for(let N of t.bidiSpans(D)){let X=N.from+D.from,T=N.to+D.from;if(X>=_)break;T>M&&A(Math.max(X,M),y==null&&X<=R,Math.min(T,_),v==null&&T>=U,N.dir)}if(M=D.to+1,M>=_)break}return E.length==0&&A(R,y==null,U,v==null,t.textDirection),{top:k,bottom:L,horizontal:E}}function S(y,v){let C=s.top+(v?y.top:y.bottom);return{top:C,bottom:C,horizontal:[]}}}function GH(t,e){return t.constructor==e.constructor&&t.eq(e)}var qy=class{constructor(e,a){this.view=e,this.layer=a,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),a.above&&this.dom.classList.add("cm-layer-above"),a.class&&this.dom.classList.add(a.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),a.mount&&a.mount(this.dom,e)}update(e){e.startState.facet(Gm)!=e.state.facet(Gm)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let a=0,n=e.facet(Gm);for(;a<n.length&&n[a]!=this.layer;)a++;this.dom.style.zIndex=String((this.layer.above?150:-1)-a)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:a}=this.view;(e!=this.scaleX||a!=this.scaleY)&&(this.scaleX=e,this.scaleY=a,this.dom.style.transform=`scale(${1/e}, ${1/a})`)}draw(e){if(e.length!=this.drawn.length||e.some((a,n)=>!GH(a,this.drawn[n]))){let a=this.dom.firstChild,n=0;for(let r of e)r.update&&a&&r.constructor&&this.drawn[n].constructor&&r.update(a,this.drawn[n])?(a=a.nextSibling,n++):this.dom.insertBefore(r.draw(),a);for(;a;){let r=a.nextSibling;a.remove(),a=r}this.drawn=e,F.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},Gm=V.define();function QD(t){return[Xt.define(e=>new qy(e,t)),Gm.of(t)]}var Zy=!F.ios,Mu=V.define({combine(t){return ln(t,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,a)=>Math.min(e,a),drawRangeCursor:(e,a)=>e||a})}});function ND(t={}){return[Mu.of(t),HH,jH,YH,sD.of(!0)]}function $D(t){return t.startState.facet(Mu)!=t.state.facet(Mu)}var HH=QD({above:!0,markers(t){let{state:e}=t,a=e.facet(Mu),n=[];for(let r of e.selection.ranges){let i=r==e.selection.main;if(r.empty||a.drawRangeCursor&&!(i&&F.ios&&a.iosSelectionHandles)){let o=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=r.empty?r:I.cursor(r.head,r.assoc);for(let l of Is.forRange(t,o,s))n.push(l)}}return n},update(t,e){t.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let a=$D(t);return a&&T2(t.state,e),t.docChanged||t.selectionSet||a},mount(t,e){T2(e.state,t)},class:"cm-cursorLayer"});function T2(t,e){e.style.animationDuration=t.facet(Mu).cursorBlinkRate+"ms"}var jH=QD({above:!1,markers(t){let e=[],{main:a,ranges:n}=t.state.selection;for(let r of n)if(!r.empty&&(Zy||r!=a))for(let i of Is.forRange(t,"cm-selectionBackground",r))e.push(i);if(F.ios&&!a.empty&&t.state.facet(Mu).iosSelectionHandles){for(let r of Is.forRange(t,"cm-selectionHandle cm-selectionHandle-start",I.cursor(a.from,1)))e.push(r);for(let r of Is.forRange(t,"cm-selectionHandle cm-selectionHandle-end",I.cursor(a.to,1)))e.push(r)}return e},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||$D(t)},class:"cm-selectionLayer"}),VH=F.gecko&&F.gecko_version==153?"#ffffff01":"transparent",YH=Mn.highest(G.theme({".cm-line":{...Zy?{"& ::selection, &::selection":{backgroundColor:`${VH} !important`}}:{},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important",...Zy?{"&::selection, & ::selection":{backgroundColor:"Highlight !important"}}:{}}}})),BD=_e.define({map(t,e){return t==null?null:e.mapPos(t)}}),ed=Wt.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((a,n)=>n.is(BD)?n.value:a,t)}}),WH=Xt.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let a=t.state.field(ed);a==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(ed)!=a||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(ed),a=e!=null&&t.coordsAtPos(e);if(!a)return null;let n=t.scrollDOM.getBoundingClientRect();return{left:a.left-n.left+t.scrollDOM.scrollLeft*t.scaleX,top:a.top-n.top+t.scrollDOM.scrollTop*t.scaleY,height:a.bottom-a.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:a}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/a+"px",this.cursor.style.height=t.height/a+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(ed)!=t&&this.view.dispatch({effects:BD.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function zD(){return[ed,WH]}function I2(t,e,a,n,r){e.lastIndex=0;for(let i=t.iterRange(a,n),o=a,s;!i.next().done;o+=i.value.length)if(!i.lineBreak)for(;s=e.exec(i.value);)r(o+s.index,s)}function KH(t,e){let a=t.visibleRanges;if(a.length==1&&a[0].from==t.viewport.from&&a[0].to==t.viewport.to)return a;let n=[];for(let{from:r,to:i}of a)r=Math.max(t.state.doc.lineAt(r).from,r-e),i=Math.min(t.state.doc.lineAt(i).to,i+e),n.length&&n[n.length-1].to>=r?n[n.length-1].to=i:n.push({from:r,to:i});return n}var Fy=class{constructor(e){let{regexp:a,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!a.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=a,r)this.addMatch=(s,l,u,c)=>r(c,u,u+s[0].length,s,l);else if(typeof n=="function")this.addMatch=(s,l,u,c)=>{let f=n(s,l,u);f&&c(u,u+s[0].length,f)};else if(n)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=o}createDeco(e){let a=new In,n=a.add.bind(a);for(let{from:r,to:i}of KH(e,this.maxLength))I2(e.state.doc,this.regexp,r,i,(o,s)=>this.addMatch(s,e,o,n));return a.finish()}updateDeco(e,a){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((i,o,s,l)=>{l>=e.view.viewport.from&&s<=e.view.viewport.to&&(n=Math.min(s,n),r=Math.max(l,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,a.map(e.changes),n,r):a}updateRange(e,a,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>=o){let l=e.state.doc.lineAt(o),u=l.to<s?e.state.doc.lineAt(s):l,c=Math.max(i.from,l.from),f=Math.min(i.to,u.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){c=o;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){f=s;break}}let d=[],h,p=(m,b,g)=>d.push(g.range(m,b));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.index<f-l.from;)this.addMatch(h,e,h.index+l.from,p);else I2(e.state.doc,this.regexp,c,f,(m,b)=>this.addMatch(b,e,m,p));a=a.update({filterFrom:c,filterTo:f,filter:(m,b)=>m<c||b>f,add:d})}}return a}},Gy=/x/.unicode!=null?"gu":"g",JH=new RegExp(`[\0-\b
|
|
40
|
+
-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,Gy),e7={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},ty=null;function t7(){var t;if(ty==null&&typeof document<"u"&&document.body){let e=document.body.style;ty=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return ty||!1}var Hm=V.define({combine(t){let e=ln(t,{render:null,specialChars:JH,addSpecialChars:null});return(e.replaceTabs=!t7())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Gy)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Gy)),e}});function UD(t={}){return[Hm.of(t),a7()]}var P2=null;function a7(){return P2||(P2=Xt.fromClass(class{constructor(t){this.view=t,this.decorations=ce.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(Hm)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Fy({regexp:t.specialChars,decoration:(e,a,n)=>{let{doc:r}=a.state,i=xu(e[0],0);if(i==9){let o=r.lineAt(n),s=a.state.tabSize,l=Ea(o.text,s,n-o.from);return ce.replace({widget:new jy((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=ce.replace({widget:new Hy(t,i)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(Hm);t.startState.facet(Hm)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}var n7="\u2022";function r7(t){return t>=32?n7:t==10?"\u2424":String.fromCharCode(9216+t)}var Hy=class extends cn{constructor(e,a){super(),this.options=e,this.code=a}eq(e){return e.code==this.code}toDOM(e){let a=r7(this.code),n=e.state.phrase("Control character")+" "+(e7[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,a);if(r)return r;let i=document.createElement("span");return i.textContent=a,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}},jy=class extends cn{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function XD(){return o7}var i7=ce.line({class:"cm-activeLine"}),o7=Xt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,a=[];for(let n of t.state.selection.ranges){let r=t.lineBlockAt(n.head);r.from>e&&(a.push(i7.range(r.from)),e=r.from)}return ce.set(a)}},{decorations:t=>t.decorations});var Vy=2e3;function s7(t,e,a){let n=Math.min(e.line,a.line),r=Math.max(e.line,a.line),i=[];if(e.off>Vy||a.off>Vy||e.col<0||a.col<0){let o=Math.min(e.off,a.off),s=Math.max(e.off,a.off);for(let l=n;l<=r;l++){let u=t.doc.line(l);u.length<=s&&i.push(I.range(u.from+o,u.to+s))}}else{let o=Math.min(e.col,a.col),s=Math.max(e.col,a.col);for(let l=n;l<=r;l++){let u=t.doc.line(l),c=Dm(u.text,o,t.tabSize,!0);if(c<0)i.push(I.cursor(u.to));else{let f=Dm(u.text,s,t.tabSize);i.push(I.range(u.from+c,u.from+f))}}}return i}function l7(t,e){let a=t.coordsAtPos(t.viewport.from);return a?Math.round(Math.abs((a.left-e)/t.defaultCharacterWidth)):-1}function M2(t,e){let a=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(a),r=a-n.from,i=r>Vy?-1:r==n.length?l7(t,e.clientX):Ea(n.text,t.state.tabSize,a-n.from);return{line:n.number,col:i,off:r}}function u7(t,e){let a=M2(t,e),n=t.state.selection;return a?{update(r){if(r.docChanged){let i=r.changes.mapPos(r.startState.doc.line(a.line).from),o=r.state.doc.lineAt(i);a={line:o.number,col:a.col,off:Math.min(a.off,o.length)},n=n.map(r.changes)}},get(r,i,o){let s=M2(t,r);if(!s)return n;let l=s7(t.state,a,s);return l.length?o?I.create(l.concat(n.ranges)):I.create(l):n}}:null}function qD(t){let e=t?.eventFilter||(a=>a.altKey&&a.button==0);return G.mouseSelectionStyle.of((a,n)=>e(n)?u7(a,n):null)}var D2=V.define({combine(t){let e,a;for(let n of t)e=e||n.topContainer,a=a||n.bottomContainer;return{topContainer:e,bottomContainer:a}}});function hg(t,e){let a=t.plugin(ZD),n=a?a.specs.indexOf(e):-1;return n>-1?a.panels[n]:null}var ZD=Xt.fromClass(class{constructor(t){this.input=t.state.facet(pd),this.specs=this.input.filter(a=>a),this.panels=this.specs.map(a=>a(t));let e=t.state.facet(D2);this.top=new wu(t,!0,e.topContainer),this.bottom=new wu(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(a=>a.top)),this.bottom.sync(this.panels.filter(a=>!a.top));for(let a of this.panels)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}update(t){let e=t.state.facet(D2);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new wu(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new wu(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let a=t.state.facet(pd);if(a!=this.input){let n=a.filter(l=>l),r=[],i=[],o=[],s=[];for(let l of n){let u=this.specs.indexOf(l),c;u<0?(c=l(t.view),s.push(c)):(c=this.panels[u],c.update&&c.update(t)),r.push(c),(c.top?i:o).push(c)}this.specs=n,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>G.scrollMargins.of(e=>{let a=e.plugin(t);return a&&{top:a.top.scrollMargin(),bottom:a.bottom.scrollMargin()}})}),wu=class{constructor(e,a,n){this.view=e,this.top=a,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let a of this.panels)a.destroy&&e.indexOf(a)<0&&a.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";let a=this.container||this.view.dom;a.insertBefore(this.dom,this.top?a.firstChild:null)}let e=this.dom.firstChild;for(let a of this.panels)if(a.dom.parentNode==this.dom){for(;e!=a.dom;)e=Q2(e);e=e.nextSibling}else this.dom.insertBefore(a.dom,e);for(;e;)e=Q2(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function Q2(t){let e=t.nextSibling;return t.remove(),e}var pd=V.define({enables:ZD});function FD(t,e){let a,n=new Promise(o=>a=o),r=o=>c7(o,e,a);t.state.field(jm,!1)?t.dispatch({effects:HD.of(r)}):t.dispatch({effects:_e.appendConfig.of(jm.init(()=>[r]))});let i=jD.of(r);return{close:i,result:n.then(o=>((t.win.queueMicrotask||(l=>t.win.setTimeout(l,10)))(()=>{t.state.field(jm).indexOf(r)>-1&&t.dispatch({effects:i})}),o))}}function GD(t,e){let a=t.state.field(jm,!1)||[];for(let n of a){let r=hg(t,n);if(r&&r.dom.classList.contains(e))return r}return null}var jm=Wt.define({create(){return[]},update(t,e){for(let a of e.effects)a.is(HD)?t=[a.value].concat(t):a.is(jD)&&(t=t.filter(n=>n!=a.value));return t},provide:t=>pd.computeN([t],e=>e.field(t))}),HD=_e.define(),jD=_e.define();function c7(t,e,a){let n=e.content?e.content(t,()=>o(null)):null;if(!n){if(n=Et("form"),e.input){let s=Et("input",e.input);/^(text|password|number|email|tel|url)$/.test(s.type)&&s.classList.add("cm-textfield"),s.name||(s.name="input"),n.appendChild(Et("label",(e.label||"")+": ",s))}else n.appendChild(document.createTextNode(e.label||""));n.appendChild(document.createTextNode(" ")),n.appendChild(Et("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let r=n.nodeName=="FORM"?[n]:n.querySelectorAll("form");for(let s=0;s<r.length;s++){let l=r[s];l.addEventListener("keydown",u=>{u.keyCode==27?(u.preventDefault(),o(null)):u.keyCode==13&&(u.preventDefault(),o(l))}),l.addEventListener("submit",u=>{u.preventDefault(),o(l)})}let i=Et("div",n,Et("button",{onclick:()=>o(null),"aria-label":t.state.phrase("close"),class:"cm-dialog-close",type:"button"},["\xD7"]));e.class&&(i.className=e.class),i.classList.add("cm-dialog");function o(s){i.contains(i.ownerDocument.activeElement)&&t.focus(),a(s)}return{dom:i,top:e.top,mount:()=>{if(e.focus){let s;typeof e.focus=="string"?s=n.querySelector(e.focus):s=n.querySelector("input")||n.querySelector("button"),s&&"select"in s?s.select():s&&"focus"in s&&s.focus()}}}}var zn=class extends Pn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};zn.prototype.elementClass="";zn.prototype.toDOM=void 0;zn.prototype.mapMode=ca.TrackBefore;zn.prototype.startSide=zn.prototype.endSide=-1;zn.prototype.point=!0;var Vm=V.define(),f7=V.define(),d7={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ze.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},ld=V.define();function VD(t){return[YD(),ld.of({...d7,...t})]}var Yy=V.define({combine:t=>t.some(e=>e)});function YD(t){let e=[h7];return t&&t.fixed===!1&&e.push(Yy.of(!0)),e}var h7=Xt.fromClass(class{constructor(t){this.view=t,this.domAfter=null,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(ld).map(e=>new lg(t,e)),this.fixed=!t.state.facet(Yy);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(t){if(this.updateGutters(t)){let e=this.prevViewport,a=t.view.viewport,n=Math.min(e.to,a.to)-Math.max(e.from,a.from);this.syncGutters(n<(a.to-a.from)*.8)}if(t.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Yy)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let a=ze.iter(this.view.state.facet(Vm),this.view.viewport.from),n=[],r=this.gutters.map(i=>new Ky(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(i.type)){let o=!0;for(let s of i.type)if(s.type==fa.Text&&o){Wy(a,n,s.from);for(let l of r)l.line(this.view,s,n);o=!1}else if(s.widget)for(let l of r)l.widget(this.view,s)}else if(i.type==fa.Text){Wy(a,n,i.from);for(let o of r)o.line(this.view,i,n)}else if(i.widget)for(let o of r)o.widget(this.view,i);for(let i of r)i.finish();t&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(t){let e=t.startState.facet(ld),a=t.state.facet(ld),n=t.docChanged||t.heightChanged||t.viewportChanged||!ze.eq(t.startState.facet(Vm),t.state.facet(Vm),t.view.viewport.from,t.view.viewport.to);if(e==a)for(let r of this.gutters)r.update(t)&&(n=!0);else{n=!0;let r=[];for(let i of a){let o=e.indexOf(i);o<0?r.push(new lg(this.view,i)):(this.gutters[o].update(t),r.push(this.gutters[o]))}for(let i of this.gutters)i.dom.remove(),r.indexOf(i)<0&&i.destroy();for(let i of r)i.config.side=="after"?this.getDOMAfter().appendChild(i.dom):this.dom.appendChild(i.dom);this.gutters=r}return n}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:t=>G.scrollMargins.of(e=>{let a=e.plugin(t);if(!a||a.gutters.length==0||!a.fixed)return null;let n=a.dom.offsetWidth*e.scaleX,r=a.domAfter?a.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==rt.LTR?{left:n,right:r}:{right:n,left:r}})});function N2(t){return Array.isArray(t)?t:[t]}function Wy(t,e,a){for(;t.value&&t.from<=a;)t.from==a&&e.push(t.value),t.next()}var Ky=class{constructor(e,a,n){this.gutter=e,this.height=n,this.i=0,this.cursor=ze.iter(e.markers,a.from)}addElement(e,a,n){let{gutter:r}=this,i=(a.top-this.height)/e.scaleY,o=a.height/e.scaleY;if(this.i==r.elements.length){let s=new ug(e,o,i,n);r.elements.push(s),r.dom.appendChild(s.dom)}else r.elements[this.i].update(e,o,i,n);this.height=a.bottom,this.i++}line(e,a,n){let r=[];Wy(this.cursor,r,a.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,a,r);i&&r.unshift(i);let o=this.gutter;r.length==0&&!o.config.renderEmptyElements||this.addElement(e,a,r)}widget(e,a){let n=this.gutter.config.widgetMarker(e,a.widget,a),r=n?[n]:null;for(let i of e.state.facet(f7)){let o=i(e,a.widget,a);o&&(r||(r=[])).push(o)}r&&this.addElement(e,a,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let a=e.elements.pop();e.dom.removeChild(a.dom),a.destroy()}}},lg=class{constructor(e,a){this.view=e,this.config=a,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in a.domEventHandlers)this.dom.addEventListener(n,r=>{let i=r.target,o;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let l=i.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=r.clientY;let s=e.lineBlockAtHeight(o-e.documentTop);a.domEventHandlers[n](e,s,r)&&r.preventDefault()});this.markers=N2(a.markers(e)),a.initialSpacer&&(this.spacer=new ug(e,0,0,[a.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let a=this.markers;if(this.markers=N2(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let n=e.view.viewport;return!ze.eq(this.markers,a,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},ug=class{constructor(e,a,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,a,n,r)}update(e,a,n,r){this.height!=a&&(this.height=a,this.dom.style.height=a+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),p7(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,a){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let s=o,l=i<a.length?a[i++]:null,u=!1;if(l){let c=l.elementClass;c&&(n+=" "+c);for(let f=o;f<this.markers.length;f++)if(this.markers[f].compare(l)){s=f,u=!0;break}}else s=this.markers.length;for(;o<s;){let c=this.markers[o++];if(c.toDOM){c.destroy(r);let f=r.nextSibling;r.remove(),r=f}}if(!l)break;l.toDOM&&(u?r=r.nextSibling:this.dom.insertBefore(l.toDOM(e),r)),u&&o++}this.dom.className=n,this.markers=a}destroy(){this.setMarkers(null,[])}};function p7(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++)if(!t[a].compare(e[a]))return!1;return!0}var m7=V.define(),g7=V.define(),ku=V.define({combine(t){return ln(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,a){let n=Object.assign({},e);for(let r in a){let i=n[r],o=a[r];n[r]=i?(s,l,u)=>i(s,l,u)||o(s,l,u):o}return n}})}}),ud=class extends zn{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function ay(t,e){return t.state.facet(ku).formatNumber(e,t.state)}var O7=ld.compute([ku],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(m7)},lineMarker(e,a,n){return n.some(r=>r.toDOM)?null:new ud(ay(e,e.state.doc.lineAt(a.from).number))},widgetMarker:(e,a,n)=>{for(let r of e.state.facet(g7)){let i=r(e,a,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(ku)!=e.state.facet(ku),initialSpacer(e){return new ud(ay(e,$2(e.state.doc.lines)))},updateSpacer(e,a){let n=ay(a.view,$2(a.view.state.doc.lines));return n==e.number?e:new ud(n)},domEventHandlers:t.facet(ku).domEventHandlers,side:"before"}));function WD(t={}){return[ku.of(t),YD(),O7]}function $2(t){let e=9;for(;e<t;)e=e*10+9;return e}var b7=new class extends zn{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},x7=Vm.compute(["selection"],t=>{let e=[],a=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.head).from;r>a&&(a=r,e.push(b7.range(r)))}return ze.of(e)});function KD(){return x7}var S7=0,Fa=class{constructor(e,a){this.from=e,this.to=a}},se=class{constructor(e={}){this.id=S7++,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=St.match(e)),a=>{let n=e(a);return n===void 0?null:[this,n]}}};se.closedBy=new se({deserialize:t=>t.split(" ")});se.openedBy=new se({deserialize:t=>t.split(" ")});se.group=new se({deserialize:t=>t.split(" ")});se.isolate=new se({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});se.contextHash=new se({perNode:!0});se.lookAhead=new se({perNode:!0});se.mounted=new se({perNode:!0});var wo=class{constructor(e,a,n,r=!1){this.tree=e,this.overlay=a,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[se.mounted.id]}},y7=Object.create(null),St=class t{constructor(e,a,n,r=0){this.name=e,this.props=a,this.id=n,this.flags=r}static define(e){let a=e.props&&e.props.length?Object.create(null):y7,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new t(e.name||"",a,e.id,n);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(r)),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 r}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(se.group);return a?a.indexOf(e)>-1:!1}return this.id==e}static match(e){let a=Object.create(null);for(let n in e)for(let r of n.split(" "))a[r]=e[n];return n=>{for(let r=n.prop(se.group),i=-1;i<(r?r.length:0);i++){let o=a[i<0?n.name:r[i]];if(o)return o}}}};St.none=new St("",Object.create(null),0,8);var ko=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 n of this.types){let r=null;for(let i of e){let o=i(n);if(o){r||(r=Object.assign({},n.props));let s=o[1],l=o[0];l.combine&&l.id in r&&(s=l.combine(r[l.id],s)),r[l.id]=s}}a.push(r?new St(n.name,r,n.id,n.flags):n)}return new t(a)}},pg=new WeakMap,JD=new WeakMap,Pe;(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"})(Pe||(Pe={}));var Ue=class t{constructor(e,a,n,r,i){if(this.type=e,this.children=a,this.positions=n,this.length=r,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=wo.get(this);if(e&&!e.overlay)return e.tree.toString();let a="";for(let n of this.children){let r=n.toString();r&&(a&&(a+=","),a+=r)}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 Du(this.topNode,e)}cursorAt(e,a=0,n=0){let r=pg.get(this)||this.topNode,i=new Du(r);return i.moveTo(e,a),pg.set(this,i._tree),i}get topNode(){return new Ga(this,0,0,null)}resolve(e,a=0){let n=gd(pg.get(this)||this.topNode,e,a,!1);return pg.set(this,n),n}resolveInner(e,a=0){let n=gd(JD.get(this)||this.topNode,e,a,!0);return JD.set(this,n),n}resolveStack(e,a=0){return v7(this,e,a)}iterate(e){let{enter:a,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,s=(o&Pe.IncludeAnonymous)>0;for(let l=this.cursor(o|Pe.IncludeAnonymous);;){let u=!1;if(l.from<=i&&l.to>=r&&(!s&&l.type.isAnonymous||a(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&n&&(s||!l.type.isAnonymous)&&n(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:Ov(St.none,this.children,this.positions,0,this.children.length,0,this.length,(a,n,r)=>new t(this.type,a,n,r,this.propValues),e.makeTree||((a,n,r)=>new t(St.none,a,n,r)))}static build(e){return C7(e)}};Ue.empty=new Ue(St.none,[],[],0);var sv=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)}},Lo=class t{constructor(e,a,n){this.buffer=e,this.length=a,this.set=n}get type(){return St.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],n=this.buffer[e+3],r=this.set.types[a],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),e+=4,n==e)return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,a,n,r,i){let{buffer:o}=this,s=-1;for(let l=e;l!=a&&!(oQ(i,r,o[l+1],o[l+2])&&(s=l,n>0));l=o[l+3]);return s}slice(e,a,n){let r=this.buffer,i=new Uint16Array(a-e),o=0;for(let s=e,l=0;s<a;){i[l++]=r[s++],i[l++]=r[s++]-n;let u=i[l++]=r[s++]-n;i[l++]=r[s++]-e,o=Math.max(o,u)}return new t(i,o,this.set)}};function oQ(t,e,a,n){switch(t){case-2:return a<e;case-1:return n>=e&&a<e;case 0:return a<e&&n>e;case 1:return a<=e&&n>e;case 2:return n>e;case 4:return!0}}function gd(t,e,a,n){for(var r;t.from==t.to||(a<1?t.from>=e:t.from>e)||(a>-1?t.to<=e:t.to<e);){let o=!n&&t instanceof Ga&&t.index<0?null:t.parent;if(!o)return t;t=o}let i=n?0:Pe.IgnoreOverlays;if(n)for(let o=t,s=o.parent;s;o=s,s=o.parent)o instanceof Ga&&o.index<0&&((r=s.enter(e,a,i))===null||r===void 0?void 0:r.from)!=o.from&&(t=s);for(;;){let o=t.enter(e,a,i);if(!o)return t;t=o}}var gg=class{cursor(e=0){return new Du(this,e)}getChild(e,a=null,n=null){let r=eQ(this,e,a,n);return r.length?r[0]:null}getChildren(e,a=null,n=null){return eQ(this,e,a,n)}resolve(e,a=0){return gd(this,e,a,!1)}resolveInner(e,a=0){return gd(this,e,a,!0)}matchContext(e){return lv(this.parent,e)}enterUnfinishedNodesBefore(e){let a=this.childBefore(e),n=this;for(;a;){let r=a.lastChild;if(!r||r.to!=a.to)break;r.type.isError&&r.from==r.to?(n=a,a=r.prevSibling):a=r}return n}get node(){return this}get next(){return this.parent}},Ga=class t extends gg{constructor(e,a,n,r){super(),this._tree=e,this.from=a,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,a,n,r,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&Pe.EnterBracketed&&c instanceof Ue&&(d=wo.get(c))&&!d.overlay&&d.bracketed&&n>=f&&n<=f+c.length)&&!oQ(r,n,f,f+c.length))){if(c instanceof Lo){if(i&Pe.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,a,n-f,r);if(h>-1)return new Ns(new uv(o,c,e,f),null,h)}else if(i&Pe.IncludeAnonymous||!c.type.isAnonymous||gv(c)){let h;if(!(i&Pe.IgnoreMounts)&&(h=wo.get(c))&&!h.overlay)return new t(h.tree,f,e,o);let p=new t(c,f,e,o);return i&Pe.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(a<0?c.children.length-1:0,a,n,r,i)}}}if(i&Pe.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,n=0){let r;if(!(n&Pe.IgnoreOverlays)&&(r=wo.get(this._tree))&&r.overlay){let i=e-this.from,o=n&Pe.EnterBracketed&&r.bracketed;for(let{from:s,to:l}of r.overlay)if((a>0||o?s<=i:s<i)&&(a<0||o?l>=i:l>i))return new t(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,a,n)}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 eQ(t,e,a,n){let r=t.cursor(),i=[];if(!r.firstChild())return i;if(a!=null){for(let o=!1;!o;)if(o=r.type.is(a),!r.nextSibling())return i}for(;;){if(n!=null&&r.type.is(n))return i;if(r.type.is(e)&&i.push(r.node),!r.nextSibling())return n==null?i:[]}}function lv(t,e,a=e.length-1){for(let n=t;a>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[a]&&e[a]!=n.name)return!1;a--}}return!0}var uv=class{constructor(e,a,n,r){this.parent=e,this.buffer=a,this.index=n,this.start=r}},Ns=class t extends gg{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,n){super(),this.context=e,this._parent=a,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,a,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,a-this.context.start,n);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,n=0){if(n&Pe.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.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:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),a.push(0)}return new Ue(this.type,e,a,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function sQ(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 n=a instanceof Ga&&a.index<0?null:a.parent,r=t.slice();return n?r[e]=n:r.splice(e,1),new cv(r,a)}var cv=class{constructor(e,a){this.heads=e,this.node=a}get next(){return sQ(this.heads)}};function v7(t,e,a){let n=t.resolveInner(e,a),r=null;for(let i=n instanceof Ga?n:n.context.parent;i;i=i.parent)if(i.index<0){let o=i.parent;(r||(r=[n])).push(o.resolve(e,a)),i=o}else{let o=wo.get(i.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let s=new Ga(o.tree,o.overlay[0].from+i.from,-1,i);(r||(r=[n])).push(gd(s,e,a,!1))}}return r?sQ(r):n}var Du=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&~Pe.EnterBracketed,e instanceof Ga)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.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:n,buffer:r}=this.buffer;return this.type=a||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return e?e instanceof Ga?(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,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,a,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,a-this.buffer.start,n);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,n=this.mode){return this.buffer?n&Pe.ExcludeBuffers?!1:this.enterChild(1,e,a):this.yield(this._tree.enter(e,a,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Pe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Pe.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,n=this.stack.length-1;if(e<0){let r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(a.findChild(r,this.index,-1,0,4))}else{let r=a.buffer[this.index+3];if(r<(n<0?a.buffer.length:a.buffer[this.stack[n]+3]))return this.yieldBuf(r)}return n<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,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(r.buffer.buffer[i+3]<this.index)return!1;({index:a,parent:n}=r)}else({index:a,_parent:n}=this._tree);for(;n;{index:a,_parent:n}=n)if(a>-1)for(let i=a+e,o=e<0?-1:n._tree.children.length;i!=o;i+=e){let s=n._tree.children[i];if(this.mode&Pe.IncludeAnonymous||s instanceof Lo||!s.type.isAnonymous||gv(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,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;a=o,n=i+1;break e}r=this.stack[--i]}for(let r=n;r<this.stack.length;r++)a=new Ns(this.buffer,a,this.stack[r]);return this.bufferNode=new Ns(this.buffer,a,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,a){for(let n=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&a&&a(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return lv(this.node.parent,e);let{buffer:a}=this.buffer,{types:n}=a.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return lv(this._tree,e,r);let o=n[a.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}};function gv(t){return t.children.some(e=>e instanceof Lo||!e.type.isAnonymous||gv(e))}function C7(t){var e;let{buffer:a,nodeSet:n,maxBufferLength:r=1024,reused:i=[],minRepeatType:o=n.types.length}=t,s=Array.isArray(a)?new sv(a,a.length):a,l=n.types,u=0,c=0;function f(y,v,C,k,L,E){let{id:A,start:R,end:U,size:Q}=s,M=c,_=u;if(Q<0)if(s.next(),Q==-1){let ae=i[A];C.push(ae),k.push(R-y);return}else if(Q==-3){u=A;return}else if(Q==-4){c=A;return}else throw new RangeError(`Unrecognized record size: ${Q}`);let D=l[A],N,X,T=R-y;if(U-R<=r&&(X=b(s.pos-v,L))){let ae=new Uint16Array(X.size-X.skip),le=s.pos-X.size,$=ae.length;for(;s.pos>le;)$=g(X.start,ae,$);N=new Lo(ae,U-X.start,n),T=X.start-y}else{let ae=s.pos-Q;s.next();let le=[],$=[],Y=A>=o?A:-1,Z=0,j=U;for(;s.pos>ae;)Y>=0&&s.id==Y&&s.size>=0?(s.end<=j-r&&(p(le,$,R,Z,s.end,j,Y,M,_),Z=le.length,j=s.end),s.next()):E>2500?d(R,ae,le,$):f(R,ae,le,$,Y,E+1);if(Y>=0&&Z>0&&Z<le.length&&p(le,$,R,Z,R,j,Y,M,_),le.reverse(),$.reverse(),Y>-1&&Z>0){let W=h(D,_);N=Ov(D,le,$,0,le.length,0,U-R,W,W)}else N=m(D,le,$,U-R,M-U,_)}C.push(N),k.push(T)}function d(y,v,C,k){let L=[],E=0,A=-1;for(;s.pos>v;){let{id:R,start:U,end:Q,size:M}=s;if(M>4)s.next();else{if(A>-1&&U<A)break;A<0&&(A=Q-r),L.push(R,U,Q),E++,s.next()}}if(E){let R=new Uint16Array(E*4),U=L[L.length-2];for(let Q=L.length-3,M=0;Q>=0;Q-=3)R[M++]=L[Q],R[M++]=L[Q+1]-U,R[M++]=L[Q+2]-U,R[M++]=M;C.push(new Lo(R,L[2]-U,n)),k.push(U-y)}}function h(y,v){return(C,k,L)=>{let E=0,A=C.length-1,R,U;if(A>=0&&(R=C[A])instanceof Ue){if(!A&&R.type==y&&R.length==L)return R;(U=R.prop(se.lookAhead))&&(E=k[A]+R.length+U)}return m(y,C,k,L,E,v)}}function p(y,v,C,k,L,E,A,R,U){let Q=[],M=[];for(;y.length>k;)Q.push(y.pop()),M.push(v.pop()+C-L);y.push(m(n.types[A],Q,M,E-L,R-E,U)),v.push(L-C)}function m(y,v,C,k,L,E,A){if(E){let R=[se.contextHash,E];A=A?[R].concat(A):[R]}if(L>25){let R=[se.lookAhead,L];A=A?[R].concat(A):[R]}return new Ue(y,v,C,k,A)}function b(y,v){let C=s.fork(),k=0,L=0,E=0,A=C.end-r,R={size:0,start:0,skip:0};e:for(let U=C.pos-y;C.pos>U;){let Q=C.size;if(C.id==v&&Q>=0){R.size=k,R.start=L,R.skip=E,E+=4,k+=4,C.next();continue}let M=C.pos-Q;if(Q<0||M<U||C.start<A)break;let _=C.id>=o?4:0,D=C.start;for(C.next();C.pos>M;){if(C.size<0)if(C.size==-3||C.size==-4)_+=4;else break e;else C.id>=o&&(_+=4);C.next()}L=D,k+=Q,E+=_}return(v<0||k==y)&&(R.size=k,R.start=L,R.skip=E),R.size>4?R:void 0}function g(y,v,C){let{id:k,start:L,end:E,size:A}=s;if(s.next(),A>=0&&k<o){let R=C;if(A>4){let U=s.pos-(A-4);for(;s.pos>U;)C=g(y,v,C)}v[--C]=R,v[--C]=E-y,v[--C]=L-y,v[--C]=k}else A==-3?u=k:A==-4&&(c=k);return C}let O=[],x=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,O,x,-1,0);let S=(e=t.length)!==null&&e!==void 0?e:O.length?x[0]+O[0].length:0;return new Ue(l[t.topID],O.reverse(),x.reverse(),S)}var tQ=new WeakMap;function mg(t,e){if(!t.isAnonymous||e instanceof Lo||e.type!=t)return 1;let a=tQ.get(e);if(a==null){a=1;for(let n of e.children){if(n.type!=t||!(n instanceof Ue)){a=1;break}a+=mg(t,n)}tQ.set(e,a)}return a}function Ov(t,e,a,n,r,i,o,s,l){let u=0;for(let p=n;p<r;p++)u+=mg(t,e[p]);let c=Math.ceil(u*1.5/8),f=[],d=[];function h(p,m,b,g,O){for(let x=b;x<g;){let S=x,y=m[x],v=mg(t,p[x]);for(x++;x<g;x++){let C=mg(t,p[x]);if(v+C>=c)break;v+=C}if(x==S+1){if(v>c){let C=p[S];h(C.children,C.positions,0,C.children.length,m[S]+O);continue}f.push(p[S])}else{let C=m[x-1]+p[x-1].length-y;f.push(Ov(t,p,m,S,x,y,C,null,l))}d.push(y+O-i)}}return h(e,a,n,r,0),(s||l)(f,d,o)}var Qu=class{constructor(){this.map=new WeakMap}setBuffer(e,a,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(a,n)}getBuffer(e,a){let n=this.map.get(e);return n&&n.get(a)}set(e,a){e instanceof Ns?this.setBuffer(e.context.buffer,e.index,a):e instanceof Ga&&this.map.set(e.tree,a)}get(e){return e instanceof Ns?this.getBuffer(e.context.buffer,e.index):e instanceof Ga?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)}},gi=class t{constructor(e,a,n,r,i=!1,o=!1){this.from=e,this.to=a,this.tree=n,this.offset=r,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=[],n=!1){let r=[new t(0,e.length,e,0,!1,n)];for(let i of a)i.to>e.length&&r.push(i);return r}static applyChanges(e,a,n=128){if(!a.length)return e;let r=[],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>=n)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&&r.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 r}},Eo=class{startParse(e,a,n){return typeof e=="string"&&(e=new fv(e)),n=n?n.length?n.map(r=>new Fa(r.from,r.to)):[new Fa(0,0)]:[new Fa(0,e.length)],this.createParse(e,a||[],n)}parse(e,a,n){let r=this.startParse(e,a,n);for(;;){let i=r.advance();if(i)return i}}},fv=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 xg(t){return(e,a,n,r)=>new pv(e,t,a,n,r)}var Og=class{constructor(e,a,n,r,i,o){this.parser=e,this.parse=a,this.overlay=n,this.bracketed=r,this.target=i,this.from=o}};function aQ(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}var dv=class{constructor(e,a,n,r,i,o,s,l){this.parser=e,this.predicate=a,this.mounts=n,this.index=r,this.start=i,this.bracketed=o,this.target=s,this.prev=l,this.depth=0,this.ranges=[]}},hv=new se({perNode:!0}),pv=class{constructor(e,a,n,r,i){this.nest=a,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Ue(n.type,n.children,n.positions,n.length,n.propValues.concat([[hv,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],a=e.parse.advance();if(a){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[se.mounted.id]=new wo(a,e.overlay,e.parser,e.bracketed),e.target.props=n}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 mv(this.fragments),a=null,n=null,r=new Du(new Ga(this.baseTree,this.ranges[0].from,0,null),Pe.IncludeAnonymous|Pe.IgnoreMounts);e:for(let i,o;;){let s=!0,l;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)s=!1;else if(e.hasNode(r)){if(a){let u=a.mounts.find(c=>c.frag.from<=r.from&&c.frag.to>=r.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>=r.from&&d<=r.to&&!a.ranges.some(h=>h.from<d&&h.to>f)&&a.ranges.push({from:f,to:d})}}s=!1}else if(n&&(o=w7(n.ranges,r.from,r.to)))s=o!=2;else if(!r.type.isAnonymous&&(i=this.nest(r,this.input))&&(r.from<r.to||!i.overlay)){r.tree||(k7(r),a&&a.depth++,n&&n.depth++);let u=e.findMounts(r.from,i.parser);if(typeof i.overlay=="function")a=new dv(i.parser,i.overlay,u,this.inner.length,r.from,!!i.bracketed,r.tree,a);else{let c=rQ(this.ranges,i.overlay||(r.from<r.to?[new Fa(r.from,r.to)]:[]));c.length&&aQ(c),(c.length||!i.overlay)&&this.inner.push(new Og(i.parser,c.length?i.parser.startParse(this.input,iQ(u,c),c):i.parser.startParse(""),i.overlay?i.overlay.map(f=>new Fa(f.from-r.from,f.to-r.from)):null,!!i.bracketed,r.tree,c.length?c[0].from:r.from)),i.overlay?c.length&&(n={ranges:c,depth:0,prev:n}):s=!1}}else if(a&&(l=a.predicate(r))&&(l===!0&&(l=new Fa(r.from,r.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&&r.firstChild())a&&a.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(a&&!--a.depth){let u=rQ(this.ranges,a.ranges);u.length&&(aQ(u),this.inner.splice(a.index,0,new Og(a.parser,a.parser.startParse(this.input,iQ(a.mounts,u),u),a.ranges.map(c=>new Fa(c.from-a.start,c.to-a.start)),a.bracketed,a.target,u[0].from))),a=a.prev}n&&!--n.depth&&(n=n.prev)}}}};function w7(t,e,a){for(let n of t){if(n.from>=a)break;if(n.to>e)return n.from<=e&&n.to>=a?2:1}return 0}function nQ(t,e,a,n,r,i){if(e<a){let o=t.buffer[e+1];n.push(t.slice(e,a,o)),r.push(o-i)}}function k7(t){let{node:e}=t,a=[],n=e.context.buffer;do a.push(t.index),t.parent();while(!t.tree);let r=t.tree,i=r.children.indexOf(n),o=r.children[i],s=o.buffer,l=[i];function u(c,f,d,h,p,m){let b=a[m],g=[],O=[];nQ(o,c,b,g,O,h);let x=s[b+1],S=s[b+2];l.push(g.length);let y=m?u(b+4,s[b+3],o.set.types[s[b]],x,S-x,m-1):e.toTree();return g.push(y),O.push(x-h),nQ(o,s[b+3],f,g,O,h),new Ue(d,g,O,p)}r.children[i]=u(0,s.length,St.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 Ga(f,d+t.from,c,t._tree))}}var bg=class{constructor(e,a){this.offset=a,this.done=!1,this.cursor=e.cursor(Pe.IncludeAnonymous|Pe.IgnoreMounts|Pe.ExcludeBuffers)}moveTo(e){let{cursor:a}=this,n=e-this.offset;for(;!this.done&&a.from<n;)if(!(a.to>=n&&a.enter(n,1,Pe.IncludeAnonymous|Pe.IgnoreOverlays|Pe.ExcludeBuffers)))if(a.to<=n)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 Ue)a=a.children[0];else break}return!1}},mv=class{constructor(e){var a;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(a=n.tree.prop(hv))!==null&&a!==void 0?a:n.to,this.inner=new bg(n.tree,-n.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(hv))!==null&&e!==void 0?e:a.to,this.inner=new bg(a.tree,-a.offset)}}findMounts(e,a){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let i=this.inner.cursor.node;i;i=i.parent){let o=(n=i.tree)===null||n===void 0?void 0:n.prop(se.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&&r.push({frag:l,pos:i.from-l.offset,mount:o})}}}return r}};function rQ(t,e){let a=null,n=e;for(let r=1,i=0;r<t.length;r++){let o=t[r-1].to,s=t[r].from;for(;i<n.length;i++){let l=n[i];if(l.from>=s)break;l.to<=o||(a||(n=a=e.slice()),l.from<o?(a[i]=new Fa(l.from,o),l.to>s&&a.splice(i+1,0,new Fa(s,l.to))):l.to>s?a[i--]=new Fa(s,l.to):a.splice(i--,1))}}return n}function L7(t,e,a,n){let r=0,i=0,o=!1,s=!1,l=-1e9,u=[];for(;;){let c=r==t.length?1e9:o?t[r].to:t[r].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,n);d<h&&u.push(new Fa(d,h))}if(l=Math.min(c,f),l==1e9)break;c==l&&(o?(o=!1,r++):o=!0),f==l&&(s?(s=!1,i++):s=!0)}return u}function iQ(t,e){let a=[];for(let{pos:n,mount:r,frag:i}of t){let o=n+(r.overlay?r.overlay[0].from:0),s=o+r.tree.length,l=Math.max(i.from,o),u=Math.min(i.to,s);if(r.overlay){let c=r.overlay.map(d=>new Fa(d.from+n,d.to+n)),f=L7(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 gi(h,m,r.tree,-o,i.from>=h||i.openStart,i.to<=m||i.openEnd)),p)break;h=f[d].to}}else a.push(new gi(l,u,r.tree,-o,i.from>=o||i.openStart,i.to<=s||i.openEnd))}return a}var E7=0,fn=class t{constructor(e,a,n,r){this.name=e,this.set=a,this.base=n,this.modified=r,this.id=E7++}toString(){let{name:e}=this;for(let a of this.modified)a.name&&(e=`${a.name}(${e})`);return e}static define(e,a){let n=typeof e=="string"?e:"?";if(e instanceof t&&(a=e),a?.base)throw new Error("Can not derive from a modified tag");let r=new t(n,[],null,[]);if(r.set.push(r),a)for(let i of a.set)r.set.push(i);return r}static defineModifier(e){let a=new Cg(e);return n=>n.modified.indexOf(a)>-1?n:Cg.get(n.base||n,n.modified.concat(a).sort((r,i)=>r.id-i.id))}},_7=0,Cg=class t{constructor(e){this.name=e,this.instances=[],this.id=_7++}static get(e,a){if(!a.length)return e;let n=a[0].instances.find(s=>s.base==e&&A7(a,s.modified));if(n)return n;let r=[],i=new fn(e.name,r,e,a);for(let s of a)s.instances.push(i);let o=R7(a);for(let s of e.set)if(!s.modified.length)for(let l of o)r.push(t.get(s,l));return i}};function A7(t,e){return t.length==e.length&&t.every((a,n)=>a==e[n])}function R7(t){let e=[[]];for(let a=0;a<t.length;a++)for(let n=0,r=e.length;n<r;n++)e.push(e[n].concat(t[a]));return e.sort((a,n)=>n.length-a.length)}function sr(t){let e=Object.create(null);for(let a in t){let n=t[a];Array.isArray(n)||(n=[n]);for(let r of a.split(" "))if(r){let i=[],o=2,s=r;for(let f=0;;){if(s=="..."&&f>0&&f+3==r.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+r);if(i.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==r.length)break;let h=r[f++];if(f==r.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+r);s=r.slice(f)}let l=i.length-1,u=i[l];if(!u)throw new RangeError("Invalid path: "+r);let c=new Bs(n,o,l>0?i.slice(0,l):null);e[u]=c.sort(e[u])}}return cQ.add(e)}var cQ=new se({combine(t,e){let a,n,r;for(;t||e;){if(!t||e&&t.depth<=e.depth?(r=e,e=e.next):(r=t,t=t.next),a&&a.mode==r.mode&&!r.context&&!a.context)continue;let i=new Bs(r.tags,r.mode,r.context);a?a.next=i:n=i,a=i}return n}}),Bs=class{constructor(e,a,n,r){this.tags=e,this.mode=a,this.context=n,this.next=r}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}};Bs.empty=new Bs([],2,null);function yv(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:n,all:r=null}=e||{};return{style:i=>{let o=r;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:n}}function T7(t,e){let a=null;for(let n of t){let r=n.style(e);r&&(a=a?a+" "+r:r)}return a}function fQ(t,e,a,n=0,r=t.length){let i=new xv(n,Array.isArray(e)?e:[e],a);i.highlightRange(t.cursor(),n,r,"",i.highlighters),i.flush(r)}var xv=class{constructor(e,a,n){this.at=e,this.highlighters=a,this.span=n,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,n,r,i){let{type:o,from:s,to:l}=e;if(s>=n||l<=a)return;o.isTop&&(i=this.highlighters.filter(h=>!h.scope||h.scope(o)));let u=r,c=I7(e)||Bs.empty,f=T7(i,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(r+=(r?" ":"")+f)),this.startSpan(Math.max(a,s),u),c.opaque)return;let d=e.tree&&e.tree.prop(se.mounted);if(d&&d.overlay){let h=e.node.enter(d.overlay[0].from+s,1),p=this.highlighters.filter(b=>!b.scope||b.scope(d.tree.type)),m=e.firstChild();for(let b=0,g=s;;b++){let O=b<d.overlay.length?d.overlay[b]:null,x=O?O.from+s:l,S=Math.max(a,g),y=Math.min(n,x);if(S<y&&m)for(;e.from<y&&(this.highlightRange(e,S,y,r,i),this.startSpan(Math.min(y,e.to),u),!(e.to>=x||!e.nextSibling())););if(!O||x>n)break;g=O.to+s,g>a&&(this.highlightRange(h.cursor(),Math.max(a,O.from+s),Math.min(n,g),"",p),this.startSpan(Math.min(n,g),u))}m&&e.parent()}else if(e.firstChild()){d&&(r="");do if(!(e.to<=a)){if(e.from>=n)break;this.highlightRange(e,a,n,r,i),this.startSpan(Math.min(n,e.to),u)}while(e.nextSibling());e.parent()}}};function I7(t){let e=t.type.prop(cQ);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}var q=fn.define,Sg=q(),_o=q(),lQ=q(_o),uQ=q(_o),Ao=q(),yg=q(Ao),bv=q(Ao),qr=q(),$s=q(qr),Ur=q(),Xr=q(),Sv=q(),Od=q(Sv),vg=q(),w={comment:Sg,lineComment:q(Sg),blockComment:q(Sg),docComment:q(Sg),name:_o,variableName:q(_o),typeName:lQ,tagName:q(lQ),propertyName:uQ,attributeName:q(uQ),className:q(_o),labelName:q(_o),namespace:q(_o),macroName:q(_o),literal:Ao,string:yg,docString:q(yg),character:q(yg),attributeValue:q(yg),number:bv,integer:q(bv),float:q(bv),bool:q(Ao),regexp:q(Ao),escape:q(Ao),color:q(Ao),url:q(Ao),keyword:Ur,self:q(Ur),null:q(Ur),atom:q(Ur),unit:q(Ur),modifier:q(Ur),operatorKeyword:q(Ur),controlKeyword:q(Ur),definitionKeyword:q(Ur),moduleKeyword:q(Ur),operator:Xr,derefOperator:q(Xr),arithmeticOperator:q(Xr),logicOperator:q(Xr),bitwiseOperator:q(Xr),compareOperator:q(Xr),updateOperator:q(Xr),definitionOperator:q(Xr),typeOperator:q(Xr),controlOperator:q(Xr),punctuation:Sv,separator:q(Sv),bracket:Od,angleBracket:q(Od),squareBracket:q(Od),paren:q(Od),brace:q(Od),content:qr,heading:$s,heading1:q($s),heading2:q($s),heading3:q($s),heading4:q($s),heading5:q($s),heading6:q($s),contentSeparator:q(qr),list:q(qr),quote:q(qr),emphasis:q(qr),strong:q(qr),link:q(qr),monospace:q(qr),strikethrough:q(qr),inserted:q(),deleted:q(),changed:q(),invalid:q(),meta:vg,documentMeta:q(vg),annotation:q(vg),processingInstruction:q(vg),definition:fn.defineModifier("definition"),constant:fn.defineModifier("constant"),function:fn.defineModifier("function"),standard:fn.defineModifier("standard"),local:fn.defineModifier("local"),special:fn.defineModifier("special")};for(let t in w){let e=w[t];e instanceof fn&&(e.name=t)}var Nre=yv([{tag:w.link,class:"tok-link"},{tag:w.heading,class:"tok-heading"},{tag:w.emphasis,class:"tok-emphasis"},{tag:w.strong,class:"tok-strong"},{tag:w.keyword,class:"tok-keyword"},{tag:w.atom,class:"tok-atom"},{tag:w.bool,class:"tok-bool"},{tag:w.url,class:"tok-url"},{tag:w.labelName,class:"tok-labelName"},{tag:w.inserted,class:"tok-inserted"},{tag:w.deleted,class:"tok-deleted"},{tag:w.literal,class:"tok-literal"},{tag:w.string,class:"tok-string"},{tag:w.number,class:"tok-number"},{tag:[w.regexp,w.escape,w.special(w.string)],class:"tok-string2"},{tag:w.variableName,class:"tok-variableName"},{tag:w.local(w.variableName),class:"tok-variableName tok-local"},{tag:w.definition(w.variableName),class:"tok-variableName tok-definition"},{tag:w.special(w.variableName),class:"tok-variableName2"},{tag:w.definition(w.propertyName),class:"tok-propertyName tok-definition"},{tag:w.typeName,class:"tok-typeName"},{tag:w.namespace,class:"tok-namespace"},{tag:w.className,class:"tok-className"},{tag:w.macroName,class:"tok-macroName"},{tag:w.propertyName,class:"tok-propertyName"},{tag:w.operator,class:"tok-operator"},{tag:w.comment,class:"tok-comment"},{tag:w.meta,class:"tok-meta"},{tag:w.invalid,class:"tok-invalid"},{tag:w.punctuation,class:"tok-punctuation"}]);var vv,Ro=new se;function Cd(t){return V.define({combine:t?e=>e.concat(t):void 0})}var Lg=new se,Ra=class{constructor(e,a,n=[],r=""){this.data=e,this.name=r,Ye.prototype.hasOwnProperty("tree")||Object.defineProperty(Ye.prototype,"tree",{get(){return Ze(this)}}),this.parser=a,this.extension=[Io.of(this),Ye.languageData.of((i,o,s)=>{let l=dQ(i,o,s),u=l.type.prop(Ro);if(!u)return[];let c=i.facet(u),f=l.type.prop(Lg);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(n)}isActiveAt(e,a,n=-1){return dQ(e,a,n).type.prop(Ro)==this.data}findRegions(e){let a=e.facet(Io);if(a?.data==this.data)return[{from:0,to:e.doc.length}];if(!a||!a.allowsNesting)return[];let n=[],r=(i,o)=>{if(i.prop(Ro)==this.data){n.push({from:o,to:o+i.length});return}let s=i.prop(se.mounted);if(s){if(s.tree.prop(Ro)==this.data){if(s.overlay)for(let l of s.overlay)n.push({from:l.from+o,to:l.to+o});else n.push({from:o,to:o+i.length});return}else if(s.overlay){let l=n.length;if(r(s.tree,s.overlay[0].from+o),n.length>l)return}}for(let l=0;l<i.children.length;l++){let u=i.children[l];u instanceof Ue&&r(u,i.positions[l]+o)}};return r(Ze(e),0),n}get allowsNesting(){return!0}};Ra.setState=_e.define();function dQ(t,e,a){let n=t.facet(Io),r=Ze(t).topNode;if(!n||n.allowsNesting)for(let i=r;i;i=i.enter(e,a,Pe.ExcludeBuffers|Pe.EnterBracketed))i.type.isTop&&(r=i);return r}var To=class t extends Ra{constructor(e,a,n){super(e,a,[],n),this.parser=a}static define(e){let a=Cd(e.languageData);return new t(a,e.parser.configure({props:[Ro.add(n=>n.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 Ze(t){let e=t.field(Ra.state,!1);return e?e.tree:Ue.empty}var Lv=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 n=this.cursorPos-this.string.length;return e<n||a>=this.cursorPos?this.doc.sliceString(e,a):this.string.slice(e-n,a-n)}},bd=null,Sd=class t{constructor(e,a,n=[],r,i,o,s,l){this.parser=e,this.state=a,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,a,n){return new t(e,a,[],Ue.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Lv(this.state.doc),this.fragments)}work(e,a){return a!=null&&a>=this.state.doc.length&&(a=void 0),this.tree!=Ue.empty&&this.isDone(a??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}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 r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(gi.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=r,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(gi.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let a=bd;bd=this;try{return e()}finally{bd=a}}withoutTempSkipped(e){for(let a;a=this.tempSkipped.pop();)e=hQ(e,a.from,a.to);return e}changes(e,a){let{fragments:n,tree:r,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})),n=gi.applyChanges(n,l),r=Ue.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,n,r,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 n=0;n<this.skipped.length;n++){let{from:r,to:i}=this.skipped[n];r<e.to&&i>e.from&&(this.fragments=hQ(this.fragments,r,i),this.skipped.splice(n--,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 Eo{createParse(a,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let l=bd;if(l){for(let u of r)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new Ue(St.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 bd}};function hQ(t,e,a){return gi.applyChanges(t,[{fromA:e,toA:a,fromB:e,toB:a}])}var yd=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),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),a.viewport.to);return a.work(20,n)||a.takeTree(),new t(a)}static init(e){let a=Math.min(3e3,e.doc.length),n=Sd.create(e.facet(Io).parser,e,{from:0,to:a});return n.work(20,a)||n.takeTree(),new t(n)}};Ra.state=Wt.define({create:yd.init,update(t,e){for(let a of e.effects)if(a.is(Ra.setState))return a.value;return e.startState.facet(Io)!=e.state.facet(Io)?yd.init(e.state):t.apply(e)}});var SQ=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(SQ=t=>{let e=-1,a=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(a):cancelIdleCallback(e)});var Cv=typeof navigator<"u"&&(!((vv=navigator.scheduling)===null||vv===void 0)&&vv.isInputPending)?()=>navigator.scheduling.isInputPending():null,P7=Xt.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(Ra.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(Ra.state);(a.tree!=a.context.tree||!a.context.isDone(e.doc.length))&&(this.working=SQ(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:n,viewport:{to:r}}=this.view,i=n.field(Ra.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Cv?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,l=i.context.work(()=>Cv&&Cv()||Date.now()>o,r+(s?0:1e5));this.chunkBudget-=Date.now()-a,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Ra.setState.of(new yd(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=>Bn(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()}}}),Io=V.define({combine(t){return t.length?t[0]:null},enables:t=>[Ra.state,P7,G.contentAttributes.compute([t],e=>{let a=e.facet(t);return a&&a.name?{"data-language":a.name}:{}})]}),ur=class{constructor(e,a=[]){this.language=e,this.support=a,this.extension=[e,a]}},vd=class t{constructor(e,a,n,r,i,o=void 0){this.name=e,this.alias=a,this.extensions=n,this.filename=r,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:n}=e;if(!a){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");a=()=>Promise.resolve(n)}return new t(e.name,(e.alias||[]).concat(e.name).map(r=>r.toLowerCase()),e.extensions||[],e.filename,a,n)}static matchFilename(e,a){for(let r of e)if(r.filename&&r.filename.test(a))return r;let n=/\.([^.]+)$/.exec(a);if(n){for(let r of e)if(r.extensions.indexOf(n[1])>-1)return r}return null}static matchLanguageName(e,a,n=!0){a=a.toLowerCase();for(let r of e)if(r.alias.some(i=>i==a))return r;if(n)for(let r of e)for(let i of r.alias){let o=a.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(a[o-1])&&!/\w/.test(a[o+i.length])))return r}return null}},M7=V.define(),Po=V.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 wd(t){let e=t.facet(Po);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function $u(t,e){let a="",n=t.tabSize,r=t.facet(Po)[0];if(r==" "){for(;e>=n;)a+=" ",e-=n;r=" "}for(let i=0;i<e;i++)a+=r;return a}function Eg(t,e){t instanceof Ye&&(t=new zs(t));for(let n of t.state.facet(M7)){let r=n(t,e);if(r!==void 0)return r}let a=Ze(t.state);return a.length>=e?D7(t,a,e):null}var zs=class{constructor(e,a={}){this.state=e,this.options=a,this.unit=wd(e)}lineAt(e,a=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return r!=null&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(a<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,a=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,a);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,a=1){let{text:n,from:r}=this.lineAt(e,a),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,a=e.length){return Ea(e,this.state.tabSize,a)}lineIndent(e,a=1){let{text:n,from:r}=this.lineAt(e,a),i=this.options.overrideIndentation;if(i){let o=i(r);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Oi=new se;function D7(t,e,a){let n=e.resolveStack(a),r=e.resolveInner(a,-1).resolve(a,0).enterUnfinishedNodesBefore(a);if(r!=n.node){let i=[];for(let o=r;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)n={node:i[o],next:n}}return yQ(n,t,a)}function yQ(t,e,a){for(let n=t;n;n=n.next){let r=N7(n.node);if(r)return r(Ev.create(e,a,n))}return 0}function Q7(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function N7(t){let e=t.type.prop(Oi);if(e)return e;let a=t.firstChild,n;if(a&&(n=a.type.prop(se.closedBy))){let r=t.lastChild,i=r&&n.indexOf(r.name)>-1;return o=>CQ(o,!0,1,void 0,i&&!Q7(o)?r.from:void 0)}return t.parent==null?$7:null}function $7(){return 0}var Ev=class t extends zs{constructor(e,a,n){super(e.state,e.options),this.base=e,this.pos=a,this.context=n}get node(){return this.context.node}static create(e,a,n){return new t(e,a,n)}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 n=e.resolve(a.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(B7(n,e))break;a=this.state.doc.lineAt(n.from)}return this.lineIndent(a.from)}continue(){return yQ(this.context.next,this.base,this.pos)}};function B7(t,e){for(let a=e;a;a=a.parent)if(t==a)return!0;return!1}function z7(t){let e=t.node,a=e.childAfter(e.from),n=e.lastChild;if(!a)return null;let r=t.options.simulateBreak,i=t.state.doc.lineAt(a.from),o=r==null||r<=i.from?i.to:Math.min(i.to,r);for(let s=a.to;;){let l=e.childAfter(s);if(!l||l==n)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 vQ({closing:t,align:e=!0,units:a=1}){return n=>CQ(n,e,a,t)}function CQ(t,e,a,n,r){let i=t.textAfter,o=i.match(/^\s*/)[0].length,s=n&&i.slice(o,o+n.length)==n||r==t.pos+o,l=e?z7(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*a)}var wQ=t=>t.baseIndent;function Bu({except:t,units:e=1}={}){return a=>{let n=t&&t.test(a.textAfter);return a.baseIndent+(n?0:e*a.unit)}}var U7=200;function kQ(){return Ye.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let a=t.newDoc,{head:n}=t.newSelection.main,r=a.lineAt(n);if(n>r.from+U7)return t;let i=a.sliceString(r.from,n);if(!e.some(u=>u.test(i)))return t;let{state:o}=t,s=-1,l=[];for(let{head:u}of o.selection.ranges){let c=o.doc.lineAt(u);if(c.from==s)continue;s=c.from;let f=Eg(o,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],h=$u(o,f);d!=h&&l.push({from:c.from,to:c.from+d.length,insert:h})}return l.length?[t,{changes:l,sequential:!0}]:t})}var Pv=V.define(),Zr=new se;function _g(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}function X7(t,e,a){let n=Ze(t);if(n.length<a)return null;let r=n.resolveStack(a,1),i=null;for(let o=r;o;o=o.next){let s=o.node;if(s.to<=a||s.from>a)continue;if(i&&s.from<e)break;let l=s.type.prop(Zr);if(l&&(s.to<n.length-50||n.length==t.doc.length||!q7(s))){let u=l(s,t);u&&u.from<=a&&u.from>=e&&u.to>a&&(i=u)}}return i}function q7(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function wg(t,e,a){for(let n of t.facet(Pv)){let r=n(t,e,a);if(r)return r}return X7(t,e,a)}function LQ(t,e){let a=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);return a>=n?void 0:{from:a,to:n}}var Ag=_e.define({map:LQ}),kd=_e.define({map:LQ});function EQ(t){let e=[];for(let{head:a}of t.state.selection.ranges)e.some(n=>n.from<=a&&n.to>=a)||e.push(t.lineBlockAt(a));return e}var Us=Wt.define({create(){return ce.none},update(t,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((n,r)=>t=pQ(t,n,r)),t=t.map(e.changes);let a=[];for(let n of e.effects)n.is(Ag)&&!Z7(t,n.value.from,n.value.to)?a.push(n.value):n.is(kd)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(a.length){let{preparePlaceholder:n}=e.state.facet(Mv),r=a.map(i=>(n?ce.replace({widget:new _v(n(e.state,i))}):mQ).range(i.from,i.to));t=t.update({add:r})}return e.selection&&(t=pQ(t,e.selection.main.head)),t},provide:t=>G.decorations.from(t),toJSON(t,e){let a=[];return t.between(0,e.doc.length,(n,r)=>{a.push(n,r)}),a},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let a=0;a<t.length;){let n=t[a++],r=t[a++];if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(mQ.range(n,r))}return ce.set(e,!0)}});function pQ(t,e,a=e){let n=!1;return t.between(e,a,(r,i)=>{r<a&&i>e&&(n=!0)}),n?t.update({filterFrom:e,filterTo:a,filter:(r,i)=>r>=a||i<=e}):t}function kg(t,e,a){var n;let r=null;return(n=t.field(Us,!1))===null||n===void 0||n.between(e,a,(i,o)=>{(!r||r.from>i)&&(r={from:i,to:o})}),r}function Z7(t,e,a){let n=!1;return t.between(e,e,(r,i)=>{r==e&&i==a&&(n=!0)}),n}function _Q(t,e){return t.field(Us,!1)?e:e.concat(_e.appendConfig.of(TQ()))}var F7=t=>{for(let e of EQ(t)){let a=wg(t.state,e.from,e.to);if(a)return t.dispatch({effects:_Q(t.state,[Ag.of(a),AQ(t,a)])}),!0}return!1},G7=t=>{if(!t.state.field(Us,!1))return!1;let e=[];for(let a of EQ(t)){let n=kg(t.state,a.from,a.to);n&&e.push(kd.of(n),AQ(t,n,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function AQ(t,e,a=!0){let n=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return G.announce.of(`${t.state.phrase(a?"Folded lines":"Unfolded lines")} ${n} ${t.state.phrase("to")} ${r}.`)}var H7=t=>{let{state:e}=t,a=[];for(let n=0;n<e.doc.length;){let r=t.lineBlockAt(n),i=wg(e,r.from,r.to);i&&a.push(Ag.of(i)),n=(i?t.lineBlockAt(i.to):r).to+1}return a.length&&t.dispatch({effects:_Q(t.state,a)}),!!a.length},j7=t=>{let e=t.state.field(Us,!1);if(!e||!e.size)return!1;let a=[];return e.between(0,t.state.doc.length,(n,r)=>{a.push(kd.of({from:n,to:r}))}),t.dispatch({effects:a}),!0};var RQ=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:F7},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:G7},{key:"Ctrl-Alt-[",run:H7},{key:"Ctrl-Alt-]",run:j7}],V7={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},Mv=V.define({combine(t){return ln(t,V7)}});function TQ(t){let e=[Us,W7];return t&&e.push(Mv.of(t)),e}function IQ(t,e){let{state:a}=t,n=a.facet(Mv),r=o=>{let s=t.lineBlockAt(t.posAtDOM(o.target)),l=kg(t.state,s.from,s.to);l&&t.dispatch({effects:kd.of(l)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,r,e);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",a.phrase("folded code")),i.title=a.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}var mQ=ce.replace({widget:new class extends cn{toDOM(t){return IQ(t,null)}}}),_v=class extends cn{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return IQ(e,this.value)}},Y7={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},xd=class extends zn{constructor(e,a){super(),this.config=e,this.open=a}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let a=document.createElement("span");return a.textContent=this.open?this.config.openText:this.config.closedText,a.title=e.state.phrase(this.open?"Fold line":"Unfold line"),a}};function PQ(t={}){let e={...Y7,...t},a=new xd(e,!0),n=new xd(e,!1),r=Xt.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Io)!=o.state.facet(Io)||o.startState.field(Us,!1)!=o.state.field(Us,!1)||Ze(o.startState)!=Ze(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let s=new In;for(let l of o.viewportLineBlocks){let u=kg(o.state,l.from,l.to)?n:wg(o.state,l.from,l.to)?a:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:i}=e;return[r,VD({class:"cm-foldGutter",markers(o){var s;return((s=o.plugin(r))===null||s===void 0?void 0:s.markers)||ze.empty},initialSpacer(){return new xd(e,!1)},domEventHandlers:{...i,click:(o,s,l)=>{if(i.click&&i.click(o,s,l))return!0;let u=kg(o.state,s.from,s.to);if(u)return o.dispatch({effects:kd.of(u)}),!0;let c=wg(o.state,s.from,s.to);return c?(o.dispatch({effects:Ag.of(c)}),!0):!1}}}),TQ()]}var W7=G.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),Nu=class t{constructor(e,a){this.specs=e;let n;function r(s){let l=Dn.newName();return(n||(n=Object.create(null)))["."+l]=s,l}let i=typeof a.all=="string"?a.all:a.all?r(a.all):void 0,o=a.scope;this.scope=o instanceof Ra?s=>s.prop(Ro)==o.data:o?s=>s==o:void 0,this.style=yv(e.map(s=>({tag:s.tag,class:s.class||r(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=n?new Dn(n):null,this.themeType=a.themeType}static define(e,a){return new t(e,a||{})}},Av=V.define(),MQ=V.define({combine(t){return t.length?[t[0]]:null}});function wv(t){let e=t.facet(Av);return e.length?e:t.facet(MQ)}function DQ(t,e){let a=[K7],n;return t instanceof Nu&&(t.module&&a.push(G.styleModule.of(t.module)),n=t.themeType),e?.fallback?a.push(MQ.of(t)):n?a.push(Av.computeN([G.darkTheme],r=>r.facet(G.darkTheme)==(n=="dark")?[t]:[])):a.push(Av.of(t)),a}var Rv=class{constructor(e){this.markCache=Object.create(null),this.tree=Ze(e.state),this.decorations=this.buildDeco(e,wv(e.state)),this.decoratedTo=e.viewport.to}update(e){let a=Ze(e.state),n=wv(e.state),r=n!=wv(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);a.length<i.to&&!r&&a.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(a!=this.tree||e.viewportChanged||r)&&(this.tree=a,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,a){if(!a||!this.tree.length)return ce.none;let n=new In;for(let{from:r,to:i}of e.visibleRanges)fQ(this.tree,a,(o,s,l)=>{n.add(o,s,this.markCache[l]||(this.markCache[l]=ce.mark({class:l})))},r,i);return n.finish()}},K7=Mn.high(Xt.fromClass(Rv,{decorations:t=>t.decorations})),Fre=Nu.define([{tag:w.meta,color:"#404740"},{tag:w.link,textDecoration:"underline"},{tag:w.heading,textDecoration:"underline",fontWeight:"bold"},{tag:w.emphasis,fontStyle:"italic"},{tag:w.strong,fontWeight:"bold"},{tag:w.strikethrough,textDecoration:"line-through"},{tag:w.keyword,color:"#708"},{tag:[w.atom,w.bool,w.url,w.contentSeparator,w.labelName],color:"#219"},{tag:[w.literal,w.inserted],color:"#164"},{tag:[w.string,w.deleted],color:"#a11"},{tag:[w.regexp,w.escape,w.special(w.string)],color:"#e40"},{tag:w.definition(w.variableName),color:"#00f"},{tag:w.local(w.variableName),color:"#30a"},{tag:[w.typeName,w.namespace],color:"#085"},{tag:w.className,color:"#167"},{tag:[w.special(w.variableName),w.macroName],color:"#256"},{tag:w.definition(w.propertyName),color:"#00c"},{tag:w.comment,color:"#940"},{tag:w.invalid,color:"#f00"}]),J7=G.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),QQ=1e4,NQ="()[]{}",$Q=V.define({combine(t){return ln(t,{afterCursor:!0,brackets:NQ,maxScanDistance:QQ,renderMatch:aj})}}),ej=ce.mark({class:"cm-matchingBracket"}),tj=ce.mark({class:"cm-nonmatchingBracket"});function aj(t){let e=[],a=t.matched?ej:tj;return e.push(a.range(t.start.from,t.start.to)),t.end&&e.push(a.range(t.end.from,t.end.to)),e}function gQ(t){let e=[],a=t.facet($Q);for(let n of t.selection.ranges){if(!n.empty)continue;let r=lr(t,n.head,-1,a)||n.head>0&&lr(t,n.head-1,1,a)||a.afterCursor&&(lr(t,n.head,1,a)||n.head<t.doc.length&&lr(t,n.head+1,-1,a));r&&(e=e.concat(a.renderMatch(r,t)))}return ce.set(e,!0)}var nj=Xt.fromClass(class{constructor(t){this.paused=!1,this.decorations=gQ(t.state)}update(t){(t.docChanged||t.selectionSet||this.paused)&&(t.view.composing?(this.decorations=this.decorations.map(t.changes),this.paused=!0):(this.decorations=gQ(t.state),this.paused=!1))}},{decorations:t=>t.decorations}),rj=[nj,J7];function BQ(t={}){return[$Q.of(t),rj]}var Dv=new se;function Tv(t,e,a){let n=t.prop(e<0?se.openedBy:se.closedBy);if(n)return n;if(t.name.length==1){let r=a.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[a[r+e]]}return null}function Iv(t){let e=t.type.prop(Dv);return e?e(t.node):t}function lr(t,e,a,n={}){let r=n.maxScanDistance||QQ,i=n.brackets||NQ,o=Ze(t),s=o.resolveInner(e,a);for(let l=s;l;l=l.parent){let u=Tv(l.type,a,i);if(u&&l.from<l.to){let c=Iv(l);if(c&&(a>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return ij(t,e,a,l,c,u,i)}}return oj(t,e,a,o,s.type,r,i)}function ij(t,e,a,n,r,i,o){let s=n.parent,l={from:r.from,to:r.to},u=0,c=s?.cursor();if(c&&(a<0?c.childBefore(n.from):c.childAfter(n.to)))do if(a<0?c.to<=n.from:c.from>=n.to){if(u==0&&i.indexOf(c.type.name)>-1&&c.from<c.to){let f=Iv(c);return{start:l,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(Tv(c.type,a,o))u++;else if(Tv(c.type,-a,o)){if(u==0){let f=Iv(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 oj(t,e,a,n,r,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,b=a>0?h.length:-1;m!=b;m+=a){let g=o.indexOf(h[m]);if(!(g<0||n.resolveInner(p+m,1).type!=r))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 sj=Object.create(null),OQ=[St.none];var bQ=[],xQ=Object.create(null),lj=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"]])lj[t]=uj(sj,e);function kv(t,e){bQ.indexOf(t)>-1||(bQ.push(t),console.warn(e))}function uj(t,e){let a=[];for(let s of e.split(" ")){let l=[];for(let u of s.split(".")){let c=t[u]||w[u];c?typeof c=="function"?l.length?l=l.map(c):kv(u,`Modifier ${u} used at start of tag`):l.length?kv(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:kv(u,`Unknown highlighting tag ${u}`)}for(let u of l)a.push(u)}if(!a.length)return 0;let n=e.replace(/ /g,"_"),r=n+" "+a.map(s=>s.id),i=xQ[r];if(i)return i.id;let o=xQ[r]=St.define({id:OQ.length,name:n,props:[sr({[n]:a})]});return OQ.push(o),o.id}var Gre={rtl:ce.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:rt.RTL}),ltr:ce.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:rt.LTR}),auto:ce.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var cj=t=>{let{state:e}=t,a=e.doc.lineAt(e.selection.main.from),n=Xv(t.state,a.from);return n.line?fj(t):n.block?hj(t):!1};function Uv(t,e){return({state:a,dispatch:n})=>{if(a.readOnly)return!1;let r=t(e,a);return r?(n(a.update(r)),!0):!1}}var fj=Uv(gj,0);var dj=Uv(jQ,0);var hj=Uv((t,e)=>jQ(t,e,mj(e)),0);function Xv(t,e){let a=t.languageDataAt("commentTokens",e,1);return a.length?a[0]:{}}var Ld=50;function pj(t,{open:e,close:a},n,r){let i=t.sliceDoc(n-Ld,n),o=t.sliceDoc(r,r+Ld),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:n-s,margin:s&&1},close:{pos:r+l,margin:l&&1}};let c,f;r-n<=2*Ld?c=f=t.sliceDoc(n,r):(c=t.sliceDoc(n,n+Ld),f=t.sliceDoc(r-Ld,r));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:n+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:r-h-a.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function mj(t){let e=[];for(let a of t.selection.ranges){let n=t.doc.lineAt(a.from),r=a.to<=n.to?n:t.doc.lineAt(a.to);r.from>n.from&&r.from==a.to&&(r=a.to==n.to+1?n:t.doc.lineAt(a.to-1));let i=e.length-1;i>=0&&e[i].to>n.from?e[i].to=r.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return e}function jQ(t,e,a=e.selection.ranges){let n=a.map(i=>Xv(e,i.from).block);if(!n.every(i=>i))return null;let r=a.map((i,o)=>pj(e,n[o],i.from,i.to));if(t!=2&&!r.every(i=>i))return{changes:e.changes(a.map((i,o)=>r[o]?[]:[{from:i.from,insert:n[o].open+" "},{from:i.to,insert:" "+n[o].close}]))};if(t!=1&&r.some(i=>i)){let i=[];for(let o=0,s;o<r.length;o++)if(s=r[o]){let l=n[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 gj(t,e,a=e.selection.ranges){let n=[],r=-1;e:for(let{from:i,to:o}of a){let s=n.length,l=1e9,u;for(let c=i;c<=o;){let f=e.doc.lineAt(c);if(u==null&&(u=Xv(e,f.from).line,!u))continue e;if(f.from>r&&(i==o||o>f.from)){r=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),n.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<n.length;c++)n[c].indent<n[c].line.text.length&&(n[c].indent=l);n.length==s+1&&(n[s].single=!0)}if(t!=2&&n.some(i=>i.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:l,indent:u,empty:c,single:f}of n)(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&&n.some(i=>i.comment>=0)){let i=[];for(let{line:o,comment:s,token:l}of n)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 Nv=qa.define(),Oj=qa.define(),bj=V.define(),VQ=V.define({combine(t){return ln(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,a)=>a},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,a)=>(n,r)=>e(n,r)||a(n,r)})}}),YQ=Wt.define({create(){return Xs.empty},update(t,e){let a=e.state.facet(VQ),n=e.annotation(Nv);if(n){let l=cr.fromTransaction(e,n.selection),u=n.side,c=u==0?t.undone:t.done;return l?c=Tg(c,c.length,a.minDepth,l):c=eN(c,e.startState.selection),new Xs(u==0?n.rest:c,u==0?c:n.rest)}let r=e.annotation(Oj);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(Tt.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let i=cr.fromTransaction(e),o=e.annotation(Tt.time),s=e.annotation(Tt.userEvent);return i?t=t.addChanges(i,o,s,a,e):e.selection&&(t=t.addSelection(e.startState.selection,o,s,a.newGroupDelay)),(r=="full"||r=="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 Xs(t.done.map(cr.fromJSON),t.undone.map(cr.fromJSON))}});function WQ(t={}){return[YQ,VQ.of(t),G.domEventHandlers({beforeinput(e,a){let n=e.inputType=="historyUndo"?KQ:e.inputType=="historyRedo"?$v:null;return n?(e.preventDefault(),n(a)):!1}})]}function Ig(t,e){return function({state:a,dispatch:n}){if(!e&&a.readOnly)return!1;let r=a.field(YQ,!1);if(!r)return!1;let i=r.pop(t,a,e);return i?(n(i),!0):!1}}var KQ=Ig(0,!1),$v=Ig(1,!1),xj=Ig(0,!0),Sj=Ig(1,!0);var cr=class t{constructor(e,a,n,r,i){this.changes=e,this.effects=a,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,a,n;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:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new t(e.changes&&La.fromJSON(e.changes),[],e.mapped&&fi.fromJSON(e.mapped),e.startSelection&&I.fromJSON(e.startSelection),e.selectionsAfter.map(I.fromJSON))}static fromTransaction(e,a){let n=Un;for(let r of e.startState.facet(bj)){let i=r(e);i.length&&(n=n.concat(i))}return!n.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),n,void 0,a||e.startState.selection,Un)}static selection(e){return new t(void 0,Un,void 0,void 0,e)}};function Tg(t,e,a,n){let r=e+1>a+20?e-a-1:0,i=t.slice(r,e);return i.push(n),i}function yj(t,e){let a=[],n=!1;return t.iterChangedRanges((r,i)=>a.push(r,i)),e.iterChangedRanges((r,i,o,s)=>{for(let l=0;l<a.length;){let u=a[l++],c=a[l++];s>=u&&o<=c&&(n=!0)}}),n}function vj(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((a,n)=>a.empty!=e.ranges[n].empty).length===0}function JQ(t,e){return t.length?e.length?t.concat(e):t:e}var Un=[],Cj=200;function eN(t,e){if(t.length){let a=t[t.length-1],n=a.selectionsAfter.slice(Math.max(0,a.selectionsAfter.length-Cj));return n.length&&n[n.length-1].eq(e)?t:(n.push(e),Tg(t,t.length-1,1e9,a.setSelAfter(n)))}else return[cr.selection([e])]}function wj(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 Qv(t,e){if(!t.length)return t;let a=t.length,n=Un;for(;a;){let r=kj(t[a-1],e,n);if(r.changes&&!r.changes.empty||r.effects.length){let i=t.slice(0,a);return i[a-1]=r,i}else e=r.mapped,a--,n=r.selectionsAfter}return n.length?[cr.selection(n)]:Un}function kj(t,e,a){let n=JQ(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):Un,a);if(!t.changes)return cr.selection(n);let r=t.changes.map(e),i=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(i):i;return new cr(r,_e.mapEffects(t.effects,e),o,t.startSelection.map(i),n)}var Lj=/^(input\.type|delete)($|\.)/,Xs=class t{constructor(e,a,n=0,r=void 0){this.done=e,this.undone=a,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(e,a,n,r,i){let o=this.done,s=o[o.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!n||Lj.test(n))&&(!s.selectionsAfter.length&&a-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,yj(s.changes,e.changes))||n=="input.type.compose")?o=Tg(o,o.length-1,r.minDepth,new cr(e.changes.compose(s.changes),JQ(_e.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,Un)):o=Tg(o,o.length,r.minDepth,e),new t(o,Un,a,n)}addSelection(e,a,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Un;return i.length>0&&a-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&vj(i[i.length-1],e)?this:new t(eN(this.done,e),this.undone,a,n)}addMapping(e){return new t(Qv(this.done,e),Qv(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,a,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):a.selection);if(n&&i.selectionsAfter.length)return a.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Nv.of({side:e,rest:wj(r),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let s=r.length==1?Un:r.slice(0,r.length-1);return i.mapped&&(s=Qv(s,i.mapped)),a.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Nv.of({side:e,rest:s,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};Xs.empty=new Xs(Un,Un);var tN=[{key:"Mod-z",run:KQ,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$v,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$v,preventDefault:!0},{key:"Mod-u",run:xj,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Sj,preventDefault:!0}];function zu(t,e){return I.create(t.ranges.map(e),t.mainIndex)}function fr(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function dr({state:t,dispatch:e},a){let n=zu(t.selection,a);return n.eq(t.selection,!0)?!1:(e(fr(t,n)),!0)}function Pg(t,e){return I.cursor(e?t.to:t.from)}function aN(t,e){return dr(t,a=>a.empty?t.moveByChar(a,e):Pg(a,e))}function ba(t){return t.textDirectionAt(t.state.selection.main.head)==rt.LTR}var nN=t=>aN(t,!ba(t)),rN=t=>aN(t,ba(t));function iN(t,e){return dr(t,a=>a.empty?t.moveByGroup(a,e):Pg(a,e))}var Ej=t=>iN(t,!ba(t)),_j=t=>iN(t,ba(t));var aie=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Aj(t,e,a){if(e.type.prop(a))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function Mg(t,e,a){let n=Ze(t).resolveInner(e.head),r=a?se.closedBy:se.openedBy;for(let l=e.head;;){let u=a?n.childAfter(l):n.childBefore(l);if(!u)break;Aj(t,u,r)?n=u:l=a?u.to:u.from}let i=n.type.prop(r),o,s;return i&&(o=a?lr(t,n.from,1):lr(t,n.to,-1))&&o.matched?s=a?o.end.to:o.end.from:s=a?n.to:n.from,I.cursor(s,a?-1:1)}var Rj=t=>dr(t,e=>Mg(t.state,e,!ba(t))),Tj=t=>dr(t,e=>Mg(t.state,e,ba(t)));function oN(t,e){return dr(t,a=>{if(!a.empty)return Pg(a,e);let n=t.moveVertically(a,e);return n.head!=a.head?n:t.moveToLineBoundary(a,e)})}var sN=t=>oN(t,!1),lN=t=>oN(t,!0);function uN(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,a=0,n=0,r;if(e){for(let i of t.state.facet(G.scrollMargins)){let o=i(t);o?.top&&(a=Math.max(o?.top,a)),o?.bottom&&(n=Math.max(o?.bottom,n))}r=t.scrollDOM.clientHeight-a-n}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:a,marginBottom:n,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function cN(t,e){let a=uN(t),{state:n}=t,r=zu(n.selection,o=>o.empty?t.moveVertically(o,e,a.height):Pg(o,e));if(r.eq(n.selection))return!1;let i;if(a.selfScroll){let o=t.coordsAtPos(n.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=G.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-l}))}return t.dispatch(fr(n,r),{effects:i}),!0}var zQ=t=>cN(t,!1),Bv=t=>cN(t,!0);function Mo(t,e,a){let n=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,a);if(r.head==e.head&&r.head!=(a?n.to:n.from)&&(r=t.moveToLineBoundary(e,a,!1)),!a&&r.head==n.from&&n.length){let i=/^\s*/.exec(t.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;i&&e.head!=n.from+i&&(r=I.cursor(n.from+i))}return r}var Ij=t=>dr(t,e=>Mo(t,e,!0)),Pj=t=>dr(t,e=>Mo(t,e,!1)),Mj=t=>dr(t,e=>Mo(t,e,!ba(t))),Dj=t=>dr(t,e=>Mo(t,e,ba(t))),Qj=t=>dr(t,e=>t.moveToLineBoundary(e,!1,!1)),Nj=t=>dr(t,e=>t.moveToLineBoundary(e,!0,!1));function $j(t,e,a){let n=!1,r=zu(t.selection,i=>{let o=lr(t,i.head,-1)||lr(t,i.head,1)||i.head>0&&lr(t,i.head-1,1)||i.head<t.doc.length&&lr(t,i.head+1,-1);if(!o||!o.end)return i;n=!0;let s=o.start.from==i.head?o.end.to:o.end.from;return a?I.range(i.anchor,s):I.cursor(s)});return n?(e(fr(t,r)),!0):!1}var Bj=({state:t,dispatch:e})=>$j(t,e,!1);function Xn(t,e,a){let n=zu(t.state.selection,r=>{r.undirectional&&r.head>=r.anchor!=e&&(r=I.range(r.head,r.anchor));let i=a(r);return I.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return n.eq(t.state.selection)?!1:(t.dispatch(fr(t.state,n)),!0)}function fN(t,e){return Xn(t,e,a=>t.moveByChar(a,e))}var dN=t=>fN(t,!ba(t)),hN=t=>fN(t,ba(t));function pN(t,e){return Xn(t,e,a=>t.moveByGroup(a,e))}var zj=t=>pN(t,!ba(t)),Uj=t=>pN(t,ba(t));var Xj=t=>{let e=!ba(t);return Xn(t,e,a=>Mg(t.state,a,e))},qj=t=>{let e=ba(t);return Xn(t,e,a=>Mg(t.state,a,e))};function mN(t,e){return Xn(t,e,a=>t.moveVertically(a,e))}var gN=t=>mN(t,!1),ON=t=>mN(t,!0);function bN(t,e){return Xn(t,e,a=>t.moveVertically(a,e,uN(t).height))}var UQ=t=>bN(t,!1),XQ=t=>bN(t,!0),Zj=t=>Xn(t,!0,e=>Mo(t,e,!0)),Fj=t=>Xn(t,!1,e=>Mo(t,e,!1)),Gj=t=>{let e=!ba(t);return Xn(t,e,a=>Mo(t,a,e))},Hj=t=>{let e=ba(t);return Xn(t,e,a=>Mo(t,a,e))},jj=t=>Xn(t,!1,e=>I.cursor(t.lineBlockAt(e.head).from)),Vj=t=>Xn(t,!0,e=>I.cursor(t.lineBlockAt(e.head).to)),qQ=({state:t,dispatch:e})=>(e(fr(t,{anchor:0})),!0),ZQ=({state:t,dispatch:e})=>(e(fr(t,{anchor:t.doc.length})),!0),FQ=({state:t,dispatch:e})=>(e(fr(t,{anchor:t.selection.main.anchor,head:0})),!0),GQ=({state:t,dispatch:e})=>(e(fr(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),Yj=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),Wj=({state:t,dispatch:e})=>{let a=Dg(t).map(({from:n,to:r})=>I.undirectionalRange(n,Math.min(r+1,t.doc.length)));return e(t.update({selection:I.create(a),userEvent:"select"})),!0},Kj=({state:t,dispatch:e})=>{let a=zu(t.selection,n=>{let r=Ze(t),i=r.resolveStack(n.from,1);if(n.empty){let o=r.resolveStack(n.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<n.from&&s.to>=n.to||s.to>n.to&&s.from<=n.from)&&o.next)return I.undirectionalRange(s.from,s.to)}return n});return a.eq(t.selection)?!1:(e(fr(t,a)),!0)};function xN(t,e){let{state:a}=t,n=a.selection,r=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){r.some(u=>u.head==l.head)||r.push(l);break}else{if(l.head==s.head)break;s=l}}}return r.length==n.ranges.length?!1:(t.dispatch(fr(a,I.create(r,r.length-1))),!0)}var Jj=t=>xN(t,!1),e8=t=>xN(t,!0),t8=({state:t,dispatch:e})=>{let a=t.selection,n=null;return a.ranges.length>1?n=I.create([a.main]):a.main.empty||(n=I.create([I.cursor(a.main.head)])),n?(e(fr(t,n)),!0):!1};function Ed(t,e){if(t.state.readOnly)return!1;let a="delete.selection",{state:n}=t,r=n.changeByRange(i=>{let{from:o,to:s}=i;if(o==s){let l=e(i);l<o?(a="delete.backward",l=Rg(t,l,!1)):l>o&&(a="delete.forward",l=Rg(t,l,!0)),o=Math.min(o,l),s=Math.max(s,l)}else o=Rg(t,o,!1),s=Rg(t,s,!0);return o==s?{range:i}:{changes:{from:o,to:s},range:I.cursor(o,o<i.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(n.update(r,{scrollIntoView:!0,userEvent:a,effects:a=="delete.selection"?G.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Rg(t,e,a){if(t instanceof G)for(let n of t.state.facet(G.atomicRanges).map(r=>r(t)))n.between(e,e,(r,i)=>{r<e&&i>e&&(e=a?i:r)});return e}var SN=(t,e,a)=>Ed(t,n=>{let r=n.from,{state:i}=t,o=i.doc.lineAt(r),s,l;if(a&&!e&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,r-o.from))){if(s[s.length-1]==" ")return r-1;let u=Ea(s,i.tabSize),c=u%wd(i)||wd(i);for(let f=0;f<c&&s[s.length-1-f]==" ";f++)r--;l=r}else l=Lt(o.text,r-o.from,e,e)+o.from,l==r&&o.number!=(e?i.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,r-o.from))&&(l=Lt(o.text,l-o.from,!1,!1)+o.from);return l}),zv=t=>SN(t,!1,!0);var yN=t=>SN(t,!0,!1),vN=(t,e)=>Ed(t,a=>{let n=a.head,{state:r}=t,i=r.doc.lineAt(n),o=r.charCategorizer(n);for(let s=null;;){if(n==(e?i.to:i.from)){n==a.head&&i.number!=(e?r.doc.lines:1)&&(n+=e?1:-1);break}let l=Lt(i.text,n-i.from,e)+i.from,u=i.text.slice(Math.min(n,l)-i.from,Math.max(n,l)-i.from),c=o(u);if(s!=null&&c!=s)break;(u!=" "||n!=a.head)&&(s=c),n=l}return n}),CN=t=>vN(t,!1),a8=t=>vN(t,!0);var n8=t=>Ed(t,e=>{let a=t.lineBlockAt(e.head).to;return e.head<a?a:Math.min(t.state.doc.length,e.head+1)});var r8=t=>Ed(t,e=>{let a=t.moveToLineBoundary(e,!1).head;return e.head>a?a:Math.max(0,e.head-1)}),i8=t=>Ed(t,e=>{let a=t.moveToLineBoundary(e,!0).head;return e.head<a?a:Math.min(t.state.doc.length,e.head+1)});var o8=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=t.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Te.of(["",""])},range:I.cursor(n.from)}));return e(t.update(a,{scrollIntoView:!0,userEvent:"input"})),!0},s8=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=t.changeByRange(n=>{if(!n.empty||n.from==0||n.from==t.doc.length)return{range:n};let r=n.from,i=t.doc.lineAt(r),o=r==i.from?r-1:Lt(i.text,r-i.from,!1)+i.from,s=r==i.to?r+1:Lt(i.text,r-i.from,!0)+i.from;return{changes:{from:o,to:s,insert:t.doc.slice(r,s).append(t.doc.slice(o,r))},range:I.cursor(s)}});return a.changes.empty?!1:(e(t.update(a,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Dg(t){let e=[],a=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=t.doc.lineAt(n.to);if(!n.empty&&n.to==i.from&&(i=t.doc.lineAt(n.to-1)),a>=r.number){let o=e[e.length-1];o.to=i.to,o.ranges.push(n)}else e.push({from:r.from,to:i.to,ranges:[n]});a=i.number+1}return e}function wN(t,e,a){if(t.readOnly)return!1;let n=[],r=[];for(let i of Dg(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){n.push({from:i.to,to:o.to},{from:i.from,insert:o.text+t.lineBreak});for(let l of i.ranges)r.push(I.range(Math.min(t.doc.length,l.anchor+s),Math.min(t.doc.length,l.head+s)))}else{n.push({from:o.from,to:i.from},{from:i.to,insert:t.lineBreak+o.text});for(let l of i.ranges)r.push(I.range(l.anchor-s,l.head-s))}}return n.length?(e(t.update({changes:n,scrollIntoView:!0,selection:I.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}var l8=({state:t,dispatch:e})=>wN(t,e,!1),u8=({state:t,dispatch:e})=>wN(t,e,!0);function kN(t,e,a){if(t.readOnly)return!1;let n=[];for(let i of Dg(t))a?n.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):n.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});let r=t.changes(n);return e(t.update({changes:r,selection:t.selection.map(r,a?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}var c8=({state:t,dispatch:e})=>kN(t,e,!1),f8=({state:t,dispatch:e})=>kN(t,e,!0),d8=t=>{if(t.state.readOnly)return!1;let{state:e}=t,a=e.changes(Dg(e).map(({from:r,to:i})=>(r>0?r--:i<e.doc.length&&i++,{from:r,to:i}))),n=zu(e.selection,r=>{let i;if(t.lineWrapping){let o=t.lineBlockAt(r.head),s=t.coordsAtPos(r.head,r.assoc||1);s&&(i=o.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,i)}).map(a);return t.dispatch({changes:a,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function h8(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let a=Ze(t).resolveInner(e),n=a.childBefore(e),r=a.childAfter(e),i;return n&&r&&n.to<=e&&r.from>=e&&(i=n.type.prop(se.closedBy))&&i.indexOf(r.name)>-1&&t.doc.lineAt(n.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}var HQ=LN(!1),p8=LN(!0);function LN(t){return({state:e,dispatch:a})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{let{from:i,to:o}=r,s=e.doc.lineAt(i),l=!t&&i==o&&h8(e,i);t&&(i=o=(o<=s.to?s:e.doc.lineAt(o)).to);let u=new zs(e,{simulateBreak:i,simulateDoubleBreak:!!l}),c=Eg(u,i);for(c==null&&(c=Ea(/^\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=["",$u(e,c)];return l&&f.push($u(e,u.lineIndent(s.from,-1))),{changes:{from:i,to:o,insert:Te.of(f)},range:I.cursor(i+1+f[1].length)}});return a(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function qv(t,e){let a=-1;return t.changeByRange(n=>{let r=[];for(let o=n.from;o<=n.to;){let s=t.doc.lineAt(o);s.number>a&&(n.empty||n.to>s.from)&&(e(s,r,n),a=s.number),o=s.to+1}let i=t.changes(r);return{changes:r,range:I.range(i.mapPos(n.anchor,1),i.mapPos(n.head,1))}})}var m8=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=Object.create(null),n=new zs(t,{overrideIndentation:i=>{let o=a[i];return o??-1}}),r=qv(t,(i,o,s)=>{let l=Eg(n,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let u=/^\s*/.exec(i.text)[0],c=$u(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 r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},EN=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(qv(t,(a,n)=>{n.push({from:a.from,insert:t.facet(Po)})}),{userEvent:"input.indent"})),!0),_N=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(qv(t,(a,n)=>{let r=/^\s*/.exec(a.text)[0];if(!r)return;let i=Ea(r,t.tabSize),o=0,s=$u(t,Math.max(0,i-wd(t)));for(;o<r.length&&o<s.length&&r.charCodeAt(o)==s.charCodeAt(o);)o++;n.push({from:a.from+o,to:a.from+r.length,insert:s.slice(o)})}),{userEvent:"delete.dedent"})),!0),g8=t=>(t.setTabFocusMode(),!0);var O8=[{key:"Ctrl-b",run:nN,shift:dN,preventDefault:!0},{key:"Ctrl-f",run:rN,shift:hN},{key:"Ctrl-p",run:sN,shift:gN},{key:"Ctrl-n",run:lN,shift:ON},{key:"Ctrl-a",run:Qj,shift:jj},{key:"Ctrl-e",run:Nj,shift:Vj},{key:"Ctrl-d",run:yN},{key:"Ctrl-h",run:zv},{key:"Ctrl-k",run:n8},{key:"Ctrl-Alt-h",run:CN},{key:"Ctrl-o",run:o8},{key:"Ctrl-t",run:s8},{key:"Ctrl-v",run:Bv}],b8=[{key:"ArrowLeft",run:nN,shift:dN,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Ej,shift:zj,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Mj,shift:Gj,preventDefault:!0},{key:"ArrowRight",run:rN,shift:hN,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:_j,shift:Uj,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Dj,shift:Hj,preventDefault:!0},{key:"ArrowUp",run:sN,shift:gN,preventDefault:!0},{mac:"Cmd-ArrowUp",run:qQ,shift:FQ},{mac:"Ctrl-ArrowUp",run:zQ,shift:UQ},{key:"ArrowDown",run:lN,shift:ON,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ZQ,shift:GQ},{mac:"Ctrl-ArrowDown",run:Bv,shift:XQ},{key:"PageUp",run:zQ,shift:UQ},{key:"PageDown",run:Bv,shift:XQ},{key:"Home",run:Pj,shift:Fj,preventDefault:!0},{key:"Mod-Home",run:qQ,shift:FQ},{key:"End",run:Ij,shift:Zj,preventDefault:!0},{key:"Mod-End",run:ZQ,shift:GQ},{key:"Enter",run:HQ,shift:HQ},{key:"Mod-a",run:Yj},{key:"Backspace",run:zv,shift:zv,preventDefault:!0},{key:"Delete",run:yN,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:CN,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:a8,preventDefault:!0},{mac:"Mod-Backspace",run:r8,preventDefault:!0},{mac:"Mod-Delete",run:i8,preventDefault:!0}].concat(O8.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),AN=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Rj,shift:Xj},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Tj,shift:qj},{key:"Alt-ArrowUp",run:l8},{key:"Shift-Alt-ArrowUp",run:c8},{key:"Alt-ArrowDown",run:u8},{key:"Shift-Alt-ArrowDown",run:f8},{key:"Mod-Alt-ArrowUp",run:Jj},{key:"Mod-Alt-ArrowDown",run:e8},{key:"Escape",run:t8},{key:"Mod-Enter",run:p8},{key:"Alt-l",mac:"Ctrl-l",run:Wj},{key:"Mod-i",run:Kj,preventDefault:!0},{key:"Mod-[",run:_N},{key:"Mod-]",run:EN},{key:"Mod-Alt-\\",run:m8},{key:"Shift-Mod-k",run:d8},{key:"Shift-Mod-\\",run:Bj},{key:"Mod-/",run:cj},{key:"Alt-A",mac:"Ctrl-A",run:dj},{key:"Ctrl-m",mac:"Shift-Alt-m",run:g8}].concat(b8),RN={key:"Tab",run:EN,shift:_N};var TN=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t,Qo=class{constructor(e,a,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?s=>i(TN(s)):TN,this.query=this.normalize(a)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return xu(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let a=ZS(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Wf(e);let r=this.normalize(a);if(r.length)for(let i=0,o=n,s=!0;;i++){let l=r.charCodeAt(i),u=this.match(l,o,s,this.bufferPos+this.bufferStart,i==r.length-1);if(u)return this.value=u,this;if(i==r.length-1)break;s&&i<a.length&&a.charCodeAt(i)==l?o++:s=!1}}}match(e,a,n,r,i){let o=null;for(let s=0;s<this.matches.length;){let l=this.matches[s],u=!1;this.query.charCodeAt(l.index)==e&&(l.index==this.query.length-1?o={from:l.from,to:r,precise:i&&l.precise}:(l.index++,u=!0)),u?s++:this.matches.splice(s,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?o={from:a,to:r,precise:n&&i}:this.matches.push({from:a,index:1,precise:n})),o&&this.test&&!this.test(o.from,o.to,this.buffer,this.bufferStart)&&(o=null),o}};typeof Symbol<"u"&&(Qo.prototype[Symbol.iterator]=function(){return this});var MN={from:-1,to:-1,match:/.*/.exec(""),precise:!0},Vv="gm"+(/x/.unicode==null?"":"u"),$g=class{constructor(e,a,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=MN,/\\[sWDnr]|\n|\r|\[\^/.test(a))return new zg(e,a,n,r,i);this.re=new RegExp(a,Vv+(n?.ignoreCase?"i":"")),this.test=n?.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Ug(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let a=this.matchPos<=this.to&&this.re.exec(this.curLine);if(a){let n=this.curLineStart+a.index,r=n+a[0].length;if(this.matchPos=Ug(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,a)))return this.value={from:n,to:r,precise:!0,match:a},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},Zv=new WeakMap,Bg=class t{constructor(e,a){this.from=e,this.text=a}get to(){return this.from+this.text.length}static get(e,a,n){let r=Zv.get(e);if(!r||r.from>=n||r.to<=a){let s=new t(a,e.sliceString(a,n));return Zv.set(e,s),s}if(r.from==a&&r.to==n)return r;let{text:i,from:o}=r;return o>a&&(i=e.sliceString(a,o)+i,o=a),r.to<n&&(i+=e.sliceString(r.to,n)),Zv.set(e,new t(o,i)),new t(a,i.slice(a-o,n-o))}},zg=class{constructor(e,a,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=MN,this.matchPos=Ug(e,r),this.re=new RegExp(a,Vv+(n?.ignoreCase?"i":"")),this.test=n?.test,this.flat=Bg.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,a=this.re.exec(this.flat.text);if(a&&!a[0]&&a.index==e&&(this.re.lastIndex=e+1,a=this.re.exec(this.flat.text)),a){let n=this.flat.from+a.index,r=n+a[0].length;if((this.flat.to>=this.to||a.index+a[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,a)))return this.value={from:n,to:r,precise:!0,match:a},this.matchPos=Ug(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Bg.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&($g.prototype[Symbol.iterator]=zg.prototype[Symbol.iterator]=function(){return this});function x8(t){try{return new RegExp(t,Vv),!0}catch{return!1}}function Ug(t,e){if(e>=t.length)return e;let a=t.lineAt(e),n;for(;e<a.to&&(n=a.text.charCodeAt(e-a.from))>=56320&&n<57344;)e++;return e}var S8=t=>{let e=GD(t,"cm-goto-line");if(e){let o=e.dom.querySelector("input[type=text]");return o&&o.select(),!0}let{state:a}=t,n=String(a.doc.lineAt(t.state.selection.main.head).number),{close:r,result:i}=FD(t,{class:"cm-goto-line",label:a.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:a.phrase("go")});return i.then(o=>{let s=o&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.elements.line.value);if(!s){t.dispatch({effects:r});return}let l=a.doc.lineAt(a.selection.main.head),[,u,c,f,d]=s,h=f?+f.slice(1):0,p=c?+c:l.number;if(c&&d){let g=p/100;u&&(g=g*(u=="-"?-1:1)+l.number/a.doc.lines),p=Math.round(a.doc.lines*g)}else c&&u&&(p=p*(u=="-"?-1:1)+l.number);let m=a.doc.line(Math.max(1,Math.min(a.doc.lines,p))),b=I.cursor(m.from+Math.max(0,Math.min(h,m.length)));t.dispatch({effects:[r,G.scrollIntoView(b.from,{y:"center"})],selection:b})}),!0},y8={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},DN=V.define({combine(t){return ln(t,y8,{highlightWordAroundCursor:(e,a)=>e||a,minSelectionLength:Math.min,maxMatches:Math.min})}});function QN(t){let e=[L8,k8];return t&&e.push(DN.of(t)),e}var v8=ce.mark({class:"cm-selectionMatch"}),C8=ce.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function IN(t,e,a,n){return(a==0||t(e.sliceDoc(a-1,a))!=ft.Word)&&(n==e.doc.length||t(e.sliceDoc(n,n+1))!=ft.Word)}function w8(t,e,a,n){return t(e.sliceDoc(a,a+1))==ft.Word&&t(e.sliceDoc(n-1,n))==ft.Word}var k8=Xt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(DN),{state:a}=t,n=a.selection;if(n.ranges.length>1)return ce.none;let r=n.main,i,o=null;if(r.empty){if(!e.highlightWordAroundCursor)return ce.none;let l=a.wordAt(r.head);if(!l)return ce.none;o=a.charCategorizer(r.head),i=a.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l<e.minSelectionLength||l>200)return ce.none;if(e.wholeWords){if(i=a.sliceDoc(r.from,r.to),o=a.charCategorizer(r.head),!(IN(o,a,r.from,r.to)&&w8(o,a,r.from,r.to)))return ce.none}else if(i=a.sliceDoc(r.from,r.to),!i)return ce.none}let s=[];for(let l of t.visibleRanges){let u=new Qo(a.doc,i,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!o||IN(o,a,c,f))&&(r.empty&&c<=r.from&&f>=r.to?s.push(C8.range(c,f)):(c>=r.to||f<=r.from)&&s.push(v8.range(c,f)),s.length>e.maxMatches))return ce.none}}return ce.set(s)}},{decorations:t=>t.decorations}),L8=G.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),E8=({state:t,dispatch:e})=>{let{selection:a}=t,n=I.create(a.ranges.map(r=>t.wordAt(r.head)||I.cursor(r.head)),a.mainIndex);return n.eq(a)?!1:(e(t.update({selection:n})),!0)};function _8(t,e){let{main:a,ranges:n}=t.selection,r=t.wordAt(a.head),i=r&&r.from==a.from&&r.to==a.to;for(let o=!1,s=new Qo(t.doc,e,n[n.length-1].to);;)if(s.next(),s.done){if(o)return null;s=new Qo(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(l=>l.from==s.value.from))continue;if(i){let l=t.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}var A8=({state:t,dispatch:e})=>{let{ranges:a}=t.selection;if(a.some(i=>i.from===i.to))return E8({state:t,dispatch:e});let n=t.sliceDoc(a[0].from,a[0].to);if(t.selection.ranges.some(i=>t.sliceDoc(i.from,i.to)!=n))return!1;let r=_8(t,n);return r?(e(t.update({selection:t.selection.addRange(I.range(r.from,r.to),!1),effects:G.scrollIntoView(r.to)})),!0):!1},qu=V.define({combine(t){return ln(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new jv(e),scrollToMatch:e=>G.scrollIntoView(e)})}});var Xg=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||x8(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(a,n)=>n=="n"?`
|
|
41
|
+
`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Gv(this):new Fv(this)}getCursor(e,a=0,n){let r=e.doc?e:Ye.create({doc:e});return n==null&&(n=r.doc.length),this.regexp?Xu(this,r,a,n):Uu(this,r,a,n)}},qg=class{constructor(e){this.spec=e}};function R8(t,e,a){return(n,r,i,o)=>{if(a&&!a(n,r,i,o))return!1;let s=n>=o&&r<=o+i.length?i.slice(n-o,r-o):e.doc.sliceString(n,r);return t(s,e,n,r)}}function Uu(t,e,a,n){let r;return t.wholeWord&&(r=T8(e.doc,e.charCategorizer(e.selection.main.head))),t.test&&(r=R8(t.test,e,r)),new Qo(e.doc,t.unquoted,a,n,t.caseSensitive?void 0:i=>i.toLowerCase(),r)}function T8(t,e){return(a,n,r,i)=>((i>a||i+r.length<n)&&(i=Math.max(0,a-2),r=t.sliceString(i,Math.min(t.length,n+2))),(e(Zg(r,a-i))!=ft.Word||e(Fg(r,a-i))!=ft.Word)&&(e(Fg(r,n-i))!=ft.Word||e(Zg(r,n-i))!=ft.Word))}var Fv=class extends qg{constructor(e){super(e)}nextMatch(e,a,n){let r=Uu(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let i=Math.min(e.doc.length,a+this.spec.unquoted.length);r=Uu(this.spec,e,0,i).nextOverlapping()}return r.done||r.value.from==a&&r.value.to==n?null:r.value}prevMatchInRange(e,a,n){for(let r=n;;){let i=Math.max(a,r-1e4-this.spec.unquoted.length),o=Uu(this.spec,e,i,r),s=null;for(;!o.nextOverlapping().done;)s=o.value;if(s)return s;if(i==a)return null;r-=1e4}}prevMatch(e,a,n){let r=this.prevMatchInRange(e,0,a);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=a||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,a){let n=Uu(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=a)return null;r.push(n.value)}return r}highlight(e,a,n,r){let i=Uu(this.spec,e,Math.max(0,a-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function I8(t,e,a){return(n,r,i)=>(!a||a(n,r,i))&&t(i[0],e,n,r)}function Xu(t,e,a,n){let r;return t.wholeWord&&(r=P8(e.charCategorizer(e.selection.main.head))),t.test&&(r=I8(t.test,e,r)),new $g(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:r},a,n)}function Zg(t,e){return t.slice(Lt(t,e,!1),e)}function Fg(t,e){return t.slice(e,Lt(t,e))}function P8(t){return(e,a,n)=>!n[0].length||(t(Zg(n.input,n.index))!=ft.Word||t(Fg(n.input,n.index))!=ft.Word)&&(t(Fg(n.input,n.index+n[0].length))!=ft.Word||t(Zg(n.input,n.index+n[0].length))!=ft.Word)}var Gv=class extends qg{nextMatch(e,a,n){let r=Xu(this.spec,e,n,e.doc.length).next();return r.done&&(r=Xu(this.spec,e,0,a).next()),r.done?null:r.value}prevMatchInRange(e,a,n){for(let r=1;;r++){let i=Math.max(a,n-r*1e4),o=Xu(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==a||s.from>i+10))return s;if(i==a)return null}}prevMatch(e,a,n){return this.prevMatchInRange(e,0,a)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(a,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let r=n.length;r>0;r--){let i=+n.slice(0,r);if(i>0&&i<e.match.length)return e.match[i]+n.slice(r)}return a})}matchAll(e,a){let n=Xu(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=a)return null;r.push(n.value)}return r}highlight(e,a,n,r){let i=Xu(this.spec,e,Math.max(0,a-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},Ad=_e.define(),Yv=_e.define(),Do=Wt.define({create(t){return new _d(Hv(t).create(),null)},update(t,e){for(let a of e.effects)a.is(Ad)?t=new _d(a.value.create(),t.panel):a.is(Yv)&&(t=new _d(t.query,a.value?Wv:null));return t},provide:t=>pd.from(t,e=>e.panel)});var _d=class{constructor(e,a){this.query=e,this.panel=a}},M8=ce.mark({class:"cm-searchMatch"}),D8=ce.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Q8=Xt.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Do))}update(t){let e=t.state.field(Do);(e!=t.startState.field(Do)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return ce.none;let{view:a}=this,n=new In;for(let r=0,i=a.visibleRanges,o=i.length;r<o;r++){let{from:s,to:l}=i[r];for(;r<o-1&&l>i[r+1].from-500;)l=i[++r].to;t.highlight(a.state,s,l,(u,c)=>{let f=a.state.selection.ranges.some(d=>d.from==u&&d.to==c);n.add(u,c,f?D8:M8)})}return n.finish()}},{decorations:t=>t.decorations});function Rd(t){return e=>{let a=e.state.field(Do,!1);return a&&a.query.spec.valid?t(e,a):BN(e)}}var Gg=Rd((t,{query:e})=>{let{to:a}=t.state.selection.main,n=e.nextMatch(t.state,a,a);if(!n)return!1;let r=I.single(n.from,n.to),i=t.state.facet(qu);return t.dispatch({selection:r,effects:[Kv(t,n),i.scrollToMatch(r.main,t)],userEvent:"select.search"}),$N(t),!0}),Hg=Rd((t,{query:e})=>{let{state:a}=t,{from:n}=a.selection.main,r=e.prevMatch(a,n,n);if(!r)return!1;let i=I.single(r.from,r.to),o=t.state.facet(qu);return t.dispatch({selection:i,effects:[Kv(t,r),o.scrollToMatch(i.main,t)],userEvent:"select.search"}),$N(t),!0}),N8=Rd((t,{query:e})=>{let a=e.matchAll(t.state,1e3);return!a||!a.length?!1:(t.dispatch({selection:I.create(a.map(n=>I.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),$8=({state:t,dispatch:e})=>{let a=t.selection;if(a.ranges.length>1||a.main.empty)return!1;let{from:n,to:r}=a.main,i=[],o=0;for(let s=new Qo(t.doc,t.sliceDoc(n,r));!s.next().done;){if(i.length>1e3)return!1;s.value.from==n&&(o=i.length),i.push(I.range(s.value.from,s.value.to))}return e(t.update({selection:I.create(i,o),userEvent:"select.search.matches"})),!0},PN=Rd((t,{query:e})=>{let{state:a}=t,{from:n,to:r}=a.selection.main;if(a.readOnly)return!1;let i=e.nextMatch(a,n,n);if(!i)return!1;let o=i,s=[],l,u,c=[];o.precise?o.from==n&&o.to==r&&(u=a.toText(e.getReplacement(o)),s.push({from:o.from,to:o.to,insert:u}),o=e.nextMatch(a,o.from,o.to),c.push(G.announce.of(a.phrase("replaced match on line $",a.doc.lineAt(n).number)+"."))):o=e.nextMatch(a,o.from,o.to);let f=t.state.changes(s);return o&&(l=I.single(o.from,o.to).map(f),c.push(Kv(t,o)),c.push(a.facet(qu).scrollToMatch(l.main,t))),t.dispatch({changes:f,selection:l,effects:c,userEvent:"input.replace"}),!0}),B8=Rd((t,{query:e})=>{if(t.state.readOnly)return!1;let a=[];for(let r of e.matchAll(t.state,1e9)){let{from:i,to:o,precise:s}=r;s&&a.push({from:i,to:o,insert:e.getReplacement(r)})}if(!a.length)return!1;let n=t.state.phrase("replaced $ matches",a.length)+".";return t.dispatch({changes:a,effects:G.announce.of(n),userEvent:"input.replace.all"}),!0});function Wv(t){return t.state.facet(qu).createPanel(t)}function Hv(t,e){var a,n,r,i,o;let s=t.selection.main,l=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!l)return e;let u=t.facet(qu);return new Xg({search:((a=e?.literal)!==null&&a!==void 0?a:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(n=e?.caseSensitive)!==null&&n!==void 0?n:u.caseSensitive,literal:(r=e?.literal)!==null&&r!==void 0?r:u.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:u.wholeWord})}function NN(t){let e=hg(t,Wv);return e&&e.dom.querySelector("[main-field]")}function $N(t){let e=NN(t);e&&e==t.root.activeElement&&e.select()}var BN=t=>{let e=t.state.field(Do,!1);if(e&&e.panel){let a=NN(t);if(a&&a!=t.root.activeElement){let n=Hv(t.state,e.query.spec);n.valid&&t.dispatch({effects:Ad.of(n)}),a.focus(),a.select()}}else t.dispatch({effects:[Yv.of(!0),e?Ad.of(Hv(t.state,e.query.spec)):_e.appendConfig.of(U8)]});return!0},zN=t=>{let e=t.state.field(Do,!1);if(!e||!e.panel)return!1;let a=hg(t,Wv);return a&&a.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Yv.of(!1)}),!0},UN=[{key:"Mod-f",run:BN,scope:"editor search-panel"},{key:"F3",run:Gg,shift:Hg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Gg,shift:Hg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:zN,scope:"editor search-panel"},{key:"Mod-Shift-l",run:$8},{key:"Mod-Alt-g",run:S8},{key:"Mod-d",run:A8,preventDefault:!0}],jv=class{constructor(e){this.view=e;let a=this.query=e.state.field(Do).query.spec;this.commit=this.commit.bind(this),this.searchField=Et("input",{value:a.search,placeholder:dn(e,"Find"),"aria-label":dn(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Et("input",{value:a.replace,placeholder:dn(e,"Replace"),"aria-label":dn(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Et("input",{type:"checkbox",name:"case",form:"",checked:a.caseSensitive,onchange:this.commit}),this.reField=Et("input",{type:"checkbox",name:"re",form:"",checked:a.regexp,onchange:this.commit}),this.wordField=Et("input",{type:"checkbox",name:"word",form:"",checked:a.wholeWord,onchange:this.commit});function n(r,i,o){return Et("button",{class:"cm-button",name:r,onclick:i,type:"button"},o)}this.dom=Et("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>Gg(e),[dn(e,"next")]),n("prev",()=>Hg(e),[dn(e,"previous")]),n("select",()=>N8(e),[dn(e,"all")]),Et("label",null,[this.caseField,dn(e,"match case")]),Et("label",null,[this.reField,dn(e,"regexp")]),Et("label",null,[this.wordField,dn(e,"by word")]),...e.state.readOnly?[]:[Et("br"),this.replaceField,n("replace",()=>PN(e),[dn(e,"replace")]),n("replaceAll",()=>B8(e),[dn(e,"replace all")])],Et("button",{name:"close",onclick:()=>zN(e),"aria-label":dn(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new Xg({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Ad.of(e)}))}keydown(e){PD(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Hg:Gg)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),PN(this.view))}update(e){for(let a of e.transactions)for(let n of a.effects)n.is(Ad)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(qu).top}};function dn(t,e){return t.state.phrase(e)}var Qg=30,Ng=/[\s\.,:;?!]/;function Kv(t,{from:e,to:a}){let n=t.state.doc.lineAt(e),r=t.state.doc.lineAt(a).to,i=Math.max(n.from,e-Qg),o=Math.min(r,a+Qg),s=t.state.sliceDoc(i,o);if(i!=n.from){for(let l=0;l<Qg;l++)if(!Ng.test(s[l+1])&&Ng.test(s[l])){s=s.slice(l);break}}if(o!=r){for(let l=s.length-1;l>s.length-Qg;l--)if(!Ng.test(s[l-1])&&Ng.test(s[l])){s=s.slice(0,l);break}}return G.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${n.number}.`)}var z8=G.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),U8=[Do,Mn.low(Q8),z8];var jg=class{constructor(e,a,n,r){this.state=e,this.pos=a,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let a=Ze(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),n=Math.max(a.from,this.pos-250),r=a.text.slice(n-a.from,this.pos-a.from),i=r.search(q8(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,a,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(a),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function XN(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 X8(t){let e=Object.create(null),a=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let i=1;i<r.length;i++)a[r[i]]=!0}let n=XN(e)+XN(a)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function ZN(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[a,n]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:X8(e);return r=>{let i=r.matchBefore(n);return i||r.explicit?{from:i?i.from:r.pos,options:e,validFor:a}:null}}function FN(t,e){return a=>{for(let n=Ze(a.state).resolveInner(a.pos,-1);n;n=n.parent){if(t.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(a)}}function q8(t,e){var a;let{source:n}=t,r=e&&n[0]!="^",i=n[n.length-1]!="$";return!r&&!i?t:new RegExp(`${r?"^":""}(?:${n})${i?"$":""}`,(a=t.flags)!==null&&a!==void 0?a:t.ignoreCase?"i":"")}var Z8=qa.define();var mie=typeof navigator=="object"&&/Win/.test(navigator.platform);var F8=G.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"}}}),Jv=class{constructor(e,a,n,r){this.field=e,this.line=a,this.from=n,this.to=r}},e1=class t{constructor(e,a,n){this.field=e,this.from=a,this.to=n}map(e){let a=e.mapPos(this.from,-1,ca.TrackDel),n=e.mapPos(this.to,1,ca.TrackDel);return a==null||n==null?null:new t(this.field,a,n)}},t1=class t{constructor(e,a){this.lines=e,this.fieldPositions=a}instantiate(e,a){let n=[],r=[a],i=e.doc.lineAt(a),o=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(n.length){let u=o,c=/^\t*/.exec(l)[0].length;for(let f=0;f<c;f++)u+=e.facet(Po);r.push(a+u.length-c),l=u+l.slice(c)}n.push(l),a+=l.length+1}let s=this.fieldPositions.map(l=>new e1(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:n,ranges:s}}static parse(e){let a=[],n=[],r=[],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 r)d.field>=u&&d.field++}for(let f of r)if(f.line==n.length&&f.from>i.index){let d=i[2]?3+(i[1]||"").length:2;f.from-=d,f.to-=d}r.push(new Jv(u,n.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 r)c.line==n.length&&c.from>u&&(c.from--,c.to--);return l}),n.push(o)}return new t(n,r)}},G8=ce.widget({widget:new class extends cn{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),H8=ce.mark({class:"cm-snippetField"}),Zu=class t{constructor(e,a){this.ranges=e,this.active=a,this.deco=ce.set(e.map(n=>(n.from==n.to?G8:H8).range(n.from,n.to)),!0)}map(e){let a=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;a.push(r)}return new t(a,this.active)}selectionInsideField(e){return e.ranges.every(a=>this.ranges.some(n=>n.field==this.active&&n.from<=a.from&&n.to>=a.to))}},Id=_e.define({map(t,e){return t&&t.map(e)}}),j8=_e.define(),Td=Wt.define({create(){return null},update(t,e){for(let a of e.effects){if(a.is(Id))return a.value;if(a.is(j8)&&t)return new Zu(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=>G.decorations.from(t,e=>e?e.deco:ce.none)});function a1(t,e){return I.create(t.filter(a=>a.field==e).map(a=>I.range(a.from,a.to)))}function V8(t){let e=t1.parse(t);return(a,n,r,i)=>{let{text:o,ranges:s}=e.instantiate(a.state,r),{main:l}=a.state.selection,u={changes:{from:r,to:i==l.from?l.to:i,insert:Te.of(o)},scrollIntoView:!0,annotations:n?[Z8.of(n),Tt.userEvent.of("input.complete")]:void 0};if(s.length&&(u.selection=a1(s,0)),s.some(c=>c.field>0)){let c=new Zu(s,0),f=u.effects=[Id.of(c)];a.state.field(Td,!1)===void 0&&f.push(_e.appendConfig.of([Td,eV,tV,F8]))}a.dispatch(a.state.update(u))}}function GN(t){return({state:e,dispatch:a})=>{let n=e.field(Td,!1);if(!n||t<0&&n.active==0)return!1;let r=n.active+t,i=t>0&&!n.ranges.some(o=>o.field==r+t);return a(e.update({selection:a1(n.ranges,r),effects:Id.of(i?null:new Zu(n.ranges,r)),scrollIntoView:!0})),!0}}var Y8=({state:t,dispatch:e})=>t.field(Td,!1)?(e(t.update({effects:Id.of(null)})),!0):!1,W8=GN(1),K8=GN(-1);var J8=[{key:"Tab",run:W8,shift:K8},{key:"Escape",run:Y8}],qN=V.define({combine(t){return t.length?t[0]:J8}}),eV=Mn.highest(Qs.compute([qN],t=>t.facet(qN)));function Ta(t,e){return{...e,apply:V8(t)}}var tV=G.domEventHandlers({mousedown(t,e){let a=e.state.field(Td,!1),n;if(!a||(n=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=a.ranges.find(i=>i.from<=n&&i.to>=n);return!r||r.field==a.active?!1:(e.dispatch({selection:a1(a.ranges,r.field),effects:Id.of(a.ranges.some(i=>i.field>r.field)?new Zu(a.ranges,r.field):null),scrollIntoView:!0}),!0)}});var HN=new class extends Pn{};HN.startSide=1;HN.endSide=-1;var gie=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent);var Wg=class t{static create(e,a,n,r,i){let o=r+(r<<8)+e+(a<<4)|0;return new t(e,a,n,o,i,[],[])}constructor(e,a,n,r,i,o,s){this.type=e,this.value=a,this.from=n,this.hash=r,this.end=i,this.children=o,this.positions=s,this.hashProp=[[se.contextHash,r]]}addChild(e,a){e.prop(se.contextHash)!=this.hash&&(e=new Ue(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(a)}toTree(e,a=this.end){let n=this.children.length-1;return n>=0&&(a=Math.max(a,this.positions[n]+this.children[n].length+this.from)),new Ue(e.types[this.type],this.children,this.positions,a-this.from).balance({makeTree:(r,i,o)=>new Ue(St.none,r,i,o,this.hashProp)})}},z;(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"})(z||(z={}));var i1=class{constructor(e,a){this.start=e,this.content=a,this.marks=[],this.parsers=[]}},o1=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 Md(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,n=0){for(let r=a;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let a=0;for(let n=0;a<this.text.length&&n<e;a++)n+=this.text.charCodeAt(a)==9?4-n%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 jN(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 n=(t.type==z.OrderedList?b1:O1)(a,e,!1);return n>0&&(t.type!=z.BulletList||g1(a,e,!1)<0)&&a.text.charCodeAt(a.pos+n-1)==t.value}var i$={[z.Blockquote](t,e,a){return a.next!=62?!1:(a.markers.push(De(z.QuoteMark,e.lineStart+a.pos,e.lineStart+a.pos+1)),a.moveBase(a.pos+(qn(a.text.charCodeAt(a.pos+1))?2:1)),t.end=e.lineStart+a.text.length,!0)},[z.ListItem](t,e,a){return a.indent<a.baseIndent+t.value&&a.next>-1?!1:(a.moveBaseColumn(a.baseIndent+t.value),!0)},[z.OrderedList]:jN,[z.BulletList]:jN,[z.Document](){return!0}};function qn(t){return t==32||t==9||t==10||t==13}function Md(t,e=0){for(;e<t.length&&qn(t.charCodeAt(e));)e++;return e}function VN(t,e,a){for(;e>a&&qn(t.charCodeAt(e-1));)e--;return e}function o$(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 s$(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function g1(t,e,a){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let n=1;for(let r=t.pos+1;r<t.text.length;r++){let i=t.text.charCodeAt(r);if(i==t.next)n++;else if(!qn(i))return-1}return a&&t.next==45&&c$(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(p$.SetextHeading)>-1||n<3?-1:1}function l$(t,e){for(let a=t.stack.length-1;a>=0;a--)if(t.stack[a].type==e)return!0;return!1}function O1(t,e,a){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||qn(t.text.charCodeAt(t.pos+1)))&&(!a||l$(e,z.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function b1(t,e,a){let n=t.pos,r=t.next;for(;r>=48&&r<=57;){n++;if(n==t.text.length)return-1;r=t.text.charCodeAt(n)}return n==t.pos||n>t.pos+9||r!=46&&r!=41||n<t.text.length-1&&!qn(t.text.charCodeAt(n+1))||a&&!l$(e,z.OrderedList)&&(t.skipSpace(n+1)==t.text.length||n>t.pos+1||t.next!=49)?-1:n+1-t.pos}function u$(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 c$(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&&qn(t.text.charCodeAt(e));)e++;return e==t.text.length?a:-1}var s1=/^[ \t]*$/,f$=/-->/,d$=/\?>/,l1=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,f$],[/^\s*<\?/,d$],[/^\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,s1],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,s1]];function h$(t,e,a){if(t.next!=60)return-1;let n=t.text.slice(t.pos);for(let r=0,i=l1.length-(a?1:0);r<i;r++)if(l1[r][0].test(n))return r;return-1}function YN(t,e){let a=t.countIndent(e,t.pos,t.indent),n=t.skipSpace(e),r=t.countIndent(n,e,a);return r>=a+5||n==t.text.length?a+1:r}function No(t,e,a){let n=t.length-1;n>=0&&t[n].to==e&&t[n].type==z.CodeText?t[n].to=a:t.push(De(z.CodeText,e,a))}var Vg={LinkReference:void 0,IndentedCode(t,e){let a=e.baseIndent+4;if(e.indent<a)return!1;let n=e.findColumn(a),r=t.lineStart+n,i=t.lineStart+e.text.length,o=[],s=[];for(No(o,r,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){No(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==z.CodeText?No(o,u.from,u.to):o.push(u);s=[]}No(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&&No(o,l,i)}}return s.length&&(s=s.filter(l=>l.type!=z.CodeText),s.length&&(e.markers=s.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-r).finish(z.CodeBlock,i-r),r),!0},FencedCode(t,e){let a=o$(e);if(a<0)return!1;let n=t.lineStart+e.pos,r=e.next,i=a-e.pos,o=e.skipSpace(a),s=VN(e.text,e.text.length,o),l=[De(z.CodeMark,n,n+i)];o<s&&l.push(De(z.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)==r;)d++;if(d-e.pos>=i&&e.skipSpace(d)==e.text.length){for(let h of e.markers)l.push(h);c&&f&&No(l,t.lineStart-1,t.lineStart),l.push(De(z.CodeMark,t.lineStart+e.pos,t.lineStart+d)),t.nextLine();break}else{f=!0,u||(No(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&&(No(l,h,p),c=!1)}}return t.addNode(t.buffer.writeElements(l,-n).finish(z.FencedCode,t.prevLineEnd()-n),n),!0},Blockquote(t,e){let a=s$(e);return a<0?!1:(t.startContext(z.Blockquote,e.pos),t.addNode(z.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+a),null)},HorizontalRule(t,e){if(g1(e,t,!1)<0)return!1;let a=t.lineStart+e.pos;return t.nextLine(),t.addNode(z.HorizontalRule,a),!0},BulletList(t,e){let a=O1(e,t,!1);if(a<0)return!1;t.block.type!=z.BulletList&&t.startContext(z.BulletList,e.basePos,e.next);let n=YN(e,e.pos+1);return t.startContext(z.ListItem,e.basePos,n-e.baseIndent),t.addNode(z.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+a),e.moveBaseColumn(n),null},OrderedList(t,e){let a=b1(e,t,!1);if(a<0)return!1;t.block.type!=z.OrderedList&&t.startContext(z.OrderedList,e.basePos,e.text.charCodeAt(e.pos+a-1));let n=YN(e,e.pos+a);return t.startContext(z.ListItem,e.basePos,n-e.baseIndent),t.addNode(z.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+a),e.moveBaseColumn(n),null},ATXHeading(t,e){let a=u$(e);if(a<0)return!1;let n=e.pos,r=t.lineStart+n,i=VN(e.text,e.text.length,n),o=i;for(;o>n&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==n||!qn(e.text.charCodeAt(o-1)))&&(o=e.text.length);let s=t.buffer.write(z.HeaderMark,0,a).writeElements(t.parser.parseInline(e.text.slice(n+a+1,o),r+a+1),-r);o<e.text.length&&s.write(z.HeaderMark,o-n,i-n);let l=s.finish(z.ATXHeading1-1+a,e.text.length-n);return t.nextLine(),t.addNode(l,r),!0},HTMLBlock(t,e){let a=h$(e,t,!1);if(a<0)return!1;let n=t.lineStart+e.pos,r=l1[a][1],i=[],o=r!=s1;for(;!r.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=r==f$?z.CommentBlock:r==d$?z.ProcessingInstructionBlock:z.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-n).finish(s,l-n),n),!0},SetextHeading:void 0},u1=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,a,n){if(this.stage==-1)return!1;let r=n.content+`
|
|
42
|
+
`+a.scrub(),i=this.advance(r);return i>-1&&i<r.length?this.complete(e,n,i):!1}finish(e,a){return(this.stage==2||this.stage==3)&&Md(a.content,this.pos)==a.content.length?this.complete(e,a,a.content.length):!1}complete(e,a,n){return e.addLeafElement(a,De(z.LinkReference,this.start,this.start+n,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(x$(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(De(z.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(O$(e,Md(e,this.pos),this.start)))return-1}else if(this.stage==2){let a=Md(e,this.pos),n=0;if(a>this.pos){let r=b$(e,a,this.start);if(r){let i=n1(e,r.to-this.start);i>0&&(this.nextStage(r),n=i)}}return n||(n=n1(e,this.pos)),n>0&&n<e.length?n:-1}else return n1(e,this.pos)}}};function n1(t,e){for(;e<t.length;e++){let a=t.charCodeAt(e);if(a==10)break;if(!qn(a))return-1}return e}var c1=class{nextLine(e,a,n){let r=a.depth<e.stack.length?-1:c$(a),i=a.next;if(r<0)return!1;let o=De(z.HeaderMark,e.lineStart+a.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,De(i==61?z.SetextHeading1:z.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}},p$={LinkReference(t,e){return e.content.charCodeAt(0)==91?new u1(e):null},SetextHeading(){return new c1}},aV=[(t,e)=>u$(e)>=0,(t,e)=>o$(e)>=0,(t,e)=>s$(e)>=0,(t,e)=>O1(e,t,!0)>=0,(t,e)=>b1(e,t,!0)>=0,(t,e)=>g1(e,t,!0)>=0,(t,e)=>h$(e,t,!0)>=0],nV={text:"",end:0},f1=class{constructor(e,a,n,r){this.parser=e,this.input=a,this.ranges=r,this.line=new o1,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=Wg.create(z.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new p1(n,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 n=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;n<e.markers.length&&(!r||e.markers[n].from<r.end);){let i=e.markers[n++];this.addNode(i.type,i.from,i.to)}if(!r)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 n of this.parser.blockParsers)if(n){let r=n(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}if(e.pos==e.text.length)return this.nextLine()?null:this.finish();let a=new i1(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let r=n(this,a);r&&a.parsers.push(r)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,a))break e}for(let n of a.parsers)if(n.nextLine(this,e,a))return null;a.content+=`
|
|
43
|
+
`+e.scrub();for(let n of e.markers)a.marks.push(n)}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=S$(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=nV;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 n=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<a.end;){r++;let i=this.ranges[r].from,o=this.lineChunkAt(i);a.end=i+o.length,a.text=a.text.slice(0,this.ranges[r-1].to-n)+o,n=a.end-a.text.length}}return a}readLine(){let{line:e}=this,{text:a,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(a);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],i=this.parser.skipContextMarkup[r.type];if(!i)throw new Error("Unhandled block context "+z[r.type]);let o=this.line.markers.length;if(!i(r,this,e)){this.line.markers.length>o&&(r.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let a=this.input.chunk(e),n;if(this.input.lineChunks)n=a==`
|
|
44
|
+
`?"":a;else{let r=a.indexOf(`
|
|
45
|
+
`);n=r<0?a:a.slice(0,r)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,a,n=0){this.block=Wg.create(e,n,this.lineStart+a,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,a,n=0){this.startContext(this.parser.getNodeType(e),a,n)}addNode(e,a,n){typeof e=="number"&&(e=new Ue(this.parser.nodeSet.types[e],Fu,Fu,(n??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(h1(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?m$(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let a=h1(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(a,-e.start).finish(z.Paragraph,e.content.length),e.start)}elt(e,a,n,r){return typeof e=="string"?De(this.parser.getNodeType(e),a,n,r):new Jg(e,a)}get buffer(){return new Kg(this.parser.nodeSet)}};function m$(t,e,a,n,r){let i=t[e].to,o=[],s=[],l=a.from+n;function u(c,f){for(;f?c>=i:c>i;){let d=t[e+1].from-i;n+=d,c+=d,e++,i=t[e].to}}for(let c=a.firstChild;c;c=c.nextSibling){u(c.from+n,!0);let f=c.from+n,d,h=r.get(c.tree);h?d=h:c.to+n>i?(d=m$(t,e,c,n,r),u(c.to+n,!1)):d=c.toTree(),o.push(d),s.push(f-l)}return u(a.to+n,!1),new Ue(a.type,o,s,a.to+n-l,a.tree?a.tree.propValues:void 0)}var Qd=class t extends Eo{constructor(e,a,n,r,i,o,s,l,u){super(),this.nodeSet=e,this.blockParsers=a,this.leafBlockParsers=n,this.blockNames=r,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,n){let r=new f1(this,e,a,n);for(let i of this.wrappers)r=i(r,e,a,n);return r}configure(e){let a=d1(e);if(!a)return this;let{nodeSet:n,skipContextMarkup:r}=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(Pd(a.defineNodes)){r=Object.assign({},r);let d=n.types.slice(),h;for(let p of a.defineNodes){let{name:m,block:b,composite:g,style:O}=typeof p=="string"?{name:p}:p;if(d.some(y=>y.name==m))continue;g&&(r[d.length]=(y,v,C)=>g(v,C,y.value));let x=d.length,S=g?["Block","BlockContext"]:b?x>=z.ATXHeading1&&x<=z.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;d.push(St.define({id:x,name:m,props:S&&[[se.group,S]]})),O&&(h||(h={}),Array.isArray(O)||O instanceof fn?h[m]=O:Object.assign(h,O))}n=new ko(d),h&&(n=n.extend(sr(h)))}if(Pd(a.props)&&(n=n.extend(...a.props)),Pd(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(Pd(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?Yg(s,d.before):d.after?Yg(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(Pd(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?Yg(u,d.before):d.after?Yg(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(n,i,o,s,c,r,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 n=new Fs(this,e,a);e:for(let r=a;r<n.end;){let i=n.char(r);for(let o of this.inlineParsers)if(o){let s=o(n,i,r);if(s>=0){r=s;continue e}}r++}return n.resolveMarkers(0)}};function Pd(t){return t!=null&&t.length>0}function d1(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=d1(t[0]);if(t.length==1)return e;let a=d1(t.slice(1));if(!a||!e)return e||a;let n=(o,s)=>(o||Fu).concat(s||Fu),r=e.wrap,i=a.wrap;return{props:n(e.props,a.props),defineNodes:n(e.defineNodes,a.defineNodes),parseBlock:n(e.parseBlock,a.parseBlock),parseInline:n(e.parseInline,a.parseInline),remove:n(e.remove,a.remove),wrap:r?i?(o,s,l,u)=>r(i(o,s,l,u),s,l,u):r:i}}function Yg(t,e){let a=t.indexOf(e);if(a<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return a}var g$=[St.none];for(let t=1,e;e=z[t];t++)g$[t]=St.define({id:t,name:e,props:t>=z.Escape?[]:[[se.group,t in i$?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});var Fu=[],Kg=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,a,n,r=0){return this.content.push(e,a,n,4+r*4),this}writeElements(e,a=0){for(let n of e)n.writeTo(this,a);return this}finish(e,a){return Ue.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:a})}},Zs=class{constructor(e,a,n,r=Fu){this.type=e,this.from=a,this.to=n,this.children=r}writeTo(e,a){let n=e.content.length;e.writeElements(this.children,a),e.content.push(this.type,this.from+a,this.to+a,e.content.length+4-n)}toTree(e){return new Kg(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},Jg=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 Fu}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 De(t,e,a,n){return new Zs(t,e,a,n)}var x1={resolve:"Emphasis",mark:"EmphasisMark"},S1={resolve:"Emphasis",mark:"EmphasisMark"},qs={},eO={},Ia=class{constructor(e,a,n,r,i=n-a){this.type=e,this.from=a,this.to=n,this.side=r,this.size=i}},WN="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",Nd=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Nd=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}var r1={Escape(t,e,a){if(e!=92||a==t.end-1)return-1;let n=t.char(a+1);for(let r=0;r<WN.length;r++)if(WN.charCodeAt(r)==n)return t.append(De(z.Escape,a,a+2));return-1},Entity(t,e,a){if(e!=38)return-1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(a+1,a+31));return n?t.append(De(z.Entity,a,a+1+n[0].length)):-1},InlineCode(t,e,a){if(e!=96||a&&t.char(a-1)==96)return-1;let n=a+1;for(;n<t.end&&t.char(n)==96;)n++;let r=n-a,i=0;for(;n<t.end;n++)if(t.char(n)==96){if(i++,i==r&&t.char(n+1)!=96)return t.append(De(z.InlineCode,a,n+1,[De(z.CodeMark,a,a+r),De(z.CodeMark,n+1-r,n+1)]))}else i=0;return-1},HTMLTag(t,e,a){if(e!=60||a==t.end-1)return-1;let n=t.slice(a+1,t.end),r=/^(?:[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(n);if(r)return t.append(De(z.Autolink,a,a+1+r[0].length,[De(z.LinkMark,a,a+1),De(z.URL,a+1,a+r[0].length),De(z.LinkMark,a+r[0].length,a+1+r[0].length)]));let i=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(i)return t.append(De(z.Comment,a,a+1+i[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return t.append(De(z.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(n);return s?t.append(De(z.HTMLTag,a,a+1+s[0].length)):-1},Emphasis(t,e,a){if(e!=95&&e!=42)return-1;let n=a+1;for(;t.char(n)==e;)n++;let r=t.slice(a-1,a),i=t.slice(n,n+1),o=Nd.test(r),s=Nd.test(i),l=/\s|^$/.test(r),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 Ia(e==95?x1:S1,a,n,(d?1:0)|(h?2:0)))},HardBreak(t,e,a){if(e==92&&t.char(a+1)==10)return t.append(De(z.HardBreak,a,a+2));if(e==32){let n=a+1;for(;t.char(n)==32;)n++;if(t.char(n)==10&&n>=a+2)return t.append(De(z.HardBreak,a,n+1))}return-1},Link(t,e,a){return e==91?t.append(new Ia(qs,a,a+1,1)):-1},Image(t,e,a){return e==33&&t.char(a+1)==91?t.append(new Ia(eO,a,a+2,1)):-1},LinkEnd(t,e,a){if(e!=93)return-1;for(let n=t.parts.length-1;n>=0;n--){let r=t.parts[n];if(r instanceof Ia&&(r.type==qs||r.type==eO)){if(!r.side||t.skipSpace(r.to)==a&&!/[(\[]/.test(t.slice(a+1,a+2)))return t.parts[n]=null,-1;let i=t.takeContent(n),o=t.parts[n]=rV(t,i,r.type==qs?z.Link:z.Image,r.from,a+1);if(r.type==qs)for(let s=0;s<n;s++){let l=t.parts[s];l instanceof Ia&&l.type==qs&&(l.side=0)}return o.to}}return-1}};function rV(t,e,a,n,r){let{text:i}=t,o=t.char(r),s=r;if(e.unshift(De(z.LinkMark,n,n+(a==z.Image?2:1))),e.push(De(z.LinkMark,r-1,r)),o==40){let l=t.skipSpace(r+1),u=O$(i,l-t.offset,t.offset),c;u&&(l=t.skipSpace(u.to),l!=u.to&&(c=b$(i,l-t.offset,t.offset),c&&(l=t.skipSpace(c.to)))),t.char(l)==41&&(e.push(De(z.LinkMark,r,r+1)),s=l+1,u&&e.push(u),c&&e.push(c),e.push(De(z.LinkMark,l,s)))}else if(o==91){let l=x$(i,r-t.offset,t.offset,!1);l&&(e.push(l),s=l.to)}return De(a,n,s,e)}function O$(t,e,a){if(t.charCodeAt(e)==60){for(let r=e+1;r<t.length;r++){let i=t.charCodeAt(r);if(i==62)return De(z.URL,e+a,r+1+a);if(i==60||i==10)return!1}return null}else{let r=0,i=e;for(let o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(qn(s))break;if(o)o=!1;else if(s==40)r++;else if(s==41){if(!r)break;r--}else s==92&&(o=!0)}return i>e?De(z.URL,e+a,i+a):i==t.length?null:!1}}function b$(t,e,a){let n=t.charCodeAt(e);if(n!=39&&n!=34&&n!=40)return!1;let r=n==40?41:n;for(let i=e+1,o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(o)o=!1;else{if(s==r)return De(z.LinkTitle,e+a,i+1+a);s==92&&(o=!0)}}return null}function x$(t,e,a,n){for(let r=!1,i=e+1,o=Math.min(t.length,i+999);i<o;i++){let s=t.charCodeAt(i);if(r)r=!1;else{if(s==93)return n?!1:De(z.LinkLabel,e+a,i+1+a);if(n&&!qn(s)&&(n=!1),s==91)return!1;s==92&&(r=!0)}}return null}var Fs=class{constructor(e,a,n){this.parser=e,this.text=a,this.offset=n,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,n,r,i){return this.append(new Ia(e,a,n,(r?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 Ia&&(a.type==qs||a.type==eO))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let r=this.parts[n];if(!(r instanceof Ia&&r.type.resolve&&r.side&2))continue;let i=r.type==x1||r.type==S1,o=r.to-r.from,s,l=n-1;for(;l>=e;l--){let m=this.parts[l];if(m instanceof Ia&&m.side&1&&m.type==r.type&&!(i&&(r.side&1||m.side&2)&&(m.size+r.size)%3==0&&(m.size%3||r.size%3))){s=m;break}}if(!s)continue;let u=r.type.resolve,c=[],f=s.from,d=r.to;if(i){let m=Math.min(2,s.to-s.from,o);f=s.to-m,d=r.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<n;m++)this.parts[m]instanceof Zs&&c.push(this.parts[m]),this.parts[m]=null;r.type.mark&&c.push(this.elt(r.type.mark,r.from,d));let h=this.elt(u,f,d,c);this.parts[l]=i&&s.from!=f?new Ia(s.type,s.from,f,s.side,s.size):null,(this.parts[n]=i&&r.to!=d?new Ia(r.type,d,r.to,r.side,r.size):null)?this.parts.splice(n,0,h):this.parts[n]=h}let a=[];for(let n=e;n<this.parts.length;n++){let r=this.parts[n];r instanceof Zs&&a.push(r)}return a}findOpeningDelimiter(e){for(let a=this.parts.length-1;a>=0;a--){let n=this.parts[a];if(n instanceof Ia&&n.type==e&&n.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 Ia?a:null}skipSpace(e){return Md(this.text,e-this.offset)+this.offset}elt(e,a,n,r){return typeof e=="string"?De(this.parser.getNodeType(e),a,n,r):new Jg(e,a)}};Fs.linkStart=qs;Fs.imageStart=eO;Fs.emphasisAsterisk=S1;Fs.emphasisUnderscore=x1;function h1(t,e){if(!e.length)return t;if(!t.length)return e;let a=t.slice(),n=0;for(let r of e){for(;n<a.length&&a[n].to<r.to;)n++;if(n<a.length&&a[n].from<r.from){let i=a[n];i instanceof Zs&&(a[n]=new Zs(i.type,i.from,i.to,h1(i.children,[r])))}else a.splice(n++,0,r)}return a}var iV=[z.CodeBlock,z.ListItem,z.OrderedList,z.BulletList],p1=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)!=`
|
|
46
|
+
`;)i--;this.fragmentEnd=i?i-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=a;if(!n.childAfter(r))return!1}}matches(e){let a=this.cursor.tree;return a&&a.prop(se.contextHash)==e}takeNodes(e){let a=this.cursor,n=this.fragment.offset,r=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-n>r||a.to-n>e.to){if(a.type.isAnonymous&&a.firstChild())continue;break}let c=S$(a.from-n,e.ranges);if(a.to-n<=e.ranges[e.rangeI].to)e.addNode(a.tree,c);else{let f=new Ue(e.parser.nodeSet.types[z.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,a.tree),e.addNode(f,c)}if(a.type.is("Block")&&(iV.indexOf(a.type.id)<0?(o=a.to-n,s=e.block.children.length):(o=l,s=u),l=a.to-n,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 S$(t,e){let a=t;for(let n=1;n<e.length;n++){let r=e[n-1].to,i=e[n].from;r<t&&(a-=i-r)}return a}var oV=sr({"Blockquote/...":w.quote,HorizontalRule:w.contentSeparator,"ATXHeading1/... SetextHeading1/...":w.heading1,"ATXHeading2/... SetextHeading2/...":w.heading2,"ATXHeading3/...":w.heading3,"ATXHeading4/...":w.heading4,"ATXHeading5/...":w.heading5,"ATXHeading6/...":w.heading6,"Comment CommentBlock":w.comment,Escape:w.escape,Entity:w.character,"Emphasis/...":w.emphasis,"StrongEmphasis/...":w.strong,"Link/... Image/...":w.link,"OrderedList/... BulletList/...":w.list,"BlockQuote/...":w.quote,"InlineCode CodeText":w.monospace,"URL Autolink":w.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":w.processingInstruction,"CodeInfo LinkLabel":w.labelName,LinkTitle:w.string,Paragraph:w.content}),y$=new Qd(new ko(g$).extend(oV),Object.keys(Vg).map(t=>Vg[t]),Object.keys(Vg).map(t=>p$[t]),Object.keys(Vg),aV,i$,Object.keys(r1).map(t=>r1[t]),Object.keys(r1),[]);function sV(t,e,a){let n=[];for(let r=t.firstChild,i=e;;r=r.nextSibling){let o=r?r.from:a;if(o>i&&n.push({from:i,to:o}),!r)break;i=r.to}return n}function v$(t){let{codeParser:e,htmlParser:a}=t;return{wrap:xg((r,i)=>{let o=r.type.id;if(e&&(o==z.CodeBlock||o==z.FencedCode)){let s="";if(o==z.FencedCode){let u=r.node.getChild(z.CodeInfo);u&&(s=i.read(u.from,u.to))}let l=e(s);if(l)return{parser:l,overlay:u=>u.type.id==z.CodeText,bracketed:o==z.FencedCode}}else if(a&&(o==z.HTMLBlock||o==z.HTMLTag||o==z.CommentBlock))return{parser:a,overlay:sV(r.node,r.from,r.to)};return null})}}var lV={resolve:"Strikethrough",mark:"StrikethroughMark"},uV={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":w.strikethrough}},{name:"StrikethroughMark",style:w.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,a){if(e!=126||t.char(a+1)!=126||t.char(a+2)==126)return-1;let n=t.slice(a-1,a),r=t.slice(a+2,a+3),i=/\s|^$/.test(n),o=/\s|^$/.test(r),s=Nd.test(n),l=Nd.test(r);return t.addDelimiter(lV,a,a+2,!o&&(!l||i||s),!i&&(!s||o||l))},after:"Emphasis"}]};function Dd(t,e,a=0,n,r=0){let i=0,o=!0,s=-1,l=-1,u=!1,c=()=>{n.push(t.elt("TableCell",r+s,r+l,t.parser.parseInline(e.slice(s,l),r+s)))};for(let f=a;f<e.length;f++){let d=e.charCodeAt(f);d==124&&!u?((!o||s>-1)&&i++,o=!1,n&&(s>-1&&c(),n.push(t.elt("TableDelimiter",f+r,f+r+1))),s=l=-1):(u||d!=32&&d!=9)&&(s<0&&(s=f),l=f+1),u=!u&&d==92}return s>-1&&(i++,n&&c()),i}function KN(t,e){for(let a=e;a<t.length;a++){let n=t.charCodeAt(a);if(n==124)return!0;n==92&&a++}return!1}var C$=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,tO=class{constructor(){this.rows=null}nextLine(e,a,n){if(this.rows==null){this.rows=!1;let r;if((a.next==45||a.next==58||a.next==124)&&C$.test(r=a.text.slice(a.pos))){let i=[];Dd(e,n.content,0,i,n.start)==Dd(e,r,0)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,i),e.elt("TableDelimiter",e.lineStart+a.pos,e.lineStart+a.text.length)])}}else if(this.rows){let r=[];Dd(e,a.text,a.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+a.pos,e.lineStart+a.text.length,r))}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}},cV={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":w.heading}},"TableRow",{name:"TableCell",style:w.content},{name:"TableDelimiter",style:w.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return KN(e.content,0)?new tO:null},endLeaf(t,e,a){if(a.parsers.some(r=>r instanceof tO)||!KN(e.text,e.basePos))return!1;let n=t.peekLine();return C$.test(n)&&Dd(t,e.text,e.basePos)==Dd(t,n,e.basePos)},before:"SetextHeading"}]},m1=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}},fV={defineNodes:[{name:"Task",block:!0,style:w.list},{name:"TaskMarker",style:w.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new m1:null},after:"SetextHeading"}]},JN=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,e$=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,dV=/[\w-]+\.[\w-]+($|[/:])/,t$=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,a$=/\/[a-zA-Z\d@.]+/gy;function n$(t,e,a,n){let r=0;for(let i=e;i<a;i++)t[i]==n&&r++;return r}function hV(t,e){e$.lastIndex=e;let a=e$.exec(t);if(!a||dV.exec(a[0])[0].indexOf("_")>-1)return-1;let n=e+a[0].length;for(;;){let r=t[n-1],i;if(/[?!.,:*_~]/.test(r)||r==")"&&n$(t,e,n,")")>n$(t,e,n,"("))n--;else if(r==";"&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,n))))n=e+i.index;else break}return n}function r$(t,e){t$.lastIndex=e;let a=t$.exec(t);if(!a)return-1;let n=a[0][a[0].length-1];return n=="_"||n=="-"?-1:e+a[0].length-(n=="."?1:0)}var pV={parseInline:[{name:"Autolink",parse(t,e,a){let n=a-t.offset;if(n&&/\w/.test(t.text[n-1]))return-1;JN.lastIndex=n;let r=JN.exec(t.text),i=-1;if(!r)return-1;if(r[1]||r[2]){if(i=hV(t.text,n+r[0].length),i>-1&&t.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(n,i));i=n+o[0].length}}else r[3]?i=r$(t.text,n):(i=r$(t.text,n+r[0].length),i>-1&&r[0]=="xmpp:"&&(a$.lastIndex=i,r=a$.exec(t.text),r&&(i=r.index+r[0].length)));return i<0?-1:(t.addElement(t.elt("URL",a,i+t.offset)),i+t.offset)}}]},w$=[cV,fV,uV,pV];function k$(t,e,a){return(n,r,i)=>{if(r!=t||n.char(i+1)==t)return-1;let o=[n.elt(a,i,i+1)];for(let s=i+1;s<n.end;s++){let l=n.char(s);if(l==t)return n.addElement(n.elt(e,i,s+1,o.concat(n.elt(a,s,s+1))));if(l==92&&o.push(n.elt("Escape",s,s+++2)),qn(l))break}return-1}}var L$={defineNodes:[{name:"Superscript",style:w.special(w.content)},{name:"SuperscriptMark",style:w.processingInstruction}],parseInline:[{name:"Superscript",parse:k$(94,"Superscript","SuperscriptMark")}]},E$={defineNodes:[{name:"Subscript",style:w.special(w.content)},{name:"SubscriptMark",style:w.processingInstruction}],parseInline:[{name:"Subscript",parse:k$(126,"Subscript","SubscriptMark")}]},_$={defineNodes:[{name:"Emoji",style:w.character}],parseInline:[{name:"Emoji",parse(t,e,a){let n;return e!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(t.slice(a+1,t.end)))?-1:t.addElement(t.elt("Emoji",a,a+1+n[0].length))}}]};var C1=class t{constructor(e,a,n,r,i,o,s,l,u,c=0,f){this.p=e,this.stack=a,this.state=n,this.reducePos=r,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,n=0){let r=e.parser.context;return new t(e,[],a,n,n,0,[],0,r?new aO(r,r.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 n=e>>19,r=e&65535,{parser:i}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),s=i.dynamicPrecedence(r);if(s&&(this.score+=s),n==0){r<i.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(r,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),u=l?this.stack[l-2]:this.p.ranges[0].from;r<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[r])===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(r<i.minRepeatTerm||e&131072){let h=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,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,r,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(r,u)}storeNode(e,a,n,r=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==n)return;if(this.buffer[o-2]>=a){this.buffer[o-2]=n;return}}}if(!i||this.pos==n)this.buffer.push(e,a,n,r);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]>n;l-=4)if(this.buffer[l-1]>=0){s=!0;break}if(s)for(;o>0&&this.buffer[o-2]>n;)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,r>4&&(r-=4)}this.buffer[o]=e,this.buffer[o+1]=a,this.buffer[o+2]=n,this.buffer[o+3]=r}}shift(e,a,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let i=e,{parser:o}=this.p;this.pos=r;let s=o.stateFlag(i,1);!s&&(r>n||a<=o.maxNode)&&(this.reducePos=r),this.pushState(i,s?n:Math.min(n,this.reducePos)),this.shiftContext(a,n),a<=o.maxNode&&this.buffer.push(a,n,r,4)}else this.pos=r,this.shiftContext(a,n),a<=this.p.parser.maxNode&&this.buffer.push(a,n,r,4)}apply(e,a,n,r){e&65536?this.reduce(e):this.shift(e,a,n,r)}useNode(e,a,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.reducePos=this.pos=n+e.length;this.pushState(a,n),this.buffer.push(r,n,i,-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 n=e.buffer.slice(a),r=e.bufferBase+a;for(;e&&r==e.bufferBase;)e=e.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,a){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,a,4),this.storeNode(0,this.pos,a,n?8:4),this.pos=this.reducePos=a,this.score-=190}canShift(e){for(let a=new w1(this);;){let n=this.p.parser.stateSlot(a.state,4)||this.p.parser.hasAction(a.state,e);if(n==0)return!1;if((n&65536)==0)return!0;a.reduce(n)}}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 r=[];for(let i=0,o;i<a.length;i+=2)(o=a[i+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(a[i],o);if(this.stack.length<120)for(let i=0;r.length<8&&i<a.length;i+=2){let o=a[i+1];r.some((s,l)=>l&1&&s==o)||r.push(a[i],o)}a=r}let n=[];for(let r=0;r<a.length&&n.length<4;r+=2){let i=a[r+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[r],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}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 n=a>>19,r=a&65535,i=this.stack.length-n*3;if(i<0||e.getGoto(this.stack[i],r,!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=[],n=(r,i)=>{if(!a.includes(r))return a.push(r),e.allActions(r,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=n(o,i+1);if(s!=null)return s}})};return n(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.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}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 aO(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()}},aO=class{constructor(e,a){this.tracker=e,this.context=a,this.hash=e.strict?e.hash(a):0}},w1=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,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],a,!0);this.state=r}},k1=class t{constructor(e,a,n){this.stack=e,this.pos=a,this.index=n,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 $d(t,e=Uint16Array){if(typeof t!="string")return t;let a=null;for(let n=0,r=0;n<t.length;){let i=0;for(;;){let o=t.charCodeAt(n++),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[r++]=i:a=new e(i)}return a}var Gu=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},A$=new Gu,L1=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=A$,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 n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let o=this.ranges[--r];i-=n.from-o.to,n=o}for(;a<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let o=this.ranges[++r];i+=o.from-n.to,n=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,n,r;if(a>=0&&a<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(a);else{let i=this.resolveOffset(e,1);if(i==null)return-1;if(n=i,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,s=this.range;for(;s.to<=n;)s=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,a=0){let n=a?this.resolveOffset(a,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}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=A$,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 n="";for(let r of this.ranges){if(r.from>=a)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,a)))}return n}},$o=class{constructor(e,a){this.data=e,this.id=a}token(e,a){let{parser:n}=a.p;M$(this.data,e,a,this.id,n.data,n.tokenPrecTable)}};$o.prototype.contextual=$o.prototype.fallback=$o.prototype.extend=!1;var Bo=class{constructor(e,a,n){this.precTable=a,this.elseToken=n,this.data=typeof e=="string"?$d(e):e}token(e,a){let n=e.pos,r=0;for(;;){let i=e.next<0,o=e.resolveOffset(1,1);if(M$(this.data,e,a,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||r++,o==null)break;e.reset(o,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};Bo.prototype.contextual=$o.prototype.fallback=$o.prototype.extend=!1;var Jt=class{constructor(e,a={}){this.token=e,this.contextual=!!a.contextual,this.fallback=!!a.fallback,this.extend=!!a.extend}};function M$(t,e,a,n,r,i){let o=0,s=1<<n,{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||gV(p,e.token.value,r,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],b=t[p+1]||65536;if(c<m)d=h;else if(c>=b)f=h+1;else{o=t[p+2],e.advance();continue e}}break}}function R$(t,e,a){for(let n=e,r;(r=t[n])!=65535;n++)if(r==a)return n-e;return-1}function gV(t,e,a,n){let r=R$(a,n,e);return r<0||R$(a,n,t)<r}var hn=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),y1=null;function T$(t,e,a){let n=t.cursor(Pe.IncludeAnonymous);for(n.moveTo(e);;)if(!(a<0?n.childBefore(e):n.childAfter(e)))for(;;){if((a<0?n.to<e:n.from>e)&&!n.type.isError)return a<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(a<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return a<0?0:t.length}}var E1=class{constructor(e,a){this.fragments=e,this.minRepeat=a,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,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 n=this.trees[a],r=this.index[a];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=n.children[r],o=this.start[a]+n.positions[r];if(o>e)return this.nextStart=o,null;if(i instanceof Ue){let s=o>this.lastRepeatPos&&i.type.id>=this.minRepeat;if(o==e||s){let l=o+i.length,u;if(o>=this.safeFrom&&l<=this.safeTo&&(!(u=i.prop(se.lookAhead))||l+u<this.fragment.to)){if(s&&(this.lastRepeat=i,this.lastRepeatPos=o),o==e)return i}else if(o==e)return null}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}}},_1=class{constructor(e,a){this.stream=a,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Gu)}getActions(e){let a=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.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(!(n&&!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&&(n=f,a>d))break}}for(;this.actions.length>a;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new Gu,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,a=this.addActions(e,n.value,n.end,a)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let a=new Gu,{pos:n,p:r}=e;return a.start=n,a.end=Math.min(n+1,r.stream.end),a.value=n==r.stream.end?r.parser.eofTerm:0,a}updateCachedToken(e,a,n){let r=this.stream.clipPos(n.pos);if(a.token(this.stream.reset(r,e),n),e.value>-1){let{parser:i}=n.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),n);if(s>=0&&n.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(r+1)}putAction(e,a,n,r){for(let i=0;i<r;i+=3)if(this.actions[i]==e)return r;return this.actions[r++]=e,this.actions[r++]=a,this.actions[r++]=n,r}addActions(e,a,n,r){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=bi(s,u+2);else{r==0&&s[u+1]==2&&(r=this.putAction(bi(s,u+2),a,n,r));break}s[u]==a&&(r=this.putAction(bi(s,u+1),a,n,r))}return r}},A1=class{constructor(e,a,n,r){this.parser=e,this.input=a,this.ranges=r,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 L1(a,r),this.tokens=new _1(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[C1.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>e.bufferLength*4?new E1(n,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,a=this.minStackPos,n=this.stacks=[],r,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)n.push(s);else{if(this.advanceStack(s,n,e))continue;{r||(r=[],i=[]),r.push(s);let l=this.tokens.getMainToken(s);i.push(l.value,l.end)}}break}}if(!n.length){let o=r&&OV(r);if(o)return hn&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw hn&&r&&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&&r){let o=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(o)return hn&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((s,l)=>l.score-s.score);n.length>o;)n.pop();n.some(s=>s.reducePos>a)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let s=n[o];for(let l=o+1;l<n.length;l++){let u=n[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)n.splice(l--,1);else{n.splice(o--,1);continue e}}}n.length>12&&(n.sort((o,s)=>s.score-o.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}tryReuse(e,a,n,r){if(!n)return null;let i=e.curContext&&e.curContext.tracker.strict,o=i?e.curContext.hash:0;for(;n;){let s=this.parser.nodeSet.types[n.type.id]!=n.type?-1:this.parser.getGoto(e.state,n.type.id);if(s>-1&&n.length&&(!i||(n.prop(se.contextHash)||0)==o))return e.useNode(n,s,a),n;if(n.children.length==0||n.positions[0]>0)break;let l=n.children[0];if(l instanceof Ue&&(!r||l.type.id>=this.parser.minRepeatTerm))n=l;else break}return null}advanceStack(e,a,n){let r=e.pos,{parser:i}=this,o=hn?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.reducePos<r&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,r,this.fragments.nodeAt(r),!1);if(u)return hn&&console.log(o+this.stackID(e)+` (via reuse of ${i.getName(u.type.id)})`),!0}let s=i.stateSlot(e.state,4);if(s>0)return e.reduce(s),hn&&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||!n,p=h?e:e.split(),m=this.tokens.mainToken;if(p.apply(c,f,m?m.start:p.pos,d),hn&&console.log(o+this.stackID(p)+` (via ${(c&65536)==0?"shift":`reduce of ${i.getName(c&65535)}`} for ${i.getName(f)} @ ${r}${p==e?"":", split"})`),h)return!0;p.pos>r?a.push(p):n.push(p)}return!1}advanceFully(e,a){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return I$(e,a),!0}}runRecovery(e,a,n){let r=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=hn?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),hn&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))))continue;let f=s.split(),d=c;for(let h=0;h<10&&f.forceReduce()&&(hn&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,n));h++)hn&&(d=this.stackID(f)+" -> ");for(let h of s.recoverByInsert(l))hn&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,n);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),hn&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),I$(s,n)):(!r||r.score<f.score)&&(r=f)}return r}stackToTree(e){return e.close(),Ue.build({buffer:k1.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=(y1||(y1=new WeakMap)).get(e);return a||y1.set(e,a=String.fromCodePoint(this.nextStackID++)),a+e}};function I$(t,e){for(let a=0;a<e.length;a++){let n=e[a];if(n.pos==t.pos&&n.sameState(t)){e[a].score<t.score&&(e[a]=t);return}}e.push(t)}var R1=class{constructor(e,a,n){this.source=e,this.flags=a,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},v1=t=>t,Hu=class{constructor(e){this.start=e.start,this.shift=e.shift||v1,this.reduce=e.reduce||v1,this.reuse=e.reuse||v1,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},zo=class t extends Eo{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 n=Object.keys(e.topRules).map(s=>e.topRules[s][1]),r=[];for(let s=0;s<a.length;s++)r.push([]);function i(s,l,u){r[s].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let s of e.nodeProps){let l=s[0];typeof l=="string"&&(l=se[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 ko(a.map((s,l)=>St.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:r[l],top:n.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=$d(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(P$),this.states=$d(e.states,Uint32Array),this.data=$d(e.stateData),this.goto=$d(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(s=>typeof s=="number"?new $o(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,n){let r=new A1(this,e,a,n);for(let i of this.wrappers)r=i(r,e,a,n);return r}getGoto(e,a,n=!1){let r=this.goto;if(a>=r[0])return-1;for(let i=r[a+1];;){let o=r[i++],s=o&1,l=r[i++];if(s&&n)return l;for(let u=i+(o>>1);i<u;i++)if(r[i]==e)return l;if(s)return-1}}hasAction(e,a){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),o;;i+=3){if((o=n[i])==65535)if(n[i+1]==1)o=n[i=bi(n,i+2)];else{if(n[i+1]==2)return bi(n,i+2);break}if(o==a||o==0)return bi(n,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,n=>n==a?!0:null)}allActions(e,a){let n=this.stateSlot(e,4),r=n?a(n):void 0;for(let i=this.stateSlot(e,1);r==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=bi(this.data,i+2);else break;r=a(bi(this.data,i+1))}return r}nextStates(e){let a=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=bi(this.data,n+2);else break;if((this.data[n+2]&1)==0){let r=this.data[n+1];a.some((i,o)=>o&1&&i==r)||a.push(this.data[n],r)}}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 n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);a.top=n}return e.tokenizers&&(a.tokenizers=this.tokenizers.map(n=>{let r=e.tokenizers.find(i=>i.from==n);return r?r.to:n})),e.specializers&&(a.specializers=this.specializers.slice(),a.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=e.specializers.find(s=>s.from==n.external);if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return a.specializers[r]=P$(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),n=a.map(()=>!1);if(e)for(let i of e.split(" ")){let o=a.indexOf(i);o>=0&&(n[o]=!0)}let r=null;for(let i=0;i<a.length;i++)if(!n[i])for(let o=this.dialects[a[i]],s;(s=this.data[o++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[s]=1;return new R1(e,n,r)}static deserialize(e){return new t(e)}};function bi(t,e){return t[e]|t[e+1]<<16}function OV(t){let e=null;for(let a of t){let n=a.p.stoppedAt;(a.pos==a.p.stream.end||n!=null&&a.pos>n)&&a.p.parser.stateFlag(a.state,2)&&(!e||e.score<a.score)&&(e=a)}return e}function P$(t){if(t.external){let e=t.extend?1:0;return(a,n)=>t.external(a,n)<<1|e}return t.get}var bV=55,xV=1,SV=56,yV=2,vV=57,CV=3,D$=4,wV=5,D1=6,q$=7,Z$=8,F$=9,G$=10,kV=11,LV=12,EV=13,T1=58,_V=14,AV=15,Q$=59,H$=21,RV=23,j$=24,TV=25,P1=27,V$=28,IV=29,PV=32,MV=35,DV=37,QV=38,NV=0,$V=1,BV={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},zV={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},N$={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 UV(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}var $$=null,B$=null,z$=0;function M1(t,e){let a=t.pos+e;if(z$==a&&B$==t)return $$;let n=t.peek(e),r="";for(;UV(n);)r+=String.fromCharCode(n),n=t.peek(++e);return B$=t,z$=a,$$=r?r.toLowerCase():n==XV||n==qV?void 0:null}var Y$=60,nO=62,Q1=47,XV=63,qV=33,ZV=45;function U$(t,e){this.name=t,this.parent=e}var FV=[D1,G$,q$,Z$,F$],GV=new Hu({start:null,shift(t,e,a,n){return FV.indexOf(e)>-1?new U$(M1(n,1)||"",t):t},reduce(t,e){return e==H$&&t?t.parent:t},reuse(t,e,a,n){let r=e.type.id;return r==D1||r==DV?new U$(M1(n,1)||"",t):t},strict:!1}),HV=new Jt((t,e)=>{if(t.next!=Y$){t.next<0&&e.context&&t.acceptToken(T1);return}t.advance();let a=t.next==Q1;a&&t.advance();let n=M1(t,0);if(n===void 0)return;if(!n)return t.acceptToken(a?AV:_V);let r=e.context?e.context.name:null;if(a){if(n==r)return t.acceptToken(kV);if(r&&zV[r])return t.acceptToken(T1,-2);if(e.dialectEnabled(NV))return t.acceptToken(LV);for(let i=e.context;i;i=i.parent)if(i.name==n)return;t.acceptToken(EV)}else{if(n=="script")return t.acceptToken(q$);if(n=="style")return t.acceptToken(Z$);if(n=="textarea")return t.acceptToken(F$);if(BV.hasOwnProperty(n))return t.acceptToken(G$);r&&N$[r]&&N$[r][n]?t.acceptToken(T1,-1):t.acceptToken(D1)}},{contextual:!0}),jV=new Jt(t=>{for(let e=0,a=0;;a++){if(t.next<0){a&&t.acceptToken(Q$);break}if(t.next==ZV)e++;else if(t.next==nO&&e>=2){a>=3&&t.acceptToken(Q$,-2);break}else e=0;t.advance()}});function VV(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}var YV=new Jt((t,e)=>{if(t.next==Q1&&t.peek(1)==nO){let a=e.dialectEnabled($V)||VV(e.context);t.acceptToken(a?wV:D$,2)}else t.next==nO&&t.acceptToken(D$,1)});function N1(t,e,a){let n=2+t.length;return new Jt(r=>{for(let i=0,o=0,s=0;;s++){if(r.next<0){s&&r.acceptToken(e);break}if(i==0&&r.next==Y$||i==1&&r.next==Q1||i>=2&&i<n&&r.next==t.charCodeAt(i-2))i++,o++;else if(i==n&&r.next==nO){s>o?r.acceptToken(e,-o):r.acceptToken(a,-(o-2));break}else if((r.next==10||r.next==13)&&s){r.acceptToken(e,1);break}else i=o=0;r.advance()}})}var WV=N1("script",bV,xV),KV=N1("style",SV,yV),JV=N1("textarea",vV,CV),eY=sr({"Text RawText IncompleteTag IncompleteCloseTag":w.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":w.angleBracket,TagName:w.tagName,"MismatchedCloseTag/TagName":[w.tagName,w.invalid],AttributeName:w.attributeName,"AttributeValue UnquotedAttributeValue":w.attributeValue,Is:w.definitionOperator,"EntityReference CharacterReference":w.character,Comment:w.blockComment,ProcessingInst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EndTag 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:GV,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:[eY],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$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<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)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[WV,KV,JV,YV,HV,jV,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function K$(t,e){let a=Object.create(null);for(let n of t.getChildren(j$)){let r=n.getChild(TV),i=n.getChild(P1)||n.getChild(V$);r&&(a[e.read(r.from,r.to)]=i?i.type.id==P1?e.read(i.from+1,i.to-1):e.read(i.from,i.to):"")}return a}function X$(t,e){let a=t.getChild(RV);return a?e.read(a.from,a.to):" "}function I1(t,e,a){let n;for(let r of a)if(!r.attrs||r.attrs(n||(n=K$(t.node.parent.firstChild,e))))return{parser:r.parser,bracketed:!0};return null}function $1(t=[],e=[]){let a=[],n=[],r=[],i=[];for(let s of t)(s.tag=="script"?a:s.tag=="style"?n:s.tag=="textarea"?r: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 xg((s,l)=>{let u=s.type.id;if(u==IV)return I1(s,l,a);if(u==PV)return I1(s,l,n);if(u==MV)return I1(s,l,r);if(u==H$&&i.length){let c=s.node,f=c.firstChild,d=f&&X$(f,l),h;if(d){for(let p of i)if(p.tag==d&&(!p.attrs||p.attrs(h||(h=K$(f,l))))){let m=c.lastChild,b=m.type.id==QV?m.from:c.to;if(b>f.to)return{parser:p.parser,overlay:[{from:f.to,to:b}]}}}}if(o&&u==j$){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!=X$(c.parent,l))continue;let p=c.lastChild;if(p.type.id==P1){let m=p.from+1,b=p.lastChild,g=p.to-(b&&b.isError?0:1);if(g>m)return{parser:h.parser,overlay:[{from:m,to:g}],bracketed:!0}}else if(p.type.id==V$)return{parser:h.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}var tY=148,J$=1,aY=149,nY=150,aB=2,rY=151,iY=3,oY=4,sY=152,nB=[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],lY=58,uY=40,rB=95,cY=91,rO=45,fY=46,dY=35,hY=37,pY=38,mY=92,gY=10,OY=42;function Bd(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function B1(t){return t>=48&&t<=57}function eB(t){return B1(t)||t>=97&&t<=102||t>=65&&t<=70}var iB=(t,e,a)=>(n,r)=>{for(let i=!1,o=0,s=0;;s++){let{next:l}=n;if(Bd(l)||l==rO||l==rB||i&&B1(l))!i&&(l!=rO||s>0)&&(i=!0),o===s&&l==rO&&o++,n.advance();else if(l==mY&&n.peek(1)!=gY){if(n.advance(),eB(n.next)){do n.advance();while(eB(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();i=!0}else{i&&n.acceptToken(o>=2&&r.canShift(aB)?e:l==uY?a:t);break}}},bY=new Jt(iB(aY,aB,nY),{contextual:!0}),xY=new Jt(iB(rY,iY,oY),{contextual:!0}),SY=new Jt(t=>{if(nB.includes(t.peek(-1))){let{next:e}=t;(Bd(e)||e==rB||e==dY||e==fY||e==OY||e==cY||e==lY&&Bd(t.peek(1))||e==rO||e==pY)&&t.acceptToken(tY)}}),yY=new Jt(t=>{if(!nB.includes(t.peek(-1))){let{next:e}=t;if(e==hY&&(t.advance(),t.acceptToken(J$)),Bd(e)){do t.advance();while(Bd(t.next)||B1(t.next));t.acceptToken(J$)}}});function tB(t){let e=t.length;return(e==4||e==5||e==7||e==9)&&/^#[a-f\d]+$/i.test(t)?sY:-1}var vY=sr({"AtKeyword import charset namespace keyframes media supports font-feature-values":w.definitionKeyword,"from to selector scope MatchFlag":w.keyword,NamespaceName:w.namespace,KeyframeName:w.labelName,KeyframeRangeName:w.operatorKeyword,TagName:w.tagName,ClassName:w.className,PseudoClassName:w.constant(w.className),IdName:w.labelName,"FeatureName PropertyName":w.propertyName,AttributeName:w.attributeName,NumberLiteral:w.number,KeywordQuery:w.keyword,UnaryQueryOp:w.operatorKeyword,"CallTag ValueName FontName":w.atom,VariableName:w.variableName,Callee:w.operatorKeyword,Unit:w.unit,"UniversalSelector NestingSelector":w.definitionOperator,"MatchOp CompareOp":w.compareOperator,"ChildOp SiblingOp, LogicOp":w.logicOperator,BinOp:w.arithmeticOperator,Important:w.modifier,Comment:w.blockComment,ColorLiteral:w.color,"ParenthesizedContent StringLiteral":w.string,":":w.punctuation,PseudoOp:w.derefOperator,"; , |":w.separator,"( )":w.paren,"[ ]":w.squareBracket,"{ }":w.brace}),CY={__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:88,url:158,"url-prefix":158,domain:158,regexp:158},wY={__proto__:null,or:102,and:102,not:112,only:112,layer:212},kY={__proto__:null,selector:118,style:124,layer:208},LY={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},EY={__proto__:null,to:249},oB=zo.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E_OOQP'#Fr'#FrO)`QhO'#FQOOQS'#Fq'#FqOOQS'#FT'#FTQYQdOOO)gQdO'#EeO*vQhO'#EkO)gQdO'#EmO*}QdO'#EoO+YQdO'#ErO*[QhO'#ExO+bQdO'#EzO+mQdO'#E}O+rQaO'#CfO+yQ`O'#EbO,OQ`O'#GPO,ZQdO'#GPQOQ`OOP,eO&jO'#CaPOOO)CAa)CAaOOQP'#Ci'#CiOOQP,59R,59RO%`QdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&eQdO,59VO,pQdO,59YOOQP,5:m,5:mO'nQdO,5:oO'yQdO,5:vO'yQdO,5:xO'yQdO,5:yO'yQdO'#F[O,{Q`O,58}O-TQdO'#EaOOQS,58},58}OOQP'#Cq'#CqOOQO'#EP'#EPOOQP,59Y,59YO-[Q`O,59YO-aQ`O,59YO-fQpO'#EUO-qQdO'#EVO-vQ`O'#EVO-{QpO,5:oO.iQaO,5:vO/PQaO,5:yOOQW'#D]'#D]O0OQhO'#DgO0cQhO,5;lO*[QhO'#DeO0pQ`O'#DnO0uQhO'#D{OOQW'#Fx'#FxOOQS,5;l,5;l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%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$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 ColorLiteral 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:176,nodeProps:[["isolate",-2,5,38,""],["openedBy",23,"(",30,"[",33,"{"],["closedBy",24,")",31,"]",34,"}"]],propSources:[vY],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%Z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#c#dDY#d;'S%j;'S;=`%{<%lO%jbD_U!r`Oy%jz#f%j#f#gDq#g;'S%j;'S;=`%{<%lO%jbDvU!r`Oy%jz#h%j#h#iEY#i;'S%j;'S;=`%{<%lO%jbE_U!r`Oy%jz#T%j#T#UEq#U;'S%j;'S;=`%{<%lO%jbEvU!r`Oy%jz#b%j#b#cFY#c;'S%j;'S;=`%{<%lO%jbF_U!r`Oy%jz#h%j#h#iFq#i;'S%j;'S;=`%{<%lO%jbFxS$tQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jjGZSrYOy%jz;'S%j;'S;=`%{<%lO%jfGlU$gUOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jjHTSqYOy%jz;'S%j;'S;=`%{<%lO%jfHfU#SQOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%j`H{P;=`<%l%Z",tokenizers:[SY,yY,bY,xY,1,2,3,4,new Bo("m~RRYZ[z{a~~g~aO$c~~dP!P!Qg~lO$d~~",28,156)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:172,get:(t,e)=>tB(t)<<1,external:tB},{term:150,get:t=>CY[t]||-1},{term:151,get:t=>wY[t]||-1},{term:4,get:t=>kY[t]||-1},{term:28,get:t=>LY[t]||-1},{term:149,get:t=>EY[t]||-1}],tokenPrec:2433});var z1=null;function U1(){if(!z1&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],a=new Set;for(let n in t)n!="cssText"&&n!="cssFloat"&&typeof t[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),a.has(n)||(e.push(n),a.add(n)));z1=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return z1||[]}var sB=["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})),lB=["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}))),_Y=["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})),AY=["@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})),xi=/^(\w[\w-]*|-\w[\w-]*|)$/,RY=/^-(-[\w-]*)?$/;function TY(t,e){var a;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let n=(a=t.parent)===null||a===void 0?void 0:a.firstChild;return n?.name!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}var uB=new Qu,IY=["Declaration"];function PY(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function cB(t,e,a){if(e.to-e.from>4096){let n=uB.get(e);if(n)return n;let r=[],i=new Set,o=e.cursor(Pe.IncludeAnonymous);if(o.firstChild())do for(let s of cB(t,o.node,a))i.has(s.label)||(i.add(s.label),r.push(s));while(o.nextSibling());return uB.set(e,r),r}else{let n=[],r=new Set;return e.cursor().iterate(i=>{var o;if(a(i)&&i.matchContext(IY)&&((o=i.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let s=t.sliceString(i.from,i.to);r.has(s)||(r.add(s),n.push({label:s,type:"variable"}))}}),n}}var MY=t=>e=>{let{state:a,pos:n}=e,r=Ze(a).resolveInner(n,-1),i=r.type.isError&&r.from==r.to-1&&a.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(i||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:U1(),validFor:xi};if(r.name=="ValueName")return{from:r.from,options:lB,validFor:xi};if(r.name=="PseudoClassName")return{from:r.from,options:sB,validFor:xi};if(t(r)||(e.explicit||i)&&TY(r,a.doc))return{from:t(r)||i?r.from:n,options:cB(a.doc,PY(r),t),validFor:RY};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:U1(),validFor:xi};return{from:r.from,options:_Y,validFor:xi}}if(r.name=="AtKeyword")return{from:r.from,options:AY,validFor:xi};if(!e.explicit)return null;let o=r.resolve(n),s=o.childBefore(n);return s&&s.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:sB,validFor:xi}:s&&s.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:lB,validFor:xi}:o.name=="Block"||o.name=="Styles"?{from:n,options:U1(),validFor:xi}:null},DY=MY(t=>t.name=="VariableName"),zd=To.define({name:"css",parser:oB.configure({props:[Oi.add({Declaration:Bu()}),Zr.add({"Block KeyframeList":_g})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function fB(){return new ur(zd,zd.data.of({autocomplete:DY}))}var QY=317,NY=318,dB=1,$Y=2,BY=3,zY=4,UY=319,XY=321,qY=322,ZY=5,FY=6,GY=0,q1=[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],hB=125,HY=59,Z1=47,jY=42,VY=43,YY=45,WY=60,KY=44,JY=63,eW=46,tW=91,aW=new Hu({start:!1,shift(t,e){return e==ZY||e==FY||e==XY?t:e==qY},strict:!1}),nW=new Jt((t,e)=>{let{next:a}=t;(a==hB||a==-1||e.context)&&t.acceptToken(UY)},{contextual:!0,fallback:!0}),rW=new Jt((t,e)=>{let{next:a}=t,n;q1.indexOf(a)>-1||a==Z1&&((n=t.peek(1))==Z1||n==jY)||a!=hB&&a!=HY&&a!=-1&&!e.context&&t.acceptToken(QY)},{contextual:!0}),iW=new Jt((t,e)=>{t.next==tW&&!e.context&&t.acceptToken(NY)},{contextual:!0}),oW=new Jt((t,e)=>{let{next:a}=t;if(a==VY||a==YY){if(t.advance(),a==t.next){t.advance();let n=!e.context&&e.canShift(dB);t.acceptToken(n?dB:$Y)}}else a==JY&&t.peek(1)==eW&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(BY))},{contextual:!0});function X1(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}var sW=new Jt((t,e)=>{if(t.next!=WY||!e.dialectEnabled(GY)||(t.advance(),t.next==Z1))return;let a=0;for(;q1.indexOf(t.next)>-1;)t.advance(),a++;if(X1(t.next,!0)){for(t.advance(),a++;X1(t.next,!1);)t.advance(),a++;for(;q1.indexOf(t.next)>-1;)t.advance(),a++;if(t.next==KY)return;for(let n=0;;n++){if(n==7){if(!X1(t.next,!0))return;break}if(t.next!="extends".charCodeAt(n))break;t.advance(),a++}}t.acceptToken(zY,-a)}),lW=sr({"get set async static":w.modifier,"for while do if else switch try catch finally return throw break continue default case defer":w.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":w.operatorKeyword,"let var const using function class extends":w.definitionKeyword,"import export from":w.moduleKeyword,"with debugger new":w.keyword,TemplateString:w.special(w.string),super:w.atom,BooleanLiteral:w.bool,this:w.self,null:w.null,Star:w.modifier,VariableName:w.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":w.function(w.variableName),VariableDefinition:w.definition(w.variableName),Label:w.labelName,PropertyName:w.propertyName,PrivatePropertyName:w.special(w.propertyName),"CallExpression/MemberExpression/PropertyName":w.function(w.propertyName),"FunctionDeclaration/VariableDefinition":w.function(w.definition(w.variableName)),"ClassDeclaration/VariableDefinition":w.definition(w.className),"NewExpression/VariableName":w.className,PropertyDefinition:w.definition(w.propertyName),PrivatePropertyDefinition:w.definition(w.special(w.propertyName)),UpdateOp:w.updateOperator,"LineComment Hashbang":w.lineComment,BlockComment:w.blockComment,Number:w.number,String:w.string,Escape:w.escape,ArithOp:w.arithmeticOperator,LogicOp:w.logicOperator,BitOp:w.bitwiseOperator,CompareOp:w.compareOperator,RegExp:w.regexp,Equals:w.definitionOperator,Arrow:w.function(w.punctuation),": Spread":w.punctuation,"( )":w.paren,"[ ]":w.squareBracket,"{ }":w.brace,"InterpolationStart InterpolationEnd":w.special(w.brace),".":w.derefOperator,", ;":w.separator,"@":w.meta,TypeName:w.typeName,TypeDefinition:w.definition(w.typeName),"type enum interface implements namespace module declare":w.definitionKeyword,"abstract global Privacy readonly override":w.modifier,"is keyof unique infer asserts":w.operatorKeyword,JSXAttributeValue:w.attributeValue,JSXText:w.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":w.angleBracket,"JSXIdentifier JSXNameSpacedName":w.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":w.attributeName,"JSXBuiltin/JSXIdentifier":w.standard(w.tagName)}),uW={__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:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548},cW={__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:403},fW={__proto__:null,"<":193},pB=zo.deserialize({version:14,states:"$GSQ%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[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Im'#ImO1XQ`O'#GtO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JsO6[Q!0MxO'#JtO6uQ`O'#F^O6zQ,UO'#FuOOQ!0Lf'#Fg'#FgO7VO7dO'#FgO9XQMhO'#F}O9`Q`O'#F|OOQ!0Lf'#Jt'#JtOOQ!0Lb'#Js'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-WQ4b/rQ6s2fQ7u4cQ9Y6tT=n'X+^V#aW%h*ZU#`W%h*ZS(V#W(_U([#Z+[/oS-]'X+^T.Q(U.VV'_!e%i*[Q$lfR)y$qT)n$l)oR4X/WT*`$x*cT*i${*ZQ0y+hQ1i,XQ3a.hQ5v1kQ6R1sQ7Z3eQ8t6UQ9e7YQ:`8sQ:r9dQ;]:bQ;e:tQ;p;^R;s;fnqOXst!Z#d%m&r&t&u&w,u,z2^2aQ&l!VR,j&itmOXst!U!V!Z#d%m&i&r&t&u&w,u,z2^2aR,q&oT%lm,qR1m,ZR,i&gQ&U|S,P&V&WR1`,QR+u&PT&p!W&sT&q!W&sT2`,z2a",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 VariableDefinition 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:381,context:aW,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,"Expression",-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",161,"JSXStartCloseTag"],["closedBy",-2,24,169,">",40,"InterpolationEnd",50,"]",61,"}",74,")",166,"JSXEndTag"]],propSources:[lW],skippedNodes:[0,5,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2j(f$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!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$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$j&j(Xp([!b(O0/l$^#t(U,2j(f$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!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:[rW,iW,oW,sW,2,3,4,5,6,7,8,9,10,11,12,13,14,nW,new Bo("$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(d~~",141,341),new Bo("j~RQYZXz{^~^O(R~~aP!P!Qd~iO(S~~",25,324)],topRules:{Script:[0,7],SingleExpression:[1,277],SingleClassItem:[2,278]},dialects:{jsx:0,ts:15179},dynamicPrecedences:{80:1,82:1,94:1,170:1,200:1},specialized:[{term:328,get:t=>uW[t]||-1},{term:344,get:t=>cW[t]||-1},{term:95,get:t=>fW[t]||-1}],tokenPrec:15205});var bB=[Ta("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ta("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ta("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ta("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ta("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ta(`try {
|
|
47
|
+
\${}
|
|
48
|
+
} catch (\${error}) {
|
|
49
|
+
\${}
|
|
50
|
+
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Ta("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ta(`if (\${}) {
|
|
51
|
+
\${}
|
|
52
|
+
} else {
|
|
53
|
+
\${}
|
|
54
|
+
}`,{label:"if",detail:"/ else block",type:"keyword"}),Ta(`class \${name} {
|
|
55
|
+
constructor(\${params}) {
|
|
56
|
+
\${}
|
|
57
|
+
}
|
|
58
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),Ta('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ta('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],dW=bB.concat([Ta("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ta("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ta("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),mB=new Qu,xB=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ud(t){return(e,a)=>{let n=e.node.getChild("VariableDefinition");return n&&a(n,t),!0}}var hW=["FunctionDeclaration"],pW={FunctionDeclaration:Ud("function"),ClassDeclaration:Ud("class"),ClassExpression:()=>!0,EnumDeclaration:Ud("constant"),TypeAliasDeclaration:Ud("type"),NamespaceDeclaration:Ud("namespace"),VariableDefinition(t,e){t.matchContext(hW)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function SB(t,e){let a=mB.get(e);if(a)return a;let n=[],r=!0;function i(o,s){let l=t.sliceString(o.from,o.to);n.push({label:l,type:s})}return e.cursor(Pe.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let s=pW[o.name];if(s&&s(o,i)||xB.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of SB(t,o.node))n.push(s);return!1}}),mB.set(e,n),n}var gB=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,yB=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function mW(t){let e=Ze(t.state).resolveInner(t.pos,-1);if(yB.indexOf(e.name)>-1)return null;let a=e.name=="VariableName"||e.to-e.from<20&&gB.test(t.state.sliceDoc(e.from,e.to));if(!a&&!t.explicit)return null;let n=[];for(let r=e;r;r=r.parent)xB.has(r.name)&&(n=n.concat(SB(t.state.doc,r)));return{options:n,from:a?e.from:t.pos,validFor:gB}}var hr=To.define({name:"javascript",parser:pB.configure({props:[Oi.add({IfStatement:Bu({except:/^\s*({|else\b)/}),TryStatement:Bu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:wQ,SwitchBody:t=>{let e=t.textAfter,a=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(a?0:n?1:2)*t.unit},Block:vQ({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":Bu({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}}),Zr.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":_g,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,n=t.lastChild;return!a||a.type.isError?null:{from:a.to,to:n.type.isError?t.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),vB={test:t=>/^JSX/.test(t.name),facet:Cd({commentTokens:{block:{open:"{/*",close:"*/}"}}})},F1=hr.configure({dialect:"ts"},"typescript"),G1=hr.configure({dialect:"jsx",props:[Lg.add(t=>t.isTop?[vB]:void 0)]}),H1=hr.configure({dialect:"jsx ts",props:[Lg.add(t=>t.isTop?[vB]:void 0)]},"typescript"),CB=t=>({label:t,type:"keyword"}),wB="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(CB),gW=wB.concat(["declare","implements","private","protected","public"].map(CB));function kB(t={}){let e=t.jsx?t.typescript?H1:G1:t.typescript?F1:hr,a=t.typescript?dW.concat(gW):bB.concat(wB);return new ur(e,[hr.data.of({autocomplete:FN(yB,ZN(a))}),hr.data.of({autocomplete:mW}),t.jsx?xW:[]])}function OW(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 OB(t,e,a=t.length){for(let n=e?.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return t.sliceString(n.from,Math.min(n.to,a));return""}var bW=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),xW=G.inputHandler.of((t,e,a,n,r)=>{if((bW?t.composing:t.compositionStarted)||t.state.readOnly||e!=a||n!=">"&&n!="/"||!hr.isActiveAt(t.state,e,-1))return!1;let i=r(),{state:o}=i,s=o.changeByRange(l=>{var u;let{head:c}=l,f=Ze(o).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(o.doc.sliceString(c-1,c)!=n||f.name=="JSXAttributeValue"&&f.to>c)){if(n==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:"</>"}};if(n=="/"&&f.name=="JSXStartCloseTag"){let h=f.parent,p=h.parent;if(p&&h.from==c-2&&((d=OB(o.doc,p.firstChild,c))||((u=p.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let m=`${d}>`;return{range:I.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(n==">"){let h=OW(f);if(h&&h.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=OB(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 Xd=["_blank","_self","_top","_parent"],j1=["ascii","utf-8","utf-16","latin1","latin1"],V1=["get","post","put","delete"],Y1=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],pn=["true","false"],ie={},SW={a:{attrs:{href:null,ping:null,type:null,media:null,target:Xd,hreflang:null}},abbr:ie,address:ie,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ie,aside:ie,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ie,base:{attrs:{href:null,target:Xd}},bdi:ie,bdo:ie,blockquote:{attrs:{cite:null}},body:ie,br:ie,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Y1,formmethod:V1,formnovalidate:["novalidate"],formtarget:Xd,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ie,center:ie,cite:ie,code:ie,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:ie,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ie,div:ie,dl:ie,dt:ie,em:ie,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ie,figure:ie,footer:ie,form:{attrs:{action:null,name:null,"accept-charset":j1,autocomplete:["on","off"],enctype:Y1,method:V1,novalidate:["novalidate"],target:Xd}},h1:ie,h2:ie,h3:ie,h4:ie,h5:ie,h6:ie,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ie,hgroup:ie,hr:ie,html:{attrs:{manifest:null}},i:ie,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:Y1,formmethod:V1,formnovalidate:["novalidate"],formtarget:Xd,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:ie,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ie,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:ie,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:j1,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:ie,noscript:ie,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:ie,param:{attrs:{name:null,value:null}},pre:ie,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ie,rt:ie,ruby:ie,samp:ie,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:j1}},section:ie,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ie,source:{attrs:{src:null,type:null,media:null}},span:ie,strong:ie,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ie,summary:ie,sup:ie,table:ie,tbody:ie,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ie,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:ie,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ie,time:{attrs:{datetime:null}},title:ie,tr:ie,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ie,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:ie},AB={accesskey:null,class:null,contenteditable:pn,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:pn,autocorrect:pn,autocapitalize:pn,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":pn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":pn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":pn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":pn,"aria-hidden":pn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":pn,"aria-multiselectable":pn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":pn,"aria-relevant":null,"aria-required":pn,"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},RB="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 RB)AB[t]=null;var Gs=class{constructor(e,a){this.tags={...SW,...e},this.globalAttrs={...AB,...a},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Gs.default=new Gs;function Hs(t,e,a=t.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,a)):""}function ju(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function TB(t,e,a){let n=a.tags[Hs(t,ju(e))];return n?.children||a.allTags}function W1(t,e){let a=[];for(let n=ju(e);n&&!n.type.isTop;n=ju(n.parent)){let r=Hs(t,n);if(r&&n.lastChild.name=="CloseTag")break;r&&a.indexOf(r)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&a.push(r)}return a}var IB=/^[:\-\.\w\u00b7-\uffff]*$/;function LB(t,e,a,n,r){let i=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=ju(a,a.name=="StartTag"||a.name=="TagName");return{from:n,to:r,options:TB(t.doc,o,e).map(s=>({label:s,type:"type"})).concat(W1(t.doc,a).map((s,l)=>({label:"/"+s,apply:"/"+s+i,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function EB(t,e,a,n){let r=/\s*>/.test(t.sliceDoc(n,n+5))?"":">";return{from:a,to:n,options:W1(t.doc,e).map((i,o)=>({label:i,apply:i+r,type:"type",boost:99-o})),validFor:IB}}function yW(t,e,a,n){let r=[],i=0;for(let o of TB(t.doc,a,e))r.push({label:"<"+o,type:"type"});for(let o of W1(t.doc,a))r.push({label:"</"+o+">",type:"type",boost:99-i++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function vW(t,e,a,n,r){let i=ju(a),o=i?e.tags[Hs(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:n,to:r,options:l.map(u=>({label:u,type:"property"})),validFor:IB}}function CW(t,e,a,n,r){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=ju(a),d=f?e.tags[Hs(t.doc,f)]:null;c=d?.attrs&&d.attrs[u]}if(c){let f=t.sliceDoc(n,r).toLowerCase(),d='"',h='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",h=t.sliceDoc(r,r+1)==f[0]?"":f[0],f=f.slice(1),n++):l=/^[^\s<>='"]*$/;for(let p of c)s.push({label:p,apply:d+p+h,type:"constant"})}}return{from:n,to:r,options:s,validFor:l}}function PB(t,e){let{state:a,pos:n}=e,r=Ze(a).resolveInner(n,-1),i=r.resolve(n);for(let o=n,s;i==r&&(s=r.childBefore(o));){let l=s.lastChild;if(!l||!l.type.isError||l.from<l.to)break;i=r=s,o=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?EB(a,r,r.from,n):LB(a,t,r,r.from,n):r.name=="StartTag"||r.name=="IncompleteTag"?LB(a,t,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?EB(a,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?vW(a,t,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?CW(a,t,r,r.name=="Is"?n:r.from,n):e.explicit&&(i.name=="Element"||i.name=="Text"||i.name=="Document")?yW(a,t,r,n):null}function MB(t){return PB(Gs.default,t)}function wW(t){let{extraTags:e,extraGlobalAttributes:a}=t,n=a||e?new Gs(e,a):Gs.default;return r=>PB(n,r)}var kW=hr.parser.configure({top:"SingleExpression"}),DB=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:F1.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:G1.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:H1.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:kW},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:hr.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:zd.parser}],QB=[{name:"style",parser:zd.parser.configure({top:"Styles"})}].concat(RB.map(t=>({name:t,parser:hr.parser}))),NB=To.define({name:"html",parser:W$.configure({props:[Oi.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 n=t.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;e=n=r}return e&&!((a=e.lastChild)&&(a.name=="CloseTag"||a.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Zr.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}}}),Dv.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),iO=NB.configure({wrap:$1(DB,QB)});function $B(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=$1((t.nestedLanguages||[]).concat(DB),(t.nestedAttributes||[]).concat(QB)));let n=a?NB.configure({wrap:a,dialect:e}):e?iO.configure({dialect:e}):iO;return new ur(n,[iO.data.of({autocomplete:wW(t)}),t.autoCloseTags!==!1?EW:[],kB().support,fB().support])}var _B=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));function LW(t,e,a){for(var n;;){if(((n=e.lastChild)===null||n===void 0?void 0:n.name)!="CloseTag")return!1;let r=e.parent;if(!r||Hs(t,r)!=a)return!0;e=r}}var EW=G.inputHandler.of((t,e,a,n,r)=>{if(t.composing||t.state.readOnly||e!=a||n!=">"&&n!="/"||!iO.isActiveAt(t.state,e,-1))return!1;let i=r(),{state:o}=i,s=o.changeByRange(l=>{var u;let c=o.doc.sliceString(l.from-1,l.to)==n,{head:f}=l,d=Ze(o).resolveInner(f,-1),h;if(c&&n==">"&&d.name=="EndTag"){let p=d.parent;if((h=Hs(o.doc,p.parent,f))&&!_B.has(h)&&!LW(o.doc,p.parent,h)){let m=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`</${h}>`;return{range:l,changes:{from:f,to:m,insert:b}}}}else if(c&&n=="/"&&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=Hs(o.doc,p,f))&&!_B.has(h)){let m=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`${h}>`;return{range:I.cursor(f+b.length,-1),changes:{from:f,to:m,insert:b}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var UB=Cd({commentTokens:{block:{open:"<!--",close:"-->"}}}),XB=new se,qB=y$.configure({props:[Zr.add(t=>!t.is("Block")||t.is("Document")||eC(t)!=null||_W(t)?void 0:(e,a)=>({from:a.doc.lineAt(e.from).to,to:e.to})),XB.add(eC),Oi.add({Document:()=>null}),Ro.add({Document:UB})]});function eC(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function _W(t){return t.name=="OrderedList"||t.name=="BulletList"}function AW(t,e){let a=t;for(;;){let n=a.nextSibling,r;if(!n||(r=eC(n.type))!=null&&r<=e)break;a=n}return a.to}var RW=Pv.of((t,e,a)=>{for(let n=Ze(t).resolveInner(a,-1);n&&!(n.from<e);n=n.parent){let r=n.type.prop(XB);if(r==null)continue;let i=AW(n,r);if(i>a)return{from:a,to:i}}return null});function tC(t){return new Ra(UB,t,[],"markdown")}var TW=tC(qB),IW=qB.configure([w$,E$,L$,_$,{props:[Zr.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),oO=tC(IW);function PW(t,e){return a=>{if(a&&t){let n=null;if(a=/\S*/.exec(a)[0],typeof t=="function"?n=t(a):n=vd.matchLanguageName(t,a,!0),n instanceof vd)return n.support?n.support.language.parser:Sd.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}var qd=class{constructor(e,a,n,r,i,o,s){this.node=e,this.from=a,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=o,this.item=s}blank(e,a=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(a?this.spaceAfter:"")}}marker(e,a){let n=this.node.name=="OrderedList"?String(+FB(this.item,e)[2]+a):"";return this.spaceBefore+n+this.type+this.spaceAfter}};function ZB(t,e){let a=[],n=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&a.push(r)}for(let r=a.length-1;r>=0;r--){let i=a[r],o,s=e.lineAt(i.from),l=i.from-s.from;if(i.name=="Blockquote"&&(o=/^ *>( ?)/.exec(s.text.slice(l))))n.push(new qd(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),n.push(new qd(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]/," ")),n.push(new qd(i.parent,l,l+c,o[1],u,f,i))}}return n}function FB(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function K1(t,e,a,n=0){for(let r=-1,i=t;;){if(i.name=="ListItem"){let s=FB(i,e),l=+s[2];if(r>=0){if(l!=r+1)return;a.push({from:i.from+s[1].length,to:i.from+s[0].length,insert:String(r+2+n)})}r=l}let o=i.nextSibling;if(!o)break;i=o}}function aC(t,e){let a=/^[ \t]*/.exec(t)[0].length;if(!a||e.facet(Po)!=" ")return t;let n=Ea(t,4,a),r="";for(let i=n;i>0;)i>=4?(r+=" ",i-=4):(r+=" ",i--);return r+t.slice(a)}var MW=(t={})=>({state:e,dispatch:a})=>{let n=Ze(e),{doc:r}=e,i=null,o=e.changeByRange(s=>{if(!s.empty||!oO.isActiveAt(e,s.from,-1)&&!oO.isActiveAt(e,s.from,1))return i={range:s};let l=s.from,u=r.lineAt(l),c=ZB(n.resolveInner(l,-1),r);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(r.lineAt(u.from-1).text)||t.nonTightLists===!1){let x=c.length>1?c[c.length-2]:null,S,y="";x&&x.item?(S=u.from+x.from,y=x.marker(r,1)):S=u.from+(x?x.to:0);let v=[{from:S,to:l,insert:y}];return f.node.name=="OrderedList"&&K1(f.item,r,v,-2),x&&x.node.name=="OrderedList"&&K1(x.item,r,v),{range:I.cursor(S+y.length),changes:v}}else{let x=zB(c,e,u);return{range:I.cursor(l+x.length+1),changes:{from:u.from,insert:x+e.lineBreak}}}}if(f.node.name=="Blockquote"&&d&&u.from){let g=r.lineAt(u.from-1),O=/>\s*$/.exec(g.text);if(O&&O.index==f.from){let x=e.changes([{from:g.from+O.index,to:g.to},{from:u.from+f.from,to:u.to}]);return{range:s.map(x),changes:x}}}let h=[];f.node.name=="OrderedList"&&K1(f.item,r,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(r,1):c[g].blank(g<O?Ea(u.text,4,c[g+1].from)-m.length:null);let b=l;for(;b>u.from&&/\s/.test(u.text.charAt(b-u.from-1));)b--;return m=aC(m,e),QW(f.node,e.doc)&&(m=zB(c,e,u)+e.lineBreak+m),h.push({from:b,to:l,insert:e.lineBreak+m}),{range:I.cursor(b+m.length+1),changes:h}});return i?!1:(a(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},DW=MW();function BB(t){return t.name=="QuoteMark"||t.name=="ListMark"}function QW(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let a=t.firstChild,n=t.getChild("ListItem","ListItem");if(!n)return!1;let r=e.lineAt(a.to),i=e.lineAt(n.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<i.number}function zB(t,e,a){let n="";for(let r=0,i=t.length-2;r<=i;r++)n+=t[r].blank(r<i?Ea(a.text,4,t[r+1].from)-n.length:null,r<i);return aC(n,e)}function NW(t,e){let a=t.resolveInner(e,-1),n=e;BB(a)&&(n=a.from,a=a.parent);for(let r;r=a.childBefore(n);)if(BB(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")a=r.lastChild,n=a.to;else break;return a}var $W=({state:t,dispatch:e})=>{let a=Ze(t),n=null,r=t.changeByRange(i=>{let o=i.from,{doc:s}=t;if(i.empty&&oO.isActiveAt(t,i.from)){let l=s.lineAt(o),u=ZB(NW(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:I.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(Ea(l.text,4,c.to)-Ea(l.text,4,c.from));return d==l.from&&(h=aC(h,t)),{range:I.cursor(d+h.length),changes:{from:d,to:l.from+c.to,insert:h}}}if(d<o)return{range:I.cursor(d),changes:{from:d,to:o}}}}}return n={range:i}});return n?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},nC=[{key:"Enter",run:DW},{key:"Backspace",run:$W}],GB=$B({matchClosingTags:!1});function HB(t={}){let{codeLanguages:e,defaultCodeLanguage:a,addKeymap:n=!0,base:{parser:r}=TW,completeHTMLTags:i=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=GB}=t;if(!(r instanceof Qd))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=t.extensions?[t.extensions]:[],u=[s.support,RW],c;o&&u.push(XW),a instanceof ur?(u.push(a.support),c=a.language):a&&(c=a);let f=e||c?PW(e,c):void 0;l.push(v$({codeParser:f,htmlParser:s.language.parser})),n&&u.push(Mn.high(Qs.of(nC)));let d=tC(r.configure(l));return i&&u.push(d.data.of({autocomplete:BW})),new ur(d,u)}function BW(t){let{state:e,pos:a}=t,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(a-25,a));if(!n)return null;let r=Ze(e).resolveInner(a,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:a-n[0].length,to:a,options:zW(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var J1=null;function zW(){if(J1)return J1;let t=MB(new jg(Ye.create({extensions:GB}),0,!0));return J1=t?t.options:[]}var UW=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,XW=G.domEventHandlers({paste:(t,e)=>{var a;let{main:n}=e.state.selection;if(n.empty)return!1;let r=(a=t.clipboardData)===null||a===void 0?void 0:a.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!oO.isActiveAt(e.state,n.from,1)))return!1;let i=Ze(e.state),o=!1;return i.iterate({from:n.from,to:n.to,enter:s=>{(s.from>n.from||UW.test(s.name))&&(o=!0)},leave:s=>{s.to<n.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}});var VB=B(ue(),1),qW=G.theme({"&":{height:"100%",backgroundColor:"transparent",color:"var(--color-base-content)"},".cm-content":{fontFamily:"var(--font-mono)",padding:"0.75rem 0",caretColor:"var(--color-base-content)"},".cm-line":{padding:"0 0.85rem"},".cm-gutters":{backgroundColor:"transparent",color:"color-mix(in oklab, var(--color-base-content) 40%, transparent)",border:"none"},".cm-activeLine":{backgroundColor:"color-mix(in oklab, var(--color-base-content) 5%, transparent)"},".cm-activeLineGutter":{backgroundColor:"transparent"},".cm-selectionBackground, &.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:"color-mix(in oklab, var(--color-primary) 30%, transparent)"},".cm-cursor":{borderLeftColor:"var(--color-base-content)"}}),ZW=Nu.define([{tag:w.heading,color:"var(--color-primary)",fontWeight:"600"},{tag:w.strong,fontWeight:"700"},{tag:w.emphasis,fontStyle:"italic"},{tag:w.link,color:"var(--color-info)",textDecoration:"underline"},{tag:w.monospace,color:"var(--color-secondary)"},{tag:w.keyword,color:"var(--color-primary)"},{tag:w.string,color:"var(--color-success)"},{tag:[w.number,w.bool,w.null],color:"var(--color-warning)"},{tag:w.comment,color:"color-mix(in oklab, var(--color-base-content) 50%, transparent)",fontStyle:"italic"},{tag:w.meta,color:"color-mix(in oklab, var(--color-base-content) 60%, transparent)"}]);function jB({value:t,onChange:e,className:a=""}){let n=(0,js.useRef)(null),r=(0,js.useRef)(null),i=(0,js.useRef)(e);return i.current=e,(0,js.useEffect)(()=>{if(!n.current)return;let o=Ye.create({doc:t,extensions:[WD(),KD(),UD(),WQ(),PQ(),ND(),zD(),qD(),kQ(),BQ(),XD(),QN(),DQ(ZW),Qs.of([...AN,...UN,...tN,...RQ,...nC,RN]),HB(),G.lineWrapping,qW,G.updateListener.of(l=>{l.docChanged&&i.current(l.state.doc.toString())})]}),s=new G({state:o,parent:n.current});return r.current=s,()=>{s.destroy(),r.current=null}},[]),(0,js.useEffect)(()=>{let o=r.current;if(!o)return;let s=o.state.doc.toString();s!==t&&o.dispatch({changes:{from:0,to:s.length,insert:t}})},[t]),(0,VB.jsx)("div",{ref:n,className:`mr-editor h-full overflow-hidden ${a}`})}var iz=B(Ce(),1),J=B(Ce(),1),fO=(0,J.createContext)(null);fO.displayName="PanelGroupContext";var yt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},cC=10,Ys=J.useLayoutEffect,YB=iz.useId,FW=typeof YB=="function"?YB:()=>null,GW=0;function fC(t=null){let e=FW(),a=(0,J.useRef)(t||e||null);return a.current===null&&(a.current=""+GW++),t??a.current}function oz({children:t,className:e="",collapsedSize:a,collapsible:n,defaultSize:r,forwardedRef:i,id:o,maxSize:s,minSize:l,onCollapse:u,onExpand:c,onResize:f,order:d,style:h,tagName:p="div",...m}){let b=(0,J.useContext)(fO);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:g,expandPanel:O,getPanelSize:x,getPanelStyle:S,groupId:y,isPanelCollapsed:v,reevaluatePanelConstraints:C,registerPanel:k,resizePanel:L,unregisterPanel:E}=b,A=fC(o),R=(0,J.useRef)({callbacks:{onCollapse:u,onExpand:c,onResize:f},constraints:{collapsedSize:a,collapsible:n,defaultSize:r,maxSize:s,minSize:l},id:A,idIsFromProps:o!==void 0,order:d});(0,J.useRef)({didLogMissingDefaultSizeWarning:!1}),Ys(()=>{let{callbacks:Q,constraints:M}=R.current,_={...M};R.current.id=A,R.current.idIsFromProps=o!==void 0,R.current.order=d,Q.onCollapse=u,Q.onExpand=c,Q.onResize=f,M.collapsedSize=a,M.collapsible=n,M.defaultSize=r,M.maxSize=s,M.minSize=l,(_.collapsedSize!==M.collapsedSize||_.collapsible!==M.collapsible||_.maxSize!==M.maxSize||_.minSize!==M.minSize)&&C(R.current,_)}),Ys(()=>{let Q=R.current;return k(Q),()=>{E(Q)}},[d,A,k,E]),(0,J.useImperativeHandle)(i,()=>({collapse:()=>{g(R.current)},expand:Q=>{O(R.current,Q)},getId(){return A},getSize(){return x(R.current)},isCollapsed(){return v(R.current)},isExpanded(){return!v(R.current)},resize:Q=>{L(R.current,Q)}}),[g,O,x,v,A,L]);let U=S(R.current,r);return(0,J.createElement)(p,{...m,children:t,className:e,id:A,style:{...U,...h},[yt.groupId]:y,[yt.panel]:"",[yt.panelCollapsible]:n||void 0,[yt.panelId]:A,[yt.panelSize]:parseFloat(""+U.flexGrow).toFixed(1)})}var dC=(0,J.forwardRef)((t,e)=>(0,J.createElement)(oz,{...t,forwardedRef:e}));oz.displayName="Panel";dC.displayName="forwardRef(Panel)";var HW;function jW(){return HW}var uC=null,VW=!0,WB=null,lO=-1,Si=null;function YW(t,e,a){let n=(e&fz)!==0,r=(e&dz)!==0,i=(e&hz)!==0,o=(e&pz)!==0;if(WB)return WB({exceedsHorizontalMaximum:r,exceedsHorizontalMinimum:n,exceedsVerticalMaximum:o,exceedsVerticalMinimum:i,intersectsHorizontalDragHandle:t==="horizontal"||t==="intersection",intersectsVerticalDragHandle:t==="vertical"||t==="intersection",isPointerDown:a});if(e){if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function WW(){Si!==null&&(document.head.removeChild(Si),uC=null,Si=null,lO=-1)}function rC(t,e,a){var n,r;if(!VW)return;let i=YW(t,e,a);if(uC!==i){if(uC=i,Si===null){Si=document.createElement("style");let s=jW();s&&Si.setAttribute("nonce",s),document.head.appendChild(Si)}if(lO>=0){var o;(o=Si.sheet)===null||o===void 0||o.removeRule(lO)}lO=(n=(r=Si.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&n!==void 0?n:-1}}function sz(t){return t.type==="keydown"}function lz(t){return t.type.startsWith("pointer")}function uz(t){return t.type.startsWith("mouse")}function dO(t){if(lz(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(uz(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function KW(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function JW(t,e,a){return a?t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y:t.x<=e.x+e.width&&t.x+t.width>=e.x&&t.y<=e.y+e.height&&t.y+t.height>=e.y}function eK(t,e){if(t===e)throw new Error("Cannot compare node with itself");let a={a:ez(t),b:ez(e)},n;for(;a.a.at(-1)===a.b.at(-1);)t=a.a.pop(),e=a.b.pop(),n=t;we(n,"Stacking order can only be calculated for elements with a common ancestor");let r={a:JB(KB(a.a)),b:JB(KB(a.b))};if(r.a===r.b){let i=n.childNodes,o={a:a.a.at(-1),b:a.b.at(-1)},s=i.length;for(;s--;){let l=i[s];if(l===o.a)return 1;if(l===o.b)return-1}}return Math.sign(r.a-r.b)}var tK=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function aK(t){var e;let a=getComputedStyle((e=cz(t))!==null&&e!==void 0?e:t).display;return a==="flex"||a==="inline-flex"}function nK(t){let e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||aK(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||tK.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function KB(t){let e=t.length;for(;e--;){let a=t[e];if(we(a,"Missing node"),nK(a))return a}return null}function JB(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ez(t){let e=[];for(;t;)e.push(t),t=cz(t);return e}function cz(t){let{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}var fz=1,dz=2,hz=4,pz=8,rK=KW()==="coarse",pr=[],vi=!1,Uo=new Map,hO=new Map,Gd=new Set;function iK(t,e,a,n,r){var i;let{ownerDocument:o}=e,s={direction:a,element:e,hitAreaMargins:n,setResizeHandlerState:r},l=(i=Uo.get(o))!==null&&i!==void 0?i:0;return Uo.set(o,l+1),Gd.add(s),uO(),function(){var c;hO.delete(t),Gd.delete(s);let f=(c=Uo.get(o))!==null&&c!==void 0?c:1;if(Uo.set(o,f-1),uO(),f===1&&Uo.delete(o),pr.includes(s)){let d=pr.indexOf(s);d>=0&&pr.splice(d,1),pO(),r("up",!0,null)}}}function oK(t){let{target:e}=t,{x:a,y:n}=dO(t);vi=!0,hC({target:e,x:a,y:n}),uO(),pr.length>0&&(cO("down",t),pO(),t.preventDefault(),mz(e)||t.stopImmediatePropagation())}function iC(t){let{x:e,y:a}=dO(t);if(vi&&t.type!=="pointerleave"&&t.buttons===0&&(vi=!1,cO("up",t)),!vi){let{target:n}=t;hC({target:n,x:e,y:a})}cO("move",t),pO(),pr.length>0&&t.preventDefault()}function oC(t){let{target:e}=t,{x:a,y:n}=dO(t);hO.clear(),vi=!1,pr.length>0&&(t.preventDefault(),mz(e)||t.stopImmediatePropagation()),cO("up",t),hC({target:e,x:a,y:n}),pO(),uO()}function mz(t){let e=t;for(;e;){if(e.hasAttribute(yt.resizeHandle))return!0;e=e.parentElement}return!1}function hC({target:t,x:e,y:a}){pr.splice(0);let n=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(n=t),Gd.forEach(r=>{let{element:i,hitAreaMargins:o}=r,s=i.getBoundingClientRect(),{bottom:l,left:u,right:c,top:f}=s,d=rK?o.coarse:o.fine;if(e>=u-d&&e<=c+d&&a>=f-d&&a<=l+d){if(n!==null&&document.contains(n)&&i!==n&&!i.contains(n)&&!n.contains(i)&&eK(n,i)>0){let p=n,m=!1;for(;p&&!p.contains(i);){if(JW(p.getBoundingClientRect(),s,!0)){m=!0;break}p=p.parentElement}if(m)return}pr.push(r)}})}function sC(t,e){hO.set(t,e)}function pO(){let t=!1,e=!1;pr.forEach(n=>{let{direction:r}=n;r==="horizontal"?t=!0:e=!0});let a=0;hO.forEach(n=>{a|=n}),t&&e?rC("intersection",a,vi):t?rC("horizontal",a,vi):e?rC("vertical",a,vi):WW()}var lC;function uO(){var t;(t=lC)===null||t===void 0||t.abort(),lC=new AbortController;let e={capture:!0,signal:lC.signal};Gd.size&&(vi?(pr.length>0&&Uo.forEach((a,n)=>{let{body:r}=n;a>0&&(r.addEventListener("contextmenu",oC,e),r.addEventListener("pointerleave",iC,e),r.addEventListener("pointermove",iC,e))}),Uo.forEach((a,n)=>{let{body:r}=n;r.addEventListener("pointerup",oC,e),r.addEventListener("pointercancel",oC,e)})):Uo.forEach((a,n)=>{let{body:r}=n;a>0&&(r.addEventListener("pointerdown",oK,e),r.addEventListener("pointermove",iC,e))}))}function cO(t,e){Gd.forEach(a=>{let{setResizeHandlerState:n}=a,r=pr.includes(a);n(t,r,e)})}function sK(){let[t,e]=(0,J.useState)(0);return(0,J.useCallback)(()=>e(a=>a+1),[])}function we(t,e){if(!t)throw console.error(e),Error(e)}function Ws(t,e,a=cC){return t.toFixed(a)===e.toFixed(a)?0:t>e?1:-1}function yi(t,e,a=cC){return Ws(t,e,a)===0}function mn(t,e,a){return Ws(t,e,a)===0}function lK(t,e,a){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(!mn(r,i,a))return!1}return!0}function Wu({panelConstraints:t,panelIndex:e,size:a}){let n=t[e];we(n!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:s=0}=n;if(Ws(a,s)<0)if(i){let l=(r+s)/2;Ws(a,l)<0?a=r:a=s}else a=s;return a=Math.min(o,a),a=parseFloat(a.toFixed(cC)),a}function Zd({delta:t,initialLayout:e,panelConstraints:a,pivotIndices:n,prevLayout:r,trigger:i}){if(mn(t,0))return e;let o=[...e],[s,l]=n;we(s!=null,"Invalid first pivot index"),we(l!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{let f=t<0?l:s,d=a[f];we(d,`Panel constraints not found for index ${f}`);let{collapsedSize:h=0,collapsible:p,minSize:m=0}=d;if(p){let b=e[f];if(we(b!=null,`Previous layout not found for panel index ${f}`),mn(b,h)){let g=m-b;Ws(g,Math.abs(t))>0&&(t=t<0?0-g:g)}}}{let f=t<0?s:l,d=a[f];we(d,`No panel constraints found for index ${f}`);let{collapsedSize:h=0,collapsible:p,minSize:m=0}=d;if(p){let b=e[f];if(we(b!=null,`Previous layout not found for panel index ${f}`),mn(b,m)){let g=b-h;Ws(g,Math.abs(t))>0&&(t=t<0?0-g:g)}}}}{let f=t<0?1:-1,d=t<0?l:s,h=0;for(;;){let m=e[d];we(m!=null,`Previous layout not found for panel index ${d}`);let g=Wu({panelConstraints:a,panelIndex:d,size:100})-m;if(h+=g,d+=f,d<0||d>=a.length)break}let p=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-p:p}{let d=t<0?s:l;for(;d>=0&&d<a.length;){let h=Math.abs(t)-Math.abs(u),p=e[d];we(p!=null,`Previous layout not found for panel index ${d}`);let m=p-h,b=Wu({panelConstraints:a,panelIndex:d,size:m});if(!mn(p,b)&&(u+=p-b,o[d]=b,u.toFixed(3).localeCompare(Math.abs(t).toFixed(3),void 0,{numeric:!0})>=0))break;t<0?d--:d++}}if(lK(r,o))return r;{let f=t<0?l:s,d=e[f];we(d!=null,`Previous layout not found for panel index ${f}`);let h=d+u,p=Wu({panelConstraints:a,panelIndex:f,size:h});if(o[f]=p,!mn(p,h)){let m=h-p,g=t<0?l:s;for(;g>=0&&g<a.length;){let O=o[g];we(O!=null,`Previous layout not found for panel index ${g}`);let x=O+m,S=Wu({panelConstraints:a,panelIndex:g,size:x});if(mn(O,S)||(m-=S-O,o[g]=S),mn(m,0))break;t>0?g--:g++}}}let c=o.reduce((f,d)=>d+f,0);return mn(c,100)?o:r}function uK({layout:t,panelsArray:e,pivotIndices:a}){let n=0,r=100,i=0,o=0,s=a[0];we(s!=null,"No pivot index found"),e.forEach((f,d)=>{let{constraints:h}=f,{maxSize:p=100,minSize:m=0}=h;d===s?(n=m,r=p):(i+=m,o+=p)});let l=Math.min(r,100-i),u=Math.max(n,100-o),c=t[s];return{valueMax:l,valueMin:u,valueNow:c}}function Hd(t,e=document){return Array.from(e.querySelectorAll(`[${yt.resizeHandleId}][data-panel-group-id="${t}"]`))}function gz(t,e,a=document){let r=Hd(t,a).findIndex(i=>i.getAttribute(yt.resizeHandleId)===e);return r??null}function Oz(t,e,a){let n=gz(t,e,a);return n!=null?[n,n+1]:[-1,-1]}function cK(t){return t instanceof HTMLElement?!0:typeof t=="object"&&t!==null&&"tagName"in t&&"getAttribute"in t}function bz(t,e=document){if(cK(e)&&e.dataset.panelGroupId==t)return e;let a=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return a||null}function mO(t,e=document){let a=e.querySelector(`[${yt.resizeHandleId}="${t}"]`);return a||null}function fK(t,e,a,n=document){var r,i,o,s;let l=mO(e,n),u=Hd(t,n),c=l?u.indexOf(l):-1,f=(r=(i=a[c])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,d=(o=(s=a[c+1])===null||s===void 0?void 0:s.id)!==null&&o!==void 0?o:null;return[f,d]}function dK({committedValuesRef:t,eagerValuesRef:e,groupId:a,layout:n,panelDataArray:r,panelGroupElement:i,setLayout:o}){(0,J.useRef)({didWarnAboutMissingResizeHandle:!1}),Ys(()=>{if(!i)return;let s=Hd(a,i);for(let l=0;l<r.length-1;l++){let{valueMax:u,valueMin:c,valueNow:f}=uK({layout:n,panelsArray:r,pivotIndices:[l,l+1]}),d=s[l];if(d!=null){let h=r[l];we(h,`No panel data found for index "${l}"`),d.setAttribute("aria-controls",h.id),d.setAttribute("aria-valuemax",""+Math.round(u)),d.setAttribute("aria-valuemin",""+Math.round(c)),d.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{s.forEach((l,u)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[a,n,r,i]),(0,J.useEffect)(()=>{if(!i)return;let s=e.current;we(s,"Eager values not found");let{panelDataArray:l}=s,u=bz(a,i);we(u!=null,`No group found for id "${a}"`);let c=Hd(a,i);we(c,`No resize handles found for group id "${a}"`);let f=c.map(d=>{let h=d.getAttribute(yt.resizeHandleId);we(h,"Resize handle element has no handle id attribute");let[p,m]=fK(a,h,l,i);if(p==null||m==null)return()=>{};let b=g=>{if(!g.defaultPrevented)switch(g.key){case"Enter":{g.preventDefault();let O=l.findIndex(x=>x.id===p);if(O>=0){let x=l[O];we(x,`No panel data found for index ${O}`);let S=n[O],{collapsedSize:y=0,collapsible:v,minSize:C=0}=x.constraints;if(S!=null&&v){let k=Zd({delta:mn(S,y)?C-y:y-S,initialLayout:n,panelConstraints:l.map(L=>L.constraints),pivotIndices:Oz(a,h,i),prevLayout:n,trigger:"keyboard"});n!==k&&o(k)}}break}}};return d.addEventListener("keydown",b),()=>{d.removeEventListener("keydown",b)}});return()=>{f.forEach(d=>d())}},[i,t,e,a,n,r,o])}function tz(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}function xz(t,e){let a=t==="horizontal",{x:n,y:r}=dO(e);return a?n:r}function hK(t,e,a,n,r){let i=a==="horizontal",o=mO(e,r);we(o,`No resize handle element found for id "${e}"`);let s=o.getAttribute(yt.groupId);we(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=n,u=xz(a,t),c=bz(s,r);we(c,`No group element found for id "${s}"`);let f=c.getBoundingClientRect(),d=i?f.width:f.height;return(u-l)/d*100}function pK(t,e,a,n,r,i){if(sz(t)){let o=a==="horizontal",s=0;t.shiftKey?s=100:r!=null?s=r:s=10;let l=0;switch(t.key){case"ArrowDown":l=o?0:s;break;case"ArrowLeft":l=o?-s:0;break;case"ArrowRight":l=o?s:0;break;case"ArrowUp":l=o?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return n==null?0:hK(t,e,a,n,i)}function mK({panelDataArray:t}){let e=Array(t.length),a=t.map(i=>i.constraints),n=0,r=100;for(let i=0;i<t.length;i++){let o=a[i];we(o,`Panel constraints not found for index ${i}`);let{defaultSize:s}=o;s!=null&&(n++,e[i]=s,r-=s)}for(let i=0;i<t.length;i++){let o=a[i];we(o,`Panel constraints not found for index ${i}`);let{defaultSize:s}=o;if(s!=null)continue;let l=t.length-n,u=r/l;n++,e[i]=u,r-=u}return e}function Vu(t,e,a){e.forEach((n,r)=>{let i=t[r];we(i,`Panel data not found for index ${r}`);let{callbacks:o,constraints:s,id:l}=i,{collapsedSize:u=0,collapsible:c}=s,f=a[l];if(f==null||n!==f){a[l]=n;let{onCollapse:d,onExpand:h,onResize:p}=o;p&&p(n,f),c&&(d||h)&&(h&&(f==null||yi(f,u))&&!yi(n,u)&&h(),d&&(f==null||!yi(f,u))&&yi(n,u)&&d())}})}function sO(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!=e[a])return!1;return!0}function gK({defaultSize:t,dragState:e,layout:a,panelData:n,panelIndex:r,precision:i=3}){let o=a[r],s;return o==null?s=t!=null?t.toFixed(i):"1":n.length===1?s="1":s=o.toFixed(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function OK(t,e=10){let a=null;return(...r)=>{a!==null&&clearTimeout(a),a=setTimeout(()=>{t(...r)},e)}}function az(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,a)=>{localStorage.setItem(e,a)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Sz(t){return`react-resizable-panels:${t}`}function yz(t){return t.map(e=>{let{constraints:a,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(a)}`:JSON.stringify(a)}).sort((e,a)=>e.localeCompare(a)).join(",")}function vz(t,e){try{let a=Sz(t),n=e.getItem(a);if(n){let r=JSON.parse(n);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function bK(t,e,a){var n,r;let i=(n=vz(t,a))!==null&&n!==void 0?n:{},o=yz(e);return(r=i[o])!==null&&r!==void 0?r:null}function xK(t,e,a,n,r){var i;let o=Sz(t),s=yz(e),l=(i=vz(t,r))!==null&&i!==void 0?i:{};l[s]={expandToSizes:Object.fromEntries(a.entries()),layout:n};try{r.setItem(o,JSON.stringify(l))}catch(u){console.error(u)}}function nz({layout:t,panelConstraints:e}){let a=[...t],n=a.reduce((i,o)=>i+o,0);if(a.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${a.map(i=>`${i}%`).join(", ")}`);if(!mn(n,100)&&a.length>0)for(let i=0;i<e.length;i++){let o=a[i];we(o!=null,`No layout data found for index ${i}`);let s=100/n*o;a[i]=s}let r=0;for(let i=0;i<e.length;i++){let o=a[i];we(o!=null,`No layout data found for index ${i}`);let s=Wu({panelConstraints:e,panelIndex:i,size:o});o!=s&&(r+=o-s,a[i]=s)}if(!mn(r,0))for(let i=0;i<e.length;i++){let o=a[i];we(o!=null,`No layout data found for index ${i}`);let s=o+r,l=Wu({panelConstraints:e,panelIndex:i,size:s});if(o!==l&&(r-=l-o,a[i]=l,mn(r,0)))break}return a}var SK=100,Fd={getItem:t=>(az(Fd),Fd.getItem(t)),setItem:(t,e)=>{az(Fd),Fd.setItem(t,e)}},rz={};function Cz({autoSaveId:t=null,children:e,className:a="",direction:n,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:s=null,storage:l=Fd,style:u,tagName:c="div",...f}){let d=fC(i),h=(0,J.useRef)(null),[p,m]=(0,J.useState)(null),[b,g]=(0,J.useState)([]),O=sK(),x=(0,J.useRef)({}),S=(0,J.useRef)(new Map),y=(0,J.useRef)(0),v=(0,J.useRef)({autoSaveId:t,direction:n,dragState:p,id:d,keyboardResizeBy:s,onLayout:o,storage:l}),C=(0,J.useRef)({layout:b,panelDataArray:[],panelDataArrayChanged:!1});(0,J.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,J.useImperativeHandle)(r,()=>({getId:()=>v.current.id,getLayout:()=>{let{layout:$}=C.current;return $},setLayout:$=>{let{onLayout:Y}=v.current,{layout:Z,panelDataArray:j}=C.current,W=nz({layout:$,panelConstraints:j.map(pe=>pe.constraints)});tz(Z,W)||(g(W),C.current.layout=W,Y&&Y(W),Vu(j,W,x.current))}}),[]),Ys(()=>{v.current.autoSaveId=t,v.current.direction=n,v.current.dragState=p,v.current.id=d,v.current.onLayout=o,v.current.storage=l}),dK({committedValuesRef:v,eagerValuesRef:C,groupId:d,layout:b,panelDataArray:C.current.panelDataArray,setLayout:g,panelGroupElement:h.current}),(0,J.useEffect)(()=>{let{panelDataArray:$}=C.current;if(t){if(b.length===0||b.length!==$.length)return;let Y=rz[t];Y==null&&(Y=OK(xK,SK),rz[t]=Y);let Z=[...$],j=new Map(S.current);Y(t,Z,j,b,l)}},[t,b,l]),(0,J.useEffect)(()=>{});let k=(0,J.useCallback)($=>{let{onLayout:Y}=v.current,{layout:Z,panelDataArray:j}=C.current;if($.constraints.collapsible){let W=j.map(Pt=>Pt.constraints),{collapsedSize:pe=0,panelSize:fe,pivotIndices:et}=Vs(j,$,Z);if(we(fe!=null,`Panel size not found for panel "${$.id}"`),!yi(fe,pe)){S.current.set($.id,fe);let Mt=Yu(j,$)===j.length-1?fe-pe:pe-fe,Qe=Zd({delta:Mt,initialLayout:Z,panelConstraints:W,pivotIndices:et,prevLayout:Z,trigger:"imperative-api"});sO(Z,Qe)||(g(Qe),C.current.layout=Qe,Y&&Y(Qe),Vu(j,Qe,x.current))}}},[]),L=(0,J.useCallback)(($,Y)=>{let{onLayout:Z}=v.current,{layout:j,panelDataArray:W}=C.current;if($.constraints.collapsible){let pe=W.map(vt=>vt.constraints),{collapsedSize:fe=0,panelSize:et=0,minSize:Pt=0,pivotIndices:Mt}=Vs(W,$,j),Qe=Y??Pt;if(yi(et,fe)){let vt=S.current.get($.id),qt=vt!=null&&vt>=Qe?vt:Qe,gn=Yu(W,$)===W.length-1?et-qt:qt-et,te=Zd({delta:gn,initialLayout:j,panelConstraints:pe,pivotIndices:Mt,prevLayout:j,trigger:"imperative-api"});sO(j,te)||(g(te),C.current.layout=te,Z&&Z(te),Vu(W,te,x.current))}}},[]),E=(0,J.useCallback)($=>{let{layout:Y,panelDataArray:Z}=C.current,{panelSize:j}=Vs(Z,$,Y);return we(j!=null,`Panel size not found for panel "${$.id}"`),j},[]),A=(0,J.useCallback)(($,Y)=>{let{panelDataArray:Z}=C.current,j=Yu(Z,$);return gK({defaultSize:Y,dragState:p,layout:b,panelData:Z,panelIndex:j})},[p,b]),R=(0,J.useCallback)($=>{let{layout:Y,panelDataArray:Z}=C.current,{collapsedSize:j=0,collapsible:W,panelSize:pe}=Vs(Z,$,Y);return we(pe!=null,`Panel size not found for panel "${$.id}"`),W===!0&&yi(pe,j)},[]),U=(0,J.useCallback)($=>{let{layout:Y,panelDataArray:Z}=C.current,{collapsedSize:j=0,collapsible:W,panelSize:pe}=Vs(Z,$,Y);return we(pe!=null,`Panel size not found for panel "${$.id}"`),!W||Ws(pe,j)>0},[]),Q=(0,J.useCallback)($=>{let{panelDataArray:Y}=C.current;Y.push($),Y.sort((Z,j)=>{let W=Z.order,pe=j.order;return W==null&&pe==null?0:W==null?-1:pe==null?1:W-pe}),C.current.panelDataArrayChanged=!0,O()},[O]);Ys(()=>{if(C.current.panelDataArrayChanged){C.current.panelDataArrayChanged=!1;let{autoSaveId:$,onLayout:Y,storage:Z}=v.current,{layout:j,panelDataArray:W}=C.current,pe=null;if($){let et=bK($,W,Z);et&&(S.current=new Map(Object.entries(et.expandToSizes)),pe=et.layout)}pe==null&&(pe=mK({panelDataArray:W}));let fe=nz({layout:pe,panelConstraints:W.map(et=>et.constraints)});tz(j,fe)||(g(fe),C.current.layout=fe,Y&&Y(fe),Vu(W,fe,x.current))}}),Ys(()=>{let $=C.current;return()=>{$.layout=[]}},[]);let M=(0,J.useCallback)($=>{let Y=!1,Z=h.current;return Z&&window.getComputedStyle(Z,null).getPropertyValue("direction")==="rtl"&&(Y=!0),function(W){W.preventDefault();let pe=h.current;if(!pe)return()=>null;let{direction:fe,dragState:et,id:Pt,keyboardResizeBy:Mt,onLayout:Qe}=v.current,{layout:vt,panelDataArray:qt}=C.current,{initialLayout:Ne}=et??{},gn=Oz(Pt,$,pe),te=pK(W,$,fe,et,Mt,pe),Xo=fe==="horizontal";Xo&&Y&&(te=-te);let Dt=qt.map(Gr=>Gr.constraints),$e=Zd({delta:te,initialLayout:Ne??vt,panelConstraints:Dt,pivotIndices:gn,prevLayout:vt,trigger:sz(W)?"keyboard":"mouse-or-touch"}),qo=!sO(vt,$e);(lz(W)||uz(W))&&y.current!=te&&(y.current=te,!qo&&te!==0?Xo?sC($,te<0?fz:dz):sC($,te<0?hz:pz):sC($,0)),qo&&(g($e),C.current.layout=$e,Qe&&Qe($e),Vu(qt,$e,x.current))}},[]),_=(0,J.useCallback)(($,Y)=>{let{onLayout:Z}=v.current,{layout:j,panelDataArray:W}=C.current,pe=W.map(vt=>vt.constraints),{panelSize:fe,pivotIndices:et}=Vs(W,$,j);we(fe!=null,`Panel size not found for panel "${$.id}"`);let Mt=Yu(W,$)===W.length-1?fe-Y:Y-fe,Qe=Zd({delta:Mt,initialLayout:j,panelConstraints:pe,pivotIndices:et,prevLayout:j,trigger:"imperative-api"});sO(j,Qe)||(g(Qe),C.current.layout=Qe,Z&&Z(Qe),Vu(W,Qe,x.current))},[]),D=(0,J.useCallback)(($,Y)=>{let{layout:Z,panelDataArray:j}=C.current,{collapsedSize:W=0,collapsible:pe}=Y,{collapsedSize:fe=0,collapsible:et,maxSize:Pt=100,minSize:Mt=0}=$.constraints,{panelSize:Qe}=Vs(j,$,Z);Qe!=null&&(pe&&et&&yi(Qe,W)?yi(W,fe)||_($,fe):Qe<Mt?_($,Mt):Qe>Pt&&_($,Pt))},[_]),N=(0,J.useCallback)(($,Y)=>{let{direction:Z}=v.current,{layout:j}=C.current;if(!h.current)return;let W=mO($,h.current);we(W,`Drag handle element not found for id "${$}"`);let pe=xz(Z,Y);m({dragHandleId:$,dragHandleRect:W.getBoundingClientRect(),initialCursorPosition:pe,initialLayout:j})},[]),X=(0,J.useCallback)(()=>{m(null)},[]),T=(0,J.useCallback)($=>{let{panelDataArray:Y}=C.current,Z=Yu(Y,$);Z>=0&&(Y.splice(Z,1),delete x.current[$.id],C.current.panelDataArrayChanged=!0,O())},[O]),ae=(0,J.useMemo)(()=>({collapsePanel:k,direction:n,dragState:p,expandPanel:L,getPanelSize:E,getPanelStyle:A,groupId:d,isPanelCollapsed:R,isPanelExpanded:U,reevaluatePanelConstraints:D,registerPanel:Q,registerResizeHandle:M,resizePanel:_,startDragging:N,stopDragging:X,unregisterPanel:T,panelGroupElement:h.current}),[k,p,n,L,E,A,d,R,U,D,Q,M,_,N,X,T]),le={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return(0,J.createElement)(fO.Provider,{value:ae},(0,J.createElement)(c,{...f,children:e,className:a,id:i,ref:h,style:{...le,...u},[yt.group]:"",[yt.groupDirection]:n,[yt.groupId]:d}))}var pC=(0,J.forwardRef)((t,e)=>(0,J.createElement)(Cz,{...t,forwardedRef:e}));Cz.displayName="PanelGroup";pC.displayName="forwardRef(PanelGroup)";function Yu(t,e){return t.findIndex(a=>a===e||a.id===e.id)}function Vs(t,e,a){let n=Yu(t,e),i=n===t.length-1?[n-1,n]:[n,n+1],o=a[n];return{...e.constraints,panelSize:o,pivotIndices:i}}function yK({disabled:t,handleId:e,resizeHandler:a,panelGroupElement:n}){(0,J.useEffect)(()=>{if(t||a==null||n==null)return;let r=mO(e,n);if(r==null)return;let i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),a(o);break}case"F6":{o.preventDefault();let s=r.getAttribute(yt.groupId);we(s,`No group element found for id "${s}"`);let l=Hd(s,n),u=gz(s,e,n);we(u!==null,`No resize element found for id "${e}"`);let c=o.shiftKey?u>0?u-1:l.length-1:u+1<l.length?u+1:0;l[c].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[n,t,e,a])}function mC({children:t=null,className:e="",disabled:a=!1,hitAreaMargins:n,id:r,onBlur:i,onClick:o,onDragging:s,onFocus:l,onPointerDown:u,onPointerUp:c,style:f={},tabIndex:d=0,tagName:h="div",...p}){var m,b;let g=(0,J.useRef)(null),O=(0,J.useRef)({onClick:o,onDragging:s,onPointerDown:u,onPointerUp:c});(0,J.useEffect)(()=>{O.current.onClick=o,O.current.onDragging=s,O.current.onPointerDown=u,O.current.onPointerUp=c});let x=(0,J.useContext)(fO);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:S,groupId:y,registerResizeHandle:v,startDragging:C,stopDragging:k,panelGroupElement:L}=x,E=fC(r),[A,R]=(0,J.useState)("inactive"),[U,Q]=(0,J.useState)(!1),[M,_]=(0,J.useState)(null),D=(0,J.useRef)({state:A});Ys(()=>{D.current.state=A}),(0,J.useEffect)(()=>{if(a)_(null);else{let ae=v(E);_(()=>ae)}},[a,E,v]);let N=(m=n?.coarse)!==null&&m!==void 0?m:15,X=(b=n?.fine)!==null&&b!==void 0?b:5;return(0,J.useEffect)(()=>{if(a||M==null)return;let ae=g.current;we(ae,"Element ref not attached");let le=!1;return iK(E,ae,S,{coarse:N,fine:X},(Y,Z,j)=>{if(!Z){R("inactive");return}switch(Y){case"down":{R("drag"),le=!1,we(j,'Expected event to be defined for "down" action'),C(E,j);let{onDragging:W,onPointerDown:pe}=O.current;W?.(!0),pe?.();break}case"move":{let{state:W}=D.current;le=!0,W!=="drag"&&R("hover"),we(j,'Expected event to be defined for "move" action'),M(j);break}case"up":{R("hover"),k();let{onClick:W,onDragging:pe,onPointerUp:fe}=O.current;pe?.(!1),fe?.(),le||W?.();break}}})},[N,S,a,X,v,E,M,C,k]),yK({disabled:a,handleId:E,resizeHandler:M,panelGroupElement:L}),(0,J.createElement)(h,{...p,children:t,className:e,id:r,onBlur:()=>{Q(!1),i?.()},onFocus:()=>{Q(!0),l?.()},ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...f},tabIndex:d,[yt.groupDirection]:S,[yt.groupId]:y,[yt.resizeHandle]:"",[yt.resizeHandleActive]:A==="drag"?"pointer":U?"keyboard":void 0,[yt.resizeHandleEnabled]:!a,[yt.resizeHandleId]:E,[yt.resizeHandleState]:A})}mC.displayName="PanelResizeHandle";var jd=B(ue(),1);function Ku({className:t,...e}){return(0,jd.jsx)(pC,{"data-slot":"resizable-panel-group",className:Ke("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...e})}function Zn({...t}){return(0,jd.jsx)(dC,{"data-slot":"resizable-panel",...t})}function Ci({withHandle:t,className:e,...a}){return(0,jd.jsx)(mC,{"data-slot":"resizable-handle",className:Ke("group relative flex w-px items-center justify-center bg-border transition-colors hover:bg-primary/60 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden","data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full",'after:absolute after:top-0 after:bottom-0 after:-left-1 after:-right-1 after:content-[""]',"data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:right-0 data-[panel-group-direction=vertical]:after:-top-1 data-[panel-group-direction=vertical]:after:-bottom-1",e),...a,children:t?(0,jd.jsx)("div",{className:"z-10 flex h-3 w-1 shrink-0 rounded-full bg-border transition-colors group-hover:bg-primary data-[panel-group-direction=vertical]:h-1 data-[panel-group-direction=vertical]:w-3"}):null})}var Ju=B(Ce(),1);var Ks=B(ue(),1),CK=Object.defineProperty,Vd=(t,e)=>CK(t,"name",{value:e,configurable:!0}),wz={Automatic:"automatic",Manual:"manual"},gC="Tabs",[wK,woe]=Jn(gC,[nu]),kz=nu(),[kK,Lz]=wK(gC),Ez=Ju.forwardRef(Vd(function(e,a){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:l,activationMode:u=wz.Automatic,...c}=e,f=Os(l),[d,h]=Pr({prop:r,onChange:i,defaultProp:o??"",caller:gC});return(0,Ks.jsx)(kK,{scope:n,baseId:Ef(),value:d,onValueChange:h,orientation:s,dir:f,activationMode:u,children:(0,Ks.jsx)(Ua.div,{dir:f,"data-orientation":s,...c,ref:a})})},"Tabs")),LK="TabsList",_z=Ju.forwardRef(Vd(function(e,a){let{__scopeTabs:n,loop:r=!0,...i}=e,o=Lz(LK,n),s=kz(n);return(0,Ks.jsx)(Kp,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,Ks.jsx)(Ua.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:a})})},"TabsList")),EK="TabsTrigger",Az=Ju.forwardRef(Vd(function(e,a){let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=Lz(EK,n),l=kz(n),u=Rz(s.baseId,r),c=Tz(s.baseId,r),f=r===s.value;return(0,Ks.jsx)(Jp,{asChild:!0,...l,focusable:!i,active:f,children:(0,Ks.jsx)(Ua.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:Xa(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?(d.currentTarget.focus(),s.onValueChange(r)):d.preventDefault()}),onKeyDown:Xa(e.onKeyDown,d=>{i||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:Xa(e.onFocus,()=>{let d=s.activationMode!==wz.Manual;!f&&!i&&d&&s.onValueChange(r)})})})},"TabsTrigger"));function Rz(t,e){return`${t}-trigger-${e}`}Vd(Rz,"makeTriggerId");function Tz(t,e){return`${t}-content-${e}`}Vd(Tz,"makeContentId");var OC=B(ue(),1),Iz=Ez;function Pz({className:t,...e}){return(0,OC.jsx)(_z,{"data-slot":"tabs-list",className:Ke("inline-flex w-fit items-center gap-0.5",t),...e})}function Mz({className:t,...e}){return(0,OC.jsx)(Az,{"data-slot":"tabs-trigger",className:Ke("inline-flex h-6 items-center justify-center gap-1 rounded-md px-2 font-mono text-xs font-medium whitespace-nowrap text-muted-foreground outline-none transition-colors","hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-muted data-[state=active]:text-foreground",t),...e})}var he=B(ue(),1),AK=800,RK=[{value:"edit",label:(0,he.jsx)(ye,{name:"pencil",className:"size-3.5"}),title:"Edit"},{value:"split",label:(0,he.jsx)(ye,{name:"columns",className:"size-3.5"}),title:"Edit and preview"},{value:"preview",label:(0,he.jsx)(ye,{name:"eye",className:"size-3.5"}),title:"Preview"}],TK=[{value:"row",label:(0,he.jsx)(ye,{name:"columns",className:"size-3.5"}),title:"Side by side"},{value:"column",label:(0,he.jsx)(ye,{name:"rows",className:"size-3.5"}),title:"Stacked"}];function gO(t){return t.tone==="error"?{text:`failed: ${t.error??""}`,tone:"text-destructive"}:t.tone==="conflict"?{text:"changed elsewhere",tone:"text-warning"}:t.tone==="saving"?{text:"saving\u2026",tone:"text-muted-foreground"}:t.text!==t.savedText?{text:"unsaved\u2026",tone:"text-muted-foreground"}:t.savedAt?{text:`${t.origin==="saved"?"saved":"on disk"} ${Tf(t.savedAt)}`,tone:"text-muted-foreground"}:{text:"",tone:""}}function IK({text:t}){let{rows:e,body:a}=(0,gt.useMemo)(()=>cT(t),[t]);return(0,he.jsxs)("div",{className:"mr-scroll h-full overflow-y-auto bg-card p-4",children:[e.length>0&&(0,he.jsx)("dl",{className:"mb-4 grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 rounded-lg border border-border bg-muted/40 p-3 text-xs",children:e.map(n=>(0,he.jsxs)(gt.Fragment,{children:[(0,he.jsx)("dt",{className:"font-mono text-muted-foreground",children:n.key}),(0,he.jsx)("dd",{className:"truncate",title:n.value,children:n.value||"\u2014"})]},n.key))}),(0,he.jsx)(ws,{source:a,render:vm,className:xs})]})}function PK({entry:t,onKeep:e,onTake:a}){return t.tone!=="conflict"?null:(0,he.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-b border-destructive/40 bg-destructive/10 px-3 py-1.5 text-xs",children:[(0,he.jsx)(ye,{name:"alert",className:"size-3.5 text-destructive"}),(0,he.jsxs)("span",{children:[(0,he.jsx)("span",{className:"font-mono",children:t.name})," changed on disk while you were typing."]}),(0,he.jsxs)("div",{className:"ml-auto flex gap-1",children:[(0,he.jsx)(pt,{variant:"outline",size:"xs",onClick:e,children:"Keep mine"}),(0,he.jsx)(pt,{variant:"destructive",size:"xs",onClick:a,children:"Take theirs"})]})]})}function Dz({room:t,roomsPath:e,docs:a}){let[n,r]=(0,gt.useState)(()=>Object.fromEntries(a.map(L=>[L,{name:L,text:"",savedText:"",mtime:0,hash:"",savedAt:0,tone:"idle",origin:"disk"}]))),i=(0,gt.useRef)(n),o=(0,gt.useRef)(new Map),[s,l]=(0,gt.useState)(()=>Wn("modelroom.docs.active",a[0]??"")),[u,c]=(0,gt.useState)(()=>Wn("modelroom.docs.mode",window.innerWidth>1200?"split":"edit")),[f,d]=(0,gt.useState)(()=>Wn("modelroom.docs.layout","tabs")),[h,p]=(0,gt.useState)(()=>Wn("modelroom.docs.orientation","row")),m=(0,gt.useCallback)((L,E)=>{let A=i.current[L];A&&(i.current={...i.current,[L]:{...A,...E}},r(i.current))},[]);(0,gt.useEffect)(()=>{Kn("modelroom.docs.active",s)},[s]),(0,gt.useEffect)(()=>{Kn("modelroom.docs.mode",u)},[u]),(0,gt.useEffect)(()=>{Kn("modelroom.docs.layout",f)},[f]),(0,gt.useEffect)(()=>{Kn("modelroom.docs.orientation",h)},[h]);let b=(0,gt.useCallback)(async(L,E)=>{let A=await j_(t,L).catch(()=>null);if(!A)return;if(A.error){m(L,{tone:"error",error:A.error});return}let R=i.current[L];if(!E&&R&&R.text!==R.savedText)return;let U=R!==void 0&&A.text===R.savedText;m(L,{text:A.text,savedText:A.text,mtime:A.mtime,hash:A.hash,savedAt:U&&R?R.savedAt:A.mtime||Date.now(),tone:"saved",origin:U&&R?.origin==="saved"?"saved":"disk",error:void 0,conflict:void 0})},[m,t]),g=(0,gt.useCallback)(async L=>{let E=i.current[L];if(!E||E.text===E.savedText)return;m(L,{tone:"saving"});let{ok:A,status:R,data:U}=await V_({room:t,name:L,text:E.text,hash:E.hash,mtime:E.mtime});if(A){m(L,{mtime:U.mtime??E.mtime,hash:U.hash??E.hash,savedText:E.text,savedAt:Date.now(),tone:"saved",origin:"saved",error:void 0});return}if(R===409){m(L,{tone:"conflict",conflict:{text:U.text??"",hash:U.hash??""}});return}m(L,{tone:"error",error:U.error??String(R)})},[m,t]),O=(0,gt.useCallback)((L,E)=>{m(L,{text:E,tone:i.current[L]?.tone==="conflict"?"conflict":"idle"});let A=o.current.get(L);A!==void 0&&window.clearTimeout(A),o.current.set(L,window.setTimeout(()=>{o.current.delete(L),g(L)},AK))},[m,g]);(0,gt.useEffect)(()=>{for(let L of a)b(L,!0);return()=>{for(let L of o.current.values())window.clearTimeout(L);o.current.clear()}},[a,b]),rn("change",L=>{if(!L.file.startsWith(`${e}/${t}/`))return;let E=L.file.split("/").pop()??"";a.includes(E)&&b(E,!1)});let x=async L=>{let E=i.current[L];E?.conflict&&(m(L,{hash:E.conflict.hash,tone:"idle",conflict:void 0}),await g(L))},S=L=>{let E=i.current[L];E?.conflict&&m(L,{text:E.conflict.text,savedText:E.conflict.text,hash:E.conflict.hash,savedAt:Date.now(),tone:"saved",origin:"disk",conflict:void 0})},y=n[s]??Object.values(n)[0],v=h==="row"?{gridTemplateColumns:"repeat(auto-fit, minmax(260px, 1fr))",gridAutoRows:"minmax(200px, 1fr)"}:{gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"minmax(200px, 1fr)"},C=(L,E)=>{let A=(0,he.jsx)(jB,{value:L.text,onChange:M=>O(L.name,M)}),R=(0,he.jsx)(IK,{text:L.text}),Q=u==="edit"?A:u==="preview"?R:(0,he.jsxs)(Ku,{direction:h==="column"?"vertical":"horizontal",autoSaveId:"modelroom.docs.split",children:[(0,he.jsx)(Zn,{defaultSize:50,minSize:15,children:A}),(0,he.jsx)(Ci,{withHandle:!0}),(0,he.jsx)(Zn,{defaultSize:50,minSize:15,children:R})]});return(0,he.jsxs)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[E&&(0,he.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1",children:[(0,he.jsx)(ye,{name:"file",className:"size-3.5 text-muted-foreground"}),(0,he.jsx)("span",{className:"font-mono text-xs",children:L.name}),(0,he.jsx)("span",{className:Ke("ml-auto text-[11px]",gO(L).tone),children:gO(L).text})]}),(0,he.jsx)(PK,{entry:L,onKeep:()=>{x(L.name)},onTake:()=>S(L.name)}),(0,he.jsx)("div",{className:"min-h-0 flex-1",children:Q})]})};if(!y)return(0,he.jsx)("div",{className:"p-4 text-sm text-muted-foreground",children:"No docs configured."});let k=(0,he.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[f==="tabs"&&(0,he.jsx)("span",{className:Ke("text-[11px]",gO(y).tone),children:gO(y).text}),(0,he.jsx)(ar,{value:u,onChange:c,options:RK}),u==="split"&&(0,he.jsx)(ar,{value:h,onChange:p,options:TK}),(0,he.jsx)(ar,{value:f,onChange:d,options:[{value:"tabs",label:"Tabs",title:"One doc at a time"},{value:"tiles",label:"Tiles",title:"Every doc at once"}]})]});return f==="tabs"?(0,he.jsxs)(Iz,{value:s,onValueChange:l,className:"flex min-h-0 min-w-0 flex-1 flex-col bg-card",children:[(0,he.jsxs)("header",{className:"flex flex-wrap items-center gap-2 border-b border-border px-2 py-1.5",children:[(0,he.jsx)(Pz,{className:"mr-scroll min-w-0 overflow-x-auto",children:a.map(L=>(0,he.jsxs)(Mz,{value:L,children:[uT(L),n[L]&&n[L].text!==n[L].savedText&&(0,he.jsx)("span",{className:"size-1.5 rounded-full bg-primary"})]},L))}),k]}),(0,he.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:C(y,!1)})]}):(0,he.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-1 flex-col bg-card",children:[(0,he.jsxs)("header",{className:"flex flex-wrap items-center gap-2 border-b border-border px-2 py-1.5",children:[(0,he.jsx)("span",{className:"px-1 text-sm font-medium",children:"Docs"}),k]}),(0,he.jsx)("div",{className:"mr-scroll grid min-h-0 flex-1 gap-px overflow-y-auto bg-border",style:v,children:a.map(L=>{let E=n[L];return E?(0,he.jsx)("div",{className:"flex min-h-0 min-w-0 flex-col overflow-hidden bg-card",children:C(E,!0)},L):null})})]})}var Js=B(Ce(),1);var xe=B(ue(),1),Qz=({children:t})=>(0,xe.jsx)("div",{className:"text-[11px] tracking-wide text-muted-foreground uppercase",children:t}),Fr=({label:t,value:e})=>(0,xe.jsxs)("div",{className:"flex items-baseline justify-between gap-2 text-sm",children:[(0,xe.jsx)("span",{className:"text-muted-foreground",children:t}),(0,xe.jsx)("span",{className:"text-right font-mono break-all",children:e})]});function MK({pct:t}){let e=t>=85?"bg-destructive":t>=70?"bg-warning":"bg-success";return(0,xe.jsx)("div",{className:"h-2 w-full overflow-hidden rounded-full bg-muted",children:(0,xe.jsx)("div",{className:`h-full ${e}`,style:{width:`${J_(t)}%`}})})}function Nz({room:t}){let[e,a]=(0,Js.useState)(null),[n,r]=(0,Js.useState)(!1),i=(0,Js.useCallback)(async()=>{r(!0);let c=await Np(t).catch(()=>null);a(c),r(!1)},[t]);(0,Js.useEffect)(()=>{i()},[i]),rn("chat-done",c=>{c.room===t&&i()});let o=e?.stats,s=o?.tokens??null,l=s?s.input+s.cacheRead:0,u=l>0&&s?Math.round(s.cacheRead/l*100):0;return(0,xe.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-col bg-card",children:[(0,xe.jsxs)("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[(0,xe.jsx)("span",{className:"text-sm font-medium",children:"\u30BB\u30C3\u30B7\u30E7\u30F3"}),n&&(0,xe.jsx)(ye,{name:"loader",className:"size-3.5 animate-spin text-muted-foreground"}),(0,xe.jsxs)(pt,{variant:"ghost",size:"xs",className:"ml-auto",onClick:()=>{i()},title:"refresh",children:[(0,xe.jsx)(ye,{name:"refresh",className:"size-3.5"}),"refresh"]})]}),(0,xe.jsx)("div",{className:"mr-scroll flex flex-1 flex-col gap-3 overflow-y-auto p-3",children:!e||!e.available?(0,xe.jsx)("p",{className:"text-sm text-muted-foreground",children:"\u3053\u306E\u90E8\u5C4B\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u60C5\u5831\u306F opencode \u30A2\u30C0\u30D7\u30BF\u306E\u3068\u304D\u3060\u3051\u8868\u793A\u3057\u307E\u3059\u3002"}):(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Qz,{children:"\u30BB\u30C3\u30B7\u30E7\u30F3"}),e.context?(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsxs)("div",{className:"flex items-baseline justify-between gap-2 text-sm",children:[(0,xe.jsx)("span",{className:"text-muted-foreground",children:"\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8"}),(0,xe.jsxs)("span",{className:"font-mono",children:[e.context.pct,"% \u30FB ",iu(e.context.used)]})]}),(0,xe.jsx)(MK,{pct:e.context.pct}),e.context.pct>=70&&(0,xe.jsxs)("div",{className:"text-xs text-warning",children:[e.context.pct,"% \u2014 compact \u3092\u691C\u8A0E\uFF08\u4E0A\u9650 ",iu(e.context.limit),"\uFF09"]})]}):(0,xe.jsx)("div",{className:"text-xs text-muted-foreground",children:"\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8: \u8A08\u6E2C\u3067\u304D\u307E\u305B\u3093\uFF08\u307E\u3060\u5B9F\u884C\u304C\u306A\u3044\u304B\u3001\u4E0A\u9650\u304C\u4E0D\u660E\uFF09"}),(0,xe.jsx)(Fr,{label:"\u8CBB\u7528",value:o?.cost!=null?`$${Number(o.cost).toFixed(4)}`:"\u2014"}),s&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Fr,{label:"\u30C8\u30FC\u30AF\u30F3 \u2191",value:iu(s.input)}),(0,xe.jsx)(Fr,{label:"\u30C8\u30FC\u30AF\u30F3 \u2193",value:iu(s.output)}),(0,xe.jsx)(Fr,{label:"reasoning",value:iu(s.reasoning)}),(0,xe.jsx)(Fr,{label:"\u30AD\u30E3\u30C3\u30B7\u30E5",value:`${u}%`})]}),(0,xe.jsx)(Fr,{label:"\u72B6\u614B",value:o?.outcome??"\u2014"}),o?.model&&(0,xe.jsx)(Fr,{label:"model",value:o.model}),e.workspace&&(0,xe.jsx)(Fr,{label:"workspace",value:e.workspace}),e.mcp&&e.mcp.length>0&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Qz,{children:"MCP"}),e.mcp.map(c=>(0,xe.jsx)(Fr,{label:c.name,value:c.error?`${c.status}: ${c.error}`:c.status},c.name))]}),e.skills&&e.skills.length>0&&(0,xe.jsx)(Fr,{label:"\u30B9\u30AD\u30EB",value:String(e.skills.length)})]})})]})}var $z=B(ue(),1),DK=Xp("inline-flex w-fit shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium [&_svg]:pointer-events-none [&_svg]:size-3",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"border-border text-foreground",muted:"border-transparent bg-muted text-muted-foreground",success:"border-transparent bg-success text-success-content",warning:"border-transparent bg-warning text-warning-content"}},defaultVariants:{variant:"default"}});function ec({className:t,variant:e,...a}){return(0,$z.jsx)("span",{"data-slot":"badge",className:Ke(DK({variant:e}),t),...a})}var me=B(ue(),1);function QK(t){let[e,a]=(0,Pa.useState)(()=>window.matchMedia(t).matches);return(0,Pa.useEffect)(()=>{let n=window.matchMedia(t),r=()=>a(n.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[t]),e}var NK=t=>/adopt|approv|done|complete|accept/i.test(t??"")?"success":/review/i.test(t??"")?"warning":"muted";function Bz(){let t=decodeURIComponent(location.pathname.replace(/^\/room\//,"").split("?")[0]??""),[e,a]=(0,Pa.useState)(null),[n,r]=(0,Pa.useState)(null),i=yA(t),{status:o,connected:s}=Lx(),l=(0,Pa.useCallback)(()=>{(async()=>{try{let E=await H_(t),A=E;A.error||!E.room?r(A.error??"cannot load this room"):a(E)}catch{r("cannot load this room")}})()},[t]);(0,Pa.useEffect)(()=>{l()},[l]),rn("chat-done",E=>{E.room===t&&l()});let[u,c]=(0,Pa.useState)(()=>Wn("modelroom.theme",document.documentElement.dataset.theme==="dark"?"dark":"light"));(0,Pa.useEffect)(()=>{document.documentElement.dataset.theme=u,Kn("modelroom.theme",u)},[u]);let f=QK("(max-width: 1023px)"),[d,h]=(0,Pa.useState)("chat"),[p,m]=(0,Pa.useState)(()=>Wn("modelroom.panels.session",!0));(0,Pa.useEffect)(()=>{Kn("modelroom.panels.session",p)},[p]);let b=e?.room.title??e?.room.name??t;(0,Pa.useEffect)(()=>{document.title=`${b} \u2014 modelroom`},[b]);let g=async()=>{if(i.running||!window.confirm("Start a new session for this room? The conversation context resets."))return;let E=await W_(t);E.sessionId&&(i.setSessionId(E.sessionId),i.notice("new session started"))};if(n)return(0,me.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,me.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6 text-center",children:[(0,me.jsx)("p",{className:"text-sm text-muted-foreground",children:n}),(0,me.jsx)(pt,{variant:"outline",size:"sm",className:"mt-3",asChild:!0,children:(0,me.jsx)("a",{href:"/",children:"\u2190 Rooms"})})]})});if(!e)return(0,me.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,me.jsx)(ye,{name:"loader",className:"size-4 animate-spin"}),"loading room\u2026"]});let{config:O}=e,x=`${O.agent.adapter} \xB7 ${O.agent.command}${O.agent.model?` \xB7 ${O.agent.model}`:""}`,S=i.sessionId?`session ${i.sessionId.slice(0,16)}\u2026`:"",y=o?.phase==="chat"||o?.phase==="rendering",v=(0,me.jsx)(_M,{room:t,chat:i,agentLabel:x}),C=(0,me.jsx)(Dz,{room:t,roomsPath:O.rooms,docs:O.docs},t),k=(0,me.jsx)(lT,{room:t,roomsPath:O.rooms,artifact:O.artifact,info:e.room}),L=(0,me.jsx)(Nz,{room:t});return(0,me.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,me.jsxs)("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b border-border bg-card px-3",children:[(0,me.jsx)(pt,{variant:"ghost",size:"sm",asChild:!0,children:(0,me.jsxs)("a",{href:"/",children:[(0,me.jsx)(ye,{name:"arrow-left",className:"size-4"}),"Rooms"]})}),(0,me.jsx)("span",{className:"truncate font-semibold",children:b}),(0,me.jsxs)(ec,{variant:"outline",className:"hidden font-mono md:inline-flex",children:[O.rooms,"/",e.room.name]}),e.room.status&&(0,me.jsx)(ec,{variant:NK(e.room.status),children:e.room.status}),(0,me.jsxs)("div",{className:"ml-auto flex items-center gap-1.5",children:[(0,me.jsx)("span",{className:"hidden font-mono text-[11px] text-muted-foreground lg:inline",children:S}),(0,me.jsxs)(pt,{variant:"ghost",size:"xs",onClick:()=>{g()},disabled:i.running,children:[(0,me.jsx)(ye,{name:"plus",className:"size-3.5"}),"new session"]}),(0,me.jsx)(pt,{variant:"ghost",size:"icon-xs",title:u==="dark"?"Light theme":"Dark theme",onClick:()=>c(u==="dark"?"light":"dark"),children:(0,me.jsx)(ye,{name:u==="dark"?"sun":"moon",className:"size-4"})}),!f&&(0,me.jsx)(pt,{variant:"ghost",size:"icon-xs",className:Ke(p&&"bg-muted text-foreground"),title:p?"Hide session panel":"Show session panel",onClick:()=>m(E=>!E),children:(0,me.jsx)(ye,{name:"panel-right",className:"size-4"})}),(0,me.jsxs)(ec,{variant:"outline",className:Ke(!s&&"border-destructive text-destructive"),children:[y?(0,me.jsx)(ye,{name:"loader",className:"size-3 animate-spin"}):(0,me.jsx)("span",{className:Ke("size-1.5 rounded-full",s?"bg-success":"bg-destructive")}),s?o?.message??"ready":"reconnecting\u2026"]})]})]}),f?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border bg-card px-3 py-1.5",children:(0,me.jsx)(ar,{value:d,onChange:h,options:[{value:"chat",label:"Chat"},{value:"docs",label:"Docs"},{value:"artifact",label:"Artifact"},{value:"session",label:"Session"}]})}),(0,me.jsx)("main",{className:"flex min-h-0 flex-1 flex-col",children:d==="chat"?v:d==="docs"?C:d==="artifact"?k:L})]}):(0,me.jsx)("main",{className:"flex min-h-0 flex-1",children:(0,me.jsxs)(Ku,{direction:"horizontal",autoSaveId:"modelroom.room.layout",children:[(0,me.jsx)(Zn,{defaultSize:24,minSize:16,children:v}),(0,me.jsx)(Ci,{}),(0,me.jsx)(Zn,{defaultSize:28,minSize:18,children:C}),(0,me.jsx)(Ci,{}),(0,me.jsx)(Zn,{defaultSize:30,minSize:20,children:k}),p&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Ci,{}),(0,me.jsx)(Zn,{defaultSize:18,minSize:14,children:L})]})]})})]})}var Vz=B(Ce(),1);var Xz=B(Ce(),1);var qz=B(ue(),1),$K=Object.defineProperty,Uz=(t,e)=>$K(t,"name",{value:e,configurable:!0}),bC={Horizontal:"horizontal",Vertical:"vertical"},zz=bC.Horizontal,BK=Object.values(bC),Zz=Xz.forwardRef(Uz(function(e,a){let{decorative:n,orientation:r=zz,...i}=e,o=Fz(r)?r:zz,s=o===bC.Vertical?o:void 0,l=n?{role:"none"}:{"aria-orientation":s,role:"separator"};return(0,qz.jsx)(Ua.div,{"data-orientation":o,...l,...i,ref:a})},"Separator"));function Fz(t){return BK.includes(t)}Uz(Fz,"isValidOrientation");var Hz=B(ue(),1);function Gz({className:t,orientation:e="horizontal",decorative:a=!0,...n}){return(0,Hz.jsx)(Zz,{"data-slot":"separator",decorative:a,orientation:e,className:Ke("shrink-0 bg-border",e==="horizontal"?"h-px w-full":"h-full w-px",t),...n})}var jz=B(ue(),1);function OO({className:t,...e}){return(0,jz.jsx)("div",{"data-slot":"skeleton",className:Ke("animate-pulse rounded-md bg-muted",t),...e})}var re=B(ue(),1),UK="The sign-in room is **two states**, not one:\n\n- `idle` \u2014 the form, the primary action disabled until both fields are filled.\n- `error` \u2014 the same form, with one plain sentence above it.\n\n```ts\nexport type SignInState = 'idle' | 'submitting' | 'error';\n```\n",XK=`# Spec
|
|
59
|
+
|
|
60
|
+
What the artifact cannot show.
|
|
61
|
+
|
|
62
|
+
| Key | Value |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| device | tablet 1024 |
|
|
65
|
+
| states | idle, error |
|
|
66
|
+
|
|
67
|
+
> A statement lives in one file.
|
|
68
|
+
`;function el({title:t,hint:e,children:a}){return(0,re.jsxs)("section",{className:"rounded-lg border border-border bg-card p-5",children:[(0,re.jsx)("h2",{className:"text-sm font-semibold",children:t}),e&&(0,re.jsx)("p",{className:"mt-0.5 mb-3 text-xs text-muted-foreground",children:e}),(0,re.jsx)("div",{className:"mt-3",children:a})]})}function qK(){let[t,e]=(0,Vz.useState)("split");return(0,re.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,re.jsx)(ar,{value:t,onChange:e,options:[{value:"edit",label:(0,re.jsx)(ye,{name:"pencil",className:"size-3.5"}),title:"Edit"},{value:"split",label:(0,re.jsx)(ye,{name:"columns",className:"size-3.5"}),title:"Edit and preview"},{value:"preview",label:(0,re.jsx)(ye,{name:"eye",className:"size-3.5"}),title:"Preview"}]}),(0,re.jsxs)("span",{className:"font-mono text-xs text-muted-foreground",children:["value: ",t]})]})}function Yz(){return(0,re.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-5 p-5",children:[(0,re.jsxs)("header",{className:"flex items-center gap-2",children:[(0,re.jsx)(ye,{name:"sparkles",className:"size-5 text-primary"}),(0,re.jsx)("h1",{className:"text-lg font-semibold",children:"modelroom \xB7 workshop"}),(0,re.jsx)(pt,{variant:"ghost",size:"sm",className:"ml-auto",asChild:!0,children:(0,re.jsx)("a",{href:"/",children:"\u2190 Rooms"})})]}),(0,re.jsx)(el,{title:"Icons",hint:"lucide-react, behind a name \u2014 the set shadcn uses. `size-4` unless a caller says otherwise.",children:(0,re.jsx)("div",{className:"flex flex-wrap gap-3",children:mR.map(t=>(0,re.jsxs)("div",{className:"flex w-16 flex-col items-center gap-1",children:[(0,re.jsx)(ye,{name:t,className:"size-5"}),(0,re.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground",children:t})]},t))})}),(0,re.jsx)(el,{title:"Segmented (ToggleGroup)",hint:"Radix ToggleGroup under a named wrapper: modes, orientation, layout.",children:(0,re.jsx)(qK,{})}),(0,re.jsx)(el,{title:"Button & Badge",hint:"shadcn/ui source, our tokens.",children:(0,re.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,re.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:["default","secondary","outline","ghost","destructive","link"].map(t=>(0,re.jsx)(pt,{variant:t,size:"sm",children:t},t))}),(0,re.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[["default","secondary","outline","muted","success","warning","destructive"].map(t=>(0,re.jsx)(ec,{variant:t,children:t},t)),(0,re.jsx)(pt,{size:"icon-sm",variant:"outline",title:"icon button",children:(0,re.jsx)(ye,{name:"refresh",className:"size-3.5"})}),(0,re.jsx)(Cm,{text:"npx modelroom serve",label:"copy command"}),(0,re.jsxs)(pt,{size:"sm",disabled:!0,children:[(0,re.jsx)(ye,{name:"loader",className:"size-3.5 animate-spin"}),"working"]})]}),(0,re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,re.jsx)(OO,{className:"h-4 w-40"}),(0,re.jsx)(OO,{className:"h-4 w-24"}),(0,re.jsx)(OO,{className:"size-8 rounded-full"})]})]})}),(0,re.jsx)(el,{title:"Markdown \u2014 chat",hint:"markdown-it with raw HTML disabled; code fences get a copy button.",children:(0,re.jsx)("div",{className:"max-w-[42rem] rounded-2xl rounded-tl-sm border border-border bg-card px-3 py-2 shadow-xs",children:(0,re.jsx)(ws,{source:UK,className:xs})})}),(0,re.jsx)(el,{title:"Markdown \u2014 doc preview",hint:"Frontmatter is split out by the panel, not here.",children:(0,re.jsx)("div",{className:"max-w-[42rem] rounded-lg border border-border p-4",children:(0,re.jsx)(ws,{source:XK,render:vm,className:xs})})}),(0,re.jsx)(el,{title:"Resizable",hint:"react-resizable-panels \u2014 the room's columns and the docs split.",children:(0,re.jsxs)(Ku,{direction:"horizontal",className:"h-28 overflow-hidden rounded-lg border border-border",children:[(0,re.jsx)(Zn,{defaultSize:30,minSize:15,children:(0,re.jsx)("div",{className:Ke("grid h-full place-items-center bg-muted/30 text-xs text-muted-foreground"),children:"chat"})}),(0,re.jsx)(Ci,{withHandle:!0}),(0,re.jsx)(Zn,{defaultSize:40,minSize:15,children:(0,re.jsx)("div",{className:"grid h-full place-items-center text-xs text-muted-foreground",children:"docs"})}),(0,re.jsx)(Ci,{}),(0,re.jsx)(Zn,{defaultSize:30,minSize:15,children:(0,re.jsx)("div",{className:"grid h-full place-items-center bg-muted/30 text-xs text-muted-foreground",children:"artifact"})})]})}),(0,re.jsx)(el,{title:"Separator",children:(0,re.jsxs)("div",{className:"flex h-16 items-center gap-4 rounded-lg border border-border px-4",children:[(0,re.jsx)("span",{className:"text-xs text-muted-foreground",children:"before"}),(0,re.jsx)(Gz,{orientation:"vertical"}),(0,re.jsx)("span",{className:"text-xs text-muted-foreground",children:"after"})]})})]})}var bO=B(ue(),1),xC=document.getElementById("root");if(xC){let t=xC.dataset.app==="kit"?(0,bO.jsx)(Yz,{}):(0,bO.jsx)(Bz,{});(0,Wz.createRoot)(xC).render((0,bO.jsx)(F_,{children:t}))}
|