@asrunjs/asrun 0.2.0 → 0.5.2
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/.claude/commands/explore-case.md +18 -15
- package/.claude/commands/gen-spec.md +16 -13
- package/.claude/commands/heal-spec.md +26 -23
- package/.claude/commands/make-case.md +11 -8
- package/.claude/skills/exploring-cases/SKILL.md +146 -132
- package/.claude/skills/exploring-cases/references/open-questions.md +116 -112
- package/.claude/skills/exploring-cases/references/readiness.md +146 -137
- package/.claude/skills/exploring-cases/references/user-handoff.md +157 -147
- package/.claude/skills/generating-specs/SKILL.md +219 -207
- package/.claude/skills/generating-specs/references/conventions.md +148 -148
- package/.claude/skills/making-cases/SKILL.md +72 -64
- package/.claude/skills/making-cases/references/normalizing.md +39 -38
- package/.claude/skills/making-cases/references/writes-and-email.md +37 -36
- package/AGENTS.md +159 -154
- package/CLAUDE.md +2 -1
- package/README.md +512 -410
- package/dist/lib/build-artifacts.d.ts +8 -0
- package/dist/lib/build-artifacts.js +10 -0
- package/dist/lib/case-doc.d.ts +311 -0
- package/dist/lib/case-doc.js +1117 -0
- package/dist/lib/cases.d.ts +2 -15
- package/dist/lib/cases.js +5 -78
- package/dist/lib/command.d.ts +24 -0
- package/dist/lib/command.js +90 -0
- package/dist/lib/fixtures.js +2 -2
- package/dist/lib/login-card.d.ts +22 -0
- package/dist/lib/login-card.js +183 -0
- package/dist/lib/node-cli.d.ts +6 -2
- package/dist/lib/node-cli.js +16 -6
- package/dist/lib/profiles.d.ts +25 -1
- package/dist/lib/profiles.js +54 -1
- package/dist/lib/run-filters.js +10 -2
- package/dist/lib/session.d.ts +13 -1
- package/dist/lib/session.js +73 -7
- package/dist/lib/targets.d.ts +5 -13
- package/dist/lib/targets.js +4 -29
- package/dist/lib/values.js +2 -2
- package/dist/scripts/build.js +2 -1
- package/dist/scripts/check-cases.js +74 -6
- package/dist/scripts/doctor.js +115 -4
- package/dist/scripts/explore.js +22 -1
- package/dist/scripts/init.d.ts +7 -1
- package/dist/scripts/init.js +61 -13
- package/dist/scripts/lint-specs.js +4 -1
- package/dist/scripts/login.js +30 -2
- package/dist/ui/server/actions.d.ts +4 -0
- package/dist/ui/server/actions.js +25 -12
- package/dist/ui/server/ai-models.d.ts +3 -0
- package/dist/ui/server/ai-models.js +347 -0
- package/dist/ui/server/ai-stream.d.ts +34 -9
- package/dist/ui/server/ai-stream.js +283 -77
- package/dist/ui/server/app.js +74 -12
- package/dist/ui/server/jobs.d.ts +7 -1
- package/dist/ui/server/jobs.js +69 -15
- package/dist/ui/server/profiles.d.ts +20 -1
- package/dist/ui/server/profiles.js +214 -38
- package/dist/ui/shared/ai-commands.d.ts +16 -6
- package/dist/ui/shared/ai-commands.js +35 -12
- package/dist/ui/shared/types.d.ts +114 -0
- package/docs/agents/framework-dev.md +79 -0
- package/docs/theme-guide.html +922 -692
- package/package.json +12 -1
- package/templates/.claude/commands/explore-case.md +22 -21
- package/templates/.claude/commands/gen-spec.md +21 -20
- package/templates/.claude/commands/heal-spec.md +31 -30
- package/templates/.claude/commands/make-case.md +13 -12
- package/templates/.mcp.json +8 -8
- package/templates/AGENTS.md +64 -45
- package/templates/cases/_template.md +57 -63
- package/templates/opencode.jsonc +16 -11
- package/templates/profiles.yaml +42 -29
- package/ui/dist/assets/{dist-BHaIOZdW.js → dist-BGbe0-Aa.js} +1 -1
- package/ui/dist/assets/{dist-CBV7_vDN.js → dist-Ba-HC662.js} +1 -1
- package/ui/dist/assets/{dist-BiE4suo9.js → dist-BtMLMthJ.js} +1 -1
- package/ui/dist/assets/{dist-gF2bFn-5.js → dist-C-Oyo1ZT.js} +1 -1
- package/ui/dist/assets/{dist-DX8knLVr.js → dist-C8MdhqgG.js} +1 -1
- package/ui/dist/assets/{dist-DHCY9KpV.js → dist-CG1pHn5m.js} +1 -1
- package/ui/dist/assets/{dist-BwYRbe5s.js → dist-CmpteMYY.js} +1 -1
- package/ui/dist/assets/{dist-D_I45xgJ.js → dist-DSy3dVf4.js} +1 -1
- package/ui/dist/assets/{dist-BqAROxzI.js → dist-Dq6sW5Ur.js} +1 -1
- package/ui/dist/assets/{dist-BSJMM_jp.js → dist-jjxQutEm.js} +1 -1
- package/ui/dist/assets/index-CTmnF0Wp.css +2 -0
- package/ui/dist/assets/index-P_Yo0ZZn.js +338 -0
- package/ui/dist/help/ai-tools.png +0 -0
- package/ui/dist/help/case-explore.png +0 -0
- package/ui/dist/help/case-generate.png +0 -0
- package/ui/dist/help/cases-memo.png +0 -0
- package/ui/dist/help/profile-form.png +0 -0
- package/ui/dist/help/profiles-login.png +0 -0
- package/ui/dist/help/reports.png +0 -0
- package/ui/dist/help/run-tests.png +0 -0
- package/ui/dist/index.html +22 -16
- package/ui/dist/assets/index-DmasQ6Rq.css +0 -2
- package/ui/dist/assets/index-I7uU93kk.js +0 -294
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-CBV7_vDN.js","assets/dist-Dr9crbBz.js","assets/dist-Bw5-uxs9.js","assets/dist-D_I45xgJ.js","assets/dist-DDJNvivM.js","assets/dist-gF2bFn-5.js","assets/dist-BzulKuec.js","assets/dist-BSJMM_jp.js","assets/dist-BHaIOZdW.js","assets/dist-BqAROxzI.js","assets/dist-BwYRbe5s.js","assets/dist-CgIQYY1o.js","assets/dist-BiE4suo9.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-DX8knLVr.js","assets/dist-DHCY9KpV.js"])))=>i.map(i=>d[i]);
|
|
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 F,U as I,V as L,Vt as R,W as ee,X as z,Y as B,Z as V,_ as te,_t as ne,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 U,f as ue,ft as de,g as fe,gt as pe,h as me,ht as he,i as ge,it as _e,j as ve,jt as ye,k as be,kt as xe,l as W,lt as Se,m as Ce,mt as we,n as Te,nt as Ee,o as De,ot as Oe,p as ke,pt as Ae,q as je,r as Me,rt as Ne,s as Pe,st as Fe,t as Ie,tt as Le,u as Re,ut as ze,v as Be,vt as Ve,w as He,wt as G,x as Ue,xt as We,y as Ge,yt as Ke,z as K,zt as qe}from"./dist-Dr9crbBz.js";var Je=Object.create,Ye=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Ze=Object.getOwnPropertyNames,Qe=Object.getPrototypeOf,$e=Object.prototype.hasOwnProperty,et=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),tt=(e,t)=>{let n={};for(var r in e)Ye(n,r,{get:e[r],enumerable:!0});return t||Ye(n,Symbol.toStringTag,{value:`Module`}),n},nt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Ze(t),a=0,o=i.length,s;a<o;a++)s=i[a],!$e.call(e,s)&&s!==n&&Ye(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Xe(t,s))||r.enumerable});return e},rt=(e,t,n)=>(n=e==null?{}:Je(Qe(e)),nt(t||!e||!e.__esModule||!$e.call(e,`default`)?Ye(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 it=et((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 F(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 I(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 L=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 R(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,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ee(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 R(ee.bind(null,e))}var z={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(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=z,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=ee,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:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,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`})),at=et(((e,t)=>{t.exports=it()})),ot=et((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}}}})),st=et(((e,t)=>{t.exports=ot()})),ct=et((e=>{var t=at();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`})),lt=et(((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=ct()})),ut=et((e=>{var t=st(),n=at(),r=lt();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`),F=Symbol.for(`react.suspense_list`),I=Symbol.for(`react.memo`),L=Symbol.for(`react.lazy`),R=Symbol.for(`react.activity`),ee=Symbol.for(`react.legacy_hidden`),z=Symbol.for(`react.memo_cache_sentinel`),B=Symbol.for(`react.view_transition`),V=Symbol.for(`react.recoverable`),te=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||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 F:return`SuspenseList`;case R:return`Activity`;case B: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 I:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case L: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 U(e){return{current:e}}function ue(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function de(e,t){le++,ce[le]=e.current,e.current=t}var fe=U(null),pe=U(null),me=U(null),he=U(null);function ge(e,t){switch(de(me,t),de(pe,e),de(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=hp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(fe),de(fe,e)}function _e(){ue(fe),ue(pe),ue(me)}function ve(e){var t=e.memoizedState;t!==null&&(dh._currentValue=t.memoizedState,de(he,e)),t=fe.current;var n=hp(t,e.type);t!==n&&(de(pe,e),de(fe,n))}function ye(e){pe.current===e&&(ue(fe),ue(pe)),he.current===e&&(ue(he),dh._currentValue=se)}var be,xe;function W(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(`
|
|
3
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
-
`+be+e+xe}var Se=!1;function Ce(e,t){if(!e||Se)return``;Se=!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(`
|
|
5
|
-
`),l=s.split(`
|
|
6
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?W(n):``}function we(e,t){switch(e.tag){case 26:case 27:case 5:return W(e.type);case 16:return W(`Lazy`);case 13:return e.child!==t&&t!==null?W(`Suspense Fallback`):W(`Suspense`);case 19:return W(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return W(`Activity`);case 30:return W(`ViewTransition`);default:return``}}function Te(e){try{var t=``,n=null;do t+=we(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
-
Error generating stack: `+e.message+`
|
|
9
|
-
`+e.stack}}var Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,ke=t.unstable_shouldYield,Ae=t.unstable_requestPaint,je=t.unstable_now,Me=t.unstable_getCurrentPriorityLevel,Ne=t.unstable_ImmediatePriority,Pe=t.unstable_UserBlockingPriority,Fe=t.unstable_NormalPriority,Ie=t.unstable_LowPriority,Le=t.unstable_IdlePriority,Re=t.log,ze=t.unstable_setDisableYieldValue,Be=null,Ve=null;function He(e){if(typeof Re==`function`&&ze(e),Ve&&typeof Ve.setStrictMode==`function`)try{Ve.setStrictMode(Be,e)}catch{}}var G=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,K=262144,qe=4194304;function Je(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-G(n),i=1<<r;t|=e[r],n&=~i}return t}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $e(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-G(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-G(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-G(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ot(e,t){var n=t&-t;return n=n&42?1:ct(n),(n&(e.suspendedLanes|t))===0?n:0}function ct(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ut(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dt(){var e=oe.p;return e===0?(e=window.event,e===void 0?32:Dh(e.type)):e}function ft(e,t){var n=oe.p;try{return oe.p=e,t()}finally{oe.p=n}}var pt=Math.random().toString(36).slice(2),q=`__reactFiber$`+pt,J=`__reactProps$`+pt,mt=`__reactContainer$`+pt,ht=`__reactEvents$`+pt,gt=`__reactListeners$`+pt,_t=`__reactHandles$`+pt,vt=`__reactResources$`+pt,yt=`__reactMarker$`+pt,bt=`__reactLoad$`+pt;function xt(e){delete e[q],delete e[J],delete e[gt],delete e[_t]}function St(e){var t;if(t=e[q])return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[q]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gm(e);e!==null;){if(n=e[q])return n;e=gm(e)}return t}e=n,n=e.parentNode}return null}function Ct(e){if(e=e[q]||e[mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Tt(e){var t=e[vt];return t||=e[vt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Et(e){e[yt]=!0}function Dt(e){e[bt]=void 0}var Ot=new Set,kt={};function At(e,t){jt(e,t),jt(e+`Capture`,t)}function jt(e,t){for(kt[e]=t,e=0;e<t.length;e++)Ot.add(t[e])}var Mt=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]*$`),Nt={},Pt={};function Ft(e){return Ee.call(Pt,e)?!0:Ee.call(Nt,e)?!1:Mt.test(e)?Pt[e]=!0:(Nt[e]=!0,!1)}var It=!1;function Lt(){var e=It;return It=!1,e}function Rt(e,t,n){if(Ft(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function zt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Bt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Vt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ht(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ut(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wt(e){if(!e._valueTracker){var t=Ht(e)?`checked`:`value`;e._valueTracker=Ut(e,t,``+e[t])}}function Gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ht(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Kt=/[\n"\\]/g;function qt(e){return e.replace(Kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Vt(t)):e.value!==``+Vt(t)&&(e.value=``+Vt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Xt(e,Vt(n)):o===`number`&&e.value==t?Xt(e,Vt(e.value)):Xt(e,Vt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Vt(s):e.removeAttribute(`name`)}function Yt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Wt(e);return}n=n==null?``:``+Vt(n),t=t==null?n:``+Vt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Wt(e)}function Xt(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function Zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Vt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qt(e,t,n){t!=null&&(t=``+Vt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Vt(n)}function $t(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Vt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Wt(e)}function en(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function nn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||tn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function rn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,It=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(nn(e,a,r),It=!0)}else for(var o in t)t.hasOwnProperty(o)&&nn(e,o,t[o])}function an(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var on=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`]]),sn=/^[\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 cn(e){return sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function ln(){}var un=null;function dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fn=null,pn=null;function mn(e){var t=Ct(e);if(t&&(e=t.stateNode)){var n=e[J]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+qt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[J]||null;if(!a)throw Error(i(90));Jt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Gt(r)}break a;case`textarea`:Qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}}}var hn=!1;function gn(e,t,n){if(hn)return e(t,n);hn=!0;try{return e(t)}finally{if(hn=!1,(fn!==null||pn!==null)&&(Bd(),fn&&(t=fn,e=pn,pn=fn=null,mn(t),e)))for(t=0;t<e.length;t++)mn(e[t])}}function _n(e,t){var n=e.stateNode;if(n===null)return null;var r=n[J]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var vn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,"passive",{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=w({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=w({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(w({},In,{dataTransfer:0})),zn=On(w({},jn,{relatedTarget:0})),Bn=On(w({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(w({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(w({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(w({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(w({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(w({},kn,{submitter:0})),Zn=On(w({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Qn=On(w({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),$n=On(w({},In,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),er=On(w({},kn,{newState:0,oldState:0,source:0})),tr=[9,13,27,32],nr=vn&&`CompositionEvent`in window,rr=null;vn&&`documentMode`in document&&(rr=document.documentMode);var ir=vn&&`TextEvent`in window&&!rr,ar=vn&&(!nr||rr&&8<rr&&11>=rr),or=` `,sr=!1;function cr(e,t){switch(e){case`keyup`:return tr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function lr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ur=!1;function dr(e,t){switch(e){case`compositionend`:return lr(t);case`keypress`:return t.which===32?(sr=!0,or):null;case`textInput`:return e=t.data,e===or&&sr?null:e;default:return null}}function fr(e,t){if(ur)return e===`compositionend`||!nr&&cr(e,t)?(e=wn(),Cn=Sn=xn=null,ur=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ar&&t.locale!==`ko`?null:t.data;default:return null}}var pr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!pr[e.type]:t===`textarea`}function hr(e,t,n,r){fn?pn?pn.push(r):pn=[r]:fn=r,t=Zf(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var gr=null,_r=null;function vr(e){Uf(e,0)}function yr(e){if(Gt(wt(e)))return e}function br(e,t){if(e===`change`)return t}var xr=!1;if(vn){var Sr;if(vn){var Cr=`oninput`in document;if(!Cr){var wr=document.createElement(`div`);wr.setAttribute(`oninput`,`return;`),Cr=typeof wr.oninput==`function`}Sr=Cr}else Sr=!1;xr=Sr&&(!document.documentMode||9<document.documentMode)}function Tr(){gr&&(gr.detachEvent(`onpropertychange`,Er),_r=gr=null)}function Er(e){if(e.propertyName===`value`&&yr(_r)){var t=[];hr(t,_r,e,dn(e)),gn(vr,t)}}function Dr(e,t,n){e===`focusin`?(Tr(),gr=t,_r=n,gr.attachEvent(`onpropertychange`,Er)):e===`focusout`&&Tr()}function Or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return yr(_r)}function kr(e,t){if(e===`click`)return yr(t)}function Ar(e,t){if(e===`input`||e===`change`)return yr(t)}function jr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Mr=typeof Object.is==`function`?Object.is:jr;function Nr(e,t){if(Mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ee.call(t,i)||!Mr(e[i],t[i]))return!1}return!0}function Pr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ir(e,t){var n=Fr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Fr(n)}}function Lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pr(e.document)}return t}function zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Br=vn&&`documentMode`in document&&11>=document.documentMode,Vr=null,Hr=null,Ur=null,Wr=!1;function Gr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wr||Vr==null||Vr!==Pr(r)||(r=Vr,`selectionStart`in r&&zr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&Nr(Ur,r)||(Ur=r,r=Zf(Hr,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vr)))}function Kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var qr={animationend:Kr(`Animation`,`AnimationEnd`),animationiteration:Kr(`Animation`,`AnimationIteration`),animationstart:Kr(`Animation`,`AnimationStart`),transitionrun:Kr(`Transition`,`TransitionRun`),transitionstart:Kr(`Transition`,`TransitionStart`),transitioncancel:Kr(`Transition`,`TransitionCancel`),transitionend:Kr(`Transition`,`TransitionEnd`)},Jr={},Yr={};vn&&(Yr=document.createElement(`div`).style,`AnimationEvent`in window||(delete qr.animationend.animation,delete qr.animationiteration.animation,delete qr.animationstart.animation),`TransitionEvent`in window||delete qr.transitionend.transition);function Xr(e){if(Jr[e])return Jr[e];if(!qr[e])return e;var t=qr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yr)return Jr[e]=t[n];return e}var Zr=Xr(`animationend`),Qr=Xr(`animationiteration`),$r=Xr(`animationstart`),ei=Xr(`transitionrun`),ti=Xr(`transitionstart`),ni=Xr(`transitioncancel`),ri=Xr(`transitionend`),ii=new Map,ai=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ai.push(`scrollEnd`);function oi(e,t){ii.set(e,t),At(t,[e])}var si=0;function ci(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=xd.identifierPrefix;var n=si++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function li(e){if(e==null||typeof e==`string`)return e;var t=null,n=kd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function ui(e,t){return e=li(e),t=li(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var di=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)},fi=[],pi=0,mi=0;function hi(){for(var e=pi,t=mi=pi=0;t<e;){var n=fi[t];fi[t++]=null;var r=fi[t];fi[t++]=null;var i=fi[t];fi[t++]=null;var a=fi[t];if(fi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&yi(n,i,a)}}function gi(e,t,n,r){fi[pi++]=e,fi[pi++]=t,fi[pi++]=n,fi[pi++]=r,mi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function _i(e,t,n,r){return gi(e,t,n,r),bi(e)}function vi(e,t){return gi(e,null,null,t),bi(e)}function yi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-G(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function bi(e){if(50<Ad)throw Ad=0,jd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var xi={};function Si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ci(e,t,n,r){return new Si(e,t,n,r)}function wi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ti(e,t){var n=e.alternate;return n===null?(n=Ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ei(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Di(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)wi(r)&&(s=1);else if(typeof r==`string`)s=Zm(e,n,fe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Ci(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return Oi(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=Ci(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=Ci(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=Ci(19,n,t,a),e.elementType=F,e.lanes=o,e;case ee:case B:return e=a|32,e=Ci(30,n,t,e),e.elementType=B,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case N:s=11;break a;case I:s=14;break a;case L:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Oi(e,t,n,r){return e=Ci(7,e,r,t),e.lanes=n,e}function ki(e,t,n){return e=Ci(6,e,null,t),e.lanes=n,e}function Ai(e){var t=Ci(18,null,null,0);return t.stateNode=e,t}function ji(e,t,n){return t=Ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Mi=new WeakMap;function Ni(e,t){if(typeof e==`object`&&e){var n=Mi.get(e);return n===void 0?(t={value:e,source:t,stack:Te(t)},Mi.set(e,t),t):n}return{value:e,source:t,stack:Te(t)}}var Pi=[],Fi=0,Ii=null,Li=0,Ri=[],zi=0,Bi=null,Vi=1,Hi=``;function Ui(e,t){Pi[Fi++]=Li,Pi[Fi++]=Ii,Ii=e,Li=t}function Wi(e,t,n){Ri[zi++]=Vi,Ri[zi++]=Hi,Ri[zi++]=Bi,Bi=e;var r=Vi;e=Hi;var i=32-G(r)-1;r&=~(1<<i),n+=1;var a=32-G(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Vi=1<<32-G(t)+i|n<<i|r,Hi=a+e}else Vi=1<<a|n<<i|r,Hi=e}function Gi(e){e.return!==null&&(Ui(e,1),Wi(e,1,0))}function Ki(e){for(;e===Ii;)Ii=Pi[--Fi],Pi[Fi]=null,Li=Pi[--Fi],Pi[Fi]=null;for(;e===Bi;)Bi=Ri[--zi],Ri[zi]=null,Hi=Ri[--zi],Ri[zi]=null,Vi=Ri[--zi],Ri[zi]=null}function qi(e,t){Ri[zi++]=Vi,Ri[zi++]=Hi,Ri[zi++]=Bi,Vi=t.id,Hi=t.overflow,Bi=e}var Ji=null,Yi=null,Xi=!1,Zi=null,Qi=!1,$i=Error(i(519));function ea(e){throw oa(Ni(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),$i}function ta(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[q]=e,t[J]=r,n){case`dialog`:Wf(`cancel`,t),Wf(`close`,t);break;case`iframe`:case`object`:case`embed`:Wf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Vf.length;n++)Wf(Vf[n],t);break;case`source`:Wf(`error`,t);break;case`img`:case`image`:case`link`:Wf(`error`,t),Wf(`load`,t);break;case`details`:Wf(`toggle`,t);break;case`input`:Wf(`invalid`,t),Yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Wf(`invalid`,t);break;case`textarea`:Wf(`invalid`,t),$t(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||rp(t.textContent,n)?(r.popover!=null&&(Wf(`beforetoggle`,t),Wf(`toggle`,t)),r.onScroll!=null&&Wf(`scroll`,t),r.onScrollEnd!=null&&Wf(`scrollend`,t),r.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||ea(e,!0)}function na(e){for(Ji=e.return;Ji;)switch(Ji.tag){case 5:case 31:case 13:Qi=!1;return;case 27:case 3:Qi=!0;return;default:Ji=Ji.return}}function ra(e){if(e!==Ji)return!1;if(!Xi)return na(e),Xi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||_p(e.type,e.memoizedProps)),n=!n),n&&Yi&&ea(e),na(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Yi=hm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Yi=hm(e)}else t===27?(t=Yi,Ep(e.type)?(e=mm,mm=null,Yi=e):Yi=t):Yi=Ji?pm(e.stateNode.nextSibling):null;return!0}function ia(){Yi=Ji=null,Xi=!1}function aa(){var e=Zi;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),Zi=null),e}function oa(e){Zi===null?Zi=[e]:Zi.push(e)}var sa=U(null),ca=null,la=null;function ua(e,t,n){de(sa,t._currentValue),t._currentValue=n}function da(e){e._currentValue=sa.current,ue(sa)}function fa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function pa(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),fa(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),fa(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),fa(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ma(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Mr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===he.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dh]:e.push(dh))}a=a.return}return e!==null&&pa(t,e,n,r),t.flags|=262144,e!==null}function ha(e){for(e=e.firstContext;e!==null;){if(!Mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ga(e){ca=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _a(e){return ya(ca,e)}function va(e,t){return ca===null&&ga(e),ya(e,t)}function ya(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},la===null){if(e===null)throw Error(i(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return n}var ba=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},xa=t.unstable_scheduleCallback,Sa=t.unstable_NormalPriority,Ca={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wa(){return{controller:new ba,data:new Map,refCount:0}}function Ta(e){e.refCount--,e.refCount===0&&xa(Sa,function(){e.controller.abort()})}function Ea(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Da=null;function Oa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var ka=null,Aa=0,ja=0,Ma=null;function Na(e,t){if(ka===null){var n=ka=[];Aa=0,ja=If(),Ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Aa++,t.then(Pa,Pa),t}function Pa(){if(--Aa===0&&(Da=null,ka!==null)){Ma!==null&&(Ma.status=`fulfilled`);var e=ka;ka=null,ja=0,Ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Fa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ia=H.S;H.S=function(e,t){if(gd=je(),typeof t==`object`&&t&&typeof t.then==`function`&&Na(e,t),Da!==null)for(var n=Sf;n!==null;)Ea(n,Da),n=n.next;if(n=e.types,n!==null){for(var r=Sf;r!==null;)Ea(r,n),r=r.next;if(ja!==0){r=Da,r===null&&(r=Da=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ia!==null&&Ia(e,t)};var La=U(null);function Ra(){var e=La.current;return e===null?Zu.pooledCache:e}function za(e,t){t===null?de(La,La.current):de(La,t.pool)}function Ba(){var e=Ra();return e===null?null:{parent:Ca._currentValue,pool:e}}var Va=Error(i(460)),Ha=Error(i(474)),Ua=Error(i(542)),Wa={then:function(){}};function Ga(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ka(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ln,ln),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Xa(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(ln,ln);else{if(e=Zu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Xa(e),e}throw Ja=t,Va}}function qa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ja=e,Va):e}}var Ja=null;function Ya(){if(Ja===null)throw Error(i(459));var e=Ja;return Ja=null,e}function Xa(e){if(e===Va||e===Ua)throw Error(i(483))}var Za=null,Qa=0;function $a(e){var t=Qa;return Qa+=1,Za===null&&(Za=[]),Ka(Za,e,t)}function eo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function to(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function no(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Ti(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ki(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),eo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&qa(i)===t.type)?(t=a(t,n.props),eo(t,n),t.return=e,t):(t=Di(n.type,n.key,n.props,null,e.mode,r),eo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ji(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Oi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ki(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Di(t.type,t.key,t.props,null,e.mode,n),eo(n,t),n.return=e,n;case D:return t=ji(t,e.mode,n),t.return=e,t;case L:return t=qa(t),f(e,t,n)}if(ae(t)||ne(t))return t=Oi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,$a(t),n);if(t.$$typeof===M)return f(e,va(e,t),n);to(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case L:return n=qa(n),p(e,t,n,r)}if(ae(n)||ne(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,$a(n),r);if(n.$$typeof===M)return p(e,t,va(e,n),r);to(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case L:return r=qa(r),m(e,t,n,r,i)}if(ae(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,$a(r),i);if(r.$$typeof===M)return m(e,t,n,va(t,r),i);to(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Xi&&Ui(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Xi&&Ui(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Xi&&Ui(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Xi&&Ui(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Xi&&Ui(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Xi&&Ui(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),eo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&qa(l)===r.type){n(e,r.sibling),c=a(r,o.props),eo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=Oi(o.props.children,e.mode,c,o.key),eo(c,o),c.return=e,e=c):(c=Di(o.type,o.key,o.props,null,e.mode,c),eo(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=ji(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=qa(o),_(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(ne(o)){if(l=ne(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,$a(o),c);if(o.$$typeof===M)return _(e,r,va(e,o),c);to(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ki(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Qa=0;var i=_(e,t,n,r);return Za=null,i}catch(t){if(t===Va||t===Ua)throw t;var a=Ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ro=no(!0),io=no(!1),ao=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function so(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function co(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=bi(e),yi(e,null,n),t}return gi(e,r,t,n),bi(e)}function uo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var po=!1;function mo(){if(po){var e=Ma;if(e!==null)throw e}}function ho(e,t,n,r){po=!1;var i=e.updateQueue;ao=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($u&f)===f:(r&f)===f){f!==0&&f===ja&&(po=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:ao=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),sd|=o,e.lanes=o,e.memoizedState=d}}function go(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function _o(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)go(n[e],t)}var vo=U(null),yo=U(0);function bo(e,t){e=ad,de(yo,e),de(vo,t),ad=e|t.baseLanes}function xo(){de(yo,ad),de(vo,vo.current)}function So(){ad=yo.current,ue(vo),ue(yo)}var Co=U(null),wo=null;function To(e){var t=e.alternate;de(Ao,Ao.current&1),de(Co,e),wo===null&&(t===null||vo.current!==null||t.memoizedState!==null)&&(wo=e)}function Eo(e){de(Ao,Ao.current),de(Co,e),wo===null&&(wo=e)}function Do(e){e.tag===22?(de(Ao,Ao.current),de(Co,e),wo===null&&(wo=e)):Oo()}function Oo(){de(Ao,Ao.current),de(Co,Co.current)}function ko(e){ue(Co),wo===e&&(wo=null),ue(Ao)}var Ao=U(0);function jo(e,t){de(Co,Co.current),de(Ao,t)}function Mo(e){ue(Ao),ue(Co),wo===e&&(wo=null)}function No(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||um(n)||dm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Po=0,Fo=null,Io=null,Lo=null,Ro=!1,zo=!1,Bo=!1,Vo=0,Ho=0,Uo=null,Wo=0;function Go(){throw Error(i(321))}function Ko(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function qo(e,t,n,r,i,a){return Po=a,Fo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?uc:dc,Bo=!1,a=n(r,i),Bo=!1,zo&&(a=Yo(t,n,r,i)),Jo(e),a}function Jo(e){H.H=lc;var t=Io!==null&&Io.next!==null;if(Po=0,Lo=Io=Fo=null,Ro=!1,Ho=0,Uo=null,t)throw Error(i(300));e===null||Oc||(e=e.dependencies,e!==null&&ha(e)&&(Oc=!0))}function Yo(e,t,n,r){Fo=e;var a=0;do{if(zo&&(Uo=null),Ho=0,zo=!1,25<=a)throw Error(i(301));if(a+=1,Lo=Io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}H.H=fc,o=t(n,r)}while(zo);return o}function Xo(){var e=H.H,t=e.useState()[0];return t=typeof t.then==`function`?rs(t):t,e=e.useState()[0],(Io===null?null:Io.memoizedState)!==e&&(Fo.flags|=1024),t}function Zo(){var e=Vo!==0;return Vo=0,e}function Qo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $o(e){if(Ro){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ro=!1}Po=0,Lo=Io=Fo=null,zo=!1,Ho=Vo=0,Uo=null}function es(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lo===null?Fo.memoizedState=Lo=e:Lo=Lo.next=e,Lo}function ts(){if(Io===null){var e=Fo.alternate;e=e===null?null:e.memoizedState}else e=Io.next;var t=Lo===null?Fo.memoizedState:Lo.next;if(t!==null)Lo=t,Io=e;else{if(e===null)throw Fo.alternate===null?Error(i(467)):Error(i(310));Io=e,e={memoizedState:Io.memoizedState,baseState:Io.baseState,baseQueue:Io.baseQueue,queue:Io.queue,next:null},Lo===null?Fo.memoizedState=Lo=e:Lo=Lo.next=e}return Lo}function ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(e){var t=Ho;return Ho+=1,Uo===null&&(Uo=[]),e=Ka(Uo,e,t),t=Fo,(Lo===null?t.memoizedState:Lo.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?uc:dc),e}function is(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return rs(e);if(e.$$typeof===V)return;if(e.$$typeof===M)return _a(e)}throw Error(i(438,String(e)))}function as(e){var t=null,n=Fo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Fo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ns(),Fo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=z;return t.index++,n}function os(e,t){return typeof t==`function`?t(e):t}function ss(e){return cs(ts(),Io,e)}function cs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Po&f)===f:($u&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ja&&(d=!0);else if((Po&p)===p){u=u.next,p===ja&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Fo.lanes|=p,sd|=p;f=u.action,Bo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Fo.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Mr(o,e.memoizedState)&&(Oc=!0,d&&(n=Ma,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ls(e){var t=ts(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Mr(o,t.memoizedState)||(Oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function us(e,t,n){var r=Fo,a=ts(),o=Xi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Mr((Io||a).memoizedState,n);if(s&&(a.memoizedState=n,Oc=!0),a=a.queue,Fs(ps.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Lo!==null&&!!(Lo.memoizedState.tag&1),As(e?9:8,{destroy:void 0},fs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Zu===null)throw Error(i(349));o||Po&127||ds(r,t,n)}return n}function ds(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fo.updateQueue,t===null?(t=ns(),Fo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fs(e,t,n,r){t.value=n,t.getSnapshot=r,ms(t)&&hs(e)}function ps(e,t,n){return n(function(){ms(t)&&hs(e)})}function ms(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mr(e,n)}catch{return!0}}function hs(e){var t=vi(e,2);t!==null&&Fd(t,e,2)}function gs(e){var t=es();if(typeof e==`function`){var n=e;if(e=n(),Bo){He(!0);try{n()}finally{He(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:e},t}function _s(e,t,n,r){return e.baseState=n,cs(e,Io,typeof r==`function`?r:os)}function vs(e,t,n,r,a){if(oc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};H.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ys(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ys(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=H.T,o={};o.types=a===null?null:a.types,H.T=o;try{var s=n(i,r),c=H.S;c!==null&&c(o,s),bs(e,t,s)}catch(n){Ss(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),H.T=a}}else try{a=n(i,r),bs(e,t,a)}catch(n){Ss(e,t,n)}}function bs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){xs(e,t,n)},function(n){return Ss(e,t,n)}):xs(e,t,n)}function xs(e,t,n){t.status=`fulfilled`,t.value=n,Cs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ys(e,n)))}function Ss(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Cs(t),t=t.next;while(t!==r)}e.action=null}function Cs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ws(e,t){return t}function Ts(e,t){if(Xi){var n=Zu.formState;if(n!==null){a:{var r=Fo;if(Xi){if(Yi){b:{for(var i=Yi,a=Qi;i.nodeType!==8;)if(!a||(i=pm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Yi=pm(i.nextSibling),r=i.data===`F!`;break a}}ea(r)}r=!1}r&&(t=n[0])}}return n=es(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:t},n.queue=r,n=rc.bind(null,Fo,r),r.dispatch=n,r=gs(!1),a=ac.bind(null,Fo,!1,r.queue),r=es(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=vs.bind(null,Fo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Es(e){return Ds(ts(),Io,e)}function Ds(e,t,n){if(t=cs(e,t,ws)[0],e=ss(os)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=rs(t)}catch(e){throw e===Va?Ua:e}else r=t;t=ts();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Fo.flags|=2048,As(9,{destroy:void 0},Os.bind(null,i,n),null)),[r,a,e]}function Os(e,t){e.action=t}function ks(e){var t=ts(),n=Io;if(n!==null)return Ds(t,n,e);ts(),t=t.memoizedState,n=ts();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function As(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Fo.updateQueue,t===null&&(t=ns(),Fo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function js(){return ts().memoizedState}function Ms(e,t,n,r){var i=es();Fo.flags|=e,i.memoizedState=As(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ns(e,t,n,r){var i=ts();r=r===void 0?null:r;var a=i.memoizedState.inst;Io!==null&&r!==null&&Ko(r,Io.memoizedState.deps)?i.memoizedState=As(t,a,n,r):(Fo.flags|=e,i.memoizedState=As(1|t,a,n,r))}function Ps(e,t){Ms(8390656,8,e,t)}function Fs(e,t){Ns(2048,8,e,t)}function Is(e){Fo.flags|=4;var t=Fo.updateQueue;if(t===null)t=ns(),Fo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ls(e){var t=ts().memoizedState;return Is({ref:t,nextImpl:e}),function(){if(Xu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Rs(e,t){return Ns(4,2,e,t)}function zs(e,t){return Ns(4,4,e,t)}function Bs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vs(e,t,n){n=n==null?null:n.concat([e]),Ns(4,4,Bs.bind(null,t,e),n)}function Hs(){}function Us(e,t){var n=ts();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Ko(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ws(e,t){var n=ts();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Ko(t,r[1]))return r[0];if(r=e(),Bo){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r}function Gs(e,t,n){return n===void 0||Po&1073741824&&!($u&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),Fo.lanes|=e,sd|=e,n)}function Ks(e,t,n,r){return Mr(n,t)?n:vo.current===null?!(Po&106)||Po&1073741824&&!($u&261930)?(Oc=!0,e.memoizedState=n):(e=Nd(),Fo.lanes|=e,sd|=e,t):(e=Gs(e,n,r),Mr(e,t)||(Oc=!0),e)}function qs(e,t,n,r,i){var a=oe.p;oe.p=a!==0&&8>a?a:8;var o=H.T,s={};s.types=o===null?null:o.types,H.T=s,ac(e,!1,t,n);try{var c=i(),l=H.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ic(e,t,Fa(c,r),Md(e)):ic(e,t,r,Md(e))}catch(n){ic(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{oe.p=a,o!==null&&s.types!==null&&(o.types=s.types),H.T=o}}function Js(){}function Ys(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Xs(e).queue;qs(e,a,t,se,n===null?Js:function(){return Zs(e),n(r)})}function Xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zs(e){var t=Xs(e);t.next===null&&(t=e.alternate.memoizedState),ic(e,t.next.queue,{},Md())}function Qs(){return _a(dh)}function $s(){return ts().memoizedState}function ec(){return ts().memoizedState}function tc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=co(n);var r=lo(t,e,n);r!==null&&(Fd(r,t,n),uo(r,t,n)),t={cache:wa()},e.payload=t;return}t=t.return}}function nc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},oc(e)?sc(t,n):(n=_i(e,t,n,r),n!==null&&(Fd(n,e,r),cc(n,t,r)))}function rc(e,t,n){ic(e,t,n,Md())}function ic(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(oc(e))sc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Mr(s,o))return gi(e,t,i,0),Zu===null&&hi(),!1}catch{}if(n=_i(e,t,i,r),n!==null)return Fd(n,e,r),cc(n,t,r),!0}return!1}function ac(e,t,n,r){if(r={lane:2,revertLane:If(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},oc(e)){if(t)throw Error(i(479))}else t=_i(e,n,r,2),t!==null&&Fd(t,e,2)}function oc(e){var t=e.alternate;return e===Fo||t!==null&&t===Fo}function sc(e,t){zo=Ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var lc={readContext:_a,use:is,useCallback:Go,useContext:Go,useEffect:Go,useImperativeHandle:Go,useLayoutEffect:Go,useInsertionEffect:Go,useMemo:Go,useReducer:Go,useRef:Go,useState:Go,useDebugValue:Go,useDeferredValue:Go,useTransition:Go,useSyncExternalStore:Go,useId:Go,useHostTransitionStatus:Go,useFormState:Go,useActionState:Go,useOptimistic:Go,useMemoCache:Go,useCacheRefresh:Go,useEffectEvent:Go},uc={readContext:_a,use:is,useCallback:function(e,t){return es().memoizedState=[e,t===void 0?null:t],e},useContext:_a,useEffect:Ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ms(4194308,4,Bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){Ms(4,2,e,t)},useMemo:function(e,t){var n=es();t=t===void 0?null:t;var r=e();if(Bo){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=es();if(n!==void 0){var i=n(t);if(Bo){He(!0);try{n(t)}finally{He(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=nc.bind(null,Fo,e),[r.memoizedState,e]},useRef:function(e){var t=es();return e={current:e},t.memoizedState=e},useState:function(e){e=gs(e);var t=e.queue,n=rc.bind(null,Fo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hs,useDeferredValue:function(e,t){return Gs(es(),e,t)},useTransition:function(){var e=gs(!1);return e=qs.bind(null,Fo,e.queue,!0,!1),es().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Fo,a=es();if(Xi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Zu===null)throw Error(i(349));$u&127||ds(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ps(ps.bind(null,r,o,e),[e]),r.flags|=2048,As(9,{destroy:void 0},fs.bind(null,r,o,n,t),null),n},useId:function(){var e=es(),t=Zu.identifierPrefix;if(Xi){var n=Hi,r=Vi;n=(r&~(1<<32-G(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Wo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Qs,useFormState:Ts,useActionState:Ts,useOptimistic:function(e){var t=es();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ac.bind(null,Fo,!0,n),n.dispatch=t,[e,t]},useMemoCache:as,useCacheRefresh:function(){return es().memoizedState=tc.bind(null,Fo)},useEffectEvent:function(e){var t=es(),n={impl:e};return t.memoizedState=n,function(){if(Xu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},dc={readContext:_a,use:is,useCallback:Us,useContext:_a,useEffect:Fs,useImperativeHandle:Vs,useInsertionEffect:Rs,useLayoutEffect:zs,useMemo:Ws,useReducer:ss,useRef:js,useState:function(){return ss(os)},useDebugValue:Hs,useDeferredValue:function(e,t){return Ks(ts(),Io.memoizedState,e,t)},useTransition:function(){var e=ss(os)[0],t=ts().memoizedState;return[typeof e==`boolean`?e:rs(e),t]},useSyncExternalStore:us,useId:$s,useHostTransitionStatus:Qs,useFormState:Es,useActionState:Es,useOptimistic:function(e,t){return _s(ts(),Io,e,t)},useMemoCache:as,useCacheRefresh:ec,useEffectEvent:Ls},fc={readContext:_a,use:is,useCallback:Us,useContext:_a,useEffect:Fs,useImperativeHandle:Vs,useInsertionEffect:Rs,useLayoutEffect:zs,useMemo:Ws,useReducer:ls,useRef:js,useState:function(){return ls(os)},useDebugValue:Hs,useDeferredValue:function(e,t){var n=ts();return Io===null?Gs(n,e,t):Ks(n,Io.memoizedState,e,t)},useTransition:function(){var e=ls(os)[0],t=ts().memoizedState;return[typeof e==`boolean`?e:rs(e),t]},useSyncExternalStore:us,useId:$s,useHostTransitionStatus:Qs,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){var n=ts();return Io===null?(n.baseState=e,[e,n.queue.dispatch]):_s(n,Io,e,t)},useMemoCache:as,useCacheRefresh:ec,useEffectEvent:Ls};function pc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var mc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=co(r);i.payload=t,n!=null&&(i.callback=n),t=lo(e,i,r),t!==null&&(Fd(t,e,r),uo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=co(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=lo(e,i,r),t!==null&&(Fd(t,e,r),uo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=co(n);r.tag=2,t!=null&&(r.callback=t),t=lo(e,r,n),t!==null&&(Fd(t,e,n),uo(t,e,n))}};function hc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Nr(n,r)||!Nr(i,a):!0}function gc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mc.enqueueReplaceState(t,t.state,null)}function _c(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function vc(e){di(e)}function yc(e){console.error(e)}function bc(e){di(e)}function xc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Sc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Cc(e,t,n){return n=co(n),n.tag=3,n.payload={element:null},n.callback=function(){xc(e,t)},n}function wc(e){return e=co(e),e.tag=3,e}function Tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Sc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Sc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ma(t,n,a,!0),n=Co.current,n!==null){switch(n.tag){case 31:case 13:case 19:return wo===null?qd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Wa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),gf(e,r,a)),!1;case 22:return n.flags|=65536,r===Wa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),gf(e,r,a)),!1}throw Error(i(435,n.tag))}return gf(e,r,a),qd(),!1}if(Xi)return t=Co.current,t===null?(r!==$i&&(t=Error(i(423),{cause:r}),oa(Ni(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ni(r,n),a=Cc(e.stateNode,r,a),fo(e,a),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==$i&&(e=Error(i(422),{cause:r}),oa(Ni(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ni(o,n),fd===null?fd=[o]:fd.push(o),od!==4&&(od=2),t===null)return!0;r=Ni(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Cc(n.stateNode,r,e),fo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(yd===null||!yd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=wc(a),Tc(a,e,n,r),fo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Dc=Error(i(461)),Oc=!1;function kc(e,t,n,r){t.child=e===null?io(t,null,n,r):ro(t,e.child,n,r)}function Ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ga(t),r=qo(e,t,n,o,a,i),s=Zo(),e!==null&&!Oc?(Qo(e,t,i),rl(e,t,i)):(Xi&&s&&Gi(t),t.flags|=1,kc(e,t,r,i),t.child)}function jc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!wi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Mc(e,t,a,r,i)):(e=Di(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!il(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Nr:n,n(o,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=Ti(a,r),e.ref=t.ref,e.return=t,t.child=e}function Mc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Nr(a,r)&&e.ref===t.ref){if(Oc=!1,t.pendingProps=r=a,il(e,i))e.flags&131072&&(Oc=!0);else return t.lanes=e.lanes,rl(e,t,i)}}return Bc(e,t,n,r,i)}function Nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&za(t,a===null?null:a.cachePool),a===null?xo():bo(t,a),Do(t);else return r=t.lanes=536870912,Fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&za(t,null),xo(),Oo()):(za(t,a.cachePool),bo(t,a),Oo(),t.memoizedState=null);return kc(e,t,i,n),t.child}function Pc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fc(e,t,n,r,i){var a=Ra();return a=a===null?null:{parent:Ca._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&za(t,null),xo(),Do(t),e!==null&&ma(e,t,r,!0),t.childLanes=i,null}function Ic(e,t){return t=Jc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lc(e,t,n){return ro(t,e.child,null,n),e=Ic(t,t.pendingProps),e.flags|=2,ko(t),t.memoizedState=null,e}function Rc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Xi){if(r.mode===`hidden`)return e=Ic(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Pc(null,e);if(Eo(t),(e=Yi)?(e=lm(e,Qi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bi===null?null:{id:Vi,overflow:Hi},retryLane:536870912,hydrationErrors:null},n=Ai(e),n.return=t,t.child=n,Ji=t,Yi=null)):e=null,e===null)throw ea(t);return t.lanes=536870912,null}return Ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Eo(t),a){if(t.flags&256)t.flags&=-257,t=Lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Oc||ma(e,t,n,!1),a=(n&e.childLanes)!==0,Oc||a){if(vo.current===null){if(r=Zu,r!==null&&(s=ot(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,vi(e,s),Fd(r,e,s),Dc;qd()}t=Lc(e,t,n)}else e=o.treeContext,Yi=pm(s.nextSibling),Ji=t,Xi=!0,Zi=null,Qi=!1,e!==null&&qi(t,e),t=Ic(t,r),t.flags|=134221824;return t}return e=Ti(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Bc(e,t,n,r,i){return ga(t),n=qo(e,t,n,r,void 0,i),r=Zo(),e!==null&&!Oc?(Qo(e,t,i),rl(e,t,i)):(Xi&&r&&Gi(t),t.flags|=1,kc(e,t,n,i),t.child)}function Vc(e,t,n,r,i,a){return ga(t),t.updateQueue=null,n=Yo(t,r,n,i),Jo(e),r=Zo(),e!==null&&!Oc?(Qo(e,t,a),rl(e,t,a)):(Xi&&r&&Gi(t),t.flags|=1,kc(e,t,n,a),t.child)}function Hc(e,t,n,r,i){if(ga(t),t.stateNode===null){var a=xi,o=n.contextType;typeof o==`object`&&o&&(a=_a(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=mc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},oo(t),o=n.contextType,a.context=typeof o==`object`&&o?_a(o):xi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(pc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&mc.enqueueReplaceState(a,a.state,null),ho(t,r,a,i),mo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=_c(n,s);a.props=c;var l=a.context,u=n.contextType;o=xi,typeof u==`object`&&u&&(o=_a(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&gc(t,a,r,o),ao=!1;var f=t.memoizedState;a.state=f,ho(t,r,a,i),mo(),l=t.memoizedState,s||f!==l||ao?(typeof d==`function`&&(pc(t,n,d,r),l=t.memoizedState),(c=ao||hc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,so(e,t),o=t.memoizedProps,u=_c(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=xi,typeof l==`object`&&l&&(c=_a(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&gc(t,a,r,c),ao=!1,f=t.memoizedState,a.state=f,ho(t,r,a,i),mo();var p=t.memoizedState;o!==d||f!==p||ao||e!==null&&e.dependencies!==null&&ha(e.dependencies)?(typeof s==`function`&&(pc(t,n,s,r),p=t.memoizedState),(u=ao||hc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ha(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,zc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ro(t,e.child,null,i),t.child=ro(t,null,n,i)):kc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=rl(e,t,i),e}function Y(e,t,n,r){return ia(),t.flags|=256,kc(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wc(e){return{baseLanes:e,cachePool:Ba()}}function Gc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function Kc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ao.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Xi){if(i?To(t):Oo(),(e=Yi)?(e=lm(e,Qi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bi===null?null:{id:Vi,overflow:Hi},retryLane:536870912,hydrationErrors:null},n=Ai(e),n.return=t,t.child=n,Ji=t,Yi=null)):e=null,e===null)throw ea(t);return t.lanes=dm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Oo(),i=t.mode,a=Jc({mode:`hidden`,children:a},i),r=Oi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Wc(n),r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Pc(null,r)):(To(t),qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Xc(e,t,a,o,r,c,s,n)}return i?(Oo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ti(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Oi(i,a,n,null),i.flags|=2):i=Ti(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Pc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Wc(n):(a=i.cachePool,a===null?a=Ba():(s=Ca._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Pc(e.child,r)):(To(t),n=e.child,e=n.sibling,n=Ti(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function qc(e,t){return t=Jc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Jc(e,t){return e=Ci(22,e,null,t),e.lanes=0,e}function Yc(e,t,n){return ro(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(To(t),t.flags&=-257,Yc(e,t,c)):t.memoizedState===null?(Oo(),o=a.fallback,s=t.mode,a=Jc({mode:`visible`,children:a.children},s),o=Oi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ro(t,e.child,null,c),a=t.child,a.memoizedState=Wc(c),a.childLanes=Gc(e,r,c),t.memoizedState=Uc,Pc(null,a)):(Oo(),t.child=e.child,t.flags|=128,null);if(To(t),dm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,oa({value:a,source:null,stack:null})),Yc(e,t,c)}if(Oc||ma(e,t,c,!1),r=(c&e.childLanes)!==0,Oc||r){if(vo.current!==null)return Yc(e,t,c);if(r=Zu,r!==null&&(a=ot(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,vi(e,a),Fd(r,e,a),Dc;return um(o)||qd(),Yc(e,t,c)}return um(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Yi=pm(o.nextSibling),Ji=t,Xi=!0,Zi=null,Qi=!1,e!==null&&qi(t,e),t=qc(t,a.children),t.flags|=134221824,t)}function Zc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fa(e.return,t,n)}function Qc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&No(n)===null&&(t=e),e=e.sibling}return t}function $c(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function el(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function tl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ao.current;if(t.flags&128)return jo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,jo(t,o),i===`backwards`&&e!==null?(el(e),kc(e,t,r,n),el(e)):kc(e,t,r,n),r=Xi?Li:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zc(e,n,t);else if(e.tag===19)Zc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,el(t)),$c(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&No(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$c(t,!0,n,null,a,r);break;case`together`:$c(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$c(t,!1,i,n,a,r)}return t.child}function nl(e,t,n){var r=t.pendingProps;return ua(t,t.type,r.value),kc(e,t,r.children,n),t.child}function rl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ma(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Ti(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ti(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function il(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ha(e)))}function al(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),ua(t,Ca,e.memoizedState.cache),ia();break;case 27:case 5:ve(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:ua(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Eo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return To(t),t.flags|=128,null;r=ma(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Kc(e,t,n):(To(t),e=rl(e,t,n),e===null?null:e.sibling)}To(t);break;case 19:if(t.flags&128)return tl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ma(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return tl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),jo(t,Ao.current),r)break;return null;case 22:return t.lanes=0,Nc(e,t,n,t.pendingProps);case 24:ua(t,Ca,e.memoizedState.cache)}return rl(e,t,n)}function ol(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Oc=!0;else{if(!il(e,n)&&!(t.flags&128))return Oc=!1,al(e,t,n);Oc=!!(e.flags&131072)}}else Oc=!1,Xi&&t.flags&1048576&&Wi(t,Li,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=qa(t.elementType),t.type=e,typeof e==`function`)wi(e)?(r=_c(e,r),t.tag=1,t=Hc(null,t,e,r,n)):(t.tag=0,t=Bc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Ac(null,t,e,r,n);break a}if(a===I){t.tag=14,t=jc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=nl(null,t,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return Bc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=_c(r,t.pendingProps),Hc(e,t,r,a,n);case 3:a:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,so(e,t),ho(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ua(t,Ca,r),r!==o.cache&&pa(t,[Ca],n,!0),mo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Y(e,t,r,n);break a}if(r!==a){a=Ni(Error(i(424)),t),oa(a),t=Y(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Yi=pm(e.firstChild),Ji=t,Xi=!0,Zi=null,Qi=!0,n=io(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ia(),r===a){t=rl(e,t,n);break a}kc(e,t,r,n)}t=t.child}return t;case 26:return zc(e,t),e===null?(n=Lm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Xi||(t.stateNode=gp(t.type,t.pendingProps,me.current,t)):t.memoizedState=Lm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Xi&&(r=t.stateNode=ym(t.type,t.pendingProps,me.current),Ji=t,Qi=!0,a=Yi,Ep(t.type)?(mm=a,Yi=pm(r.firstChild)):Yi=a),kc(e,t,t.pendingProps.children,n),zc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Xi&&((a=r=Yi)&&(r=sm(r,t.type,t.pendingProps,Qi),r===null?a=!1:(t.stateNode=r,Ji=t,Yi=pm(r.firstChild),Qi=!1,a=!0)),a||ea(t)),ve(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,_p(a,o)?r=null:s!==null&&_p(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=qo(e,t,Xo,null,null,n),dh._currentValue=a),zc(e,t),kc(e,t,r,n),t.child;case 6:return e===null&&Xi&&((e=n=Yi)&&(n=cm(n,t.pendingProps,Qi),n===null?e=!1:(t.stateNode=n,Ji=t,Yi=null,e=!0)),e||ea(t)),null;case 13:return Kc(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ro(t,null,r,n):kc(e,t,r,n),t.child;case 11:return Ac(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,zc(e,t),kc(e,t,r,n),t.child;case 8:return kc(e,t,t.pendingProps.children,n),t.child;case 12:return kc(e,t,t.pendingProps.children,n),t.child;case 10:return nl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ga(t),a=_a(a),r=r(a),t.flags|=1,kc(e,t,r,n),t.child;case 14:return jc(e,t,t.type,t.pendingProps,n);case 15:return Mc(e,t,t.type,t.pendingProps,n);case 19:return tl(e,t,n);case 31:return Rc(e,t,n);case 22:return Nc(e,t,n,t.pendingProps);case 24:return ga(t),r=_a(Ca),e===null?(a=Ra(),a===null&&(a=Zu,o=wa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},oo(t),ua(t,Ca,a)):((e.lanes&n)!==0&&(so(e,t),ho(t,null,null,n),mo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ua(t,Ca,r),r!==a.cache&&pa(t,[Ca],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ua(t,Ca,r))),kc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Xi&&Gi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:zc(e,t),kc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function cl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Qm(t,r):Qm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw Ja=Wa,Ha}}else e.flags&=-16777217}function ll(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$m(t)){if(Wd())e.flags|=8192;else throw Ja=Wa,Ha}}function ul(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,dd|=t)}function dl(e,t){if(!Xi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function fl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(Ki(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fl(t),null;case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),da(Ca),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ra(t)?sl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,aa())),fl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(sl(t),o===null?(fl(t),cl(t,a,null,r,n)):(fl(t),ll(t,o))):o?o===e.memoizedState?(fl(t),t.flags&=-16777217):(sl(t),fl(t),ll(t,o)):(e=e.memoizedProps,e!==r&&sl(t),fl(t),cl(t,a,e,r,n)),null;case 27:if(ye(t),n=me.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}e=fe.current,ra(t)?ta(t,e):(e=ym(a,r,n),t.stateNode=e,sl(t))}return fl(t),t.subtreeFlags&=-33554433,null;case 5:if(ye(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}if(o=fe.current,ra(t))ta(t,o);else{var s=pp(me.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[q]=t,o[J]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(op(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&sl(t)}}return fl(t),t.subtreeFlags&=-33554433,cl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=me.current,ra(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ji,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[q]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||ea(t,!0)}else e=pp(e).createTextNode(r),e[q]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ra(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[q]=t}else ia(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=aa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ko(t),t):(ko(t),null);if(t.flags&128)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ra(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[q]=t}else ia(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),a=!1}else a=aa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ko(t),t):(ko(t),null)}return ko(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),fl(t),null);case 4:return _e(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,fl(t),null;case 10:return da(t.type),fl(t),null;case 19:if(Mo(t),r=t.memoizedState,r===null)return fl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)dl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=No(e),o!==null){for(t.flags|=128,dl(r,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ei(n,e),n=n.sibling;return jo(t,Ao.current&1|2),Xi&&Ui(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&je()>_d&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=No(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Xi)return fl(t),null}else 2*je()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=je(),e.sibling=null,o=Ao.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Xi?jo(t,o):(n=o,de(Co,t),de(Ao,n),wo===null&&(wo=t)),Xi&&Ui(t,r.treeForkCount),e}return fl(t),null;case 22:case 23:return ko(t),So(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(fl(t),t.subtreeFlags&6&&(t.flags|=8192)):fl(t),n=t.updateQueue,n!==null&&ul(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ue(La),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),da(Ca),fl(t),null;case 25:return null;case 30:return t.flags|=33554432,fl(t),null}throw Error(i(156,t.tag))}function ml(e,t){switch(Ki(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da(Ca),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(ko(t),t.alternate===null)throw Error(i(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ko(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return _e(),null;case 10:return da(t.type),null;case 22:case 23:return ko(t),So(),e!==null&&ue(La),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da(Ca),null;case 25:return null;default:return null}}function hl(e,t){switch(Ki(t),t.tag){case 3:da(Ca),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&ko(t);break;case 13:ko(t);break;case 19:Mo(t);break;case 10:da(t.type);break;case 22:case 23:ko(t),So(),e!==null&&ue(La);break;case 24:da(Ca)}}function gl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){hf(t,t.return,e)}}function _l(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){hf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){hf(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{_o(t,n)}catch(t){hf(e,e.return,t)}}}function yl(e,t,n){n.props=_c(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){hf(e,t,n)}}function bl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=ci(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Rp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new zp(e);f(e.child,!1,nm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){hf(e,t,n)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){hf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){hf(e,t,n)}else n.current=null}}function Sl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)im(e.stateNode,t[n])}function Cl(e){for(var t=e.return;t!==null&&(El(t)&&im(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function wl(e){for(var t=e.return;t!==null&&(El(t)&&am(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function Tl(e){return e.tag===5||e.tag===3||e.tag===27}function El(e){return e&&e.tag===7&&e.stateNode!==null}function Dl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){hf(e,e.return,t)}}function Ol(e,t,n){try{var r=e.stateNode;cp(r,e.type,n,t),r[J]=t}catch(t){hf(e,e.return,t)}}function kl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ep(e.type)||e.tag===4}function Al(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ep(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln)),Sl(e,r),It=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Ep(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(jl(e,t,n,r),e=e.sibling;e!==null;)jl(e,t,n,r),e=e.sibling}function Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Sl(e,r),It=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Ep(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);op(t,r,n),t[q]=e,t[J]=n}catch(t){hf(e,e.return,t)}}var Pl=!1,Fl=null;function Il(e){(e.tag===30||e.subtreeFlags&33554432)&&(Pl=!0)}var Ll=null;function Rl(){var e=Ll;return Ll=null,e}var zl=0;function Bl(e,t,n,r,i){return zl=0,Vl(e.child,t,n,r,i)}function Vl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Mp(o);r.push(s),s.view&&(a=!0)}else a||Mp(o).view&&(a=!0);Pl=!0,kp(o,zl===0?t:t+`_`+zl,n),zl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Vl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Hl(e,t){for(;e!==null;)e.tag===5?Ap(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Hl(e.child,t),e=e.sibling}function Ul(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ul(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=ui(t.default,t.share),t!==`none`&&(Bl(e,n,t,null,!1)||Hl(e.child,!1))}e=e.sibling}}function Wl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=ci(r,n),a=ui(r.default,n.paired?r.share:r.enter);a===`none`?Ul(e):Bl(e,i,a,null,!1)?(Ul(e),n.paired||t||Pd(e,r.onEnter)):Hl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Wl(e,t),e=e.sibling;else Ul(e)}function Gl(e){if(Fl!==null&&Fl.size!==0){var t=Fl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=ui(n.default,n.share);if(a!==`none`&&(Bl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):Hl(e.child,!1)),t.delete(r),t.size===0)break}}}Gl(e)}e=e.sibling}}}function Kl(e){if(e.tag===30){var t=e.memoizedProps,n=ci(t,e.stateNode),r=Fl===null?void 0:Fl.get(n),i=ui(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Bl(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Fl.delete(n),Pd(e,t.onShare)):Hl(e.child,!1)),Fl!==null&&Gl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Kl(e),e=e.sibling;else Fl!==null&&Gl(e)}function ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ci(t,e.stateNode);t=ui(t.default,t.update),e.flags&=-5,t!==`none`&&Bl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ql(e);e=e.sibling}}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Hl(e.child,!1))}Jl(e)}e=e.sibling}}function Yl(e){if(e.tag===30)e.stateNode.paired=null,Hl(e.child,!1),Jl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Jl(e)}function Xl(e){for(e=e.child;e!==null;)e.tag===30?Hl(e.child,!1):e.subtreeFlags&33554432&&Xl(e),e=e.sibling}function Zl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&zl<a.length){var l=a[zl],u=Mp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&kp(c,zl===0?n:n+`_`+zl,i),s&&e.flags&4||(Ll===null&&(Ll=[]),Ll.push(c,zl===0?r:r+`_`+zl,t.memoizedProps)),zl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Zl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function Ql(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=ci(n,r),a=ui(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Np)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;zl=0,i=Zl(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&Ql(e,t);e=e.sibling}}var $l=!1,eu=!1,tu=!1,nu=!1,ru=typeof WeakSet==`function`?WeakSet:Set,iu=null,au=!1,ou=!1,su=!1,cu=!1;function lu(e,t,n){if(e=e.containerInfo,dp=bh,e=Rr(e),zr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(fp={focusedElem:e,selectionRange:r},bh=!1,n=(n&335544064)===n,iu=t,t=n?9270:1024;iu!==null;){if(e=iu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Kl(r[a]);if(e.alternate===null&&e.flags&2)n&&Il(e),uu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Kl(r),uu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Il(e),uu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,iu=r):(n&&ql(e),uu(n))}}Fl=null}function uu(e){for(;iu!==null;){var t=iu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=_c(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){hf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)om(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:om(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=ci(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=ui(a.default,a.update),a!==`none`&&Bl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,iu=r;break}iu=t.return}}function du(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ju(e,n),r&4&&gl(5,n);break;case 1:if(ju(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){hf(n,n.return,e)}else{var i=_c(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){hf(n,n.return,e)}}}r&64&&vl(n),r&512&&bl(n,n.return);break;case 3:if(ju(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{_o(e,t)}catch(e){hf(n,n.return,e)}}break;case 27:t===null&&r&4&&Nl(n);case 26:case 5:ju(e,n),t===null&&r&4&&Dl(n),r&512&&bl(n,n.return);break;case 12:ju(e,n);break;case 31:ju(e,n),r&4&&bu(e,n);break;case 13:ju(e,n),r&4&&xu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=yf.bind(null,n),fm(e,n))));break;case 22:if(r=n.memoizedState!==null||$l,!r){var a=t!==null&&t.memoizedState!==null||eu;t=$l,i=eu,$l=r,(eu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Nu(e,n,r)):ju(e,n),$l=t,eu=i}break;case 30:ju(e,n),r&512&&bl(n,n.return);break;case 7:r&512&&bl(n,n.return);default:ju(e,n)}}function fu(e,t){for(e=e.child;e!==null;)pu(e,t),e=e.sibling}function pu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){hf(e,e.return,t)}mu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,It=!0}catch(t){hf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Op(s,!0):Op(e.stateNode,!1)}catch(t){hf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&fu(e,t);break;default:fu(e,t)}}function mu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:pu(n,r);break a;case 22:n.memoizedState===null&&mu(n,r);break a;default:mu(n,r)}}e=e.sibling}}function hu(e){var t=e.alternate;t!==null&&(e.alternate=null,hu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gu=null,_u=!1;function vu(e,t,n){for(n=n.child;n!==null;)yu(e,t,n),n=n.sibling}function yu(e,t,n){if(Ve&&typeof Ve.onCommitFiberUnmount==`function`)try{Ve.onCommitFiberUnmount(Be,n)}catch{}switch(n.tag){case 26:eu||xl(n,t),vu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!eu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:eu||xl(n,t),wl(n);var r=gu,i=_u;Ep(n.type)&&(gu=n.stateNode,_u=!1),vu(e,t,n),bm(n.stateNode,n.type,n.memoizedProps),gu=r,_u=i;break;case 5:eu||xl(n,t),wl(n);case 6:if(n.tag===6&&wl(n),r=gu,i=_u,gu=null,vu(e,t,n),gu=r,_u=i,gu!==null){if(_u)try{(gu.nodeType===9?gu.body:gu.nodeName===`HTML`?gu.ownerDocument.body:gu).removeChild(n.stateNode),It=!0}catch(e){hf(n,t,e)}else try{gu.removeChild(n.stateNode),It=!0}catch(e){hf(n,t,e)}}break;case 18:gu!==null&&(_u?(e=gu,Dp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Kh(e)):Dp(gu,n.stateNode));break;case 4:r=gu,i=_u,gu=n.stateNode.containerInfo,_u=!0,vu(e,t,n),gu=r,_u=i;break;case 0:case 11:case 14:case 15:_l(2,n,t),eu||_l(4,n,t),vu(e,t,n);break;case 1:eu||(xl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&yl(n,t,r)),vu(e,t,n);break;case 21:vu(e,t,n);break;case 22:eu=(r=eu)||n.memoizedState!==null,vu(e,t,n),eu=r;break;case 30:xl(n,t),vu(e,t,n);break;case 7:eu||xl(n,t),vu(e,t,n);break;default:vu(e,t,n)}}function bu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kh(e)}catch(e){hf(t,t.return,e)}}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kh(e)}catch(e){hf(t,t.return,e)}}function Su(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ru),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ru),t;default:throw Error(i(435,e.tag))}}function Cu(e,t){var n=Su(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=bf.bind(null,e,t);t.then(r,r)}})}function wu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Ep(l.type)){gu=l.stateNode,_u=!1;break a}break;case 5:gu=l.stateNode,_u=!1;break a;case 3:case 4:gu=l.stateNode.containerInfo,_u=!0;break a}l=l.return}if(gu===null)throw Error(i(160));yu(s,c,o),gu=null,_u=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Eu(t,e,n),t=t.sibling}var Tu=null;function Eu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}wu(t,e,n),Du(e),a&4&&(_l(3,e,e.return),gl(3,e),_l(5,e,e.return));break;case 1:wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),a&64&&$l&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Tu,wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if($l)e.stateNode=gp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[yt]||r[q]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),op(r,t,n),r[q]=e,Et(r),t=r;break a;case`link`:if(o=Ym(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Ym(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[q]=e,Et(r),t=r}e.stateNode=t}}else $l||Xm(o,e.type,e.stateNode)}else e.stateNode=Wm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ol(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||eu||t.parentNode.removeChild(t)):a.count--,n===null?$l||Xm(o,e.type,e.stateNode):Wm(o,n,e.memoizedProps))}break;case 27:wu(t,e,n),Du(e),a&512&&(eu||r===null||xl(r,r.return)),r!==null&&a&4&&Ol(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=tu,tu=!1,wu(t,e,n),tu=o,Du(e),a&512&&(eu||r===null||xl(r,r.return)),e.flags&32){t=e.stateNode;try{en(t,``),It=!0}catch(t){hf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ol(e,t,r===null?t:r.memoizedProps)),a&1024&&(nu=!0);break;case 6:if(wu(t,e,n),Du(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,It=!0}catch(t){hf(e,e.return,t)}}break;case 3:if(It=!1,Jm=null,o=Tu,Tu=wm(t.containerInfo),wu(t,e,n),Tu=o,Du(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Kh(t.containerInfo)}catch(t){hf(e,e.return,t)}nu&&(nu=!1,Ou(e)),It=!1;break;case 4:a=tu,tu=$l,r=Lt(),o=Tu,Tu=wm(e.stateNode.containerInfo),wu(t,e,n),Du(e),Tu=o,It&&ou&&(su=!0),It=r,tu=a;break;case 12:wu(t,e,n),Du(e);break;case 31:wu(t,e,n),Du(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 13:wu(t,e,n),Du(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=je()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=$l,l=eu,u=tu;$l=c||o,tu=u||o,eu=l||s,wu(t,e,n),eu=l,tu=u,$l=c,Du(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||$l||eu||(t=s||eu,n=$l,r=eu,$l=o||$l,eu=t,Mu(e,2),$l=n,eu=r),!o&&tu||fu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Cu(e,n))));break;case 19:wu(t,e,n),Du(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cu(e,t)));break;case 30:a&512&&(eu||r===null||xl(r,r.return)),a=Lt(),o=ou,s=(n&335544064)===n,c=e.memoizedProps,ou=s&&ui(c.default,c.update)!==`none`,wu(t,e,n),Du(e),s&&r!==null&&It&&(e.flags|=4),ou=o,It=a;break;case 21:break;case 7:a&512&&(eu||r===null||xl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:wu(t,e,n),Du(e)}}function Du(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(kl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(El(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Tl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ml(e,Al(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(en(l,``),n.flags&=-33),Ml(e,Al(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;jl(e,Al(e),u,s);break;default:throw Error(i(161))}}catch(t){hf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ou(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ou(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,bh=!0,t.reset(),bh=!1),e=e.sibling}}function ku(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Au(t,e),t=t.sibling;else Ql(t,!1)}function Au(e,t){var n=e.alternate;if(n===null)Wl(e,!1);else switch(e.tag){case 3:if(cu=au=!1,Rl(),ku(t,e),!au&&!su){if(e=Ll,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ap(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),cu=!0}Ll=null;break;case 5:ku(t,e);break;case 4:r=au,au=!1,ku(t,e),au&&(su=!0),au=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?ku(t,e):Wl(e,!1));break;case 30:r=au,i=Rl(),au=!1,ku(t,e),au&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=ci(a,o),o=ci(n.memoizedProps,o);var s=ui(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,zl=0,t=Zl(e,n,t,o,s,a,!0),zl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),Ll=i):i!==null&&(i.push.apply(i,Ll),Ll=i),au=e.flags&32?!0:r;break;default:ku(t,e)}}function ju(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)du(e,t.alternate,t),t=t.sibling}function Mu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:_l(4,n,n.return),Mu(n,r);break;case 1:xl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&yl(n,n.return,i),Mu(n,r);break;case 27:r&2&&bm(n.stateNode,n.type,n.memoizedProps);case 5:xl(n,n.return),n.tag!==5&&n.tag!==27||wl(n),Mu(n,r);break;case 6:wl(n);break;case 26:xl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||eu||i.parentNode.removeChild(i),Mu(n,r);break;case 22:n.memoizedState===null&&Mu(n,r);break;case 30:xl(n,n.return),Mu(n,r);break;case 7:xl(n,n.return);default:Mu(n,r)}e=e.sibling}}function Nu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Nu(i,a,n),gl(4,a);break;case 1:if(Nu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){hf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)go(l[i],c)}catch(e){hf(r,r.return,e)}}s&&o&64&&vl(a),bl(a,a.return);break;case 27:n&2&&Nl(a);case 5:a.tag!==5&&a.tag!==27||Cl(a),Nu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 6:Cl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||$l||Xm(wm(c.ownerDocument),a.type,c),Nu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 12:Nu(i,a,n);break;case 31:Nu(i,a,n),s&&o&4&&bu(i,a);break;case 13:Nu(i,a,n),s&&o&4&&xu(i,a);break;case 22:a.memoizedState===null&&Nu(i,a,n),bl(a,a.return);break;case 30:Nu(i,a,n),bl(a,a.return);break;case 7:bl(a,a.return);default:Nu(i,a,n)}t=t.sibling}}function Pu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ta(n))}function Fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ta(e))}function Iu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Lu(e,t,n,r),t=t.sibling;else i&&Xl(t)}function Lu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Yl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Iu(e,t,n,r),a&2048&&gl(9,t);break;case 1:Iu(e,t,n,r);break;case 3:Iu(e,t,n,r),i&&cu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ta(a)));break;case 12:if(a&2048){Iu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){hf(t,t.return,e)}}else Iu(e,t,n,r);break;case 31:Iu(e,t,n,r);break;case 13:Iu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Yl(t),o._visibility&2?Iu(e,t,n,r):(o._visibility|=2,Ru(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Yl(s),o._visibility&2?Iu(e,t,n,r):zu(e,t)),a&2048&&Pu(s,t);break;case 24:Iu(e,t,n,r),a&2048&&Fu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Hl(a.child,!0),Hl(t.child,!0))),Iu(e,t,n,r);break;default:Iu(e,t,n,r)}}function Ru(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ru(a,o,s,c,i),gl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ru(a,o,s,c,i)):u._visibility&2?Ru(a,o,s,c,i):zu(a,o),i&&l&2048&&Pu(o.alternate,o);break;case 24:Ru(a,o,s,c,i),i&&l&2048&&Fu(o.alternate,o);break;default:Ru(a,o,s,c,i)}t=t.sibling}}function zu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:zu(n,r),i&2048&&Pu(r.alternate,r);break;case 24:zu(n,r),i&2048&&Fu(r.alternate,r);break;default:zu(n,r)}t=t.sibling}}var Bu=8192;function Vu(e,t,n){if(e.subtreeFlags&Bu)for(e=e.child;e!==null;)Hu(e,t,n),e=e.sibling}function Hu(e,t,n){switch(e.tag){case 26:Vu(e,t,n),e.flags&Bu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&th(n,e)):nh(n,Tu,e.memoizedState,e.memoizedProps));break;case 5:Vu(e,t,n),e.flags&Bu&&(e=e.stateNode,(t&335544128)===t&&th(n,e));break;case 3:case 4:var r=Tu;Tu=wm(e.stateNode.containerInfo),Vu(e,t,n),Tu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Bu,Bu=16777216,Vu(e,t,n),Bu=r):Vu(e,t,n));break;case 30:if((e.flags&Bu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Fl===null&&(Fl=new Map),Fl.set(r,i)}Vu(e,t,n);break;default:Vu(e,t,n)}}function Uu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,qu(r,e)}Uu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gu(e),e=e.sibling}function Gu(e){switch(e.tag){case 0:case 11:case 15:Wu(e),e.flags&2048&&_l(9,e,e.return);break;case 3:Wu(e);break;case 12:Wu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ku(e)):Wu(e);break;default:Wu(e)}}function Ku(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];iu=r,qu(r,e)}Uu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),Ku(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ku(t));break;default:Ku(t)}e=e.sibling}}function qu(e,t){for(;iu!==null;){var n=iu;switch(n.tag){case 0:case 11:case 15:_l(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ta(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,iu=r;else a:for(n=e;iu!==null;){r=iu;var i=r.sibling,a=r.return;if(hu(r),r===n){iu=null;break a}if(i!==null){i.return=a,iu=i;break a}iu=a}}}var Ju={getCacheForType:function(e){var t=_a(Ca),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _a(Ca).controller.signal}},Yu=typeof WeakMap==`function`?WeakMap:Map,Xu=0,Zu=null,Qu=null,$u=0,ed=0,td=null,nd=!1,rd=!1,id=!1,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,bd=0,xd=null,Sd=null,Cd=0,wd=0,Td=null,Ed=null,Dd=null,Od=null,kd=null,Ad=0,jd=null;function Md(){return Xu&2&&$u!==0?$u&-$u:H.T===null?dt():If()}function Nd(){if(ud===0){if(!($u&536870912)||Xi){var e=K;K<<=1,!(K&3932160)&&(K=262144),ud=e}else ud=536870912}return e=Co.current,e!==null&&(e.flags|=32),ud}function Pd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Rp(ci(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===Zu&&(ed===2||ed===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,$u,ud,!1)),tt(e,n),Xu&2&&e===Zu||(e===Zu&&(!(Xu&2)&&(cd|=n),od===4&&zd(e,$u,ud,!1)),Of(e))}function Id(e,t,n){if(Xu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Xe(e,t),a=r?Xd(e,t):Jd(e,t,!0),o=r;do{if(a===0){rd&&!r&&zd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Rd(n))a=Jd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Hd(c,s).flags|=256),s=Jd(c,s,!1),s!==2&&s!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=o,cd|=o,a=4;break a}o=pd,pd=a,o!==null&&(pd===null?pd=o:pd.push.apply(pd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Hd(e,0),zd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:zd(r,t,ud,!nd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=hd+300-je(),10<a)){if(zd(r,t,ud,!nd),Ye(r,0,!0)!==0)break a;Cd=t,r.timeoutHandle=bp(Ld.bind(null,r,n,pd,vd,md,t,ud,cd,dd,nd,o,`Throttled`,-0,0),a);break a}Ld(r,n,pd,vd,md,t,ud,cd,dd,nd,o,null,-0,0)}break}}while(1);Of(e)}function Ld(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},Fl=null,Hu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=oh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-je():(a&4194048)===a?gd-je():0,m=ih(d,m),m!==null)?(Cd=a,e.cancelPendingCommit=m(rf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),zd(e,a,o,!l)):rf(e,t,a,n,r,i,o,s,c,l,u,d)}function Rd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Mr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zd(e,t,n,r){t=Ze(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-G(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function Bd(){return Xu&6?!0:(kf(0,!1),!1)}function Vd(){if(Qu!==null){if(ed===0)var e=Qu.return;else e=Qu,la=ca=null,$o(e),Za=null,Qa=0,e=Qu;for(;e!==null;)hl(e.alternate,e),e=e.return;Qu=null}}function Hd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,xp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cd=0,Vd(),Zu=e,Qu=n=Ti(e.current,null),$u=t,ed=0,td=null,nd=!1,rd=Xe(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=Ze(e,t),hi(),n}function Ud(e,t){Fo=null,H.H=lc,t===Va||t===Ua?(t=Ya(),ed=3):t===Ha?(t=Ya(),ed=4):ed=t===Dc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,Qu===null&&(od=1,xc(e,Ni(t,e.current)))}function Wd(){var e=Co.current;return e===null?!0:($u&4194048)===$u?wo===null:($u&62914560)===$u||$u&536870912?e===wo:!1}function Gd(){var e=H.H;return H.H=lc,e===null?lc:e}function Kd(){var e=H.A;return H.A=Ju,e}function qd(){od=4,nd||($u&4194048)!==$u&&Co.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||Zu===null||zd(Zu,$u,ud,!1)}function Jd(e,t,n){var r=Xu;Xu|=2;var i=Gd(),a=Kd();(Zu!==e||$u!==t)&&(vd=null,Hd(e,t)),t=!1;var o=od;a:do try{if(ed!==0&&Qu!==null){var s=Qu,c=td;switch(ed){case 8:Vd(),o=6;break a;case 3:case 2:case 9:case 6:Co.current===null&&(t=!0);var l=ed;if(ed=0,td=null,ef(e,s,c,l),n&&rd){o=0;break a}break;default:l=ed,ed=0,td=null,ef(e,s,c,l)}}Yd(),o=od;break}catch(t){Ud(e,t)}while(1);return t&&e.shellSuspendCounter++,la=ca=null,Xu=r,H.H=i,H.A=a,Qu===null&&(Zu=null,$u=0,hi()),o}function Yd(){for(;Qu!==null;)Qd(Qu)}function Xd(e,t){var n=Xu;Xu|=2;var r=Gd(),a=Kd();Zu!==e||$u!==t?(vd=null,_d=je()+500,Hd(e,t)):rd=Xe(e,t);a:do try{if(ed!==0&&Qu!==null){t=Qu;var o=td;b:switch(ed){case 1:ed=0,td=null,ef(e,t,o,1);break;case 2:case 9:if(Ga(o)){ed=0,td=null,$d(t);break}t=function(){ed!==2&&ed!==9||Zu!==e||(ed=7),Of(e)},o.then(t,t);break a;case 3:ed=7;break a;case 4:ed=5;break a;case 7:Ga(o)?(ed=0,td=null,$d(t)):(ed=0,td=null,ef(e,t,o,7));break;case 5:var s=null;switch(Qu.tag){case 26:s=Qu.memoizedState;case 5:case 27:var c=Qu;if(s?$m(s):c.stateNode.complete){ed=0,td=null;var l=c.sibling;if(l!==null)Qu=l;else{var u=c.return;u===null?Qu=null:(Qu=u,tf(u))}break b}}ed=0,td=null,ef(e,t,o,5);break;case 6:ed=0,td=null,ef(e,t,o,6);break;case 8:Vd(),od=6;break a;default:throw Error(i(462))}}Zd();break}catch(t){Ud(e,t)}while(1);return la=ca=null,H.H=r,H.A=a,Xu=n,Qu===null?(Zu=null,$u=0,hi(),od):0}function Zd(){for(;Qu!==null&&!ke();)Qd(Qu)}function Qd(e){var t=ol(e.alternate,e,ad);e.memoizedProps=e.pendingProps,t===null?tf(e):Qu=t}function $d(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vc(n,t,t.pendingProps,t.type,void 0,$u);break;case 11:t=Vc(n,t,t.pendingProps,t.type.render,t.ref,$u);break;case 5:$o(t);var r=t;r===Ji&&(Xi?(na(r),r.tag===5&&r.stateNode!=null&&(Yi=r.stateNode)):(na(r),Xi=!0));default:hl(n,t),t=Qu=Ei(t,ad),t=ol(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?tf(e):Qu=t}function ef(e,t,n,r){la=ca=null,$o(t),Za=null,Qa=0;var i=t.return;try{if(Ec(e,i,t,n,$u)){od=1,xc(e,Ni(n,e.current)),Qu=null;return}}catch(t){if(i!==null)throw Qu=i,t;od=1,xc(e,Ni(n,e.current)),Qu=null;return}t.flags&32768?(Xi||r===1?e=!0:rd||$u&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Co.current,r!==null&&r.tag===13&&(r.flags|=16384))),nf(t,e)):tf(t)}function tf(e){var t=e;do{if(t.flags&32768){nf(t,nd);return}e=t.return;var n=pl(t.alternate,t,ad);if(n!==null){Qu=n;return}if(t=t.sibling,t!==null){Qu=t;return}Qu=t=e}while(t!==null);od===0&&(od=5)}function nf(e,t){do{var n=ml(e.alternate,e);if(n!==null){n.flags&=32767,Qu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qu=e;return}Qu=e=n}while(e!==null);od=6,Qu=null}function rf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do ff();while(bd!==0);if(Xu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Zu&&(Qu=Zu=null,$u=0),Sd=t,xd=e,Cd=n,Td=a,Ed=r,af(e,t,n,s,c,l,f)}}function af(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(wd=s,s|=mi,nt(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Oa(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,xf(Fe,function(){return pf(),null})):(e.callbackNode=null,e.callbackPriority=0),Pl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=H.T,H.T=null,i=oe.p,oe.p=2,a=Xu,Xu|=4;try{lu(e,t,n)}finally{Xu=a,oe.p=i,H.T=r}}bd=1,Pl?Dd=Ip(o,e.containerInfo,kd,cf,lf,sf,uf,pf,of,null,null):(cf(),lf(),uf())}function of(e){if(bd!==0){var t=xd.onRecoverableError;t(e,{componentStack:null})}}function sf(){bd===3&&(bd=0,Au(Sd,xd),bd=4)}function cf(){if(bd===1){bd=0;var e=xd,t=Sd,n=Cd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=H.T,H.T=null;var i=oe.p;oe.p=2;var a=Xu;Xu|=4;try{ou=su=!1,Eu(t,e,n),n=fp;var o=Rr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Lr(s.ownerDocument.documentElement,s)){if(c!==null&&zr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Ir(s,h),v=Ir(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}bh=!!dp,fp=dp=null}finally{Xu=a,oe.p=i,H.T=r}}e.current=t,bd=2}}function lf(){if(bd===2){bd=0;var e=xd,t=Sd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=H.T,H.T=null;var r=oe.p;oe.p=2;var i=Xu;Xu|=4;try{du(e,t.alternate,t)}finally{Xu=i,oe.p=r,H.T=n}}bd=3}}function uf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,Ae();var t=xd,n=Sd,r=Cd,i=Ed,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?bd=5:(bd=0,Sd=xd=null,df(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),ut(r),n=n.stateNode,Ve&&typeof Ve.onCommitFiberRoot==`function`)try{Ve.onCommitFiberRoot(Be,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=H.T,a=oe.p,oe.p=2,H.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{H.T=n,oe.p=a}}if(i=Od,o=kd,kd=null,i!==null&&(Od=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Cd&3&&ff(),Of(t),a=t.pendingLanes,r&261930&&a&42?t===jd?Ad++:(Ad=0,jd=t):(Ad=0,jd=null),kf(0,!1)}}function df(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ta(t)))}function ff(){return Dd!==null&&(Dd.skipTransition(),Dd=null),cf(),lf(),uf(),pf()}function pf(){if(bd!==5)return!1;var e=xd,t=wd;wd=0;var n=ut(Cd),r=H.T,a=oe.p;try{oe.p=32>n?32:n,H.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,Xu&6)throw Error(i(331));var c=Xu;if(Xu|=4,Gu(o.current),Lu(o,o.current,s,n),Xu=c,kf(0,!1),Ve&&typeof Ve.onPostCommitFiberRoot==`function`)try{Ve.onPostCommitFiberRoot(Be,o)}catch{}return!0}finally{oe.p=a,H.T=r,df(e,t)}}function mf(e,t,n){t=Ni(n,t),t=Cc(e.stateNode,t,2),e=lo(e,t,2),e!==null&&(tt(e,2),Of(e))}function hf(e,t,n){if(e.tag===3)mf(e,e,n);else for(;t!==null;){if(t.tag===3){mf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Ni(n,e),n=wc(2),r=lo(t,n,2),r!==null&&(Tc(n,r,t,e),tt(r,2),Of(r));break}}t=t.return}}function gf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(id=!0,i.add(n),e=_f.bind(null,e,t,n),t.then(e,e))}function _f(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Zu===e&&($u&n)===n&&(od===4||od===3&&($u&62914560)===$u&&300>je()-hd?Xu&2?ld|=n:Hd(e,0):ld|=n,dd===$u&&(dd=0)),Of(e)}function vf(e,t){t===0&&(t=$e()),e=vi(e,t),e!==null&&(tt(e,t),Of(e))}function yf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vf(e,n)}function bf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),vf(e,n)}function xf(e,t){return De(e,t)}var Sf=null,Cf=null,wf=!1,Tf=!1,Ef=!1,Df=0;function Of(e){e!==Cf&&e.next===null&&(Cf===null?Sf=Cf=e:Cf=Cf.next=e),Tf=!0,wf||(wf=!0,Ff())}function kf(e,t){if(!Ef&&Tf){Ef=!0;do for(var n=!1,r=Sf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-G(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Pf(r,a))}else a=$u,a=Ye(r,r===Zu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,Pf(r,a))}r=r.next}while(n);Ef=!1}}function Af(){jf()}function jf(){Tf=wf=!1;var e=0;Df!==0&&yp()&&(e=Df);for(var t=je(),n=null,r=Sf;r!==null;){var i=r.next,a=Mf(r,t);a===0?(r.next=null,n===null?Sf=i:n.next=i,i===null&&(Cf=n)):(n=r,(e!==0||a&3)&&(Tf=!0)),r=i}bd!==0&&bd!==5||kf(e,!1),Df!==0&&(Df=0)}function Mf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-G(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Zu,n=$u,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ed===2||ed===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Oe(r),ut(n)){case 2:case 8:n=Pe;break;case 32:n=Fe;break;case 268435456:n=Le;break;default:n=Fe}return r=Nf.bind(null,e),n=De(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Oe(r),e.callbackPriority=2,e.callbackNode=null,2}function Nf(e,t){if(bd!==0&&bd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=$u;return r=Ye(e,e===Zu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),Mf(e,je()),e.callbackNode!=null&&e.callbackNode===n?Nf.bind(null,e):null)}function Pf(e,t){if(ff())return null;Id(e,t,!0)}function Ff(){wp(function(){Xu&6?De(Ne,Af):jf()})}function If(){if(Df===0){var e=ja;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),Df=e}return Df}function Lf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:cn(e)}function Rf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Lf((i[J]||null).action),o=r.submitter;o&&(t=(t=o[J]||null)?Lf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new An(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Df!==0){var e=new FormData(i,o);Ys(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Ys(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var zf=0;zf<ai.length;zf++){var Bf=ai[zf];oi(Bf.toLowerCase(),`on`+(Bf[0].toUpperCase()+Bf.slice(1)))}oi(Zr,`onAnimationEnd`),oi(Qr,`onAnimationIteration`),oi($r,`onAnimationStart`),oi(`dblclick`,`onDoubleClick`),oi(`focusin`,`onFocus`),oi(`focusout`,`onBlur`),oi(ei,`onTransitionRun`),oi(ti,`onTransitionStart`),oi(ni,`onTransitionCancel`),oi(ri,`onTransitionEnd`),jt(`onMouseEnter`,[`mouseout`,`mouseover`]),jt(`onMouseLeave`,[`mouseout`,`mouseover`]),jt(`onPointerEnter`,[`pointerout`,`pointerover`]),jt(`onPointerLeave`,[`pointerout`,`pointerover`]),At(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),At(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),At(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),At(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Vf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Hf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Vf));function Uf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){di(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){di(e)}i.currentTarget=null,a=c}}}}function Wf(e,t){var n=t[ht];n===void 0&&(n=t[ht]=new Set);var r=e+`__bubble`;n.has(r)||(Jf(t,e,2,!1),n.add(r))}function Gf(e,t,n){var r=0;t&&(r|=4),Jf(n,e,r,t)}var Kf=`_reactListening`+Math.random().toString(36).slice(2);function qf(e){if(!e[Kf]){e[Kf]=!0,Ot.forEach(function(t){t!==`selectionchange`&&(Hf.has(t)||Gf(t,!1,e),Gf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,Gf(`selectionchange`,!1,t))}}function Jf(e,t,n,r){switch(Dh(t)){case 2:var i=xh;break;case 8:i=Sh;break;default:i=Ch}n=i.bind(null,t,n,e),i=void 0,!yn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Yf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=St(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}gn(function(){var r=a,i=dn(n),s=[];a:{var c=ii.get(e);if(c!==void 0){var l=An,u=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:l=Jn;break;case`focusin`:u=`focus`,l=zn;break;case`focusout`:u=`blur`,l=zn;break;case`beforeblur`:case`afterblur`:l=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Zn;break;case Zr:case Qr:case $r:l=Bn;break;case ri:l=Qn;break;case`scroll`:case`scrollend`:l=Mn;break;case`wheel`:l=$n;break;case`copy`:case`cut`:case`paste`:l=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Yn;break;case`submit`:l=Xn;break;case`toggle`:case`beforetoggle`:l=er}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=_n(m,p),g!=null&&d.push(Xf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==un&&(u=n.relatedTarget||n.fromElement)&&(St(u)||u[mt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?St(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Ln,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Yn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:wt(c),h=l==null?u:wt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,St(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,Qf):null,c!==null&&$f(s,u,c,d,!1),l!==null&&f!==null&&$f(s,f,l,d,!0)))}a:{if(c=r?wt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=br;else if(mr(c)){if(xr)_=Ar;else{_=Or;var v=Dr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&an(r.elementType)&&(_=br):_=kr;if(_&&=_(e,r)){hr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?wt(r):window,e){case`focusin`:(mr(v)||v.contentEditable===`true`)&&(Vr=v,Hr=r,Ur=null);break;case`focusout`:Ur=Hr=Vr=null;break;case`mousedown`:Wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Wr=!1,Gr(s,n,i);break;case`selectionchange`:if(Br)break;case`keydown`:case`keyup`:Gr(s,n,i)}var y;if(nr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else ur?cr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(ar&&n.locale!==`ko`&&(ur||b!==`onCompositionStart`?b===`onCompositionEnd`&&ur&&(y=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,ur=!0)),v=Zf(r,b),0<v.length&&(b=new Hn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=lr(n),y!==null&&(b.data=y)))),(y=ir?dr(e,n):fr(e,n))&&(b=Zf(r,`onBeforeInput`),0<b.length&&(v=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Rf(s,e,r,n,i)}Uf(s,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=_n(e,n),i!=null&&r.unshift(Xf(e,i,a)),i=_n(e,t),i!=null&&r.push(Xf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $f(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=_n(n,a),l!=null&&o.unshift(Xf(n,l,c))):i||(l=_n(n,a),l!=null&&o.push(Xf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ep=/\r\n?/g,tp=/\u0000|\uFFFD/g;function np(e){return(typeof e==`string`?e:``+e).replace(ep,`
|
|
10
|
-
`).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function ip(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||en(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&en(e,``+r);else return;break;case`className`:zt(e,`class`,r);break;case`tabIndex`:zt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:zt(e,n,r);break;case`style`:rn(e,r,o);return;case`data`:if(t!==`object`){zt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ip(e,t,`name`,a.name,a,null),ip(e,t,`formEncType`,a.formEncType,a,null),ip(e,t,`formMethod`,a.formMethod,a,null),ip(e,t,`formTarget`,a.formTarget,a,null)):(ip(e,t,`encType`,a.encType,a,null),ip(e,t,`method`,a.method,a,null),ip(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=ln);return;case`onScroll`:r!=null&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=cn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Rt(e,`popover`,r);break;case`xlinkActuate`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Rt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=on.get(n)||n,Rt(e,n,r);else return}It=!0}function ap(e,t,n,r,a,o){switch(n){case`style`:rn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)en(e,r);else if(typeof r==`number`||typeof r==`bigint`)en(e,``+r);else return;break;case`onScroll`:r!=null&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=ln);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[J]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}It=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Rt(e,n,r)}return}It=!0}function op(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Wf(`error`,e),Wf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,o,s,n,null)}}a&&ip(e,t,`srcSet`,n.srcSet,n,null),r&&ip(e,t,`src`,n.src,n,null);return;case`input`:Wf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ip(e,t,r,d,n,null)}}Yt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Wf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ip(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Zt(e,!!r,n,!0):Zt(e,!!r,t,!1);return;case`textarea`:for(s in Wf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ip(e,t,s,c,n,null)}$t(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ip(e,t,l,r,n,null)}return;case`dialog`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Wf(`cancel`,e),Wf(`close`,e);break;case`iframe`:case`object`:Wf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Vf.length;r++)Wf(Vf[r],e);break;case`image`:Wf(`error`,e),Wf(`load`,e);break;case`details`:Wf(`toggle`,e);break;case`embed`:case`source`:case`link`:Wf(`error`,e),Wf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,u,r,n,null)}return;default:if(an(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ip(e,t,c,r,n,null))}var sp={};function cp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ip(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(It=!0),o=m;break;case`name`:m!==f&&(It=!0),a=m;break;case`checked`:m!==f&&(It=!0),u=m;break;case`defaultChecked`:m!==f&&(It=!0),d=m;break;case`value`:m!==f&&(It=!0),s=m;break;case`defaultValue`:m!==f&&(It=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ip(e,t,p,m,r,f)}}Jt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ip(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(It=!0),p=o;break;case`defaultValue`:o!==l&&(It=!0),c=o;break;case`multiple`:o!==l&&(It=!0),s=o;default:o!==l&&ip(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Zt(e,!!n,n?[]:``,!1):Zt(e,!!n,t,!0)):Zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ip(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(It=!0),p=a;break;case`defaultValue`:a!==o&&(It=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ip(e,t,s,a,r,o)}Qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ip(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(It=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ip(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ip(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ip(e,t,u,p,r,m)}return;default:if(an(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ap(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||ap(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ip(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ip(e,t,f,p,r,m)}function lp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function up(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&lp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&lp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var dp=null,fp=null;function pp(e){return e.nodeType===9?e:e.ownerDocument}function mp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function hp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function gp(e,t,n,r){return n=pp(n).createElement(e),n[q]=r,n[J]=t,op(n,e,t),Et(n),n}function _p(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vp=null;function yp(){var e=window.event;return e&&e.type===`popstate`?e!==vp&&(vp=e,!0):(vp=null,!1)}var bp=typeof setTimeout==`function`?setTimeout:void 0,xp=typeof clearTimeout==`function`?clearTimeout:void 0,Sp=typeof Promise==`function`?Promise:void 0,Cp=typeof requestAnimationFrame==`function`?requestAnimationFrame:bp,wp=typeof queueMicrotask==`function`?queueMicrotask:Sp===void 0?bp:function(e){return Sp.resolve(null).then(e).catch(Tp)};function Tp(e){setTimeout(function(){throw e})}function Ep(e){return e===`head`}function Dp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Kh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[yt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xm(e.ownerDocument.body)}n=i}while(n);Kh(t)}function Op(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function kp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ap(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function jp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Mp(e){return jp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Np(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return jp(t,n,e)}function Pp(e){return e.documentElement.clientHeight}function Fp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Ip(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Pp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=eh(f),u>rh){s.length=o;break}f=new Promise(Fp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Lp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Lp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Lp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Lp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Rp(e){return{name:e,group:new Lp(`group`,e),imagePair:new Lp(`image-pair`,e),old:new Lp(`old`,e),new:new Lp(`new`,e)}}function zp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}zp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Wp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Hp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Bp,e,s,r)}this._eventListeners=a}};function Bp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}zp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Wp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Hp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Vp,e,n,i),r.splice(t,1),a!==null&&a()}};function Vp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Hp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Up(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Wp(e,t,n,r){if(e.length===0)return-1;r=Up(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Up(a.optionsOrUseCapture)===r)return i}return-1}zp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},zp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag!==6&&(e=_(e),_m(e,t))}zp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Kp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Gp(t[n],e);n--);};function Kp(e,t){return t.push(e),!1}zp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=pp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,qp,e,void 0,void 0))};function qp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}zp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Jp,e,void 0,void 0)};function Jp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}zp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Yp,e,void 0,void 0);for(var n=t=0;n<Xp.length;n++){var r=Xp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Xp[t++]=r}Xp.length=t}};function Yp(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var Xp=[],Zp=!1;function Qp(e,t,n){Xp.push({fragmentInstance:e,observer:t,instance:n}),Zp||(Zp=!0,vm(function(){Zp=!1;var e=Xp;Xp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}zp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,$p,e,void 0,void 0),e};function $p(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}zp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},zp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Kp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||em(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function em(e,t,n,r,i){var a=St(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function tm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}zp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Kp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),tm(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),tm(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function nm(e,t){return e=_(e),rm(e,t),!1}function rm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Xp.length;i++){var a=Xp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Xp[r++]=a)}Xp.length=r,n.observe(e)}),rm(e,t))}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Qp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function om(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:om(n),xt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[yt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pm(e.nextSibling),e===null)break}return null}function cm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pm(e.nextSibling),e===null))return null;return e}function lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pm(e.nextSibling),e===null))return null;return e}function um(e){return e.data===`$?`||e.data===`$~`}function dm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function fm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var mm=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function _m(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function vm(e){Cp(function(){Cp(function(t){return e(t)})})}function ym(e,t,n){switch(t=pp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function bm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ip(e,t,r,null,sp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===ln&&(e.onclick=null),xt(e)}function xm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xt(e)}var Sm=new Map,Cm=new Set;function wm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Tm=oe.d;oe.d={f:Em,r:Dm,D:Am,C:jm,L:Mm,m:Nm,X:Fm,S:Pm,M:Im};function Em(){var e=Tm.f(),t=Bd();return e||t}function Dm(e){var t=Ct(e);t!==null&&t.tag===5&&t.type===`form`?Zs(t):Tm.r(e)}var Om=typeof document>`u`?null:document;function km(e,t,n){var r=Om;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cm.has(i)||(Cm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),op(t,`link`,e),Et(t),r.head.appendChild(t)))}}function Am(e){Tm.D(e),km(`dns-prefetch`,e,null)}function jm(e,t){Tm.C(e,t),km(`preconnect`,e,t)}function Mm(e,t,n){Tm.L(e,t,n);var r=Om;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Rm(e);break;case`script`:a=Hm(e)}if(!(Sm.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Um(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[bt]=!0,o.onload=o.onerror=function(){Dt(o)}),Et(o),r.head.appendChild(o)}}}function Nm(e,t){Tm.m(e,t);var n=Om;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hm(e)}if(!Sm.has(a)&&(e=w({rel:`modulepreload`,href:e},t),Sm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Um(a)))return}r=n.createElement(`link`),op(r,`link`,e),Et(r),n.head.appendChild(r)}}}function Pm(e,t,n){Tm.S(e,t,n);var r=Om;if(r&&e){var i=Tt(r).hoistableStyles,a=Rm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sm.get(a))&&Km(e,n);var c=o=r.createElement(`link`);Et(c),op(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Fm(e,t){Tm.X(e,t);var n=Om;if(n&&e){var r=Tt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=w({src:e,async:!0},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),Et(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t){Tm.M(e,t);var n=Om;if(n&&e){var r=Tt(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),Et(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t,n,r){var a=(a=me.current)?wm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Rm(n.href),t=Tt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rm(n.href);var o=Tt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Sm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sm.set(e,o)),Vm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Hm(n),t=Tt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rm(e){return`href="`+qt(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function Bm(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Vm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[bt]){r.loading=1;return}}else t=e.createElement(`link`),t[bt]=!0,t.onload=t.onerror=Dt.bind(null,t),op(t,`link`,n),Et(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Hm(e){return`[src="`+qt(e)+`"]`}function Um(e){return`script[async]`+e}function Wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Et(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Et(r),op(r,`style`,a),Gm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rm(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,Et(o),o;r=Bm(n),(a=Sm.get(a))&&Km(r,a),o=(e.ownerDocument||e).createElement(`link`),Et(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(o,`link`,r),t.state.loading|=4,Gm(o,n.precedence,e),t.instance=o;case`script`:return o=Hm(n.src),(a=e.querySelector(Um(o)))?(t.instance=a,Et(a),a):(r=n,(a=Sm.get(o))&&(r=w({},n),qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Et(a),op(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gm(r,n.precedence,e));return t.instance}function Gm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jm=null;function Ym(e,t,n){if(Jm===null){var r=new Map,i=Jm=new Map;i.set(n,r)}else i=Jm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[yt]||a[q]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function $m(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function eh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function th(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=eh(t),e.suspenseyImages.push(t)),e=sh.bind(e),t.decode().then(e,e))}function nh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rm(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=oh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Et(a);return}a=t.ownerDocument||t,r=Bm(r),(i=Sm.get(i))&&Km(r,i),a=a.createElement(`link`),Et(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=oh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var rh=0;function ih(e,t){return e.stylesheets&&e.count===0&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&rh===0&&(rh=62500*up());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>rh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ah(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function oh(){this.count--,ah(this)}function sh(){this.imgCount--,ah(this)}var ch=null;function lh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(uh,e),ch=null,oh.call(e))}function uh(e,t){if(!(t.state.loading&4)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=oh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dh={$$typeof:M,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function fh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function ph(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ci(3,null,null,t),e.current=a,a.stateNode=e,t=wa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},oo(a),e}function mh(e){return e?(e=xi,e):xi}function hh(e,t,n,r,i,a){i=mh(i),r.context===null?r.context=i:r.pendingContext=i,r=co(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=lo(e,r,t),n!==null&&(Fd(n,e,t),uo(n,e,t))}function gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _h(e,t){gh(e,t),(e=e.alternate)&&gh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=vi(e,67108864);t!==null&&Fd(t,e,67108864),_h(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Md();t=ct(t);var n=vi(e,t);n!==null&&Fd(n,e,t),_h(e,t)}}var bh=!0;function xh(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=2,Ch(e,t,n,r)}finally{oe.p=a,H.T=i}}function Sh(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=8,Ch(e,t,n,r)}finally{oe.p=a,H.T=i}}function Ch(e,t,n,r){if(bh){var i=wh(r);if(i===null)Yf(e,t,r,Th,n),Ih(e,r);else if(Rh(i,e,t,n,r))r.stopPropagation();else if(Ih(e,r),t&4&&-1<Fh.indexOf(e)){for(;i!==null;){var a=Ct(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-G(o);s.entanglements[1]|=c,o&=~c}Of(a),!(Xu&6)&&(_d=je()+500,kf(0,!1))}}break;case 31:case 13:s=vi(a,2),s!==null&&Fd(s,a,2),Bd(),_h(a,2)}if(a=wh(r),a===null&&Yf(e,t,r,Th,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function wh(e){return e=dn(e),Eh(e)}var Th=null;function Eh(e){if(Th=null,e=St(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Th=e,null}function Dh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Me()){case Ne:return 2;case Pe:return 8;case Fe:case Ie:return 32;case Le:return 268435456;default:return 32}default:return 32}}var Oh=!1,kh=null,Ah=null,jh=null,Mh=new Map,Nh=new Map,Ph=[],Fh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Ih(e,t){switch(e){case`focusin`:case`focusout`:kh=null;break;case`dragenter`:case`dragleave`:Ah=null;break;case`mouseover`:case`mouseout`:jh=null;break;case`pointerover`:case`pointerout`:Mh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Nh.delete(t.pointerId)}}function Lh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ct(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rh(e,t,n,r,i){switch(t){case`focusin`:return kh=Lh(kh,e,t,n,r,i),!0;case`dragenter`:return Ah=Lh(Ah,e,t,n,r,i),!0;case`mouseover`:return jh=Lh(jh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mh.set(a,Lh(Mh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Nh.set(a,Lh(Nh.get(a)||null,e,t,n,r,i)),!0}return!1}function zh(e){var t=St(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ft(e.priority,function(){yh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ft(e.priority,function(){yh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);un=r,n.target.dispatchEvent(r),un=null}else return t=Ct(n),t!==null&&vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Vh(e,t,n){Bh(e)&&n.delete(t)}function Hh(){Oh=!1,kh!==null&&Bh(kh)&&(kh=null),Ah!==null&&Bh(Ah)&&(Ah=null),jh!==null&&Bh(jh)&&(jh=null),Mh.forEach(Vh),Nh.forEach(Vh)}function Uh(e,n){e.blockedOn===n&&(e.blockedOn=null,Oh||(Oh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Hh)))}var Wh=null;function Gh(e){Wh!==e&&(Wh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Wh===e&&(Wh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Eh(r||n)===null)continue;break}var a=Ct(n);a!==null&&(e.splice(t,3),t-=3,Ys(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Kh(e){function t(t){return Uh(t,e)}kh!==null&&Uh(kh,e),Ah!==null&&Uh(Ah,e),jh!==null&&Uh(jh,e),Mh.forEach(t),Nh.forEach(t);for(var n=0;n<Ph.length;n++){var r=Ph[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ph.length&&(n=Ph[0],n.blockedOn===null);)zh(n),n.blockedOn===null&&Ph.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[J]||null;if(typeof a==`function`)o||Gh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[J]||null)s=o.formAction;else if(Eh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Gh(n)}}}function qh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Jh(e){this._internalRoot=e}Yh.prototype.render=Jh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hh(n,Md(),e,t,null,null)},Yh.prototype.unmount=Jh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hh(e.current,2,null,e,null,null),Bd(),t[mt]=null}};function Yh(e){this._internalRoot=e}Yh.prototype.unstable_scheduleHydration=function(e){if(e){var t=dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ph.length&&t!==0&&t<Ph[n].priority;n++);Ph.splice(n,0,e),n===0&&zh(e)}};var Xh=n.version;if(Xh!==`19.3.1`)throw Error(i(527,Xh,`19.3.1`));oe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Zh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:H,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qh.isDisabled&&Qh.supportsFiber)try{Be=Qh.inject(Zh),Ve=Qh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=vc,s=yc,c=bc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ph(e,1,!1,null,null,n,r,null,o,s,c,qh),e[mt]=t.current,qf(e),new Jh(t)}})),dt=et(((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=ut()})),ft=et((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),pt=et(((e,t)=>{t.exports=ft()})),q=rt(at(),1),J=pt(),mt=q.createContext(void 0),ht=e=>{let t=q.useContext(mt);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},gt=({client:e,children:t})=>(q.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,J.jsx)(mt.Provider,{value:e,children:t})),_t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vt=new class{#e=_t;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function yt(e){setTimeout(e,0)}var bt=typeof window>`u`||`Deno`in globalThis;function xt(){}function St(e,t){return typeof e==`function`?e(t):e}function Ct(e){return typeof e==`number`&&e>=0&&e!==1/0}function wt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tt(e,t){return typeof e==`function`?e(t):e}function Et(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ot(o,t.options))return!1}else if(!At(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Dt(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(kt(t.options.mutationKey)!==kt(a))return!1}else if(!At(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ot(e,t){return(t?.queryKeyHashFn||kt)(e)}function kt(e){return JSON.stringify(e,(e,t)=>Ft(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function At(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!At(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!At(e[r],t[r]))return!1;return!0}return!1}var jt=Object.prototype.hasOwnProperty;function Mt(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Pt(e)&&Pt(t);if(!r&&!(Ft(e)&&Ft(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:jt.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Mt(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Nt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Pt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ft(e){if(!It(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!It(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function It(e){return Object.prototype.toString.call(e)===`[object Object]`}function Lt(e){return new Promise(t=>{vt.setTimeout(t,e)})}function Rt(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Mt(e,t)}function zt(e){return e}function Bt(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Vt(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ht=Symbol();function Ut(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ht?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Wt(e,t){return typeof e==`function`?e(...t):!!e}function Gt(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0})),i)}),e}var Kt=()=>bt,qt=()=>Kt(),Jt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Yt=new class extends Jt{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Xt=yt;function Zt(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Xt,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Qt=Zt(),$t=new class extends Jt{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function en(e){return Math.min(1e3*2**e,3e4)}function tn(e){return(e??`online`)!==`online`||$t.isOnline()}var nn=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function rn(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(xt);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new nn(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Yt.isFocused()&&(e.networkMode===`always`||$t.isOnline())&&e.canRun(),p=()=>tn(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(qt()?0:3),a=e.retryDelay??en,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),Lt(o).then(()=>f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}var an=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ct(this.gcTime)&&(this.#e=vt.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qt()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(vt.clearTimeout(this.#e),this.#e=void 0)}};function on(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Gt(e,()=>t.signal,()=>n=!0)},u=Ut(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Vt:Bt;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?cn:sn,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:sn(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function sn(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function cn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ln=class extends an{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=fn(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=fn(this.options);e.data!==void 0&&(this.setState(dn(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Rt(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Tt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ht||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>Tt(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!wt(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Ut(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?on(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=rn({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof nn&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof nn){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...un(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...dn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Qt.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function un(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tn(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function dn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function fn(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var pn=class extends Jt{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),hn(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gn(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gn(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Tt(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Nt(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&_n(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||Tt(this.options.enabled,this.#t)!==Tt(t.enabled,this.#t)||Tt(this.options.staleTime,this.#t)!==Tt(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Tt(this.options.enabled,this.#t)!==Tt(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Nt(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch(t).then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(xt)),t}#h(e){return!qt()&&Tt(this.options.enabled,this.#t)!==!1&&Ct(e)}#g(){this.#b();let e=Tt(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=wt(this.#r.dataUpdatedAt,e)+1;this.#u=vt.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return Tt(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=vt.setInterval(()=>{(this.options.refetchIntervalInBackground||Yt.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(vt.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(vt.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&hn(e,t),o=i&&_n(e,n,t,r);(a||o)&&(l={...l,...un(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=Rt(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=Rt(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:vn(e,t),refetch:this.refetch,isEnabled:Tt(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),Nt(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();Qt.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function mn(e,t){return Tt(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||Tt(t.retryOnMount,e)!==!1)}function hn(e,t){return mn(e,t)||e.state.data!==void 0&&gn(e,t,t.refetchOnMount)}function gn(e,t,n){if(Tt(t.enabled,e)!==!1&&Tt(t.staleTime,e)!==`static`){let r=Tt(n,e);return r===`always`||r!==!1&&vn(e,t)}return!1}function _n(e,t,n,r){return(e!==t||Tt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&vn(e,n)}function vn(e,t){return Tt(t.enabled,e)!==!1&&e.isStaleByTime(Tt(t.staleTime,e))}var yn=class extends an{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||bn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=rn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Qt.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function bn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var xn=class extends Jt{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new yn({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Sn(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Sn(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Sn(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Sn(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Qt.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Dt(t,e))}findAll(e={}){return this.getAll().filter(t=>Dt(e,t))}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Qt.batch(()=>Promise.all(e.map(e=>e.continue().catch(xt))))}};function Sn(e){return e.options.scope?.id}var Cn=class extends Jt{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Nt(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&kt(t.mutationKey)!==kt(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??bn();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Qt.batch(()=>{let t=this.#r;if(t&&this.hasListeners()){let n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{t.onSuccess?.(e.data,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,n,r,i)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{t.onError?.(e.error,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,n,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function wn(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var Tn=class extends Jt{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Qt.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!Nt(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(wn(e,n).forEach(e=>{e.destroy()}),wn(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=Mt(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new pn(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&Qt.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},En=class extends Jt{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??Ot(r,t),a=this.get(i);return a||(a=new ln({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Et(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Et(e,t)):t}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Dn=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new En,this.#t=e.mutationCache||new xn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Yt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=$t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Tt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=St(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Qt.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Qt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Qt.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=Qt.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(xt).catch(xt)}invalidateQueries(e,t={}){return Qt.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qt.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(xt)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(xt)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(Tt(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Tt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xt).catch(xt)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xt).catch(xt)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return $t.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(kt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{At(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(kt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{At(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Ot(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Ht&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},On=q.createContext(!1),kn=()=>q.useContext(On);On.Provider;function An(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var jn=q.createContext(An()),Mn=()=>q.useContext(jn),Nn=(e,t,n)=>{let r=n?.state.status===`error`&&typeof e.throwOnError==`function`?Wt(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Pn=e=>{q.useEffect(()=>{e.clearReset()},[e])},Fn=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Wt(n,[e.error,r])),In=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Ln=(e,t)=>e?.suspense&&t.isPending,Rn=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function zn({queries:e,...t},n){let r=ht(n),i=kn(),a=Mn(),o=t.subscribed!==!1,s=q.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:o?`optimistic`:void 0,t}),[e,r,i,o]);s.forEach(e=>{In(e);let t=r.getQueryCache().get(e.queryHash);Nn(e,a,t)}),Pn(a);let[c]=q.useState(()=>new Tn(r,s,t)),[l,u,d]=c.getOptimisticResult(s,t.combine),f=!i&&o;q.useSyncExternalStore(q.useCallback(e=>f?c.subscribe(Qt.batchCalls(e)):xt,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),q.useEffect(()=>{c.setQueries(s,t)},[s,t,c]);let p=l.some((e,t)=>Ln(s[t],e))?l.flatMap((e,t)=>{let n=s[t];return n&&Ln(n,e)?Rn(n,new pn(r,n),a):[]}):[];if(p.length>0)throw Promise.all(p);let m=l.find((e,t)=>{let n=s[t];return n&&Fn({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(m)throw m.error;return u(d())}function Bn(e,t,n){let r=kn(),i=Mn(),a=ht(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,In(o),Nn(o,i,s),Pn(i);let[l]=q.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(q.useSyncExternalStore(q.useCallback(e=>{let t=d?l.subscribe(Qt.batchCalls(e)):xt;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),q.useEffect(()=>{l.setOptions(o)},[o,l]),Ln(o,u))throw Rn(o,l,i);if(Fn({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function Vn(e,t){return Bn(e,pn,t)}function Hn(e,t){let n=ht(t),[r]=q.useState(()=>new Cn(n,e));q.useEffect(()=>{r.setOptions(e)},[r,e]);let i=q.useSyncExternalStore(q.useCallback(e=>r.subscribe(Qt.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=q.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(xt)},[r]);if(i.error&&Wt(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Un=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Wn=/^[\\/]{2}/;function Gn(e,t){return t+e.replace(/\\/g,`/`)}var Kn=`popstate`;function qn(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Jn(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return $n(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:er(t)}return nr(t,n,null,e)}function Yn(e,t){if(e===!1||e==null)throw Error(t)}function Xn(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Zn(){return Math.random().toString(36).substring(2,10)}function Qn(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function $n(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?tr(t):t,state:n,key:t&&t.key||r||Zn(),mask:i}}function er({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function tr(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function nr(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=qn(e)?e:$n(h.location,e,t);n&&n(r,e),l=u()+1;let d=Qn(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=qn(e)?e:$n(h.location,e,t);n&&n(r,e),l=u();let i=Qn(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return rr(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Kn,d),c=e,()=>{i.removeEventListener(Kn,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function rr(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Yn(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:er(t);return i=i.replace(/ $/,`%20`),!n&&Wn.test(i)&&(i=r+i),new URL(i,r)}var ir=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},ar=class extends Error{},or=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`,`unstable_validateParams`]);function sr(e){return or.has(e)}var cr=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`,`unstable_validateParams`]);function lr(e){return cr.has(e)}function ur(e){return e.index===!0}function dr(e){let t={};return e.Component&&Object.assign(t,{element:q.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:q.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:q.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function fr(e,t=dr,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(Yn(e.index!==!0||!e.children,`Cannot specify children on an index route`),Yn(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),ur(e)){let n={...e,id:s};return r[s]=pr(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=pr(n,t(n)),e.children&&(n.children=fr(e.children,t,o,r,i)),n}})}function pr(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function mr(e,t,n=`/`){return hr(e,t,n,!1)}function hr(e,t,n,r,i){let a=Lr((typeof t==`string`?tr(t):t).pathname||`/`,n);if(a==null)return null;let o=i??_r(e),s=null,c=Ir(a);for(let e=0;s==null&&e<o.length;++e)s=Mr(o[e],c,r);return s}function gr(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function _r(e){let t=vr(e);return br(t),t}function vr(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Yn(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=qr([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Yn(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),vr(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:Ar(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Fr(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of yr(e.path))a(e,t,!0,n)}),t}function yr(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=yr(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function br(e){e.sort((e,t)=>e.score===t.score?jr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var xr=/^:[\w-]+$/,Sr=/^:[\w-]+/,Cr=3.5,wr=3,Tr=2,Er=1,Dr=10,Or=-2,kr=e=>e===`*`;function Ar(e,t){let n=e.split(`/`),r=n.length;return n.some(kr)&&(r+=Or),t&&(r+=Tr),n.filter(e=>!kr(e)).reduce((e,t)=>e+(xr.test(t)?wr:Sr.test(t)?Cr:t===``?Er:Dr),r)}function jr(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Mr(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Pr(u,l,s.matcher,s.compiledParams):Nr(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Nr({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:qr([a,d.pathname]),pathnameBase:Yr(qr([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=qr([a,d.pathnameBase]))}return o}function Nr(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Fr(e.path,e.caseSensitive,e.end);return Pr(e,t,n,r)}function Pr(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Jr(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Jr(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Fr(e,t=!1,n=!0){Xn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ir(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Xn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Lr(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Rr({basename:e,pathname:t}){return t===`/`?e:qr([e,t])}var zr=e=>Un.test(e);function Br(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?tr(e):e,a;return n?(n=Kr(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Vr(n.substring(1),`/`):Vr(n,t)):a=t,{pathname:a,search:Xr(r),hash:Zr(i)}}function Vr(e,t){let n=Jr(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Hr(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ur(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Wr(e){let t=Ur(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Gr(e,t,n,r=!1){let i;typeof e==`string`?i=tr(e):(i={...e},Yn(!i.pathname||!i.pathname.includes(`?`),Hr(`?`,`pathname`,`search`,i)),Yn(!i.pathname||!i.pathname.includes(`#`),Hr(`#`,`pathname`,`hash`,i)),Yn(!i.search||!i.search.includes(`#`),Hr(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Br(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Kr=e=>e.replace(/[\\/]{2,}/g,`/`),qr=e=>Kr(e.join(`/`));function Jr(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Yr=e=>Jr(e).replace(/^\/*/,`/`),Xr=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Zr=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Qr=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],$r=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ei(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ti(e){return qr(e.map(e=>e.route.path).filter(Boolean))||`/`}function ni(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?tr(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var ri=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function ii(e,t){let n=e;if(typeof n!=`string`||!Un.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ri)try{let e=new URL(window.location.href),r=Wn.test(n)?new URL(Gn(n,e.protocol)):new URL(n),a=Lr(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Xn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var ai=Symbol(`Uninstrumented`),oi=new WeakMap;function si(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>pi(await mi(n.lazy,void 0,()=>e(...t),hi))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>pi(await mi(n[`lazy.middleware`],void 0,()=>t(...e),hi))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>pi(await mi(n[`lazy.loader`],void 0,()=>t(...e),hi))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>pi(await mi(n[`lazy.action`],void 0,()=>t(...e),hi))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=li(t.loader),i=async(...t)=>pi(await mi(n.loader,gi(t[0]),()=>e(...t),hi));e.hydrate===!0&&(i.hydrate=!0),ui(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=li(t.action),i=async(...t)=>pi(await mi(n.action,gi(t[0]),()=>e(...t),hi));ui(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=li(e),r=async(...e)=>pi(await mi(n.middleware,gi(e[0]),()=>t(...e),hi));return ui(r,t),r})),r}function ci(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=li(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?er(i):`.`,..._i(e,a??{})};return pi(await mi(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=di(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...hi(e),meta:o})))};ui(r,t),e.navigate=r}if(n.fetch.length>0){let t=li(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return pi(await mi(n.fetch,{href:o??`.`,fetcherKey:i,..._i(e,s??{})},async()=>{let n=di(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...hi(e),meta:c})))};ui(r,t),e.fetch=r}return e}function li(e){return e[ai]??e}function ui(e,t){e[ai]=t}function di(e,t){return oi.set(e,t),()=>{oi.get(e)===t&&oi.delete(e)}}function fi(e){let t=oi.get(e);return oi.delete(e),t}function pi(e){if(e.type===`error`)throw e.value;return e.value}async function mi(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=mi(e,t,n,r,i,a-1),await s,Yn(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result||(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t)),i.result}function hi(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function gi(e){let{request:t,context:n,params:r}=e;return{...e,request:vi(t),params:{...r},context:yi(n)}}function _i(e,t){return{currentUrl:er(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function vi(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function yi(e){return{get:t=>e.get(t)}}var bi=class{#e=[];#t=[];#n;constructor(e){this.#n=e}update(e){this.#e=e,this.#t=_r(e)}match(e,t=!1){return hr(this.#e,e,this.#n,t,this.#t)}},xi=new URL(`http://localhost`);function Si(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),xi)}catch{return xi}}function Ci(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function wi(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Ti(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Ci(i,n),s=!Ci(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!wi(e,i)||!Ci(i,a)))throw Error(`External navigation is not allowed`)}var Ei=[`POST`,`PUT`,`PATCH`,`DELETE`],Di=new Set(Ei),Oi=[`GET`,...Ei],ki=new Set(Oi),Ai=new Set([301,302,303,307,308]),ji=new Set([307,308]),Mi={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ni={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Pi={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Fi=`remix-router-transitions`,Ii=Symbol(`ResetLoaderData`);function Li(e,t){return e.unstable_routePatternMatching?(Yn(void 0,`You must call unstable_preloadRoutePattern() from "react-router/route-pattern" before enabling future.unstable_routePatternMatching.`),new(void 0)(t)):new bi(t)}var Ri=class{#e;#t;#n;constructor(e,t){this.#e=e,this.#n=t,this.#n.update(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#t??this.#e}get hasHMRRoutes(){return this.#t!=null}setRoutes(e){this.#e=e,this.#t||this.#n.update(e)}setHmrRoutes(e){this.#t=e,this.#n.update(e)}commitHmrRoutes(){this.#t&&(this.#e=this.#t,this.#t=void 0,this.#n.update(this.#e))}},zi=new WeakMap;function Bi(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;Yn(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties,a=i||(()=>({}));if(e.instrumentations){let t=e.instrumentations;a=e=>({...i?.(e),...si(t.map(e=>e.route).filter(Boolean),e)})}let o={...e.future},s=e.basename||`/`;s.startsWith(`/`)||(s=`/${s}`);let c=Li(o,s),l={},u=new Ri(fr(e.routes,a,void 0,l),c),d=e.dataStrategy||ra,f=null,p=new Set,m=null,h=null,g=null,_=e.hydrationData!=null,v=c.match(e.history.location),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Da(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ea(u.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&G(v,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=G(null,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>Gi(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=Ki(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:Mi,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=0,D,O=null,k=!1,A,j=!1,M=new Map,N=null,P=!1,F=!1,I=new Set,L=new Map,R=0,ee=-1,z=new Map,B=new Set,V=new Map,te=new Map,ne=new Set,re=new Map,ie,ae=null;function H(){if(f=e.history.listen(({action:t,location:n,delta:r})=>{if(ie){ie(),ie=void 0;return}Xn(re.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Le({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ie=e});e.history.go(r*-1),Ie(i,{state:`blocked`,location:n,proceed(){Ie(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,Pi),ce({blockers:e})}}),O?.resolve(),O=null}else return o.unstable_customRouteDiscovery&&(E+=r||0),fe(t,n)}),n){Qa(t,M);let e=()=>$a(t,M);t.addEventListener(`pagehide`,e),N=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||fe(`POP`,w.location,{initialHydration:!0}),C}function oe(){f&&f(),N&&N(),p.clear(),A&&A.abort(),w.fetchers.forEach((e,t)=>Oe(w.fetchers,t)),w.blockers.forEach((e,t)=>Fe(t))}function se(e){return p.add(e),()=>p.delete(e)}function ce(e,t={}){let n=e.errors??null,r=n?zi.get(n):void 0;r!==void 0&&(n=r),(e.errors!==void 0||e.initialized)&&(w.errors&&zi.delete(w.errors),e.errors&&zi.set(e.errors,n)),e.matches&&=e.matches.map(e=>{let t=l[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let i=[],a=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(ne.has(t)?i.push(t):a.push(t))}),ne.forEach(e=>{!w.fetchers.has(e)&&!L.has(e)&&i.push(e)}),[...p].forEach(e=>e(w,{deletedFetchers:i,newErrors:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),i.forEach(e=>Oe(w.fetchers,e)),a.forEach(e=>w.fetchers.delete(e))}function le(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&Ha(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?Ca(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,s=w.blockers;s.size>0&&!P&&(s=new Map(s),s.forEach((e,t)=>s.set(t,Pi)));let c=!P&&He(t,n.matches||w.matches),l=k===!0||w.navigation.formMethod!=null&&Ha(w.navigation.formMethod)&&t.state?._isRedirect!==!0;u.commitHmrRoutes(),P||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`&&!P&&t!==w.location){let e=M.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:M.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(j){let e=M.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}ce({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:Mi,revalidation:`idle`,restoreScrollPosition:c,preventScrollReset:l,blockers:s},{viewTransitionOpts:d,flushSync:r===!0}),U(),O?.resolve(),O=null,ae?.resolve(),ae=null}function U(){E=0,T=`POP`,k=!1,j=!1,P=!1,F=!1}async function ue(t,n){if(D&&await D,O?.resolve(),O=null,typeof t==`number`){O||=eo();let n=O.promise;return e.history.go(t),n}let r=fi(C),{path:i,submission:a,error:o}=Ui(!1,Hi(w.location,w.matches,s,t,n?.fromRouteId,n?.relative),n),c;if(n?.mask){let t=typeof n.mask==`string`?tr(n.mask):{...w.location.mask,...n.mask};if(c={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},Wn.test(c.pathname))throw Error(`External navigation is not allowed`);c.pathname.startsWith(`\\`)&&(c.pathname=c.pathname.replace(/^\\+/,`/`)),Ti(typeof n.mask==`string`?n.mask:er(n.mask),er(c),e.history.createURL(`/`),`reject`)}let l=w.location,u=$n(l,i,n&&n.state,void 0,c);u={...u,...e.history.encodeLocation(u)},Ti(t==null?e.history.createHref(w.location):typeof t==`string`?t:er(t),e.history.createHref(u.mask||u),e.history.createURL(`/`),`reject`);let d=n&&n.replace!=null?n.replace:void 0,f=`PUSH`;d===!0?f=`REPLACE`:d===!1||a!=null&&Ha(a.formMethod)&&a.formAction===w.location.pathname+w.location.search&&(f=`REPLACE`);let p=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,m=(n&&n.flushSync)===!0,h=Le({currentLocation:l,nextLocation:u,historyAction:f});h?Ie(h,{state:`blocked`,location:u,proceed(){Ie(h,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),ue(t,n)},reset(){let e=new Map(w.blockers);e.set(h,Pi),ce({blockers:e})}}):await fe(f,u,{submission:a,pendingError:o,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:r})}function de(){if(D)return D.then(de);ae||=eo(),Ce(),ce({revalidation:`loading`});let e=ae.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(fe(w.historyAction,w.location,{startUninterruptedRevalidation:!0,dataStrategyInitiator:`revalidation`}),e):(fe(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,dataStrategyInitiator:`revalidation`,enableViewTransition:j===!0}),e)}async function fe(t,n,r){D&&await D,A&&A.abort(),A=null,T=t,P=(r&&r.startUninterruptedRevalidation)===!0,Ve(w.location,w.matches),k=(r&&r.preventScrollReset)===!0,j=(r&&r.enableViewTransition)===!0;let i=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:c.match(n),a=(r&&r.flushSync)===!0;if(i&&w.initialized&&!F&&Aa(w.location,n)&&!(r&&r.submission&&Ha(r.submission.formMethod))){le(n,{matches:i},{flushSync:a});return}let o=G(i,n.pathname);if(o.active&&o.matches&&(i=o.matches),r?.instrumentationNavigateMetaReceiver){let t=Ga(e.history,n,i);r.instrumentationNavigateMetaReceiver(t)}if(!i){let{error:e,notFoundMatches:t,route:r}=Re(n.pathname);le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:a});return}let s=r&&r.overrideNavigation?{...r.overrideNavigation,matches:i,historyAction:t}:void 0;A=new AbortController;let l=va(e.history,n,A.signal,r&&r.submission),u=r?.initialHydration?`initialization`:r?.dataStrategyInitiator??`navigation`,d=e.getContext?await e.getContext():new ir,f;if(r&&r.pendingError)f=[Ta(i).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Ha(r.submission.formMethod)){let c=await me(l,u,n,r.submission,i,t,d,o.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:a});if(c.shortCircuited)return;if(c.pendingActionResult){let[e,t]=c.pendingActionResult;if(Fa(t)&&ei(t.error)&&t.error.status===404){A=null,le(n,{matches:c.matches,loaderData:{},errors:{[e]:t.error}});return}}i=c.matches||i,f=c.pendingActionResult,s=qa(n,i,t,r.submission),a=!1,o.active=!1,l=va(e.history,l.url,l.signal)}let{shortCircuited:p,matches:m,loaderData:h,errors:g,workingFetchers:_}=await he(l,u,n,i,t,d,o.active,s,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,a,f,r&&r.callSiteDefaultShouldRevalidate);p||(A=null,le(n,{matches:m||i,...wa(f),loaderData:h,errors:g,..._?{fetchers:_}:{}}))}function pe(){let t=eo();D=t.promise;let n=E,r=O;O=null,A?.abort(),A=null,U(),ae?.resolve(),ae=null;let i=new Map(w.blockers);i.forEach((e,t)=>{e.state===`proceeding`&&i.set(t,Pi)});let a=new Map(w.fetchers),o=Me(a);a.forEach((e,t)=>{e.state===`loading`&&!L.has(t)&&(a.set(t,Za(e.data)),o=!0)}),I.clear(),ce({navigation:Mi,revalidation:`idle`,blockers:i,...o?{fetchers:a}:{}});function s(){D=void 0,r?.resolve(),t.resolve()}return n?(ie=s,e.history.go(-n)):s(),t.promise}async function me(t,n,i,c,d,f,p,m,h,g={}){if(o.unstable_customRouteDiscovery||Ce(),ce({navigation:Ja(i,d,f,c)},{flushSync:g.flushSync===!0}),m){let e=await Ue(d,i.pathname,t.signal);if(o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await pe(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Ea(u.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Ta(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)d=e.matches;else{let{notFoundMatches:e,error:t,route:n}=Re(i.pathname);return{matches:e,pendingActionResult:[n.id,{type:`error`,error:t}]}}}o.unstable_customRouteDiscovery&&Ce();let _,v=Wa(d,i);if(!v.route.action&&!v.route.lazy)_={type:`error`,error:Da(405,{method:t.method,pathname:i.pathname,routeId:v.route.id})};else{let e=await W(t,i,la(a,l,t,i,d,v,h?[]:r,p),p,null,n,f);if(_=e[v.route.id],!_){for(let t of d)if(e[t.route.id]){_=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Ia(_)){let r;return r=g&&g.replace!=null?g.replace:_a(_.response.headers.get(`Location`),new URL(t.url),s,e.history)===w.location.pathname+w.location.search,await xe(t,_,!0,n,{submission:c,replace:r}),{shortCircuited:!0}}if(Fa(_)){let e=Ta(d,v.route.id);return(g&&g.replace)!==!0&&(T=`PUSH`),{matches:d,pendingActionResult:[e.route.id,_,v.route.id]}}return{matches:d,pendingActionResult:[v.route.id,_]}}async function he(t,n,i,s,d,f,p,m,h,g,_,v,y,b,x){let S=m||qa(i,s,d,h),C=h||g||Ka(S),T=!P&&!v;if(p){if(T){let e=ge(b);ce({navigation:S,...e===void 0?{}:{actionData:e}},{flushSync:y})}let e=await Ue(s,i.pathname,t.signal);if(o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await pe(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Ea(u.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Ta(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)s=e.matches,v&&!t.signal.aborted&&ce({matches:s});else{let{error:e,notFoundMatches:t,route:n}=Re(i.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}}let{dsMatches:E,revalidatingFetchers:D}=Wi(t,f,a,l,e.history,w,s,C,i,v?[]:r,v===!0,F,I,ne,V,B,c,b,x);if(ee=++R,!e.dataStrategy&&!E.some(e=>e.shouldLoad)&&!E.some(e=>e.route.middleware&&e.route.middleware.length>0)&&D.length===0){let e=new Map(w.fetchers),t=Me(e);return le(i,{matches:s,loaderData:{},errors:b&&Fa(b[1])?{[b[0]]:b[1].error}:null,...wa(b),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(T){let e={};if(!p){e.navigation=S;let t=ge(b);t!==void 0&&(e.actionData=t)}D.length>0&&(e.fetchers=_e(D)),ce(e,{flushSync:y})}D.forEach(e=>{Ae(e.key),e.controller&&L.set(e.key,e.controller)});let O=()=>D.forEach(e=>Ae(e.key));A&&A.signal.addEventListener(`abort`,O);let{loaderResults:k,fetcherResults:j}=await Se(E,D,t,i,f,n,d);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener(`abort`,O),D.forEach(e=>L.delete(e.key));let M=Oa(k);if(M)return await xe(t,M.result,!0,n,{replace:_}),{shortCircuited:!0};if(M=Oa(j),M)return B.add(M.key),await xe(t,M.result,!0,n,{replace:_}),{shortCircuited:!0};let N=new Map(w.fetchers),{loaderData:z,errors:te}=Sa(w,s,k,b,D,j,N);if(v&&w.errors){let e=te??null;te={...w.errors,...te},zi.set(te,e)}let re=Me(N),ie=Ne(ee,N),ae=re||ie||D.length>0;return{matches:s,loaderData:z,errors:te,...ae?{workingFetchers:N}:{}}}function ge(e){if(e&&!Fa(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function _e(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=Ya(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function ve(t,n,r,i){D&&await D,Ae(t);let a=(i&&i.flushSync)===!0,o=fi(C),l=Hi(w.location,w.matches,s,r,n,i?.relative),u=c.match(l),d=G(u,l);if(d.active&&d.matches&&(u=d.matches),o&&o(Ga(e.history,l,u)),!u){Te(t,n,Da(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Ui(!0,l,i);if(m){Te(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new ir,g=(i&&i.preventScrollReset)===!0;if(p&&Ha(p.formMethod)){await ye(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}let _={routeId:n,path:f,isDiscovering:d.active};V.set(t,_),await be(t,_,u,h,a,g,p)}async function ye(t,n,i,s,u,d,f,p,m,h){o.unstable_customRouteDiscovery||Ce(),V.delete(t);let g=w.fetchers.get(t);we(t,Xa(m,g),{flushSync:f});let _=new AbortController;o.unstable_customRouteDiscovery&&L.set(t,_);let v=va(e.history,i,_.signal,m);if(d){let e=await Ue(s,new URL(v.url).pathname,v.signal,t);if(o.unstable_customRouteDiscovery&&v.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){L.delete(t),V.delete(t),we(t,Za(g?.data),{flushSync:f});return}if(e.type===`error`){Te(t,n,e.error,{flushSync:f});return}if(e.matches)s=e.matches;else{Te(t,n,Da(404,{pathname:i}),{flushSync:f});return}}let y=Wa(s,i);if(!y.route.action&&!y.route.lazy){Te(t,n,Da(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}o.unstable_customRouteDiscovery&&Ce(),L.set(t,_);let b=R,x=la(a,l,v,i,s,y,r,u),S=await W(v,i,x,u,t,`fetcher`),C=S[y.route.id];if(!C){for(let e of x)if(S[e.route.id]){C=S[e.route.id];break}}if(v.signal.aborted){L.get(t)===_&&L.delete(t);return}if(ne.has(t)){if(Ia(C)||Fa(C)){we(t,Za(void 0));return}}else{if(Ia(C)){if(L.delete(t),ee>b){we(t,Za(void 0));return}return B.add(t),we(t,Ya(m)),xe(v,C,!1,`fetcher`,{fetcherSubmission:m,preventScrollReset:p})}if(Fa(C)){Te(t,n,C.error);return}}let E=w.navigation.location||w.location,D=va(e.history,E,_.signal),O=w.navigation.state===`idle`?w.matches:c.match(w.navigation.location);Yn(O,`Didn't find any matches after fetcher action`);let k=++R;z.set(t,k);let{dsMatches:j,revalidatingFetchers:M}=Wi(D,u,a,l,e.history,w,O,m,E,r,!1,F,I,ne,V,B,c,[y.route.id,C],h),N=Ya(m,C.data),P=new Map(w.fetchers);P.set(t,N),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=P.get(t),r=Ya(void 0,n?n.data:void 0);P.set(t,r),Ae(t),e.controller&&L.set(t,e.controller)}),ce({fetchers:P});let te=()=>M.forEach(e=>Ae(e.key));_.signal.addEventListener(`abort`,te);let{loaderResults:re,fetcherResults:ie}=await Se(j,M,D,E,u,`fetcher`);if(_.signal.aborted){z.get(t)===k&&z.delete(t);return}_.signal.removeEventListener(`abort`,te),z.delete(t),L.delete(t),M.forEach(e=>L.delete(e.key));let ae=w.fetchers.has(t),H=e=>{if(!ae)return e;let n=new Map(e.fetchers);return n.set(t,Za(C.data)),{...e,fetchers:n}},oe=Oa(re);if(oe)return w=H(w),xe(D,oe.result,!1,`fetcher`,{preventScrollReset:p});if(oe=Oa(ie),oe)return B.add(oe.key),w=H(w),xe(D,oe.result,!1,`fetcher`,{preventScrollReset:p});let se=new Map(w.fetchers);ae&&se.set(t,Za(C.data));let{loaderData:U,errors:ue}=Sa(w,O,re,void 0,M,ie,se);Ne(k,se),w.navigation.state===`loading`&&k>ee?(Yn(T,`Expected pending action`),A&&A.abort(),le(w.navigation.location,{matches:O,loaderData:U,errors:ue,fetchers:se})):(ce({errors:ue,loaderData:Ca(w.loaderData,U,O,ue),fetchers:se}),F=!1)}async function be(t,n,i,s,c,u,d){let{routeId:f,path:p}=n,m=w.fetchers.get(t);we(t,Ya(d,m?m.data:void 0),{flushSync:c});let h=new AbortController;o.unstable_customRouteDiscovery&&L.set(t,h);let g=va(e.history,p,h.signal);if(n.isDiscovering){let e=await Ue(i,new URL(g.url).pathname,g.signal,t);if(o.unstable_customRouteDiscovery&&g.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){L.delete(t),V.delete(t),we(t,Za(m?.data),{flushSync:c});return}if(e.type===`error`){Te(t,f,e.error,{flushSync:c});return}if(e.matches)i=e.matches,n.isDiscovering=!1;else{Te(t,f,Da(404,{pathname:p}),{flushSync:c});return}}let _=Wa(i,p);L.set(t,h);let v=R,y=await W(g,p,la(a,l,g,p,i,_,r,s),s,t,`fetcher`),b=y[_.route.id];if(!b){for(let e of i)if(y[e.route.id]){b=y[e.route.id];break}}if(L.get(t)===h&&L.delete(t),!g.signal.aborted){if(ne.has(t))we(t,Za(void 0));else{if(Ia(b)){if(ee>v){we(t,Za(void 0));return}B.add(t),await xe(g,b,!1,`fetcher`,{preventScrollReset:u});return}Fa(b)?Te(t,f,b.error):we(t,Za(b.data))}}}async function xe(r,i,a,o,{submission:c,fetcherSubmission:l,preventScrollReset:u,replace:d}={}){a||(O?.resolve(),O=null),i.response.headers.has(`X-Remix-Revalidate`)&&(F=!0);let f=i.response.headers.get(`Location`);Yn(f,`Expected a Location header on the redirect Response`);let p=f,m=new URL(r.url);f=_a(f,m,s,e.history),Ti(p,f,m,`allow-explicit`);let h=$n(w.location,f,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(zr(f)){let n=rr(t,f,!0);e=n.origin!==t.location.origin||Lr(n.pathname,s)==null}if(e){d?t.location.replace(f):t.location.assign(f);return}}A=null;let g=d===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:_,formAction:v,formEncType:y}=w.navigation;!c&&!l&&_&&v&&y&&(c=Ka(w.navigation));let b=c||l;ji.has(i.response.status)&&b&&Ha(b.formMethod)?await fe(g,h,{submission:{...b,formAction:f},preventScrollReset:u||k,enableViewTransition:a?j:void 0,dataStrategyInitiator:o}):await fe(g,h,{overrideNavigation:qa(h,[],g,c),fetcherSubmission:l,preventScrollReset:u||k,enableViewTransition:a?j:void 0,dataStrategyInitiator:o})}async function W(e,t,n,r,i,a,o=null){let c,l={};try{c=await ua(d,e,t,n,i,a,r,!1,o)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{l[t.route.id]={type:`error`,error:e}}),l}if(e.signal.aborted)return l;if(!Ha(e.method))for(let e of n){if(c[e.route.id]?.type===`error`)break;c.hasOwnProperty(e.route.id)||w.loaderData.hasOwnProperty(e.route.id)||w.errors&&w.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(c[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(c))if(Pa(r)){let i=r.result;l[t]={type:`redirect`,response:ma(i,e,t,n,s)}}else l[t]=await pa(r);return l}async function Se(e,t,n,r,i,a,o=null){let s=W(n,r,e,i,null,a,o),c=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await W(e.request,e.path,e.matches,i,e.key,a,o))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:Da(404,{pathname:e.path})}})}));return{loaderResults:await s,fetcherResults:(await c).reduce((e,t)=>Object.assign(e,t),{})}}function Ce(){F=!0,V.forEach((e,t)=>{o.unstable_customRouteDiscovery&&e.isDiscovering||(L.has(t)&&I.add(t),Ae(t))})}function we(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),ce({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function Te(e,t,n,r={}){let i=Ta(w.matches,t),a=new Map(w.fetchers);Oe(a,e),ce({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ee(e){return te.set(e,(te.get(e)||0)+1),ne.has(e)&&ne.delete(e),w.fetchers.get(e)||Ni}function De(e,t){Ae(e,t?.reason),V.delete(e),I.delete(e),we(e,Za(null))}function Oe(e,t){let n=w.fetchers.get(t);L.has(t)&&!(n&&n.state===`loading`&&z.has(t))&&Ae(t),V.delete(t),z.delete(t),B.delete(t),ne.delete(t),I.delete(t),e.delete(t)}function ke(e){let t=(te.get(e)||0)-1;t<=0?(te.delete(e),ne.add(e)):te.set(e,t),ce({fetchers:new Map(w.fetchers)})}function Ae(e,t){let n=L.get(e);n&&(n.abort(t),L.delete(e))}function je(e,t){for(let n of e){let e=t.get(n);Yn(e,`Expected fetcher: ${n}`);let r=Za(e.data);t.set(n,r)}}function Me(e){let t=[],n=!1;for(let r of B){let i=e.get(r);Yn(i,`Expected fetcher: ${r}`),i.state===`loading`&&(B.delete(r),t.push(r),n=!0)}return je(t,e),n}function Ne(e,t){let n=[];for(let[r,i]of z)if(i<e){let e=t.get(r);Yn(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Ae(r),z.delete(r),n.push(r))}return je(n,t),n.length>0}function Pe(e,t){let n=w.blockers.get(e)||Pi;return re.get(e)!==t&&re.set(e,t),n}function Fe(e){w.blockers.delete(e),re.delete(e)}function Ie(e,t){let n=w.blockers.get(e)||Pi;Yn(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),ce({blockers:r})}function Le({currentLocation:e,nextLocation:t,historyAction:n}){if(re.size===0)return;re.size>1&&Xn(!1,`A router only supports one blocker at a time`);let r=Array.from(re.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Re(e){let t=Da(404,{pathname:e}),n=u.activeRoutes,{matches:r,route:i}=Ea(n);return{notFoundMatches:r,route:i,error:t}}function ze(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===Mi){_=!0;let e=He(w.location,w.matches);e!=null&&ce({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Be(e,t){return h&&h(e,t.map(e=>gr(e,w.loaderData)))||e.key}function Ve(e,t){if(m&&g){let n=Be(e,t);m[n]=g()}}function He(e,t){if(m){let n=Be(e,t),r=m[n];if(typeof r==`number`)return r}return null}function G(t,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:c.match(n,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:c.match(n,!0)}}return{active:!1,matches:null}}async function Ue(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let s=t;for(;;){let t=l;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:s,fetcherKey:i,patch:(e,n)=>{r.aborted||Xi(e,n,u,t,a,!1)}})}catch(e){if(o.unstable_customRouteDiscovery){if(r.aborted)return{type:`aborted`};if(e instanceof ar)return{type:`cancelled`}}return{type:`error`,error:e,partialMatches:s}}if(r.aborted)return{type:`aborted`};let d=c.match(n),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=c.match(n,!0),!(f&&s.length<f.length&&We(s,f.slice(0,s.length))))))return{type:`success`,matches:d};if(f||=c.match(n,!0),!f||We(s,f))return{type:`success`,matches:null};s=f}}function We(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Ge(e){l={},u.setHmrRoutes(fr(e,a,void 0,l))}function Ke(e,t,n=!1){Xi(e,t,u,l,a,n),u.hasHMRRoutes||ce({})}return C={get basename(){return s},get future(){return o},get state(){return w},get routes(){return u.stableRoutes},match(e){return c.match(e)},get manifest(){return l},get window(){return t},initialize:H,subscribe:se,enableScrollRestoration:ze,navigate:ue,fetch:ve,revalidate:de,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ee,resetFetcher:De,deleteFetcher:ke,dispose:oe,getBlocker:Pe,deleteBlocker:Fe,patchRoutes:Ke,_internalFetchControllers:L,_internalSetRoutes:Ge,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ce(e)}},e.instrumentations&&(C=ci(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function Vi(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Hi(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Gr(r||`.`,Wr(o),Lr(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Ua(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=Rr({basename:n,pathname:c.pathname})),er(c)}function Ui(e,t,n){if(!n||!Vi(n))return{path:t};if(n.formMethod&&!Va(n.formMethod))return{path:t,error:Da(405,{method:n.formMethod})};let r=()=>({path:t,error:Da(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=ka(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Ha(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Ha(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}Yn(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ya(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ya(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=ba(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=ba(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Ha(c.formMethod))return{path:t,submission:c};let l=tr(t);return e&&l.search&&Ua(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:er(l),submission:c}}function Wi(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=_?Fa(_[1])?_[1].error:_[1].data:void 0,b=i.createURL(a.location),x=i.createURL(c),S;if(u&&a.errors){let e=Object.keys(a.errors)[0];S=o.findIndex(t=>t.route.id===e)}else if(_&&Fa(_[1])){let e=_[0];S=o.findIndex(t=>t.route.id===e)-1}let C=_?_[1].statusCode:void 0,w=C&&C>=400,T={currentUrl:b,currentParams:a.matches[0]?.params||{},nextUrl:x,nextParams:o[0].params,...s,actionResult:y,actionStatus:C},E=ti(o),D=o.map((i,o)=>{let{route:s}=i,f=null;if(S!=null&&o>S)f=!1;else if(s.lazy)f=!0;else if(!Gi(s))f=!1;else if(u){let{shouldLoad:e}=Ki(s,a.loaderData,a.errors);f=e}else qi(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return ca(n,r,e,c,E,i,l,t,f);let p=!1;typeof v==`boolean`?p=v:w?p=!1:d||b.pathname+b.search===x.pathname+x.search?p=!0:b.search===x.search?Ji(a.matches[o],i)&&(p=!0):p=!0;let m={...T,defaultShouldRevalidate:p};return ca(n,r,e,c,E,i,l,t,Yi(i,m),m,v)}),O=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s)||e.isDiscovering)return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,_=g.match(e.path);if(!_){O.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let y=Wa(_,e.path),b=new AbortController,x=va(i,e.path,b.signal),S=null;if(f.has(s))f.delete(s),S=la(n,r,x,e.path,_,y,l,t);else if(m)d&&(S=la(n,r,x,e.path,_,y,l,t));else{let i;i=typeof v==`boolean`?v:!w&&d;let a={...T,defaultShouldRevalidate:i};Yi(y,a)&&(S=la(n,r,x,e.path,_,y,l,t,a))}S&&O.push({key:s,routeId:e.routeId,path:e.path,matches:S,match:y,request:x,controller:b})}),{dsMatches:D,revalidatingFetchers:O}}function Gi(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Ki(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Gi(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function qi(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Ji(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Yi(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Xi(e,t,n,r,i,a){let o;if(e){let t=r[e];Yn(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Zi(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=fr(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=fr([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Zi(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Zi(e,t)))??!1}var Qi=new WeakMap,$i=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(Yn(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Qi.get(i);o||(o={},Qi.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=sr(e),n=i[e]!==void 0;if(t)Xn(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)Xn(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},ea=new WeakMap;function ta(e,t,n,r,i){let a=n[e.id];if(Yn(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=ea.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{Yn(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=lr(e),o=a[e]!==void 0;i?Xn(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?Xn(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return ea.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=$i({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function na(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function ra(e){return e.matches.some(e=>e.route.middleware)?ia(e,()=>na(e)):na(e)}function ia(e,t){return aa(e,t,e=>{if(Ba(e))throw e;return e},Ma,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[Ta(r,a).route.id]:{type:`error`,result:t}}}}}async function aa(e,t,n,r,i){let{matches:a,...o}=e;return await oa(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function oa(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await oa(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function sa(e,t,n,r,i){let a=$i({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=ta(r.route,Ha(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function ca(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=sa(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Yi(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Yi(a,{...l,defaultShouldRevalidate:e}):Yi(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Ha(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Ha(n.method)||!p)?da({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function la(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?ca(e,t,n,r,ti(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:sa(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function ua(e,t,n,r,i,a,o,s,c=null){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let l={request:t,url:ni(t,n),pattern:ti(r),params:r[0].params,context:o,matches:r,unstable_initiator:a,unstable_navigationType:a===`navigation`?c:null},u=s?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=l;return ia(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},d=await e({...l,fetcherKey:i,runClientMiddleware:u});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return d}async function da({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Ha(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:ni(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw Da(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Da(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function fa(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function pa(e){let{result:t,type:n}=e;if(Ra(t)){let e;try{e=await fa(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new $r(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?La(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:ja(t),statusCode:ei(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:ei(t)?t.status:void 0}:La(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function ma(e,t,n,r,i){let a=e.headers.get(`Location`);if(Yn(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!zr(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Hi(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var ha=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function ga(e){try{return ha.includes(new URL(e).protocol)}catch{return!1}}function _a(e,t,n,r){if(zr(e)){let r=e,i=Wn.test(r)?new URL(Gn(r,t.protocol)):new URL(r);if(ga(i.toString()))throw Error(`Invalid redirect location`);let a=Lr(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Kr(i.pathname)+i.search+i.hash}try{if(ga(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function va(e,t,n,r){let i=e.createURL(ka(t)).toString(),a={signal:n};if(r&&Ha(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?ya(r.formData):r.formData}return new Request(i,a)}function ya(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function ba(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function xa(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Fa(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(Yn(!Ia(f),`Cannot handle redirect results in processLoaderData`),Fa(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Ta(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Ii),c||(c=!0,s=ei(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Sa(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=xa(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(Yn(s,`Did not find corresponding fetcher result`),Fa(s)){let t=Ta(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(Ia(s))Yn(!1,`Unhandled fetcher revalidation redirect`);else{let e=Za(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Ca(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Ii).reduce((e,[t,n])=>(e[t]=n,e),{}),a=0;for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(i[n]=e[n],a++),r&&r.hasOwnProperty(n))break}return Object.keys(t).length===0&&a===Object.keys(e).length?e:i}function wa(e){return e?Fa(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ta(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function Ea(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Da(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new $r(e||500,o,Error(s),!0)}function Oa(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Ia(r))return{key:n,result:r}}}function ka(e){return er({...typeof e==`string`?tr(e):e,hash:``})}function Aa(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function ja(e){return new $r(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Ma(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Na(t))}function Na(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Pa(e){return Ra(e.result)&&Ai.has(e.result.status)}function Fa(e){return e.type===`error`}function Ia(e){return(e&&e.type)===`redirect`}function La(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Ra(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function za(e){return Ai.has(e)}function Ba(e){return Ra(e)&&za(e.status)&&e.headers.has(`Location`)}function Va(e){return ki.has(e.toUpperCase())}function Ha(e){return Di.has(e.toUpperCase())}function Ua(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Wa(e,t){let n=typeof t==`string`?tr(t).search:t.search;if(e[e.length-1].route.index&&Ua(n||``))return e[e.length-1];let r=Ur(e);return r[r.length-1]}function Ga(e,t,n){return{url:ni(e.createURL(t),t),pattern:n?ti(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function Ka(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function qa(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ja(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function Ya(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Xa(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Za(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Qa(e,t){try{let n=e.sessionStorage.getItem(Fi);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function $a(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Fi,JSON.stringify(n))}catch(e){Xn(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function eo(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var to=q.createContext(null);to.displayName=`DataRouter`;var no=q.createContext(null);no.displayName=`DataRouterState`;var ro=q.createContext(null);ro.displayName=`DataRouterData`;var io=q.createContext(null);io.displayName=`DataRouterNavigation`;var ao=q.createContext(!1);function oo(){return q.useContext(ao)}var so=q.createContext({isTransitioning:!1});so.displayName=`ViewTransition`;var co=q.createContext(null);co.displayName=`Fetchers`;var lo=q.createContext(null);lo.displayName=`Await`;var uo=q.createContext(null);uo.displayName=`Navigation`;var fo=q.createContext(null);fo.displayName=`Location`;var po=q.createContext({outlet:null,matches:[],isDataRoute:!1});po.displayName=`Route`;var mo=q.createContext(!1);mo.displayName=`IsDataRoute`;var ho=q.createContext(void 0);ho.displayName=`RouteId`;var go=q.createContext(null);go.displayName=`RouteError`;var _o=`REACT_ROUTER_ERROR`,vo=`REDIRECT`,yo=`ROUTE_ERROR_RESPONSE`;function bo(e){if(e.startsWith(`${_o}:${vo}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function xo(e){if(e.startsWith(`${_o}:${yo}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new $r(t.status,t.statusText,t.data)}catch{}}function So(e,{relative:t}={}){Yn(Co(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=q.useContext(uo),{hash:i,pathname:a,search:o}=jo(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:qr([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Co(){return q.useContext(fo)!=null}function wo(){return Yn(Co(),`useLocation() may be used only in the context of a <Router> component.`),q.useContext(fo).location}var To=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Eo(){return q.useContext(mo)?Jo():Do()}function Do(){Yn(Co(),`useNavigate() may be used only in the context of a <Router> component.`);let e=q.useContext(to),{basename:t,navigator:n}=q.useContext(uo),{matches:r}=q.useContext(po),{pathname:i}=wo(),a=JSON.stringify(Wr(r)),o=q.useRef(!1);return q.useLayoutEffect(()=>{o.current=!0}),q.useCallback((r,s={})=>{if(Xn(o.current,To),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Gr(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:qr([t,c.pathname])),Ti(typeof r==`string`?r:er(r),n.createHref(c),Si(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Oo=q.createContext(null);function ko(e){let t=q.useContext(po).outlet;return q.useMemo(()=>t&&q.createElement(Oo.Provider,{value:e},t),[t,e])}function Ao(){let{matches:e}=q.useContext(po);return e[e.length-1]?.params??{}}function jo(e,{relative:t}={}){let{matches:n}=q.useContext(po),{pathname:r}=wo(),i=JSON.stringify(Wr(n));return q.useMemo(()=>Gr(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Mo(e,t,n){Yn(Co(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=q.useContext(uo),{matches:i}=q.useContext(po),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=wo(),l;if(t){let e=typeof t==`string`?tr(t):t;Yn(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):mr(e,{pathname:d});let p=zo(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:qr([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:qr([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?q.createElement(fo.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function No(){let e=Go(),t=ei(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return q.createElement(q.Fragment,null,q.createElement(`h2`,null,`Unexpected Application Error!`),q.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?q.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Po=q.createElement(No,null),Fo=class extends q.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=ao;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=xo(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:q.createElement(po.Provider,{value:this.props.routeContext},q.createElement(mo.Provider,{value:this.props.routeContext.isDataRoute},q.createElement(ho.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},q.createElement(go.Provider,{value:e,children:this.props.component}))));return this.context?q.createElement(Lo,{error:e},t):t}},Io=new WeakMap;function Lo({children:e,error:t}){let{basename:n,navigator:r}=q.useContext(uo);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=bo(t.digest);if(e){let i=Io.get(t);if(i)throw i;let a=ii(e.location,n),o=a.absoluteURL||a.to;if(Ti(e.location,o,Si(r),`allow-explicit`),ga(o))throw Error(`Invalid redirect location`);if(ri&&!Io.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Io.set(t,n),n}}return q.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Ro({routeContext:e,match:t,children:n}){let r=q.useContext(to);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),q.createElement(po.Provider,{value:e},q.createElement(mo.Provider,{value:e.isDataRoute},q.createElement(ho.Provider,{value:t.route.id},n)))}function zo(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Yn(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ti(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Po,o&&(s<0&&c===0?(Xo(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?q.createElement(n.route.Component,null):n.route.element?n.route.element:e,q.createElement(Ro,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?q.createElement(Fo,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Bo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vo(e){let t=q.useContext(to);return Yn(t,Bo(e)),t}function Ho(e){let t=q.useContext(no);return Yn(t,Bo(e)),t}function Uo(e){let t=q.useContext(ro);return Yn(t,Bo(e)),t}function Wo(e){let t=q.useContext(ho);return Yn(t,`${e} can only be used on routes that contain a unique "id"`),t}function Go(){let e=q.useContext(go),t=Uo(`useRouteError`),n=Wo(`useRouteError`);return e===void 0?t.errors?.[n]:e}var Ko=0;function qo(e){let{router:t,basename:n}=Vo(`useBlocker`),r=Ho(`useBlocker`),[i,a]=q.useState(``),o=q.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:Lr(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:Lr(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return q.useEffect(()=>{let e=String(++Ko);return a(e),()=>t.deleteBlocker(e)},[t]),q.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):Pi}function Jo(){let{router:e}=Vo(`useNavigate`),t=Wo(`useNavigate`),n=q.useRef(!1);return q.useLayoutEffect(()=>{n.current=!0}),q.useCallback(async(r,i={})=>{Xn(n.current,To),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Yo={};function Xo(e,t,n){!t&&!Yo[e]&&(Yo[e]=!0,Xn(!1,n))}function Zo(e,t){if(e===!1||e==null)throw Error(t)}function Qo(e,t,n){let r=typeof e==`string`?new URL(e,n??(typeof window>`u`?`server://singlefetch/`:window.location.origin)):new URL(e);return n&&r.origin!==n&&(r=new URL(r.pathname+r.search+r.hash,n)),r.pathname.endsWith(`/`)?r.pathname=`${r.pathname}_.${t}`:r.pathname=`${r.pathname}.${t}`,r}async function $o(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function es(e){return e!=null&&typeof e.page==`string`}function ts(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function ns(e,t,n){return ss((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await $o(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ts).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function rs(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function is(e,t,{includeHydrateFallback:n}={}){return as(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function as(e){return[...new Set(e)]}function os(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ss(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!es(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(os(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var cs={};function ls(e,t){!e&&!cs[t]&&(cs[t]=!0,console.warn(t))}var us=q.createContext(void 0);us.displayName=`FrameworkContext`;function ds(){let e=q.useContext(us);return Zo(e,`You must render this element inside a <HydratedRouter> element`),e}function fs(e,t){let n=q.useContext(us),[r,i]=q.useState(!1),[a,o]=q.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=q.useRef(null);q.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),q.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:ps(s,p),onBlur:ps(c,m),onMouseEnter:ps(l,p),onMouseLeave:ps(u,m),onTouchStart:ps(d,p)}]:[a,f,{}]:[!1,f,{}]}function ps(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ms({page:e,...t}){let n=oo(),{nonce:r}=ds(),{router:i}=Vo(`PrefetchPageLinks`),a=q.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?q.createElement(gs,{page:e,matches:a,...t}):q.createElement(_s,{page:e,matches:a,...t})):null}function hs(e){let{manifest:t,routeModules:n}=ds(),[r,i]=q.useState([]);return q.useEffect(()=>{let r=!1;return ns(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function gs({page:e,matches:t,...n}){let r=wo(),{unstable_apiServerOrigin:i}=ds(),a=q.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Qo(e,`rsc`,i),a=!1,o=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?a=!0:o.push(e.route.id);return a&&o.length>0&&n.searchParams.set(`_routes`,o.join(`,`)),[i?n.toString():n.pathname+n.search]},[e,r,t,i]);return q.createElement(q.Fragment,null,a.map(e=>q.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function _s({page:e,matches:t,...n}){let r=wo(),{manifest:i,routeModules:a,unstable_apiServerOrigin:o}=ds(),{matches:s}=Ho(`PrefetchPageLinks`),{loaderData:c}=Uo(`PrefetchPageLinks`),l=q.useMemo(()=>rs(e,t,s,i,r,`data`),[e,t,s,i,r]),u=q.useMemo(()=>rs(e,t,s,i,r,`assets`),[e,t,s,i,r]),d=q.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some(t=>t.route.id===e.route.id)&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let u=Qo(e,`data`,o);return s&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[o?u.toString():u.pathname+u.search]},[c,r,i,l,t,e,a,o]),f=q.useMemo(()=>is(u,i),[u,i]),p=hs(u);return q.createElement(q.Fragment,null,d.map(e=>q.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),f.map(e=>q.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>q.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function vs(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var ys=[`HydrateFallback`,`hydrateFallbackElement`],bs=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function xs({router:e,flushSync:t,onError:n,useTransitions:r}){r=oo()||r;let[i,a]=q.useState(e.state),[o,s]=(0,q.useOptimistic)(i),c=q.useRef(o),[l,u]=q.useState(),[d,f]=q.useState({isTransitioning:!1}),[p,m]=q.useState(),[h,g]=q.useState(),[_,v]=q.useState(),y=q.useRef(new Map),b=q.useRef(new WeakSet),x=q.useCallback((i,{deletedFetchers:o,newErrors:l,flushSync:d,viewTransitionOpts:_})=>{c.current=i,l&&i.errors&&zi.has(i.errors)&&(b.current.has(i.errors)?l=null:b.current.add(i.errors)),l&&n&&Object.values(l).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:ti(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),ls(d===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let x=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(ls(_==null||x,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!x)t&&d?t(()=>a(i)):r===!1?a(i):q.startTransition(()=>{r===!0&&s(e=>Ss(e,i)),a(i)});else if(t&&d){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})})}),t(()=>g(n))}else h?(p?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(u(i),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,r,s,n]);q.useLayoutEffect(()=>e.subscribe(x),[e,x]),q.useLayoutEffect(()=>{let t=e.state.errors,n=t?zi.get(t):null;(c.current!==e.state||t&&n&&!b.current.has(t))&&x(e.state,{deletedFetchers:[],flushSync:!1,newErrors:n??null})},[e,x]),q.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new bs)},[d]),q.useEffect(()=>{if(p&&l&&e.window){let t=l,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):q.startTransition(()=>{r===!0&&s(e=>Ss(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})}),g(i)}},[l,p,e.window,r,s]),q.useEffect(()=>{p&&l&&o.location.key===l.location.key&&p.resolve()},[p,h,o.location,l]),q.useEffect(()=>{!d.isTransitioning&&_&&(u(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[d.isTransitioning,_]);let S=q.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),C=e.basename||`/`,w=q.useMemo(()=>({router:e,navigator:S,static:!1,basename:C,onError:n}),[e,S,C,n]),T=q.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),E=q.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),D=q.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),O=q.useMemo(()=>({fetchers:o.fetchers,fetcherData:y.current}),[o.fetchers]);return q.createElement(q.Fragment,null,q.createElement(to.Provider,{value:w},q.createElement(no.Provider,{value:T},q.createElement(io.Provider,{value:E},q.createElement(ro.Provider,{value:D},q.createElement(co.Provider,{value:O},q.createElement(so.Provider,{value:d},q.createElement(Ds,{basename:C,location:o.location,navigationType:o.historyAction,navigator:S,useTransitions:r},q.createElement(Cs,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function Ss(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Cs=q.memo(ws);function ws({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=q.useContext(to);Yn(a,`You must render this element inside a <DataRouterContext.Provider> element`);let o=q.useContext(us)?.routeDiscoveryRuntime;return q.useEffect(()=>{n.initialized&&o?.markReady()},[n.initialized,o]),Mo(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function Ts({to:e,replace:t,state:n,relative:r}){Yn(Co(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=q.useContext(uo);Xn(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=q.useContext(po),{pathname:s}=wo(),c=Eo(),l=Gr(e,Wr(o),s,r===`path`);Ti(typeof e==`string`?e:er(e),a.createHref(l),Si(a),`reject`);let u=JSON.stringify(l);return q.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Es(e){return ko(e.context)}function Ds({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Yn(!Co(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=q.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=tr(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=q.useMemo(()=>{let e=Lr(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return Xn(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:q.createElement(uo.Provider,{value:c},q.createElement(fo.Provider,{children:t,value:h}))}q.Component;var Os=`application/x-www-form-urlencoded`;function ks(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function As(e){return ks(e)&&e.tagName.toLowerCase()===`button`}function js(e){return ks(e)&&e.tagName.toLowerCase()===`form`}function Ms(e){return ks(e)&&e.tagName.toLowerCase()===`input`}function Ns(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ps(e,t){return e.button===0&&(!t||t===`_self`)&&!Ns(e)}function Fs(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Is(e,t){let n=Fs(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Ls=null;function Rs(){if(Ls===null)try{new FormData(document.createElement(`form`),0),Ls=!1}catch{Ls=!0}return Ls}var zs=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Bs(e){return e!=null&&!zs.has(e)?(Xn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Os}"`),null):e}function Vs(e,t){let n,r,i,a,o;if(js(e)){let o=e.getAttribute(`action`);r=o?Lr(o,t):null,n=e.getAttribute(`method`)||`get`,i=Bs(e.getAttribute(`enctype`))||Os,a=new FormData(e)}else if(As(e)||Ms(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Lr(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Bs(e.getAttribute(`formenctype`))||Bs(o.getAttribute(`enctype`))||Os,a=new FormData(o,e),!Rs()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(ks(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=Os,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var Hs=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Hs&&(window.__reactRouterVersion=`8`)}catch{}function Us(e,t){return Bi({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Jn({window:t?.window}),hydrationData:t?.hydrationData||Ws(),routes:e,mapRouteProperties:dr,hydrationRouteProperties:ys,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Ws(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Gs(e.errors)}),e}function Gs(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new $r(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&Qr.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var Ks=q.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=q.useContext(uo),v=typeof l==`string`&&Un.test(l),y=ii(l,h);l=y.to;let b=So(l,{relative:r}),x=wo(),S=null;if(o){let e=Gr(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:qr([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=fs(n,p),E=Ys(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=q.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:vs(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?q.createElement(q.Fragment,null,k,q.createElement(ms,{page:b})):k});Ks.displayName=`Link`;var qs=q.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=jo(a,{relative:c.relative}),d=wo(),f=q.useContext(io),{navigator:p,basename:m}=q.useContext(uo),h=f!=null&&tc(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Lr(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return q.createElement(Ks,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});qs.displayName=`NavLink`;var Js=q.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=q.useContext(uo),g=$s(),_=ec(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Un.test(s);return q.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?q.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Js.displayName=`Form`;function Ys(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Eo(),d=wo(),f=jo(e,{relative:o});return q.useCallback(p=>{if(Ps(p,t)){p.preventDefault();let t=n===void 0?er(d)===er(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?q.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Xs(e){Xn(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=q.useRef(Fs(e)),n=q.useRef(!1),r=wo(),i=q.useMemo(()=>Is(r.search,n.current?null:t.current),[r.search]),a=Eo();return[i,q.useCallback((e,t)=>{let r=Fs(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Zs=0,Qs=()=>`__${String(++Zs)}__`;function $s(){let{router:e}=Vo(`useSubmit`),{basename:t}=q.useContext(uo),n=Wo(`useSubmit`),r=e.fetch,i=e.navigate;return q.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Vs(e,t);a.navigate===!1?await r(a.fetcherKey||Qs(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ec(e,{relative:t}={}){let{basename:n}=q.useContext(uo),r=q.useContext(po);Yn(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...jo(e||`.`,{relative:t})},o=wo();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:qr([n,a.pathname])),er(a)}function tc(e,{relative:t}={}){let n=q.useContext(so);Yn(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Vo(`useViewTransitionState`),i=jo(e,{relative:t});if(!n.isTransitioning)return!1;let a=Lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Nr(i.pathname,o)!=null||Nr(i.pathname,a)!=null}var nc=rt(lt(),1);function rc(e){return q.createElement(xs,{flushSync:nc.flushSync,...e})}var ic=dt(),ac=class extends Error{status;constructor(e,t){super(e),this.status=t}};async function oc(e,t,n){let r=await fetch(t,{method:e,headers:{...n!==void 0&&{"Content-Type":`application/json`},...e!==`GET`&&{"X-AsRun-Ui":`1`}},body:n===void 0?void 0:JSON.stringify(n)}),i=await r.json().catch(()=>({}));if(!r.ok)throw new ac(i.error??`Request failed (${r.status})`,r.status);return i}var sc={info:()=>oc(`GET`,`/api/info`),profiles:()=>oc(`GET`,`/api/profiles`),addProfile:e=>oc(`POST`,`/api/profiles`,e),verifyProfiles:e=>oc(`POST`,`/api/profiles/verify`,e??{}),cases:()=>oc(`GET`,`/api/cases`),case:e=>oc(`GET`,`/api/cases/${e}`),saveCase:(e,t,n)=>oc(`PUT`,`/api/cases/${e}`,{content:t,mtimeMs:n}),spec:e=>oc(`GET`,`/api/specs/${e}`),saveSpec:(e,t,n)=>oc(`PUT`,`/api/specs/${e}`,{content:t,mtimeMs:n}),openSpec:e=>oc(`POST`,`/api/spec-open`,{id:e}),caseImpact:e=>oc(`GET`,`/api/case-impact/${e}`),renameCase:(e,t)=>oc(`POST`,`/api/case-rename`,{id:e,to:t}),deleteCase:e=>oc(`DELETE`,`/api/cases/${e}`),createCase:e=>oc(`POST`,`/api/cases`,{id:e}),baselines:e=>oc(`GET`,`/api/baselines?case=${encodeURIComponent(e)}`),reports:()=>oc(`GET`,`/api/reports`),reportSummary:e=>oc(`GET`,`/api/reports/${e}/summary`),previewRun:e=>oc(`POST`,`/api/runs/preview`,e),planRun:e=>oc(`POST`,`/api/runs/plan`,e),jobs:()=>oc(`GET`,`/api/jobs`),startJob:e=>oc(`POST`,`/api/jobs`,e),sendInput:(e,t)=>oc(`POST`,`/api/jobs/${e}/input`,{text:t}),cancelJob:e=>oc(`POST`,`/api/jobs/${e}/cancel`)};function cc(e,t){return e.find(e=>e.continuesJobId===t&&(e.status===`running`||e.status===`succeeded`))}var lc=`asrun-ui.notify`,uc=new Set,dc=()=>typeof Notification<`u`,fc=()=>{try{return localStorage.getItem(lc)===`true`}catch{return!1}},pc=e=>(uc.add(e),window.addEventListener(`storage`,e),()=>{uc.delete(e),window.removeEventListener(`storage`,e)}),mc=()=>dc()?Notification.permission:`unsupported`,hc=()=>(0,q.useSyncExternalStore)(pc,fc),gc=()=>(hc(),mc());function _c(e){try{localStorage.setItem(lc,String(e))}catch{}uc.forEach(e=>e())}async function vc(e){if(!e)return _c(!1);dc()&&(Notification.permission==="default"&&await Notification.requestPermission(),_c(Notification.permission===`granted`))}var yc=()=>fc()&&mc()===`granted`,bc=e=>[e.profile,e.env].filter(Boolean).join(` @ `);function xc(e,t){let n=[];for(let r of e)r.status===`running`&&r.kind===`signin`?n.push({key:`${r.id}:signin`,jobId:r.id,kind:`signin`,title:`Your turn: log in`,body:`Log in${bc(r)?` to ${bc(r)}`:``} in the browser window, then click "I've logged in, save the session".`}):r.status===`running`&&r.awaitingUser?n.push({key:`${r.id}:handoff:${r.awaitingUser.since}`,jobId:r.id,kind:`handoff`,title:`Your turn in the browser window`,body:r.awaitingUser.message??`Do the step, then press Done on the card.`}):r.status===`succeeded`&&r.resultState===`needs-input`&&!t.has(r.id)&&!cc(e,r.id)&&n.push({key:`${r.id}:needs-input`,jobId:r.id,kind:`needs-input`,title:`The agent needs your answers`,body:r.caseId?`Open questions in ${r.caseId}.`:`There are open questions in the case file.`});return n}function Sc(e,t,n){(0,q.useEffect)(()=>{if(!e)return;let n=()=>{!document.hidden&&document.hasFocus()&&t(e)};return n(),window.addEventListener(`focus`,n),document.addEventListener(`visibilitychange`,n),()=>{window.removeEventListener(`focus`,n),document.removeEventListener(`visibilitychange`,n)}},[e,t,n])}function Cc(e,t,n){let r=(0,q.useMemo)(()=>xc(e??[],t),[e,t]),i=(0,q.useRef)(null);return(0,q.useEffect)(()=>{if(!e)return;let t=i.current===null,a=i.current??new Set;i.current=a;for(let e of r){if(a.has(e.key)||(a.add(e.key),t||!yc()||!document.hidden&&document.hasFocus()))continue;let r=new Notification(e.title,{body:e.body,tag:e.key});r.onclick=()=>{window.focus(),r.close(),n(e.jobId)}}},[e,r,n]),r}var wc=`AsRun`,Tc=wc,Ec=[{prefix:`/profiles`,title:`Profiles`},{prefix:`/cases`,title:`Cases`},{prefix:`/run`,title:`Run tests`},{prefix:`/reports`,title:`Reports`},{prefix:`/guide`,title:`AI guide`},{prefix:`/help`,title:`Help`},{prefix:`/jobs`,title:`Job Log`}],Dc=(e,t)=>e===t||e.startsWith(`${t}/`);function Oc(e){let t=Ec.find(t=>Dc(e,t.prefix));if(!t)return Tc;if(t.prefix===`/cases`){let n=decodeURIComponent(e.slice(7));if(n===`memo`)return`${Tc} | ${t.title} | From memo`;if(n)return`${Tc} | ${t.title} | ${n}`}return`${Tc} | ${t.title}`}function kc(e,t){(0,q.useEffect)(()=>{document.title=`${t>0?`(${t}) `:``}${Oc(e)}`},[e,t])}var Ac={info:[`info`],profiles:[`profiles`],cases:[`cases`],caseDetails:[`case`],case:e=>[`case`,e],specs:[`spec`],spec:e=>[`spec`,e],reports:[`reports`],reportSummary:e=>[`report-summary`,e],jobs:[`jobs`]},jc=()=>Vn({queryKey:Ac.info,queryFn:sc.info}),Mc=()=>Vn({queryKey:Ac.profiles,queryFn:sc.profiles,refetchInterval:e=>e.state.data?.verifying?1500:!1}),Nc=()=>Vn({queryKey:Ac.cases,queryFn:sc.cases}),Pc=()=>Vn({queryKey:Ac.reports,queryFn:sc.reports,placeholderData:zt}),Fc=()=>Vn({queryKey:Ac.jobs,queryFn:sc.jobs,refetchInterval:e=>e.state.data?.some(e=>e.status===`running`)?3e3:!1}),Ic=e=>Vn({queryKey:Ac.reportSummary(e),queryFn:()=>sc.reportSummary(e),retry:!1}),Lc=`asrun-ui.jobs.seen`,Rc=(0,q.createContext)(null),zc=()=>{let e=(0,q.useContext)(Rc);if(!e)throw Error(`JobsProvider is missing`);return e};function Bc({children:e}){let t=ht(),[n,r]=(0,q.useState)(null),[i,a]=(0,q.useState)(!1),[o,s]=(0,q.useState)(!1),[c,l]=(0,q.useState)(null),u=(0,q.useCallback)(e=>{e.kind===`signin`&&t.invalidateQueries({queryKey:Ac.profiles}),e.kind===`ai`&&(t.invalidateQueries({queryKey:Ac.cases}),t.invalidateQueries({queryKey:Ac.caseDetails}),t.invalidateQueries({queryKey:Ac.specs}),t.invalidateQueries({queryKey:Ac.reports}),t.invalidateQueries({queryKey:Ac.profiles})),e.kind===`run`&&(t.invalidateQueries({queryKey:Ac.reports}),t.invalidateQueries({queryKey:Ac.profiles}))},[t]);(0,q.useEffect)(()=>{let e=new EventSource(`/api/events`),n=!1;return e.onopen=()=>{n&&t.invalidateQueries(),n=!0},e.addEventListener(`job`,e=>{let n=JSON.parse(e.data);t.invalidateQueries({queryKey:Ac.jobs}),n.status!==`running`&&u(n)}),e.addEventListener(`files`,e=>{let n=JSON.parse(e.data);n.cases&&(t.invalidateQueries({queryKey:Ac.cases}),t.invalidateQueries({queryKey:Ac.caseDetails})),n.specs&&(t.invalidateQueries({queryKey:Ac.cases}),t.invalidateQueries({queryKey:Ac.specs}))}),()=>e.close()},[t,u]);let d=Fc().data,f=(0,q.useRef)(null);(0,q.useEffect)(()=>{if(!d)return;let e=f.current;if(e)for(let t of d)e.has(t.id)&&t.status!==`running`&&u(t);f.current=new Set(d.filter(e=>e.status===`running`).map(e=>e.id))},[d,u]);let[p,m]=(0,q.useState)(()=>{try{let e=JSON.parse(localStorage.getItem(Lc)??`[]`);return new Set(Array.isArray(e)?e.filter(e=>typeof e==`string`):[])}catch{return new Set}}),h=(0,q.useCallback)(e=>{m(t=>{if(t.has(e))return t;let n=new Set(t).add(e);try{localStorage.setItem(Lc,JSON.stringify([...n].slice(-100)))}catch{}return n})},[]),g=(0,q.useCallback)(e=>{r(e),e&&(a(!0),h(e))},[h]),_=Cc(d,p,g);Sc(i?n:null,h,d);let{pathname:v}=wo();kc(v,_.length);let y=Hn({mutationFn:sc.startJob}),b=(0,q.useCallback)(async e=>{l(null);try{let n=await y.mutateAsync(e);return r(n.id),a(!0),t.invalidateQueries({queryKey:Ac.jobs}),n}catch(e){return l(e.message),a(!0),null}},[y,t]),x=(0,q.useMemo)(()=>({attention:_,markSeen:h,selectedJobId:n,drawerOpen:i,drawerMaximized:o,selectJob:g,setDrawerOpen:a,setDrawerMaximized:s,startJob:b,startError:c,clearStartError:()=>l(null)}),[_,h,n,i,o,g,b,c]);return(0,J.jsx)(Rc.Provider,{value:x,children:e})}var Vc=et(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Hc=et(((e,t)=>{var n=Vc();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Y=rt(et(((e,t)=>{t.exports=Hc()()}))());function Uc(){return Uc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uc.apply(this,arguments)}function Wc(e,t){if(e==null)return{};var n=Gc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gc(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Kc=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Wc(e,[`color`,`size`]);return q.createElement(`svg`,Uc({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),q.createElement(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),q.createElement(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`}))});Kc.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Kc.displayName=`AlertCircle`;function qc(){return qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc.apply(this,arguments)}function Jc(e,t){if(e==null)return{};var n=Yc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yc(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xc=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Jc(e,[`color`,`size`]);return q.createElement(`svg`,qc({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),q.createElement(`polyline`,{points:`12 5 19 12 12 19`}))});Xc.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Xc.displayName=`ArrowRight`;function Zc(){return Zc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zc.apply(this,arguments)}function Qc(e,t){if(e==null)return{};var n=$c(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $c(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var el=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Qc(e,[`color`,`size`]);return q.createElement(`svg`,Zc({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`}),q.createElement(`path`,{d:`M18.63 13A17.89 17.89 0 0 1 18 8`}),q.createElement(`path`,{d:`M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14`}),q.createElement(`path`,{d:`M18 8a6 6 0 0 0-9.33-5`}),q.createElement(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`}))});el.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},el.displayName=`BellOff`;function tl(){return tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(this,arguments)}function nl(e,t){if(e==null)return{};var n=rl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var il=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=nl(e,[`color`,`size`]);return q.createElement(`svg`,tl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9`}),q.createElement(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`}))});il.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},il.displayName=`Bell`;function al(){return al=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(this,arguments)}function ol(e,t){if(e==null)return{};var n=sl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ol(e,[`color`,`size`]);return q.createElement(`svg`,al({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`20 6 9 17 4 12`}))});cl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},cl.displayName=`Check`;function ll(){return ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ll.apply(this,arguments)}function ul(e,t){if(e==null)return{};var n=dl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var fl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ul(e,[`color`,`size`]);return q.createElement(`svg`,ll({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`6 9 12 15 18 9`}))});fl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},fl.displayName=`ChevronDown`;function pl(){return pl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pl.apply(this,arguments)}function ml(e,t){if(e==null)return{};var n=hl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ml(e,[`color`,`size`]);return q.createElement(`svg`,pl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`15 18 9 12 15 6`}))});gl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},gl.displayName=`ChevronLeft`;function _l(){return _l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_l.apply(this,arguments)}function vl(e,t){if(e==null)return{};var n=yl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=vl(e,[`color`,`size`]);return q.createElement(`svg`,_l({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`9 18 15 12 9 6`}))});bl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},bl.displayName=`ChevronRight`;function xl(){return xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(this,arguments)}function Sl(e,t){if(e==null)return{};var n=Cl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Sl(e,[`color`,`size`]);return q.createElement(`svg`,xl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`18 15 12 9 6 15`}))});wl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},wl.displayName=`ChevronUp`;function Tl(){return Tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tl.apply(this,arguments)}function El(e,t){if(e==null)return{};var n=Dl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ol=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=El(e,[`color`,`size`]);return q.createElement(`svg`,Tl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`}),q.createElement(`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,ry:`1`}))});Ol.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Ol.displayName=`Clipboard`;function kl(){return kl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kl.apply(this,arguments)}function Al(e,t){if(e==null)return{};var n=jl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ml=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Al(e,[`color`,`size`]);return q.createElement(`svg`,kl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),q.createElement(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`}))});Ml.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Ml.displayName=`Copy`;function Nl(){return Nl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nl.apply(this,arguments)}function Pl(e,t){if(e==null)return{};var n=Fl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Il=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Pl(e,[`color`,`size`]);return q.createElement(`svg`,Nl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`15 10 20 15 15 20`}),q.createElement(`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`}))});Il.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Il.displayName=`CornerDownRight`;function Ll(){return Ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ll.apply(this,arguments)}function Rl(e,t){if(e==null)return{};var n=zl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Bl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Rl(e,[`color`,`size`]);return q.createElement(`svg`,Ll({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),q.createElement(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`}))});Bl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Bl.displayName=`Edit`;function Vl(){return Vl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(this,arguments)}function Hl(e,t){if(e==null)return{};var n=Ul(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ul(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Wl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Hl(e,[`color`,`size`]);return q.createElement(`svg`,Vl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),q.createElement(`polyline`,{points:`15 3 21 3 21 9`}),q.createElement(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`}))});Wl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Wl.displayName=`ExternalLink`;function Gl(){return Gl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gl.apply(this,arguments)}function Kl(e,t){if(e==null)return{};var n=ql(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ql(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Jl=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Kl(e,[`color`,`size`]);return q.createElement(`svg`,Gl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z`}),q.createElement(`line`,{x1:`16`,y1:`8`,x2:`2`,y2:`22`}),q.createElement(`line`,{x1:`17.5`,y1:`15`,x2:`9`,y2:`15`}))});Jl.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Jl.displayName=`Feather`;function Yl(){return Yl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yl.apply(this,arguments)}function Xl(e,t){if(e==null)return{};var n=Zl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ql=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Xl(e,[`color`,`size`]);return q.createElement(`svg`,Yl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),q.createElement(`polyline`,{points:`14 2 14 8 20 8`}),q.createElement(`line`,{x1:`16`,y1:`13`,x2:`8`,y2:`13`}),q.createElement(`line`,{x1:`16`,y1:`17`,x2:`8`,y2:`17`}),q.createElement(`polyline`,{points:`10 9 9 9 8 9`}))});Ql.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Ql.displayName=`FileText`;function $l(){return $l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$l.apply(this,arguments)}function eu(e,t){if(e==null)return{};var n=tu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=eu(e,[`color`,`size`]);return q.createElement(`svg`,$l({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z`}))});nu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},nu.displayName=`Folder`;function ru(){return ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(this,arguments)}function iu(e,t){if(e==null)return{};var n=au(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function au(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ou=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=iu(e,[`color`,`size`]);return q.createElement(`svg`,ru({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),q.createElement(`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}),q.createElement(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`}))});ou.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},ou.displayName=`HelpCircle`;function su(){return su=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},su.apply(this,arguments)}function cu(e,t){if(e==null)return{};var n=lu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var uu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=cu(e,[`color`,`size`]);return q.createElement(`svg`,su({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),q.createElement(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`}),q.createElement(`polyline`,{points:`21 15 16 10 5 21`}))});uu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},uu.displayName=`Image`;function du(){return du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}function fu(e,t){if(e==null)return{};var n=pu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=fu(e,[`color`,`size`]);return q.createElement(`svg`,du({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`line`,{x1:`8`,y1:`6`,x2:`21`,y2:`6`}),q.createElement(`line`,{x1:`8`,y1:`12`,x2:`21`,y2:`12`}),q.createElement(`line`,{x1:`8`,y1:`18`,x2:`21`,y2:`18`}),q.createElement(`line`,{x1:`3`,y1:`6`,x2:`3.01`,y2:`6`}),q.createElement(`line`,{x1:`3`,y1:`12`,x2:`3.01`,y2:`12`}),q.createElement(`line`,{x1:`3`,y1:`18`,x2:`3.01`,y2:`18`}))});mu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},mu.displayName=`List`;function hu(){return hu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hu.apply(this,arguments)}function gu(e,t){if(e==null)return{};var n=_u(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _u(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=gu(e,[`color`,`size`]);return q.createElement(`svg`,hu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`6`}),q.createElement(`line`,{x1:`12`,y1:`18`,x2:`12`,y2:`22`}),q.createElement(`line`,{x1:`4.93`,y1:`4.93`,x2:`7.76`,y2:`7.76`}),q.createElement(`line`,{x1:`16.24`,y1:`16.24`,x2:`19.07`,y2:`19.07`}),q.createElement(`line`,{x1:`2`,y1:`12`,x2:`6`,y2:`12`}),q.createElement(`line`,{x1:`18`,y1:`12`,x2:`22`,y2:`12`}),q.createElement(`line`,{x1:`4.93`,y1:`19.07`,x2:`7.76`,y2:`16.24`}),q.createElement(`line`,{x1:`16.24`,y1:`7.76`,x2:`19.07`,y2:`4.93`}))});vu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},vu.displayName=`Loader`;function yu(){return yu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yu.apply(this,arguments)}function bu(e,t){if(e==null)return{};var n=xu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Su=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=bu(e,[`color`,`size`]);return q.createElement(`svg`,yu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`}),q.createElement(`polyline`,{points:`10 17 15 12 10 7`}),q.createElement(`line`,{x1:`15`,y1:`12`,x2:`3`,y2:`12`}))});Su.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Su.displayName=`LogIn`;function Cu(){return Cu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cu.apply(this,arguments)}function wu(e,t){if(e==null)return{};var n=Tu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Eu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=wu(e,[`color`,`size`]);return q.createElement(`svg`,Cu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`15 3 21 3 21 9`}),q.createElement(`polyline`,{points:`9 21 3 21 3 15`}),q.createElement(`line`,{x1:`21`,y1:`3`,x2:`14`,y2:`10`}),q.createElement(`line`,{x1:`3`,y1:`21`,x2:`10`,y2:`14`}))});Eu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Eu.displayName=`Maximize2`;function Du(){return Du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Du.apply(this,arguments)}function Ou(e,t){if(e==null)return{};var n=ku(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ku(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Au=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Ou(e,[`color`,`size`]);return q.createElement(`svg`,Du({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`}))});Au.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Au.displayName=`MessageSquare`;function ju(){return ju=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ju.apply(this,arguments)}function Mu(e,t){if(e==null)return{};var n=Nu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Pu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Mu(e,[`color`,`size`]);return q.createElement(`svg`,ju({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`4 14 10 14 10 20`}),q.createElement(`polyline`,{points:`20 10 14 10 14 4`}),q.createElement(`line`,{x1:`14`,y1:`10`,x2:`21`,y2:`3`}),q.createElement(`line`,{x1:`3`,y1:`21`,x2:`10`,y2:`14`}))});Pu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Pu.displayName=`Minimize2`;function Fu(){return Fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fu.apply(this,arguments)}function Iu(e,t){if(e==null)return{};var n=Lu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ru=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Iu(e,[`color`,`size`]);return q.createElement(`svg`,Fu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polygon`,{points:`5 3 19 12 5 21 5 3`}))});Ru.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Ru.displayName=`Play`;function zu(){return zu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zu.apply(this,arguments)}function Bu(e,t){if(e==null)return{};var n=Vu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Bu(e,[`color`,`size`]);return q.createElement(`svg`,zu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),q.createElement(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}))});Hu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Hu.displayName=`Plus`;function Uu(){return Uu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uu.apply(this,arguments)}function Wu(e,t){if(e==null)return{};var n=Gu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ku=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Wu(e,[`color`,`size`]);return q.createElement(`svg`,Uu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`23 4 23 10 17 10`}),q.createElement(`polyline`,{points:`1 20 1 14 7 14`}),q.createElement(`path`,{d:`M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15`}))});Ku.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Ku.displayName=`RefreshCw`;function qu(){return qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qu.apply(this,arguments)}function Ju(e,t){if(e==null)return{};var n=Yu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xu=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Ju(e,[`color`,`size`]);return q.createElement(`svg`,qu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`23 4 23 10 17 10`}),q.createElement(`path`,{d:`M20.49 15a9 9 0 1 1-2.12-9.36L23 10`}))});Xu.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},Xu.displayName=`RotateCw`;function Zu(){return Zu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zu.apply(this,arguments)}function Qu(e,t){if(e==null)return{};var n=$u(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $u(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ed=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Qu(e,[`color`,`size`]);return q.createElement(`svg`,Zu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`circle`,{cx:`11`,cy:`11`,r:`8`}),q.createElement(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`}))});ed.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},ed.displayName=`Search`;function td(){return td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},td.apply(this,arguments)}function nd(e,t){if(e==null)return{};var n=rd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var id=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=nd(e,[`color`,`size`]);return q.createElement(`svg`,td({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`line`,{x1:`22`,y1:`2`,x2:`11`,y2:`13`}),q.createElement(`polygon`,{points:`22 2 15 22 11 13 2 9 22 2`}))});id.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},id.displayName=`Send`;function ad(){return ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ad.apply(this,arguments)}function od(e,t){if(e==null)return{};var n=sd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cd=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=od(e,[`color`,`size`]);return q.createElement(`svg`,ad({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`}))});cd.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},cd.displayName=`Tool`;function ld(){return ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ld.apply(this,arguments)}function ud(e,t){if(e==null)return{};var n=dd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var fd=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ud(e,[`color`,`size`]);return q.createElement(`svg`,ld({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`polyline`,{points:`3 6 5 6 21 6`}),q.createElement(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}),q.createElement(`line`,{x1:`10`,y1:`11`,x2:`10`,y2:`17`}),q.createElement(`line`,{x1:`14`,y1:`11`,x2:`14`,y2:`17`}))});fd.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},fd.displayName=`Trash2`;function pd(){return pd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pd.apply(this,arguments)}function md(e,t){if(e==null)return{};var n=hd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gd=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=md(e,[`color`,`size`]);return q.createElement(`svg`,pd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),q.createElement(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),q.createElement(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`}))});gd.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},gd.displayName=`XCircle`;function _d(){return _d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_d.apply(this,arguments)}function vd(e,t){if(e==null)return{};var n=yd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bd=(0,q.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=vd(e,[`color`,`size`]);return q.createElement(`svg`,_d({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),q.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),q.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`}))});bd.propTypes={color:Y.default.string,size:Y.default.oneOfType([Y.default.string,Y.default.number])},bd.displayName=`X`;var xd=(e,t,n)=>Math.max(t,Math.min(n,e));function Sd(e,t,n){e.preventDefault();let r=e.clientX,i=e.clientY,a=e=>t(e.clientX-r,e.clientY-i),o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o),window.removeEventListener(`pointercancel`,o),n?.()};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o),window.addEventListener(`pointercancel`,o)}function Cd(e,t,n){let[r,i]=(0,q.useState)(()=>{try{let t=localStorage.getItem(e);if(t!==null){let e=JSON.parse(t);if(n(e))return e}}catch{}return t});return[r,(0,q.useCallback)(t=>{i(t);try{localStorage.setItem(e,JSON.stringify(t))}catch{}},[e])]}var wd=e=>typeof e==`string`,Td=e=>typeof e==`boolean`,Ed=e=>typeof e==`number`&&Number.isFinite(e);function Dd(e,t){let[n,r]=(0,q.useState)(e),[i,a]=(0,q.useState)(e);return(0,q.useEffect)(()=>{if(e){r(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>a(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}a(!1);let n=window.setTimeout(()=>r(!1),t);return()=>window.clearTimeout(n)},[e,t]),{mounted:n,shown:i}}function Od({open:e,children:t}){let{mounted:n,shown:r}=Dd(e,200);return n?(0,J.jsx)(`div`,{inert:!e,className:`grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none ${r?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`}`,children:(0,J.jsx)(`div`,{className:`min-h-0 overflow-hidden`,children:t})}):null}var kd=[`claude`,`opencode`],Ad=`claude`,jd={claude:`Claude`,opencode:`OpenCode`},Md=[`explore-case`,`gen-spec`,`heal-spec`],Nd={"explore-case":`Explore case`,"gen-spec":`Generate spec`,"heal-spec":`Heal spec`},Pd={"explore-case":`case`,"gen-spec":`spec`,"heal-spec":`files`},Fd={"explore-case":`Where the agent explores. It only reads; with Attended on, you do the steps that write data.`,"gen-spec":`Where the agent explores and verifies the spec.`,"heal-spec":`Where the failing spec is diagnosed. Only the profiles that are logged in there are run.`},Id=(e,t,n)=>{let{env:r,force:i,attended:a,profiles:o,hints:s,report:c}=n,l=e===`heal-spec`;return`/${e} ${t} ${r}${i&&e===`gen-spec`?` --force`:``}${a&&e===`explore-case`?` --attended`:``}${l&&o?.length?` --profiles ${o.join(`,`)}`:``}${l&&c?` --report ${c}`:``}${l&&s?` --hints ${s}`:``}`},Ld=`mcp__playwright-test__*`;function Rd(e){let t=`Bash(node --import tsx:*)`,n=[`Bash(pnpm case:check:*)`,t],r=[Ld,`Bash(pnpm status:*)`,`Bash(pnpm pdf:render:*)`,...n];if(e===`case`)return[...r,`Edit(/cases/**)`];if(e===`cases-new`)return[...n,`Edit(/cases/**)`];let i=[...r,`Edit(/cases/**)`,`Edit(/tests/**)`,`Bash(pnpm typecheck:*)`,`Bash(pnpm spec:lint:*)`,t,`Bash(pnpm baselines:review:*)`];return e===`spec`?i:[...i,`Bash(pnpm asrun:*)`,`Bash(pnpm heal:evidence:*)`]}var zd=[`Bash(*--allow-writes*)`,`Bash(*ASRUN_ALLOW_WRITES*)`],Bd={claude:[`--output-format`,`stream-json`,`--verbose`],opencode:[`--format`,`json`]};function Vd(e,t,n,r){return e===`opencode`?{file:`opencode`,args:[`run`,`--auto`,...Bd.opencode,...r?[`-s`,r.id]:[],t]}:{file:`claude`,args:[`-p`,t,...Bd.claude,...r?[r.resume?`--resume`:`--session-id`,r.id]:[],...n===`files`||n===`spec`?[`--permission-mode`,`acceptEdits`]:[],`--allowedTools`,...Rd(n),`--disallowedTools`,...zd]}}var Hd=({file:e,args:t})=>[e,...t.map(e=>/^[\w@=,.:/-]+$/.test(e)?e:JSON.stringify(e))].join(` `),Ud=`Non-interactive run: nobody can answer questions, so do not stop to ask. Write open questions into the case file as the skill describes and end with the RESULT: line.`,Wd=`Attended run: a person is at the machine and the browser window is visible, so hand steps that write data or need a choice to them and wait, as the skill describes. Nobody can answer questions in the chat, so write open questions into the case file as the skill describes and end with the RESULT: line.`;function Gd(e,t,n){let r=Id(e,t,n);return e===`heal-spec`?r:e===`explore-case`&&n.attended?`${r} ${Wd}`:`${r} ${Ud}`}function Kd(e,t,n,r,i){return Vd(e,Gd(t,n,r),Pd[t],i)}function qd(e,t,n,r,i){return Hd(Kd(e,t,n,r,i))}var Jd=8e3,Yd=4e3,Xd=`Accept the suggestion of every open question: delete its TODO block and keep the sentence above it as confirmed text.`,Zd=1e5,Qd=e=>`/make-case ${e} Non-interactive run: nobody can answer questions, so do not stop to ask. Do not open a browser or explore pages. Write the suggested default of every gap as a normal sentence and put a TODO block with an empty Answer: line under it, as open-questions.md describes (every marker starts with its emoji). Never overwrite an existing case: choose a new id instead. Put the cases of one area in a group folder (cases/<group>/<name>.md, id <group>/<name>), reusing an existing folder when it fits. Write the cases, run pnpm case:check, and list the open questions in your final report.`,$d=(e,t)=>Vd(e,Qd(t),`cases-new`),ef=(e,t)=>Hd($d(e,t));function tf(e){let[t,n]=(0,q.useState)([]),[r,i]=(0,q.useState)(null),[a,o]=(0,q.useState)(!1),s=(0,q.useRef)(-1);return(0,q.useEffect)(()=>{if(n([]),i(null),s.current=-1,!e)return;let t=new EventSource(`/api/jobs/${e}/events`);return t.onopen=()=>o(!0),t.onerror=()=>o(!1),t.addEventListener(`chunk`,e=>{let t=JSON.parse(e.data);t.seq<=s.current||(s.current=t.seq,n(e=>[...e,t]))}),t.addEventListener(`status`,e=>{let n=JSON.parse(e.data);i(n),n.status!==`running`&&t.close()}),()=>t.close()},[e]),{chunks:t,info:r,connected:a}}var nf={green:`bg-jade-bg text-jade-btn ring-jade-deep/30`,red:`bg-seal-bg text-seal-deep ring-seal/35`,amber:`bg-gold-bg text-gold-deep ring-gold-deep/30`,blue:`bg-qing-bg text-qing-deep ring-qing/40`,gray:`bg-warm text-ink-2 ring-line-mid`};function rf({tone:e,children:t}){return(0,J.jsx)(`span`,{className:`inline-flex items-center rounded-sm px-2 py-0.5 text-xs font-medium ring-1 ring-inset ${nf[e]}`,children:t})}var af=e=>{let t=e??`production`;return`${t===`production`?`bg-jiang`:t===`staging`?`bg-cheng`:`bg-gold-deep`} text-white`};function of({env:e}){return(0,J.jsx)(`span`,{className:`inline-flex items-center rounded-sm px-2 py-0.5 text-xs font-bold tracking-wider ${af(e)}`,children:(e??`production`).toUpperCase()})}function sf({title:e}){return(0,J.jsx)(`span`,{title:e,className:`inline-flex items-center rounded-sm bg-seal px-2 py-0.5 text-xs font-bold tracking-wider text-white`,children:`WRITES`})}var cf={ok:{tone:`green`,label:`Logged in`},expired:{tone:`red`,label:`Session expired`},missing:{tone:`red`,label:`Not logged in`},unverified:{tone:`amber`,label:`Saved, not verified`},error:{tone:`amber`,label:`Check failed`}},lf=({status:e})=>(0,J.jsx)(rf,{tone:cf[e].tone,children:cf[e].label}),uf={ok:{tone:`green`,label:`YES`},expired:{tone:`red`,label:`EXPIRED`},missing:{tone:`red`,label:`NO`},unverified:{tone:`amber`,label:`UNKNOWN`},error:{tone:`amber`,label:`ERROR`}},df=({status:e})=>(0,J.jsx)(rf,{tone:uf[e].tone,children:(0,J.jsx)(`span`,{className:`tracking-wider`,children:uf[e].label})}),ff={running:{tone:`blue`,label:`Running`},succeeded:{tone:`green`,label:`Succeeded`},failed:{tone:`red`,label:`Failed`},cancelled:{tone:`gray`,label:`Cancelled`}},pf=({status:e,needsInput:t=!1,awaitingUser:n=!1,answered:r=!1})=>e===`succeeded`&&t&&r?(0,J.jsx)(rf,{tone:`gray`,children:`Answered`}):e===`succeeded`&&t?(0,J.jsx)(rf,{tone:`amber`,children:`Needs your input`}):e===`running`&&n?(0,J.jsx)(rf,{tone:`amber`,children:`Your turn`}):(0,J.jsx)(rf,{tone:ff[e].tone,children:ff[e].label}),mf=(e=`secondary`)=>[`inline-flex items-center justify-center rounded px-3 py-1.5 text-sm font-medium transition duration-150`,`disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-none disabled:hover:translate-y-0`,e===`primary`&&`bg-theme-btn text-white shadow-btn hover:-translate-y-px hover:shadow-btn-lift hover:brightness-110`,e===`success`&&`bg-jade-btn text-white shadow-btn hover:-translate-y-px hover:shadow-btn-lift hover:brightness-110`,e===`stop`&&`bg-seal text-white shadow-btn hover:-translate-y-px hover:shadow-btn-lift hover:brightness-110`,e===`info`&&`bg-qing-bg text-qing-deep ring-1 ring-qing/50 hover:-translate-y-px hover:brightness-95 hover:shadow-paper`,e===`secondary`&&`bg-card text-ink ring-1 ring-line-mid hover:-translate-y-px hover:bg-warm hover:shadow-paper`,e===`danger`&&`bg-card text-seal-deep ring-1 ring-seal/40 hover:bg-seal-bg`].filter(Boolean).join(` `),hf=`rounded border border-line-mid bg-white px-2 py-1.5 text-sm text-ink placeholder:text-ink-3 focus:border-theme focus:ring-2 focus:ring-theme/25 focus:outline-none`,gf=`border-line-mid bg-white text-ink focus:border-theme focus:ring-theme/25`,_f=`border-seal bg-seal-bg text-seal-deep focus:border-seal focus:ring-seal/25`;function vf({invalid:e=!1,tone:t,dot:n,mono:r=!1,className:i=``,children:a,...o}){return(0,J.jsxs)(`span`,{className:`relative inline-block ${i}`,children:[n?(0,J.jsx)(`span`,{className:`pointer-events-none absolute top-1/2 left-3 h-2 w-2 -translate-y-1/2 rounded-full ${n}`,"aria-hidden":`true`}):null,(0,J.jsx)(`select`,{"aria-invalid":e||void 0,...o,className:[`h-8 w-full cursor-pointer appearance-none rounded border py-0 pr-8 text-sm focus:ring-2 focus:outline-none`,`disabled:cursor-not-allowed disabled:opacity-50`,n?`pl-7 font-medium`:`pl-2`,r&&`font-mono`,t??(e?_f:gf)].filter(Boolean).join(` `),children:a}),(0,J.jsx)(fl,{size:14,className:`pointer-events-none absolute top-1/2 right-2.5 -translate-y-1/2 ${e?`text-seal-deep`:`text-ink-2`}`,"aria-hidden":`true`})]})}function yf(e){return e?new Date(e).toLocaleString():`-`}var bf=e=>`/baseline-files?case=${encodeURIComponent(e.caseId)}&file=${encodeURIComponent(e.file)}&v=${Math.round(e.mtimeMs)}`;function xf({caseIds:e,running:t}){let n=zn({queries:e.map(e=>({queryKey:[`baselines`,e,t],queryFn:()=>sc.baselines(e),enabled:!t}))});return t?null:(0,J.jsxs)(`div`,{className:`flex max-h-[60%] shrink-0 flex-col gap-3 overflow-auto border-t-2 border-gold-deep/40 bg-gold-bg px-3 py-3`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm font-medium text-gold-deep`,children:[(0,J.jsx)(uu,{size:16,"aria-hidden":`true`}),`Baselines rewritten by this run: check each image against what it must show`]}),n.map((t,n)=>{let r=e[n],i=[...t.data??[]].sort((e,t)=>Number(t.changed)-Number(e.changed)||e.file.localeCompare(t.file));return(0,J.jsxs)(`section`,{className:`space-y-2`,children:[(0,J.jsx)(`h3`,{className:`font-mono text-xs font-bold text-ink`,children:r}),t.isPending?(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Loading the images...`}):null,t.isError?(0,J.jsx)(`p`,{className:`text-xs text-seal-deep`,children:t.error.message}):null,t.data&&i.length===0?(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:`This case has no baseline images (its spec has no screenshot check, or it did not get that far).`}):null,(0,J.jsx)(`ul`,{className:`space-y-2`,children:i.map(e=>(0,J.jsxs)(`li`,{className:`flex flex-wrap gap-3 rounded-sm border border-line-mid bg-card p-2`,children:[(0,J.jsx)(`a`,{href:bf(e),target:`_blank`,rel:`noreferrer`,title:`Open the image at full size`,children:(0,J.jsx)(`img`,{src:bf(e),alt:`Baseline ${e.file}`,className:`max-h-32 max-w-[16rem] rounded-sm border border-line-mid bg-white object-contain`})}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1 text-xs`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`font-mono text-ink-2`,children:e.file}),e.env?(0,J.jsx)(of,{env:e.env}):null,e.changed?(0,J.jsx)(rf,{tone:`amber`,children:`New or changed`}):(0,J.jsx)(rf,{tone:`gray`,children:`Unchanged`})]}),e.card?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`p`,{children:[(0,J.jsxs)(`b`,{children:[`Must show (`,e.card.id,` `,e.card.name,`):`]}),` `,e.card.what??`(the card has no "What")`]}),e.card.where?(0,J.jsxs)(`p`,{className:`text-ink-2`,children:[`Where: `,e.card.where]}):null,e.card.not?(0,J.jsxs)(`p`,{className:`text-seal-deep`,children:[`Must not show: `,e.card.not]}):null]}):null,e.problem?(0,J.jsx)(`p`,{className:`text-seal-deep`,children:e.problem}):null]})]},e.file))})]},r)}),(0,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`A wrong image is not kept by itself: delete it, fix the spec (the check must look at the element the card names) and run again with `,(0,J.jsx)(`b`,{children:`Update baselines`}),`.`]})]})}var Sf=rt(et(((e,t)=>{var n=[[{color:`0, 0, 0`,class:`ansi-black`},{color:`187, 0, 0`,class:`ansi-red`},{color:`0, 187, 0`,class:`ansi-green`},{color:`187, 187, 0`,class:`ansi-yellow`},{color:`0, 0, 187`,class:`ansi-blue`},{color:`187, 0, 187`,class:`ansi-magenta`},{color:`0, 187, 187`,class:`ansi-cyan`},{color:`255,255,255`,class:`ansi-white`}],[{color:`85, 85, 85`,class:`ansi-bright-black`},{color:`255, 85, 85`,class:`ansi-bright-red`},{color:`0, 255, 0`,class:`ansi-bright-green`},{color:`255, 255, 85`,class:`ansi-bright-yellow`},{color:`85, 85, 255`,class:`ansi-bright-blue`},{color:`255, 85, 255`,class:`ansi-bright-magenta`},{color:`85, 255, 255`,class:`ansi-bright-cyan`},{color:`255, 255, 255`,class:`ansi-bright-white`}]],r=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm;t.exports=class e{static escapeForHtml(t){return new e().escapeForHtml(t)}static linkify(t){return new e().linkify(t)}static ansiToHtml(t,n){return new e().ansiToHtml(t,n)}static ansiToJson(t,n){return new e().ansiToJson(t,n)}static ansiToText(t){return new e().ansiToText(t)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let e=0;e<2;++e)for(let t=0;t<8;++t)this.PALETTE_COLORS.push(n[e][t].color);let e=[0,95,135,175,215,255],t=(t,n,r)=>e[t]+`, `+e[n]+`, `+e[r];for(let e=0;e<6;++e)for(let n=0;n<6;++n)for(let r=0;r<6;++r)this.PALETTE_COLORS.push(t(e,n,r));let r=8;for(let e=0;e<24;++e,r+=10)this.PALETTE_COLORS.push(r+`, `+r+`, `+r)}escapeForHtml(e){return e.replace(/[&<>\"]/gm,e=>e==`&`?`&`:e==`"`?`"`:e==`<`?`<`:e==`>`?`>`:``)}linkify(e){return e.replace(r,e=>`<a href="${e}">${e}</a>`)}ansiToHtml(e,t){return this.process(e,t,!0)}ansiToJson(e,t){return t||={},t.json=!0,t.clearLine=!1,this.process(e,t,!0)}ansiToText(e){return this.process(e,{},!1)}process(e,t,n){let r=this,i=e.split(/\033\[/),a=i.shift();t??={},t.clearLine=/\r/.test(e);let o=i.map(e=>this.processChunk(e,t,n));if(t&&t.json){let e=r.processChunkJson(``);return e.content=a,e.clearLine=t.clearLine,o.unshift(e),t.remove_empty&&(o=o.filter(e=>!e.isEmpty())),o}return o.unshift(a),o.join(``)}processChunkJson(e,t,r){t=t===void 0?{}:t;let i=t.use_classes=t.use_classes!==void 0&&t.use_classes,a=t.key=i?`class`:`color`,o={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:t.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!o.content},s=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!s)return o;o.content=s[4];let c=s[2].split(`;`);if(s[1]!==``||s[3]!==`m`||!r)return o;let l=this;for(;c.length>0;){let e=c.shift(),t=parseInt(e);if(isNaN(t)||t===0)l.fg=l.bg=null,l.decorations=[];else if(t===1)l.decorations.push(`bold`);else if(t===2)l.decorations.push(`dim`);else if(t===3)l.decorations.push(`italic`);else if(t===4)l.decorations.push(`underline`);else if(t===5)l.decorations.push(`blink`);else if(t===7)l.decorations.push(`reverse`);else if(t===8)l.decorations.push(`hidden`);else if(t===9)l.decorations.push(`strikethrough`);else if(t===21)l.removeDecoration(`bold`);else if(t===22)l.removeDecoration(`bold`),l.removeDecoration(`dim`);else if(t===23)l.removeDecoration(`italic`);else if(t===24)l.removeDecoration(`underline`);else if(t===25)l.removeDecoration(`blink`);else if(t===27)l.removeDecoration(`reverse`);else if(t===28)l.removeDecoration(`hidden`);else if(t===29)l.removeDecoration(`strikethrough`);else if(t===39)l.fg=null;else if(t===49)l.bg=null;else if(t>=30&&t<38)l.fg=n[0][t%10][a];else if(t>=90&&t<98)l.fg=n[1][t%10][a];else if(t>=40&&t<48)l.bg=n[0][t%10][a];else if(t>=100&&t<108)l.bg=n[1][t%10][a];else if(t===38||t===48){let e=t===38;if(c.length>=1){let t=c.shift();if(t===`5`&&c.length>=1){let t=parseInt(c.shift());if(t>=0&&t<=255){if(!i)this.PALETTE_COLORS||l.setupPalette(),e?l.fg=this.PALETTE_COLORS[t]:l.bg=this.PALETTE_COLORS[t];else{let r=t>=16?`ansi-palette-`+t:n[+(t>7)][t%8].class;e?l.fg=r:l.bg=r}}}else if(t===`2`&&c.length>=3){let t=parseInt(c.shift()),n=parseInt(c.shift()),r=parseInt(c.shift());if(t>=0&&t<=255&&n>=0&&n<=255&&r>=0&&r<=255){let a=t+`, `+n+`, `+r;i?e?(l.fg=`ansi-truecolor`,l.fg_truecolor=a):(l.bg=`ansi-truecolor`,l.bg_truecolor=a):e?l.fg=a:l.bg=a}}}}}return l.fg===null&&l.bg===null&&l.decorations.length===0||(o.fg=l.fg,o.bg=l.bg,o.fg_truecolor=l.fg_truecolor,o.bg_truecolor=l.bg_truecolor,o.decorations=l.decorations,o.decoration=l.decorations.slice(-1).pop()||null,o.was_processed=!0),o}processChunk(e,t,r){t||={};let i=this.processChunkJson(e,t,r),a=t.use_classes;if(i.decorations=i.decorations.filter(e=>{if(e===`reverse`){i.fg||=n[0][7][a?`class`:`color`],i.bg||=n[0][0][a?`class`:`color`];let e=i.fg;i.fg=i.bg,i.bg=e;let t=i.fg_truecolor;return i.fg_truecolor=i.bg_truecolor,i.bg_truecolor=t,i.isInverted=!0,!1}return!0}),t.json)return i;if(i.isEmpty())return``;if(!i.was_processed)return i.content;let o=[],s=[],c=[],l={},u=e=>{let t=[],n;for(n in e)e.hasOwnProperty(n)&&t.push(`data-`+n+`="`+this.escapeForHtml(e[n])+`"`);return t.length>0?` `+t.join(` `):``};return i.isInverted&&(l[`ansi-is-inverted`]=`true`),i.fg&&(a?(o.push(i.fg+`-fg`),i.fg_truecolor!==null&&(l[`ansi-truecolor-fg`]=i.fg_truecolor,i.fg_truecolor=null)):o.push(`color:rgb(`+i.fg+`)`)),i.bg&&(a?(o.push(i.bg+`-bg`),i.bg_truecolor!==null&&(l[`ansi-truecolor-bg`]=i.bg_truecolor,i.bg_truecolor=null)):o.push(`background-color:rgb(`+i.bg+`)`)),i.decorations.forEach(e=>{a?s.push(`ansi-`+e):e===`bold`?s.push(`font-weight:bold`):e===`dim`?s.push(`opacity:0.5`):e===`italic`?s.push(`font-style:italic`):e===`hidden`?s.push(`visibility:hidden`):e===`strikethrough`?c.push(`line-through`):c.push(e)}),c.length&&s.push(`text-decoration:`+c.join(` `)),a?`<span class="`+o.concat(s).join(` `)+`"`+u(l)+`>`+i.content+`</span>`:`<span style="`+o.concat(s).join(`;`)+`"`+u(l)+`>`+i.content+`</span>`}removeDecoration(e){let t=this.decorations.indexOf(e);t>=0&&this.decorations.splice(t,1)}}}))(),1),Cf=(0,q.memo)(function({chunk:e}){let t=Sf.default.ansiToJson(e.data,{remove_empty:!0,use_classes:!1}),n=e.stream===`stderr`?`text-seal-soft`:e.stream===`system`?`text-gold`:``;return(0,J.jsx)(`span`,{className:n,children:t.map((e,t)=>{let n={};return e.fg&&(n.color=`rgb(${e.fg})`),e.bg&&(n.backgroundColor=`rgb(${e.bg})`),e.decoration===`bold`&&(n.fontWeight=700),e.decoration===`dim`&&(n.opacity=.6),(0,J.jsx)(`span`,{style:n,children:e.content},t)})})});function wf(e){return Sf.default.ansiToText(e.map(e=>e.data).join(``))}function Tf({chunks:e,wrap:t=!0,className:n=``}){let r=(0,q.useRef)(null),i=(0,q.useRef)(!0);return(0,q.useEffect)(()=>{let e=r.current;e&&i.current&&(e.scrollTop=e.scrollHeight)},[e]),(0,J.jsxs)(`pre`,{ref:r,onScroll:e=>{let t=e.currentTarget;i.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},className:`paper-grain overflow-auto bg-dai-deep p-3 font-mono text-xs leading-5 text-paper ${t?`break-words whitespace-pre-wrap`:`whitespace-pre`} ${n}`,children:[e.length===0?(0,J.jsx)(`span`,{className:`text-ink-3`,children:`Waiting for output...`}):null,e.map(e=>(0,J.jsx)(Cf,{chunk:e},e.seq))]})}function Ef({text:e,label:t,title:n}){let[r,i]=(0,q.useState)(!1);return(0,J.jsxs)(`button`,{className:`${mf()} shrink-0 gap-1.5`,title:n,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{i(!0),setTimeout(()=>i(!1),1200)})},children:[r?(0,J.jsx)(cl,{size:14,"aria-hidden":`true`}):(0,J.jsx)(Ml,{size:14,"aria-hidden":`true`}),r?`Copied`:t]})}var Df=/TODO \[(blocking|non-blocking)\]/,Of=/^(?:[-*+]|\d+\.)\s+/;function kf(e){let t=e.split(`
|
|
11
|
-
`),n=e=>e.length-e.trimStart().length,r=[];return t.forEach((e,i)=>{if(!Df.test(e))return;let a=null;for(let r=i-1;r>=0&&t[r].trim()!==``;r--)if(n(t[r])<n(e)){a=t[r].trim().replace(Of,``);break}r.push({question:e.trim().replace(Of,``),suggestion:a,blocking:/TODO \[blocking\]/.test(e)})}),r}function Af({job:e,openJob:t}){let n=e.caseId??``,{startJob:r}=zc(),i=Fc().data,[a,o]=(0,q.useState)(``),[s,c]=(0,q.useState)(!1),l=Vn({queryKey:Ac.case(n),queryFn:()=>sc.case(n),enabled:n!==``}),u=(0,q.useMemo)(()=>kf(l.data?.content??``),[l.data?.content]),d=u.filter(e=>e.blocking),f=i?cc(i,e.id):void 0;if(f)return(0,J.jsxs)(`div`,{className:`flex items-center gap-3 border-t border-line-mid bg-warm px-3 py-2 text-xs text-ink-2`,children:[(0,J.jsxs)(`span`,{children:[`Answers were sent in job `,(0,J.jsx)(`code`,{children:f.id}),` (`,f.status,`).`]}),(0,J.jsxs)(`button`,{className:`${mf(`primary`)} ml-auto shrink-0 gap-1.5`,onClick:()=>t(f.id),children:[`Open that job`,(0,J.jsx)(Xc,{size:14,"aria-hidden":`true`})]})]});let p=async n=>{c(!0);let i=await r({action:`continue`,jobId:e.id,reply:n});c(!1),i&&(o(``),t(i.id))};return(0,J.jsxs)(`div`,{className:`flex max-h-[60%] shrink-0 flex-col gap-2 overflow-auto border-t-2 border-gold-deep/40 bg-gold-bg px-3 py-3`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm font-medium text-gold-deep`,children:[(0,J.jsx)(Au,{size:16,"aria-hidden":`true`}),`The agent needs your answers`,(0,J.jsxs)(rf,{tone:`amber`,children:[d.length,` blocking`]}),(0,J.jsxs)(rf,{tone:`gray`,children:[u.length-d.length,` non-blocking`]}),(0,J.jsx)(Ks,{to:`/cases/${n}`,className:`ml-auto text-xs font-normal text-ink-2 underline hover:text-ink`,title:`The questions are written into the case file as TODO blocks. Delete a block to accept the sentence above it, or write your own answer after Answer:.`,children:`Open the case`})]}),d.length>0?(0,J.jsx)(`ul`,{className:`list-disc space-y-1 pl-5 text-xs text-ink`,children:d.map(e=>(0,J.jsxs)(`li`,{children:[e.question,e.suggestion?(0,J.jsxs)(`span`,{className:`block text-ink-2`,children:[`Deleting it confirms: `,e.suggestion]}):null]},`${e.suggestion}|${e.question}`))}):(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:l.isPending?`Loading the questions...`:`No blocking question is left in the case file.`}),(0,J.jsx)(`textarea`,{value:a,onChange:e=>o(e.target.value),maxLength:Yd,rows:3,spellCheck:!1,placeholder:`Your answers, in your own words. The agent writes them into the case file and goes on.`,"aria-label":`Your answers to the agent's questions`,className:`${hf} w-full resize-y`}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(`button`,{className:`${mf(`primary`)} gap-1.5`,disabled:s||a.trim()===``,onClick:()=>void p(a),title:`Continue the same conversation with the same permissions`,children:`Send answers and continue`}),(0,J.jsx)(`button`,{className:mf(),disabled:s,onClick:()=>void p(Xd),title:`The agent keeps the sentence above every TODO block as confirmed text and removes the blocks`,children:`Use the suggested defaults`}),(0,J.jsxs)(`span`,{className:`ml-auto text-xs text-ink-3`,children:[a.length,` / `,Yd]})]})]})}function jf({caseId:e}){return(0,J.jsxs)(`div`,{className:`flex items-center gap-3 border-t border-line-mid bg-warm px-3 py-2 text-xs text-ink-2`,children:[(0,J.jsxs)(`span`,{children:[`Healing is done. Regenerate the spec of this case so it matches the healed case: choose `,(0,J.jsx)(`b`,{children:`Generate spec`}),` on the case page.`]}),(0,J.jsxs)(Ks,{to:`/cases/${e}?ai=gen-spec`,className:`${mf(`primary`)} ml-auto shrink-0 gap-1.5`,children:[`Open the case`,(0,J.jsx)(Xc,{size:14,"aria-hidden":`true`})]})]})}function Mf({job:e,showOpenInTab:t=!1,openJob:n}){let r=tf(e.id),i=Fc().data,a=Pc().data,o=!!(i&&cc(i,e.id)),s=r.info??e,c=Hn({mutationFn:()=>sc.cancelJob(e.id)}),l=Hn({mutationFn:t=>sc.sendInput(e.id,t)}),[u,d]=(0,q.useState)(!1),[f,p]=Cd(`asrun-ui.jobs.wrap`,!0,Td),m=s.status===`running`,h=s.kind===`run`&&s.reportId&&!m?[s.reportId,`${s.reportId}-baselines`].find(e=>a?.some(t=>t.id===e)):void 0;return(0,J.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,J.jsxs)(`div`,{className:`max-h-[45%] shrink-0 overflow-auto`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-mid bg-warm px-3 py-2`,children:[(0,J.jsx)(pf,{status:s.status,needsInput:s.resultState===`needs-input`,awaitingUser:!!s.awaitingUser,answered:o}),s.continuesJobId?(0,J.jsxs)(`button`,{className:`inline-flex items-center gap-1 text-xs text-ink-2 underline hover:text-ink`,onClick:()=>n(s.continuesJobId),title:`This run goes on with the conversation of an earlier run`,children:[(0,J.jsx)(Il,{size:12,"aria-hidden":`true`}),`Continues job `,s.continuesJobId]}):null,(0,J.jsx)(`span`,{className:`text-xs text-ink-2`,children:s.exitCode===null?s.signal?`signal ${s.signal}`:``:`exit code ${s.exitCode}`}),m&&!r.connected?(0,J.jsx)(`span`,{className:`text-xs text-gold-deep`,children:`reconnecting...`}):null,(0,J.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center gap-2`,children:[(0,J.jsxs)(`button`,{className:`${mf()} shrink-0`,"aria-pressed":f,title:`Wrap long lines, or scroll them sideways`,onClick:()=>p(!f),children:[`Wrap lines: `,f?`on`:`off`]}),(0,J.jsx)(Ef,{text:wf(r.chunks),label:`Copy log`,title:`Copy the output without colors`}),h?(0,J.jsxs)(`a`,{className:`${mf()} gap-1.5`,href:`/reports/${h}`,title:`Open the report of this run`,children:[(0,J.jsx)(Ql,{size:14,"aria-hidden":`true`}),`Go to the report`]}):null,t?(0,J.jsxs)(`a`,{className:`${mf()} gap-1.5`,href:`/jobs/${e.id}`,target:`_blank`,rel:`noreferrer`,title:`Open this job in its own tab`,children:[(0,J.jsx)(Wl,{size:14,"aria-hidden":`true`}),`Open in new tab`]}):null,m&&s.kind===`signin`?(0,J.jsx)(`button`,{className:mf(`primary`),disabled:l.isPending,onClick:()=>l.mutate(`
|
|
12
|
-
`),title:`Press this after you logged in in the browser window that opened`,children:`I've logged in, save the session`}):null,m?(0,J.jsx)(`button`,{className:mf(`danger`),disabled:c.isPending,onClick:()=>c.mutate(),children:`Cancel`}):null]})]}),(0,J.jsxs)(`div`,{className:`flex items-start gap-2 border-b border-line-mid bg-warm px-3 py-1.5`,children:[(0,J.jsx)(`button`,{className:`min-w-0 flex-1 text-left`,onClick:()=>d(!u),title:u?`Show the command on one line`:`Show the whole command`,children:(0,J.jsx)(`code`,{className:`block text-xs text-ink ${u?`max-h-24 overflow-auto break-all whitespace-pre-wrap`:`truncate`}`,children:s.command})}),(0,J.jsx)(Ef,{text:s.command,label:`Copy command`})]}),m&&s.kind===`signin`?(0,J.jsx)(`p`,{className:`border-b border-gold/50 bg-gold-bg px-3 py-2 text-xs text-warn-ink`,children:`A browser window opened on your machine. Log in there (including 2FA), wait for the logged-in page, then click "I've logged in, save the session".`}):null]}),m&&s.awaitingUser?(0,J.jsxs)(`p`,{className:`border-b border-gold/50 bg-gold-bg px-3 py-2 text-xs text-warn-ink`,children:[(0,J.jsx)(`b`,{children:`Your turn in the browser window:`}),` `,s.awaitingUser.message??`do the step`,`. Press Done on the card (bottom-left of the page) when you finish.`]}):null,(0,J.jsx)(Tf,{chunks:r.chunks,wrap:f,className:`min-h-0 flex-1`}),s.kind===`run`&&s.baselineCases&&s.baselineCases.length>0?(0,J.jsx)(xf,{caseIds:s.baselineCases,running:m}):null,s.status===`succeeded`&&s.resultState===`needs-input`?(0,J.jsx)(Af,{job:s,openJob:n}):null,s.status===`succeeded`&&s.aiCommand===`heal-spec`&&s.caseId?(0,J.jsx)(jf,{caseId:s.caseId}):null]})}var Nf=360,Pf=160,Ff=256,If=140,Lf=640,Rf=6,zf=28,Bf=140,Vf=()=>Math.max(Pf,window.innerHeight-Bf);function Hf(){let{attention:e,drawerOpen:t,setDrawerOpen:n,drawerMaximized:r,setDrawerMaximized:i,selectedJobId:a,selectJob:o,startError:s,clearStartError:c}=zc(),l=Fc(),[u,d]=Cd(`asrun-ui.jobs.height`,Nf,Ed),[f,p]=Cd(`asrun-ui.jobs.list-width`,Ff,Ed),[m,h]=Cd(`asrun-ui.jobs.list-hidden`,!1,Td),[g,_]=(0,q.useState)(!1),v=l.data??[],y=v.find(e=>e.id===a)??null,b=v.filter(e=>e.status===`running`).length,x=t&&r;(0,q.useEffect)(()=>{if(!x)return;let e=e=>{e.key===`Escape`&&i(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x,i]);let S=Dd(t,200),C=Math.min(u,Vf()),w=g?``:`transition-[flex-basis,max-height,width,opacity] duration-200 ease-out motion-reduce:transition-none`;return(0,J.jsxs)(`div`,{className:`relative flex flex-col border-t-2 border-ink bg-card shadow-[0_-6px_16px_-8px_color-mix(in_srgb,var(--theme)_40%,transparent)] transition-[flex-grow] duration-200 ease-out motion-reduce:transition-none ${x?`min-h-0 grow`:`shrink-0 grow-0`}`,children:[(0,J.jsxs)(`div`,{className:`relative flex items-center bg-dai-deep text-white`,children:[(0,J.jsxs)(`button`,{className:`group flex flex-1 cursor-pointer items-center gap-3 px-4 py-2 text-left text-sm transition-colors hover:bg-white/10`,onClick:()=>n(!t),"aria-expanded":t,title:t?`Collapse the jobs drawer`:`Expand the jobs drawer`,children:[(0,J.jsx)(`span`,{className:`eyebrow font-bold`,children:`Jobs`}),b>0?(0,J.jsxs)(`span`,{className:`font-medium text-qing-bg`,children:[b,` running`]}):(0,J.jsx)(`span`,{className:`text-white/70`,children:`idle`}),e.length>0?(0,J.jsxs)(`span`,{className:`rounded-sm bg-gold-bg px-2 py-0.5 text-xs font-bold text-gold-deep`,children:[e.length,` waiting for you`]}):null,(0,J.jsx)(`span`,{className:`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,J.jsx)(wl,{size:16,className:`transition-transform duration-200 motion-reduce:transition-none ${t?`rotate-180`:``}`})})]}),(0,J.jsx)(`span`,{className:`absolute inset-y-0 right-12 my-auto h-fit transition-opacity duration-200 motion-reduce:transition-none ${t?`opacity-100`:`invisible opacity-0`}`,children:(0,J.jsx)(`button`,{className:`${mf(`info`)} shrink-0 gap-1.5`,onClick:()=>i(!r),tabIndex:t?0:-1,title:r?`Restore the drawer (Esc)`:`Fill the screen below the top bar`,children:r?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Pu,{size:14,"aria-hidden":`true`}),`Restore`]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Eu,{size:14,"aria-hidden":`true`}),`Full screen`]})})})]}),S.mounted?(0,J.jsxs)(`div`,{inert:!t,className:`flex min-h-0 grow flex-col overflow-hidden ${w}`,style:{flexBasis:S.shown?C:0,maxHeight:x?`100vh`:`calc(100vh - ${Bf}px)`},children:[x?null:(0,J.jsx)(`div`,{role:`separator`,"aria-orientation":`horizontal`,title:`Drag to resize, double-click to switch between the default and the largest size`,className:`group flex h-2.5 shrink-0 cursor-row-resize items-center justify-center bg-line-mid transition-colors hover:bg-theme`,onPointerDown:e=>{let t=Math.min(u,Vf());_(!0),Sd(e,(e,n)=>d(xd(t-n,Pf,Vf())),()=>_(!1))},onDoubleClick:()=>d(u>=Vf()-1?Nf:Vf()),children:(0,J.jsx)(`span`,{className:`h-0.5 w-10 rounded-full bg-ink-3 group-hover:bg-white`})}),s?(0,J.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,J.jsx)(`span`,{children:s}),(0,J.jsx)(`button`,{className:`ml-auto text-xs underline`,onClick:c,children:`dismiss`})]}):null,(0,J.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,J.jsxs)(`div`,{className:`relative shrink-0 overflow-hidden ${w}`,style:{width:m?zf:f+Rf},children:[(0,J.jsxs)(`div`,{inert:m,className:`flex h-full ${w} ${m?`opacity-0`:`opacity-100`}`,style:{width:f+Rf},children:[(0,J.jsxs)(`div`,{className:`flex shrink-0 flex-col`,style:{width:f},children:[(0,J.jsxs)(`div`,{className:`flex items-center border-b border-line-mid px-3 py-1 text-xs text-ink-2`,children:[(0,J.jsxs)(`span`,{children:[v.length,` jobs`]}),(0,J.jsx)(`button`,{className:`ml-auto rounded-sm px-1 py-0.5 hover:bg-warm hover:text-ink`,onClick:()=>h(!0),title:`Hide the job list`,"aria-label":`Hide the job list`,children:(0,J.jsx)(gl,{size:14,"aria-hidden":`true`})})]}),(0,J.jsxs)(`ul`,{className:`min-h-0 flex-1 overflow-auto`,children:[v.length===0?(0,J.jsx)(`li`,{className:`p-3 text-sm text-ink-2`,children:`No jobs yet.`}):null,v.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsxs)(`button`,{onClick:()=>o(e.id),className:`block w-full border-b border-line px-3 py-2 text-left hover:bg-warm ${e.id===a?`bg-theme-bg`:``}`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(pf,{status:e.status,needsInput:e.resultState===`needs-input`,awaitingUser:!!e.awaitingUser,answered:!!cc(v,e.id)}),e.continuesJobId?(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-xs text-ink-2`,title:`Continues job ${e.continuesJobId}`,children:[(0,J.jsx)(Il,{size:12,"aria-hidden":`true`}),`continues `,e.continuesJobId.slice(0,6)]}):null]}),(0,J.jsx)(`div`,{className:`mt-1 truncate font-mono text-xs text-ink`,title:e.command,children:e.command}),(0,J.jsx)(`div`,{className:`text-xs text-ink-2`,children:yf(e.startedAt)})]})},e.id))]})]}),(0,J.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,title:`Drag to resize the job list`,className:`shrink-0 cursor-col-resize bg-line-mid transition-colors hover:bg-theme`,style:{width:Rf},onPointerDown:e=>{let t=f;_(!0),Sd(e,e=>p(xd(t+e,If,Lf)),()=>_(!1))},onDoubleClick:()=>p(Ff)})]}),(0,J.jsx)(`button`,{className:`absolute inset-y-0 left-0 w-7 border-r border-line-mid bg-card text-xs text-ink-2 hover:bg-warm hover:text-ink ${w} ${m?`opacity-100`:`pointer-events-none opacity-0`}`,tabIndex:m?0:-1,onClick:()=>h(!1),title:`Show the job list`,"aria-label":`Show the job list`,children:(0,J.jsx)(bl,{size:14,className:`mx-auto`,"aria-hidden":`true`})})]}),y?(0,J.jsx)(Mf,{job:y,showOpenInTab:!0,openJob:o},y.id):(0,J.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-ink-2`,children:`Select a job to see its output.`})]})]}):null]})}function Uf(){let e=hc(),t=gc(),n=dc(),r=t===`denied`,i=e&&t===`granted`;return(0,J.jsx)(`button`,{onClick:()=>void vc(!i),disabled:!n||r,"aria-pressed":i,"aria-label":i?`Turn notifications off`:`Turn notifications on`,title:n?r?`# Notifications are blocked
|
|
13
|
-
Allow them for this site in the browser settings, then click again.`:`# Notifications: ${i?`on`:`off`}\nShows a notification when it is your turn: a login, a step in the browser window that an AI run hands to you, or questions that need your answers. Only while this tab is in the background.`:`# Notifications
|
|
14
|
-
This browser does not support notifications.`,className:`flex items-center rounded p-1.5 transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${i?`bg-theme-bg text-theme-ink`:`text-ink-2 hover:bg-warm hover:text-ink`}`,children:i?(0,J.jsx)(il,{size:18,"aria-hidden":`true`}):(0,J.jsx)(el,{size:18,"aria-hidden":`true`})})}var Wf=`asrun-ui.ai-tool`,Gf=new Set,Kf=null;function qf(){try{let e=localStorage.getItem(Wf);return kd.find(t=>t===e)??null}catch{return null}}function Jf(){return Kf??qf()??`claude`}function Yf(e){let t=t=>{(t.key===null||t.key===Wf)&&(Kf=qf()??Kf,e())};return Gf.add(e),window.addEventListener(`storage`,t),()=>{Gf.delete(e),window.removeEventListener(`storage`,t)}}function Xf(){return[(0,q.useSyncExternalStore)(Yf,Jf,()=>Ad),(0,q.useCallback)(e=>{Kf=e;try{localStorage.setItem(Wf,e)}catch{}Gf.forEach(e=>e())},[])]}function Zf({tool:e}){let t=`url(/logos/${e}.svg)`;return(0,J.jsx)(`span`,{className:`inline-block h-4 w-4 shrink-0 bg-current`,style:{maskImage:t,WebkitMaskImage:t,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`},"aria-hidden":`true`})}function Qf(){let[e,t]=Xf();return(0,J.jsx)(`div`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid`,role:`group`,"aria-label":`AI agent`,title:`# AI agent (now: ${jd[e]})\nChooses the command-line tool that runs the AI commands: Explore case, Generate spec, Heal spec and Make cases.
|
|
15
|
-
Pick the one that is installed and logged in on this machine. Your choice is remembered.`,children:kd.map(n=>{let r=e===n;return(0,J.jsxs)(`button`,{onClick:()=>t(n),"aria-pressed":r,"aria-label":jd[n],className:`flex items-center px-2.5 py-1.5 text-sm transition-colors duration-200 ease-out motion-reduce:transition-none ${r?`bg-theme-btn text-white`:`bg-card text-ink-2 hover:bg-warm`}`,children:[(0,J.jsx)(Zf,{tool:n}),(0,J.jsx)(`span`,{className:`grid transition-[grid-template-columns,margin,opacity] duration-200 ease-out motion-reduce:transition-none ${r?`ml-1.5 grid-cols-[1fr] opacity-100`:`ml-0 grid-cols-[0fr] opacity-0`}`,"aria-hidden":`true`,children:(0,J.jsx)(`span`,{className:`overflow-hidden whitespace-nowrap`,children:jd[n]})})]},n)})})}var $f=[{to:`/profiles`,label:`Profiles`,theme:`jade`},{to:`/cases`,label:`Cases`,theme:`qing`},{to:`/run`,label:`Run tests`,theme:`seal`},{to:`/reports`,label:`Reports`,theme:`dai`},{to:`/guide`,label:`AI guide`,theme:`gold`}];function ep(){let{pathname:e}=wo(),{drawerOpen:t,drawerMaximized:n}=zc(),r=$f.find(t=>e===t.to||e.startsWith(`${t.to}/`))?.theme??(e===`/help`?`qing`:`jade`),i=e===`/help`;return(0,J.jsxs)(`div`,{"data-theme":r,className:`flex h-full flex-col text-ink`,children:[(0,J.jsxs)(`header`,{className:`relative z-10 flex items-center gap-6 border-b-2 border-ink bg-paper px-6 py-3 shadow-paper`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(`span`,{className:`seal`,children:`A`}),(0,J.jsx)(`span`,{className:`font-serif text-lg font-bold tracking-widest`,children:wc})]}),(0,J.jsx)(`nav`,{className:`flex gap-1`,children:$f.map(e=>(0,J.jsx)(qs,{to:e.to,"data-theme":e.theme,className:({isActive:e})=>`relative rounded px-3 py-1.5 text-sm font-medium transition-colors ${e?`bg-theme-bg text-theme-ink after:absolute after:inset-x-3 after:-bottom-[7px] after:h-0.5 after:bg-theme`:`text-ink-2 hover:bg-warm hover:text-ink`}`,children:e.label},e.to))}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Qf,{})}),(0,J.jsx)(Uf,{}),(0,J.jsx)(qs,{to:`/help`,"aria-label":`Help: how to start`,title:`Help: how to start`,className:`flex items-center rounded p-1.5 transition-colors ${i?`bg-theme-bg text-theme-ink`:`text-ink-2 hover:bg-warm hover:text-ink`}`,children:(0,J.jsx)(ou,{size:18,"aria-hidden":`true`})}),(0,J.jsx)(`a`,{href:`/docs/theme-guide.html`,target:`_blank`,rel:`noreferrer`,title:`Inkstone theme, designed and created by Zoro Chen`,className:`rounded px-3 py-1.5 text-sm font-medium text-ink-2 transition-colors hover:bg-warm hover:text-ink`,children:`Inkstone theme`})]}),(0,J.jsx)(`main`,{className:`min-h-0 flex-1 overflow-auto ${t&&n?`hidden`:``}`,children:(0,J.jsx)(Es,{})}),(0,J.jsx)(Hf,{})]})}function tp(){return(0,J.jsx)(`footer`,{className:`mt-6 flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-line pt-4 text-xs text-ink-3`,children:(0,J.jsx)(`span`,{children:`Created by Zoro Chen`})})}function np({text:e}){let[t,n]=(0,q.useState)(!1);return(0,J.jsxs)(`div`,{className:`paper-grain flex items-center gap-2 rounded bg-dai-deep px-3 py-2 shadow-paper`,children:[(0,J.jsx)(`code`,{className:`max-h-64 min-w-0 flex-1 overflow-auto font-mono text-sm whitespace-pre-wrap text-paper`,children:e}),(0,J.jsx)(`button`,{className:`shrink-0 rounded-sm border border-gold/60 px-2 py-1 text-xs text-gold transition-colors hover:bg-gold/15`,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>n(!1),1200)})},children:t?`Copied`:`Copy`})]})}var rp=/^[a-z][a-z0-9+.-]*:\/\//i;function ip(e){let t=e.trim();return rp.test(t)?t:`https://${t}`}var ap=/^[a-z0-9]+(-[a-z0-9]+)*$/,op=` - id: example-staging # lowercase, dashes allowed; used in commands, session files and baseline names
|
|
16
|
-
name: Example (staging) # display name
|
|
17
|
-
env: staging # production, staging, ... (anything but staging is protected for write cases)
|
|
18
|
-
baseURL: https://staging.example.com
|
|
19
|
-
account: qa@example.com # optional label; never a password
|
|
20
|
-
tags: [us] # optional, for grouping and --tag
|
|
21
|
-
email: false # keep false until a real mailbox is connected; never true for production
|
|
22
|
-
sessionCheckPath: /account/ # optional; a page that redirects to /login when logged out`,sp=e=>`A new profile "${e}" was added to profiles.yaml. Bring the existing test suite up to date for it.
|
|
23
|
-
|
|
24
|
-
1. Read profiles.yaml and every file in cases/ (skip _template.md).
|
|
25
|
-
2. In each case, add the expected values for "${e}" to its "## Values" block (the case document is the only
|
|
26
|
-
place where expected values live; profiles.yaml holds no values). Do not invent values: open the real pages as
|
|
27
|
-
"${e}" with the playwright-test MCP (log in first with "pnpm signin ${e}") and ask me when something
|
|
28
|
-
is unclear. Write the values the spec asserts, not prose.
|
|
29
|
-
3. For each case that has a spec, run /gen-spec <case-id> so tests/<case-id>.spec.ts covers "${e}". Create
|
|
30
|
-
screenshot baselines only for "${e}" (pnpm asrun --env <env> --profile ${e} --grep <case-id>
|
|
31
|
-
--update-snapshots) and tell me which images to review.
|
|
32
|
-
4. Finish with pnpm typecheck and pnpm asrun --env <env> --profile ${e}, then summarize what changed and what
|
|
33
|
-
is still open. Keep "email: false" for the new profile. Cases that write data must not run in production without my
|
|
34
|
-
explicit permission.`;function cp({onAdded:e}){let t=ht(),[n,r]=(0,q.useState)(``),[i,a]=(0,q.useState)(``),[o,s]=(0,q.useState)(`staging`),[c,l]=(0,q.useState)(``),[u,d]=(0,q.useState)(``),[f,p]=(0,q.useState)(``),[m,h]=(0,q.useState)(``),[g,_]=(0,q.useState)(!1),v=Hn({mutationFn:()=>sc.addProfile({id:n,name:i,env:o,baseURL:ip(c),account:u.trim()||void 0,tags:f.split(`,`).map(e=>e.trim()).filter(Boolean),sessionCheckPath:m||void 0,email:o!==`production`&&g}),onSuccess:n=>{t.invalidateQueries({queryKey:Ac.profiles}),t.invalidateQueries({queryKey:Ac.info}),r(``),a(``),l(``),d(``),p(``),h(``),_(!1),e(n.id)}}),y=ap.test(n),b=ap.test(o),x=/^https?:\/\/[^/\s]+\/?$/.test(ip(c)),S=y&&b&&i.trim()!==``&&x&&(!m||m.startsWith(`/`)),C=`mt-1 w-full ${hf}`;return(0,J.jsxs)(`form`,{className:`grid gap-4 sm:grid-cols-2`,onSubmit:e=>{e.preventDefault(),S&&v.mutate()},children:[(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink`,children:`Profile id`}),(0,J.jsx)(`input`,{className:`${C} font-mono`,value:n,onChange:e=>r(e.target.value),placeholder:`example-staging`}),(0,J.jsx)(`span`,{className:`text-xs ${n&&!y?`text-seal-deep`:`text-ink-2`}`,children:`Lowercase letters, digits and single dashes. Cannot be changed later.`})]}),(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink`,children:`Name`}),(0,J.jsx)(`input`,{className:C,value:i,onChange:e=>a(e.target.value),placeholder:`Example (staging)`})]}),(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink`,children:`Environment`}),(0,J.jsx)(`input`,{className:`${C} font-mono`,value:o,onChange:e=>s(e.target.value),placeholder:`staging`,list:`known-envs`}),(0,J.jsxs)(`datalist`,{id:`known-envs`,children:[(0,J.jsx)(`option`,{value:`production`}),(0,J.jsx)(`option`,{value:`staging`})]}),(0,J.jsx)(`span`,{className:`text-xs ${o&&!b?`text-seal-deep`:`text-ink-2`}`,children:`Anything other than staging is protected for cases that write data.`})]}),(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink`,children:`Base URL`}),(0,J.jsx)(`input`,{className:C,value:c,onChange:e=>l(e.target.value),onBlur:()=>c.trim()&&l(ip(c)),placeholder:`https://staging.example.com`}),(0,J.jsx)(`span`,{className:`text-xs ${c&&!x?`text-seal-deep`:`text-ink-2`}`,children:`Only the site address, no path. https:// is added when you leave it out.`})]}),(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink`,children:`Account (optional)`}),(0,J.jsx)(`input`,{className:C,value:u,onChange:e=>d(e.target.value),placeholder:`qa@example.com`}),(0,J.jsx)(`span`,{className:`text-xs text-ink-2`,children:`A label for people. Never a password; logins stay in .auth/.`})]}),(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink`,children:`Tags (optional)`}),(0,J.jsx)(`input`,{className:`${C} font-mono`,value:f,onChange:e=>p(e.target.value),placeholder:`us, core`}),(0,J.jsx)(`span`,{className:`text-xs text-ink-2`,children:`Comma-separated lowercase words. Run with --tag <tag>.`})]}),(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink`,children:`Session check path (optional)`}),(0,J.jsx)(`input`,{className:`${C} font-mono`,value:m,onChange:e=>h(e.target.value),placeholder:`/account/`}),(0,J.jsx)(`span`,{className:`text-xs text-ink-2`,children:`A page that redirects to /login when logged out.`})]}),(0,J.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:g,disabled:o===`production`,onChange:e=>_(e.target.checked)}),(0,J.jsx)(`span`,{className:`text-ink`,children:`A real mailbox is connected; tests may send email`})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3 sm:col-span-2`,children:[(0,J.jsx)(`button`,{className:mf(`primary`),disabled:!S||v.isPending,children:v.isPending?`Adding...`:`Add profile`}),(0,J.jsx)(`span`,{className:`text-xs text-ink-2`,children:`Appends an entry to profiles.yaml. Existing entries and comments stay untouched.`})]}),v.isError?(0,J.jsx)(`p`,{className:`text-sm text-seal-deep sm:col-span-2`,children:v.error.message}):null]})}function lp({n:e,title:t,children:n}){return(0,J.jsxs)(`li`,{className:`flex gap-3`,children:[(0,J.jsx)(`span`,{className:`mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-sm bg-theme-bg font-serif text-xs font-bold text-theme-ink ring-1 ring-theme/40`,children:e}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2 text-sm text-ink`,children:[(0,J.jsx)(`div`,{className:`font-serif font-bold text-ink`,children:t}),n]})]})}function up({profileIds:e}){let[t,n]=(0,q.useState)(!1),[r,i]=(0,q.useState)(null),[a,o]=(0,q.useState)(null),s=a??r??e[e.length-1]??`<profile-id>`;return(0,J.jsxs)(`section`,{className:`card-paper mt-6`,children:[(0,J.jsxs)(`button`,{className:`flex w-full items-center gap-3 px-4 py-3 text-left`,onClick:()=>n(!t),"aria-expanded":t,children:[(0,J.jsx)(`span`,{className:`font-serif font-bold`,children:`Add a new profile`}),(0,J.jsx)(`span`,{className:`text-sm text-ink-2`,children:`form, profiles.yaml format and what to do afterwards`}),(0,J.jsx)(`span`,{className:`ml-auto text-ink-3`,children:(0,J.jsx)(fl,{size:16,className:`transition-transform duration-200 motion-reduce:transition-none ${t?``:`-rotate-90`}`,"aria-hidden":`true`})})]}),(0,J.jsx)(Od,{open:t,children:(0,J.jsxs)(`div`,{className:`space-y-6 border-t border-line-mid p-4`,children:[r?(0,J.jsxs)(`div`,{className:`rounded border border-jade-deep/40 bg-jade-bg px-3 py-2 text-sm text-jade-btn`,children:[`Profile `,(0,J.jsx)(`code`,{className:`font-mono`,children:r}),` was added to profiles.yaml. Continue with steps 2 to 4 below.`]}):null,(0,J.jsxs)(`ol`,{className:`space-y-6`,children:[(0,J.jsxs)(lp,{n:1,title:`Add the profile to profiles.yaml`,children:[(0,J.jsx)(`p`,{children:`Fill in the form (the UI writes the entry for you):`}),(0,J.jsx)(`div`,{className:`rounded border border-line-mid bg-warm p-4`,children:(0,J.jsx)(cp,{onAdded:e=>(i(e),o(null))})}),(0,J.jsxs)(`details`,{className:`text-sm`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer text-ink-2`,children:`Prefer to edit the file by hand?`}),(0,J.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,J.jsxs)(`p`,{children:[`Append an entry to the `,(0,J.jsx)(`code`,{children:`profiles`}),` list in `,(0,J.jsx)(`code`,{children:`profiles.yaml`}),`. Each entry is one environment and becomes one Playwright project, so every test runs once per profile. No code changes needed.`]}),(0,J.jsx)(np,{text:op}),(0,J.jsxs)(`p`,{children:[`Profiles hold connection settings only. Expected values belong to the case that checks them (its`,` `,(0,J.jsx)(`code`,{children:`## Values`}),` block).`]})]})]})]}),(0,J.jsx)(lp,{n:2,title:`Log in the new profile`,children:(0,J.jsxs)(`p`,{children:[`Click `,(0,J.jsx)(`b`,{children:`Log in`}),` in the table above, log in yourself in the browser window (including 2FA), then click "I've logged in, save the session". Skip this only if every case uses `,(0,J.jsx)(`code`,{children:`login: none`}),`.`]})}),(0,J.jsxs)(lp,{n:3,title:`Update the cases for the new profile`,children:[(0,J.jsxs)(`p`,{children:[`Every case that checks something profile-specific needs the values for `,(0,J.jsx)(`code`,{children:s}),` in its`,` `,(0,J.jsx)(`b`,{children:`## Values`}),` block (keys under `,(0,J.jsx)(`code`,{children:`default`}),` apply to every profile). Two ways:`]}),(0,J.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,J.jsxs)(`li`,{children:[`By hand: open each case on the`,` `,(0,J.jsx)(Ks,{to:`/cases`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`Cases page`}),` `,`and add the entry. A case with no values for a profile cannot be checked for that profile.`]}),(0,J.jsx)(`li`,{children:`With the AI (recommended): let the agent look at the real pages and write the values. Copy the prompt below into OpenCode or Claude Code, started in the asrun workspace.`})]}),(0,J.jsxs)(`label`,{className:`flex items-center gap-2 pt-1 text-xs text-ink-2`,children:[`Profile in the prompt`,(0,J.jsxs)(vf,{value:s,onChange:e=>o(e.target.value),mono:!0,children:[e.length===0?(0,J.jsx)(`option`,{children:`<profile-id>`}):null,e.map(e=>(0,J.jsx)(`option`,{value:e,children:e},e))]})]}),(0,J.jsx)(np,{text:sp(s)}),(0,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`To only check one case against the new profile first, run `,(0,J.jsx)(`code`,{children:`/explore-case <case-id>`}),` (see the`,` `,(0,J.jsx)(Ks,{to:`/guide`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`AI guide`}),`). It reports the missing values and edits only that case file.`]})]}),(0,J.jsx)(lp,{n:4,title:`Review and run`,children:(0,J.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,J.jsxs)(`li`,{children:[`Open the new images in `,(0,J.jsx)(`code`,{children:`tests/<case-id>.spec.ts-snapshots/`}),` and confirm each one is correct for `,(0,J.jsx)(`code`,{children:s}),`. Baselines are the source of truth for pixel checks.`]}),(0,J.jsxs)(`li`,{children:[`Run the profile on the`,` `,(0,J.jsx)(Ks,{to:`/run`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`Run tests page`}),` `,`(or `,(0,J.jsxs)(`code`,{children:[`pnpm asrun --env <env> --profile `,s]}),`), then check the`,` `,(0,J.jsx)(Ks,{to:`/reports`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`report`}),`.`]})]})})]})]})})]})}function dp({profile:e}){return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(`div`,{className:`text-xs text-ink-2`,children:e.account??(0,J.jsx)(`span`,{className:`text-ink-3`,children:`no account label`})}),e.tags.length>0?(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.tags.map(e=>(0,J.jsx)(`span`,{className:`rounded-sm bg-warm px-1.5 py-0.5 font-mono text-xs text-ink-2 ring-1 ring-line-mid`,children:e},e))}):null]})}function fp(){let e=Mc(),t=Fc(),n=ht(),{startJob:r,selectJob:i}=zc(),a=Hn({mutationFn:e=>sc.verifyProfiles(e),onSuccess:e=>n.setQueryData(Ac.profiles,e)}),o=e=>t.data?.find(t=>t.kind===`signin`&&t.profile===e&&t.status===`running`),s=e=>t.data?.find(t=>t.kind===`visit`&&t.profile===e&&t.status===`running`),c=Hn({mutationFn:e=>sc.cancelJob(e),onSettled:()=>void n.invalidateQueries({queryKey:Ac.jobs})}),l=e.data?.profiles??[],u=t.data?.some(e=>e.kind===`run`&&e.status===`running`)??!1;return(0,J.jsxs)(`div`,{className:`mx-auto max-w-5xl p-6`,children:[(0,J.jsxs)(`div`,{className:`mb-4 flex items-center gap-3`,children:[(0,J.jsx)(`h1`,{className:`font-serif text-2xl font-bold tracking-wide border-l-4 border-theme pl-3`,children:`Profiles`}),(0,J.jsx)(`span`,{className:`text-sm text-ink-2`,children:`from profiles.yaml, one row per environment`}),(0,J.jsx)(`button`,{className:`${mf()} ml-auto`,onClick:()=>a.mutate(void 0),disabled:e.data?.verifying||a.isPending,children:e.data?.verifying?`Checking sessions...`:`Re-check all sessions`})]}),e.isError?(0,J.jsx)(`p`,{className:`text-seal-deep`,children:e.error.message}):null,(0,J.jsx)(`div`,{className:`card-paper overflow-hidden`,children:(0,J.jsxs)(`table`,{className:`w-full text-left text-sm`,children:[(0,J.jsx)(`thead`,{className:`border-b border-line-mid bg-warm text-xs tracking-widest text-ink-2 uppercase`,children:(0,J.jsxs)(`tr`,{children:[(0,J.jsx)(`th`,{className:`px-4 py-2`,children:`Profile`}),(0,J.jsx)(`th`,{className:`px-4 py-2`,children:`Environment`}),(0,J.jsx)(`th`,{className:`px-4 py-2`,children:`Account`}),(0,J.jsx)(`th`,{className:`px-4 py-2`,children:`Login`}),(0,J.jsx)(`th`,{className:`px-4 py-2`,children:`Session saved`}),(0,J.jsx)(`th`,{className:`px-4 py-2 text-right`,children:`Actions`})]})}),(0,J.jsx)(`tbody`,{className:`divide-y divide-line`,children:l.map(e=>{let t=o(e.id),n=s(e.id),l=e.status===`missing`||e.status===`expired`;return(0,J.jsxs)(`tr`,{children:[(0,J.jsxs)(`td`,{className:`px-4 py-2`,children:[(0,J.jsx)(`div`,{className:`font-medium text-ink`,children:e.name}),(0,J.jsx)(`div`,{className:`font-mono text-xs text-ink-2`,children:e.id})]}),(0,J.jsxs)(`td`,{className:`px-4 py-2`,children:[(0,J.jsx)(of,{env:e.env}),(0,J.jsx)(`div`,{className:`mt-1 text-xs text-ink-2`,children:new URL(e.baseURL).host})]}),(0,J.jsx)(`td`,{className:`px-4 py-2`,children:(0,J.jsx)(dp,{profile:e})}),(0,J.jsxs)(`td`,{className:`px-4 py-2`,children:[e.verifying?(0,J.jsx)(`span`,{className:`text-xs text-ink-2`,children:`checking...`}):(0,J.jsx)(df,{status:e.status}),e.error?(0,J.jsx)(`div`,{className:`mt-1 text-xs text-ink-2`,children:e.error}):null]}),(0,J.jsx)(`td`,{className:`px-4 py-2 text-ink-2`,children:yf(e.savedAt)}),(0,J.jsx)(`td`,{className:`px-4 py-2`,children:(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[t?(0,J.jsxs)(`button`,{className:`${mf(`primary`)} gap-1.5`,title:`Login in progress, click to show the browser job`,onClick:()=>i(t.id),children:[(0,J.jsx)(vu,{size:14,"aria-hidden":`true`}),`Waiting`]}):(0,J.jsxs)(`button`,{className:`${mf(l?`primary`:`secondary`)} gap-1.5`,disabled:u,title:u?`Wait for the running test run to finish`:`Open a browser window to log in`,onClick:()=>void r({action:`signin`,profile:e.id,env:e.env}),children:[(0,J.jsx)(Su,{size:14,"aria-hidden":`true`}),`Login`]}),n?(0,J.jsxs)(`button`,{className:`${mf(`stop`)} gap-1.5`,disabled:c.isPending,title:`Forcibly close the browser opened by Visit`,onClick:()=>c.mutate(n.id),children:[(0,J.jsx)(gd,{size:14,"aria-hidden":`true`}),`Close`]}):e.status===`ok`?(0,J.jsxs)(`button`,{className:`${mf()} gap-1.5`,title:`Open a logged-in browser window at /app/home in ${e.env}`,onClick:()=>void r({action:`visit`,profile:e.id,env:e.env}),children:[(0,J.jsx)(Wl,{size:14,"aria-hidden":`true`}),`Visit`]}):null,e.status===`missing`?null:(0,J.jsxs)(`button`,{className:`${mf()} gap-1.5`,disabled:e.verifying,title:`Check that the saved session is still logged in`,onClick:()=>a.mutate({profile:e.id,env:e.env}),children:[(0,J.jsx)(Ku,{size:14,"aria-hidden":`true`}),`Verify`]})]})})]},e.id)})})]})}),(0,J.jsx)(`p`,{className:`mt-3 text-xs text-ink-2`,children:`"Login" opens a browser window on this machine. You log in yourself (including 2FA); nothing is automated. Verifying opens each saved session read-only on the real site.`}),(0,J.jsx)(up,{profileIds:[...new Set(l.map(e=>e.id))]}),(0,J.jsx)(tp,{})]})}function pp(){return pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pp.apply(null,arguments)}function mp(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var hp=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=bp(e.state,n.from);return r.line?_p(e):r.block?yp(e):!1};function gp(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var _p=gp(Tp,0),vp=gp(wp,0),yp=gp((e,t)=>wp(e,t,Cp(t)),0);function bp(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var xp=50;function Sp(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-xp,r),o=e.sliceDoc(i,i+xp),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=100?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+xp),d=e.sliceDoc(i-xp,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function Cp(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function wp(e,t,n=t.selection.ranges){let r=n.map(e=>bp(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>Sp(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function Tp(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=bp(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var Ep=H.define(),Dp=H.define(),Op=u.define(),kp=u.define({combine(e){return j(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),Ap=w.define({create(){return Yp.empty},update(e,t){let n=t.state.facet(kp),r=t.annotation(Ep);if(r){let i=Lp.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?Rp(o,o.length,n.minDepth,i):Wp(o,t.startState.selection),new Yp(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(Dp);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(f.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=Lp.fromTransaction(t),o=t.annotation(f.time),s=t.annotation(f.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new Yp(e.done.map(Lp.fromJSON),e.undone.map(Lp.fromJSON))}});function jp(e={}){return[Ap,kp.of(e),z.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?Np:e.inputType==`historyRedo`?Pp:null;return n?(e.preventDefault(),n(t)):!1}})]}function Mp(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Ap,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var Np=Mp(0,!1),Pp=Mp(1,!1),Fp=Mp(0,!0),Ip=Mp(1,!0),Lp=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&N.fromJSON(t.changes),[],t.mapped&&We.fromJSON(t.mapped),t.startSelection&&G.fromJSON(t.startSelection),t.selectionsAfter.map(G.fromJSON))}static fromTransaction(t,n){let r=Hp;for(let e of t.startState.facet(Op)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Hp)}static selection(t){return new e(void 0,Hp,void 0,void 0,t)}};function Rp(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function zp(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function Bp(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function Vp(e,t){return e.length?t.length?e.concat(t):e:t}var Hp=[],Up=200;function Wp(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Up));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Rp(e,e.length-1,1e9,n.setSelAfter(r)))}return[Lp.selection([t])]}function Gp(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Kp(e,t){if(!e.length)return e;let n=e.length,r=Hp;for(;n;){let i=qp(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Lp.selection(r)]:Hp}function qp(e,t,n){let r=Vp(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):Hp,n);if(!e.changes)return Lp.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new Lp(i,S.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var Jp=/^(input\.type|delete)($|\.)/,Yp=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||Jp.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,zp(s.changes,t.changes))||r==`input.type.compose`)?Rp(o,o.length-1,i.minDepth,new Lp(t.changes.compose(s.changes),Vp(S.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,Hp)):Rp(o,o.length,i.minDepth,t),new e(o,Hp,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:Hp;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&Bp(a[a.length-1],t)?this:new e(Wp(this.done,t),this.undone,n,r)}addMapping(t){return new e(Kp(this.done,t),Kp(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Ep.of({side:e,rest:Gp(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?Hp:r.slice(0,r.length-1);return i.mapped&&(n=Kp(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Ep.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}return null}};Yp.empty=new Yp(Hp,Hp);var Xp=[{key:`Mod-z`,run:Np,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:Pp,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:Pp,preventDefault:!0},{key:`Mod-u`,run:Fp,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:Ip,preventDefault:!0}];function Zp(e,t){return G.create(e.ranges.map(t),e.mainIndex)}function Qp(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function $p({state:e,dispatch:t},n){let r=Zp(e.selection,n);return!r.eq(e.selection,!0)&&(t(Qp(e,r)),!0)}function em(e,t){return G.cursor(t?e.to:e.from)}function tm(e,t){return $p(e,n=>n.empty?e.moveByChar(n,t):em(n,t))}function nm(e){return e.textDirectionAt(e.state.selection.main.head)==B.LTR}var rm=e=>tm(e,!nm(e)),im=e=>tm(e,nm(e));function am(e,t){return $p(e,n=>n.empty?e.moveByGroup(n,t):em(n,t))}var om=e=>am(e,!nm(e)),sm=e=>am(e,nm(e));typeof Intl<`u`&&Intl.Segmenter;function cm(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function lm(e,t,n){let r=d(e).resolveInner(t.head),i=n?L.closedBy:L.openedBy;for(let a=t.head;;){let t=n?r.childAfter(a):r.childBefore(a);if(!t)break;cm(e,t,i)?r=t:a=n?t.to:t.from}let a=r.type.prop(i),o,s;return s=a&&(o=n?x(e,r.from,1):x(e,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,G.cursor(s,n?-1:1)}var um=e=>$p(e,t=>lm(e.state,t,!nm(e))),dm=e=>$p(e,t=>lm(e.state,t,nm(e)));function fm(e,t){return $p(e,n=>{if(!n.empty)return em(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var pm=e=>fm(e,!1),mm=e=>fm(e,!0);function hm(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(z.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function gm(e,t){let n=hm(e),{state:r}=e,i=Zp(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):em(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=z.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(Qp(r,i),{effects:a}),!0}var _m=e=>gm(e,!1),vm=e=>gm(e,!0);function ym(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=G.cursor(r.from+n))}return i}var bm=e=>$p(e,t=>ym(e,t,!0)),xm=e=>$p(e,t=>ym(e,t,!1)),Sm=e=>$p(e,t=>ym(e,t,!nm(e))),Cm=e=>$p(e,t=>ym(e,t,nm(e))),wm=e=>$p(e,t=>e.moveToLineBoundary(t,!1,!1)),Tm=e=>$p(e,t=>e.moveToLineBoundary(t,!0,!1));function Em(e,t,n){let r=!1,i=Zp(e.selection,t=>{let i=x(e,t.head,-1)||x(e,t.head,1)||t.head>0&&x(e,t.head-1,1)||t.head<e.doc.length&&x(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?G.range(t.anchor,a):G.cursor(a)});return r?(t(Qp(e,i)),!0):!1}var Dm=({state:e,dispatch:t})=>Em(e,t,!1);function Om(e,t,n){let r=Zp(e.state.selection,e=>{e.undirectional&&e.head>=e.anchor!=t&&(e=G.range(e.head,e.anchor));let r=n(e);return G.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(e.state.selection)&&(e.dispatch(Qp(e.state,r)),!0)}function km(e,t){return Om(e,t,n=>e.moveByChar(n,t))}var Am=e=>km(e,!nm(e)),jm=e=>km(e,nm(e));function Mm(e,t){return Om(e,t,n=>e.moveByGroup(n,t))}var Nm=e=>Mm(e,!nm(e)),Pm=e=>Mm(e,nm(e)),Fm=e=>{let t=!nm(e);return Om(e,t,n=>lm(e.state,n,t))},Im=e=>{let t=nm(e);return Om(e,t,n=>lm(e.state,n,t))};function Lm(e,t){return Om(e,t,n=>e.moveVertically(n,t))}var Rm=e=>Lm(e,!1),zm=e=>Lm(e,!0);function Bm(e,t){return Om(e,t,n=>e.moveVertically(n,t,hm(e).height))}var Vm=e=>Bm(e,!1),Hm=e=>Bm(e,!0),Um=e=>Om(e,!0,t=>ym(e,t,!0)),Wm=e=>Om(e,!1,t=>ym(e,t,!1)),Gm=e=>{let t=!nm(e);return Om(e,t,n=>ym(e,n,t))},Km=e=>{let t=nm(e);return Om(e,t,n=>ym(e,n,t))},qm=e=>Om(e,!1,t=>G.cursor(e.lineBlockAt(t.head).from)),Jm=e=>Om(e,!0,t=>G.cursor(e.lineBlockAt(t.head).to)),Ym=({state:e,dispatch:t})=>(t(Qp(e,{anchor:0})),!0),Xm=({state:e,dispatch:t})=>(t(Qp(e,{anchor:e.doc.length})),!0),Zm=({state:e,dispatch:t})=>(t(Qp(e,{anchor:e.selection.main.anchor,head:0})),!0),Qm=({state:e,dispatch:t})=>(t(Qp(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),$m=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),eh=({state:e,dispatch:t})=>{let n=yh(e).map(({from:t,to:n})=>G.undirectionalRange(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:G.create(n),userEvent:`select`})),!0},th=({state:e,dispatch:t})=>{let n=Zp(e.selection,t=>{let n=d(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return G.undirectionalRange(n.from,n.to)}return t});return!n.eq(e.selection)&&(t(Qp(e,n)),!0)};function nh(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(Qp(n,G.create(i,i.length-1))),!0)}var rh=e=>nh(e,!1),ih=e=>nh(e,!0),ah=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=G.create([n.main]):n.main.empty||(r=G.create([G.cursor(n.main.head)])),r?(t(Qp(e,r)),!0):!1};function oh(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=sh(e,o,!1)):o>i&&(n=`delete.forward`,o=sh(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=sh(e,i,!1),a=sh(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:G.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?z.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function sh(e,t,n){if(e instanceof z)for(let r of e.state.facet(z.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var ch=(e,t,n)=>oh(e,r=>{let a=r.from,{state:o}=e,s=o.doc.lineAt(a),c,l;if(n&&!t&&a>s.from&&a<s.from+200&&!/[^ \t]/.test(c=s.text.slice(0,a-s.from))){if(c[c.length-1]==` `)return a-1;let e=qe(c,o.tabSize)%P(o)||P(o);for(let t=0;t<e&&c[c.length-1-t]==` `;t++)a--;l=a}else l=i(s.text,a-s.from,t,t)+s.from,l==a&&s.number!=(t?o.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(s.text.slice(l-s.from,a-s.from))&&(l=i(s.text,l-s.from,!1,!1)+s.from);return l}),lh=e=>ch(e,!1,!0),uh=e=>ch(e,!0,!1),dh=(e,t)=>oh(e,n=>{let r=n.head,{state:a}=e,o=a.doc.lineAt(r),s=a.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?a.doc.lines:1)&&(r+=t?1:-1);break}let c=i(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,c)-o.from,Math.max(r,c)-o.from),u=s(l);if(e!=null&&u!=e)break;(l!=` `||r!=n.head)&&(e=u),r=c}return r}),fh=e=>dh(e,!1),ph=e=>dh(e,!0),mh=e=>oh(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),hh=e=>oh(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),gh=e=>oh(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),_h=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:O.of([``,``])},range:G.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},vh=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),a=n==r.from?n-1:i(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:i(r.text,n-r.from,!0)+r.from;return{changes:{from:a,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(a,n))},range:G.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function yh(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function bh(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of yh(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(G.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(G.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:G.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var xh=({state:e,dispatch:t})=>bh(e,t,!1),Sh=({state:e,dispatch:t})=>bh(e,t,!0);function Ch(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of yh(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var wh=({state:e,dispatch:t})=>Ch(e,t,!1),Th=({state:e,dispatch:t})=>Ch(e,t,!0),Eh=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(yh(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=Zp(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function Dh(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=d(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(L.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}var Oh=Ah(!1),kh=Ah(!0);function Ah(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&Dh(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new De(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=l(s,r);for(c??=qe(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let u=[``,be(t,c)];return o&&u.push(be(t,s.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:O.of(u)},range:G.cursor(r+1+u[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function jh(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:G.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var Mh=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new De(e,{overrideIndentation:e=>n[e]??-1}),i=jh(e,(t,i,a)=>{let o=l(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=be(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},Nh=({state:e,dispatch:n})=>!e.readOnly&&(n(e.update(jh(e,(n,r)=>{r.push({from:n.from,insert:e.facet(t)})}),{userEvent:`input.indent`})),!0),Ph=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(jh(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=qe(r,e.tabSize),a=0,o=be(e,Math.max(0,i-P(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),Fh=e=>(e.setTabFocusMode(),!0),Ih=[{key:`Ctrl-b`,run:rm,shift:Am,preventDefault:!0},{key:`Ctrl-f`,run:im,shift:jm},{key:`Ctrl-p`,run:pm,shift:Rm},{key:`Ctrl-n`,run:mm,shift:zm},{key:`Ctrl-a`,run:wm,shift:qm},{key:`Ctrl-e`,run:Tm,shift:Jm},{key:`Ctrl-d`,run:uh},{key:`Ctrl-h`,run:lh},{key:`Ctrl-k`,run:mh},{key:`Ctrl-Alt-h`,run:fh},{key:`Ctrl-o`,run:_h},{key:`Ctrl-t`,run:vh},{key:`Ctrl-v`,run:vm}],Lh=[{key:`ArrowLeft`,run:rm,shift:Am,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:om,shift:Nm,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:Sm,shift:Gm,preventDefault:!0},{key:`ArrowRight`,run:im,shift:jm,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:sm,shift:Pm,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:Cm,shift:Km,preventDefault:!0},{key:`ArrowUp`,run:pm,shift:Rm,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:Ym,shift:Zm},{mac:`Ctrl-ArrowUp`,run:_m,shift:Vm},{key:`ArrowDown`,run:mm,shift:zm,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:Xm,shift:Qm},{mac:`Ctrl-ArrowDown`,run:vm,shift:Hm},{key:`PageUp`,run:_m,shift:Vm},{key:`PageDown`,run:vm,shift:Hm},{key:`Home`,run:xm,shift:Wm,preventDefault:!0},{key:`Mod-Home`,run:Ym,shift:Zm},{key:`End`,run:bm,shift:Um,preventDefault:!0},{key:`Mod-End`,run:Xm,shift:Qm},{key:`Enter`,run:Oh,shift:Oh},{key:`Mod-a`,run:$m},{key:`Backspace`,run:lh,shift:lh,preventDefault:!0},{key:`Delete`,run:uh,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:fh,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:ph,preventDefault:!0},{mac:`Mod-Backspace`,run:hh,preventDefault:!0},{mac:`Mod-Delete`,run:gh,preventDefault:!0}].concat(Ih.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Rh=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:um,shift:Fm},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:dm,shift:Im},{key:`Alt-ArrowUp`,run:xh},{key:`Shift-Alt-ArrowUp`,run:wh},{key:`Alt-ArrowDown`,run:Sh},{key:`Shift-Alt-ArrowDown`,run:Th},{key:`Mod-Alt-ArrowUp`,run:rh},{key:`Mod-Alt-ArrowDown`,run:ih},{key:`Escape`,run:ah},{key:`Mod-Enter`,run:kh},{key:`Alt-l`,mac:`Ctrl-l`,run:eh},{key:`Mod-i`,run:th,preventDefault:!0},{key:`Mod-[`,run:Ph},{key:`Mod-]`,run:Nh},{key:`Mod-Alt-\\`,run:Mh},{key:`Shift-Mod-k`,run:Eh},{key:`Shift-Mod-\\`,run:Dm},{key:`Mod-/`,run:hp},{key:`Alt-A`,mac:`Ctrl-A`,run:vp},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:Fh}].concat(Lh),zh={key:`Tab`,run:Nh,shift:Ph},Bh=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFKD`):e=>e,Vh=class{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer=``,this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(Bh(e)):Bh,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return g(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=R(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=b(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,a=!0;;e++){let n=r.charCodeAt(e),o=this.match(n,i,a,this.bufferPos+this.bufferStart,e==r.length-1);if(o)return this.value=o,this;if(e==r.length-1)break;a&&e<t.length&&t.charCodeAt(e)==n?i++:a=!1}}}match(e,t,n,r,i){let a=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],o=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?a={from:n.from,to:r,precise:i&&n.precise}:(n.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?a={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferStart)&&(a=null),a}};typeof Symbol<`u`&&(Vh.prototype[Symbol.iterator]=function(){return this});var Hh={from:-1,to:-1,match:/.*/.exec(``),precise:!0},Uh=`gm`+(/x/.unicode==null?``:`u`),Wh=class{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine=``,this.done=!1,this.value=Hh,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new qh(e,t,n,r,i);this.re=new RegExp(t,Uh+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=Yh(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine=``:(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine=``:this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=Yh(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},Gh=new WeakMap,Kh=class e{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(t,n,r){let i=Gh.get(t);if(!i||i.from>=r||i.to<=n){let i=new e(n,t.sliceString(n,r));return Gh.set(t,i),i}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=t.sliceString(n,o)+a,o=n),i.to<r&&(a+=t.sliceString(i.to,r)),Gh.set(t,new e(o,a)),new e(n,a.slice(n-o,r-o))}},qh=class{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=Hh,this.matchPos=Yh(e,r),this.re=new RegExp(t,Uh+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.flat=Kh.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=Yh(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Kh.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<`u`&&(Wh.prototype[Symbol.iterator]=qh.prototype[Symbol.iterator]=function(){return this});function Jh(e){try{return new RegExp(e,Uh),!0}catch{return!1}}function Yh(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}var Xh=e=>{let t=Ne(e,`cm-goto-line`);if(t){let e=t.dom.querySelector(`input[type=text]`);return e&&e.select(),!0}let{state:n}=e,r=String(n.doc.lineAt(e.state.selection.main.head).number),{close:i,result:a}=pe(e,{class:`cm-goto-line`,label:n.phrase(`Go to line`),input:{type:`text`,name:`line`,value:r},focus:!0,submitLabel:n.phrase(`go`)});return a.then(t=>{let r=t&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.elements.line.value);if(!r){e.dispatch({effects:i});return}let a=n.doc.lineAt(n.selection.main.head),[,o,s,c,l]=r,u=c?+c.slice(1):0,d=s?+s:a.number;if(s&&l){let e=d/100;o&&(e=e*(o==`-`?-1:1)+a.number/n.doc.lines),d=Math.round(n.doc.lines*e)}else s&&o&&(d=d*(o==`-`?-1:1)+a.number);let f=n.doc.line(Math.max(1,Math.min(n.doc.lines,d))),p=G.cursor(f.from+Math.max(0,Math.min(u,f.length)));e.dispatch({effects:[i,z.scrollIntoView(p.from,{y:`center`})],selection:p})}),!0},Zh={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Qh=u.define({combine(e){return j(e,Zh,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function $h(e){let t=[ag,ig];return e&&t.push(Qh.of(e)),t}var eg=_.mark({class:`cm-selectionMatch`}),tg=_.mark({class:`cm-selectionMatch cm-selectionMatch-main`});function ng(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=o.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=o.Word)}function rg(e,t,n,r){return e(t.sliceDoc(n,n+1))==o.Word&&e(t.sliceDoc(r-1,r))==o.Word}var ig=V.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Qh),{state:n}=e,r=n.selection;if(r.ranges.length>1)return _.none;let i=r.main,a,o=null;if(i.empty){if(!t.highlightWordAroundCursor)return _.none;let e=n.wordAt(i.head);if(!e)return _.none;o=n.charCategorizer(i.head),a=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return _.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(ng(o,n,i.from,i.to)&&rg(o,n,i.from,i.to)))return _.none}else if(a=n.sliceDoc(i.from,i.to),!a)return _.none}let s=[];for(let r of e.visibleRanges){let e=new Vh(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:a}=e.value;if((!o||ng(o,n,r,a))&&(i.empty&&r<=i.from&&a>=i.to?s.push(tg.range(r,a)):(r>=i.to||a<=i.from)&&s.push(eg.range(r,a)),s.length>t.maxMatches))return _.none}}return _.set(s)}},{decorations:e=>e.decorations}),ag=z.baseTheme({".cm-selectionMatch":{backgroundColor:`#99ff7780`},".cm-searchMatch .cm-selectionMatch":{backgroundColor:`transparent`}}),og=({state:e,dispatch:t})=>{let{selection:n}=e,r=G.create(n.ranges.map(t=>e.wordAt(t.head)||G.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)};function sg(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new Vh(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new Vh(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}var cg=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return og({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=sg(e,r);return i?(t(e.update({selection:e.selection.addRange(G.range(i.from,i.to),!1),effects:z.scrollIntoView(i.to)})),!0):!1},lg=u.define({combine(e){return j(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Ug(e),scrollToMatch:e=>z.scrollIntoView(e)})}}),ug=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||``,this.valid=!!this.search&&(!this.regexp||Jh(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>t==`n`?`
|
|
35
|
-
`:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new xg(this):new hg(this)}getCursor(e,t=0,n){let r=e.doc?e:F.create({doc:e});return n??=r.doc.length,this.regexp?_g(this,r,t,n):pg(this,r,t,n)}},dg=class{constructor(e){this.spec=e}};function fg(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function pg(e,t,n,r){let i;return e.wholeWord&&(i=mg(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=fg(e.test,t,i)),new Vh(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function mg(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(vg(i,n-a))!=o.Word||t(yg(i,n-a))!=o.Word)&&(t(yg(i,r-a))!=o.Word||t(vg(i,r-a))!=o.Word))}var hg=class extends dg{constructor(e){super(e)}nextMatch(e,t,n){let r=pg(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=pg(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=pg(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=pg(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=pg(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function gg(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function _g(e,t,n,r){let i;return e.wholeWord&&(i=bg(t.charCategorizer(t.selection.main.head))),e.test&&(i=gg(e.test,t,i)),new Wh(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function vg(e,t){return e.slice(i(e,t,!1),t)}function yg(e,t){return e.slice(t,i(e,t))}function bg(e){return(t,n,r)=>!r[0].length||(e(vg(r.input,r.index))!=o.Word||e(yg(r.input,r.index))!=o.Word)&&(e(yg(r.input,r.index+r[0].length))!=o.Word||e(vg(r.input,r.index+r[0].length))!=o.Word)}var xg=class extends dg{nextMatch(e,t,n){let r=_g(this.spec,e,n,e.doc.length).next();return r.done&&(r=_g(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=_g(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=_g(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=_g(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},Sg=S.define(),Cg=S.define(),wg=w.define({create(e){return new Tg(Lg(e).create(),null)},update(e,t){for(let n of t.effects)n.is(Sg)?e=new Tg(n.value.create(),e.panel):n.is(Cg)&&(e=new Tg(e.query,n.value?Ig:null));return e},provide:e=>ne.from(e,e=>e.panel)}),Tg=class{constructor(e,t){this.query=e,this.panel=t}},Eg=_.mark({class:`cm-searchMatch`}),Dg=_.mark({class:`cm-searchMatch cm-searchMatch-selected`}),Og=V.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(wg))}update(e){let t=e.state.field(wg);(t!=e.startState.field(wg)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return _.none;let{view:r}=this,i=new n;for(let t=0,n=r.visibleRanges,a=n.length;t<a;t++){let{from:o,to:s}=n[t];for(;t<a-1&&s>n[t+1].from-500;)s=n[++t].to;e.highlight(r.state,o,s,(e,t)=>{let n=r.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,n?Dg:Eg)})}return i.finish()}},{decorations:e=>e.decorations});function kg(e){return t=>{let n=t.state.field(wg,!1);return n&&n.query.spec.valid?e(t,n):Bg(t)}}var Ag=kg((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=G.single(r.from,r.to),a=e.state.facet(lg);return e.dispatch({selection:i,effects:[qg(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),zg(e),!0}),jg=kg((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=G.single(i.from,i.to),o=e.state.facet(lg);return e.dispatch({selection:a,effects:[qg(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),zg(e),!0}),Mg=kg((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:G.create(n.map(e=>G.range(e.from,e.to))),userEvent:`select.search.matches`}),!0)}),Ng=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],o=0;for(let t=new Vh(e.doc,e.sliceDoc(r,i));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(o=a.length),a.push(G.range(t.value.from,t.value.to))}return t(e.update({selection:G.create(a,o),userEvent:`select.search.matches`})),!0},Pg=kg((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let o=a,s=[],c,l,u=[];o.precise?o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(z.announce.of(n.phrase(`replaced match on line $`,n.doc.lineAt(r).number)+`.`))):o=t.nextMatch(n,o.from,o.to);let d=e.state.changes(s);return o&&(c=G.single(o.from,o.to).map(d),u.push(qg(e,o)),u.push(n.facet(lg).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:u,userEvent:`input.replace`}),!0}),Fg=kg((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:a}=r;a&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase(`replaced $ matches`,n.length)+`.`;return e.dispatch({changes:n,effects:z.announce.of(r),userEvent:`input.replace.all`}),!0});function Ig(e){return e.state.facet(lg).createPanel(e)}function Lg(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?``:e.sliceDoc(n.from,n.to);if(t&&!r)return t;let i=e.facet(lg);return new ug({search:t?.literal??i.literal?r:r.replace(/\n/g,`\\n`),caseSensitive:t?.caseSensitive??i.caseSensitive,literal:t?.literal??i.literal,regexp:t?.regexp??i.regexp,wholeWord:t?.wholeWord??i.wholeWord})}function Rg(e){let t=_e(e,Ig);return t&&t.dom.querySelector(`[main-field]`)}function zg(e){let t=Rg(e);t&&t==e.root.activeElement&&t.select()}var Bg=e=>{let t=e.state.field(wg,!1);if(t&&t.panel){let n=Rg(e);if(n&&n!=e.root.activeElement){let r=Lg(e.state,t.query.spec);r.valid&&e.dispatch({effects:Sg.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Cg.of(!0),t?Sg.of(Lg(e.state,t.query.spec)):S.appendConfig.of(Yg)]});return!0},Vg=e=>{let t=e.state.field(wg,!1);if(!t||!t.panel)return!1;let n=_e(e,Ig);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Cg.of(!1)}),!0},Hg=[{key:`Mod-f`,run:Bg,scope:`editor search-panel`},{key:`F3`,run:Ag,shift:jg,scope:`editor search-panel`,preventDefault:!0},{key:`Mod-g`,run:Ag,shift:jg,scope:`editor search-panel`,preventDefault:!0},{key:`Escape`,run:Vg,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:Ng},{key:`Mod-Alt-g`,run:Xh},{key:`Mod-d`,run:cg,preventDefault:!0}],Ug=class{constructor(e){this.view=e;let t=this.query=e.state.field(wg).query.spec;this.commit=this.commit.bind(this),this.searchField=Ke(`input`,{value:t.search,placeholder:Wg(e,`Find`),"aria-label":Wg(e,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ke(`input`,{value:t.replace,placeholder:Wg(e,`Replace`),"aria-label":Wg(e,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit}),this.caseField=Ke(`input`,{type:`checkbox`,name:`case`,form:``,checked:t.caseSensitive,onchange:this.commit}),this.reField=Ke(`input`,{type:`checkbox`,name:`re`,form:``,checked:t.regexp,onchange:this.commit}),this.wordField=Ke(`input`,{type:`checkbox`,name:`word`,form:``,checked:t.wholeWord,onchange:this.commit});function n(e,t,n){return Ke(`button`,{class:`cm-button`,name:e,onclick:t,type:`button`},n)}this.dom=Ke(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,n(`next`,()=>Ag(e),[Wg(e,`next`)]),n(`prev`,()=>jg(e),[Wg(e,`previous`)]),n(`select`,()=>Mg(e),[Wg(e,`all`)]),Ke(`label`,null,[this.caseField,Wg(e,`match case`)]),Ke(`label`,null,[this.reField,Wg(e,`regexp`)]),Ke(`label`,null,[this.wordField,Wg(e,`by word`)]),...e.state.readOnly?[]:[Ke(`br`),this.replaceField,n(`replace`,()=>Pg(e),[Wg(e,`replace`)]),n(`replaceAll`,()=>Fg(e),[Wg(e,`replace all`)])],Ke(`button`,{name:`close`,onclick:()=>Vg(e),"aria-label":Wg(e,`close`),type:`button`},[`×`])])}commit(){let e=new ug({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Sg.of(e)}))}keydown(e){he(this.view,e,`search-panel`)?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?jg:Ag)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Pg(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(Sg)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(lg).top}};function Wg(e,t){return e.state.phrase(t)}var Gg=30,Kg=/[\s\.,:;?!]/;function qg(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-Gg),o=Math.min(i,n+Gg),s=e.state.sliceDoc(a,o);if(a!=r.from){for(let e=0;e<Gg;e++)if(!Kg.test(s[e+1])&&Kg.test(s[e])){s=s.slice(e);break}}if(o!=i){for(let e=s.length-1;e>s.length-Gg;e--)if(!Kg.test(s[e-1])&&Kg.test(s[e])){s=s.slice(0,e);break}}return z.announce.of(`${e.state.phrase(`current match`)}. ${s} ${e.state.phrase(`on line`)} ${r.number}.`)}var Jg=z.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}}),Yg=[wg,E.low(Og),Jg],Xg=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=d(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(r_(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function Zg(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function Qg(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=Zg(t)+Zg(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function $g(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:Qg(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function e_(e,t){return n=>{for(let t=d(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var t_=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function n_(e){return e.selection.main.from}function r_(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var i_=H.define();function a_(e,t,n,r){let{main:i}=e.selection,a=n-i.from,o=r-i.from;return{...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+a,s.from+o)!=e.sliceDoc(n,r))return{range:s};let c=e.toText(t);return{changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:c},range:G.cursor(s.from+a+c.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var o_=new WeakMap;function s_(e){if(!Array.isArray(e))return e;let t=o_.get(e);return t||o_.set(e,t=$g(e)),t}var c_=S.define(),l_=S.define(),u_=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=g(e,t),r=b(n);this.chars.push(n);let i=e.slice(t,t+r),a=i.toUpperCase();this.folded.push(g(a==i?i.toLowerCase():a,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:i,byWord:a}=this;if(t.length==1){let r=g(e,0),i=b(r),a=i==e.length?0:-100;if(r!=t[0]){if(r==n[0])a+=-200;else return null}return this.ret(a,[0,i])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,c=0;if(o<0){for(let i=0,a=Math.min(e.length,200);i<a&&c<s;){let a=g(e,i);(a==t[c]||a==n[c])&&(r[c++]=i),i+=b(a)}if(c<s)return null}let l=0,u=0,d=!1,f=0,p=-1,m=-1,h=/[a-z]/.test(e),_=!0;for(let r=0,c=Math.min(e.length,200),v=0;r<c&&u<s;){let c=g(e,r);o<0&&(l<s&&c==t[l]&&(i[l++]=r),f<s&&(c==t[f]||c==n[f]?(f==0&&(p=r),m=r+1,f++):f=0));let y,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(y=R(c))==y.toLowerCase()?y==y.toUpperCase()?0:2:1;(!r||x==1&&h||v==0&&x!=0)&&(t[u]==c||n[u]==c&&(d=!0)?a[u++]=r:a.length&&(_=!1)),v=x,r+=b(c)}return u==s&&a[0]==0&&_?this.result(-100+(d?-200:0),a,e):f==s&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):f==s?this.ret(-900-e.length,[p,m]):u==s?this.result(-100+(d?-200:0)+-700+(_?0:-1100),a,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?b(g(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return this.ret(e-n.length,r)}},d_=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},f_=u.define({combine(e){return j(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:m_,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>p_(e(n),t(n)),optionClass:(e,t)=>n=>p_(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function p_(e,t){return e?t?e+` `+t:e:t}function m_(e,t,n,r,i,a){let o=e.textDirection==B.RTL,s=o,c=!1,l=`top`,u,d,f=t.left-i.left,p=i.right-t.right,m=r.right-r.left,h=r.bottom-r.top;if(s&&f<Math.min(m,p)?s=!1:!s&&p<Math.min(m,f)&&(s=!0),m<=(s?f:p))u=Math.max(i.top,Math.min(n.top,i.bottom-h))-t.top,d=Math.min(400,s?f:p);else{c=!0,d=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=h||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,_=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${d/_}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var h_=S.define();function g_(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function __(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}var v_=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(f_);this.optionContent=g_(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=__(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:h_.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(f_).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:l_.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;n.open&&n.open.options==r||(this.range=__(r.length,i,e.state.facet(f_).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=__(t.options.length,t.selected,this.view.state.facet(f_).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>de(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&b_(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(f_).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0)){if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function y_(e,t){return n=>new v_(n,e,t)}function b_(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function x_(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function S_(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(f_);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new t_(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new d_(n):new u_(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new t_(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):x_(e.completion)>x_(c)&&(s[s.length-1]=e),c=e.completion}return s}var C_=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,O_(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=S_(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(f_).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,O_(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:L_,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},w_=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(k_,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(f_),i=(r.override||n.languageDataAt(`autocomplete`,n_(n)).map(s_)).map(e=>(this.active.find(t=>t.source==e)||new j_(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(P_));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!T_(i,this.active)||o?a=C_.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new j_(e.source,0):e));for(let e of t.effects)e.is(h_)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?E_:D_}};function T_(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var E_={"aria-autocomplete":`list`},D_={};function O_(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var k_=[];function A_(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(i_);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var j_=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=A_(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(c_))i=new e(i.source,1,n.value);else if(n.is(l_))i=new e(i.source,0);else if(n.is(P_))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(n_(e.state))}},M_=class e extends j_{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=n_(t.state);if(o>a||!r||n&2&&(n_(t.startState)==this.from||o<this.limit))return new j_(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return N_(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new Xg(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??n_(t.state)):new j_(this.source,1,this.explicit)}map(t){if(t.empty)return this;let n=this.result.map?this.result.map(this.result,t):this.result;return n?new e(this.source,this.explicit,t.mapPos(this.limit),n,t.mapPos(this.from),t.mapPos(this.to,1)):new j_(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function N_(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):r_(e,!0).test(i)}var P_=S.define({map(e,t){return e.map(e=>e.map(t))}}),F_=w.define({create(){return w_.start()},update(e,t){return e.update(t)},provide:e=>[Ve.from(e,e=>e.tooltip),z.contentAttributes.from(e,e=>e.attrs)]});function I_(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(F_).active.find(e=>e.source==t.source);return r instanceof M_&&(typeof n==`string`?e.dispatch({...a_(e.state,n,r.from,r.to),annotations:i_.of(t.completion)}):n(e,t.completion,r.from,r.to),!0)}var L_=y_(F_,I_);function R_(e,t=`option`){return n=>{let r=n.state.field(F_,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(f_).interactionDelay)return!1;let i=1,a;t==`page`&&(a=ie(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:h_.of(s)}),!0}}var z_=e=>{let t=e.state.field(F_,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(f_).interactionDelay?!1:I_(e,t.open.options[t.open.selected])},B_=e=>e.state.field(F_,!1)?(e.dispatch({effects:c_.of(!0)}),!0):!1,V_=e=>{let t=e.state.field(F_,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:l_.of(null)}),!0)},H_=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},U_=50,W_=1e3,G_=V.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(F_).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(F_),n=e.state.facet(f_);if(!e.selectionSet&&!e.docChanged&&e.startState.field(F_)==t)return;let r=e.transactions.some(e=>{let t=A_(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>U_&&Date.now()-n.time>W_){for(let e of n.context.abortListeners)try{e()}catch(e){de(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(c_)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(F_);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(f_).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new Xg(t,n_(t),e.explicit,this.view),r=new H_(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:l_.of(null)}),de(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(f_).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(f_),n=this.view.state.field(F_);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=n_(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new M_(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending){if(i.done==null){let n=new j_(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:P_.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(F_,!1);if(t&&t.tooltip&&this.view.state.facet(f_).closeOnBlur){let n=t.open&&ie(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:l_.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:c_.of(!1)}),20),this.composing=0}}}),K_=typeof navigator==`object`&&/Win/.test(navigator.platform),q_=E.highest(z.domEventHandlers({keydown(e,t){let n=t.state.field(F_,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||!e.key||e.key.length>1||e.ctrlKey&&!(K_&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&I_(t,r),!1}})),J_=z.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`,cursor:`pointer`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),Y_=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},X_=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(t){let n=t.mapPos(this.from,-1,c.TrackDel),r=t.mapPos(this.to,1,c.TrackDel);return n==null||r==null?null:new e(this.field,n,r)}},Z_=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),o=/^\s*/.exec(a.text)[0];for(let a of this.lines){if(r.length){let r=o,s=/^\t*/.exec(a)[0].length;for(let n=0;n<s;n++)r+=e.facet(t);i.push(n+r.length-s),a=r+a.slice(s)}r.push(a),n+=a.length+1}return{text:r,ranges:this.fieldPositions.map(e=>new X_(e.field,i[e.line]+e.from,i[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1;t===0&&(t=1e9);let c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new Y_(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},Q_=_.widget({widget:new class extends k{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),$_=_.mark({class:`cm-snippetField`}),ev=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=_.set(e.map(e=>(e.from==e.to?Q_:$_).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},tv=S.define({map(e,t){return e&&e.map(t)}}),nv=S.define(),rv=w.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(tv))return n.value;if(n.is(nv)&&e)return new ev(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>z.decorations.from(e,e=>e?e.deco:_.none)});function iv(e,t){return G.create(e.filter(e=>e.field==t).map(e=>G.range(e.from,e.to)))}function av(e){let t=Z_.parse(e);return(e,n,r,i)=>{let{text:a,ranges:o}=t.instantiate(e.state,r),{main:s}=e.state.selection,c={changes:{from:r,to:i==s.from?s.to:i,insert:O.of(a)},scrollIntoView:!0,annotations:n?[i_.of(n),f.userEvent.of(`input.complete`)]:void 0};if(o.length&&(c.selection=iv(o,0)),o.some(e=>e.field>0)){let t=new ev(o,0),n=c.effects=[tv.of(t)];e.state.field(rv,!1)===void 0&&n.push(S.appendConfig.of([rv,lv,dv,J_]))}e.dispatch(e.state.update(c))}}function ov(e){return({state:t,dispatch:n})=>{let r=t.field(rv,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:iv(r.ranges,i),effects:tv.of(a?null:new ev(r.ranges,i)),scrollIntoView:!0})),!0}}var sv=[{key:`Tab`,run:ov(1),shift:ov(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(rv,!1)?(t(e.update({effects:tv.of(null)})),!0):!1}],cv=u.define({combine(e){return e.length?e[0]:sv}}),lv=E.highest(ze.compute([cv],e=>e.facet(cv)));function uv(e,t){return{...t,apply:av(e)}}var dv=z.domEventHandlers({mousedown(e,t){let n=t.state.field(rv,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:iv(n.ranges,i.field),effects:tv.of(n.ranges.some(e=>e.field>i.field)?new ev(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),fv={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},pv=S.define({map(e,t){return t.mapPos(e,-1,c.TrackAfter)??void 0}}),mv=new class extends ye{};mv.startSide=1,mv.endSide=-1;var hv=w.define({create(){return xe.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(pv)&&(e=e.update({add:[mv.range(n.value,n.value+1)]}));return e}});function gv(){return[xv,hv]}var _v=`()[]{}<>«»»«[]{}`;function vv(e){for(let t=0;t<16;t+=2)if(_v.charCodeAt(t)==e)return _v.charAt(t+1);return R(e<128?e:e+1)}function yv(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||fv}var bv=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),xv=z.inputHandler.of((e,t,n,r)=>{if((bv?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&b(g(r,0))==1||t!=i.from||n!=i.to)return!1;let a=Cv(e.state,r);return a?(e.dispatch(a),!0):!1}),Sv=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=yv(e,e.selection.main.head).brackets||fv.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=Ev(e.doc,t.head);for(let i of n)if(i==r&&Tv(e.doc,t.head)==vv(g(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:G.cursor(t.head-i.length)}}return{range:r=t}});return r||t(e.update(i,{scrollIntoView:!0,userEvent:`delete.backward`})),!r}}];function Cv(e,t){let n=yv(e,e.selection.main.head),r=n.brackets||fv.brackets;for(let i of r){let a=vv(g(i,0));if(t==i)return a==i?kv(e,i,r.indexOf(i+i+i)>-1,n):Dv(e,i,a,n.before||fv.before);if(t==a&&wv(e,e.selection.main.from))return Ov(e,i,a)}return null}function wv(e,t){let n=!1;return e.field(hv).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function Tv(e,t){let n=e.sliceString(t,t+2);return n.slice(0,b(g(n,0)))}function Ev(e,t){let n=e.sliceString(t-2,t);return b(g(n,0))==n.length?n:n.slice(1)}function Dv(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:pv.of(a.to+t.length),range:G.range(a.anchor+t.length,a.head+t.length)};let o=Tv(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:pv.of(a.head+t.length),range:G.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function Ov(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&Tv(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:G.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:`input.type`})}function kv(e,t,n,r){let i=r.stringPrefixes||fv.stringPrefixes,a=null,s=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:pv.of(r.to+t.length),range:G.range(r.anchor+t.length,r.head+t.length)};let s=r.head,c=Tv(e.doc,s),l;if(c==t){if(Av(e,s))return{changes:{insert:t+t,from:s},effects:pv.of(s+t.length),range:G.cursor(s+t.length)};if(wv(e,s)){let r=n&&e.sliceDoc(s,s+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:s,to:s+r.length,insert:r},range:G.cursor(s+r.length)}}}else if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(l=Mv(e,s-2*t.length,i))>-1&&Av(e,l))return{changes:{insert:t+t+t+t,from:s},effects:pv.of(s+t.length),range:G.cursor(s+t.length)};else if(e.charCategorizer(s)(c)!=o.Word&&Mv(e,s,i)>-1&&!jv(e,s,t,i))return{changes:{insert:t+t,from:s},effects:pv.of(s+t.length),range:G.cursor(s+t.length)};return{range:a=r}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:`input.type`})}function Av(e,t){let n=d(e).resolveInner(t+1);return n.parent&&n.from==t}function jv(e,t,n,r){let i=d(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function Mv(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=o.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=o.Word)return n}return-1}function Nv(e={}){return[q_,F_,f_.of(e),G_,Fv,J_]}var Pv=[{key:`Ctrl-Space`,run:B_},{mac:"Alt-`",run:B_},{mac:`Alt-i`,run:B_},{key:`Escape`,run:V_},{key:`ArrowDown`,run:R_(!0)},{key:`ArrowUp`,run:R_(!1)},{key:`PageDown`,run:R_(!0,`page`)},{key:`PageUp`,run:R_(!1,`page`)},{key:`Enter`,run:z_}],Fv=E.highest(ze.computeN([f_],e=>e.facet(f_).defaultKeymap?[Pv]:[])),Iv=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},Lv=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(t,r,i){let a=i.facet(Zv).markerFilter;a&&(t=a(t,i));let o=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),s=new n,c=[],l=0,u=i.doc.iter(),d=0,f=i.doc.length;for(let e=0;;){let t=e==o.length?null:o[e];if(!t&&!c.length)break;let n,r;if(c.length)n=l,r=c.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else{if(n=t.from,n>f)break;r=t.to,c.push(t),e++}for(;e<o.length;){let t=o[e];if(t.from==n&&(t.to>t.from||t.to==n))c.push(t),e++,r=Math.min(t.to,r);else{r=Math.min(t.from,r);break}}r=Math.min(r,f);let i=!1;if(c.some(e=>e.from==n&&(e.to==r||r==f))&&(i=n==r,!i&&r-n<10)){let e=n-(d+u.value.length);e>0&&(u.next(e),d=n);for(let e=n;;){if(e>=r){i=!0;break}if(!u.lineBreak&&d+u.value.length>e)break;e=d+u.value.length,d+=u.value.length,u.next()}}let a=cy(c);if(i)s.add(n,n,_.widget({widget:new ty(a),diagnostics:c.slice()}));else{let e=c.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);s.add(n,r,_.mark({class:`cm-lintRange cm-lintRange-`+a+e,diagnostics:c.slice(),inclusiveEnd:c.some(e=>e.to>r)}))}if(l=r,l==f)break;for(let e=0;e<c.length;e++)c[e].to<=l&&c.splice(e--,1)}let p=s.finish();return new e(p,r,Rv(p))}};function Rv(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&i.diagnostics.indexOf(t)<0)){if(!r)r=new Iv(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;else r=new Iv(r.from,n,r.diagnostic)}}),r}function zv(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Zv).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(Vv))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function Bv(e,t){return e.field(Wv,!1)?t:t.concat(S.appendConfig.of(uy))}var Vv=S.define(),Hv=S.define(),Uv=S.define(),Wv=w.define({create(){return new Lv(_.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=Rv(n,e.selected.diagnostic,i)||Rv(n,null,i)}!n.size&&i&&t.state.facet(Zv).autoPanel&&(i=null),e=new Lv(n,i,r)}for(let n of t.effects)if(n.is(Vv)){let r=t.state.facet(Zv).autoPanel?n.value.length?ry.open:null:e.panel;e=Lv.init(n.value,r,t.state)}else n.is(Hv)?e=new Lv(e.diagnostics,n.value?ry.open:null,e.selected):n.is(Uv)&&(e=new Lv(e.diagnostics,e.panel,n.value));return e},provide:e=>[ne.from(e,e=>e.panel),z.decorations.from(e,e=>e.diagnostics)]}),Gv=_.mark({class:`cm-lintRange cm-lintRange-active`});function Kv(e,t,n){let{diagnostics:r}=e.state.field(Wv),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=s.diagnostics,a=e,o=r,!1});let s=e.state.facet(Zv).tooltipFilter;return i&&s&&(i=s(i,e.state)),i?{pos:a,end:o,above:!0,create(){return{dom:qv(e,i)}}}:null}function qv(e,t){return Ke(`ul`,{class:`cm-tooltip-lint`},t.map(t=>ey(e,t,!1)))}var Jv=e=>{let t=e.state.field(Wv,!1);t&&t.panel||e.dispatch({effects:Bv(e.state,[Hv.of(!0)])});let n=_e(e,ry.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),!0},Yv=e=>{let t=e.state.field(Wv,!1);return!t||!t.panel?!1:(e.dispatch({effects:Hv.of(!1)}),!0)},Xv=[{key:`Mod-Shift-m`,run:Jv,preventDefault:!0},{key:`F8`,run:t=>{let n=t.state.field(Wv,!1);if(!n)return!1;let r=t.state.selection.main,i=Rv(n.diagnostics,null,r.to+1);return!i&&(i=Rv(n.diagnostics,null,0),!i||i.from==r.from&&i.to==r.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),e(t,i.from,1,{tooltip:ly,until:e=>e.docChanged||e.newSelection.main.head<i.from||e.newSelection.main.head>i.to}),!0)}}],Zv=u.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>e!=null),...j(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Qv,tooltipFilter:Qv,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function Qv(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function $v(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``)}return t}function ey(e,t,n){let r=n?$v(t.actions):[];return Ke(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},Ke(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=!1,o=r=>{if(r.preventDefault(),a)return;a=!0;let i=Rv(e.state.field(Wv).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),Ke(`u`,s.slice(c,c+1)),s.slice(c+1)],u=n.markClass?` `+n.markClass:``;return Ke(`button`,{type:`button`,class:`cm-diagnosticAction`+u,onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&Ke(`div`,{class:`cm-diagnosticSource`},t.source))}var ty=class extends k{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Ke(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},ny=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=ey(e,t,!0),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`)}},ry=class e{constructor(e){this.view=e,this.items=[];let t=t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.keyCode==27)Yv(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=$v(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=Rv(this.view.state.field(Wv).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}else return;t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=Ke(`ul`,{tabIndex:0,role:`listbox`,"aria-label":this.view.state.phrase(`Diagnostics`),onkeydown:t,onclick:n}),this.dom=Ke(`div`,{class:`cm-panel-lint`},this.list,Ke(`button`,{type:`button`,name:`close`,"aria-label":this.view.state.phrase(`close`),onclick:()=>Yv(this.view)},`×`)),this.update()}get selectedIndex(){let e=this.view.state.field(Wv).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Wv),n=0,r=!1,i=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(s=new ny(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new ny(this.view,{from:-1,to:-1,severity:`info`,message:this.view.state.phrase(`No diagnostics`)})),r=!0),i?(this.list.setAttribute(`aria-activedescendant`,i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Rv(this.view.state.field(Wv).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Uv.of(t)})}static open(t){return new e(t)}};function iy(e,t=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function ay(e){return iy(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,`width="6" height="3"`)}var oy=z.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:ay(`#f11`)},".cm-lintRange-warning":{backgroundImage:ay(`orange`)},".cm-lintRange-info":{backgroundImage:ay(`#999`)},".cm-lintRange-hint":{backgroundImage:ay(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:`#86714a80`},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:`#2e343e`}}});function sy(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function cy(e){let t=`hint`,n=1;for(let r of e){let e=sy(r.severity);e>n&&(n=e,t=r.severity)}return t}var ly=Se(Kv,{hideOn:zv}),uy=[Wv,z.decorations.compute([Wv],e=>{let{selected:t,panel:n}=e.field(Wv);return!t||!n||t.from==t.to?_.none:_.set([Gv.range(t.from,t.to)])}),ly,oy],dy=function(e){e===void 0&&(e={});var n=e.crosshairCursor,r=n!==void 0&&n,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(Sv)),e.defaultKeymap!==!1&&(i=i.concat(Rh)),e.searchKeymap!==!1&&(i=i.concat(Hg)),e.historyKeymap!==!1&&(i=i.concat(Xp)),e.foldKeymap!==!1&&(i=i.concat(M)),e.completionKeymap!==!1&&(i=i.concat(Pv)),e.lintKeymap!==!1&&(i=i.concat(Xv));var a=[];return e.lineNumbers!==!1&&a.push(le()),e.highlightActiveLineGutter!==!1&&a.push(Fe()),e.highlightSpecialChars!==!1&&a.push(se()),e.history!==!1&&a.push(jp()),e.foldGutter!==!1&&a.push(ae()),e.drawSelection!==!1&&a.push(Le()),e.dropCursor!==!1&&a.push(Ee()),e.allowMultipleSelections!==!1&&a.push(F.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&a.push(T()),e.syntaxHighlighting!==!1&&a.push(D(fe,{fallback:!0})),e.bracketMatching!==!1&&a.push(ke()),e.closeBrackets!==!1&&a.push(gv()),e.autocompletion!==!1&&a.push(Nv()),e.rectangularSelection!==!1&&a.push(we()),r!==!1&&a.push(U()),e.highlightActiveLine!==!1&&a.push(Oe()),e.highlightSelectionMatches!==!1&&a.push($h()),e.tabSize&&typeof e.tabSize==`number`&&a.push(t.of(` `.repeat(e.tabSize))),a.concat([ze.of(i.flat())]).filter(Boolean)},fy=`#e5c07b`,py=`#e06c75`,my=`#56b6c2`,hy=`#ffffff`,gy=`#abb2bf`,_y=`#7d8799`,vy=`#61afef`,yy=`#98c379`,by=`#d19a66`,xy=`#c678dd`,Sy=`#21252b`,Cy=`#2c313a`,wy=`#282c34`,Ty=`#353a42`,Ey=`#3E4451`,Dy=`#528bff`,Oy=z.theme({"&":{color:gy,backgroundColor:wy},".cm-content":{caretColor:Dy},".cm-cursor, .cm-dropCursor":{borderLeftColor:Dy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Ey},".cm-panels":{backgroundColor:Sy,color:gy},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid #457dff`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:`#6199ff2f`},".cm-activeLine":{backgroundColor:`#6699ff0b`},".cm-selectionMatch":{backgroundColor:`#aafe661a`},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:`#bad0f847`},".cm-gutters":{backgroundColor:wy,color:_y,border:`none`},".cm-activeLineGutter":{backgroundColor:Cy},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:Ty},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ty,borderBottomColor:Ty},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Cy,color:gy}}},{dark:!0}),ky=re.define([{tag:K.keyword,color:xy},{tag:[K.name,K.deleted,K.character,K.propertyName,K.macroName],color:py},{tag:[K.function(K.variableName),K.labelName],color:vy},{tag:[K.color,K.constant(K.name),K.standard(K.name)],color:by},{tag:[K.definition(K.name),K.separator],color:gy},{tag:[K.typeName,K.className,K.number,K.changed,K.annotation,K.modifier,K.self,K.namespace],color:fy},{tag:[K.operator,K.operatorKeyword,K.url,K.escape,K.regexp,K.link,K.special(K.string)],color:my},{tag:[K.meta,K.comment],color:_y},{tag:K.strong,fontWeight:`bold`},{tag:K.emphasis,fontStyle:`italic`},{tag:K.strikethrough,textDecoration:`line-through`},{tag:K.link,color:_y,textDecoration:`underline`},{tag:K.heading,fontWeight:`bold`,color:py},{tag:[K.atom,K.bool,K.special(K.variableName)],color:by},{tag:[K.processingInstruction,K.string,K.inserted],color:yy},{tag:K.invalid,color:hy}]),Ay=[Oy,D(ky)],jy=z.theme({"&":{backgroundColor:`#fff`}},{dark:!1}),My=function(e){e===void 0&&(e={});var t=e,n=t.indentWithTab,r=n===void 0||n,i=t.editable,a=i===void 0||i,o=t.readOnly,s=o!==void 0&&o,c=t.theme,l=c===void 0?`light`:c,u=t.placeholder,d=u===void 0?``:u,f=t.basicSetup,p=f===void 0||f,m=[];switch(r&&m.unshift(ze.of([zh])),p&&(typeof p==`boolean`?m.unshift(dy()):m.unshift(dy(p))),d&&m.unshift(Ae(d)),l){case`light`:m.push(jy);break;case`dark`:m.push(Ay);break;case`none`:break;default:m.push(l)}return a===!1&&m.push(z.editable.of(!1)),s&&m.push(F.readOnly.of(!0)),[...m]},Ny=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}),Py=class{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(e=>{try{e()}catch(e){console.error(`TimeoutLatch callback error:`,e)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}},Fy=class{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}},Iy=null,Ly=()=>typeof window>`u`?new Fy:(Iy||=new Fy,Iy),Ry=z.theme({"& .cm-scroller":{height:`100% !important`}}),zy=null,By=null;function Vy(e,t,n,r,i,a){if(!e&&!t&&!n&&!r&&!i&&!a)return null;var o=JSON.stringify({height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:a});return o===zy||(zy=o,By=z.theme({"&":{height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:a}})),By}var Hy=H.define(),Uy=200,Wy=[];function Gy(e){var t=e.value,n=e.selection,r=e.onChange,i=e.onStatistics,a=e.onCreateEditor,o=e.onUpdate,s=e.extensions,c=s===void 0?Wy:s,l=e.autoFocus,u=e.theme,d=u===void 0?`light`:u,f=e.height,p=f===void 0?null:f,m=e.minHeight,h=m===void 0?null:m,g=e.maxHeight,_=g===void 0?null:g,v=e.width,y=v===void 0?null:v,b=e.minWidth,x=b===void 0?null:b,C=e.maxWidth,w=C===void 0?null:C,T=e.placeholder,E=T===void 0?``:T,D=e.editable,O=D===void 0||D,k=e.readOnly,A=k!==void 0&&k,j=e.indentWithTab,M=j===void 0||j,N=e.basicSetup,P=N===void 0||N,I=e.root,L=e.initialState,R=(0,q.useState)(),ee=R[0],B=R[1],V=(0,q.useState)(),te=V[0],ne=V[1],re=(0,q.useState)(),ie=re[0],ae=re[1],H=(0,q.useState)(()=>({current:null}))[0],oe=(0,q.useState)(()=>({current:null}))[0],se=Vy(p,h,_,y,x,w),ce=z.updateListener.of(e=>{e.docChanged&&typeof r==`function`&&!e.transactions.some(e=>e.annotation(Hy))&&(H.current?H.current.reset():(H.current=new Py(()=>{if(oe.current){var e=oe.current;oe.current=null,e()}H.current=null},Uy),Ly().add(H.current)),r(e.state.doc.toString(),e)),i&&i(Ny(e))}),le=My({theme:d,editable:O,readOnly:A,placeholder:E,indentWithTab:M,basicSetup:P}),U=[ce,...se?[se]:[],Ry,...le];return o&&typeof o==`function`&&U.push(z.updateListener.of(o)),U=U.concat(c),(0,q.useLayoutEffect)(()=>{if(ee&&!ie){var e={doc:t,selection:n,extensions:U},r=L?F.fromJSON(L.json,e,L.fields):F.create(e);if(ae(r),!te){var i=new z({state:r,parent:ee,root:I});ne(i),a&&a(i,r)}}return()=>{te&&(ae(void 0),ne(void 0))}},[ee,ie]),(0,q.useEffect)(()=>{e.container&&B(e.container)},[e.container]),(0,q.useEffect)(()=>()=>{te&&(te.destroy(),ne(void 0)),H.current&&=(H.current.cancel(),null)},[te]),(0,q.useEffect)(()=>{l&&te&&te.focus()},[l,te]),(0,q.useEffect)(()=>{te&&te.dispatch({effects:S.reconfigure.of(U)})},[d,c,p,h,_,y,x,w,E,O,A,M,P,r,o]),(0,q.useEffect)(()=>{if(t!==void 0){var e=te?te.state.doc.toString():``;if(te&&t!==e){var n=H.current&&!H.current.isDone,r=()=>{te&&t!==te.state.doc.toString()&&te.dispatch({changes:{from:0,to:te.state.doc.toString().length,insert:t||``},annotations:[Hy.of(!0)]})};n?oe.current=r:r()}}},[t,te]),{state:ie,setState:ae,view:te,setView:ne,container:ee,setContainer:B}}var Ky=[`className`,`value`,`selection`,`extensions`,`onChange`,`onStatistics`,`onCreateEditor`,`onUpdate`,`autoFocus`,`theme`,`height`,`minHeight`,`maxHeight`,`width`,`minWidth`,`maxWidth`,`basicSetup`,`placeholder`,`indentWithTab`,`editable`,`readOnly`,`root`,`initialState`],qy=(0,q.forwardRef)((e,t)=>{var n=e.className,r=e.value,i=r===void 0?``:r,a=e.selection,o=e.extensions,s=o===void 0?[]:o,c=e.onChange,l=e.onStatistics,u=e.onCreateEditor,d=e.onUpdate,f=e.autoFocus,p=e.theme,m=p===void 0?`light`:p,h=e.height,g=e.minHeight,_=e.maxHeight,v=e.width,y=e.minWidth,b=e.maxWidth,x=e.basicSetup,S=e.placeholder,C=e.indentWithTab,w=e.editable,T=e.readOnly,E=e.root,D=e.initialState,O=mp(e,Ky),k=(0,q.useRef)(null),A=Gy({root:E,value:i,autoFocus:f,theme:m,height:h,minHeight:g,maxHeight:_,width:v,minWidth:y,maxWidth:b,basicSetup:x,placeholder:S,indentWithTab:C,editable:w,readOnly:T,selection:a,onChange:c,onStatistics:l,onCreateEditor:u,onUpdate:d,extensions:s,initialState:D}),j=A.state,M=A.view,N=A.container,P=A.setContainer;(0,q.useImperativeHandle)(t,()=>({editor:k.current,state:j,view:M}),[k,N,j,M]);var F=(0,q.useCallback)(e=>{k.current=e,P(e)},[P]);if(typeof i!=`string`)throw Error(`value must be typeof string but got `+typeof i);var I=typeof m==`string`?`cm-theme-`+m:`cm-theme`;return(0,J.jsx)(`div`,pp({ref:F,className:``+I+(n?` `+n:``)},O))});qy.displayName=`CodeMirror`;function Jy(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Yy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zy={};function Qy(e,t){return((t||Zy).jsx?Xy:Yy).test(e)}var $y=/[ \t\n\f\r]/g;function eb(e){return typeof e==`object`?e.type===`text`&&tb(e.value):tb(e)}function tb(e){return e.replace($y,``)===``}var nb=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};nb.prototype.normal={},nb.prototype.property={},nb.prototype.space=void 0;function rb(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new nb(n,r,t)}function ib(e){return e.toLowerCase()}var ab=class{constructor(e,t){this.attribute=t,this.property=e}};ab.prototype.attribute=``,ab.prototype.booleanish=!1,ab.prototype.boolean=!1,ab.prototype.commaOrSpaceSeparated=!1,ab.prototype.commaSeparated=!1,ab.prototype.defined=!1,ab.prototype.mustUseProperty=!1,ab.prototype.number=!1,ab.prototype.overloadedBoolean=!1,ab.prototype.property=``,ab.prototype.spaceSeparated=!1,ab.prototype.space=void 0;var ob=tt({boolean:()=>cb,booleanish:()=>lb,commaOrSpaceSeparated:()=>pb,commaSeparated:()=>fb,number:()=>X,overloadedBoolean:()=>ub,spaceSeparated:()=>db}),sb=0,cb=mb(),lb=mb(),ub=mb(),X=mb(),db=mb(),fb=mb(),pb=mb();function mb(){return 2**++sb}var hb=Object.keys(ob),gb=class extends ab{constructor(e,t,n,r){let i=-1;if(super(e,t),_b(this,`space`,r),typeof n==`number`)for(;++i<hb.length;){let e=hb[i];_b(this,hb[i],(n&ob[e])===ob[e])}}};gb.prototype.defined=!0;function _b(e,t,n){n&&(e[t]=n)}function vb(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new gb(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ib(r)]=r,n[ib(a.attribute)]=r}return new nb(t,n,e.space)}var yb=vb({properties:{ariaActiveDescendant:null,ariaAtomic:lb,ariaAutoComplete:null,ariaBusy:lb,ariaChecked:lb,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:db,ariaCurrent:null,ariaDescribedBy:db,ariaDetails:null,ariaDisabled:lb,ariaDropEffect:db,ariaErrorMessage:null,ariaExpanded:lb,ariaFlowTo:db,ariaGrabbed:lb,ariaHasPopup:null,ariaHidden:lb,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:db,ariaLevel:X,ariaLive:null,ariaModal:lb,ariaMultiLine:lb,ariaMultiSelectable:lb,ariaOrientation:null,ariaOwns:db,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:lb,ariaReadOnly:lb,ariaRelevant:null,ariaRequired:lb,ariaRoleDescription:db,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:lb,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function bb(e,t){return t in e?e[t]:t}function xb(e,t){return bb(e,t.toLowerCase())}var Sb=vb({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:fb,acceptCharset:db,accessKey:db,action:null,allow:null,allowFullScreen:cb,allowPaymentRequest:cb,allowUserMedia:cb,alpha:cb,alt:null,as:null,async:cb,autoCapitalize:null,autoComplete:db,autoFocus:cb,autoPlay:cb,blocking:db,capture:null,charSet:null,checked:cb,cite:null,className:db,closedBy:null,colorSpace:null,cols:X,colSpan:X,command:null,commandFor:null,content:null,contentEditable:lb,controls:cb,controlsList:db,coords:X|fb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:cb,defer:cb,dir:null,dirName:null,disabled:cb,download:ub,draggable:lb,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:cb,formTarget:null,headers:db,height:X,hidden:ub,high:X,href:null,hrefLang:null,htmlFor:db,httpEquiv:db,id:null,imageSizes:null,imageSrcSet:null,inert:cb,inputMode:null,integrity:null,is:null,isMap:cb,itemId:null,itemProp:db,itemRef:db,itemScope:cb,itemType:db,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:cb,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:cb,muted:cb,name:null,nonce:null,noModule:cb,noValidate:cb,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:cb,optimum:X,pattern:null,ping:db,placeholder:null,playsInline:cb,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:cb,referrerPolicy:null,rel:db,required:cb,reversed:cb,rows:X,rowSpan:X,sandbox:db,scope:null,scoped:cb,seamless:cb,selected:cb,shadowRootClonable:cb,shadowRootCustomElementRegistry:cb,shadowRootDelegatesFocus:cb,shadowRootMode:null,shadowRootSerializable:cb,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:lb,src:null,srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:cb,useMap:null,value:lb,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:db,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:cb,declare:cb,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:cb,noHref:cb,noShade:cb,noWrap:cb,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:lb,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:cb,disablePictureInPicture:cb,disableRemotePlayback:cb,exportParts:fb,part:db,prefix:null,property:null,results:X,security:null,unselectable:null},space:`html`,transform:xb}),Cb=vb({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:pb,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:db,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:cb,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fb,g2:fb,glyphName:fb,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:pb,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:X,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:db,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pb,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pb,rev:pb,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pb,requiredFeatures:pb,requiredFonts:pb,requiredFormats:pb,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:pb,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pb,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pb,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:bb}),wb=vb({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Tb=vb({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:xb}),Eb=vb({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Db={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Ob=/[A-Z]/g,kb=/-[a-z]/g,Ab=/^data[-\w.:]+$/i;function jb(e,t){let n=ib(t),r=t,i=ab;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Ab.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(kb,Nb);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!kb.test(e)){let n=e.replace(Ob,Mb);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=gb}return new i(r,t)}function Mb(e){return`-`+e.toLowerCase()}function Nb(e){return e.charAt(1).toUpperCase()}var Pb=rb([yb,Sb,wb,Tb,Eb],`html`),Fb=rb([yb,Cb,wb,Tb,Eb],`svg`);function Ib(e){return e.join(` `).trim()}var Lb=et(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
36
|
-
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Rb=et(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(Lb());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),zb=et((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Bb=et(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Rb()),i=zb();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),Vb=Ub(`end`),Hb=Ub(`start`);function Ub(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Wb(e){let t=Hb(e),n=Vb(e);if(t&&n)return{start:t,end:n}}function Gb(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?qb(e.position):`start`in e||`end`in e?qb(e):`line`in e||`column`in e?Kb(e):``}function Kb(e){return Jb(e&&e.line)+`:`+Jb(e&&e.column)}function qb(e){return Kb(e&&e.start)+`-`+Kb(e&&e.end)}function Jb(e){return e&&typeof e==`number`?e:1}var Yb=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Gb(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Yb.prototype.file=``,Yb.prototype.name=``,Yb.prototype.reason=``,Yb.prototype.message=``,Yb.prototype.stack=``,Yb.prototype.column=void 0,Yb.prototype.line=void 0,Yb.prototype.ancestors=void 0,Yb.prototype.cause=void 0,Yb.prototype.fatal=void 0,Yb.prototype.place=void 0,Yb.prototype.ruleId=void 0,Yb.prototype.source=void 0;var Xb=rt(Bb(),1),Zb={}.hasOwnProperty,Qb=new Map,$b=/[A-Z]/g,ex=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),tx=new Set([`td`,`th`]),nx=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function rx(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=mx(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=px(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Fb:Pb,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ix(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ix(e,t,n){if(t.type===`element`)return ax(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return ox(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return cx(e,t,n);if(t.type===`mdxjsEsm`)return sx(e,t);if(t.type===`root`)return lx(e,t,n);if(t.type===`text`)return ux(e,t)}function ax(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Fb,e.schema=i),e.ancestors.push(t);let a=bx(e,t.tagName,!1),o=hx(e,t),s=_x(e,t);return ex.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!eb(e)})),dx(e,o,a,t),fx(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ox(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}xx(e,t.position)}function sx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xx(e,t.position)}function cx(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Fb,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:bx(e,t.name,!0),o=gx(e,t),s=_x(e,t);return dx(e,o,a,t),fx(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function lx(e,t,n){let r={};return fx(r,_x(e,t)),e.create(t,e.Fragment,r,n)}function ux(e,t){return t.value}function dx(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fx(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function px(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function mx(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Hb(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function hx(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Zb.call(t.properties,i)){let a=vx(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&tx.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function gx(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else xx(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else xx(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function _x(e,t){let n=[],r=-1,i=e.passKeys?new Map:Qb;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=ix(e,a,o);s!==void 0&&n.push(s)}return n}function vx(e,t,n){let r=jb(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Jy(n):Ib(n)),r.property===`style`){let t=typeof n==`object`?n:yx(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Sx(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Db[r.property]||r.property:r.attribute,n]}}function yx(e,t){try{return(0,Xb.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Yb("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=nx+`#cannot-parse-style-attribute`,r}}function bx(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Qy(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Qy(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Zb.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);xx(e)}function xx(e,t){let n=new Yb("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=nx+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Sx(e){let t={},n;for(n in e)Zb.call(e,n)&&(t[Cx(n)]=e[n]);return t}function Cx(e){let t=e.replace($b,wx);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function wx(e){return`-`+e.toLowerCase()}var Tx={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},Ex={};function Dx(e,t){let n=t||Ex;return Ox(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function Ox(e,t,n){if(Ax(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return kx(e.children,t,n)}return Array.isArray(e)?kx(e,t,n):``}function kx(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Ox(e[i],t,n);return r.join(``)}function Ax(e){return!!(e&&typeof e==`object`)}var jx=document.createElement(`i`);function Mx(e){let t=`&`+e+`;`;jx.innerHTML=t;let n=jx.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function Nx(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Px(e,t){return e.length>0?(Nx(e,e.length,0,t),e):t}var Fx={}.hasOwnProperty;function Ix(e){let t={},n=-1;for(;++n<e.length;)Lx(t,e[n]);return t}function Lx(e,t){let n;for(n in t){let r=(Fx.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Fx.call(r,a)||(r[a]=[]);let e=i[a];Rx(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Rx(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Nx(e,0,0,r)}function zx(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Bx(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Vx=$x(/[A-Za-z]/),Hx=$x(/[\dA-Za-z]/),Ux=$x(/[#-'*+\--9=?A-Z^-~]/);function Wx(e){return e!==null&&(e<32||e===127)}var Gx=$x(/\d/),Kx=$x(/[\dA-Fa-f]/),qx=$x(/[!-/:-@[-`{-~]/);function Jx(e){return e!==null&&e<-2}function Yx(e){return e!==null&&(e<0||e===32)}function Xx(e){return e===-2||e===-1||e===32}var Zx=$x(/\p{P}|\p{S}/u),Qx=$x(/\s/);function $x(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function eS(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Hx(e.charCodeAt(n+1))&&Hx(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function tS(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Xx(r)?(e.enter(n),s(r)):t(r)}function s(r){return Xx(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function nS(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Xx(t)?(e.enter(r),c(t)):l(t)}function c(t){return Xx(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var rS={tokenize:iS};function iS(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),tS(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Jx(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var aS=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){oS(this,e,t,n,!1)}addBefore(e,t,n){oS(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function oS(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var sS={tokenize:lS},cS={tokenize:uS};function lS(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new aS;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cS,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(cS,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Jx(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new aS;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function uS(e,t,n){return tS(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function dS(e){if(e===null||Yx(e)||Qx(e))return 1;if(Zx(e))return 2}function fS(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var pS={name:`attention`,resolveAll:mS,tokenize:hS};function mS(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};gS(o,-a),gS(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=Px(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=Px(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=Px(r,fS(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=Px(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=Px(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),Nx(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function hS(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=dS(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=dS(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function gS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var _S={name:`autolink`,tokenize:vS};function vS(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Vx(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Hx(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Hx(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Wx(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Ux(t)?(e.consume(t),l):n(t)}function u(e){return Hx(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Hx(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var yS={partial:!0,tokenize:bS};function bS(e,t,n){return r;function r(t){return Xx(t)?tS(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Jx(e)?t(e):n(e)}}var xS={continuation:{tokenize:CS},exit:wS,name:`blockQuote`,tokenize:SS};function SS(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Xx(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function CS(e,t,n){let r=this;return i;function i(t){return Xx(t)?tS(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(xS,t,n)(r)}}function wS(e){e.exit(`blockQuote`)}var TS={name:`characterEscape`,tokenize:ES};function ES(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return qx(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var DS={name:`characterReference`,tokenize:OS};function OS(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Hx,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Kx,u):(e.enter(`characterReferenceValue`),a=7,o=Gx,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Hx&&!Mx(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var kS={partial:!0,tokenize:AS};function AS(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var jS={concrete:!0,name:`codeFenced`,tokenize:MS};function MS(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Xx(t)?tS(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Jx(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(kS,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Jx(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Xx(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),tS(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Jx(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Jx(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Xx(t)?tS(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Jx(t)?e.check(kS,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Jx(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Xx(t)?tS(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Xx(t)?tS(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Jx(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var NS={name:`codeIndented`,tokenize:FS},PS={partial:!0,tokenize:IS};function FS(e,t,n){return r;function r(t){return e.enter(`codeIndented`),nS(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Jx(t)?e.attempt(PS,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Jx(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function IS(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Jx(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):nS(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Jx(e)?i(e):n(e)}}var LS={name:`codeText`,previous:zS,resolve:RS,tokenize:BS};function RS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function zS(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function BS(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Jx(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Jx(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var VS=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&HS(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),HS(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),HS(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);HS(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);HS(this.left,t.reverse())}}}};function HS(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function US(e){let t={},n=-1,r,i,a,o,s,c,l,u=new VS(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,WS(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Nx(e,0,1/0,u.slice(0)),!l}function WS(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var GS={resolve:qS,tokenize:JS},KS={partial:!0,tokenize:YS};function qS(e){return US(e),e}function JS(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Jx(t)?e.check(KS,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function YS(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),tS(e,a,`linePrefix`)}function a(i){if(i===null||Jx(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function XS(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Wx(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Jx(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Yx(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Wx(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function ZS(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Jx(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Jx(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Xx(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function QS(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Jx(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),tS(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Jx(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function $S(e,t){let n;return r;function r(i){return Jx(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Xx(i)?tS(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var eC={name:`definition`,tokenize:nC},tC={partial:!0,tokenize:rC};function nC(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return ZS.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Bx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Yx(t)?$S(e,l)(t):l(t)}function l(t){return XS(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(tC,d,d)(t)}function d(t){return Xx(t)?tS(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Jx(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function rC(e,t,n){return r;function r(t){return Yx(t)?$S(e,i)(t):n(t)}function i(t){return QS(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Xx(t)?tS(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Jx(e)?t(e):n(e)}}var iC={name:`hardBreakEscape`,tokenize:aC};function aC(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Jx(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var oC={name:`headingAtx`,resolve:sC,tokenize:cC};function sC(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};Nx(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function cC(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Yx(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Jx(n)?(e.exit(`atxHeading`),t(n)):Xx(n)?tS(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Yx(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var lC=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),uC=[`pre`,`script`,`style`,`textarea`],dC={concrete:!0,name:`htmlFlow`,resolveTo:pC,tokenize:mC},fC={partial:!0,tokenize:hC};function pC(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function mC(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):Vx(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Vx(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return Vx(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Yx(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&uC.includes(l)?(i=1,r.interrupt?t(s):O(s)):lC.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Hx(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Xx(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Vx(t)?(e.consume(t),b):Xx(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Hx(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Xx(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Xx(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Jx(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Yx(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Xx(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Jx(t)?O(t):Xx(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):Jx(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(fC,R,k)(t)):t===null||Jx(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(kS,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Jx(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return uC.includes(n)?(e.consume(t),L):O(t)}return Vx(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||Jx(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function hC(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(yS,t,n)}}var gC={name:`htmlText`,tokenize:_C};function _C(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Vx(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Vx(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Jx(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Jx(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Jx(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Jx(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return Vx(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Hx(t)?(e.consume(t),S):C(t)}function C(t){return Jx(t)?(o=C,N(t)):Xx(t)?(e.consume(t),C):M(t)}function w(t){return t===45||Hx(t)?(e.consume(t),w):t===47||t===62||Yx(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||Vx(t)?(e.consume(t),E):Jx(t)?(o=T,N(t)):Xx(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||Hx(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Jx(t)?(o=D,N(t)):Xx(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Jx(t)?(o=O,N(t)):Xx(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Jx(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Yx(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Yx(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return Xx(t)?tS(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var vC={name:`labelEnd`,resolveAll:SC,resolveTo:CC,tokenize:wC},yC={tokenize:TC},bC={tokenize:EC},xC={tokenize:DC};function SC(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Nx(e,0,e.length,n),e}function CC(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=Px(o,e.slice(i+1,i+r+3)),o=Px(o,[[`enter`,l,t]]),o=Px(o,fS(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=Px(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=Px(o,e.slice(a+1)),o=Px(o,[[`exit`,s,t]]),Nx(e,i,e.length,o),e}function wC(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Bx(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(yC,u,o?u:d)(t):t===91?e.attempt(bC,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(xC,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function TC(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Yx(t)?$S(e,a)(t):a(t)}function a(t){return t===41?u(t):XS(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Yx(t)?$S(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?QS(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Yx(t)?$S(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function EC(e,t,n){let r=this;return i;function i(t){return ZS.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Bx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function DC(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var OC={name:`labelStartImage`,resolveAll:vC.resolveAll,tokenize:kC};function kC(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var AC={name:`labelStartLink`,resolveAll:vC.resolveAll,tokenize:jC};function jC(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var MC={name:`lineEnding`,tokenize:NC};function NC(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),tS(e,t,`linePrefix`)}}var PC={name:`thematicBreak`,tokenize:FC};function FC(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Jx(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Xx(t)?tS(e,s,`whitespace`)(t):s(t))}}var IC={continuation:{tokenize:BC},exit:HC,name:`list`,tokenize:zC},LC={partial:!0,tokenize:UC},RC={partial:!0,tokenize:VC};function zC(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Gx(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(PC,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Gx(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(yS,r.interrupt?n:u,e.attempt(LC,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Xx(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function BC(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(yS,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,tS(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Xx(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(RC,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,tS(e,e.attempt(IC,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function VC(e,t,n){let r=this;return tS(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function HC(e){e.exit(this.containerState.type)}function UC(e,t,n){let r=this;return tS(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Xx(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var WC={name:`setextUnderline`,resolveTo:GC,tokenize:KC};function GC(e,t){let n=new aS,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function KC(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Xx(t)?tS(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Jx(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var qC={tokenize:JC};function JC(e){let t=this,n=e.attempt(yS,r,e.attempt(this.parser.constructs.flowInitial,i,tS(e,e.attempt(this.parser.constructs.flow,i,e.attempt(GS,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var YC={resolveAll:$C()},XC=QC(`string`),ZC=QC(`text`);function QC(e){return{resolveAll:$C(e===`text`?ew:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function $C(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function ew(e,t){let n=new aS,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var tw=tt({attentionMarkers:()=>lw,contentInitial:()=>rw,disable:()=>uw,document:()=>nw,flow:()=>aw,flowInitial:()=>iw,insideSpan:()=>cw,string:()=>ow,text:()=>sw}),nw={42:IC,43:IC,45:IC,48:IC,49:IC,50:IC,51:IC,52:IC,53:IC,54:IC,55:IC,56:IC,57:IC,62:xS},rw={91:eC},iw={[-2]:NS,[-1]:NS,32:NS},aw={35:oC,42:PC,45:[WC,PC],60:dC,61:WC,95:PC,96:jS,126:jS},ow={38:DS,92:TS},sw={[-5]:MC,[-4]:MC,[-3]:MC,33:OC,38:DS,42:pS,60:[_S,gC],91:AC,92:[iC,TS],93:vC,95:pS,96:LS},cw={null:[pS,YC]},lw={null:[42,95]},uw={null:[]};function dw(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Px(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=fS(a,l.events,l),l.events):[]}function f(e,t){return pw(p(e),t)}function p(e){return fw(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Jx(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Nx(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function fw(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function pw(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
37
|
-
`;break;case-3:o=`\r
|
|
38
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function mw(e){let t={constructs:Ix([tw,...(e||{}).extensions||[]]),content:n(rS),defined:[],document:n(sS),flow:n(qC),lazy:{},string:n(XC),text:n(ZC)};return t;function n(e){return n;function n(n){return dw(t,e,n)}}}function hw(e){for(;!US(e););return e}var gw=/[\0\t\n\r]/g;function _w(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){gw.lastIndex=c;let n=gw.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var vw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yw(e){return e.replace(vw,bw)}function bw(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return zx(n.slice(t?2:1),t?16:10)}return Mx(n)||e}var xw={}.hasOwnProperty;function Sw(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Cw(n)(hw(mw(n).document().write(_w()(e,t,!0))))}function Cw(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(fe),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(le),blockQuote:o(ae),characterEscape:E,characterReference:E,codeFenced:o(H),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(H,s),codeText:o(oe,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(se),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ce),hardBreakEscape:o(U),hardBreakTrailing:o(U),htmlFlow:o(ue,s),htmlFlowData:E,htmlText:o(ue,s),htmlTextData:E,image:o(de),label:s,link:o(fe),listItem:o(me),listItemValue:p,listOrdered:o(pe,f),listUnordered:o(pe),paragraph:o(he),reference:z,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(le),strong:o(ge),thematicBreak:o(ve)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ie,autolinkProtocol:re,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:te,characterReference:ne,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:I,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:L,resourceTitleString:R,resource:ee,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};Tw(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),xw.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Dw).call(o,void 0,e[0])}for(r.position={start:ww(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ww(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ww(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+Gb({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Dw).call(this,e,r[0])),n.position.end=ww(e.end)}function d(){return Dx(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Bx(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=_e(),n.position={start:ww(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ww(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=ww(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=yw(t),n.identifier=Bx(t).toLowerCase()}function I(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function R(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ee(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Bx(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function te(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=zx(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Mx(t);let i=this.stack[this.stack.length-1];i.value+=r}function ne(e){let t=this.stack.pop();t.position.end=ww(e.end)}function re(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ie(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ae(){return{type:`blockquote`,children:[],position:void 0}}function H(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function oe(){return{type:`inlineCode`,value:``,position:void 0}}function se(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function ce(){return{type:`emphasis`,children:[],position:void 0}}function le(){return{type:`heading`,depth:0,children:[],position:void 0}}function U(){return{type:`break`,position:void 0}}function ue(){return{type:`html`,value:``,position:void 0}}function de(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function fe(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function pe(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function me(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function he(){return{type:`paragraph`,children:[],position:void 0}}function ge(){return{type:`strong`,children:[],position:void 0}}function _e(){return{type:`text`,value:``,position:void 0}}function ve(){return{type:`thematicBreak`,position:void 0}}}function ww(e){return{line:e.line,column:e.column,offset:e.offset}}function Tw(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Tw(e,r):Ew(e,r)}}function Ew(e,t){let n;for(n in t)if(xw.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Dw(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Gb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gb({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Gb({start:t.start,end:t.end})+`) is still open`)}function Ow(e){let t=this;t.parser=n;function n(n){return Sw(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function kw(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Aw(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
39
|
-
`}]}function jw(e,t){let n=t.value?t.value+`
|
|
40
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Mw(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nw(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pw(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=eS(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Fw(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Iw(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Lw(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Rw(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Lw(e,t);let i={src:eS(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function zw(e,t){let n={src:eS(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Bw(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Vw(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Lw(e,t);let i={href:eS(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Hw(e,t){let n={href:eS(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uw(e,t,n){let r=e.all(t),i=n?Ww(n):Gw(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
41
|
-
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
42
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Ww(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Gw(n[r])}return t}function Gw(e){return e.spread??e.children.length>1}function Kw(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function qw(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jw(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Yw(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xw(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Hb(t.children[1]),o=Vb(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Zw(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Qw(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var $w=9,eT=32;function tT(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(nT(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(nT(t.slice(i),i>0,!1)),a.join(``)}function nT(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===$w||t===eT;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===$w||t===eT;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function rT(e,t){let n={type:`text`,value:tT(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function iT(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var aT={blockquote:kw,break:Aw,code:jw,delete:Mw,emphasis:Nw,footnoteReference:Pw,heading:Fw,html:Iw,imageReference:Rw,image:zw,inlineCode:Bw,linkReference:Vw,link:Hw,listItem:Uw,list:Kw,paragraph:qw,root:Jw,strong:Yw,table:Xw,tableCell:Qw,tableRow:Zw,text:rT,thematicBreak:iT,toml:oT,yaml:oT,definition:oT,footnoteDefinition:oT};function oT(){}var{defineProperty:sT}=Object,cT=typeof self==`object`?self:globalThis,lT=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new cT[e](t)},uT=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?sT(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof cT[e]==`function`?lT(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(lT(a,o),i)};return r},dT=e=>uT(new Map,e)(0),fT=``,{toString:pT}={},{keys:mT,is:hT}=Object,gT=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=pT.call(e).slice(8,-1);switch(n){case`Array`:return[1,fT];case`Object`:return[2,fT];case`Date`:return[3,fT];case`RegExp`:return[4,fT];case`Map`:return[5,fT];case`Set`:return[6,fT];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},_T=([e,t])=>e===0&&(t===`function`||t===`symbol`),vT=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=gT(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&hT(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of mT(o))(e||!_T(gT(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?fT:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(_T(gT(n))||_T(gT(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!_T(gT(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},yT=(e,{json:t,lossy:n}={})=>{let r=[];return vT(!(t||n),!!t,new Map,r)(e),r},bT=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?dT(yT(e,t)):structuredClone(e):(e,t)=>dT(yT(e,t));function xT(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function ST(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function CT(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||xT,r=e.options.footnoteBackLabel||ST,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=eS(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...bT(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
43
|
-
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
44
|
-
`}]}}var wT=(function(e){if(e==null)return kT;if(typeof e==`function`)return OT(e);if(typeof e==`object`)return Array.isArray(e)?TT(e):ET(e);if(typeof e==`string`)return DT(e);throw Error(`Expected function, string, or object as test`)});function TT(e){let t=[],n=-1;for(;++n<e.length;)t[n]=wT(e[n]);return OT(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function ET(e){let t=e;return OT(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function DT(e){return OT(t);function t(t){return t&&t.type===e}}function OT(e){return t;function t(t,n,r){return!!(AT(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function kT(){return!0}function AT(e){return typeof e==`object`&&!!e&&`type`in e}function jT(e){return e}var MT=[],NT=`skip`;function PT(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=wT(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+jT(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=MT;if(s&&r&&(o=FT(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=FT(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function FT(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?MT:[e]}function IT(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?PT(e,i,RT(a),o):PT(e,i,LT(a),o)}function LT(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?RT(e.enter):e.enter,exit:typeof e.exit==`function`?RT(e.exit):e.exit}}function RT(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var zT={}.hasOwnProperty,BT={};function VT(e,t){let n=t||BT,r=new Map,i=new Map,a={all:s,applyData:UT,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...aT,...n.handlers},one:o,options:n,patch:HT,wrap:GT};return IT(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(zT.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=bT(n);return r.children=a.all(e),r}return bT(e)}return(a.options.unknownHandler||WT)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=KT(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=KT(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function HT(e,t){e.position&&(t.position=Wb(e))}function UT(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,bT(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function WT(e,t){let n=t.data||{},r=`value`in t&&!(zT.call(n,`hProperties`)||zT.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function GT(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
45
|
-
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
46
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
47
|
-
`}),n}function KT(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function qT(e,t){let n=VT(e,t),r=n.one(e,void 0),i=CT(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
48
|
-
`},i)),a}function JT(e,t){return e&&`run`in e?async function(n,r){let i=qT(n,{file:r,...t});await e.run(i,r)}:function(n,r){return qT(n,{file:r,...e||t})}}function YT(e){if(e)throw e}var XT=et(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function ZT(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function QT(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?$T(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function $T(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var eE={basename:tE,dirname:nE,extname:rE,join:iE,sep:`/`};function tE(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);sE(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function nE(e){if(sE(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function rE(e){sE(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function iE(...e){let t=-1,n;for(;++t<e.length;)sE(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:aE(n)}function aE(e){sE(e);let t=e.codePointAt(0)===47,n=oE(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function oE(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function sE(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var cE={cwd:lE};function lE(){return`/`}function uE(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function dE(e){if(typeof e==`string`)e=new URL(e);else if(!uE(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return fE(e)}function fE(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var pE=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],mE=class{constructor(e){let t;t=e?uE(e)?{path:e}:typeof e==`string`||vE(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:cE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<pE.length;){let e=pE[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)pE.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?eE.basename(this.path):void 0}set basename(e){gE(e,`basename`),hE(e,`basename`),this.path=eE.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?eE.dirname(this.path):void 0}set dirname(e){_E(this.basename,`dirname`),this.path=eE.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?eE.extname(this.path):void 0}set extname(e){if(hE(e,`extname`),_E(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=eE.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){uE(e)&&(e=dE(e)),gE(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?eE.basename(this.path,this.extname):void 0}set stem(e){gE(e,`stem`),hE(e,`stem`),this.path=eE.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Yb(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function hE(e,t){if(e&&e.includes(eE.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+eE.sep+"`")}function gE(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function _E(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function vE(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var yE=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),bE=rt(XT(),1),xE={}.hasOwnProperty,SE=new class e extends yE{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=QT()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,bE.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(TE(`data`,this.frozen),this.namespace[e]=t,this):xE.call(this.namespace,e)&&this.namespace[e]||void 0:e?(TE(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=OE(e),n=this.parser||this.Parser;return CE(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),CE(`process`,this.parser||this.Parser),wE(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=OE(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);AE(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),CE(`processSync`,this.parser||this.Parser),wE(`processSync`,this.compiler||this.Compiler),this.process(e,r),DE(`processSync`,`process`,t),n;function r(e,r){t=!0,YT(e),n=r}}run(e,t,n){EE(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=OE(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),DE(`runSync`,`run`,n),r;function i(e,t){YT(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=OE(t),r=this.compiler||this.Compiler;return wE(`stringify`,r),EE(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(TE(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,bE.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];ZT(o)&&ZT(r)&&(r=(0,bE.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function CE(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function wE(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function TE(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function EE(e){if(!ZT(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function DE(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function OE(e){return kE(e)?e:new mE(e)}function kE(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function AE(e){return typeof e==`string`||jE(e)}function jE(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var ME=[],NE={allowDangerousHtml:!0},PE=/^(https?|ircs?|mailto|xmpp)$/i,FE=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function IE(e){let t=LE(e),n=RE(e);return zE(t.runSync(t.parse(n),n),e)}function LE(e){let t=e.rehypePlugins||ME,n=e.remarkPlugins||ME,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...NE}:NE;return SE().use(Ow).use(n).use(JT,r).use(t)}function RE(e){let t=e.children||``,n=new mE;return typeof t==`string`?n.value=t:``+t,n}function zE(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||BE;for(let e of FE)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return IT(e,l),rx(e,{Fragment:J.Fragment,components:i,ignoreInvalidStyle:!0,jsx:J.jsx,jsxs:J.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in Tx)if(Object.hasOwn(Tx,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Tx[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function BE(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||PE.test(e.slice(0,t))?e:``}function VE(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function HE(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function UE(e,t,n){let r=wT((n||{}).ignore||[]),i=WE(t),a=-1;for(;++a<i.length;)PT(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return NT}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function WE(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([GE(e[0]),KE(e[1])])}return t}function GE(e){return typeof e==`string`?new RegExp(HE(e),`g`):e}function KE(e){return typeof e==`function`?e:function(){return e}}var qE=`phrasing`,JE=[`autolink`,`link`,`image`,`label`];function YE(){return{transforms:[rD],enter:{literalAutolink:ZE,literalAutolinkEmail:QE,literalAutolinkHttp:QE,literalAutolinkWww:QE},exit:{literalAutolink:nD,literalAutolinkEmail:tD,literalAutolinkHttp:$E,literalAutolinkWww:eD}}}function XE(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:qE,notInConstruct:JE},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:qE,notInConstruct:JE},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:qE,notInConstruct:JE}]}}function ZE(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function QE(e){this.config.enter.autolinkProtocol.call(this,e)}function $E(e){this.config.exit.autolinkProtocol.call(this,e)}function eD(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function tD(e){this.config.exit.autolinkEmail.call(this,e)}function nD(e){this.exit(e)}function rD(e){UE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iD],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,aD]],{ignore:[`link`,`linkReference`]})}function iD(e,t,n,r,i){let a=``;if(!cD(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!oD(n)))return!1;let o=sD(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function aD(e,t,n,r){return!cD(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function oD(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function sD(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=VE(e,`(`),a=VE(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function cD(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Qx(n)||Zx(n))&&(!t||n!==47)}vD.peek=_D;function lD(){this.buffer()}function uD(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function dD(){this.buffer()}function fD(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function pD(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Bx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mD(e){this.exit(e)}function hD(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Bx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gD(e){this.exit(e)}function _D(){return`[`}function vD(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function yD(){return{enter:{gfmFootnoteCallString:lD,gfmFootnoteCall:uD,gfmFootnoteDefinitionLabelString:dD,gfmFootnoteDefinition:fD},exit:{gfmFootnoteCallString:pD,gfmFootnoteCall:mD,gfmFootnoteDefinitionLabelString:hD,gfmFootnoteDefinition:gD}}}function bD(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:vD},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
49
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?SD:xD))),s(),o}}function xD(e,t,n){return t===0?e:SD(e,t,n)}function SD(e,t,n){return(n?``:` `)+e}var CD=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];OD.attention=kD,OD.peek=AD;function wD(){return{canContainEols:[`delete`],enter:{strikethrough:ED},exit:{strikethrough:DD}}}function TD(){return{handlers:{delete:OD},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:CD}]}}function ED(e){this.enter({type:`delete`,children:[],position:void 0},e)}function DD(e){this.exit(e)}function OD(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function kD(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function AD(){return`~`}function jD(e){return e.length}function MD(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||jD,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=ND(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=PD(r[d]);else{let e=PD(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
50
|
-
`)}function ND(e){return e==null?``:String(e)}function PD(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var FD=wT([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function ID(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),LD);return i(),o}function LD(e,t,n){return`>`+(n?``:` `)+e}function RD(e,t){return zD(e,t.inConstruct,!0)&&!zD(e,t.notInConstruct,!1)}function zD(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function BD(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
51
|
-
`&&!e.before&&!e.after&&RD(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
52
|
-
`}function VD(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function HD(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function UD(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function WD(e,t,n,r){let i=UD(n),a=e.value||``;if(HD(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,GD);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(VD(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
53
|
-
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
54
|
-
`),a&&(u+=o.move(a+`
|
|
55
|
-
`)),u+=o.move(s),c(),u}function GD(e,t,n){return(n?``:` `)+e}function KD(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function qD(e,t,n,r){let i=KD(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
56
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function JD(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function YD(e){let t=e.codePointAt(0);return t===void 0?``:String.fromCodePoint(t)}function XD(e){let t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function ZD(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function QD(e,t,n){let r=dS(e),i=dS(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function $D(e){if(e.charCodeAt(0)!==60)return;let t=e.charCodeAt(1);if(t===33){let t=e.charCodeAt(2);return t===45?2:t===91?5:Vx(t)?4:void 0}if(t===63)return 3;let n=t===47,r=n?2:1,i=r,a=e.charCodeAt(i);if(!Vx(a))return;for(;a===45||Hx(a);)a=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&a!==47&&uC.includes(o)?1:lC.includes(o)?6:7}var eO=new Map([[`*`,!1],[`_`,!0]]);function tO(e,t,n){let r=new Set;for(let i of e){let e=n.get(i);if(e&&i.attention&&t.some(e=>e.attention===i.attention))for(let t of e.tokens)r.add(t.attention)}let i=[];for(let t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}function nO(e,t,n){let r=[],i=new Map,a=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let s=e[o].value.charAt(0),c=eO.get(s),l=o+1;for(;l<e.length&&e[l].attention&&e[l].value.charAt(0)===s;)l++;let u=o?e[o-1].value:t,d=dS(u.charCodeAt(u.length-1)),f=dS((l<e.length?e[l].value:n).charCodeAt(0)),p=!f||f===2&&!!d,m=!d||d===2&&!!f,h={tokens:e.slice(o,l),markers:[],start:0,end:0,open:c?p&&(!!d||!m):p,close:c?m&&(!!f||!p):m,split:c!==void 0};for(let e of h.tokens){i.set(e,[...h.tokens]),a.set(e,h);let t=e.value.length;for(;t--;)h.markers.push(e)}h.end=h.markers.length,r.push(h),o=l}for(aO(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:tO(e,t,a),index:o}}}function rO(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?YD(n.value):XD(n.value),i=ZD(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;e.charCodeAt(e.length-1-t)===92;)t++;t%2&&(e+=`\\`),n.value=e+i}}function iO(e,t,n,r,i){for(let a of n.attention){let o=t.get(a)||a.sequences[0];for(let s of a.sequences){if(s===o)continue;let c=new Map(t);c.set(a,s);let l=lO(e,c,r,i),u=nO(l,r,i);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:l}}}}function aO(e,t){let n=new Map;for(let r of e){let e=r.tokens[0].value.charAt(0),i=n.get(e);i||(i=[],n.set(e,i));let a=r.close?i.length:0;for(;a--&&r.start<r.end;){let e=i[a],n=e.end-e.start,o=r.end-r.start;if(r.split?(e.close||r.open)&&o%3&&!((n+o)%3):n!==e.markers.length||n!==o)continue;let s=r.split?n>1&&o>1?2:1:o,c=e.markers.slice(e.end-s,e.end),l=r.markers.slice(r.start,r.start+s),u=c[0],d=l[0];if(u===c[s-1]&&u.value.length===s&&d===l[s-1]&&d.value.length===s&&u.attention===d.attention)t.delete(u),t.delete(d);else{let e=[...new Set([...c,...l])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}e.end-=s,r.start+=s,e.start===e.end&&i.splice(a,1),a=i.length}r.open&&r.start<r.end&&i.push(r)}}function oO(e,t,n){if(t.length===0)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let i of t){if(i.length!==1)throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!qx(i.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(let e of n)r.push(i.repeat(e))}return r}function sO(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){let l=i[o],u;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),u=n?YD(n(i[o+1],e,t,{before:``,after:``,...c.current()})):``}else u=n.after;let d=a[a.length-1];typeof d==`string`&&(s===`\r`||s===`
|
|
57
|
-
`)&&l.type===`html`&&$D(l.value)!==7&&(a[a.length-1]=d.replace(/(\r?\n|\r)$/,` `),s=` `,c=t.createTracker(n),c.move(uO(a,n.before,n.after)));let f=t.handle.handlers[l.type];if(f&&f.attention){let e=cO(l,f.attention,t,c);a.push(e),s=XD(e.sequences[0])}else{let n=t.handle(l,e,t,{...c.current(),after:u,before:s});if(!n)continue;c.move(n),a.push(n),s=XD(n)}}return r.pop(),a}function cO(e,t,n,r){let{construct:i,markers:a,sizes:o}=t(e,n),s=oO(e.type,a,o),c=s[0],l=n.enter(i);r.move(c);let u=sO(e,n,{...r.current(),before:c,after:c});return r.move(uO(u,c,c)),r.move(c),l(),{children:u,sequences:s}}function lO(e,t,n,r){let i=[],a,o=XD(n),s=-1;for(;++s<e.length;){let n=e[s];if(typeof n==`string`){let e={value:n,attention:void 0};a&&a===YD(n)&&rO([e],!0),a=void 0,i.push(e),e.value&&(o=XD(e.value));continue}let c=t.get(n)||n.sequences[0],l=c.charAt(0),u=e[s+1],d=o,f=YD(u===void 0?r:typeof u==`string`?u:t.get(u)||u.sequences[0]),p=lO(n.children,t,c,c),m=p.length>0?p[0].value:``,h=QD(d.charCodeAt(d.length-1),m.charCodeAt(0),l);h.inside&&rO(p,!0);let g=p.length>0?XD(p[p.length-1].value):``,_=QD(f.charCodeAt(0),g.charCodeAt(g.length-1),l);_.inside&&rO(p,!1),h.outside&&d!==`
|
|
58
|
-
`&&d!==`\r`&&rO(i,!1),_.outside&&(a=f),i.push({value:c,attention:n},...p,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function uO(e,t,n){let r=new Map,i=lO(e,r,t,n),a=i,o=nO(a,t,n);for(;o;){let s=iO(e,r,o,t,n);if(!s){a=i;break}r=s.chosen,a=s.tokens,o=s.mistake}let s=``;for(let e of a)s+=e.value;return s}dO.attention=fO,dO.peek=pO;function dO(e,t,n,r){let i=n.enter(`phrasing`),a=uO([cO(e,fO,n,n.createTracker(r))],r.before,r.after);return i(),a}function fO(e,t){return{construct:`emphasis`,markers:JD(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function pO(e,t,n){return n.options.emphasis||`*`}function mO(e,t){let n=!1;return IT(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&Dx(e)&&(t.options.setext||n))}function hO(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(mO(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
59
|
-
`,after:`
|
|
60
|
-
`});return r(),t(),o+`
|
|
61
|
-
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
62
|
-
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
63
|
-
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=ZD(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}gO.peek=_O;function gO(e){return e.value||``}function _O(){return`<`}vO.peek=yO;function vO(e,t,n,r){let i=KD(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function yO(){return`!`}bO.peek=xO;function bO(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function xO(){return`!`}SO.peek=CO;function SO(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function CO(){return"`"}function wO(e,t){let n=Dx(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}TO.peek=EO;function TO(e,t,n,r){let i=KD(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(wO(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`),u=n.containerPhrasing(e,{before:l,after:`](`,...o.current()});l+=o.move(u),c(),l+=o.move(`](`);let d=/[\0- \u007F]/.test(e.url),f=r.before.charAt(r.before.length-1),p=e.title||void 0;if(!p&&!d&&(f===`
|
|
64
|
-
`||f===`\r`)){let e=0;for(;e<u.length&&u.charCodeAt(e)!==93;)e+=u.charCodeAt(e)===92?2:1;u.charCodeAt(e+1)===58&&(p=``)}return!e.url&&typeof p==`string`||d?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:typeof p==`string`?` `:`)`,...o.current()}))),c(),typeof p==`string`&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(p,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function EO(e,t,n){return wO(e,n)?`<`:`[`}DO.peek=OO;function DO(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function OO(){return`[`}function kO(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function AO(e){let t=kO(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function jO(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function MO(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function NO(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?jO(n):kO(n),s=e.ordered?o===`.`?`)`:`.`:AO(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),MO(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function PO(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function FO(e,t,n,r){let i=PO(n),a=n.bulletCurrent||kO(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function IO(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function LO(e,t,n,r){if(!e.children.some(function(e){return FD(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function RO(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}zO.attention=BO,zO.peek=VO;function zO(e,t,n,r){let i=n.enter(`phrasing`),a=uO([cO(e,BO,n,n.createTracker(r))],r.before,r.after);return i(),a}function BO(e,t){return{construct:`strong`,markers:RO(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function VO(e,t,n){return n.options.strong||`*`}function HO(e,t,n,r){let i=t?t.children:[],a=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function UO(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function WO(e,t,n){let r=(MO(n)+(n.options.ruleSpaces?` `:``)).repeat(UO(n));return n.options.ruleSpaces?r.slice(0,-1):r}var GO={blockquote:ID,break:BD,code:WD,definition:qD,emphasis:dO,hardBreak:BD,heading:hO,html:gO,image:vO,imageReference:bO,inlineCode:SO,link:TO,linkReference:DO,list:NO,listItem:FO,paragraph:IO,root:LO,strong:zO,text:HO,thematicBreak:WO};function KO(){return{enter:{table:qO,tableData:ZO,tableHeader:ZO,tableRow:YO},exit:{codeText:QO,table:JO,tableData:XO,tableHeader:XO,tableRow:XO}}}function qO(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function JO(e){this.exit(e),this.data.inTable=void 0}function YO(e){this.enter({type:`tableRow`,children:[]},e)}function XO(e){this.exit(e)}function ZO(e){this.enter({type:`tableCell`,children:[]},e)}function QO(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$O));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $O(e,t){return t===`|`?t:e}function ek(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
65
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
66
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return MD(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=GO.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function tk(){return{exit:{taskListCheckValueChecked:rk,taskListCheckValueUnchecked:rk,paragraph:ik}}}function nk(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:ak}}}function rk(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function ik(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ak(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=GO.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function ok(){return[YE(),yD(),wD(),KO(),tk()]}function sk(e){return{extensions:[XE(),bD(e),TD(),ek(e),nk()]}}var ck={tokenize:Sk,partial:!0},lk={tokenize:Ck,partial:!0},uk={tokenize:wk,partial:!0},dk={tokenize:Tk,partial:!0},fk={tokenize:Ek,partial:!0},pk={name:`wwwAutolink`,tokenize:bk,previous:Dk},mk={name:`protocolAutolink`,tokenize:xk,previous:Ok},hk={name:`emailAutolink`,tokenize:yk,previous:kk},gk={};function _k(){return{text:gk}}for(var vk=48;vk<123;)gk[vk]=hk,vk++,vk===58?vk=65:vk===91&&(vk=97);gk[43]=hk,gk[45]=hk,gk[46]=hk,gk[95]=hk,gk[72]=[hk,mk],gk[104]=[hk,mk],gk[87]=[hk,pk],gk[119]=[hk,pk];function yk(e,t,n){let r=this,i,a;return o;function o(t){return!Ak(t)||!kk.call(r,r.previous)||jk(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Ak(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(fk,u,l)(t):t===45||t===95||Hx(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Vx(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function bk(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Dk.call(r,r.previous)||jk(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(ck,e.attempt(lk,e.attempt(uk,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function xk(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Ok.call(r,r.previous)&&!jk(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Vx(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Wx(t)||Yx(t)||Qx(t)||Zx(t)?n(t):e.attempt(lk,e.attempt(uk,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Sk(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Ck(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(dk,c,s)(t):t===null||Yx(t)||Qx(t)||t!==45&&Zx(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function wk(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(dk,t,a)(o):o===null||Yx(o)||Qx(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Tk(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Yx(o)||Qx(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Yx(e)||Qx(e)?t(e):r(e)}function a(e){return Vx(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Vx(t)?(e.consume(t),o):n(t)}}function Ek(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Hx(e)?n(e):t(e)}}function Dk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Yx(e)}function Ok(e){return!Vx(e)}function kk(e){return!(e===47||Ak(e))}function Ak(e){return e===43||e===45||e===46||e===95||Hx(e)}function jk(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Mk={tokenize:Bk,partial:!0};function Nk(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Lk,continuation:{tokenize:Rk},exit:zk}},text:{91:{name:`gfmFootnoteCall`,tokenize:Ik},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Pk,resolveTo:Fk}}}}function Pk(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Bx(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Fk(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Ik(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Yx(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Bx(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Yx(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Lk(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Yx(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Bx(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Yx(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),tS(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Rk(e,t,n){return e.check(yS,t,e.attempt(Mk,t,n))}function zk(e){e.exit(`gfmFootnoteDefinition`)}function Bk(e,t,n){let r=this;return tS(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Vk(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&Nx(o,o.length,0,fS(s,e.slice(r+1,n),t)),Nx(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),Nx(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=dS(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=dS(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Hk=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Uk(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Uk(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Wk(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Gk(){return{flow:{null:{name:`table`,tokenize:Kk,resolveAll:qk}}}}function Kk(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Jx(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Xx(t)?tS(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Yx(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Xx(t)?tS(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Xx(t)?tS(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Jx(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Xx(t)?tS(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Jx(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Jx(n)?(e.exit(`tableRow`),t(n)):Xx(n)?tS(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Yx(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function qk(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Hk;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Yk(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Jk(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Jk(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Jk(f,t,o,i,n,d)):(o[0]=o[1],d=Jk(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Yk(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Wk(t.events,n))}return e}function Jk(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Xk(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Xk(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=Xk(t.events,n[2]),a=Xk(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Xk(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Yk(e,t,n,r,i){let a=[],o=Xk(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Xk(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Zk={name:`tasklistCheck`,tokenize:$k};function Qk(){return{text:{91:Zk}}}function $k(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Yx(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Jx(r)?t(r):Xx(r)?e.check({tokenize:eA},t,n)(r):n(r)}}function eA(e,t,n){return tS(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function tA(e){return Ix([_k(),Nk(),Vk(e),Gk(),Qk()])}var nA={};function rA(e){let t=this,n=e||nA,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(tA(n)),a.push(ok()),o.push(sk(n))}var iA=Symbol.for(`yaml.alias`),aA=Symbol.for(`yaml.document`),oA=Symbol.for(`yaml.map`),sA=Symbol.for(`yaml.pair`),cA=Symbol.for(`yaml.scalar`),lA=Symbol.for(`yaml.seq`),uA=Symbol.for(`yaml.node.type`),dA=e=>!!e&&typeof e==`object`&&e[uA]===iA,fA=e=>!!e&&typeof e==`object`&&e[uA]===aA,pA=e=>!!e&&typeof e==`object`&&e[uA]===oA,mA=e=>!!e&&typeof e==`object`&&e[uA]===sA,hA=e=>!!e&&typeof e==`object`&&e[uA]===cA,gA=e=>!!e&&typeof e==`object`&&e[uA]===lA;function _A(e){if(e&&typeof e==`object`)switch(e[uA]){case oA:case lA:return!0}return!1}function vA(e){if(e&&typeof e==`object`)switch(e[uA]){case iA:case oA:case cA:case lA:return!0}return!1}var yA=e=>(hA(e)||_A(e))&&!!e.anchor,bA=Symbol(`break visit`),xA=Symbol(`skip children`),SA=Symbol(`remove node`);function CA(e,t){let n=TA(t);fA(e)?wA(null,e.contents,n,Object.freeze([e]))===SA&&(e.contents=null):wA(null,e,n,Object.freeze([]))}CA.BREAK=bA,CA.SKIP=xA,CA.REMOVE=SA;function wA(e,t,n,r){let i=EA(e,t,n,r);if(vA(i)||mA(i))return DA(e,r,i),wA(e,i,n,r);if(typeof i!=`symbol`){if(_A(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=wA(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===bA)return bA;else i===SA&&(t.items.splice(e,1),--e)}}else if(mA(t)){r=Object.freeze(r.concat(t));let e=wA(`key`,t.key,n,r);if(e===bA)return bA;e===SA&&(t.key=null);let i=wA(`value`,t.value,n,r);if(i===bA)return bA;i===SA&&(t.value=null)}}return i}function TA(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function EA(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(pA(t))return n.Map?.(e,t,r);if(gA(t))return n.Seq?.(e,t,r);if(mA(t))return n.Pair?.(e,t,r);if(hA(t))return n.Scalar?.(e,t,r);if(dA(t))return n.Alias?.(e,t,r)}function DA(e,t,n){let r=t[t.length-1];if(_A(r))r.items[e]=n;else if(mA(r))e===`key`?r.key=n:r.value=n;else if(fA(r))r.contents=n;else{let e=dA(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var OA={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},kA=e=>e.replace(/[!,[\]{}]/g,e=>OA[e]),AA=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+kA(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&vA(e.contents)){let t={};CA(e.contents,(e,n)=>{vA(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||e&&!r.some(e=>e.startsWith(a))||t.push(`%TAG ${i} ${a}`);return t.join(`
|
|
67
|
-
`)}};AA.defaultYaml={explicit:!1,version:`1.2`},AA.defaultTags={"!!":`tag:yaml.org,2002:`};function jA(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function MA(e){let t=new Set;return CA(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function NA(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function PA(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=MA(e);let a=NA(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(hA(t.node)||_A(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function FA(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=FA(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=FA(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=FA(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=FA(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function IA(e,t,n){if(Array.isArray(e))return e.map((e,t)=>IA(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!yA(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var LA=class{constructor(e){Object.defineProperty(this,uA,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!fA(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=IA(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?FA(i,{"":o},``,o):o}},RA=class extends LA{constructor(e){super(iA),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],CA(e,{Node:(e,t)=>{(dA(t)||yA(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(IA(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=zA(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(jA(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function zA(e,t,n){if(dA(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(_A(t)){let r=0;for(let i of t.items){let t=zA(e,i,n);t>r&&(r=t)}return r}if(mA(t)){let r=zA(e,t.key,n),i=zA(e,t.value,n);return Math.max(r,i)}return 1}var BA=e=>!e||typeof e!=`function`&&typeof e!=`object`,VA=class extends LA{constructor(e){super(cA),this.value=e}toJSON(e,t){return t?.keep?this.value:IA(this.value,e,t)}toString(){return String(this.value)}};VA.BLOCK_FOLDED=`BLOCK_FOLDED`,VA.BLOCK_LITERAL=`BLOCK_LITERAL`,VA.PLAIN=`PLAIN`,VA.QUOTE_DOUBLE=`QUOTE_DOUBLE`,VA.QUOTE_SINGLE=`QUOTE_SINGLE`;var HA=`tag:yaml.org,2002:`;function UA(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function WA(e,t,n){if(fA(e)&&(e=e.contents),vA(e))return e;if(mA(e)){let t=n.schema[oA].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new RA(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=HA+t.slice(2));let l=UA(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new VA(e);return c&&(c.node=t),t}l=e instanceof Map?o[oA]:Symbol.iterator in Object(e)?o[lA]:o[oA]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new VA(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function GA(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return WA(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var KA=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,qA=class extends LA{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>vA(t)||mA(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(KA(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(_A(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,GA(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(_A(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&hA(i)?i.value:i:_A(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!mA(t))return!1;let n=t.value;return n==null||e&&hA(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return _A(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(_A(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,GA(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},JA=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function YA(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var XA=(e,t,n)=>e.endsWith(`
|
|
68
|
-
`)?YA(n,t):n.includes(`
|
|
69
|
-
`)?`
|
|
70
|
-
`+YA(n,t):(e.endsWith(` `)?``:` `)+n,ZA=`flow`,QA=`block`,$A=`quoted`;function ej(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=tj(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
|
|
71
|
-
`)n===`block`&&(h=tj(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
|
|
72
|
-
`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
|
|
73
|
-
`&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function tj(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
|
|
74
|
-
`);r=t,i=t+1,a=e[i]}return r}var nj=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),rj=e=>/^(%|---|\.\.\.)/m.test(e);function ij(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
|
|
75
|
-
`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function aj(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(rj(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
|
|
76
|
-
|
|
77
|
-
`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
|
|
78
|
-
`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:ej(o,a,$A,nj(t,!1))}function oj(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
79
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return aj(e,t);let n=t.indent||(rj(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:ej(r,n,ZA,nj(t,!1))}function sj(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=aj;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?oj:i&&!t?aj:n?oj:aj}return r(e,t)}var cj;try{cj=RegExp(`(^|(?<!
|
|
80
|
-
))
|
|
81
|
-
+(?!
|
|
82
|
-
|$)`,`g`)}catch{cj=/\n+(?!\n|$)/g}function lj({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return sj(n,r);let l=r.indent||(r.forceBlockIndent||rj(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===VA.BLOCK_FOLDED?!1:t===VA.BLOCK_LITERAL||!ij(n,c,l.length);if(!n)return u?`|
|
|
83
|
-
`:`>
|
|
84
|
-
`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
|
|
85
|
-
`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
|
|
86
|
-
`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
|
|
87
|
-
`&&(p=p.slice(0,-1)),p.replace(cj,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
|
|
88
|
-
`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
|
|
89
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=nj(r,!0);o!==`folded`&&t!==VA.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=ej(`${v}${e}${p}`,l,QA,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function uj(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
|
|
90
|
-
`)||u&&/[[\]{},]/.test(a))return sj(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
|
|
91
|
-
`)?sj(a,t):lj(e,t,n,r);if(!s&&!u&&i!==VA.PLAIN&&a.includes(`
|
|
92
|
-
`))return lj(e,t,n,r);if(rj(a)){if(c===``)return t.forceBlockIndent=!0,lj(e,t,n,r);if(s&&c===l)return sj(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return sj(a,t)}return s?d:ej(d,c,ZA,nj(t,!1))}function dj(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==VA.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=VA.QUOTE_DOUBLE);let c=e=>{switch(e){case VA.BLOCK_FOLDED:case VA.BLOCK_LITERAL:return i||a?sj(o.value,t):lj(o,t,n,r);case VA.QUOTE_DOUBLE:return aj(o.value,t);case VA.QUOTE_SINGLE:return oj(o.value,t);case VA.PLAIN:return uj(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function fj(e,t){let n=Object.assign({blockQuote:!0,commentString:JA,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function pj(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(hA(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function mj(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(hA(e)||_A(e))&&e.anchor;a&&jA(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function hj(e,t,n,r){if(mA(e))return e.toString(t,n,r);if(dA(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=vA(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=pj(t.doc.schema.tags,a);let o=mj(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):hA(a)?dj(a,t,n,r):a.toString(t,n,r);return o?hA(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function gj({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=vA(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(_A(e)||!vA(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||_A(e)||(hA(e)?e.type===VA.BLOCK_FOLDED||e.type===VA.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=hj(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=XA(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=XA(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=XA(g,n.indent,l(f))));let _,v,y;vA(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&hA(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&gA(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=hj(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
|
|
93
|
-
`:``,v){let e=l(v);S+=`\n${YA(e,n.indent)}`}x===``&&!n.inFlow?S===`
|
|
94
|
-
`&&y&&(S=`
|
|
95
|
-
|
|
96
|
-
`):S+=`\n${n.indent}`}else if(!p&&_A(t)){let e=x[0],r=x.indexOf(`
|
|
97
|
-
`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
|
|
98
|
-
`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=XA(g,n.indent,l(y)):h&&i&&i(),g}function _j(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var vj=`<<`,yj={identify:e=>e===vj||typeof e==`symbol`&&e.description===vj,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new VA(Symbol(vj)),{addToJSMap:xj}),stringify:()=>vj},bj=(e,t)=>(yj.identify(t)||hA(t)&&(!t.type||t.type===VA.PLAIN)&&yj.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===yj.tag&&e.default);function xj(e,t,n){let r=Cj(e,n);if(gA(r))for(let n of r.items)Sj(e,t,n);else if(Array.isArray(r))for(let n of r)Sj(e,t,n);else Sj(e,t,r)}function Sj(e,t,n){let r=Cj(e,n);if(!pA(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Cj(e,t){return e&&dA(t)?t.resolve(e.doc,e):t}function wj(e,t,{key:n,value:r}){if(vA(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(bj(e,n))xj(e,t,r);else{let i=IA(n,``,e);if(t instanceof Map)t.set(i,IA(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Tj(n,i,e),o=IA(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Tj(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(vA(e)&&n?.doc){let t=fj(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),_j(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Ej(e,t,n){return new Dj(WA(e,void 0,n),WA(t,void 0,n))}var Dj=class e{constructor(e,t=null){Object.defineProperty(this,uA,{value:sA}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return vA(n)&&(n=n.clone(t)),vA(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return wj(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?gj(this,e,t,n):JSON.stringify(this)}};function Oj(e,t,n){return(t.inFlow??e.flow?Aj:kj)(e,t,n)}function kj({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(vA(i))!d&&i.spaceBefore&&f.push(``),jj(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(mA(i)){let e=vA(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),jj(n,f,e.commentBefore,d))}d=!1;let s=hj(i,u,()=>o=null,()=>d=!0);o&&(s+=XA(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
|
|
99
|
-
`}}return e?(p+=`
|
|
100
|
-
`+YA(l(e),c),s&&s()):d&&o&&o(),p}function Aj({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(vA(i))i.spaceBefore&&d.push(``),jj(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(mA(i)){let e=vA(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),jj(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=vA(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=hj(i,c,()=>a=null);l||=d.length>u||o.includes(`
|
|
101
|
-
`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=XA(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
|
|
102
|
-
`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function jj({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=YA(t(r),e);n.push(i.trimStart())}}function Mj(e,t){let n=hA(t)?t.value:t;for(let r of e)if(mA(r)&&(r.key===t||r.key===n||hA(r.key)&&r.key.value===n))return r}var Nj=class extends qA{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(oA,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Ej(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=mA(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Dj(e,e?.value):new Dj(e.key,e.value);let r=Mj(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);hA(r.value)&&BA(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=Mj(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Mj(this.items,e)?.value;return(!t&&hA(n)?n.value:n)??void 0}has(e){return!!Mj(this.items,e)}set(e,t){this.add(new Dj(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)wj(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!mA(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Oj(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Pj={collection:`map`,default:!0,nodeClass:Nj,tag:`tag:yaml.org,2002:map`,resolve(e,t){return pA(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>Nj.from(e,t,n)},Fj=class extends qA{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(lA,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Ij(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=Ij(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&hA(r)?r.value:r}has(e){let t=Ij(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Ij(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];hA(r)&&BA(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(IA(e,String(r++),t));return n}toString(e,t,n){return e?Oj(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(WA(a,void 0,n))}}return i}};function Ij(e){let t=hA(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var Lj={collection:`seq`,default:!0,nodeClass:Fj,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return gA(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Fj.from(e,t,n)},Rj={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),dj(e,t,n,r)}},zj={identify:e=>e==null,createNode:()=>new VA(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new VA(null),stringify:({source:e},t)=>typeof e==`string`&&zj.test.test(e)?e:t.options.nullStr},Bj={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new VA(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&Bj.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function Vj({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var Hj={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Vj},Uj={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Vj(e)}},Wj={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new VA(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:Vj},Gj=e=>typeof e==`bigint`||Number.isInteger(e),Kj=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function qj(e,t,n){let{value:r}=e;return Gj(r)&&r>=0?n+r.toString(t):Vj(e)}var Jj={identify:e=>Gj(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>Kj(e,2,8,n),stringify:e=>qj(e,8,`0o`)},Yj={identify:Gj,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Kj(e,0,10,n),stringify:Vj},Xj={identify:e=>Gj(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Kj(e,2,16,n),stringify:e=>qj(e,16,`0x`)},Zj=[Pj,Lj,Rj,zj,Bj,Jj,Yj,Xj,Hj,Uj,Wj];function Qj(e){return typeof e==`bigint`||Number.isInteger(e)}var $j=({value:e})=>JSON.stringify(e),eM=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:$j},{identify:e=>e==null,createNode:()=>new VA(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:$j},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:$j},{identify:Qj,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Qj(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:$j}],tM=[Pj,Lj].concat(eM,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),nM={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=VA.BLOCK_LITERAL,t!==VA.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===VA.BLOCK_LITERAL?`
|
|
103
|
-
`:` `)}return dj({comment:e,type:t,value:s},r,i,a)}};function rM(e,t){if(gA(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!mA(r)){if(pA(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new Dj(new VA(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=mA(r)?r:new Dj(r)}}else t(`Expected a sequence for this tag`);return e}function iM(e,t,n){let{replacer:r}=n,i=new Fj(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Ej(o,s,n))}return i}var aM={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:rM,createNode:iM},oM=class e extends Fj{constructor(){super(),this.add=Nj.prototype.add.bind(this),this.delete=Nj.prototype.delete.bind(this),this.get=Nj.prototype.get.bind(this),this.has=Nj.prototype.has.bind(this),this.set=Nj.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(mA(e)?(r=IA(e.key,``,t),i=IA(e.value,r,t)):r=IA(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=iM(e,t,n),i=new this;return i.items=r.items,i}};oM.tag=`tag:yaml.org,2002:omap`;var sM={collection:`seq`,identify:e=>e instanceof Map,nodeClass:oM,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=rM(e,t),r=[];for(let{key:e}of n.items)hA(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new oM,n)},createNode:(e,t,n)=>oM.from(e,t,n)};function cM({value:e,source:t},n){return t&&(e?lM:uM).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var lM={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new VA(!0),stringify:cM},uM={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new VA(!1),stringify:cM},dM={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Vj},fM={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Vj(e)}},pM={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new VA(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:Vj},mM=e=>typeof e==`bigint`||Number.isInteger(e);function hM(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function gM(e,t,n){let{value:r}=e;if(mM(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return Vj(e)}var _M={identify:mM,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>hM(e,2,2,n),stringify:e=>gM(e,2,`0b`)},vM={identify:mM,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>hM(e,1,8,n),stringify:e=>gM(e,8,`0`)},yM={identify:mM,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>hM(e,0,10,n),stringify:Vj},bM={identify:mM,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>hM(e,2,16,n),stringify:e=>gM(e,16,`0x`)},xM=class e extends Nj{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=mA(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Dj(e.key,null):new Dj(e,null),Mj(this.items,t.key)||this.items.push(t)}get(e,t){let n=Mj(this.items,e);return!t&&mA(n)?hA(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Mj(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Dj(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Ej(e,null,n));return i}};xM.tag=`tag:yaml.org,2002:set`;var SM={collection:`map`,identify:e=>e instanceof Set,nodeClass:xM,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>xM.from(e,t,n),resolve(e,t){if(pA(e)){if(e.hasAllNullValues(!0))return Object.assign(new xM,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function CM(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function wM(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Vj(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var TM={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>CM(e,n),stringify:wM},EM={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>CM(e,!1),stringify:wM},DM={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(DM.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=CM(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},OM=[Pj,Lj,Rj,zj,lM,uM,_M,vM,yM,bM,dM,fM,pM,nM,yj,sM,aM,SM,TM,EM,DM],kM=new Map([[`core`,Zj],[`failsafe`,[Pj,Lj,Rj]],[`json`,tM],[`yaml11`,OM],[`yaml-1.1`,OM]]),AM={binary:nM,bool:Bj,float:Wj,floatExp:Uj,floatNaN:Hj,floatTime:EM,int:Yj,intHex:Xj,intOct:Jj,intTime:TM,map:Pj,merge:yj,null:zj,omap:sM,pairs:aM,seq:Lj,set:SM,timestamp:DM},jM={"tag:yaml.org,2002:binary":nM,"tag:yaml.org,2002:merge":yj,"tag:yaml.org,2002:omap":sM,"tag:yaml.org,2002:pairs":aM,"tag:yaml.org,2002:set":SM,"tag:yaml.org,2002:timestamp":DM};function MM(e,t,n){let r=kM.get(t);if(r&&!e)return n&&!r.includes(yj)?r.concat(yj):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(kM.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(yj)),i.reduce((e,t)=>{let n=typeof t==`string`?AM[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(AM).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var NM=(e,t)=>e.key<t.key?-1:+(e.key>t.key),PM=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?MM(e,`compat`):e?MM(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?jM:{},this.tags=MM(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,oA,{value:Pj}),Object.defineProperty(this,cA,{value:Rj}),Object.defineProperty(this,lA,{value:Lj}),this.sortMapEntries=typeof a==`function`?a:a===!0?NM:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function FM(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=fj(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(YA(t,``))}let o=!1,s=null;if(e.contents){if(vA(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(YA(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=hj(e.contents,i,()=>s=null,t);s&&(c+=XA(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(hj(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
|
|
104
|
-
`)?(n.push(`...`),n.push(YA(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(YA(a(t),``)))}return n.join(`
|
|
105
|
-
`)+`
|
|
106
|
-
`}var IM=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,uA,{value:aA});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new AA({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[uA]:{value:aA}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=vA(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){LM(this.contents)&&this.contents.add(e)}addIn(e,t){LM(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=MA(this);e.anchor=!t||n.has(t)?NA(t||`a`,n):t}return new RA(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=PA(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=WA(e,l,p);return o&&_A(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new Dj(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return LM(this.contents)?this.contents.delete(e):!1}deleteIn(e){return KA(e)?this.contents!=null&&(this.contents=null,!0):LM(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return _A(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return KA(e)?!t&&hA(this.contents)?this.contents.value:this.contents:_A(this.contents)?this.contents.getIn(e,t):void 0}has(e){return _A(this.contents)?this.contents.has(e):!1}hasIn(e){return KA(e)?this.contents!==void 0:_A(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=GA(this.schema,[e],t):LM(this.contents)&&this.contents.set(e,t)}setIn(e,t){KA(e)?this.contents=t:this.contents==null?this.contents=GA(this.schema,Array.from(e),t):LM(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new AA({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new AA({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new PM(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=IA(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?FA(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return FM(this,e)}};function LM(e){if(_A(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var RM=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},zM=class extends RM{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},BM=class extends RM{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},VM=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
|
|
107
|
-
`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function HM(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:b&&n===`seq-item-ind`||(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function UM(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
|
|
108
|
-
`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(UM(t.key)||UM(t.value))return!0}return!1;default:return!0}}function WM(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&UM(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function GM(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||hA(e)&&hA(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var KM=`All mapping items must start at the same column`;function qM({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Nj)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=HM(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,KM)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
|
|
109
|
-
`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||UM(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,KM);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&WM(r.indent,u,i),n.atKey=!1,GM(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=HM(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&WM(r.indent,f,i),s=c.range[2];let l=new Dj(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
|
|
110
|
-
`+_.comment:g.comment=_.comment);let e=new Dj(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function JM({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Fj)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=HM(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&WM(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function YM(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var XM=`Block collections are not allowed within flow collections`,ZM=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function QM({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?Nj:Fj))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=HM(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
|
|
111
|
-
`+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&UM(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];mA(t)&&(t=t.value??t.key),t.comment?t.comment+=`
|
|
112
|
-
`+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],ZM(m)&&i(r.range,`BLOCK_IN_FLOW`,XM)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);ZM(f)&&i(g.range,`BLOCK_IN_FLOW`,XM),n.atKey=!1;let _=HM(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?ZM(m)&&i(v.range,`BLOCK_IN_FLOW`,XM):_.comment&&(g.comment?g.comment+=`
|
|
113
|
-
`+_.comment:g.comment=_.comment);let y=new Dj(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;GM(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new Nj(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=YM(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
|
|
114
|
-
`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function $M(e,t,n,r,i,a){let o=n.type===`block-map`?qM(e,t,n,r,a):n.type===`block-seq`?JM(e,t,n,r,a):QM(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function eN(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===Nj.tagName&&s===`map`||o===Fj.tagName&&s===`seq`)return $M(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),$M(e,t,n,i,o)}let l=$M(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=vA(u)?u:new VA(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function tN(e,t,n){let r=t.offset,i=nN(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?VA.BLOCK_FOLDED:VA.BLOCK_LITERAL,o=t.source?rN(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
|
|
115
|
-
`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
|
|
116
|
-
`;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===VA.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
|
|
117
|
-
`):t.length>c||r[0]===` `?(f===` `?f=`
|
|
118
|
-
`:!p&&f===`
|
|
119
|
-
`&&(f=`
|
|
120
|
-
|
|
121
|
-
`),d+=f+t.slice(c)+r,f=`
|
|
122
|
-
`,p=!0):r===``?f===`
|
|
123
|
-
`?d+=`
|
|
124
|
-
`:f=`
|
|
125
|
-
`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
|
|
126
|
-
`+o[e][0].slice(c);d[d.length-1]!==`
|
|
127
|
-
`&&(d+=`
|
|
128
|
-
`);break;default:d+=`
|
|
129
|
-
`}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function nN({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function rN(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function iN(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=VA.PLAIN,c=aN(a,l);break;case`single-quoted-scalar`:s=VA.QUOTE_SINGLE,c=oN(a,l);break;case`double-quoted-scalar`:s=VA.QUOTE_DOUBLE,c=cN(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=YM(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function aN(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),sN(e)}function oN(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),sN(e.slice(1,-1)).replace(/''/g,`'`)}function sN(e){let t=/(.*?)\r?\n/sy,n=t.exec(e);if(!n)return e;let r,i;try{r=RegExp(`(?<![ ])[ ]+$`),i=RegExp(`^[ ]+|(?<![ ])[ ]+$`,`g`)}catch{r=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let a=n[1].replace(r,``),o=` `,s=t.lastIndex;for(;n=t.exec(e);){let e=n[1].replace(i,``);e===``?o===`
|
|
130
|
-
`?a+=o:o=`
|
|
131
|
-
`:(a+=o+e,o=` `),s=t.lastIndex}let c=/[ \t]*(.*)/sy;return c.lastIndex=s,n=c.exec(e),a+o+(n?.[1]??``)}function cN(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!==`\r`||e[r+1]!==`
|
|
132
|
-
`){if(i===`
|
|
133
|
-
`){let{fold:t,offset:i}=lN(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=uN[i];if(a)n+=a;else if(i===`
|
|
134
|
-
`)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
|
|
135
|
-
`)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=dN(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
|
|
136
|
-
`&&(a!==`\r`||e[r+2]!==`
|
|
137
|
-
`)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function lN(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
|
|
138
|
-
`||r===`\r`)&&(r!==`\r`||e[t+2]===`
|
|
139
|
-
`);)r===`
|
|
140
|
-
`&&(n+=`
|
|
141
|
-
`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var uN={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
|
|
142
|
-
`,r:`\r`,t:` `,v:`\v`,N:`
`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function dN(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function fN(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?tN(e,t,r):iN(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[cA]:c?pN(e.schema,i,c,n,r):t.type===`scalar`?mN(e,i,t,r):e.schema[cA];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=hA(a)?a:new VA(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new VA(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function pN(e,t,n,r,i){if(n===`!`)return e[cA];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)a.push(t);else return t}for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[cA])}function mN({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[cA];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[cA];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function hN(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var gN={composeNode:_N,composeEmptyNode:vN};function _N(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=yN(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=fN(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=eN(gN,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=vN(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!hA(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function vN(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=fN(e,{type:`scalar`,offset:hN(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function yN({options:e},{offset:t,source:n,end:r},i){let a=new RA(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=YM(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function bN(e,t,{offset:n,start:r,value:i,end:a},o){let s=new IM(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=HM(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?_N(c,i,l,o):vN(c,l.end,r,null,l,o);let u=s.contents.range[2],d=YM(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function xN(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function SN(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
|
|
143
|
-
|
|
144
|
-
`:`
|
|
145
|
-
`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var CN=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=xN(e);r?this.warnings.push(new BM(i,t,n)):this.errors.push(new zM(i,t,n))},this.directives=new AA({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=SN(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(_A(i)&&!i.flow&&i.items.length>0){let e=i.items[0];mA(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:SN(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=xN(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=bN(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new zM(xN(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new zM(xN(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=YM(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new zM(xN(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new IM(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}},wN=Symbol(`break visit`),TN=Symbol(`skip children`),EN=Symbol(`remove item`);function DN(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),ON(Object.freeze([]),e,t)}DN.BREAK=wN,DN.SKIP=TN,DN.REMOVE=EN,DN.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},DN.parentCollection=(e,t)=>{let n=DN.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function ON(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=ON(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===wN)return wN;else r===EN&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}function kN(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
|
|
146
|
-
`:case`\r
|
|
147
|
-
`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function AN(e){switch(e){case void 0:case` `:case`
|
|
148
|
-
`:case`\r`:case` `:return!0;default:return!1}}var jN=new Set(`0123456789ABCDEFabcdef`),MN=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),NN=new Set(`,[]{}`),PN=new Set(` ,[]{}
|
|
149
|
-
\r `),FN=e=>!e||PN.has(e),IN=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
|
|
150
|
-
`||t===`\r`&&this.buffer[e+1]===`
|
|
151
|
-
`}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
|
|
152
|
-
`||!t&&!this.atEnd)return e+n+1}return t===`
|
|
153
|
-
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&AN(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
154
|
-
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&AN(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!AN(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&AN(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(FN),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&AN(r[3]))&&(n!==this.indentNext-1||this.flowLevel!==1||r[0]!==`]`&&r[0]!==`}`))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(FN),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||AN(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
|
|
155
|
-
`,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
|
|
156
|
-
`,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>AN(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
|
|
157
|
-
`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
|
|
158
|
-
`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
|
|
159
|
-
`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
|
|
160
|
-
`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
|
|
161
|
-
`&&n>=this.pos&&n+1+t>i)e=n;else break}while(1);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(AN(r)||e&&NN.has(r))break;t=n}else if(AN(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
|
|
162
|
-
`?(n+=1,r=`
|
|
163
|
-
`,i=this.buffer[n+1]):t=n),i===`#`||e&&NN.has(i))break;if(r===`
|
|
164
|
-
`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&NN.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(FN),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(AN(n)||t&&NN.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!AN(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(MN.has(t))t=this.buffer[++e];else if(t===`%`&&jN.has(this.buffer[e+1])&&jN.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
165
|
-
`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
|
|
166
|
-
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},LN=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function RN(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function zN(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function BN(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function VN(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function HN(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function UN(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function WN(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!RN(t.start,`explicit-key-ind`)&&!RN(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,BN(t.value)?t.value.end?UN(t.value.end,t.sep):t.value.end=t.sep:UN(t.start,t.sep),delete t.sep)}var GN=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new IN,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=kN(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source})}else{if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&WN(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&zN(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:zN(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=HN(VN(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
|
|
167
|
-
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
168
|
-
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){UN(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if(RN(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=HN(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(RN(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(BN(t.key)&&!RN(t.sep,`newline`)){let e=HN(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):RN(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!RN(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){UN(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||RN(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=HN(VN(t));WN(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
|
|
169
|
-
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
170
|
-
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=HN(VN(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=HN(VN(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function KN(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new LN||null,prettyErrors:t}}function qN(e,t={}){let{lineCounter:n,prettyErrors:r}=KN(t),i=new GN(n?.addNewLine),a=new CN(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new zM(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(VM(e,n)),o.warnings.forEach(VM(e,n))),o}function JN(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=qN(e,n);if(!i)return null;if(i.warnings.forEach(e=>_j(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function YN({title:e,onClose:t,children:n}){return(0,q.useEffect)(()=>{let e=e=>e.key===`Escape`&&t();return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t]),(0,J.jsx)(`div`,{className:`fixed inset-0 z-30 flex items-center justify-center bg-dai-deep/40`,onMouseDown:t,children:(0,J.jsxs)(`div`,{className:`card-paper w-[32rem] max-w-[92vw] p-5 shadow-lift`,onMouseDown:e=>e.stopPropagation(),children:[(0,J.jsx)(`h2`,{className:`mb-3 font-serif text-base font-bold`,children:e}),n]})})}var XN=`Optional. For example:
|
|
171
|
-
- the logo selector changed on staging
|
|
172
|
-
- only one profile fails, since the last release
|
|
173
|
-
- step 7 now opens a dialog first`,ZN=e=>e.status===`ok`,QN=e=>e.status!==`missing`&&e.status!==`expired`;function $N({caseId:e,env:t,tool:n,report:r,initialProfile:i,onClose:a}){let{startJob:o}=zc(),s=Mc(),c=(0,q.useMemo)(()=>(s.data?.profiles??[]).filter(e=>e.env===t),[s.data,t]),[l,u]=(0,q.useState)(null),[d,f]=(0,q.useState)(``),p=(0,q.useMemo)(()=>new Set(c.filter(e=>ZN(e)&&(!i||e.id===i)).map(e=>e.id)),[c,i]),m=l??p,h=d.length>Jd,g=m.size===0,_=e=>{let t=new Set(m);t.has(e)?t.delete(e):t.add(e),u(t)};return(0,J.jsx)(YN,{title:`Heal ${e}`,onClose:a,children:(0,J.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[(0,J.jsxs)(`p`,{className:`flex flex-wrap items-center gap-2 text-ink-2`,children:[(0,J.jsx)(of,{env:t}),`The agent reads `,r?(0,J.jsx)(`code`,{children:r}):`the newest report of this case`,` first and runs the case again only when that is not enough.`]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`div`,{className:`mb-1 text-xs font-medium text-ink-2`,children:`Profiles to heal (only logged-in profiles can run)`}),s.isLoading?(0,J.jsx)(`p`,{className:`text-xs text-ink-3`,children:`Loading...`}):null,(0,J.jsx)(`ul`,{className:`space-y-1`,children:c.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsxs)(`label`,{className:`flex items-center gap-2 ${QN(e)?``:`text-ink-3`}`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:m.has(e.id),disabled:!QN(e),onChange:()=>_(e.id)}),(0,J.jsx)(`span`,{className:`font-mono`,children:e.id}),(0,J.jsx)(df,{status:e.status})]})},e.id))}),s.isSuccess&&c.length===0?(0,J.jsx)(`p`,{className:`text-xs text-seal-deep`,children:`No profile has this environment.`}):null,s.isSuccess&&c.length>0&&g?(0,J.jsx)(`p`,{className:`mt-1 text-xs text-seal-deep`,children:`Tick at least one profile. Profiles that are not logged in are left out: log them in on the Profiles page.`}):null]}),(0,J.jsxs)(`label`,{className:`block`,children:[(0,J.jsx)(`span`,{className:`mb-1 block text-xs font-medium text-ink-2`,children:`What should be healed? Any evidence or clues (optional)`}),(0,J.jsx)(`textarea`,{value:d,onChange:e=>f(e.target.value),placeholder:XN,spellCheck:!1,rows:6,className:`${hf} w-full resize-y leading-relaxed`}),(0,J.jsxs)(`span`,{className:`text-xs ${h?`text-seal-deep`:`text-ink-3`}`,children:[d.length.toLocaleString(),` / `,Jd.toLocaleString(),` characters. Clues guide the diagnosis; they never change what counts as a real product problem.`]})]}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{className:mf(),onClick:a,children:`Cancel`}),(0,J.jsxs)(`button`,{className:`${mf(`success`)} gap-1.5`,disabled:g||h,onClick:()=>{a(),o({action:`ai`,tool:n,command:`heal-spec`,caseId:e,env:t,profiles:c.filter(e=>m.has(e.id)).map(e=>e.id),...d.trim()!==``&&{hints:d},...r&&{report:r}})},autoFocus:!0,children:[(0,J.jsx)(id,{size:14,"aria-hidden":`true`}),`Run heal`]})]})]})})}var eP=et((e=>{var t=at(),n=lt();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`]]),F=/["'&<>]/;function I(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=F.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 L=/([A-Z])/g,R=/^ms-/,ee=/^[\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 z(e){return ee.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=V.d;V.d={f:ne.f,r:ne.r,D:ct,C:ut,L:dt,m:ft,X:q,S:pt,M:J};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 U(e,t){return t.tagScope&32&&(e.instructions|=128),se(t.insertionMode,t.selectedValue,t.tagScope|12,le(t.viewTransition))}function ue(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 de(e,t,n){return e=`_`+e.idPrefix+`R_`+t,0<n&&(e+=`H`+n.toString(32)),e+`_`}function fe(e,t){t=t.viewTransition,t!==null&&(t.name!==`auto`&&(ge(e,`vt-name`,t.nameIdx===0?t.name:t.name+`_`+t.nameIdx),t.nameIdx++),ge(e,`vt-update`,t.update),t.enter!==`none`&&ge(e,`vt-enter`,t.enter),t.exit!==`none`&&ge(e,`vt-exit`,t.exit),t.share!==`none`&&ge(e,`vt-share`,t.share))}var pe=new Map;function me(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=I(i);a=I((``+a).trim())}else o=pe.get(i),o===void 0&&(o=I(i.replace(L,`-$1`).toLowerCase().replace(R,`-ms-`)),pe.set(i,o)),a=typeof a==`number`?a===0||N.has(i)?``+a:a+`px`:I((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function he(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function ge(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,I(n),`"`)}var _e=I(`javascript:throw new Error('React form unexpectedly submitted.')`);function ve(e,t){this.push(`<input type="hidden"`),ye(e),ge(this,`name`,t),ge(this,`value`,e),this.push(`/>`)}function ye(e){if(typeof e!=`string`)throw Error(r(480))}function be(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(ye),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function xe(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=be(t,r);l===null?(e.push(` `,`formAction`,`="`,_e,`"`),o=a=i=r=s=null,we(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&W(e,`name`,s),r!=null&&W(e,`formAction`,r),i!=null&&W(e,`formEncType`,i),a!=null&&W(e,`formMethod`,a),o!=null&&W(e,`formTarget`,o),c}function W(e,t,n){switch(t){case`className`:ge(e,`class`,n);break;case`tabIndex`:ge(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:ge(e,t,n);break;case`style`:me(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=z(``+n),e.push(` `,t,`="`,I(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:he(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=z(``+n),e.push(` `,`xlink:href`,`="`,I(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,`="`,I(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,`="`,I(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,I(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,I(n),`"`);break;case`xlinkActuate`:ge(e,`xlink:actuate`,n);break;case`xlinkArcrole`:ge(e,`xlink:arcrole`,n);break;case`xlinkRole`:ge(e,`xlink:role`,n);break;case`xlinkShow`:ge(e,`xlink:show`,n);break;case`xlinkTitle`:ge(e,`xlink:title`,n);break;case`xlinkType`:ge(e,`xlink:type`,n);break;case`xmlBase`:ge(e,`xml:base`,n);break;case`xmlLang`:ge(e,`xml:lang`,n);break;case`xmlSpace`:ge(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,`="`,I(n),`"`)}}}function Se(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 Ce(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function we(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),rt(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 Te(e,t){for(var n in e.push(Fe(`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:W(e,n,i)}}return e.push(`/>`),null}var Ee=/(<\/|<)(s)(tyle)/gi;function De(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function Oe(e,t,n,i){for(var a in e.push(Fe(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:W(e,a,o)}}return fe(e,i),e.push(`/>`),null}function ke(e,t){e.push(Fe(`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:W(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(I(``+t)),Se(e,r,n),e.push(Re(`title`)),null}function Ae(e,t){e.push(Fe(`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:W(e,i,a)}}return e.push(`>`),Se(e,r,n),typeof n==`string`&&e.push((``+n).replace(ae,H)),e.push(Re(`script`)),null}function je(e,t,n,r){e.push(Fe(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:W(e,a,o)}}return fe(e,r),e.push(`>`),Se(e,i,n),n}function Me(e,t,n,r){e.push(Fe(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:W(e,a,o)}}return fe(e,r),e.push(`>`),Se(e,i,n),typeof n==`string`?(e.push(I(n)),null):n}var Ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Pe=new Map;function Fe(e){var t=Pe.get(e);if(t===void 0){if(!Ne.test(e))throw Error(r(65,e));t=`<`+e,Pe.set(e,t)}return t}function Ie(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(Fe(`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===``?ge(e,`href`,``):W(e,f,p);break;default:W(e,f,p)}}if(fe(e,c),e.push(`>`),Se(e,d,u),typeof u==`string`){e.push(I(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(Fe(`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:W(e,_,v)}}return fe(e,c),e.push(`>`),Se(e,g,h),h;case`option`:var y=c.selectedValue;e.push(Fe(`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:W(e,w,E)}}if(y!=null){var k=x===null?Ce(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(`>`),Se(e,C,b),b;case`textarea`:e.push(Fe(`textarea`));var j=null,N=null,P=null,F;for(F in n)if(O.call(n,F)){var L=n[F];if(L!=null)switch(F){case`children`:P=L;break;case`value`:j=L;break;case`defaultValue`:N=L;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:W(e,F,L)}}if(j===null&&N!==null&&(j=N),fe(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]===`
|
|
174
|
-
`&&e.push(`
|
|
175
|
-
`),j!==null&&e.push(I(``+j)),null;case`input`:e.push(Fe(`input`));var R=null,ee=null,B=null,V=null,te=null,ne=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`:R=se;break;case`formAction`:ee=se;break;case`formEncType`:B=se;break;case`formMethod`:V=se;break;case`formTarget`:te=se;break;case`defaultChecked`:H=se;break;case`defaultValue`:ie=se;break;case`checked`:ae=se;break;case`value`:ne=se;break;default:W(e,oe,se)}}var ce=xe(e,i,a,ee,B,V,te,R);return ae===null?H!==null&&he(e,`checked`,H):he(e,`checked`,ae),ne===null?ie!==null&&W(e,`value`,ie):W(e,`value`,ne),fe(e,c),e.push(`/>`),ce?.forEach(ve,e),null;case`button`:e.push(Fe(`button`));var le=null,U=null,ue=null,de=null,pe=null,ye=null,Ne=null,Pe;for(Pe in n)if(O.call(n,Pe)){var Ie=n[Pe];if(Ie!=null)switch(Pe){case`children`:le=Ie;break;case`dangerouslySetInnerHTML`:U=Ie;break;case`name`:ue=Ie;break;case`formAction`:de=Ie;break;case`formEncType`:pe=Ie;break;case`formMethod`:ye=Ie;break;case`formTarget`:Ne=Ie;break;default:W(e,Pe,Ie)}}var Le=xe(e,i,a,de,pe,ye,Ne,ue);if(fe(e,c),e.push(`>`),Le?.forEach(ve,e),Se(e,U,le),typeof le==`string`){e.push(I(le));var ze=null}else ze=le;return ze;case`form`:e.push(Fe(`form`));var Be=null,Ve=null,He=null,G=null,Ue=null,We=null,Ge;for(Ge in n)if(O.call(n,Ge)){var Ke=n[Ge];if(Ke!=null)switch(Ge){case`children`:Be=Ke;break;case`dangerouslySetInnerHTML`:Ve=Ke;break;case`action`:He=Ke;break;case`encType`:G=Ke;break;case`method`:Ue=Ke;break;case`target`:We=Ke;break;default:W(e,Ge,Ke)}}var K=null,qe=null;if(typeof He==`function`){var Je=be(i,He);Je===null?(e.push(` `,`action`,`="`,_e,`"`),We=Ue=G=He=null,we(i,a)):(He=Je.action||``,G=Je.encType,Ue=Je.method,We=Je.target,K=Je.data,qe=Je.name)}if(He!=null&&W(e,`action`,He),G!=null&&W(e,`encType`,G),Ue!=null&&W(e,`method`,Ue),We!=null&&W(e,`target`,We),fe(e,c),e.push(`>`),qe!==null&&(e.push(`<input type="hidden"`),ge(e,`name`,qe),e.push(`/>`),K?.forEach(ve,e)),Se(e,Ve,Be),typeof Be==`string`){e.push(I(Be));var Ye=null}else Ye=Be;return Ye;case`menuitem`:for(var Xe in e.push(Fe(`menuitem`)),n)if(O.call(n,Xe)){var Ze=n[Xe];if(Ze!=null)switch(Xe){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:W(e,Xe,Ze)}}return fe(e,c),e.push(`>`),null;case`object`:e.push(Fe(`object`));var Qe=null,$e=null,et;for(et in n)if(O.call(n,et)){var tt=n[et];if(tt!=null)switch(et){case`children`:Qe=tt;break;case`dangerouslySetInnerHTML`:$e=tt;break;case`data`:var nt=z(``+tt);if(nt===``)break;e.push(` `,`data`,`="`,I(nt),`"`);break;default:W(e,et,tt)}}if(fe(e,c),e.push(`>`),Se(e,$e,Qe),typeof Qe==`string`){e.push(I(Qe));var rt=null}else rt=Qe;return rt;case`title`:var it=c.tagScope&1,at=c.tagScope&4;if(c.insertionMode===4||it||n.itemProp!=null)var ot=ke(e,n);else at?ot=null:(ke(a.hoistableChunks,n),ot=void 0);return ot;case`link`:var st=c.tagScope&1,ct=c.tagScope&4,lt=n.rel,ut=n.href,dt=n.precedence;if(c.insertionMode===4||st||n.itemProp!=null||typeof lt!=`string`||typeof ut!=`string`||ut===``){Te(e,n);var ft=null}else if(n.rel===`stylesheet`){if(typeof dt!=`string`||n.disabled!=null||n.onLoad||n.onError)ft=Te(e,n);else{var pt=a.styles.get(dt),q=i.styleResources.hasOwnProperty(ut)?i.styleResources[ut]:void 0;if(q!==null){i.styleResources[ut]=null,pt||(pt={precedence:I(dt),rules:[],hrefs:[],sheets:new Map},a.styles.set(dt,pt));var J={state:0,props:D({},n,{"data-precedence":n.precedence,precedence:null})};if(q){q.length===2&&mt(J.props,q);var gt=a.preloads.stylesheets.get(ut);gt&&0<gt.length?gt.length=0:J.state=1}pt.sheets.set(ut,J),s&&s.stylesheets.add(J)}else if(pt){var _t=pt.sheets.get(ut);_t&&s&&s.stylesheets.add(_t)}l&&e.push(`<!-- -->`),ft=null}}else n.onLoad||n.onError?ft=Te(e,n):(l&&e.push(`<!-- -->`),ft=ct?null:Te(a.hoistableChunks,n));return ft;case`script`:var vt=c.tagScope&1,yt=n.async;if(typeof n.src!=`string`||!n.src||!yt||typeof yt==`function`||typeof yt==`symbol`||n.onLoad||n.onError||c.insertionMode===4||vt||n.itemProp!=null)var bt=Ae(e,n);else{var xt=n.src;if(n.type===`module`)var St=i.moduleScriptResources,Ct=a.preloads.moduleScripts;else St=i.scriptResources,Ct=a.preloads.scripts;var wt=St.hasOwnProperty(xt)?St[xt]:void 0;if(wt!==null){St[xt]=null;var Tt=n;if(wt){wt.length===2&&(Tt=D({},n),mt(Tt,wt));var Et=Ct.get(xt);Et&&(Et.length=0)}var Dt=[];a.scripts.add(Dt),Ae(Dt,Tt)}l&&e.push(`<!-- -->`),bt=null}return bt;case`style`:var Ot=c.tagScope&1,kt=n.precedence,At=n.href,jt=n.nonce;if(c.insertionMode===4||Ot||n.itemProp!=null||typeof kt!=`string`||typeof At!=`string`||At===``){e.push(Fe(`style`));var Mt=null,Nt=null,Pt;for(Pt in n)if(O.call(n,Pt)){var Ft=n[Pt];if(Ft!=null)switch(Pt){case`children`:Mt=Ft;break;case`dangerouslySetInnerHTML`:Nt=Ft;break;default:W(e,Pt,Ft)}}e.push(`>`);var It=Array.isArray(Mt)?2>Mt.length?Mt[0]:null:Mt;typeof It!=`function`&&typeof It!=`symbol`&&It!=null&&e.push((``+It).replace(Ee,De)),Se(e,Nt,Mt),e.push(Re(`style`));var Lt=null}else{var Rt=a.styles.get(kt);if((i.styleResources.hasOwnProperty(At)?i.styleResources[At]:void 0)!==null){i.styleResources[At]=null,Rt||(Rt={precedence:I(kt),rules:[],hrefs:[],sheets:new Map},a.styles.set(kt,Rt));var zt=a.nonce.style;if(!zt||zt===jt){Rt.hrefs.push(I(At));var Bt=Rt.rules,Vt=null,Ht=null,Ut;for(Ut in n)if(O.call(n,Ut)){var Wt=n[Ut];if(Wt!=null)switch(Ut){case`children`:Vt=Wt;break;case`dangerouslySetInnerHTML`:Ht=Wt}}var Gt=Array.isArray(Vt)?2>Vt.length?Vt[0]:null:Vt;typeof Gt!=`function`&&typeof Gt!=`symbol`&&Gt!=null&&Bt.push((``+Gt).replace(Ee,De)),Se(Bt,Ht,Vt)}}Rt&&s&&s.styles.add(Rt),l&&e.push(`<!-- -->`),Lt=void 0}return Lt;case`meta`:var Kt=c.tagScope&1,qt=c.tagScope&4;if(c.insertionMode===4||Kt||n.itemProp!=null)var Jt=Oe(e,n,`meta`,c);else l&&e.push(`<!-- -->`),Jt=qt?null:typeof n.charSet==`string`?Oe(a.charsetChunks,n,`meta`,c):n.name===`viewport`?Oe(a.viewportChunks,n,`meta`,c):Oe(a.hoistableChunks,n,`meta`,c);return Jt;case`listing`:case`pre`:e.push(Fe(t));var Yt=null,Xt=null,Zt;for(Zt in n)if(O.call(n,Zt)){var Qt=n[Zt];if(Qt!=null)switch(Zt){case`children`:Yt=Qt;break;case`dangerouslySetInnerHTML`:Xt=Qt;break;default:W(e,Zt,Qt)}}if(fe(e,c),e.push(`>`),Xt!=null){if(Yt!=null)throw Error(r(60));if(typeof Xt!=`object`||!(`__html`in Xt))throw Error(r(61));var $t=Xt.__html;$t!=null&&(typeof $t==`string`&&0<$t.length&&$t[0]===`
|
|
176
|
-
`?e.push(`
|
|
177
|
-
`,$t):e.push(``+$t))}return typeof Yt==`string`&&Yt[0]===`
|
|
178
|
-
`&&e.push(`
|
|
179
|
-
`),Yt;case`img`:var en=c.tagScope&3,tn=n.src,nn=n.srcSet;if(!(n.loading===`lazy`||!tn&&!nn||typeof tn!=`string`&&tn!=null||typeof nn!=`string`&&nn!=null||n.fetchPriority===`low`||en)&&(typeof tn!=`string`||tn[4]!==`:`||tn[0]!==`d`&&tn[0]!==`D`||tn[1]!==`a`&&tn[1]!==`A`||tn[2]!==`t`&&tn[2]!==`T`||tn[3]!==`a`&&tn[3]!==`A`)&&(typeof nn!=`string`||nn[4]!==`:`||nn[0]!==`d`&&nn[0]!==`D`||nn[1]!==`a`&&nn[1]!==`A`||nn[2]!==`t`&&nn[2]!==`T`||nn[3]!==`a`&&nn[3]!==`A`)){s!==null&&c.tagScope&64&&(s.suspenseyImages=!0);var rn=typeof n.sizes==`string`?n.sizes:void 0,an=nn?nn+`
|
|
180
|
-
`+(rn||``):tn,on=a.preloads.images,sn=on.get(an);if(sn)(n.fetchPriority===`high`||10>a.highImagePreloads.size)&&(on.delete(an),a.highImagePreloads.add(sn));else if(!i.imageResources.hasOwnProperty(an)){i.imageResources[an]=re;var cn=n.crossOrigin,ln=typeof cn==`string`?cn===`use-credentials`?cn:``:void 0,un=a.headers,dn;un&&0<un.remainingCapacity&&typeof n.srcSet!=`string`&&(n.fetchPriority===`high`||500>un.highImagePreloads.length)&&(dn=ht(tn,`image`,{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:ln,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),0<=(un.remainingCapacity-=dn.length+2))?(a.resets.image[an]=re,un.highImagePreloads&&(un.highImagePreloads+=`, `),un.highImagePreloads+=dn):(sn=[],Te(sn,{rel:`preload`,as:`image`,href:nn?void 0:tn,imageSrcSet:nn,imageSizes:rn,crossOrigin:ln,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),n.fetchPriority===`high`||10>a.highImagePreloads.size?a.highImagePreloads.add(sn):(a.bulkPreloads.add(sn),on.set(an,sn)))}}return Oe(e,n,`img`,c);case`base`:case`area`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`param`:case`source`:case`track`:case`wbr`:return Oe(e,n,t,c);case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:break;case`head`:if(2>c.insertionMode){var fn=o||a.preamble;if(fn.headChunks)throw Error(r(545,"`<head>`"));o!==null&&e.push(`<!--head-->`),fn.headChunks=[];var pn=je(fn.headChunks,n,`head`,c)}else pn=Me(e,n,`head`,c);return pn;case`body`:if(2>c.insertionMode){var mn=o||a.preamble;if(mn.bodyChunks)throw Error(r(545,"`<body>`"));o!==null&&e.push(`<!--body-->`),mn.bodyChunks=[];var hn=je(mn.bodyChunks,n,`body`,c)}else hn=Me(e,n,`body`,c);return hn;case`html`:if(c.insertionMode===0){var gn=o||a.preamble;if(gn.htmlChunks)throw Error(r(545,"`<html>`"));o!==null&&e.push(`<!--html-->`),gn.htmlChunks=[``];var _n=je(gn.htmlChunks,n,`html`,c)}else _n=Me(e,n,`html`,c);return _n;default:if(t.indexOf(`-`)!==-1){e.push(Fe(t));var vn=null,yn=null,bn;for(bn in n)if(O.call(n,bn)){var xn=n[bn];if(xn!=null){var Sn=bn;switch(bn){case`children`:vn=xn;break;case`dangerouslySetInnerHTML`:yn=xn;break;case`style`:me(e,xn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`className`:Sn=`class`;default:if(M(bn)&&typeof xn!=`function`&&typeof xn!=`symbol`&&!1!==xn){if(!0===xn)xn=``;else if(typeof xn==`object`)continue;e.push(` `,Sn,`="`,I(xn),`"`)}}}}return fe(e,c),e.push(`>`),Se(e,yn,vn),vn}}return Me(e,n,t,c)}var Le=new Map;function Re(e){var t=Le.get(e);return t===void 0&&(t=`</`+e+`>`,Le.set(e,t)),t}function ze(e,t){e=e.preamble,e.htmlChunks===null&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),e.headChunks===null&&t.headChunks&&(e.headChunks=t.headChunks),e.bodyChunks===null&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function Be(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)e.push(t[n]);return n<t.length?(n=t[n],t.length=0,e.push(n)):!0}function Ve(e,t,n){if(e.push(`<!--$?--><template id="`),n===null)throw Error(r(395));return e.push(t.boundaryPrefix),t=n.toString(16),e.push(t),e.push(`"></template>`)}function He(e,t,n,i){switch(n.insertionMode){case 0:case 1:case 3:case 2:return e.push(`<div hidden id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 4:return e.push(`<svg aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 5:return e.push(`<math aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 6:return e.push(`<table hidden id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 7:return e.push(`<table hidden><tbody id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 8:return e.push(`<table hidden><tr id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 9:return e.push(`<table hidden><colgroup id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);default:throw Error(r(397))}}function G(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return e.push(`</div>`);case 4:return e.push(`</svg>`);case 5:return e.push(`</math>`);case 6:return e.push(`</table>`);case 7:return e.push(`</tbody></table>`);case 8:return e.push(`</tr></table>`);case 9:return e.push(`</colgroup></table>`);default:throw Error(r(397))}}var Ue=/[<\u2028\u2029]/g;function We(e){return JSON.stringify(e).replace(Ue,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Ge=/[&><\u2028\u2029]/g;function Ke(e){return JSON.stringify(e).replace(Ge,function(e){switch(e){case`&`:return`\\u0026`;case`>`:return`\\u003e`;case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var K=!1,qe=!0;function Je(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(this.push(ie.startInlineStyle),this.push(` media="not all" data-precedence="`),this.push(e.precedence),this.push(`" data-href="`);r<n.length-1;r++)this.push(n[r]),this.push(` `);for(this.push(n[r]),this.push(`">`),r=0;r<t.length;r++)this.push(t[r]);qe=this.push(`</style>`),K=!0,t.length=0,n.length=0}}function Ye(e){return e.state===2?!1:K=!0}function Xe(e,t,n){return K=!1,qe=!0,ie=n,t.styles.forEach(Je,e),ie=null,t.stylesheets.forEach(Ye),K&&(n.stylesToHoist=!0),qe}function Ze(e){for(var t=0;t<e.length;t++)this.push(e[t]);e.length=0}var Qe=[];function $e(e){Te(Qe,e.props);for(var t=0;t<Qe.length;t++)this.push(Qe[t]);Qe.length=0,e.state=2}function et(e){var t=0<e.sheets.size;e.sheets.forEach($e,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(this.push(ie.startInlineStyle),this.push(` data-precedence="`),this.push(e.precedence),e=0,r.length){for(this.push(`" data-href="`);e<r.length-1;e++)this.push(r[e]),this.push(` `);this.push(r[e])}for(this.push(`">`),e=0;e<n.length;e++)this.push(n[e]);this.push(`</style>`),n.length=0,r.length=0}}function tt(e){if(e.state===0){e.state=1;var t=e.props;for(Te(Qe,{rel:`preload`,as:`style`,href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<Qe.length;e++)this.push(Qe[e]);Qe.length=0}}function nt(e){e.sheets.forEach(tt,this),e.sheets.clear()}function rt(e,t){!(t.instructions&32)&&(t.instructions|=32,e.push(` id="`,I(`_`+t.idPrefix+`R_`),`"`))}function it(e,t){e.push(`[`);var n=`[`;t.stylesheets.forEach(function(t){if(t.state!==2){if(t.state===3)e.push(n),t=Ke(``+t.props.href),e.push(t),e.push(`]`),n=`,[`;else{e.push(n);var i=t.props[`data-precedence`],a=t.props,o=z(``+t.props.href);for(var s in o=Ke(o),e.push(o),i=``+i,e.push(`,`),i=Ke(i),e.push(i),a)if(O.call(a,s)&&(i=a[s],i!=null))switch(s){case`href`:case`rel`:case`precedence`:case`data-precedence`:break;case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:ot(e,s,i)}e.push(`]`),n=`,[`,t.state=3}}}),e.push(`]`)}function ot(e,t,n){var r=t.toLowerCase();switch(typeof n){case`function`:case`symbol`:return}switch(t){case`innerHTML`:case`dangerouslySetInnerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`style`:case`ref`:return;case`className`:r=`class`,t=``+n;break;case`hidden`:if(!1===n)return;t=``;break;case`src`:case`href`:n=z(n),t=``+n;break;default:if(2<t.length&&(t[0]===`o`||t[0]===`O`)&&(t[1]===`n`||t[1]===`N`)||!M(t))return;t=``+n}e.push(`,`),r=Ke(r),e.push(r),e.push(`,`),r=Ke(t),e.push(r)}function st(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function ct(e){var t=Gn||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=null,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+(``+e).replace(gt,_t)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],Te(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}Vr(t)}}else ne.D(e)}function ut(e,t){var n=Gn||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=null,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+(``+e).replace(gt,_t)+`>; rel=preconnect`,typeof t==`string`){var c=(``+t).replace(vt,yt);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=null,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],Te(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}Vr(n)}}else ne.C(e,t)}function dt(e,t,n){var r=Gn||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
|
|
181
|
-
`+(s||``):e;if(i.imageResources.hasOwnProperty(l))return;i.imageResources[l]=re,i=a.headers;var u;i&&0<i.remainingCapacity&&typeof o!=`string`&&c===`high`&&(u=ht(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(a.resets.image[l]=re,i.highImagePreloads&&(i.highImagePreloads+=`, `),i.highImagePreloads+=u):(i=[],Te(i,D({rel:`preload`,href:o?void 0:e,as:t},n)),c===`high`?a.highImagePreloads.add(i):(a.bulkPreloads.add(i),a.preloads.images.set(l,i)));break;case`style`:if(i.styleResources.hasOwnProperty(e))return;o=[],Te(o,D({rel:`preload`,href:e,as:t},n)),i.styleResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?re:[n.crossOrigin,n.integrity],a.preloads.stylesheets.set(e,o),a.bulkPreloads.add(o);break;case`script`:if(i.scriptResources.hasOwnProperty(e))return;o=[],a.preloads.scripts.set(e,o),a.bulkPreloads.add(o),Te(o,D({rel:`preload`,href:e,as:t},n)),i.scriptResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?re:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if(o=i.unknownResources[t],o.hasOwnProperty(e))return}else o={},i.unknownResources[t]=o;if(o[e]=re,(i=a.headers)&&0<i.remainingCapacity&&t===`font`&&(l=ht(e,t,n),0<=(i.remainingCapacity-=l.length+2)))a.resets.font[e]=re,i.fontPreloads&&(i.fontPreloads+=`, `),i.fontPreloads+=l;else switch(i=[],e=D({rel:`preload`,href:e,as:t},n),Te(i,e),t){case`font`:a.fontPreloads.add(i);break;default:a.bulkPreloads.add(i)}}Vr(r)}}else ne.L(e,t,n)}function ft(e,t){var n=Gn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=t&&typeof t.as==`string`?t.as:`script`;switch(a){case`script`:if(r.moduleScriptResources.hasOwnProperty(e))return;a=[],r.moduleScriptResources[e]=!t||typeof t.crossOrigin!=`string`&&typeof t.integrity!=`string`?re:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,a);break;default:if(r.moduleUnknownResources.hasOwnProperty(a)){var o=r.moduleUnknownResources[a];if(o.hasOwnProperty(e))return}else o={},r.moduleUnknownResources[a]=o;a=[],o[e]=re}Te(a,D({rel:`modulepreload`,href:e},t)),i.bulkPreloads.add(a),Vr(n)}}else ne.m(e,t)}function pt(e,t,n){var r=Gn||null;if(r){var i=r.resumableState,a=r.renderState;if(e){t||=`default`;var o=a.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;s!==null&&(i.styleResources[e]=null,o||(o={precedence:I(t),rules:[],hrefs:[],sheets:new Map},a.styles.set(t,o)),t={state:0,props:D({rel:`stylesheet`,href:e,"data-precedence":t},n)},s&&(s.length===2&&mt(t.props,s),(a=a.preloads.stylesheets.get(e))&&0<a.length?a.length=0:t.state=1),o.sheets.set(e,t),Vr(r))}}else ne.S(e,t,n)}function q(e,t){var n=Gn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;a!==null&&(r.scriptResources[e]=null,t=D({src:e,async:!0},t),a&&(a.length===2&&mt(t,a),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),Ae(e,t),Vr(n))}}else ne.X(e,t)}function J(e,t){var n=Gn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;a!==null&&(r.moduleScriptResources[e]=null,t=D({src:e,type:`module`,async:!0},t),a&&(a.length===2&&mt(t,a),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),Ae(e,t),Vr(n))}}else ne.M(e,t)}function mt(e,t){e.crossOrigin??=t[0],e.integrity??=t[1]}function ht(e,t,n){for(var r in e=(``+e).replace(gt,_t),t=(``+t).replace(vt,yt),t=`<`+e+`>; rel=preload; as="`+t+`"`,n)O.call(n,r)&&(e=n[r],typeof e==`string`&&(t+=`; `+r.toLowerCase()+`="`+(``+e).replace(vt,yt)+`"`));return t}var gt=/[<>\r\n]/g;function _t(e){switch(e){case`<`:return`%3C`;case`>`:return`%3E`;case`
|
|
182
|
-
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}var vt=/["';,\r\n]/g;function yt(e){switch(e){case`"`:return`%22`;case`'`:return`%27`;case`;`:return`%3B`;case`,`:return`%2C`;case`
|
|
183
|
-
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}function bt(e){this.styles.add(e)}function xt(e){this.stylesheets.add(e)}function St(e,t){t.styles.forEach(bt,e),t.stylesheets.forEach(xt,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function Ct(e,t){var n=e.idPrefix,r=[],i=e.bootstrapScriptContent,a=e.bootstrapScripts,o=e.bootstrapModules;i!==void 0&&(r.push(`<script`),rt(r,e),r.push(`>`,(``+i).replace(ae,H),`<\/script>`)),i=n+`P:`;var s=n+`S:`;n+=`B:`;var c=new Set,l=new Set,u=new Set,d=new Map,f=new Set,p=new Set,m=new Set,h={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(a!==void 0)for(var g=0;g<a.length;g++){var _=a[g],v,y=void 0,b=void 0,x={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:void 0};typeof _==`string`?x.href=v=_:(x.href=v=_.src,x.integrity=b=typeof _.integrity==`string`?_.integrity:void 0,x.crossOrigin=y=typeof _==`string`||_.crossOrigin==null?void 0:_.crossOrigin===`use-credentials`?`use-credentials`:``),_=e;var S=v;_.scriptResources[S]=null,_.moduleScriptResources[S]=null,_=[],Te(_,x),f.add(_),r.push(`<script src="`,I(v),`"`),typeof b==`string`&&r.push(` integrity="`,I(b),`"`),typeof y==`string`&&r.push(` crossorigin="`,I(y),`"`),rt(r,e),r.push(` async=""><\/script>`)}if(o!==void 0)for(a=0;a<o.length;a++)x=o[a],y=v=void 0,b={rel:`modulepreload`,fetchPriority:`low`,nonce:void 0},typeof x==`string`?b.href=g=x:(b.href=g=x.src,b.integrity=y=typeof x.integrity==`string`?x.integrity:void 0,b.crossOrigin=v=typeof x==`string`||x.crossOrigin==null?void 0:x.crossOrigin===`use-credentials`?`use-credentials`:``),x=e,_=g,x.scriptResources[_]=null,x.moduleScriptResources[_]=null,x=[],Te(x,b),f.add(x),r.push(`<script type="module" src="`,I(g),`"`),typeof y==`string`&&r.push(` integrity="`,I(y),`"`),typeof v==`string`&&r.push(` crossorigin="`,I(v),`"`),rt(r,e),r.push(` async=""><\/script>`);return{placeholderPrefix:i,segmentPrefix:s,boundaryPrefix:n,startInlineScript:`<script`,startInlineStyle:`<style`,preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:r,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:c,fontPreloads:l,highImagePreloads:u,styles:d,bootstrapScripts:f,scripts:p,bulkPreloads:m,preloads:h,nonce:{script:void 0,style:void 0},stylesToHoist:!1,generateStaticMarkup:t}}function wt(e,t,n,r){return n.generateStaticMarkup?(e.push(I(t)),!1):(t===``?e=r:(r&&e.push(`<!-- -->`),e.push(I(t)),e=!0),e)}function Tt(e,t,n,r){t.generateStaticMarkup||n&&r&&e.push(`<!-- -->`)}var Et=Function.prototype.bind,Dt=Symbol.for(`react.client.reference`);function Ot(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Dt?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case o:return`Fragment`;case c:return`Profiler`;case s:return`StrictMode`;case f:return`Suspense`;case p:return`SuspenseList`;case _:return`Activity`;case b:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case a:return`Portal`;case u:return e.displayName||`Context`;case l:return(e._context.displayName||`Context`)+`.Consumer`;case d:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case m:return t=e.displayName||null,t===null?Ot(e.type)||`Memo`:t;case h:t=e._payload,e=e._init;try{return Ot(e(t))}catch{}}return null}var kt={},At=null;function jt(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(r(401))}else{if(n===null)throw Error(r(401));jt(e,n)}t.context._currentValue2=t.value}}function Mt(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&Mt(e)}function Nt(e){var t=e.parent;t!==null&&Nt(t),e.context._currentValue2=e.value}function Pt(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(r(402));e.depth===t.depth?jt(e,t):Pt(e,t)}function Ft(e,t){var n=t.parent;if(n===null)throw Error(r(402));e.depth===n.depth?jt(e,n):Ft(e,n),t.context._currentValue2=t.value}function It(e){var t=At;t!==e&&(t===null?Nt(e):e===null?Mt(t):t.depth===e.depth?jt(t,e):t.depth>e.depth?Pt(t,e):Ft(t,e),At=e)}var Lt={enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},Rt={id:1,overflow:``};function zt(e){var t=e.overflow;return e=e.id,(e&~(1<<32-Vt(e)-1)).toString(32)+t}function Bt(e,t,n){var r=e.id;e=e.overflow;var i=32-Vt(r)-1;r&=~(1<<i),n+=1;var a=32-Vt(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-Vt(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var Vt=Math.clz32?Math.clz32:Wt,Ht=Math.log,Ut=Math.LN2;function Wt(e){return e>>>=0,e===0?32:31-(Ht(e)/Ut|0)|0}function Gt(){}var Kt=Error(r(460));function qt(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gt,Gt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,e===void 0&&!(`reason`in t)?Error(r(600)):e;default:switch(typeof t.status==`string`?t.then(Gt,Gt):(e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason}throw Jt=t,Kt}}var Jt=null;function Yt(){if(Jt===null)throw Error(r(459));var e=Jt;return Jt=null,e}function Xt(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Zt=typeof Object.is==`function`?Object.is:Xt,Qt=null,$t=null,en=null,tn=null,nn=null,rn=null,an=!1,on=!1,sn=0,cn=0,ln=-1,un=0,dn=null;function fn(e){if(e=e._reason,typeof e==`function`)try{var t=e()}catch{t=`The reason for browser-only rendering could not be determined because its initializer threw.`}else t=e;return t=Error(r(603),e===void 0?void 0:{cause:t}),Object.defineProperty(t,x,{value:!0}),t}function pn(e){return typeof e!=`object`||!e?!1:!0===e[x]}function mn(e){var t=Error(r(604),O.call(e,`cause`)?{cause:e.cause}:void 0);if(e=e.stack,e!==void 0){var n=e.indexOf(`
|
|
184
|
-
`);t.stack=t.name+`: `+t.message+(n===-1?``:e.slice(n))}else t.stack=void 0;return t}var hn=null,gn=0;function _n(){if(Qt===null)throw Error(r(321));return Qt}function vn(){if(0<gn)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function yn(){return rn===null?nn===null?(an=!1,nn=rn=vn()):(an=!0,rn=nn):rn.next===null?(an=!1,rn=rn.next=vn()):(an=!0,rn=rn.next),rn}function bn(){var e=dn;return dn=null,e}function xn(){tn=en=$t=Qt=null,on=!1,nn=null,gn=0,rn=hn=null}function Sn(e,t){return typeof t==`function`?t(e):t}function Cn(e,t,n){if(Qt=_n(),rn=yn(),an){var r=rn.queue;if(t=r.dispatch,hn!==null&&(n=hn.get(r),n!==void 0)){hn.delete(r),r=rn.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return rn.memoizedState=r,[r,t]}return[rn.memoizedState,t]}return e=e===Sn?typeof t==`function`?t():t:n===void 0?t:n(t),rn.memoizedState=e,e=rn.queue={last:null,dispatch:null},e=e.dispatch=Tn.bind(null,Qt,e),[rn.memoizedState,e]}function wn(e,t){if(Qt=_n(),rn=yn(),t=t===void 0?null:t,rn!==null){var n=rn.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Zt(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),rn.memoizedState=[e,t],e}function Tn(e,t,n){if(25<=gn)throw Error(r(301));if(e===Qt){if(on=!0,e={action:n,next:null},hn===null&&(hn=new Map),n=hn.get(t),n===void 0)hn.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}}function En(){throw Error(r(440))}function Dn(){throw Error(r(394))}function On(){throw Error(r(479))}function kn(e,t,n){_n();var r=cn++,i=en;if(typeof e.$$FORM_ACTION==`function`){var a=null,o=tn;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(i!==null&&typeof s==`function`){var c=i[1];s.call(e,i[2],i[3])&&(a=n===void 0?`k`+E(JSON.stringify([o,null,r]),0):`p`+n,c===a&&(ln=r,t=i[0]))}var l=e.bind(null,t);return e=function(e){l(e)},typeof l.$$FORM_ACTION==`function`&&(e.$$FORM_ACTION=function(e){e=l.$$FORM_ACTION(e),n!==void 0&&(n+=``,e.action=n);var t=e.data;return t&&(a===null&&(a=n===void 0?`k`+E(JSON.stringify([o,null,r]),0):`p`+n),t.append(`$ACTION_KEY`,a)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function An(e){var t=un;return un+=1,dn===null&&(dn=[]),qt(dn,e,t)}function jn(){throw Error(r(393))}var Mn={readContext:function(e){return e._currentValue2},use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return An(e);if(e.$$typeof===x)throw fn(e);if(e.$$typeof===u)return e._currentValue2}throw Error(r(438,String(e)))},useContext:function(e){return _n(),e._currentValue2},useMemo:wn,useReducer:Cn,useRef:function(e){Qt=_n(),rn=yn();var t=rn.memoizedState;return t===null?(e={current:e},rn.memoizedState=e):t},useState:function(e){return Cn(Sn,e)},useInsertionEffect:Gt,useLayoutEffect:Gt,useCallback:function(e,t){return wn(function(){return e},t)},useImperativeHandle:Gt,useEffect:Gt,useDebugValue:Gt,useDeferredValue:function(e,t){return _n(),t===void 0?e:t},useTransition:function(){return _n(),[!1,Dn]},useId:function(){var e=zt($t.treeContext),t=Nn;if(t===null)throw Error(r(404));return de(t,e,sn++)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(r(407));return n()},useOptimistic:function(e){return _n(),[e,On]},useActionState:kn,useFormState:kn,useHostTransitionStatus:function(){return _n(),te},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=y;return t},useCacheRefresh:function(){return jn},useEffectEvent:function(){return En}},Nn=null,Pn={getCacheForType:function(){throw Error(r(248))},cacheSignal:function(){throw Error(r(248))}},Fn,In;function Ln(e){if(Fn===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Fn=t&&t[1]||``,In=-1<e.stack.indexOf(`
|
|
185
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
186
|
-
`+Fn+e+In}var Rn=!1;function zn(e,t){if(!e||Rn)return``;Rn=!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(`
|
|
187
|
-
`),l=s.split(`
|
|
188
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
189
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Rn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ln(n):``}function Bn(e){if(typeof e==`string`)return Ln(e);if(typeof e==`function`)return e.prototype&&e.prototype.isReactComponent?zn(e,!0):zn(e,!1);if(typeof e==`object`&&e){switch(e.$$typeof){case d:return zn(e.render,!1);case m:return zn(e.type,!1);case h:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch{return Ln(`Lazy`)}return Bn(e)}if(typeof e.name==`string`){a:{n=e.name,t=e.env;var r=e.debugLocation;if(r!=null&&(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith(`Error: react-stack-top-frame
|
|
190
|
-
`)&&(r=r.slice(29)),e=r.indexOf(`
|
|
191
|
-
`),e!==-1&&(r=r.slice(e+1)),e=r.indexOf(`react_stack_bottom_frame`),e!==-1&&(e=r.lastIndexOf(`
|
|
192
|
-
`,e)),e=e===-1?``:r=r.slice(0,e),r=e.lastIndexOf(`
|
|
193
|
-
`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
|
|
194
|
-
`+e;break a}n=Ln(n+(t?` [`+t+`]`:``))}return n}}switch(e){case p:return Ln(`SuspenseList`);case f:return Ln(`Suspense`);case b:return Ln(`ViewTransition`)}return``}function Vn(e,t){return(500<t.byteSize||t.defer)&&t.preamble===null}function Hn(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`[%s] `+e[0],` `+t+` `):e.splice(0,0,`[%s]`,` `+t+` `),e.unshift(console),t=Et.apply(console.error,e),t()}else console.error(e);return null}function Un(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.aborted=!1,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.currentTask=null,this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.postponedState=this.trackedPostpones=null,this.onError=i===void 0?Hn:i,this.onBrowserBailout=a===void 0?Gt:a,this.onAllReady=o===void 0?Gt:o,this.onShellReady=s===void 0?Gt:s,this.onShellError=c===void 0?Gt:c,this.onFatalError=l===void 0?Gt:l,this.renderLifetimeController=null,this.formState=u===void 0?null:u}function Wn(e,t,n,r,i,a,o,s,c,l,u,d){return t=new Un(t,n,r,i,a,o,s,c,l,u,d),n=Xn(t,0,null,r,!1,!1),n.parentFlushed=!0,e=Jn(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Rt,null,null),Zn(e),t.pingedTasks.push(e),t}var Gn=null;function Kn(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,kr(e))}function qn(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,defer:i,fallbackAbortableTasks:n,errorDigest:null,contentState:st(),fallbackState:st(),preamble:r,tracked:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&St(n.contentState,e)),n}function Jn(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:{resolve:function(){return Kn(e,h)},reject:function(t){e.aborted?h.abortSet.delete(h)&&Cr(h,e,t):Kn(e,h)}},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function Yn(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:{resolve:function(){return Kn(e,m)},reject:function(t){e.aborted?m.abortSet.delete(m)&&Cr(m,e,t):Kn(e,m)}},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function Xn(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function Zn(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case i:e.componentStack={parent:e.componentStack,type:t.type}}}function Qn(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function $n(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=Bn(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
|
|
195
|
-
Error generating stack: `+e.message+`
|
|
196
|
-
`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function er(e,t,n){if(pn(t))return e=e.onBrowserBailout,e(t,n),``;if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t===``?void 0:t}function tr(e,t){var n=e.onShellError,r=e.onFatalError;e.pendingRootTasks!==0&&n(t),r(t),Wr(e),e.destination===null?(e.status=12,e.aborted||(e.fatalError=t)):(e.status=13,e.destination.destroy(t))}function nr(e,t){rr(e,t.next,t.hoistables)}function rr(e,t,n){for(;t!==null;){n!==null&&(St(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&St(a.contentState,n),Or(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function ir(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Vn(e,a)){r=!1;break}}r&&rr(e,t,t.hoistables)}}function ar(e){var t={pendingTasks:1,boundaries:null,hoistables:st(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function or(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=ar(c),t.treeContext=Bt(o,n,d);var p=l[d];typeof p==`number`?(ur(e,t,p,f,d),delete l[d]):yr(e,t,f,d),--c.pendingTasks===0&&nr(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=ar(c),t.treeContext=Bt(o,n,u),yr(e,t,d,u),--c.pendingTasks===0&&nr(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=ar(c),t.treeContext=Bt(o,n,i),yr(e,t,l,i),--c.pendingTasks===0&&nr(e,c);else{for(l=t.blockedSegment,u=l.children.length,d=l.chunks.length,f=0;f<n;f++){p=i===`unstable_legacy-backwards`?n-1-f:f;var m=r[p];t.row=c=ar(c),t.treeContext=Bt(o,n,p);var h=Xn(e,d,null,t.formatContext,p!==0||l.lastPushedText,!0);l.children.splice(u,0,h),t.blockedSegment=h;try{yr(e,t,m,p),Tt(h.chunks,e.renderState,h.lastPushedText,h.textEmbedded),h.status=1,--c.pendingTasks===0&&nr(e,c)}catch(t){throw h.status=e.aborted?3:4,t}}t.blockedSegment=l,l.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function sr(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,Qt={},$t=t,en=e,tn=n,cn=sn=0,ln=-1,un=0,dn=o,e=r(i,a);on;)on=!1,cn=sn=0,ln=-1,un=0,gn+=1,rn=null,e=r(i,a);return xn(),e}function cr(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(`<!--F!-->`):c.push(`<!--F-->`)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Bt(n,1,0),yr(e,t,r,-1),t.treeContext=n):s?yr(e,t,r,-1):dr(e,t,r,-1),t.keyPath=a}function lr(e,t,n,i,a,y){if(typeof i==`function`){if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var S in x={},a)S!==`ref`&&(x[S]=a[S]);var w=i.defaultProps;if(w)for(var E in x===a&&(x=D({},x,a)),w)x[E]===void 0&&(x[E]=w[E]);var O=x,k=kt,A=i.contextType;typeof A==`object`&&A&&(k=A._currentValue2);var j=new i(O,k),M=j.state===void 0?null:j.state;j.updater=Lt,j.props=O,j.state=M;var N={queue:[],replace:!1};j._reactInternals=N;var P=i.contextType;j.context=typeof P==`object`&&P?P._currentValue2:kt;var F=i.getDerivedStateFromProps;if(typeof F==`function`){var I=F(O,M);j.state=I==null?M:D({},M,I)}if(typeof i.getDerivedStateFromProps!=`function`&&typeof j.getSnapshotBeforeUpdate!=`function`&&(typeof j.UNSAFE_componentWillMount==`function`||typeof j.componentWillMount==`function`)){var L=j.state;if(typeof j.componentWillMount==`function`&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount==`function`&&j.UNSAFE_componentWillMount(),L!==j.state&&Lt.enqueueReplaceState(j,j.state,null),N.queue!==null&&0<N.queue.length){var R=N.queue,ee=N.replace;if(N.queue=null,N.replace=!1,ee&&R.length===1)j.state=R[0];else{for(var z=ee?R[0]:j.state,B=!0,V=+!!ee;V<R.length;V++){var te=R[V],ne=typeof te==`function`?te.call(j,z,O,void 0):te;ne!=null&&(B?(B=!1,z=D({},z,ne)):D(z,ne))}j.state=z}}else N.queue=null}var re=j.render();if(e.aborted)throw null;var ie=t.keyPath;t.keyPath=n,dr(e,t,re,-1),t.keyPath=ie}else{var ae=sr(e,t,n,i,a,void 0);if(e.aborted)throw null;cr(e,t,n,ae,sn!==0,cn,ln)}}else if(typeof i==`string`){var H=t.blockedSegment;if(H===null){var oe=a.children,se=t.formatContext,le=t.keyPath;t.formatContext=ce(se,i,a),t.keyPath=n,yr(e,t,oe,-1),t.formatContext=se,t.keyPath=le}else{var fe=Ie(H.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,H.lastPushedText);H.lastPushedText=!1;var pe=t.formatContext,me=t.keyPath;if(t.keyPath=n,(t.formatContext=ce(pe,i,a)).insertionMode===3){var he=Xn(e,0,null,t.formatContext,!1,!1);H.preambleChildren.push(he),t.blockedSegment=he;try{yr(e,t,fe,-1),Tt(he.chunks,e.renderState,he.lastPushedText,he.textEmbedded),he.status=1}finally{t.blockedSegment=H}}else yr(e,t,fe,-1);t.formatContext=pe,t.keyPath=me;a:{var ge=H.chunks,_e=e.resumableState;switch(i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=pe.insertionMode){_e.hasBody=!0;break a}break;case`html`:if(pe.insertionMode===0){_e.hasHtml=!0;break a}break;case`head`:if(1>=pe.insertionMode)break a}ge.push(Re(i))}H.lastPushedText=!1}}else{switch(i){case v:case s:case c:case o:var ve=t.keyPath;t.keyPath=n,dr(e,t,a.children,-1),t.keyPath=ve;return;case _:var ye=t.blockedSegment;if(ye===null){if(a.mode!==`hidden`){var be=t.keyPath;t.keyPath=n,yr(e,t,a.children,-1),t.keyPath=be}}else if(a.mode!==`hidden`){e.renderState.generateStaticMarkup||ye.chunks.push(`<!--&-->`),ye.lastPushedText=!1;var xe=t.keyPath;t.keyPath=n,yr(e,t,a.children,-1),t.keyPath=xe,e.renderState.generateStaticMarkup||ye.chunks.push(`<!--/&-->`),ye.lastPushedText=!1}return;case p:a:{var W=a.children,Se=a.revealOrder;if(Se!==`independent`&&Se!==`together`){if(T(W)){or(e,t,n,W,Se);break a}var Ce=C(W);if(Ce){var we=Ce.call(W);if(we){var Te=we.next();if(!Te.done){do Te=we.next();while(!Te.done);or(e,t,n,W,Se)}break a}}}if(Se===`together`){var Ee=t.keyPath,De=t.row,Oe=t.row=ar(null);Oe.boundaries=[],Oe.together=!0,t.keyPath=n,dr(e,t,W,-1),--Oe.pendingTasks===0&&nr(e,Oe),t.keyPath=Ee,t.row=De,De!==null&&0<Oe.pendingTasks&&(De.pendingTasks++,Oe.next=De)}else{var ke=t.keyPath;t.keyPath=n,dr(e,t,W,-1),t.keyPath=ke}}return;case b:var Ae=t.formatContext,je=t.keyPath,Me=e.resumableState;if((a.name==null||a.name===`auto`)&&de(Me,zt(t.treeContext),0),t.formatContext=Ae,t.keyPath=n,a.name!=null&&a.name!==`auto`)dr(e,t,a.children,-1);else{var Ne=t.treeContext;t.treeContext=Bt(Ne,1,0),yr(e,t,a.children,-1),t.treeContext=Ne}t.formatContext=Ae,t.keyPath=je;return;case g:throw Error(r(343));case f:a:if(t.replay!==null){var Pe=t.keyPath,Fe=t.formatContext,Le=t.row;t.keyPath=n,t.formatContext=ue(e.resumableState,Fe),t.row=null;var ze=a.children;try{yr(e,t,ze,-1)}finally{t.keyPath=Pe,t.formatContext=Fe,t.row=Le}}else{var Be=t.keyPath,Ve=t.formatContext,He=t.row,G=t.blockedBoundary,Ue=t.blockedPreamble,We=t.hoistableState,Ge=t.blockedSegment,Ke=a.fallback,K=a.children,qe=new Set,Je=qn(e,t.row,qe,null,!1),Ye=Xn(e,Ge.chunks.length,Je,t.formatContext,!1,!1);Ge.children.push(Ye),Ge.lastPushedText=!1;var Xe=Xn(e,0,null,t.formatContext,!1,!1);Xe.parentFlushed=!0;var Ze=e.trackedPostpones;if(Ze!==null){var Qe=t.componentStack,$e=[n[0],`Suspense Fallback`,n[2]];if(Ze!==null){var et=[$e[1],$e[2],[],null];Ze.workingMap.set($e,et),Je.tracked={contentKeyPath:n,fallbackNode:et}}t.blockedSegment=Ye,t.blockedPreamble=Je.preamble===null?null:Je.preamble.fallback,t.keyPath=$e,t.formatContext=U(e.resumableState,Ve),t.componentStack=Qn(Qe);try{yr(e,t,Ke,-1),Tt(Ye.chunks,e.renderState,Ye.lastPushedText,Ye.textEmbedded),Ye.status=1}catch(t){throw Ye.status=e.aborted?3:4,t}finally{t.blockedSegment=Ge,t.blockedPreamble=Ue,t.keyPath=Be,t.formatContext=Ve}var tt=Jn(e,null,K,-1,Je,Xe,Je.preamble===null?null:Je.preamble.content,Je.contentState,t.abortSet,n,ue(e.resumableState,t.formatContext),t.context,t.treeContext,null,Qe);Zn(tt),e.pingedTasks.push(tt)}else{t.blockedBoundary=Je,t.blockedPreamble=Je.preamble===null?null:Je.preamble.content,t.hoistableState=Je.contentState,t.blockedSegment=Xe,t.keyPath=n,t.formatContext=ue(e.resumableState,Ve),t.row=null;try{if(yr(e,t,K,-1),Tt(Xe.chunks,e.renderState,Xe.lastPushedText,Xe.textEmbedded),Xe.status=1,Dr(Je,Xe),Je.pendingTasks===0&&Je.status===0){if(Je.status=1,!Vn(e,Je)){He!==null&&--He.pendingTasks===0&&nr(e,He),e.pendingRootTasks===0&&t.blockedPreamble&&Mr(e);break a}}else He!==null&&He.together&&ir(e,He)}catch(n){if(Je.status=4,e.aborted){Xe.status=3;var nt=e.fatalError}else Xe.status=4,nt=n;var rt=$n(t.componentStack);Je.errorDigest=er(e,nt,rt),gr(e,Je)}finally{t.blockedBoundary=G,t.blockedPreamble=Ue,t.hoistableState=We,t.blockedSegment=Ge,t.keyPath=Be,t.formatContext=Ve,t.row=He}var it=Jn(e,null,Ke,-1,G,Ye,Je.preamble===null?null:Je.preamble.fallback,Je.fallbackState,qe,[n[0],`Suspense Fallback`,n[2]],U(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Qn(t.componentStack));Zn(it),e.pingedTasks.push(it)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a){var at={};for(var ot in a)ot!==`ref`&&(at[ot]=a[ot])}else at=a;cr(e,t,n,sr(e,t,n,i.render,at,y),sn!==0,cn,ln);return;case m:lr(e,t,n,i.type,a,y);return;case u:var st=a.children,ct=t.keyPath,lt=a.value,ut=i._currentValue2;i._currentValue2=lt;var dt=At,ft={parent:dt,depth:dt===null?0:dt.depth+1,context:i,parentValue:ut,value:lt};At=ft,t.context=ft,t.keyPath=n,dr(e,t,st,-1);var pt=At;if(pt===null)throw Error(r(403));pt.context._currentValue2=pt.parentValue,t.context=At=pt.parent,t.keyPath=ct;return;case l:var q=a.children,J=q(i._context._currentValue2),mt=t.keyPath;t.keyPath=n,dr(e,t,J,-1),t.keyPath=mt;return;case h:var ht=i._init,gt=ht(i._payload);if(e.aborted)throw null;lr(e,t,n,gt,a,y);return}throw Error(r(130,i==null?i:typeof i,``))}}function ur(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Xn(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,yr(e,t,r,i),s.status=1,o===null?e.completedRootSegment=s:(Dr(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function dr(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?ur(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,Zn(t),fr(e,t),t.componentStack=n)}function fr(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,p=Ot(s),m=c==null||c===w?o===-1?0:o:c;if(c=[t.keyPath,p,m],t.replay!==null)a:{var g=t.replay;for(o=g.nodes,n=0;n<o.length;n++){var _=o[n];if(m===_[1]){if(_.length===4){if(p!==null&&p!==_[0])throw Error(r(490,_[0],p));var v=_[2],y=_[3],b=t.node;t.replay={nodes:v,slots:y,pendingTasks:1};try{if(lr(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Kt||typeof r.then==`function`||r.message===`Maximum call stack size exceeded`))throw t.node===b?t.replay=g:o.splice(n,1),r;t.replay.pendingTasks--,c=$n(t.componentStack),b=e,l=t.blockedBoundary,e=e.aborted?e.fatalError:r,c=er(b,e,c),xr(b,l,v,y,e,c)}t.replay=g}else{if(s!==f)throw Error(r(490,`Suspense`,Ot(s)||`Unknown`));b:{g=_[5],s=_[2],d=_[3],p=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3],m=t.keyPath;var x=t.formatContext,S=t.row,E=t.replay,D=t.blockedBoundary,O=t.hoistableState,k=l.children;l=l.fallback;var A=new Set,j=qn(e,t.row,A,null,!1);j.parentFlushed=!0,j.rootSegmentID=g,t.blockedBoundary=j,t.hoistableState=j.contentState,t.keyPath=c,t.formatContext=ue(e.resumableState,x),t.row=null,t.replay={nodes:s,slots:d,pendingTasks:1};try{if(yr(e,t,k,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,j.pendingTasks===0&&j.status===0){j.status=1,e.completedBoundaries.push(j);break b}}catch(n){j.status=4,v=e.aborted?e.fatalError:n,y=$n(t.componentStack),b=er(e,v,y),j.errorDigest=b,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(j)}finally{t.blockedBoundary=D,t.hoistableState=O,t.replay=E,t.keyPath=m,t.formatContext=x,t.row=S}v=Yn(e,null,{nodes:p,slots:_,pendingTasks:0},l,-1,D,j.fallbackState,A,[c[0],`Suspense Fallback`,c[2]],U(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Qn(t.componentStack)),Zn(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else lr(e,t,c,s,l,d);return;case a:throw Error(r(257));case h:if(v=n._init,n=v(n._payload),e.aborted)throw null;dr(e,t,n,o);return}if(T(n)){pr(e,t,n,o);return}if((v=C(n))&&(v=v.call(n))){if(n=v.next(),!n.done){y=[];do y.push(n.value),n=v.next();while(!n.done);pr(e,t,y,o)}return}if(typeof n.then==`function`)return t.thenableState=null,dr(e,t,An(n),o);if(n.$$typeof===u)return dr(e,t,n._currentValue2,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=wt(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=wt(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function pr(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(pr(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Kt||typeof r.then==`function`))throw r;t.replay.pendingTasks--;var u=$n(t.componentStack);n=e;var d=t.blockedBoundary;e=e.aborted?e.fatalError:r,u=er(n,e,u),xr(n,d,i,l,e,u)}t.replay=o,s.splice(c,1);break}}t.keyPath=a}else if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=Bt(o,s,i),d=c[i],typeof d==`number`?(ur(e,t,d,l,i),delete c[i]):yr(e,t,l,i);t.treeContext=o,t.keyPath=a}else{for(c=0;c<s;c++)i=n[c],t.treeContext=Bt(o,s,c),yr(e,t,i,c);t.treeContext=o,t.keyPath=a}}function mr(e,t,n){n.status=5,n.rootSegmentID=e.nextSegmentId++;var i=n.tracked;if(i===null||(e=i.contentKeyPath,e===null))throw Error(r(486));i=i.fallbackNode;var a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),Kr(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function hr(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=mr(e,t,o);if(o.tracked!==null&&o.tracked.contentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],Kr(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),Kr(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function gr(e,t){e=e.trackedPostpones,e!==null&&(t=t.tracked,t!==null&&(t=t.contentKeyPath,t!==null&&(e=e.workingMap.get(t),e!==void 0&&(e.length=4,e[2]=[],e[3]=null))))}function _r(e,t,n){return Yn(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function vr(e,t,n){var r=t.blockedSegment,i=Xn(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Jn(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function yr(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return dr(e,t,n,r)}catch(u){if(xn(),n=u===Kt?Yt():u,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===Kt?bn():null,e=_r(e,t,r).ping,n.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,It(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===Kt?bn():null,n=_r(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,It(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return dr(e,t,n,r)}catch(r){if(xn(),l.children.length=u,l.chunks.length=d,n=r===Kt?Yt():r,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===Kt?bn():null,e=vr(e,t,n).ping,l.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,It(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===Kt?bn():null,l=vr(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,It(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,It(a),n}function br(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,Or(this,t,e.row,n))}function xr(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)xr(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=qn(l,null,new Set,null,!1);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function Sr(e,t){if(e!==t.currentTask){var n=e.blockedBoundary;e=e.blockedSegment,e!==null&&(e.status=3),n!==null&&n.fallbackAbortableTasks.forEach(function(e){return Sr(e,t)})}}function Cr(e,t,n){if(e!==t.currentTask){var r=e.blockedBoundary,i=e.blockedSegment;if(i===null||i.status===3){var a=$n(e.componentStack),o=pn(n);if(r===null){if(r=e.replay,r===null){o||t.trackedPostpones===null||i===null?o?(e=mn(n),er(t,e,a),t.status!==12&&t.status!==13&&tr(t,e)):(er(t,n,a),t.status!==12&&t.status!==13&&tr(t,n)):(r=t.trackedPostpones,er(t,n,a),hr(t,r,e,i),Or(t,null,e.row,i));return}t.status!==12&&t.status!==13&&(r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(a=er(t,n,a),xr(t,null,r.nodes,r.slots,n,a)),t.pendingRootTasks--,t.pendingRootTasks===0&&Tr(t))}else{var s=t.trackedPostpones;if(r.status!==4){if(!o&&s!==null&&i!==null)return er(t,n,a),hr(t,s,e,i),r.fallbackAbortableTasks.forEach(function(e){return Cr(e,t,n)}),r.fallbackAbortableTasks.clear(),Or(t,r,e.row,i);r.status=4,a=er(t,n,a),r.errorDigest=a,gr(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,a=r.row,a!==null&&--a.pendingTasks===0&&nr(t,a),r.fallbackAbortableTasks.forEach(function(e){return Cr(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&nr(t,e),t.allPendingTasks--,t.allPendingTasks===0&&Er(t)}}}function wr(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=ht(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=re,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:re;else break b}}r(a?{Link:a}:{})}}}catch(t){er(e,t,{})}}function Tr(e){e.trackedPostpones===null&&wr(e,!0),e.trackedPostpones===null&&Mr(e),e=e.onShellReady,e()}function Er(e){wr(e,e.trackedPostpones===null||e.completedRootSegment===null||e.completedRootSegment.status!==5),Mr(e),e=e.onAllReady,e()}function Dr(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||Dr(e,n)}else e.completedSegments.push(t)}function Or(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?nr(e,n):n.together&&ir(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&Tr(e)}else if(t.pendingTasks--,t.status!==4){if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&Dr(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&St(n.hoistables,t.contentState),Vn(e,t)||(e.allPendingTasks++,t.fallbackAbortableTasks.forEach(br,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&nr(e,n),e.allPendingTasks--),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.preamble!==null&&Mr(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];mr(e,n,o),Or(e,o,null,null)}}e.allPendingTasks++,--t.pendingTasks===0&&nr(e,t),e.allPendingTasks--}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(Dr(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&ir(e,t)}e.allPendingTasks===0&&Er(e)}function kr(e){if(!(e.aborted||11<e.status)){var t=At,n=B.H;B.H=Mn;var i=B.A;B.A=Pn;var a=Gn;Gn=e;var o=Nn;Nn=e.resumableState;try{for(var s=e.pingedTasks,c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){a:if(l.replay.pendingTasks!==0){var f=u.currentTask;u.currentTask=l,It(l.context);var p=l.node;try{if(typeof l.replay.slots==`number`?ur(u,l,l.replay.slots,l.node,l.childIndex):fr(u,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),Or(u,l.blockedBoundary,l.row,null)}catch(e){xn();var m=e===Kt?Yt():e;if(u.aborted){e===Kt&&(l.thenableState=bn()),u.currentTask=f;var h=u;Sr(l,h),l.abortSet.delete(l),Cr(l,h,h.fatalError)}else{if(typeof m==`object`&&m){if(typeof m.then==`function`){var g=l.ping;m.then(g.resolve,g.reject),l.thenableState=e===Kt?bn():null;break a}if(m.message===`Maximum call stack size exceeded`&&l.node!==p){l.thenableState=null,u.pingedTasks.push(l);break a}}l.replay.pendingTasks--,l.abortSet.delete(l);var _=$n(l.componentStack);h=u;var v=l.blockedBoundary,y=u.aborted?u.fatalError:m,b=l.replay.nodes,x=l.replay.slots,S=er(h,y,_);xr(h,v,b,x,y,S),u.pendingRootTasks--,u.pendingRootTasks===0&&Tr(u),u.allPendingTasks--,u.allPendingTasks===0&&Er(u)}}finally{u.currentTask=f}}}else a:if(h=d,h.status===0){var C=u.currentTask;u.currentTask=l,It(l.context);var w=h.children.length,T=h.chunks.length,E=l.node;try{fr(u,l),Tt(h.chunks,u.renderState,h.lastPushedText,h.textEmbedded),l.abortSet.delete(l),h.status=1,Or(u,l.blockedBoundary,l.row,h)}catch(e){xn(),h.children.length=w,h.chunks.length=T;var D=e===Kt?Yt():e;if(u.aborted)e===Kt&&(l.thenableState=bn()),u.currentTask=C,h=u,Sr(l,h),l.abortSet.delete(l),Cr(l,h,h.fatalError);else{if(typeof D==`object`&&D){if(typeof D.then==`function`){h.status=0,l.thenableState=e===Kt?bn():null;var O=l.ping;D.then(O.resolve,O.reject);break a}if(D.message===`Maximum call stack size exceeded`&&l.node!==E){h.status=0,l.thenableState=null,u.pingedTasks.push(l);break a}}var k=$n(l.componentStack);l.abortSet.delete(l),h.status=4;var A=l.blockedBoundary,j=l.row;if(j!==null&&--j.pendingTasks===0&&nr(u,j),u.allPendingTasks--,A===null){if(pn(D)){var M=mn(D);er(u,M,k),tr(u,M)}else er(u,D,k),tr(u,D)}else{var N=er(u,D,k);if(A.pendingTasks--,A.status!==4){A.status=4,A.errorDigest=N,gr(u,A);var P=A.row;P!==null&&(u.allPendingTasks++,--P.pendingTasks===0&&nr(u,P),u.allPendingTasks--),A.parentFlushed&&u.clientRenderedBoundaries.push(A),u.pendingRootTasks===0&&u.trackedPostpones===null&&A.preamble!==null&&Mr(u)}u.allPendingTasks===0&&Er(u)}}}finally{u.currentTask=C}}}s.splice(0,c),e.destination!==null&&Br(e,e.destination)}catch(t){er(e,t,{}),tr(e,t)}finally{Nn=o,B.H=n,B.A=i,n===Mn&&It(t),Gn=a}}}function Ar(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=jr(e,t.children[i],n)||r;return r}function jr(e,t,n){var i=t.boundary;if(i===null)return Ar(e,t,n);var a=i.preamble;if(a===null)return!1;switch(i.status){case 1:if(ze(e.renderState,a.content),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return Ar(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return ze(e.renderState,a.fallback),Ar(e,t,n);default:return!0}}function Mr(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=jr(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function Nr(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,t.push(`<template id="`),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push(`"></template>`);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)t.push(o[s]);a=Fr(e,t,a,i)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(a=t.push(o[s])),a;case 3:return!0;default:throw Error(r(390))}}var Pr=0;function Fr(e,t,n,i){var a=n.boundary;if(a===null)return Nr(e,t,n,i);if(n.boundary=null,a.parentFlushed=!0,a.status===4){var o=a.row;return o!==null&&--o.pendingTasks===0&&nr(e,o),e.renderState.generateStaticMarkup||(a=a.errorDigest,t.push(`<!--$!-->`),t.push(`<template`),a!=null&&(t.push(` data-dgst="`),a=I(a),t.push(a),t.push(`"`)),t.push(`></template>`)),Nr(e,t,n,i),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}if(a.status!==1)return a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Ve(t,e.renderState,a.rootSegmentID),i&&St(i,a.fallbackState),Nr(e,t,n,i),t.push(`<!--/$-->`);if(!zr&&Vn(e,a)&&(Pr+a.byteSize>e.progressiveChunkSize||a.defer))return a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Ve(t,e.renderState,a.rootSegmentID),Nr(e,t,n,i),t.push(`<!--/$-->`);if(Pr+=a.byteSize,i&&St(i,a.contentState),n=a.row,n!==null&&Vn(e,a)&&--n.pendingTasks===0&&nr(e,n),e.renderState.generateStaticMarkup||t.push(`<!--$-->`),n=a.completedSegments,n.length!==1)throw Error(r(391));return Fr(e,t,n[0],i),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}function Ir(e,t,n,r){return He(t,e.renderState,n.parentFormatContext,n.id),Fr(e,t,n,r),G(t,n.parentFormatContext)}function Lr(e,t,n){Pr=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)Rr(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&Vn(e,n)&&--r.pendingTasks===0&&nr(e,r),Xe(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist,o=!!(r.instructions&128);return e.stylesToHoist=!1,t.push(e.startInlineScript),t.push(`>`),a?(!(r.instructions&4)&&(r.instructions|=4,t.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`)),!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
197
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),o&&!(r.instructions&256)&&(r.instructions|=256,t.push(`$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),
|
|
198
|
-
z=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");
|
|
199
|
-
M&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&
|
|
200
|
-
q.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});
|
|
201
|
-
A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`)),r.instructions&8?t.push(`$RR("`):(r.instructions|=8,t.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
202
|
-
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
203
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`))):(!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
204
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),o&&!(r.instructions&256)&&(r.instructions|=256,t.push(`$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),
|
|
205
|
-
z=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");
|
|
206
|
-
M&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&
|
|
207
|
-
q.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});
|
|
208
|
-
A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`)),t.push(`$RC("`)),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push(`","`),t.push(e.segmentPrefix),t.push(r),a?(t.push(`",`),it(t,n)):t.push(`"`),n=t.push(`)<\/script>`),Be(t,e)&&n}function Rr(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return Ir(e,t,i,a)}return o===n.rootSegmentID?Ir(e,t,i,a):(Ir(e,t,i,a),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(`>`),n.instructions&1?t.push(`$RS("`):(n.instructions|=1,t.push(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`)),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push(`","`),t.push(e.placeholderPrefix),t.push(o),t=t.push(`")<\/script>`),t)}var zr=!1;function Br(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Pr=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)t.push(c[u]);if(l)for(u=0;u<l.length;u++)t.push(l[u]);else{var d=Fe(`head`);t.push(d),t.push(`>`)}}else if(l)for(u=0;u<l.length;u++)t.push(l[u]);var f=o.charsetChunks;for(u=0;u<f.length;u++)t.push(f[u]);f.length=0,o.preconnects.forEach(Ze,t),o.preconnects.clear();var p=o.viewportChunks;for(u=0;u<p.length;u++)t.push(p[u]);p.length=0,o.fontPreloads.forEach(Ze,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(Ze,t),o.highImagePreloads.clear(),ie=o,o.styles.forEach(et,t),ie=null;var m=o.importMapChunks;for(u=0;u<m.length;u++)t.push(m[u]);m.length=0,o.bootstrapScripts.forEach(Ze,t),o.scripts.forEach(Ze,t),o.scripts.clear(),o.bulkPreloads.forEach(Ze,t),o.bulkPreloads.clear(),a.instructions|=32;var h=o.hoistableChunks;for(u=0;u<h.length;u++)t.push(h[u]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(o=0;o<g.length;o++)Fr(e,t,g[o],null)}var _=e.renderState.preamble,v=_.headChunks;if(_.htmlChunks||v){var y=Re(`head`);t.push(y)}var b=_.bodyChunks;if(b)for(i=0;i<b.length;i++)t.push(b[i]);Fr(e,t,r,null),e.completedRootSegment=null;var x=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var S=e.resumableState;if(!(S.instructions&64)){if(S.instructions|=64,t.push(x.startInlineScript),!(S.instructions&32)){S.instructions|=32;var C=`_`+S.idPrefix+`R_`;t.push(` id="`);var w=I(C);t.push(w),t.push(`"`)}t.push(`>`),t.push(`requestAnimationFrame(function(){$RT=performance.now()});`),t.push(`<\/script>`)}}Be(t,x)}var T=e.renderState;r=0;var E=T.viewportChunks;for(r=0;r<E.length;r++)t.push(E[r]);E.length=0,T.preconnects.forEach(Ze,t),T.preconnects.clear(),T.fontPreloads.forEach(Ze,t),T.fontPreloads.clear(),T.highImagePreloads.forEach(Ze,t),T.highImagePreloads.clear(),T.styles.forEach(nt,t),T.scripts.forEach(Ze,t),T.scripts.clear(),T.bulkPreloads.forEach(Ze,t),T.bulkPreloads.clear();var D=T.hoistableChunks;for(r=0;r<D.length;r++)t.push(D[r]);D.length=0;var O=e.clientRenderedBoundaries;for(n=0;n<O.length;n++){var k=O[n];T=t;var A=e.resumableState,j=e.renderState,M=k.rootSegmentID,N=k.errorDigest;T.push(j.startInlineScript),T.push(`>`),A.instructions&4?T.push(`$RX("`):(A.instructions|=4,T.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`)),T.push(j.boundaryPrefix);var P=M.toString(16);if(T.push(P),T.push(`"`),N!=null){if(T.push(`,`),N==null)T.push(`null`);else{var F=We(N);T.push(F)}}var L=T.push(`)<\/script>`);if(!L){e.destination=null,n++,O.splice(0,n);return}}O.splice(0,n);var R=e.completedBoundaries;for(n=0;n<R.length;n++)if(!Lr(e,t,R[n])){e.destination=null,n++,R.splice(0,n);return}R.splice(0,n),zr=!0;var ee=e.partialBoundaries;for(n=0;n<ee.length;n++){var z=ee[n];a:{O=e,k=t,Pr=z.byteSize;var B=z.completedSegments;for(L=0;L<B.length;L++)if(!Rr(O,k,z,B[L])){L++,B.splice(0,L);var V=!1;break a}B.splice(0,L);var te=z.row;te!==null&&te.together&&z.pendingTasks===1&&(te.pendingTasks===1?rr(O,te,te.hoistables):te.pendingTasks--),V=Xe(k,z.contentState,O.renderState)}if(!V){e.destination=null,n++,ee.splice(0,n);return}}ee.splice(0,n),zr=!1;var ne=e.completedBoundaries;for(n=0;n<ne.length;n++)if(!Lr(e,t,ne[n])){e.destination=null,n++,ne.splice(0,n);return}ne.splice(0,n)}}finally{zr=!1,n=e.postponedState,n!==null&&(n.nextSegmentId=e.nextSegmentId),e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&(ee=Re(`body`),t.push(ee)),n.hasHtml&&(n=Re(`html`),t.push(n)),Wr(e),e.status=13,t.push(null),e.destination=null)}}function Vr(e){if(!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?Br(e,t):e.flushScheduled=!1}}function Hr(e,t){if(e.status===12)e.status=13,e=e.fatalError,pn(e)&&(e=mn(e)),t.destroy(e);else if(e.status!==13&&e.destination===null){e.destination=t;try{Br(e,t)}catch(t){er(e,t,{}),tr(e,t)}}}function Ur(e,t){try{if(0<t.size){var n=e.fatalError;t.forEach(function(t){return Cr(t,e,n)}),t.clear()}e.destination!==null&&Br(e,e.destination)}catch(t){er(e,t,{}),tr(e,t)}}function Wr(e){e=e.renderLifetimeController,e!==null&&e.abort(`The render ended.`)}function Gr(e,t){if(!(e.aborted||e.status!==11&&e.status!==10)){Wr(e);var n=typeof t==`object`&&!!t&&t.$$typeof===x;e.aborted=!0,t=n?fn(t):t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t,e.fatalError=t,t=e.abortableTasks,t.forEach(function(t){return Sr(t,e)}),Ur(e,t)}}function Kr(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Kr(i,t[0],n)),i[2].push(e)}}function qr(){}function Jr(e,t,n,i){var a=!1,o=null,s=``,c=!1;if(t=oe(t?t.identifierPrefix:void 0),e=Wn(e,t,Ct(t,n),se(0,null,0,null),1/0,qr,void 0,void 0,function(){c=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,kr(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&wr(e,e.pendingRootTasks===0),Gr(e,i),Hr(e,{push:function(e){return e!==null&&(s+=e),!0},destroy:function(e){a=!0,o=e}}),a&&o!==i)throw o;if(!c)throw Error(r(426));return s}e.renderToStaticMarkup=function(e,t){return Jr(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return Jr(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.3.1`})),tP=et((e=>{var t=at(),n=lt();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,E=Object.prototype.hasOwnProperty;function D(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 O=new MessageChannel,k=[];O.port1.onmessage=function(){var e=k.shift();e&&e()};var A=E.call(ArrayBuffer.prototype,`detached`);function j(e){k.push(e),O.port2.postMessage(null)}function M(e){setTimeout(function(){throw e})}var N=Promise,P=typeof queueMicrotask==`function`?queueMicrotask:function(e){N.resolve(null).then(e).catch(M)},F=null,I=0;function L(e,t){if(t.byteLength===0){if(A&&t.buffer.detached)throw Error(r(612))}else if(2048<t.byteLength)0<I&&(e.enqueue(new Uint8Array(F.buffer,0,I)),F=new Uint8Array(2048),I=0),e.enqueue(t);else{var n=F.length-I;n<t.byteLength&&(n===0?e.enqueue(F):(F.set(t.subarray(0,n),I),e.enqueue(F),t=t.subarray(n)),F=new Uint8Array(2048),I=0),F.set(t,I),I+=t.byteLength}}function R(e,t){return L(e,t),!0}function ee(e){F&&0<I&&(e.enqueue(new Uint8Array(F.buffer,0,I)),F=null,I=0)}var z=new TextEncoder;function B(e){return z.encode(e)}function V(e){return z.encode(e)}function te(e){return e.byteLength}function ne(e,t){typeof e.error==`function`?e.error(t):e.close()}var re=Object.assign,ie=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]*$`),ae={},H={};function oe(e){return E.call(H,e)?!0:E.call(ae,e)?!1:ie.test(e)?H[e]=!0:(ae[e]=!0,!1)}var se=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(` `)),ce=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`]]),le=/["'&<>]/;function U(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=le.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 ue=/([A-Z])/g,de=/^ms-/,fe=/^[\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 pe(e){return fe.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var me=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},_e=he.d;he.d={f:_e.f,r:_e.r,D:xr,C:Sr,L:Cr,m:wr,X:Er,S:Tr,M:Dr};var ve=[],ye=null;V(`"></template>`);var be=V(`<script`),xe=V(`<\/script>`),W=V(`<script src="`),Se=V(`<script type="module" src="`),Ce=V(` nonce="`),we=V(` integrity="`),Te=V(` crossorigin="`),Ee=V(` async=""><\/script>`),De=V(`<style`),Oe=/(<\/|<)(s)(cript)/gi;function ke(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}var Ae=V(`<script type="importmap">`),je=V(`<\/script>`);function Me(e,t,n,r,i,a){n=typeof t==`string`?t:t&&t.script;var o=n===void 0?be:V(`<script nonce="`+U(n)+`"`),s=typeof t==`string`?void 0:t&&t.style,c=s===void 0?De:V(`<style nonce="`+U(s)+`"`),l=e.idPrefix,u=[],d=e.bootstrapScriptContent,f=e.bootstrapScripts,p=e.bootstrapModules;if(d!==void 0&&(u.push(o),pr(u,e),u.push(ct,B((``+d).replace(Oe,ke)),xe)),d=[],r!==void 0&&(d.push(n===void 0?Ae:V(`<script type="importmap" nonce="`+U(n)+`">`)),d.push(B((``+JSON.stringify(r)).replace(Oe,ke))),d.push(je)),r=i?{preconnects:``,fontPreloads:``,highImagePreloads:``,remainingCapacity:2+(typeof a==`number`?a:2e3)}:null,i={placeholderPrefix:V(l+`P:`),segmentPrefix:V(l+`S:`),boundaryPrefix:V(l+`B:`),startInlineScript:o,startInlineStyle:c,preamble:Pe(),externalRuntimeScript:null,bootstrapChunks:u,importMapChunks:d,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:n,style:s},hoistableState:null,stylesToHoist:!1},f!==void 0)for(r=0;r<f.length;r++)l=f[r],s=o=void 0,c={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:t},typeof l==`string`?c.href=a=l:(c.href=a=l.src,c.integrity=s=typeof l.integrity==`string`?l.integrity:void 0,c.crossOrigin=o=typeof l==`string`||l.crossOrigin==null?void 0:l.crossOrigin===`use-credentials`?`use-credentials`:``),l=e,d=a,l.scriptResources[d]=null,l.moduleScriptResources[d]=null,l=[],gt(l,c),i.bootstrapScripts.add(l),u.push(W,B(U(a)),Xe),n&&u.push(Ce,B(U(n)),Xe),typeof s==`string`&&u.push(we,B(U(s)),Xe),typeof o==`string`&&u.push(Te,B(U(o)),Xe),pr(u,e),u.push(Ee);if(p!==void 0)for(t=0;t<p.length;t++)s=p[t],a=r=void 0,o={rel:`modulepreload`,fetchPriority:`low`,nonce:n},typeof s==`string`?o.href=f=s:(o.href=f=s.src,o.integrity=a=typeof s.integrity==`string`?s.integrity:void 0,o.crossOrigin=r=typeof s==`string`||s.crossOrigin==null?void 0:s.crossOrigin===`use-credentials`?`use-credentials`:``),s=e,c=f,s.scriptResources[c]=null,s.moduleScriptResources[c]=null,s=[],gt(s,o),i.bootstrapScripts.add(s),u.push(Se,B(U(f)),Xe),n&&u.push(Ce,B(U(n)),Xe),typeof a==`string`&&u.push(we,B(U(a)),Xe),typeof r==`string`&&u.push(Te,B(U(r)),Xe),pr(u,e),u.push(Ee);return i}function Ne(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 Pe(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Fe(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function Ie(e){return Fe(e===`http://www.w3.org/2000/svg`?4:e===`http://www.w3.org/1998/Math/MathML`?5:0,null,0,null)}function Le(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return Fe(2,null,r|1,null);case`select`:return Fe(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return Fe(4,null,r,null);case`picture`:return Fe(2,null,r|2,null);case`math`:return Fe(5,null,r,null);case`foreignObject`:return Fe(2,null,r,null);case`table`:return Fe(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return Fe(7,null,r,null);case`colgroup`:return Fe(9,null,r,null);case`tr`:return Fe(8,null,r,null);case`head`:if(2>e.insertionMode)return Fe(3,null,r,null);break;case`html`:if(e.insertionMode===0)return Fe(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?Fe(2,null,r,null):e.viewTransition!==null||e.tagScope!==r?Fe(e.insertionMode,e.selectedValue,r,null):e}function Re(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 ze(e,t){return t.tagScope&32&&(e.instructions|=128),Fe(t.insertionMode,t.selectedValue,t.tagScope|12,Re(t.viewTransition))}function Be(e,t){e=Re(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),Fe(t.insertionMode,t.selectedValue,n,e)}function Ve(e,t,n){return e=`_`+e.idPrefix+`R_`+t,0<n&&(e+=`H`+n.toString(32)),e+`_`}var He=V(`<!-- -->`);function G(e,t,n,r){return t===``?r:(r&&e.push(He),e.push(B(U(t))),!0)}function Ue(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 We=new Map,Ge=V(` style="`),Ke=V(`:`),K=V(`;`);function qe(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=B(U(i));a=B(U((``+a).trim()))}else o=We.get(i),o===void 0&&(o=V(U(i.replace(ue,`-$1`).toLowerCase().replace(de,`-ms-`))),We.set(i,o)),a=typeof a==`number`?a===0||se.has(i)?B(``+a):B(a+`px`):B(U((``+a).trim()));n?(n=!1,e.push(Ge,o,Ke,a)):e.push(K,o,Ke,a)}}n||e.push(Xe)}var Je=V(` `),Ye=V(`="`),Xe=V(`"`),Ze=V(`=""`);function Qe(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Je,B(t),Ze)}function $e(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(Je,B(t),Ye,B(U(n)),Xe)}var et=V(U(`javascript:throw new Error('React form unexpectedly submitted.')`)),tt=V(`<input type="hidden"`);function nt(e,t){this.push(tt),rt(e),$e(this,`name`,t),$e(this,`value`,e),this.push(ut)}function rt(e){if(typeof e!=`string`)throw Error(r(480))}function it(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(rt),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function ot(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=it(t,r);l===null?(e.push(Je,B(`formAction`),Ye,et,Xe),o=a=i=r=s=null,J(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&st(e,`name`,s),r!=null&&st(e,`formAction`,r),i!=null&&st(e,`formEncType`,i),a!=null&&st(e,`formMethod`,a),o!=null&&st(e,`formTarget`,o),c}function st(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`:qe(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=pe(``+n),e.push(Je,B(t),Ye,B(U(n)),Xe);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:Qe(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=pe(``+n),e.push(Je,B(`xlink:href`),Ye,B(U(n)),Xe);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(Je,B(t),Ye,B(U(n)),Xe);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(Je,B(t),Ze);break;case`capture`:case`download`:!0===n?e.push(Je,B(t),Ze):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Je,B(t),Ye,B(U(n)),Xe);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(Je,B(t),Ye,B(U(n)),Xe);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(Je,B(t),Ye,B(U(n)),Xe);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=ce.get(t)||t,oe(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(Je,B(t),Ye,B(U(n)),Xe)}}}var ct=V(`>`),ut=V(`/>`);function dt(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(B(``+t))}}function ft(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}var pt=V(` selected=""`),q=V(`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))}});`);function J(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),pr(r,e),r.push(ct,q,xe)):r.unshift(t.startInlineScript,ct,q,xe)}}var mt=V(`<!--F!-->`),ht=V(`<!--F-->`);function gt(e,t){for(var n in e.push(At(`link`)),t)if(E.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:st(e,n,i)}}return e.push(ut),null}var _t=/(<\/|<)(s)(tyle)/gi;function vt(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function yt(e,t,n,i){for(var a in e.push(At(n)),t)if(E.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:st(e,a,o)}}return Ue(e,i),e.push(ut),null}function bt(e,t){e.push(At(`title`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:st(e,i,a)}}return e.push(ct),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(B(U(``+t))),dt(e,r,n),e.push(Pt(`title`)),null}var xt=V(`<!--head-->`),St=V(`<!--body-->`),Ct=V(`<!--html-->`);function wt(e,t){e.push(At(`script`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:st(e,i,a)}}return e.push(ct),dt(e,r,n),typeof n==`string`&&e.push(B((``+n).replace(Oe,ke))),e.push(Pt(`script`)),null}function Tt(e,t,n,r){e.push(At(n));var i=n=null,a;for(a in t)if(E.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:st(e,a,o)}}return Ue(e,r),e.push(ct),dt(e,i,n),n}function Et(e,t,n,r){e.push(At(n));var i=n=null,a;for(a in t)if(E.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:st(e,a,o)}}return Ue(e,r),e.push(ct),dt(e,i,n),typeof n==`string`?(e.push(B(U(n))),null):n}var Dt=V(`
|
|
209
|
-
`),Ot=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,kt=new Map;function At(e){var t=kt.get(e);if(t===void 0){if(!Ot.test(e))throw Error(r(65,e));t=V(`<`+e),kt.set(e,t)}return t}var jt=V(`<!DOCTYPE html>`);function Mt(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(At(`a`));var u=null,d=null,f;for(f in n)if(E.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`,``):st(e,f,p);break;default:st(e,f,p)}}if(Ue(e,c),e.push(ct),dt(e,d,u),typeof u==`string`){e.push(B(U(u)));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(At(`select`));var h=null,g=null,_;for(_ in n)if(E.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:st(e,_,v)}}return Ue(e,c),e.push(ct),dt(e,g,h),h;case`option`:var y=c.selectedValue;e.push(At(`option`));var b=null,x=null,S=null,C=null,w;for(w in n)if(E.call(n,w)){var D=n[w];if(D!=null)switch(w){case`children`:b=D;break;case`selected`:S=D;break;case`dangerouslySetInnerHTML`:C=D;break;case`value`:x=D;default:st(e,w,D)}}if(y!=null){var O=x===null?ft(b):``+x;if(T(y)){for(var k=0;k<y.length;k++)if(``+y[k]===O){e.push(pt);break}}else``+y===O&&e.push(pt)}else S&&e.push(pt);return e.push(ct),dt(e,C,b),b;case`textarea`:e.push(At(`textarea`));var A=null,j=null,M=null,N;for(N in n)if(E.call(n,N)){var P=n[N];if(P!=null)switch(N){case`children`:M=P;break;case`value`:A=P;break;case`defaultValue`:j=P;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:st(e,N,P)}}if(A===null&&j!==null&&(A=j),Ue(e,c),e.push(ct),M!=null){if(A!=null)throw Error(r(92));if(T(M)){if(1<M.length)throw Error(r(93));A=``+M[0]}A=``+M}return typeof A==`string`&&A[0]===`
|
|
210
|
-
`&&e.push(Dt),A!==null&&e.push(B(U(``+A))),null;case`input`:e.push(At(`input`));var F=null,I=null,L=null,R=null,ee=null,z=null,V=null,te=null,ne=null,ie;for(ie in n)if(E.call(n,ie)){var ae=n[ie];if(ae!=null)switch(ie){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`input`));case`name`:F=ae;break;case`formAction`:I=ae;break;case`formEncType`:L=ae;break;case`formMethod`:R=ae;break;case`formTarget`:ee=ae;break;case`defaultChecked`:ne=ae;break;case`defaultValue`:V=ae;break;case`checked`:te=ae;break;case`value`:z=ae;break;default:st(e,ie,ae)}}var H=ot(e,i,a,I,L,R,ee,F);return te===null?ne!==null&&Qe(e,`checked`,ne):Qe(e,`checked`,te),z===null?V!==null&&st(e,`value`,V):st(e,`value`,z),Ue(e,c),e.push(ut),H?.forEach(nt,e),null;case`button`:e.push(At(`button`));var se=null,ce=null,le=null,ue=null,de=null,fe=null,me=null,he;for(he in n)if(E.call(n,he)){var ge=n[he];if(ge!=null)switch(he){case`children`:se=ge;break;case`dangerouslySetInnerHTML`:ce=ge;break;case`name`:le=ge;break;case`formAction`:ue=ge;break;case`formEncType`:de=ge;break;case`formMethod`:fe=ge;break;case`formTarget`:me=ge;break;default:st(e,he,ge)}}var _e=ot(e,i,a,ue,de,fe,me,le);if(Ue(e,c),e.push(ct),_e?.forEach(nt,e),dt(e,ce,se),typeof se==`string`){e.push(B(U(se)));var ye=null}else ye=se;return ye;case`form`:e.push(At(`form`));var be=null,xe=null,W=null,Se=null,Ce=null,we=null,Te;for(Te in n)if(E.call(n,Te)){var Ee=n[Te];if(Ee!=null)switch(Te){case`children`:be=Ee;break;case`dangerouslySetInnerHTML`:xe=Ee;break;case`action`:W=Ee;break;case`encType`:Se=Ee;break;case`method`:Ce=Ee;break;case`target`:we=Ee;break;default:st(e,Te,Ee)}}var De=null,Oe=null;if(typeof W==`function`){var ke=it(i,W);ke===null?(e.push(Je,B(`action`),Ye,et,Xe),we=Ce=Se=W=null,J(i,a)):(W=ke.action||``,Se=ke.encType,Ce=ke.method,we=ke.target,De=ke.data,Oe=ke.name)}if(W!=null&&st(e,`action`,W),Se!=null&&st(e,`encType`,Se),Ce!=null&&st(e,`method`,Ce),we!=null&&st(e,`target`,we),Ue(e,c),e.push(ct),Oe!==null&&(e.push(tt),$e(e,`name`,Oe),e.push(ut),De?.forEach(nt,e)),dt(e,xe,be),typeof be==`string`){e.push(B(U(be)));var Ae=null}else Ae=be;return Ae;case`menuitem`:for(var je in e.push(At(`menuitem`)),n)if(E.call(n,je)){var Me=n[je];if(Me!=null)switch(je){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:st(e,je,Me)}}return Ue(e,c),e.push(ct),null;case`object`:e.push(At(`object`));var Ne=null,Pe=null,Fe;for(Fe in n)if(E.call(n,Fe)){var Ie=n[Fe];if(Ie!=null)switch(Fe){case`children`:Ne=Ie;break;case`dangerouslySetInnerHTML`:Pe=Ie;break;case`data`:var Le=pe(``+Ie);if(Le===``)break;e.push(Je,B(`data`),Ye,B(U(Le)),Xe);break;default:st(e,Fe,Ie)}}if(Ue(e,c),e.push(ct),dt(e,Pe,Ne),typeof Ne==`string`){e.push(B(U(Ne)));var Re=null}else Re=Ne;return Re;case`title`:var ze=c.tagScope&1,Be=c.tagScope&4;if(c.insertionMode===4||ze||n.itemProp!=null)var Ve=bt(e,n);else Be?Ve=null:(bt(a.hoistableChunks,n),Ve=void 0);return Ve;case`link`:var G=c.tagScope&1,We=c.tagScope&4,Ge=n.rel,Ke=n.href,K=n.precedence;if(c.insertionMode===4||G||n.itemProp!=null||typeof Ge!=`string`||typeof Ke!=`string`||Ke===``){gt(e,n);var Ze=null}else if(n.rel===`stylesheet`){if(typeof K!=`string`||n.disabled!=null||n.onLoad||n.onError)Ze=gt(e,n);else{var rt=a.styles.get(K),at=i.styleResources.hasOwnProperty(Ke)?i.styleResources[Ke]:void 0;if(at!==null){i.styleResources[Ke]=null,rt||(rt={precedence:B(U(K)),rules:[],hrefs:[],sheets:new Map},a.styles.set(K,rt));var lt={state:0,props:re({},n,{"data-precedence":n.precedence,precedence:null})};if(at){at.length===2&&Or(lt.props,at);var q=a.preloads.stylesheets.get(Ke);q&&0<q.length?q.length=0:lt.state=1}rt.sheets.set(Ke,lt),s&&s.stylesheets.add(lt)}else if(rt){var mt=rt.sheets.get(Ke);mt&&s&&s.stylesheets.add(mt)}l&&e.push(He),Ze=null}}else n.onLoad||n.onError?Ze=gt(e,n):(l&&e.push(He),Ze=We?null:gt(a.hoistableChunks,n));return Ze;case`script`:var ht=c.tagScope&1,Ot=n.async;if(typeof n.src!=`string`||!n.src||!Ot||typeof Ot==`function`||typeof Ot==`symbol`||n.onLoad||n.onError||c.insertionMode===4||ht||n.itemProp!=null)var kt=wt(e,n);else{var Mt=n.src;if(n.type===`module`)var Nt=i.moduleScriptResources,Ft=a.preloads.moduleScripts;else Nt=i.scriptResources,Ft=a.preloads.scripts;var It=Nt.hasOwnProperty(Mt)?Nt[Mt]:void 0;if(It!==null){Nt[Mt]=null;var Lt=n;if(It){It.length===2&&(Lt=re({},n),Or(Lt,It));var Rt=Ft.get(Mt);Rt&&(Rt.length=0)}var zt=[];a.scripts.add(zt),wt(zt,Lt)}l&&e.push(He),kt=null}return kt;case`style`:var Bt=c.tagScope&1,Vt=n.precedence,Ht=n.href,Ut=n.nonce;if(c.insertionMode===4||Bt||n.itemProp!=null||typeof Vt!=`string`||typeof Ht!=`string`||Ht===``){e.push(At(`style`));var Wt=null,Gt=null,Kt;for(Kt in n)if(E.call(n,Kt)){var qt=n[Kt];if(qt!=null)switch(Kt){case`children`:Wt=qt;break;case`dangerouslySetInnerHTML`:Gt=qt;break;default:st(e,Kt,qt)}}e.push(ct);var Jt=Array.isArray(Wt)?2>Wt.length?Wt[0]:null:Wt;typeof Jt!=`function`&&typeof Jt!=`symbol`&&Jt!=null&&e.push(B((``+Jt).replace(_t,vt))),dt(e,Gt,Wt),e.push(Pt(`style`));var Yt=null}else{var Xt=a.styles.get(Vt);if((i.styleResources.hasOwnProperty(Ht)?i.styleResources[Ht]:void 0)!==null){i.styleResources[Ht]=null,Xt||(Xt={precedence:B(U(Vt)),rules:[],hrefs:[],sheets:new Map},a.styles.set(Vt,Xt));var Zt=a.nonce.style;if(!Zt||Zt===Ut){Xt.hrefs.push(B(U(Ht)));var Qt=Xt.rules,$t=null,en=null,tn;for(tn in n)if(E.call(n,tn)){var nn=n[tn];if(nn!=null)switch(tn){case`children`:$t=nn;break;case`dangerouslySetInnerHTML`:en=nn}}var rn=Array.isArray($t)?2>$t.length?$t[0]:null:$t;typeof rn!=`function`&&typeof rn!=`symbol`&&rn!=null&&Qt.push(B((``+rn).replace(_t,vt))),dt(Qt,en,$t)}}Xt&&s&&s.styles.add(Xt),l&&e.push(He),Yt=void 0}return Yt;case`meta`:var an=c.tagScope&1,on=c.tagScope&4;if(c.insertionMode===4||an||n.itemProp!=null)var sn=yt(e,n,`meta`,c);else l&&e.push(He),sn=on?null:typeof n.charSet==`string`?yt(a.charsetChunks,n,`meta`,c):n.name===`viewport`?yt(a.viewportChunks,n,`meta`,c):yt(a.hoistableChunks,n,`meta`,c);return sn;case`listing`:case`pre`:e.push(At(t));var cn=null,ln=null,un;for(un in n)if(E.call(n,un)){var dn=n[un];if(dn!=null)switch(un){case`children`:cn=dn;break;case`dangerouslySetInnerHTML`:ln=dn;break;default:st(e,un,dn)}}if(Ue(e,c),e.push(ct),ln!=null){if(cn!=null)throw Error(r(60));if(typeof ln!=`object`||!(`__html`in ln))throw Error(r(61));var fn=ln.__html;fn!=null&&(typeof fn==`string`&&0<fn.length&&fn[0]===`
|
|
211
|
-
`?e.push(Dt,B(fn)):e.push(B(``+fn)))}return typeof cn==`string`&&cn[0]===`
|
|
212
|
-
`&&e.push(Dt),cn;case`img`:var pn=c.tagScope&3,mn=n.src,hn=n.srcSet;if(!(n.loading===`lazy`||!mn&&!hn||typeof mn!=`string`&&mn!=null||typeof hn!=`string`&&hn!=null||n.fetchPriority===`low`||pn)&&(typeof mn!=`string`||mn[4]!==`:`||mn[0]!==`d`&&mn[0]!==`D`||mn[1]!==`a`&&mn[1]!==`A`||mn[2]!==`t`&&mn[2]!==`T`||mn[3]!==`a`&&mn[3]!==`A`)&&(typeof hn!=`string`||hn[4]!==`:`||hn[0]!==`d`&&hn[0]!==`D`||hn[1]!==`a`&&hn[1]!==`A`||hn[2]!==`t`&&hn[2]!==`T`||hn[3]!==`a`&&hn[3]!==`A`)){s!==null&&c.tagScope&64&&(s.suspenseyImages=!0);var gn=typeof n.sizes==`string`?n.sizes:void 0,_n=hn?hn+`
|
|
213
|
-
`+(gn||``):mn,vn=a.preloads.images,yn=vn.get(_n);if(yn)(n.fetchPriority===`high`||10>a.highImagePreloads.size)&&(vn.delete(_n),a.highImagePreloads.add(yn));else if(!i.imageResources.hasOwnProperty(_n)){i.imageResources[_n]=ve;var bn=n.crossOrigin,xn=typeof bn==`string`?bn===`use-credentials`?bn:``:void 0,Sn=a.headers,Cn;Sn&&0<Sn.remainingCapacity&&typeof n.srcSet!=`string`&&(n.fetchPriority===`high`||500>Sn.highImagePreloads.length)&&(Cn=kr(mn,`image`,{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:xn,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),0<=(Sn.remainingCapacity-=Cn.length+2))?(a.resets.image[_n]=ve,Sn.highImagePreloads&&(Sn.highImagePreloads+=`, `),Sn.highImagePreloads+=Cn):(yn=[],gt(yn,{rel:`preload`,as:`image`,href:hn?void 0:mn,imageSrcSet:hn,imageSizes:gn,crossOrigin:xn,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),n.fetchPriority===`high`||10>a.highImagePreloads.size?a.highImagePreloads.add(yn):(a.bulkPreloads.add(yn),vn.set(_n,yn)))}}return yt(e,n,`img`,c);case`base`:case`area`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`param`:case`source`:case`track`:case`wbr`:return yt(e,n,t,c);case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:break;case`head`:if(2>c.insertionMode){var wn=o||a.preamble;if(wn.headChunks)throw Error(r(545,"`<head>`"));o!==null&&e.push(xt),wn.headChunks=[];var Tn=Tt(wn.headChunks,n,`head`,c)}else Tn=Et(e,n,`head`,c);return Tn;case`body`:if(2>c.insertionMode){var En=o||a.preamble;if(En.bodyChunks)throw Error(r(545,"`<body>`"));o!==null&&e.push(St),En.bodyChunks=[];var Dn=Tt(En.bodyChunks,n,`body`,c)}else Dn=Et(e,n,`body`,c);return Dn;case`html`:if(c.insertionMode===0){var On=o||a.preamble;if(On.htmlChunks)throw Error(r(545,"`<html>`"));o!==null&&e.push(Ct),On.htmlChunks=[jt];var kn=Tt(On.htmlChunks,n,`html`,c)}else kn=Et(e,n,`html`,c);return kn;default:if(t.indexOf(`-`)!==-1){e.push(At(t));var An=null,jn=null,Mn;for(Mn in n)if(E.call(n,Mn)){var Nn=n[Mn];if(Nn!=null){var Pn=Mn;switch(Mn){case`children`:An=Nn;break;case`dangerouslySetInnerHTML`:jn=Nn;break;case`style`:qe(e,Nn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`className`:Pn=`class`;default:if(oe(Mn)&&typeof Nn!=`function`&&typeof Nn!=`symbol`&&!1!==Nn){if(!0===Nn)Nn=``;else if(typeof Nn==`object`)continue;e.push(Je,B(Pn),Ye,B(U(Nn)),Xe)}}}}return Ue(e,c),e.push(ct),dt(e,jn,An),An}}return Et(e,n,t,c)}var Nt=new Map;function Pt(e){var t=Nt.get(e);return t===void 0&&(t=V(`</`+e+`>`),Nt.set(e,t)),t}function Ft(e,t){e=e.preamble,e.htmlChunks===null&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),e.headChunks===null&&t.headChunks&&(e.headChunks=t.headChunks),e.bodyChunks===null&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function It(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)L(e,t[n]);return n<t.length?(n=t[n],t.length=0,R(e,n)):!0}var Lt=V(`requestAnimationFrame(function(){$RT=performance.now()});`),Rt=V(`<template id="`),zt=V(`"></template>`),Bt=V(`<!--&-->`),Vt=V(`<!--/&-->`),Ht=V(`<!--$-->`),Ut=V(`<!--$?--><template id="`),Wt=V(`"></template>`),Gt=V(`<!--$!-->`),Kt=V(`<!--/$-->`),qt=V(`<template`),Jt=V(`"`),Yt=V(` data-dgst="`);V(` data-msg="`),V(` data-stck="`),V(` data-cstck="`);var Xt=V(`></template>`);function Zt(e,t,n){if(L(e,Ut),n===null)throw Error(r(395));return L(e,t.boundaryPrefix),L(e,B(n.toString(16))),R(e,Wt)}var Qt=V(`<div hidden id="`),$t=V(`">`),en=V(`</div>`),tn=V(`<svg aria-hidden="true" style="display:none" id="`),nn=V(`">`),rn=V(`</svg>`),an=V(`<math aria-hidden="true" style="display:none" id="`),on=V(`">`),sn=V(`</math>`),cn=V(`<table hidden id="`),ln=V(`">`),un=V(`</table>`),dn=V(`<table hidden><tbody id="`),fn=V(`">`),pn=V(`</tbody></table>`),mn=V(`<table hidden><tr id="`),hn=V(`">`),gn=V(`</tr></table>`),_n=V(`<table hidden><colgroup id="`),vn=V(`">`),yn=V(`</colgroup></table>`);function bn(e,t,n,i){switch(n.insertionMode){case 0:case 1:case 3:case 2:return L(e,Qt),L(e,t.segmentPrefix),L(e,B(i.toString(16))),R(e,$t);case 4:return L(e,tn),L(e,t.segmentPrefix),L(e,B(i.toString(16))),R(e,nn);case 5:return L(e,an),L(e,t.segmentPrefix),L(e,B(i.toString(16))),R(e,on);case 6:return L(e,cn),L(e,t.segmentPrefix),L(e,B(i.toString(16))),R(e,ln);case 7:return L(e,dn),L(e,t.segmentPrefix),L(e,B(i.toString(16))),R(e,fn);case 8:return L(e,mn),L(e,t.segmentPrefix),L(e,B(i.toString(16))),R(e,hn);case 9:return L(e,_n),L(e,t.segmentPrefix),L(e,B(i.toString(16))),R(e,vn);default:throw Error(r(397))}}function xn(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return R(e,en);case 4:return R(e,rn);case 5:return R(e,sn);case 6:return R(e,un);case 7:return R(e,pn);case 8:return R(e,gn);case 9:return R(e,yn);default:throw Error(r(397))}}var Sn=V(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`),Cn=V(`$RS("`),wn=V(`","`),Tn=V(`")<\/script>`);V(`<template data-rsi="" data-sid="`),V(`" data-pid="`);var En=V(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
214
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`),Dn=B(`$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),
|
|
215
|
-
z=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");
|
|
216
|
-
M&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&
|
|
217
|
-
q.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});
|
|
218
|
-
A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`),On=V(`$RC("`),kn=V(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
219
|
-
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
220
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),An=V(`$RR("`),jn=V(`","`),Mn=V(`",`),Nn=V(`"`),Pn=V(`)<\/script>`);V(`<template data-rci="" data-bid="`),V(`<template data-rri="" data-bid="`),V(`" data-sid="`),V(`" data-sty="`);var Fn=V(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`),In=V(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`),Ln=V(`$RX("`),Rn=V(`"`),zn=V(`,`),Bn=V(`null`),Vn=V(`)<\/script>`);V(`<template data-rxi="" data-bid="`),V(`" data-dgst="`),V(`" data-msg="`),V(`" data-stck="`),V(`" data-cstck="`);var Hn=/[<\u2028\u2029]/g;function Un(e){return JSON.stringify(e).replace(Hn,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Wn=/[&><\u2028\u2029]/g;function Gn(e){return JSON.stringify(e).replace(Wn,function(e){switch(e){case`&`:return`\\u0026`;case`>`:return`\\u003e`;case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Kn=V(` media="not all" data-precedence="`),qn=V(`" data-href="`),Jn=V(`">`),Yn=V(`</style>`),Xn=!1,Zn=!0;function Qn(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(L(this,ye.startInlineStyle),L(this,Kn),L(this,e.precedence),L(this,qn);r<n.length-1;r++)L(this,n[r]),L(this,or);for(L(this,n[r]),L(this,Jn),r=0;r<t.length;r++)L(this,t[r]);Zn=R(this,Yn),Xn=!0,t.length=0,n.length=0}}function $n(e){return e.state===2?!1:Xn=!0}function er(e,t,n){return Xn=!1,Zn=!0,ye=n,t.styles.forEach(Qn,e),ye=null,t.stylesheets.forEach($n),Xn&&(n.stylesToHoist=!0),Zn}function tr(e){for(var t=0;t<e.length;t++)L(this,e[t]);e.length=0}var nr=[];function rr(e){gt(nr,e.props);for(var t=0;t<nr.length;t++)L(this,nr[t]);nr.length=0,e.state=2}var ir=V(` data-precedence="`),ar=V(`" data-href="`),or=V(` `),sr=V(`">`),cr=V(`</style>`);function lr(e){var t=0<e.sheets.size;e.sheets.forEach(rr,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(L(this,ye.startInlineStyle),L(this,ir),L(this,e.precedence),e=0,r.length){for(L(this,ar);e<r.length-1;e++)L(this,r[e]),L(this,or);L(this,r[e])}for(L(this,sr),e=0;e<n.length;e++)L(this,n[e]);L(this,cr),n.length=0,r.length=0}}function ur(e){if(e.state===0){e.state=1;var t=e.props;for(gt(nr,{rel:`preload`,as:`style`,href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<nr.length;e++)L(this,nr[e]);nr.length=0}}function dr(e){e.sheets.forEach(ur,this),e.sheets.clear()}V(`<link rel="expect" href="#`),V(`" blocking="render"/>`);var fr=V(` id="`);function pr(e,t){!(t.instructions&32)&&(t.instructions|=32,e.push(fr,B(U(`_`+t.idPrefix+`R_`)),Xe))}var mr=V(`[`),hr=V(`,[`),gr=V(`,`),_r=V(`]`);function vr(e,t){L(e,mr);var n=mr;t.stylesheets.forEach(function(t){if(t.state!==2){if(t.state===3)L(e,n),L(e,B(Gn(``+t.props.href))),L(e,_r),n=hr;else{L(e,n);var i=t.props[`data-precedence`],a=t.props;for(var o in L(e,B(Gn(pe(``+t.props.href)))),i=``+i,L(e,gr),L(e,B(Gn(i))),a)if(E.call(a,o)&&(i=a[o],i!=null))switch(o){case`href`:case`rel`:case`precedence`:case`data-precedence`:break;case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:yr(e,o,i)}L(e,_r),n=hr,t.state=3}}}),L(e,_r)}function yr(e,t,n){var r=t.toLowerCase();switch(typeof n){case`function`:case`symbol`:return}switch(t){case`innerHTML`:case`dangerouslySetInnerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`style`:case`ref`:return;case`className`:r=`class`,t=``+n;break;case`hidden`:if(!1===n)return;t=``;break;case`src`:case`href`:n=pe(n),t=``+n;break;default:if(2<t.length&&(t[0]===`o`||t[0]===`O`)&&(t[1]===`n`||t[1]===`N`)||!oe(t))return;t=``+n}L(e,gr),L(e,B(Gn(r))),L(e,gr),L(e,B(Gn(t)))}function br(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function xr(e){var t=oa||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=null,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+(``+e).replace(Ar,jr)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],gt(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}ao(t)}}else _e.D(e)}function Sr(e,t){var n=oa||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=null,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+(``+e).replace(Ar,jr)+`>; rel=preconnect`,typeof t==`string`){var c=(``+t).replace(Mr,Nr);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=null,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],gt(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}ao(n)}}else _e.C(e,t)}function Cr(e,t,n){var r=oa||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
|
|
221
|
-
`+(s||``):e;if(i.imageResources.hasOwnProperty(l))return;i.imageResources[l]=ve,i=a.headers;var u;i&&0<i.remainingCapacity&&typeof o!=`string`&&c===`high`&&(u=kr(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(a.resets.image[l]=ve,i.highImagePreloads&&(i.highImagePreloads+=`, `),i.highImagePreloads+=u):(i=[],gt(i,re({rel:`preload`,href:o?void 0:e,as:t},n)),c===`high`?a.highImagePreloads.add(i):(a.bulkPreloads.add(i),a.preloads.images.set(l,i)));break;case`style`:if(i.styleResources.hasOwnProperty(e))return;o=[],gt(o,re({rel:`preload`,href:e,as:t},n)),i.styleResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ve:[n.crossOrigin,n.integrity],a.preloads.stylesheets.set(e,o),a.bulkPreloads.add(o);break;case`script`:if(i.scriptResources.hasOwnProperty(e))return;o=[],a.preloads.scripts.set(e,o),a.bulkPreloads.add(o),gt(o,re({rel:`preload`,href:e,as:t},n)),i.scriptResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ve:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if(o=i.unknownResources[t],o.hasOwnProperty(e))return}else o={},i.unknownResources[t]=o;if(o[e]=ve,(i=a.headers)&&0<i.remainingCapacity&&t===`font`&&(l=kr(e,t,n),0<=(i.remainingCapacity-=l.length+2)))a.resets.font[e]=ve,i.fontPreloads&&(i.fontPreloads+=`, `),i.fontPreloads+=l;else switch(i=[],e=re({rel:`preload`,href:e,as:t},n),gt(i,e),t){case`font`:a.fontPreloads.add(i);break;default:a.bulkPreloads.add(i)}}ao(r)}}else _e.L(e,t,n)}function wr(e,t){var n=oa||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=t&&typeof t.as==`string`?t.as:`script`;switch(a){case`script`:if(r.moduleScriptResources.hasOwnProperty(e))return;a=[],r.moduleScriptResources[e]=!t||typeof t.crossOrigin!=`string`&&typeof t.integrity!=`string`?ve:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,a);break;default:if(r.moduleUnknownResources.hasOwnProperty(a)){var o=r.moduleUnknownResources[a];if(o.hasOwnProperty(e))return}else o={},r.moduleUnknownResources[a]=o;a=[],o[e]=ve}gt(a,re({rel:`modulepreload`,href:e},t)),i.bulkPreloads.add(a),ao(n)}}else _e.m(e,t)}function Tr(e,t,n){var r=oa||null;if(r){var i=r.resumableState,a=r.renderState;if(e){t||=`default`;var o=a.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;s!==null&&(i.styleResources[e]=null,o||(o={precedence:B(U(t)),rules:[],hrefs:[],sheets:new Map},a.styles.set(t,o)),t={state:0,props:re({rel:`stylesheet`,href:e,"data-precedence":t},n)},s&&(s.length===2&&Or(t.props,s),(a=a.preloads.stylesheets.get(e))&&0<a.length?a.length=0:t.state=1),o.sheets.set(e,t),ao(r))}}else _e.S(e,t,n)}function Er(e,t){var n=oa||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;a!==null&&(r.scriptResources[e]=null,t=re({src:e,async:!0},t),a&&(a.length===2&&Or(t,a),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),wt(e,t),ao(n))}}else _e.X(e,t)}function Dr(e,t){var n=oa||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;a!==null&&(r.moduleScriptResources[e]=null,t=re({src:e,type:`module`,async:!0},t),a&&(a.length===2&&Or(t,a),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),wt(e,t),ao(n))}}else _e.M(e,t)}function Or(e,t){e.crossOrigin??=t[0],e.integrity??=t[1]}function kr(e,t,n){for(var r in e=(``+e).replace(Ar,jr),t=(``+t).replace(Mr,Nr),t=`<`+e+`>; rel=preload; as="`+t+`"`,n)E.call(n,r)&&(e=n[r],typeof e==`string`&&(t+=`; `+r.toLowerCase()+`="`+(``+e).replace(Mr,Nr)+`"`));return t}var Ar=/[<>\r\n]/g;function jr(e){switch(e){case`<`:return`%3C`;case`>`:return`%3E`;case`
|
|
222
|
-
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}var Mr=/["';,\r\n]/g;function Nr(e){switch(e){case`"`:return`%22`;case`'`:return`%27`;case`;`:return`%3B`;case`,`:return`%2C`;case`
|
|
223
|
-
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}function Pr(e){this.styles.add(e)}function Fr(e){this.stylesheets.add(e)}function Ir(e,t){t.styles.forEach(Pr,e),t.stylesheets.forEach(Fr,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function Lr(e,t){return t?e.suspenseyImages:0<e.stylesheets.size||e.suspenseyImages}var Rr=Function.prototype.bind,zr=Symbol.for(`react.client.reference`);function Br(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===zr?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case o:return`Fragment`;case c:return`Profiler`;case s:return`StrictMode`;case f:return`Suspense`;case p:return`SuspenseList`;case _:return`Activity`;case b:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case a:return`Portal`;case u:return e.displayName||`Context`;case l:return(e._context.displayName||`Context`)+`.Consumer`;case d:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case m:return t=e.displayName||null,t===null?Br(e.type)||`Memo`:t;case h:t=e._payload,e=e._init;try{return Br(e(t))}catch{}}return null}var Vr={},Hr=null;function Ur(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(r(401))}else{if(n===null)throw Error(r(401));Ur(e,n)}t.context._currentValue=t.value}}function Wr(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&Wr(e)}function Gr(e){var t=e.parent;t!==null&&Gr(t),e.context._currentValue=e.value}function Kr(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(r(402));e.depth===t.depth?Ur(e,t):Kr(e,t)}function qr(e,t){var n=t.parent;if(n===null)throw Error(r(402));e.depth===n.depth?Ur(e,n):qr(e,n),t.context._currentValue=t.value}function Jr(e){var t=Hr;t!==e&&(t===null?Gr(e):e===null?Wr(t):t.depth===e.depth?Ur(t,e):t.depth>e.depth?Kr(t,e):qr(t,e),Hr=e)}var Yr={enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},Xr={id:1,overflow:``};function Zr(e){var t=e.overflow;return e=e.id,(e&~(1<<32-$r(e)-1)).toString(32)+t}function Qr(e,t,n){var r=e.id;e=e.overflow;var i=32-$r(r)-1;r&=~(1<<i),n+=1;var a=32-$r(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-$r(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var $r=Math.clz32?Math.clz32:ni,ei=Math.log,ti=Math.LN2;function ni(e){return e>>>=0,e===0?32:31-(ei(e)/ti|0)|0}function ri(){}var ii=Error(r(460));function ai(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ri,ri),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,e===void 0&&!(`reason`in t)?Error(r(600)):e;default:switch(typeof t.status==`string`?t.then(ri,ri):(e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason}throw oi=t,ii}}var oi=null;function si(){if(oi===null)throw Error(r(459));var e=oi;return oi=null,e}function ci(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var li=typeof Object.is==`function`?Object.is:ci,ui=null,di=null,fi=null,pi=null,mi=null,hi=null,gi=!1,_i=!1,vi=0,yi=0,bi=-1,xi=0,Si=null;function Ci(e){if(e=e._reason,typeof e==`function`)try{var t=e()}catch{t=`The reason for browser-only rendering could not be determined because its initializer threw.`}else t=e;return t=Error(r(603),e===void 0?void 0:{cause:t}),Object.defineProperty(t,x,{value:!0}),t}function wi(e){return typeof e!=`object`||!e?!1:!0===e[x]}function Ti(e){var t=Error(r(604),E.call(e,`cause`)?{cause:e.cause}:void 0);if(e=e.stack,e!==void 0){var n=e.indexOf(`
|
|
224
|
-
`);t.stack=t.name+`: `+t.message+(n===-1?``:e.slice(n))}else t.stack=void 0;return t}var Ei=null,Di=0;function Oi(){if(ui===null)throw Error(r(321));return ui}function ki(){if(0<Di)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Ai(){return hi===null?mi===null?(gi=!1,mi=hi=ki()):(gi=!0,hi=mi):hi.next===null?(gi=!1,hi=hi.next=ki()):(gi=!0,hi=hi.next),hi}function ji(){var e=Si;return Si=null,e}function Mi(){pi=fi=di=ui=null,_i=!1,mi=null,Di=0,hi=Ei=null}function Ni(e,t){return typeof t==`function`?t(e):t}function Pi(e,t,n){if(ui=Oi(),hi=Ai(),gi){var r=hi.queue;if(t=r.dispatch,Ei!==null&&(n=Ei.get(r),n!==void 0)){Ei.delete(r),r=hi.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return hi.memoizedState=r,[r,t]}return[hi.memoizedState,t]}return e=e===Ni?typeof t==`function`?t():t:n===void 0?t:n(t),hi.memoizedState=e,e=hi.queue={last:null,dispatch:null},e=e.dispatch=Ii.bind(null,ui,e),[hi.memoizedState,e]}function Fi(e,t){if(ui=Oi(),hi=Ai(),t=t===void 0?null:t,hi!==null){var n=hi.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!li(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),hi.memoizedState=[e,t],e}function Ii(e,t,n){if(25<=Di)throw Error(r(301));if(e===ui){if(_i=!0,e={action:n,next:null},Ei===null&&(Ei=new Map),n=Ei.get(t),n===void 0)Ei.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}}function Li(){throw Error(r(440))}function Ri(){throw Error(r(394))}function zi(){throw Error(r(479))}function Bi(e,t,n){Oi();var r=yi++,i=fi;if(typeof e.$$FORM_ACTION==`function`){var a=null,o=pi;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(i!==null&&typeof s==`function`){var c=i[1];s.call(e,i[2],i[3])&&(a=n===void 0?`k`+D(JSON.stringify([o,null,r]),0):`p`+n,c===a&&(bi=r,t=i[0]))}var l=e.bind(null,t);return e=function(e){l(e)},typeof l.$$FORM_ACTION==`function`&&(e.$$FORM_ACTION=function(e){e=l.$$FORM_ACTION(e),n!==void 0&&(n+=``,e.action=n);var t=e.data;return t&&(a===null&&(a=n===void 0?`k`+D(JSON.stringify([o,null,r]),0):`p`+n),t.append(`$ACTION_KEY`,a)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function Vi(e){var t=xi;return xi+=1,Si===null&&(Si=[]),ai(Si,e,t)}function Hi(){throw Error(r(393))}var Ui={readContext:function(e){return e._currentValue},use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Vi(e);if(e.$$typeof===x)throw Ci(e);if(e.$$typeof===u)return e._currentValue}throw Error(r(438,String(e)))},useContext:function(e){return Oi(),e._currentValue},useMemo:Fi,useReducer:Pi,useRef:function(e){ui=Oi(),hi=Ai();var t=hi.memoizedState;return t===null?(e={current:e},hi.memoizedState=e):t},useState:function(e){return Pi(Ni,e)},useInsertionEffect:ri,useLayoutEffect:ri,useCallback:function(e,t){return Fi(function(){return e},t)},useImperativeHandle:ri,useEffect:ri,useDebugValue:ri,useDeferredValue:function(e,t){return Oi(),t===void 0?e:t},useTransition:function(){return Oi(),[!1,Ri]},useId:function(){var e=Zr(di.treeContext),t=Wi;if(t===null)throw Error(r(404));return Ve(t,e,vi++)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(r(407));return n()},useOptimistic:function(e){return Oi(),[e,zi]},useActionState:Bi,useFormState:Bi,useHostTransitionStatus:function(){return Oi(),ge},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=y;return t},useCacheRefresh:function(){return Hi},useEffectEvent:function(){return Li}},Wi=null,Gi={getCacheForType:function(){throw Error(r(248))},cacheSignal:function(){throw Error(r(248))}},Ki,qi;function Ji(e){if(Ki===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ki=t&&t[1]||``,qi=-1<e.stack.indexOf(`
|
|
225
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
226
|
-
`+Ki+e+qi}var Yi=!1;function Xi(e,t){if(!e||Yi)return``;Yi=!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(`
|
|
227
|
-
`),l=s.split(`
|
|
228
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
229
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Yi=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ji(n):``}function Zi(e){if(typeof e==`string`)return Ji(e);if(typeof e==`function`)return e.prototype&&e.prototype.isReactComponent?Xi(e,!0):Xi(e,!1);if(typeof e==`object`&&e){switch(e.$$typeof){case d:return Xi(e.render,!1);case m:return Xi(e.type,!1);case h:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch{return Ji(`Lazy`)}return Zi(e)}if(typeof e.name==`string`){a:{n=e.name,t=e.env;var r=e.debugLocation;if(r!=null&&(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith(`Error: react-stack-top-frame
|
|
230
|
-
`)&&(r=r.slice(29)),e=r.indexOf(`
|
|
231
|
-
`),e!==-1&&(r=r.slice(e+1)),e=r.indexOf(`react_stack_bottom_frame`),e!==-1&&(e=r.lastIndexOf(`
|
|
232
|
-
`,e)),e=e===-1?``:r=r.slice(0,e),r=e.lastIndexOf(`
|
|
233
|
-
`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
|
|
234
|
-
`+e;break a}n=Ji(n+(t?` [`+t+`]`:``))}return n}}switch(e){case p:return Ji(`SuspenseList`);case f:return Ji(`Suspense`);case b:return Ji(`ViewTransition`)}return``}function Qi(e,t){return e=e==null||typeof e==`string`?e:e.default,t=t==null||typeof t==`string`?t:t.default,t==null?e===`auto`?null:e:t===`auto`?null:t}function $i(e,t){return(500<t.byteSize||Lr(t.contentState,!1)||t.defer)&&t.preamble===null}function ea(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`%c%s%c `+e[0],`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``):e.splice(0,0,`%c%s%c`,`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``),e.unshift(console),t=Rr.apply(console.error,e),t()}else console.error(e);return null}function ta(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.aborted=!1,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.currentTask=null,this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.postponedState=this.trackedPostpones=null,this.onError=i===void 0?ea:i,this.onBrowserBailout=a===void 0?ri:a,this.onAllReady=o===void 0?ri:o,this.onShellReady=s===void 0?ri:s,this.onShellError=c===void 0?ri:c,this.onFatalError=l===void 0?ri:l,this.renderLifetimeController=null,this.formState=u===void 0?null:u}function na(e,t,n,r,i,a,o,s,c,l,u,d){return t=new ta(t,n,r,i,a,o,s,c,l,u,d),n=da(t,0,null,r,!1,!1),n.parentFlushed=!0,e=la(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Xr,null,null),fa(e),t.pingedTasks.push(e),t}function ra(e,t,n,r,i,a,o,s,c,l,u){return e=na(e,t,n,r,i,a,o,s,c,l,u,void 0),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}function ia(e,t,n,r,i,a,o,s,c){return n=new ta(t.resumableState,n,t.rootFormatContext,t.progressiveChunkSize,r,i,a,o,s,c,null),n.nextSegmentId=t.nextSegmentId,typeof t.replaySlots==`number`?(r=da(n,0,null,t.rootFormatContext,!1,!1),r.parentFlushed=!0,e=la(n,null,e,-1,null,r,null,null,n.abortableTasks,null,t.rootFormatContext,null,Xr,null,null),fa(e),n.pingedTasks.push(e),n):(e=ua(n,null,{nodes:t.replayNodes,slots:t.replaySlots,pendingTasks:0},e,-1,null,null,n.abortableTasks,null,t.rootFormatContext,null,Xr,null,null),fa(e),n.pingedTasks.push(e),n)}function aa(e,t,n,r,i,a,o,s,c){return e=ia(e,t,n,r,i,a,o,s,c),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}var oa=null;function sa(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,e.trackedPostpones!==null||e.status===10?P(function(){return Ga(e)}):j(function(){return Ga(e)}))}function ca(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,defer:i,fallbackAbortableTasks:n,errorDigest:null,contentState:br(),fallbackState:br(),preamble:r,tracked:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&Ir(n.contentState,e)),n}function la(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:{resolve:function(){return sa(e,h)},reject:function(t){e.aborted?h.abortSet.delete(h)&&Ra(h,e,t):sa(e,h)}},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function ua(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:{resolve:function(){return sa(e,m)},reject:function(t){e.aborted?m.abortSet.delete(m)&&Ra(m,e,t):sa(e,m)}},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function da(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function fa(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case i:e.componentStack={parent:e.componentStack,type:t.type}}}function pa(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function ma(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=Zi(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
|
|
235
|
-
Error generating stack: `+e.message+`
|
|
236
|
-
`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function ha(e,t,n){if(wi(t))return e=e.onBrowserBailout,e(t,n),``;if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t===``?void 0:t}function ga(e,t){var n=e.onShellError,r=e.onFatalError;e.pendingRootTasks!==0&&n(t),r(t),co(e),e.destination===null?(e.status=12,e.aborted||(e.fatalError=t)):(e.status=13,ne(e.destination,t))}function _a(e,t){va(e,t.next,t.hoistables)}function va(e,t,n){for(;t!==null;){n!==null&&(Ir(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&Ir(a.contentState,n),Wa(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function ya(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||$i(e,a)){r=!1;break}}r&&va(e,t,t.hoistables)}}function ba(e){var t={pendingTasks:1,boundaries:null,hoistables:br(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function xa(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=ba(c),t.treeContext=Qr(o,n,d);var p=l[d];typeof p==`number`?(Ta(e,t,p,f,d),delete l[d]):Pa(e,t,f,d),--c.pendingTasks===0&&_a(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=ba(c),t.treeContext=Qr(o,n,u),Pa(e,t,d,u),--c.pendingTasks===0&&_a(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=ba(c),t.treeContext=Qr(o,n,i),Pa(e,t,l,i),--c.pendingTasks===0&&_a(e,c);else{for(l=t.blockedSegment,u=l.children.length,d=l.chunks.length,f=0;f<n;f++){p=i===`unstable_legacy-backwards`?n-1-f:f;var m=r[p];t.row=c=ba(c),t.treeContext=Qr(o,n,p);var h=da(e,d,null,t.formatContext,p!==0||l.lastPushedText,!0);l.children.splice(u,0,h),t.blockedSegment=h;try{Pa(e,t,m,p),h.lastPushedText&&h.textEmbedded&&h.chunks.push(He),h.status=1,Ua(e,t.blockedBoundary,h),--c.pendingTasks===0&&_a(e,c)}catch(t){throw h.status=e.aborted?3:4,t}}t.blockedSegment=l,l.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function Sa(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,ui={},di=t,fi=e,pi=n,yi=vi=0,bi=-1,xi=0,Si=o,e=r(i,a);_i;)_i=!1,yi=vi=0,bi=-1,xi=0,Di+=1,hi=null,e=r(i,a);return Mi(),e}function Ca(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(mt):c.push(ht)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Qr(n,1,0),Pa(e,t,r,-1),t.treeContext=n):s?Pa(e,t,r,-1):Ea(e,t,r,-1),t.keyPath=a}function wa(e,t,n,i,a,y){if(typeof i==`function`){if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var S in x={},a)S!==`ref`&&(x[S]=a[S]);var w=i.defaultProps;if(w)for(var E in x===a&&(x=re({},x,a)),w)x[E]===void 0&&(x[E]=w[E]);var D=x,O=Vr,k=i.contextType;typeof k==`object`&&k&&(O=k._currentValue);var A=new i(D,O),j=A.state===void 0?null:A.state;A.updater=Yr,A.props=D,A.state=j;var M={queue:[],replace:!1};A._reactInternals=M;var N=i.contextType;A.context=typeof N==`object`&&N?N._currentValue:Vr;var P=i.getDerivedStateFromProps;if(typeof P==`function`){var F=P(D,j);A.state=F==null?j:re({},j,F)}if(typeof i.getDerivedStateFromProps!=`function`&&typeof A.getSnapshotBeforeUpdate!=`function`&&(typeof A.UNSAFE_componentWillMount==`function`||typeof A.componentWillMount==`function`)){var I=A.state;if(typeof A.componentWillMount==`function`&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount==`function`&&A.UNSAFE_componentWillMount(),I!==A.state&&Yr.enqueueReplaceState(A,A.state,null),M.queue!==null&&0<M.queue.length){var L=M.queue,R=M.replace;if(M.queue=null,M.replace=!1,R&&L.length===1)A.state=L[0];else{for(var ee=R?L[0]:A.state,z=!0,B=+!!R;B<L.length;B++){var V=L[B],te=typeof V==`function`?V.call(A,ee,D,void 0):V;te!=null&&(z?(z=!1,ee=re({},ee,te)):re(ee,te))}A.state=ee}}else M.queue=null}var ne=A.render();if(e.aborted)throw null;var ie=t.keyPath;t.keyPath=n,Ea(e,t,ne,-1),t.keyPath=ie}else{var ae=Sa(e,t,n,i,a,void 0);if(e.aborted)throw null;Ca(e,t,n,ae,vi!==0,yi,bi)}}else if(typeof i==`string`){var H=t.blockedSegment;if(H===null){var oe=a.children,se=t.formatContext,ce=t.keyPath;t.formatContext=Le(se,i,a),t.keyPath=n,Pa(e,t,oe,-1),t.formatContext=se,t.keyPath=ce}else{var le=Mt(H.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,H.lastPushedText);H.lastPushedText=!1;var U=t.formatContext,ue=t.keyPath;if(t.keyPath=n,(t.formatContext=Le(U,i,a)).insertionMode===3){var de=da(e,0,null,t.formatContext,!1,!1);H.preambleChildren.push(de),t.blockedSegment=de;try{Pa(e,t,le,-1),de.lastPushedText&&de.textEmbedded&&de.chunks.push(He),de.status=1,Ua(e,t.blockedBoundary,de)}finally{t.blockedSegment=H}}else Pa(e,t,le,-1);t.formatContext=U,t.keyPath=ue;a:{var fe=H.chunks,pe=e.resumableState;switch(i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=U.insertionMode){pe.hasBody=!0;break a}break;case`html`:if(U.insertionMode===0){pe.hasHtml=!0;break a}break;case`head`:if(1>=U.insertionMode)break a}fe.push(Pt(i))}H.lastPushedText=!1}}else{switch(i){case v:case s:case c:case o:var me=t.keyPath;t.keyPath=n,Ea(e,t,a.children,-1),t.keyPath=me;return;case _:var he=t.blockedSegment;if(he===null){if(a.mode!==`hidden`){var ge=t.keyPath;t.keyPath=n,Pa(e,t,a.children,-1),t.keyPath=ge}}else if(a.mode!==`hidden`){he.chunks.push(Bt),he.lastPushedText=!1;var _e=t.keyPath;t.keyPath=n,Pa(e,t,a.children,-1),t.keyPath=_e,he.chunks.push(Vt),he.lastPushedText=!1}return;case p:a:{var ve=a.children,ye=a.revealOrder;if(ye!==`independent`&&ye!==`together`){if(T(ve)){xa(e,t,n,ve,ye);break a}var be=C(ve);if(be){var xe=be.call(ve);if(xe){var W=xe.next();if(!W.done){do W=xe.next();while(!W.done);xa(e,t,n,ve,ye)}break a}}}if(ye===`together`){var Se=t.keyPath,Ce=t.row,we=t.row=ba(null);we.boundaries=[],we.together=!0,t.keyPath=n,Ea(e,t,ve,-1),--we.pendingTasks===0&&_a(e,we),t.keyPath=Se,t.row=Ce,Ce!==null&&0<we.pendingTasks&&(Ce.pendingTasks++,we.next=Ce)}else{var Te=t.keyPath;t.keyPath=n,Ea(e,t,ve,-1),t.keyPath=Te}}return;case b:var Ee=t.formatContext,De=t.keyPath,Oe=e.resumableState;if(a.name!=null&&a.name!==`auto`)var ke=a.name;else ke=Ve(Oe,Zr(t.treeContext),0);var Ae=ke,je=e.resumableState,Me=Qi(a.default,a.update),Ne=Qi(a.default,a.enter),Ie=Qi(a.default,a.exit),Re=Qi(a.default,a.share),G=a.name;if(Me??=`auto`,Ne??=`auto`,Ie??=`auto`,G==null){var Ue=Ee.viewTransition;Ue===null?(G=`auto`,Re=`none`):(G=Ue.name,Re=Ue.share)}else Re??=`auto`,Ee.tagScope&4&&(je.instructions|=128);Ee.tagScope&8?je.instructions|=128:Ie=`none`,Ee.tagScope&16?je.instructions|=128:Ne=`none`;var We={update:Me,enter:Ne,exit:Ie,share:Re,parentEnter:`none`,parentExit:`none`,name:G,autoName:Ae,nameIdx:0},Ge=Ee.tagScope&-25;if(Ge=Me===`none`?Ge&-33:Ge|32,Ne!==`none`&&(Ge|=64),t.formatContext=Fe(Ee.insertionMode,Ee.selectedValue,Ge,We),t.keyPath=n,a.name!=null&&a.name!==`auto`)Ea(e,t,a.children,-1);else{var Ke=t.treeContext;t.treeContext=Qr(Ke,1,0),Pa(e,t,a.children,-1),t.treeContext=Ke}t.formatContext=Ee,t.keyPath=De;return;case g:throw Error(r(343));case f:a:if(t.replay!==null){var K=t.keyPath,qe=t.formatContext,Je=t.row;t.keyPath=n,t.formatContext=Be(e.resumableState,qe),t.row=null;var Ye=a.children;try{Pa(e,t,Ye,-1)}finally{t.keyPath=K,t.formatContext=qe,t.row=Je}}else{var Xe=t.keyPath,Ze=t.formatContext,Qe=t.row,$e=t.blockedBoundary,et=t.blockedPreamble,tt=t.hoistableState,nt=t.blockedSegment,rt=a.fallback,it=a.children,at=new Set,ot=ca(e,t.row,at,2>t.formatContext.insertionMode?{content:Pe(),fallback:Pe()}:null,!1),st=da(e,nt.chunks.length,ot,t.formatContext,!1,!1);nt.children.push(st),nt.lastPushedText=!1;var ct=da(e,0,null,t.formatContext,!1,!1);ct.parentFlushed=!0;var lt=e.trackedPostpones;if(lt!==null){var ut=t.componentStack,dt=[n[0],`Suspense Fallback`,n[2]];if(lt!==null){var ft=[dt[1],dt[2],[],null];lt.workingMap.set(dt,ft),ot.tracked={contentKeyPath:n,fallbackNode:ft}}t.blockedSegment=st,t.blockedPreamble=ot.preamble===null?null:ot.preamble.fallback,t.keyPath=dt,t.formatContext=ze(e.resumableState,Ze),t.componentStack=pa(ut);try{Pa(e,t,rt,-1),st.lastPushedText&&st.textEmbedded&&st.chunks.push(He),st.status=1,Ua(e,$e,st)}catch(t){throw st.status=e.aborted?3:4,t}finally{t.blockedSegment=nt,t.blockedPreamble=et,t.keyPath=Xe,t.formatContext=Ze}var pt=la(e,null,it,-1,ot,ct,ot.preamble===null?null:ot.preamble.content,ot.contentState,t.abortSet,n,Be(e.resumableState,t.formatContext),t.context,t.treeContext,null,ut);fa(pt),e.pingedTasks.push(pt)}else{t.blockedBoundary=ot,t.blockedPreamble=ot.preamble===null?null:ot.preamble.content,t.hoistableState=ot.contentState,t.blockedSegment=ct,t.keyPath=n,t.formatContext=Be(e.resumableState,Ze),t.row=null;try{if(Pa(e,t,it,-1),ct.lastPushedText&&ct.textEmbedded&&ct.chunks.push(He),ct.status=1,Ua(e,ot,ct),Ha(ot,ct),ot.pendingTasks===0&&ot.status===0){if(ot.status=1,!$i(e,ot)){Qe!==null&&--Qe.pendingTasks===0&&_a(e,Qe),e.pendingRootTasks===0&&t.blockedPreamble&&Ja(e);break a}}else Qe!==null&&Qe.together&&ya(e,Qe)}catch(n){if(ot.status=4,e.aborted){ct.status=3;var q=e.fatalError}else ct.status=4,q=n;var J=ma(t.componentStack);ot.errorDigest=ha(e,q,J),ja(e,ot)}finally{t.blockedBoundary=$e,t.blockedPreamble=et,t.hoistableState=tt,t.blockedSegment=nt,t.keyPath=Xe,t.formatContext=Ze,t.row=Qe}var mt=la(e,null,rt,-1,$e,st,ot.preamble===null?null:ot.preamble.fallback,ot.fallbackState,at,[n[0],`Suspense Fallback`,n[2]],ze(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,pa(t.componentStack));fa(mt),e.pingedTasks.push(mt)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a){var ht={};for(var gt in a)gt!==`ref`&&(ht[gt]=a[gt])}else ht=a;Ca(e,t,n,Sa(e,t,n,i.render,ht,y),vi!==0,yi,bi);return;case m:wa(e,t,n,i.type,a,y);return;case u:var _t=a.children,vt=t.keyPath,yt=a.value,bt=i._currentValue;i._currentValue=yt;var xt=Hr,St={parent:xt,depth:xt===null?0:xt.depth+1,context:i,parentValue:bt,value:yt};Hr=St,t.context=St,t.keyPath=n,Ea(e,t,_t,-1);var Ct=Hr;if(Ct===null)throw Error(r(403));Ct.context._currentValue=Ct.parentValue,t.context=Hr=Ct.parent,t.keyPath=vt;return;case l:var wt=a.children,Tt=wt(i._context._currentValue),Et=t.keyPath;t.keyPath=n,Ea(e,t,Tt,-1),t.keyPath=Et;return;case h:var Dt=i._init,Ot=Dt(i._payload);if(e.aborted)throw null;wa(e,t,n,Ot,a,y);return}throw Error(r(130,i==null?i:typeof i,``))}}function Ta(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=da(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,Pa(e,t,r,i),s.status=1,Ua(e,o,s),o===null?e.completedRootSegment=s:(Ha(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function Ea(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?Ta(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,fa(t),Da(e,t),t.componentStack=n)}function Da(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,p=Br(s),m=c==null||c===w?o===-1?0:o:c;if(c=[t.keyPath,p,m],t.replay!==null)a:{var g=t.replay;for(o=g.nodes,n=0;n<o.length;n++){var _=o[n];if(m===_[1]){if(_.length===4){if(p!==null&&p!==_[0])throw Error(r(490,_[0],p));var v=_[2],y=_[3],b=t.node;t.replay={nodes:v,slots:y,pendingTasks:1};try{if(wa(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===ii||typeof r.then==`function`||r.message===`Maximum call stack size exceeded`))throw t.node===b?t.replay=g:o.splice(n,1),r;t.replay.pendingTasks--,c=ma(t.componentStack),b=e,l=t.blockedBoundary,e=e.aborted?e.fatalError:r,c=ha(b,e,c),Ia(b,l,v,y,e,c)}t.replay=g}else{if(s!==f)throw Error(r(490,`Suspense`,Br(s)||`Unknown`));b:{g=_[5],s=_[2],d=_[3],p=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3],m=t.keyPath;var x=t.formatContext,S=t.row,E=t.replay,D=t.blockedBoundary,O=t.hoistableState,k=l.children;l=l.fallback;var A=new Set,j=ca(e,t.row,A,2>t.formatContext.insertionMode?{content:Pe(),fallback:Pe()}:null,!1);j.parentFlushed=!0,j.rootSegmentID=g,t.blockedBoundary=j,t.hoistableState=j.contentState,t.keyPath=c,t.formatContext=Be(e.resumableState,x),t.row=null,t.replay={nodes:s,slots:d,pendingTasks:1};try{if(Pa(e,t,k,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,j.pendingTasks===0&&j.status===0){j.status=1,e.completedBoundaries.push(j);break b}}catch(n){j.status=4,v=e.aborted?e.fatalError:n,y=ma(t.componentStack),b=ha(e,v,y),j.errorDigest=b,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(j)}finally{t.blockedBoundary=D,t.hoistableState=O,t.replay=E,t.keyPath=m,t.formatContext=x,t.row=S}v=ua(e,null,{nodes:p,slots:_,pendingTasks:0},l,-1,D,j.fallbackState,A,[c[0],`Suspense Fallback`,c[2]],ze(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,pa(t.componentStack)),fa(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else wa(e,t,c,s,l,d);return;case a:throw Error(r(257));case h:if(v=n._init,n=v(n._payload),e.aborted)throw null;Ea(e,t,n,o);return}if(T(n)){Oa(e,t,n,o);return}if((v=C(n))&&(v=v.call(n))){if(n=v.next(),!n.done){y=[];do y.push(n.value),n=v.next();while(!n.done);Oa(e,t,y,o)}return}if(typeof n.then==`function`)return t.thenableState=null,Ea(e,t,Vi(n),o);if(n.$$typeof===u)return Ea(e,t,n._currentValue,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=G(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=G(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function Oa(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(Oa(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===ii||typeof r.then==`function`))throw r;t.replay.pendingTasks--;var u=ma(t.componentStack);n=e;var d=t.blockedBoundary;e=e.aborted?e.fatalError:r,u=ha(n,e,u),Ia(n,d,i,l,e,u)}t.replay=o,s.splice(c,1);break}}t.keyPath=a}else if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=Qr(o,s,i),d=c[i],typeof d==`number`?(Ta(e,t,d,l,i),delete c[i]):Pa(e,t,l,i);t.treeContext=o,t.keyPath=a}else{for(c=0;c<s;c++)i=n[c],t.treeContext=Qr(o,s,c),Pa(e,t,i,c);t.treeContext=o,t.keyPath=a}}function ka(e,t,n){n.status=5,n.rootSegmentID=e.nextSegmentId++;var i=n.tracked;if(i===null||(e=i.contentKeyPath,e===null))throw Error(r(486));i=i.fallbackNode;var a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),fo(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function Aa(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=ka(e,t,o);if(o.tracked!==null&&o.tracked.contentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],fo(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),fo(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function ja(e,t){e=e.trackedPostpones,e!==null&&(t=t.tracked,t!==null&&(t=t.contentKeyPath,t!==null&&(e=e.workingMap.get(t),e!==void 0&&(e.length=4,e[2]=[],e[3]=null))))}function Ma(e,t,n){return ua(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function Na(e,t,n){var r=t.blockedSegment,i=da(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,la(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function Pa(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return Ea(e,t,n,r)}catch(u){if(Mi(),n=u===ii?si():u,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===ii?ji():null,e=Ma(e,t,r).ping,n.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Jr(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===ii?ji():null,n=Ma(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Jr(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return Ea(e,t,n,r)}catch(r){if(Mi(),l.children.length=u,l.chunks.length=d,n=r===ii?si():r,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===ii?ji():null,e=Na(e,t,n).ping,l.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Jr(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===ii?ji():null,l=Na(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Jr(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Jr(a),n}function Fa(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,Wa(this,t,e.row,n))}function Ia(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)Ia(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=ca(l,null,new Set,null,!1);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function La(e,t){if(e!==t.currentTask){var n=e.blockedBoundary;e=e.blockedSegment,e!==null&&(e.status=3),n!==null&&n.fallbackAbortableTasks.forEach(function(e){return La(e,t)})}}function Ra(e,t,n){if(e!==t.currentTask){var r=e.blockedBoundary,i=e.blockedSegment;if(i===null||i.status===3){var a=ma(e.componentStack),o=wi(n);if(r===null){if(r=e.replay,r===null){o||t.trackedPostpones===null||i===null?o?(e=Ti(n),ha(t,e,a),t.status!==12&&t.status!==13&&ga(t,e)):(ha(t,n,a),t.status!==12&&t.status!==13&&ga(t,n)):(r=t.trackedPostpones,ha(t,n,a),Aa(t,r,e,i),Wa(t,null,e.row,i));return}t.status!==12&&t.status!==13&&(r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(a=ha(t,n,a),Ia(t,null,r.nodes,r.slots,n,a)),t.pendingRootTasks--,t.pendingRootTasks===0&&Ba(t))}else{var s=t.trackedPostpones;if(r.status!==4){if(!o&&s!==null&&i!==null)return ha(t,n,a),Aa(t,s,e,i),r.fallbackAbortableTasks.forEach(function(e){return Ra(e,t,n)}),r.fallbackAbortableTasks.clear(),Wa(t,r,e.row,i);r.status=4,a=ha(t,n,a),r.errorDigest=a,ja(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,a=r.row,a!==null&&--a.pendingTasks===0&&_a(t,a),r.fallbackAbortableTasks.forEach(function(e){return Ra(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&_a(t,e),t.allPendingTasks--,t.allPendingTasks===0&&Va(t)}}}function za(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=kr(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=ve,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:ve;else break b}}r(a?{Link:a}:{})}}}catch(t){ha(e,t,{})}}function Ba(e){e.trackedPostpones===null&&za(e,!0),e.trackedPostpones===null&&Ja(e),e=e.onShellReady,e()}function Va(e){za(e,e.trackedPostpones===null||e.completedRootSegment===null||e.completedRootSegment.status!==5),Ja(e),e=e.onAllReady,e()}function Ha(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||Ha(e,n)}else e.completedSegments.push(t)}function Ua(e,t,n){if(te!==null){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;t===null?e.byteSize+=r:t.byteSize+=r}}function Wa(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?_a(e,n):n.together&&ya(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&Ba(e)}else if(t.pendingTasks--,t.status!==4){if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&Ha(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&Ir(n.hoistables,t.contentState),$i(e,t)||(e.allPendingTasks++,t.fallbackAbortableTasks.forEach(Fa,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&_a(e,n),e.allPendingTasks--),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.preamble!==null&&Ja(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];ka(e,n,o),Wa(e,o,null,null)}}e.allPendingTasks++,--t.pendingTasks===0&&_a(e,t),e.allPendingTasks--}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(Ha(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&ya(e,t)}e.allPendingTasks===0&&Va(e)}function Ga(e){if(!(e.aborted||11<e.status)){var t=Hr,n=me.H;me.H=Ui;var i=me.A;me.A=Gi;var a=oa;oa=e;var o=Wi;Wi=e.resumableState;try{for(var s=e.pingedTasks,c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){a:if(l.replay.pendingTasks!==0){var f=u.currentTask;u.currentTask=l,Jr(l.context);var p=l.node;try{if(typeof l.replay.slots==`number`?Ta(u,l,l.replay.slots,l.node,l.childIndex):Da(u,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),Wa(u,l.blockedBoundary,l.row,null)}catch(e){Mi();var m=e===ii?si():e;if(u.aborted){e===ii&&(l.thenableState=ji()),u.currentTask=f;var h=u;La(l,h),l.abortSet.delete(l),Ra(l,h,h.fatalError)}else{if(typeof m==`object`&&m){if(typeof m.then==`function`){var g=l.ping;m.then(g.resolve,g.reject),l.thenableState=e===ii?ji():null;break a}if(m.message===`Maximum call stack size exceeded`&&l.node!==p){l.thenableState=null,u.pingedTasks.push(l);break a}}l.replay.pendingTasks--,l.abortSet.delete(l);var _=ma(l.componentStack);h=u;var v=l.blockedBoundary,y=u.aborted?u.fatalError:m,b=l.replay.nodes,x=l.replay.slots,S=ha(h,y,_);Ia(h,v,b,x,y,S),u.pendingRootTasks--,u.pendingRootTasks===0&&Ba(u),u.allPendingTasks--,u.allPendingTasks===0&&Va(u)}}finally{u.currentTask=f}}}else a:if(h=d,h.status===0){var C=u.currentTask;u.currentTask=l,Jr(l.context);var w=h.children.length,T=h.chunks.length,E=l.node;try{Da(u,l),h.lastPushedText&&h.textEmbedded&&h.chunks.push(He),l.abortSet.delete(l),h.status=1,Ua(u,l.blockedBoundary,h),Wa(u,l.blockedBoundary,l.row,h)}catch(e){Mi(),h.children.length=w,h.chunks.length=T;var D=e===ii?si():e;if(u.aborted)e===ii&&(l.thenableState=ji()),u.currentTask=C,h=u,La(l,h),l.abortSet.delete(l),Ra(l,h,h.fatalError);else{if(typeof D==`object`&&D){if(typeof D.then==`function`){h.status=0,l.thenableState=e===ii?ji():null;var O=l.ping;D.then(O.resolve,O.reject);break a}if(D.message===`Maximum call stack size exceeded`&&l.node!==E){h.status=0,l.thenableState=null,u.pingedTasks.push(l);break a}}var k=ma(l.componentStack);l.abortSet.delete(l),h.status=4;var A=l.blockedBoundary,j=l.row;if(j!==null&&--j.pendingTasks===0&&_a(u,j),u.allPendingTasks--,A===null){if(wi(D)){var M=Ti(D);ha(u,M,k),ga(u,M)}else ha(u,D,k),ga(u,D)}else{var N=ha(u,D,k);if(A.pendingTasks--,A.status!==4){A.status=4,A.errorDigest=N,ja(u,A);var P=A.row;P!==null&&(u.allPendingTasks++,--P.pendingTasks===0&&_a(u,P),u.allPendingTasks--),A.parentFlushed&&u.clientRenderedBoundaries.push(A),u.pendingRootTasks===0&&u.trackedPostpones===null&&A.preamble!==null&&Ja(u)}u.allPendingTasks===0&&Va(u)}}}finally{u.currentTask=C}}}s.splice(0,c),e.destination!==null&&ro(e,e.destination)}catch(t){ha(e,t,{}),ga(e,t)}finally{Wi=o,me.H=n,me.A=i,n===Ui&&Jr(t),oa=a}}}function Ka(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=qa(e,t.children[i],n)||r;return r}function qa(e,t,n){var i=t.boundary;if(i===null)return Ka(e,t,n);var a=i.preamble;if(a===null)return!1;switch(i.status){case 1:if(Ft(e.renderState,a.content),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return Ka(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return Ft(e.renderState,a.fallback),Ka(e,t,n);default:return!0}}function Ja(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=qa(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function Ya(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,L(t,Rt),L(t,e.placeholderPrefix),e=B(i.toString(16)),L(t,e),R(t,zt);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)L(t,o[s]);a=Za(e,t,a,i)}for(;s<o.length-1;s++)L(t,o[s]);return s<o.length&&(a=R(t,o[s])),a;case 3:return!0;default:throw Error(r(390))}}var Xa=0;function Za(e,t,n,i){var a=n.boundary;if(a===null)return Ya(e,t,n,i);if(n.boundary=null,a.parentFlushed=!0,a.status===4){var o=a.row;o!==null&&--o.pendingTasks===0&&_a(e,o),a=a.errorDigest,R(t,Gt),L(t,qt),a!=null&&(L(t,Yt),L(t,B(U(a))),L(t,Jt)),R(t,Xt),Ya(e,t,n,i)}else if(a.status!==1)a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Zt(t,e.renderState,a.rootSegmentID),i&&Ir(i,a.fallbackState),Ya(e,t,n,i);else if(!to&&$i(e,a)&&(Xa+a.byteSize>e.progressiveChunkSize||Lr(a.contentState,no)||a.defer))a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Zt(t,e.renderState,a.rootSegmentID),Ya(e,t,n,i);else{if(Xa+=a.byteSize,i&&Ir(i,a.contentState),n=a.row,n!==null&&$i(e,a)&&--n.pendingTasks===0&&_a(e,n),R(t,Ht),n=a.completedSegments,n.length!==1)throw Error(r(391));Za(e,t,n[0],i)}return R(t,Kt)}function Qa(e,t,n,r){return bn(t,e.renderState,n.parentFormatContext,n.id),Za(e,t,n,r),xn(t,n.parentFormatContext)}function $a(e,t,n){Xa=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)eo(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&$i(e,n)&&--r.pendingTasks===0&&_a(e,r),er(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist,o=!!(r.instructions&128);return e.stylesToHoist=!1,L(t,e.startInlineScript),L(t,ct),a?(!(r.instructions&4)&&(r.instructions|=4,L(t,Fn)),!(r.instructions&2)&&(r.instructions|=2,L(t,En)),o&&!(r.instructions&256)&&(r.instructions|=256,L(t,Dn)),r.instructions&8?L(t,An):(r.instructions|=8,L(t,kn))):(!(r.instructions&2)&&(r.instructions|=2,L(t,En)),o&&!(r.instructions&256)&&(r.instructions|=256,L(t,Dn)),L(t,On)),r=B(i.toString(16)),L(t,e.boundaryPrefix),L(t,r),L(t,jn),L(t,e.segmentPrefix),L(t,r),a?(L(t,Mn),vr(t,n)):L(t,Nn),n=R(t,Pn),It(t,e)&&n}function eo(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return Qa(e,t,i,a)}return o===n.rootSegmentID?Qa(e,t,i,a):(Qa(e,t,i,a),n=e.resumableState,e=e.renderState,L(t,e.startInlineScript),L(t,ct),n.instructions&1?L(t,Cn):(n.instructions|=1,L(t,Sn)),L(t,e.segmentPrefix),o=B(o.toString(16)),L(t,o),L(t,wn),L(t,e.placeholderPrefix),L(t,o),t=R(t,Tn),t)}var to=!1,no=!1;function ro(e,t){F=new Uint8Array(2048),I=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Xa=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)L(t,c[u]);if(l)for(u=0;u<l.length;u++)L(t,l[u]);else L(t,At(`head`)),L(t,ct)}else if(l)for(u=0;u<l.length;u++)L(t,l[u]);var d=o.charsetChunks;for(u=0;u<d.length;u++)L(t,d[u]);d.length=0,o.preconnects.forEach(tr,t),o.preconnects.clear();var f=o.viewportChunks;for(u=0;u<f.length;u++)L(t,f[u]);f.length=0,o.fontPreloads.forEach(tr,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(tr,t),o.highImagePreloads.clear(),ye=o,o.styles.forEach(lr,t),ye=null;var p=o.importMapChunks;for(u=0;u<p.length;u++)L(t,p[u]);p.length=0,o.bootstrapScripts.forEach(tr,t),o.scripts.forEach(tr,t),o.scripts.clear(),o.bulkPreloads.forEach(tr,t),o.bulkPreloads.clear(),c||l||(a.instructions|=32);var m=o.hoistableChunks;for(u=0;u<m.length;u++)L(t,m[u]);for(a=m.length=0;a<i.length;a++){var h=i[a];for(o=0;o<h.length;o++)Za(e,t,h[o],null)}var g=e.renderState.preamble,_=g.headChunks;(g.htmlChunks||_)&&L(t,Pt(`head`));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)L(t,v[i]);no=!0,Za(e,t,r,null),no=!1,e.completedRootSegment=null;var y=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var b=e.resumableState;if(!(b.instructions&64)){if(b.instructions|=64,L(t,y.startInlineScript),!(b.instructions&32)){b.instructions|=32;var x=`_`+b.idPrefix+`R_`;L(t,fr),L(t,B(U(x))),L(t,Xe)}L(t,ct),L(t,Lt),R(t,xe)}}It(t,y)}var S=e.renderState;r=0;var C=S.viewportChunks;for(r=0;r<C.length;r++)L(t,C[r]);C.length=0,S.preconnects.forEach(tr,t),S.preconnects.clear(),S.fontPreloads.forEach(tr,t),S.fontPreloads.clear(),S.highImagePreloads.forEach(tr,t),S.highImagePreloads.clear(),S.styles.forEach(dr,t),S.scripts.forEach(tr,t),S.scripts.clear(),S.bulkPreloads.forEach(tr,t),S.bulkPreloads.clear();var w=S.hoistableChunks;for(r=0;r<w.length;r++)L(t,w[r]);w.length=0;var T=e.clientRenderedBoundaries;for(n=0;n<T.length;n++){var E=T[n];S=t;var D=e.resumableState,O=e.renderState,k=E.rootSegmentID,A=E.errorDigest;L(S,O.startInlineScript),L(S,ct),D.instructions&4?L(S,Ln):(D.instructions|=4,L(S,In)),L(S,O.boundaryPrefix),L(S,B(k.toString(16))),L(S,Rn),A!=null&&(L(S,zn),A==null?L(S,Bn):L(S,B(Un(A))));var j=R(S,Vn);if(!j){e.destination=null,n++,T.splice(0,n);return}}T.splice(0,n);var M=e.completedBoundaries;for(n=0;n<M.length;n++)if(!$a(e,t,M[n])){e.destination=null,n++,M.splice(0,n);return}M.splice(0,n),ee(t),F=new Uint8Array(2048),I=0,to=!0;var N=e.partialBoundaries;for(n=0;n<N.length;n++){var P=N[n];a:{T=e,E=t,Xa=P.byteSize;var z=P.completedSegments;for(j=0;j<z.length;j++)if(!eo(T,E,P,z[j])){j++,z.splice(0,j);var V=!1;break a}z.splice(0,j);var te=P.row;te!==null&&te.together&&P.pendingTasks===1&&(te.pendingTasks===1?va(T,te,te.hoistables):te.pendingTasks--),V=er(E,P.contentState,T.renderState)}if(!V){e.destination=null,n++,N.splice(0,n);return}}N.splice(0,n),to=!1;var ne=e.completedBoundaries;for(n=0;n<ne.length;n++)if(!$a(e,t,ne[n])){e.destination=null,n++,ne.splice(0,n);return}ne.splice(0,n)}}finally{to=!1,n=e.postponedState,n!==null&&(n.nextSegmentId=e.nextSegmentId),e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0?(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&L(t,Pt(`body`)),n.hasHtml&&L(t,Pt(`html`)),ee(t),co(e),e.status=13,t.close(),e.destination=null):ee(t)}}function io(e){e.flushScheduled=e.destination!==null,P(function(){return Ga(e)}),j(function(){e.status===10&&(e.status=11),e.trackedPostpones===null&&za(e,e.pendingRootTasks===0)})}function ao(e){!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,j(function(){var t=e.destination;t?ro(e,t):e.flushScheduled=!1}))}function oo(e,t){if(e.status===12)e.status=13,e=e.fatalError,wi(e)&&(e=Ti(e)),ne(t,e);else if(e.status!==13&&e.destination===null){e.destination=t;try{ro(e,t)}catch(t){ha(e,t,{}),ga(e,t)}}}function so(e,t){try{if(0<t.size){var n=e.fatalError;t.forEach(function(t){return Ra(t,e,n)}),t.clear()}e.destination!==null&&ro(e,e.destination)}catch(t){ha(e,t,{}),ga(e,t)}}function co(e){e=e.renderLifetimeController,e!==null&&e.abort(`The render ended.`)}function lo(e,t){if(t.aborted)uo(e,t.reason);else{var n=new AbortController;e.renderLifetimeController=n,t.addEventListener(`abort`,function(){uo(e,t.reason)},{signal:n.signal})}}function uo(e,t){if(!(e.aborted||e.status!==11&&e.status!==10)){co(e);var n=typeof t==`object`&&!!t&&t.$$typeof===x;e.aborted=!0,t=n?Ci(t):t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t,e.fatalError=t;var i=e.abortableTasks;i.forEach(function(t){return La(t,e)}),j(function(){return so(e,i)})}}function fo(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),fo(i,t[0],n)),i[2].push(e)}}function po(e){var t=e.trackedPostpones;if(t===null||t.rootNodes.length===0&&t.rootSlots===null)return e.trackedPostpones=null;var n=e.completedRootSegment===null||e.completedRootSegment.status!==5&&e.completedPreambleSegments!==null;if(n){var r=e.nextSegmentId,i=t.rootSlots,a=e.resumableState;a.bootstrapScriptContent=void 0,a.bootstrapScripts=void 0,a.bootstrapModules=void 0}else{r=0,i=-1,a=e.resumableState;var o=e.renderState;a.nextFormID=0,a.hasBody=!1,a.hasHtml=!1,a.unknownResources={font:o.resets.font},a.dnsResources=o.resets.dns,a.connectResources=o.resets.connect,a.imageResources=o.resets.image,a.styleResources=o.resets.style,a.scriptResources={},a.moduleUnknownResources={},a.moduleScriptResources={},a.instructions=0}return t={nextSegmentId:r,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:i},n&&(e.postponedState=t),t}function mo(){var e=t.version;if(e!==`19.3.1`)throw Error(r(527,e,`19.3.1`))}mo(),mo(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=Ne(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=ra(e,o,Me(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),Ie(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,t?t.onBrowserBailout:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){oo(s,e)},cancel:function(e){s.destination=null,uo(s,e)}},{highWaterMark:0});e={postponed:po(s),prelude:e},n(e)},void 0,void 0,r);t&&t.signal&&lo(s,t.signal),io(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=Ne(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=na(e,l,Me(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),Ie(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,t?t.onBrowserBailout:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){oo(u,e)},cancel:function(e){u.destination=null,uo(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.formState:void 0);t&&t.signal&&lo(u,t.signal),io(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=ia(e,t,Me(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,n?n.onBrowserBailout:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){oo(c,e)},cancel:function(e){c.destination=null,uo(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a);n&&n.signal&&lo(c,n.signal),io(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=aa(e,t,Me(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,n?n.onBrowserBailout:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){oo(a,e)},cancel:function(e){a.destination=null,uo(a,e)}},{highWaterMark:0});e={postponed:po(a),prelude:e},r(e)},void 0,void 0,i);n&&n.signal&&lo(a,n.signal),io(a)})},e.version=`19.3.1`})),nP=(0,et((e=>{var t=eP(),n=tP();e.version=t.version,e.renderToString=t.renderToString,e.renderToStaticMarkup=t.renderToStaticMarkup,e.renderToReadableStream=n.renderToReadableStream,e.resume=n.resume}))().renderToStaticMarkup)((0,J.jsx)(bd,{size:14,"aria-hidden":`true`})),rP=()=>(0,J.jsx)(bd,{size:14,"aria-hidden":`true`}),iP=class e{static create(t,n,r,i,a){let o=i+(i<<8)+t+(n<<4)|0;return new e(t,n,r,o,a,[],[])}constructor(e,t,n,r,i,a,o){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=a,this.positions=o,this.blankFirstLine=!1,this.hashProp=[[L.contextHash,r]]}addChild(e,t){e.prop(L.contextHash)!=this.hash&&(e=new v(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new v(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new v(I.none,e,t,n,this.hashProp)})}},Z;(function(e){e[e.Document=1]=`Document`,e[e.CodeBlock=2]=`CodeBlock`,e[e.FencedCode=3]=`FencedCode`,e[e.Blockquote=4]=`Blockquote`,e[e.HorizontalRule=5]=`HorizontalRule`,e[e.BulletList=6]=`BulletList`,e[e.OrderedList=7]=`OrderedList`,e[e.ListItem=8]=`ListItem`,e[e.ATXHeading1=9]=`ATXHeading1`,e[e.ATXHeading2=10]=`ATXHeading2`,e[e.ATXHeading3=11]=`ATXHeading3`,e[e.ATXHeading4=12]=`ATXHeading4`,e[e.ATXHeading5=13]=`ATXHeading5`,e[e.ATXHeading6=14]=`ATXHeading6`,e[e.SetextHeading1=15]=`SetextHeading1`,e[e.SetextHeading2=16]=`SetextHeading2`,e[e.HTMLBlock=17]=`HTMLBlock`,e[e.LinkReference=18]=`LinkReference`,e[e.Paragraph=19]=`Paragraph`,e[e.CommentBlock=20]=`CommentBlock`,e[e.ProcessingInstructionBlock=21]=`ProcessingInstructionBlock`,e[e.Escape=22]=`Escape`,e[e.Entity=23]=`Entity`,e[e.HardBreak=24]=`HardBreak`,e[e.Emphasis=25]=`Emphasis`,e[e.StrongEmphasis=26]=`StrongEmphasis`,e[e.Link=27]=`Link`,e[e.Image=28]=`Image`,e[e.InlineCode=29]=`InlineCode`,e[e.HTMLTag=30]=`HTMLTag`,e[e.Comment=31]=`Comment`,e[e.ProcessingInstruction=32]=`ProcessingInstruction`,e[e.Autolink=33]=`Autolink`,e[e.HeaderMark=34]=`HeaderMark`,e[e.QuoteMark=35]=`QuoteMark`,e[e.ListMark=36]=`ListMark`,e[e.LinkMark=37]=`LinkMark`,e[e.EmphasisMark=38]=`EmphasisMark`,e[e.CodeMark=39]=`CodeMark`,e[e.CodeText=40]=`CodeText`,e[e.CodeInfo=41]=`CodeInfo`,e[e.LinkTitle=42]=`LinkTitle`,e[e.LinkLabel=43]=`LinkLabel`,e[e.URL=44]=`URL`})(Z||={});var aP=class{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}},oP=class{constructor(){this.text=``,this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return uP(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e=``;for(let t=0;t<this.basePos;t++)e+=` `;return e+this.text.slice(this.basePos)}};function sP(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Z.OrderedList?_P:gP)(n,t,!1);return r>0&&(e.type!=Z.BulletList||mP(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}var cP={[Z.Blockquote](e,t,n){return n.next==62&&(n.markers.push(GP(Z.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(lP(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Z.ListItem](e,t,n){return!(n.next<0?e.blankFirstLine&&e.children.length==1:n.indent<n.baseIndent+e.value)&&(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Z.OrderedList]:sP,[Z.BulletList]:sP,[Z.Document](){return!0}};function lP(e){return e==32||e==9||e==10||e==13}function uP(e,t=0){for(;t<e.length&&lP(e.charCodeAt(t));)t++;return t}function dP(e,t,n){for(;t>n&&lP(e.charCodeAt(t-1));)t--;return t}function fP(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1}return t}function pP(e){return e.next==62?e.text.charCodeAt(e.pos+1)==32?2:1:-1}function mP(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let t=e.pos+1;t<e.text.length;t++){let n=e.text.charCodeAt(t);if(n==e.next)r++;else if(!lP(n))return-1}return n&&e.next==45&&yP(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(jP.SetextHeading)>-1||r<3?-1:1}function hP(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function gP(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||lP(e.text.charCodeAt(e.pos+1)))&&(!n||hP(t,Z.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function _P(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||r<e.text.length-1&&!lP(e.text.charCodeAt(r+1))||n&&!hP(t,Z.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function vP(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&!lP(e.text.charCodeAt(t)))return-1;let n=t-e.pos;return n>6?-1:n}function yP(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&lP(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}var bP=/^[ \t]*$/,xP=/-->/,SP=/\?>/,CP=[[/^<(?:script|pre|style|textarea)(?:\s|>|$)/i,/<\/(?:script|pre|style|textarea)>/i],[/^\s*<!--/,xP],[/^\s*<\?/,SP],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,bP],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,bP]];function wP(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let e=0,t=CP.length-+!!n;e<t;e++)if(CP[e][0].test(r))return e;return-1}function TP(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.skipSpace(t),i=e.countIndent(r,t,n);return i>=n+5||r==e.text.length?n+1:i}function EP(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==Z.CodeText?e[r].to=n:e.push(GP(Z.CodeText,t,n))}var DP={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,a=e.lineStart+t.text.length,o=[],s=[];for(EP(o,i,a);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){EP(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e)}else if(t.indent<n)break;else{if(s.length){for(let e of s)e.type==Z.CodeText?EP(o,e.from,e.to):o.push(e);s=[]}EP(o,e.lineStart-1,e.lineStart);for(let e of t.markers)o.push(e);a=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<a&&EP(o,n,a)}return s.length&&(s=s.filter(e=>e.type!=Z.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(o,-i).finish(Z.CodeBlock,a-i),i),!0},FencedCode(e,t){let n=fP(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,a=n-t.pos,o=t.skipSpace(n),s=dP(t.text,t.text.length,o),c=[GP(Z.CodeMark,r,r+a)];o<s&&c.push(GP(Z.CodeInfo,e.lineStart+o,e.lineStart+s));for(let n=!0,r=!0,o=!1;e.nextLine()&&t.depth>=e.stack.length;n=!1){let s=t.pos;if(t.indent-t.baseIndent<4)for(;s<t.text.length&&t.text.charCodeAt(s)==i;)s++;if(s-t.pos>=a&&t.skipSpace(s)==t.text.length){for(let e of t.markers)c.push(e);r&&o&&EP(c,e.lineStart-1,e.lineStart),c.push(GP(Z.CodeMark,e.lineStart+t.pos,e.lineStart+s)),e.nextLine();break}{o=!0,n||(EP(c,e.lineStart-1,e.lineStart),r=!1);for(let e of t.markers)c.push(e);let i=e.lineStart+t.basePos,a=e.lineStart+t.text.length;i<a&&(EP(c,i,a),r=!1)}}return e.addNode(e.buffer.writeElements(c,-r).finish(Z.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=pP(t);return n<0?!1:(e.startContext(Z.Blockquote,t.pos),e.addNode(Z.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(mP(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(Z.HorizontalRule,n),!0},BulletList(e,t){let n=gP(t,e,!1);if(n<0)return!1;e.block.type!=Z.BulletList&&e.startContext(Z.BulletList,t.basePos,t.next);let r=TP(t,t.pos+1);return e.startContext(Z.ListItem,t.basePos,r-t.baseIndent),e.addNode(Z.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),e.block.blankFirstLine=r>=t.text.length,null},OrderedList(e,t){let n=_P(t,e,!1);if(n<0)return!1;e.block.type!=Z.OrderedList&&e.startContext(Z.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=TP(t,t.pos+n);return e.startContext(Z.ListItem,t.basePos,r-t.baseIndent),e.addNode(Z.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),e.block.blankFirstLine=r==t.text.length,null},ATXHeading(e,t){let n=vP(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,a=dP(t.text,t.text.length,r),o=a;for(;o>r&&t.text.charCodeAt(o-1)==t.next;)o--;o!=a&&o!=r&&lP(t.text.charCodeAt(o-1))||(o=t.text.length);let s=e.buffer.write(Z.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,o),i+n+1),-i);o<t.text.length&&s.write(Z.HeaderMark,o-r,a-r);let c=s.finish(Z.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(c,i),!0},HTMLBlock(e,t){let n=wP(t,e,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=CP[n][1],a=[],o=i!=bP;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){o=!1;break}for(let e of t.markers)a.push(e)}o&&e.nextLine();let s=i==xP?Z.CommentBlock:i==SP?Z.ProcessingInstructionBlock:Z.HTMLBlock,c=e.prevLineEnd();return e.addNode(e.buffer.writeElements(a,-r).finish(s,c-r),r),!0},SetextHeading:void 0},OP=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let r=n.content+`
|
|
237
|
-
`+t.scrub(),i=this.advance(r);return i>-1&&i<r.length&&this.complete(e,n,i)}finish(e,t){return(this.stage==2||this.stage==3)&&uP(t.content,this.pos)==t.content.length&&this.complete(e,t,t.content.length)}complete(e,t,n){return e.addLeafElement(t,GP(Z.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;)if(this.stage==-1)return-1;else if(this.stage==0){if(!this.nextStage(rF(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(GP(Z.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(tF(e,uP(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=uP(e,this.pos),n=0;if(t>this.pos){let r=nF(e,t,this.start);if(r){let t=kP(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||=kP(e,this.pos),n>0&&n<e.length?n:-1}else return kP(e,this.pos)}};function kP(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!lP(n))return-1}return t}var AP=class{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:yP(t),i=t.next;if(r<0)return!1;let a=GP(Z.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,GP(i==61?Z.SetextHeading1:Z.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),a])),!0}finish(){return!1}},jP={LinkReference(e,t){return t.content.charCodeAt(0)==91?new OP(t):null},SetextHeading(){return new AP}},MP=[(e,t)=>vP(t)>=0,(e,t)=>fP(t)>=0,(e,t)=>pP(t)>=0,(e,t)=>gP(t,e,!0)>=0,(e,t)=>_P(t,e,!0)>=0,(e,t)=>mP(t,e,!0)>=0,(e,t)=>wP(t,e,!0)>=0],NP={text:``,end:0},PP=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new oP,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=iP.create(Z.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new sF(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;start:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(n!=0){if(n==1)return null;e.forward();continue start}}break}if(e.pos==e.text.length)return this.nextLine()?null:this.finish();let t=new aP(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let n=e(this,t);n&&t.parsers.push(n)}lines:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break lines}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
|
|
238
|
-
`+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=lF(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=NP;if(t.end=e,e>=this.to)t.text=``;else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw Error(`Unhandled block context `+Z[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
|
|
239
|
-
`?``:t;else{let e=t.indexOf(`
|
|
240
|
-
`);n=e<0?t:t.slice(0,e)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=iP.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e==`number`&&(e=new v(this.parser.nodeSet.types[e],VP,VP,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(aF(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?FP(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=aF(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Z.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e==`string`?GP(this.parser.getNodeType(e),t,n,r):new WP(e,t)}get buffer(){return new HP(this.parser.nodeSet)}};function FP(e,t,n,r,i){let a=e[t].to,o=[],s=[],c=n.from+r;function l(n,i){for(;i?n>=a:n>a;){let i=e[t+1].from-a;r+=i,n+=i,t++,a=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){l(u.from+r,!0);let n=u.from+r,d,f=i.get(u.tree);f?d=f:u.to+r>a?(d=FP(e,t,u,r,i),l(u.to+r,!1)):d=u.toTree(),o.push(d),s.push(n-c)}return l(n.to+r,!1),new v(n.type,o,s,n.to+r-c,n.tree?n.tree.propValues:void 0)}var IP=class e extends p{constructor(e,t,n,r,i,a,o,s,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=a,this.inlineParsers=o,this.inlineNames=s,this.wrappers=c,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let r=new PP(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(t){let n=RP(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,a=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),c=this.inlineParsers.slice(),l=this.inlineNames.slice(),u=this.endLeafBlock.slice(),d=this.wrappers;if(LP(n.defineNodes)){i=Object.assign({},i);let e=r.types.slice(),t;for(let r of n.defineNodes){let{name:n,block:a,composite:o,style:s}=typeof r==`string`?{name:r}:r;if(e.some(e=>e.name==n))continue;o&&(i[e.length]=(e,t,n)=>o(t,n,e.value));let c=e.length,l=o?[`Block`,`BlockContext`]:a?c>=Z.ATXHeading1&&c<=Z.SetextHeading2?[`Block`,`LeafBlock`,`Heading`]:[`Block`,`LeafBlock`]:void 0;e.push(I.define({id:c,name:n,props:l&&[[L.group,l]]})),s&&(t||={},Array.isArray(s)||s instanceof h?t[n]=s:Object.assign(t,s))}r=new m(e),t&&(r=r.extend(y(t)))}if(LP(n.props)&&(r=r.extend(...n.props)),LP(n.remove))for(let e of n.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(a[t]=o[t]=void 0),n>-1&&(c[n]=void 0)}if(LP(n.parseBlock))for(let e of n.parseBlock){let t=s.indexOf(e.name);if(t>-1)a[t]=e.parse,o[t]=e.leaf;else{let t=e.before?zP(s,e.before):e.after?zP(s,e.after)+1:s.length-1;a.splice(t,0,e.parse),o.splice(t,0,e.leaf),s.splice(t,0,e.name)}e.endLeaf&&u.push(e.endLeaf)}if(LP(n.parseInline))for(let e of n.parseInline){let t=l.indexOf(e.name);if(t>-1)c[t]=e.parse;else{let t=e.before?zP(l,e.before):e.after?zP(l,e.after)+1:l.length-1;c.splice(t,0,e.parse),l.splice(t,0,e.name)}}return n.wrap&&(d=d.concat(n.wrap)),new e(r,a,o,s,u,i,c,l,d)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new iF(this,e,t);outer:for(let e=t;e<n.end;){let t=n.char(e);for(let r of this.inlineParsers)if(r){let i=r(n,t,e);if(i>=0){e=i;continue outer}}e++}return n.resolveMarkers(0)}};function LP(e){return e!=null&&e.length>0}function RP(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=RP(e[0]);if(e.length==1)return t;let n=RP(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||VP).concat(t||VP),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(e,t,n,r)=>i(a(e,t,n,r),t,n,r):i:a}}function zP(e,t){let n=e.indexOf(t);if(n<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return n}var BP=[I.none];for(let e=1,t;t=Z[e];e++)BP[e]=I.define({id:e,name:t,props:e>=Z.Escape?[]:[[L.group,e in cP?[`Block`,`BlockContext`]:[`Block`,`LeafBlock`]]],top:t==`Document`});var VP=[],HP=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return v.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},UP=class{constructor(e,t,n,r=VP){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new HP(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},WP=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return VP}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};function GP(e,t,n,r){return new UP(e,t,n,r)}var KP={resolve:`Emphasis`,mark:`EmphasisMark`},qP={resolve:`Emphasis`,mark:`EmphasisMark`},JP={},YP={},XP=class{constructor(e,t,n,r,i=n-t){this.type=e,this.from=t,this.to=n,this.side=r,this.size=i}},ZP=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`,QP=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{QP=RegExp(`[\\p{S}|\\p{P}]`,`u`)}catch{}var $P={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let t=0;t<32;t++)if(ZP.charCodeAt(t)==r)return e.append(GP(Z.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(GP(Z.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,a=0;for(;r<e.end;r++)if(e.char(r)==96){if(a++,a==i&&e.char(r+1)!=96)return e.append(GP(Z.InlineCode,n,r+1,[GP(Z.CodeMark,n,n+i),GP(Z.CodeMark,r+1-i,r+1)]))}else a=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(GP(Z.Autolink,n,n+1+i[0].length,[GP(Z.LinkMark,n,n+1),GP(Z.URL,n+1,n+i[0].length),GP(Z.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--(?:-?>|[^]*?-->)/.exec(r);if(a)return e.append(GP(Z.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(GP(Z.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/[a-zA-Z][\w-]*\s*>|[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*\/?>)/.exec(r);return s?e.append(GP(Z.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=QP.test(i),s=QP.test(a),c=/\s|^$/.test(i),l=/\s|^$/.test(a),u=!l&&(!s||c||o),d=!c&&(!o||l||s),f=u&&(t==42||!d||o),p=d&&(t==42||!u||s);return e.append(new XP(t==95?KP:qP,n,r,!!f|(p?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(GP(Z.HardBreak,n,n+2));if(t==32){let t=n+1;for(;e.char(t)==32;)t++;if(e.char(t)==10&&t>=n+2)return e.append(GP(Z.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new XP(JP,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new XP(YP,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof XP&&(r.type==JP||r.type==YP)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=eF(e,i,r.type==JP?Z.Link:Z.Image,r.from,n+1);if(r.type==JP)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof XP&&t.type==JP&&(t.side=0)}return a.to}}return-1}};function eF(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(GP(Z.LinkMark,r,r+(n==Z.Image?2:1))),t.push(GP(Z.LinkMark,i-1,i)),o==40){let n=e.skipSpace(i+1),r=tF(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),n!=r.to&&(o=nF(a,n-e.offset,e.offset),o&&(n=e.skipSpace(o.to)))),e.char(n)==41&&(t.push(GP(Z.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(GP(Z.LinkMark,n,s)))}else if(o==91){let n=rF(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return GP(n,r,s,t)}function tF(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1,i=!1;r<e.length;r++){let a=e.charCodeAt(r);if(a==62&&!i)return GP(Z.URL,t+n,r+1+n);if(a==60&&!i||a==10)return!1;i=a==92}return null}{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(lP(n))break;if(t)t=!1;else if(n==40)r++;else if(n==41){if(!r)break;r--}else n==92&&(t=!0)}return i>t?GP(Z.URL,t+n,i+n):i==e.length&&null}}function nF(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let r=t+1,a=!1;r<e.length;r++){let o=e.charCodeAt(r);if(a)a=!1;else if(o==i)return GP(Z.LinkTitle,t+n,r+1+n);else o==92&&(a=!0)}return null}function rF(e,t,n,r){for(let i=!1,a=t+1,o=Math.min(e.length,a+999);a<o;a++){let o=e.charCodeAt(a);if(i)i=!1;else if(o==93)return!r&&GP(Z.LinkLabel,t+n,a+1+n);else{if(r&&!lP(o)&&(r=!1),o==91)return!1;o==92&&(i=!0)}}return null}var iF=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new XP(e,t,n,!!r|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof XP&&(t.type==JP||t.type==YP))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof XP&&n.type.resolve&&n.side&2))continue;let r=n.type==KP||n.type==qP,i=n.to-n.from,a,o=t-1;for(;o>=e;o--){let e=this.parts[o];if(e instanceof XP&&e.side&1&&e.type==n.type&&!(r&&(n.side&1||e.side&2)&&(e.size+n.size)%3==0&&(e.size%3||n.size%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,c=[],l=a.from,u=n.to;if(r){let e=Math.min(2,a.to-a.from,i);l=a.to-e,u=n.from+e,s=e==1?`Emphasis`:`StrongEmphasis`}a.type.mark&&c.push(this.elt(a.type.mark,l,a.to));for(let e=o+1;e<t;e++)this.parts[e]instanceof UP&&c.push(this.parts[e]),this.parts[e]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,u));let d=this.elt(s,l,u,c);this.parts[o]=r&&a.from!=l?new XP(a.type,a.from,l,a.side,a.size):null,(this.parts[t]=r&&n.to!=u?new XP(n.type,u,n.to,n.side,n.size):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof UP&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof XP&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof XP?t:null}skipSpace(e){return uP(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e==`string`?GP(this.parser.getNodeType(e),t,n,r):new WP(e,t)}};iF.linkStart=JP,iF.imageStart=YP,iF.emphasisAsterisk=qP,iF.emphasisUnderscore=KP;function aF(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r<n.length&&n[r].to<e.to;)r++;if(r<n.length&&n[r].from<e.from){let t=n[r];t instanceof UP&&(n[r]=new UP(t.type,t.from,t.to,aF(t.children,[e])))}else n.splice(r++,0,e)}return n}var oF=[Z.CodeBlock,Z.ListItem,Z.OrderedList,Z.BulletList],sF=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&this.input.read(e-1,e)!=`
|
|
241
|
-
`;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(r.IncludeAnonymous|r.IgnoreMounts),n.firstChild());let i=e+this.fragment.offset;for(;n.to<=i;)if(!n.parent())return!1;for(;;){if(n.from>=i)return this.fragment.from<=t;if(!n.childAfter(i))return!1}}matches(e){let t=this.cursor.tree;for(;t&&t.type.isAnonymous&&t.children[0]instanceof v;)t=t.children[0];return t&&t.prop(L.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=e.lineStart-e.block.from>>2,c=a,l=o;scan:for(;;){if(t.to-n>Math.min(r,e.to)||t.type.isAnonymous&&t.tree&&(t.to-t.from>s||!cF(t.tree))){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=lF(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new v(e.parser.nodeSet.types[Z.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}for((t.type.isAnonymous||t.type.is(`Block`))&&(t.type.isAnonymous||oF.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=c,o=l),c=t.to-n,l=e.block.children.length);;){if(t.nextSibling())continue scan;if(!t.parent()||!t.type.isAnonymous)break scan}}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function cF(e){for(;e.type.isAnonymous;){let t=e.children[e.children.length-1];if(t instanceof v)e=t;else return!1}return e.type.is(`Block`)&&oF.indexOf(e.type.id)<0}function lF(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var uF=y({"Blockquote/...":K.quote,HorizontalRule:K.contentSeparator,"ATXHeading1/... SetextHeading1/...":K.heading1,"ATXHeading2/... SetextHeading2/...":K.heading2,"ATXHeading3/...":K.heading3,"ATXHeading4/...":K.heading4,"ATXHeading5/...":K.heading5,"ATXHeading6/...":K.heading6,"Comment CommentBlock":K.comment,Escape:K.escape,Entity:K.character,"Emphasis/...":K.emphasis,"StrongEmphasis/...":K.strong,"Link/... Image/...":K.link,"OrderedList/... BulletList/...":K.list,"BlockQuote/...":K.quote,"InlineCode CodeText":K.monospace,"URL Autolink":K.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":K.processingInstruction,"CodeInfo LinkLabel":K.labelName,LinkTitle:K.string,Paragraph:K.content}),dF=new IP(new m(BP).extend(uF),Object.keys(DP).map(e=>DP[e]),Object.keys(DP).map(e=>jP[e]),Object.keys(DP),MP,cP,Object.keys($P).map(e=>$P[e]),Object.keys($P),[]);function fF(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function pF(e){let{codeParser:t,htmlParser:n}=e;return{wrap:je((e,r)=>{let i=e.type.id;if(t&&(i==Z.CodeBlock||i==Z.FencedCode)){let n=``;if(i==Z.FencedCode){let t=e.node.getChild(Z.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==Z.CodeText,bracketed:i==Z.FencedCode}}else if(n&&(i==Z.HTMLBlock||i==Z.HTMLTag||i==Z.CommentBlock))return{parser:n,overlay:fF(e.node,e.from,e.to)};return null})}}var mF={resolve:`Strikethrough`,mark:`StrikethroughMark`},hF={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":K.strikethrough}},{name:`StrikethroughMark`,style:K.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=QP.test(r),c=QP.test(i);return e.addDelimiter(mF,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function gF(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function _F(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var vF=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,yF=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&vF.test(r=t.text.slice(t.pos))){let i=[];gF(e,n.content,0,i,n.start)==gF(e,r,0)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];gF(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},bF={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":K.heading}},`TableRow`,{name:`TableCell`,style:K.content},{name:`TableDelimiter`,style:K.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return _F(t.content,0)?new yF:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof yF)||!_F(t.text,t.basePos))return!1;let r=e.peekLine();return vF.test(r)&&gF(e,t.text,t.basePos)==gF(e,r,t.basePos)},before:`SetextHeading`}]},xF=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},SF={defineNodes:[{name:`Task`,block:!0,style:K.list},{name:`TaskMarker`,style:K.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new xF:null},after:`SetextHeading`}]},CF=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,wF=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,TF=/[\w-]+\.[\w-]+($|[/:])/,EF=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,DF=/\/[a-zA-Z\d@.]+/gy;function OF(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function kF(e,t){wF.lastIndex=t;let n=wF.exec(e);if(!n||TF.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&OF(e,t,r,`)`)>OF(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function AF(e,t){EF.lastIndex=t;let n=EF.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var jF=[bF,SF,hF,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;CF.lastIndex=r;let i=CF.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=kF(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=AF(e.text,r):(a=AF(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(DF.lastIndex=a,i=DF.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function MF(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),lP(s))break}return-1}}var NF={defineNodes:[{name:`Superscript`,style:K.special(K.content)},{name:`SuperscriptMark`,style:K.processingInstruction}],parseInline:[{name:`Superscript`,parse:MF(94,`Superscript`,`SuperscriptMark`)}]},PF={defineNodes:[{name:`Subscript`,style:K.special(K.content)},{name:`SubscriptMark`,style:K.processingInstruction}],parseInline:[{name:`Subscript`,parse:MF(126,`Subscript`,`SubscriptMark`)}]},FF={defineNodes:[{name:`Emoji`,style:K.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},IF=55,LF=1,RF=56,zF=2,BF=57,VF=3,HF=4,UF=5,WF=6,GF=7,KF=8,qF=9,JF=10,YF=11,XF=12,ZF=13,QF=58,$F=14,eI=15,tI=59,nI=21,rI=23,iI=24,aI=25,oI=27,sI=28,cI=29,lI=32,uI=35,dI=37,fI=38,pI=0,mI=1,hI={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},gI={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},_I={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function vI(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}var yI=null,bI=null,xI=0;function SI(e,t){let n=e.pos+t;if(xI==n&&bI==e)return yI;let r=e.peek(t),i=``;for(;vI(r);)i+=String.fromCharCode(r),r=e.peek(++t);return bI=e,xI=n,yI=i?i.toLowerCase():r==EI||r==DI?void 0:null}var CI=60,wI=62,TI=47,EI=63,DI=33,OI=45;function kI(e,t){this.name=e,this.parent=t}var AI=[WF,JF,GF,KF,qF],jI=new Ie({start:null,shift(e,t,n,r){return AI.indexOf(t)>-1?new kI(SI(r,1)||``,e):e},reduce(e,t){return t==nI&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==WF||i==dI?new kI(SI(r,1)||``,e):e},strict:!1}),MI=new Te((e,t)=>{if(e.next!=CI){e.next<0&&t.context&&e.acceptToken(QF);return}e.advance();let n=e.next==TI;n&&e.advance();let r=SI(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?eI:$F);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(YF);if(i&&gI[i])return e.acceptToken(QF,-2);if(t.dialectEnabled(pI))return e.acceptToken(XF);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(ZF)}else{if(r==`script`)return e.acceptToken(GF);if(r==`style`)return e.acceptToken(KF);if(r==`textarea`)return e.acceptToken(qF);if(hI.hasOwnProperty(r))return e.acceptToken(JF);i&&_I[i]&&_I[i][r]?e.acceptToken(QF,-1):e.acceptToken(WF)}},{contextual:!0}),NI=new Te(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(tI);break}if(e.next==OI)t++;else if(e.next==wI&&t>=2){n>=3&&e.acceptToken(tI,-2);break}else t=0;e.advance()}});function PI(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}var FI=new Te((e,t)=>{if(e.next==TI&&e.peek(1)==wI){let n=t.dialectEnabled(mI)||PI(t.context);e.acceptToken(n?UF:HF,2)}else e.next==wI&&e.acceptToken(HF,1)});function II(e,t,n){let r=2+e.length;return new Te(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==CI||a==1&&i.next==TI||a>=2&&a<r&&i.next==e.charCodeAt(a-2))a++,o++;else if(a==r&&i.next==wI){s>o?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var LI=II(`script`,IF,LF),RI=II(`style`,RF,zF),zI=II(`textarea`,BF,VF),BI=y({"Text RawText IncompleteTag IncompleteCloseTag":K.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":K.angleBracket,TagName:K.tagName,"MismatchedCloseTag/TagName":[K.tagName,K.invalid],AttributeName:K.attributeName,"AttributeValue UnquotedAttributeValue":K.attributeValue,Is:K.definitionOperator,"EntityReference CharacterReference":K.character,Comment:K.blockComment,ProcessingInst:K.processingInstruction,DoctypeDecl:K.documentMeta}),VI=Me.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59s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!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:jI,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources: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vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[LI,RI,zI,FI,MI,NI,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function HI(e,t){let n=Object.create(null);for(let r of e.getChildren(iI)){let e=r.getChild(aI),i=r.getChild(oI)||r.getChild(sI);e&&(n[t.read(e.from,e.to)]=i?i.type.id==oI?t.read(i.from+1,i.to-1):t.read(i.from,i.to):``)}return n}function UI(e,t){let n=e.getChild(rI);return n?t.read(n.from,n.to):` `}function WI(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||=HI(e.node.parent.firstChild,t)))return{parser:i.parser,bracketed:!0};return null}function GI(e=[],t=[]){let n=[],r=[],i=[],a=[];for(let t of e)(t.tag==`script`?n:t.tag==`style`?r:t.tag==`textarea`?i:a).push(t);let o=t.length?Object.create(null):null;for(let e of t)(o[e.name]||(o[e.name]=[])).push(e);return je((e,t)=>{let s=e.type.id;if(s==cI)return WI(e,t,n);if(s==lI)return WI(e,t,r);if(s==uI)return WI(e,t,i);if(s==nI&&a.length){let n=e.node,r=n.firstChild,i=r&&UI(r,t),o;if(i){for(let e of a)if(e.tag==i&&(!e.attrs||e.attrs(o||=HI(r,t)))){let t=n.lastChild,i=t.type.id==fI?t.from:n.to;if(i>r.to)return{parser:e.parser,overlay:[{from:r.to,to:i}]}}}}if(o&&s==iI){let n=e.node,r;if(r=n.firstChild){let e=o[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=UI(n.parent,t))continue;let e=n.lastChild;if(e.type.id==oI){let t=e.from+1,n=e.lastChild,i=e.to-(n&&n.isError?0:1);if(i>t)return{parser:r.parser,overlay:[{from:t,to:i}],bracketed:!0}}else if(e.type.id==sI)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}var KI=148,qI=1,JI=149,YI=150,XI=2,ZI=151,QI=3,$I=4,eL=152,tL=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],nL=58,rL=40,iL=95,aL=91,oL=45,sL=46,cL=35,lL=37,uL=38,dL=92,fL=10,pL=42;function mL(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function hL(e){return e>=48&&e<=57}function gL(e){return hL(e)||e>=97&&e<=102||e>=65&&e<=70}var _L=(e,t,n)=>(r,i)=>{for(let a=!1,o=0,s=0;;s++){let{next:c}=r;if(mL(c)||c==oL||c==iL||a&&hL(c))!a&&(c!=oL||s>0)&&(a=!0),o===s&&c==oL&&o++,r.advance();else if(c==dL&&r.peek(1)!=fL){if(r.advance(),gL(r.next)){do r.advance();while(gL(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();a=!0}else{a&&r.acceptToken(o>=2&&i.canShift(XI)?t:c==rL?n:e);break}}},vL=new Te(_L(JI,XI,YI),{contextual:!0}),yL=new Te(_L(ZI,QI,$I),{contextual:!0}),bL=new Te(e=>{if(tL.includes(e.peek(-1))){let{next:t}=e;(mL(t)||t==iL||t==cL||t==sL||t==pL||t==aL||t==nL&&mL(e.peek(1))||t==oL||t==uL)&&e.acceptToken(KI)}}),xL=new Te(e=>{if(!tL.includes(e.peek(-1))){let{next:t}=e;if(t==lL&&(e.advance(),e.acceptToken(qI)),mL(t)){do e.advance();while(mL(e.next)||hL(e.next));e.acceptToken(qI)}}});function SL(e){let t=e.length;return(t==4||t==5||t==7||t==9)&&/^#[a-f\d]+$/i.test(e)?eL:-1}var CL=y({"AtKeyword import charset namespace keyframes media supports font-feature-values":K.definitionKeyword,"from to selector scope MatchFlag":K.keyword,NamespaceName:K.namespace,KeyframeName:K.labelName,KeyframeRangeName:K.operatorKeyword,TagName:K.tagName,ClassName:K.className,PseudoClassName:K.constant(K.className),IdName:K.labelName,"FeatureName PropertyName":K.propertyName,AttributeName:K.attributeName,NumberLiteral:K.number,KeywordQuery:K.keyword,UnaryQueryOp:K.operatorKeyword,"CallTag ValueName FontName":K.atom,VariableName:K.variableName,Callee:K.operatorKeyword,Unit:K.unit,"UniversalSelector NestingSelector":K.definitionOperator,"MatchOp CompareOp":K.compareOperator,"ChildOp SiblingOp, LogicOp":K.logicOperator,BinOp:K.arithmeticOperator,Important:K.modifier,Comment:K.blockComment,ColorLiteral:K.color,"ParenthesizedContent StringLiteral":K.string,":":K.punctuation,PseudoOp:K.derefOperator,"; , |":K.separator,"( )":K.paren,"[ ]":K.squareBracket,"{ }":K.brace}),wL={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:88,url:158,"url-prefix":158,domain:158,regexp:158},TL={__proto__:null,or:102,and:102,not:112,only:112,layer:212},EL={__proto__:null,selector:118,style:124,layer:208},DL={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},OL={__proto__:null,to:249},kL=Me.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E_OOQP'#Fr'#FrO)`QhO'#FQOOQS'#F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$t#RQ$w#VQ$z#YQ%g$PQ&`$vQ'^&[Q'a&aR(S']SoP!SQ#^pQ%O#[R&g%PZnPp!S#[%PQ$}#ZQ&e${R'd&dR$g!rQ'R%{R(['yR#OhR#QiR$s#QS&[$r&]R(Q'[V&Y$r&]'[R#YlQ#`rR%S#`QdOSpP!SU!kdp%PR%P#[Q%]#p[&l%]&r'i'r'x(bQ&r%aQ'i&mQ'r&wQ'x'OR(b(VQ$[!mQ$^!nQ$`!oV%v$[$^$`Q&Q$iR'X&QQ&v%iS'q&v(WR(W'rQ&n%]R'j&nQ&j%YR'h&jQ!RXR#l!RQ&d${R'c&dQ#]oS%Q#]%RR%R#^Q'z'RR(]'zQ$m!yR&U$mQ&]$rR'_&]Q']&[R(R']Q#XlR$y#XQ$P!cR%f$P_cOPdp!S#[%P^XOPdp!S#[%PQ!_^Q!`_Q#h}Q#i!OQ#j!PQ#k!QQ$u#SQ%Y#oR'g&iR%^#pQ!reQ!{g[$X!m!n!o$[$^$`Q${#Zh%[#p%]%a&m&r&w'O'i'r'x(V(bQ%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$f!rR%}$g",nodeNames:`⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles`,maxTerm:176,nodeProps:[[`isolate`,-2,5,38,``],[`openedBy`,23,`(`,30,`[`,33,`{`],[`closedBy`,24,`)`,31,`]`,34,`}`]],propSources:[CL],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`Hx<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!r`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l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,new ge(`m~RRYZ[z{a~~g~aO$c~~dP!P!Qg~lO$d~~`,28,156)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:172,get:(e,t)=>SL(e)<<1,external:SL},{term:150,get:e=>wL[e]||-1},{term:151,get:e=>TL[e]||-1},{term:4,get:e=>EL[e]||-1},{term:28,get:e=>DL[e]||-1},{term:149,get:e=>OL[e]||-1}],tokenPrec:2433}),AL=tt({css:()=>qL,cssCompletionSource:()=>GL,cssLanguage:()=>KL,defineCSSCompletionSource:()=>WL}),jL=null;function ML(){if(!jL&&typeof document==`object`&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!=`cssText`&&r!=`cssFloat`&&typeof e[r]==`string`&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>`-`+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));jL=t.sort().map(e=>({type:`property`,label:e,apply:e+`: `}))}return jL||[]}var NL=`active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where`.split(`.`).map(e=>({type:`class`,label:e})),PL=`above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`).map(e=>({type:`keyword`,label:e})).concat(`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`).map(e=>({type:`constant`,label:e}))),FL=`a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul`.split(`.`).map(e=>({type:`type`,label:e})),IL=[`@charset`,`@color-profile`,`@container`,`@counter-style`,`@font-face`,`@font-feature-values`,`@font-palette-values`,`@import`,`@keyframes`,`@layer`,`@media`,`@namespace`,`@page`,`@position-try`,`@property`,`@scope`,`@starting-style`,`@supports`,`@view-transition`].map(e=>({type:`keyword`,label:e})),LL=/^(\w[\w-]*|-\w[\w-]*|)$/,RL=/^-(-[\w-]*)?$/;function zL(e,t){if((e.name==`(`||e.type.isError)&&(e=e.parent||e),e.name!=`ArgList`)return!1;let n=e.parent?.firstChild;return n?.name==`Callee`&&t.sliceString(n.from,n.to)==`var`}var BL=new ee,VL=[`Declaration`];function HL(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function UL(e,t,n){if(t.to-t.from>4096){let i=BL.get(t);if(i)return i;let a=[],o=new Set,s=t.cursor(r.IncludeAnonymous);if(s.firstChild())do for(let t of UL(e,s.node,n))o.has(t.label)||(o.add(t.label),a.push(t));while(s.nextSibling());return BL.set(t,a),a}{let r=[],i=new Set;return t.cursor().iterate(t=>{if(n(t)&&t.matchContext(VL)&&t.node.nextSibling?.name==`:`){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:`variable`}))}}),r}}var WL=e=>t=>{let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)==`-`;if(i.name==`PropertyName`||(a||i.name==`TagName`)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:ML(),validFor:LL};if(i.name==`ValueName`)return{from:i.from,options:PL,validFor:LL};if(i.name==`PseudoClassName`)return{from:i.from,options:NL,validFor:LL};if(e(i)||(t.explicit||a)&&zL(i,n.doc))return{from:e(i)||a?i.from:r,options:UL(n.doc,HL(i),e),validFor:RL};if(i.name==`TagName`){for(let{parent:e}=i;e;e=e.parent)if(e.name==`Block`)return{from:i.from,options:ML(),validFor:LL};return{from:i.from,options:FL,validFor:LL}}if(i.name==`AtKeyword`)return{from:i.from,options:IL,validFor:LL};if(!t.explicit)return null;let o=i.resolve(r),s=o.childBefore(r);return s&&s.name==`:`&&o.name==`PseudoClassSelector`?{from:r,options:NL,validFor:LL}:s&&s.name==`:`&&o.name==`Declaration`||o.name==`ArgList`?{from:r,options:PL,validFor:LL}:o.name==`Block`||o.name==`Styles`?{from:r,options:ML(),validFor:LL}:null},GL=WL(e=>e.name==`VariableName`),KL=Pe.define({name:`css`,parser:kL.configure({props:[s.add({Declaration:me()}),a.add({"Block KeyframeList":Ue})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*\}$/,wordChars:`-`}});function qL(){return new Re(KL,KL.data.of({autocomplete:GL}))}var JL=317,YL=318,XL=1,ZL=2,QL=3,$L=4,eR=319,tR=321,nR=322,rR=5,iR=6,aR=0,oR=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],sR=125,cR=59,lR=47,uR=42,dR=43,fR=45,pR=60,mR=44,hR=63,gR=46,_R=91,vR=new Ie({start:!1,shift(e,t){return t==rR||t==iR||t==tR?e:t==nR},strict:!1}),yR=new Te((e,t)=>{let{next:n}=e;(n==sR||n==-1||t.context)&&e.acceptToken(eR)},{contextual:!0,fallback:!0}),bR=new Te((e,t)=>{let{next:n}=e,r;oR.indexOf(n)>-1||(n!=lR||(r=e.peek(1))!=lR&&r!=uR)&&n!=sR&&n!=cR&&n!=-1&&!t.context&&e.acceptToken(JL)},{contextual:!0}),xR=new Te((e,t)=>{e.next==_R&&!t.context&&e.acceptToken(YL)},{contextual:!0}),SR=new Te((e,t)=>{let{next:n}=e;if(n==dR||n==fR){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(XL);e.acceptToken(n?XL:ZL)}}else n==hR&&e.peek(1)==gR&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(QL))},{contextual:!0});function CR(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}var wR=new Te((e,t)=>{if(e.next!=pR||!t.dialectEnabled(aR)||(e.advance(),e.next==lR))return;let n=0;for(;oR.indexOf(e.next)>-1;)e.advance(),n++;if(CR(e.next,!0)){for(e.advance(),n++;CR(e.next,!1);)e.advance(),n++;for(;oR.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==mR)return;for(let t=0;;t++){if(t==7){if(!CR(e.next,!0))return;break}if(e.next!=`extends`.charCodeAt(t))break;e.advance(),n++}}e.acceptToken($L,-n)}),TR=y({"get set async static":K.modifier,"for while do if else switch try catch finally return throw break continue default case defer":K.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":K.operatorKeyword,"let var const using function class extends":K.definitionKeyword,"import export from":K.moduleKeyword,"with debugger new":K.keyword,TemplateString:K.special(K.string),super:K.atom,BooleanLiteral:K.bool,this:K.self,null:K.null,Star:K.modifier,VariableName:K.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":K.function(K.variableName),VariableDefinition:K.definition(K.variableName),Label:K.labelName,PropertyName:K.propertyName,PrivatePropertyName:K.special(K.propertyName),"CallExpression/MemberExpression/PropertyName":K.function(K.propertyName),"FunctionDeclaration/VariableDefinition":K.function(K.definition(K.variableName)),"ClassDeclaration/VariableDefinition":K.definition(K.className),"NewExpression/VariableName":K.className,PropertyDefinition:K.definition(K.propertyName),PrivatePropertyDefinition:K.definition(K.special(K.propertyName)),UpdateOp:K.updateOperator,"LineComment Hashbang":K.lineComment,BlockComment:K.blockComment,Number:K.number,String:K.string,Escape:K.escape,ArithOp:K.arithmeticOperator,LogicOp:K.logicOperator,BitOp:K.bitwiseOperator,CompareOp:K.compareOperator,RegExp:K.regexp,Equals:K.definitionOperator,Arrow:K.function(K.punctuation),": Spread":K.punctuation,"( )":K.paren,"[ ]":K.squareBracket,"{ }":K.brace,"InterpolationStart InterpolationEnd":K.special(K.brace),".":K.derefOperator,", ;":K.separator,"@":K.meta,TypeName:K.typeName,TypeDefinition:K.definition(K.typeName),"type enum interface implements namespace module declare":K.definitionKeyword,"abstract global Privacy readonly override":K.modifier,"is keyof unique infer asserts":K.operatorKeyword,JSXAttributeValue:K.attributeValue,JSXText:K.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":K.angleBracket,"JSXIdentifier JSXNameSpacedName":K.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":K.attributeName,"JSXBuiltin/JSXIdentifier":K.standard(K.tagName)}),ER={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548},DR={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:403},OR={__proto__:null,"<":193},kR=Me.deserialize({version:14,states:"$GSQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Im'#ImO1XQ`O'#GtO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JsO6[Q!0MxO'#JtO6uQ`O'#F^O6zQ,UO'#FuOOQ!0Lf'#Fg'#FgO7VO7dO'#FgO9XQMhO'#F}O9`Q`O'#F|OOQ!0Lf'#Jt'#JtOOQ!0Lb'#Js'#JsO9eQ`O'#GxOOQ['#K`'#K`O9pQ`O'#IZO9uQ!0LrO'#I[OOQ['#Ja'#JaOOQ['#I`'#I`Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GtO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EzO;hQMhO'#FfO;xQ`O'#GtOOQO'#Ka'#KaO;}Q`O'#KaO<]Q`O'#G|O<]Q`O'#G}O<]Q`O'#HPO9kQ`O'#HSO=SQ`O'#HVO>kQ`O'#CeO>{Q`O'#HdO?TQ`O'#HjO?TQ`O'#HlO`QlO'#HnO?TQ`O'#HpO?TQ`O'#HsO?YQ`O'#HyO?_Q!0LsO'#IPO%[QlO'#IRO?jQ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ineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty VariableDefinition Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem`,maxTerm:381,context:vR,nodeProps:[[`isolate`,-8,5,6,14,37,39,51,53,55,``],[`group`,-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,`Statement`,-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,`Expression`,-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,`Type`,-3,88,103,109,`ClassItem`],[`openedBy`,23,`<`,38,`InterpolationStart`,56,`[`,60,`{`,73,`(`,161,`JSXStartCloseTag`],[`closedBy`,-2,24,169,`>`,40,`InterpolationEnd`,50,`]`,61,`}`,74,`)`,166,`JSXEndTag`]],propSources:[TR],skippedNodes:[0,5,6,279],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO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x(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[bR,xR,SR,wR,2,3,4,5,6,7,8,9,10,11,12,13,14,yR,new ge("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(d~~",141,341),new ge(`j~RQYZXz{^~^O(R~~aP!P!Qd~iO(S~~`,25,324)],topRules:{Script:[0,7],SingleExpression:[1,277],SingleClassItem:[2,278]},dialects:{jsx:0,ts:15179},dynamicPrecedences:{80:1,82:1,94:1,170:1,200:1},specialized:[{term:328,get:e=>ER[e]||-1},{term:344,get:e=>DR[e]||-1},{term:95,get:e=>OR[e]||-1}],tokenPrec:15205}),AR=tt({autoCloseTags:()=>ez,javascript:()=>XR,javascriptLanguage:()=>HR,jsxLanguage:()=>GR,localCompletionSource:()=>VR,snippets:()=>jR,tsxLanguage:()=>KR,typescriptLanguage:()=>WR,typescriptSnippets:()=>MR}),jR=[uv("function ${name}(${params}) {\n ${}\n}",{label:`function`,detail:`definition`,type:`keyword`}),uv("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:`for`,detail:`loop`,type:`keyword`}),uv("for (let ${name} of ${collection}) {\n ${}\n}",{label:`for`,detail:`of loop`,type:`keyword`}),uv(`do {
|
|
242
|
-
\${}
|
|
243
|
-
} while (\${})`,{label:`do`,detail:`loop`,type:`keyword`}),uv(`while (\${}) {
|
|
244
|
-
\${}
|
|
245
|
-
}`,{label:`while`,detail:`loop`,type:`keyword`}),uv(`try {
|
|
246
|
-
\${}
|
|
247
|
-
} catch (\${error}) {
|
|
248
|
-
\${}
|
|
249
|
-
}`,{label:`try`,detail:`/ catch block`,type:`keyword`}),uv(`if (\${}) {
|
|
250
|
-
\${}
|
|
251
|
-
}`,{label:`if`,detail:`block`,type:`keyword`}),uv(`if (\${}) {
|
|
252
|
-
\${}
|
|
253
|
-
} else {
|
|
254
|
-
\${}
|
|
255
|
-
}`,{label:`if`,detail:`/ else block`,type:`keyword`}),uv(`class \${name} {
|
|
256
|
-
constructor(\${params}) {
|
|
257
|
-
\${}
|
|
258
|
-
}
|
|
259
|
-
}`,{label:`class`,detail:`definition`,type:`keyword`}),uv('import {${names}} from "${module}"\n${}',{label:`import`,detail:`named`,type:`keyword`}),uv('import ${name} from "${module}"\n${}',{label:`import`,detail:`default`,type:`keyword`})],MR=jR.concat([uv(`interface \${name} {
|
|
260
|
-
\${}
|
|
261
|
-
}`,{label:`interface`,detail:`definition`,type:`keyword`}),uv("type ${name} = ${type}",{label:`type`,detail:`definition`,type:`keyword`}),uv(`enum \${name} {
|
|
262
|
-
\${}
|
|
263
|
-
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),NR=new ee,PR=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function FR(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var IR=[`FunctionDeclaration`],LR={FunctionDeclaration:FR(`function`),ClassDeclaration:FR(`class`),ClassExpression:()=>!0,EnumDeclaration:FR(`constant`),TypeAliasDeclaration:FR(`type`),NamespaceDeclaration:FR(`namespace`),VariableDefinition(e,t){e.matchContext(IR)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function RR(e,t){let n=NR.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=LR[t.name];if(e&&e(t,o)||PR.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of RR(e,t.node))i.push(n);return!1}}),NR.set(t,i),i}var zR=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,BR=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`JSXText`,`JSXAttributeValue`,`JSXOpenTag`,`JSXCloseTag`,`JSXSelfClosingTag`,`.`,`?.`];function VR(e){let t=d(e.state).resolveInner(e.pos,-1);if(BR.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&zR.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)PR.has(n.name)&&(r=r.concat(RR(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:zR}}var HR=Pe.define({name:`javascript`,parser:kR.configure({props:[s.add({IfStatement:me({except:/^\s*({|else\b)/}),TryStatement:me({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ge,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:Be({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":me({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":Ue,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:`$`}}),UR={test:e=>/^JSX/.test(e.name),facet:te({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},WR=HR.configure({dialect:`ts`},`typescript`),GR=HR.configure({dialect:`jsx`,props:[C.add(e=>e.isTop?[UR]:void 0)]}),KR=HR.configure({dialect:`jsx ts`,props:[C.add(e=>e.isTop?[UR]:void 0)]},`typescript`),qR=e=>({label:e,type:`keyword`}),JR=`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(qR),YR=JR.concat([`declare`,`implements`,`private`,`protected`,`public`].map(qR));function XR(e={}){let t=e.jsx?e.typescript?KR:GR:e.typescript?WR:HR,n=e.typescript?MR.concat(YR):jR.concat(JR);return new Re(t,[HR.data.of({autocomplete:e_(BR,$g(n))}),HR.data.of({autocomplete:VR}),e.jsx?ez:[]])}function ZR(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 QR(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 $R=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),ez=z.inputHandler.of((e,t,n,r,i)=>{if(($R?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!HR.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=QR(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:G.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=ZR(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=QR(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)}),tz=tt({autoCloseTags:()=>Nz,html:()=>Az,htmlCompletionSource:()=>Cz,htmlCompletionSourceWith:()=>wz,htmlLanguage:()=>kz}),nz=[`_blank`,`_self`,`_top`,`_parent`],rz=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],iz=[`get`,`post`,`put`,`delete`],az=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],oz=[`true`,`false`],sz={},cz={a:{attrs:{href:null,ping:null,type:null,media:null,target:nz,hreflang:null}},abbr:sz,address:sz,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:sz,aside:sz,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:sz,base:{attrs:{href:null,target:nz}},bdi:sz,bdo:sz,blockquote:{attrs:{cite:null}},body:sz,br:sz,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:az,formmethod:iz,formnovalidate:[`novalidate`],formtarget:nz,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:sz,center:sz,cite:sz,code:sz,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:sz,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:sz,div:sz,dl:sz,dt:sz,em:sz,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:sz,figure:sz,footer:sz,form:{attrs:{action:null,name:null,"accept-charset":rz,autocomplete:[`on`,`off`],enctype:az,method:iz,novalidate:[`novalidate`],target:nz}},h1:sz,h2:sz,h3:sz,h4:sz,h5:sz,h6:sz,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:sz,hgroup:sz,hr:sz,html:{attrs:{manifest:null}},i:sz,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:az,formmethod:iz,formnovalidate:[`novalidate`],formtarget:nz,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:sz,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:sz,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:sz,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:rz,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:sz,noscript:sz,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:sz,param:{attrs:{name:null,value:null}},pre:sz,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:sz,rt:sz,ruby:sz,samp:sz,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:rz}},section:sz,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:sz,source:{attrs:{src:null,type:null,media:null}},span:sz,strong:sz,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:sz,summary:sz,sup:sz,table:sz,tbody:sz,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:sz,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:sz,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:sz,time:{attrs:{datetime:null}},title:sz,tr:sz,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:sz,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:sz},lz={accesskey:null,class:null,contenteditable:oz,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:oz,autocorrect:oz,autocapitalize:oz,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":oz,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":oz,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":oz,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":oz,"aria-hidden":oz,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":oz,"aria-multiselectable":oz,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":oz,"aria-relevant":null,"aria-required":oz,"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},uz=`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 uz)lz[e]=null;var dz=class{constructor(e,t){this.tags={...cz,...e},this.globalAttrs={...lz,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};dz.default=new dz;function fz(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 pz(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`){if(t)t=!1;else return e}return null}function mz(e,t,n){return n.tags[fz(e,pz(t))]?.children||n.allTags}function hz(e,t){let n=[];for(let r=pz(t);r&&!r.type.isTop;r=pz(r.parent)){let i=fz(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 gz=/^[:\-\.\w\u00b7-\uffff]*$/;function _z(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=pz(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:mz(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(hz(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function vz(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:hz(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:gz}}function yz(e,t,n,r){let i=[],a=0;for(let r of mz(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of hz(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function bz(e,t,n,r,i){let a=pz(n),o=a?t.tags[fz(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:gz}}function xz(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=pz(n),i=r?t.tags[fz(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 Sz(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)?vz(n,i,i.from,r):_z(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?_z(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?vz(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?bz(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?xz(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?yz(n,e,i,r):null}function Cz(e){return Sz(dz.default,e)}function wz(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new dz(t,n):dz.default;return e=>Sz(r,e)}var Tz=HR.parser.configure({top:`SingleExpression`}),Ez=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:WR.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:GR.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:KR.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:Tz},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:HR.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:KL.parser}],Dz=[{name:`style`,parser:KL.parser.configure({top:`Styles`})}].concat(uz.map(e=>({name:e,parser:HR.parser}))),Oz=Pe.define({name:`html`,parser:VI.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}}}),Ce.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),kz=Oz.configure({wrap:GI(Ez,Dz)});function Az(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=GI((e.nestedLanguages||[]).concat(Ez),(e.nestedAttributes||[]).concat(Dz)));let r=n?Oz.configure({wrap:n,dialect:t}):t?kz.configure({dialect:t}):kz;return new Re(r,[kz.data.of({autocomplete:wz(e)}),e.autoCloseTags===!1?[]:Nz,XR().support,qL().support])}var jz=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `));function Mz(e,t,n){for(;;){if(t.lastChild?.name!=`CloseTag`)return!1;let r=t.parent;if(!r||fz(e,r)!=n)return!0;t=r}}var Nz=z.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!kz.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=fz(o.doc,t.parent,n))&&!jz.has(a)&&!Mz(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=fz(o.doc,e,n))&&!jz.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:G.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)}),Pz=tt({commonmarkLanguage:()=>Uz,deleteMarkupBackward:()=>rB,insertNewlineContinueMarkup:()=>Qz,insertNewlineContinueMarkupCommand:()=>Zz,markdown:()=>oB,markdownKeymap:()=>iB,markdownLanguage:()=>Wz,pasteURLAsLink:()=>dB}),Fz=te({commentTokens:{block:{open:`<!--`,close:`-->`}}}),Iz=new L,Lz=dF.configure({props:[a.add(e=>!e.is(`Block`)||e.is(`Document`)||Rz(e)!=null||zz(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),Iz.add(Rz),s.add({Document:()=>null}),ve.add({Document:Fz})]});function Rz(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function zz(e){return e.name==`OrderedList`||e.name==`BulletList`}function Bz(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=Rz(e.type))!=null&&r<=t)break;n=e}return n.to}var Vz=He.of((e,t,n)=>{for(let r=d(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(Iz);if(e==null)continue;let t=Bz(r,e);if(t>n)return{from:n,to:t}}return null});function Hz(e){return new oe(Fz,e,[],`markdown`)}var Uz=Hz(Lz),Wz=Hz(Lz.configure([jF,PF,NF,FF,{props:[a.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function Gz(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):W.matchLanguageName(e,n,!0),t instanceof W)return t.support?t.support.language.parser:ce.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var Kz=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(+Jz(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function qz(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 Kz(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 Kz(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 Kz(i.parent,s,s+t,a[1],e,n,i))}}return r}function Jz(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Yz(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=Jz(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 Xz(e,n){let r=/^[ \t]*/.exec(e)[0].length;if(!r||n.facet(t)!=` `)return e;let i=qe(e,4,r),a=``;for(let e=i;e>0;)e>=4?(a+=` `,e-=4):(a+=` `,e--);return a+e.slice(r)}var Zz=(e={})=>({state:t,dispatch:n})=>{let r=d(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!Wz.isActiveAt(t,n.from,-1)&&!Wz.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=qz(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`&&Yz(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&Yz(e.item,i,r),{range:G.cursor(t+n.length),changes:r}}{let e=tB(c,t,s);return{range:G.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`&&Yz(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?qe(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=Xz(p,t),eB(l.node,t.doc)&&(p=tB(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:G.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},Qz=Zz();function $z(e){return e.name==`QuoteMark`||e.name==`ListMark`}function eB(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 tB(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?qe(n.text,4,e[t+1].from)-r.length:null,t<i);return Xz(r,t)}function nB(e,t){let n=e.resolveInner(t,-1),r=t;$z(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if($z(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var rB=({state:e,dispatch:t})=>{let n=d(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&Wz.isActiveAt(e,t.from)){let t=a.lineAt(i),r=qz(nB(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:G.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(qe(t.text,4,n.to)-qe(t.text,4,n.from));return r==t.from&&(i=Xz(i,e)),{range:G.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:G.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},iB=[{key:`Enter`,run:Qz},{key:`Backspace`,run:rB}],aB=Az({matchClosingTags:!1});function oB(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=Uz,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=aB}=e;if(!(i instanceof IP))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,Vz],u;o&&l.push(dB),n instanceof Re?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?Gz(t,u):void 0;c.push(pF({codeParser:d,htmlParser:s.language.parser})),r&&l.push(E.high(ze.of(iB)));let f=Hz(i.configure(c));return a&&l.push(f.data.of({autocomplete:sB})),new Re(f,l)}function sB(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:lB(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var cB=null;function lB(){if(cB)return cB;let e=Cz(new Xg(F.create({extensions:aB}),0,!0));return cB=e?e.options:[]}var uB=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,dB=z.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),!Wz.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||uB.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)}}),fB=63,pB=64,mB=1,hB=2,gB=3,_B=4,vB=5,yB=6,bB=7,xB=65,SB=66,CB=8,wB=9,TB=10,EB=11,DB=12,OB=13,kB=19,AB=20,jB=29,MB=33,NB=34,PB=47,FB=0,IB=1,LB=2,RB=3,zB=4,BB=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}};BB.top=new BB(null,-1,FB);function VB(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(UB(t)||t==-1)return n}}function HB(e){return e==32||e==9}function UB(e){return e==10||e==13}function WB(e){return HB(e)||UB(e)}function GB(e){return e<0||WB(e)}var KB=new Ie({start:BB.top,reduce(e,t){return e.type==RB&&(t==AB||t==NB)?e.parent:e},shift(e,t,n,r){if(t==gB)return new BB(e,VB(r,r.pos),IB);if(t==xB||t==vB)return new BB(e,VB(r,r.pos),LB);if(t==fB)return e.parent;if(t==kB||t==MB)return new BB(e,0,RB);if(t==OB&&e.type==zB)return e.parent;if(t==PB){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new BB(e,e.depth+ +t[0],zB)}return e},hash(e){return e.hash}});function qB(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&GB(e.peek(n+3))}var JB=new Te((e,t)=>{if(e.next==-1&&t.canShift(pB))return e.acceptToken(pB);let n=e.peek(-1);if((UB(n)||n<0)&&t.context.type!=RB){if(qB(e,45)){if(t.canShift(fB))e.acceptToken(fB);else return e.acceptToken(mB,3)}if(qB(e,46)){if(t.canShift(fB))e.acceptToken(fB);else return e.acceptToken(hB,3)}let n=0;for(;e.next==32;)n++,e.advance();(n<t.context.depth||n==t.context.depth&&t.context.type==IB&&(e.next!=45||!GB(e.peek(1))))&&e.next!=-1&&!UB(e.next)&&e.next!=35&&e.acceptToken(fB,-n)}},{contextual:!0}),YB=new Te((e,t)=>{if(t.context.type==RB)e.next==63&&(e.advance(),GB(e.next)&&e.acceptToken(bB));else if(e.next==45)e.advance(),GB(e.next)&&e.acceptToken(t.context.type==IB&&t.context.depth==VB(e,e.pos-1)?_B:gB);else if(e.next==63)e.advance(),GB(e.next)&&e.acceptToken(t.context.type==LB&&t.context.depth==VB(e,e.pos-1)?yB:vB);else{let n=e.pos;for(;;)if(HB(e.next)){if(e.pos==n)return;e.advance()}else if(e.next==33)$B(e);else if(e.next==38)eV(e);else if(e.next==42){eV(e);break}else if(e.next==39||e.next==34){if(tV(e,!0))break;return}else if(e.next==91||e.next==123){if(!nV(e))return;break}else{oV(e,!0,!1,0);break}for(;HB(e.next);)e.advance();if(e.next==58){if(e.pos==n&&t.canShift(jB))return;GB(e.peek(1))&&e.acceptTokenTo(t.context.type==LB&&t.context.depth==VB(e,n)?SB:xB,n)}}},{contextual:!0});function XB(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 ZB(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function QB(e,t){return e.next==37?(e.advance(),ZB(e.next)&&e.advance(),ZB(e.next)&&e.advance(),!0):XB(e.next)||t&&e.next==44?(e.advance(),!0):!1}function $B(e){if(e.advance(),e.next==60){for(e.advance();;)if(!QB(e,!0)){e.next==62&&e.advance();break}}else for(;QB(e,!1););}function eV(e){for(e.advance();!GB(e.next)&&iV(e.next)!=`f`;)e.advance()}function tV(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(UB(a)){if(t)return!1;r=!0}else if(t&&e.pos>=i+1024)return!1}return!r}function nV(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(!tV(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||UB(e.next))return!1;else e.advance()}var rV=`iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif`;function iV(e){return e<33?`u`:e>125?`s`:rV[e-33]}function aV(e,t){let n=iV(e);return n!=`u`&&!(t&&n==`f`)}function oV(e,t,n,r){if(iV(e.next)==`s`||(e.next==63||e.next==58||e.next==45)&&aV(e.peek(1),n))e.advance();else return!1;let i=e.pos;for(;;){let a=e.next,o=0,s=r+1;for(;WB(a);){if(UB(a)){if(t)return!1;s=0}else s++;a=e.peek(++o)}if(!(a>=0&&(a==58?aV(e.peek(o+1),n):a==35?e.peek(o-1)!=32:aV(a,n)))||!n&&s<=r||s==0&&!n&&(qB(e,45,o)||qB(e,46,o)))break;if(t&&iV(a)==`f`)return!1;for(let t=o;t>=0;t--)e.advance();if(t&&e.pos>i+1024)return!1}return!0}var sV=new Te((e,t)=>{if(e.next==33)$B(e),e.acceptToken(DB);else if(e.next==38||e.next==42){let t=e.next==38?TB:EB;eV(e),e.acceptToken(t)}else e.next==39||e.next==34?(tV(e,!1),e.acceptToken(wB)):oV(e,!1,t.context.type==RB,t.context.depth)&&e.acceptToken(CB)}),cV=new Te((e,t)=>{let n=t.context.type==zB?t.context.depth:-1,r=e.pos;scan:for(;;){let i=0,a=e.next;for(;a==32;)a=e.peek(++i);if(!i&&(qB(e,45,i)||qB(e,46,i))||!UB(a)&&(n<0&&(n=Math.max(t.context.depth+1,i)),i<n))break;for(;;){if(e.next<0)break scan;let t=UB(e.next);if(e.advance(),t)continue scan;r=e.pos}}e.acceptTokenTo(OB,r)}),lV=y({DirectiveName:K.keyword,DirectiveContent:K.attributeValue,"DirectiveEnd DocEnd":K.meta,QuotedLiteral:K.string,BlockLiteralHeader:K.special(K.string),BlockLiteralContent:K.content,Literal:K.content,"Key/Literal Key/QuotedLiteral":K.definition(K.propertyName),"Anchor Alias":K.labelName,Tag:K.typeName,Comment:K.lineComment,": , -":K.separator,"?":K.punctuation,"[ ]":K.squareBracket,"{ }":K.brace}),uV=Me.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`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#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:KB,nodeProps:[[`isolate`,-3,8,9,14,``],[`openedBy`,18,`[`,32,`{`],[`closedBy`,19,`]`,33,`}`]],propSources:[lV],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:[JB,YB,sV,cV,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),dV=tt({yaml:()=>mV,yamlFrontmatter:()=>gV,yamlLanguage:()=>pV}),fV=Me.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}),pV=Pe.define({name:`yaml`,parser:uV.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:Be({closing:`}`}),FlowSequence:Be({closing:`]`})}),a.add({"FlowMapping FlowSequence":Ue,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:`#`},indentOnInput:/^\s*[\]\}]$/}});function mV(){return new Re(pV)}var hV=Pe.define({name:`yaml-frontmatter`,parser:fV.configure({props:[y({DashLine:K.meta})]})});function gV(e){let{language:t,support:n}=e.content instanceof Re?e.content:{language:e.content,support:[]};return new Re(hV.configure({wrap:je(e=>e.name==`FrontmatterContent`?{parser:pV.parser}:e.name==`Body`?{parser:t.parser}:null)}),n)}var _V=`modulepreload`,vV=function(e){return`/`+e},yV={},bV=function(e){return e.pathname.endsWith(`.css`)},xV=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=vV(t,n);let r=s(t),i=bV(r);return xV(yV,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`:_V,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 Re(ue.define(e))}function SV(e){return Q(()=>import(`./dist-CBV7_vDN.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1]))}var CV=[W.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return Q(()=>import(`./dist-Bw5-uxs9.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),W.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]))}}),W.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return SV(`Cassandra`)}}),W.of({name:`CSS`,extensions:[`css`],load(){return Q(()=>Promise.resolve().then(()=>AL).then(e=>e.css()),[])}}),W.of({name:`Go`,extensions:[`go`],load(){return Q(()=>import(`./dist-D_I45xgJ.js`).then(e=>e.go()),__vite__mapDeps([3,1]))}}),W.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return Q(()=>Promise.resolve().then(()=>tz).then(e=>e.html()),void 0)}}),W.of({name:`Java`,extensions:[`java`],load(){return Q(()=>import(`./dist-DDJNvivM.js`).then(e=>e.java()),__vite__mapDeps([4,1]))}}),W.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return Q(()=>Promise.resolve().then(()=>AR).then(e=>e.javascript()),void 0)}}),W.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return Q(()=>import(`./dist-gF2bFn-5.js`).then(e=>e.jinja()),__vite__mapDeps([5,1]))}}),W.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return Q(()=>import(`./dist-BzulKuec.js`).then(e=>e.json()),__vite__mapDeps([6,1]))}}),W.of({name:`JSX`,extensions:[`jsx`],load(){return Q(()=>Promise.resolve().then(()=>AR).then(e=>e.javascript({jsx:!0})),void 0)}}),W.of({name:`LESS`,extensions:[`less`],load(){return Q(()=>import(`./dist-BSJMM_jp.js`).then(e=>e.less()),__vite__mapDeps([7,1]))}}),W.of({name:`Liquid`,extensions:[`liquid`],load(){return Q(()=>import(`./dist-BHaIOZdW.js`).then(e=>e.liquid()),__vite__mapDeps([8,1]))}}),W.of({name:`MariaDB SQL`,load(){return SV(`MariaSQL`)}}),W.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return Q(()=>Promise.resolve().then(()=>Pz).then(e=>e.markdown()),void 0)}}),W.of({name:`MS SQL`,load(){return SV(`MSSQL`)}}),W.of({name:`MySQL`,load(){return SV(`MySQL`)}}),W.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return Q(()=>import(`./dist-BqAROxzI.js`).then(e=>e.php()),__vite__mapDeps([9,1]))}}),W.of({name:`PLSQL`,extensions:[`pls`],load(){return SV(`PLSQL`)}}),W.of({name:`PostgreSQL`,load(){return SV(`PostgreSQL`)}}),W.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return Q(()=>import(`./dist-BwYRbe5s.js`).then(e=>e.python()),__vite__mapDeps([10,1]))}}),W.of({name:`Rust`,extensions:[`rs`],load(){return Q(()=>import(`./dist-CgIQYY1o.js`).then(e=>e.rust()),__vite__mapDeps([11,1]))}}),W.of({name:`Sass`,extensions:[`sass`],load(){return Q(()=>import(`./dist-BiE4suo9.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([12,1]))}}),W.of({name:`SCSS`,extensions:[`scss`],load(){return Q(()=>import(`./dist-BiE4suo9.js`).then(e=>e.sass()),__vite__mapDeps([12,1]))}}),W.of({name:`SQL`,extensions:[`sql`],load(){return SV(`StandardSQL`)}}),W.of({name:`SQLite`,load(){return SV(`SQLite`)}}),W.of({name:`TSX`,extensions:[`tsx`],load(){return Q(()=>Promise.resolve().then(()=>AR).then(e=>e.javascript({jsx:!0,typescript:!0})),void 0)}}),W.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return Q(()=>Promise.resolve().then(()=>AR).then(e=>e.javascript({typescript:!0})),void 0)}}),W.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return Q(()=>import(`./dist-DF3F_I8N.js`).then(e=>e.wast()),__vite__mapDeps([13,1]))}}),W.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]))}}),W.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return Q(()=>Promise.resolve().then(()=>dV).then(e=>e.yaml()),void 0)}}),W.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return Q(()=>import(`./apl-gfMMiTNf.js`).then(e=>$(e.apl)),[])}}),W.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return Q(()=>import(`./asciiarmor-C_eisQCp.js`).then(e=>$(e.asciiArmor)),[])}}),W.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return Q(()=>import(`./asn1-DCl_8MCW.js`).then(e=>$(e.asn1({}))),[])}}),W.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return Q(()=>import(`./asterisk-BEn0Cwpx.js`).then(e=>$(e.asterisk)),[])}}),W.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return Q(()=>import(`./brainfuck-D5EjA2JK.js`).then(e=>$(e.brainfuck)),[])}}),W.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return Q(()=>import(`./cobol-DHLQUbN7.js`).then(e=>$(e.cobol)),[])}}),W.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.csharp)),[])}}),W.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),W.of({name:`ClojureScript`,extensions:[`cljs`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),W.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return Q(()=>import(`./css-CnaYoQib.js`).then(e=>$(e.gss)),[])}}),W.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return Q(()=>import(`./cmake-84nbDH0I.js`).then(e=>$(e.cmake)),[])}}),W.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return Q(()=>import(`./coffeescript-De_zI4J0.js`).then(e=>$(e.coffeeScript)),[])}}),W.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return Q(()=>import(`./commonlisp-DgAKBe0r.js`).then(e=>$(e.commonLisp)),[])}}),W.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return Q(()=>import(`./cypher-p9eYesGn.js`).then(e=>$(e.cypher)),[])}}),W.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return Q(()=>import(`./python-B_1Jd8HM.js`).then(e=>$(e.cython)),[])}}),W.of({name:`Crystal`,extensions:[`cr`],load(){return Q(()=>import(`./crystal-Bl6YKCG_.js`).then(e=>$(e.crystal)),[])}}),W.of({name:`D`,extensions:[`d`],load(){return Q(()=>import(`./d-DWkQyNnU.js`).then(e=>$(e.d)),[])}}),W.of({name:`Dart`,extensions:[`dart`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.dart)),[])}}),W.of({name:`diff`,extensions:[`diff`,`patch`],load(){return Q(()=>import(`./diff-ChtP43wD.js`).then(e=>$(e.diff)),[])}}),W.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return Q(()=>import(`./dockerfile-DJkHQgkl.js`).then(e=>$(e.dockerFile)),__vite__mapDeps([15,16]))}}),W.of({name:`DTD`,extensions:[`dtd`],load(){return Q(()=>import(`./dtd-DTF72YNO.js`).then(e=>$(e.dtd)),[])}}),W.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return Q(()=>import(`./dylan-S7ucR4pR.js`).then(e=>$(e.dylan)),[])}}),W.of({name:`EBNF`,load(){return Q(()=>import(`./ebnf-D4c0_ac3.js`).then(e=>$(e.ebnf)),[])}}),W.of({name:`ECL`,extensions:[`ecl`],load(){return Q(()=>import(`./ecl-BVIeWmwY.js`).then(e=>$(e.ecl)),[])}}),W.of({name:`edn`,extensions:[`edn`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),W.of({name:`Eiffel`,extensions:[`e`],load(){return Q(()=>import(`./eiffel-BEjRio4Q.js`).then(e=>$(e.eiffel)),[])}}),W.of({name:`Elm`,extensions:[`elm`],load(){return Q(()=>import(`./elm-Cshzl8qu.js`).then(e=>$(e.elm)),[])}}),W.of({name:`Erlang`,extensions:[`erl`],load(){return Q(()=>import(`./erlang-BV0c4Hdn.js`).then(e=>$(e.erlang)),[])}}),W.of({name:`Esper`,load(){return Q(()=>import(`./sql-DuQMFDvy.js`).then(e=>$(e.esper)),[])}}),W.of({name:`Factor`,extensions:[`factor`],load(){return Q(()=>import(`./factor-LKH5gN8L.js`).then(e=>$(e.factor)),__vite__mapDeps([17,16]))}}),W.of({name:`FCL`,load(){return Q(()=>import(`./fcl-ClOhbFR7.js`).then(e=>$(e.fcl)),[])}}),W.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return Q(()=>import(`./forth-D6RzAl64.js`).then(e=>$(e.forth)),[])}}),W.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return Q(()=>import(`./fortran-Bt6PBEDR.js`).then(e=>$(e.fortran)),[])}}),W.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.fSharp)),[])}}),W.of({name:`Gas`,extensions:[`s`],load(){return Q(()=>import(`./gas-BHEdbvp9.js`).then(e=>$(e.gas)),[])}}),W.of({name:`Gherkin`,extensions:[`feature`],load(){return Q(()=>import(`./gherkin-oBAE_ms0.js`).then(e=>$(e.gherkin)),[])}}),W.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return Q(()=>import(`./groovy-CUrWKPia.js`).then(e=>$(e.groovy)),[])}}),W.of({name:`Haskell`,extensions:[`hs`],load(){return Q(()=>import(`./haskell-BRsoo5mP.js`).then(e=>$(e.haskell)),[])}}),W.of({name:`Haxe`,extensions:[`hx`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.haxe)),[])}}),W.of({name:`HXML`,extensions:[`hxml`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.hxml)),[])}}),W.of({name:`HTTP`,load(){return Q(()=>import(`./http-CLVgA2GD.js`).then(e=>$(e.http)),[])}}),W.of({name:`IDL`,extensions:[`pro`],load(){return Q(()=>import(`./idl-BUZw3wgd.js`).then(e=>$(e.idl)),[])}}),W.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return Q(()=>import(`./javascript-lS2r2ifg.js`).then(e=>$(e.jsonld)),[])}}),W.of({name:`Julia`,extensions:[`jl`],load(){return Q(()=>import(`./julia-CQfgDRfP.js`).then(e=>$(e.julia)),[])}}),W.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.kotlin)),[])}}),W.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return Q(()=>import(`./livescript-BXxG0Yva.js`).then(e=>$(e.liveScript)),[])}}),W.of({name:`Lua`,extensions:[`lua`],load(){return Q(()=>import(`./lua-DPCEkfD_.js`).then(e=>$(e.lua)),[])}}),W.of({name:`mIRC`,extensions:[`mrc`],load(){return Q(()=>import(`./mirc-C9zpzAZU.js`).then(e=>$(e.mirc)),[])}}),W.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return Q(()=>import(`./mathematica-u8YMmbU0.js`).then(e=>$(e.mathematica)),[])}}),W.of({name:`Modelica`,extensions:[`mo`],load(){return Q(()=>import(`./modelica-CqHI_q-D.js`).then(e=>$(e.modelica)),[])}}),W.of({name:`MUMPS`,extensions:[`mps`],load(){return Q(()=>import(`./mumps-BSzj6Xyz.js`).then(e=>$(e.mumps)),[])}}),W.of({name:`Mbox`,extensions:[`mbox`],load(){return Q(()=>import(`./mbox-BEMVcqjs.js`).then(e=>$(e.mbox)),[])}}),W.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return Q(()=>import(`./nginx-C-ORUuei.js`).then(e=>$(e.nginx)),[])}}),W.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return Q(()=>import(`./nsis-viPvXFiq.js`).then(e=>$(e.nsis)),__vite__mapDeps([18,16]))}}),W.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return Q(()=>import(`./ntriples-CzMBulkp.js`).then(e=>$(e.ntriples)),[])}}),W.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveC)),[])}}),W.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveCpp)),[])}}),W.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.oCaml)),[])}}),W.of({name:`Octave`,extensions:[`m`],load(){return Q(()=>import(`./octave-D2Q8cUp1.js`).then(e=>$(e.octave)),[])}}),W.of({name:`Oz`,extensions:[`oz`],load(){return Q(()=>import(`./oz-BwTct_5T.js`).then(e=>$(e.oz)),[])}}),W.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return Q(()=>import(`./pascal-Dp_KdFgX.js`).then(e=>$(e.pascal)),[])}}),W.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return Q(()=>import(`./perl-BkSkiI9m.js`).then(e=>$(e.perl)),[])}}),W.of({name:`Pig`,extensions:[`pig`],load(){return Q(()=>import(`./pig-AF4Hwhju.js`).then(e=>$(e.pig)),[])}}),W.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return Q(()=>import(`./powershell-D8WpQPaX.js`).then(e=>$(e.powerShell)),[])}}),W.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return Q(()=>import(`./properties-C357ku5U.js`).then(e=>$(e.properties)),[])}}),W.of({name:`ProtoBuf`,extensions:[`proto`],load(){return Q(()=>import(`./protobuf-D1ij_kNL.js`).then(e=>$(e.protobuf)),[])}}),W.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return Q(()=>import(`./pug-BqCHZ5xT.js`).then(e=>$(e.pug)),__vite__mapDeps([19,20]))}}),W.of({name:`Puppet`,extensions:[`pp`],load(){return Q(()=>import(`./puppet-BZyAS7I4.js`).then(e=>$(e.puppet)),[])}}),W.of({name:`Q`,extensions:[`q`],load(){return Q(()=>import(`./q-B9NhS7L_.js`).then(e=>$(e.q)),[])}}),W.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return Q(()=>import(`./r-CxDmU1I4.js`).then(e=>$(e.r)),[])}}),W.of({name:`RPM Changes`,load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmChanges)),[])}}),W.of({name:`RPM Spec`,extensions:[`spec`],load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmSpec)),[])}}),W.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)),[])}}),W.of({name:`SAS`,extensions:[`sas`],load(){return Q(()=>import(`./sas-C2OyD2Y6.js`).then(e=>$(e.sas)),[])}}),W.of({name:`Scala`,extensions:[`scala`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.scala)),[])}}),W.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return Q(()=>import(`./scheme-D9qYN0V5.js`).then(e=>$(e.scheme)),[])}}),W.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return Q(()=>import(`./shell-DwuoZtxw.js`).then(e=>$(e.shell)),[])}}),W.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return Q(()=>import(`./sieve-tLWDfEkZ.js`).then(e=>$(e.sieve)),[])}}),W.of({name:`Smalltalk`,extensions:[`st`],load(){return Q(()=>import(`./smalltalk-BLp5-jwC.js`).then(e=>$(e.smalltalk)),[])}}),W.of({name:`Solr`,load(){return Q(()=>import(`./solr-B78wSQJQ.js`).then(e=>$(e.solr)),[])}}),W.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.sml)),[])}}),W.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return Q(()=>import(`./sparql-Dz-mlCAC.js`).then(e=>$(e.sparql)),[])}}),W.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return Q(()=>import(`./spreadsheet-CTIncYxj.js`).then(e=>$(e.spreadsheet)),[])}}),W.of({name:`Squirrel`,extensions:[`nut`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.squirrel)),[])}}),W.of({name:`Stylus`,extensions:[`styl`],load(){return Q(()=>import(`./stylus-BOVgKnng.js`).then(e=>$(e.stylus)),[])}}),W.of({name:`Swift`,extensions:[`swift`],load(){return Q(()=>import(`./swift-DKB6_1j6.js`).then(e=>$(e.swift)),[])}}),W.of({name:`sTeX`,load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),W.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),W.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),W.of({name:`Tcl`,extensions:[`tcl`],load(){return Q(()=>import(`./tcl-BGfruO1u.js`).then(e=>$(e.tcl)),[])}}),W.of({name:`Textile`,extensions:[`textile`],load(){return Q(()=>import(`./textile-C4jVoHG1.js`).then(e=>$(e.textile)),[])}}),W.of({name:`TiddlyWiki`,load(){return Q(()=>import(`./tiddlywiki-VlUiK86J.js`).then(e=>$(e.tiddlyWiki)),[])}}),W.of({name:`Tiki wiki`,load(){return Q(()=>import(`./tiki-CvUEFusT.js`).then(e=>$(e.tiki)),[])}}),W.of({name:`TOML`,extensions:[`toml`],load(){return Q(()=>import(`./toml-BPTmHmyx.js`).then(e=>$(e.toml)),[])}}),W.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return Q(()=>import(`./troff-C2dAgh7P.js`).then(e=>$(e.troff)),[])}}),W.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return Q(()=>import(`./ttcn-PPSTk1ow.js`).then(e=>$(e.ttcn)),[])}}),W.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return Q(()=>import(`./ttcn-cfg-2b4Gb5sE.js`).then(e=>$(e.ttcnCfg)),[])}}),W.of({name:`Turtle`,extensions:[`ttl`],load(){return Q(()=>import(`./turtle-Cx3rYX2g.js`).then(e=>$(e.turtle)),[])}}),W.of({name:`Web IDL`,extensions:[`webidl`],load(){return Q(()=>import(`./webidl-D5jiJvOU.js`).then(e=>$(e.webIDL)),[])}}),W.of({name:`VB.NET`,extensions:[`vb`],load(){return Q(()=>import(`./vb-BthdM_4N.js`).then(e=>$(e.vb)),[])}}),W.of({name:`VBScript`,extensions:[`vbs`],load(){return Q(()=>import(`./vbscript-D9f6rSsU.js`).then(e=>$(e.vbScript)),[])}}),W.of({name:`Velocity`,extensions:[`vtl`],load(){return Q(()=>import(`./velocity-CqftRsjg.js`).then(e=>$(e.velocity)),[])}}),W.of({name:`Verilog`,extensions:[`v`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),W.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return Q(()=>import(`./vhdl-kS471soi.js`).then(e=>$(e.vhdl)),[])}}),W.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return Q(()=>import(`./xquery-BKJx4mf9.js`).then(e=>$(e.xQuery)),[])}}),W.of({name:`Yacas`,extensions:[`ys`],load(){return Q(()=>import(`./yacas-CXXgtw0p.js`).then(e=>$(e.yacas)),[])}}),W.of({name:`Z80`,extensions:[`z80`],load(){return Q(()=>import(`./z80-Co3PbHdE.js`).then(e=>$(e.z80)),[])}}),W.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.mscgen)),[])}}),W.of({name:`Xù`,extensions:[`xu`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.xu)),[])}}),W.of({name:`MsGenny`,extensions:[`msgenny`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.msgenny)),[])}}),W.of({name:`Vue`,extensions:[`vue`],load(){return Q(()=>import(`./dist-DX8knLVr.js`).then(e=>e.vue()),__vite__mapDeps([21,1]))}}),W.of({name:`Angular Template`,load(){return Q(()=>import(`./dist-DHCY9KpV.js`).then(e=>e.angular()),__vite__mapDeps([22,1]))}})],wV={"todo-blocking":`kw kw-todo-blocking`,todo:`kw kw-todo`,confirm:`kw kw-confirm`,unseen:`kw kw-confirm`,answer:`kw kw-answer`},TV={"todo-blocking":{title:`Blocking question`,lead:`No check is generated for this until you decide.`,steps:[`Accept the sentence above: click the X button to delete this whole TODO block.`,`Decide yourself: type your answer after "Answer:".`],titleClass:`text-seal-glow`},todo:{title:`Open question`,lead:`The sentence above is a suggestion and is already used.`,steps:[`Accept it: click the X button to delete this whole TODO block.`,`Disagree: type your answer after "Answer:".`],titleClass:`text-gold-glow`},confirm:{title:`Needs QA confirmation`,lead:`Seen by the AI, not verified by a person.`,steps:[`Correct: click the X button to remove this marker.`,`Wrong: fix the sentence, then remove this marker.`],titleClass:`text-qing-glow`},unseen:{title:`Not checked on the page`,lead:`The AI could not verify this.`,steps:[`Check it on the page yourself.`,`Then click the X button to remove this marker, or fix the sentence first.`],titleClass:`text-qing-glow`},answer:{title:`Your answer`,lead:`Empty means no answer: the question stays open.`,steps:[`Type your answer here: it replaces the sentence above.`,`Click the X button to clear what you typed.`,`To accept the sentence instead: leave this empty and delete the TODO block.`],titleClass:`text-jade-glow`}},EV=e=>({class:wV[e],"data-kw":e}),DV=e=>String.raw`(?:\u{${e}}\uFE0F?[ \t]*)?`,OV=[String.raw`(?<blocking>${DV(`1F6AB`)}\bto[-_]?dos?\s*\[blocking\])`,String.raw`(?<todo>${DV(`2753`)}\bto[-_]?dos?\b(?:\s*\[non-blocking\])?)`,String.raw`(?<confirm>${DV(`1F50D`)}(?:\bto be confirmed(?:\s+by\s+QA)?\b|\bTBC\b|\bTBD\b|\bneeds?\s+confirmation\b))`,String.raw`(?<unseen>${DV(`1F441`)}\bnot observed\b)`,String.raw`(?<answer>(?<=^[ \t]*(?:(?:[-*+>]|\d+\.)[ \t]+)*)${DV(`270D`)}\bAnswer:)`].join(`|`),kV=()=>new RegExp(OV,`gimu`);function AV(e){return e?.blocking===void 0?e?.confirm===void 0?e?.unseen===void 0?e?.answer===void 0?`todo`:`answer`:`unseen`:`confirm`:`todo-blocking`}function jV(e){let t=[],n=0;for(let r of e.matchAll(kV()))r[0]!==``&&(r.index>n&&t.push({text:e.slice(n,r.index),kind:null}),t.push({text:r[0],kind:AV(r.groups)}),n=r.index+r[0].length);return n<e.length&&t.push({text:e.slice(n),kind:null}),t}var MV={"todo-blocking":`Accept the sentence above: delete this question block`,todo:`Accept the sentence above: delete this question block`,confirm:`Confirmed: remove this marker`,unseen:`Checked: remove this marker`,answer:`Clear your answer`},NV=/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,PV=/^[ \t]*(?:(?:[-*+>]|\d+\.)[ \t]+)*$/,FV=e=>NV.exec(e)?.[0].length??0,IV=e=>e.length-e.trimStart().length;function LV(e,t){let n=t===0?0:e.lastIndexOf(`
|
|
264
|
-
`,t-1)+1,r=e.indexOf(`
|
|
265
|
-
`,t);return{from:n,to:r===-1?e.length:r}}function RV(e,t){let n=IV(e.slice(t.from,t.to)),r=t.to;for(;r<e.length;){let t=LV(e,r+1),i=e.slice(t.from,t.to);if(i.trim()===``||IV(i)<=n)break;r=t.to}return r}function zV(e,t){let n=RV(e,t);return n<e.length?{from:t.from,to:n+1}:{from:Math.max(0,t.from-1),to:n}}function BV(e,t,n,r){let i=e.slice(t.from,n),a=e.slice(r,t.to),o=/\([ \t]*$/.exec(i),s=/^[ \t]*\)/.exec(a);if(o&&s){let e=i.slice(0,o.index),n=PV.test(e)?0:/[ \t]*$/.exec(e)[0].length;return{from:t.from+o.index-n,to:r+s[0].length}}let c=/^[ \t]*[;,][ \t]*/.exec(a);if(c)return{from:n,to:r+c[0].length};let l=/[ \t]*[;,][ \t]*$/.exec(i);if(l&&/^[ \t]*(?:[)\].:!?]|$)/.test(a))return{from:n-l[0].length,to:r};let u=/[ \t]+$/.exec(i);if(u&&!PV.test(i))return{from:n-u[0].length,to:r};let d=/^[ \t]+/.exec(a);return d?{from:n,to:r+d[0].length}:{from:n,to:r}}function VV(e,t,n,r){let i=LV(e,t),a=MV[r];if(r===`answer`){let t=RV(e,i);return e.slice(n,i.to).trim()!==``||t>i.to?{range:{from:n,to:t},label:a}:null}return r===`todo-blocking`||r===`todo`?PV.test(e.slice(i.from,t))?{range:zV(e,i),label:a}:null:{range:BV(e,i,t,n),label:a}}function HV(e,t,n,r){if(t<FV(e))return null;let i=kV();i.lastIndex=t;let a=i.exec(e);return!a||a.index!==t||a[0].length!==n-t||AV(a.groups)!==r?null:VV(e,t,n,r)}function UV(e){let t=[],n=FV(e);for(let r of e.matchAll(kV())){if(r[0]===``)continue;let i=AV(r.groups),a=r.index+r[0].length;t.push({from:r.index,to:a,kind:i,action:r.index<n?null:VV(e,r.index,a,i)})}return t}function WV(e,t,n,r){let i=HV(e.state.doc.toString(),t,n,r);return i?(e.dispatch({changes:{from:i.range.from,to:i.range.to,insert:``},userEvent:`delete.keyword`}),!0):!1}var GV=h.define(K.processingInstruction),KV=A([{tag:K.heading,class:`tok-heading`},{tag:K.strong,class:`tok-strong`},{tag:K.emphasis,class:`tok-em`},{tag:K.quote,class:`tok-quote`},{tag:K.link,class:`tok-link`},{tag:K.url,class:`tok-url`},{tag:K.monospace,class:`tok-code`},{tag:K.labelName,class:`tok-label`},{tag:K.contentSeparator,class:`tok-mark`},{tag:GV,class:`tok-list-mark`},{tag:K.processingInstruction,class:`tok-mark`},{tag:K.meta,class:`tok-mark`},{tag:K.propertyName,class:`tok-property`},{tag:[K.comment,K.docComment],class:`tok-comment`},{tag:[K.keyword,K.controlKeyword,K.operatorKeyword,K.modifier,K.definitionKeyword],class:`tok-keyword`},{tag:[K.string,K.special(K.string),K.regexp],class:`tok-string`},{tag:[K.number,K.bool,K.null,K.atom],class:`tok-number`},{tag:[K.function(K.variableName),K.function(K.propertyName),K.definition(K.variableName)],class:`tok-function`},{tag:[K.typeName,K.className,K.namespace],class:`tok-type`},{tag:[K.tagName,K.angleBracket],class:`tok-tag`},{tag:K.attributeName,class:`tok-property`},{tag:[K.operator,K.punctuation,K.separator,K.bracket],class:`tok-punct`},{tag:K.invalid,class:`tok-invalid`}]),qV=class extends k{kind;from;to;constructor(e,t,n){super(),this.kind=e,this.from=t,this.to=n}eq(e){return e.kind===this.kind&&e.from===this.from&&e.to===this.to}toDOM(e){let t=document.createElement(`button`);return t.type=`button`,t.className=`kw-remove kw-remove-${this.kind}`,t.dataset.kwRemove=this.kind,t.setAttribute(`aria-label`,MV[this.kind]),t.title=MV[this.kind],t.innerHTML=nP,t.addEventListener(`mousedown`,e=>e.preventDefault()),t.addEventListener(`click`,n=>{n.preventDefault();let r=e.posAtDOM(t),i=UV(e.state.doc.toString()).find(e=>e.to===r);i&&WV(e,i.from,i.to,i.kind)}),t}ignoreEvent(){return!0}};function JV(e){let t=[];for(let{from:n,to:r,kind:i,action:a}of UV(e.state.doc.toString())){let{class:e,"data-kw":o}=EV(i);t.push(_.mark({class:e,attributes:{"data-kw":o}}).range(n,r)),a&&t.push(_.widget({widget:new qV(i,n,r),side:1}).range(r))}return _.set(t,!0)}var YV=V.fromClass(class{decorations;constructor(e){this.decorations=JV(e)}update(e){e.docChanged&&(this.decorations=JV(e.view))}},{decorations:e=>e.decorations}),XV=`inkstone-editor`,ZV=W.matchFilename(CV,`spec.ts`),QV=()=>ZV?.load()??Promise.resolve(null),$V=[D(KV)],eH=[gV({content:oB({base:Wz,codeLanguages:CV,extensions:{props:[y({ListMark:GV})]}})}),D(KV),YV],tH=`bottom`,nH=`right`,rH=`left`,iH=`auto`,aH=[`top`,tH,nH,rH],oH=`start`,sH=`clippingParents`,cH=`viewport`,lH=`popper`,uH=`reference`,dH=aH.reduce(function(e,t){return e.concat([t+`-`+oH,t+`-end`])},[]),fH=[].concat(aH,[iH]).reduce(function(e,t){return e.concat([t,t+`-`+oH,t+`-end`])},[]),pH=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function mH(e){return e?(e.nodeName||``).toLowerCase():null}function hH(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gH(e){return e instanceof hH(e).Element||e instanceof Element}function _H(e){return e instanceof hH(e).HTMLElement||e instanceof HTMLElement}function vH(e){return typeof ShadowRoot>`u`?!1:e instanceof hH(e).ShadowRoot||e instanceof ShadowRoot}function yH(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];_H(i)&&mH(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function bH(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});_H(r)&&mH(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var xH={name:`applyStyles`,enabled:!0,phase:`write`,fn:yH,effect:bH,requires:[`computeStyles`]};function SH(e){return e.split(`-`)[0]}var CH=Math.max,wH=Math.min,TH=Math.round;function EH(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function DH(){return!/^((?!chrome|android).)*safari/i.test(EH())}function OH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&_H(e)&&(i=e.offsetWidth>0&&TH(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&TH(r.height)/e.offsetHeight||1);var o=(gH(e)?hH(e):window).visualViewport,s=!DH()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function kH(e){var t=OH(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function AH(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vH(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jH(e){return hH(e).getComputedStyle(e)}function MH(e){return[`table`,`td`,`th`].indexOf(mH(e))>=0}function NH(e){return((gH(e)?e.ownerDocument:e.document)||window.document).documentElement}function PH(e){return mH(e)===`html`?e:e.assignedSlot||e.parentNode||(vH(e)?e.host:null)||NH(e)}function FH(e){return!_H(e)||jH(e).position===`fixed`?null:e.offsetParent}function IH(e){var t=/firefox/i.test(EH());if(/Trident/i.test(EH())&&_H(e)&&jH(e).position===`fixed`)return null;var n=PH(e);for(vH(n)&&(n=n.host);_H(n)&&[`html`,`body`].indexOf(mH(n))<0;){var r=jH(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function LH(e){for(var t=hH(e),n=FH(e);n&&MH(n)&&jH(n).position===`static`;)n=FH(n);return n&&(mH(n)===`html`||mH(n)===`body`&&jH(n).position===`static`)?t:n||IH(e)||t}function RH(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function zH(e,t,n){return CH(e,wH(t,n))}function BH(e,t,n){var r=zH(e,t,n);return r>n?n:r}function VH(){return{top:0,right:0,bottom:0,left:0}}function HH(e){return Object.assign({},VH(),e)}function UH(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var WH=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,HH(typeof e==`number`?UH(e,aH):e)};function GH(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=SH(n.placement),c=RH(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=WH(i.padding,n),d=kH(a),f=c===`y`?`top`:rH,p=c===`y`?tH:nH,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=LH(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=zH(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function KH(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||AH(t.elements.popper,r)&&(t.elements.arrow=r))}var qH={name:`arrow`,enabled:!0,phase:`main`,fn:GH,effect:KH,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function JH(e){return e.split(`-`)[1]}var YH={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function XH(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:TH(n*i)/i||0,y:TH(r*i)/i||0}}function ZH(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=rH,b=`top`,x=window;if(l){var S=LH(n),C=`clientHeight`,w=`clientWidth`;if(S===hH(n)&&(S=NH(n),jH(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=tH;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=nH;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&YH),O=u===!0?XH({x:p,y:h},hH(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function QH(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:SH(t.placement),variation:JH(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZH(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZH(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var $H={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:QH,data:{}},eU={passive:!0};function tU(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=hH(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,eU)}),s&&c.addEventListener(`resize`,n.update,eU),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,eU)}),s&&c.removeEventListener(`resize`,n.update,eU)}}var nU={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:tU,data:{}},rU={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function iU(e){return e.replace(/left|right|bottom|top/g,function(e){return rU[e]})}var aU={start:`end`,end:`start`};function oU(e){return e.replace(/start|end/g,function(e){return aU[e]})}function sU(e){var t=hH(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function cU(e){return OH(NH(e)).left+sU(e).scrollLeft}function lU(e,t){var n=hH(e),r=NH(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=DH();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+cU(e),y:c}}function uU(e){var t=NH(e),n=sU(e),r=e.ownerDocument?.body,i=CH(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=CH(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+cU(e),s=-n.scrollTop;return jH(r||t).direction===`rtl`&&(o+=CH(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function dU(e){var t=jH(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function fU(e){return[`html`,`body`,`#document`].indexOf(mH(e))>=0?e.ownerDocument.body:_H(e)&&dU(e)?e:fU(PH(e))}function pU(e,t){t===void 0&&(t=[]);var n=fU(e),r=n===e.ownerDocument?.body,i=hH(n),a=r?[i].concat(i.visualViewport||[],dU(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(pU(PH(a)))}function mU(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hU(e,t){var n=OH(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function gU(e,t,n){return t===`viewport`?mU(lU(e,n)):gH(t)?hU(t,n):mU(uU(NH(e)))}function _U(e){var t=pU(PH(e)),n=[`absolute`,`fixed`].indexOf(jH(e).position)>=0&&_H(e)?LH(e):e;return gH(n)?t.filter(function(e){return gH(e)&&AH(e,n)&&mH(e)!==`body`}):[]}function vU(e,t,n,r){var i=t===`clippingParents`?_U(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=gU(e,n,r);return t.top=CH(i.top,t.top),t.right=wH(i.right,t.right),t.bottom=wH(i.bottom,t.bottom),t.left=CH(i.left,t.left),t},gU(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function yU(e){var t=e.reference,n=e.element,r=e.placement,i=r?SH(r):null,a=r?JH(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case tH:c={x:o,y:t.y+t.height};break;case nH:c={x:t.x+t.width,y:s};break;case rH:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?RH(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case oH:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function bU(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?sH:s,l=n.rootBoundary,u=l===void 0?cH:l,d=n.elementContext,f=d===void 0?lH:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=HH(typeof g==`number`?UH(g,aH):g),v=f===`popper`?uH:lH,y=e.rects.popper,b=e.elements[m?v:f],x=vU(gH(b)?b:b.contextElement||NH(e.elements.popper),c,u,o),S=OH(e.elements.reference),C=yU({reference:S,element:y,strategy:`absolute`,placement:i}),w=mU(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function xU(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?fH:c,u=JH(r),d=u?s?dH:dH.filter(function(e){return JH(e)===u}):aH,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=bU(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[SH(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function SU(e){if(SH(e)===`auto`)return[];var t=iU(e);return[oU(e),t,oU(t)]}function CU(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=SH(g)===g,v=c||(_||!m?[iU(g)]:SU(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(SH(n)===`auto`?xU(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=SH(E),O=JH(E)===oH,k=[`top`,tH].indexOf(D)>=0,A=k?`width`:`height`,j=bU(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?nH:rH:O?tH:`top`;b[A]>x[A]&&(M=iU(M));var N=iU(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},L=F;L>0&&I(L)!==`break`;L--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var wU={name:`flip`,enabled:!0,phase:`main`,fn:CU,requiresIfExists:[`offset`],data:{_skip:!1}};function TU(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function EU(e){return[`top`,nH,tH,rH].some(function(t){return e[t]>=0})}function DU(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=bU(t,{elementContext:`reference`}),s=bU(t,{altBoundary:!0}),c=TU(o,r),l=TU(s,i,a),u=EU(c),d=EU(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var OU={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:DU};function kU(e,t,n){var r=SH(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function AU(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=fH.reduce(function(e,n){return e[n]=kU(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var jU={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:AU};function MU(e){var t=e.state,n=e.name;t.modifiersData[n]=yU({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var NU={name:`popperOffsets`,enabled:!0,phase:`read`,fn:MU,data:{}};function PU(e){return e===`x`?`y`:`x`}function FU(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=bU(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=SH(t.placement),v=JH(t.placement),y=!v,b=RH(_),x=PU(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:rH,A=b===`y`?tH:nH,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,I=v===`start`?C[j]:w[j],L=v===`start`?-w[j]:-C[j],R=t.elements.arrow,ee=p&&R?kH(R):{width:0,height:0},z=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:VH(),B=z[k],V=z[A],te=zH(0,C[j],ee[j]),ne=y?C[j]/2-F-te-B-E.mainAxis:I-te-B-E.mainAxis,re=y?-C[j]/2+F+te+V+E.mainAxis:L+te+V+E.mainAxis,ie=t.elements.arrow&&LH(t.elements.arrow),ae=ie?b===`y`?ie.clientTop||0:ie.clientLeft||0:0,H=D?.[b]??0,oe=M+ne-H-ae,se=M+re-H,ce=zH(p?wH(N,oe):N,M,p?CH(P,se):P);S[b]=ce,O[b]=ce-M}if(s){var le=b===`x`?`top`:rH,U=b===`x`?tH:nH,ue=S[x],de=x===`y`?`height`:`width`,fe=ue+g[le],pe=ue-g[U],me=[`top`,rH].indexOf(_)!==-1,he=D?.[x]??0,ge=me?fe:ue-C[de]-w[de]-he+E.altAxis,_e=me?ue+C[de]+w[de]-he-E.altAxis:pe,ve=p&&me?BH(ge,ue,_e):zH(p?ge:fe,ue,p?_e:pe);S[x]=ve,O[x]=ve-ue}t.modifiersData[r]=O}}var IU={name:`preventOverflow`,enabled:!0,phase:`main`,fn:FU,requiresIfExists:[`offset`]};function LU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RU(e){return e===hH(e)||!_H(e)?sU(e):LU(e)}function zU(e){var t=e.getBoundingClientRect(),n=TH(t.width)/e.offsetWidth||1,r=TH(t.height)/e.offsetHeight||1;return n!==1||r!==1}function BU(e,t,n){n===void 0&&(n=!1);var r=_H(t),i=_H(t)&&zU(t),a=NH(t),o=OH(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((mH(t)!==`body`||dU(a))&&(s=RU(t)),_H(t)?(c=OH(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=cU(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function VU(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function HU(e){var t=VU(e);return pH.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function UU(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function WU(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var GU={placement:`bottom`,modifiers:[],strategy:`absolute`};function KU(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function qU(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?GU:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},GU,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:gH(e)?pU(e):e.contextElement?pU(e.contextElement):[],popper:pU(t)};var s=HU(WU([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(KU(t,n)){i.rects={reference:BU(t,LH(n),i.options.strategy===`fixed`),popper:kH(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(i.reset===!0)i.reset=!1,r=-1;else{var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:UU(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!KU(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var JU=qU({defaultModifiers:[nU,NU,$H,xH,jU,wU,IU,qH,OU]}),YU=`tippy-box`,XU=`tippy-content`,ZU=`tippy-backdrop`,QU=`tippy-arrow`,$U=`tippy-svg-arrow`,eW={passive:!0,capture:!0},tW=function(){return document.body};function nW(e,t,n){return Array.isArray(e)?e[t]??(Array.isArray(n)?n[t]:n):e}function rW(e,t){var n={}.toString.call(e);return n.indexOf(`[object`)===0&&n.indexOf(t+`]`)>-1}function iW(e,t){return typeof e==`function`?e.apply(void 0,t):e}function aW(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function oW(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function sW(e){return e.split(/\s+/).filter(Boolean)}function cW(e){return[].concat(e)}function lW(e,t){e.indexOf(t)===-1&&e.push(t)}function uW(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function dW(e){return e.split(`-`)[0]}function fW(e){return[].slice.call(e)}function pW(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function mW(){return document.createElement(`div`)}function hW(e){return[`Element`,`Fragment`].some(function(t){return rW(e,t)})}function gW(e){return rW(e,`NodeList`)}function _W(e){return rW(e,`MouseEvent`)}function vW(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function yW(e){return hW(e)?[e]:gW(e)?fW(e):Array.isArray(e)?e:fW(document.querySelectorAll(e))}function bW(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+`ms`)})}function xW(e,t){e.forEach(function(e){e&&e.setAttribute(`data-state`,t)})}function SW(e){var t,n=cW(e)[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function CW(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,a=e.props.interactiveBorder,o=dW(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c=o===`bottom`?s.top.y:0,l=o===`top`?s.bottom.y:0,u=o===`right`?s.left.x:0,d=o===`left`?s.right.x:0,f=t.top-r+c>a,p=r-t.bottom-l>a,m=t.left-n+u>a,h=n-t.right-d>a;return f||p||m||h})}function wW(e,t,n){var r=t+`EventListener`;[`transitionend`,`webkitTransitionEnd`].forEach(function(t){e[r](t,n)})}function TW(e,t){for(var n=t;n;){if(e.contains(n))return!0;n=n.getRootNode==null?void 0:n.getRootNode()?.host}return!1}var EW={isTouch:!1},DW=0;function OW(){EW.isTouch||(EW.isTouch=!0,window.performance&&document.addEventListener(`mousemove`,kW))}function kW(){var e=performance.now();e-DW<20&&(EW.isTouch=!1,document.removeEventListener(`mousemove`,kW)),DW=e}function AW(){var e=document.activeElement;if(vW(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function jW(){document.addEventListener(`touchstart`,OW,eW),window.addEventListener(`blur`,AW)}var MW=typeof window<`u`&&typeof document<`u`&&!!window.msCrypto,NW=Object.assign({appendTo:tW,aria:{content:`auto`,expanded:`auto`},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:``,offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:`top`,plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:`mouseenter focus`,triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:`fade`,arrow:!0,content:``,inertia:!1,maxWidth:350,role:`tooltip`,theme:``,zIndex:9999}),PW=Object.keys(NW),FW=function(e){Object.keys(e).forEach(function(t){NW[t]=e[t]})};function IW(e){var t=(e.plugins||[]).reduce(function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=e[r]===void 0?NW[r]??i:e[r]),t},{});return Object.assign({},e,t)}function LW(e,t){return(t?Object.keys(IW(Object.assign({},NW,{plugins:t}))):PW).reduce(function(t,n){var r=(e.getAttribute(`data-tippy-`+n)||``).trim();if(!r)return t;if(n===`content`)t[n]=r;else try{t[n]=JSON.parse(r)}catch{t[n]=r}return t},{})}function RW(e,t){var n=Object.assign({},t,{content:iW(t.content,[e])},t.ignoreAttributes?{}:LW(e,t.plugins));return n.aria=Object.assign({},NW.aria,n.aria),n.aria={expanded:n.aria.expanded===`auto`?t.interactive:n.aria.expanded,content:n.aria.content===`auto`?t.interactive?null:`describedby`:n.aria.content},n}var zW=function(){return`innerHTML`};function BW(e,t){e[zW()]=t}function VW(e){var t=mW();return e===!0?t.className=QU:(t.className=$U,hW(e)?t.appendChild(e):BW(t,e)),t}function HW(e,t){hW(t.content)?(BW(e,``),e.appendChild(t.content)):typeof t.content!=`function`&&(t.allowHTML?BW(e,t.content):e.textContent=t.content)}function UW(e){var t=e.firstElementChild,n=fW(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(XU)}),arrow:n.find(function(e){return e.classList.contains(QU)||e.classList.contains($U)}),backdrop:n.find(function(e){return e.classList.contains(ZU)})}}function WW(e){var t=mW(),n=mW();n.className=YU,n.setAttribute(`data-state`,`hidden`),n.setAttribute(`tabindex`,`-1`);var r=mW();r.className=XU,r.setAttribute(`data-state`,`hidden`),HW(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(n,r){var i=UW(t),a=i.box,o=i.content,s=i.arrow;r.theme?a.setAttribute(`data-theme`,r.theme):a.removeAttribute(`data-theme`),typeof r.animation==`string`?a.setAttribute(`data-animation`,r.animation):a.removeAttribute(`data-animation`),r.inertia?a.setAttribute(`data-inertia`,``):a.removeAttribute(`data-inertia`),a.style.maxWidth=typeof r.maxWidth==`number`?r.maxWidth+`px`:r.maxWidth,r.role?a.setAttribute(`role`,r.role):a.removeAttribute(`role`),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&HW(o,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(VW(r.arrow))):a.appendChild(VW(r.arrow)):s&&a.removeChild(s)}return{popper:t,onUpdate:i}}WW.$$tippy=!0;var GW=1,KW=[],qW=[];function JW(e,t){var n=RW(e,Object.assign({},NW,IW(pW(t)))),r,i,a,o=!1,s=!1,c=!1,l=!1,u,d,f,p=[],m=aW(oe,n.interactiveDebounce),h,g=GW++,_=null,v=uW(n.plugins),y={id:g,reference:e,popper:mW(),popperInstance:_,props:n,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:_e,setProps:ve,setContent:ye,show:be,hide:xe,hideWithInteractivity:W,enable:he,disable:ge,unmount:Se,destroy:Ce};if(!n.render)return y;var b=n.render(y),x=b.popper,S=b.onUpdate;x.setAttribute(`data-tippy-root`,``),x.id=`tippy-`+y.id,y.popper=x,e._tippy=y,x._tippy=y;var C=v.map(function(e){return e.fn(y)}),w=e.hasAttribute(`aria-expanded`);return ie(),F(),M(),N(`onCreate`,[y]),n.showOnCreate&&pe(),x.addEventListener(`mouseenter`,function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),x.addEventListener(`mouseleave`,function(){y.props.interactive&&y.props.trigger.indexOf(`mouseenter`)>=0&&k().addEventListener(`mousemove`,m)}),y;function T(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return T()[0]===`hold`}function D(){var e;return!!((e=y.props.render)!=null&&e.$$tippy)}function O(){return h||e}function k(){var e=O().parentNode;return e?SW(e):document}function A(){return UW(x)}function j(e){return y.state.isMounted&&!y.state.isVisible||EW.isTouch||u&&u.type===`focus`?0:nW(y.props.delay,+!e,NW.delay)}function M(e){e===void 0&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?``:`none`,x.style.zIndex=``+y.props.zIndex}function N(e,t,n){if(n===void 0&&(n=!0),C.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=y.props)[e].apply(r,t)}}function P(){var t=y.props.aria;if(t.content){var n=`aria-`+t.content,r=x.id;cW(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+` `+r:r);else{var i=t&&t.replace(r,``).trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function F(){!w&&y.props.aria.expanded&&cW(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute(`aria-expanded`,y.state.isVisible&&e===O()?`true`:`false`):e.removeAttribute(`aria-expanded`)})}function I(){k().removeEventListener(`mousemove`,m),KW=KW.filter(function(e){return e!==m})}function L(t){if(!EW.isTouch||!c&&t.type!==`mousedown`){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(y.props.interactive&&TW(x,n))){if(cW(y.props.triggerTarget||e).some(function(e){return TW(e,n)})){if(EW.isTouch||y.state.isVisible&&y.props.trigger.indexOf(`click`)>=0)return}else N(`onClickOutside`,[y,t]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),s=!0,setTimeout(function(){s=!1}),y.state.isMounted||B())}}}function R(){c=!0}function ee(){c=!1}function z(){var e=k();e.addEventListener(`mousedown`,L,!0),e.addEventListener(`touchend`,L,eW),e.addEventListener(`touchstart`,ee,eW),e.addEventListener(`touchmove`,R,eW)}function B(){var e=k();e.removeEventListener(`mousedown`,L,!0),e.removeEventListener(`touchend`,L,eW),e.removeEventListener(`touchstart`,ee,eW),e.removeEventListener(`touchmove`,R,eW)}function V(e,t){ne(e,function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()})}function te(e,t){ne(e,t)}function ne(e,t){var n=A().box;function r(e){e.target===n&&(wW(n,`remove`,r),t())}if(e===0)return t();wW(n,`remove`,d),wW(n,`add`,r),d=r}function re(t,n,r){r===void 0&&(r=!1),cW(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),p.push({node:e,eventType:t,handler:n,options:r})})}function ie(){E()&&(re(`touchstart`,H,{passive:!0}),re(`touchend`,se,{passive:!0})),sW(y.props.trigger).forEach(function(e){if(e!==`manual`)switch(re(e,H),e){case`mouseenter`:re(`mouseleave`,se);break;case`focus`:re(MW?`focusout`:`blur`,ce);break;case`focusin`:re(`focusout`,ce)}})}function ae(){p.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),p=[]}function H(e){var t=!1;if(!(!y.state.isEnabled||le(e)||s)){var n=u?.type===`focus`;u=e,h=e.currentTarget,F(),!y.state.isVisible&&_W(e)&&KW.forEach(function(t){return t(e)}),e.type===`click`&&(y.props.trigger.indexOf(`mouseenter`)<0||o)&&y.props.hideOnClick!==!1&&y.state.isVisible?t=!0:pe(e),e.type===`click`&&(o=!t),t&&!n&&me(e)}}function oe(e){var t=e.target,r=O().contains(t)||x.contains(t);e.type===`mousemove`&&r||CW(fe().concat(x).map(function(e){var t=e._tippy.popperInstance?.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:n}:null}).filter(Boolean),e)&&(I(),me(e))}function se(e){le(e)||y.props.trigger.indexOf(`click`)>=0&&o||(y.props.interactive?y.hideWithInteractivity(e):me(e))}function ce(e){y.props.trigger.indexOf(`focusin`)<0&&e.target!==O()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||me(e)}function le(e){return EW.isTouch?E()!==e.type.indexOf(`touch`)>=0:!1}function U(){ue();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,a=t.getReferenceClientRect,o=t.moveTransition,s=D()?UW(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||O()}:e,l=[{name:`offset`,options:{offset:i}},{name:`preventOverflow`,options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:`flip`,options:{padding:5}},{name:`computeStyles`,options:{adaptive:!o}},{name:`$$tippy`,enabled:!0,phase:`beforeWrite`,requires:[`computeStyles`],fn:function(e){var t=e.state;if(D()){var n=A().box;[`placement`,`reference-hidden`,`escaped`].forEach(function(e){e===`placement`?n.setAttribute(`data-placement`,t.placement):t.attributes.popper[`data-popper-`+e]?n.setAttribute(`data-`+e,``):n.removeAttribute(`data-`+e)}),t.attributes.popper={}}}}];D()&&s&&l.push({name:`arrow`,options:{element:s,padding:3}}),l.push.apply(l,n?.modifiers||[]),y.popperInstance=JU(c,x,Object.assign({},n,{placement:r,onFirstUpdate:f,modifiers:l}))}function ue(){y.popperInstance&&=(y.popperInstance.destroy(),null)}function de(){var e=y.props.appendTo,t,n=O();t=y.props.interactive&&e===tW||e===`parent`?n.parentNode:iW(e,[n]),t.contains(x)||t.appendChild(x),y.state.isMounted=!0,U()}function fe(){return fW(x.querySelectorAll(`[data-tippy-root]`))}function pe(e){y.clearDelayTimeouts(),e&&N(`onTrigger`,[y,e]),z();var t=j(!0),n=T(),i=n[0],a=n[1];EW.isTouch&&i===`hold`&&a&&(t=a),t?r=setTimeout(function(){y.show()},t):y.show()}function me(e){if(y.clearDelayTimeouts(),N(`onUntrigger`,[y,e]),!y.state.isVisible)B();else if(!(y.props.trigger.indexOf(`mouseenter`)>=0&&y.props.trigger.indexOf(`click`)>=0&&[`mouseleave`,`mousemove`].indexOf(e.type)>=0&&o)){var t=j(!1);t?i=setTimeout(function(){y.state.isVisible&&y.hide()},t):a=requestAnimationFrame(function(){y.hide()})}}function he(){y.state.isEnabled=!0}function ge(){y.hide(),y.state.isEnabled=!1}function _e(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function ve(t){if(!y.state.isDestroyed){N(`onBeforeUpdate`,[y,t]),ae();var n=y.props,r=RW(e,Object.assign({},n,pW(t),{ignoreAttributes:!0}));y.props=r,ie(),n.interactiveDebounce!==r.interactiveDebounce&&(I(),m=aW(oe,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?cW(n.triggerTarget).forEach(function(e){e.removeAttribute(`aria-expanded`)}):r.triggerTarget&&e.removeAttribute(`aria-expanded`),F(),M(),S&&S(n,r),y.popperInstance&&(U(),fe().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),N(`onAfterUpdate`,[y,t])}}function ye(e){y.setProps({content:e})}function be(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=EW.isTouch&&!y.props.touch,i=nW(y.props.duration,0,NW.duration);if(!(e||t||n||r)&&!O().hasAttribute(`disabled`)&&(N(`onShow`,[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,D()&&(x.style.visibility=`visible`),M(),z(),y.state.isMounted||(x.style.transition=`none`),D()){var a=A(),o=a.box,s=a.content;bW([o,s],0)}f=function(){var e;if(y.state.isVisible&&!l){if(l=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=A(),n=t.box,r=t.content;bW([n,r],i),xW([n,r],`visible`)}P(),F(),lW(qW,y),(e=y.popperInstance)==null||e.forceUpdate(),N(`onMount`,[y]),y.props.animation&&D()&&te(i,function(){y.state.isShown=!0,N(`onShown`,[y])})}},de()}}function xe(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=nW(y.props.duration,1,NW.duration);if(!(e||t||n)&&(N(`onHide`,[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,l=!1,o=!1,D()&&(x.style.visibility=`hidden`),I(),B(),M(!0),D()){var i=A(),a=i.box,s=i.content;y.props.animation&&(bW([a,s],r),xW([a,s],`hidden`))}P(),F(),y.props.animation?D()&&V(r,y.unmount):y.unmount()}}function W(e){k().addEventListener(`mousemove`,m),lW(KW,m),m(e)}function Se(){y.state.isVisible&&y.hide(),y.state.isMounted&&(ue(),fe().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),qW=qW.filter(function(e){return e!==y}),y.state.isMounted=!1,N(`onHidden`,[y]))}function Ce(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),ae(),delete e._tippy,y.state.isDestroyed=!0,N(`onDestroy`,[y]))}}function YW(e,t){t===void 0&&(t={});var n=NW.plugins.concat(t.plugins||[]);jW();var r=Object.assign({},t,{plugins:n}),i=yW(e).reduce(function(e,t){var n=t&&JW(t,r);return n&&e.push(n),e},[]);return hW(e)?i[0]:i}YW.defaultProps=NW,YW.setDefaultProps=FW,YW.currentInput=EW;var XW=function(e){var t=e===void 0?{}:e,n=t.exclude,r=t.duration;qW.forEach(function(e){var t=!1;if(n&&(t=vW(n)?e.reference===n:e.popper===n.popper),!t){var i=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:i})}})};Object.assign({},xH,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var ZW={mouseover:`mouseenter`,focusin:`focus`,click:`click`};function QW(e,t){var n=[],r=[],i=!1,a=t.target,o=oW(t,[`target`]),s=Object.assign({},o,{trigger:`manual`,touch:!1}),c=Object.assign({touch:NW.touch},o,{showOnCreate:!0}),l=YW(e,s),u=cW(l);function d(e){if(e.target&&!i){var n=e.target.closest(a);if(n){var o=n.getAttribute(`data-tippy-trigger`)||t.trigger||NW.trigger;if(!n._tippy&&(e.type!==`touchstart`||typeof c.touch!=`boolean`)&&!(e.type!==`touchstart`&&o.indexOf(ZW[e.type])<0)){var s=YW(n,c);s&&(r=r.concat(s))}}}}function f(e,t,r,i){i===void 0&&(i=!1),e.addEventListener(t,r,i),n.push({node:e,eventType:t,handler:r,options:i})}function p(e){var t=e.reference;f(t,`touchstart`,d,eW),f(t,`mouseover`,d),f(t,`focusin`,d),f(t,`click`,d)}function m(){n.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),n=[]}function h(e){var t=e.destroy,n=e.enable,a=e.disable;e.destroy=function(e){e===void 0&&(e=!0),e&&r.forEach(function(e){e.destroy()}),r=[],m(),t()},e.enable=function(){n(),r.forEach(function(e){return e.enable()}),i=!1},e.disable=function(){a(),r.forEach(function(e){return e.disable()}),i=!0},p(e)}return u.forEach(h),l}YW.setDefaultProps({render:WW});function $W(e){let t=TV[e],n=document.createElement(`div`);n.className=`space-y-1`;let r=document.createElement(`p`);r.className=`font-semibold ${t.titleClass} text-sm`,r.textContent=t.title;let i=document.createElement(`p`);i.className=`text-line-mid`,i.textContent=t.lead;let a=document.createElement(`p`);a.className=`pt-0.5 font-medium`,a.textContent=`You can:`;let o=document.createElement(`ol`);o.className=`list-decimal space-y-0.5 pl-4`;for(let e of t.steps){let t=document.createElement(`li`);t.textContent=e,o.append(t)}return n.append(r,i,a,o),n}function eG(){let[e,t]=(0,q.useState)(null);return(0,q.useEffect)(()=>{if(!e)return;let t=QW(e,{target:`[data-kw]`,content:e=>$W(e.getAttribute(`data-kw`)??`todo`),theme:`inkstone`,placement:`top-start`,arrow:!0,onShow:e=>{let t=e.popper.querySelector(`.tippy-box`);t&&(t.dataset.kwKind=e.reference.getAttribute(`data-kw`)??`todo`)},delay:[200,0],maxWidth:400,offset:[0,6],touch:!1,appendTo:()=>document.body}),n=()=>XW({duration:0});return document.addEventListener(`keydown`,n,!0),()=>{document.removeEventListener(`keydown`,n,!0),(Array.isArray(t)?t:[t]).forEach(e=>e.destroy())}},[e]),t}function tG(e){let t=FV(e);return UV(e).filter(e=>e.kind!==`answer`&&e.from>=t).map(({from:e,to:t,kind:n})=>({from:e,to:t,kind:n}))}function nG(e,t,n){return e.length===0?null:n===1?e.find(e=>e.from>t)??e[0]:e.findLast(e=>e.from<t)??e[e.length-1]}var rG=`[data-line-start]`,iG=150,aG=24,oG=24,sG=e=>e instanceof HTMLElement&&(e.tagName===`UL`||e.tagName===`OL`);function cG(e){return{start:Number(e.dataset.lineStart),end:Number(e.dataset.lineEnd)}}function lG(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.top,a=r.height;if(t.tagName===`LI`){let e=[...t.childNodes],n=e.findIndex(sG),r=n===-1?e.at(-1):e[n-1];if(r&&e[0]){let t=document.createRange();t.setStartBefore(e[0]),t.setEndAfter(r);let n=t.getBoundingClientRect();n.height>0&&(i=n.top,a=n.height)}}return{top:i-n.top+e.scrollTop,left:r.left-n.left+e.scrollLeft,width:r.width,height:a}}function uG(e,t){let n=null,r=-1;for(let i of e.querySelectorAll(rG)){let{start:e,end:a}=cG(i);e<=t&&t<=a&&e>=r&&(n=i,r=e)}return n}function dG(e,t){let n=[...e.querySelectorAll(rG)].map(t=>({line:cG(t).start,top:lG(e,t).top})).sort((e,t)=>e.line-t.line||e.top-t.top),r=[];for(let e of n){let t=r.at(-1);t&&(e.line<=t.line||e.top<t.top)||r.push(e)}return r.length===0||r[0].line>1?r.unshift({line:1,top:0}):r[0].top=0,r.push({line:t+1,top:Math.max(e.scrollHeight,r.at(-1)?.top??0)}),r}function fG(e,t,n){let r=t===`line`?`top`:`line`,i=0;for(;i<e.length-2&&e[i+1][t]<=n;)i++;let[a,o]=[e[i],e[i+1]],s=o[t]-a[t];return s<=0?a[r]:a[r]+xd((n-a[t])/s,0,1)*(o[r]-a[r])}function pG(e,t){let n=e.state.doc,r=xd(Math.floor(t),1,n.lines),i=t>=n.lines+1?1:t-r,a=e.lineBlockAt(n.line(r).from);return a.top+i*a.height+e.documentPadding.top}function mG(e,t){let n=e.state.doc,r=Math.max(0,t-e.documentPadding.top),i=e.lineBlockAtHeight(r);return n.lineAt(i.from).number+xd((r-i.top)/Math.max(1,i.height),0,1)}function hG(e,t,n){let r=t===`editor`?e.view?.scrollDOM:e.preview;if(!r)return;let i=xd(n,0,Math.max(0,r.scrollHeight-r.clientHeight));Math.abs(r.scrollTop-i)<1||(e.lock={side:t,until:performance.now()+iG},r.scrollTop=i)}function gG(e,t){if(e.lock.side===t&&performance.now()<e.lock.until)return;let{view:n,preview:r}=e;if(!n||!r)return;let i=n.scrollDOM,a=i.scrollHeight-i.clientHeight,o=r.scrollHeight-r.clientHeight;if(t===`editor`){if(i.scrollTop<=0)return hG(e,`preview`,0);if(i.scrollTop>=a-1)return hG(e,`preview`,o);let t=mG(n,i.scrollTop);hG(e,`preview`,fG(dG(r,n.state.doc.lines),`line`,t)),performance.now()-e.caretMovedAt<400&&yG(e,!0)}else{if(r.scrollTop<=0)return hG(e,`editor`,0);if(r.scrollTop>=o-1)return hG(e,`editor`,a);hG(e,`editor`,pG(n,fG(dG(r,n.state.doc.lines),`top`,r.scrollTop)))}}function _G(e,t,n,r){let i=t===`editor`?e.view?.scrollDOM:e.preview;if(!i)return;let a=i.clientHeight,o=n.top-i.scrollTop,s=o>=0&&o+Math.min(n.height,40)<=a,c=xd(r,aG,Math.max(aG,a-n.height-aG));(!s||Math.abs(o-c)>a*.4)&&hG(e,t,n.top-c)}function vG(e){let{preview:t,overlay:n}=e;if(!t||!n)return null;let r=e.touched&&e.activeLine>0?uG(t,e.activeLine):null;if(!r)return n.style.display=`none`,null;let i=lG(t,r),a=r.tagName===`LI`?oG:0;return Object.assign(n.style,{display:`block`,top:`${i.top-3}px`,left:`${i.left-a-6}px`,width:`${i.width+a+12}px`,height:`${i.height+6}px`}),{top:i.top,height:i.height}}function yG(e,t){let{view:n}=e;if(!n)return;let r=n.state.selection.main.head;e.activeLine=n.state.doc.lineAt(r).number;let i=vG(e);t&&i&&_G(e,`preview`,i,n.lineBlockAt(r).top+n.documentPadding.top-n.scrollDOM.scrollTop)}function bG(e,t){let{view:n}=e,r=Number(t.dataset.kwFrom),i=Number(t.dataset.kwTo);n&&Number.isInteger(r)&&Number.isInteger(i)&&(XW({duration:0}),WV(n,r,i,t.dataset.kwRemove))}function xG(e,t){let{view:n,preview:r}=e,i=t.target;if(!n||!r||!(i instanceof Element))return;let a=i.closest(`[data-kw-remove]`);if(a){bG(e,a);return}if(window.getSelection()?.isCollapsed===!1||i.closest(`a, button`))return;let o=i.closest(rG);if(!o||!r.contains(o))return;let{start:s,end:c}=cG(o),l=lG(r,o),u=xd((t.clientY-r.getBoundingClientRect().top+r.scrollTop-l.top)/Math.max(1,l.height),0,.999),d=n.state.doc,f=xd(s+Math.floor(u*(c-s+1)),1,d.lines),p=l.top-r.scrollTop;e.touched=!0,e.skipReveal=!0,n.focus(),n.dispatch({selection:{anchor:d.line(f).to}}),e.skipReveal=!1;let m=n.lineBlockAt(d.line(f).from);_G(e,`editor`,{top:m.top+n.documentPadding.top,height:m.height},p)}function SG(e,t){let n=(0,q.useRef)({view:null,preview:null,overlay:null,touched:!1,skipReveal:!1,activeLine:0,caretMovedAt:0,lock:{side:`editor`,until:0}}).current,r=(0,q.useCallback)(e=>{n.view=e,e.scrollDOM.addEventListener(`scroll`,()=>gG(n,`editor`),{passive:!0})},[n]),i=(0,q.useCallback)(e=>{e.focusChanged&&e.view.hasFocus&&(n.touched=!0),e.selectionSet&&e.view.hasFocus&&(n.touched=!0,n.caretMovedAt=performance.now()),!e.docChanged&&(e.selectionSet||e.focusChanged&&e.view.hasFocus)&&yG(n,e.selectionSet&&!n.skipReveal&&e.view.hasFocus)},[n]),a=(0,q.useCallback)(e=>{if(n.preview=e,!e)return;let t=()=>gG(n,`preview`),r=new ResizeObserver(()=>vG(n));return e.addEventListener(`scroll`,t,{passive:!0}),r.observe(e),()=>{e.removeEventListener(`scroll`,t),r.disconnect(),n.preview===e&&(n.preview=null)}},[n]),o=(0,q.useCallback)(e=>{n.overlay=e},[n]),s=(0,q.useCallback)(e=>xG(n,e),[n]),c=(0,q.useCallback)((e,t)=>{let{view:r}=n;if(!r)return;let i=nG(e,r.state.selection.main.head,t);i&&(i.to>r.state.doc.length||(n.touched=!0,r.focus(),r.dispatch({selection:{anchor:i.from},effects:z.scrollIntoView(i.from,{y:`center`})})))},[n]);return(0,q.useLayoutEffect)(()=>{n.touched=!1,n.activeLine=0,vG(n)},[n,t]),(0,q.useLayoutEffect)(()=>{yG(n,n.view?.hasFocus??!1)},[n,e]),{onCreateEditor:r,onUpdate:i,previewRef:a,overlayRef:o,onPreviewClick:s,goToMark:c}}var CG=new Set([`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`pre`,`hr`,`tr`,`li`]),wG=new Set([`ul`,`ol`]),TG=(e,t)=>e.type===`element`&&t.has(e.tagName??``);function EG(e,t){for(let n of e.children??[]){if(n.position&&TG(n,CG)){let e=n.position.start.line,r=n.position.end.line,i=!0;if(n.tagName===`li`){let t=n.children??[];t.some(e=>TG(e,new Set([`p`])))&&(i=!1);let a=t.find(e=>TG(e,wG)&&e.position);a?.position&&(r=Math.max(e,a.position.start.line-1))}i&&(n.properties={...n.properties,dataLineStart:e+t,dataLineEnd:r+t})}EG(n,t)}}function DG(e={}){let t=e.offset??0;return e=>EG(e,t)}function OG(e,t,n){let r=e.position?.start.offset,i=e.position?.end.offset;if(r===void 0||i===void 0)return t.map(()=>null);let a=n.slice(r,i),o=[],s=0,c=0;for(let n of t){if(a===e.value)o.push(r+c);else{let e=a.indexOf(n.text,s);o.push(e===-1?null:r+e),e!==-1&&(s=e+n.text.length)}c+=n.text.length}return o}function kG(e,t){if(!e.children)return;let n=[];for(let r of e.children){if(r.type!==`text`||r.value===void 0){kG(r,t),n.push(r);continue}let e=jV(r.value),i=OG(r,e,t.source);e.forEach((e,r)=>{if(e.kind===null){n.push({type:`text`,value:e.text});return}n.push({type:`element`,tagName:`mark`,properties:{className:wV[e.kind].split(` `),dataKw:e.kind},children:[{type:`text`,value:e.text}]});let a=i[r];if(a===null)return;let o=a+t.offset,s=o+e.text.length;HV(t.fullText,o,s,e.kind)&&n.push({type:`element`,tagName:`button`,properties:{type:`button`,className:[`kw-remove`,`kw-remove-${e.kind}`],dataKwRemove:e.kind,dataKwFrom:o,dataKwTo:s,ariaLabel:MV[e.kind],title:MV[e.kind]},children:[]})})}e.children=n}function AG(e={}){return(t,n)=>{kG(t,{source:typeof n.value==`string`?n.value:``,offset:e.offset??0,fullText:e.fullText??``})}}var jG=navigator.userAgentData?.platform??navigator.platform??``,MG=/mac|iphone|ipad/i.test(jG),NG=MG?`⌘`:`Ctrl`,PG=e=>MG?`${NG}${e}`:`${NG}+${e}`,FG=`[a-z0-9]+(?:-[a-z0-9]+)*`,IG=RegExp(`^${FG}$`),LG=RegExp(`^(?:${FG}/)?${FG}$`),RG=e=>IG.test(e),zG=e=>LG.test(e);function BG(e){let t=e.indexOf(`/`);return t===-1?{group:null,name:e}:{group:e.slice(0,t),name:e.slice(t+1)}}var VG=(e,t)=>e?`${e}/${t}`:t,HG=`memo`,UG=288,WG=224,GG=640,KG=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/;function qG(e){let t=KG.exec(e);return t?{meta:t[1],body:e.slice(t[0].length)}:{meta:null,body:e}}function JG(e){try{let t=JN(e);return typeof t!=`object`||!t||Array.isArray(t)?null:Object.entries(t)}catch{return null}}function YG({text:e}){return(0,J.jsx)(J.Fragment,{children:jV(e).map((e,t)=>e.kind===null?e.text:(0,J.jsx)(`mark`,{className:wV[e.kind],"data-kw":e.kind,children:e.text},t))})}function XG({value:e}){return e==null||e===``?(0,J.jsx)(`span`,{className:`text-ink-3`,children:`-`}):Array.isArray(e)?(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.map((e,t)=>(0,J.jsx)(rf,{tone:`blue`,children:String(e)},t))}):typeof e==`object`?(0,J.jsx)(`code`,{className:`text-xs`,children:JSON.stringify(e)}):(0,J.jsx)(`span`,{className:`break-words`,children:(0,J.jsx)(YG,{text:String(e)})})}function ZG({meta:e}){let t=(0,q.useMemo)(()=>JG(e),[e]);return t===null?(0,J.jsx)(`pre`,{className:`rounded border border-line bg-warm p-3 text-xs text-ink-2`,children:(0,J.jsx)(YG,{text:e})}):(0,J.jsx)(`table`,{className:`not-prose mb-6 w-full border border-line bg-white text-sm`,children:(0,J.jsx)(`tbody`,{children:t.map(([e,t])=>(0,J.jsxs)(`tr`,{className:`border-b border-line last:border-b-0`,children:[(0,J.jsx)(`th`,{className:`w-32 bg-warm px-3 py-2 text-left align-top font-mono text-xs font-medium text-ink-2`,children:e}),(0,J.jsx)(`td`,{className:`px-3 py-2 align-top`,children:(0,J.jsx)(XG,{value:t})})]},e))})})}function QG({content:e}){let{meta:t,body:n,lineOffset:r,charOffset:i}=(0,q.useMemo)(()=>{let t=qG(e),n=e.slice(0,e.length-t.body.length);return{...t,lineOffset:n.split(`
|
|
266
|
-
`).length-1,charOffset:n.length}},[e]);return(0,J.jsxs)(`div`,{className:`prose relative max-w-none prose-table:text-sm prose-code:before:content-none prose-code:after:content-none`,children:[t===null?null:(0,J.jsx)(ZG,{meta:t}),(0,J.jsx)(IE,{remarkPlugins:[rA],rehypePlugins:[[AG,{offset:i,fullText:e}],[DG,{offset:r}]],components:{button:({node:e,children:t,...n})=>(0,J.jsx)(`button`,{...n,children:(0,J.jsx)(rP,{})})},children:n})]})}var $G={"explore-case":{select:`border-qing/50 bg-qing-bg text-qing-deep focus:ring-theme/25`,option:`bg-qing-bg text-qing-deep`,dot:`bg-qing`,impact:`# Explore case
|
|
267
|
-
Edits only the case file: fixes wording and writes down what the pages show and the open questions.
|
|
268
|
-
The agent only reads pages. Steps that write data are done by you (Attended).`},"gen-spec":{select:`border-gold-deep/40 bg-gold-bg text-gold-deep focus:ring-theme/25`,option:`bg-gold-bg text-gold-deep`,dot:`bg-gold`,impact:`# Generate spec
|
|
269
|
-
Creates the spec from the case file (including its "## Values").
|
|
270
|
-
Does not run the tests: do that on the Run page.`},"heal-spec":{select:`border-seal/40 bg-seal-bg text-seal-deep focus:ring-theme/25`,option:`bg-seal-bg text-seal-deep`,dot:`bg-seal`,impact:`# Heal spec
|
|
271
|
-
Reads the last report of the case first, then fixes the spec. It runs the tests again only when it needs more evidence, and only for profiles that are logged in.`}};function eK({caseId:e,dirty:t,hasSpec:n}){let[r]=Xf(),[i,a]=(0,q.useState)(`explore-case`),[o]=Xs(),s=o.get(`ai`);(0,q.useEffect)(()=>{s&&Md.includes(s)&&a(s)},[s]);let[c,l]=Cd(`asrun-ui.ai-env`,``,wd),[u,d]=(0,q.useState)(!1),[f,p]=(0,q.useState)(!1),[m,h]=(0,q.useState)(!1),[g,_]=(0,q.useState)(!0),{startJob:v}=zc(),y=jc().data?.envs??[],b=y.includes(c)?c:``,x=b===``,S=i===`explore-case`&&b!==``,C=S&&g,w=qd(r,i,e,{env:b||`<env>`,attended:C}),T=i===`gen-spec`&&n,E=t=>void v({action:`ai`,tool:r,command:i,caseId:e,env:b,...t&&{force:t},...C&&{attended:C}});return(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(vf,{value:i,onChange:e=>a(e.target.value),tone:$G[i].select,dot:$G[i].dot,"aria-label":`AI command`,title:$G[i].impact,children:Md.map(e=>(0,J.jsx)(`option`,{value:e,className:$G[e].option,children:Nd[e]},e))}),(0,J.jsxs)(vf,{value:b,onChange:e=>l(e.target.value),invalid:x,required:!0,"aria-label":`Environment the agent works in`,title:x?`# Choose an environment
|
|
272
|
-
The agent opens real pages there. There is no default.`:`# Environment\n${Fd[i]}`,children:[(0,J.jsx)(`option`,{value:``,children:`Environment: choose...`}),y.map(e=>(0,J.jsxs)(`option`,{value:e,children:[`Environment: `,e]},e))]}),i===`explore-case`?(0,J.jsxs)(`label`,{className:`flex items-center gap-1.5 text-sm ${S?`text-ink-2`:`text-ink-3`}`,title:S?`# Attended run
|
|
273
|
-
You stay at this computer. The browser opens, and for a step that writes data or needs your choice the agent pauses and shows a small card. Do the step in the browser, then click Done.
|
|
274
|
-
Untick it if nobody is at the machine. The agent then only reads.`:`# Attended run
|
|
275
|
-
Choose an environment first: an attended run opens real pages.`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:g,disabled:!S,onChange:e=>_(e.target.checked)}),`Attended`]}):null,(0,J.jsxs)(`button`,{className:`${mf(`success`)} gap-1.5`,disabled:t||x,title:t?`# Save first
|
|
276
|
-
The AI reads the saved file, so save your changes before running.`:x?`# Choose an environment first
|
|
277
|
-
The agent opens real pages there. There is no default.`:i===`heal-spec`?`# Heal spec\nAsks which profiles to heal and for any clues, then starts ${jd[r]} on this case in ${b}. The output opens in the Jobs drawer.`:`# Run ${Nd[i]}\nStarts ${jd[r]} on this case in ${b}${C?`, attended`:``}. The output opens in the Jobs drawer.`,onClick:()=>i===`heal-spec`?h(!0):T?p(!0):E(!1),children:[(0,J.jsx)(id,{size:14,"aria-hidden":`true`}),`Run AI`]}),(0,J.jsx)(`button`,{className:`${mf()} h-8 w-8 px-0!`,"aria-label":`Copy shell command`,title:`# Copy shell command
|
|
278
|
-
Copies the command line that runs this AI command in a terminal, with the options chosen here.`,onClick:()=>{navigator.clipboard.writeText(w).then(()=>{d(!0),setTimeout(()=>d(!1),1200)})},children:u?(0,J.jsx)(cl,{size:16,"aria-hidden":`true`}):(0,J.jsx)(Ml,{size:16,"aria-hidden":`true`})}),(0,J.jsx)(Ks,{to:`/guide?case=${e}`,className:`${mf()} h-8 w-8 px-0!`,"aria-label":`AI guide`,title:`# AI guide
|
|
279
|
-
How to use these commands, and the same commands to run in a terminal.`,children:(0,J.jsx)(ou,{size:16,"aria-hidden":`true`})}),m?(0,J.jsx)($N,{caseId:e,env:b,tool:r,onClose:()=>h(!1)}):null,f?(0,J.jsx)(rK,{caseId:e,env:b,onClose:()=>p(!1),onOverwrite:()=>{p(!1),E(!0)}}):null]})}var tK=`case-groups`;function nK(){let e=[...new Set(Nc().data?.map(e=>e.group).filter(e=>e!==null))].sort();return(0,J.jsx)(`datalist`,{id:tK,children:e.map(e=>(0,J.jsx)(`option`,{value:e},e))})}function rK({caseId:e,env:t,onClose:n,onOverwrite:r}){let i=Vn({queryKey:[`case-impact`,e],queryFn:()=>sc.caseImpact(e),gcTime:0});return(0,J.jsx)(YN,{title:`Overwrite the spec of ${e}?`,onClose:n,children:(0,J.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[(0,J.jsxs)(`p`,{children:[`This case already has a spec. Without overwriting, the agent leaves it alone and generates nothing. If you overwrite, the agent explores `,(0,J.jsx)(`b`,{children:t?t.toUpperCase():`the pages`}),` and writes the spec again from the case file.`]}),(0,J.jsxs)(`div`,{className:`rounded border border-seal/40 bg-seal-bg p-3 text-seal-deep`,children:[(0,J.jsx)(`div`,{className:`mb-1 text-xs font-medium`,children:`It will replace (not recoverable from here, use git to get it back):`}),(0,J.jsx)(`ul`,{className:`list-disc space-y-1 pl-5`,children:(0,J.jsx)(`li`,{children:(0,J.jsx)(`code`,{children:i.data?.specFile??`the spec file`})})})]}),(0,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`The expected values stay in the case document. Baseline images are kept`,i.data?` (${i.data.snapshotCount} file${i.data.snapshotCount===1?``:`s`})`:``,`; the agent lists the ones that may be out of date. It does not run the spec.`]}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{className:mf(),onClick:n,autoFocus:!0,children:`Cancel`}),(0,J.jsx)(`button`,{className:mf(`stop`),onClick:r,children:`Overwrite the spec`})]})]})})}function iK({impact:e,verb:t}){return(0,J.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5 text-sm`,children:[(0,J.jsxs)(`li`,{children:[t,`: `,(0,J.jsx)(`code`,{children:e.caseFile})]}),e.specFile?(0,J.jsxs)(`li`,{children:[t,`: `,(0,J.jsx)(`code`,{children:e.specFile})]}):(0,J.jsx)(`li`,{className:`opacity-70`,children:`No spec yet.`}),e.snapshotDir?(0,J.jsxs)(`li`,{children:[t,`: `,(0,J.jsxs)(`code`,{children:[e.snapshotDir,`/`]}),` (`,e.snapshotCount,` baseline file`,e.snapshotCount===1?``:`s`,`)`]}):null,(0,J.jsx)(`li`,{className:`opacity-70`,children:`Its expected values stay in the case document.`})]})}function aK({id:e,onClose:t,onRenamed:n}){let r=BG(e),[i,a]=(0,q.useState)(r.group??``),[o,s]=(0,q.useState)(r.name),c=Vn({queryKey:[`case-impact`,e],queryFn:()=>sc.caseImpact(e),gcTime:0}),l=ht(),u=VG(i.trim()||null,o.trim()),d=(i.trim()===``||RG(i.trim()))&&RG(o.trim())&&u!==`memo`,f=Hn({mutationFn:()=>sc.renameCase(e,u),onSuccess:()=>{l.invalidateQueries({queryKey:Ac.cases}),l.invalidateQueries({queryKey:Ac.info}),l.removeQueries({queryKey:Ac.case(e)}),n(u)}});return(0,J.jsx)(YN,{title:`Rename or move ${e}`,onClose:t,children:(0,J.jsxs)(`form`,{className:`space-y-3`,onSubmit:t=>{t.preventDefault(),d&&u!==e&&f.mutate()},children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-[10rem_1fr] gap-2`,children:[(0,J.jsxs)(`label`,{className:`text-xs text-ink-2`,children:[`Folder (optional)`,(0,J.jsx)(`input`,{value:i,onChange:e=>a(e.target.value),list:tK,placeholder:`documents`,className:`mt-1 w-full ${hf} py-1 font-mono`})]}),(0,J.jsxs)(`label`,{className:`text-xs text-ink-2`,children:[`Name`,(0,J.jsx)(`input`,{autoFocus:!0,value:o,onChange:e=>s(e.target.value),className:`mt-1 w-full ${hf} py-1 font-mono`})]})]}),(0,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`New id: `,(0,J.jsx)(`code`,{children:u}),d?null:(0,J.jsx)(`span`,{className:`text-seal-deep`,children:` (lowercase words with dashes only)`})]}),(0,J.jsxs)(`div`,{className:`rounded border border-line bg-warm p-3`,children:[(0,J.jsx)(`div`,{className:`mb-1 text-xs font-medium text-ink-2`,children:`What moves with it`}),c.data?(0,J.jsx)(iK,{impact:c.data,verb:`Moved`}):(0,J.jsx)(`p`,{className:`text-sm text-ink-2`,children:c.isError?c.error.message:`Loading...`})]}),f.isError?(0,J.jsx)(`p`,{className:`text-sm text-seal-deep`,children:f.error.message}):null,(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{type:`button`,className:mf(),onClick:t,children:`Cancel`}),(0,J.jsx)(`button`,{className:mf(`primary`),disabled:!d||u===e||f.isPending,children:f.isPending?`Renaming...`:`Rename`})]})]})})}function oK({id:e,onClose:t,onDeleted:n}){let[r,i]=(0,q.useState)(``),a=Vn({queryKey:[`case-impact`,e],queryFn:()=>sc.caseImpact(e),gcTime:0}),o=ht(),s=Hn({mutationFn:()=>sc.deleteCase(e),onSuccess:()=>{o.invalidateQueries({queryKey:Ac.cases}),o.invalidateQueries({queryKey:Ac.info}),o.removeQueries({queryKey:Ac.case(e)}),n()}});return(0,J.jsx)(YN,{title:`Delete ${e}?`,onClose:t,children:(0,J.jsxs)(`form`,{className:`space-y-3`,onSubmit:t=>{t.preventDefault(),r===e&&a.data&&s.mutate()},children:[(0,J.jsxs)(`div`,{className:`rounded border border-seal/40 bg-seal-bg p-3 text-seal-deep`,children:[(0,J.jsx)(`div`,{className:`mb-1 text-xs font-medium`,children:`It will delete (the files are not recoverable from here):`}),a.data?(0,J.jsx)(iK,{impact:a.data,verb:`Delete`}):(0,J.jsx)(`p`,{className:`text-sm`,children:a.isError?a.error.message:`Loading...`})]}),(0,J.jsxs)(`label`,{className:`block text-xs text-ink-2`,children:[(0,J.jsxs)(`span`,{className:`flex items-center gap-1`,children:[`Type `,(0,J.jsx)(`code`,{className:`text-ink`,children:e}),` to confirm`,(0,J.jsx)(`button`,{type:`button`,className:`rounded p-1 text-ink-2 hover:bg-warm hover:text-ink`,title:`Fill in the case id`,"aria-label":`Fill in the case id`,onClick:()=>i(e),children:(0,J.jsx)(Jl,{size:14,"aria-hidden":`true`})})]}),(0,J.jsx)(`input`,{autoFocus:!0,value:r,onChange:e=>i(e.target.value),className:`mt-1 w-full ${hf} py-1 font-mono`})]}),s.isError?(0,J.jsx)(`p`,{className:`text-sm text-seal-deep`,children:s.error.message}):null,(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{type:`button`,className:mf(),onClick:t,children:`Cancel`}),(0,J.jsx)(`button`,{className:mf(`stop`),disabled:r!==e||!a.data||s.isPending,children:s.isPending?`Deleting...`:`Delete case`})]})]})})}var sK=e=>e===`case`||e===`spec`;function cK({view:e,setView:t,hasSpec:n}){return(0,J.jsx)(`button`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid disabled:opacity-40`,disabled:!n,title:n?`Switch to the ${e===`case`?`spec`:`case`}`:`No spec yet. Generate one with Run AI.`,"aria-label":`Showing the ${e}. Switch to the ${e===`case`?`spec`:`case`}`,onClick:()=>t(e===`case`?`spec`:`case`),children:[`case`,`spec`].map(t=>(0,J.jsx)(`span`,{className:`px-3 py-0.5 text-sm transition-colors ${e===t?`bg-theme-btn text-white`:`bg-card text-ink-2`}`,children:t===`case`?`Case`:`Spec`},t))})}function lK(){let[e,t]=(0,q.useState)(!1);return{copied:e,copy:e=>void navigator.clipboard.writeText(e).then(()=>{t(!0),setTimeout(()=>t(!1),1200)})}}function uK({id:e,spec:t,draft:n,setDraft:r,dirty:i,save:a,conflict:o,onReload:s}){let[c,l]=(0,q.useState)(null),u=lK(),d=lK(),f=Hn({mutationFn:()=>sc.openSpec(e)});(0,q.useEffect)(()=>{let e=!0;return QV().then(t=>e&&l(t)),()=>{e=!1}},[]);let p=n?.text??t.content,m=o??a.error?.message??f.error?.message??null;return(0,J.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 border-b border-line-mid bg-card px-4 py-1`,children:[(0,J.jsx)(`code`,{className:`text-xs text-ink-2`,children:t.file}),i?(0,J.jsx)(rf,{tone:`amber`,children:`Unsaved changes`}):(0,J.jsx)(rf,{tone:`gray`,children:`Saved`}),(0,J.jsx)(`span`,{className:`text-xs text-ink-3`,children:yf(new Date(t.mtimeMs).toISOString())}),(0,J.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,J.jsxs)(`button`,{className:`${mf()} gap-1.5 py-1`,disabled:i||f.isPending,title:i?`Save or discard your changes first, so the other editor opens the same text`:`Open the spec in the default application of your system for this file type`,onClick:()=>f.mutate(),children:[(0,J.jsx)(Wl,{size:14,"aria-hidden":`true`}),`Open in editor`]}),(0,J.jsxs)(`button`,{className:`${mf()} gap-1.5 py-1`,title:`Copy the full path to paste into a terminal editor:\n${t.path}`,onClick:()=>d.copy(t.path),children:[d.copied?(0,J.jsx)(cl,{size:14,"aria-hidden":`true`}):(0,J.jsx)(Ol,{size:14,"aria-hidden":`true`}),d.copied?`Copied`:`Copy path`]}),(0,J.jsx)(`button`,{className:`rounded p-1 text-ink-2 hover:bg-warm hover:text-ink`,title:`Copy the spec`,"aria-label":`Copy the spec`,onClick:()=>u.copy(p),children:u.copied?(0,J.jsx)(cl,{size:14,"aria-hidden":`true`}):(0,J.jsx)(Ml,{size:14,"aria-hidden":`true`})}),(0,J.jsx)(`span`,{className:`mx-1 h-5 w-px bg-line-mid`}),(0,J.jsx)(`button`,{className:`${mf()} py-1`,disabled:!i,onClick:()=>r(null),children:`Discard`}),(0,J.jsx)(`button`,{className:`${mf(`primary`)} gap-2 py-1`,disabled:!i||a.isPending,title:`Save the spec (${PG(`S`)})`,onClick:()=>n&&a.mutate(n),children:a.isPending?`Saving...`:(0,J.jsxs)(J.Fragment,{children:[`Save`,(0,J.jsx)(`kbd`,{className:`font-sans text-xs font-normal opacity-75`,children:PG(`S`)})]})})]})]}),m?(0,J.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[(0,J.jsx)(`span`,{children:m}),o?(0,J.jsx)(`button`,{className:`ml-auto underline`,onClick:s,children:`Discard my edits and reload`}):null]}):null,(0,J.jsx)(`div`,{className:`${XV} paper-grain min-h-0 flex-1 overflow-auto bg-warm`,children:(0,J.jsx)(qy,{value:p,onChange:e=>r(e===t.content?null:{text:e,baseMtimeMs:n?.baseMtimeMs??t.mtimeMs}),theme:`none`,extensions:[...$V,z.lineWrapping,...c?[c]:[]],basicSetup:{foldGutter:!1},height:`100%`,style:{height:`100%`,fontSize:13}})})]})}function dK({id:e}){let t=ht(),n=Eo(),[r,i]=(0,q.useState)(null),[a,o]=Cd(`asrun-ui.cases.view`,`case`,sK),s=Fc().data?.some(e=>e.status===`running`&&(e.kind===`ai`||e.kind===`run`))??!1,c=Vn({queryKey:Ac.case(e),queryFn:()=>sc.case(e),staleTime:0,gcTime:0}),[l,u]=(0,q.useState)(null),[d,f]=(0,q.useState)(null),p=Nc().data?.find(t=>t.id===e),m=p?.hasSpec??!1,h=a===`spec`&&m?`spec`:`case`,g=Vn({queryKey:Ac.spec(e),queryFn:()=>sc.spec(e),enabled:m,staleTime:0,gcTime:0}),[_,v]=(0,q.useState)(null),[y,b]=(0,q.useState)(null),x=eG();(0,q.useEffect)(()=>{u(null),v(null),b(null)},[e]);let S=l?.text??c.data?.content??``,C=SG(S,e),w=(0,q.useMemo)(()=>tG(S),[S]),T=l!==null&&l.text!==c.data?.content,E=_!==null&&_.text!==g.data?.content,D=T||E,O=T&&l!==null&&l.baseMtimeMs!==c.data?.mtimeMs,k=E&&_!==null&&_.baseMtimeMs!==g.data?.mtimeMs,A=e=>`This ${e} changed on disk after you started editing. Your edits are kept, but saving will be refused.`,j=d??(O?A(`case`):null),M=y??(k?A(`spec`):null),N=D||s,P=D?`Save or discard your changes first`:s?`Wait for the running job to finish`:`Rename the case or move it to another folder`,F=Hn({mutationFn:t=>sc.saveCase(e,t.text,t.baseMtimeMs),onSuccess:(n,r)=>{t.setQueryData(Ac.case(e),n),t.invalidateQueries({queryKey:Ac.cases}),u(e=>e&&e.text!==r.text?{text:e.text,baseMtimeMs:n.mtimeMs}:null),f(null)},onError:e=>{e.status===409&&f(e.message)}}),I=Hn({mutationFn:t=>sc.saveSpec(e,t.text,t.baseMtimeMs),onSuccess:(n,r)=>{t.setQueryData(Ac.spec(e),n),v(e=>e&&e.text!==r.text?{text:e.text,baseMtimeMs:n.mtimeMs}:null),b(null)},onError:e=>{e.status===409&&b(e.message)}}),L=qo(D);return(0,q.useEffect)(()=>{if(!D)return;let e=e=>e.preventDefault();return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[D]),(0,q.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),h===`spec`?E&&_&&!I.isPending&&I.mutate(_):T&&l&&!F.isPending&&F.mutate(l))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)}),c.isError?(0,J.jsx)(`p`,{className:`p-6 text-seal-deep`,children:c.error.message}):c.data?(0,J.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 border-b border-line-mid bg-warm px-4 py-2`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,J.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,J.jsxs)(`button`,{className:`font-mono text-sm hover:underline disabled:no-underline`,disabled:N,title:P,onClick:()=>i(`rename`),children:[`cases/`,e,`.md`]}),(0,J.jsx)(`button`,{className:`rounded p-1 text-ink-2 hover:bg-line hover:text-ink disabled:opacity-40`,disabled:N,title:P,"aria-label":`Rename or move the case`,onClick:()=>i(`rename`),children:(0,J.jsx)(Bl,{size:14,"aria-hidden":`true`})})]}),h===`case`?T?(0,J.jsx)(rf,{tone:`amber`,children:`Unsaved changes`}):(0,J.jsx)(rf,{tone:`gray`,children:`Saved`}):null,h===`case`&&E?(0,J.jsx)(rf,{tone:`amber`,children:`Spec has unsaved changes`}):null,h===`spec`&&T?(0,J.jsx)(rf,{tone:`amber`,children:`Case has unsaved changes`}):null,(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(cK,{view:h,setView:o,hasSpec:m})})]}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-2`,children:[(0,J.jsx)(eK,{caseId:e,dirty:D,hasSpec:m}),(0,J.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,J.jsxs)(`button`,{className:`${mf(`danger`)} gap-1.5`,disabled:s,title:s?`Wait for the running job to finish`:`Delete the case, its spec and its baseline images`,onClick:()=>i(`delete`),children:[(0,J.jsx)(fd,{size:14,"aria-hidden":`true`}),`Delete`]}),h===`case`?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`mx-1 h-5 w-px bg-line-mid`}),(0,J.jsxs)(`span`,{className:`flex items-center gap-1`,role:`group`,"aria-label":`Outstanding marks`,children:[(0,J.jsx)(`button`,{className:mf(),disabled:w.length===0,title:`Previous outstanding mark (TODO, to be confirmed, not observed)`,"aria-label":`Previous outstanding mark`,onClick:()=>C.goToMark(w,-1),children:(0,J.jsx)(wl,{size:14,"aria-hidden":`true`})}),(0,J.jsx)(`button`,{className:mf(),disabled:w.length===0,title:`Next outstanding mark (TODO, to be confirmed, not observed)`,"aria-label":`Next outstanding mark`,onClick:()=>C.goToMark(w,1),children:(0,J.jsx)(fl,{size:14,"aria-hidden":`true`})}),(0,J.jsx)(`span`,{className:`min-w-12 text-xs text-ink-2`,"aria-live":`polite`,children:w.length===0?`No marks`:`${w.length} ${w.length===1?`mark`:`marks`}`})]}),(0,J.jsx)(`span`,{className:`mx-1 h-5 w-px bg-line-mid`}),(0,J.jsx)(`button`,{className:mf(),disabled:!T,onClick:()=>u(null),children:`Discard`}),(0,J.jsx)(`button`,{className:`${mf(`primary`)} gap-2`,disabled:!T||F.isPending,title:`Save the case (${PG(`S`)})`,onClick:()=>l&&F.mutate(l),children:F.isPending?`Saving...`:(0,J.jsxs)(J.Fragment,{children:[`Save`,(0,J.jsx)(`kbd`,{className:`font-sans text-xs font-normal opacity-75`,children:PG(`S`)})]})})]}):null]})]})]}),p?.problem?(0,J.jsxs)(`div`,{className:`border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[`Front matter problem: `,p.problem]}):null,p&&p.writes.length>0?(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[(0,J.jsx)(sf,{}),(0,J.jsxs)(`span`,{children:[`This case writes data in `,p.writes.join(`, `),`: `,p.writesNote]}),p.envs?(0,J.jsxs)(`span`,{className:`ml-auto flex items-center gap-1 text-xs text-ink-2`,children:[`runs only in `,p.envs.map(e=>(0,J.jsx)(of,{env:e},e))]}):null]}):p?.envs?(0,J.jsxs)(`div`,{className:`flex items-center gap-1 border-b border-line-mid bg-warm px-4 py-1 text-xs text-ink-2`,children:[`Runs only in `,p.envs.map(e=>(0,J.jsx)(of,{env:e},e))]}):null,j||F.isError?(0,J.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[(0,J.jsx)(`span`,{children:j??F.error.message}),j?(0,J.jsx)(`button`,{className:`ml-auto underline`,onClick:()=>{u(null),f(null),c.refetch()},children:`Discard my edits and reload`}):null]}):null,h===`spec`?g.isError?(0,J.jsx)(`p`,{className:`p-6 text-seal-deep`,children:g.error.message}):g.data?(0,J.jsx)(uK,{id:e,spec:g.data,draft:_,setDraft:v,dirty:E,save:I,conflict:M,onReload:()=>{v(null),b(null),g.refetch()}}):(0,J.jsx)(`p`,{className:`p-6 text-ink-2`,children:`Loading...`}):(0,J.jsxs)(`div`,{ref:x,className:`grid min-h-0 flex-1 grid-cols-2 divide-x divide-line-mid`,children:[(0,J.jsx)(`div`,{className:`${XV} paper-grain min-h-0 overflow-auto bg-warm`,children:(0,J.jsx)(qy,{value:S,onChange:e=>u(t=>e===c.data.content?null:{text:e,baseMtimeMs:t?.baseMtimeMs??c.data.mtimeMs}),onCreateEditor:C.onCreateEditor,onUpdate:C.onUpdate,theme:`none`,extensions:[...eH,z.lineWrapping],basicSetup:{foldGutter:!1},height:`100%`,style:{height:`100%`,fontSize:13}})}),(0,J.jsxs)(`div`,{ref:C.previewRef,onClick:C.onPreviewClick,className:`relative min-h-0 overflow-auto bg-white p-6`,children:[(0,J.jsx)(`div`,{ref:C.overlayRef,"aria-hidden":`true`,className:`pointer-events-none absolute hidden rounded-sm border-l-2 border-theme/60 bg-theme-bg/60`}),(0,J.jsx)(QG,{content:S})]})]}),r===`rename`?(0,J.jsx)(aK,{id:e,onClose:()=>i(null),onRenamed:e=>n(`/cases/${e}`)}):null,r===`delete`?(0,J.jsx)(oK,{id:e,onClose:()=>i(null),onDeleted:()=>n(`/cases`)}):null,L.state===`blocked`?(0,J.jsx)(`div`,{className:`fixed inset-0 z-30 flex items-center justify-center bg-dai-deep/40`,children:(0,J.jsxs)(`div`,{className:`card-paper w-96 p-5 shadow-lift`,children:[(0,J.jsx)(`h2`,{className:`mb-1 font-serif text-base font-bold`,children:`Leave without saving?`}),(0,J.jsxs)(`p`,{className:`mb-4 text-sm text-ink-2`,children:[`Your changes to `,[T&&`${e}.md`,E&&`${e}.spec.ts`].filter(Boolean).join(` and `),` will be lost.`]}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{className:mf(),onClick:()=>L.reset(),children:`Stay`}),(0,J.jsx)(`button`,{className:mf(`danger`),onClick:()=>L.proceed(),children:`Leave`})]})]})}):null]}):(0,J.jsx)(`p`,{className:`p-6 text-ink-2`,children:`Loading...`})}var fK=`Paste your test notes here, in any language. For example:
|
|
280
|
-
|
|
281
|
-
Documents hub landing page
|
|
282
|
-
- open the documents page, check the page title and the "Create New" button
|
|
283
|
-
- the logo in the header must be the profile logo
|
|
284
|
-
- create a document, publish it, share the link by email, then delete it`;function pK({memo:e,setMemo:t}){let[n]=Xf(),[r,i]=(0,q.useState)(!1),{startJob:a}=zc(),o=Fc().data?.some(e=>e.kind===`ai`&&e.status===`running`&&e.command.includes(`/make-case`)),s=e.trim()===``,c=e.length>Zd,l=`${n===`claude`?`claude`:`opencode`}, then type: /make-case path/to/notes.md`;return(0,J.jsxs)(`div`,{className:`mx-auto flex h-full min-h-0 max-w-4xl flex-col gap-3 p-6`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h2`,{className:`font-serif text-xl font-bold tracking-wide border-l-4 border-theme pl-3`,children:`New cases from a memo`}),(0,J.jsxs)(`p`,{className:`mt-2 text-sm text-ink-2`,children:[`Write or paste raw test notes. The AI runs `,(0,J.jsx)(`code`,{children:`/make-case`}),`: it turns them into English steps, marks the steps that write data or send email, keeps your original lines in each case's Source table, and writes`,` `,(0,J.jsx)(`code`,{children:`cases/*.md`}),`. It never writes specs; use `,(0,J.jsx)(`b`,{children:`Generate spec`}),` on a case for that.`]})]}),(0,J.jsx)(`textarea`,{value:e,onChange:e=>t(e.target.value),placeholder:fK,spellCheck:!1,className:`${hf} min-h-48 flex-1 resize-none font-mono leading-relaxed`}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-xs ${c?`text-seal-deep`:`text-ink-3`}`,children:[e.length.toLocaleString(),` / `,Zd.toLocaleString(),` characters`]}),(0,J.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,J.jsx)(`button`,{className:mf(),disabled:e===``,onClick:()=>t(``),children:`Clear`}),(0,J.jsx)(`button`,{className:mf(),disabled:s,title:`Copy the memo to paste after /make-case in an interactive session`,onClick:()=>{navigator.clipboard.writeText(`/make-case ${e}`).then(()=>{i(!0),setTimeout(()=>i(!1),1200)})},children:r?`Copied`:`Copy /make-case`}),(0,J.jsxs)(`button`,{className:`${mf(`success`)} gap-1.5`,disabled:s||c||o,title:o?`A make-case run is already in progress`:`Run: ${ef(n,`.tmp/memos/<memo>.md`)}`,onClick:()=>void a({action:`make-cases`,tool:n,memo:e}),children:[(0,J.jsx)(id,{size:14,"aria-hidden":`true`}),o?`Running`:`Make cases`]})]})]}),(0,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[(0,J.jsx)(`b`,{children:`Make cases`}),` saves the memo to `,(0,J.jsx)(`code`,{children:`.tmp/memos/`}),` (git-ignored) and runs the command in the Jobs bar. A one-shot run cannot answer questions: gaps get the suggested default as a sentence with a `,(0,J.jsx)(`code`,{children:`TODO`}),` block under it, no page is opened and existing cases are never overwritten. For the full dialogue (questions first; it never opens a browser) use `,(0,J.jsx)(`b`,{children:`Copy /make-case`}),` and paste it into `,l,`. When the run ends, review the new cases in the list, delete the `,(0,J.jsx)(`code`,{children:`TODO`}),` blocks you accept or fill in `,(0,J.jsx)(`code`,{children:`Answer:`}),`, then run `,(0,J.jsx)(`code`,{children:`/explore-case`}),`.`]})]})}function mK(e,t,n){let r=t.trim(),i=r===``||RG(r),a=new Set;return e.split(/[\s,]+/).filter(Boolean).map(e=>{let t=e.includes(`/`)?e:VG(r||null,e),o=null;return!e.includes(`/`)&&!i?o=`invalid folder`:zG(t)?t===HG?o=`reserved name`:n.has(t)?o=`already exists`:a.has(t)&&(o=`listed twice`):o=`use lowercase words with dashes`,a.add(t),{raw:e,id:t,problem:o}})}function hK({caseId:e,onCreated:t}){let n=ht(),r=Eo(),[i,a]=Cd(`cases-new-open`,!0,Td),[o,s]=(0,q.useState)(``),[c,l]=(0,q.useState)(``),u=Nc(),d=(0,q.useMemo)(()=>new Set(u.data?.map(e=>e.id)),[u.data]),f=(0,q.useMemo)(()=>mK(o,c,d),[o,c,d]),p=f.filter(e=>e.problem!==null).length,m=c.trim()===``||RG(c.trim()),h=e===HG,g=Hn({mutationFn:async e=>{let t=[],n=[];for(let r of e)try{await sc.createCase(r),t.push(r)}catch(e){n.push({id:r,message:e.message})}return{created:t,failed:n}},onSuccess:({created:e,failed:r})=>{n.invalidateQueries({queryKey:Ac.cases}),n.invalidateQueries({queryKey:Ac.info}),s(r.map(e=>e.id).join(`
|
|
285
|
-
`)),e.length>0&&t(e[0])}}),_=f.length>0&&p===0&&!g.isPending,v=()=>{_&&g.mutate(f.map(e=>e.id))},y=e=>`flex flex-1 items-center justify-center gap-1.5 px-3 py-1.5 text-sm transition-colors ${e?`bg-theme-btn text-white`:`bg-card text-ink-2 hover:bg-warm`}`;return(0,J.jsxs)(`div`,{children:[(0,J.jsx)(vK,{icon:(0,J.jsx)(Hu,{size:14,"aria-hidden":`true`}),label:`New cases`,open:i,onToggle:()=>a(!i)}),(0,J.jsx)(Od,{open:i,children:(0,J.jsxs)(`div`,{className:`space-y-2 border-b border-line-mid bg-card p-3`,children:[(0,J.jsxs)(`div`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid`,children:[(0,J.jsxs)(`button`,{type:`button`,className:y(!h),"aria-pressed":!h,onClick:()=>h&&r(`/cases`),children:[(0,J.jsx)(mu,{size:14,"aria-hidden":`true`}),`By name`]}),(0,J.jsxs)(Ks,{to:`/cases/memo`,className:y(h),"aria-current":h?`page`:void 0,children:[(0,J.jsx)(Ql,{size:14,"aria-hidden":`true`}),`From memo`]})]}),h?(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Write or paste your notes in the editor on the right, then click Make cases.`}):(0,J.jsxs)(`form`,{className:`space-y-2`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,J.jsx)(`textarea`,{value:o,onChange:e=>{s(e.target.value),g.data&&g.reset()},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())},rows:Math.min(8,Math.max(3,o.split(`
|
|
286
|
-
`).length+1)),placeholder:`header-logo
|
|
287
|
-
footer-links`,"aria-label":`Case names, one per line`,spellCheck:!1,className:`w-full resize-none ${hf} py-1 font-mono`}),(0,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`One name per line. `,(0,J.jsx)(`code`,{children:`folder/name`}),` overrides the folder below.`]}),f.length>0?(0,J.jsx)(`ul`,{className:`max-h-28 space-y-0.5 overflow-auto text-xs`,children:f.map((e,t)=>(0,J.jsxs)(`li`,{className:`flex items-center gap-1.5`,title:`cases/${e.id}.md`,children:[e.problem?(0,J.jsx)(Kc,{size:14,className:`shrink-0 text-seal-deep`,"aria-hidden":`true`}):(0,J.jsx)(cl,{size:14,className:`shrink-0 text-jade-btn`,"aria-hidden":`true`}),(0,J.jsx)(`span`,{className:`min-w-0 truncate font-mono`,children:e.id}),e.problem?(0,J.jsx)(`span`,{className:`ml-auto shrink-0 text-seal-deep`,children:e.problem}):null]},t))}):null,(0,J.jsxs)(`div`,{className:`flex gap-2`,children:[(0,J.jsx)(`input`,{value:c,onChange:e=>l(e.target.value),list:tK,placeholder:`folder`,"aria-label":`Folder (optional)`,title:`Folder for names without one (optional)`,className:`min-w-0 flex-1 ${hf} py-1 font-mono ${m?``:`border-seal`}`}),(0,J.jsx)(`button`,{className:`${mf(`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,J.jsx)(`ul`,{className:`space-y-0.5 text-xs text-seal-deep`,children:g.data.failed.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(`code`,{children:e.id}),`: `,e.message]},e.id))}):null]})]})})]})}function gK(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 _K(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(`
|
|
288
|
-
`).toLowerCase();return n.every(e=>r.includes(e))}function vK({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,J.jsxs)(J.Fragment,{children:[e,(0,J.jsx)(`span`,{className:`eyebrow text-sm font-bold`,children:t}),n?(0,J.jsx)(`span`,{className:`ml-auto text-xs text-white/75`,children:n}):null,i?(0,J.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,J.jsx)(wl,{size:16,className:`transition-transform duration-200 motion-reduce:transition-none ${r?``:`rotate-180`}`})}):null]});return i?(0,J.jsx)(`button`,{className:`${a} group`,onClick:i,"aria-expanded":r,children:o}):(0,J.jsx)(`h2`,{className:a,children:o})}function yK({value:e,onChange:t}){return(0,J.jsxs)(`div`,{className:`relative border-b border-line-mid bg-card p-2`,children:[(0,J.jsx)(ed,{size:14,className:`pointer-events-none absolute top-1/2 left-5 -translate-y-1/2 text-ink-3`,"aria-hidden":`true`}),(0,J.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 ${hf} [&::-webkit-search-cancel-button]:hidden`}),e?(0,J.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,J.jsx)(bd,{size:14,"aria-hidden":`true`})}):null]})}function bK(){let e=Ao()[`*`]||void 0,t=Eo(),n=Nc(),[r,i]=(0,q.useState)(``),[a,o]=(0,q.useState)(``),s=a.trim()!==``,c=(0,q.useMemo)(()=>(n.data??[]).filter(e=>_K(e,a)),[n.data,a]),l=(0,q.useMemo)(()=>gK(c),[c]),[u,d]=Cd(`asrun-ui.cases.sidebar-width`,UG,Ed),[f,p]=(0,q.useState)(new Set),m=e=>p(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n});return(0,J.jsxs)(`div`,{className:`flex h-full min-h-0`,children:[(0,J.jsxs)(`aside`,{className:`flex shrink-0 flex-col bg-card`,style:{width:xd(u,WG,GG)},children:[(0,J.jsx)(`h1`,{className:`eyebrow border-l-4 border-theme px-3 py-3 text-sm font-bold`,children:`Cases`}),(0,J.jsx)(hK,{caseId:e,onCreated:e=>t(`/cases/${e}`)}),(0,J.jsx)(nK,{}),(0,J.jsx)(vK,{icon:(0,J.jsx)(mu,{size:14,"aria-hidden":`true`}),label:`Case list`,aside:s?`${c.length} / ${n.data?.length??0}`:n.data?.length??0}),(0,J.jsx)(yK,{value:a,onChange:o}),(0,J.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-auto`,children:[l.map(n=>(0,J.jsxs)(`div`,{children:[n.group===null?null:(0,J.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,J.jsx)(fl,{size:14,className:`transition-transform duration-200 motion-reduce:transition-none ${!s&&f.has(n.group)?`-rotate-90`:``}`,"aria-hidden":`true`}),(0,J.jsx)(nu,{size:14,"aria-hidden":`true`}),(0,J.jsx)(`span`,{className:`font-mono`,children:n.group}),(0,J.jsx)(`span`,{className:`ml-auto text-ink-3`,children:n.items.length})]}),(0,J.jsx)(Od,{open:n.group===null||s||!f.has(n.group),children:(0,J.jsx)(`ul`,{children:n.items.map(r=>(0,J.jsxs)(`li`,{className:`relative`,children:[(0,J.jsxs)(Ks,{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,J.jsx)(`div`,{className:`font-mono text-sm`,children:BG(r.id).name}),r.title?(0,J.jsx)(`div`,{className:`truncate text-xs text-ink-2`,children:r.title}):null,(0,J.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-1`,children:[r.writes.length>0?(0,J.jsx)(sf,{title:r.writesNote??void 0}):null,r.suites.map(e=>(0,J.jsx)(rf,{tone:`blue`,children:e},e)),r.problem?(0,J.jsx)(rf,{tone:`red`,children:`invalid front matter`}):null,r.login?(0,J.jsxs)(rf,{tone:`gray`,children:[`login: `,r.login]}):null,(0,J.jsx)(rf,{tone:r.hasSpec?`green`:`amber`,children:r.hasSpec?`has spec`:`no spec`})]}),(0,J.jsx)(`div`,{className:`mt-1 text-xs text-ink-3`,children:yf(r.updatedAt)})]}),r.hasSpec?(0,J.jsx)(`button`,{className:`absolute top-2 left-2 rounded p-0.5 text-jade-deep hover:text-jade-btn focus-visible:ring-2 focus-visible:ring-theme/25 focus-visible:outline-none`,"aria-label":`Run case ${r.id}`,title:`Run ${r.id} on the Run tests page`,onClick:()=>t(`/run`,{state:{case:r.id}}),children:(0,J.jsx)(Ru,{size:14,"aria-hidden":`true`})}):null]},r.id))})})]},n.group??``)),n.isSuccess&&n.data.length===0?(0,J.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,J.jsxs)(`p`,{className:`p-4 text-sm text-ink-2`,children:[`No cases match "`,a.trim(),`".`]}):null]})]}),(0,J.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=xd(u,WG,GG);Sd(e,e=>d(xd(t+e,WG,GG)))},onDoubleClick:()=>d(UG)}),(0,J.jsx)(`section`,{className:`min-w-0 flex-1`,children:e===HG?(0,J.jsx)(pK,{memo:r,setMemo:i}):e?(0,J.jsx)(dK,{id:e},e):(0,J.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 xK=[{command:`explore-case`,title:`Explore a case`,description:`Checks a case against the profiles and the real pages, fixes wording, writes what it saw into the case (including the literal values a check asserts, under "## Values") and turns what it cannot know into TODO blocks (a suggested sentence plus an empty Answer: line). It edits only the case file. The agent only reads: it never writes data. It opens pages in the environment you choose. With Attended ticked (the default; you stay at the computer), for the steps that write data or need a choice (an existing document, items), the browser window shows a small card (draggable, minimizable, with click-to-copy for texts you must type and a Done button) while the agent waits for you. What you did is saved in the case under "## Inputs" as a general recipe (positions, not names). Generate the spec afterwards: it stops and asks for this step when an input step has no recipe.`},{command:`gen-spec`,title:`Generate the spec`,description:`Replays the case on the real pages with your saved sessions (it never writes data), writes tests/<id>.spec.ts and completes the case's "## Values" for the profiles it explored. An existing spec is left alone unless you add --force (the Cases page asks you before it overwrites). It does not run the test (running is a separate step, on the Run page). It does not stop to ask: observed values are written into the case for QA to confirm, open questions stay in the case as TODO blocks. Needs an environment. Log in the profiles first (Profiles page).`},{command:`heal-spec`,title:`Heal a failing spec`,description:`When a test fails after a product change. The agent first reads the last report of the case (what failed, in which step, the error, the screenshots) and runs the case again only when the report is missing, out of date or not enough. It decides whether the test needs an update or whether it found a real problem. It only runs profiles that are logged in. Optionally add clues with --hints <file> (the Cases page asks for them in a dialog and lets you pick the profiles). Needs an environment.`}];function SK(){let e=jc(),[t,n]=Xs(),[r]=Xf(),i=e.data?.caseIds.filter(e=>!e.startsWith(`_`))??[],a=t.get(`case`),o=a&&i.includes(a)?a:i[0]??`<case-id>`,s=`<env>`;return(0,J.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h1`,{className:`font-serif text-2xl font-bold tracking-wide border-l-4 border-theme pl-3`,children:`AI commands`}),(0,J.jsxs)(`p`,{className:`mt-2 text-sm text-ink-2`,children:[`Copy a command and run it in a terminal in `,(0,J.jsx)(`code`,{className:`text-xs`,children:e.data?.root??`the workspace folder`}),`. The commands live in `,(0,J.jsx)(`code`,{children:`.claude/commands`}),`, shared by Claude Code and OpenCode.`]})]}),(0,J.jsx)(`div`,{className:`flex flex-wrap items-center gap-6 card-paper p-4`,children:(0,J.jsxs)(`label`,{className:`text-sm`,children:[(0,J.jsx)(`span`,{className:`mr-2 text-ink-2`,children:`Case`}),(0,J.jsxs)(vf,{value:o,onChange:e=>n({case:e.target.value}),mono:!0,children:[i.length===0?(0,J.jsx)(`option`,{children:`<case-id>`}):null,i.map(e=>(0,J.jsx)(`option`,{value:e,children:e},e))]})]})}),(0,J.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,J.jsxs)(`h2`,{className:`font-serif text-base font-bold`,children:[`Start from raw notes `,(0,J.jsx)(`code`,{className:`ml-1 text-sm font-normal text-ink-2`,children:`/make-case`})]}),(0,J.jsx)(`p`,{className:`mt-1 mb-3 text-sm text-ink-2`,children:`Have a memo, a list of things to check, or a pasted chat instead of a case? The agent cleans it up, marks the steps that write data or send email, asks you about the gaps, and then writes the case files. It does not write specs; run the steps below for that. Use the interactive mode: it asks you questions before it writes anything.`}),(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsxs)(`div`,{className:`text-xs font-medium text-ink-2`,children:[`Interactive: start `,(0,J.jsx)(`code`,{children:r===`claude`?`claude`:`opencode`}),`, then type (a file path, or the text itself)`]}),(0,J.jsx)(np,{text:`/make-case path/to/notes.md`})]})]}),(0,J.jsx)(`ol`,{className:`space-y-5`,children:xK.map((e,t)=>(0,J.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,J.jsxs)(`h2`,{className:`font-serif text-base font-bold`,children:[t+1,`. `,e.title,` `,(0,J.jsxs)(`code`,{className:`ml-1 text-sm font-normal text-ink-2`,children:[`/`,e.command]})]}),(0,J.jsx)(`p`,{className:`mt-1 mb-3 text-sm text-ink-2`,children:e.description}),(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsxs)(`div`,{className:`text-xs font-medium text-ink-2`,children:[`Interactive: start `,(0,J.jsx)(`code`,{children:r===`claude`?`claude`:`opencode`}),`, then type`]}),(0,J.jsx)(np,{text:Id(e.command,o,{env:s})}),(0,J.jsx)(`div`,{className:`pt-1 text-xs font-medium text-ink-2`,children:`One-shot, from the shell`}),(0,J.jsx)(np,{text:qd(r,e.command,o,{env:s})})]})]},e.command))}),(0,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`One-shot mode cannot ask you for permission, so the commands allow up front what the agent needs`,r===`claude`?(0,J.jsxs)(J.Fragment,{children:[` `,`(`,(0,J.jsx)(`code`,{children:`--allowedTools`}),`, limited to the folders the command may change) and never allow`,` `,(0,J.jsx)(`code`,{children:`--allow-writes`}),`.`]}):(0,J.jsxs)(J.Fragment,{children:[` `,`(`,(0,J.jsx)(`code`,{children:`--auto`}),`).`]}),` `,(0,J.jsx)(`code`,{children:`<env>`}),` selects the profiles whose environment it is (e.g. `,(0,J.jsx)(`code`,{children:`production`}),` or `,(0,J.jsx)(`code`,{children:`staging`}),`); there is no default. A one-shot run never stops to ask: open questions are written into the case file as `,(0,J.jsx)(`code`,{children:`TODO`}),` blocks under a suggested sentence and the run ends with `,(0,J.jsx)(`code`,{children:`RESULT: ready`}),` or `,(0,J.jsx)(`code`,{children:`RESULT: needs-input`}),`. In the case file, delete a block to accept the suggestion or write your own answer after `,(0,J.jsx)(`code`,{children:`Answer:`}),`; or answer in the job's answer box, or use the interactive mode to approve each step and talk to the agent.`]}),(0,J.jsx)(tp,{})]})}var CK=[{title:`Install and start`,command:`pnpm go`,todo:[(0,J.jsxs)(J.Fragment,{children:[`Open a terminal in the `,(0,J.jsx)(`code`,{children:`asrun`}),` workspace and run the command above. It installs everything, starts this UI and opens it in your browser.`]}),(0,J.jsx)(J.Fragment,{children:`Next time, run the same command again. It takes a few seconds.`})],note:(0,J.jsxs)(J.Fragment,{children:[`You need `,(0,J.jsx)(`b`,{children:`Node 22+`}),` and `,(0,J.jsx)(`b`,{children:`pnpm`}),`. For steps 2 to 4 you also need `,(0,J.jsx)(`b`,{children:`Claude Code`}),` or `,(0,J.jsx)(`b`,{children:`OpenCode`}),` `,`installed (any one of them). Choose which one the UI uses with the switch in the top bar.`]})},{title:`Log in the profiles`,to:`/profiles`,where:`Profiles`,todo:[(0,J.jsxs)(J.Fragment,{children:[`Click `,(0,J.jsx)(`b`,{children:`Login`}),` on a row. A browser window opens.`]}),(0,J.jsx)(J.Fragment,{children:`Log in yourself (2FA included), wait for the home page.`}),(0,J.jsxs)(J.Fragment,{children:[`Click `,(0,J.jsx)(`b`,{children:`I've logged in, save the session`}),` in the Jobs bar at the bottom. The row turns green.`]})],note:(0,J.jsxs)(J.Fragment,{children:[`Start with `,(0,J.jsx)(`b`,{children:`STAGING`}),`. Nothing is ever automated here, and the saved login is as sensitive as a password.`]})},{title:`Make cases from your test memo`,to:`/cases/memo`,where:`Cases > From memo`,todo:[(0,J.jsx)(J.Fragment,{children:`Paste your notes as they are: a list of things to check is enough.`}),(0,J.jsxs)(J.Fragment,{children:[`Click `,(0,J.jsx)(`b`,{children:`Make cases`}),`. New case files appear in the list on the left.`]})]},{title:`Explore the cases`,to:`/cases`,where:`Cases`,todo:[(0,J.jsx)(J.Fragment,{children:`Open a case in the list.`}),(0,J.jsxs)(J.Fragment,{children:[`In the toolbar choose `,(0,J.jsx)(`b`,{children:`Explore case`}),`, pick an environment in `,(0,J.jsx)(`b`,{children:`Environment`}),`, click `,(0,J.jsx)(`b`,{children:`Run AI`}),`. `,(0,J.jsx)(`b`,{children:`Attended`}),` is ticked by default: the browser opens and you do the steps that create or edit data while the agent waits. Untick it when nobody is at the computer.`]}),(0,J.jsxs)(J.Fragment,{children:[`When it ends with `,(0,J.jsx)(`b`,{children:`Needs your input`}),`, answer the questions in the box under the output, or send`,` `,(0,J.jsx)(`i`,{children:`Use the suggested defaults`}),`. In the case file, delete a `,(0,J.jsx)(`code`,{children:`TODO`}),` block to accept the sentence above it, or type your own answer after `,(0,J.jsx)(`code`,{children:`Answer:`}),`.`]})],note:(0,J.jsx)(J.Fragment,{children:`Skip this step if the case is already clear. The reviewer only edits the case file.`})},{title:`Generate the specs`,to:`/cases`,where:`Cases`,todo:[(0,J.jsxs)(J.Fragment,{children:[`Same toolbar: choose `,(0,J.jsx)(`b`,{children:`Generate spec`}),`, pick the environment (`,(0,J.jsx)(`b`,{children:`staging`}),` while you are trying things out), click `,(0,J.jsx)(`b`,{children:`Run AI`}),`.`]}),(0,J.jsx)(J.Fragment,{children:`It needs the profiles to be logged in (step 1). It writes the test but does not run it.`})],note:(0,J.jsxs)(J.Fragment,{children:[`An existing spec is never overwritten without asking. Use the `,(0,J.jsx)(`span`,{className:`font-mono`,children:`Spec`}),` view of a case to read or edit what was generated, open it in your default editor, or copy its full path.`]})},{title:`Run the specs`,to:`/run`,where:`Run tests`,todo:[(0,J.jsx)(J.Fragment,{children:`Choose the environment, tick the profiles.`}),(0,J.jsxs)(J.Fragment,{children:[`Check the `,(0,J.jsx)(`b`,{children:`Cases to run`}),` list under the filters: it shows which cases the filters select and how many. If it is empty, the search term is wrong and the run button stays disabled.`]}),(0,J.jsxs)(J.Fragment,{children:[`Only if a screenshot baseline is wrong or a profile really changed its logo: tick `,(0,J.jsx)(`b`,{children:`Update baselines`}),` on that case. Nothing is ticked by default. Fix the spec first; a wrong check only makes a new wrong image.`]}),(0,J.jsxs)(J.Fragment,{children:[`Click `,(0,J.jsx)(`b`,{children:`Run tests`}),`. The output streams in the Jobs bar. After a baseline update the job shows each new image next to what it must show.`]})],note:(0,J.jsxs)(J.Fragment,{children:[`Tests only look by default. A case lists the environments it may write in; elsewhere it is skipped with a notice. In `,(0,J.jsx)(`b`,{children:`PRODUCTION`}),` a case that writes test data also asks you to confirm first.`]})},{title:`Check the reports`,to:`/reports`,where:`Reports`,todo:[(0,J.jsx)(J.Fragment,{children:`The latest run opens first. Failed cases are on top.`}),(0,J.jsxs)(J.Fragment,{children:[`Click a case: a red `,(0,J.jsx)(`b`,{children:`Why it failed`}),` block shows the step and the error, with screenshot and video below.`]}),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`b`,{children:`Full Playwright report`}),` has the traces for a closer look.`]})],note:(0,J.jsxs)(J.Fragment,{children:[`A test fails after a product change? Use `,(0,J.jsx)(`b`,{children:`Heal spec`}),` in the Cases toolbar.`]})}];function wK(){return(0,J.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h1`,{className:`font-serif text-2xl font-bold tracking-wide border-l-4 border-theme pl-3`,children:`How to start`}),(0,J.jsx)(`p`,{className:`mt-2 text-sm text-ink-2`,children:`Write what to check in plain words. The AI turns it into tests, the tool runs them for every profile and shows you the result. Seven short steps, each one on one page of this UI.`})]}),(0,J.jsx)(`ol`,{className:`space-y-5`,children:CK.map((e,t)=>(0,J.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(`span`,{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-sm bg-theme-btn font-serif font-bold text-white shadow-btn`,children:t}),(0,J.jsx)(`h2`,{className:`font-serif text-lg font-bold`,children:e.title}),e.to?(0,J.jsxs)(Ks,{to:e.to,className:`${mf()} ml-auto gap-1.5`,children:[e.where,(0,J.jsx)(Xc,{size:14,"aria-hidden":`true`})]}):null]}),e.command?(0,J.jsx)(`div`,{className:`mt-3`,children:(0,J.jsx)(np,{text:e.command})}):null,(0,J.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,J.jsx)(`li`,{children:e},t))}),e.image?(0,J.jsx)(`img`,{src:e.image.src,alt:e.image.alt,loading:`lazy`,className:`mt-3 w-full rounded border border-line-mid shadow-paper`}):null,e.note?(0,J.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,J.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`More detail: `,(0,J.jsx)(Ks,{to:`/guide`,className:`text-qing-deep underline`,children:`AI guide`}),` (the same AI commands, to copy into a terminal) and `,(0,J.jsx)(`code`,{children:`README.md`}),`.`]}),(0,J.jsx)(tp,{})]})}var TK=`data-tip`,EK=`:is(button, input, select, textarea):disabled:is([title], [${TK}])`,DK={theme:`tip`,placement:`top`,arrow:!0,maxWidth:320,offset:[0,8],touch:!1,appendTo:()=>document.body};function OK(e){let t=document.createElement(`div`);t.className=`tip-body`;for(let n of e.split(`
|
|
289
|
-
`)){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 kK(e){let t=e.getAttribute(`title`);return t!==null&&(e.setAttribute(TK,t),e.removeAttribute(`title`)),e.getAttribute(TK)??``}function AK(){QW(document.body,{...DK,target:`[title]:not(iframe):not(:disabled), [${TK}]:not(:disabled)`,delay:[300,0],onTrigger:e=>{kK(e.reference)},onShow:e=>{let t=kK(e.reference);if(t===``)return!1;e.setContent(OK(t))}});let e=document.createElement(`span`),t=null,n=YW(e,{...DK,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(EK)].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=kK(s);e!==``&&(t=s.getBoundingClientRect(),n.setContent(OK(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 jK(){let{jobId:e}=Ao(),t=Fc(),n=Eo(),{startError:r,clearStartError:i,markSeen:a}=zc(),o=t.data?.find(t=>t.id===e)??null;return Sc(e??null,a,t.data),(0,J.jsxs)(`div`,{"data-theme":`dai`,className:`flex h-full flex-col text-ink`,children:[(0,J.jsxs)(`header`,{className:`flex items-center gap-4 border-b-2 border-ink bg-paper px-4 py-2 shadow-paper`,children:[(0,J.jsx)(`span`,{className:`seal`,children:`A`}),(0,J.jsx)(`span`,{className:`font-serif font-bold tracking-widest`,children:wc}),(0,J.jsx)(Ks,{to:`/run`,className:`ml-auto text-sm text-ink-2 hover:text-ink`,children:`Back to the app`})]}),r?(0,J.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,J.jsx)(`span`,{children:r}),(0,J.jsx)(`button`,{className:`ml-auto text-xs underline`,onClick:i,children:`dismiss`})]}):null,o?(0,J.jsx)(Mf,{job:o,openJob:e=>n(`/jobs/${e}`)},o.id):(0,J.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 MK({request:e,label:t,description:n,disabledReason:r}){let{startJob:i}=zc(),a=Fc().data?.some(e=>e.kind===`run`&&e.status===`running`)??!1,[o,s]=(0,q.useState)(null),[c,l]=(0,q.useState)(!1),u=Hn({mutationFn:async()=>{let t=await sc.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,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`button`,{className:`${mf(`success`)} gap-1.5`,disabled:!!r||a||u.isPending,title:r?`# Cannot run again\n${r}`:a?`# A run is in progress
|
|
290
|
-
Wait for it to finish, or stop it in the jobs drawer.`:`# ${t}\n${n}`,onClick:()=>u.mutate(),children:[(0,J.jsx)(Xu,{size:14,"aria-hidden":`true`}),t]}),u.isError?(0,J.jsx)(`span`,{className:`text-xs text-seal-deep`,children:u.error.message}):null,o?(0,J.jsxs)(YN,{title:`Cases that write data in ${o.preview.env.toUpperCase()}`,onClose:()=>s(null),children:[(0,J.jsx)(`ul`,{className:`mb-3 max-h-64 space-y-2 overflow-auto text-sm`,children:o.preview.writeCases.map(e=>(0,J.jsxs)(`li`,{className:`rounded-sm border border-seal/30 bg-seal-bg p-2`,children:[(0,J.jsx)(`div`,{className:`font-mono`,children:e.id}),(0,J.jsx)(`div`,{className:`text-ink-2`,children:e.note}),(0,J.jsxs)(`div`,{className:`text-xs text-ink-2`,children:[`Accounts: `,e.profiles.join(`, `)]})]},e.id))}),(0,J.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,J.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,J.jsxs)(`label`,{className:`mb-4 flex items-center gap-2 text-sm`,children:[(0,J.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(),`.`]}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{className:mf(),onClick:()=>s(null),children:`Cancel`}),(0,J.jsxs)(`button`,{className:mf(`danger`),disabled:!c,onClick:()=>{let e={...o.request,confirmWritesIn:o.preview.env};s(null),i(e)},children:[`Run in `,o.preview.env.toUpperCase()]})]})]}):null]})}var NK=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),PK=e=>`(?:^|\\s)${NK(e)}\\.spec\\.ts`,FK={passed:{tone:`green`,label:`Passed`},failed:{tone:`red`,label:`Failed`},flaky:{tone:`amber`,label:`Flaky`},skipped:{tone:`gray`,label:`Skipped`}},IK={failed:0,flaky:1,skipped:2,passed:3},LK=({status:e})=>(0,J.jsx)(rf,{tone:FK[e].tone,children:FK[e].label}),RK=e=>e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`,zK=e=>{let t=e.errors[0];return t?t.headline:null};function BK({result:e,action:t}){let[n,...r]=e.errors;if(!n)return null;let i=e.status===`flaky`;return(0,J.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,J.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-2`,children:[(0,J.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,J.jsxs)(`div`,{className:`mt-1 text-sm`,children:[(0,J.jsx)(`span`,{className:`font-medium`,children:`Step:`}),` `,e.failedStep]}):null,(0,J.jsx)(`p`,{className:`mt-2 text-base font-semibold break-words whitespace-pre-wrap`,children:n.headline}),n.context?(0,J.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,J.jsx)(`ul`,{className:`mt-3 list-disc space-y-1 pl-5 text-sm`,children:r.map((e,t)=>(0,J.jsx)(`li`,{className:`break-words whitespace-pre-wrap`,children:e.headline},t))}):null]})}function VK({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,J.jsxs)(`details`,{className:`card-paper`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer px-4 py-2 text-sm font-medium text-ink`,children:`Technical details (for developers)`}),(0,J.jsx)(`div`,{className:`space-y-3 border-t border-line-mid p-4`,children:t.map(e=>(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`div`,{className:`mb-1 text-xs font-semibold tracking-widest text-ink-2 uppercase`,children:e.label}),(0,J.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 HK=/is not logged in to/,UK=e=>e.errors.some(e=>HK.test(e.headline));function WK({runId:e,result:t,env:n}){let[r,i]=(0,q.useState)(!1),[a]=Xf(),o=jc().data?.caseIds.includes(t.caseId)??!1;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`button`,{className:`${mf(`danger`)} gap-1.5`,disabled:!o,title:o?`# Heal this failure
|
|
291
|
-
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
|
|
292
|
-
The case file of this result no longer exists.`,onClick:()=>i(!0),children:[(0,J.jsx)(cd,{size:14,"aria-hidden":`true`}),`Heal this failure`]}),r?(0,J.jsx)($N,{caseId:t.caseId,env:n,tool:a,report:e,initialProfile:t.profile,onClose:()=>i(!1)}):null]})}function GK({result:e,env:t,settings:n}){let r=n?.readOnly??!1,i=n?.stepText??!1;return(0,J.jsx)(MK,{label:`Re-run`,request:{action:`run`,env:t,profiles:[e.profile],grep:PK(e.caseId),stepText:i||void 0,readOnly:r||void 0},description:`Runs ${e.caseId} for ${e.profile} in ${t.toUpperCase()} again, with the settings of this report${r?` (read-only)`:``}${i?` (step text on the videos)`:``}.`})}function KK({runId:e,result:t,runEnv:n,settings:r}){let i=`/report-files/${e}/`,a=t.env??n??`production`,o=t.status===`failed`||t.status===`flaky`,s=jc().data?.caseIds.includes(t.caseId)??!1;return(0,J.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(`h2`,{className:`font-mono text-base font-bold`,children:t.caseId}),(0,J.jsx)(rf,{tone:`gray`,children:t.profile}),(0,J.jsx)(of,{env:t.env??n}),t.writes?(0,J.jsx)(sf,{}):null,(0,J.jsx)(LK,{status:t.status})]}),(0,J.jsx)(`p`,{className:`mt-1 text-sm text-ink-2`,children:t.title}),(0,J.jsxs)(`p`,{className:`mt-1 text-xs text-ink-2`,children:[RK(t.durationMs),t.attempts>1?`, ran ${t.attempts} times`:``]})]}),(0,J.jsx)(BK,{result:t,action:o&&!UK(t)?(0,J.jsx)(WK,{runId:e,result:t,env:a}):null}),t.screenshots.length>0||t.videos.length>0||t.video?(0,J.jsxs)(`div`,{className:`flex flex-wrap items-start gap-3`,children:[t.screenshots.map(e=>(0,J.jsx)(`a`,{href:i+e,target:`_blank`,rel:`noreferrer`,children:(0,J.jsx)(`img`,{src:i+e,alt:`Screenshot`,className:`max-h-56 rounded border border-line-mid shadow-paper`})},e)),(t.video?[t.video]:t.videos).map(e=>(0,J.jsx)(`video`,{src:i+e,controls:!0,className:`max-h-56 rounded border border-line-mid shadow-paper`},e))]}):null,(0,J.jsx)(VK,{result:t}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(GK,{result:t,env:a,settings:r}),s?(0,J.jsxs)(Ks,{className:`${mf()} gap-1.5`,to:`/cases/${t.caseId}`,title:`Open this case in the Cases page`,children:[(0,J.jsx)(Xc,{size:14,"aria-hidden":`true`}),`Go to the case`]}):(0,J.jsxs)(`span`,{className:`${mf()} gap-1.5`,"aria-disabled":`true`,title:`# Case not found\\nThe case file of this result no longer exists.`,children:[(0,J.jsx)(Xc,{size:14,"aria-hidden":`true`}),`Go to the case`]}),(0,J.jsx)(`a`,{className:mf(),href:`${i}#?testId=${t.testId}`,target:`_blank`,rel:`noreferrer`,children:`Open in the Playwright report (trace)`})]})]})}var qK={failed:`The run failed`,timedout:`The run timed out`,interrupted:`The run was interrupted`};function JK({summary:e}){let t=e.errors??[],n=e.status,r=n!==void 0&&n!==`passed`&&e.counts.failed===0;return t.length===0&&!r?null:(0,J.jsxs)(`div`,{className:`border-b border-seal/40 border-l-4 border-l-seal bg-seal-bg px-4 py-3 text-ink`,children:[(0,J.jsx)(`div`,{className:`text-xs font-semibold tracking-wide uppercase`,children:(n&&qK[n])??`The run failed`}),t.length===0?(0,J.jsx)(`p`,{className:`mt-1 text-sm`,children:`No test reported a failure and no error was recorded. Check the terminal output of the run.`}):(0,J.jsx)(`ul`,{className:`mt-2 space-y-3`,children:t.map((e,t)=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold break-words whitespace-pre-wrap`,children:e.headline}),e.context||e.snippet||e.stack?(0,J.jsxs)(`details`,{className:`mt-1`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer text-xs text-seal-deep`,children:`Details`}),(0,J.jsx)(`pre`,{className:`mt-1 max-h-64 overflow-auto rounded bg-white/70 p-2 font-mono text-xs break-words whitespace-pre-wrap`,children:[e.context,e.snippet,e.stack].filter(Boolean).join(`
|
|
293
|
-
|
|
294
|
-
`)})]}):null]},t))})]})}function YK({summary:e}){let t=e.leftovers??[];return t.length===0?null:(0,J.jsxs)(`div`,{className:`border-b border-seal/40 border-l-4 border-l-seal bg-seal-bg px-4 py-3 text-ink`,children:[(0,J.jsxs)(`div`,{className:`text-xs font-semibold tracking-wide uppercase`,children:[`Test data left behind: delete it by hand (`,t.length,`)`]}),(0,J.jsx)(`ul`,{className:`mt-2 space-y-1 text-sm`,children:t.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(`span`,{className:`font-mono`,children:e.profile}),` `,(0,J.jsx)(of,{env:e.env}),` `,e.kind,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:e.name}),e.where?(0,J.jsxs)(`span`,{className:`text-ink-2`,children:[` (look in `,e.where,`)`]}):null]},`${e.runId}-${e.profile}-${e.id}-${e.caseId}`))}),(0,J.jsxs)(`p`,{className:`mt-2 text-xs text-ink-2`,children:[`Afterwards run `,(0,J.jsxs)(`code`,{children:[`pnpm cleanup --env `,t[0].env,` --forget`]}),`.`]})]})}function XK({runId:e,onShowReport:t}){let n=Ic(e),[r,i]=(0,q.useState)(!0),[a,o]=(0,q.useState)(null),s=(0,q.useMemo)(()=>[...n.data?.results??[]].sort((e,t)=>IK[e.status]-IK[t.status]||e.caseId.localeCompare(t.caseId)||e.profile.localeCompare(t.profile)),[n.data]);if(n.isLoading)return(0,J.jsx)(`p`,{className:`p-6 text-sm text-ink-2`,children:`Loading...`});if(n.isError||!n.data)return(0,J.jsxs)(`div`,{className:`p-6 text-sm text-ink-2`,children:[(0,J.jsx)(`p`,{children:`This run has no summary (it was made before summaries existed).`}),(0,J.jsx)(`button`,{className:`${mf()} mt-3`,onClick:t,children:`Show the full Playwright report`})]});let{counts:c}=n.data,l=n.data.env??null,u=s.filter(e=>e.status===`failed`||e.status===`flaky`),d=r&&u.length>0?u:s,f=s.find(e=>e.testId===a)??d[0];return(0,J.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,J.jsxs)(`div`,{className:`px-4 py-1.5 text-sm font-bold tracking-widest ${af(l)}`,children:[`These results are from `,(l??`production`).toUpperCase(),l===null?` (run made before environments existed)`:``]}),(0,J.jsx)(YK,{summary:n.data}),(0,J.jsx)(JK,{summary:n.data}),(0,J.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,J.jsxs)(`div`,{className:`flex w-[26rem] shrink-0 flex-col border-r border-line-mid bg-card`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-mid bg-warm px-4 py-2 text-sm`,children:[(0,J.jsxs)(rf,{tone:`red`,children:[c.failed,` failed`]}),c.flaky>0?(0,J.jsxs)(rf,{tone:`amber`,children:[c.flaky,` flaky`]}):null,(0,J.jsxs)(rf,{tone:`green`,children:[c.passed,` passed`]}),c.skipped>0?(0,J.jsxs)(rf,{tone:`gray`,children:[c.skipped,` skipped`]}):null,u.length>0?(0,J.jsxs)(`label`,{className:`ml-auto flex items-center gap-1 text-xs text-ink-2`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:r,onChange:e=>i(e.target.checked)}),`Only problems`]}):null]}),(0,J.jsxs)(`ul`,{className:`min-h-0 flex-1 overflow-auto`,children:[d.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsxs)(`button`,{className:`block w-full border-b border-line px-4 py-2 text-left hover:bg-warm ${e.testId===f?.testId?`bg-theme-bg`:``}`,onClick:()=>o(e.testId),children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono text-sm`,children:e.caseId}),(0,J.jsx)(rf,{tone:`gray`,children:e.profile}),e.writes?(0,J.jsx)(sf,{}):null,(0,J.jsx)(`span`,{className:`ml-auto shrink-0`,children:(0,J.jsx)(LK,{status:e.status})})]}),zK(e)?(0,J.jsx)(`div`,{className:`mt-1 line-clamp-2 text-xs break-words text-seal-deep`,children:zK(e)}):null]})},e.testId)),d.length===0?(0,J.jsx)(`li`,{className:`p-4 text-sm text-ink-2`,children:`No tests in this run.`}):null]})]}),(0,J.jsx)(`div`,{className:`min-w-0 flex-1 overflow-auto`,children:f?(0,J.jsx)(KK,{runId:e,result:f,runEnv:l,settings:n.data.settings},f.testId):null})]})]})}var ZK=e=>`rounded px-3 py-1 text-sm font-medium transition-colors ${e?`bg-theme-bg text-theme-ink`:`text-ink-2 hover:bg-warm hover:text-ink`}`;function QK({runId:e}){let t=Ic(e).data,n=t?.settings,r=t?.env,i=t?!n||!r?`This run was made before its settings were recorded. Start it again from the Run tests page.`:n.only?`This report is one part of a run that was split to overwrite screenshot baselines. Start it again from the Run tests page.`:void 0:`The summary of this run is not available.`;return(0,J.jsx)(MK,{label:`Re-run all`,disabledReason:i,request:{action:`run`,env:r??``,profiles:n?.profiles??void 0,suites:n?.suites.length?n.suites:void 0,grep:n?.grep,stepText:n?.stepText||void 0,readOnly:n?.readOnly||void 0},description:n?`Runs everything of this report again in ${r?.toUpperCase()}: ${n.profiles?`profiles ${n.profiles.join(`, `)}`:`all profiles`}${n.suites.length?`, suites ${n.suites.join(`, `)}`:``}${n.grep?`, case filter "${n.grep}"`:``}${n.readOnly?`, read-only`:``}${n.stepText?`, step text on the videos`:``}.`:``})}function $K(){let{runId:e}=Ao(),t=Pc(),n=t.data??[],r=e??`latest`,i=r===`latest`?n.find(e=>e.isLatest)?.id??`latest`:r,[a,o]=(0,q.useState)(`results`);return!e&&t.isSuccess&&n.length>0?(0,J.jsx)(Ts,{to:`/reports/latest`,replace:!0}):(0,J.jsxs)(`div`,{className:`flex h-full min-h-0`,children:[(0,J.jsxs)(`aside`,{className:`w-64 shrink-0 overflow-auto border-r border-line-mid bg-card`,children:[(0,J.jsx)(`h1`,{className:`eyebrow border-l-4 border-theme px-3 py-3 text-sm font-bold`,children:`Test runs`}),t.isSuccess&&n.length===0?(0,J.jsx)(`p`,{className:`px-4 text-sm text-ink-2`,children:`No report yet. Start a run on the "Run tests" page.`}):null,(0,J.jsx)(`ul`,{children:n.map(t=>{let n=e===t.id||r===`latest`&&t.isLatest;return(0,J.jsx)(`li`,{children:(0,J.jsxs)(Ks,{to:`/reports/${t.isLatest&&r===`latest`?`latest`:t.id}`,className:`block border-b border-line px-4 py-2 text-sm hover:bg-warm ${n?`bg-theme-bg`:``}`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(of,{env:t.env}),(0,J.jsx)(`span`,{children:yf(t.createdAt)})]}),(0,J.jsxs)(`div`,{className:`font-mono text-xs text-ink-2`,children:[t.id,t.isLatest?` (latest)`:``]}),t.counts?(0,J.jsxs)(`div`,{className:`mt-1 flex gap-1`,children:[t.counts.failed>0?(0,J.jsxs)(rf,{tone:`red`,children:[t.counts.failed,` failed`]}):null,t.counts.flaky>0?(0,J.jsxs)(rf,{tone:`amber`,children:[t.counts.flaky,` flaky`]}):null,(0,J.jsxs)(rf,{tone:`green`,children:[t.counts.passed,` passed`]})]}):null]})},t.id)})})]}),(0,J.jsx)(`section`,{className:`flex min-w-0 flex-1 flex-col`,children:n.length>0?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-line-mid bg-warm px-4 py-2`,children:[(0,J.jsx)(`button`,{className:ZK(a===`results`),onClick:()=>o(`results`),children:`Results`}),(0,J.jsx)(`button`,{className:ZK(a===`report`),onClick:()=>o(`report`),children:`Full Playwright report`}),(0,J.jsx)(of,{env:n.find(e=>e.id===i)?.env??null}),(0,J.jsx)(`span`,{className:`font-mono text-xs text-ink-2`,children:i}),(0,J.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,J.jsx)(QK,{runId:i}),(0,J.jsx)(`a`,{className:mf(),href:`/report-files/${i}/`,target:`_blank`,rel:`noreferrer`,children:`Open in new tab`})]})]}),a===`results`?(0,J.jsx)(XK,{runId:i,onShowReport:()=>o(`report`)},i):(0,J.jsx)(`iframe`,{title:`Playwright report`,src:`/report-files/${i}/`,className:`min-h-0 flex-1 bg-white`},i)]}):null})]})}function eq(){let e=Mc(),t=jc(),n=Fc(),r=Vn({queryKey:[`cases`],queryFn:sc.cases}),{startJob:i,selectJob:a}=zc(),o=Eo(),s=wo().state?.case,[c,l]=(0,q.useState)(null),[u,d]=(0,q.useState)(new Map),[f,p]=(0,q.useState)(new Set),[m,h]=(0,q.useState)(!1),[g,_]=(0,q.useState)(null),[v,y]=(0,q.useState)(!1),[b,x]=(0,q.useState)(typeof s==`string`?s:``),[S,C]=(0,q.useState)(!1),[w,T]=(0,q.useState)(new Set),[E,D]=(0,q.useState)(null),O=n.data?.find(e=>e.kind===`run`&&e.status===`running`),k=e.data?.envs??[],A=c??(k.includes(`staging`)?`staging`:null),j=(e.data?.profiles??[]).filter(e=>e.env===A),M=e=>e.status===`missing`||e.status===`expired`,N=e=>u.get(e.id)??!M(e),P=j.filter(N),F=P.filter(M),[I,L]=(0,q.useState)(b);(0,q.useEffect)(()=>{let e=setTimeout(()=>L(b),300);return()=>clearTimeout(e)},[b]);let R=P.length===j.length?void 0:P.map(e=>e.id),ee=[...f].sort(),z=Vn({queryKey:[`run-plan`,A,R,ee,m,I.trim()],queryFn:()=>sc.planRun({env:A,profiles:R,suites:ee.length>0?ee:void 0,grep:I.trim()||void 0,readOnly:m||void 0}),enabled:A!==null&&P.length>0,placeholderData:zt,retry:!1}),B=new Set((z.data?.cases??[]).filter(e=>e.skip===null).map(e=>e.id)),V=[...w].filter(e=>B.has(e)).sort(),te=z.isFetching||z.isPlaceholderData||b!==I,ne=!!z.data&&!te&&(z.data.error!==null||z.data.totalTests===0),re=Hn({mutationFn:async e=>{let t=await sc.previewRun({env:e.env,profiles:e.profiles,suites:e.suites,grep:e.grep,readOnly:e.readOnly});t.needsConfirmation?(y(!1),_({request:e,preview:t})):await i(e)}}),ie=(e,t,n)=>{let r=new Set(e);r.has(t)?r.delete(t):r.add(t),n(r)};return(0,J.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,J.jsx)(`h1`,{className:`font-serif text-2xl font-bold tracking-wide border-l-4 border-theme pl-3`,children:`Run tests`}),(0,J.jsxs)(`p`,{className:`text-sm text-ink-2`,children:[`Runs `,(0,J.jsx)(`code`,{children:`pnpm asrun --env <env>`}),`. When the run finishes, the report is available under Reports.`]}),(0,J.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,J.jsx)(`h2`,{className:`eyebrow mb-2 text-sm font-bold text-theme-ink`,children:`Environment (required)`}),(0,J.jsx)(`div`,{className:`flex flex-wrap items-center gap-4`,children:k.map(e=>(0,J.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,J.jsx)(`input`,{type:`radio`,name:`env`,checked:A===e,onChange:()=>{l(e),d(new Map)}}),(0,J.jsx)(of,{env:e})]},e))}),A===null?(0,J.jsx)(`p`,{className:`mt-2 text-xs text-ink-2`,children:`Choose where to run. There is no default.`}):null]}),(0,J.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,J.jsxs)(`h2`,{className:`eyebrow mb-2 text-sm font-bold text-theme-ink`,children:[`Profiles`,A?` in ${A.toUpperCase()}`:``]}),A===null?(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Choose an environment first.`}):null,(0,J.jsx)(`ul`,{className:`space-y-1`,children:j.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsxs)(`label`,{className:`flex items-center gap-3 text-sm`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:N(e),onChange:()=>d(new Map(u).set(e.id,!N(e)))}),(0,J.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,J.jsx)(`span`,{className:`font-mono text-xs text-ink-2`,children:e.id}),(0,J.jsx)(lf,{status:e.status})]})},e.id))}),F.length>0?(0,J.jsxs)(`p`,{className:`mt-3 rounded-sm border border-gold/50 bg-gold-bg p-2 text-xs text-warn-ink`,children:[`Not logged in: `,F.map(e=>e.id).join(`, `),`. Their tests will fail right away. Log in on the Profiles page or untick them.`]}):null]}),(0,J.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,J.jsx)(`h2`,{className:`eyebrow mb-2 text-sm font-bold text-theme-ink`,children:`Filters (optional)`}),(0,J.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-3`,children:[(0,J.jsx)(`span`,{className:`text-sm text-ink-2`,children:`Suite:`}),t.data?.suites.map(e=>(0,J.jsxs)(`label`,{className:`flex items-center gap-1 text-sm`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:f.has(e),onChange:()=>ie(f,e,p)}),e]},e)),f.size===0?(0,J.jsx)(`span`,{className:`text-xs text-ink-2`,children:`(all)`}):null]}),(0,J.jsxs)(`label`,{className:`mb-3 flex items-center gap-2 text-sm`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:m,onChange:e=>h(e.target.checked)}),`Read-only: leave out the cases that write data (`,(0,J.jsx)(`code`,{children:`--read-only`}),`)`]}),(0,J.jsxs)(`label`,{className:`mb-3 block text-sm`,children:[(0,J.jsx)(`span`,{className:`text-ink-2`,children:`Case (matches the test title)`}),(0,J.jsx)(`input`,{list:`case-ids`,value:b,onChange:e=>x(e.target.value),placeholder:`e.g. hub-landing`,className:`mt-1 block w-full ${hf} px-3`}),(0,J.jsx)(`datalist`,{id:`case-ids`,children:r.data?.filter(e=>e.hasSpec).map(e=>(0,J.jsx)(`option`,{value:e.id},e.id))})]}),(0,J.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:S,onChange:e=>C(e.target.checked)}),`Overlay the current step on the videos (`,(0,J.jsx)(`code`,{children:`--step-text`}),`)`]})]}),(0,J.jsxs)(`section`,{className:`card-paper p-4`,"aria-live":`polite`,children:[(0,J.jsxs)(`h2`,{className:`eyebrow mb-2 flex flex-wrap items-center gap-2 text-sm font-bold text-theme-ink`,children:[`Cases to run`,z.data&&z.data.error===null?(0,J.jsxs)(rf,{tone:z.data.totalTests===0?`red`:`blue`,children:[z.data.totalCases,` `,z.data.totalCases===1?`case`:`cases`,` · `,z.data.totalTests,` `,z.data.totalTests===1?`test`:`tests`]}):null,te&&A!==null&&P.length>0?(0,J.jsx)(`span`,{className:`text-xs font-normal text-ink-2`,children:`Checking…`}):null]}),A===null?(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Choose an environment first.`}):P.length===0?(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Select at least one profile.`}):z.isError?(0,J.jsx)(`p`,{className:`text-sm text-seal-deep`,children:z.error.message}):z.data?.error?(0,J.jsxs)(`p`,{className:`rounded-sm border border-seal/30 bg-seal-bg p-2 text-sm text-seal-deep`,children:[`The filters cannot be applied: `,(0,J.jsx)(`code`,{children:z.data.error})]}):z.data&&z.data.cases.length===0?(0,J.jsx)(`p`,{className:`rounded-sm border border-gold/50 bg-gold-bg p-2 text-sm text-warn-ink`,children:`No cases match these filters. Check the suite, the case search and the selected profiles.`}):z.data?(0,J.jsxs)(J.Fragment,{children:[z.data.totalTests===0?(0,J.jsxs)(`p`,{className:`mb-2 rounded-sm border border-gold/50 bg-gold-bg p-2 text-sm text-warn-ink`,children:[`Every matching case is skipped in `,z.data.env.toUpperCase(),`. Nothing would run.`]}):null,(0,J.jsx)(`ul`,{className:`max-h-64 space-y-1 overflow-auto text-sm`,children:z.data.cases.map(e=>(0,J.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2 ${e.skip?`text-ink-3`:``}`,children:[(0,J.jsx)(`span`,{className:`font-mono ${e.skip?`line-through`:``}`,children:e.id}),e.writes?(0,J.jsx)(sf,{}):null,e.skip?(0,J.jsxs)(`span`,{className:`text-xs`,children:[`Skipped: `,e.skip]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`font-mono text-xs text-ink-2`,children:e.profiles.join(`, `)}),(0,J.jsxs)(`label`,{className:`ml-auto flex items-center gap-1.5 text-xs text-ink-2`,title:`Overwrite the screenshot baselines of this case with what the pages show now, instead of comparing with them`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:w.has(e.id),onChange:()=>ie(w,e.id,T)}),`Update baselines`,(0,J.jsxs)(`span`,{className:`text-ink-3`,children:[`(`,e.baselineCount===0?`none yet`:`${e.baselineCount} image${e.baselineCount===1?``:`s`}`,`)`]})]})]})]},e.id))})]}):(0,J.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Checking…`})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsxs)(`button`,{className:`${mf(`success`)} gap-1.5`,disabled:A===null||P.length===0||!!O||re.isPending||ne,onClick:()=>{if(A===null)return;let e={action:`run`,env:A,profiles:R,suites:f.size>0?[...f]:void 0,grep:b.trim()||void 0,stepText:S||void 0,readOnly:m||void 0,updateBaselines:V.length>0?V:void 0};V.length>0?D({request:e,ids:V}):re.mutate(e)},children:[(0,J.jsx)(Ru,{size:14,"aria-hidden":`true`}),A===null?`Run tests`:`Run tests in ${A.toUpperCase()}`]}),O?(0,J.jsx)(`button`,{className:mf(),onClick:()=>a(O.id),children:`A run is in progress: show output`}):null,(0,J.jsx)(`button`,{className:mf(),onClick:()=>o(`/reports`),children:`Open reports`})]}),re.isError?(0,J.jsx)(`p`,{className:`text-sm text-seal-deep`,children:re.error.message}):null,E?(0,J.jsxs)(YN,{title:`Overwrite screenshot baselines?`,onClose:()=>D(null),children:[(0,J.jsx)(`p`,{className:`mb-2 text-sm`,children:`These cases will not be compared with their baselines in this run. The images are replaced with what the pages show now, and the cases cannot fail on a visual check:`}),(0,J.jsx)(`ul`,{className:`mb-3 max-h-40 list-disc overflow-auto pl-5 font-mono text-xs`,children:E.ids.map(e=>(0,J.jsx)(`li`,{children:e},e))}),(0,J.jsx)(`p`,{className:`mb-4 rounded-sm border border-gold/50 bg-gold-bg p-2 text-xs text-warn-ink`,children:`A wrong baseline stays wrong: if a check picks the wrong element, the new image shows the wrong element too. Make sure the spec looks at the element its target card names, then open the new images when the run is done (the job output shows them next to the card).`}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{className:mf(),onClick:()=>D(null),children:`Cancel`}),(0,J.jsx)(`button`,{className:`${mf(`danger`)} gap-1.5`,disabled:re.isPending,onClick:()=>{let e=E.request;D(null),T(new Set),re.mutate(e)},children:`Overwrite baselines and run`})]})]}):null,g?(0,J.jsx)(`div`,{className:`fixed inset-0 z-30 flex items-center justify-center bg-dai-deep/40`,children:(0,J.jsxs)(`div`,{className:`card-paper w-[32rem] max-w-full p-5 shadow-lift`,children:[(0,J.jsxs)(`h2`,{className:`mb-2 flex items-center gap-2 font-serif text-base font-bold`,children:[(0,J.jsx)(sf,{}),` Cases that write data in `,(0,J.jsx)(of,{env:g.preview.env})]}),(0,J.jsx)(`ul`,{className:`mb-3 max-h-64 space-y-2 overflow-auto text-sm`,children:g.preview.writeCases.map(e=>(0,J.jsxs)(`li`,{className:`rounded-sm border border-seal/30 bg-seal-bg p-2`,children:[(0,J.jsx)(`div`,{className:`font-mono`,children:e.id}),(0,J.jsx)(`div`,{className:`text-ink-2`,children:e.note}),(0,J.jsxs)(`div`,{className:`text-xs text-ink-2`,children:[`Profiles: `,e.profiles.join(`, `)]})]},e.id))}),(0,J.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.`}),g.preview.skippedWriteCases.length>0?(0,J.jsxs)(`p`,{className:`mb-3 text-xs text-ink-2`,children:[`Skipped, because they have no permission to write in `,g.preview.env.toUpperCase(),`:`,` `,g.preview.skippedWriteCases.map(e=>e.id).join(`, `),`.`]}):null,(0,J.jsxs)(`label`,{className:`mb-4 flex items-center gap-2 text-sm`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:v,onChange:e=>y(e.target.checked)}),`I confirm that these cases may write test data in `,g.preview.env.toUpperCase(),`.`]}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(`button`,{className:mf(),onClick:()=>_(null),children:`Cancel`}),(0,J.jsxs)(`button`,{className:mf(`danger`),disabled:!v,onClick:()=>{let e={...g.request,confirmWritesIn:g.preview.env};_(null),i(e)},children:[`Run in `,g.preview.env.toUpperCase()]})]})]})}):null]})}AK();var tq=new Dn({defaultOptions:{queries:{refetchOnWindowFocus:!0,retry:1}}}),nq=Us([{path:`/`,element:(0,J.jsx)(Bc,{children:(0,J.jsx)(ep,{})}),children:[{index:!0,element:(0,J.jsx)(Ts,{to:`/profiles`,replace:!0})},{path:`profiles`,element:(0,J.jsx)(fp,{})},{path:`cases/*`,element:(0,J.jsx)(bK,{})},{path:`run`,element:(0,J.jsx)(eq,{})},{path:`reports/:runId?`,element:(0,J.jsx)($K,{})},{path:`guide`,element:(0,J.jsx)(SK,{})},{path:`help`,element:(0,J.jsx)(wK,{})}]},{path:`jobs/:jobId`,element:(0,J.jsx)(Bc,{children:(0,J.jsx)(jK,{})})}]);(0,ic.createRoot)(document.getElementById(`root`)).render((0,J.jsx)(q.StrictMode,{children:(0,J.jsx)(gt,{client:tq,children:(0,J.jsx)(rc,{router:nq})})}));export{e_ as a,$g as i,HR as n,uv as o,WL as r,Az as t};
|