@asrunjs/asrun 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +10 -0
- package/LICENSE +9 -21
- package/README.md +178 -469
- package/dist/scripts/go.mjs +188 -188
- package/dist/scripts/init.js +1 -1
- package/docs/agents/case-format.md +193 -0
- package/docs/agents/framework-dev.md +94 -6
- package/docs/ai-workflow.md +235 -0
- package/docs/cases.md +189 -0
- package/docs/commands.md +175 -0
- package/docs/install.md +174 -0
- package/docs/profiles.md +139 -0
- package/docs/troubleshooting.md +101 -0
- package/docs/web-ui.md +139 -0
- package/package.json +10 -2
- package/templates/AGENTS.md +2 -0
- package/ui/dist/assets/{dist-DSy3dVf4.js → dist-BudNAjOv.js} +1 -1
- package/ui/dist/assets/{dist-Ba-HC662.js → dist-C-eCSFja.js} +1 -1
- package/ui/dist/assets/{dist-C-Oyo1ZT.js → dist-CO4heSzh.js} +1 -1
- package/ui/dist/assets/{dist-C8MdhqgG.js → dist-CPLhRzom.js} +1 -1
- package/ui/dist/assets/{dist-Dq6sW5Ur.js → dist-DEPJZ3Me.js} +1 -1
- package/ui/dist/assets/{dist-CmpteMYY.js → dist-DZ7RiqmA.js} +1 -1
- package/ui/dist/assets/{dist-BGbe0-Aa.js → dist-LixzGniF.js} +1 -1
- package/ui/dist/assets/{dist-CG1pHn5m.js → dist-O_RVi4tP.js} +1 -1
- package/ui/dist/assets/{dist-BtMLMthJ.js → dist-jPS6HCJ5.js} +1 -1
- package/ui/dist/assets/{dist-jjxQutEm.js → dist-vmf3fnkM.js} +1 -1
- package/ui/dist/assets/{index-P_Yo0ZZn.js → index-BIGt8Hfz.js} +3 -3
- package/ui/dist/index.html +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-C-eCSFja.js","assets/dist-Dr9crbBz.js","assets/dist-Bw5-uxs9.js","assets/dist-BudNAjOv.js","assets/dist-DDJNvivM.js","assets/dist-CO4heSzh.js","assets/dist-BzulKuec.js","assets/dist-vmf3fnkM.js","assets/dist-LixzGniF.js","assets/dist-DEPJZ3Me.js","assets/dist-DZ7RiqmA.js","assets/dist-CgIQYY1o.js","assets/dist-jPS6HCJ5.js","assets/dist-DF3F_I8N.js","assets/dist-Dlorc3Sx.js","assets/dockerfile-DJkHQgkl.js","assets/simple-mode-DXiLM1-G.js","assets/factor-LKH5gN8L.js","assets/nsis-viPvXFiq.js","assets/pug-BqCHZ5xT.js","assets/javascript-lS2r2ifg.js","assets/dist-CPLhRzom.js","assets/dist-O_RVi4tP.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{$ as e,A as t,At as n,B as r,Bt as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,H as m,I as h,It as g,J as _,K as v,L as y,Lt as b,M as x,Mt as S,N as C,Nt as w,O as T,Ot as E,P as D,Pt as O,Q as k,R as A,Rt as j,S as M,St as N,T as P,Tt as ee,U as F,V as I,Vt as te,W as ne,X as L,Y as R,Z as z,_ as B,_t as V,a as re,at as ie,b as ae,bt as H,c as oe,ct as se,d as ce,dt as le,et as ue,f as de,ft as fe,g as pe,gt as me,h as he,ht as ge,i as _e,it as ve,j as ye,jt as be,k as xe,kt as Se,l as U,lt as Ce,m as we,mt as Te,n as Ee,nt as De,o as Oe,ot as ke,p as Ae,pt as je,q as Me,r as Ne,rt as Pe,s as Fe,st as Ie,t as Le,tt as Re,u as ze,ut as Be,v as Ve,vt as He,w as Ue,wt as W,x as We,xt as Ge,y as Ke,yt as qe,z as G,zt as Je}from"./dist-Dr9crbBz.js";var Ye=Object.create,Xe=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Qe=Object.getOwnPropertyNames,$e=Object.getPrototypeOf,et=Object.prototype.hasOwnProperty,tt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),nt=(e,t)=>{let n={};for(var r in e)Xe(n,r,{get:e[r],enumerable:!0});return t||Xe(n,Symbol.toStringTag,{value:`Module`}),n},rt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!et.call(e,s)&&s!==n&&Xe(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ze(t,s))||r.enumerable});return e},it=(e,t,n)=>(n=e==null?{}:Ye($e(e)),rt(t||!e||!e.__esModule||!et.call(e,`default`)?Xe(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var at=tt((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ee(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function te(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else te(ne.bind(null,e))}var L={map:ee,forEach:function(e,t,n){ee(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ee(e,function(){t++}),t},toArray:function(e){return ee(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ne,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=te,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),ot=tt(((e,t)=>{t.exports=at()})),st=tt((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ct=tt(((e,t)=>{t.exports=st()})),lt=tt((e=>{var t=ot();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),ut=tt(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lt()})),dt=tt((e=>{var t=ct(),n=ot(),r=ut();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),F=Symbol.for(`react.memo`),I=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),ne=Symbol.for(`react.legacy_hidden`),L=Symbol.for(`react.memo_cache_sentinel`),R=Symbol.for(`react.view_transition`),z=Symbol.for(`react.recoverable`),B=Symbol.iterator;function V(e){return typeof e!=`object`||!e?null:(e=B&&e[B]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case ee:return`SuspenseList`;case te:return`Activity`;case R:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case F:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case I:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,H=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ce=[],le=-1;function ue(e){return{current:e}}function de(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function fe(e,t){le++,ce[le]=e.current,e.current=t}var pe=ue(null),me=ue(null),he=ue(null),ge=ue(null);function _e(e,t){switch(fe(he,t),fe(me,e),fe(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=gp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}de(pe),fe(pe,e)}function ve(){de(pe),de(me),de(he)}function ye(e){var t=e.memoizedState;t!==null&&(fh._currentValue=t.memoizedState,fe(ge,e)),t=pe.current;var n=gp(t,e.type);t!==n&&(fe(me,e),fe(pe,n))}function be(e){me.current===e&&(de(pe),de(me)),ge.current===e&&(de(ge),fh._currentValue=se)}var xe,Se;function U(e){if(xe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||``,Se=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+xe+e+Se}var Ce=!1;function we(e,t){if(!e||Ce)return``;Ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -224,7 +224,7 @@ Pick the one that is installed and logged in on this machine. Your choice is rem
|
|
|
224
224
|
\${}
|
|
225
225
|
}`,{label:`interface`,detail:`definition`,type:`keyword`}),AI("type ${name} = ${type}",{label:`type`,detail:`definition`,type:`keyword`}),AI(`enum \${name} {
|
|
226
226
|
\${}
|
|
227
|
-
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),eK=new ne,tK=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function nK(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var rK=[`FunctionDeclaration`],iK={FunctionDeclaration:nK(`function`),ClassDeclaration:nK(`class`),ClassExpression:()=>!0,EnumDeclaration:nK(`constant`),TypeAliasDeclaration:nK(`type`),NamespaceDeclaration:nK(`namespace`),VariableDefinition(e,t){e.matchContext(rK)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function aK(e,t){let n=eK.get(t);if(n)return n;let i=[],a=!0;function o(t,n){let r=e.sliceString(t.from,t.to);i.push({label:r,type:n})}return t.cursor(r.IncludeAnonymous).iterate(t=>{if(a)a=!1;else if(t.name){let e=iK[t.name];if(e&&e(t,o)||tK.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of aK(e,t.node))i.push(n);return!1}}),eK.set(t,i),i}var oK=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,sK=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`JSXText`,`JSXAttributeValue`,`JSXOpenTag`,`JSXCloseTag`,`JSXSelfClosingTag`,`.`,`?.`];function cK(e){let t=d(e.state).resolveInner(e.pos,-1);if(sK.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&oK.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)tK.has(n.name)&&(r=r.concat(aK(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:oK}}var lK=Fe.define({name:`javascript`,parser:XG.configure({props:[s.add({IfStatement:he({except:/^\s*({|else\b)/}),TryStatement:he({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ke,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Ve({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":he({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),a.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":We,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let t=e.firstChild;if(!t||t.name==`JSXSelfClosingTag`)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){let t=e.firstChild?.nextSibling,n=e.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),uK={test:e=>/^JSX/.test(e.name),facet:B({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},dK=lK.configure({dialect:`ts`},`typescript`),fK=lK.configure({dialect:`jsx`,props:[C.add(e=>e.isTop?[uK]:void 0)]}),pK=lK.configure({dialect:`jsx ts`,props:[C.add(e=>e.isTop?[uK]:void 0)]},`typescript`),mK=e=>({label:e,type:`keyword`}),hK=`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(mK),gK=hK.concat([`declare`,`implements`,`private`,`protected`,`public`].map(mK));function _K(e={}){let t=e.jsx?e.typescript?pK:fK:e.typescript?dK:lK,n=e.typescript?$G.concat(gK):QG.concat(hK);return new ze(t,[lK.data.of({autocomplete:bF(sK,yF(n))}),lK.data.of({autocomplete:cK}),e.jsx?xK:[]])}function vK(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function yK(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var bK=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),xK=L.inputHandler.of((e,t,n,r,i)=>{if((bK?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!lK.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=d(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=yK(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:W.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=vK(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=yK(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),SK=nt({autoCloseTags:()=>eq,html:()=>ZK,htmlCompletionSource:()=>WK,htmlCompletionSourceWith:()=>GK,htmlLanguage:()=>XK}),CK=[`_blank`,`_self`,`_top`,`_parent`],wK=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],TK=[`get`,`post`,`put`,`delete`],EK=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],DK=[`true`,`false`],OK={},kK={a:{attrs:{href:null,ping:null,type:null,media:null,target:CK,hreflang:null}},abbr:OK,address:OK,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:OK,aside:OK,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:OK,base:{attrs:{href:null,target:CK}},bdi:OK,bdo:OK,blockquote:{attrs:{cite:null}},body:OK,br:OK,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:EK,formmethod:TK,formnovalidate:[`novalidate`],formtarget:CK,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:OK,center:OK,cite:OK,code:OK,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:OK,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:OK,div:OK,dl:OK,dt:OK,em:OK,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:OK,figure:OK,footer:OK,form:{attrs:{action:null,name:null,"accept-charset":wK,autocomplete:[`on`,`off`],enctype:EK,method:TK,novalidate:[`novalidate`],target:CK}},h1:OK,h2:OK,h3:OK,h4:OK,h5:OK,h6:OK,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:OK,hgroup:OK,hr:OK,html:{attrs:{manifest:null}},i:OK,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:EK,formmethod:TK,formnovalidate:[`novalidate`],formtarget:CK,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:OK,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:OK,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:OK,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:wK,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:OK,noscript:OK,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:OK,param:{attrs:{name:null,value:null}},pre:OK,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:OK,rt:OK,ruby:OK,samp:OK,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:wK}},section:OK,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:OK,source:{attrs:{src:null,type:null,media:null}},span:OK,strong:OK,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:OK,summary:OK,sup:OK,table:OK,tbody:OK,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:OK,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:OK,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:OK,time:{attrs:{datetime:null}},title:OK,tr:OK,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:OK,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:OK},AK={accesskey:null,class:null,contenteditable:DK,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:DK,autocorrect:DK,autocapitalize:DK,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":DK,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":DK,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":DK,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":DK,"aria-hidden":DK,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":DK,"aria-multiselectable":DK,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":DK,"aria-relevant":null,"aria-required":DK,"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},jK=`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(e=>`on`+e);for(let e of jK)AK[e]=null;var MK=class{constructor(e,t){this.tags={...kK,...e},this.globalAttrs={...AK,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};MK.default=new MK;function NK(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function PK(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`){if(t)t=!1;else return e}return null}function FK(e,t,n){return n.tags[NK(e,PK(t))]?.children||n.allTags}function IK(e,t){let n=[];for(let r=PK(t);r&&!r.type.isTop;r=PK(r.parent)){let i=NK(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var LK=/^[:\-\.\w\u00b7-\uffff]*$/;function RK(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=PK(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:FK(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(IK(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function zK(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:IK(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:LK}}function BK(e,t,n,r){let i=[],a=0;for(let r of FK(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of IK(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function VK(e,t,n,r,i){let a=PK(n),o=a?t.tags[NK(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:LK}}function HK(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=PK(n),i=r?t.tags[NK(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function UK(e,t){let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?zK(n,i,i.from,r):RK(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?RK(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?zK(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?VK(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?HK(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?BK(n,e,i,r):null}function WK(e){return UK(MK.default,e)}function GK(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new MK(t,n):MK.default;return e=>UK(r,e)}var KK=lK.parser.configure({top:`SingleExpression`}),qK=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:dK.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:fK.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:pK.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:KK},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:lK.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:pG.parser}],JK=[{name:`style`,parser:pG.parser.configure({top:`Styles`})}].concat(jK.map(e=>({name:e,parser:lK.parser}))),YK=Fe.define({name:`html`,parser:cW.configure({props:[s.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),a.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),we.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),XK=YK.configure({wrap:fW(qK,JK)});function ZK(e={}){let t=``,n;e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=fW((e.nestedLanguages||[]).concat(qK),(e.nestedAttributes||[]).concat(JK)));let r=n?YK.configure({wrap:n,dialect:t}):t?XK.configure({dialect:t}):XK;return new ze(r,[XK.data.of({autocomplete:GK(e)}),e.autoCloseTags===!1?[]:eq,_K().support,mG().support])}var QK=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `));function $K(e,t,n){for(;;){if(t.lastChild?.name!=`CloseTag`)return!1;let r=t.parent;if(!r||NK(e,r)!=n)return!0;t=r}}var eq=L.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!XK.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=d(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if((a=NK(o.doc,t.parent,n))&&!QK.has(a)&&!$K(o.doc,t.parent,a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=NK(o.doc,e,n))&&!QK.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:W.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),tq=nt({commonmarkLanguage:()=>uq,deleteMarkupBackward:()=>wq,insertNewlineContinueMarkup:()=>yq,insertNewlineContinueMarkupCommand:()=>vq,markdown:()=>Dq,markdownKeymap:()=>Tq,markdownLanguage:()=>dq,pasteURLAsLink:()=>Mq}),nq=B({commentTokens:{block:{open:`<!--`,close:`-->`}}}),rq=new I,iq=MH.configure({props:[a.add(e=>!e.is(`Block`)||e.is(`Document`)||aq(e)!=null||oq(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),rq.add(aq),s.add({Document:()=>null}),ye.add({Document:nq})]});function aq(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function oq(e){return e.name==`OrderedList`||e.name==`BulletList`}function sq(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=aq(e.type))!=null&&r<=t)break;n=e}return n.to}var cq=Ue.of((e,t,n)=>{for(let r=d(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(rq);if(e==null)continue;let t=sq(r,e);if(t>n)return{from:n,to:t}}return null});function lq(e){return new oe(nq,e,[],`markdown`)}var uq=lq(iq),dq=lq(iq.configure([QH,tU,eU,nU,{props:[a.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function fq(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):U.matchLanguageName(e,n,!0),t instanceof U)return t.support?t.support.language.parser:ce.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var pq=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+hq(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function mq(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new pq(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new pq(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new pq(i.parent,s,s+t,a[1],e,n,i))}}return r}function hq(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function gq(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=hq(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function _q(e,n){let r=/^[ \t]*/.exec(e)[0].length;if(!r||n.facet(t)!=` `)return e;let i=Je(e,4,r),a=``;for(let e=i;e>0;)e>=4?(a+=` `,e-=4):(a+=` `,e--);return a+e.slice(r)}var vq=(e={})=>({state:t,dispatch:n})=>{let r=d(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!dq.isActiveAt(t,n.from,-1)&&!dq.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=mq(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){if(l.item.from<s.from&&!/^[\s>]*$/.test(s.text.slice(0,l.to)))return a={range:n};let r=l.node.firstChild,u=l.node.getChild(`ListItem`,`ListItem`);if(r.to>=o||u&&u.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&gq(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&gq(e.item,i,r),{range:W.cursor(t+n.length),changes:r}}{let e=Sq(c,t,s);return{range:W.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&gq(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?Je(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=_q(p,t),xq(l.node,t.doc)&&(p=Sq(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:W.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},yq=vq();function bq(e){return e.name==`QuoteMark`||e.name==`ListMark`}function xq(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function Sq(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?Je(n.text,4,e[t+1].from)-r.length:null,t<i);return _q(r,t)}function Cq(e,t){let n=e.resolveInner(t,-1),r=t;bq(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(bq(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var wq=({state:e,dispatch:t})=>{let n=d(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&dq.isActiveAt(e,t.from)){let t=a.lineAt(i),r=mq(Cq(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:W.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(Je(t.text,4,n.to)-Je(t.text,4,n.from));return r==t.from&&(i=_q(i,e)),{range:W.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:W.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},Tq=[{key:`Enter`,run:yq},{key:`Backspace`,run:wq}],Eq=ZK({matchClosingTags:!1});function Dq(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=uq,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=Eq}=e;if(!(i instanceof rH))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,cq],u;o&&l.push(Mq),n instanceof ze?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?fq(t,u):void 0;c.push(PH({codeParser:d,htmlParser:s.language.parser})),r&&l.push(E.high(Be.of(Tq)));let f=lq(i.configure(c));return a&&l.push(f.data.of({autocomplete:Oq})),new ze(f,l)}function Oq(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=d(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:Aq(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var kq=null;function Aq(){if(kq)return kq;let e=WK(new gF(ee.create({extensions:Eq}),0,!0));return kq=e?e.options:[]}var jq=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Mq=L.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!dq.isActiveAt(t.state,n.from,1)))return!1;let i=d(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||jq.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}}),Nq=63,Pq=64,Fq=1,Iq=2,Lq=3,Rq=4,zq=5,Bq=6,Vq=7,Hq=65,Uq=66,Wq=8,Gq=9,Kq=10,qq=11,Jq=12,Yq=13,Xq=19,Zq=20,Qq=29,$q=33,eJ=34,tJ=47,nJ=0,rJ=1,iJ=2,aJ=3,oJ=4,sJ=class{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};sJ.top=new sJ(null,-1,nJ);function cJ(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(uJ(t)||t==-1)return n}}function lJ(e){return e==32||e==9}function uJ(e){return e==10||e==13}function dJ(e){return lJ(e)||uJ(e)}function fJ(e){return e<0||dJ(e)}var pJ=new Le({start:sJ.top,reduce(e,t){return e.type==aJ&&(t==Zq||t==eJ)?e.parent:e},shift(e,t,n,r){if(t==Lq)return new sJ(e,cJ(r,r.pos),rJ);if(t==Hq||t==zq)return new sJ(e,cJ(r,r.pos),iJ);if(t==Nq)return e.parent;if(t==Xq||t==$q)return new sJ(e,0,aJ);if(t==Yq&&e.type==oJ)return e.parent;if(t==tJ){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new sJ(e,e.depth+ +t[0],oJ)}return e},hash(e){return e.hash}});function mJ(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&fJ(e.peek(n+3))}var hJ=new Ee((e,t)=>{if(e.next==-1&&t.canShift(Pq))return e.acceptToken(Pq);let n=e.peek(-1);if((uJ(n)||n<0)&&t.context.type!=aJ){if(mJ(e,45)){if(t.canShift(Nq))e.acceptToken(Nq);else return e.acceptToken(Fq,3)}if(mJ(e,46)){if(t.canShift(Nq))e.acceptToken(Nq);else return e.acceptToken(Iq,3)}let n=0;for(;e.next==32;)n++,e.advance();(n<t.context.depth||n==t.context.depth&&t.context.type==rJ&&(e.next!=45||!fJ(e.peek(1))))&&e.next!=-1&&!uJ(e.next)&&e.next!=35&&e.acceptToken(Nq,-n)}},{contextual:!0}),gJ=new Ee((e,t)=>{if(t.context.type==aJ)e.next==63&&(e.advance(),fJ(e.next)&&e.acceptToken(Vq));else if(e.next==45)e.advance(),fJ(e.next)&&e.acceptToken(t.context.type==rJ&&t.context.depth==cJ(e,e.pos-1)?Rq:Lq);else if(e.next==63)e.advance(),fJ(e.next)&&e.acceptToken(t.context.type==iJ&&t.context.depth==cJ(e,e.pos-1)?Bq:zq);else{let n=e.pos;for(;;)if(lJ(e.next)){if(e.pos==n)return;e.advance()}else if(e.next==33)bJ(e);else if(e.next==38)xJ(e);else if(e.next==42){xJ(e);break}else if(e.next==39||e.next==34){if(SJ(e,!0))break;return}else if(e.next==91||e.next==123){if(!CJ(e))return;break}else{DJ(e,!0,!1,0);break}for(;lJ(e.next);)e.advance();if(e.next==58){if(e.pos==n&&t.canShift(Qq))return;fJ(e.peek(1))&&e.acceptTokenTo(t.context.type==iJ&&t.context.depth==cJ(e,n)?Uq:Hq,n)}}},{contextual:!0});function _J(e){return e>32&&e<127&&e!=34&&e!=37&&e!=44&&e!=60&&e!=62&&e!=92&&e!=94&&e!=96&&e!=123&&e!=124&&e!=125}function vJ(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function yJ(e,t){return e.next==37?(e.advance(),vJ(e.next)&&e.advance(),vJ(e.next)&&e.advance(),!0):_J(e.next)||t&&e.next==44?(e.advance(),!0):!1}function bJ(e){if(e.advance(),e.next==60){for(e.advance();;)if(!yJ(e,!0)){e.next==62&&e.advance();break}}else for(;yJ(e,!1););}function xJ(e){for(e.advance();!fJ(e.next)&&TJ(e.next)!=`f`;)e.advance()}function SJ(e,t){let n=e.next,r=!1,i=e.pos;for(e.advance();;){let a=e.next;if(a<0)break;if(e.advance(),a==n){if(a==39){if(e.next==39)e.advance();else break}else break}else if(a==92&&n==34)e.next>=0&&e.advance();else if(uJ(a)){if(t)return!1;r=!0}else if(t&&e.pos>=i+1024)return!1}return!r}function CJ(e){for(let t=[],n=e.pos+1024;;)if(e.next==91||e.next==123)t.push(e.next),e.advance();else if(e.next==39||e.next==34){if(!SJ(e,!0))return!1}else if(e.next==93||e.next==125){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else if(e.next<0||e.pos>n||uJ(e.next))return!1;else e.advance()}var wJ=`iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif`;function TJ(e){return e<33?`u`:e>125?`s`:wJ[e-33]}function EJ(e,t){let n=TJ(e);return n!=`u`&&!(t&&n==`f`)}function DJ(e,t,n,r){if(TJ(e.next)==`s`||(e.next==63||e.next==58||e.next==45)&&EJ(e.peek(1),n))e.advance();else return!1;let i=e.pos;for(;;){let a=e.next,o=0,s=r+1;for(;dJ(a);){if(uJ(a)){if(t)return!1;s=0}else s++;a=e.peek(++o)}if(!(a>=0&&(a==58?EJ(e.peek(o+1),n):a==35?e.peek(o-1)!=32:EJ(a,n)))||!n&&s<=r||s==0&&!n&&(mJ(e,45,o)||mJ(e,46,o)))break;if(t&&TJ(a)==`f`)return!1;for(let t=o;t>=0;t--)e.advance();if(t&&e.pos>i+1024)return!1}return!0}var OJ=new Ee((e,t)=>{if(e.next==33)bJ(e),e.acceptToken(Jq);else if(e.next==38||e.next==42){let t=e.next==38?Kq:qq;xJ(e),e.acceptToken(t)}else e.next==39||e.next==34?(SJ(e,!1),e.acceptToken(Gq)):DJ(e,!1,t.context.type==aJ,t.context.depth)&&e.acceptToken(Wq)}),kJ=new Ee((e,t)=>{let n=t.context.type==oJ?t.context.depth:-1,r=e.pos;scan:for(;;){let i=0,a=e.next;for(;a==32;)a=e.peek(++i);if(!i&&(mJ(e,45,i)||mJ(e,46,i))||!uJ(a)&&(n<0&&(n=Math.max(t.context.depth+1,i)),i<n))break;for(;;){if(e.next<0)break scan;let t=uJ(e.next);if(e.advance(),t)continue scan;r=e.pos}}e.acceptTokenTo(Yq,r)}),AJ=y({DirectiveName:G.keyword,DirectiveContent:G.attributeValue,"DirectiveEnd DocEnd":G.meta,QuotedLiteral:G.string,BlockLiteralHeader:G.special(G.string),BlockLiteralContent:G.content,Literal:G.content,"Key/Literal Key/QuotedLiteral":G.definition(G.propertyName),"Anchor Alias":G.labelName,Tag:G.typeName,Comment:G.lineComment,": , -":G.separator,"?":G.punctuation,"[ ]":G.squareBracket,"{ }":G.brace}),jJ=Ne.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:`⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document`,maxTerm:74,context:pJ,nodeProps:[[`isolate`,-3,8,9,14,``],[`openedBy`,18,`[`,32,`{`],[`closedBy`,19,`]`,33,`}`]],propSources:[AJ],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[hJ,gJ,OJ,kJ,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),MJ=nt({yaml:()=>FJ,yamlFrontmatter:()=>LJ,yamlLanguage:()=>PJ}),NJ=Ne.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:`!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~`,goto:`vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS`,nodeNames:`⚠ Document Frontmatter DashLine FrontmatterContent Body`,maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),PJ=Fe.define({name:`yaml`,parser:jJ.configure({props:[s.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if(t.name==`BlockLiteralContent`&&t.from<t.to)return e.baseIndentFor(t);if(t.name==`BlockLiteral`)return e.baseIndentFor(t)+e.unit;if(t.name==`BlockSequence`||t.name==`BlockMapping`)return e.column(t.firstChild.from,1);if(t.name==`QuotedLiteral`)return null;if(t.name==`Literal`){let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n;if(t.to>e.pos)return null}}return null},FlowMapping:Ve({closing:`}`}),FlowSequence:Ve({closing:`]`})}),a.add({"FlowMapping FlowSequence":We,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:`#`},indentOnInput:/^\s*[\]\}]$/}});function FJ(){return new ze(PJ)}var IJ=Fe.define({name:`yaml-frontmatter`,parser:NJ.configure({props:[y({DashLine:G.meta})]})});function LJ(e){let{language:t,support:n}=e.content instanceof ze?e.content:{language:e.content,support:[]};return new ze(IJ.configure({wrap:Me(e=>e.name==`FrontmatterContent`?{parser:PJ.parser}:e.name==`Body`?{parser:t.parser}:null)}),n)}var RJ=`modulepreload`,zJ=function(e){return`/`+e},BJ={},VJ=function(e){return e.pathname.endsWith(`.css`)},HJ=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=zJ(t,n);let r=s(t),i=VJ(r);return HJ(BJ,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:RJ,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function $(e){return new ze(de.define(e))}function UJ(e){return Q(()=>import(`./dist-Ba-HC662.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1]))}var WJ=[U.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return Q(()=>import(`./dist-Bw5-uxs9.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),U.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return Q(()=>import(`./dist-Bw5-uxs9.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),U.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return UJ(`Cassandra`)}}),U.of({name:`CSS`,extensions:[`css`],load(){return Q(()=>Promise.resolve().then(()=>ZW).then(e=>e.css()),[])}}),U.of({name:`Go`,extensions:[`go`],load(){return Q(()=>import(`./dist-DSy3dVf4.js`).then(e=>e.go()),__vite__mapDeps([3,1]))}}),U.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return Q(()=>Promise.resolve().then(()=>SK).then(e=>e.html()),void 0)}}),U.of({name:`Java`,extensions:[`java`],load(){return Q(()=>import(`./dist-DDJNvivM.js`).then(e=>e.java()),__vite__mapDeps([4,1]))}}),U.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript()),void 0)}}),U.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return Q(()=>import(`./dist-C-Oyo1ZT.js`).then(e=>e.jinja()),__vite__mapDeps([5,1]))}}),U.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return Q(()=>import(`./dist-BzulKuec.js`).then(e=>e.json()),__vite__mapDeps([6,1]))}}),U.of({name:`JSX`,extensions:[`jsx`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({jsx:!0})),void 0)}}),U.of({name:`LESS`,extensions:[`less`],load(){return Q(()=>import(`./dist-jjxQutEm.js`).then(e=>e.less()),__vite__mapDeps([7,1]))}}),U.of({name:`Liquid`,extensions:[`liquid`],load(){return Q(()=>import(`./dist-BGbe0-Aa.js`).then(e=>e.liquid()),__vite__mapDeps([8,1]))}}),U.of({name:`MariaDB SQL`,load(){return UJ(`MariaSQL`)}}),U.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return Q(()=>Promise.resolve().then(()=>tq).then(e=>e.markdown()),void 0)}}),U.of({name:`MS SQL`,load(){return UJ(`MSSQL`)}}),U.of({name:`MySQL`,load(){return UJ(`MySQL`)}}),U.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return Q(()=>import(`./dist-Dq6sW5Ur.js`).then(e=>e.php()),__vite__mapDeps([9,1]))}}),U.of({name:`PLSQL`,extensions:[`pls`],load(){return UJ(`PLSQL`)}}),U.of({name:`PostgreSQL`,load(){return UJ(`PostgreSQL`)}}),U.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return Q(()=>import(`./dist-CmpteMYY.js`).then(e=>e.python()),__vite__mapDeps([10,1]))}}),U.of({name:`Rust`,extensions:[`rs`],load(){return Q(()=>import(`./dist-CgIQYY1o.js`).then(e=>e.rust()),__vite__mapDeps([11,1]))}}),U.of({name:`Sass`,extensions:[`sass`],load(){return Q(()=>import(`./dist-BtMLMthJ.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([12,1]))}}),U.of({name:`SCSS`,extensions:[`scss`],load(){return Q(()=>import(`./dist-BtMLMthJ.js`).then(e=>e.sass()),__vite__mapDeps([12,1]))}}),U.of({name:`SQL`,extensions:[`sql`],load(){return UJ(`StandardSQL`)}}),U.of({name:`SQLite`,load(){return UJ(`SQLite`)}}),U.of({name:`TSX`,extensions:[`tsx`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({jsx:!0,typescript:!0})),void 0)}}),U.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({typescript:!0})),void 0)}}),U.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return Q(()=>import(`./dist-DF3F_I8N.js`).then(e=>e.wast()),__vite__mapDeps([13,1]))}}),U.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return Q(()=>import(`./dist-Dlorc3Sx.js`).then(e=>e.xml()),__vite__mapDeps([14,1]))}}),U.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return Q(()=>Promise.resolve().then(()=>MJ).then(e=>e.yaml()),void 0)}}),U.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return Q(()=>import(`./apl-gfMMiTNf.js`).then(e=>$(e.apl)),[])}}),U.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return Q(()=>import(`./asciiarmor-C_eisQCp.js`).then(e=>$(e.asciiArmor)),[])}}),U.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return Q(()=>import(`./asn1-DCl_8MCW.js`).then(e=>$(e.asn1({}))),[])}}),U.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return Q(()=>import(`./asterisk-BEn0Cwpx.js`).then(e=>$(e.asterisk)),[])}}),U.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return Q(()=>import(`./brainfuck-D5EjA2JK.js`).then(e=>$(e.brainfuck)),[])}}),U.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return Q(()=>import(`./cobol-DHLQUbN7.js`).then(e=>$(e.cobol)),[])}}),U.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.csharp)),[])}}),U.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`ClojureScript`,extensions:[`cljs`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return Q(()=>import(`./css-CnaYoQib.js`).then(e=>$(e.gss)),[])}}),U.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return Q(()=>import(`./cmake-84nbDH0I.js`).then(e=>$(e.cmake)),[])}}),U.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return Q(()=>import(`./coffeescript-De_zI4J0.js`).then(e=>$(e.coffeeScript)),[])}}),U.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return Q(()=>import(`./commonlisp-DgAKBe0r.js`).then(e=>$(e.commonLisp)),[])}}),U.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return Q(()=>import(`./cypher-p9eYesGn.js`).then(e=>$(e.cypher)),[])}}),U.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return Q(()=>import(`./python-B_1Jd8HM.js`).then(e=>$(e.cython)),[])}}),U.of({name:`Crystal`,extensions:[`cr`],load(){return Q(()=>import(`./crystal-Bl6YKCG_.js`).then(e=>$(e.crystal)),[])}}),U.of({name:`D`,extensions:[`d`],load(){return Q(()=>import(`./d-DWkQyNnU.js`).then(e=>$(e.d)),[])}}),U.of({name:`Dart`,extensions:[`dart`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.dart)),[])}}),U.of({name:`diff`,extensions:[`diff`,`patch`],load(){return Q(()=>import(`./diff-ChtP43wD.js`).then(e=>$(e.diff)),[])}}),U.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return Q(()=>import(`./dockerfile-DJkHQgkl.js`).then(e=>$(e.dockerFile)),__vite__mapDeps([15,16]))}}),U.of({name:`DTD`,extensions:[`dtd`],load(){return Q(()=>import(`./dtd-DTF72YNO.js`).then(e=>$(e.dtd)),[])}}),U.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return Q(()=>import(`./dylan-S7ucR4pR.js`).then(e=>$(e.dylan)),[])}}),U.of({name:`EBNF`,load(){return Q(()=>import(`./ebnf-D4c0_ac3.js`).then(e=>$(e.ebnf)),[])}}),U.of({name:`ECL`,extensions:[`ecl`],load(){return Q(()=>import(`./ecl-BVIeWmwY.js`).then(e=>$(e.ecl)),[])}}),U.of({name:`edn`,extensions:[`edn`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`Eiffel`,extensions:[`e`],load(){return Q(()=>import(`./eiffel-BEjRio4Q.js`).then(e=>$(e.eiffel)),[])}}),U.of({name:`Elm`,extensions:[`elm`],load(){return Q(()=>import(`./elm-Cshzl8qu.js`).then(e=>$(e.elm)),[])}}),U.of({name:`Erlang`,extensions:[`erl`],load(){return Q(()=>import(`./erlang-BV0c4Hdn.js`).then(e=>$(e.erlang)),[])}}),U.of({name:`Esper`,load(){return Q(()=>import(`./sql-DuQMFDvy.js`).then(e=>$(e.esper)),[])}}),U.of({name:`Factor`,extensions:[`factor`],load(){return Q(()=>import(`./factor-LKH5gN8L.js`).then(e=>$(e.factor)),__vite__mapDeps([17,16]))}}),U.of({name:`FCL`,load(){return Q(()=>import(`./fcl-ClOhbFR7.js`).then(e=>$(e.fcl)),[])}}),U.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return Q(()=>import(`./forth-D6RzAl64.js`).then(e=>$(e.forth)),[])}}),U.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return Q(()=>import(`./fortran-Bt6PBEDR.js`).then(e=>$(e.fortran)),[])}}),U.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.fSharp)),[])}}),U.of({name:`Gas`,extensions:[`s`],load(){return Q(()=>import(`./gas-BHEdbvp9.js`).then(e=>$(e.gas)),[])}}),U.of({name:`Gherkin`,extensions:[`feature`],load(){return Q(()=>import(`./gherkin-oBAE_ms0.js`).then(e=>$(e.gherkin)),[])}}),U.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return Q(()=>import(`./groovy-CUrWKPia.js`).then(e=>$(e.groovy)),[])}}),U.of({name:`Haskell`,extensions:[`hs`],load(){return Q(()=>import(`./haskell-BRsoo5mP.js`).then(e=>$(e.haskell)),[])}}),U.of({name:`Haxe`,extensions:[`hx`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.haxe)),[])}}),U.of({name:`HXML`,extensions:[`hxml`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.hxml)),[])}}),U.of({name:`HTTP`,load(){return Q(()=>import(`./http-CLVgA2GD.js`).then(e=>$(e.http)),[])}}),U.of({name:`IDL`,extensions:[`pro`],load(){return Q(()=>import(`./idl-BUZw3wgd.js`).then(e=>$(e.idl)),[])}}),U.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return Q(()=>import(`./javascript-lS2r2ifg.js`).then(e=>$(e.jsonld)),[])}}),U.of({name:`Julia`,extensions:[`jl`],load(){return Q(()=>import(`./julia-CQfgDRfP.js`).then(e=>$(e.julia)),[])}}),U.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.kotlin)),[])}}),U.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return Q(()=>import(`./livescript-BXxG0Yva.js`).then(e=>$(e.liveScript)),[])}}),U.of({name:`Lua`,extensions:[`lua`],load(){return Q(()=>import(`./lua-DPCEkfD_.js`).then(e=>$(e.lua)),[])}}),U.of({name:`mIRC`,extensions:[`mrc`],load(){return Q(()=>import(`./mirc-C9zpzAZU.js`).then(e=>$(e.mirc)),[])}}),U.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return Q(()=>import(`./mathematica-u8YMmbU0.js`).then(e=>$(e.mathematica)),[])}}),U.of({name:`Modelica`,extensions:[`mo`],load(){return Q(()=>import(`./modelica-CqHI_q-D.js`).then(e=>$(e.modelica)),[])}}),U.of({name:`MUMPS`,extensions:[`mps`],load(){return Q(()=>import(`./mumps-BSzj6Xyz.js`).then(e=>$(e.mumps)),[])}}),U.of({name:`Mbox`,extensions:[`mbox`],load(){return Q(()=>import(`./mbox-BEMVcqjs.js`).then(e=>$(e.mbox)),[])}}),U.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return Q(()=>import(`./nginx-C-ORUuei.js`).then(e=>$(e.nginx)),[])}}),U.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return Q(()=>import(`./nsis-viPvXFiq.js`).then(e=>$(e.nsis)),__vite__mapDeps([18,16]))}}),U.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return Q(()=>import(`./ntriples-CzMBulkp.js`).then(e=>$(e.ntriples)),[])}}),U.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveC)),[])}}),U.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveCpp)),[])}}),U.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.oCaml)),[])}}),U.of({name:`Octave`,extensions:[`m`],load(){return Q(()=>import(`./octave-D2Q8cUp1.js`).then(e=>$(e.octave)),[])}}),U.of({name:`Oz`,extensions:[`oz`],load(){return Q(()=>import(`./oz-BwTct_5T.js`).then(e=>$(e.oz)),[])}}),U.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return Q(()=>import(`./pascal-Dp_KdFgX.js`).then(e=>$(e.pascal)),[])}}),U.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return Q(()=>import(`./perl-BkSkiI9m.js`).then(e=>$(e.perl)),[])}}),U.of({name:`Pig`,extensions:[`pig`],load(){return Q(()=>import(`./pig-AF4Hwhju.js`).then(e=>$(e.pig)),[])}}),U.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return Q(()=>import(`./powershell-D8WpQPaX.js`).then(e=>$(e.powerShell)),[])}}),U.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return Q(()=>import(`./properties-C357ku5U.js`).then(e=>$(e.properties)),[])}}),U.of({name:`ProtoBuf`,extensions:[`proto`],load(){return Q(()=>import(`./protobuf-D1ij_kNL.js`).then(e=>$(e.protobuf)),[])}}),U.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return Q(()=>import(`./pug-BqCHZ5xT.js`).then(e=>$(e.pug)),__vite__mapDeps([19,20]))}}),U.of({name:`Puppet`,extensions:[`pp`],load(){return Q(()=>import(`./puppet-BZyAS7I4.js`).then(e=>$(e.puppet)),[])}}),U.of({name:`Q`,extensions:[`q`],load(){return Q(()=>import(`./q-B9NhS7L_.js`).then(e=>$(e.q)),[])}}),U.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return Q(()=>import(`./r-CxDmU1I4.js`).then(e=>$(e.r)),[])}}),U.of({name:`RPM Changes`,load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmChanges)),[])}}),U.of({name:`RPM Spec`,extensions:[`spec`],load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmSpec)),[])}}),U.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return Q(()=>import(`./ruby-ChfNwlCY.js`).then(e=>$(e.ruby)),[])}}),U.of({name:`SAS`,extensions:[`sas`],load(){return Q(()=>import(`./sas-C2OyD2Y6.js`).then(e=>$(e.sas)),[])}}),U.of({name:`Scala`,extensions:[`scala`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.scala)),[])}}),U.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return Q(()=>import(`./scheme-D9qYN0V5.js`).then(e=>$(e.scheme)),[])}}),U.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return Q(()=>import(`./shell-DwuoZtxw.js`).then(e=>$(e.shell)),[])}}),U.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return Q(()=>import(`./sieve-tLWDfEkZ.js`).then(e=>$(e.sieve)),[])}}),U.of({name:`Smalltalk`,extensions:[`st`],load(){return Q(()=>import(`./smalltalk-BLp5-jwC.js`).then(e=>$(e.smalltalk)),[])}}),U.of({name:`Solr`,load(){return Q(()=>import(`./solr-B78wSQJQ.js`).then(e=>$(e.solr)),[])}}),U.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.sml)),[])}}),U.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return Q(()=>import(`./sparql-Dz-mlCAC.js`).then(e=>$(e.sparql)),[])}}),U.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return Q(()=>import(`./spreadsheet-CTIncYxj.js`).then(e=>$(e.spreadsheet)),[])}}),U.of({name:`Squirrel`,extensions:[`nut`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.squirrel)),[])}}),U.of({name:`Stylus`,extensions:[`styl`],load(){return Q(()=>import(`./stylus-BOVgKnng.js`).then(e=>$(e.stylus)),[])}}),U.of({name:`Swift`,extensions:[`swift`],load(){return Q(()=>import(`./swift-DKB6_1j6.js`).then(e=>$(e.swift)),[])}}),U.of({name:`sTeX`,load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),U.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),U.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),U.of({name:`Tcl`,extensions:[`tcl`],load(){return Q(()=>import(`./tcl-BGfruO1u.js`).then(e=>$(e.tcl)),[])}}),U.of({name:`Textile`,extensions:[`textile`],load(){return Q(()=>import(`./textile-C4jVoHG1.js`).then(e=>$(e.textile)),[])}}),U.of({name:`TiddlyWiki`,load(){return Q(()=>import(`./tiddlywiki-VlUiK86J.js`).then(e=>$(e.tiddlyWiki)),[])}}),U.of({name:`Tiki wiki`,load(){return Q(()=>import(`./tiki-CvUEFusT.js`).then(e=>$(e.tiki)),[])}}),U.of({name:`TOML`,extensions:[`toml`],load(){return Q(()=>import(`./toml-BPTmHmyx.js`).then(e=>$(e.toml)),[])}}),U.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return Q(()=>import(`./troff-C2dAgh7P.js`).then(e=>$(e.troff)),[])}}),U.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return Q(()=>import(`./ttcn-PPSTk1ow.js`).then(e=>$(e.ttcn)),[])}}),U.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return Q(()=>import(`./ttcn-cfg-2b4Gb5sE.js`).then(e=>$(e.ttcnCfg)),[])}}),U.of({name:`Turtle`,extensions:[`ttl`],load(){return Q(()=>import(`./turtle-Cx3rYX2g.js`).then(e=>$(e.turtle)),[])}}),U.of({name:`Web IDL`,extensions:[`webidl`],load(){return Q(()=>import(`./webidl-D5jiJvOU.js`).then(e=>$(e.webIDL)),[])}}),U.of({name:`VB.NET`,extensions:[`vb`],load(){return Q(()=>import(`./vb-BthdM_4N.js`).then(e=>$(e.vb)),[])}}),U.of({name:`VBScript`,extensions:[`vbs`],load(){return Q(()=>import(`./vbscript-D9f6rSsU.js`).then(e=>$(e.vbScript)),[])}}),U.of({name:`Velocity`,extensions:[`vtl`],load(){return Q(()=>import(`./velocity-CqftRsjg.js`).then(e=>$(e.velocity)),[])}}),U.of({name:`Verilog`,extensions:[`v`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),U.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return Q(()=>import(`./vhdl-kS471soi.js`).then(e=>$(e.vhdl)),[])}}),U.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return Q(()=>import(`./xquery-BKJx4mf9.js`).then(e=>$(e.xQuery)),[])}}),U.of({name:`Yacas`,extensions:[`ys`],load(){return Q(()=>import(`./yacas-CXXgtw0p.js`).then(e=>$(e.yacas)),[])}}),U.of({name:`Z80`,extensions:[`z80`],load(){return Q(()=>import(`./z80-Co3PbHdE.js`).then(e=>$(e.z80)),[])}}),U.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.mscgen)),[])}}),U.of({name:`Xù`,extensions:[`xu`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.xu)),[])}}),U.of({name:`MsGenny`,extensions:[`msgenny`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.msgenny)),[])}}),U.of({name:`Vue`,extensions:[`vue`],load(){return Q(()=>import(`./dist-C8MdhqgG.js`).then(e=>e.vue()),__vite__mapDeps([21,1]))}}),U.of({name:`Angular Template`,load(){return Q(()=>import(`./dist-CG1pHn5m.js`).then(e=>e.angular()),__vite__mapDeps([22,1]))}})],GJ=tt((e=>{var t=ot(),n=ut();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.for(`react.recoverable`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}var w=Symbol.for(`react.optimistic_key`),T=Array.isArray;function E(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)|0,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)|0,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)|0,(i^i>>>16)>>>0}var D=Object.assign,O=Object.prototype.hasOwnProperty,k=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]*$`),A={},j={};function M(e){return O.call(j,e)?!0:O.call(A,e)?!1:k.test(e)?j[e]=!0:(A[e]=!0,!1)}var N=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(` `)),P=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`]]),ee=/["'&<>]/;function F(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=ee.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var I=/([A-Z])/g,te=/^ms-/,ne=/^[\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 L(e){return ne.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},V=z.d;z.d={f:V.f,r:V.r,D:lt,C:dt,L:ft,m:pt,X:K,S:mt,M:q};var re=[],ie=null,ae=/(<\/|<)(s)(cript)/gi;function H(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function oe(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function se(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ce(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return se(2,null,r|1,null);case`select`:return se(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return se(4,null,r,null);case`picture`:return se(2,null,r|2,null);case`math`:return se(5,null,r,null);case`foreignObject`:return se(2,null,r,null);case`table`:return se(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return se(7,null,r,null);case`colgroup`:return se(9,null,r,null);case`tr`:return se(8,null,r,null);case`head`:if(2>e.insertionMode)return se(3,null,r,null);break;case`html`:if(e.insertionMode===0)return se(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?se(2,null,r,null):e.viewTransition!==null||e.tagScope!==r?se(e.insertionMode,e.selectedValue,r,null):e}function le(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,parentEnter:`none`,parentExit:`none`,name:e.autoName,autoName:e.autoName,nameIdx:0}}function ue(e,t){return t.tagScope&32&&(e.instructions|=128),se(t.insertionMode,t.selectedValue,t.tagScope|12,le(t.viewTransition))}function de(e,t){e=le(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),se(t.insertionMode,t.selectedValue,n,e)}function fe(e,t,n){return e=`_`+e.idPrefix+`R_`+t,0<n&&(e+=`H`+n.toString(32)),e+`_`}function pe(e,t){t=t.viewTransition,t!==null&&(t.name!==`auto`&&(_e(e,`vt-name`,t.nameIdx===0?t.name:t.name+`_`+t.nameIdx),t.nameIdx++),_e(e,`vt-update`,t.update),t.enter!==`none`&&_e(e,`vt-enter`,t.enter),t.exit!==`none`&&_e(e,`vt-exit`,t.exit),t.share!==`none`&&_e(e,`vt-share`,t.share))}var me=new Map;function he(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=F(i);a=F((``+a).trim())}else o=me.get(i),o===void 0&&(o=F(i.replace(I,`-$1`).toLowerCase().replace(te,`-ms-`)),me.set(i,o)),a=typeof a==`number`?a===0||N.has(i)?``+a:a+`px`:F((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function ge(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function _e(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,F(n),`"`)}var ve=F(`javascript:throw new Error('React form unexpectedly submitted.')`);function ye(e,t){this.push(`<input type="hidden"`),be(e),_e(this,`name`,t),_e(this,`value`,e),this.push(`/>`)}function be(e){if(typeof e!=`string`)throw Error(r(480))}function xe(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(be),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function Se(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=xe(t,r);l===null?(e.push(` `,`formAction`,`="`,ve,`"`),o=a=i=r=s=null,Te(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&U(e,`name`,s),r!=null&&U(e,`formAction`,r),i!=null&&U(e,`formEncType`,i),a!=null&&U(e,`formMethod`,a),o!=null&&U(e,`formTarget`,o),c}function U(e,t,n){switch(t){case`className`:_e(e,`class`,n);break;case`tabIndex`:_e(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:_e(e,t,n);break;case`style`:he(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=L(``+n),e.push(` `,t,`="`,F(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:ge(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=L(``+n),e.push(` `,`xlink:href`,`="`,F(n),`"`);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);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`&&e.push(` `,t,`=""`);break;case`capture`:case`download`:!0===n?e.push(` `,t,`=""`):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,F(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,F(n),`"`);break;case`xlinkActuate`:_e(e,`xlink:actuate`,n);break;case`xlinkArcrole`:_e(e,`xlink:arcrole`,n);break;case`xlinkRole`:_e(e,`xlink:role`,n);break;case`xlinkShow`:_e(e,`xlink:show`,n);break;case`xlinkTitle`:_e(e,`xlink:title`,n);break;case`xlinkType`:_e(e,`xlink:type`,n);break;case`xmlBase`:_e(e,`xml:base`,n);break;case`xmlLang`:_e(e,`xml:lang`,n);break;case`xmlSpace`:_e(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=P.get(t)||t,M(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(` `,t,`="`,F(n),`"`)}}}function Ce(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(``+t)}}function we(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function Te(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),it(r,e),r.push(`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});`,`<\/script>`)):r.unshift(t.startInlineScript,`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});`,`<\/script>`)}}function Ee(e,t){for(var n in e.push(Ie(`link`)),t)if(O.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:U(e,n,i)}}return e.push(`/>`),null}var De=/(<\/|<)(s)(tyle)/gi;function Oe(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function ke(e,t,n,i){for(var a in e.push(Ie(n)),t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:U(e,a,o)}}return pe(e,i),e.push(`/>`),null}function Ae(e,t){e.push(Ie(`title`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:U(e,i,a)}}return e.push(`>`),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(F(``+t)),Ce(e,r,n),e.push(ze(`title`)),null}function je(e,t){e.push(Ie(`script`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:U(e,i,a)}}return e.push(`>`),Ce(e,r,n),typeof n==`string`&&e.push((``+n).replace(ae,H)),e.push(ze(`script`)),null}function Me(e,t,n,r){e.push(Ie(n));var i=n=null,a;for(a in t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:U(e,a,o)}}return pe(e,r),e.push(`>`),Ce(e,i,n),n}function Ne(e,t,n,r){e.push(Ie(n));var i=n=null,a;for(a in t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:U(e,a,o)}}return pe(e,r),e.push(`>`),Ce(e,i,n),typeof n==`string`?(e.push(F(n)),null):n}var Pe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Fe=new Map;function Ie(e){var t=Fe.get(e);if(t===void 0){if(!Pe.test(e))throw Error(r(65,e));t=`<`+e,Fe.set(e,t)}return t}function Le(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(Ie(`a`));var u=null,d=null,f;for(f in n)if(O.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?_e(e,`href`,``):U(e,f,p);break;default:U(e,f,p)}}if(pe(e,c),e.push(`>`),Ce(e,d,u),typeof u==`string`){e.push(F(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(Ie(`select`));var h=null,g=null,_;for(_ in n)if(O.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:U(e,_,v)}}return pe(e,c),e.push(`>`),Ce(e,g,h),h;case`option`:var y=c.selectedValue;e.push(Ie(`option`));var b=null,x=null,S=null,C=null,w;for(w in n)if(O.call(n,w)){var E=n[w];if(E!=null)switch(w){case`children`:b=E;break;case`selected`:S=E;break;case`dangerouslySetInnerHTML`:C=E;break;case`value`:x=E;default:U(e,w,E)}}if(y!=null){var k=x===null?we(b):``+x;if(T(y)){for(var A=0;A<y.length;A++)if(``+y[A]===k){e.push(` selected=""`);break}}else``+y===k&&e.push(` selected=""`)}else S&&e.push(` selected=""`);return e.push(`>`),Ce(e,C,b),b;case`textarea`:e.push(Ie(`textarea`));var j=null,N=null,P=null,ee;for(ee in n)if(O.call(n,ee)){var I=n[ee];if(I!=null)switch(ee){case`children`:P=I;break;case`value`:j=I;break;case`defaultValue`:N=I;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:U(e,ee,I)}}if(j===null&&N!==null&&(j=N),pe(e,c),e.push(`>`),P!=null){if(j!=null)throw Error(r(92));if(T(P)){if(1<P.length)throw Error(r(93));j=``+P[0]}j=``+P}return typeof j==`string`&&j[0]===`
|
|
227
|
+
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),eK=new ne,tK=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function nK(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var rK=[`FunctionDeclaration`],iK={FunctionDeclaration:nK(`function`),ClassDeclaration:nK(`class`),ClassExpression:()=>!0,EnumDeclaration:nK(`constant`),TypeAliasDeclaration:nK(`type`),NamespaceDeclaration:nK(`namespace`),VariableDefinition(e,t){e.matchContext(rK)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function aK(e,t){let n=eK.get(t);if(n)return n;let i=[],a=!0;function o(t,n){let r=e.sliceString(t.from,t.to);i.push({label:r,type:n})}return t.cursor(r.IncludeAnonymous).iterate(t=>{if(a)a=!1;else if(t.name){let e=iK[t.name];if(e&&e(t,o)||tK.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of aK(e,t.node))i.push(n);return!1}}),eK.set(t,i),i}var oK=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,sK=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`JSXText`,`JSXAttributeValue`,`JSXOpenTag`,`JSXCloseTag`,`JSXSelfClosingTag`,`.`,`?.`];function cK(e){let t=d(e.state).resolveInner(e.pos,-1);if(sK.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&oK.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)tK.has(n.name)&&(r=r.concat(aK(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:oK}}var lK=Fe.define({name:`javascript`,parser:XG.configure({props:[s.add({IfStatement:he({except:/^\s*({|else\b)/}),TryStatement:he({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ke,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Ve({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":he({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),a.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":We,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let t=e.firstChild;if(!t||t.name==`JSXSelfClosingTag`)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){let t=e.firstChild?.nextSibling,n=e.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),uK={test:e=>/^JSX/.test(e.name),facet:B({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},dK=lK.configure({dialect:`ts`},`typescript`),fK=lK.configure({dialect:`jsx`,props:[C.add(e=>e.isTop?[uK]:void 0)]}),pK=lK.configure({dialect:`jsx ts`,props:[C.add(e=>e.isTop?[uK]:void 0)]},`typescript`),mK=e=>({label:e,type:`keyword`}),hK=`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(mK),gK=hK.concat([`declare`,`implements`,`private`,`protected`,`public`].map(mK));function _K(e={}){let t=e.jsx?e.typescript?pK:fK:e.typescript?dK:lK,n=e.typescript?$G.concat(gK):QG.concat(hK);return new ze(t,[lK.data.of({autocomplete:bF(sK,yF(n))}),lK.data.of({autocomplete:cK}),e.jsx?xK:[]])}function vK(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function yK(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var bK=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),xK=L.inputHandler.of((e,t,n,r,i)=>{if((bK?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!lK.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=d(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=yK(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:W.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=vK(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=yK(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),SK=nt({autoCloseTags:()=>eq,html:()=>ZK,htmlCompletionSource:()=>WK,htmlCompletionSourceWith:()=>GK,htmlLanguage:()=>XK}),CK=[`_blank`,`_self`,`_top`,`_parent`],wK=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],TK=[`get`,`post`,`put`,`delete`],EK=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],DK=[`true`,`false`],OK={},kK={a:{attrs:{href:null,ping:null,type:null,media:null,target:CK,hreflang:null}},abbr:OK,address:OK,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:OK,aside:OK,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:OK,base:{attrs:{href:null,target:CK}},bdi:OK,bdo:OK,blockquote:{attrs:{cite:null}},body:OK,br:OK,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:EK,formmethod:TK,formnovalidate:[`novalidate`],formtarget:CK,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:OK,center:OK,cite:OK,code:OK,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:OK,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:OK,div:OK,dl:OK,dt:OK,em:OK,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:OK,figure:OK,footer:OK,form:{attrs:{action:null,name:null,"accept-charset":wK,autocomplete:[`on`,`off`],enctype:EK,method:TK,novalidate:[`novalidate`],target:CK}},h1:OK,h2:OK,h3:OK,h4:OK,h5:OK,h6:OK,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:OK,hgroup:OK,hr:OK,html:{attrs:{manifest:null}},i:OK,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:EK,formmethod:TK,formnovalidate:[`novalidate`],formtarget:CK,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:OK,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:OK,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:OK,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:wK,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:OK,noscript:OK,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:OK,param:{attrs:{name:null,value:null}},pre:OK,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:OK,rt:OK,ruby:OK,samp:OK,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:wK}},section:OK,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:OK,source:{attrs:{src:null,type:null,media:null}},span:OK,strong:OK,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:OK,summary:OK,sup:OK,table:OK,tbody:OK,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:OK,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:OK,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:OK,time:{attrs:{datetime:null}},title:OK,tr:OK,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:OK,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:OK},AK={accesskey:null,class:null,contenteditable:DK,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:DK,autocorrect:DK,autocapitalize:DK,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":DK,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":DK,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":DK,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":DK,"aria-hidden":DK,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":DK,"aria-multiselectable":DK,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":DK,"aria-relevant":null,"aria-required":DK,"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},jK=`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(e=>`on`+e);for(let e of jK)AK[e]=null;var MK=class{constructor(e,t){this.tags={...kK,...e},this.globalAttrs={...AK,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};MK.default=new MK;function NK(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function PK(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`){if(t)t=!1;else return e}return null}function FK(e,t,n){return n.tags[NK(e,PK(t))]?.children||n.allTags}function IK(e,t){let n=[];for(let r=PK(t);r&&!r.type.isTop;r=PK(r.parent)){let i=NK(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var LK=/^[:\-\.\w\u00b7-\uffff]*$/;function RK(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=PK(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:FK(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(IK(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function zK(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:IK(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:LK}}function BK(e,t,n,r){let i=[],a=0;for(let r of FK(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of IK(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function VK(e,t,n,r,i){let a=PK(n),o=a?t.tags[NK(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:LK}}function HK(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=PK(n),i=r?t.tags[NK(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function UK(e,t){let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?zK(n,i,i.from,r):RK(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?RK(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?zK(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?VK(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?HK(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?BK(n,e,i,r):null}function WK(e){return UK(MK.default,e)}function GK(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new MK(t,n):MK.default;return e=>UK(r,e)}var KK=lK.parser.configure({top:`SingleExpression`}),qK=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:dK.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:fK.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:pK.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:KK},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:lK.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:pG.parser}],JK=[{name:`style`,parser:pG.parser.configure({top:`Styles`})}].concat(jK.map(e=>({name:e,parser:lK.parser}))),YK=Fe.define({name:`html`,parser:cW.configure({props:[s.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),a.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),we.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),XK=YK.configure({wrap:fW(qK,JK)});function ZK(e={}){let t=``,n;e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=fW((e.nestedLanguages||[]).concat(qK),(e.nestedAttributes||[]).concat(JK)));let r=n?YK.configure({wrap:n,dialect:t}):t?XK.configure({dialect:t}):XK;return new ze(r,[XK.data.of({autocomplete:GK(e)}),e.autoCloseTags===!1?[]:eq,_K().support,mG().support])}var QK=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `));function $K(e,t,n){for(;;){if(t.lastChild?.name!=`CloseTag`)return!1;let r=t.parent;if(!r||NK(e,r)!=n)return!0;t=r}}var eq=L.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!XK.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=d(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if((a=NK(o.doc,t.parent,n))&&!QK.has(a)&&!$K(o.doc,t.parent,a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=NK(o.doc,e,n))&&!QK.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:W.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),tq=nt({commonmarkLanguage:()=>uq,deleteMarkupBackward:()=>wq,insertNewlineContinueMarkup:()=>yq,insertNewlineContinueMarkupCommand:()=>vq,markdown:()=>Dq,markdownKeymap:()=>Tq,markdownLanguage:()=>dq,pasteURLAsLink:()=>Mq}),nq=B({commentTokens:{block:{open:`<!--`,close:`-->`}}}),rq=new I,iq=MH.configure({props:[a.add(e=>!e.is(`Block`)||e.is(`Document`)||aq(e)!=null||oq(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),rq.add(aq),s.add({Document:()=>null}),ye.add({Document:nq})]});function aq(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function oq(e){return e.name==`OrderedList`||e.name==`BulletList`}function sq(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=aq(e.type))!=null&&r<=t)break;n=e}return n.to}var cq=Ue.of((e,t,n)=>{for(let r=d(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(rq);if(e==null)continue;let t=sq(r,e);if(t>n)return{from:n,to:t}}return null});function lq(e){return new oe(nq,e,[],`markdown`)}var uq=lq(iq),dq=lq(iq.configure([QH,tU,eU,nU,{props:[a.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function fq(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):U.matchLanguageName(e,n,!0),t instanceof U)return t.support?t.support.language.parser:ce.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var pq=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+hq(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function mq(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new pq(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new pq(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new pq(i.parent,s,s+t,a[1],e,n,i))}}return r}function hq(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function gq(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=hq(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function _q(e,n){let r=/^[ \t]*/.exec(e)[0].length;if(!r||n.facet(t)!=` `)return e;let i=Je(e,4,r),a=``;for(let e=i;e>0;)e>=4?(a+=` `,e-=4):(a+=` `,e--);return a+e.slice(r)}var vq=(e={})=>({state:t,dispatch:n})=>{let r=d(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!dq.isActiveAt(t,n.from,-1)&&!dq.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=mq(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){if(l.item.from<s.from&&!/^[\s>]*$/.test(s.text.slice(0,l.to)))return a={range:n};let r=l.node.firstChild,u=l.node.getChild(`ListItem`,`ListItem`);if(r.to>=o||u&&u.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&gq(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&gq(e.item,i,r),{range:W.cursor(t+n.length),changes:r}}{let e=Sq(c,t,s);return{range:W.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&gq(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?Je(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=_q(p,t),xq(l.node,t.doc)&&(p=Sq(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:W.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},yq=vq();function bq(e){return e.name==`QuoteMark`||e.name==`ListMark`}function xq(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function Sq(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?Je(n.text,4,e[t+1].from)-r.length:null,t<i);return _q(r,t)}function Cq(e,t){let n=e.resolveInner(t,-1),r=t;bq(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(bq(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var wq=({state:e,dispatch:t})=>{let n=d(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&dq.isActiveAt(e,t.from)){let t=a.lineAt(i),r=mq(Cq(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:W.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(Je(t.text,4,n.to)-Je(t.text,4,n.from));return r==t.from&&(i=_q(i,e)),{range:W.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:W.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},Tq=[{key:`Enter`,run:yq},{key:`Backspace`,run:wq}],Eq=ZK({matchClosingTags:!1});function Dq(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=uq,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=Eq}=e;if(!(i instanceof rH))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,cq],u;o&&l.push(Mq),n instanceof ze?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?fq(t,u):void 0;c.push(PH({codeParser:d,htmlParser:s.language.parser})),r&&l.push(E.high(Be.of(Tq)));let f=lq(i.configure(c));return a&&l.push(f.data.of({autocomplete:Oq})),new ze(f,l)}function Oq(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=d(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:Aq(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var kq=null;function Aq(){if(kq)return kq;let e=WK(new gF(ee.create({extensions:Eq}),0,!0));return kq=e?e.options:[]}var jq=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Mq=L.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!dq.isActiveAt(t.state,n.from,1)))return!1;let i=d(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||jq.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}}),Nq=63,Pq=64,Fq=1,Iq=2,Lq=3,Rq=4,zq=5,Bq=6,Vq=7,Hq=65,Uq=66,Wq=8,Gq=9,Kq=10,qq=11,Jq=12,Yq=13,Xq=19,Zq=20,Qq=29,$q=33,eJ=34,tJ=47,nJ=0,rJ=1,iJ=2,aJ=3,oJ=4,sJ=class{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};sJ.top=new sJ(null,-1,nJ);function cJ(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(uJ(t)||t==-1)return n}}function lJ(e){return e==32||e==9}function uJ(e){return e==10||e==13}function dJ(e){return lJ(e)||uJ(e)}function fJ(e){return e<0||dJ(e)}var pJ=new Le({start:sJ.top,reduce(e,t){return e.type==aJ&&(t==Zq||t==eJ)?e.parent:e},shift(e,t,n,r){if(t==Lq)return new sJ(e,cJ(r,r.pos),rJ);if(t==Hq||t==zq)return new sJ(e,cJ(r,r.pos),iJ);if(t==Nq)return e.parent;if(t==Xq||t==$q)return new sJ(e,0,aJ);if(t==Yq&&e.type==oJ)return e.parent;if(t==tJ){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new sJ(e,e.depth+ +t[0],oJ)}return e},hash(e){return e.hash}});function mJ(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&fJ(e.peek(n+3))}var hJ=new Ee((e,t)=>{if(e.next==-1&&t.canShift(Pq))return e.acceptToken(Pq);let n=e.peek(-1);if((uJ(n)||n<0)&&t.context.type!=aJ){if(mJ(e,45)){if(t.canShift(Nq))e.acceptToken(Nq);else return e.acceptToken(Fq,3)}if(mJ(e,46)){if(t.canShift(Nq))e.acceptToken(Nq);else return e.acceptToken(Iq,3)}let n=0;for(;e.next==32;)n++,e.advance();(n<t.context.depth||n==t.context.depth&&t.context.type==rJ&&(e.next!=45||!fJ(e.peek(1))))&&e.next!=-1&&!uJ(e.next)&&e.next!=35&&e.acceptToken(Nq,-n)}},{contextual:!0}),gJ=new Ee((e,t)=>{if(t.context.type==aJ)e.next==63&&(e.advance(),fJ(e.next)&&e.acceptToken(Vq));else if(e.next==45)e.advance(),fJ(e.next)&&e.acceptToken(t.context.type==rJ&&t.context.depth==cJ(e,e.pos-1)?Rq:Lq);else if(e.next==63)e.advance(),fJ(e.next)&&e.acceptToken(t.context.type==iJ&&t.context.depth==cJ(e,e.pos-1)?Bq:zq);else{let n=e.pos;for(;;)if(lJ(e.next)){if(e.pos==n)return;e.advance()}else if(e.next==33)bJ(e);else if(e.next==38)xJ(e);else if(e.next==42){xJ(e);break}else if(e.next==39||e.next==34){if(SJ(e,!0))break;return}else if(e.next==91||e.next==123){if(!CJ(e))return;break}else{DJ(e,!0,!1,0);break}for(;lJ(e.next);)e.advance();if(e.next==58){if(e.pos==n&&t.canShift(Qq))return;fJ(e.peek(1))&&e.acceptTokenTo(t.context.type==iJ&&t.context.depth==cJ(e,n)?Uq:Hq,n)}}},{contextual:!0});function _J(e){return e>32&&e<127&&e!=34&&e!=37&&e!=44&&e!=60&&e!=62&&e!=92&&e!=94&&e!=96&&e!=123&&e!=124&&e!=125}function vJ(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function yJ(e,t){return e.next==37?(e.advance(),vJ(e.next)&&e.advance(),vJ(e.next)&&e.advance(),!0):_J(e.next)||t&&e.next==44?(e.advance(),!0):!1}function bJ(e){if(e.advance(),e.next==60){for(e.advance();;)if(!yJ(e,!0)){e.next==62&&e.advance();break}}else for(;yJ(e,!1););}function xJ(e){for(e.advance();!fJ(e.next)&&TJ(e.next)!=`f`;)e.advance()}function SJ(e,t){let n=e.next,r=!1,i=e.pos;for(e.advance();;){let a=e.next;if(a<0)break;if(e.advance(),a==n){if(a==39){if(e.next==39)e.advance();else break}else break}else if(a==92&&n==34)e.next>=0&&e.advance();else if(uJ(a)){if(t)return!1;r=!0}else if(t&&e.pos>=i+1024)return!1}return!r}function CJ(e){for(let t=[],n=e.pos+1024;;)if(e.next==91||e.next==123)t.push(e.next),e.advance();else if(e.next==39||e.next==34){if(!SJ(e,!0))return!1}else if(e.next==93||e.next==125){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else if(e.next<0||e.pos>n||uJ(e.next))return!1;else e.advance()}var wJ=`iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif`;function TJ(e){return e<33?`u`:e>125?`s`:wJ[e-33]}function EJ(e,t){let n=TJ(e);return n!=`u`&&!(t&&n==`f`)}function DJ(e,t,n,r){if(TJ(e.next)==`s`||(e.next==63||e.next==58||e.next==45)&&EJ(e.peek(1),n))e.advance();else return!1;let i=e.pos;for(;;){let a=e.next,o=0,s=r+1;for(;dJ(a);){if(uJ(a)){if(t)return!1;s=0}else s++;a=e.peek(++o)}if(!(a>=0&&(a==58?EJ(e.peek(o+1),n):a==35?e.peek(o-1)!=32:EJ(a,n)))||!n&&s<=r||s==0&&!n&&(mJ(e,45,o)||mJ(e,46,o)))break;if(t&&TJ(a)==`f`)return!1;for(let t=o;t>=0;t--)e.advance();if(t&&e.pos>i+1024)return!1}return!0}var OJ=new Ee((e,t)=>{if(e.next==33)bJ(e),e.acceptToken(Jq);else if(e.next==38||e.next==42){let t=e.next==38?Kq:qq;xJ(e),e.acceptToken(t)}else e.next==39||e.next==34?(SJ(e,!1),e.acceptToken(Gq)):DJ(e,!1,t.context.type==aJ,t.context.depth)&&e.acceptToken(Wq)}),kJ=new Ee((e,t)=>{let n=t.context.type==oJ?t.context.depth:-1,r=e.pos;scan:for(;;){let i=0,a=e.next;for(;a==32;)a=e.peek(++i);if(!i&&(mJ(e,45,i)||mJ(e,46,i))||!uJ(a)&&(n<0&&(n=Math.max(t.context.depth+1,i)),i<n))break;for(;;){if(e.next<0)break scan;let t=uJ(e.next);if(e.advance(),t)continue scan;r=e.pos}}e.acceptTokenTo(Yq,r)}),AJ=y({DirectiveName:G.keyword,DirectiveContent:G.attributeValue,"DirectiveEnd DocEnd":G.meta,QuotedLiteral:G.string,BlockLiteralHeader:G.special(G.string),BlockLiteralContent:G.content,Literal:G.content,"Key/Literal Key/QuotedLiteral":G.definition(G.propertyName),"Anchor Alias":G.labelName,Tag:G.typeName,Comment:G.lineComment,": , -":G.separator,"?":G.punctuation,"[ ]":G.squareBracket,"{ }":G.brace}),jJ=Ne.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:`⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document`,maxTerm:74,context:pJ,nodeProps:[[`isolate`,-3,8,9,14,``],[`openedBy`,18,`[`,32,`{`],[`closedBy`,19,`]`,33,`}`]],propSources:[AJ],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[hJ,gJ,OJ,kJ,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),MJ=nt({yaml:()=>FJ,yamlFrontmatter:()=>LJ,yamlLanguage:()=>PJ}),NJ=Ne.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:`!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~`,goto:`vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS`,nodeNames:`⚠ Document Frontmatter DashLine FrontmatterContent Body`,maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),PJ=Fe.define({name:`yaml`,parser:jJ.configure({props:[s.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if(t.name==`BlockLiteralContent`&&t.from<t.to)return e.baseIndentFor(t);if(t.name==`BlockLiteral`)return e.baseIndentFor(t)+e.unit;if(t.name==`BlockSequence`||t.name==`BlockMapping`)return e.column(t.firstChild.from,1);if(t.name==`QuotedLiteral`)return null;if(t.name==`Literal`){let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n;if(t.to>e.pos)return null}}return null},FlowMapping:Ve({closing:`}`}),FlowSequence:Ve({closing:`]`})}),a.add({"FlowMapping FlowSequence":We,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:`#`},indentOnInput:/^\s*[\]\}]$/}});function FJ(){return new ze(PJ)}var IJ=Fe.define({name:`yaml-frontmatter`,parser:NJ.configure({props:[y({DashLine:G.meta})]})});function LJ(e){let{language:t,support:n}=e.content instanceof ze?e.content:{language:e.content,support:[]};return new ze(IJ.configure({wrap:Me(e=>e.name==`FrontmatterContent`?{parser:PJ.parser}:e.name==`Body`?{parser:t.parser}:null)}),n)}var RJ=`modulepreload`,zJ=function(e){return`/`+e},BJ={},VJ=function(e){return e.pathname.endsWith(`.css`)},HJ=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=zJ(t,n);let r=s(t),i=VJ(r);return HJ(BJ,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:RJ,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function $(e){return new ze(de.define(e))}function UJ(e){return Q(()=>import(`./dist-C-eCSFja.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1]))}var WJ=[U.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return Q(()=>import(`./dist-Bw5-uxs9.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),U.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return Q(()=>import(`./dist-Bw5-uxs9.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),U.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return UJ(`Cassandra`)}}),U.of({name:`CSS`,extensions:[`css`],load(){return Q(()=>Promise.resolve().then(()=>ZW).then(e=>e.css()),[])}}),U.of({name:`Go`,extensions:[`go`],load(){return Q(()=>import(`./dist-BudNAjOv.js`).then(e=>e.go()),__vite__mapDeps([3,1]))}}),U.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return Q(()=>Promise.resolve().then(()=>SK).then(e=>e.html()),void 0)}}),U.of({name:`Java`,extensions:[`java`],load(){return Q(()=>import(`./dist-DDJNvivM.js`).then(e=>e.java()),__vite__mapDeps([4,1]))}}),U.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript()),void 0)}}),U.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return Q(()=>import(`./dist-CO4heSzh.js`).then(e=>e.jinja()),__vite__mapDeps([5,1]))}}),U.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return Q(()=>import(`./dist-BzulKuec.js`).then(e=>e.json()),__vite__mapDeps([6,1]))}}),U.of({name:`JSX`,extensions:[`jsx`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({jsx:!0})),void 0)}}),U.of({name:`LESS`,extensions:[`less`],load(){return Q(()=>import(`./dist-vmf3fnkM.js`).then(e=>e.less()),__vite__mapDeps([7,1]))}}),U.of({name:`Liquid`,extensions:[`liquid`],load(){return Q(()=>import(`./dist-LixzGniF.js`).then(e=>e.liquid()),__vite__mapDeps([8,1]))}}),U.of({name:`MariaDB SQL`,load(){return UJ(`MariaSQL`)}}),U.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return Q(()=>Promise.resolve().then(()=>tq).then(e=>e.markdown()),void 0)}}),U.of({name:`MS SQL`,load(){return UJ(`MSSQL`)}}),U.of({name:`MySQL`,load(){return UJ(`MySQL`)}}),U.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return Q(()=>import(`./dist-DEPJZ3Me.js`).then(e=>e.php()),__vite__mapDeps([9,1]))}}),U.of({name:`PLSQL`,extensions:[`pls`],load(){return UJ(`PLSQL`)}}),U.of({name:`PostgreSQL`,load(){return UJ(`PostgreSQL`)}}),U.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return Q(()=>import(`./dist-DZ7RiqmA.js`).then(e=>e.python()),__vite__mapDeps([10,1]))}}),U.of({name:`Rust`,extensions:[`rs`],load(){return Q(()=>import(`./dist-CgIQYY1o.js`).then(e=>e.rust()),__vite__mapDeps([11,1]))}}),U.of({name:`Sass`,extensions:[`sass`],load(){return Q(()=>import(`./dist-jPS6HCJ5.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([12,1]))}}),U.of({name:`SCSS`,extensions:[`scss`],load(){return Q(()=>import(`./dist-jPS6HCJ5.js`).then(e=>e.sass()),__vite__mapDeps([12,1]))}}),U.of({name:`SQL`,extensions:[`sql`],load(){return UJ(`StandardSQL`)}}),U.of({name:`SQLite`,load(){return UJ(`SQLite`)}}),U.of({name:`TSX`,extensions:[`tsx`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({jsx:!0,typescript:!0})),void 0)}}),U.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({typescript:!0})),void 0)}}),U.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return Q(()=>import(`./dist-DF3F_I8N.js`).then(e=>e.wast()),__vite__mapDeps([13,1]))}}),U.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return Q(()=>import(`./dist-Dlorc3Sx.js`).then(e=>e.xml()),__vite__mapDeps([14,1]))}}),U.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return Q(()=>Promise.resolve().then(()=>MJ).then(e=>e.yaml()),void 0)}}),U.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return Q(()=>import(`./apl-gfMMiTNf.js`).then(e=>$(e.apl)),[])}}),U.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return Q(()=>import(`./asciiarmor-C_eisQCp.js`).then(e=>$(e.asciiArmor)),[])}}),U.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return Q(()=>import(`./asn1-DCl_8MCW.js`).then(e=>$(e.asn1({}))),[])}}),U.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return Q(()=>import(`./asterisk-BEn0Cwpx.js`).then(e=>$(e.asterisk)),[])}}),U.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return Q(()=>import(`./brainfuck-D5EjA2JK.js`).then(e=>$(e.brainfuck)),[])}}),U.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return Q(()=>import(`./cobol-DHLQUbN7.js`).then(e=>$(e.cobol)),[])}}),U.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.csharp)),[])}}),U.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`ClojureScript`,extensions:[`cljs`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return Q(()=>import(`./css-CnaYoQib.js`).then(e=>$(e.gss)),[])}}),U.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return Q(()=>import(`./cmake-84nbDH0I.js`).then(e=>$(e.cmake)),[])}}),U.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return Q(()=>import(`./coffeescript-De_zI4J0.js`).then(e=>$(e.coffeeScript)),[])}}),U.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return Q(()=>import(`./commonlisp-DgAKBe0r.js`).then(e=>$(e.commonLisp)),[])}}),U.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return Q(()=>import(`./cypher-p9eYesGn.js`).then(e=>$(e.cypher)),[])}}),U.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return Q(()=>import(`./python-B_1Jd8HM.js`).then(e=>$(e.cython)),[])}}),U.of({name:`Crystal`,extensions:[`cr`],load(){return Q(()=>import(`./crystal-Bl6YKCG_.js`).then(e=>$(e.crystal)),[])}}),U.of({name:`D`,extensions:[`d`],load(){return Q(()=>import(`./d-DWkQyNnU.js`).then(e=>$(e.d)),[])}}),U.of({name:`Dart`,extensions:[`dart`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.dart)),[])}}),U.of({name:`diff`,extensions:[`diff`,`patch`],load(){return Q(()=>import(`./diff-ChtP43wD.js`).then(e=>$(e.diff)),[])}}),U.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return Q(()=>import(`./dockerfile-DJkHQgkl.js`).then(e=>$(e.dockerFile)),__vite__mapDeps([15,16]))}}),U.of({name:`DTD`,extensions:[`dtd`],load(){return Q(()=>import(`./dtd-DTF72YNO.js`).then(e=>$(e.dtd)),[])}}),U.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return Q(()=>import(`./dylan-S7ucR4pR.js`).then(e=>$(e.dylan)),[])}}),U.of({name:`EBNF`,load(){return Q(()=>import(`./ebnf-D4c0_ac3.js`).then(e=>$(e.ebnf)),[])}}),U.of({name:`ECL`,extensions:[`ecl`],load(){return Q(()=>import(`./ecl-BVIeWmwY.js`).then(e=>$(e.ecl)),[])}}),U.of({name:`edn`,extensions:[`edn`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`Eiffel`,extensions:[`e`],load(){return Q(()=>import(`./eiffel-BEjRio4Q.js`).then(e=>$(e.eiffel)),[])}}),U.of({name:`Elm`,extensions:[`elm`],load(){return Q(()=>import(`./elm-Cshzl8qu.js`).then(e=>$(e.elm)),[])}}),U.of({name:`Erlang`,extensions:[`erl`],load(){return Q(()=>import(`./erlang-BV0c4Hdn.js`).then(e=>$(e.erlang)),[])}}),U.of({name:`Esper`,load(){return Q(()=>import(`./sql-DuQMFDvy.js`).then(e=>$(e.esper)),[])}}),U.of({name:`Factor`,extensions:[`factor`],load(){return Q(()=>import(`./factor-LKH5gN8L.js`).then(e=>$(e.factor)),__vite__mapDeps([17,16]))}}),U.of({name:`FCL`,load(){return Q(()=>import(`./fcl-ClOhbFR7.js`).then(e=>$(e.fcl)),[])}}),U.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return Q(()=>import(`./forth-D6RzAl64.js`).then(e=>$(e.forth)),[])}}),U.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return Q(()=>import(`./fortran-Bt6PBEDR.js`).then(e=>$(e.fortran)),[])}}),U.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.fSharp)),[])}}),U.of({name:`Gas`,extensions:[`s`],load(){return Q(()=>import(`./gas-BHEdbvp9.js`).then(e=>$(e.gas)),[])}}),U.of({name:`Gherkin`,extensions:[`feature`],load(){return Q(()=>import(`./gherkin-oBAE_ms0.js`).then(e=>$(e.gherkin)),[])}}),U.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return Q(()=>import(`./groovy-CUrWKPia.js`).then(e=>$(e.groovy)),[])}}),U.of({name:`Haskell`,extensions:[`hs`],load(){return Q(()=>import(`./haskell-BRsoo5mP.js`).then(e=>$(e.haskell)),[])}}),U.of({name:`Haxe`,extensions:[`hx`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.haxe)),[])}}),U.of({name:`HXML`,extensions:[`hxml`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.hxml)),[])}}),U.of({name:`HTTP`,load(){return Q(()=>import(`./http-CLVgA2GD.js`).then(e=>$(e.http)),[])}}),U.of({name:`IDL`,extensions:[`pro`],load(){return Q(()=>import(`./idl-BUZw3wgd.js`).then(e=>$(e.idl)),[])}}),U.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return Q(()=>import(`./javascript-lS2r2ifg.js`).then(e=>$(e.jsonld)),[])}}),U.of({name:`Julia`,extensions:[`jl`],load(){return Q(()=>import(`./julia-CQfgDRfP.js`).then(e=>$(e.julia)),[])}}),U.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.kotlin)),[])}}),U.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return Q(()=>import(`./livescript-BXxG0Yva.js`).then(e=>$(e.liveScript)),[])}}),U.of({name:`Lua`,extensions:[`lua`],load(){return Q(()=>import(`./lua-DPCEkfD_.js`).then(e=>$(e.lua)),[])}}),U.of({name:`mIRC`,extensions:[`mrc`],load(){return Q(()=>import(`./mirc-C9zpzAZU.js`).then(e=>$(e.mirc)),[])}}),U.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return Q(()=>import(`./mathematica-u8YMmbU0.js`).then(e=>$(e.mathematica)),[])}}),U.of({name:`Modelica`,extensions:[`mo`],load(){return Q(()=>import(`./modelica-CqHI_q-D.js`).then(e=>$(e.modelica)),[])}}),U.of({name:`MUMPS`,extensions:[`mps`],load(){return Q(()=>import(`./mumps-BSzj6Xyz.js`).then(e=>$(e.mumps)),[])}}),U.of({name:`Mbox`,extensions:[`mbox`],load(){return Q(()=>import(`./mbox-BEMVcqjs.js`).then(e=>$(e.mbox)),[])}}),U.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return Q(()=>import(`./nginx-C-ORUuei.js`).then(e=>$(e.nginx)),[])}}),U.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return Q(()=>import(`./nsis-viPvXFiq.js`).then(e=>$(e.nsis)),__vite__mapDeps([18,16]))}}),U.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return Q(()=>import(`./ntriples-CzMBulkp.js`).then(e=>$(e.ntriples)),[])}}),U.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveC)),[])}}),U.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveCpp)),[])}}),U.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.oCaml)),[])}}),U.of({name:`Octave`,extensions:[`m`],load(){return Q(()=>import(`./octave-D2Q8cUp1.js`).then(e=>$(e.octave)),[])}}),U.of({name:`Oz`,extensions:[`oz`],load(){return Q(()=>import(`./oz-BwTct_5T.js`).then(e=>$(e.oz)),[])}}),U.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return Q(()=>import(`./pascal-Dp_KdFgX.js`).then(e=>$(e.pascal)),[])}}),U.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return Q(()=>import(`./perl-BkSkiI9m.js`).then(e=>$(e.perl)),[])}}),U.of({name:`Pig`,extensions:[`pig`],load(){return Q(()=>import(`./pig-AF4Hwhju.js`).then(e=>$(e.pig)),[])}}),U.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return Q(()=>import(`./powershell-D8WpQPaX.js`).then(e=>$(e.powerShell)),[])}}),U.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return Q(()=>import(`./properties-C357ku5U.js`).then(e=>$(e.properties)),[])}}),U.of({name:`ProtoBuf`,extensions:[`proto`],load(){return Q(()=>import(`./protobuf-D1ij_kNL.js`).then(e=>$(e.protobuf)),[])}}),U.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return Q(()=>import(`./pug-BqCHZ5xT.js`).then(e=>$(e.pug)),__vite__mapDeps([19,20]))}}),U.of({name:`Puppet`,extensions:[`pp`],load(){return Q(()=>import(`./puppet-BZyAS7I4.js`).then(e=>$(e.puppet)),[])}}),U.of({name:`Q`,extensions:[`q`],load(){return Q(()=>import(`./q-B9NhS7L_.js`).then(e=>$(e.q)),[])}}),U.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return Q(()=>import(`./r-CxDmU1I4.js`).then(e=>$(e.r)),[])}}),U.of({name:`RPM Changes`,load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmChanges)),[])}}),U.of({name:`RPM Spec`,extensions:[`spec`],load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmSpec)),[])}}),U.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return Q(()=>import(`./ruby-ChfNwlCY.js`).then(e=>$(e.ruby)),[])}}),U.of({name:`SAS`,extensions:[`sas`],load(){return Q(()=>import(`./sas-C2OyD2Y6.js`).then(e=>$(e.sas)),[])}}),U.of({name:`Scala`,extensions:[`scala`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.scala)),[])}}),U.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return Q(()=>import(`./scheme-D9qYN0V5.js`).then(e=>$(e.scheme)),[])}}),U.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return Q(()=>import(`./shell-DwuoZtxw.js`).then(e=>$(e.shell)),[])}}),U.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return Q(()=>import(`./sieve-tLWDfEkZ.js`).then(e=>$(e.sieve)),[])}}),U.of({name:`Smalltalk`,extensions:[`st`],load(){return Q(()=>import(`./smalltalk-BLp5-jwC.js`).then(e=>$(e.smalltalk)),[])}}),U.of({name:`Solr`,load(){return Q(()=>import(`./solr-B78wSQJQ.js`).then(e=>$(e.solr)),[])}}),U.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.sml)),[])}}),U.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return Q(()=>import(`./sparql-Dz-mlCAC.js`).then(e=>$(e.sparql)),[])}}),U.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return Q(()=>import(`./spreadsheet-CTIncYxj.js`).then(e=>$(e.spreadsheet)),[])}}),U.of({name:`Squirrel`,extensions:[`nut`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.squirrel)),[])}}),U.of({name:`Stylus`,extensions:[`styl`],load(){return Q(()=>import(`./stylus-BOVgKnng.js`).then(e=>$(e.stylus)),[])}}),U.of({name:`Swift`,extensions:[`swift`],load(){return Q(()=>import(`./swift-DKB6_1j6.js`).then(e=>$(e.swift)),[])}}),U.of({name:`sTeX`,load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),U.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),U.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),U.of({name:`Tcl`,extensions:[`tcl`],load(){return Q(()=>import(`./tcl-BGfruO1u.js`).then(e=>$(e.tcl)),[])}}),U.of({name:`Textile`,extensions:[`textile`],load(){return Q(()=>import(`./textile-C4jVoHG1.js`).then(e=>$(e.textile)),[])}}),U.of({name:`TiddlyWiki`,load(){return Q(()=>import(`./tiddlywiki-VlUiK86J.js`).then(e=>$(e.tiddlyWiki)),[])}}),U.of({name:`Tiki wiki`,load(){return Q(()=>import(`./tiki-CvUEFusT.js`).then(e=>$(e.tiki)),[])}}),U.of({name:`TOML`,extensions:[`toml`],load(){return Q(()=>import(`./toml-BPTmHmyx.js`).then(e=>$(e.toml)),[])}}),U.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return Q(()=>import(`./troff-C2dAgh7P.js`).then(e=>$(e.troff)),[])}}),U.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return Q(()=>import(`./ttcn-PPSTk1ow.js`).then(e=>$(e.ttcn)),[])}}),U.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return Q(()=>import(`./ttcn-cfg-2b4Gb5sE.js`).then(e=>$(e.ttcnCfg)),[])}}),U.of({name:`Turtle`,extensions:[`ttl`],load(){return Q(()=>import(`./turtle-Cx3rYX2g.js`).then(e=>$(e.turtle)),[])}}),U.of({name:`Web IDL`,extensions:[`webidl`],load(){return Q(()=>import(`./webidl-D5jiJvOU.js`).then(e=>$(e.webIDL)),[])}}),U.of({name:`VB.NET`,extensions:[`vb`],load(){return Q(()=>import(`./vb-BthdM_4N.js`).then(e=>$(e.vb)),[])}}),U.of({name:`VBScript`,extensions:[`vbs`],load(){return Q(()=>import(`./vbscript-D9f6rSsU.js`).then(e=>$(e.vbScript)),[])}}),U.of({name:`Velocity`,extensions:[`vtl`],load(){return Q(()=>import(`./velocity-CqftRsjg.js`).then(e=>$(e.velocity)),[])}}),U.of({name:`Verilog`,extensions:[`v`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),U.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return Q(()=>import(`./vhdl-kS471soi.js`).then(e=>$(e.vhdl)),[])}}),U.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return Q(()=>import(`./xquery-BKJx4mf9.js`).then(e=>$(e.xQuery)),[])}}),U.of({name:`Yacas`,extensions:[`ys`],load(){return Q(()=>import(`./yacas-CXXgtw0p.js`).then(e=>$(e.yacas)),[])}}),U.of({name:`Z80`,extensions:[`z80`],load(){return Q(()=>import(`./z80-Co3PbHdE.js`).then(e=>$(e.z80)),[])}}),U.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.mscgen)),[])}}),U.of({name:`Xù`,extensions:[`xu`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.xu)),[])}}),U.of({name:`MsGenny`,extensions:[`msgenny`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.msgenny)),[])}}),U.of({name:`Vue`,extensions:[`vue`],load(){return Q(()=>import(`./dist-CPLhRzom.js`).then(e=>e.vue()),__vite__mapDeps([21,1]))}}),U.of({name:`Angular Template`,load(){return Q(()=>import(`./dist-O_RVi4tP.js`).then(e=>e.angular()),__vite__mapDeps([22,1]))}})],GJ=tt((e=>{var t=ot(),n=ut();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.for(`react.recoverable`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}var w=Symbol.for(`react.optimistic_key`),T=Array.isArray;function E(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)|0,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)|0,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)|0,(i^i>>>16)>>>0}var D=Object.assign,O=Object.prototype.hasOwnProperty,k=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]*$`),A={},j={};function M(e){return O.call(j,e)?!0:O.call(A,e)?!1:k.test(e)?j[e]=!0:(A[e]=!0,!1)}var N=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(` `)),P=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`]]),ee=/["'&<>]/;function F(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=ee.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var I=/([A-Z])/g,te=/^ms-/,ne=/^[\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 L(e){return ne.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},V=z.d;z.d={f:V.f,r:V.r,D:lt,C:dt,L:ft,m:pt,X:K,S:mt,M:q};var re=[],ie=null,ae=/(<\/|<)(s)(cript)/gi;function H(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function oe(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function se(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ce(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return se(2,null,r|1,null);case`select`:return se(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return se(4,null,r,null);case`picture`:return se(2,null,r|2,null);case`math`:return se(5,null,r,null);case`foreignObject`:return se(2,null,r,null);case`table`:return se(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return se(7,null,r,null);case`colgroup`:return se(9,null,r,null);case`tr`:return se(8,null,r,null);case`head`:if(2>e.insertionMode)return se(3,null,r,null);break;case`html`:if(e.insertionMode===0)return se(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?se(2,null,r,null):e.viewTransition!==null||e.tagScope!==r?se(e.insertionMode,e.selectedValue,r,null):e}function le(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,parentEnter:`none`,parentExit:`none`,name:e.autoName,autoName:e.autoName,nameIdx:0}}function ue(e,t){return t.tagScope&32&&(e.instructions|=128),se(t.insertionMode,t.selectedValue,t.tagScope|12,le(t.viewTransition))}function de(e,t){e=le(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),se(t.insertionMode,t.selectedValue,n,e)}function fe(e,t,n){return e=`_`+e.idPrefix+`R_`+t,0<n&&(e+=`H`+n.toString(32)),e+`_`}function pe(e,t){t=t.viewTransition,t!==null&&(t.name!==`auto`&&(_e(e,`vt-name`,t.nameIdx===0?t.name:t.name+`_`+t.nameIdx),t.nameIdx++),_e(e,`vt-update`,t.update),t.enter!==`none`&&_e(e,`vt-enter`,t.enter),t.exit!==`none`&&_e(e,`vt-exit`,t.exit),t.share!==`none`&&_e(e,`vt-share`,t.share))}var me=new Map;function he(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=F(i);a=F((``+a).trim())}else o=me.get(i),o===void 0&&(o=F(i.replace(I,`-$1`).toLowerCase().replace(te,`-ms-`)),me.set(i,o)),a=typeof a==`number`?a===0||N.has(i)?``+a:a+`px`:F((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function ge(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function _e(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,F(n),`"`)}var ve=F(`javascript:throw new Error('React form unexpectedly submitted.')`);function ye(e,t){this.push(`<input type="hidden"`),be(e),_e(this,`name`,t),_e(this,`value`,e),this.push(`/>`)}function be(e){if(typeof e!=`string`)throw Error(r(480))}function xe(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(be),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function Se(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=xe(t,r);l===null?(e.push(` `,`formAction`,`="`,ve,`"`),o=a=i=r=s=null,Te(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&U(e,`name`,s),r!=null&&U(e,`formAction`,r),i!=null&&U(e,`formEncType`,i),a!=null&&U(e,`formMethod`,a),o!=null&&U(e,`formTarget`,o),c}function U(e,t,n){switch(t){case`className`:_e(e,`class`,n);break;case`tabIndex`:_e(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:_e(e,t,n);break;case`style`:he(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=L(``+n),e.push(` `,t,`="`,F(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:ge(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=L(``+n),e.push(` `,`xlink:href`,`="`,F(n),`"`);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);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`&&e.push(` `,t,`=""`);break;case`capture`:case`download`:!0===n?e.push(` `,t,`=""`):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,F(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,F(n),`"`);break;case`xlinkActuate`:_e(e,`xlink:actuate`,n);break;case`xlinkArcrole`:_e(e,`xlink:arcrole`,n);break;case`xlinkRole`:_e(e,`xlink:role`,n);break;case`xlinkShow`:_e(e,`xlink:show`,n);break;case`xlinkTitle`:_e(e,`xlink:title`,n);break;case`xlinkType`:_e(e,`xlink:type`,n);break;case`xmlBase`:_e(e,`xml:base`,n);break;case`xmlLang`:_e(e,`xml:lang`,n);break;case`xmlSpace`:_e(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=P.get(t)||t,M(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(` `,t,`="`,F(n),`"`)}}}function Ce(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(``+t)}}function we(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function Te(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),it(r,e),r.push(`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});`,`<\/script>`)):r.unshift(t.startInlineScript,`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});`,`<\/script>`)}}function Ee(e,t){for(var n in e.push(Ie(`link`)),t)if(O.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:U(e,n,i)}}return e.push(`/>`),null}var De=/(<\/|<)(s)(tyle)/gi;function Oe(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function ke(e,t,n,i){for(var a in e.push(Ie(n)),t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:U(e,a,o)}}return pe(e,i),e.push(`/>`),null}function Ae(e,t){e.push(Ie(`title`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:U(e,i,a)}}return e.push(`>`),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(F(``+t)),Ce(e,r,n),e.push(ze(`title`)),null}function je(e,t){e.push(Ie(`script`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:U(e,i,a)}}return e.push(`>`),Ce(e,r,n),typeof n==`string`&&e.push((``+n).replace(ae,H)),e.push(ze(`script`)),null}function Me(e,t,n,r){e.push(Ie(n));var i=n=null,a;for(a in t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:U(e,a,o)}}return pe(e,r),e.push(`>`),Ce(e,i,n),n}function Ne(e,t,n,r){e.push(Ie(n));var i=n=null,a;for(a in t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:U(e,a,o)}}return pe(e,r),e.push(`>`),Ce(e,i,n),typeof n==`string`?(e.push(F(n)),null):n}var Pe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Fe=new Map;function Ie(e){var t=Fe.get(e);if(t===void 0){if(!Pe.test(e))throw Error(r(65,e));t=`<`+e,Fe.set(e,t)}return t}function Le(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(Ie(`a`));var u=null,d=null,f;for(f in n)if(O.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?_e(e,`href`,``):U(e,f,p);break;default:U(e,f,p)}}if(pe(e,c),e.push(`>`),Ce(e,d,u),typeof u==`string`){e.push(F(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(Ie(`select`));var h=null,g=null,_;for(_ in n)if(O.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:U(e,_,v)}}return pe(e,c),e.push(`>`),Ce(e,g,h),h;case`option`:var y=c.selectedValue;e.push(Ie(`option`));var b=null,x=null,S=null,C=null,w;for(w in n)if(O.call(n,w)){var E=n[w];if(E!=null)switch(w){case`children`:b=E;break;case`selected`:S=E;break;case`dangerouslySetInnerHTML`:C=E;break;case`value`:x=E;default:U(e,w,E)}}if(y!=null){var k=x===null?we(b):``+x;if(T(y)){for(var A=0;A<y.length;A++)if(``+y[A]===k){e.push(` selected=""`);break}}else``+y===k&&e.push(` selected=""`)}else S&&e.push(` selected=""`);return e.push(`>`),Ce(e,C,b),b;case`textarea`:e.push(Ie(`textarea`));var j=null,N=null,P=null,ee;for(ee in n)if(O.call(n,ee)){var I=n[ee];if(I!=null)switch(ee){case`children`:P=I;break;case`value`:j=I;break;case`defaultValue`:N=I;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:U(e,ee,I)}}if(j===null&&N!==null&&(j=N),pe(e,c),e.push(`>`),P!=null){if(j!=null)throw Error(r(92));if(T(P)){if(1<P.length)throw Error(r(93));j=``+P[0]}j=``+P}return typeof j==`string`&&j[0]===`
|
|
228
228
|
`&&e.push(`
|
|
229
229
|
`),j!==null&&e.push(F(``+j)),null;case`input`:e.push(Ie(`input`));var te=null,ne=null,R=null,z=null,B=null,V=null,ie=null,ae=null,H=null,oe;for(oe in n)if(O.call(n,oe)){var se=n[oe];if(se!=null)switch(oe){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`input`));case`name`:te=se;break;case`formAction`:ne=se;break;case`formEncType`:R=se;break;case`formMethod`:z=se;break;case`formTarget`:B=se;break;case`defaultChecked`:H=se;break;case`defaultValue`:ie=se;break;case`checked`:ae=se;break;case`value`:V=se;break;default:U(e,oe,se)}}var ce=Se(e,i,a,ne,R,z,B,te);return ae===null?H!==null&&ge(e,`checked`,H):ge(e,`checked`,ae),V===null?ie!==null&&U(e,`value`,ie):U(e,`value`,V),pe(e,c),e.push(`/>`),ce?.forEach(ye,e),null;case`button`:e.push(Ie(`button`));var le=null,ue=null,de=null,fe=null,me=null,be=null,Pe=null,Fe;for(Fe in n)if(O.call(n,Fe)){var Le=n[Fe];if(Le!=null)switch(Fe){case`children`:le=Le;break;case`dangerouslySetInnerHTML`:ue=Le;break;case`name`:de=Le;break;case`formAction`:fe=Le;break;case`formEncType`:me=Le;break;case`formMethod`:be=Le;break;case`formTarget`:Pe=Le;break;default:U(e,Fe,Le)}}var Re=Se(e,i,a,fe,me,be,Pe,de);if(pe(e,c),e.push(`>`),Re?.forEach(ye,e),Ce(e,ue,le),typeof le==`string`){e.push(F(le));var Be=null}else Be=le;return Be;case`form`:e.push(Ie(`form`));var Ve=null,He=null,Ue=null,W=null,We=null,Ge=null,Ke;for(Ke in n)if(O.call(n,Ke)){var qe=n[Ke];if(qe!=null)switch(Ke){case`children`:Ve=qe;break;case`dangerouslySetInnerHTML`:He=qe;break;case`action`:Ue=qe;break;case`encType`:W=qe;break;case`method`:We=qe;break;case`target`:Ge=qe;break;default:U(e,Ke,qe)}}var G=null,Je=null;if(typeof Ue==`function`){var Ye=xe(i,Ue);Ye===null?(e.push(` `,`action`,`="`,ve,`"`),Ge=We=W=Ue=null,Te(i,a)):(Ue=Ye.action||``,W=Ye.encType,We=Ye.method,Ge=Ye.target,G=Ye.data,Je=Ye.name)}if(Ue!=null&&U(e,`action`,Ue),W!=null&&U(e,`encType`,W),We!=null&&U(e,`method`,We),Ge!=null&&U(e,`target`,Ge),pe(e,c),e.push(`>`),Je!==null&&(e.push(`<input type="hidden"`),_e(e,`name`,Je),e.push(`/>`),G?.forEach(ye,e)),Ce(e,He,Ve),typeof Ve==`string`){e.push(F(Ve));var Xe=null}else Xe=Ve;return Xe;case`menuitem`:for(var Ze in e.push(Ie(`menuitem`)),n)if(O.call(n,Ze)){var Qe=n[Ze];if(Qe!=null)switch(Ze){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:U(e,Ze,Qe)}}return pe(e,c),e.push(`>`),null;case`object`:e.push(Ie(`object`));var $e=null,et=null,tt;for(tt in n)if(O.call(n,tt)){var nt=n[tt];if(nt!=null)switch(tt){case`children`:$e=nt;break;case`dangerouslySetInnerHTML`:et=nt;break;case`data`:var rt=L(``+nt);if(rt===``)break;e.push(` `,`data`,`="`,F(rt),`"`);break;default:U(e,tt,nt)}}if(pe(e,c),e.push(`>`),Ce(e,et,$e),typeof $e==`string`){e.push(F($e));var it=null}else it=$e;return it;case`title`:var at=c.tagScope&1,ot=c.tagScope&4;if(c.insertionMode===4||at||n.itemProp!=null)var st=Ae(e,n);else ot?st=null:(Ae(a.hoistableChunks,n),st=void 0);return st;case`link`:var ct=c.tagScope&1,lt=c.tagScope&4,ut=n.rel,dt=n.href,ft=n.precedence;if(c.insertionMode===4||ct||n.itemProp!=null||typeof ut!=`string`||typeof dt!=`string`||dt===``){Ee(e,n);var pt=null}else if(n.rel===`stylesheet`){if(typeof ft!=`string`||n.disabled!=null||n.onLoad||n.onError)pt=Ee(e,n);else{var mt=a.styles.get(ft),K=i.styleResources.hasOwnProperty(dt)?i.styleResources[dt]:void 0;if(K!==null){i.styleResources[dt]=null,mt||(mt={precedence:F(ft),rules:[],hrefs:[],sheets:new Map},a.styles.set(ft,mt));var q={state:0,props:D({},n,{"data-precedence":n.precedence,precedence:null})};if(K){K.length===2&&ht(q.props,K);var _t=a.preloads.stylesheets.get(dt);_t&&0<_t.length?_t.length=0:q.state=1}mt.sheets.set(dt,q),s&&s.stylesheets.add(q)}else if(mt){var vt=mt.sheets.get(dt);vt&&s&&s.stylesheets.add(vt)}l&&e.push(`<!-- -->`),pt=null}}else n.onLoad||n.onError?pt=Ee(e,n):(l&&e.push(`<!-- -->`),pt=lt?null:Ee(a.hoistableChunks,n));return pt;case`script`:var yt=c.tagScope&1,bt=n.async;if(typeof n.src!=`string`||!n.src||!bt||typeof bt==`function`||typeof bt==`symbol`||n.onLoad||n.onError||c.insertionMode===4||yt||n.itemProp!=null)var xt=je(e,n);else{var St=n.src;if(n.type===`module`)var Ct=i.moduleScriptResources,wt=a.preloads.moduleScripts;else Ct=i.scriptResources,wt=a.preloads.scripts;var Tt=Ct.hasOwnProperty(St)?Ct[St]:void 0;if(Tt!==null){Ct[St]=null;var Et=n;if(Tt){Tt.length===2&&(Et=D({},n),ht(Et,Tt));var Dt=wt.get(St);Dt&&(Dt.length=0)}var Ot=[];a.scripts.add(Ot),je(Ot,Et)}l&&e.push(`<!-- -->`),xt=null}return xt;case`style`:var kt=c.tagScope&1,At=n.precedence,jt=n.href,Mt=n.nonce;if(c.insertionMode===4||kt||n.itemProp!=null||typeof At!=`string`||typeof jt!=`string`||jt===``){e.push(Ie(`style`));var Nt=null,Pt=null,Ft;for(Ft in n)if(O.call(n,Ft)){var It=n[Ft];if(It!=null)switch(Ft){case`children`:Nt=It;break;case`dangerouslySetInnerHTML`:Pt=It;break;default:U(e,Ft,It)}}e.push(`>`);var Lt=Array.isArray(Nt)?2>Nt.length?Nt[0]:null:Nt;typeof Lt!=`function`&&typeof Lt!=`symbol`&&Lt!=null&&e.push((``+Lt).replace(De,Oe)),Ce(e,Pt,Nt),e.push(ze(`style`));var Rt=null}else{var zt=a.styles.get(At);if((i.styleResources.hasOwnProperty(jt)?i.styleResources[jt]:void 0)!==null){i.styleResources[jt]=null,zt||(zt={precedence:F(At),rules:[],hrefs:[],sheets:new Map},a.styles.set(At,zt));var Bt=a.nonce.style;if(!Bt||Bt===Mt){zt.hrefs.push(F(jt));var Vt=zt.rules,Ht=null,Ut=null,Wt;for(Wt in n)if(O.call(n,Wt)){var Gt=n[Wt];if(Gt!=null)switch(Wt){case`children`:Ht=Gt;break;case`dangerouslySetInnerHTML`:Ut=Gt}}var Kt=Array.isArray(Ht)?2>Ht.length?Ht[0]:null:Ht;typeof Kt!=`function`&&typeof Kt!=`symbol`&&Kt!=null&&Vt.push((``+Kt).replace(De,Oe)),Ce(Vt,Ut,Ht)}}zt&&s&&s.styles.add(zt),l&&e.push(`<!-- -->`),Rt=void 0}return Rt;case`meta`:var qt=c.tagScope&1,Jt=c.tagScope&4;if(c.insertionMode===4||qt||n.itemProp!=null)var Yt=ke(e,n,`meta`,c);else l&&e.push(`<!-- -->`),Yt=Jt?null:typeof n.charSet==`string`?ke(a.charsetChunks,n,`meta`,c):n.name===`viewport`?ke(a.viewportChunks,n,`meta`,c):ke(a.hoistableChunks,n,`meta`,c);return Yt;case`listing`:case`pre`:e.push(Ie(t));var Xt=null,Zt=null,Qt;for(Qt in n)if(O.call(n,Qt)){var $t=n[Qt];if($t!=null)switch(Qt){case`children`:Xt=$t;break;case`dangerouslySetInnerHTML`:Zt=$t;break;default:U(e,Qt,$t)}}if(pe(e,c),e.push(`>`),Zt!=null){if(Xt!=null)throw Error(r(60));if(typeof Zt!=`object`||!(`__html`in Zt))throw Error(r(61));var en=Zt.__html;en!=null&&(typeof en==`string`&&0<en.length&&en[0]===`
|
|
230
230
|
`?e.push(`
|
|
@@ -327,7 +327,7 @@ Next: open a new case and answer the questions left in it.`,onClick:()=>void s({
|
|
|
327
327
|
footer-links`,"aria-label":`Case names, one per line`,spellCheck:!1,className:`w-full resize-none ${hy} py-1 font-mono`}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`One name per line. `,(0,q.jsx)(`code`,{children:`folder/name`}),` overrides the folder below.`]}),f.length>0?(0,q.jsx)(`ul`,{className:`max-h-28 space-y-0.5 overflow-auto text-xs`,children:f.map((e,t)=>(0,q.jsxs)(`li`,{className:`flex items-center gap-1.5`,title:`cases/${e.id}.md`,children:[e.problem?(0,q.jsx)(Dl,{size:14,className:`shrink-0 text-seal-deep`,"aria-hidden":`true`}):(0,q.jsx)(au,{size:14,className:`shrink-0 text-jade-btn`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`min-w-0 truncate font-mono`,children:e.id}),e.problem?(0,q.jsx)(`span`,{className:`ml-auto shrink-0 text-seal-deep`,children:e.problem}):null]},t))}):null,(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(`input`,{value:c,onChange:e=>l(e.target.value),list:$1,placeholder:`folder`,"aria-label":`Folder (optional)`,title:`Folder for names without one (optional)`,className:`min-w-0 flex-1 ${hy} py-1 font-mono ${m?``:`border-seal`}`}),(0,q.jsx)(`button`,{className:`${Y(`primary`)} shrink-0`,disabled:!_,title:`Create the cases (Ctrl/Cmd+Enter)`,children:g.isPending?`Creating...`:f.length>1?`Create ${f.length}`:`Create`})]}),g.data&&g.data.failed.length>0?(0,q.jsx)(`ul`,{className:`space-y-0.5 text-xs text-seal-deep`,children:g.data.failed.map(e=>(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`code`,{children:e.id}),`: `,e.message]},e.id))}):null]})]})})]})}function m0(e){let t=new Map;for(let n of e)t.set(n.group,[...t.get(n.group)??[],n]);return[...t.entries()].sort(([e],[t])=>e===null?-1:t===null?1:e.localeCompare(t)).map(([e,t])=>({group:e,items:t}))}function h0(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);if(n.length===0)return!0;let r=[e.id,e.title,...e.suites,e.login,e.writes.length>0?`writes ${e.writes.join(` `)}`:null,e.writesNote].filter(Boolean).join(`
|
|
328
328
|
`).toLowerCase();return n.every(e=>r.includes(e))}function g0({icon:e,label:t,aside:n,open:r,onToggle:i}){let a=`flex w-full items-center gap-2 border-y border-theme-btn bg-theme-btn px-3 py-2 text-left text-white`,o=(0,q.jsxs)(q.Fragment,{children:[e,(0,q.jsx)(`span`,{className:`eyebrow text-sm`,children:t}),n?(0,q.jsx)(`span`,{className:`ml-auto text-xs text-white/75`,children:n}):null,i?(0,q.jsx)(`span`,{className:`${n?``:`ml-auto `}flex h-6 w-6 shrink-0 items-center justify-center rounded bg-white/15 transition-colors group-hover:bg-white/30`,"aria-hidden":`true`,children:(0,q.jsx)(xu,{size:16,className:`transition-transform duration-200 motion-reduce:transition-none ${r?``:`rotate-180`}`})}):null]});return i?(0,q.jsx)(`button`,{className:`${a} group`,onClick:i,"aria-expanded":r,children:o}):(0,q.jsx)(`h2`,{className:a,children:o})}function _0({value:e,onChange:t}){return(0,q.jsxs)(`div`,{className:`relative border-b border-line-mid bg-card p-2`,children:[(0,q.jsx)(Xf,{size:14,className:`pointer-events-none absolute top-1/2 left-5 -translate-y-1/2 text-ink-3`,"aria-hidden":`true`}),(0,q.jsx)(`input`,{type:`search`,value:e,onChange:e=>t(e.target.value),onKeyDown:e=>{e.key===`Escape`&&t(``)},placeholder:`Search name, title, suite...`,"aria-label":`Search cases`,spellCheck:!1,className:`w-full pr-8 pl-8 ${hy} [&::-webkit-search-cancel-button]:hidden`}),e?(0,q.jsx)(`button`,{type:`button`,className:`absolute top-1/2 right-4 -translate-y-1/2 text-ink-3 hover:text-ink`,"aria-label":`Clear search`,onClick:()=>t(``),children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})}):null]})}function v0(){let e=jo()[`*`]||void 0,t=Do(),n=pl(),[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(``),s=a.trim()!==``,c=(0,K.useMemo)(()=>(n.data??[]).filter(e=>h0(e,a)),[n.data,a]),l=(0,K.useMemo)(()=>m0(c),[c]),[u,d]=Dp(`asrun-ui.cases.sidebar-width`,V1,Ap),[f,p]=(0,K.useState)(new Set),m=e=>p(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n});return(0,q.jsxs)(`div`,{className:`flex h-full min-h-0`,children:[(0,q.jsxs)(`aside`,{className:`flex shrink-0 flex-col bg-card`,style:{width:Tp(u,H1,U1)},children:[(0,q.jsx)(`h1`,{className:`eyebrow border-l-4 border-theme px-3 py-3 text-sm`,children:`Cases`}),(0,q.jsx)(p0,{caseId:e,onCreated:e=>t(`/cases/${e}`)}),(0,q.jsx)(e0,{}),(0,q.jsx)(g0,{icon:(0,q.jsx)(qd,{size:14,"aria-hidden":`true`}),label:`Case list`,aside:s?`${c.length} / ${n.data?.length??0}`:n.data?.length??0}),(0,q.jsx)(_0,{value:a,onChange:o}),(0,q.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-auto`,children:[l.map(n=>(0,q.jsxs)(`div`,{children:[n.group===null?null:(0,q.jsxs)(`button`,{className:`flex w-full items-center gap-2 border-b border-line bg-warm px-3 py-1.5 text-left text-xs font-medium text-ink-2 hover:bg-line`,onClick:()=>m(n.group),"aria-expanded":s||!f.has(n.group),children:[(0,q.jsx)(lu,{size:14,className:`transition-transform duration-200 motion-reduce:transition-none ${!s&&f.has(n.group)?`-rotate-90`:``}`,"aria-hidden":`true`}),(0,q.jsx)(Dd,{size:14,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`font-mono`,children:n.group}),(0,q.jsx)(`span`,{className:`ml-auto text-ink-3`,children:n.items.length})]}),(0,q.jsx)(Mp,{open:n.group===null||s||!f.has(n.group),children:(0,q.jsx)(`ul`,{children:n.items.map(r=>(0,q.jsxs)(`li`,{className:`relative`,children:[(0,q.jsxs)(qs,{to:`/cases/${r.id}`,className:`block border-b border-l-4 border-line py-2 pr-4 hover:bg-warm ${n.group===null?`pl-8`:`pl-12`} ${r.id===e?`border-l-theme bg-theme-bg`:`border-l-transparent`}`,children:[(0,q.jsx)(`div`,{className:`font-mono text-sm`,children:A_(r.id).name}),r.title?(0,q.jsx)(`div`,{className:`truncate text-xs text-ink-2`,children:r.title}):null,r.writes.length>0||r.suites.length>0||r.problem||r.login?(0,q.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-1`,children:[r.writes.length>0?(0,q.jsx)(cy,{title:r.writesNote??void 0}):null,r.suites.map(e=>(0,q.jsx)(ay,{tone:`blue`,children:e},e)),r.problem?(0,q.jsx)(ay,{tone:`red`,children:`invalid front matter`}):null,r.login?(0,q.jsxs)(ay,{tone:`gray`,children:[`login: `,r.login]}):null]}):null,(0,q.jsx)(`div`,{className:`mt-1 text-xs text-ink-3`,children:xy(r.updatedAt)})]}),r.hasSpec?(0,q.jsx)(`button`,{className:`absolute top-2 left-2 flex h-5 w-5 items-center justify-center rounded-full bg-jade text-white transition-colors hover:bg-jade-btn focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,"aria-label":`Run case ${r.id}`,title:`# Run ${r.id}\nIts spec is generated: run it on the Run tests page.`,onClick:()=>t(`/run`,{state:{case:r.id}}),children:(0,q.jsx)(Pf,{size:12,"aria-hidden":`true`})}):(0,q.jsx)(`span`,{className:`absolute top-2 left-2 flex h-5 w-5 items-center justify-center text-gold`,role:`img`,"aria-label":`No spec yet`,title:`# No spec yet
|
|
329
329
|
This case cannot run yet. Open it and choose Generate spec.`,children:(0,q.jsx)(jl,{size:15,"aria-hidden":`true`})})]},r.id))})})]},n.group??``)),n.isSuccess&&n.data.length===0?(0,q.jsx)(`p`,{className:`p-4 text-sm text-ink-2`,children:`No cases yet.`}):null,n.isSuccess&&n.data.length>0&&c.length===0?(0,q.jsxs)(`p`,{className:`p-4 text-sm text-ink-2`,children:[`No cases match "`,a.trim(),`".`]}):null]})]}),(0,q.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,title:`Drag to resize the sidebar, double-click to reset`,className:`w-1.5 shrink-0 cursor-col-resize bg-line-mid transition-colors hover:bg-theme`,onPointerDown:e=>{let t=Tp(u,H1,U1);Ep(e,e=>d(Tp(t+e,H1,U1)))},onDoubleClick:()=>d(V1)}),(0,q.jsx)(`section`,{className:`min-w-0 flex-1`,children:e===B1?(0,q.jsx)(d0,{memo:r,setMemo:i}):e?(0,q.jsx)(l0,{id:e},e):(0,q.jsx)(`div`,{className:`flex h-full items-center justify-center text-sm text-ink-2`,children:`Select a case to edit it, or write a memo and turn it into cases.`})})]})}var y0=[{command:`make-case`,title:`Start from raw notes`,optional:!0,what:`Turns a memo, a list of things to check or a pasted chat into case files. It writes them out as clear steps, marks the ones that change data or send email, and leaves a question in the case wherever a note was unclear. It never opens a browser and never writes a test.`,you:[`Paste your notes on Cases > From memo, then click Make cases.`,`Answer the questions it leaves in the new cases: keep the suggested sentence or write your own.`],next:[`Explore the new cases on the real pages (step 2). Until then they are drafts nobody has checked.`],cli:`A path is optional: the notes themselves can follow the command.`},{command:`explore-case`,title:`Explore a case`,what:`Checks the case against the real pages: it fixes the wording, writes down what each page shows, and leaves anything it cannot work out as a question in the case. It only edits the case file.`,you:[`Pick the environment to explore.`,`Stay at the computer with Attended ticked. When a step changes data, a card in the browser window asks you to do it yourself; click Done once you have finished.`,`Answer the questions it leaves in the case, or delete a question block to accept the sentence above it.`],next:[`Generate the spec (step 3). It stops if a step that writes data or fills in a form has no recipe of what you did.`],cli:`Add --attended when a person is at the machine: steps that write data are then handed to them, instead of becoming blocking questions.`},{command:`gen-spec`,title:`Generate the spec`,what:`Writes the spec (the test file) from the case. It is one test that runs once for each profile, with the values from the case's Values block. It does not run the test.`,you:[`Pick the environment to check the pages in; use staging while you try things out.`,`Log the profiles into the site first, on the Profiles page: the agent opens the pages with their saved sessions.`,`If a spec already exists, you are asked before it is overwritten.`],next:[`Run the test on the Run tests page. If the spec has visual checks, tick Update baselines for the first run.`,`Read the result under Reports.`],cli:`An existing spec is left alone; add --force to regenerate it and overwrite it.`},{command:`heal-spec`,title:`Heal a failing spec`,what:`For a test that fails after the product changed. The agent reads the latest report first (the failed step, the error, the screenshots) and runs the case again only when that is not enough. Then it says whether the test needed updating or whether it found a real product problem.`,you:[`Pick the environment where the failure happened.`,`Type what you know: what changed, which page, what you saw. Tick the profiles to heal; only profiles that are logged in are run.`],next:[`Read its verdict: a real product difference is a finding for the product team, not a test to change.`,`If it deleted a baseline that showed the wrong thing, tick Update baselines on the next run and check the new image.`],cli:`Add --profiles a,b to choose the profiles and --hints <file> for clues; without them, every logged-in profile is healed and no clue is read.`}];function b0({label:e,children:t}){return(0,q.jsxs)(`section`,{className:`mt-3`,children:[(0,q.jsx)(`h3`,{className:`eyebrow text-xs text-theme-ink`,children:e}),(0,q.jsx)(`div`,{className:`mt-1 text-sm text-ink-2`,children:t})]})}function x0({items:e}){return(0,q.jsx)(`ul`,{className:`list-disc space-y-1 pl-5`,children:e.map(e=>(0,q.jsx)(`li`,{children:e},e))})}function S0(){let e=dl(),[t,n]=Zs(),[r]=kA(),i=e.data?.caseIds.filter(e=>!e.startsWith(`_`))??[],a=t.get(`case`),o=a&&i.includes(a)?a:i[0]??`<case-id>`,s=`<env>`,c=e.data?.root??`the workspace folder`;return(0,q.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-serif text-2xl tracking-wide border-l-4 border-theme pl-3`,children:`AI guide`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-ink-2`,children:`The steps below are the AI work, in order: write a case, check it against the real pages, turn it into a test, and repair that test when the product changes.`}),(0,q.jsxs)(`p`,{className:`mt-2 text-sm text-ink-2`,children:[`In the Web UI you never type a command: choose the step in a case's toolbar (or paste notes on Cases > From memo) and click Run AI. AsRun starts the AI tool chosen in the top bar and streams the output to Jobs, so you can keep working. To drive that tool yourself, the same four commands are ready to copy at the`,` `,(0,q.jsx)(`a`,{href:`#commands`,className:`text-theme-ink underline`,children:`end of the page`}),`.`]})]}),(0,q.jsx)(`ol`,{className:`space-y-5`,children:y0.map((e,t)=>(0,q.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`h2`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-1 font-serif text-base`,children:[(0,q.jsxs)(`span`,{children:[t+1,`. `,e.title]}),(0,q.jsxs)(`code`,{className:`text-sm font-normal text-ink-2`,children:[`/`,e.command]}),e.optional?(0,q.jsx)(ay,{tone:`gray`,children:`Optional`}):null]}),(0,q.jsx)(b0,{label:`What it does`,children:e.what}),(0,q.jsx)(b0,{label:`What you do`,children:(0,q.jsx)(x0,{items:e.you})}),(0,q.jsx)(b0,{label:`Next`,children:(0,q.jsx)(x0,{items:e.next})})]},e.command))}),(0,q.jsxs)(`section`,{className:`space-y-2 text-xs text-ink-2`,children:[(0,q.jsxs)(`p`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Choosing the environment.`}),` Every step that opens real pages needs an environment, and none is picked for you: choose it in the toolbar. Use `,(0,q.jsx)(`code`,{children:`staging`}),` while you try things out.`]}),(0,q.jsxs)(`p`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`If a job needs your input.`}),` When a step ends with Needs your input, open the job in the Jobs bar and click Answer: keep the suggested sentences or write your own, and the same conversation continues and folds them into the case. After the UI server restarts, a job cannot be continued: answer in the case file and run the step again.`]})]}),(0,q.jsxs)(`section`,{id:`commands`,className:`space-y-3 border-t-2 border-line-mid pt-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:`Run the commands yourself`}),(0,q.jsxs)(`p`,{className:`mt-2 text-sm text-ink-2`,children:[`Nothing above needs a terminal: the buttons hand each command to the AI tool for you. If you would rather work in that tool yourself (to answer in its own chat, to watch every step, or on a machine without this UI), open a terminal in `,(0,q.jsx)(`code`,{className:`text-xs`,children:c}),` and use the same commands.`,` `,(0,q.jsx)(`code`,{children:`<env>`}),` stands for one of your environments, for example `,(0,q.jsx)(`code`,{children:`staging`}),`. Each command comes twice: typed into a running tool, or as a one-shot line for the shell. A one-shot run cannot answer, so whatever the agent cannot decide goes into the case file as a question; run it again once you have answered.`]})]}),(0,q.jsxs)(`div`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`text-sm text-ink-2`,children:`Case`}),(0,q.jsxs)(by,{value:o,onChange:e=>n({case:e}),"aria-label":`Case`,mono:!0,className:`align-middle`,children:[i.length===0?(0,q.jsx)(`option`,{children:`<case-id>`}):null,i.map(e=>(0,q.jsx)(`option`,{value:e,children:e},e))]})]}),(0,q.jsx)(`p`,{className:`mt-1.5 text-xs text-ink-3`,children:`The commands that take a case use this one.`})]}),(0,q.jsx)(`ol`,{className:`space-y-3`,children:y0.map((e,t)=>{let n=e.command;return(0,q.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`h3`,{className:`flex flex-wrap items-baseline gap-x-2 text-sm font-medium`,children:[(0,q.jsxs)(`span`,{children:[t+1,`. `,e.title]}),(0,q.jsxs)(`code`,{className:`font-normal text-ink-2`,children:[`/`,n]})]}),e.cli?(0,q.jsx)(`p`,{className:`mt-1 text-xs text-ink-2`,children:e.cli}):null,(0,q.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,q.jsxs)(`p`,{className:`text-xs text-ink-3`,children:[`Interactive: start `,(0,q.jsx)(`code`,{children:r}),`, then type`]}),(0,q.jsx)(yj,{text:n===`make-case`?`/make-case path/to/notes.md`:gc(n,o,{env:s})}),(0,q.jsx)(`p`,{className:`pt-1 text-xs text-ink-3`,children:`One-shot, from the shell`}),(0,q.jsx)(yj,{text:n===`make-case`?Pc(r,`path/to/notes.md`):Dc(r,n,o,{env:s})})]})]},n)})}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`About the one-shot lines.`}),` They cannot stop for permission, so each one allows up front what the agent needs`,r===`claude`?(0,q.jsxs)(q.Fragment,{children:[` `,`(`,(0,q.jsx)(`code`,{children:`--allowedTools`}),`, limited to the folders the command may change) and never allows`,` `,(0,q.jsx)(`code`,{children:`--allow-writes`}),`.`]}):(0,q.jsxs)(q.Fragment,{children:[` `,`(`,(0,q.jsx)(`code`,{children:`--auto`}),`), and `,(0,q.jsx)(`code`,{children:`--allow-writes`}),` is never added to it.`]}),` `,`Interactive mode asks you before each step instead.`]})]}),(0,q.jsx)(YA,{})]})}var C0=[{title:`Install and start`,command:`pnpm dlx @asrunjs/asrun init --install
|
|
330
|
-
pnpm go`,todo:[(0,q.jsx)(q.Fragment,{children:`Run both commands in your project folder. The first one adds AsRun and creates the workspace; the second one installs the browser, starts this UI and opens it in your browser.`}),(0,q.jsxs)(q.Fragment,{children:[`After the first time, `,(0,q.jsx)(`code`,{children:`pnpm go`}),` is enough.`]})]},{title:`Choose your AI tool`,todo:[(0,q.jsxs)(q.Fragment,{children:[`The top bar runs every AI command with `,(0,q.jsx)(`b`,{children:`Claude Code`}),` or `,(0,q.jsx)(`b`,{children:`OpenCode`}),`. Select the one installed and signed in on this machine.`]}),(0,q.jsx)(q.Fragment,{children:`Pick a model next to it, or keep the default. The choice is remembered in this browser.`})],image:{src:`/help/ai-tools.png`,alt:`The model picker and the AI tool switch in the top bar.`,caption:`The AI tool switch and the model picker in the top bar.`}},{title:`Add a profile`,to:`/profiles`,where:`Profiles > Add a new profile`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Expand `,(0,q.jsx)(`b`,{children:`Add a new profile`}),` at the bottom of the page, fill in the form, then click `,(0,q.jsx)(`b`,{children:`Add profile`}),`.`]}),(0,q.jsx)(q.Fragment,{children:`A new workspace starts with an example profile. Edit it to point at your site, or remove it if you do not need it.`})],image:{src:`/help/profile-form.png`,alt:`The profile form with its fields, above the Add profile button.`,caption:`The profile form at the bottom of the Profiles page.`}},{title:`Log in`,to:`/profiles`,where:`Profiles`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Click `,(0,q.jsx)(`b`,{children:`Login`}),` on the row of the profile. A browser window opens.`]}),(0,q.jsx)(q.Fragment,{children:`Sign in yourself, 2FA included.`}),(0,q.jsxs)(q.Fragment,{children:[`Click `,(0,q.jsx)(`b`,{children:`Done, save the session`}),` in the bottom-left corner of that window. The Login column then shows a green YES.`]})],note:(0,q.jsx)(q.Fragment,{children:`AsRun never types your credentials. A saved login stays on this machine and is as sensitive as a password.`}),image:{src:`/help/profiles-login.png`,alt:`The Profiles table with a Login button on each profile that is not signed in yet.`,caption:`Profiles: until you sign in, a row shows NO and a Login button.`}},{title:`Make cases from your notes`,to:`/cases/memo`,where:`Cases > From memo`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Open `,(0,q.jsx)(`b`,{children:`Cases`}),` and switch to `,(0,q.jsx)(`b`,{children:`From memo`}),`.`]}),(0,q.jsxs)(q.Fragment,{children:[`Paste your notes as they are, then click `,(0,q.jsx)(`b`,{children:`Make cases`}),`.`]})],image:{src:`/help/cases-memo.png`,alt:`The From memo editor with the notes on the left and the rendered text on the right.`,caption:`From memo: write or paste your notes, then make cases.`}},{title:`Explore a case`,to:`/cases`,where:`Cases`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Open a case and choose `,(0,q.jsx)(`b`,{children:`Explore case`}),` in the toolbar.`]}),(0,q.jsxs)(q.Fragment,{children:[`Pick the environment and click `,(0,q.jsx)(`b`,{children:`Run AI`}),`. Keep `,(0,q.jsx)(`b`,{children:`Attended`}),` ticked: you do the steps that change data, and the agent waits for you.`]}),(0,q.jsxs)(q.Fragment,{children:[`If the run ends with `,(0,q.jsx)(`b`,{children:`Needs your input`}),`, answer under the output, or edit the case and run it again.`]})],image:{src:`/help/case-explore.png`,alt:`The case toolbar with Explore case, the environment picker, Attended and Run AI.`,caption:`The case toolbar: command, environment and Run AI.`}},{title:`Generate the spec`,to:`/cases`,where:`Cases`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Choose `,(0,q.jsx)(`b`,{children:`Generate spec`}),` in the same toolbar, pick the environment, then click `,(0,q.jsx)(`b`,{children:`Run AI`}),`.`]}),(0,q.jsx)(q.Fragment,{children:`It writes the spec; it does not run the tests.`})],image:{src:`/help/case-generate.png`,alt:`The same case toolbar with Generate spec selected.`,caption:`With Generate spec selected, Run AI writes the spec.`}},{title:`Run the tests`,to:`/run`,where:`Run tests`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Pick the environment, tick the profiles, then click `,(0,q.jsx)(`b`,{children:`Run tests`}),`. The output streams in the Jobs bar.`]}),(0,q.jsxs)(q.Fragment,{children:[`On a case with visual checks, tick `,(0,q.jsx)(`b`,{children:`Update baselines`}),` for the first run.`]})],note:(0,q.jsx)(q.Fragment,{children:`By default a test only reads the product: nothing is created or changed. A case that writes data runs only in the environments it allows.`}),image:{src:`/help/run-tests.png`,alt:`The Run tests page with an environment chosen, the profiles ticked and the Run tests button below.`,caption:`Run tests: one environment, then the profiles.`}},{title:`Read the report`,to:`/reports`,where:`Reports`,todo:[(0,q.jsx)(q.Fragment,{children:`The latest run comes first, with failed cases on top.`}),(0,q.jsxs)(q.Fragment,{children:[`Click a case to see the failed step, the error and the video. `,(0,q.jsx)(`b`,{children:`Full Playwright report`}),` has the traces.`]}),(0,q.jsxs)(q.Fragment,{children:[`After a product change breaks a test, use `,(0,q.jsx)(`b`,{children:`Heal spec`}),` in the case toolbar.`]})],image:{src:`/help/reports.png`,alt:`A report with a failed case selected, showing the failed step, the error and the video.`,caption:`A failed case: the step, the error and the evidence.`}}];function w0(){return(0,q.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-serif text-2xl tracking-wide border-l-4 border-theme pl-3`,children:`How to start`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-ink-2`,children:`AsRun turns plain-language test cases into Playwright tests, runs them for every profile and shows you the evidence. This guide takes you from a new project to a test report.`})]}),(0,q.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:`Before you begin`}),(0,q.jsxs)(`ul`,{className:`mt-2 list-disc space-y-1 pl-5 text-sm text-ink-2`,children:[(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Node.js 22 or newer`}),` and `,(0,q.jsx)(`b`,{className:`text-ink`,children:`pnpm`}),`.`]}),(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Claude Code`}),` or `,(0,q.jsx)(`b`,{className:`text-ink`,children:`OpenCode`}),` for the AI steps. You can add one later: the other steps work without it.`]})]})]}),(0,q.jsx)(`ol`,{className:`space-y-5`,children:C0.map((e,t)=>(0,q.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-sm bg-theme-btn font-serif text-white shadow-btn`,children:t+1}),(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:e.title}),e.to?(0,q.jsxs)(qs,{to:e.to,className:`${Y()} ml-auto gap-1.5`,children:[e.where,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]}):null]}),e.command?(0,q.jsx)(`div`,{className:`mt-3`,children:(0,q.jsx)(yj,{text:e.command})}):null,(0,q.jsx)(`ol`,{className:`mt-3 list-decimal space-y-1 pl-9 text-sm marker:font-medium marker:text-theme-ink`,children:e.todo.map((e,t)=>(0,q.jsx)(`li`,{children:e},t))}),e.image?(0,q.jsxs)(`figure`,{className:`mt-3`,children:[(0,q.jsx)(`a`,{href:e.image.src,target:`_blank`,rel:`noreferrer`,title:`Open the screenshot at full size`,className:`block`,children:(0,q.jsx)(`img`,{src:e.image.src,alt:e.image.alt,loading:`lazy`,className:`block max-w-full rounded border border-line-mid shadow-paper`})}),e.image.caption?(0,q.jsx)(`figcaption`,{className:`mt-1.5 text-xs text-ink-2`,children:e.image.caption}):null]}):null,e.note?(0,q.jsx)(`p`,{className:`mt-3 rounded-sm border border-line-mid bg-warm p-2 text-xs text-ink-2`,children:e.note}):null]},e.title))}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`What's next:`}),` the`,` `,(0,q.jsx)(qs,{to:`/guide`,className:`text-qing-deep underline`,children:`AI guide`}),` `,`explains what each AI step does and has the same commands, ready to run in a terminal, and
|
|
330
|
+
pnpm go`,todo:[(0,q.jsx)(q.Fragment,{children:`Run both commands in your project folder. The first one adds AsRun and creates the workspace; the second one installs the browser, starts this UI and opens it in your browser.`}),(0,q.jsxs)(q.Fragment,{children:[`After the first time, `,(0,q.jsx)(`code`,{children:`pnpm go`}),` is enough.`]})]},{title:`Choose your AI tool`,todo:[(0,q.jsxs)(q.Fragment,{children:[`The top bar runs every AI command with `,(0,q.jsx)(`b`,{children:`Claude Code`}),` or `,(0,q.jsx)(`b`,{children:`OpenCode`}),`. Select the one installed and signed in on this machine.`]}),(0,q.jsx)(q.Fragment,{children:`Pick a model next to it, or keep the default. The choice is remembered in this browser.`})],image:{src:`/help/ai-tools.png`,alt:`The model picker and the AI tool switch in the top bar.`,caption:`The AI tool switch and the model picker in the top bar.`}},{title:`Add a profile`,to:`/profiles`,where:`Profiles > Add a new profile`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Expand `,(0,q.jsx)(`b`,{children:`Add a new profile`}),` at the bottom of the page, fill in the form, then click `,(0,q.jsx)(`b`,{children:`Add profile`}),`.`]}),(0,q.jsx)(q.Fragment,{children:`A new workspace starts with an example profile. Edit it to point at your site, or remove it if you do not need it.`})],image:{src:`/help/profile-form.png`,alt:`The profile form with its fields, above the Add profile button.`,caption:`The profile form at the bottom of the Profiles page.`}},{title:`Log in`,to:`/profiles`,where:`Profiles`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Click `,(0,q.jsx)(`b`,{children:`Login`}),` on the row of the profile. A browser window opens.`]}),(0,q.jsx)(q.Fragment,{children:`Sign in yourself, 2FA included.`}),(0,q.jsxs)(q.Fragment,{children:[`Click `,(0,q.jsx)(`b`,{children:`Done, save the session`}),` in the bottom-left corner of that window. The Login column then shows a green YES.`]})],note:(0,q.jsx)(q.Fragment,{children:`AsRun never types your credentials. A saved login stays on this machine and is as sensitive as a password.`}),image:{src:`/help/profiles-login.png`,alt:`The Profiles table with a Login button on each profile that is not signed in yet.`,caption:`Profiles: until you sign in, a row shows NO and a Login button.`}},{title:`Make cases from your notes`,to:`/cases/memo`,where:`Cases > From memo`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Open `,(0,q.jsx)(`b`,{children:`Cases`}),` and switch to `,(0,q.jsx)(`b`,{children:`From memo`}),`.`]}),(0,q.jsxs)(q.Fragment,{children:[`Paste your notes as they are, then click `,(0,q.jsx)(`b`,{children:`Make cases`}),`.`]})],image:{src:`/help/cases-memo.png`,alt:`The From memo editor with the notes on the left and the rendered text on the right.`,caption:`From memo: write or paste your notes, then make cases.`}},{title:`Explore a case`,to:`/cases`,where:`Cases`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Open a case and choose `,(0,q.jsx)(`b`,{children:`Explore case`}),` in the toolbar.`]}),(0,q.jsxs)(q.Fragment,{children:[`Pick the environment and click `,(0,q.jsx)(`b`,{children:`Run AI`}),`. Keep `,(0,q.jsx)(`b`,{children:`Attended`}),` ticked: you do the steps that change data, and the agent waits for you.`]}),(0,q.jsxs)(q.Fragment,{children:[`If the run ends with `,(0,q.jsx)(`b`,{children:`Needs your input`}),`, answer under the output, or edit the case and run it again.`]})],image:{src:`/help/case-explore.png`,alt:`The case toolbar with Explore case, the environment picker, Attended and Run AI.`,caption:`The case toolbar: command, environment and Run AI.`}},{title:`Generate the spec`,to:`/cases`,where:`Cases`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Choose `,(0,q.jsx)(`b`,{children:`Generate spec`}),` in the same toolbar, pick the environment, then click `,(0,q.jsx)(`b`,{children:`Run AI`}),`.`]}),(0,q.jsx)(q.Fragment,{children:`It writes the spec; it does not run the tests.`})],image:{src:`/help/case-generate.png`,alt:`The same case toolbar with Generate spec selected.`,caption:`With Generate spec selected, Run AI writes the spec.`}},{title:`Run the tests`,to:`/run`,where:`Run tests`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Pick the environment, tick the profiles, then click `,(0,q.jsx)(`b`,{children:`Run tests`}),`. The output streams in the Jobs bar.`]}),(0,q.jsxs)(q.Fragment,{children:[`On a case with visual checks, tick `,(0,q.jsx)(`b`,{children:`Update baselines`}),` for the first run.`]})],note:(0,q.jsx)(q.Fragment,{children:`By default a test only reads the product: nothing is created or changed. A case that writes data runs only in the environments it allows.`}),image:{src:`/help/run-tests.png`,alt:`The Run tests page with an environment chosen, the profiles ticked and the Run tests button below.`,caption:`Run tests: one environment, then the profiles.`}},{title:`Read the report`,to:`/reports`,where:`Reports`,todo:[(0,q.jsx)(q.Fragment,{children:`The latest run comes first, with failed cases on top.`}),(0,q.jsxs)(q.Fragment,{children:[`Click a case to see the failed step, the error and the video. `,(0,q.jsx)(`b`,{children:`Full Playwright report`}),` has the traces.`]}),(0,q.jsxs)(q.Fragment,{children:[`After a product change breaks a test, use `,(0,q.jsx)(`b`,{children:`Heal spec`}),` in the case toolbar.`]})],image:{src:`/help/reports.png`,alt:`A report with a failed case selected, showing the failed step, the error and the video.`,caption:`A failed case: the step, the error and the evidence.`}}];function w0(){return(0,q.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-serif text-2xl tracking-wide border-l-4 border-theme pl-3`,children:`How to start`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-ink-2`,children:`AsRun turns plain-language test cases into Playwright tests, runs them for every profile and shows you the evidence. This guide takes you from a new project to a test report.`})]}),(0,q.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:`Before you begin`}),(0,q.jsxs)(`ul`,{className:`mt-2 list-disc space-y-1 pl-5 text-sm text-ink-2`,children:[(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Node.js 22 or newer`}),` and `,(0,q.jsx)(`b`,{className:`text-ink`,children:`pnpm`}),`.`]}),(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Claude Code`}),` or `,(0,q.jsx)(`b`,{className:`text-ink`,children:`OpenCode`}),` for the AI steps. You can add one later: the other steps work without it.`]})]})]}),(0,q.jsx)(`ol`,{className:`space-y-5`,children:C0.map((e,t)=>(0,q.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-sm bg-theme-btn font-serif text-white shadow-btn`,children:t+1}),(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:e.title}),e.to?(0,q.jsxs)(qs,{to:e.to,className:`${Y()} ml-auto gap-1.5`,children:[e.where,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]}):null]}),e.command?(0,q.jsx)(`div`,{className:`mt-3`,children:(0,q.jsx)(yj,{text:e.command})}):null,(0,q.jsx)(`ol`,{className:`mt-3 list-decimal space-y-1 pl-9 text-sm marker:font-medium marker:text-theme-ink`,children:e.todo.map((e,t)=>(0,q.jsx)(`li`,{children:e},t))}),e.image?(0,q.jsxs)(`figure`,{className:`mt-3`,children:[(0,q.jsx)(`a`,{href:e.image.src,target:`_blank`,rel:`noreferrer`,title:`Open the screenshot at full size`,className:`block`,children:(0,q.jsx)(`img`,{src:e.image.src,alt:e.image.alt,loading:`lazy`,className:`block max-w-full rounded border border-line-mid shadow-paper`})}),e.image.caption?(0,q.jsx)(`figcaption`,{className:`mt-1.5 text-xs text-ink-2`,children:e.image.caption}):null]}):null,e.note?(0,q.jsx)(`p`,{className:`mt-3 rounded-sm border border-line-mid bg-warm p-2 text-xs text-ink-2`,children:e.note}):null]},e.title))}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`What's next:`}),` the`,` `,(0,q.jsx)(qs,{to:`/guide`,className:`text-qing-deep underline`,children:`AI guide`}),` `,`explains what each AI step does and has the same commands, ready to run in a terminal, and the `,(0,q.jsx)(`code`,{children:`docs`}),` `,`folder of the AsRun package explains profiles, values and baselines.`]}),(0,q.jsx)(YA,{})]})}var T0=`data-tip`,E0=`:is(button, input, select, textarea):disabled:is([title], [${T0}])`,D0={theme:`tip`,placement:`top`,arrow:!0,maxWidth:320,offset:[0,8],touch:!1,appendTo:()=>document.body};function O0(e){let t=document.createElement(`div`);t.className=`tip-body`;for(let n of e.split(`
|
|
331
331
|
`)){if(n.trim()===``)continue;let e=document.createElement(`p`);n.startsWith(`# `)?(e.className=`tip-title`,e.textContent=n.slice(2)):e.textContent=n,t.append(e)}return t}function k0(e){let t=e.getAttribute(`title`);return t!==null&&(e.setAttribute(T0,t),e.removeAttribute(`title`)),e.getAttribute(T0)??``}function A0(){dV(document.body,{...D0,target:`[title]:not(iframe):not(:disabled), [${T0}]:not(:disabled)`,delay:[300,0],onTrigger:e=>{k0(e.reference)},onShow:e=>{let t=k0(e.reference);if(t===``)return!1;e.setContent(O0(t))}});let e=document.createElement(`span`),t=null,n=cV(e,{...D0,trigger:`manual`,getReferenceClientRect:()=>t??new DOMRect}),r=null,i,a=0,o=e=>{window.clearTimeout(i),e&&n.hide()},s=(e,a)=>{let s=[...document.querySelectorAll(E0)].find(t=>{let n=t.getBoundingClientRect();return e>=n.left&&e<=n.right&&a>=n.top&&a<=n.bottom})??null;s!==r&&(o(r),r=s,s&&(i=window.setTimeout(()=>{let e=k0(s);e!==``&&(t=s.getBoundingClientRect(),n.setContent(O0(e)),n.show())},300)))};document.addEventListener(`mousemove`,e=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>s(e.clientX,e.clientY))}),document.addEventListener(`mouseleave`,()=>s(-1,-1)),document.addEventListener(`mousedown`,()=>{o(r),r=null})}function j0(){let{jobId:e}=jo(),t=hl(),n=Do(),{startError:r,clearStartError:i,markSeen:a}=bl(),o=t.data?.find(t=>t.id===e)??null;return nl(e??null,a,t.data),(0,q.jsxs)(`div`,{"data-theme":`dai`,className:`flex h-full flex-col text-ink`,children:[(0,q.jsxs)(`header`,{className:`flex items-center gap-4 border-b-2 border-ink bg-paper px-4 py-2 shadow-paper`,children:[(0,q.jsx)(`span`,{className:`seal`,children:`A`}),(0,q.jsx)(`span`,{className:`font-serif tracking-widest`,children:il}),(0,q.jsx)(qs,{to:`/run`,className:`ml-auto text-sm text-ink-2 hover:text-ink`,children:`Back to the app`})]}),r?(0,q.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-seal/40 bg-seal-bg px-3 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(`span`,{children:r}),(0,q.jsx)(`button`,{className:`ml-auto text-xs underline`,onClick:i,children:`dismiss`})]}):null,o?(0,q.jsx)(rA,{job:o,openJob:e=>n(`/jobs/${e}`)},o.id):(0,q.jsx)(`p`,{className:`p-6 text-sm text-ink-2`,children:t.isPending?`Loading...`:`This job does not exist (any more). Jobs are forgotten when the UI server restarts.`})]})}function M0({request:e,label:t,description:n,disabledReason:r}){let{startJob:i}=bl(),a=hl().data?.some(e=>e.kind===`run`&&e.status===`running`)??!1,[o,s]=(0,K.useState)(null),[c,l]=(0,K.useState)(!1),u=Un({mutationFn:async()=>{let t=await cc.previewRun({env:e.env,profiles:e.profiles,suites:e.suites,grep:e.grep,readOnly:e.readOnly});t.needsConfirmation?(l(!1),s({request:e,preview:t})):await i(e)}});return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{className:`${Y(`success`)} gap-1.5`,disabled:!!r||a||u.isPending,title:r?`# Cannot run again\n${r}`:a?`# A run is in progress
|
|
332
332
|
Wait for it to finish, or stop it in the jobs drawer.`:`# ${t}\n${n}`,onClick:()=>u.mutate(),children:[(0,q.jsx)(Kf,{size:14,"aria-hidden":`true`}),t]}),u.isError?(0,q.jsx)(`span`,{className:`text-xs text-seal-deep`,children:u.error.message}):null,o?(0,q.jsxs)(AA,{title:`Cases that write data in ${o.preview.env.toUpperCase()}`,onClose:()=>s(null),footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),onClick:()=>s(null),children:`Cancel`}),(0,q.jsxs)(`button`,{className:Y(`danger`),disabled:!c,onClick:()=>{let e={...o.request,confirmWritesIn:o.preview.env};s(null),i(e)},children:[`Run in `,o.preview.env.toUpperCase()]})]}),children:[(0,q.jsx)(`ul`,{className:`mb-3 max-h-64 space-y-2 overflow-auto text-sm`,children:o.preview.writeCases.map(e=>(0,q.jsxs)(`li`,{className:`rounded-sm border border-seal/30 bg-seal-bg p-2`,children:[(0,q.jsx)(`div`,{className:`font-mono`,children:e.id}),(0,q.jsx)(`div`,{className:`text-ink-2`,children:e.note}),(0,q.jsxs)(`div`,{className:`text-xs text-ink-2`,children:[`Accounts: `,e.profiles.join(`, `)]})]},e.id))}),(0,q.jsx)(`p`,{className:`mb-3 text-xs text-ink-2`,children:`They only touch data of the test accounts and never send email in production.`}),o.preview.skippedWriteCases.length>0?(0,q.jsxs)(`p`,{className:`mb-3 text-xs text-ink-2`,children:[`Skipped, because they have no permission to write in `,o.preview.env.toUpperCase(),`:`,` `,o.preview.skippedWriteCases.map(e=>e.id).join(`, `),`.`]}):null,(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>l(e.target.checked)}),`I confirm that these cases may write test data in `,o.preview.env.toUpperCase(),`.`]})]}):null]})}var N0=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),P0=e=>e.replace(/(?<!\\)\//g,`[\\\\/]`),F0=e=>`(?:^|\\s)${P0(N0(e))}\\.spec\\.ts`,I0={passed:{tone:`green`,label:`Passed`},failed:{tone:`red`,label:`Failed`},flaky:{tone:`amber`,label:`Flaky`},skipped:{tone:`gray`,label:`Skipped`}},L0={failed:0,flaky:1,skipped:2,passed:3},R0=({status:e})=>(0,q.jsx)(ay,{tone:I0[e].tone,children:I0[e].label}),z0=e=>e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`,B0=e=>{let t=e.errors[0];return t?t.headline:null};function V0({result:e,action:t}){let[n,...r]=e.errors;if(!n)return null;let i=e.status===`flaky`;return(0,q.jsxs)(`div`,{className:`rounded border border-l-4 p-4 ${i?`border-gold-deep bg-gold-bg text-ink`:`border-seal bg-seal-bg text-ink`}`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-2`,children:[(0,q.jsx)(`div`,{className:`text-xs font-semibold tracking-wide uppercase`,children:i?`Failed on the first try, passed on retry`:`Why it failed`}),t]}),e.failedStep?(0,q.jsxs)(`div`,{className:`mt-1 text-sm`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Step:`}),` `,e.failedStep]}):null,(0,q.jsx)(`p`,{className:`mt-2 text-base font-semibold break-words whitespace-pre-wrap`,children:n.headline}),n.context?(0,q.jsx)(`pre`,{className:`mt-2 max-h-48 overflow-auto rounded-sm bg-white/70 p-2 font-mono text-xs break-words whitespace-pre-wrap`,children:n.context}):null,r.length>0?(0,q.jsx)(`ul`,{className:`mt-3 list-disc space-y-1 pl-5 text-sm`,children:r.map((e,t)=>(0,q.jsx)(`li`,{className:`break-words whitespace-pre-wrap`,children:e.headline},t))}):null]})}function H0({result:e}){let t=e.errors.flatMap((e,t)=>[{label:`Call log`,key:`log-${t}`,text:e.callLog},{label:`Code`,key:`code-${t}`,text:e.snippet},{label:`Stack trace`,key:`stack-${t}`,text:e.stack}]).filter(e=>e.text);return t.length===0?null:(0,q.jsxs)(`details`,{className:`card-paper`,children:[(0,q.jsx)(`summary`,{className:`cursor-pointer px-4 py-2 text-sm font-medium text-ink`,children:`Technical details (for developers)`}),(0,q.jsx)(`div`,{className:`space-y-3 border-t border-line-mid p-4`,children:t.map(e=>(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`div`,{className:`mb-1 text-xs font-semibold tracking-widest text-ink-2 uppercase`,children:e.label}),(0,q.jsx)(`pre`,{className:`paper-grain max-h-64 overflow-auto rounded bg-dai-deep p-3 font-mono text-xs whitespace-pre-wrap text-paper`,children:e.text})]},e.key))})]})}var U0=/is not logged in to/,W0=e=>e.errors.some(e=>U0.test(e.headline));function G0({runId:e,result:t,env:n}){let[r,i]=(0,K.useState)(!1),[a]=kA(),o=dl().data?.caseIds.includes(t.caseId)??!1;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{className:`${Y(`danger`)} gap-1.5`,disabled:!o,title:o?`# Heal this failure
|
|
333
333
|
Asks the AI to read this report, decide whether the test or the product is wrong and fix the spec. Opens a dialog for the profiles and any clues.`:`# Case not found
|