agentic-diff 0.1.5 → 0.1.6

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.
@@ -0,0 +1,62 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r=Object.setPrototypeOf({},null);for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&1||t(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(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 u=o((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 ee(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function A(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 j(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,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(ee(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+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+ne(a,u),c+=j(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+ne(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(A(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 M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=(0,e._result)();t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n,t.status===void 0&&(t.status=`fulfilled`,t.value=n))},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n,t.status===void 0&&(t.status=`rejected`,t.reason=n))}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ie=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 N(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,ie)}catch(e){ie(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function P(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 N(P.bind(null,e))}var ae={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ae,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=P,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=ee,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=N,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`})),d=o(((e,t)=>{t.exports=u()})),f=l(d(),1),p=f.createContext(!1),m=()=>f.useContext(p);p.Provider;var h=o((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})),g=o(((e,t)=>{t.exports=h()})),_=g(),v=f.createContext(void 0),y=e=>{let t=f.useContext(v);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},b=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,_.jsx)(v.Provider,{value:e,children:t}));function x(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var S=f.createContext(x()),C=()=>f.useContext(S),w=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(){}},T=new class extends w{#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`}},E={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},D=new class{#e=E;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 O(e){setTimeout(e,0)}var ee=typeof window>`u`||`Deno`in globalThis;function k(){}function te(e,t){return typeof e==`function`?e(t):e}function ne(e){return typeof e==`number`&&e>=0&&e!==1/0}function A(e,t){return Math.max(e+(t||0)-Date.now(),0)}function j(e,t){return typeof e==`function`?e(t):e}function M(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ie(o,t.options))return!1}else if(!P(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 re(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(N(t.options.mutationKey)!==N(a))return!1}else if(!P(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ie(e,t){return(t?.queryKeyHashFn||N)(e)}function N(e){return JSON.stringify(e,(e,t)=>le(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function P(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))return!1;if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!P(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!P(e[r],t[r]))return!1;return!0}return!1}var ae=Object.prototype.hasOwnProperty;function oe(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ce(e)&&ce(t);if(!r&&!(le(e)&&le(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:ae.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=oe(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function se(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n of Object.keys(e))if(!ae.call(t,n)||e[n]!==t[n])return!1;return!0}function ce(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function le(e){if(!ue(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!(!ue(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function ue(e){return Object.prototype.toString.call(e)===`[object Object]`}function de(e){return new Promise(t=>{D.setTimeout(t,e)})}function fe(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:oe(e,t)}function pe(e){return e}function F(e,t,n,r){let i=r?[t,...e]:[...e,t];return n&&i.length>n?r?i.slice(0,n):i.slice(-n):i}var I=Symbol();function me(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===I?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function he(e,t){return typeof e==`function`?e(...t):!!e}var ge=Symbol();function _e(e,t,n,r){let i=!1,a;return Object.defineProperties(e,{[ge]:{value:r},signal:{enumerable:!0,get:()=>(a??=t(),i||(i=!0,a.aborted?n():a.addEventListener(`abort`,n,{once:!0})),a)}}),e}var ve=()=>ee,L=()=>ve();function ye(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=t,u=e=>{_e(e,()=>t.signal,()=>n=!0,l[ge])},d=me(t.options,t.fetchOptions),f=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 u(e),e})(),o=await d(a),{maxPages:s}=t.options;return{pages:F(e.pages,o,s,i),pageParams:F(e.pageParams,r,s,i)}};if(i&&a.length){let e=i===`backward`,t=e?xe:be,n={pages:a,pageParams:o};s=await f(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:be(r,s);if(c>0&&e==null)break;s=await f(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 be(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 xe(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Se=O;function Ce(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Se,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 we=Ce(),Te=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ne(this.gcTime)&&(this.#e=D.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(L()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(D.clearTimeout(this.#e),this.#e=void 0)}},Ee=new class extends w{#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 De(e){return Math.min(1e3*2**e,3e4)}function Oe(e){return(e??`online`)!==`online`||Ee.isOnline()}var ke=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ae(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(k);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new ke(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>T.isFocused()&&(e.networkMode===`always`||Ee.isOnline())&&e.canRun(),p=()=>Oe(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??(L()?0:3),a=e.retryDelay??De,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),de(o).then(()=>c()||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 je=class extends Te{#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e){super(),this.#c=!1,this.#s=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=Pe(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.#s,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Pe(this.options);e.data!==void 0&&(this.setState(Ne(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=fe(this.state.data,e,this.options);return this.#u({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#u({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(k).catch(k):Promise.resolve()}destroy(){this.cancel({silent:!0}),super.destroy()}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>j(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===I||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.state.data!==void 0&&this.getObserversCount()>0&&this.observers.some(e=>j(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:!A(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.#c||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.#l()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#u({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&&this.#o)return this.#a.continueRetry(),this.#o}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.defineProperties(e,{[ge]:{value:n.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#c=!0,n.signal)}})},i=()=>{let e=me(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#c=!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`?ye(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=Ae({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ke&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#u({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#u({type:`pause`})},onContinue:()=>{this.#u({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),s=(async()=>{try{let e=await o.promise;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 ke){if(e.silent){if(this.#a!==o&&this.#o)return this.#o;throw e}if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#u({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.#o=void 0),this.#l()}})();return this.#o=s,o.start(),s}#l(){this.#r.get(this.queryHash)===this&&this.scheduleGc()}#u(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,...Me(t.data,this.options),fetchMeta:e.meta??null};case`success`:{let n={...t,...Ne(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 n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:`idle`,status:`error`,isInvalidated:!0}}case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),we.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Me(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Oe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ne(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Pe(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 Fe=class extends w{#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.#a=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Le(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Re(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Re(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 j(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&&!se(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&ze(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||j(this.options.enabled,this.#t)!==j(t.enabled,this.#t)||j(this.options.staleTime,this.#t)!==j(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||j(this.options.enabled,this.#t)!==j(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 se(this.getCurrentResult(),n)||(this.#r=n,this.#i=e),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(k)),t}#h(e){return!L()&&j(this.options.enabled,this.#t)!==!1&&ne(e)}#g(){this.#b();let e=j(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=A(this.#r.dataUpdatedAt,e)+1;this.#u=D.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return j(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=D.setInterval(()=>{(this.options.refetchIntervalInBackground||T.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(D.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(D.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=e===n?this.#n:e.state,{state:s}=e,c={...s},l=!1,u;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Le(e,t),o=i&&ze(e,n,t,r);(a||o)&&(c={...c,...Me(s.data,e.options)}),t._optimisticResults===`isRestoring`&&(c.fetchStatus=`idle`)}let{error:d,errorUpdatedAt:f,status:p}=c;u=c.data;let m=!1;if(t.placeholderData!==void 0&&u===void 0&&p===`pending`){let e,n=i?.isPlaceholderData&&t.placeholderData===a?.placeholderData;n?(e=i.data,m=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,(n||e!==void 0)&&(p=`success`,u=fe(t.select&&!m?this.#s:i?.data,e,t),l=!0)}if(t.select&&u!==void 0&&!m){if(u===this.#s&&t.select===this.#o)u=this.#c;else try{this.#o=t.select,this.#s=u,u=t.select(u),u=fe(i?.data,u,t),this.#c=u,this.#a=null}catch(e){this.#a=e}}else u===void 0&&(this.#s=void 0,this.#a=null);this.#a&&(d=this.#a,u=this.#c,f=i?.error===d?i.errorUpdatedAt:Date.now(),p=`error`,l=!1);let h=c.fetchStatus===`fetching`,g=p===`pending`,_=p===`error`,v=g&&h,y=u!==void 0;return{status:p,fetchStatus:c.fetchStatus,isPending:g,isSuccess:p===`success`,isError:_,isInitialLoading:v,isLoading:v,data:u,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:c.dataUpdateCount>o.dataUpdateCount||c.errorUpdateCount>o.errorUpdateCount,isFetching:h,isRefetching:h&&!g,isLoadingError:_&&!y,isPaused:c.fetchStatus===`paused`,isPlaceholderData:l,isRefetchError:_&&y,isStale:Be(e,t),refetch:this.refetch,isEnabled:j(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.options,this.#t.state.data!==void 0&&(this.#l=this.#t),se(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||this.options.throwOnError&&this.#r.error!==e.error)return!0;for(let t of n??this.#p)if(this.#r[t]!==e[t])return!0;return!1})();we.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 Ie(e,t){return j(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||j(t.retryOnMount,e)!==!1)}function Le(e,t){return Ie(e,t)||e.state.data!==void 0&&Re(e,t,t.refetchOnMount)}function Re(e,t,n){if(j(t.enabled,e)!==!1&&j(t.staleTime,e)!==`static`){let r=j(n,e);return r===`always`||r!==!1&&Be(e,t)}return!1}function ze(e,t,n,r){return(e!==t||j(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Be(e,n)}function Be(e,t){return j(t.enabled,e)!==!1&&e.isStaleByTime(j(t.staleTime,e))}var Ve=class extends Te{#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||He(),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.#n.has(this)&&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=Ae({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})}this.state.isPaused&&r.canStart()&&t();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),we.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function He(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ue=class extends w{#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 Ve({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=We(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)){e.destroy();let t=We(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})}has(e){return this.#e.has(e)}canRun(e){let t=We(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=We(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){we.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>e.destroy()),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=>re(t,e))}findAll(e={}){return this.getAll().filter(t=>re(e,t))}notify(e){we.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return we.batch(()=>Promise.all(e.map(e=>e.continue().catch(k))))}};function We(e){return e.options.scope?.id}var Ge=class extends w{#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),se(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&N(t.mutationKey)!==N(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??He();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){we.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)})})}},Ke=class extends w{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??ie(r,t),a=this.get(i);return a||(a=new je({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(){we.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=>M(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>M(e,t)):t}notify(e){we.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){we.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},qe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ke,this.#t=e.mutationCache||new Ue,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=T.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ee.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(j(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=te(t,this.#e.get(r.queryHash)?.state.data);if(i!==void 0)return this.#e.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return we.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;we.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return we.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=we.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(k).catch(k)}invalidateQueries(e,t={}){return we.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=we.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(k)),r?Promise.resolve():t}));return Promise.all(r).then(k)}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(j(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(j(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(k).catch(k)}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(k).catch(k)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Ee.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(N(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{P(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(N(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{P(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||=ie(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===I&&(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()}},Je=(e,t,n)=>{let r=n?.state.status===`error`&&typeof e.throwOnError==`function`?he(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Ye=e=>{f.useEffect(()=>{e.clearReset()},[e])},Xe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||he(n,[e.error,r])),Ze=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))}},Qe=(e,t)=>e?.suspense&&t.isPending,$e=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function et(e,t,n){let r=m(),i=C(),a=y(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ze(o),Je(o,i,s),Ye(i);let[l]=f.useState(()=>new t(a,o)),u=l.getOptimisticResult(o);f.useEffect(()=>{l.setOptions(o)},[o,l]);let d=!r&&c;if(f.useSyncExternalStore(f.useCallback(e=>{let t=d?l.subscribe(we.batchCalls(e)):k;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Qe(o,u))throw $e(o,l,i);if(Xe({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function tt(e,t){return et(e,Fe,t)}function nt(e,t){let n=y(t),[r]=f.useState(()=>new Ge(n,e));f.useEffect(()=>{r.setOptions(e)},[r,e]);let i=f.useSyncExternalStore(f.useCallback(e=>r.subscribe(we.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=f.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(k)},[r]);if(i.error&&he(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var rt=o((e=>{function t(e,t){var n=e.length;for(e.push(t);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}}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;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}}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&&te(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{e:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{t:{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 t}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&&te(x,u.startTime-t),i=!1}}break e}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 ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function te(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=0x3fffffff;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,te(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}}}})),it=o(((e,t)=>{t.exports=rt()})),at=o((e=>{var t=d();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`})),ot=o(((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=at()})),st=o((e=>{var t=it(),n=d(),r=ot();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 f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function p(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)&&p(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function m(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 h(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 g(e){var t=[null,null],n=m(e);return n===null||_(t,e,n.child,{foundSelf:!1}),t}function _(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)&&_(e,t,n.child,r))return!0;n=n.sibling}return!1}function v(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 y=null,b=null;function x(e,t,n){return e===n||e===t&&(y=e,!0)}function S(e,t,n){return e===n?(b=e,!1):e===t&&(b!==null&&(y=e),!0)}function C(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 w(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 T=Object.assign,E=Symbol.for(`react.element`),D=Symbol.for(`react.transitional.element`),O=Symbol.for(`react.portal`),ee=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.consumer`),A=Symbol.for(`react.context`),j=Symbol.for(`react.forward_ref`),M=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),N=Symbol.for(`react.lazy`),P=Symbol.for(`react.activity`),ae=Symbol.for(`react.legacy_hidden`),oe=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.for(`react.view_transition`),ce=Symbol.for(`react.recoverable`),le=Symbol.iterator;function ue(e){return typeof e!=`object`||!e?null:(e=le&&e[le]||e[`@@iterator`],typeof e==`function`?e:null)}var de=Symbol.for(`react.client.reference`);function fe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case te:return`Profiler`;case k:return`StrictMode`;case M:return`Suspense`;case re:return`SuspenseList`;case P:return`Activity`;case se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case O:return`Portal`;case A:return e.displayName||`Context`;case ne:return(e._context.displayName||`Context`)+`.Consumer`;case j:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case N:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var pe=Array.isArray,F=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},he=[],ge=-1;function _e(e){return{current:e}}function ve(e){0>ge||(e.current=he[ge],he[ge]=null,ge--)}function L(e,t){ge++,he[ge]=e.current,e.current=t}var ye=_e(null),be=_e(null),xe=_e(null),Se=_e(null);function Ce(e,t){switch(L(xe,t),L(be,e),L(ye,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ve(ye),L(ye,e)}function we(){ve(ye),ve(be),ve(xe)}function Te(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,L(Se,e)),t=ye.current;var n=dp(t,e.type);t!==n&&(L(be,e),L(ye,n))}function Ee(e){be.current===e&&(ve(ye),ve(be)),Se.current===e&&(ve(Se),sh._currentValue=me)}var De,Oe;function ke(e){if(De===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);De=t&&t[1]||``,Oe=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+De+e+Oe}var Ae=!1;function je(e,t){if(!e||Ae)return``;Ae=!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(`
4
+ `),l=s.split(`
5
+ `);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=`
6
+ `+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{Ae=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ke(n):``}function Me(e,t){switch(e.tag){case 26:case 27:case 5:return ke(e.type);case 16:return ke(`Lazy`);case 13:return e.child!==t&&t!==null?ke(`Suspense Fallback`):ke(`Suspense`);case 19:return ke(`SuspenseList`);case 0:case 15:return je(e.type,!1);case 11:return je(e.type.render,!1);case 1:return je(e.type,!0);case 31:return ke(`Activity`);case 30:return ke(`ViewTransition`);default:return``}}function Ne(e){try{var t=``,n=null;do t+=Me(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var Pe=Object.prototype.hasOwnProperty,Fe=t.unstable_scheduleCallback,Ie=t.unstable_cancelCallback,Le=t.unstable_shouldYield,Re=t.unstable_requestPaint,ze=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,Ve=t.unstable_ImmediatePriority,He=t.unstable_UserBlockingPriority,Ue=t.unstable_NormalPriority,We=t.unstable_LowPriority,Ge=t.unstable_IdlePriority,Ke=t.log,qe=t.unstable_setDisableYieldValue,Je=null,Ye=null;function Xe(e){if(typeof Ke==`function`&&qe(e),Ye&&typeof Ye.setStrictMode==`function`)try{Ye.setStrictMode(Je,e)}catch{}}var Ze=Math.clz32?Math.clz32:et,Qe=Math.log,$e=Math.LN2;function et(e){return e>>>=0,e===0?32:31-(Qe(e)/$e|0)|0}var tt=256,nt=262144,rt=4194304;function at(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 0x8000000:return 0x8000000;case 268435456:return 268435456;case 536870912:return 536870912;case 0x40000000:return 0;default:return e}}function st(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&0x7ffffff;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=at(n))):i=at(o):i=at(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=at(n))):i=at(o)):i=at(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 ct(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lt(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-Ze(n),i=1<<r;t|=e[r],n&=~i}return t}function ut(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;default:return-1}}function dt(){var e=rt;return rt<<=1,!(rt&62914560)&&(rt=4194304),e}function ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function R(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pt(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-Ze(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&&mt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function mt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|0x40000000|n&261930}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function z(e,t){var n=t&-t;return n=n&42?1:gt(n),(n&(e.suspendedLanes|t))===0?n:0}function gt(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=0x8000000;break;default:e=0}return e}function _t(e){return e&=-e,2<e?8<e?e&0x7ffffff?32:268435456:8:2}function vt(){var e=I.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function yt(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var bt=Math.random().toString(36).slice(2),xt=`__reactFiber$`+bt,St=`__reactProps$`+bt,Ct=`__reactContainer$`+bt,wt=`__reactEvents$`+bt,Tt=`__reactListeners$`+bt,Et=`__reactHandles$`+bt,Dt=`__reactResources$`+bt,Ot=`__reactMarker$`+bt,kt=`__reactLoad$`+bt;function At(e){delete e[xt],delete e[St],delete e[Tt],delete e[Et]}function jt(e){var t;if(t=e[xt])return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[xt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Mt(e){if(e=e[xt]||e[Ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Pt(e){var t=e[Dt];return t||=e[Dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ft(e){e[Ot]=!0}function It(e){e[kt]=void 0}var Lt=new Set,Rt={};function zt(e,t){Bt(e,t),Bt(e+`Capture`,t)}function Bt(e,t){for(Rt[e]=t,e=0;e<t.length;e++)Lt.add(t[e])}var Vt=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]*$`),Ht={},Ut={};function Wt(e){return Pe.call(Ut,e)?!0:Pe.call(Ht,e)?!1:Vt.test(e)?Ut[e]=!0:(Ht[e]=!0,!1)}var B=!1;function Gt(){var e=B;return B=!1,e}function Kt(e,t,n){if(Wt(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 qt(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 Jt(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 Yt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:case`object`:return e;default:return``}}function Xt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Zt(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 Qt(e){if(!e._valueTracker){var t=Xt(e)?`checked`:`value`;e._valueTracker=Zt(e,t,``+e[t])}}function $t(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Xt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var en=/[\n"\\]/g;function tn(e){return e.replace(en,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function nn(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=``+Yt(t)):e.value!==``+Yt(t)&&(e.value=``+Yt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):an(e,Yt(n)):o===`number`&&e.value==t?an(e,Yt(e.value)):an(e,Yt(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=``+Yt(s):e.removeAttribute(`name`)}function rn(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)){Qt(e);return}n=n==null?``:``+Yt(n),t=t==null?n:``+Yt(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),Qt(e)}function an(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function on(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=``+Yt(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 sn(e,t,n){t!=null&&(t=``+Yt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Yt(n)}function cn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Yt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Qt(e)}function ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var un=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 dn(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||un.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function fn(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]=``,B=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(dn(e,a,r),B=!0)}else for(var o in t)t.hasOwnProperty(o)&&dn(e,o,t[o])}function pn(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 mn=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`]]),hn=/^[\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 gn(e){return hn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function _n(){}var vn=null;function yn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bn=null,xn=null;function Sn(e){var t=Mt(e);if(t&&(e=t.stateNode)){var n=e[St]||null;switch(e=t.stateNode,t.type){case`input`:if(nn(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="`+tn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[St]||null;if(!a)throw Error(i(90));nn(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&&$t(r)}break;case`textarea`:sn(e,n.value,n.defaultValue);break;case`select`:t=n.value,t!=null&&on(e,!!n.multiple,t,!1)}}}var Cn=!1;function wn(e,t,n){if(Cn)return e(t,n);Cn=!0;try{return e(t)}finally{if(Cn=!1,(bn!==null||xn!==null)&&(Ld(),bn&&(t=bn,e=xn,xn=bn=null,Sn(t),e)))for(t=0;t<e.length;t++)Sn(e[t])}}function Tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[St]||null;if(r===null)return null;switch(n=r[t],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;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var En=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Dn=!1;if(En)try{var On={};Object.defineProperty(On,"passive",{get:function(){Dn=!0}}),window.addEventListener(`test`,On,On),window.removeEventListener(`test`,On,On)}catch{Dn=!1}var kn=null,An=null,jn=null;function Mn(){if(jn)return jn;var e,t=An,n=t.length,r,i=`value`in kn?kn.value:kn.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 jn=i.slice(e,1<r?1-r:void 0)}function Nn(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 Pn(){return!0}function Fn(){return!1}function In(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)?Pn:Fn,this.isPropagationStopped=Fn,this}return T(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=Pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rn=In(Ln),zn=T({},Ln,{view:0,detail:0}),V=In(zn),Bn,Vn,Hn,Un=T({},zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:er,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!==Hn&&(Hn&&e.type===`mousemove`?(Bn=e.screenX-Hn.screenX,Vn=e.screenY-Hn.screenY):Vn=Bn=0,Hn=e),Bn)},movementY:function(e){return`movementY`in e?e.movementY:Vn}}),Wn=In(Un),Gn=In(T({},Un,{dataTransfer:0})),Kn=In(T({},zn,{relatedTarget:0})),qn=In(T({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=In(T({},Ln,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=In(T({},Ln,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Zn={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`},Qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qn[e])?!!t[e]:!1}function er(){return $n}var tr=In(T({},zn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Nn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:er,charCode:function(e){return e.type===`keypress`?Nn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Nn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),nr=In(T({},Un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rr=In(T({},Ln,{submitter:0})),ir=In(T({},zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:er})),ar=In(T({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=In(T({},Un,{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})),sr=In(T({},Ln,{newState:0,oldState:0,source:0})),cr=[9,13,27,32],lr=En&&`CompositionEvent`in window,ur=null;En&&`documentMode`in document&&(ur=document.documentMode);var dr=En&&`TextEvent`in window&&!ur,fr=En&&(!lr||ur&&8<ur&&11>=ur),pr=` `,mr=!1;function hr(e,t){switch(e){case`keyup`:return cr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function gr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var _r=!1;function vr(e,t){switch(e){case`compositionend`:return gr(t);case`keypress`:return t.which===32?(mr=!0,pr):null;case`textInput`:return e=t.data,e===pr&&mr?null:e;default:return null}}function yr(e,t){if(_r)return e===`compositionend`||!lr&&hr(e,t)?(e=Mn(),jn=An=kn=null,_r=!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 fr&&t.locale!==`ko`?null:t.data;default:return null}}var br={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 xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!br[e.type]:t===`textarea`}function Sr(e,t,n,r){bn?xn?xn.push(r):xn=[r]:bn=r,t=qf(t,`onChange`),0<t.length&&(n=new Rn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Cr=null,wr=null;function Tr(e){Bf(e,0)}function Er(e){if($t(Nt(e)))return e}function Dr(e,t){if(e===`change`)return t}var Or=!1;if(En){var kr;if(En){var Ar=`oninput`in document;if(!Ar){var jr=document.createElement(`div`);jr.setAttribute(`oninput`,`return;`),Ar=typeof jr.oninput==`function`}kr=Ar}else kr=!1;Or=kr&&(!document.documentMode||9<document.documentMode)}function Mr(){Cr&&(Cr.detachEvent(`onpropertychange`,Nr),wr=Cr=null)}function Nr(e){if(e.propertyName===`value`&&Er(wr)){var t=[];Sr(t,wr,e,yn(e)),wn(Tr,t)}}function Pr(e,t,n){e===`focusin`?(Mr(),Cr=t,wr=n,Cr.attachEvent(`onpropertychange`,Nr)):e===`focusout`&&Mr()}function Fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Er(wr)}function Ir(e,t){if(e===`click`)return Er(t)}function Lr(e,t){if(e===`input`||e===`change`)return Er(t)}function Rr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var zr=typeof Object.is==`function`?Object.is:Rr;function Br(e,t){if(zr(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(!Pe.call(t,i)||!zr(e[i],t[i]))return!1}return!0}function Vr(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 Hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ur(e,t){var n=Hr(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}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hr(n)}}function Wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vr(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=Vr(e.document)}return t}function Kr(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 qr=En&&`documentMode`in document&&11>=document.documentMode,Jr=null,Yr=null,Xr=null,Zr=!1;function Qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||Jr==null||Jr!==Vr(r)||(r=Jr,`selectionStart`in r&&Kr(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}),Xr&&Br(Xr,r)||(Xr=r,r=qf(Yr,`onSelect`),0<r.length&&(t=new Rn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jr)))}function $r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ei={animationend:$r(`Animation`,`AnimationEnd`),animationiteration:$r(`Animation`,`AnimationIteration`),animationstart:$r(`Animation`,`AnimationStart`),transitionrun:$r(`Transition`,`TransitionRun`),transitionstart:$r(`Transition`,`TransitionStart`),transitioncancel:$r(`Transition`,`TransitionCancel`),transitionend:$r(`Transition`,`TransitionEnd`)},ti={},ni={};En&&(ni=document.createElement(`div`).style,`AnimationEvent`in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),`TransitionEvent`in window||delete ei.transitionend.transition);function ri(e){if(ti[e])return ti[e];if(!ei[e])return e;var t=ei[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ni)return ti[e]=t[n];return e}var ii=ri(`animationend`),ai=ri(`animationiteration`),oi=ri(`animationstart`),si=ri(`transitionrun`),ci=ri(`transitionstart`),li=ri(`transitioncancel`),ui=ri(`transitionend`),di=new Map,fi=`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(` `);fi.push(`scrollEnd`);function pi(e,t){di.set(e,t),zt(t,[e])}var mi=0;function hi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=vd.identifierPrefix;var n=mi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function gi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Ed;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 _i(e,t){return e=gi(e),t=gi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var vi=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)},yi=[],bi=0,xi=0;function Si(){for(var e=bi,t=xi=bi=0;t<e;){var n=yi[t];yi[t++]=null;var r=yi[t];yi[t++]=null;var i=yi[t];yi[t++]=null;var a=yi[t];if(yi[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&&Ei(n,i,a)}}function Ci(e,t,n,r){yi[bi++]=e,yi[bi++]=t,yi[bi++]=n,yi[bi++]=r,xi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function wi(e,t,n,r){return Ci(e,t,n,r),Di(e)}function Ti(e,t){return Ci(e,null,null,t),Di(e)}function Ei(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-Ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Di(e){if(50<Dd)throw Dd=0,Od=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Oi={};function ki(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 Ai(e,t,n,r){return new ki(e,t,n,r)}function ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mi(e,t){var n=e.alternate;return n===null?(n=Ai(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&0x47f00000,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 Ni(e,t){e.flags&=0x47f00002;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 Pi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)ji(r)&&(s=1);else if(typeof r==`string`)s=qm(e,n,ye.current)?26:e===`html`||e===`head`||e===`body`?27:5;else e:switch(r){case P:return e=Ai(31,n,t,a),e.elementType=P,e.lanes=o,e;case ee:return Fi(n.children,a,o,t);case k:s=8,a|=24;break;case te:return e=Ai(12,n,t,a|2),e.elementType=te,e.lanes=o,e;case M:return e=Ai(13,n,t,a),e.elementType=M,e.lanes=o,e;case re:return e=Ai(19,n,t,a),e.elementType=re,e.lanes=o,e;case ae:case se:return e=a|32,e=Ai(30,n,t,e),e.elementType=se,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case A:s=10;break e;case ne:s=9;break e;case j:s=11;break e;case ie:s=14;break e;case N:s=16,r=null;break e}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Fi(e,t,n,r){return e=Ai(7,e,r,t),e.lanes=n,e}function Ii(e,t,n){return e=Ai(6,e,null,t),e.lanes=n,e}function Li(e){var t=Ai(18,null,null,0);return t.stateNode=e,t}function Ri(e,t,n){return t=Ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zi=new WeakMap;function Bi(e,t){if(typeof e==`object`&&e){var n=zi.get(e);return n===void 0?(t={value:e,source:t,stack:Ne(t)},zi.set(e,t),t):n}return{value:e,source:t,stack:Ne(t)}}var Vi=[],Hi=0,Ui=null,Wi=0,Gi=[],Ki=0,qi=null,Ji=1,Yi=``;function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Ui,Ui=e,Wi=t}function Zi(e,t,n){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,qi=e;var r=Ji;e=Yi;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var a=32-Ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ji=1<<32-Ze(t)+i|n<<i|r,Yi=a+e}else Ji=1<<a|n<<i|r,Yi=e}function Qi(e){e.return!==null&&(Xi(e,1),Zi(e,1,0))}function $i(e){for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null;for(;e===qi;)qi=Gi[--Ki],Gi[Ki]=null,Yi=Gi[--Ki],Gi[Ki]=null,Ji=Gi[--Ki],Gi[Ki]=null}function ea(e,t){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,Ji=t.id,Yi=t.overflow,qi=e}var ta=null,na=null,H=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(Bi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[xt]=e,t[St]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<Rf.length;n++)$(Rf[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),rn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),cn(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||$f(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ta=e.return;ta;)switch(ta.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ta=ta.return}}function la(e){if(e!==ta)return!1;if(!H)return ca(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&na&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=dm(e)}else t===27?(t=na,Sp(e.type)?(e=um,um=null,na=e):na=t):na=ta?lm(e.stateNode.nextSibling):null;return!0}function ua(){na=ta=null,H=!1}function da(){var e=ra;return e!==null&&(ud===null?ud=e:ud.push.apply(ud,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=_e(null),ma=null,ha=null;function ga(e,t,n){L(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,ve(pa)}function va(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 ya(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;e: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),va(o.return,n,e),r||(s=null);break e}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),va(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),va(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 ba(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;zr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Se.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function xa(e){for(e=e.firstContext;e!==null;){if(!zr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ca(e){return Ta(ma,e)}function wa(e,t){return ma===null&&Sa(e),Ta(e,t)}function Ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ea=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()})}},Da=t.unstable_scheduleCallback,Oa=t.unstable_NormalPriority,ka={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Aa(){return{controller:new Ea,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function Ma(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 Na=null;function Pa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Fa=null,Ia=0,La=0,Ra=null;function za(e,t){if(Fa===null){var n=Fa=[];Ia=0,La=Nf(),Ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ia++,t.then(Ba,Ba),t}function Ba(){if(--Ia===0&&(Na=null,Fa!==null)){Ra!==null&&(Ra.status=`fulfilled`);var e=Fa;Fa=null,La=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Va(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 Ha=F.S;F.S=function(e,t){if(pd=ze(),typeof t==`object`&&t&&typeof t.then==`function`&&za(e,t),Na!==null)for(var n=yf;n!==null;)Ma(n,Na),n=n.next;if(n=e.types,n!==null){for(var r=yf;r!==null;)Ma(r,n),r=r.next;if(La!==0){r=Na,r===null&&(r=Na=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ha!==null&&Ha(e,t)};var Ua=_e(null);function Wa(){var e=Ua.current;return e===null?X.pooledCache:e}function Ga(e,t){t===null?L(Ua,Ua.current):L(Ua,t.pool)}function Ka(){var e=Wa();return e===null?null:{parent:ka._currentValue,pool:e}}var qa=Error(i(460)),Ja=Error(i(474)),Ya=Error(i(542)),Xa={then:function(){}};function Za(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_n,_n),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(_n,_n);else{if(e=X,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,no(e),e}throw eo=t,qa}}function $a(e){try{return(0,e._init)(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,qa):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===qa||e===Ya)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),Qa(ro,e,t)}function oo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function so(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function co(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=Mi(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|=0x8000002,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|=0x8000002),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ii(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===ee?(e=d(e,t,n.props.children,r,n.key),oo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===N&&$a(i)===t.type)?(t=a(t,n.props),oo(t,n),t.return=e,t):(t=Pi(n.type,n.key,n.props,null,e.mode,r),oo(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=Ri(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=Fi(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=Ii(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case D:return n=Pi(t.type,t.key,t.props,null,e.mode,n),oo(n,t),n.return=e,n;case O:return t=Ri(t,e.mode,n),t.return=e,t;case N:return t=$a(t),f(e,t,n)}if(pe(t)||ue(t))return t=Fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===A)return f(e,wa(e,t),n);so(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 D:return n.key===i?l(e,t,n,r):null;case O:return n.key===i?u(e,t,n,r):null;case N:return n=$a(n),p(e,t,n,r)}if(pe(n)||ue(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===A)return p(e,t,wa(e,n),r);so(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 D:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case O:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case N:return r=$a(r),m(e,t,n,r,i)}if(pe(r)||ue(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ao(r),i);if(r.$$typeof===A)return m(e,t,n,wa(t,r),i);so(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),H&&Xi(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 H&&Xi(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)}),H&&Xi(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),H&&Xi(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 H&&Xi(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)}),H&&Xi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ee&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:e:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ee){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),oo(c,o),c.return=e,e=c;break e}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===N&&$a(l)===r.type){n(e,r.sibling),c=a(r,o.props),oo(c,o),c.return=e,e=c;break e}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Fi(o.props.children,e.mode,c,o.key),oo(c,o),c.return=e,e=c):(c=Pi(o.type,o.key,o.props,null,e.mode,c),oo(c,o),c.return=e,e=c)}return s(e);case O:e:{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 e}n(e,r);break}t(e,r),r=r.sibling}c=Ri(o,e.mode,c),c.return=e,e=c}return s(e);case N:return o=$a(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(ue(o)){if(l=ue(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,ao(o),c);if(o.$$typeof===A)return _(e,r,wa(e,o),c);so(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=Ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===qa||t===Ya)throw t;var a=Ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var lo=co(!0),uo=co(!1),fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(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 ho(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function go(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=Di(e),Ei(e,null,n),t}return Ci(e,r,t,n),Di(e)}function _o(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,ht(e,n)}}function vo(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 yo=!1;function bo(){if(yo){var e=Ra;if(e!==null)throw e}}function xo(e,t,n,r){yo=!1;var i=e.updateQueue;fo=!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?(Q&f)===f:(r&f)===f){f!==0&&f===La&&(yo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{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 e}d=m;break e;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 e;d=T({},d,f);break e;case 2:fo=!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),id|=o,e.lanes=o,e.memoizedState=d}}function So(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)So(n[e],t)}var wo=_e(null),To=_e(0);function Eo(e,t){e=nd,L(To,e),L(wo,t),nd=e|t.baseLanes}function Do(){L(To,nd),L(wo,wo.current)}function Oo(){nd=To.current,ve(wo),ve(To)}var U=_e(null),W=null;function ko(e){var t=e.alternate;L(No,No.current&1),L(U,e),W===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(W=e)}function G(e){L(No,No.current),L(U,e),W===null&&(W=e)}function Ao(e){e.tag===22?(L(No,No.current),L(U,e),W===null&&(W=e)):jo()}function jo(){L(No,No.current),L(U,U.current)}function Mo(e){ve(U),W===e&&(W=null),ve(No)}var No=_e(0);function Po(e,t){L(U,U.current),L(No,t)}function Fo(e){ve(No),ve(U),W===e&&(W=null)}function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(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 Lo=0,K=null,Ro=null,zo=null,Bo=!1,Vo=!1,Ho=!1,Uo=0,Wo=0,Go=null,Ko=0;function qo(){throw Error(i(321))}function Jo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Yo(e,t,n,r,i,a){return Lo=a,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?fc:pc,Ho=!1,a=n(r,i),Ho=!1,Vo&&(a=Zo(t,n,r,i)),Xo(e),a}function Xo(e){F.H=dc;var t=Ro!==null&&Ro.next!==null;if(Lo=0,zo=Ro=K=null,Bo=!1,Wo=0,Go=null,t)throw Error(i(300));e===null||Oc||(e=e.dependencies,e!==null&&xa(e)&&(Oc=!0))}function Zo(e,t,n,r){K=e;var a=0;do{if(Vo&&(Go=null),Wo=0,Vo=!1,25<=a)throw Error(i(301));if(a+=1,zo=Ro=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=mc,o=t(n,r)}while(Vo);return o}function Qo(){var e=F.H,t=e.useState()[0];return t=typeof t.then==`function`?as(t):t,e=e.useState()[0],(Ro===null?null:Ro.memoizedState)!==e&&(K.flags|=1024),t}function $o(){var e=Uo!==0;return Uo=0,e}function es(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ts(e){if(Bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bo=!1}Lo=0,zo=Ro=K=null,Vo=!1,Wo=Uo=0,Go=null}function ns(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zo===null?K.memoizedState=zo=e:zo=zo.next=e,zo}function rs(){if(Ro===null){var e=K.alternate;e=e===null?null:e.memoizedState}else e=Ro.next;var t=zo===null?K.memoizedState:zo.next;if(t!==null)zo=t,Ro=e;else{if(e===null)throw K.alternate===null?Error(i(467)):Error(i(310));Ro=e,e={memoizedState:Ro.memoizedState,baseState:Ro.baseState,baseQueue:Ro.baseQueue,queue:Ro.queue,next:null},zo===null?K.memoizedState=zo=e:zo=zo.next=e}return zo}function is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function as(e){var t=Wo;return Wo+=1,Go===null&&(Go=[]),e=Qa(Go,e,t),t=K,(zo===null?t.memoizedState:zo.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?fc:pc),e}function os(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return as(e);if(e.$$typeof===ce)return;if(e.$$typeof===A)return Ca(e)}throw Error(i(438,String(e)))}function ss(e){var t=null,n=K.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=K.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=is(),K.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]=oe;return t.index++,n}function cs(e,t){return typeof t==`function`?t(e):t}function ls(e){return us(rs(),Ro,e)}function us(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?(Lo&f)===f:(Q&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===La&&(d=!0);else if((Lo&p)===p){u=u.next,p===La&&(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,K.lanes|=p,id|=p;f=u.action,Ho&&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,K.lanes|=f,id|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!zr(o,e.memoizedState)&&(Oc=!0,d&&(n=Ra,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 ds(e){var t=rs(),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);zr(o,t.memoizedState)||(Oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fs(e,t,n){var r=K,a=rs(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!zr((Ro||a).memoizedState,n);if(s&&(a.memoizedState=n,Oc=!0),a=a.queue,Ls(hs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||zo!==null&&!!(zo.memoizedState.tag&1),Ms(e?9:8,{destroy:void 0},ms.bind(null,r,a,n,t),null),e){if(r.flags|=2048,X===null)throw Error(i(349));o||Lo&127||ps(r,t,n)}return n}function ps(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=K.updateQueue,t===null?(t=is(),K.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ms(e,t,n,r){t.value=n,t.getSnapshot=r,gs(t)&&_s(e)}function hs(e,t,n){return n(function(){gs(t)&&_s(e)})}function gs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function _s(e){var t=Ti(e,2);t!==null&&Md(t,e,2)}function vs(e){var t=ns();if(typeof e==`function`){var n=e;if(e=n(),Ho){Xe(!0);try{n()}finally{Xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:e},t}function ys(e,t,n,r){return e.baseState=n,us(e,Ro,typeof r==`function`?r:cs)}function bs(e,t,n,r,a){if(cc(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)}};F.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,xs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function xs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=F.T,o={};o.types=a===null?null:a.types,F.T=o;try{var s=n(i,r),c=F.S;c!==null&&c(o,s),Ss(e,t,s)}catch(n){ws(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),F.T=a}}else try{a=n(i,r),Ss(e,t,a)}catch(n){ws(e,t,n)}}function Ss(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Cs(e,t,n)},function(n){return ws(e,t,n)}):Cs(e,t,n)}function Cs(e,t,n){t.status=`fulfilled`,t.value=n,Ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,xs(e,n)))}function ws(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ts(t),t=t.next;while(t!==r)}e.action=null}function Ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Es(e,t){return t}function Ds(e,t){if(H){var n=X.formState;if(n!==null){e:{var r=K;if(H){if(na){t:{for(var i=na,a=ia;i.nodeType!==8;)if(!a||(i=lm(i.nextSibling),i===null)){i=null;break t}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){na=lm(i.nextSibling),r=i.data===`F!`;break e}}oa(r)}r=!1}r&&(t=n[0])}}return n=ns(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:t},n.queue=r,n=ac.bind(null,K,r),r.dispatch=n,r=vs(!1),a=sc.bind(null,K,!1,r.queue),r=ns(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=bs.bind(null,K,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Os(e){return ks(rs(),Ro,e)}function ks(e,t,n){if(t=us(e,t,Es)[0],e=ls(cs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=as(t)}catch(e){throw e===qa?Ya:e}else r=t;t=rs();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(K.flags|=2048,Ms(9,{destroy:void 0},As.bind(null,i,n),null)),[r,a,e]}function As(e,t){e.action=t}function js(e){var t=rs(),n=Ro;if(n!==null)return ks(t,n,e);rs(),t=t.memoizedState,n=rs();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ms(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=K.updateQueue,t===null&&(t=is(),K.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 Ns(){return rs().memoizedState}function Ps(e,t,n,r){var i=ns();K.flags|=e,i.memoizedState=Ms(1|t,{destroy:void 0},n,r===void 0?null:r)}function Fs(e,t,n,r){var i=rs();r=r===void 0?null:r;var a=i.memoizedState.inst;Ro!==null&&r!==null&&Jo(r,Ro.memoizedState.deps)?i.memoizedState=Ms(t,a,n,r):(K.flags|=e,i.memoizedState=Ms(1|t,a,n,r))}function Is(e,t){Ps(8390656,8,e,t)}function Ls(e,t){Fs(2048,8,e,t)}function Rs(e){K.flags|=4;var t=K.updateQueue;if(t===null)t=is(),K.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function zs(e){var t=rs().memoizedState;return Rs({ref:t,nextImpl:e}),function(){if(Xu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Bs(e,t){return Fs(4,2,e,t)}function Vs(e,t){return Fs(4,4,e,t)}function Hs(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 Us(e,t,n){n=n==null?null:n.concat([e]),Fs(4,4,Hs.bind(null,t,e),n)}function Ws(){}function Gs(e,t){var n=rs();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Jo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ks(e,t){var n=rs();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Jo(t,r[1]))return r[0];if(r=e(),Ho){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r}function qs(e,t,n){return n===void 0||Lo&0x40000000&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=Ad(),K.lanes|=e,id|=e,n)}function Js(e,t,n,r){return zr(n,t)?n:wo.current===null?!(Lo&106)||Lo&0x40000000&&!(Q&261930)?(Oc=!0,e.memoizedState=n):(e=Ad(),K.lanes|=e,id|=e,t):(e=qs(e,n,r),zr(e,t)||(Oc=!0),e)}function Ys(e,t,n,r,i){var a=I.p;I.p=a!==0&&8>a?a:8;var o=F.T,s={};s.types=o===null?null:o.types,F.T=s,sc(e,!1,t,n);try{var c=i(),l=F.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?oc(e,t,Va(c,r),kd(e)):oc(e,t,r,kd(e))}catch(n){oc(e,t,{then:function(){},status:`rejected`,reason:n},kd())}finally{I.p=a,o!==null&&s.types!==null&&(o.types=s.types),F.T=o}}function Xs(){}function Zs(e,t,n,r){if(e.tag!==5)throw Error(i(476));Ys(e,Qs(e).queue,t,me,n===null?Xs:function(){return $s(e),n(r)})}function Qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $s(e){var t=Qs(e);t.next===null&&(t=e.alternate.memoizedState),oc(e,t.next.queue,{},kd())}function ec(){return Ca(sh)}function tc(){return rs().memoizedState}function nc(){return rs().memoizedState}function rc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kd();e=ho(n);var r=go(t,e,n);r!==null&&(Md(r,t,n),_o(r,t,n)),t={cache:Aa()},e.payload=t;return}t=t.return}}function ic(e,t,n){var r=kd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cc(e)?lc(t,n):(n=wi(e,t,n,r),n!==null&&(Md(n,e,r),uc(n,t,r)))}function ac(e,t,n){oc(e,t,n,kd())}function oc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(e))lc(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,zr(s,o))return Ci(e,t,i,0),X===null&&Si(),!1}catch{}if(n=wi(e,t,i,r),n!==null)return Md(n,e,r),uc(n,t,r),!0}return!1}function sc(e,t,n,r){if(r={lane:2,revertLane:Nf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},cc(e)){if(t)throw Error(i(479))}else t=wi(e,n,r,2),t!==null&&Md(t,e,2)}function cc(e){var t=e.alternate;return e===K||t!==null&&t===K}function lc(e,t){Vo=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}var dc={readContext:Ca,use:os,useCallback:qo,useContext:qo,useEffect:qo,useImperativeHandle:qo,useLayoutEffect:qo,useInsertionEffect:qo,useMemo:qo,useReducer:qo,useRef:qo,useState:qo,useDebugValue:qo,useDeferredValue:qo,useTransition:qo,useSyncExternalStore:qo,useId:qo,useHostTransitionStatus:qo,useFormState:qo,useActionState:qo,useOptimistic:qo,useMemoCache:qo,useCacheRefresh:qo,useEffectEvent:qo},fc={readContext:Ca,use:os,useCallback:function(e,t){return ns().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:Is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ps(4194308,4,Hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ps(4194308,4,e,t)},useInsertionEffect:function(e,t){Ps(4,2,e,t)},useMemo:function(e,t){var n=ns();t=t===void 0?null:t;var r=e();if(Ho){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ns();if(n!==void 0){var i=n(t);if(Ho){Xe(!0);try{n(t)}finally{Xe(!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=ic.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=ns();return e={current:e},t.memoizedState=e},useState:function(e){e=vs(e);var t=e.queue,n=ac.bind(null,K,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ws,useDeferredValue:function(e,t){return qs(ns(),e,t)},useTransition:function(){var e=vs(!1);return e=Ys.bind(null,K,e.queue,!0,!1),ns().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=K,a=ns();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),X===null)throw Error(i(349));Q&127||ps(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Is(hs.bind(null,r,o,e),[e]),r.flags|=2048,Ms(9,{destroy:void 0},ms.bind(null,r,o,n,t),null),n},useId:function(){var e=ns(),t=X.identifierPrefix;if(H){var n=Yi,r=Ji;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Uo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Ko++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ec,useFormState:Ds,useActionState:Ds,useOptimistic:function(e){var t=ns();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=sc.bind(null,K,!0,n),n.dispatch=t,[e,t]},useMemoCache:ss,useCacheRefresh:function(){return ns().memoizedState=rc.bind(null,K)},useEffectEvent:function(e){var t=ns(),n={impl:e};return t.memoizedState=n,function(){if(Xu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},pc={readContext:Ca,use:os,useCallback:Gs,useContext:Ca,useEffect:Ls,useImperativeHandle:Us,useInsertionEffect:Bs,useLayoutEffect:Vs,useMemo:Ks,useReducer:ls,useRef:Ns,useState:function(){return ls(cs)},useDebugValue:Ws,useDeferredValue:function(e,t){return Js(rs(),Ro.memoizedState,e,t)},useTransition:function(){var e=ls(cs)[0],t=rs().memoizedState;return[typeof e==`boolean`?e:as(e),t]},useSyncExternalStore:fs,useId:tc,useHostTransitionStatus:ec,useFormState:Os,useActionState:Os,useOptimistic:function(e,t){return ys(rs(),Ro,e,t)},useMemoCache:ss,useCacheRefresh:nc,useEffectEvent:zs},mc={readContext:Ca,use:os,useCallback:Gs,useContext:Ca,useEffect:Ls,useImperativeHandle:Us,useInsertionEffect:Bs,useLayoutEffect:Vs,useMemo:Ks,useReducer:ds,useRef:Ns,useState:function(){return ds(cs)},useDebugValue:Ws,useDeferredValue:function(e,t){var n=rs();return Ro===null?qs(n,e,t):Js(n,Ro.memoizedState,e,t)},useTransition:function(){var e=ds(cs)[0],t=rs().memoizedState;return[typeof e==`boolean`?e:as(e),t]},useSyncExternalStore:fs,useId:tc,useHostTransitionStatus:ec,useFormState:js,useActionState:js,useOptimistic:function(e,t){var n=rs();return Ro===null?(n.baseState=e,[e,n.queue.dispatch]):ys(n,Ro,e,t)},useMemoCache:ss,useCacheRefresh:nc,useEffectEvent:zs};function hc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kd(),i=ho(r);i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Md(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kd(),i=ho(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Md(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kd(),r=ho(n);r.tag=2,t!=null&&(r.callback=t),t=go(e,r,n),t!==null&&(Md(t,e,n),_o(t,e,n))}};function _c(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?!Br(n,r)||!Br(i,a):!0}function vc(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&&gc.enqueueReplaceState(t,t.state,null)}function yc(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=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function bc(e){vi(e)}function xc(e){console.error(e)}function Sc(e){vi(e)}function Cc(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function q(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function wc(e,t,n){return n=ho(n),n.tag=3,n.payload={element:null},n.callback=function(){Cc(e,t)},n}function J(e){return e=ho(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(){q(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){q(t,n,r),typeof i!=`function`&&(gd===null?gd=new Set([this]):gd.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&&ba(t,n,a,!0),n=U.current,n!==null){switch(n.tag){case 31:case 13:case 19:return W===null?Wd():n.alternate===null&&rd===0&&(rd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),pf(e,r,a)),!1;case 22:return n.flags|=65536,r===Xa?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)),pf(e,r,a)),!1}throw Error(i(435,n.tag))}return pf(e,r,a),Wd(),!1}if(H)return t=U.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(Bi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Bi(r,n),a=wc(e.stateNode,r,a),vo(e,a),rd!==4&&(rd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(Bi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Bi(o,n),ld===null?ld=[o]:ld.push(o),rd!==4&&(rd=2),t===null)return!0;r=Bi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=wc(n.stateNode,r,e),vo(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`&&(gd===null||!gd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=J(a),Tc(a,e,n,r),vo(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 Y(e,t,n,r){t.child=e===null?uo(t,null,n,r):lo(t,e.child,n,r)}function kc(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 Sa(t),r=Yo(e,t,n,o,a,i),s=$o(),e!==null&&!Oc?(es(e,t,i),rl(e,t,i)):(H&&s&&Qi(t),t.flags|=1,Y(e,t,r,i),t.child)}function Ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ji(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,jc(e,t,a,r,i)):(e=Pi(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?Br:n,n(o,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=Mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(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 zc(e,t,n,r,i)}function Mc(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 Pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ga(t,a===null?null:a.cachePool),a===null?Do():Eo(t,a),Ao(t);else return r=t.lanes=536870912,Pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ga(t,null),Do(),jo()):(Ga(t,a.cachePool),Eo(t,a),jo(),t.memoizedState=null);return Y(e,t,i,n),t.child}function Nc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pc(e,t,n,r,i){var a=Wa();return a=a===null?null:{parent:ka._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ga(t,null),Do(),Ao(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Fc(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 Ic(e,t,n){return lo(t,e.child,null,n),e=Fc(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function Lc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=Fc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Nc(null,e);if(G(t),(e=na)?(e=am(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(G(t),a){if(t.flags&256)t.flags&=-257,t=Ic(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||ba(e,t,n,!1),a=(n&e.childLanes)!==0,Oc||a){if(wo.current===null){if(r=X,r!==null&&(s=z(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ti(e,s),Md(r,e,s),Dc;Wd()}t=Ic(e,t,n)}else e=o.treeContext,na=lm(s.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Fc(t,r),t.flags|=0x8001000;return t}return e=Mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Rc(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 zc(e,t,n,r,i){return Sa(t),n=Yo(e,t,n,r,void 0,i),r=$o(),e!==null&&!Oc?(es(e,t,i),rl(e,t,i)):(H&&r&&Qi(t),t.flags|=1,Y(e,t,n,i),t.child)}function Bc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=Zo(t,r,n,i),Xo(e),r=$o(),e!==null&&!Oc?(es(e,t,a),rl(e,t,a)):(H&&r&&Qi(t),t.flags|=1,Y(e,t,n,a),t.child)}function Vc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=Oi,o=n.contextType;typeof o==`object`&&o&&(a=Ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=gc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},po(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):Oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(hc(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&&gc.enqueueReplaceState(a,a.state,null),xo(t,r,a,i),bo(),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=yc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Oi,typeof u==`object`&&u&&(o=Ca(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)&&vc(t,a,r,o),fo=!1;var f=t.memoizedState;a.state=f,xo(t,r,a,i),bo(),l=t.memoizedState,s||f!==l||fo?(typeof d==`function`&&(hc(t,n,d,r),l=t.memoizedState),(c=fo||_c(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,mo(e,t),o=t.memoizedProps,u=yc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Oi,typeof l==`object`&&l&&(c=Ca(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)&&vc(t,a,r,c),fo=!1,f=t.memoizedState,a.state=f,xo(t,r,a,i),bo();var p=t.memoizedState;o!==d||f!==p||fo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(hc(t,n,s,r),p=t.memoizedState),(u=fo||_c(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xa(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,Rc(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=lo(t,e.child,null,i),t.child=lo(t,null,n,i)):Y(e,t,n,i),t.memoizedState=a.state,e=t.child):e=rl(e,t,i),e}function Hc(e,t,n,r){return ua(),t.flags|=256,Y(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wc(e){return{baseLanes:e,cachePool:Ka()}}function Gc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=sd),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:!!(No.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(i?ko(t):jo(),(e=na)?(e=am(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(jo(),i=t.mode,a=Jc({mode:`hidden`,children:a},i),r=Fi(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,Nc(null,r)):(ko(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?(jo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Mi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&0x47f00000,c===null?(i=Fi(i,a,n,null),i.flags|=2):i=Mi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Nc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Wc(n):(a=i.cachePool,a===null?a=Ka():(s=ka._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,Nc(e.child,r)):(ko(t),n=e.child,e=n.sibling,n=Mi(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=Ai(22,e,null,t),e.lanes=0,e}function Yc(e,t,n){return lo(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?(ko(t),t.flags&=-257,Yc(e,t,c)):t.memoizedState===null?(jo(),o=a.fallback,s=t.mode,a=Jc({mode:`visible`,children:a.children},s),o=Fi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,lo(t,e.child,null,c),a=t.child,a.memoizedState=Wc(c),a.childLanes=Gc(e,r,c),t.memoizedState=Uc,Nc(null,a)):(jo(),t.child=e.child,t.flags|=128,null);if(ko(t),sm(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,fa({value:a,source:null,stack:null})),Yc(e,t,c)}if(Oc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,Oc||r){if(wo.current!==null)return Yc(e,t,c);if(r=X,r!==null&&(a=z(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ti(e,a),Md(r,e,a),Dc;return om(o)||Wd(),Yc(e,t,c)}return om(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,na=lm(o.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=qc(t,a.children),t.flags|=0x8001000,t)}function Zc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function Qc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Io(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=No.current;if(t.flags&128)return Po(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Po(t,o),i===`backwards`&&e!==null?(el(e),Y(e,t,r,n),el(e)):Y(e,t,r,n),r=H?Wi:0,!s&&e!==null&&e.flags&128)e: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;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;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&&Io(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 ga(t,t.type,r.value),Y(e,t,r.children,n),t.child}function rl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),id|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(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=Mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mi(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&&xa(e)))}function al(e,t,n){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),ga(t,ka,e.memoizedState.cache),ua();break;case 27:case 5:Te(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,G(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return ko(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Kc(e,t,n):(ko(t),e=rl(e,t,n),e===null?null:e.sibling)}ko(t);break;case 19:if(t.flags&128)return tl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(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),Po(t,No.current),r)break;return null;case 22:return t.lanes=0,Mc(e,t,n,t.pendingProps);case 24:ga(t,ka,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,H&&t.flags&1048576&&Zi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e==`function`)ji(e)?(r=yc(e,r),t.tag=1,t=Vc(null,t,e,r,n)):(t.tag=0,t=zc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===j){t.tag=11,t=kc(null,t,e,r,n);break e}if(a===ie){t.tag=14,t=Ac(null,t,e,r,n);break e}if(a===A){t.tag=10,t.type=e,t=nl(null,t,n);break e}}throw t=fe(e)||e,Error(i(306,t,``))}}return t;case 0:return zc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=yc(r,t.pendingProps),Vc(e,t,r,a,n);case 3:e:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,mo(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,ka,r),r!==o.cache&&ya(t,[ka],n,!0),bo(),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=Hc(e,t,r,n);break e}if(r!==a){a=Bi(Error(i(424)),t),fa(a),t=Hc(e,t,r,n);break e}for(e=t.stateNode.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,na=lm(e.firstChild),ta=t,H=!0,ra=null,ia=!0,n=uo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|0x8001000,n=n.sibling}else{if(ua(),r===a){t=rl(e,t,n);break e}Y(e,t,r,n)}t=t.child}return t;case 26:return Rc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(t.stateNode=fp(t.type,t.pendingProps,xe.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&H&&(r=t.stateNode=hm(t.type,t.pendingProps,xe.current),ta=t,ia=!0,a=na,Sp(t.type)?(um=a,na=lm(r.firstChild)):na=a),Y(e,t,t.pendingProps.children,n),Rc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=na)&&(r=rm(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ta=t,na=lm(r.firstChild),ia=!1,a=!0)),a||oa(t)),Te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,pp(a,o)?r=null:s!==null&&pp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Yo(e,t,Qo,null,null,n),sh._currentValue=a),Rc(e,t),Y(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=na)&&(n=im(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ta=t,na=null,e=!0)),e||oa(t)),null;case 13:return Kc(e,t,n);case 4:return Ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Y(e,t,r,n),t.child;case 11:return kc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Rc(e,t),Y(e,t,r,n),t.child;case 8:case 12:return Y(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,Sa(t),a=Ca(a),r=r(a),t.flags|=1,Y(e,t,r,n),t.child;case 14:return Ac(e,t,t.type,t.pendingProps,n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 19:return tl(e,t,n);case 31:return Lc(e,t,n);case 22:return Mc(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(ka),e===null?(a=Wa(),a===null&&(a=X,o=Aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},po(t),ga(t,ka,a)):((e.lanes&n)!==0&&(mo(e,t),xo(t,null,null,n),bo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,ka,r),r!==a.cache&&ya(t,[ka],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,ka,r))),Y(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:H&&Qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Rc(e,t),Y(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?Jm(t,r):Jm(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(Vd())e.flags|=8192;else throw eo=Xa,Ja}}else e.flags&=-16777217}function ll(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Vd())e.flags|=8192;else throw eo=Xa,Ja}}function ul(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:dt(),e.lanes|=t,cd|=t)}function dl(e,t){if(!H)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&0x47f00000,r|=i.flags&0x47f00000,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($i(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14: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),_a(ka),we(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?sl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),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(Ee(t),n=xe.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=ye.current,la(t)?sa(t,e):(e=hm(a,r,n),t.stateNode=e,sl(t))}return fl(t),t.subtreeFlags&=-33554433,null;case 5:if(Ee(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=ye.current,la(t))sa(t,o);else{var s=lp(xe.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[xt]=t,o[St]=r;e: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;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(t.stateNode=o,np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break;case`img`:r=!0;break;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=xe.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ta,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||$f(e.nodeValue,n)),e||oa(t,!0)}else e=lp(e).createTextNode(r),e[xt]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(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[xt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(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=la(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[xt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(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 we(),e===null&&Uf(t.stateNode.containerInfo),t.flags|=67108864,fl(t),null;case 10:return _a(t.type),fl(t),null;case 19:if(Fo(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(rd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Io(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;)Ni(n,e),n=n.sibling;return Po(t,No.current&1|2),H&&Xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ze()>md&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Io(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&&!H)return fl(t),null}else 2*ze()-r.renderingStartTime>md&&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;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ze(),e.sibling=null,o=No.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||H?Po(t,o):(n=o,L(U,t),L(No,n),W===null&&(W=t)),H&&Xi(t,r.treeForkCount),e}return fl(t),null;case 22:case 23:return Mo(t),Oo(),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&&ve(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(ka),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($i(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(ka),we(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(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 we(),null;case 10:return _a(t.type),null;case 22:case 23:return Mo(t),Oo(),e!==null&&ve(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(ka),null;default:return null}}function hl(e,t){switch($i(t),t.tag){case 3:_a(ka),we();break;case 26:case 27:case 5:Ee(t);break;case 4:we();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:Fo(t);break;case 10:_a(t.type);break;case 22:case 23:Mo(t),Oo(),e!==null&&ve(Ua);break;case 24:_a(ka)}}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){ff(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){ff(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){ff(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Co(t,n)}catch(t){ff(e,e.return,t)}}}function yl(e,t,n){n.props=yc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ff(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=hi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);p(e.child,!1,Qp,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){ff(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){ff(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){ff(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++)em(e.stateNode,t[n])}function Cl(e){for(var t=e.return;t!==null&&(El(t)&&em(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function wl(e){for(var t=e.return;t!==null&&(El(t)&&tm(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{switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ff(e,e.return,t)}}function Ol(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[St]=t}catch(t){ff(e,e.return,t)}}function kl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Al(e){e: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&&Sp(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;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=_n)),Sl(e,r),B=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Sp(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),B=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,Sp(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]);np(t,r,n),t[xt]=e,t[St]=n}catch(t){ff(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=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Pl=!0,Tp(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?Ep(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=_i(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=hi(r,n),a=_i(r.default,n.paired?r.share:r.enter);a===`none`?Ul(e):Bl(e,i,a,null,!1)?(Ul(e),n.paired||t||jd(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=_i(n.default,n.share);if(a!==`none`&&(Bl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,jd(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=hi(t,e.stateNode),r=Fl===null?void 0:Fl.get(n),i=_i(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Bl(e,n,i,null,!1)?r===void 0?jd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Fl.delete(n),jd(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=hi(t,e.stateNode);t=_i(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=Op(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&&Tp(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=hi(n,r),a=_i(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}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||jd(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,sp=gh,e=Gr(e),Kr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{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 e}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;t: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 t;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(cp={focusedElem:e,selectionRange:r},gh=!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=yc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){ff(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(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=hi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=_i(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){ff(n,n.return,e)}else{var i=yc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ff(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:case 1:t=n.child.stateNode}try{Co(e,t)}catch(e){ff(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=gf.bind(null,n),cm(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){ff(e,e.return,t)}mu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,B=!0}catch(t){ff(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){ff(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;){e:{var n=e,r=t;switch(n.tag){case 4:pu(n,r);break e;case 22:n.memoizedState===null&&mu(n,r);break e;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&&At(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(Ye&&typeof Ye.onCommitFiberUnmount==`function`)try{Ye.onCommitFiberUnmount(Je,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;Sp(n.type)&&(gu=n.stateNode,_u=!1),vu(e,t,n),gm(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),B=!0}catch(e){ff(n,t,e)}else try{gu.removeChild(n.stateNode),B=!0}catch(e){ff(n,t,e)}}break;case 18:gu!==null&&(_u?(e=gu,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(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{Hh(e)}catch(e){ff(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{Hh(e)}catch(e){ff(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=_f.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;e:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){gu=l.stateNode,_u=!1;break e}break;case 5:gu=l.stateNode,_u=!1;break e;case 3:case 4:gu=l.stateNode.containerInfo,_u=!0;break e}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=fp(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Ot]||r[xt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),np(r,t,n),r[xt]=e,Ft(r),t=r;break e;case`link`:if(o=Gm(`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 t}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Gm(`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 t}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[xt]=e,Ft(r),t=r}e.stateNode=t}}else $l||Km(o,e.type,e.stateNode)}else e.stateNode=Bm(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||Km(o,e.type,e.stateNode):Bm(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{ln(t,``),B=!0}catch(t){ff(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,B=!0}catch(t){ff(e,e.return,t)}}break;case 3:if(B=!1,Wm=null,o=Tu,Tu=bm(t.containerInfo),wu(t,e,n),Tu=o,Du(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){ff(e,e.return,t)}nu&&(nu=!1,Ou(e)),B=!1;break;case 4:a=tu,tu=$l,r=Gt(),o=Tu,Tu=bm(e.stateNode.containerInfo),wu(t,e,n),Du(e),Tu=o,B&&ou&&(su=!0),B=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)&&(fd=ze()),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=Gt(),o=ou,s=(n&335544064)===n,c=e.memoizedProps,ou=s&&_i(c.default,c.update)!==`none`,wu(t,e,n),Du(e),s&&r!==null&&B&&(e.flags|=4),ou=o,B=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&&(ln(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){ff(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,gh=!0,t.reset(),gh=!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];Ep(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=hi(a,o),o=hi(n.memoizedProps,o);var s=_i(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?(jd(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&&gm(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){ff(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++)So(l[i],c)}catch(e){ff(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||Km(bm(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&&ja(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&&ja(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&&ja(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){ff(t,t.return,e)}}else Iu(e,t,n,r);break;case 31: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&&Zm(n,e)):Qm(n,Tu,e.memoizedState,e.memoizedProps));break;case 5:Vu(e,t,n),e.flags&Bu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=Tu;Tu=bm(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: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:ja(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,iu=r;else for(n=e;iu!==null;){r=iu;var i=r.sibling,a=r.return;if(hu(r),r===n){iu=null;break}if(i!==null){i.return=a,iu=i;break}iu=a}}}var Ju={getCacheForType:function(e){var t=Ca(ka),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(ka).controller.signal}},Yu=typeof WeakMap==`function`?WeakMap:Map,Xu=0,X=null,Z=null,Q=0,Zu=0,Qu=null,$u=!1,ed=!1,td=!1,nd=0,rd=0,id=0,ad=0,od=0,sd=0,cd=0,ld=null,ud=null,dd=!1,fd=0,pd=0,md=1/0,hd=null,gd=null,_d=0,vd=null,yd=null,bd=0,xd=0,Sd=null,Cd=null,wd=null,Td=null,Ed=null,Dd=0,Od=null;function kd(){return Xu&2&&Q!==0?Q&-Q:F.T===null?vt():Nf()}function Ad(){if(sd===0){if(!(Q&536870912)||H){var e=nt;nt<<=1,!(nt&3932160)&&(nt=262144),sd=e}else sd=536870912}return e=U.current,e!==null&&(e.flags|=32),sd}function jd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(hi(e.memoizedProps,n))),Td===null&&(Td=[]),Td.push(t.bind(null,r))}}function Md(e,t,n){(e===X&&(Zu===2||Zu===9)||e.cancelPendingCommit!==null)&&(zd(e,0),Id(e,Q,sd,!1)),R(e,n),Xu&2&&e===X||(e===X&&(!(Xu&2)&&(ad|=n),rd===4&&Id(e,Q,sd,!1)),Tf(e))}function Nd(e,t,n){if(Xu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ct(e,t),a=r?qd(e,t):Gd(e,t,!0),o=r;do{if(a===0){ed&&!r&&Id(e,t,0,!1);break}if(n=e.current.alternate,o&&!Fd(n))a=Gd(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;e:{var c=e;a=ld;var l=c.current.memoizedState.isDehydrated;if(l&&(zd(c,s).flags|=256),s=Gd(c,s,!1),s!==2&&s!==6){if(td&&!l){c.errorRecoveryDisabledLanes|=o,ad|=o,a=4;break e}o=ud,ud=a,o!==null&&(ud===null?ud=o:ud.push.apply(ud,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){zd(e,0),Id(e,t,0,!0);break}e:{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:Id(r,t,sd,!$u);break e;case 2:ud=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=fd+300-ze(),10<a)){if(Id(r,t,sd,!$u),st(r,0,!0)!==0)break e;bd=t,r.timeoutHandle=gp(Pd.bind(null,r,n,ud,hd,dd,t,sd,ad,cd,$u,o,`Throttled`,-0,0),a);break e}Pd(r,n,ud,hd,dd,t,sd,ad,cd,$u,o,null,-0,0)}break}}while(1);Tf(e)}function Pd(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:_n},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=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?fd-ze():(a&4194048)===a?pd-ze():0,m=eh(d,m),m!==null)?(bd=a,e.cancelPendingCommit=m(ef.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Id(e,a,o,!l)):ef(e,t,a,n,r,i,o,s,c,l,u,d)}function Fd(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(!zr(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 Id(e,t,n,r){t=lt(e,t),t&=~od,t&=~ad,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&mt(e,n,t)}function Ld(){return Xu&6?!0:(Ef(0,!1),!1)}function Rd(){if(Z!==null){if(Zu===0)var e=Z.return;else e=Z,ha=ma=null,ts(e),ro=null,io=0,e=Z;for(;e!==null;)hl(e.alternate,e),e=e.return;Z=null}}function zd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),bd=0,Rd(),X=e,Z=n=Mi(e.current,null),Q=t,Zu=0,Qu=null,$u=!1,ed=ct(e,t),td=!1,cd=sd=od=ad=id=rd=0,ud=ld=null,dd=!1,nd=lt(e,t),Si(),n}function Bd(e,t){K=null,F.H=dc,t===qa||t===Ya?(t=to(),Zu=3):t===Ja?(t=to(),Zu=4):Zu=t===Dc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Qu=t,Z===null&&(rd=1,Cc(e,Bi(t,e.current)))}function Vd(){var e=U.current;return e===null?!0:(Q&4194048)===Q?W===null:(Q&62914560)===Q||Q&536870912?e===W:!1}function Hd(){var e=F.H;return F.H=dc,e===null?dc:e}function Ud(){var e=F.A;return F.A=Ju,e}function Wd(){rd=4,$u||(Q&4194048)!==Q&&U.current!==null||(ed=!0),!(id&0x7ffffff)&&!(ad&0x7ffffff)||X===null||Id(X,Q,sd,!1)}function Gd(e,t,n){var r=Xu;Xu|=2;var i=Hd(),a=Ud();(X!==e||Q!==t)&&(hd=null,zd(e,t)),t=!1;var o=rd;e:do try{if(Zu!==0&&Z!==null){var s=Z,c=Qu;switch(Zu){case 8:Rd(),o=6;break e;case 3:case 2:case 9:case 6:U.current===null&&(t=!0);var l=Zu;if(Zu=0,Qu=null,Zd(e,s,c,l),n&&ed){o=0;break e}break;default:l=Zu,Zu=0,Qu=null,Zd(e,s,c,l)}}Kd(),o=rd;break}catch(t){Bd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,Xu=r,F.H=i,F.A=a,Z===null&&(X=null,Q=0,Si()),o}function Kd(){for(;Z!==null;)Yd(Z)}function qd(e,t){var n=Xu;Xu|=2;var r=Hd(),a=Ud();X!==e||Q!==t?(hd=null,md=ze()+500,zd(e,t)):ed=ct(e,t);e:do try{if(Zu!==0&&Z!==null){t=Z;var o=Qu;t:switch(Zu){case 1:Zu=0,Qu=null,Zd(e,t,o,1);break;case 2:case 9:if(Za(o)){Zu=0,Qu=null,Xd(t);break}t=function(){Zu!==2&&Zu!==9||X!==e||(Zu=7),Tf(e)},o.then(t,t);break e;case 3:Zu=7;break e;case 4:Zu=5;break e;case 7:Za(o)?(Zu=0,Qu=null,Xd(t)):(Zu=0,Qu=null,Zd(e,t,o,7));break;case 5:var s=null;switch(Z.tag){case 26:s=Z.memoizedState;case 5:case 27:var c=Z;if(s?Ym(s):c.stateNode.complete){Zu=0,Qu=null;var l=c.sibling;if(l!==null)Z=l;else{var u=c.return;u===null?Z=null:(Z=u,Qd(u))}break t}}Zu=0,Qu=null,Zd(e,t,o,5);break;case 6:Zu=0,Qu=null,Zd(e,t,o,6);break;case 8:Rd(),rd=6;break e;default:throw Error(i(462))}}Jd();break}catch(t){Bd(e,t)}while(1);return ha=ma=null,F.H=r,F.A=a,Xu=n,Z===null?(X=null,Q=0,Si(),rd):0}function Jd(){for(;Z!==null&&!Le();)Yd(Z)}function Yd(e){var t=ol(e.alternate,e,nd);e.memoizedProps=e.pendingProps,t===null?Qd(e):Z=t}function Xd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bc(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=Bc(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:ts(t);var r=t;r===ta&&(H?(ca(r),r.tag===5&&r.stateNode!=null&&(na=r.stateNode)):(ca(r),H=!0));default:hl(n,t),t=Z=Ni(t,nd),t=ol(n,t,nd)}e.memoizedProps=e.pendingProps,t===null?Qd(e):Z=t}function Zd(e,t,n,r){ha=ma=null,ts(t),ro=null,io=0;var i=t.return;try{if(Ec(e,i,t,n,Q)){rd=1,Cc(e,Bi(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;rd=1,Cc(e,Bi(n,e.current)),Z=null;return}t.flags&32768?(H||r===1?e=!0:ed||Q&536870912?e=!1:($u=e=!0,(r===2||r===9||r===3||r===6)&&(r=U.current,r!==null&&r.tag===13&&(r.flags|=16384))),$d(t,e)):Qd(t)}function Qd(e){var t=e;do{if(t.flags&32768){$d(t,$u);return}e=t.return;var n=pl(t.alternate,t,nd);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);rd===0&&(rd=5)}function $d(e,t){do{var n=ml(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);rd=6,Z=null}function ef(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do lf();while(_d!==0);if(Xu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===X&&(Z=X=null,Q=0),yd=t,vd=e,bd=n,Sd=a,Cd=r,tf(e,t,n,s,c,l,f)}}function tf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(xd=s,s|=xi,pt(e,n,s,r,i,a),Td=null,(n&335544064)===n?(Ed=Pa(e),r=10262):(Ed=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,vf(Ue,function(){return uf(),null})):(e.callbackNode=null,e.callbackPriority=0),Pl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=F.T,F.T=null,i=I.p,I.p=2,a=Xu,Xu|=4;try{lu(e,t,n)}finally{Xu=a,I.p=i,F.T=r}}_d=1,Pl?wd=Mp(o,e.containerInfo,Ed,af,of,rf,sf,uf,nf,null,null):(af(),of(),sf())}function nf(e){_d!==0&&(0,vd.onRecoverableError)(e,{componentStack:null})}function rf(){_d===3&&(_d=0,Au(yd,vd),_d=4)}function af(){if(_d===1){_d=0;var e=vd,t=yd,n=bd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=F.T,F.T=null;var i=I.p;I.p=2;var a=Xu;Xu|=4;try{ou=su=!1,Eu(t,e,n),n=cp;var o=Gr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Wr(s.ownerDocument.documentElement,s)){if(c!==null&&Kr(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 _=Ur(s,h),v=Ur(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}}gh=!!sp,cp=sp=null}finally{Xu=a,I.p=i,F.T=r}}e.current=t,_d=2}}function of(){if(_d===2){_d=0;var e=vd,t=yd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=Xu;Xu|=4;try{du(e,t.alternate,t)}finally{Xu=i,I.p=r,F.T=n}}_d=3}}function sf(){if(_d===4||_d===3){_d=0;var e=wd;wd=null,Re();var t=vd,n=yd,r=bd,i=Cd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?_d=5:(_d=0,yd=vd=null,cf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(gd=null),_t(r),n=n.stateNode,Ye&&typeof Ye.onCommitFiberRoot==`function`)try{Ye.onCommitFiberRoot(Je,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=F.T,a=I.p,I.p=2,F.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{F.T=n,I.p=a}}if(i=Td,o=Ed,Ed=null,i!==null&&(Td=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);bd&3&&lf(),Tf(t),a=t.pendingLanes,r&261930&&a&42?t===Od?Dd++:(Dd=0,Od=t):(Dd=0,Od=null),Ef(0,!1)}}function cf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function lf(){return wd!==null&&(wd.skipTransition(),wd=null),af(),of(),sf(),uf()}function uf(){if(_d!==5)return!1;var e=vd,t=xd;xd=0;var n=_t(bd),r=F.T,a=I.p;try{I.p=32>n?32:n,F.T=null,n=Sd,Sd=null;var o=vd,s=bd;if(_d=0,yd=vd=null,bd=0,Xu&6)throw Error(i(331));var c=Xu;if(Xu|=4,Gu(o.current),Lu(o,o.current,s,n),Xu=c,Ef(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot==`function`)try{Ye.onPostCommitFiberRoot(Je,o)}catch{}return!0}finally{I.p=a,F.T=r,cf(e,t)}}function df(e,t,n){t=Bi(n,t),t=wc(e.stateNode,t,2),e=go(e,t,2),e!==null&&(R(e,2),Tf(e))}function ff(e,t,n){if(e.tag===3)df(e,e,n);else for(;t!==null;){if(t.tag===3){df(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(gd===null||!gd.has(r))){e=Bi(n,e),n=J(2),r=go(t,n,2),r!==null&&(Tc(n,r,t,e),R(r,2),Tf(r));break}}t=t.return}}function pf(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)||(td=!0,i.add(n),e=mf.bind(null,e,t,n),t.then(e,e))}function mf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,X===e&&(Q&n)===n&&(rd===4||rd===3&&(Q&62914560)===Q&&300>ze()-fd?Xu&2?od|=n:zd(e,0):od|=n,cd===Q&&(cd=0)),Tf(e)}function hf(e,t){t===0&&(t=dt()),e=Ti(e,t),e!==null&&(R(e,t),Tf(e))}function gf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hf(e,n)}function _f(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),hf(e,n)}function vf(e,t){return Fe(e,t)}var yf=null,bf=null,xf=!1,Sf=!1,Cf=!1,wf=0;function Tf(e){e!==bf&&e.next===null&&(bf===null?yf=bf=e:bf=bf.next=e),Sf=!0,xf||(xf=!0,Mf())}function Ef(e,t){if(!Cf&&Sf){Cf=!0;do for(var n=!1,r=yf;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-Ze(42|e)+1)-1,a&=i&~(o&~s),a=a&0xc000095?a&0xc000095|1:a?a|2:0}a!==0&&(n=!0,jf(r,a))}else a=Q,a=st(r,r===X?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ct(r,a)||(n=!0,jf(r,a))}r=r.next}while(n);Cf=!1}}function Df(){Of()}function Of(){Sf=xf=!1;var e=0;wf!==0&&hp()&&(e=wf);for(var t=ze(),n=null,r=yf;r!==null;){var i=r.next,a=kf(r,t);a===0?(r.next=null,n===null?yf=i:n.next=i,i===null&&(bf=n)):(n=r,(e!==0||a&3)&&(Sf=!0)),r=i}_d!==0&&_d!==5||Ef(e,!1),wf!==0&&(wf=0)}function kf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ut(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=X,n=Q,n=st(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Zu===2||Zu===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ie(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ct(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ie(r),_t(n)){case 2:case 8:n=He;break;case 32:n=Ue;break;case 268435456:n=Ge;break;default:n=Ue}return r=Af.bind(null,e),n=Fe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ie(r),e.callbackPriority=2,e.callbackNode=null,2}function Af(e,t){if(_d!==0&&_d!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(lf()&&e.callbackNode!==n)return null;var r=Q;return r=st(e,e===X?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Nd(e,r,t),kf(e,ze()),e.callbackNode!=null&&e.callbackNode===n?Af.bind(null,e):null)}function jf(e,t){if(lf())return null;Nd(e,t,!0)}function Mf(){bp(function(){Xu&6?Fe(Ve,Df):Of()})}function Nf(){if(wf===0){var e=La;e===0&&(e=tt,tt<<=1,!(tt&261888)&&(tt=256)),wf=e}return wf}function Pf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:gn(e)}function Ff(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Pf((i[St]||null).action),o=r.submitter;o&&(t=(t=o[St]||null)?Pf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Rn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(wf!==0){var e=new FormData(i,o);Zs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Zs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var If=0;If<fi.length;If++){var Lf=fi[If];pi(Lf.toLowerCase(),`on`+(Lf[0].toUpperCase()+Lf.slice(1)))}pi(ii,`onAnimationEnd`),pi(ai,`onAnimationIteration`),pi(oi,`onAnimationStart`),pi(`dblclick`,`onDoubleClick`),pi(`focusin`,`onFocus`),pi(`focusout`,`onBlur`),pi(si,`onTransitionRun`),pi(ci,`onTransitionStart`),pi(li,`onTransitionCancel`),pi(ui,`onTransitionEnd`),Bt(`onMouseEnter`,[`mouseout`,`mouseover`]),Bt(`onMouseLeave`,[`mouseout`,`mouseover`]),Bt(`onPointerEnter`,[`pointerout`,`pointerover`]),Bt(`onPointerLeave`,[`pointerout`,`pointerover`]),zt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),zt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),zt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),zt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Rf=`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(` `),zf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Rf));function Bf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{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 e;a=s,i.currentTarget=l;try{a(i)}catch(e){vi(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 e;a=s,i.currentTarget=l;try{a(i)}catch(e){vi(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[wt];n===void 0&&(n=t[wt]=new Set);var r=e+`__bubble`;n.has(r)||(Wf(t,e,2,!1),n.add(r))}function Vf(e,t,n){var r=0;t&&(r|=4),Wf(n,e,r,t)}var Hf=`_reactListening`+Math.random().toString(36).slice(2);function Uf(e){if(!e[Hf]){e[Hf]=!0,Lt.forEach(function(t){t!==`selectionchange`&&(zf.has(t)||Vf(t,!1,e),Vf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hf]||(t[Hf]=!0,Vf(`selectionchange`,!1,t))}}function Wf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!Dn||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 Gf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e: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=jt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue e}c=c.parentNode}}r=r.return}wn(function(){var r=a,i=yn(n),s=[];e:{var c=di.get(e);if(c!==void 0){var l=Rn,u=e;switch(e){case`keypress`:if(Nn(n)===0)break e;case`keydown`:case`keyup`:l=tr;break;case`focusin`:u=`focus`,l=Kn;break;case`focusout`:u=`blur`,l=Kn;break;case`beforeblur`:case`afterblur`:l=Kn;break;case`click`:if(n.button===2)break e;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Gn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ir;break;case ii:case ai:case oi:l=qn;break;case ui:l=ar;break;case`scroll`:case`scrollend`:l=V;break;case`wheel`:l=or;break;case`copy`:case`cut`:case`paste`:l=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=nr;break;case`submit`:l=rr;break;case`toggle`:case`beforetoggle`:l=sr}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=Tn(m,p),g!=null&&d.push(Kf(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)){e:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==vn&&(u=n.relatedTarget||n.fromElement)&&(jt(u)||u[Ct]))break e;(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?jt(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=Wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=nr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Nt(c),h=l==null?u:Nt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,jt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?w(c,l,Jf):null,c!==null&&Yf(s,u,c,d,!1),l!==null&&f!==null&&Yf(s,f,l,d,!0)))}e:{if(c=r?Nt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Dr;else if(xr(c)){if(Or)_=Lr;else{_=Fr;var v=Pr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&pn(r.elementType)&&(_=Dr):_=Ir;if(_&&=_(e,r)){Sr(s,_,n,i);break e}v&&v(e,c,r)}switch(v=r?Nt(r):window,e){case`focusin`:(xr(v)||v.contentEditable===`true`)&&(Jr=v,Yr=r,Xr=null);break;case`focusout`:Xr=Yr=Jr=null;break;case`mousedown`:Zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zr=!1,Qr(s,n,i);break;case`selectionchange`:if(qr)break;case`keydown`:case`keyup`:Qr(s,n,i)}var y;if(lr)e:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break e;case`compositionend`:b=`onCompositionEnd`;break e;case`compositionupdate`:b=`onCompositionUpdate`;break e}b=void 0}else _r?hr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(fr&&n.locale!==`ko`&&(_r||b!==`onCompositionStart`?b===`onCompositionEnd`&&_r&&(y=Mn()):(kn=i,An=`value`in kn?kn.value:kn.textContent,_r=!0)),v=qf(r,b),0<v.length&&(b=new Yn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=gr(n),y!==null&&(b.data=y)))),(y=dr?vr(e,n):yr(e,n))&&(b=qf(r,`onBeforeInput`),0<b.length&&(v=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Ff(s,e,r,n,i)}Bf(s,t)})}function Kf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qf(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=Tn(e,n),i!=null&&r.unshift(Kf(e,i,a)),i=Tn(e,t),i!=null&&r.push(Kf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Jf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yf(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=Tn(n,a),l!=null&&o.unshift(Kf(n,l,c))):i||(l=Tn(n,a),l!=null&&o.push(Kf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Xf=/\r\n?/g,Zf=/\u0000|\uFFFD/g;function Qf(e){return(typeof e==`string`?e:``+e).replace(Xf,`
9
+ `).replace(Zf,``)}function $f(e,t){return t=Qf(t),Qf(e)===t}function ep(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&ln(e,``+r);else return;break;case`className`:qt(e,`class`,r);break;case`tabIndex`:qt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:qt(e,n,r);break;case`style`:fn(e,r,o);return;case`data`:if(t!==`object`){qt(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=gn(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`&&ep(e,t,`name`,a.name,a,null),ep(e,t,`formEncType`,a.formEncType,a,null),ep(e,t,`formMethod`,a.formMethod,a,null),ep(e,t,`formTarget`,a.formTarget,a,null)):(ep(e,t,`encType`,a.encType,a,null),ep(e,t,`method`,a.method,a,null),ep(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=gn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=_n);return;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`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`:case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=gn(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`:$(`beforetoggle`,e),$(`toggle`,e),Kt(e,`popover`,r);break;case`xlinkActuate`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Kt(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=mn.get(n)||n,Kt(e,n,r);else return}B=!0}function tp(e,t,n,r,a,o){switch(n){case`style`:fn(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`)ln(e,r);else if(typeof r==`number`||typeof r==`bigint`)ln(e,``+r);else return;break;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=_n);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:case`innerText`:case`textContent`:return;default:if(!Rt.hasOwnProperty(n))e:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[St]||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 e}B=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Kt(e,n,r)}return}B=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`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:ep(e,t,o,s,n,null)}}a&&ep(e,t,`srcSet`,n.srcSet,n,null),r&&ep(e,t,`src`,n.src,n,null);return;case`input`:$(`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:ep(e,t,r,d,n,null)}}rn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`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:ep(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&on(e,!!r,n,!0):on(e,!!r,t,!1);return;case`textarea`:for(s in $(`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:ep(e,t,s,c,n,null)}cn(e,r,a,o);return;case`option`:for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null)&&(l===`selected`?e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`:ep(e,t,l,r,n,null));return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<Rf.length;r++)$(Rf[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`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:ep(e,t,u,r,n,null)}return;default:if(pn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ep(e,t,c,r,n,null))}var rp={};function ip(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`:case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ep(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&&(B=!0),o=m;break;case`name`:m!==f&&(B=!0),a=m;break;case`checked`:m!==f&&(B=!0),u=m;break;case`defaultChecked`:m!==f&&(B=!0),d=m;break;case`value`:m!==f&&(B=!0),s=m;break;case`defaultValue`:m!==f&&(B=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ep(e,t,p,m,r,f)}}nn(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)||ep(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&&(B=!0),p=o;break;case`defaultValue`:o!==l&&(B=!0),c=o;break;case`multiple`:o!==l&&(B=!0),s=o;default:o!==l&&ep(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?on(e,!!n,n?[]:``,!1):on(e,!!n,t,!0)):on(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`:case`children`:break;default:ep(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&&(B=!0),p=a;break;case`defaultValue`:a!==o&&(B=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ep(e,t,s,a,r,o)}sn(e,p,m);return;case`option`:for(var h in n)p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h)&&(h===`selected`?e.selected=!1:ep(e,t,h,null,r,p));for(l in r)p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null)&&(l===`selected`?(p!==m&&(B=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`):ep(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)&&ep(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:ep(e,t,u,p,r,m)}return;default:if(pn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(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||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ep(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||ep(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){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&&ap(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&&ap(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 sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(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 dp(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 fp(e,t,n,r){return n=lp(n).createElement(e),n[xt]=r,n[St]=t,np(n,e,t),Ft(n),n}function pp(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 mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(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),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(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 Tp(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 Ep(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 Dp(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 Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(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`&&(Ap(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+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.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 Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.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},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.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(Bp(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=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return v(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=m(this._fragmentFiber);if(t===null)return!0;t=v(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,Rp(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,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=v(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=m(this._fragmentFiber);e!==null&&(e=v(e),e=lp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=v(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag===6||(e=v(e),t.observe(e)),!1}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag===6||(e=v(e),t.unobserve(e)),!1}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(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=v(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=m(this._fragmentFiber);return t===null?this:v(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=m(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=v(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}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=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=v(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=v(n[0]),i=v(n[n.length-1]);var a=h(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||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=jt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}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;e:{for(a=t,t=m(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,C),t===null?t=!1:(p(t,!0,x,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(p(t,!0,S,a,r),a=y,b=y=null,t=a!==null)),t):!1}function Zp(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)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||m(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=v(r),Zp(e,n);return}if(r=v(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=v(a),Zp(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=v(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(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`:nm(n),At(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(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[Ot])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=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(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 lm(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 um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(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 pm(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 mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(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 gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ep(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===_n&&(e.onclick=null),At(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);At(e)}var vm=new Map,ym=new Set;function bm(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 xm=I.d;I.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Ld();return e||t}function Cm(e){var t=Mt(e);t!==null&&t.tag===5&&t.type===`form`?$s(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=tn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ft(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+tn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+tn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+tn(n.imageSizes)+`"]`)):i+=`[href="`+tn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[kt]=!0,o.onload=o.onerror=function(){It(o)}),Ft(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+tn(r)+`"][href="`+tn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ft(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Pt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ft(c),np(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,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Pt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ft(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Pt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ft(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=xe.current)?bm(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=Pm(n.href),t=Pt(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=Pm(n.href);var o=Pt(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(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.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},vm.set(e,o)),Lm(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=Rm(n),t=Pt(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 Pm(e){return`href="`+tn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[kt]){r.loading=1;return}}else t=e.createElement(`link`),t[kt]=!0,t.onload=t.onerror=It.bind(null,t),np(t,`link`,n),Ft(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 Rm(e){return`[src="`+tn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+tn(n.href)+`"]`);if(r)return t.instance=r,Ft(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ft(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ft(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ft(a),a):(r=n,(a=vm.get(o))&&(r=T({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ft(a),np(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,Vm(r,n.precedence,e));return t.instance}function Vm(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 Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,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[Ot]||a[xt]||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 Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(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;return t.rel!==`stylesheet`||(e=t.disabled,typeof t.precedence==`string`&&e==null);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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(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=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ft(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.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=nh.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 sh={$$typeof:A,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function ch(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=ft(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.hiddenUpdates=ft(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 lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ai(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function uh(e){return e?(e=Oi,e):Oi}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Md(n,e,t),_o(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Ti(e,67108864);t!==null&&Md(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=kd();t=gt(t);var n=Ti(e,t);n!==null&&Md(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=2,yh(e,t,n,r)}finally{I.p=a,F.T=i}}function vh(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=8,yh(e,t,n,r)}finally{I.p=a,F.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Gf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Mt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=at(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ze(o);s.entanglements[1]|=c,o&=~c}Tf(a),!(Xu&6)&&(md=ze()+500,Ef(0,!1))}}break;case 31:case 13:s=Ti(a,2),s!==null&&Md(s,a,2),Ld(),ph(a,2)}if(a=bh(r),a===null&&Gf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Gf(e,t,r,null,n)}}function bh(e){return e=yn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=jt(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 xh=e,null}function Ch(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(Be()){case Ve:return 2;case He:return 8;case Ue:case We:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`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 Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(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=Mt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=jt(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,yt(e.priority,function(){hh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,yt(e.priority,function(){hh(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 Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vn=r,n.target.dispatchEvent(r),vn=null}else return t=Mt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=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(Sh(r||n)===null)continue;break}var a=Mt(n);a!==null&&(e.splice(t,3),t-=3,Zs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.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[St]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[St]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){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 Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));dh(t.current,kd(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Ld(),t[Ct]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=vt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=n.version;if(Kh!==`19.3.1`)throw Error(i(527,Kh,`19.3.1`));I.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:f(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:F,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{Je=Jh.inject(qh),Ye=Jh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=bc,s=xc,c=Sc;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=lh(e,1,!1,null,null,n,r,null,o,s,c,Uh),e[Ct]=t.current,Uf(e),new Wh(t)}})),ct=o(((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=st()}))(),lt=class extends Error{code;status;data;constructor(e,t,n,r={}){super(t),this.name=`ApiError`,this.code=e,this.status=n,this.data=r}};async function ut(e,t){let n=await fetch(e,{credentials:`same-origin`,...t}),r=await n.json().catch(()=>void 0);if(!n.ok||r===void 0)throw new lt(r?.error?.code??`http_error`,r?.error?.message??`Request failed with status ${n.status}`,n.status,r?.error?.data);return r}var dt=e=>new URLSearchParams(e).toString(),ft=(e,t,n)=>ut(t,{method:e,headers:{"Content-Type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),R=(e,t)=>ft(`POST`,e,t),pt=(e,t)=>`/api/repos/${e}${t}`,mt=(e,t,n)=>pt(e,`/raw/${t}?${dt({path:n})}`),ht=(e,t,n)=>pt(e,`/worktree-raw?${dt({path:t,t:String(n)})}`),z={session:()=>ut(`/api/session`),signIn:e=>R(`/api/session`,{token:e}),repo:e=>ut(`/api/repos/${e}`),resolve:(e,t,n,r)=>ut(`/api/repos/${e}/compare/resolve?${dt({spec:t,w:n?`1`:`0`,...r?{range:r}:{}})}`),files:(e,t,n,r)=>ut(`/api/repos/${e}/compare/files?${dt({from:t,to:n,w:r?`1`:`0`})}`),diff:(e,t,n,r,i,a)=>ut(`/api/repos/${e}/compare/diff?${dt({from:t,to:n,path:r,...i?{oldPath:i}:{},w:a?`1`:`0`})}`),exportReview:(e,t)=>ut(`/api/repos/${e}/review?${dt({spec:t})}`),importReview:(e,t,n)=>R(`/api/repos/${e}/review`,{spec:t,review:n}),symbols:(e,t,n,r)=>ut(`/api/repos/${e}/symbols?${dt({rev:t,q:n,exact:r?`1`:`0`})}`),fileAt:(e,t,n)=>ut(`/api/repos/${e}/file?${dt({rev:t,path:n})}`),blob:(e,t)=>ut(`/api/repos/${e}/blob/${t}`),worktreeFile:(e,t)=>ut(`/api/repos/${e}/worktree-file?${dt({path:t})}`),refs:e=>ut(`/api/repos/${e}/refs`),recentCommits:(e,t)=>ut(`/api/repos/${e}/commits/recent?${t.map(e=>`tip=${e}`).join(`&`)}`),commits:(e,t,n)=>ut(`/api/repos/${e}/compare/commits?${dt({base:t,head:n})}`),mergeStatus:(e,t,n)=>ut(`/api/repos/${e}/compare/merge-status?${dt({base:t,head:n})}`),share:(e,t,n,r)=>ut(`/api/repos/${e}/share?${dt({spec:t,view:n,w:r?`1`:`0`})}`),resolveLink:e=>R(`/api/links/resolve`,{input:e}),cloneForLink:e=>R(`/api/links/clone`,{repoUrl:e}),pullForBranches:(e,t,n=!1)=>R(`/api/repos/${e}/pulls/for-branches`,{spec:t,refresh:n}),syncThreads:(e,t,n,r)=>R(`/api/repos/${e}/threads/sync`,{scope:t,from:n,to:r}),createThread:(e,t)=>R(`/api/repos/${e}/threads`,t),reply:(e,t,n)=>R(`/api/repos/${e}/threads/${t}/comments`,{body:n}),setThreadState:(e,t,n)=>ft(`PATCH`,`/api/repos/${e}/threads/${t}`,{state:n}),editComment:(e,t,n)=>ft(`PATCH`,`/api/repos/${e}/comments/${t}`,{body:n}),deleteComment:(e,t)=>ft(`DELETE`,`/api/repos/${e}/comments/${t}`),draft:(e,t)=>ut(`/api/repos/${e}/drafts?${dt({key:t})}`),saveDraft:(e,t,n)=>ft(`PUT`,`/api/repos/${e}/drafts?${dt({key:t})}`,{body:n}),agents:()=>ut(`/api/agents`),runs:e=>ut(`/api/repos/${e}/agent/runs`),setAgentOption:(e,t,n)=>ft(`PUT`,`/api/agents/${e}/options`,{option:t,value:n}),startRun:(e,t)=>R(`/api/repos/${e}/agent/runs`,t),cancelRun:(e,t)=>R(`/api/repos/${e}/agent/runs/${t}/cancel`,{}),answerRun:(e,t,n,r)=>R(`/api/repos/${e}/agent/runs/${t}/permission`,{id:n,allow:r}),revertRun:(e,t,n)=>R(`/api/repos/${e}/agent/runs/${t}/revert`,n?{paths:n}:{}),dismissRun:(e,t)=>R(`/api/repos/${e}/agent/runs/${t}/dismiss`,{}),trustRepo:e=>R(`/api/repos/${e}/trust`,{}),chat:(e,t)=>ut(`/api/repos/${e}/chat?${dt({scope:t})}`),clearChat:(e,t)=>ft(`DELETE`,`/api/repos/${e}/chat?${dt({scope:t})}`),changes:e=>ut(`/api/repos/${e}/changes`),applySuggestion:(e,t,n,r)=>R(`/api/repos/${e}/suggestions/apply`,{commentId:t,blockIndex:n,expected:r}),saveFile:(e,t)=>R(`/api/repos/${e}/edits/save`,t),undoChange:(e,t)=>R(`/api/repos/${e}/changes/${t}/undo`,{}),deleteFile:(e,t,n)=>R(`/api/repos/${e}/edits/delete`,{path:t,baseOid:n}),staging:e=>ut(`/api/repos/${e}/staging`),stage:(e,t)=>R(`/api/repos/${e}/staging/stage`,t?{paths:t}:{}),unstage:(e,t)=>R(`/api/repos/${e}/staging/unstage`,t?{paths:t}:{}),commit:(e,t)=>R(`/api/repos/${e}/commit`,{message:t}),pullProposal:(e,t)=>ut(`/api/repos/${e}/pull-proposal?${dt({spec:t})}`),createPull:(e,t)=>R(`/api/repos/${e}/pulls`,t),pull:(e,t)=>ut(`/api/repos/${e}/pulls/${t}`),importPull:(e,t,n)=>R(`/api/repos/${e}/pulls/${t}/import`,n?{remote:n}:{}),draftReview:(e,t,n)=>R(`/api/repos/${e}/pulls/${t}/review/draft`,n?{commentIds:n}:{}),publishReview:(e,t,n)=>R(`/api/repos/${e}/pulls/${t}/review/publish`,n),viewed:(e,t,n,r)=>ut(`/api/repos/${e}/viewed?${dt({scope:t,from:n,to:r})}`),setViewed:(e,t)=>ft(`PUT`,`/api/repos/${e}/viewed`,t)},gt=class extends Error{code;status;data;constructor(e,t,n=400,r){super(t),this.name=`AppError`,this.code=e,this.status=n,this.data=r}},_t=`:worktree`,vt=`:staged`,yt={kind:`rev`,expr:`HEAD`};function bt(e){if(e.startsWith(`-`)||e.startsWith(`:`)||/[\u0000-\u001f\u007f]/.test(e))throw new gt(`invalid_rev`,`Not a valid revision: ${JSON.stringify(e)}`)}function xt(e,t){let n=e.trim();return n===``?t:n===`:worktree`?{kind:`worktree`}:n===`:staged`?{kind:`index`}:(bt(n),{kind:`rev`,expr:n})}function St(e){let t=e.trim();if(t===``)return{base:yt,head:{kind:`worktree`},mode:`direct`};let n=t.indexOf(`...`);if(n>=0)return{base:xt(t.slice(0,n),yt),head:xt(t.slice(n+3),yt),mode:`merge-base`};let r=t.indexOf(`..`);return r>=0?{base:xt(t.slice(0,r),yt),head:xt(t.slice(r+2),yt),mode:`direct`}:{base:xt(t,yt),head:{kind:`worktree`},mode:`direct`}}function Ct(e){return e.kind===`worktree`?_t:e.kind===`index`?vt:e.expr}function wt(e){let t=e.mode===`merge-base`?`...`:`..`;return`${Ct(e.base)}${t}${Ct(e.head)}`}function Tt(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}function Et(e){try{return e.split(`/`).map(decodeURIComponent).join(`/`)}catch{throw new gt(`invalid_spec`,`Comparison in the URL is not valid`)}}var Dt=/^refs\/agentic-diff\/pr\/(\d{1,9})\/(base|head)$/;function Ot(e){return{base:`refs/agentic-diff/pr/${e}/base`,head:`refs/agentic-diff/pr/${e}/head`}}function kt(e){let t=Ot(e);return`${t.base}...${t.head}`}function At(e,t){let[n,r]=[Dt.exec(e),Dt.exec(t)];if(n&&r&&n[2]===`base`&&r[2]===`head`&&n[1]===r[1])return Number(n[1])}function jt(e){let t=/^(?:pr:|#)(\d{1,9})$/.exec(e.trim()),n=t?Number(t[1]):0;return n>0?n:void 0}function Mt(e){if(e.head.kind!==`rev`||e.base.kind!==`rev`)return e.worktree?`wt:${e.worktree}`:`wt`;let t=At(e.base.label,e.head.label);return t===void 0?`cmp:${e.base.label}...${e.head.label}`:`pr:${t}`}var Nt=5;function Pt(e,t){let n=e+t;if(n===0)return{added:0,deleted:0,neutral:Nt};if(n<=Nt)return{added:e,deleted:t,neutral:Nt-n};let r=Math.round(e/n*Nt),i=Math.round(t/n*Nt);for(e>0&&r===0&&(r=1),t>0&&i===0&&(i=1);r+i>Nt;)r>=i?--r:--i;return{added:r,deleted:i,neutral:Nt-r-i}}function Ft(e){return`npx agentic-diff open '${e.replaceAll(`'`,`'\\''`)}'`}function It(e){if(e===``)return[];let t=e.split(`
10
+ `);return t.at(-1)===``&&t.pop(),t.map(e=>e.endsWith(`\r`)?e.slice(0,-1):e)}function Lt(e,t){switch(t.t){case`text`:return{...e,text:e.text+t.delta};case`tool`:{let n={id:t.id,kind:t.kind,title:t.title,status:t.status},r=e.tools.some(e=>e.id===t.id);return{...e,tools:r?e.tools.map(e=>e.id===t.id?n:e):[...e.tools,n]}}case`permission`:return{...e,asking:t.decision===`asking`?{id:t.id,kind:t.kind,title:t.title}:void 0};case`usage`:return{...e,usage:{used:t.used,size:t.size,cost:t.cost}};case`unexpected-changes`:return{...e,unexpectedChanges:t.changes};case`done`:return{...e,status:t.stopReason===`cancelled`?`cancelled`:`done`,stopReason:t.stopReason,asking:void 0};case`error`:return{...e,status:`failed`,error:t.message,asking:void 0};default:return e}}var Rt=new Set([`minimal`,`low`,`medium`,`high`,`xhigh`,`max`]),zt=`#web`,Bt=e=>e.toLowerCase().replace(/[^a-z0-9]/g,``);function Vt(e){return e?.options?.find(e=>e.category===`model`)??e?.options?.find(e=>e.kind===`select`&&/model/i.test(e.id))}function Ht(e){return e?.options?.find(e=>e.category===`thought_level`&&e.kind===`select`)??e?.options?.find(e=>e.kind===`select`&&/effort|thought|thinking|reasoning/i.test(e.id))}function Ut(e){return/^[A-Za-z0-9._\-[\]]+$/.test(e.id)?e.id:Bt(e.name)}function Wt(e,t){let n=Bt(t);if(!e||n===``)return;let r=e=>[Bt(e.id),Bt(e.name)],i=e.values.find(e=>r(e).includes(n));if(i)return i;for(let t of[e=>e.startsWith(n),e=>e.includes(n)]){let n=e.values.filter(e=>r(e).some(t));if(n.length===1)return n[0]}}var B=/(^|[\s(])@([A-Za-z0-9_-]+)(?::([A-Za-z0-9._\-[\]]+))?(?=$|[\s.,;!?)])/g,Gt=/(^|[\s(])!([A-Za-z0-9_-]+)(?=$|[\s.,;?)])/g,Kt=/(^|[\s(])#web(?=$|[\s.,;!?)])/gi;function qt(e,t,n){let r={called:!1,options:{},web:!1,message:e,problems:[]},i,a=e.replace(B,(e,n,a,o)=>{let s=a.toLowerCase()===`agent`?void 0:t.find(e=>e.id.toLowerCase()===a.toLowerCase());return a.toLowerCase()!==`agent`&&!s||r.called&&s&&r.agentId!==void 0&&s.id!==r.agentId?e:(r.called=!0,s&&(r.agentId=s.id),o!==void 0&&(i=o),n)}),o=t.find(e=>e.id===(r.agentId??n))??t.find(e=>e.isDefault)??t[0];if(i!==void 0){let e=Vt(o),t=Wt(e,i);e&&t?r.options[e.id]=t.id:e?r.problems.push(`${o?.name??`The agent`} does not offer a model called "${i}"; its own choice was used.`):r.pending={...r.pending,model:i}}let s=Ht(o);return a=a.replace(Gt,(e,t,n)=>{let i=Wt(s,n);return!o?.options?.length&&Rt.has(n.toLowerCase())?(r.pending={...r.pending,effort:n},t):!s||!i?e:(r.options[s.id]=i.id,t)}),a=a.replace(Kt,(e,t)=>(r.web=!0,t)),r.message=a.replace(/[ \t]{2,}/g,` `).replace(/[ \t]+$/gm,``).trim(),r}function Jt(e,t){return qt(e,t).called}function Yt(e,t){let n=t;for(;n>0&&!/\s/.test(e[n-1]);)--n;let r=e.slice(n,t),i=r[0];if((i===`@`||i===`!`||i===`#`||i===`/`)&&(i!==`/`||e.slice(0,n).replace(/(^|[\s(])@\S+|(^|[\s(])[!#]\S+/g,``).split(`
11
+ `).at(-1)?.trim()===``)&&/^[A-Za-z0-9._:\-[\]]*$/.test(r.slice(1)))return{start:n,sign:i,rest:r.slice(1)}}var Xt=30;function Zt(e,t,n,r){let i=Yt(e,t);if(!i)return;let a=Bt(i.rest),o=(...e)=>a===``||e.some(e=>Bt(e).includes(a)),s=qt(e.slice(0,i.start)+e.slice(t),n,r).agentId,c=n.find(e=>e.id===(s??r))??n.find(e=>e.isDefault)??n[0],l=[];if(i.sign===`@`){let[e,t]=i.rest.split(`:`);if(t!==void 0){let r=e.toLowerCase()===`agent`?c:n.find(t=>t.id.toLowerCase()===e.toLowerCase()),i=Bt(t);for(let t of Vt(r)?.values??[])(i===``||Bt(t.id).includes(i)||Bt(t.name).includes(i))&&l.push({insert:`@${e}:${Ut(t)} `,label:`@${e}:${Ut(t)}`,detail:[t.name,t.description].filter(Boolean).join(`: `)})}else{o(`agent`)&&l.push({insert:`@agent `,label:`@agent`,detail:`The default agent${c?` (${c.name})`:``}`});for(let e of n)o(e.id,e.name)&&l.push({insert:`@${e.id} `,label:`@${e.id}`,detail:e.name});for(let e of n)for(let t of Vt(e)?.values??[])o(`${e.id}${Ut(t)}`,`${e.id}${t.name}`,t.name)&&l.push({insert:`@${e.id}:${Ut(t)} `,label:`@${e.id}:${Ut(t)}`,detail:`${e.name}, ${t.name}`})}}else if(i.sign===`!`)for(let e of Ht(c)?.values??[])o(e.id,e.name)&&l.push({insert:`!${Ut(e)} `,label:`!${Ut(e)}`,detail:[`${Ht(c)?.name??`Effort`}: ${e.name}`,e.description].filter(Boolean).join(`. `)});else if(i.sign===`#`)o(`web`)&&l.push({insert:`${zt} `,label:zt,detail:`Let the agent search the web and read pages for this request`});else for(let e of c?.commands??[])o(e.name)&&l.push({insert:`/${e.name} `,label:`/${e.name}`,detail:[e.description,e.hint?`(${e.hint})`:``].filter(Boolean).join(` `)});return l.length>0?{start:i.start,hints:l.slice(0,Xt)}:void 0}var Qt=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends Qt{};function $t(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function en(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function tn(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function nn(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function rn(e,t){return tn(e,t,``)}function an(e,t){return nn(e,t,``)}function on(e,t){return t.slice(0,sn(e,t))}function sn(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function cn(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function ln(e,t){if(t)return dn(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function un(e,t){if(t)return dn(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function dn(e,t){if(!t)return[un(e),ln(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=cn(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var fn=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,pn=RegExp(`[${fn}]+|\\s+|[^${fn}]`,`ug`);new class extends Qt{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=cn(e,r)}else n=e.match(pn)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&mn(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&mn(n,i,r,null,t.intlSegmenter),e}};function mn(e,t,n,r,i){if(t&&n){let[a,o]=dn(t.value,i),[s,c]=dn(n.value,i);if(e){let r=$t(a,s);e.value=nn(e.value,s,r),t.value=rn(t.value,r),n.value=rn(n.value,r)}if(r){let e=en(o,c);r.value=tn(r.value,c,e),t.value=an(t.value,e),n.value=an(n.value,e)}}else if(n){if(e){let e=un(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=un(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=un(r.value,i),[a,o]=dn(t.value,i),s=$t(n,a);t.value=rn(t.value,s);let c=en(rn(n,s),o);t.value=an(t.value,c),r.value=tn(r.value,n,c),e.value=nn(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=un(r.value,i),n=on(ln(t.value,i),e);t.value=an(t.value,n)}else if(e){let n=on(ln(e.value,i),un(t.value,i));t.value=rn(t.value,n)}}var hn=new class extends Qt{tokenize(e){let t=RegExp(`(\\r?\\n)|[${fn}]+|[^\\S\\n\\r]+|[^${fn}]`,`ug`);return e.match(t)||[]}};function gn(e,t,n){return hn.diff(e,t,n)}new class extends Qt{constructor(){super(...arguments),this.tokenize=_n}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes(`
12
+ `)||(e=e.trim()),n.newlineIsToken&&t.includes(`
13
+ `)||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
14
+ `)&&(e=e.slice(0,-1)),t.endsWith(`
15
+ `)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function _n(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
16
+ `));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function vn(e){return e==`.`||e==`!`||e==`?`}new class extends Qt{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(vn(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends Qt{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends Qt{constructor(){super(...arguments),this.tokenize=_n}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(yn(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function yn(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a=0;for(;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=yn(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=yn(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}var bn=new class extends Qt{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function xn(e,t,n){return bn.diff(e,t,n)}var Sn=/^( {0,3})(`{3,}|~{3,})suggestion\s*$/;function Cn(e){let t=e.split(`
17
+ `).map(e=>e.endsWith(`\r`)?e.slice(0,-1):e),n=[],r=0;for(;r<t.length;){let e=Sn.exec(t[r]);if(!e){r+=1;continue}let i=e[1].length,a=e[2],o=RegExp(`^ {0,3}${a[0]==="`"?"`":`~`}{${a.length},}\\s*$`),s=RegExp(`^ {0,${i}}`),c=[],l=r+1;for(;l<t.length&&!o.test(t[l]);)c.push(t[l++].replace(s,``));n.push({line:r+1,lines:c}),r=l+1}return n}function wn(e,t,n=3){let r=[],i=1,a=1;for(let n of xn(e,t))for(let e=0;e<n.value.length;e+=1)n.removed?r.push({t:`del`,old:i++}):n.added?r.push({t:`add`,new:a++}):r.push({t:`ctx`,old:i++,new:a++});let o=[],s=[],c=0,l=0;for(let e of r)o.push(c),s.push(l),e.t!==`add`&&(c+=1),e.t!==`del`&&(l+=1);let u=[],d=0;for(;d<r.length;){if(r[d].t===`ctx`){d+=1;continue}let e=d,t=d;for(let e=d+1;e<r.length&&e-t<=n*2;e+=1)r[e].t!==`ctx`&&(t=e);let i=Math.max(0,e-n),a=Math.min(r.length,t+n+1),c=r.slice(i,a),l=c.filter(e=>e.t!==`add`).length,f=c.filter(e=>e.t!==`del`).length;u.push({oldStart:o[i]+ +(l>0),oldLines:l,newStart:s[i]+ +(f>0),newLines:f,section:``,rows:c}),d=a}return u}var Tn={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,webp:`image/webp`,avif:`image/avif`,bmp:`image/bmp`,ico:`image/x-icon`,svg:`image/svg+xml`},En=e=>{let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?``:t.slice(n+1).toLowerCase()};function Dn(e){let t=En(e);return Object.hasOwn(Tn,t)?Tn[t]:void 0}function On(e){return[`md`,`markdown`,`mdown`,`mkd`].includes(En(e))}function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},kn(e)}var An=[`aria-hidden`,`aria-label`,`aria-labelledby`,`tabIndex`,`className`,`fill`,`size`,`verticalAlign`,`id`,`title`,`style`];function jn(){return jn=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},jn.apply(null,arguments)}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mn(Object(n),!0).forEach(function(t){Pn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pn(e,t,n){return(t=Fn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fn(e){var t=In(e,`string`);return kn(t)==`symbol`?t:t+``}function In(e,t){if(kn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(kn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ln(e,t){if(e==null)return{};var n,r,i=Rn(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Rn(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 zn={small:16,medium:32,large:64};function V(e,t,n,r,i){var a=e[`aria-hidden`],o=e[`aria-label`],s=e[`aria-labelledby`],c=e.tabIndex,l=e.className,u=l===void 0?``:l,d=e.fill,p=d===void 0?`currentColor`:d,m=e.size,h=m===void 0?16:m,g=e.verticalAlign,_=g===void 0?`text-bottom`:g,v=e.id,y=e.title,b=e.style,x=Ln(e,An),S=zn[h]||h,C=Bn(i,S),w=r[C].width,T=w/C*S,E=r[C].path,D=o||s,O=a===void 0?D?void 0:`true`:a,ee=D&&O!==`true`?`img`:void 0;return f.createElement(`svg`,jn({ref:t,"data-component":`Octicon`},x,{"aria-hidden":O,tabIndex:c,focusable:c>=0?`true`:`false`,"aria-label":o,"aria-labelledby":s,className:`${n} ${u}`.trim(),role:ee,viewBox:`0 0 ${w} ${C}`,width:T,height:S,fill:p,id:v,display:`inline-block`,overflow:`visible`,style:Nn({verticalAlign:_},b)}),y?f.createElement(`title`,null,y):null,E)}function Bn(e,t){return e.map(function(e){return parseInt(e,10)}).reduce(function(e,n){return n<=t?n:e},e[0])}var Vn=[`16`,`24`],Hn={16:{width:16,path:f.createElement(`path`,{d:`M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z`}),f.createElement(`path`,{d:`M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z`}))}},Un=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-alert`,Hn,Vn)});Un.displayName=`AlertIcon`;var Wn=[`16`,`24`],Gn={16:{width:16,path:f.createElement(`path`,{d:`M7.78 12.53a.75.75 0 0 1-1.06 0L2.47 8.28a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L4.81 7h7.44a.75.75 0 0 1 0 1.5H4.81l2.97 2.97a.75.75 0 0 1 0 1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M10.78 19.03a.75.75 0 0 1-1.06 0l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L5.81 11.5h14.44a.75.75 0 0 1 0 1.5H5.81l4.97 4.97a.75.75 0 0 1 0 1.06Z`})}},Kn=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-arrow-left`,Gn,Wn)});Kn.displayName=`ArrowLeftIcon`;var qn=[`16`,`24`],Jn={16:{width:16,path:f.createElement(`path`,{d:`M5.22 14.78a.75.75 0 0 0 1.06-1.06L4.56 12h8.69a.75.75 0 0 0 0-1.5H4.56l1.72-1.72a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3Zm5.56-6.5a.75.75 0 1 1-1.06-1.06l1.72-1.72H2.75a.75.75 0 0 1 0-1.5h8.69L9.72 2.28a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3Z`})},24:{width:24,path:f.createElement(`path`,{d:`M7.72 21.78a.75.75 0 0 0 1.06-1.06L5.56 17.5h14.69a.75.75 0 0 0 0-1.5H5.56l3.22-3.22a.75.75 0 1 0-1.06-1.06l-4.5 4.5a.75.75 0 0 0 0 1.06l4.5 4.5Zm8.56-9.5a.75.75 0 1 1-1.06-1.06L18.44 8H3.75a.75.75 0 0 1 0-1.5h14.69l-3.22-3.22a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5Z`})}},Yn=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-arrow-switch`,Jn,qn)});Yn.displayName=`ArrowSwitchIcon`;var Xn=[`16`,`24`],Zn={16:{width:16,path:f.createElement(`path`,{d:`M4 2h4.5a3.501 3.501 0 0 1 2.852 5.53A3.499 3.499 0 0 1 9.5 14H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm1 7v3h4.5a1.5 1.5 0 0 0 0-3Zm3.5-2a1.5 1.5 0 0 0 0-3H5v3Z`})},24:{width:24,path:f.createElement(`path`,{d:`M6 4.75c0-.69.56-1.25 1.25-1.25h5a4.752 4.752 0 0 1 3.888 7.479A5 5 0 0 1 14 20.5H7.25c-.69 0-1.25-.56-1.25-1.25ZM8.5 13v5H14a2.5 2.5 0 1 0 0-5Zm0-2.5h3.751A2.25 2.25 0 0 0 12.25 6H8.5Z`})}},Qn=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-bold`,Zn,Xn)});Qn.displayName=`BoldIcon`;var $n=[`16`,`24`],er={16:{width:16,path:f.createElement(`path`,{d:`M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z`})}},tr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-check`,er,$n)});tr.displayName=`CheckIcon`;var nr=[`16`,`24`],rr={16:{width:16,path:f.createElement(`path`,{d:`M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z`}),f.createElement(`path`,{d:`M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z`}))}},ir=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-check-circle`,rr,nr)});ir.displayName=`CheckCircleIcon`;var ar=[`12`,`16`,`24`],or={12:{width:12,path:f.createElement(`path`,{d:`M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z`})},16:{width:16,path:f.createElement(`path`,{d:`M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z`})}},sr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-chevron-down`,or,ar)});sr.displayName=`ChevronDownIcon`;var cr=[`12`,`16`,`24`],lr={12:{width:12,path:f.createElement(`path`,{d:`M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z`})},16:{width:16,path:f.createElement(`path`,{d:`M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z`})}},ur=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-chevron-right`,lr,cr)});ur.displayName=`ChevronRightIcon`;var dr=[`16`,`24`],fr={16:{width:16,path:f.createElement(`path`,{d:`m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M15.22 4.97a.75.75 0 0 1 1.06 0l6.5 6.5a.75.75 0 0 1 0 1.06l-6.5 6.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L21.19 12l-5.97-5.97a.75.75 0 0 1 0-1.06Zm-6.44 0a.75.75 0 0 1 0 1.06L2.81 12l5.97 5.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.5-6.5a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 0 1 1.06 0Z`})}},pr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-code`,fr,dr)});pr.displayName=`CodeIcon`;var mr=[`16`,`24`],hr={16:{width:16,path:f.createElement(`path`,{d:`M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 13H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25v-8.5C0 1.784.784 1 1.75 1ZM1.5 2.75v8.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm5.28 1.72a.75.75 0 0 1 0 1.06L5.31 7l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.75.75 0 0 1 1.06 0Zm2.44 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.69 7 9.22 5.53a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M10.3 6.74a.75.75 0 0 1-.04 1.06l-2.908 2.7 2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z`}),f.createElement(`path`,{d:`M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z`}))}},gr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-code-review`,hr,mr)});gr.displayName=`CodeReviewIcon`;var _r=[`16`,`24`],vr={16:{width:16,path:f.createElement(`path`,{d:`M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z`})},24:{width:24,path:f.createElement(`path`,{d:`M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z`})}},yr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-comment`,vr,_r)});yr.displayName=`CommentIcon`;var br=[`16`,`24`,`48`,`96`],xr={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z`}),f.createElement(`path`,{d:`M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z`}),f.createElement(`path`,{d:`M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z`}))},48:{width:48,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M47.801 34.003c-1.72 2.988-11.706 10.037-23.82 10.037S1.881 36.991.161 34.003a1.309 1.309 0 0 1-.161-.57v-5.615c.012-.17.047-.338.11-.498.744-1.867 2.692-4.58 5.206-5.308.333-.855.826-2.106 1.287-3.029a20.112 20.112 0 0 1-.104-2.171c0-2.659.563-4.992 2.262-6.729.793-.811 1.777-1.433 2.945-1.901C14.502 5.911 18.483 4 23.938 4c5.455 0 9.523 1.911 12.319 4.182 1.167.468 2.151 1.09 2.944 1.901 1.699 1.737 2.263 4.07 2.263 6.729 0 .736-.027 1.465-.105 2.171.461.923.954 2.174 1.288 3.029 2.513.728 4.461 3.441 5.205 5.308.081.205.115.424.115.645v5.318c0 .252-.04.502-.166.72ZM24.325 22.031h-.688a8.52 8.52 0 0 1-.709 1.016c-1.537 1.892-3.833 2.98-7.008 2.98-3.447 0-5.972-.717-7.557-2.514a4.408 4.408 0 0 1-.171-.21l-.195.21v13.155c2.867 1.558 9.02 4.353 15.984 4.353s13.117-2.795 15.984-4.353V23.513l-.195-.21s-.066.091-.171.21c-1.584 1.797-4.11 2.514-7.557 2.514-3.175 0-5.47-1.088-7.008-2.98a8.637 8.637 0 0 1-.709-1.016h-.033.033Zm-1.969-5.864a14.31 14.31 0 0 0 .127-1.785v-.042c-.003-1.537-.339-2.538-.876-3.152-.681-.78-2.09-1.378-5.06-1.057-3.008.326-4.69 1.073-5.643 2.048-.923.944-1.408 2.356-1.408 4.633 0 2.42.348 3.849 1.115 4.719.729.827 2.165 1.499 5.309 1.499 2.417 0 3.799-.786 4.683-1.873.948-1.168 1.482-2.878 1.753-4.99Zm3.25 0c.271 2.112.805 3.822 1.754 4.99.883 1.087 2.265 1.873 4.682 1.873 3.145 0 4.58-.672 5.309-1.499.767-.87 1.116-2.299 1.116-4.719 0-2.277-.485-3.689-1.408-4.633-.954-.975-2.635-1.722-5.644-2.048-2.969-.321-4.378.277-5.06 1.057-.537.614-.873 1.615-.876 3.152v.042c.002.53.042 1.123.127 1.785Z`}),f.createElement(`path`,{d:`M28.998 28.516c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Zm-9.996 0c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Z`}))},96:{width:96,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M95.667 67.954C92.225 73.933 72.24 88.04 47.997 88.04 23.754 88.04 3.769 73.933.328 67.954c-.216-.375-.307-.796-.328-1.226V55.661c.019-.371.089-.736.226-1.081 1.489-3.738 5.386-9.166 10.417-10.623.667-1.712 1.655-4.215 2.576-6.062-.154-1.414-.208-2.872-.208-4.345 0-5.322 1.128-9.99 4.527-13.466 1.587-1.623 3.557-2.869 5.893-3.805 5.595-4.545 13.563-8.369 24.48-8.369s19.057 3.824 24.652 8.369c2.337.936 4.306 2.182 5.894 3.805 3.399 3.476 4.527 8.144 4.527 13.466 0 1.473-.054 2.931-.208 4.345.921 1.847 1.909 4.35 2.576 6.062 5.03 1.457 8.928 6.885 10.417 10.623.163.41.231.848.231 1.289v10.644c0 .504-.081 1.004-.333 1.441ZM48.686 43.993l-.3.001-1.077-.001c-.423.709-.894 1.39-1.418 2.035-3.078 3.787-7.672 5.964-14.026 5.964-6.897 0-11.952-1.435-15.123-5.032a7.886 7.886 0 0 1-.342-.419l-.39.419v26.326c5.737 3.118 18.05 8.713 31.987 8.713 13.938 0 26.251-5.595 31.988-8.713V46.96l-.39-.419s-.132.181-.342.419c-3.171 3.597-8.226 5.032-15.123 5.032-6.354 0-10.949-2.177-14.026-5.964a17.178 17.178 0 0 1-1.418-2.034h-.066l.066-.001Zm-3.94-11.733c.17-1.326.251-2.513.253-3.573v-.084c-.005-3.077-.678-5.079-1.752-6.308-1.365-1.562-4.184-2.758-10.127-2.115-6.021.652-9.386 2.146-11.294 4.098-1.847 1.889-2.818 4.715-2.818 9.272 0 4.842.698 7.703 2.232 9.443 1.459 1.655 4.332 3.001 10.625 3.001 4.837 0 7.603-1.573 9.371-3.749 1.899-2.336 2.967-5.759 3.51-9.985Zm6.503 0c.543 4.226 1.611 7.649 3.51 9.985 1.768 2.176 4.533 3.749 9.371 3.749 6.292 0 9.165-1.346 10.624-3.001 1.535-1.74 2.232-4.601 2.232-9.443 0-4.557-.97-7.383-2.817-9.272-1.908-1.952-5.274-3.446-11.294-4.098-5.943-.643-8.763.553-10.127 2.115-1.074 1.229-1.747 3.231-1.752 6.308v.084c.002 1.06.083 2.247.253 3.573Zm-2.563 11.734h.066l-.066-.001v.001Z`}),f.createElement(`path`,{d:`M38.5 55.75a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Zm19 0a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Z`}))}},Sr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-copilot`,xr,br)});Sr.displayName=`CopilotIcon`;var Cr=[`16`,`24`],wr={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z`}),f.createElement(`path`,{d:`M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.024 3.75c0-.966.784-1.75 1.75-1.75H20.25c.966 0 1.75.784 1.75 1.75v11.498a1.75 1.75 0 0 1-1.75 1.75H8.774a1.75 1.75 0 0 1-1.75-1.75Zm1.75-.25a.25.25 0 0 0-.25.25v11.498c0 .139.112.25.25.25H20.25a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z`}),f.createElement(`path`,{d:`M1.995 10.749a1.75 1.75 0 0 1 1.75-1.751H5.25a.75.75 0 1 1 0 1.5H3.745a.25.25 0 0 0-.25.25L3.5 20.25c0 .138.111.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.51a.75.75 0 1 1 1.5 0v1.51A1.75 1.75 0 0 1 13.25 22h-9.5A1.75 1.75 0 0 1 2 20.25l-.005-9.501Z`}))}},Tr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-copy`,wr,Cr)});Tr.displayName=`CopyIcon`;var Er=[`16`,`24`],Dr={16:{width:16,path:f.createElement(`path`,{d:`M2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1Zm10.5 1.5H2.75a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12.75 7a.75.75 0 0 0-1.5 0v4.25H7a.75.75 0 0 0 0 1.5h4.25V17a.75.75 0 0 0 1.5 0v-4.25H17a.75.75 0 0 0 0-1.5h-4.25V7Z`}),f.createElement(`path`,{d:`M3.75 2A1.75 1.75 0 0 0 2 3.75v16.5c0 .966.784 1.75 1.75 1.75h16.5A1.75 1.75 0 0 0 22 20.25V3.75A1.75 1.75 0 0 0 20.25 2H3.75ZM3.5 3.75a.25.25 0 0 1 .25-.25h16.5a.25.25 0 0 1 .25.25v16.5a.25.25 0 0 1-.25.25H3.75a.25.25 0 0 1-.25-.25V3.75Z`}))}},Or=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-diff-added`,Dr,Er)});Or.displayName=`DiffAddedIcon`;var kr=[`16`,`24`],Ar={16:{width:16,path:f.createElement(`path`,{d:`M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75Z`}),f.createElement(`path`,{d:`M14.5 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z`}))}},jr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-diff-modified`,Ar,kr)});jr.displayName=`DiffModifiedIcon`;var Mr=[`16`,`24`],Nr={16:{width:16,path:f.createElement(`path`,{d:`M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm8.5 6.25h-6.5a.75.75 0 0 1 0-1.5h6.5a.75.75 0 0 1 0 1.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.313 11.25a.75.75 0 0 0 0 1.5h9.937a.75.75 0 0 0 0-1.5H7.312Z`}),f.createElement(`path`,{d:`M3.75 2A1.75 1.75 0 0 0 2 3.75v16.5c0 .966.784 1.75 1.75 1.75h16.5A1.75 1.75 0 0 0 22 20.25V3.75A1.75 1.75 0 0 0 20.25 2H3.75ZM3.5 3.75a.25.25 0 0 1 .25-.25h16.5a.25.25 0 0 1 .25.25v16.5a.25.25 0 0 1-.25.25H3.75a.25.25 0 0 1-.25-.25V3.75Z`}))}},Pr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-diff-removed`,Nr,Mr)});Pr.displayName=`DiffRemovedIcon`;var Fr=[`16`,`24`],Ir={16:{width:16,path:f.createElement(`path`,{d:`M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm9.03 6.03-3.25 3.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.97-1.97H4.75a.75.75 0 0 1 0-1.5h4.69L7.47 5.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l3.25 3.25a.75.75 0 0 1 0 1.06Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M13.75 12.75v3.347a.25.25 0 0 0 .436.166l3.672-4.096a.25.25 0 0 0 0-.334l-3.672-4.096a.25.25 0 0 0-.436.166v3.347h-7a.75.75 0 0 0 0 1.5h7Z`}),f.createElement(`path`,{d:`M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75Z`}))}},Lr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-diff-renamed`,Ir,Fr)});Lr.displayName=`DiffRenamedIcon`;var Rr=[`16`,`24`],zr={16:{width:16,path:f.createElement(`path`,{d:`M0 5.75C0 4.784.784 4 1.75 4h12.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 14.25 12H1.75A1.75 1.75 0 0 1 0 10.25ZM12 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0ZM4 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z`})},24:{width:24,path:f.createElement(`path`,{d:`M22 9.75v5.5A1.75 1.75 0 0 1 20.25 17H3.75A1.75 1.75 0 0 1 2 15.25v-5.5C2 8.784 2.784 8 3.75 8h16.5c.966 0 1.75.784 1.75 1.75Zm-8.75 2.75a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0Zm-6.5 1.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm10.5 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z`})}},Br=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-ellipsis`,zr,Rr)});Br.displayName=`EllipsisIcon`;var Vr=[`16`,`24`],Hr={16:{width:16,path:f.createElement(`path`,{d:`M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4Zm10 0v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z`})}},Ur=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-file`,Hr,Vr)});Ur.displayName=`FileIcon`;var Wr=[`16`,`24`],Gr={16:{width:16,path:f.createElement(`path`,{d:`M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2a.75.75 0 0 1-1.5 0Zm-4 6C0 6.784.784 6 1.75 6h1.5C4.216 6 5 6.784 5 7.75v2.5A1.75 1.75 0 0 1 3.25 12h-1.5A1.75 1.75 0 0 1 0 10.25ZM6.75 6h1.5a.75.75 0 0 1 .75.75v3.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-3h-.75a.75.75 0 0 1 0-1.5Zm-5 1.5a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm9.75-5.938V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm12-.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z`}),f.createElement(`path`,{d:`M0 13.75C0 12.784.784 12 1.75 12h3c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75h-3A1.75 1.75 0 0 1 0 17.75Zm1.75-.25a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM9 12a.75.75 0 0 0 0 1.5h1.5V18H9a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H12v-5.25a.75.75 0 0 0-.75-.75H9Z`}))}},Kr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-file-binary`,Gr,Wr)});Kr.displayName=`FileBinaryIcon`;var qr=[`16`,`24`],Jr={16:{width:16,path:f.createElement(`path`,{d:`M1 1.75C1 .784 1.784 0 2.75 0h7.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073ZM8 3.25a.75.75 0 0 1 .75.75v1.5h1.5a.75.75 0 0 1 0 1.5h-1.5v1.5a.75.75 0 0 1-1.5 0V7h-1.5a.75.75 0 0 1 0-1.5h1.5V4A.75.75 0 0 1 8 3.25Zm-3 8a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12.5 6.75a.75.75 0 0 0-1.5 0V9H8.75a.75.75 0 0 0 0 1.5H11v2.25a.75.75 0 0 0 1.5 0V10.5h2.25a.75.75 0 0 0 0-1.5H12.5V6.75ZM8.75 16a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6Z`}),f.createElement(`path`,{d:`M5 1h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-.5 2v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V7.018a.5.5 0 0 0-.146-.354l-4.018-4.018a.5.5 0 0 0-.354-.146H5a.5.5 0 0 0-.5.5Z`}))}},Yr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-file-diff`,Jr,qr)});Yr.displayName=`FileDiffIcon`;var Xr=[`16`,`24`],Zr={16:{width:16,path:f.createElement(`path`,{d:`M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z`})},24:{width:24,path:f.createElement(`path`,{d:`M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z`})}},Qr=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-file-directory-fill`,Zr,Xr)});Qr.displayName=`FileDirectoryFillIcon`;var $r=[`16`,`24`],ei={16:{width:16,path:f.createElement(`path`,{d:`M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z`})},24:{width:24,path:f.createElement(`path`,{d:`M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063a.25.25 0 0 0 .207.11h6.224c.966 0 1.75.783 1.75 1.75v.117H5.408a.848.848 0 0 0 0 1.695h15.484a1 1 0 0 1 .995 1.102L21 19.25c-.106 1.05-.784 1.75-1.75 1.75H3.75A1.75 1.75 0 0 1 2 19.25V4.75Z`})}},ti=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-file-directory-open-fill`,ei,$r)});ti.displayName=`FileDirectoryOpenFillIcon`;var ni=[`16`,`24`],ri={16:{width:16,path:f.createElement(`path`,{d:`M0 2.75C0 1.784.784 1 1.75 1H5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm9.42 9.36 2.883-2.677a.25.25 0 0 0 0-.366L9.42 6.39a.249.249 0 0 0-.42.183V8.5H4.75a.75.75 0 0 0 0 1.5H9v1.927c0 .218.26.331.42.183Z`})},24:{width:24,path:f.createElement(`path`,{d:`M2 4.75C2 3.784 2.784 3 3.75 3h4.965a1.75 1.75 0 0 1 1.456.78l1.406 2.109a.25.25 0 0 0 .208.111h8.465c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Zm12.78 4.97a.749.749 0 0 0-1.275.326.749.749 0 0 0 .215.734l1.72 1.72H6.75a.75.75 0 0 0 0 1.5h8.69l-1.72 1.72a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215l3-3a.75.75 0 0 0 0-1.06Z`})}},ii=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-file-submodule`,ri,ni)});ii.displayName=`FileSubmoduleIcon`;var ai=[`16`,`24`],oi={16:{width:16,path:f.createElement(`path`,{d:`m8.177 14.323 2.896-2.896a.25.25 0 0 0-.177-.427H8.75V7.764a.75.75 0 1 0-1.5 0V11H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0ZM2.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75ZM8.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12 19a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 17.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 19Z`}),f.createElement(`path`,{d:`M12 18a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v7.5A.75.75 0 0 1 12 18ZM2.75 6a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 2.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 6.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z`}))}},si=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-fold-down`,oi,ai)});si.displayName=`FoldDownIcon`;var ci=[`16`,`24`],li={16:{width:16,path:f.createElement(`path`,{d:`M7.823 1.677 4.927 4.573A.25.25 0 0 0 5.104 5H7.25v3.236a.75.75 0 1 0 1.5 0V5h2.146a.25.25 0 0 0 .177-.427L8.177 1.677a.25.25 0 0 0-.354 0ZM13.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Zm-3.75.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM7.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM4 11.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM1.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M11.47 5.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 6.81 9.28 9.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z`}),f.createElement(`path`,{d:`M12 5.5a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0v-8A.75.75 0 0 1 12 5.5ZM2.75 18a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z`}))}},ui=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-fold-up`,li,ci)});ui.displayName=`FoldUpIcon`;var di=[`16`,`24`],fi={16:{width:16,path:f.createElement(`path`,{d:`M11.93 8.5a4.002 4.002 0 0 1-7.86 0H.75a.75.75 0 0 1 0-1.5h3.32a4.002 4.002 0 0 1 7.86 0h3.32a.75.75 0 0 1 0 1.5Zm-1.43-.75a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M16.944 11h4.306a.75.75 0 0 1 0 1.5h-4.306a5.001 5.001 0 0 1-9.888 0H2.75a.75.75 0 0 1 0-1.5h4.306a5.001 5.001 0 0 1 9.888 0Zm-1.444.75a3.5 3.5 0 1 0-7 0 3.5 3.5 0 0 0 7 0Z`})}},pi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-git-commit`,fi,di)});pi.displayName=`GitCommitIcon`;var mi=[`16`,`24`],hi={16:{width:16,path:f.createElement(`path`,{d:`M9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM6 12v-1.646a.25.25 0 0 1 .427-.177l2.396 2.396a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 6 15.146V13.5H5A2.5 2.5 0 0 1 2.5 11V5.372a2.25 2.25 0 1 1 1.5 0V11a1 1 0 0 0 1 1ZM4 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM12.75 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M16.5 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z`}),f.createElement(`path`,{d:`M13.905 1.72a.75.75 0 0 1 0 1.06L12.685 4h4.065a3.75 3.75 0 0 1 3.75 3.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM7.5 4.75a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0ZM4.25 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 4.25 6.5Z`}),f.createElement(`path`,{d:`M10.095 22.28a.75.75 0 0 1 0-1.06l1.22-1.22H7.25a3.75 3.75 0 0 1-3.75-3.75V7.5a.75.75 0 0 1 1.5 0v8.75a2.25 2.25 0 0 0 2.25 2.25h4.064l-1.22-1.22a.748.748 0 0 1 .332-1.265.75.75 0 0 1 .729.205l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0Z`}))}},gi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-git-compare`,hi,mi)});gi.displayName=`GitCompareIcon`;var _i=[`16`,`24`],vi={16:{width:16,path:f.createElement(`path`,{d:`M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z`}),f.createElement(`path`,{d:`M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z`}),f.createElement(`path`,{d:`M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z`}))}},yi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-git-merge`,vi,_i)});yi.displayName=`GitMergeIcon`;var bi=[`16`,`24`],xi={16:{width:16,path:f.createElement(`path`,{d:`M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z`}),f.createElement(`path`,{d:`M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z`}))}},Si=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-git-pull-request`,xi,bi)});Si.displayName=`GitPullRequestIcon`;var Ci=[`16`,`24`],wi={16:{width:16,path:f.createElement(`path`,{d:`M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z`})},24:{width:24,path:f.createElement(`path`,{d:`M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z`})}},Ti=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-git-pull-request-closed`,wi,Ci)});Ti.displayName=`GitPullRequestClosedIcon`;var Ei=[`16`,`24`],Di={16:{width:16,path:f.createElement(`path`,{d:`M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z`})}},Oi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-git-pull-request-draft`,Di,Ei)});Oi.displayName=`GitPullRequestDraftIcon`;var ki=[`16`,`24`],Ai={16:{width:16,path:f.createElement(`path`,{d:`m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z`}),f.createElement(`path`,{d:`M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z`}))}},ji=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-history`,Ai,ki)});ji.displayName=`HistoryIcon`;var Mi=[`16`,`24`],Ni={16:{width:16,path:f.createElement(`path`,{d:`M6 2.75A.75.75 0 0 1 6.75 2h6.5a.75.75 0 0 1 0 1.5h-2.505l-3.858 9H9.25a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.505l3.858-9H6.75A.75.75 0 0 1 6 2.75Z`})},24:{width:24,path:f.createElement(`path`,{d:`M10 4.75a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-3.514l-5.828 13h3.342a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.514l5.828-13H10.75a.75.75 0 0 1-.75-.75Z`})}},Pi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-italic`,Ni,Mi)});Pi.displayName=`ItalicIcon`;var Fi=[`16`,`24`],Ii={16:{width:16,path:f.createElement(`path`,{d:`M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`})},24:{width:24,path:f.createElement(`path`,{d:`M20 14a2 2 0 1 1-.001-3.999A2 2 0 0 1 20 14ZM6 12a2 2 0 1 1-3.999.001A2 2 0 0 1 6 12Zm8 0a2 2 0 1 1-3.999.001A2 2 0 0 1 14 12Z`})}},Li=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-kebab-horizontal`,Ii,Fi)});Li.displayName=`KebabHorizontalIcon`;var Ri=[`16`,`24`],zi={16:{width:16,path:f.createElement(`path`,{d:`m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M14.78 3.653a3.936 3.936 0 1 1 5.567 5.567l-3.627 3.627a3.936 3.936 0 0 1-5.88-.353.75.75 0 0 0-1.18.928 5.436 5.436 0 0 0 8.12.486l3.628-3.628a5.436 5.436 0 1 0-7.688-7.688l-3 3a.75.75 0 0 0 1.06 1.061l3-3Z`}),f.createElement(`path`,{d:`M7.28 11.153a3.936 3.936 0 0 1 5.88.353.75.75 0 0 0 1.18-.928 5.436 5.436 0 0 0-8.12-.486L2.592 13.72a5.436 5.436 0 1 0 7.688 7.688l3-3a.75.75 0 1 0-1.06-1.06l-3 3a3.936 3.936 0 0 1-5.567-5.568l3.627-3.627Z`}))}},Bi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-link`,zi,Ri)});Bi.displayName=`LinkIcon`;var Vi=[`16`,`24`],Hi={16:{width:16,path:f.createElement(`path`,{d:`M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M15.5 2.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V4.06l-6.22 6.22a.75.75 0 1 1-1.06-1.06L19.94 3h-3.69a.75.75 0 0 1-.75-.75Z`}),f.createElement(`path`,{d:`M2.5 4.25c0-.966.784-1.75 1.75-1.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h15.5a.25.25 0 0 0 .25-.25v-8.5a.75.75 0 0 1 1.5 0v8.5a1.75 1.75 0 0 1-1.75 1.75H4.25a1.75 1.75 0 0 1-1.75-1.75V4.25Z`}))}},Ui=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-link-external`,Hi,Vi)});Ui.displayName=`LinkExternalIcon`;var Wi=[`16`,`24`],Gi={16:{width:16,path:f.createElement(`path`,{d:`M5.75 2.5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM2 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`})},24:{width:24,path:f.createElement(`path`,{d:`M8.75 5.5h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM4 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`})}},Ki=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-list-unordered`,Gi,Wi)});Ki.displayName=`ListUnorderedIcon`;var qi=[`16`,`24`],Ji={16:{width:16,path:f.createElement(`path`,{d:`M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656`})},24:{width:24,path:f.createElement(`path`,{d:`M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943`})}},Yi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-mark-github`,Ji,qi)});Yi.displayName=`MarkGithubIcon`;var Xi=[`16`,`24`],Zi={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M4.25 7.25a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Z`}),f.createElement(`path`,{d:`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z`}))},24:{width:24,path:f.createElement(`path`,{d:`M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm15.75.75H5.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5Z`})}},Qi=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-no-entry`,Zi,Xi)});Qi.displayName=`NoEntryIcon`;var $i=[`16`,`24`],ea={16:{width:16,path:f.createElement(`path`,{d:`M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z`})},24:{width:24,path:f.createElement(`path`,{d:`M17.263 2.177a1.75 1.75 0 0 1 2.474 0l2.586 2.586a1.75 1.75 0 0 1 0 2.474L19.53 10.03l-.012.013L8.69 20.378a1.753 1.753 0 0 1-.699.409l-5.523 1.68a.748.748 0 0 1-.747-.188.748.748 0 0 1-.188-.747l1.673-5.5a1.75 1.75 0 0 1 .466-.756L14.476 4.963ZM4.708 16.361a.26.26 0 0 0-.067.108l-1.264 4.154 4.177-1.271a.253.253 0 0 0 .1-.059l10.273-9.806-2.94-2.939-10.279 9.813ZM19 8.44l2.263-2.262a.25.25 0 0 0 0-.354l-2.586-2.586a.25.25 0 0 0-.354 0L16.061 5.5Z`})}},ta=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-pencil`,ea,$i)});ta.displayName=`PencilIcon`;var na=[`16`,`24`],H={16:{width:16,path:f.createElement(`path`,{d:`M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z`})}},ra=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-people`,H,na)});ra.displayName=`PeopleIcon`;var ia=[`16`,`24`],aa={16:{width:16,path:f.createElement(`path`,{d:`M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z`})},24:{width:24,path:f.createElement(`path`,{d:`M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z`})}},oa=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-plus`,aa,ia)});oa.displayName=`PlusIcon`;var sa=[`16`,`24`],ca={16:{width:16,path:f.createElement(`path`,{d:`M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`}),f.createElement(`path`,{d:`M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z`}))}},la=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-question`,ca,sa)});la.displayName=`QuestionIcon`;var ua=[`16`,`24`],da={16:{width:16,path:f.createElement(`path`,{d:`M1.75 2.5h10.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5Zm4 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2.5 7.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 1.5 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3 6.25a.75.75 0 0 1 .75-.75h13.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.25Zm5 6.063a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75Zm0 5.937a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75ZM3.75 11a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0v-7a.75.75 0 0 1 .75-.75Z`})}},fa=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-quote`,da,ua)});fa.displayName=`QuoteIcon`;var pa=[`16`,`24`],ma={16:{width:16,path:f.createElement(`path`,{d:`M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M3 2.75A2.75 2.75 0 0 1 5.75 0h14.5a.75.75 0 0 1 .75.75v20.5a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h5.25v-4H6A1.5 1.5 0 0 0 4.5 18v.75c0 .716.43 1.334 1.05 1.605a.75.75 0 0 1-.6 1.374A3.251 3.251 0 0 1 3 18.75ZM19.5 1.5H5.75c-.69 0-1.25.56-1.25 1.25v12.651A2.989 2.989 0 0 1 6 15h13.5Z`}),f.createElement(`path`,{d:`M7 18.25a.25.25 0 0 1 .25-.25h5a.25.25 0 0 1 .25.25v5.01a.25.25 0 0 1-.397.201l-2.206-1.604a.25.25 0 0 0-.294 0L7.397 23.46a.25.25 0 0 1-.397-.2v-5.01Z`}))}},ha=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-repo`,ma,pa)});ha.displayName=`RepoIcon`;var ga=[`16`,`24`],_a={16:{width:16,path:f.createElement(`path`,{d:`M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z`})},24:{width:24,path:f.createElement(`path`,{d:`M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z`})}},va=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-search`,_a,ga)});va.displayName=`SearchIcon`;var ya=[`16`,`24`],ba={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z`}),f.createElement(`path`,{d:`M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.22 14.47 9.69 12 7.22 9.53a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l3 3a.75.75 0 0 1 0 1.06l-3 3a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z`}),f.createElement(`path`,{d:`M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z`}))}},xa=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-sidebar-collapse`,ba,ya)});xa.displayName=`SidebarCollapseIcon`;var Sa=[`16`,`24`],Ca={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`m4.177 7.823 2.396-2.396A.25.25 0 0 1 7 5.604v4.792a.25.25 0 0 1-.427.177L4.177 8.177a.25.25 0 0 1 0-.354Z`}),f.createElement(`path`,{d:`M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M11.28 9.53 8.81 12l2.47 2.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3-3a.75.75 0 0 1 0-1.06l3-3a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z`}),f.createElement(`path`,{d:`M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z`}))}},wa=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-sidebar-expand`,Ca,Sa)});wa.displayName=`SidebarExpandIcon`;var Ta=[`16`,`24`],Ea={16:{width:16,path:f.createElement(`path`,{d:`M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12 7a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z`}),f.createElement(`path`,{d:`M7.328 1.47a.749.749 0 0 1 .53-.22h8.284c.199 0 .389.079.53.22l5.858 5.858c.141.14.22.33.22.53v8.284a.749.749 0 0 1-.22.53l-5.858 5.858a.749.749 0 0 1-.53.22H7.858a.749.749 0 0 1-.53-.22L1.47 16.672a.749.749 0 0 1-.22-.53V7.858c0-.199.079-.389.22-.53Zm.84 1.28L2.75 8.169v7.662l5.419 5.419h7.662l5.419-5.418V8.168L15.832 2.75Z`}))}},Da=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-stop`,Ea,Ta)});Da.displayName=`StopIcon`;var Oa=[`16`,`24`],ka={16:{width:16,path:f.createElement(`path`,{d:`M1.705 8.005a.75.75 0 0 1 .834.656 5.5 5.5 0 0 0 9.592 2.97l-1.204-1.204a.25.25 0 0 1 .177-.427h3.646a.25.25 0 0 1 .25.25v3.646a.25.25 0 0 1-.427.177l-1.38-1.38A7.002 7.002 0 0 1 1.05 8.84a.75.75 0 0 1 .656-.834ZM8 2.5a5.487 5.487 0 0 0-4.131 1.869l1.204 1.204A.25.25 0 0 1 4.896 6H1.25A.25.25 0 0 1 1 5.75V2.104a.25.25 0 0 1 .427-.177l1.38 1.38A7.002 7.002 0 0 1 14.95 7.16a.75.75 0 0 1-1.49.178A5.5 5.5 0 0 0 8 2.5Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3.38 8A9.502 9.502 0 0 1 12 2.5a9.502 9.502 0 0 1 9.215 7.182.75.75 0 1 0 1.456-.364C21.473 4.539 17.15 1 12 1a10.995 10.995 0 0 0-9.5 5.452V4.75a.75.75 0 0 0-1.5 0V8.5a1 1 0 0 0 1 1h3.75a.75.75 0 0 0 0-1.5H3.38Zm-.595 6.318a.75.75 0 0 0-1.455.364C2.527 19.461 6.85 23 12 23c4.052 0 7.592-2.191 9.5-5.451v1.701a.75.75 0 0 0 1.5 0V15.5a1 1 0 0 0-1-1h-3.75a.75.75 0 0 0 0 1.5h2.37A9.502 9.502 0 0 1 12 21.5c-4.446 0-8.181-3.055-9.215-7.182Z`})}},Aa=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-sync`,ka,Oa)});Aa.displayName=`SyncIcon`;var ja=[`16`,`24`],Ma={16:{width:16,path:f.createElement(`path`,{d:`M5.433 2.304A4.492 4.492 0 0 0 3.5 6c0 1.598.832 3.002 2.09 3.802.518.328.929.923.902 1.64v.008l-.164 3.337a.75.75 0 1 1-1.498-.073l.163-3.33c.002-.085-.05-.216-.207-.316A5.996 5.996 0 0 1 2 6a5.993 5.993 0 0 1 2.567-4.92 1.482 1.482 0 0 1 1.673-.04c.462.296.76.827.76 1.423v2.82c0 .082.041.16.11.206l.75.51a.25.25 0 0 0 .28 0l.75-.51A.249.249 0 0 0 9 5.282V2.463c0-.596.298-1.127.76-1.423a1.482 1.482 0 0 1 1.673.04A5.993 5.993 0 0 1 14 6a5.996 5.996 0 0 1-2.786 5.068c-.157.1-.209.23-.207.315l.163 3.33a.752.752 0 0 1-1.094.714.75.75 0 0 1-.404-.64l-.164-3.345c-.027-.717.384-1.312.902-1.64A4.495 4.495 0 0 0 12.5 6a4.492 4.492 0 0 0-1.933-3.696c-.024.017-.067.067-.067.16v2.818a1.75 1.75 0 0 1-.767 1.448l-.75.51a1.75 1.75 0 0 1-1.966 0l-.75-.51A1.75 1.75 0 0 1 5.5 5.282V2.463c0-.092-.043-.142-.067-.159Z`})},24:{width:24,path:f.createElement(`path`,{d:`M7.875 2.292a.114.114 0 0 0-.032.018A7.239 7.239 0 0 0 4.75 8.25a7.248 7.248 0 0 0 3.654 6.297c.57.327.982.955.941 1.682v.002l-.317 6.058a.75.75 0 1 1-1.498-.078l.317-6.062v-.004c.006-.09-.047-.215-.188-.296A8.749 8.749 0 0 1 3.25 8.25a8.738 8.738 0 0 1 3.732-7.169 1.547 1.547 0 0 1 1.709-.064c.484.292.809.835.809 1.46v4.714a.25.25 0 0 0 .119.213l2.25 1.385c.08.05.182.05.262 0l2.25-1.385a.25.25 0 0 0 .119-.213V2.478c0-.626.325-1.169.81-1.461a1.547 1.547 0 0 1 1.708.064 8.741 8.741 0 0 1 3.732 7.17 8.747 8.747 0 0 1-4.41 7.598c-.14.081-.193.206-.188.296v.004l.318 6.062a.75.75 0 1 1-1.498.078l-.317-6.058v-.002c-.041-.727.37-1.355.94-1.682A7.247 7.247 0 0 0 19.25 8.25a7.239 7.239 0 0 0-3.093-5.94.114.114 0 0 0-.032-.018l-.01-.001c-.003 0-.014 0-.031.01-.036.022-.084.079-.084.177V7.19c0 .608-.315 1.172-.833 1.49l-2.25 1.385a1.75 1.75 0 0 1-1.834 0l-2.25-1.384A1.752 1.752 0 0 1 8 7.192V2.477c0-.098-.048-.155-.084-.176a.068.068 0 0 0-.031-.011l-.01.001Z`})}},Na=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-tools`,Ma,ja)});Na.displayName=`ToolsIcon`;var Pa=[`16`,`24`],Fa={16:{width:16,path:f.createElement(`path`,{d:`M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M16 1.75V3h5.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H8V1.75C8 .784 8.784 0 9.75 0h4.5C15.216 0 16 .784 16 1.75Zm-6.5 0V3h5V1.75a.25.25 0 0 0-.25-.25h-4.5a.25.25 0 0 0-.25.25ZM4.997 6.178a.75.75 0 1 0-1.493.144L4.916 20.92a1.75 1.75 0 0 0 1.742 1.58h10.684a1.75 1.75 0 0 0 1.742-1.581l1.413-14.597a.75.75 0 0 0-1.494-.144l-1.412 14.596a.25.25 0 0 1-.249.226H6.658a.25.25 0 0 1-.249-.226L4.997 6.178Z`}),f.createElement(`path`,{d:`M9.206 7.501a.75.75 0 0 1 .793.705l.5 8.5A.75.75 0 1 1 9 16.794l-.5-8.5a.75.75 0 0 1 .705-.793Zm6.293.793A.75.75 0 1 0 14 8.206l-.5 8.5a.75.75 0 0 0 1.498.088l.5-8.5Z`}))}},Ia=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-trash`,Fa,Pa)});Ia.displayName=`TrashIcon`;var La=[`16`,`24`],Ra={16:{width:16,path:f.createElement(`path`,{d:`m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z`})},24:{width:24,path:f.createElement(`path`,{d:`M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z`})}},za=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-triangle-down`,Ra,La)});za.displayName=`TriangleDownIcon`;var Ba=[`16`,`24`],Va={16:{width:16,path:f.createElement(`path`,{d:`m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12 23a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 21.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 23Z`}),f.createElement(`path`,{d:`M11.47 1.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 2.81 9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042ZM12 22.25a.75.75 0 0 1-.75-.75v-5.75a.75.75 0 0 1 1.5 0v5.75a.75.75 0 0 1-.75.75ZM2.75 12a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z`}),f.createElement(`path`,{d:`M12 1.5a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6A.75.75 0 0 1 12 1.5Z`}))}},Ha=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-unfold`,Va,Ba)});Ha.displayName=`UnfoldIcon`;var Ua=[`12`,`16`,`24`],Wa={12:{width:12,path:f.createElement(`path`,{d:`M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z`})},16:{width:16,path:f.createElement(`path`,{d:`M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z`})}},Ga=f.forwardRef(function(e,t){return V(e,t,`octicon octicon-x`,Wa,Ua)});Ga.displayName=`XIcon`;var Ka=`a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), summary, [tabindex]:not([tabindex="-1"])`;function qa(e){let[t]=(0,f.useState)(()=>document.activeElement instanceof HTMLElement?document.activeElement:null);(0,f.useEffect)(()=>{let n=e.current;if(!n)return;let r=()=>[...n.querySelectorAll(Ka)].filter(e=>e.getClientRects().length>0);n.contains(document.activeElement)||r()[0]?.focus();let i=e=>{if(e.key!==`Tab`)return;let t=r(),i=t[0],a=t.at(-1);if(!i||!a){e.preventDefault();return}let o=document.activeElement,s=!n.contains(o);(e.shiftKey?o===i||s:o===a||s)&&(e.preventDefault(),(e.shiftKey?a:i).focus())};return document.addEventListener(`keydown`,i,!0),()=>{document.removeEventListener(`keydown`,i,!0),t?.isConnected&&t.focus({preventScroll:!0})}},[e,t])}var Ja=new Set;function Ya(e){return Ja.add(e),()=>Ja.delete(e)}function Xa(e,t){let n=new Set(t),r=n.has(`worktree`)||n.has(`index`);e.invalidateQueries({predicate:({queryKey:e})=>{let[t,,i,a]=e;if(t===`threads`||t===`changes`||t===`viewed`||t===`review-draft`||n.has(`pull`)&&(t===`pull`||t===`resolve`||t===`refs`)||n.has(`refs`)&&(t===`resolve`||t===`refs`||t===`repo`)||t===`staging`&&(r||n.has(`refs`)))return!0;if(!r)return!1;if(t===`worktree-file`)return!0;let o=e=>typeof e==`string`&&e.startsWith(`:`);return(t===`files`||t===`diff`)&&(o(i)||o(a))}})}var Za=new Set([`blob`,`tokens`]);function Qa(e){let t=y();(0,f.useEffect)(()=>{let n,r,i=500,a=!1,o=!1,s=()=>{n=new WebSocket(`${window.location.protocol===`https:`?`wss`:`ws`}://${window.location.host}/api/events?repo=${e}`),n.addEventListener(`open`,()=>{i=500,o&&t.invalidateQueries({predicate:({queryKey:e})=>!Za.has(String(e[0]))}),o=!1}),n.addEventListener(`message`,e=>{try{let n=JSON.parse(String(e.data));n.type===`change`?Xa(t,n.kinds):Ja.forEach(e=>e(n.runId,n.event))}catch{}}),n.addEventListener(`close`,()=>{a||(o=!0,r=window.setTimeout(s,i),i=Math.min(i*2,15e3))})};return s(),()=>{a=!0,window.clearTimeout(r),n?.close()}},[e,t])}var $a=(0,f.createContext)(void 0),eo=(0,f.createContext)(void 0);function to(){let e=(0,f.useContext)(eo);if(!e)throw Error(`useAgentActions needs an AgentProvider above it`);return e}function no(){let e=(0,f.useContext)($a),t=to();if(!e)throw Error(`useAgent needs an AgentProvider above it`);return(0,f.useMemo)(()=>({...e,...t}),[e,t])}var ro=[];function io(){let e=(0,f.useContext)($a);return(0,f.useMemo)(()=>({agents:e?.agents??ro,agentId:e?.agentId}),[e?.agents,e?.agentId])}var ao=`agentic-diff.agent-ack.`,oo=`agentic-diff.agent-isolated`;function so(){try{return window.localStorage.getItem(oo)===`1`}catch{return!1}}function co(e){try{return window.localStorage.getItem(ao+e)===`1`}catch{return!1}}function lo(e){try{window.localStorage.setItem(ao+e,`1`)}catch{}}function uo({repoId:e,repoRoot:t,spec:n,scope:r,scratch:i,children:a}){let o=y(),s=tt({queryKey:[`agents`],queryFn:z.agents,staleTime:6e4}),c=tt({queryKey:[`agent-runs`,e],queryFn:()=>z.runs(e)}),[l,u]=(0,f.useState)([]),[d,p]=(0,f.useState)(void 0),[m,h]=(0,f.useState)(void 0),[g,v]=(0,f.useState)(void 0),[b,x]=(0,f.useState)(so),S=b&&!i;(0,f.useEffect)(()=>{c.data&&u(c.data.runs)},[c.data]),(0,f.useEffect)(()=>Ya((t,n)=>{u(r=>r.some(e=>e.id===t)?r.map(e=>e.id===t?Lt(e,n):e):(o.invalidateQueries({queryKey:[`agent-runs`,e]}),r)),(n.t===`done`||n.t===`error`)&&(o.invalidateQueries({queryKey:[`agent-runs`,e]}),o.invalidateQueries({queryKey:[`threads`,e]}),o.invalidateQueries({queryKey:[`chat`,e]}),o.invalidateQueries({queryKey:[`agents`]}))}),[o,e]);let C=s.data?.agents??ro,w=d??C.find(e=>e.isDefault)?.id??C[0]?.id,T=C.find(e=>e.id===w),E=(0,f.useCallback)(e=>qt(e.message,C,w).agentId??w,[C,w]),D=(0,f.useCallback)(async(t,r)=>{v(void 0);try{let i=await z.startRun(e,{spec:n,message:t.message,threadId:t.threadId,agentId:E(t),isolated:S,acceptForeign:r,review:t.review,fix:t.fix});return u(e=>[i,...e.filter(e=>e.id!==i.id)]),t.threadId===void 0&&o.invalidateQueries({queryKey:[`chat`,e]}),!0}catch(n){if(n instanceof lt&&n.code===`untrusted_repo`)return new Promise(e=>h({input:t,untrusted:!0,settle:e}));let i=n instanceof lt&&n.code===`foreign_code`?n.data.head:void 0;return i!==void 0&&r!==i?co(`foreign.${e}.${i}`)?D(t,i):new Promise(e=>h({input:t,untrusted:!1,foreign:i,settle:e})):(v({threadId:t.threadId,message:n instanceof Error?n.message:`Could not start the agent`}),!1)}},[e,n,E,S,o]),O=(0,f.useCallback)(t=>{let n=E(t);return n&&!co(`${e}.${n}`)?new Promise(e=>h({input:t,untrusted:!1,settle:e})):D(t)},[e,E,D]),ee=async()=>{if(!m)return;let{input:t,untrusted:n,foreign:r,settle:i}=m;h(void 0);let a=E(t);a&&lo(`${e}.${a}`),r!==void 0&&lo(`foreign.${e}.${r}`);try{n&&(await z.trustRepo(e),o.invalidateQueries({queryKey:[`repo`,e]})),i(await D(t,r))}catch(e){v({threadId:t.threadId,message:e instanceof Error?e.message:`Could not start the agent`}),i(!1)}},k=()=>{m?.settle(!1),h(void 0)},te=(0,f.useMemo)(()=>{let t=e=>v({message:e instanceof Error?e.message:`The request failed`}),n=e=>void e.then(e=>u(t=>e.dismissed?t.filter(t=>t.id!==e.id):t.map(t=>t.id===e.id?e:t)),t);return{selectAgent:p,setIsolated:e=>{x(e);try{window.localStorage.setItem(oo,e?`1`:`0`)}catch{}},setOption:(e,t,n)=>void z.setAgentOption(e,t,n).then(()=>o.invalidateQueries({queryKey:[`agents`]}),e=>v({message:e instanceof Error?e.message:`The option could not be set`})),start:O,startIfMentioned:(e,t)=>{Jt(t,C)&&O({threadId:e,message:t})},cancel:t=>n(z.cancelRun(e,t)),answer:(n,r,i)=>{u(e=>e.map(e=>e.id===n&&e.asking?.id===r?{...e,asking:void 0}:e)),z.answerRun(e,n,r,i).catch(t)},revert:t=>n(z.revertRun(e,t)),dismiss:t=>n(z.dismissRun(e,t))}},[O,e,o,C]),ne=(0,f.useMemo)(()=>{let e=e=>e.status===`running`||e.status===`failed`;return{agents:C,agentId:w,runs:l,runFor:t=>l.find(n=>n.threadId===t&&e(n)),chatRun:l.find(t=>t.threadId===void 0&&t.scope===r&&e(t)),startError:g,isolated:S,canIsolate:!i}},[C,w,l,r,g,S,i]),A=m?C.find(e=>e.id===E(m.input))??T:void 0;return(0,_.jsxs)(eo.Provider,{value:te,children:[(0,_.jsx)($a.Provider,{value:ne,children:a}),m&&A&&(0,_.jsx)(fo,{agent:A,untrusted:m.untrusted,foreign:m.foreign!==void 0,where:i?`a disposable copy of the revision being compared`:S?`a disposable copy of your working tree as it is now`:void 0,repoRoot:t,onConfirm:()=>void ee(),onCancel:k})]})}function fo({agent:e,untrusted:t,foreign:n,where:r,repoRoot:i,onConfirm:a,onCancel:o}){let s=(0,f.useRef)(null);return qa(s),(0,f.useEffect)(()=>{let e=e=>{e.key===`Escape`&&o()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[o]),(0,_.jsx)(`div`,{className:`modal-backdrop`,children:(0,_.jsxs)(`div`,{ref:s,className:`dialog modal`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`agent-confirm-title`,children:[(0,_.jsxs)(`h2`,{id:`agent-confirm-title`,className:`dialog-title`,children:[`Run `,e.name,` here?`]}),t&&(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`alert`,children:`This repository was cloned from a shared link. An agent reads project files, and some agents also load configuration from the project directory. Run one here only if you trust this repository.`}),n&&(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`alert`,children:`These commits are on none of your branches: they are someone else’s code, such as a pull request or a remote branch. The agent runs inside a copy of them, and some agents load settings, hooks or tool servers from the directory they run in. Run one here only if you trust where this code comes from.`}),(0,_.jsxs)(`dl`,{className:`dialog-facts`,children:[(0,_.jsx)(`dt`,{children:`Command`}),(0,_.jsx)(`dd`,{children:(0,_.jsx)(`code`,{children:e.command})}),(0,_.jsx)(`dt`,{children:`Runs in`}),(0,_.jsx)(`dd`,{children:r??(0,_.jsx)(`code`,{children:i??`the working tree`})})]}),(0,_.jsx)(`p`,{className:`dialog-note`,children:`The agent is a separate program with your permissions. What it reads here and sends to its provider is decided by the agent, not by agentic-diff. Its edits are turned into suggestions; nothing is applied without you.`}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,autoFocus:!0,onClick:a,children:t?`Trust this repository and run`:n?`Run in this code`:`Run agent`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:o,children:`Cancel`})]})]})})}var po=ot();function mo({textarea:e,value:t,onChange:n}){let{agents:r,agentId:i}=io(),[a,o]=(0,f.useState)(void 0),[s,c]=(0,f.useState)(0),[l,u]=(0,f.useState)(void 0),d=(0,f.useRef)(null),p=(0,f.useMemo)(()=>a===void 0||r.length===0?void 0:Zt(t,a,r,i),[t,a,r,i]),m=p!==void 0&&l!==t,h=m?p.hints:[],g=Math.min(s,Math.max(h.length-1,0));(0,f.useEffect)(()=>{d.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[g,m]);let v=()=>{let t=e.current;o(t&&document.activeElement===t&&t.selectionStart===t.selectionEnd?t.selectionStart:void 0)},y=r=>{let i=e.current;if(!p||a===void 0||!i)return;let s=t.slice(0,p.start)+r.insert+t.slice(a),l=p.start+r.insert.length;(0,po.flushSync)(()=>{n(s),c(0),o(l)}),i.focus(),i.setSelectionRange(l,l)};return{list:m?(0,_.jsx)(`ul`,{ref:d,className:`hints`,role:`listbox`,"aria-label":`Suggestions`,children:h.map((e,t)=>(0,_.jsxs)(`li`,{role:`option`,"aria-selected":t===g,className:`hint`,onMouseDown:t=>{t.preventDefault(),y(e)},onMouseEnter:()=>c(t),children:[(0,_.jsx)(`code`,{className:`hint-label`,children:e.label}),e.detail&&(0,_.jsx)(`span`,{className:`hint-detail`,children:e.detail})]},e.label))}):null,onKeyDown:e=>!m||h.length===0||e.nativeEvent.isComposing?!1:e.key===`ArrowDown`||e.key===`ArrowUp`?(e.preventDefault(),c((g+(e.key===`ArrowDown`?1:h.length-1))%h.length),!0):e.key===`Enter`&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey||e.key===`Tab`?(e.preventDefault(),y(h[g]),!0):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),u(t),!0),onCaret:v}}function ho(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var go=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vo={};function yo(e,t){return((t||vo).jsx?_o:go).test(e)}var bo=/[ \t\n\f\r]/g;function xo(e){return typeof e==`object`?e.type===`text`&&So(e.value):So(e)}function So(e){return e.replace(bo,``)===``}var Co=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Co.prototype.normal={},Co.prototype.property={},Co.prototype.space=void 0;function wo(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Co(n,r,t)}function To(e){return e.toLowerCase()}var Eo=class{constructor(e,t){this.attribute=t,this.property=e}};Eo.prototype.attribute=``,Eo.prototype.booleanish=!1,Eo.prototype.boolean=!1,Eo.prototype.commaOrSpaceSeparated=!1,Eo.prototype.commaSeparated=!1,Eo.prototype.defined=!1,Eo.prototype.mustUseProperty=!1,Eo.prototype.number=!1,Eo.prototype.overloadedBoolean=!1,Eo.prototype.property=``,Eo.prototype.spaceSeparated=!1,Eo.prototype.space=void 0;var Do=s({boolean:()=>U,booleanish:()=>W,commaOrSpaceSeparated:()=>Mo,commaSeparated:()=>jo,number:()=>G,overloadedBoolean:()=>ko,spaceSeparated:()=>Ao}),Oo=0,U=No(),W=No(),ko=No(),G=No(),Ao=No(),jo=No(),Mo=No();function No(){return 2**++Oo}var Po=Object.keys(Do),Fo=class extends Eo{constructor(e,t,n,r){let i=-1;if(super(e,t),Io(this,`space`,r),typeof n==`number`)for(;++i<Po.length;){let e=Po[i];Io(this,Po[i],(n&Do[e])===Do[e])}}};Fo.prototype.defined=!0;function Io(e,t,n){n&&(e[t]=n)}function Lo(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Fo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[To(r)]=r,n[To(a.attribute)]=r}return new Co(t,n,e.space)}var K=Lo({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:Ao,ariaCurrent:null,ariaDescribedBy:Ao,ariaDetails:null,ariaDisabled:W,ariaDropEffect:Ao,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:Ao,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ao,ariaLevel:G,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:Ao,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:Ao,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:W,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ro(e,t){return t in e?e[t]:t}function zo(e,t){return Ro(e,t.toLowerCase())}var Bo=Lo({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:jo,acceptCharset:Ao,accessKey:Ao,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alpha:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:Ao,autoFocus:U,autoPlay:U,blocking:Ao,capture:null,charSet:null,checked:U,cite:null,className:Ao,closedBy:null,colorSpace:null,cols:G,colSpan:G,command:null,commandFor:null,content:null,contentEditable:W,controls:U,controlsList:Ao,coords:G|jo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:ko,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:Ao,height:G,hidden:ko,high:G,href:null,hrefLang:null,htmlFor:Ao,httpEquiv:Ao,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:Ao,itemRef:Ao,itemScope:U,itemType:Ao,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:G,pattern:null,ping:Ao,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:Ao,required:U,reversed:U,rows:G,rowSpan:G,sandbox:Ao,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootCustomElementRegistry:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shadowRootSerializable:U,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:W,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ao,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:U,disablePictureInPicture:U,disableRemotePlayback:U,exportParts:jo,part:Ao,prefix:null,property:null,results:G,security:null,unselectable:null},space:`html`,transform:zo}),Vo=Lo({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:Mo,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:Ao,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:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,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:jo,g2:jo,glyphName:jo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Mo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,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:G,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:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ao,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mo,rev:Mo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mo,requiredFeatures:Mo,requiredFonts:Mo,requiredFormats:Mo,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:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Mo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mo,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ro}),Ho=Lo({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()}}),Uo=Lo({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:zo}),Wo=Lo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Go={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`},Ko=/[A-Z]/g,qo=/-[a-z]/g,Jo=/^data[-\w.:]+$/i;function Yo(e,t){let n=To(t),r=t,i=Eo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Jo.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(qo,Zo);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!qo.test(e)){let n=e.replace(Ko,Xo);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Fo}return new i(r,t)}function Xo(e){return`-`+e.toLowerCase()}function Zo(e){return e.charAt(1).toUpperCase()}var Qo=wo([K,Bo,Ho,Uo,Wo],`html`),$o=wo([K,Vo,Ho,Uo,Wo],`svg`);function es(e){return e.join(` `).trim()}var ts=/\/\*(?:[^*]|\*(?!\/))*\*\//g,ns=/\n/g,rs=/^\s*/,is=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,as=/^:\s*/,os=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,ss=/^[;\s]*/,cs=`
18
+ `,ls=`/`,us=`*`,ds=``,fs=`comment`,ps=`declaration`;function ms(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(ns);t&&(n+=t.length);var i=e.lastIndexOf(cs);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(rs)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(ls==e.charAt(0)&&us==e.charAt(1)){for(var n=2;ds!=e.charAt(n)&&(us!=e.charAt(n)||ls!=e.charAt(n+1));)++n;if(n+=2,ds===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:fs,comment:o})}}function f(){var e=a(),t=c(is);if(t){if(d(),!c(as))return s(`property missing ':'`);var n=c(os),r=e({type:ps,property:t[0].replace(ts,ds).trim(),value:n?n[0].replace(ts,ds).trim():ds});return c(ss),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function hs(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=ms(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var gs=vs(`end`),_s=vs(`start`);function vs(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 ys(e){let t=_s(e),n=gs(e);if(t&&n)return{start:t,end:n}}function bs(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Ss(e.position):`start`in e||`end`in e?Ss(e):`line`in e||`column`in e?xs(e):``}function xs(e){return Cs(e&&e.line)+`:`+Cs(e&&e.column)}function Ss(e){return xs(e&&e.start)+`-`+xs(e&&e.end)}function Cs(e){return e&&typeof e==`number`?e:1}var ws=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){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=bs(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}};Object.defineProperties(ws.prototype,{file:{configurable:!0,enumerable:!0,value:``,writable:!0},name:{configurable:!0,enumerable:!0,value:``,writable:!0},reason:{configurable:!0,enumerable:!0,value:``,writable:!0},message:{configurable:!0,enumerable:!0,value:``,writable:!0},stack:{configurable:!0,enumerable:!0,value:``,writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});var Ts={}.hasOwnProperty,Es=new Map,Ds=/[A-Z]/g,Os=/-([a-z])/g,ks=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),As=new Set([`td`,`th`]),js=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Ms(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=Us(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=Hs(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`?$o:Qo,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ns(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ns(e,t,n){if(t.type===`element`)return Ps(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Fs(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Ls(e,t,n);if(t.type===`mdxjsEsm`)return Is(e,t);if(t.type===`root`)return Rs(e,t,n);if(t.type===`text`)return zs(e,t)}function Ps(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=$o,e.schema=i),e.ancestors.push(t);let a=Ys(e,t.tagName,!1),o=Ws(e,t),s=Ks(e,t);return ks.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!xo(e)})),Bs(e,o,a,t),Vs(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Fs(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)}Xs(e,t.position)}function Is(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xs(e,t.position)}function Ls(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=$o,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Ys(e,t.name,!0),o=Gs(e,t),s=Ks(e,t);return Bs(e,o,a,t),Vs(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Rs(e,t,n){let r={};return Vs(r,Ks(e,t)),e.create(t,e.Fragment,r,n)}function zs(e,t){return t.value}function Bs(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Vs(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Hs(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 Us(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=_s(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 Ws(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ts.call(t.properties,i)){let a=qs(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&As.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 Gs(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 Xs(e,t.position)}else{let{name:i}=r,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 Xs(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Ks(e,t){let n=[],r=-1,i=e.passKeys?new Map:Es;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=Ns(e,a,o);s!==void 0&&n.push(s)}return n}function qs(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=Yo(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?ho(n):es(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:Zs(n):Js(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?Go[r.property]||r.property:r.attribute,n]}function Js(e,t){let n={};try{hs(t,function(t,r){if(t&&r){let i=t;i.slice(0,2)!==`--`&&(i=i.toLowerCase(),e.stylePropertyNameCase===`dom`&&(i.slice(0,4)===`-ms-`&&(i=i.slice(1)),i=i.replace(Os,ec))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new ws("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=js+`#cannot-parse-style-attribute`,r}return n}function Ys(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=yo(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=yo(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ts.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xs(e)}function Xs(e,t){let n=new ws("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=js+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Zs(e){let t={},n;for(n in e)Ts.call(e,n)&&(t[Qs(n)]=e[n]);return t}function Qs(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(Ds,$s);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function $s(e){return`-`+e.toLowerCase()}function ec(e,t){return t.toUpperCase()}var tc={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`]},nc={};function rc(e,t){let n=t||nc;return ic(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function ic(e,t,n){if(oc(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 ac(e.children,t,n)}return Array.isArray(e)?ac(e,t,n):``}function ac(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ic(e[i],t,n);return r.join(``)}function oc(e){return!!(e&&typeof e==`object`)}var sc=document.createElement(`i`);function cc(e){let t=`&`+e+`;`;sc.innerHTML=t;let n=sc.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function lc(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 uc(e,t){return e.length>0?(lc(e,e.length,0,t),e):t}var dc={}.hasOwnProperty;function fc(e){let t={},n=-1;for(;++n<e.length;)pc(t,e[n]);return t}function pc(e,t){let n;for(n in t){let r=(dc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){dc.call(r,a)||(r[a]=[]);let e=i[a];mc(r[a],Array.isArray(e)?e:e?[e]:[])}}}function mc(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);lc(e,0,0,r)}function hc(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 gc(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var _c=Dc(/[A-Za-z]/),vc=Dc(/[\dA-Za-z]/),yc=Dc(/[#-'*+\--9=?A-Z^-~]/);function bc(e){return e!==null&&(e<32||e===127)}var xc=Dc(/\d/),Sc=Dc(/[\dA-Fa-f]/),Cc=Dc(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function wc(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}var Tc=Dc(/\p{P}|\p{S}/u),Ec=Dc(/\s/);function Dc(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Oc(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&vc(e.charCodeAt(n+1))&&vc(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 Y(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return J(r)?(e.enter(n),s(r)):t(r)}function s(r){return J(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function kc(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&J(t)?(e.enter(r),c(t)):l(t)}function c(t){return J(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Ac={tokenize:jc};function jc(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`),Y(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 q(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Mc=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Nc(this,e,t,n,!1)}addBefore(e,t,n){Nc(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 Nc(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 Pc={tokenize:Ic},Fc={tokenize:Lc};function Ic(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 Mc;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(Fc,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(Fc,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 q(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 Mc;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 Lc(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Rc(e){if(e===null||wc(e)||Ec(e))return 1;if(Tc(e))return 2}function zc(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 Bc={name:`attention`,resolveAll:Vc,tokenize:Hc};function Vc(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};Uc(o,-a),Uc(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=uc(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=uc(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=uc(r,zc(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=uc(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=uc(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),lc(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 Hc(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Rc(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=Rc(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 Uc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Wc={name:`autolink`,tokenize:Gc};function Gc(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 _c(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||vc(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||vc(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||bc(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):yc(t)?(e.consume(t),l):n(t)}function u(e){return vc(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||vc(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Kc={partial:!0,tokenize:qc};function qc(e,t,n){return r;function r(t){return J(t)?Y(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||q(e)?t(e):n(e)}}var Jc={continuation:{tokenize:Xc},exit:Zc,name:`blockQuote`,tokenize:Yc};function Yc(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 J(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Xc(e,t,n){let r=this;return i;function i(t){return J(t)?Y(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Jc,t,n)(r)}}function Zc(e){e.exit(`blockQuote`)}var Qc={name:`characterEscape`,tokenize:$c};function $c(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 Cc(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var el={name:`characterReference`,tokenize:tl};function tl(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=vc,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=Sc,u):(e.enter(`characterReferenceValue`),a=7,o=xc,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===vc&&!cc(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 nl={partial:!0,tokenize:rl};function rl(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 il={concrete:!0,name:`codeFenced`,tokenize:al};function al(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`),J(t)?Y(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||q(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(nl,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):J(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Y(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||q(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||q(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&&J(t)?Y(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||q(t)?e.check(nl,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||q(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`),J(t)?Y(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`),J(t)?Y(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||q(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var ol={name:`codeIndented`,tokenize:cl},sl={partial:!0,tokenize:ll};function cl(e,t,n){return r;function r(t){return e.enter(`codeIndented`),kc(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):q(t)?e.attempt(sl,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||q(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function ll(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):q(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):kc(e,t,a,`linePrefix`,4,4)(o)}function a(e){return q(e)?i(e):n(e)}}var ul={name:`codeText`,previous:fl,resolve:dl,tokenize:pl};function dl(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 fl(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function pl(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)):q(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||q(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 ml=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&&hl(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),hl(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),hl(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);hl(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);hl(this.left,t.reverse())}}}};function hl(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 gl(e){let t={},n=-1,r,i,a,o,s,c,l,u=new ml(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,_l(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 lc(e,0,1/0,u.slice(0)),!l}function _l(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 vl={resolve:bl,tokenize:xl},yl={partial:!0,tokenize:Sl};function bl(e){return gl(e),e}function xl(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):q(t)?e.check(yl,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 Sl(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Y(e,a,`linePrefix`)}function a(i){if(i===null||q(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 Cl(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||bc(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||q(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||wc(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||bc(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 wl(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):q(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||q(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!J(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Tl(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):q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Y(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||q(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 El(e,t){let n;return r;function r(i){return q(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):J(i)?Y(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Dl={name:`definition`,tokenize:kl},Ol={partial:!0,tokenize:Al};function kl(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return wl.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=gc(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 wc(t)?El(e,l)(t):l(t)}function l(t){return Cl(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Ol,d,d)(t)}function d(t){return J(t)?Y(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||q(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Al(e,t,n){return r;function r(t){return wc(t)?El(e,i)(t):n(t)}function i(t){return Tl(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return J(t)?Y(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||q(e)?t(e):n(e)}}var jl={name:`hardBreakEscape`,tokenize:Ml};function Ml(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return q(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Nl={name:`headingAtx`,resolve:Pl,tokenize:Fl};function Pl(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`};lc(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Fl(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||wc(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||q(n)?(e.exit(`atxHeading`),t(n)):J(n)?Y(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||wc(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Il=`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(`.`),Ll=[`pre`,`script`,`style`,`textarea`],Rl={concrete:!0,name:`htmlFlow`,resolveTo:Bl,tokenize:Vl},zl={partial:!0,tokenize:Hl};function Bl(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 Vl(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:re):_c(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):_c(a)?(e.consume(a),i=4,r.interrupt?t:re):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:re):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 _c(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||wc(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Ll.includes(l)?(i=1,r.interrupt?t(s):O(s)):Il.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||vc(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 J(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||_c(t)?(e.consume(t),b):J(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||vc(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):J(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):J(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||q(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||wc(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||J(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||q(t)?O(t):J(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),ne):t===60&&i===1?(e.consume(t),A):t===62&&i===4?(e.consume(t),ie):t===63&&i===3?(e.consume(t),re):t===93&&i===5?(e.consume(t),M):q(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(zl,N,ee)(t)):t===null||q(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(nl,k,N)(t)}function k(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return t===null||q(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function ne(t){return t===45?(e.consume(t),re):O(t)}function A(t){return t===47?(e.consume(t),o=``,j):O(t)}function j(t){if(t===62){let n=o.toLowerCase();return Ll.includes(n)?(e.consume(t),ie):O(t)}return _c(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),j):O(t)}function M(t){return t===93?(e.consume(t),re):O(t)}function re(t){return t===62?(e.consume(t),ie):t===45&&i===2?(e.consume(t),re):O(t)}function ie(t){return t===null||q(t)?(e.exit(`htmlFlowData`),N(t)):(e.consume(t),ie)}function N(n){return e.exit(`htmlFlow`),t(n)}}function Hl(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Kc,t,n)}}var Ul={name:`htmlText`,tokenize:Wl};function Wl(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):_c(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):_c(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):q(t)?(o=d,A(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ne(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):q(t)?(o=h,A(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ne(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ne(t):q(t)?(o=v,A(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):q(t)?(o=y,A(t)):(e.consume(t),y)}function b(e){return e===62?ne(e):y(e)}function x(t){return _c(t)?(e.consume(t),S):n(t)}function S(t){return t===45||vc(t)?(e.consume(t),S):C(t)}function C(t){return q(t)?(o=C,A(t)):J(t)?(e.consume(t),C):ne(t)}function w(t){return t===45||vc(t)?(e.consume(t),w):t===47||t===62||wc(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),ne):t===58||t===95||_c(t)?(e.consume(t),E):q(t)?(o=T,A(t)):J(t)?(e.consume(t),T):ne(t)}function E(t){return t===45||t===46||t===58||t===95||vc(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):q(t)?(o=D,A(t)):J(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,ee):q(t)?(o=O,A(t)):J(t)?(e.consume(t),O):(e.consume(t),k)}function ee(t){return t===i?(e.consume(t),i=void 0,te):t===null?n(t):q(t)?(o=ee,A(t)):(e.consume(t),ee)}function k(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||wc(t)?T(t):(e.consume(t),k)}function te(e){return e===47||e===62||wc(e)?T(e):n(e)}function ne(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function A(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return J(t)?Y(e,M,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):M(t)}function M(t){return e.enter(`htmlTextData`),o(t)}}var Gl={name:`labelEnd`,resolveAll:Yl,resolveTo:Xl,tokenize:Zl},Kl={tokenize:Ql},ql={tokenize:$l},Jl={tokenize:eu};function Yl(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&&lc(e,0,e.length,n),e}function Xl(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=uc(o,e.slice(i+1,i+r+3)),o=uc(o,[[`enter`,l,t]]),o=uc(o,zc(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=uc(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=uc(o,e.slice(a+1)),o=uc(o,[[`exit`,s,t]]),lc(e,i,e.length,o),e}function Zl(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(gc(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(Kl,u,o?u:d)(t):t===91?e.attempt(ql,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Jl,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Ql(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 wc(t)?El(e,a)(t):a(t)}function a(t){return t===41?u(t):Cl(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return wc(t)?El(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Tl(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return wc(t)?El(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 $l(e,t,n){let r=this;return i;function i(t){return wl.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(gc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function eu(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 tu={name:`labelStartImage`,resolveAll:Gl.resolveAll,tokenize:nu};function nu(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 ru={name:`labelStartLink`,resolveAll:Gl.resolveAll,tokenize:iu};function iu(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 au={name:`lineEnding`,tokenize:ou};function ou(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Y(e,t,`linePrefix`)}}var su={name:`thematicBreak`,tokenize:cu};function cu(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||q(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),J(t)?Y(e,s,`whitespace`)(t):s(t))}}var lu={continuation:{tokenize:pu},exit:hu,name:`list`,tokenize:fu},uu={partial:!0,tokenize:gu},du={partial:!0,tokenize:mu};function fu(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:xc(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(su,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 xc(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(Kc,r.interrupt?n:u,e.attempt(uu,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return J(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 pu(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Kc,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!J(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(du,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(lu,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function mu(e,t,n){let r=this;return Y(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 hu(e){e.exit(this.containerState.type)}function gu(e,t,n){let r=this;return Y(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!J(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var _u={name:`setextUnderline`,resolveTo:vu,tokenize:yu};function vu(e,t){let n=new Mc,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 yu(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`),J(t)?Y(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||q(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var bu={tokenize:xu};function xu(e){let t=this,n=e.attempt(Kc,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vl,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 Su={resolveAll:Eu()},Cu=Tu(`string`),wu=Tu(`text`);function Tu(e){return{resolveAll:Eu(e===`text`?Du: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 Eu(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 Du(e,t){let n=new Mc,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 Ou=s({attentionMarkers:()=>Iu,contentInitial:()=>Au,disable:()=>Lu,document:()=>ku,flow:()=>Mu,flowInitial:()=>ju,insideSpan:()=>Fu,string:()=>Nu,text:()=>Pu}),ku={42:lu,43:lu,45:lu,48:lu,49:lu,50:lu,51:lu,52:lu,53:lu,54:lu,55:lu,56:lu,57:lu,62:Jc},Au={91:Dl},ju={[-2]:ol,[-1]:ol,32:ol},Mu={35:Nl,42:su,45:[_u,su],60:Rl,61:_u,95:su,96:il,126:il},Nu={38:el,92:Qc},Pu={[-5]:au,[-4]:au,[-3]:au,33:tu,38:el,42:Bc,60:[Wc,Ul],91:ru,92:[jl,Qc],93:Gl,95:Bc,96:ul},Fu={null:[Bc,Su]},Iu={null:[42,95]},Lu={null:[]};function Ru(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=uc(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=zc(a,l.events,l),l.events):[]}function f(e,t){return Bu(p(e),t)}function p(e){return zu(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){q(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&&lc(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 zu(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 Bu(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=`
19
+ `;break;case-3:o=`\r
20
+ `;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 Vu(e){let t={constructs:fc([Ou,...(e||{}).extensions||[]]),content:n(Ac),defined:[],document:n(Pc),flow:n(bu),lazy:{},string:n(Cu),text:n(wu)};return t;function n(e){return n;function n(n){return Ru(t,e,n)}}}function Hu(e){for(;!gl(e););return e}var Uu=/[\0\t\n\r]/g;function Wu(){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;){Uu.lastIndex=c;let n=Uu.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 Gu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ku(e){return e.replace(Gu,qu)}function qu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return hc(n.slice(t?2:1),t?16:10)}return cc(n)||e}var Ju={}.hasOwnProperty;function Yu(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Xu(n)(Hu(Vu(n).document().write(Wu()(e,t,!0))))}function Xu(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(L),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(he),blockQuote:o(fe),characterEscape:E,characterReference:E,codeFenced:o(pe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(pe,s),codeText:o(F,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(I),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(me),hardBreakEscape:o(ge),hardBreakTrailing:o(ge),htmlFlow:o(_e,s),htmlFlowData:E,htmlText:o(_e,s),htmlTextData:E,image:o(ve),label:s,link:o(L),listItem:o(be),listItemValue:p,listOrdered:o(ye,f),listUnordered:o(ye),paragraph:o(xe),reference:ae,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(he),strong:o(Se),thematicBreak:o(we)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:de,autolinkProtocol:ue,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:ce,characterReference:le,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(ne),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ee),hardBreakTrailing:l(ee),htmlFlow:l(k),htmlFlowData:D,htmlText:l(te),htmlTextData:D,image:l(j),label:re,labelText:M,lineEnding:O,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:oe,resourceDestinationString:ie,resourceTitleString:N,resource:P,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};Z(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]),Ju.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]||Zu).call(o,void 0,e[0])}for(r.position={start:X(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:X(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:X(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+"` ("+bs({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Zu).call(this,e,r[0])),n.position.end=X(e.end)}function d(){return rc(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=gc(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=Ce(),n.position={start:X(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=X(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=X(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 ee(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){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 j(){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 M(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Ku(t),n.identifier=gc(t).toLowerCase()}function re(){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 ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function N(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function P(){this.data.inReference=void 0}function ae(){this.data.referenceType=`collapsed`}function oe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=gc(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function se(e){this.data.characterReferenceType=e.type}function ce(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=hc(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=cc(t);let i=this.stack[this.stack.length-1];i.value+=r}function le(e){let t=this.stack.pop();t.position.end=X(e.end)}function ue(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function de(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function fe(){return{type:`blockquote`,children:[],position:void 0}}function pe(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function F(){return{type:`inlineCode`,value:``,position:void 0}}function I(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function me(){return{type:`emphasis`,children:[],position:void 0}}function he(){return{type:`heading`,depth:0,children:[],position:void 0}}function ge(){return{type:`break`,position:void 0}}function _e(){return{type:`html`,value:``,position:void 0}}function ve(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function L(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function ye(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function be(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function xe(){return{type:`paragraph`,children:[],position:void 0}}function Se(){return{type:`strong`,children:[],position:void 0}}function Ce(){return{type:`text`,value:``,position:void 0}}function we(){return{type:`thematicBreak`,position:void 0}}}function X(e){return{line:e.line,column:e.column,offset:e.offset}}function Z(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Z(e,r):Q(e,r)}}function Q(e,t){let n;for(n in t)if(Ju.call(t,n))switch(n){case`canContainEols`: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 Zu(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+bs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bs({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+bs({start:t.start,end:t.end})+`) is still open`)}function Qu(e){let t=this;t.parser=n;function n(n){return Yu(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function $u(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 ed(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
21
+ `}]}function td(e,t){let n=t.value?t.value+`
22
+ `:``,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 nd(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rd(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function id(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Oc(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 ad(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 od(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function sd(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 cd(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sd(e,t);let i={src:Oc(r.url||``)};t.alt!==null&&t.alt!==void 0&&(i.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 ld(e,t){let n={src:Oc(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 ud(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 dd(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sd(e,t);let i={href:Oc(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 fd(e,t){let n={href:Oc(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 pd(e,t,n){let r=e.all(t),i=n?md(n):hd(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:`
23
+ `}),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:`
24
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function md(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let{children:n}=e,r=-1;for(;!t&&++r<n.length;)t=hd(n[r])}return t}function hd(e){let{spread:t}=e;return t??e.children.length>1}function gd(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 _d(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vd(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function yd(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bd(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=_s(t.children[1]),o=gs(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 xd(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 Sd(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Cd=9,wd=32;function Td(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Ed(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ed(t.slice(i),i>0,!1)),a.join(``)}function Ed(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Cd||t===wd;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Cd||t===wd;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Dd(e,t){let n={type:`text`,value:Td(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Od(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var kd={blockquote:$u,break:ed,code:td,delete:nd,emphasis:rd,footnoteReference:id,heading:ad,html:od,imageReference:cd,image:ld,inlineCode:ud,linkReference:dd,link:fd,listItem:pd,list:gd,paragraph:_d,root:vd,strong:yd,table:bd,tableCell:Sd,tableRow:xd,text:Dd,thematicBreak:Od,toml:Ad,yaml:Ad,definition:Ad,footnoteDefinition:Ad};function Ad(){}var{defineProperty:jd}=Object,Md=typeof self==`object`?self:globalThis,Nd=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Md[e](t)},Pd=(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__`?jd(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 Md[e]==`function`?Nd(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(Nd(a,o),i)};return r},Fd=e=>Pd(new Map,e)(0),Id=``,{toString:Ld}={},{keys:Rd,is:zd}=Object,Bd=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Ld.call(e).slice(8,-1);switch(n){case`Array`:return[1,Id];case`Object`:return[2,Id];case`Date`:return[3,Id];case`RegExp`:return[4,Id];case`Map`:return[5,Id];case`Set`:return[6,Id];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Vd=([e,t])=>e===0&&(t===`function`||t===`symbol`),Hd=(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]=Bd(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&zd(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 Rd(o))(e||!Vd(Bd(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Id: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||!(Vd(Bd(n))||Vd(Bd(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Vd(Bd(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Ud=(e,{json:t,lossy:n}={})=>{let r=[];return Hd(!(t||n),!!t,new Map,r)(e),r},Wd=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Fd(Ud(e,t)):structuredClone(e):(e,t)=>Fd(Ud(e,t));function Gd(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 Kd(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function qd(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Gd,r=e.options.footnoteBackLabel||Kd,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=[],l=-1;for(;++l<e.footnoteOrder.length;){let t=e.footnoteById.get(e.footnoteOrder[l]);t&&(s[l]=e.all(t))}for(l=-1;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=s[l],o=String(i.identifier).toUpperCase(),u=Oc(o.toLowerCase()),d=0,f=[],p=e.footnoteCounts.get(o);for(;p!==void 0&&++d<=p;){f.length>0&&f.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(l,d);typeof e==`string`&&(e={type:`text`,value:e}),f.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+u+(d>1?`-`+d:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(l,d),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let m=a[a.length-1];if(m&&m.type===`element`&&m.tagName===`p`){let e=m.children[m.children.length-1];e&&e.type===`text`?e.value+=` `:m.children.push({type:`text`,value:` `}),m.children.push(...f)}else a.push(...f);let h={type:`element`,tagName:`li`,properties:{id:t+`fn-`+u},children:e.wrap(a,!0)};e.patch(i,h),c.push(h)}if(c.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Wd(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
25
+ `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(c,!0)},{type:`text`,value:`
26
+ `}]}}var Jd=(function(e){if(e==null)return $d;if(typeof e==`function`)return Qd(e);if(typeof e==`object`)return Array.isArray(e)?Yd(e):Xd(e);if(typeof e==`string`)return Zd(e);throw Error(`Expected function, string, or object as test`)});function Yd(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Jd(e[n]);return Qd(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Xd(e){let t=e;return Qd(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Zd(e){return Qd(t);function t(t){return t&&t.type===e}}function Qd(e){return t;function t(t,n,r){return!!(ef(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function $d(){return!0}function ef(e){return typeof e==`object`&&!!e&&`type`in e}function tf(e){return e}var nf=[],rf=`skip`;function af(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=Jd(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 (`+tf(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=nf;if(s&&r&&(o=of(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=d(t.children[e],e,r)();if(n[0]===!1)return n;e=typeof n[1]==`number`?n[1]:e+u}}}if(c&&r){let r=of(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 of(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?nf:[e]}function sf(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`?af(e,i,lf(a),o):af(e,i,cf(a),o)}function cf(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?lf(e.enter):e.enter,exit:typeof e.exit==`function`?lf(e.exit):e.exit}}function lf(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var uf={}.hasOwnProperty,df={};function ff(e,t){let n=t||df,r=new Map,i=new Map,a={all:s,applyData:mf,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...kd,...n.handlers},one:o,options:n,patch:pf,wrap:gf};return sf(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=String(e.identifier).toUpperCase();e.type===`definition`?r.has(t)||r.set(t,e):i.has(t)||i.set(t,e)}}),a;function o(e,t){let{type:n}=e,r=a.handlers[n];if(uf.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;return{...Wd(n),children:a.all(e)}}return Wd(e)}return(a.options.unknownHandler||hf)(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=_f(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=_f(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function pf(e,t){e.position&&(t.position=ys(e))}function mf(e,t){let n=t;if(e&&e.data){let{hChildren:t,hName:r,hProperties:i}=e.data;typeof r==`string`&&(n.type===`element`?n.tagName=r:n={type:`element`,tagName:r,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Wd(i)),`children`in n&&n.children&&t!=null&&(n.children=t)}return n}function hf(e,t){let n=t.data||{},r=`value`in t&&!(uf.call(n,`hProperties`)||uf.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 gf(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
27
+ `});++r<e.length;)r&&n.push({type:`text`,value:`
28
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
29
+ `}),n}function _f(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function vf(e,t){let n=ff(e,t),r=n.one(e,void 0),i=qd(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
30
+ `},i)),a}function yf(e,t){return e&&`run`in e?async function(n,r){let i=vf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return vf(n,{file:r,...e||t})}}function bf(e){if(e)throw e}var xf=o(((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 Sf(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 Cf(){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?wf(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 wf(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 Tf={basename:Ef,dirname:Df,extname:Of,join:kf,sep:`/`};function Ef(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Mf(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 Df(e){if(Mf(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 Of(e){Mf(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 kf(...e){let t=-1,n;for(;++t<e.length;)Mf(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Af(n)}function Af(e){Mf(e);let t=e.codePointAt(0)===47,n=jf(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function jf(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 Mf(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Nf={cwd:Pf};function Pf(){return`/`}function Ff(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function If(e){if(typeof e==`string`)e=new URL(e);else if(!Ff(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 Lf(e)}function Lf(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 Rf=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],zf=class{constructor(e){let t;t=e?Ff(e)?{path:e}:typeof e==`string`||Hf(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Nf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Rf.length;){let e=Rf[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)Rf.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Tf.basename(this.path):void 0}set basename(e){$(e,`basename`),Bf(e,`basename`),this.path=Tf.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Tf.dirname(this.path):void 0}set dirname(e){Vf(this.basename,`dirname`),this.path=Tf.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Tf.extname(this.path):void 0}set extname(e){if(Bf(e,`extname`),Vf(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=Tf.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Ff(e)&&(e=If(e)),$(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Tf.basename(this.path,this.extname):void 0}set stem(e){$(e,`stem`),Bf(e,`stem`),this.path=Tf.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 ws(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 Bf(e,t){if(e&&e.includes(Tf.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Tf.sep+"`")}function $(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Vf(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Hf(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Uf=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Wf=l(xf(),1),Gf={}.hasOwnProperty,Kf=new class e extends Uf{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=Cf()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Wf.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Yf(`data`,this.frozen),this.namespace[e]=t,this):Gf.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Yf(`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=Qf(e),n=this.parser||this.Parser;return qf(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),qf(`process`,this.parser||this.Parser),Jf(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Qf(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);ep(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(),qf(`processSync`,this.parser||this.Parser),Jf(`processSync`,this.compiler||this.Compiler),this.process(e,r),Zf(`processSync`,`process`,t),n;function r(e,r){t=!0,bf(e),n=r}}run(e,t,n){Xf(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=Qf(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),Zf(`runSync`,`run`,n),r;function i(e,t){bf(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Qf(t),r=this.compiler||this.Compiler;return Jf(`stringify`,r),Xf(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Yf(`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,Wf.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;)i(e[t]);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];Sf(o)&&Sf(r)&&(r=(0,Wf.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function qf(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Jf(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Yf(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 Xf(e){if(!Sf(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Zf(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qf(e){return $f(e)?e:new zf(e)}function $f(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function ep(e){return typeof e==`string`||tp(e)}function tp(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var np=[],rp={allowDangerousHtml:!0},ip=/^(https?|ircs?|mailto|xmpp)$/i,ap=[{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 op(e){let t=sp(e),n=cp(e);return lp(t.runSync(t.parse(n),n),e)}function sp(e){let t=e.rehypePlugins||np,n=e.remarkPlugins||np,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rp}:rp;return Kf().use(Qu).use(n).use(yf,r).use(t)}function cp(e){let t=e.children||``,n=new zf;return typeof t==`string`?n.value=t:``+t,n}function lp(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||up;for(let e of ap)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return sf(e,l),Ms(e,{Fragment:_.Fragment,components:i,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.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 tc)if(Object.hasOwn(tc,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=tc[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 up(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||ip.test(e.slice(0,t))?e:``}function dp(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 fp(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function pp(e,t,n){let r=Jd((n||{}).ignore||[]),i=mp(t),a=-1;for(;++a<i.length;)af(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 rf}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){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(i===!1||d[0].length===0){let t=e.value.codePointAt(n)||0;o.lastIndex=n+(/[uv]/.test(o.flags)&&t>65535?2:1)}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 mp(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([hp(e[0]),gp(e[1])])}return t}function hp(e){return typeof e==`string`?new RegExp(fp(e),`g`):e}function gp(e){return typeof e==`function`?e:function(){return e}}var _p=`phrasing`,vp=[`autolink`,`link`,`image`,`label`];function yp(){return{transforms:[Dp],enter:{literalAutolink:xp,literalAutolinkEmail:Sp,literalAutolinkHttp:Sp,literalAutolinkWww:Sp},exit:{literalAutolink:Ep,literalAutolinkEmail:Tp,literalAutolinkHttp:Cp,literalAutolinkWww:wp}}}function bp(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:_p,notInConstruct:vp},{character:`.`,before:`[Ww]{3}`,inConstruct:_p,notInConstruct:vp},{character:`:`,before:`[PSps]`,after:`\\/`,inConstruct:_p,notInConstruct:vp}]}}function xp(e){this.enter({type:`link`,title:null,url:``,children:[],position:void 0},e)}function Sp(e){this.config.enter.autolinkProtocol.call(this,e)}function Cp(e){this.config.exit.autolinkProtocol.call(this,e)}function wp(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 Tp(e){this.config.exit.autolinkEmail.call(this,e)}function Ep(e){this.exit(e)}function Dp(e){pp(e,[[/(?<![\da-z])(https?:\/\/|www(?=\.))([\w-]*\.[\w\-.]*)([^\t\n\r ]*)/gi,Op],[/(?<![\w+\-.@])xmpp:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)(\/(?:[\w\-/]|\.(?=[\dA-Za-z]))*)?/g,jp],[/(?<![\w+\-.@])mailto:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,Ap],[/(?<![\w+\-.]|(?:^|[^\d@A-Za-z])(?:mailto|xmpp):)([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,kp]],{ignore:[`link`,`linkReference`]})}function Op(e,t,n,r,i){if(!Pp(i))return!1;let a=``;if(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),Tc(n.charCodeAt(0))||!Mp(n))return!1;let o=Np(n+r),s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0],position:void 0}],position:void 0};return o[1]?[s,{type:`text`,value:o[1],position:void 0}]:s}function kp(e,t,n){return!/[\d\-_]$/.test(n)&&{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n,position:void 0}],position:void 0}}function Ap(e,t,n){if(/[\d\-_]$/.test(n))return!1;let r=`mailto:`+t+`@`+n;return{type:`link`,title:null,url:r,children:[{type:`text`,value:r,position:void 0}],position:void 0}}function jp(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||i.input.charAt(i.index+e.length)===`@`))return!1;let a=`xmpp:`+t+`@`+n+(r||``);return{type:`link`,title:null,url:a,children:[{type:`text`,value:a,position:void 0}],position:void 0}}function Mp(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[\dA-Za-z]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[\dA-Za-z]/.test(t[t.length-2])))}function Np(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(n===33||n===34||n===38||n===39||n===41||n===44||n===46||n===58||n===59||n===60||n===62||n===63||n===93||n===125)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(`)`),i=dp(e,`(`),a=dp(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 Pp(e){let t=e.input.charCodeAt(e.index-1);return e.index===0||Ec(t)||Tc(t)}Wp.peek=Up;function Fp(){this.buffer()}function Ip(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Lp(){this.buffer()}function Rp(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function zp(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bp(e){this.exit(e)}function Vp(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Hp(e){this.exit(e)}function Up(){return`[`}function Wp(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 Gp(){return{enter:{gfmFootnoteCallString:Fp,gfmFootnoteCall:Ip,gfmFootnoteDefinitionLabelString:Lp,gfmFootnoteDefinition:Rp},exit:{gfmFootnoteCallString:zp,gfmFootnoteCall:Bp,gfmFootnoteDefinitionLabelString:Vp,gfmFootnoteDefinition:Hp}}}function Kp(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Wp},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?`
31
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Jp:qp))),s(),o}}function qp(e,t,n){return t===0?e:Jp(e,t,n)}function Jp(e,t,n){return(n?``:` `)+e}var Yp=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];em.attention=tm,em.peek=nm;function Xp(){return{canContainEols:[`delete`],enter:{strikethrough:Qp},exit:{strikethrough:$p}}}function Zp(){return{handlers:{delete:em},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Yp}]}}function Qp(e){this.enter({type:`delete`,children:[],position:void 0},e)}function $p(e){this.exit(e)}function em(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 tm(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function nm(){return`~`}function rm(e){return e.length}function im(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rm,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=am(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]=om(r[d]);else{let e=om(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],r=n.fillRows===!1?Math.max(1,o[u===1?0:u].length):l;d=-1;let i=[];for(;++d<r;){let o=e[d]||``,s=``,l=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];if(n===114)s=` `.repeat(e);else if(n===99){let t=e/2;e%2?(s=` `.repeat(t+.5),l=` `.repeat(t-.5)):(s=` `.repeat(t),l=s)}else l=` `.repeat(e)}n.delimiterStart!==!1&&!d&&i.push(`|`),n.padding===!1||n.alignDelimiters===!1&&o===``||n.delimiterStart===!1&&!d||i.push(` `),n.alignDelimiters!==!1&&i.push(s),i.push(o),n.alignDelimiters!==!1&&i.push(l),n.padding!==!1&&i.push(` `),(n.delimiterEnd!==!1||d!==r-1)&&i.push(`|`)}m.push(n.delimiterEnd===!1?i.join(``).replace(/ +$/,``):i.join(``))}return m.join(`
32
+ `)}function am(e){return e==null?``:String(e)}function om(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 sm=Jd([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function cm(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()),lm);return i(),o}function lm(e,t,n){return`>`+(n?``:` `)+e}function um(e,t){return dm(e,t.inConstruct,!0)&&!dm(e,t.notInConstruct,!1)}function dm(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 fm(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
33
+ `&&!e.before&&!e.after&&um(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
34
+ `}function pm(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 mm(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 hm(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function gm(e,t,n,r){let i=hm(n),a=e.value||``;if(mm(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,_m);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(pm(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:`
35
+ `,encode:["`"],...o.current()})),t()}return u+=o.move(`
36
+ `),a&&(u+=o.move(a+`
37
+ `)),u+=o.move(s),c(),u}function _m(e,t,n){return(n?``:` `)+e}function vm(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ym(e,t,n,r){let i=vm(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?` `:`
38
+ `,...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 bm(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function xm(e){let t=e.codePointAt(0);return t===void 0?``:String.fromCodePoint(t)}function Sm(e){let t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function Cm(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function wm(e,t,n){let r=Rc(e),i=Rc(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 Tm(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:_c(t)?4:void 0}if(t===63)return 3;let n=t===47,r=n?2:1,i=r,a=e.charCodeAt(i);if(!_c(a))return;for(;a===45||vc(a);)a=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&a!==47&&Ll.includes(o)?1:Il.includes(o)?6:7}var Em=new Map([[`*`,!1],[`_`,!0]]);function Dm(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 Om(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=Em.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=Rc(u.charCodeAt(u.length-1)),f=Rc((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(jm(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:Dm(e,t,a),index:o}}}function km(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?xm(n.value):Sm(n.value),i=Cm(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 Am(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=Lm(e,c,r,i),u=Om(l,r,i);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:l}}}}function jm(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 Mm(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(!Cc(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 Nm(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?xm(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===`
39
+ `)&&l.type===`html`&&Tm(l.value)!==7&&(a[a.length-1]=d.replace(/(\r?\n|\r)$/,` `),s=` `,c=t.createTracker(n),c.move(Rm(a,n.before,n.after)));let f=t.handle.handlers[l.type];if(f&&f.attention){let e=Pm(l,f.attention,t,c);if(!e)continue;a.push(e),s=Sm(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=Sm(n)}}return r.pop(),a}function Pm(e,t,n,r){let{construct:i,markers:a,sizes:o}=t(e,n),s=Mm(e.type,a,o),c=s[0],l=n.enter(i),u=n.createTracker(r.current());u.move(c);let d=Nm(e,n,{...u.current(),before:c,after:c});if(l(),d.length!==0)return r.move(c),r.move(Rm(d,c,c)),r.move(c),{children:d,sequences:s}}function Fm(e,t,n,r){let i=Lm(e,t,n,r),a=Om(i,n,r);for(;a;){let o=Am(e,t,a,n,r);if(!o)return;t=o.chosen,i=o.tokens,a=o.mistake}return i}function Im(e,t,n,r){let i=n,a=-1;for(;++a<e.length;){let o=e[a];if(typeof o==`string`){i=``;continue}let s=a===e.length-1?r:``,c=o.sequences.find(function(t){let r=t.charAt(0);return r!==i.charAt(0)&&r!==s.charAt(0)||e.length===1&&Em.has(r)&&t.length>n.length})||o.sequences[0];c!==o.sequences[0]&&t.set(o,c),Im(o.children,t,c,c),i=c}}function Lm(e,t,n,r){let i=[],a,o=Sm(n),s=-1;for(;++s<e.length;){let n=e[s];if(typeof n==`string`){let e={value:n,attention:void 0};a&&a===xm(n)&&km([e],!0),a=void 0,i.push(e),e.value&&(o=Sm(e.value));continue}let c=t.get(n)||n.sequences[0],l=c.charAt(0),u=e[s+1],d=o,f=xm(u===void 0?r:typeof u==`string`?u:t.get(u)||u.sequences[0]),p=Lm(n.children,t,c,c),m=p[0].value,h=wm(d.charCodeAt(d.length-1),m.charCodeAt(0),l);h.inside&&km(p,!0);let g=Sm(p[p.length-1].value),_=wm(f.charCodeAt(0),g.charCodeAt(g.length-1),l);_.inside&&km(p,!1),h.outside&&d!==`
40
+ `&&d!==`\r`&&km(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 Rm(e,t,n){let r=new Map;Im(e,r,t,n);let i=(r.size>0?Fm(e,r,t,n):void 0)||Fm(e,new Map,t,n)||Lm(e,new Map,t,n),a=``;for(let e of i)a+=e.value;return a}zm.attention=Bm,zm.peek=Vm;function zm(e,t,n,r){let i=n.enter(`phrasing`),a=Pm(e,Bm,n,n.createTracker(r)),o=a?Rm([a],r.before,r.after):``;return i(),o}function Bm(e,t){return{construct:`emphasis`,markers:bm(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function Vm(e,t,n){return n.options.emphasis||`*`}function Hm(e,t){let n=!1;return sf(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)&&rc(e)&&(t.options.setext||n))}function Um(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Hm(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
41
+ `,after:`
42
+ `});return r(),t(),o+`
43
+ `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
44
+ `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
45
+ `,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=Cm(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}Wm.peek=Gm;function Wm(e){return e.value||``}function Gm(){return`<`}Km.peek=qm;function Km(e,t,n,r){let i=vm(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 qm(){return`!`}Jm.peek=Ym;function Jm(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 Ym(){return`!`}Xm.peek=Zm;function Xm(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 Zm(){return"`"}function Qm(e,t){let n=rc(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))}$m.peek=eh;function $m(e,t,n,r){let i=vm(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(Qm(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===`
46
+ `||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 eh(e,t,n){return Qm(e,n)?`<`:`[`}th.peek=nh;function th(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 nh(){return`[`}function rh(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 ih(e){let t=rh(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 ah(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function oh(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 sh(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?ah(n):rh(n),s=e.ordered?o===`.`?`)`:`.`:ih(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),oh(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 ch(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 lh(e,t,n,r){let i=ch(n),a=n.bulletCurrent||rh(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 uh(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function dh(e,t,n,r){if(!e.children.some(function(e){return sm(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function fh(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ph.attention=mh,ph.peek=hh;function ph(e,t,n,r){let i=n.enter(`phrasing`),a=Pm(e,mh,n,n.createTracker(r)),o=a?Rm([a],r.before,r.after):``;return i(),o}function mh(e,t){return{construct:`strong`,markers:fh(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function hh(e,t,n){return n.options.strong||`*`}function gh(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 _h(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 vh(e,t,n){let r=(oh(n)+(n.options.ruleSpaces?` `:``)).repeat(_h(n));return n.options.ruleSpaces?r.slice(0,-1):r}var yh={blockquote:cm,break:fm,code:gm,definition:ym,emphasis:zm,hardBreak:fm,heading:Um,html:Wm,image:Km,imageReference:Jm,inlineCode:Xm,link:$m,linkReference:th,list:sh,listItem:lh,paragraph:uh,root:dh,strong:ph,text:gh,thematicBreak:vh};function bh(){return{enter:{table:xh,tableData:Th,tableHeader:Th,tableRow:Ch},exit:{codeText:Eh,table:Sh,tableData:wh,tableHeader:wh,tableRow:wh}}}function xh(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[],position:void 0},e),this.data.inTable=!0}function Sh(e){this.exit(e),this.data.inTable=void 0}function Ch(e){this.enter({type:`tableRow`,children:[],position:void 0},e)}function wh(e){this.exit(e)}function Th(e){this.enter({type:`tableCell`,children:[],position:void 0},e)}function Eh(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Dh));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Dh(e,t){return t===`|`?t:e}function Oh(e){let{tableCellPadding:t,tablePipeAlign:n,stringLength:r}=e||{},i=t?` `:`|`;return{handlers:{inlineCode:d,table:a,tableCell:s,tableRow:o},join:[kh],unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
47
+ `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}]};function a(e,t,n,r){let i=l(e,n,r),a=i[0];if(a){let t=e.align?e.align.length:0,n=-1;if(!t)for(;++n<i.length;)i[n].length>t&&(t=i[n].length);for(;a.length<t;)a.push(``)}return c(i,e.align)}function o(e,t,n,r){let i=c([u(e,n,r)]);return i.slice(0,i.indexOf(`
48
+ `))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return im(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=yh.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function kh(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&Ah(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function Ah(e,t){let n=!1;return sf(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&rc(e)&&(t.options.setext||n))}function jh(){return{exit:{taskListCheckValueChecked:Nh,taskListCheckValueUnchecked:Nh,paragraph:Ph}}}function Mh(){return{handlers:{paragraph:Fh},join:[Ih]}}function Nh(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Ph(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={...n.position.start}))}}this.exit(e)}function Fh(e,t,n,r){if(!t||t.type!==`listItem`||Lh(t)!==e)return yh.paragraph(e,t,n,r);let i=`[`+(t.checked?`x`:` `)+`] `,a=n.createTracker(r);return a.move(i),i+yh.paragraph(e.children.length>0?e:{type:`paragraph`,children:[{type:`text`,value:` `}]},t,n,{...r,...a.current()})}function Ih(e,t,n){if(e.type!==`definition`||n.type!==`listItem`)return;let r=Lh(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function Lh(e){if(typeof e.checked==`boolean`)for(let t of e.children){if(t.type===`paragraph`)return t;if(t.type!==`definition`)return}}function Rh(){return[yp(),Gp(),Xp(),bh(),jh()]}function zh(e){return{extensions:[bp(),Kp(e),Zp(),Oh(e),Mh()]}}var Bh={tokenize:eg,partial:!0},Vh={tokenize:tg,partial:!0},Hh={tokenize:ng,partial:!0},Uh={tokenize:rg,partial:!0},Wh={tokenize:ig,partial:!0},Gh={name:`wwwAutolink`,tokenize:Qh,previous:ag},Kh={name:`protocolAutolink`,tokenize:$h,previous:og},qh={name:`emailAutolink`,tokenize:Zh,previous:sg},Jh={};function Yh(){return{text:Jh}}for(var Xh=48;Xh<123;)Jh[Xh]=qh,Xh++,Xh===58?Xh=65:Xh===91&&(Xh=97);Jh[43]=qh,Jh[45]=qh,Jh[46]=qh,Jh[95]=qh,Jh[72]=[qh,Kh],Jh[104]=[qh,Kh],Jh[87]=[qh,Gh],Jh[119]=[qh,Gh];function Zh(e,t,n){let r=this,i,a;return o;function o(t){return!cg(t)||!sg.call(r,r.previous)||lg(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return cg(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Wh,u,l)(t):t===45||t===95||vc(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&&_c(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Qh(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!ag.call(r,r.previous)||lg(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Bh,e.attempt(Vh,e.attempt(Hh,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function $h(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&og.call(r,r.previous)&&!lg(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(_c(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||bc(t)||wc(t)||Ec(t)||Tc(t)?n(t):e.attempt(Vh,e.attempt(Hh,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function eg(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 tg(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Uh,c,s)(t):t===null||wc(t)||Ec(t)||t!==45&&Tc(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 ng(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(Uh,t,a)(o):o===null||wc(o)||Ec(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function rg(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||wc(o)||Ec(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||wc(e)||Ec(e)?t(e):r(e)}function a(e){return _c(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):_c(t)?(e.consume(t),o):n(t)}}function ig(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return vc(e)?n(e):t(e)}}function ag(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||wc(e)}function og(e){return!_c(e)}function sg(e){return!(e===47||cg(e))}function cg(e){return e===43||e===45||e===46||e===95||vc(e)}function lg(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 ug={tokenize:vg,partial:!0};function dg(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:hg,continuation:{tokenize:gg},exit:_g}},text:{91:{name:`gfmFootnoteCall`,tokenize:mg},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:fg,resolveTo:pg}}}}function fg(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=gc(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 pg(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 mg(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||wc(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(gc(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return wc(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 hg(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||wc(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=gc(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return wc(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),Y(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function gg(e,t,n){return e.check(Kc,t,e.attempt(ug,t,n))}function _g(e){e.exit(`gfmFootnoteDefinition`)}function vg(e,t,n){let r=this;return Y(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 yg(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&&lc(o,o.length,0,zc(s,e.slice(r+1,n),t)),lc(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),lc(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=Rc(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=Rc(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var bg=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){xg(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 xg(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 Sg(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 Cg(){return{flow:{null:{name:`table`,tokenize:wg,resolveAll:Tg}}}}function wg(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):q(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):J(t)?Y(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||wc(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,J(t)?Y(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 J(t)?Y(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||q(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 J(t)?Y(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||q(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||q(n)?(e.exit(`tableRow`),t(n)):J(n)?Y(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||wc(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 Tg(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 bg;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Dg(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=Eg(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=Eg(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=Eg(f,t,o,i,n,d)):(o[0]=o[1],d=Eg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Dg(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=Sg(t.events,n))}return e}function Eg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Og(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Og(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=Og(t.events,n[2]),a=Og(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({},Og(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Dg(e,t,n,r,i){let a=[],o=Og(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 Og(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var kg={name:`tasklistCheck`,tokenize:jg};function Ag(){return{text:{91:kg}}}function jg(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 wc(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 q(r)?t(r):J(r)?e.check({tokenize:Mg},t,n)(r):n(r)}}function Mg(e,t,n){return Y(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Ng(e){return fc([Yh(),dg(),yg(e),Cg(),Ag()])}var Pg={};function Fg(e){let t=this,n=e||Pg,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ng(n)),a.push(Rh()),o.push(zh(n))}var Ig=/\blanguage-suggestion\b/,Lg=(0,f.memo)(function({text:e,suggestionActions:t}){let n=(0,f.useMemo)(()=>t?Cn(e):[],[e,t]);return(0,_.jsx)(`div`,{className:`markdown`,children:(0,_.jsx)(op,{remarkPlugins:[Fg],components:{a:({node:e,...t})=>(0,_.jsx)(`a`,{...t,target:`_blank`,rel:`noreferrer noopener`}),img:({alt:e,src:t})=>(0,_.jsx)(`a`,{href:typeof t==`string`?t:void 0,target:`_blank`,rel:`noreferrer noopener`,children:e||`image`}),pre:({node:e,children:r,...i})=>{let a=f.Children.toArray(r)[0],o=(0,f.isValidElement)(a)?a.props:void 0;if(o&&Ig.test(o.className??``)){let r=n.findIndex(t=>t.line===e?.position?.start.line),i=n[r];return(0,_.jsxs)(`div`,{className:`suggestion`,children:[(0,_.jsx)(`div`,{className:`suggestion-title`,children:`Suggested change`}),(0,_.jsx)(`pre`,{children:o.children}),i&&t?.({index:r,text:i.lines.join(`
49
+ `)})]})}return(0,_.jsx)(`pre`,{...i,children:r})}},children:e})})}),Rg={execute:`run a command`,fetch:`fetch something from the network`,edit:`edit a file`,delete:`delete a file`,move:`move a file`};function zg({run:e}){let t=no();if(e.status===`failed`)return(0,_.jsxs)(`div`,{className:`run run-failed`,role:`alert`,children:[(0,_.jsx)(Un,{size:16,className:`tone-danger`}),(0,_.jsxs)(`div`,{className:`run-body`,children:[(0,_.jsxs)(`strong`,{children:[e.agentName,` could not finish.`]}),(0,_.jsx)(`pre`,{className:`run-error`,children:e.error})]}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Dismiss`,onClick:()=>t.dismiss(e.id),children:(0,_.jsx)(Ga,{size:16})})]});if(e.status!==`running`)return null;let n=e.tools.slice(-4);return(0,_.jsxs)(`div`,{className:`run`,"aria-live":`polite`,children:[(0,_.jsxs)(`div`,{className:`run-head`,children:[(0,_.jsx)(`span`,{className:`spinner`,"aria-hidden":`true`}),(0,_.jsx)(`strong`,{children:e.agentName}),(0,_.jsxs)(`span`,{className:`run-where`,children:[`is working`,e.cwdKind===`scratch`?` in a scratch copy`:``,`…`]}),(0,_.jsxs)(`button`,{type:`button`,className:`button button-small`,onClick:()=>t.cancel(e.id),children:[(0,_.jsx)(Da,{size:16}),` Stop`]})]}),n.length>0&&(0,_.jsx)(`ul`,{className:`run-tools`,children:n.map(e=>(0,_.jsxs)(`li`,{className:e.status===`failed`?`tone-danger`:void 0,children:[e.status===`completed`?(0,_.jsx)(tr,{size:12}):(0,_.jsx)(Na,{size:12}),` `,e.title]},e.id))}),e.text&&(0,_.jsx)(`div`,{className:`run-text`,children:(0,_.jsx)(Lg,{text:e.text})}),e.asking&&(0,_.jsxs)(`div`,{className:`run-ask`,role:`alertdialog`,"aria-label":`The agent asks for permission`,children:[(0,_.jsxs)(`p`,{children:[`The agent wants to `,Rg[e.asking.kind]??`use a tool`,`: `,(0,_.jsx)(`code`,{children:e.asking.title})]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>t.answer(e.id,e.asking.id,!1),children:`Deny`}),(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,onClick:()=>t.answer(e.id,e.asking.id,!0),children:`Allow once`})]})]}),e.usage&&(0,_.jsxs)(`div`,{className:`run-usage`,children:[e.usage.used.toLocaleString(`en-US`),` of `,e.usage.size.toLocaleString(`en-US`),` tokens of context`,e.usage.cost?`, ${e.usage.cost.amount.toFixed(2)} ${e.usage.cost.currency}`:``]})]})}function Bg(){let e=no(),t=e.runs.filter(e=>e.status!==`running`&&e.unexpectedChanges.length>0);return t.length===0?null:(0,_.jsx)(_.Fragment,{children:t.map(t=>{let n=t.unexpectedChanges.filter(e=>!e.revertible);return(0,_.jsxs)(`div`,{className:`flash flash-danger unexpected`,role:`alert`,children:[(0,_.jsxs)(`strong`,{children:[t.unexpectedChanges.length===1?`A file`:`${t.unexpectedChanges.length} files`,` changed in your working tree while `,t.agentName,` was running.`]}),(0,_.jsx)(`span`,{children:`The agent was asked to only suggest changes. If you did not make these yourself, it wrote them directly.`}),(0,_.jsx)(`ul`,{className:`unexpected-list`,children:t.unexpectedChanges.map(e=>(0,_.jsxs)(`li`,{children:[(0,_.jsx)(`code`,{children:e.path}),` `,e.kind,e.revertible?``:` (too large to restore automatically)`]},e.path))}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsxs)(`button`,{type:`button`,className:`button`,disabled:n.length===t.unexpectedChanges.length,onClick:()=>e.revert(t.id),children:[`Revert `,n.length>0?`what can be restored`:`these changes`]}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>e.dismiss(t.id),children:`Keep them`})]})]},t.id)})})}var Vg=new Map;function Hg({repoId:e,scope:t,onClose:n}){let r=no(),i=y(),a=tt({queryKey:[`chat`,e,t],queryFn:()=>z.chat(e,t)}),o=`${e}\n${t}`,[s,c]=(0,f.useState)(()=>Vg.get(o)??``),l=e=>c(t=>{let n=typeof e==`function`?e(t):e;return n===``?Vg.delete(o):Vg.set(o,n),n}),[u,d]=(0,f.useState)(!1),p=(0,f.useRef)(null),m=(0,f.useRef)(null),h=mo({textarea:m,value:s,onChange:e=>l(e)}),g=r.chatRun,v=g?.status===`running`||u,b=a.data?.messages??[],x=r.agents.find(e=>e.id===r.agentId);(0,f.useEffect)(()=>{p.current?.scrollIntoView({block:`end`})},[b.length,g?.text]);let S=()=>{let e=s.trim();e===``||v||(d(!0),r.start({message:e}).then(t=>{d(!1),t&&l(t=>t.trim()===e?``:t)}))},C=e=>{if(v)return;let t=s.trim();d(!0),r.start({message:t,review:e===`review`,fix:e===`fix`}).then(e=>{d(!1),e&&l(e=>e.trim()===t?``:e)})};return(0,_.jsxs)(`aside`,{className:`chat`,"aria-label":`Agent chat`,children:[(0,_.jsxs)(`header`,{className:`chat-header`,children:[(0,_.jsx)(`strong`,{children:`Agent`}),r.agents.length>1?(0,_.jsx)(`select`,{className:`chat-agent`,"aria-label":`Agent`,value:r.agentId,onChange:e=>r.selectAgent(e.target.value),children:r.agents.map(e=>(0,_.jsx)(`option`,{value:e.id,children:e.name},e.id))}):(0,_.jsx)(`span`,{className:`chat-agent-name`,children:r.agents[0]?.name}),(0,_.jsxs)(`span`,{className:`chat-header-end`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Clear chat`,title:`Clear chat`,onClick:()=>{window.confirm(`Clear this chat? The messages are deleted.`)&&z.clearChat(e,t).then(()=>i.invalidateQueries({queryKey:[`chat`,e]}))},disabled:b.length===0||v,children:(0,_.jsx)(Ia,{size:16})}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Close chat`,onClick:n,children:(0,_.jsx)(Ga,{size:16})})]})]}),(r.canIsolate||(x?.options?.length??0)>0)&&(0,_.jsxs)(`div`,{className:`chat-options`,"aria-label":`Agent options`,children:[x?.options?.map(e=>(0,_.jsxs)(`label`,{className:`chat-option`,title:e.description,children:[(0,_.jsx)(`span`,{children:e.name}),(0,_.jsxs)(`select`,{value:e.chosen??``,disabled:v,onChange:t=>r.setOption(x.id,e.id,t.target.value===``?null:t.target.value),children:[(0,_.jsxs)(`option`,{value:``,children:[`Agent’s choice (`,e.values.find(t=>t.id===e.current)?.name??e.current,`)`]}),e.values.map(e=>(0,_.jsxs)(`option`,{value:e.id,title:e.description,children:[e.group?`${e.group}: `:``,e.name]},e.id))]})]},e.id)),r.canIsolate&&(0,_.jsxs)(`label`,{className:`checkbox chat-isolated`,title:`The agent gets a disposable copy of your working tree as it is now, and cannot touch the real files. What it changes there comes back as suggestions.`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:r.isolated,disabled:v,onChange:e=>r.setIsolated(e.target.checked)}),`Run in an isolated copy`]})]}),(0,_.jsxs)(`div`,{className:`chat-messages`,children:[b.length===0&&!g&&(0,_.jsxs)(`p`,{className:`chat-empty`,children:[`Ask about this comparison as a whole. The agent sees the list of changed files and can read the code. To ask about particular lines, comment on them and mention `,(0,_.jsx)(`code`,{children:`@agent`}),`.`]}),b.map(e=>(0,_.jsxs)(`div`,{className:`chat-message chat-${e.role}`,children:[(0,_.jsx)(`div`,{className:`chat-role`,children:e.role===`user`?`You`:`Agent`}),(0,_.jsx)(Lg,{text:e.body})]},e.id)),g&&(0,_.jsx)(zg,{run:g}),r.startError&&r.startError.threadId===void 0&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:r.startError.message}),(0,_.jsx)(`div`,{ref:p})]}),(0,_.jsxs)(`form`,{className:`chat-form`,onSubmit:e=>{e.preventDefault(),S()},children:[(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`textarea`,{ref:m,className:`comment-textarea chat-input`,placeholder:`Ask the agent about these changes`,"aria-label":`Message to the agent`,value:s,onChange:e=>{l(e.target.value),h.onCaret()},onKeyUp:h.onCaret,onClick:h.onCaret,onBlur:h.onCaret,onKeyDown:e=>{h.onKeyDown(e)||e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),S())}}),h.list]}),(0,_.jsxs)(`div`,{className:`chat-form-buttons`,children:[(0,_.jsx)(`button`,{type:`submit`,className:`button button-primary`,disabled:v||s.trim()===``,children:v?`Working…`:`Send`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:v||r.agents.length===0,title:`The agent reads every changed file and leaves its findings as comments on the lines, with a summary here. What you typed in the box tells it what to pay attention to.`,onClick:()=>C(`review`),children:`Review all changes`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:v||r.agents.length===0,title:`The agent reads every open conversation and posts the fix it asks for as a suggestion in that conversation. Nothing is written to your files until you apply a suggestion.`,onClick:()=>C(`fix`),children:`Fix all comments`})]})]})]})}function Ug(e,t){let n=document.caretPositionFromPoint?.(e,t),r=n?void 0:document.caretRangeFromPoint?.(e,t),i=n?.offsetNode??r?.startContainer,a=n?.offset??r?.startOffset??0;if(!i||i.nodeType!==Node.TEXT_NODE)return;let o=i.textContent??``,s=a,c=a;for(;s>0&&/[A-Za-z0-9_$]/.test(o[s-1]);)--s;for(;c<o.length&&/[A-Za-z0-9_$]/.test(o[c]);)c+=1;let l=o.slice(s,c);return/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(l)?l:void 0}function Wg({repoId:e,rev:t,searchOpen:n,onSearchClose:r}){let[i,a]=(0,f.useState)(void 0),[o,s]=(0,f.useState)(void 0),c=(0,f.useRef)(t);c.current=t,(0,f.useEffect)(()=>{let t=t=>{if(!t.altKey||t.button!==0||!(t.target instanceof Element?t.target:void 0)?.closest(`.code[data-line], .reader-code`))return;let n=Ug(t.clientX,t.clientY),r=c.current;n&&r&&(t.preventDefault(),window.getSelection()?.removeAllRanges(),z.symbols(e,r,n,!0).then(({hits:e})=>{let t=e.length===1?e[0]:void 0;t?a({path:t.path,line:t.line}):s(n)},()=>s(n)))};return document.addEventListener(`click`,t,!0),()=>document.removeEventListener(`click`,t,!0)},[e]);let l=()=>{s(void 0),r()};return t?(0,_.jsxs)(_.Fragment,{children:[i&&(0,_.jsx)(qg,{repoId:e,rev:t,target:i,onClose:()=>a(void 0)}),(n||o!==void 0)&&(0,_.jsx)(Kg,{repoId:e,rev:t,initial:o,onPick:e=>{l(),a({path:e.path,line:e.line})},onClose:l})]}):null}function Gg(e){(0,f.useEffect)(()=>{let t=t=>{t.key===`Escape`&&(t.stopPropagation(),e())};return window.addEventListener(`keydown`,t,!0),()=>window.removeEventListener(`keydown`,t,!0)},[e])}function Kg({repoId:e,rev:t,initial:n,onPick:r,onClose:i}){let a=(0,f.useRef)(null);qa(a),Gg(i);let[o,s]=(0,f.useState)(n??``),[c,l]=(0,f.useState)(n??``),[u,d]=(0,f.useState)(0);(0,f.useEffect)(()=>{let e=window.setTimeout(()=>l(o.trim()),200);return()=>window.clearTimeout(e)},[o]);let p=/^[A-Za-z0-9_$]{2,80}$/.test(c),m=tt({queryKey:[`symbols`,e,t,c],queryFn:()=>z.symbols(e,t,c,!1),enabled:p,staleTime:3e4}),h=p?m.data?.hits??[]:[],g=Math.min(u,Math.max(h.length-1,0)),v=(0,f.useRef)(null);return(0,f.useEffect)(()=>{v.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[g,h.length]),(0,_.jsx)(`div`,{className:`modal-backdrop`,onClick:e=>e.target===e.currentTarget&&i(),children:(0,_.jsxs)(`div`,{ref:a,className:`dialog modal symbol-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":`Find a function, class or type`,children:[(0,_.jsx)(`input`,{autoFocus:!0,className:`symbol-input`,type:`text`,role:`combobox`,"aria-expanded":h.length>0,"aria-controls":`symbol-results`,"aria-label":`Name of a function, class or type`,placeholder:`Name of a function, class or type`,value:o,onChange:e=>{s(e.target.value),d(0)},onKeyDown:e=>{e.key===`ArrowDown`||e.key===`ArrowUp`?(e.preventDefault(),h.length>0&&d((g+(e.key===`ArrowDown`?1:h.length-1))%h.length)):e.key===`Enter`&&h[g]&&(e.preventDefault(),r(h[g]))}}),(0,_.jsx)(`ul`,{ref:v,id:`symbol-results`,className:`symbol-results`,role:`listbox`,"aria-label":`Definitions`,children:h.map((e,t)=>(0,_.jsxs)(`li`,{role:`option`,"aria-selected":t===g,className:`symbol-hit`,onMouseEnter:()=>d(t),onClick:()=>r(e),children:[(0,_.jsxs)(`span`,{className:`symbol-name`,children:[(0,_.jsx)(`span`,{className:`symbol-kind`,children:e.kind}),` `,e.name]}),(0,_.jsxs)(`span`,{className:`symbol-where`,children:[e.path,`:`,e.line]}),(0,_.jsx)(`code`,{className:`symbol-text`,children:e.text})]},`${e.path}:${e.line}:${e.name}`))}),(0,_.jsx)(`p`,{className:`symbol-status`,role:`status`,children:p?m.isPending?`Searching…`:m.isError?m.error.message:h.length===0?`No definition of “${c}” was found. The search reads the code as text, so it can miss unusual forms.`:m.data?.truncated?`The first ${h.length} definitions; type more of the name to narrow them.`:`${h.length} definition${h.length===1?``:`s`}`:c===``?`Type a name, or a part of one. Alt + click on a name in the code jumps to its definition.`:`Names are made of letters, digits, _ and $; type at least two.`})]})})}function qg({repoId:e,rev:t,target:n,onClose:r}){let i=(0,f.useRef)(null);qa(i),Gg(r);let a=tt({queryKey:[`file-at`,e,t,n.path],queryFn:()=>z.fileAt(e,t,n.path),staleTime:t.startsWith(`:`)?0:1/0}),o=a.data?.text?.split(`
50
+ `)??[],s=(0,f.useRef)(null);(0,f.useEffect)(()=>{s.current?.scrollIntoView({block:`center`})},[n.path,n.line,o.length]);let c=document.querySelector(`section.file-card[aria-label="${CSS.escape(n.path)}"] .code[data-side="R"][data-line="${n.line}"]`);return(0,_.jsx)(`div`,{className:`modal-backdrop`,onClick:e=>e.target===e.currentTarget&&r(),children:(0,_.jsxs)(`div`,{ref:i,className:`dialog modal reader`,role:`dialog`,"aria-modal":`true`,"aria-label":`${n.path}, line ${n.line}`,children:[(0,_.jsxs)(`header`,{className:`reader-header`,children:[(0,_.jsx)(`strong`,{className:`reader-path`,children:n.path}),(0,_.jsxs)(`span`,{className:`reader-line`,children:[`line `,n.line]}),(0,_.jsxs)(`span`,{className:`reader-end`,children:[c&&(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>{r(),c.scrollIntoView({block:`center`})},children:`Show in the diff`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,autoFocus:!0,onClick:r,children:`Close`})]})]}),a.isPending?(0,_.jsx)(`p`,{className:`symbol-status`,children:`Loading…`}):a.isError?(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:a.error.message}):a.data.binary||a.data.tooLarge||a.data.text===void 0?(0,_.jsx)(`p`,{className:`symbol-status`,children:`This file cannot be shown as text.`}):(0,_.jsx)(`div`,{className:`reader-code`,tabIndex:0,children:o.map((e,t)=>(0,_.jsxs)(`div`,{ref:t+1===n.line?s:void 0,className:`reader-row${t+1===n.line?` reader-target`:``}`,children:[(0,_.jsx)(`span`,{className:`reader-num`,children:t+1}),(0,_.jsx)(`span`,{className:`reader-text`,children:e===``?`
51
+ `:e})]},t))})]})})}var Jg=(e,t)=>`${e} ${t}${e===1?``:`s`}`;function Yg(e){let t=[`Added ${Jg(e.threadsAdded,`conversation`)}, ${Jg(e.commentsAdded,`comment`)} and ${Jg(e.chatAdded,`chat message`)}.`];return e.threadsAdded+e.commentsAdded+e.chatAdded===0&&(t[0]=`Everything in this file is here already.`),e.movedToFile>0&&t.push(`${Jg(e.movedToFile,`conversation`)} could not be put on the lines (the code here differs) and ${e.movedToFile===1?`is`:`are`} attached to the file.`),e.skipped.length>0&&t.push(`Skipped ${Jg(e.skipped.length,`conversation`)} on files that are not part of this comparison here: ${[...new Set(e.skipped.map(e=>e.path))].join(`, `)}.`),t.join(` `)}var Xg=e=>String(e).padStart(2,`0`);function Zg(e,t){return`review-${e.replace(/[^A-Za-z0-9._-]+/g,`-`).replace(/^-+|-+$/g,``)||`comparison`}-${t.getFullYear()}${Xg(t.getMonth()+1)}${Xg(t.getDate())}-${Xg(t.getHours())}${Xg(t.getMinutes())}${Xg(t.getSeconds())}.json`}var Qg=e=>`npx agentic-diff open ${/^[A-Za-z0-9._-]+$/.test(e)?e:`'${e}'`}`;function $g(e,t){let n=document.createElement(`a`);n.href=URL.createObjectURL(new Blob([`${JSON.stringify(t,null,2)}\n`],{type:`application/json`})),n.download=e,document.body.append(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(n.href),1e4)}function e_({repoId:e,spec:t}){let n=y(),r=(0,f.useRef)(null),[i,a]=(0,f.useState)(!1),[o,s]=(0,f.useState)(void 0),[c,l]=(0,f.useState)(void 0),[u,d]=(0,f.useState)(!1),p=e=>s({error:!0,text:e instanceof Error?e.message:`That did not work`}),m=()=>{a(!0),s(void 0),l(void 0),d(!1),z.exportReview(e,t).then(e=>{if(e.threads.length===0&&e.chat.length===0){s({error:!1,text:`There are no comments or chat messages on this comparison to export.`});return}let n=e.threads.filter(e=>(e.anchorText?.length??0)>0).length;if(!window.confirm(`The file will hold ${Jg(e.threads.length,`conversation`)} and ${Jg(e.chat.length,`chat message`)}, with the commented lines of code of ${Jg(n,`conversation`)} quoted in it. Anyone you send it to can read them. Save the file?`))return;let r=Zg(t,new Date);$g(r,e),l(r)},p).finally(()=>a(!1))},h=async i=>{a(!0),s(void 0),l(void 0);try{let r;try{r=JSON.parse(await i.text())}catch{throw Error(`${i.name} is not a review file: it is not JSON.`)}let a=await z.importReview(e,t,r);await Promise.all([n.invalidateQueries({queryKey:[`threads`,e]}),n.invalidateQueries({queryKey:[`chat`,e]})]),s({error:!1,text:Yg(a)})}catch(e){p(e)}finally{a(!1),r.current&&(r.current.value=``)}};return(0,_.jsxs)(`div`,{className:`review-file`,children:[(0,_.jsxs)(`div`,{className:`review-file-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i,onClick:m,children:`Export review`}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i,onClick:()=>r.current?.click(),children:`Import review`}),(0,_.jsx)(`input`,{ref:r,type:`file`,accept:`application/json,.json`,hidden:!0,"aria-label":`Review file to import`,onChange:e=>{let t=e.target.files?.[0];t&&h(t)}})]}),(0,_.jsx)(`p`,{className:`share-note`,children:`A review file carries the comments, the replies and the agent chat of this comparison, with the commented lines of code. Importing adds them to what is here and changes nothing that exists.`}),c&&(0,_.jsxs)(`div`,{className:`review-file-saved`,role:`status`,children:[(0,_.jsxs)(`p`,{className:`share-note review-file-result`,children:[`Saved as `,(0,_.jsx)(`code`,{children:c}),`. Send the file; in their clone of this repository the other person continues the review with:`]}),(0,_.jsxs)(`div`,{className:`share-row`,children:[(0,_.jsx)(`span`,{className:`share-label`,children:`Command`}),(0,_.jsx)(`input`,{className:`text-input`,readOnly:!0,value:Qg(c),"aria-label":`Command that opens the review file`,onFocus:e=>e.target.select()}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,onClick:()=>void navigator.clipboard.writeText(Qg(c)).then(()=>d(!0),()=>d(!1)),children:u?`Copied`:`Copy`})]})]}),o&&(0,_.jsx)(`p`,{className:o.error?`flash flash-danger`:`share-note review-file-result`,role:o.error?`alert`:`status`,children:o.text})]})}var t_=/^\/r\/([0-9a-f]{12})\/compare(?:\/(.*))?$/,n_=/^\/r\/([0-9a-f]{12})\/pull\/([1-9]\d{0,8})$/,r_=/^[0-9a-f]{40,64}(?:\.\.[0-9a-f]{40,64})?$/,i_=`agentic-diff.view`;function a_(){try{return window.localStorage.getItem(i_)===`split`?`split`:`unified`}catch{return`unified`}}function o_(e){try{window.localStorage.setItem(i_,e)}catch{}}function s_(e,t,n=`unified`){if(e===`/`)return{name:`home`};if(e===`/open`)return{name:`open`,input:new URLSearchParams(t).get(`input`)??`${window.location.origin}${e}${t}${window.location.hash}`};let r=new URLSearchParams(t),i=r.get(`view`),a=r.get(`range`)??``,o={name:`compare`,ignoreWhitespace:r.get(`w`)===`1`,view:i===`split`||i===`unified`?i:n,range:r_.test(a)?a:void 0},s=n_.exec(e);if(s){let e=Number(s[2]);return{...o,repoId:s[1],spec:kt(e),pull:e,remote:r.get(`remote`)||void 0}}let c=t_.exec(e);if(!c)return{name:`not-found`};try{return{...o,repoId:c[1],spec:Et(c[2]??``)}}catch{return{name:`not-found`}}}function c_(e){let t=new URLSearchParams;return e.ignoreWhitespace&&t.set(`w`,`1`),t.set(`view`,e.view),e.range&&t.set(`range`,e.range),e.pull===void 0?`/r/${e.repoId}/compare/${Tt(e.spec)}?${t.toString()}`:(e.remote&&t.set(`remote`,e.remote),`/r/${e.repoId}/pull/${e.pull}?${t.toString()}`)}function l_(e,t,n){return`/r/${e}/pull/${t}?view=${n}`}var u_=/^#diff-([0-9a-f]{64})(?:([LR])(\d+))?$/;function d_(e){let t=u_.exec(e);if(t)return{anchor:t[1],side:t[2],line:t[3]?Number(t[3]):void 0}}function f_(e){return`#diff-${e.anchor}${e.side??``}${e.line??``}`}var p_=new Set,m_=()=>p_.forEach(e=>e());function h_(e){return p_.add(e),window.addEventListener(`popstate`,e),window.addEventListener(`hashchange`,e),()=>{p_.delete(e),window.removeEventListener(`popstate`,e),window.removeEventListener(`hashchange`,e)}}var g_=()=>`${window.location.pathname}${window.location.search}${window.location.hash}`;function __(){return(0,f.useSyncExternalStore)(h_,g_),{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}}function v_(e,t={}){t.replace?window.history.replaceState(null,``,e):window.history.pushState(null,``,e),m_()}var y_=`login`;function b_(){let e=new URLSearchParams(window.location.hash.replace(/^#/,``)),t=e.get(y_);if(!t)return;e.delete(y_);let n=e.toString();return window.history.replaceState(null,``,`${window.location.pathname}${window.location.search}${n?`#${n}`:``}`),t}var x_=[];function S_(e){x_=e}function C_(){let e=x_;return x_=[],e}var w_=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,year:`numeric`});function T_(e){let t=0;for(let n of e)t=(t*31+n.charCodeAt(0))%360;return t}function E_({commit:e}){return(0,_.jsx)(`span`,{className:`avatar`,style:{backgroundColor:`hsl(${T_(e.authorEmail)} 45% 38%)`},"aria-hidden":`true`,children:(e.authorName.trim()[0]??`?`).toUpperCase()})}function D_({oid:e}){let[t,n]=(0,f.useState)(!1);return(0,_.jsxs)(`button`,{type:`button`,className:`commit-sha`,title:`Copy full SHA`,"aria-label":`Copy full SHA for ${e.slice(0,7)}`,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1500)})},children:[t?(0,_.jsx)(tr,{size:16}):(0,_.jsx)(Tr,{size:16}),(0,_.jsx)(`code`,{children:e.slice(0,7)})]})}function O_({commit:e,picked:t,href:n,onPick:r}){let[i,a]=(0,f.useState)(!1);return(0,_.jsxs)(`li`,{className:`commit-row${t?` picked`:``}`,"aria-current":t?`true`:void 0,children:[(0,_.jsxs)(`div`,{className:`commit-main`,children:[(0,_.jsxs)(`div`,{className:`commit-title`,children:[n===void 0?(0,_.jsx)(`span`,{className:`commit-subject`,children:e.subject}):(0,_.jsx)(`a`,{className:`commit-subject`,href:n,title:`Show only the changes of this commit. Shift-click another commit to show a run of them.`,onClick:t=>r(t,e.oid),children:e.subject}),e.body&&(0,_.jsx)(`button`,{type:`button`,className:`commit-more`,"aria-expanded":i,"aria-label":`Show commit description`,onClick:()=>a(e=>!e),children:(0,_.jsx)(Br,{size:12})})]}),i&&(0,_.jsx)(`pre`,{className:`commit-body`,children:e.body}),(0,_.jsxs)(`div`,{className:`commit-meta`,children:[(0,_.jsx)(E_,{commit:e}),(0,_.jsx)(`strong`,{children:e.authorName}),` committed `,w_.format(new Date(e.committerDate))]})]}),(0,_.jsx)(D_,{oid:e.oid})]})}function k_({list:e,range:t,hrefFor:n}){let r=(0,f.useMemo)(()=>new Map(e.commits.map((e,t)=>[e.oid,t])),[e.commits]),i=t?r.get(t.to):void 0,a=t?r.get(t.from):void 0,o=(t,o)=>{if(!n||t.metaKey||t.ctrlKey||t.button!==0)return;t.preventDefault();let s=r.get(o);if(t.shiftKey&&i!==void 0&&a!==void 0){let t=e.commits[Math.max(a,s)],r=e.commits[Math.min(i,s)];v_(n(t.oid===r.oid?t.oid:`${t.oid}..${r.oid}`))}else v_(n(i===s&&a===s?void 0:o))},s=(0,f.useMemo)(()=>{let t=new Map;for(let n of e.commits){let e=w_.format(new Date(n.committerDate));t.set(e,[...t.get(e)??[],n])}return[...t]},[e.commits]);return e.commits.length===0?null:(0,_.jsxs)(`section`,{className:`commits`,"aria-label":`Commits`,children:[s.map(([e,t])=>(0,_.jsxs)(`div`,{className:`commit-day`,children:[(0,_.jsxs)(`h2`,{className:`commit-day-title`,children:[(0,_.jsx)(pi,{size:16,className:`range-icon`}),` Commits on `,e]}),(0,_.jsx)(`ul`,{className:`commit-list`,children:t.map(e=>(0,_.jsx)(O_,{commit:e,picked:i!==void 0&&a!==void 0&&r.get(e.oid)>=i&&r.get(e.oid)<=a,href:n?.(e.oid),onPick:o},e.oid))})]},e)),e.truncated&&(0,_.jsxs)(`p`,{className:`commits-note`,children:[`Showing the `,e.commits.length.toLocaleString(`en-US`),` most recent of `,e.total.toLocaleString(`en-US`),` commits.`]})]})}var A_=(0,f.createContext)(void 0);function j_(){let e=(0,f.useContext)(A_);if(!e)throw Error(`useEdit needs an EditProvider above it`);return e}function M_({repoId:e,canEdit:t,canApply:n,applyBlockedBy:r,children:i}){let a=y(),o=tt({queryKey:[`changes`,e],queryFn:()=>z.changes(e)}),s=(0,f.useMemo)(()=>{let i=async e=>{try{return await e}finally{Xa(a,[`worktree`])}};return{repoId:e,canEdit:t,canApply:n,applyBlockedBy:r,changes:o.data?.changes??[],apply:(t,n,r)=>i(z.applySuggestion(e,t,n,r)),save:t=>i(z.saveFile(e,t)),remove:(t,n)=>i(z.deleteFile(e,t,n)),undo:t=>i(z.undoChange(e,t))}},[e,t,n,r,o.data,a]);return(0,_.jsx)(A_.Provider,{value:s,children:i})}function N_({commentId:e,blockIndex:t,text:n}){let r=j_(),[i,a]=(0,f.useState)(!1),[o,s]=(0,f.useState)(void 0),c=r.changes.find(n=>n.commentId===e&&n.blockIndex===t&&!n.undoneAt),l=e=>{a(!0),s(void 0),e().catch(e=>s(e instanceof Error?e.message:`The change could not be written`)).finally(()=>a(!1))};return(0,_.jsxs)(`div`,{className:`suggestion-actions`,children:[c?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`span`,{className:`suggestion-applied`,children:[(0,_.jsx)(tr,{size:16}),` Applied to the working tree`]}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i,onClick:()=>l(()=>r.undo(c.id)),children:`Undo`})]}):(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i||!r.canApply,title:r.canApply?`Replace the commented lines in your working tree with this suggestion`:r.applyBlockedBy,onClick:()=>l(()=>r.apply(e,t,n)),children:`Apply suggestion`}),!c&&!r.canApply&&(0,_.jsx)(`span`,{className:`suggestion-note`,children:r.applyBlockedBy}),o&&(0,_.jsx)(`span`,{className:`suggestion-error`,role:`alert`,children:o})]})}var P_=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,minute:`2-digit`});function F_(){let e=j_(),[t,n]=(0,f.useState)(void 0),r=e.changes.filter(e=>!e.undoneAt);return r.length===0?null:(0,_.jsxs)(`details`,{className:`recent-changes`,children:[(0,_.jsxs)(`summary`,{children:[(0,_.jsx)(ji,{size:16,className:`range-icon`}),r.length===1?`1 change`:`${r.length} changes`,` written to the working tree from this page`]}),(0,_.jsx)(`ul`,{children:r.map(t=>(0,_.jsxs)(`li`,{children:[(0,_.jsxs)(`span`,{children:[t.kind===`suggestion`?`Applied a suggestion to`:t.kind===`delete`?`Deleted`:`Saved`,` `,(0,_.jsx)(`code`,{children:t.path}),` at `,P_.format(new Date(t.createdAt))]}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,onClick:()=>{n(void 0),e.undo(t.id).catch(e=>n(e instanceof Error?e.message:`Could not undo`))},children:`Undo`})]},t.id))}),t&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:t})]})}var I_={added:{icon:Or,tone:`success`,label:`Added`},deleted:{icon:Pr,tone:`danger`,label:`Deleted`},modified:{icon:jr,tone:`attention`,label:`Modified`},renamed:{icon:Lr,tone:`muted`,label:`Renamed`},copied:{icon:Lr,tone:`muted`,label:`Copied`},typechange:{icon:jr,tone:`attention`,label:`Type changed`},unmerged:{icon:jr,tone:`danger`,label:`Unmerged`}};function L_({additions:e,deletions:t}){let n=Pt(e,t);return(0,_.jsxs)(`span`,{className:`diffstat`,"aria-hidden":`true`,children:[Array.from({length:n.added},(e,t)=>(0,_.jsx)(`span`,{className:`diffstat-block added`},`a${t}`)),Array.from({length:n.deleted},(e,t)=>(0,_.jsx)(`span`,{className:`diffstat-block deleted`},`d${t}`)),Array.from({length:n.neutral},(e,t)=>(0,_.jsx)(`span`,{className:`diffstat-block`},`n${t}`))]})}function R_(e){if(e.status===`modified`&&e.oldMode&&e.newMode&&e.oldMode!==e.newMode)return`mode ${e.oldMode} → ${e.newMode}`}function z_({file:e}){return(0,_.jsxs)(_.Fragment,{children:[e.oldPath&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`span`,{className:`file-path-old`,children:e.oldPath}),(0,_.jsx)(`span`,{className:`file-path-arrow`,"aria-label":`renamed to`,children:`→`})]}),e.path]})}function B_(e){let t=I_[e.status];return{Icon:e.kind===`binary`?Kr:e.kind===`submodule`?ii:t.icon,tone:t.tone,label:t.label}}function V_({file:e}){let t=B_(e),n=t.Icon,r=R_(e);return(0,_.jsxs)(`li`,{className:`file-row`,children:[(0,_.jsx)(`span`,{className:`file-status tone-${t.tone}`,title:t.label,children:(0,_.jsx)(n,{size:16,"aria-label":t.label})}),(0,_.jsx)(`span`,{className:`file-path`,children:(0,_.jsx)(`a`,{href:`#diff-${e.anchor}`,children:(0,_.jsx)(z_,{file:e})})}),e.untracked&&(0,_.jsx)(`span`,{className:`label`,children:`Untracked`}),r&&(0,_.jsx)(`span`,{className:`label`,children:r}),(0,_.jsx)(`span`,{className:`file-stats`,children:e.kind===`binary`?(0,_.jsx)(`span`,{className:`file-stat-note`,children:`Binary`}):e.kind===`submodule`?(0,_.jsx)(`span`,{className:`file-stat-note`,children:`Submodule`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`span`,{className:`tone-success`,children:[`+`,e.additions]}),(0,_.jsxs)(`span`,{className:`tone-danger`,children:[`−`,e.deletions]}),(0,_.jsx)(L_,{additions:e.additions,deletions:e.deletions})]})})]})}function H_({files:e}){return(0,_.jsx)(`ul`,{className:`file-list`,"aria-label":`Changed files`,children:e.map(e=>(0,_.jsx)(V_,{file:e},e.path))})}var U_={bold:`**`,italic:`_`,code:"`"},W_={quote:`> `,list:`- `};function G_(e,t,n,r,i=``){let a=e.slice(t,n),o=U_[r];if(o)return{value:`${e.slice(0,t)}${o}${a}${o}${e.slice(n)}`,selectionStart:t+o.length,selectionEnd:n+o.length};if(r===`link`){let r=a||`text`,i=`${e.slice(0,t)}[${r}](url)${e.slice(n)}`,o=t+r.length+3;return{value:i,selectionStart:o,selectionEnd:o+3}}let s=W_[r];if(s){let r=e.lastIndexOf(`
52
+ `,t-1)+1,i=e.slice(r,n).replace(/^/gm,s);return{value:`${e.slice(0,r)}${i}${e.slice(n)}`,selectionStart:t+s.length,selectionEnd:r+i.length}}let c=t>0&&e[t-1]!==`
53
+ `,l=a||i,u=K_(l),d=`${c?`
54
+ `:``}${u}suggestion\n`;return{value:`${e.slice(0,t)}${d}${l}\n${u}\n${e.slice(n)}`,selectionStart:t+d.length,selectionEnd:t+d.length+l.length}}function K_(e){let t=Math.max(2,...e.split(`
55
+ `).map(e=>/^\s*(`+)/.exec(e)?.[1]?.length??0));return"`".repeat(t+1)}var q_=[{kind:`bold`,label:`Bold`,icon:Qn},{kind:`italic`,label:`Italic`,icon:Pi},{kind:`quote`,label:`Quote`,icon:fa},{kind:`code`,label:`Code`,icon:pr},{kind:`link`,label:`Link`,icon:Bi},{kind:`list`,label:`List`,icon:Ki}],J_=500,Y_=new Map;function X_({repoId:e,draftKey:t,title:n,submitLabel:r,initialBody:i=``,suggestionSeed:a,onSubmit:o,onCancel:s}){let c=`${e}\n${t}`,[l,u]=(0,f.useState)(()=>Y_.get(c)??i),[d,p]=(0,f.useState)(`write`),[m,h]=(0,f.useState)(!1),[g,v]=(0,f.useState)(void 0),y=(0,f.useRef)(null),b=(0,f.useRef)(Y_.has(c)),x=(0,f.useRef)(!1),S=(0,f.useRef)(!1);(0,f.useEffect)(()=>{let n=!0;return z.draft(e,t).then(e=>{n&&!b.current&&e.body!==``&&u(e.body)},()=>void 0),()=>{n=!1}},[e,t]),(0,f.useEffect)(()=>{if(!b.current)return;let n=window.setTimeout(()=>{Y_.get(c)===l&&(x.current=!1),z.saveDraft(e,t,l).catch(()=>void 0)},J_);return()=>window.clearTimeout(n)},[e,t,c,l]),(0,f.useEffect)(()=>()=>{let n=Y_.get(c);x.current&&!S.current&&n!==void 0&&z.saveDraft(e,t,n).catch(()=>void 0)},[e,t,c]),(0,f.useEffect)(()=>{let e=y.current;e&&b.current&&e.setSelectionRange(e.value.length,e.value.length)},[]);let C=e=>{b.current=!0,x.current=!0,Y_.set(c,e),u(e)},w=()=>(Y_.delete(c),x.current=!1,z.saveDraft(e,t,``).catch(()=>void 0)),T=mo({textarea:y,value:l,onChange:C}),E=e=>{let t=y.current;if(!t)return;let n=G_(l,t.selectionStart,t.selectionEnd,e,a);C(n.value),requestAnimationFrame(()=>{t.focus(),t.setSelectionRange(n.selectionStart,n.selectionEnd)})},D=async()=>{if(!(l.trim()===``||m)){h(!0),v(void 0),S.current=!0;try{await o(l),await w()}catch(e){S.current=!1,v(e instanceof Error?e.message:`Could not save the comment`),h(!1)}}},O=()=>{w(),s()};return(0,_.jsxs)(`form`,{className:`comment-form`,"data-draft":t,onSubmit:e=>{e.preventDefault(),D()},children:[n&&(0,_.jsx)(`div`,{className:`comment-form-title`,children:n}),(0,_.jsxs)(`div`,{className:`comment-box`,children:[(0,_.jsxs)(`div`,{className:`comment-tabs`,children:[(0,_.jsx)(`div`,{role:`tablist`,className:`comment-tablist`,children:[`write`,`preview`].map(e=>(0,_.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":d===e,className:`comment-tab`,onClick:()=>p(e),children:e===`write`?`Write`:`Preview`},e))}),d===`write`&&(0,_.jsxs)(`div`,{className:`comment-toolbar`,role:`toolbar`,"aria-label":`Formatting`,children:[q_.map(({kind:e,label:t,icon:n})=>(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":t,title:t,onClick:()=>E(e),children:(0,_.jsx)(n,{size:16})},e)),a!==void 0&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Suggest a change`,title:`Suggest a change`,onClick:()=>E(`suggestion`),children:(0,_.jsx)(Yr,{size:16})})]})]}),d===`write`?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`textarea`,{ref:y,autoFocus:!0,className:`comment-textarea`,placeholder:`Leave a comment. @ calls an agent, ! sets effort, # adds a tool, / runs a command`,"aria-label":`Comment`,value:l,onChange:e=>{C(e.target.value),T.onCaret()},onKeyDown:e=>{e.nativeEvent.isComposing||e.keyCode===229||T.onKeyDown(e)||(e.key===`Enter`&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),D()):e.key===`Escape`&&l.trim()===``&&(e.preventDefault(),O()))},onKeyUp:T.onCaret,onClick:T.onCaret,onBlur:T.onCaret}),T.list]}):(0,_.jsx)(`div`,{className:`comment-preview`,children:l.trim()===``?(0,_.jsx)(`p`,{className:`comment-empty`,children:`Nothing to preview`}):(0,_.jsx)(Lg,{text:l})})]}),g&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:g}),(0,_.jsxs)(`div`,{className:`comment-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:O,disabled:m,children:`Cancel`}),(0,_.jsx)(`button`,{type:`submit`,className:`button button-primary`,disabled:m||l.trim()===``,children:m?`Saving…`:r})]})]})}function Z_(e){let t=y();return(0,f.useMemo)(()=>{let n=()=>t.invalidateQueries({queryKey:[`threads`,e]}),r=async e=>{let t=await e;return await n(),t};return{create:t=>r(z.createThread(e,t)),reply:(t,n)=>r(z.reply(e,t,n)),setState:(t,n)=>r(z.setThreadState(e,t,n)),edit:(t,n)=>r(z.editComment(e,t,n)),remove:t=>r(z.deleteComment(e,t))}},[e,t])}var Q_=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`});function $_({repoId:e,comment:t,actions:n,applicable:r,pending:i}){let[a,o]=(0,f.useState)(!1),s=(0,f.useCallback)(e=>(0,_.jsx)(N_,{commentId:t.id,blockIndex:e.index,text:e.text}),[t.id]),c=t.authorKind===`user`&&!t.published;return(0,_.jsxs)(`div`,{className:`comment`,children:[(0,_.jsxs)(`div`,{className:`comment-head`,children:[(0,_.jsx)(`span`,{className:`avatar avatar-${t.authorKind}`,"aria-hidden":`true`,children:(t.authorName.trim()[0]??`?`).toUpperCase()}),(0,_.jsx)(`strong`,{children:t.authorName}),t.authorKind!==`user`&&(0,_.jsx)(`span`,{className:`label`,children:t.authorKind===`agent`?`Agent`:`GitHub`}),(0,_.jsx)(`time`,{dateTime:t.createdAt,children:Q_.format(new Date(t.createdAt))}),i&&(0,_.jsx)(`span`,{className:`label label-attention`,title:`Only here so far. It goes to GitHub when you publish your review.`,children:`Pending`}),c&&!a&&(0,_.jsxs)(`span`,{className:`comment-tools`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Edit comment`,title:`Edit`,onClick:()=>o(!0),children:(0,_.jsx)(ta,{size:16})}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Delete comment`,title:`Delete`,onClick:()=>{window.confirm(`Delete this comment? This cannot be undone.`)&&n.remove(t.id)},children:(0,_.jsx)(Ia,{size:16})})]})]}),a?(0,_.jsx)(X_,{repoId:e,draftKey:`edit:${t.id}`,submitLabel:`Update comment`,initialBody:t.body,onSubmit:e=>n.edit(t.id,e).then(()=>o(!1)),onCancel:()=>o(!1)}):(0,_.jsx)(Lg,{text:t.body,suggestionActions:r?s:void 0})]})}function e1(e){if(e.side===`file`||e.startLine===void 0)return`the file`;let t=e.side===`L`?`L`:`R`;return e.endLine!==void 0&&e.endLine!==e.startLine?`lines ${t}${e.startLine}–${t}${e.endLine}`:`line ${t}${e.startLine}`}function t1({repoId:e,thread:t,actions:n,showPath:r=!1}){let[i,a]=(0,f.useState)(t.state===`open`),[o,s]=(0,f.useState)(!1),c=no(),l=c.runFor(t.id),u=c.startError?.threadId===t.id?c.startError.message:void 0,d=t.state===`resolved`,p=t.outdated||t.detached,m=t.comments[0],h=t.scope.startsWith(`pr:`);return(0,_.jsxs)(`article`,{className:`thread${d?` resolved`:``}${t.github?` from-github`:``}`,"aria-label":`Conversation on ${e1(t)}`,children:[t.github&&(0,_.jsxs)(`div`,{className:`thread-origin`,children:[(0,_.jsx)(Yi,{size:12}),` From GitHub`,h?`, pull request #${t.scope.slice(3)}`:``]}),(d||p||r)&&(0,_.jsxs)(`header`,{className:`thread-header`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-expanded":i,"aria-label":i?`Hide conversation`:`Show conversation`,onClick:()=>a(e=>!e),children:i?(0,_.jsx)(sr,{size:16}):(0,_.jsx)(ur,{size:16})}),(0,_.jsxs)(`span`,{className:`thread-where`,children:[r&&(0,_.jsx)(`code`,{children:t.path}),` `,p||r?`Comment on ${e1(t)}`:``]}),t.outdated&&(0,_.jsx)(`span`,{className:`label label-attention`,children:`Outdated`}),d&&(0,_.jsxs)(`span`,{className:`label label-done`,children:[(0,_.jsx)(ir,{size:12}),` Resolved`]}),!i&&m&&(0,_.jsxs)(`span`,{className:`thread-summary`,children:[m.authorName,`: `,m.body.split(`
56
+ `)[0]]})]}),(i||l)&&(0,_.jsxs)(_.Fragment,{children:[p&&t.anchorText&&t.anchorText.length>0&&(0,_.jsx)(`pre`,{className:`thread-snippet`,children:t.anchorText.join(`
57
+ `)}),t.comments.map(r=>(0,_.jsx)($_,{repoId:e,comment:r,actions:n,applicable:t.side===`R`&&!t.detached,pending:h&&!r.published},r.id)),l&&(0,_.jsx)(zg,{run:l}),u&&(0,_.jsx)(`div`,{className:`flash flash-danger thread-flash`,role:`alert`,children:u}),o?(0,_.jsx)(X_,{repoId:e,draftKey:`reply:${t.id}`,submitLabel:`Reply`,onSubmit:e=>n.reply(t.id,e).then(()=>{s(!1),c.startIfMentioned(t.id,e)}),onCancel:()=>s(!1)}):(0,_.jsxs)(`div`,{className:`thread-footer`,children:[(0,_.jsx)(`button`,{type:`button`,className:`reply-box`,onClick:()=>s(!0),children:`Reply…`}),(0,_.jsxs)(`button`,{type:`button`,className:`button`,disabled:l?.status===`running`||c.agents.length===0,title:`Ask the agent for its view on this conversation. Mentioning @agent in a comment does the same.`,onClick:()=>c.start({threadId:t.id,message:`Please look at this conversation and the code it is about, and give your view.`}),children:[(0,_.jsx)(Sr,{size:16}),` Ask agent`]}),!t.github&&(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>{a(d),n.setState(t.id,d?`open`:`resolved`)},children:d?`Unresolve conversation`:`Resolve conversation`})]})]})]})}function n1({items:e}){let[t,n]=(0,f.useState)(void 0),r=(0,f.useRef)(null),i=(0,f.useRef)(null),a=t!==void 0;return(0,f.useEffect)(()=>{if(!a)return;let e=()=>n(void 0),t=t=>{let n=t.target;!i.current?.contains(n)&&!r.current?.contains(n)&&e()},o=t=>{t.key===`Escape`&&(e(),r.current?.focus())};return document.addEventListener(`mousedown`,t),document.addEventListener(`keydown`,o),window.addEventListener(`scroll`,e,{passive:!0}),window.addEventListener(`resize`,e),i.current?.querySelector(`button`)?.focus(),()=>{document.removeEventListener(`mousedown`,t),document.removeEventListener(`keydown`,o),window.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,e)}},[a]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{ref:r,type:`button`,className:`icon-button`,"aria-haspopup":`menu`,"aria-expanded":a,"aria-label":`More actions for this file`,title:`More actions`,onClick:()=>{if(a||!r.current){n(void 0);return}let e=r.current.getBoundingClientRect();n({top:e.bottom+4,right:Math.max(8,window.innerWidth-e.right)})},children:(0,_.jsx)(Li,{size:16})}),t&&(0,po.createPortal)((0,_.jsx)(`div`,{ref:i,className:`file-menu-list`,role:`menu`,style:t,children:e.map(e=>(0,_.jsx)(`button`,{type:`button`,role:`menuitem`,className:e.danger?`danger`:void 0,onClick:()=>{n(void 0),e.run()},children:e.label},e.label))}),document.body)]})}var r1,i1=1,a1=new Map;function o1(){return r1||(r1=new Worker(new URL(`/assets/highlight.worker-DsmjLvrc.js`,``+import.meta.url),{type:`module`}),r1.addEventListener(`message`,e=>{let t=a1.get(e.data.id);t&&(a1.delete(e.data.id),`error`in e.data?t.reject(Error(e.data.error)):t.resolve(e.data.lines))}),r1.addEventListener(`error`,()=>{for(let e of a1.values())e.reject(Error(`Highlighting failed`));a1.clear(),r1?.terminate(),r1=void 0}),r1)}function s1(e,t){return new Promise((n,r)=>{let i=i1++;a1.set(i,{resolve:n,reject:r}),o1().postMessage({id:i,language:e,code:t.join(`
58
+ `)})})}function c1(e,t){return e.length>0&&e.length<=15e3&&t<=4e5}var l1=`modulepreload`,u1=function(e){return`/`+e},d1={},f1={},p1=function(e){return e.pathname.endsWith(`.css`)},m1=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 delete e[t],n});return e[t]=i,i},h1=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=u1(t,n);let r=s(t),i=p1(r);return m1(d1,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)}}let t=i?e.styles:e.all,n=i?f1[r.href]:void 0;if(!n&&t.has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:l1,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),n&&delete f1[r.href],n?.isConnected?n.replaceWith(o):document.head.appendChild(o),i)return new Promise((e,t)=>{let n=i=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,n),i.type===`error`?(f1[r.href]=o,t(Error(`Unable to preload CSS for ${r}`))):e(i)};o.addEventListener(`load`,n),o.addEventListener(`error`,n)})})}).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)})},g1={c:`c`,h:`c`,cc:`cpp`,cpp:`cpp`,cxx:`cpp`,hpp:`cpp`,hh:`cpp`,cs:`csharp`,css:`css`,diff:`diff`,patch:`diff`,go:`go`,graphql:`graphql`,gql:`graphql`,html:`html`,htm:`html`,ini:`ini`,cfg:`ini`,conf:`ini`,properties:`ini`,editorconfig:`ini`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,json:`json`,map:`json`,webmanifest:`json`,jsonc:`jsonc`,json5:`jsonc`,jsx:`jsx`,kt:`kotlin`,kts:`kotlin`,less:`less`,lua:`lua`,mk:`make`,md:`markdown`,markdown:`markdown`,mdx:`markdown`,php:`php`,py:`python`,pyi:`python`,rb:`ruby`,rake:`ruby`,gemspec:`ruby`,rs:`rust`,scss:`scss`,sh:`shellscript`,bash:`shellscript`,zsh:`shellscript`,fish:`shellscript`,sql:`sql`,svelte:`svelte`,swift:`swift`,toml:`toml`,tsx:`tsx`,ts:`typescript`,mts:`typescript`,cts:`typescript`,vue:`vue`,xml:`xml`,svg:`xml`,xsd:`xml`,plist:`xml`,csproj:`xml`,yaml:`yaml`,yml:`yaml`},_1={dockerfile:`docker`,makefile:`make`,gnumakefile:`make`,gemfile:`ruby`,rakefile:`ruby`,".bashrc":`shellscript`,".zshrc":`shellscript`,".gitconfig":`ini`,".npmrc":`ini`,"tsconfig.json":`jsonc`,"jsconfig.json":`jsonc`};function v1(e){let t=e.slice(e.lastIndexOf(`/`)+1).toLowerCase(),n=_1[t]??(t.startsWith(`dockerfile.`)?`docker`:void 0);if(n)return n;let r=t.lastIndexOf(`.`);return r>0||r===0&&t.length>1?g1[t.slice(r+1)]:void 0}var y1=/^ {0,3}(`{3,}|~{3,})/;function b1(e){let t=[],n=[],r,i=()=>{n.length>0&&t.push(n.join(`
59
+ `)),n=[]};for(let t of e){let e=y1.exec(t)?.[1];r?(n.push(t),e&&e[0]===r[0]&&e.length>=r.length&&t.trim()===e&&(r=void 0,i())):e?(i(),r=e,n.push(t)):t.trim()===``?i():n.push(t)}return i(),t}function x1(e,t){let n=[];for(let r of xn(b1(e),b1(t))){let e=r.added?`added`:r.removed?`removed`:`same`;for(let t of r.value)n.push({kind:e,text:t})}return n}var S1={added:`Added`,removed:`Removed`},C1=(0,f.memo)(function({oldLines:e,newLines:t}){let n=(0,f.useMemo)(()=>x1(e,t),[e,t]);return(0,_.jsx)(`div`,{className:`rich-diff`,"aria-label":`Rendered document with changes marked`,children:n.map((e,t)=>e.kind===`same`?(0,_.jsx)(`div`,{className:`rich-block`,children:(0,_.jsx)(Lg,{text:e.text})},t):(0,_.jsxs)(`div`,{className:`rich-block rich-${e.kind}`,"aria-label":S1[e.kind],children:[(0,_.jsx)(`span`,{className:`rich-mark`,"aria-hidden":`true`,children:e.kind===`added`?`+`:`−`}),(0,_.jsx)(Lg,{text:e.text})]},t))})});function w1({src:e,label:t,tone:n}){let[r,i]=(0,f.useState)(void 0),[a,o]=(0,f.useState)(!1);return(0,_.jsxs)(`figure`,{className:`image-side image-${n}`,children:[(0,_.jsxs)(`figcaption`,{children:[(0,_.jsx)(`strong`,{children:t}),r&&(0,_.jsx)(`span`,{className:`image-size`,children:r})]}),a?(0,_.jsx)(`p`,{className:`image-failed`,children:`This image could not be shown.`}):(0,_.jsx)(`img`,{src:e,alt:t,onLoad:e=>i(`${e.currentTarget.naturalWidth} × ${e.currentTarget.naturalHeight}`),onError:()=>o(!0)})]})}function T1({before:e,after:t}){return(0,_.jsxs)(`div`,{className:`image-diff`,children:[e&&(0,_.jsx)(w1,{src:e,label:t?`Before`:`Deleted`,tone:`removed`}),t&&(0,_.jsx)(w1,{src:t,label:e?`After`:`Added`,tone:`added`})]})}function E1(e){return e===0?[]:[{oldStart:0,oldLines:0,newStart:1,newLines:e,section:``,rows:Array.from({length:e},(e,t)=>({t:`add`,new:t+1}))}]}var D1=e=>e.oldLines===0?e.oldStart+1:e.oldStart,O1=e=>e.newLines===0?e.newStart+1:e.newStart;function k1(e,t){let n=1,r=1,i=e.map(e=>{let t={oldStart:n,newStart:r,length:Math.max(0,O1(e)-r)};return n=D1(e)+e.oldLines,r=O1(e)+e.newLines,t});return i.push({oldStart:n,newStart:r,length:Math.max(0,t-r+1)}),i}function A1(e,t,n){let r=e.findIndex(e=>{let r=t===`L`?e.oldStart:e.newStart;return n>=r&&n<r+e.length});return r<0?void 0:r}function j1(e,t,n){let r=e;for(let{side:e,line:i}of n){let n=A1(t,e,i);if(n===void 0)continue;let a=t[n],o=r[n]??{top:0,bottom:0},s=i-(e===`L`?a.oldStart:a.newStart);s<o.top||s>=a.length-o.bottom||(r=M1(r,n,`all`,a.length))}return r}function M1(e,t,n,r){let i=e[t]??{top:0,bottom:0},a=n===`all`?{top:r,bottom:0}:n===`down`?{...i,top:i.top+20}:{...i,bottom:i.bottom+20};return{...e,[t]:a}}var N1=e=>`${e.t}:${`old`in e?e.old:``}:${`new`in e?e.new:``}`;function P1(e,t,n){let r=[];for(let i=t;i<n;i+=1){let t={t:`ctx`,old:e.oldStart+i,new:e.newStart+i};r.push({kind:`row`,key:N1(t),row:t})}return r}function F1(e,t,n){let r=[];if(e.forEach((e,i)=>{let a=t[i],o=n[i]??{top:0,bottom:0},s=Math.min(o.top,a.length),c=Math.min(o.bottom,a.length-s),l=a.length-s-c;if(r.push(...P1(a,0,s)),l>0||a.length===0){let t=l===0?[]:l<=20?[`all`]:i===0?[`up`]:[`down`,`up`];r.push({kind:`hunk`,key:`hunk:${i}`,gap:i,gapLength:a.length,hunk:e,actions:t})}r.push(...P1(a,a.length-c,a.length));for(let t of e.rows)r.push({kind:`row`,key:N1(t),row:t})}),e.length>0){let i=e.length,a=t[i],o=Math.min(n[i]?.top??0,a.length),s=a.length-o;r.push(...P1(a,0,o)),s>0&&r.push({kind:`tail`,key:`tail`,gap:i,gapLength:a.length,actions:[s<=20?`all`:`down`]})}return r}function I1(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r.t===`ctx`){t.push({ctx:r}),n+=1;continue}let i=[],a=[];for(;e[n]?.t===`del`;)i.push(e[n++]);for(;e[n]?.t===`add`;)a.push(e[n++]);t.push({dels:i,adds:a})}return t}function L1(e){let t=[];for(let n of I1(e)){if(`ctx`in n){t.push({key:N1(n.ctx),left:n.ctx,right:n.ctx});continue}let e=Math.max(n.dels.length,n.adds.length);for(let r=0;r<e;r+=1){let e=n.dels[r],i=n.adds[r];t.push({key:`${e?N1(e):``}|${i?N1(i):``}`,left:e,right:i})}}return t}function R1(e){let t=new Map;for(let n of I1(e))`ctx`in n||n.dels.length!==n.adds.length||n.dels.forEach((e,r)=>{let i=n.adds[r];t.set(e,i),t.set(i,e)});return t}function z1(e){let t=`@@ -${e.oldStart},${e.oldLines} +${e.newStart},${e.newLines} @@`;return e.section?`${t} ${e.section}`:t}var B1=new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`number`,`date`,`datetime-local`,`month`,`time`,`week`]);function V1(e){return e instanceof HTMLElement?e.closest(`[role="dialog"], [role="menu"]`)?!0:e instanceof HTMLInputElement?B1.has(e.type):e.isContentEditable||e.closest(`textarea, select, [contenteditable="true"], .cm-editor`)!==null:!1}function H1(e){let{key:t}=e;if(/^[A-Za-z]$/.test(t))return e.shiftKey?t:t.toLowerCase();let n=/^Key([A-Z])$/.exec(e.code)?.[1],r=[...t].length===1&&(t.codePointAt(0)??0)>127;return n&&r&&!e.shiftKey?n.toLowerCase():t}function U1(e){let t=(0,f.useRef)(e);t.current=e,(0,f.useEffect)(()=>{let e=e=>{if(e.ctrlKey||e.metaKey||e.altKey||e.defaultPrevented||e.isComposing||V1(e.target)||document.querySelector(`[aria-modal="true"], [role="menu"]`))return;let n=t.current[H1(e)];n&&(e.preventDefault(),n())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[])}function W1(){return document.activeElement?.closest(`section.file-card`)||[...document.querySelectorAll(`section.file-card`)].find(e=>e.getBoundingClientRect().bottom>80)}var G1=`focusRows`;function K1(e){let t=[...document.querySelectorAll(`section.file-card`)],n=W1(),r=n?t.indexOf(n):-1,i=n!==void 0&&(document.activeElement?.closest(`section.file-card`)===n||n.getBoundingClientRect().top<0),a=t[r<0?0:e===1&&!i?r:r+e];if(!a)return;for(let e of t)delete e.dataset[G1];a.scrollIntoView({block:`start`});let o=a.querySelector(`.diff-rows`);o?o.focus({preventScroll:!0}):(a.dataset[G1]=``,a.querySelector(`.file-header button`)?.focus({preventScroll:!0}))}function q1(e){let t=e.closest(`section.file-card`);t&&t.dataset[G1]!==void 0&&(delete t.dataset[G1],t.querySelector(`.file-header`)?.contains(document.activeElement)&&e.focus({preventScroll:!0}))}var J1=[{title:`Anywhere on the page`,keys:[[`?`,`Show this list`],[`n / p`,`Go to the next / previous file`],[`t`,`Find a file: focus the filter of the file tree`],[`f`,`Find a function, class or type by name`],[`Alt + click`,`On a name in the code: go to its definition`],[`v`,`Mark the current file as viewed, or take the mark off`],[`s`,`Stage or unstage the current file (when comparing with the working tree)`]]},{title:`Inside a file’s diff`,keys:[[`↑ ↓ or j k`,`Move the line cursor`],[`← →`,`In the split view: move the cursor to the other side`],[`Shift + ↑ ↓`,`Select several lines`],[`c`,`Comment on the line or the selection`],[`Enter`,`Put a link to the line into the address bar`],[`Esc`,`Take the cursor away`]]},{title:`While writing`,keys:[[`Ctrl/Cmd + Enter`,`Send the comment, or commit`],[`Esc`,`Close an empty comment form, or a dialog`]]}];function Y1({onClose:e}){let t=(0,f.useRef)(null);return qa(t),(0,f.useEffect)(()=>{let t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e]),(0,_.jsx)(`div`,{className:`modal-backdrop`,onClick:t=>t.target===t.currentTarget&&e(),children:(0,_.jsxs)(`div`,{ref:t,className:`dialog modal shortcuts-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`shortcuts-title`,children:[(0,_.jsx)(`h2`,{id:`shortcuts-title`,className:`dialog-title`,children:`Keyboard shortcuts`}),J1.map(e=>(0,_.jsxs)(`section`,{children:[(0,_.jsx)(`h3`,{className:`shortcuts-group`,children:e.title}),(0,_.jsx)(`dl`,{className:`shortcuts-list`,children:e.keys.map(([e,t])=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`dt`,{children:(0,_.jsx)(`kbd`,{children:e})}),(0,_.jsx)(`dd`,{children:t})]},e))})]},e.title)),(0,_.jsx)(`div`,{className:`dialog-actions`,children:(0,_.jsx)(`button`,{type:`button`,className:`button`,autoFocus:!0,onClick:e,children:`Close`})})]})})}var X1=500,Z1=e=>e.reduce((e,[t,n])=>e+(n-t),0);function Q1(e,t){let n=[];for(let r of t){let t=n.at(-1);t&&e.slice(t[1],r[0]).trim()===``?n[n.length-1]=[t[0],r[1]]:n.push(r)}return n}function $1(e,t){if(e.length>X1||t.length>X1)return;let n=[],r=[],i=0,a=0,o=0;for(let s of gn(e,t)){let e=s.value.length;s.removed?(n.push([i,i+e]),i+=e):s.added?(r.push([a,a+e]),a+=e):(o+=s.value.trim().length,i+=e,a+=e)}if((n.length!==0||r.length!==0)&&o!==0&&!(Z1(n)>=e.length&&Z1(r)>=t.length))return{old:Q1(e,n),new:Q1(t,r)}}function e0(e,t,n){let r=t&&t.length>0?t:[[e]];if(!n||n.length===0)return r.map(([e,t,n])=>({text:e,color:t,italic:n,mark:!1}));let i=[],a=0,o=0;for(let[e,t,s]of r){let r=0;for(;r<e.length;){for(;o<n.length&&n[o][1]<=a+r;)o+=1;let c=n[o],l=a+r,u=c!==void 0&&l>=c[0],d=c===void 0?1/0:u?c[1]:c[0],f=Math.min(e.length,d-a);i.push({text:e.slice(r,f),color:t,italic:s,mark:u}),r=f}a+=e.length}return i}var t0=3e3,n0=`agentic-diff:first-rows`,r0=(0,f.memo)(function({text:e,tokens:t,ranges:n,noEol:r}){return(0,_.jsxs)(_.Fragment,{children:[e0(e,t,n).map((e,t)=>e.mark||e.color||e.italic?(0,_.jsx)(`span`,{className:e.mark?`word`:void 0,style:e.color||e.italic?{color:e.color,fontStyle:e.italic?`italic`:void 0}:void 0,children:e.text},t):e.text),r&&(0,_.jsx)(`span`,{className:`no-eol`,title:`No newline at end of file`,children:(0,_.jsx)(Qi,{size:12,"aria-label":`No newline at end of file`})})]})}),i0=800,a0=250,o0=20;function s0({rows:e,pinned:t,children:n}){let r=(0,f.useRef)(null),[i,a]=(0,f.useState)(!1),o=(0,f.useRef)(void 0),s=t||i;return(0,f.useEffect)(()=>{let e=r.current;if(!e)return;let t=new IntersectionObserver(e=>a(e.some(e=>e.isIntersecting)),{rootMargin:`1500px 0px`});return t.observe(e),()=>t.disconnect()},[]),(0,f.useLayoutEffect)(()=>{s&&r.current&&(o.current=r.current.offsetHeight)}),(0,_.jsx)(`div`,{ref:r,style:s?void 0:{height:o.current??e*o0},children:s?n:null})}var c0={all:{icon:Ha,label:`Expand all`},down:{icon:si,label:`Expand down`},up:{icon:ui,label:`Expand up`}};function l0({item:e,onExpand:t}){return(0,_.jsx)(`div`,{className:`expander`,children:e.actions.map(n=>{let{icon:r,label:i}=c0[n];return(0,_.jsx)(`button`,{type:`button`,className:`expander-button`,"aria-label":i,title:i,onClick:()=>t(e.gap,n,e.gapLength),children:(0,_.jsx)(r,{size:16})},n)})})}function u0(e,t,n){return e!==void 0&&e.side===t&&e.line===n}var d0=(e,t,n)=>n!==void 0&&e.some(e=>e.side===t&&n>=e.startLine&&n<=e.endLine),f0=[];function p0(e){let t=e?.closest(`.code[data-line]`),n=t?.dataset.side;if(!(!t||n!==`L`&&n!==`R`))return{side:n,line:Number(t.dataset.line),cell:t}}function m0({items:e,view:t,anchor:n,old:r,next:i,pairs:a,target:o,inserts:s,highlights:c=f0,label:l,onExpand:u,onSelectLine:d,onComment:p}){let m=(0,f.useRef)(null);(0,f.useEffect)(()=>{performance.getEntriesByName(n0).length===0&&performance.mark(n0),m.current&&q1(m.current)},[]);let h=(0,f.useMemo)(()=>{let e=new Map;if(a.size/2>t0)return e;for(let[t,n]of a){if(t.t!==`del`||n.t!==`add`)continue;let a=$1(r.lines[t.old-1]??``,i.lines[n.new-1]??``);a&&(e.set(t,a.old),e.set(n,a.new))}return e},[a,r.lines,i.lines]),g=(0,f.useRef)(null),v=(0,f.useRef)(void 0),[y,b]=(0,f.useState)(void 0),[x,S]=(0,f.useState)(void 0),C=e=>({side:e.side,startLine:Math.min(e.from,e.to),endLine:Math.max(e.from,e.to)}),w=y?C(y):x&&x.from!==x.to?C(x):void 0,T=w?[...c,w]:c,E=(e,t)=>x!==void 0&&x.side===e&&x.to===t;(0,f.useEffect)(()=>{if(!y)return;let e=e=>{let t=p0(document.elementFromPoint(e.clientX,e.clientY));t&&t.side===y.side&&m.current?.contains(t.cell)&&t.line!==y.to&&b({...y,to:t.line})},t=()=>{b(void 0),p?.({side:y.side,startLine:Math.min(y.from,y.to),endLine:Math.max(y.from,y.to)})};return document.addEventListener(`mousemove`,e),document.addEventListener(`mouseup`,t),()=>{document.removeEventListener(`mousemove`,e),document.removeEventListener(`mouseup`,t)}},[y,p]),(0,f.useEffect)(()=>{g.current&&(g.current.hidden=!0)},[e,s,t]);let D=(e,t)=>`diff-${n}${e}${t}`,O=(e,t,n=``)=>(0,_.jsx)(`div`,{className:`num ${n}`,id:t===void 0?void 0:D(e,t),"data-side":e,"data-line":t,children:t}),ee=e=>(0,_.jsx)(r0,{text:r.lines[e.old-1]??``,tokens:r.tokens?.[e.old-1],ranges:h.get(e),noEol:e.noEol}),k=e=>(0,_.jsx)(r0,{text:i.lines[e.new-1]??``,tokens:i.tokens?.[e.new-1],ranges:h.get(e),noEol:e.noEol}),te=[],ne=[],A=(e,t=!1)=>{te.push(e),ne.push(t)},j=(e,n)=>{let r=e===void 0?void 0:s?.get(`L${e}`),i=n===void 0?void 0:s?.get(`R${n}`);if(!r&&!i)return;let a=`insert:${r?`L${e}`:``}:${i?`R${n}`:``}`;A(t===`split`?(0,_.jsxs)(`div`,{className:`diff-insert split-insert`,children:[(0,_.jsx)(`div`,{className:`insert-half`,children:r}),(0,_.jsx)(`div`,{className:`insert-half`,children:i})]},a):(0,_.jsxs)(`div`,{className:`diff-insert`,children:[r,i]},a),!0)},M=(e,t)=>{let n=t.t===`add`?void 0:t.old,r=t.t===`del`?void 0:t.new,i=u0(o,`L`,n)||u0(o,`R`,r),a=t.t===`del`?`L`:`R`,s=t.t===`del`?t.old:t.new,c=d0(T,a,s);A((0,_.jsxs)(`div`,{className:`diff-row ${t.t}${i?` selected`:``}${c?` commenting`:``}${E(a,s)?` cursor`:``}`,children:[O(`L`,n),O(`R`,r),(0,_.jsx)(`div`,{className:`code`,"data-marker":t.t===`add`?`+`:t.t===`del`?`-`:` `,"data-side":a,"data-line":s,children:t.t===`del`?ee(t):k(t)})]},e),i||c||E(a,s)),j(n,r)},re=(e,t,n)=>{let r=t&&t.t!==`add`?t:void 0,i=n&&n.t!==`del`?n:void 0,a=r?r.t:`empty`,s=i?i.t:`empty`,c=d0(T,`L`,r?.old)?` commenting`:``,l=d0(T,`R`,i?.new)?` commenting`:``;A((0,_.jsxs)(`div`,{className:`diff-row`,children:[O(`L`,r?.old,`${a}${u0(o,`L`,r?.old)?` selected`:``}${c}`),(0,_.jsx)(`div`,{className:`code side-left ${a}${c}${E(`L`,r?.old)?` cursor`:``}`,"data-marker":r?.t===`del`?`-`:` `,"data-side":`L`,"data-line":r?.old,children:r&&ee(r)}),O(`R`,i?.new,`${s}${u0(o,`R`,i?.new)?` selected`:``}${l}`),(0,_.jsx)(`div`,{className:`code side-right ${s}${l}${E(`R`,i?.new)?` cursor`:``}`,"data-marker":i?.t===`add`?`+`:` `,"data-side":`R`,"data-line":i?.new,children:i&&k(i)})]},e),c!==``||l!==``||u0(o,`L`,r?.old)||u0(o,`R`,i?.new)||E(`L`,r?.old)||E(`R`,i?.new)),j(r?.old,i?.new)},ie=[],N=()=>{if(ie.length!==0){if(t===`unified`)for(let e of ie)M(e.key,e.row);else for(let e of L1(ie.map(e=>e.row)))re(e.key,e.left,e.right);ie=[]}};for(let t of e)t.kind===`row`?ie.push(t):(N(),A((0,_.jsxs)(`div`,{className:`diff-row hunk`,children:[(0,_.jsx)(l0,{item:t,onExpand:u}),(0,_.jsx)(`div`,{className:`code hunk-text`,children:t.kind===`hunk`?z1(t.hunk):``})]},t.key)));N();let P=te;if(te.length>i0){let e=[];for(let t=0;t<te.length;t+=a0){let n=Math.min(t+a0,te.length);e.push((0,_.jsx)(s0,{rows:n-t,pinned:ne.slice(t,n).some(Boolean),children:te.slice(t,n)},t))}P=e}return(0,_.jsxs)(`div`,{ref:m,className:`diff-rows ${t}`,tabIndex:0,role:`group`,"aria-label":l,onClick:e=>{let t=e.target.closest(`.num[data-line]`),n=t?.dataset.side;t?.dataset.line&&(n===`L`||n===`R`)&&d(n,Number(t.dataset.line))},onMouseDown:e=>{let t=e.target.closest(`.code`);e.currentTarget.dataset.selecting=t?.classList.contains(`side-left`)?`left`:t?.classList.contains(`side-right`)?`right`:``},onMouseOver:e=>{let t=g.current;if(!t||y||t.contains(e.target))return;let n=p0(e.target);if(!n||!m.current)return;v.current={side:n.side,line:n.line};let r=m.current.getBoundingClientRect(),i=n.cell.getBoundingClientRect();t.style.top=`${i.top-r.top}px`,t.style.left=`${i.left-r.left}px`,t.hidden=!1,t.setAttribute(`aria-label`,`Add a comment on line ${n.side}${n.line}`)},onMouseLeave:()=>{g.current&&!y&&(g.current.hidden=!0)},onKeyDown:e=>{if(e.target!==e.currentTarget||e.metaKey||e.ctrlKey||e.altKey)return;let n=H1(e),r=n===`ArrowDown`||n===`j`?1:n===`ArrowUp`||n===`k`?-1:0,i=t!==`split`||e.shiftKey?void 0:n===`ArrowLeft`?`L`:n===`ArrowRight`?`R`:void 0;if(r!==0||i&&x&&x.side!==i){let n=Array.from(e.currentTarget.querySelectorAll(`.code[data-line]`));if(n.length===0)return;e.preventDefault();let a=x?n.findIndex(e=>e.dataset.side===x.side&&Number(e.dataset.line)===x.to):-1,o;if(a<0){let e=n.findIndex(e=>e.getBoundingClientRect().bottom>0);o=n[Math.max(0,e)]}else if(i){let e=n[a],t=e=>e?.dataset.side===i;o=[n[a-1],n[a+1]].find(n=>t(n)&&n?.parentElement===e.parentElement)??n.slice(a+1).find(t)??n.slice(0,a).reverse().find(t)}else{let i=a+r;if((t===`split`||e.shiftKey)&&x)for(;n[i]&&n[i]?.dataset.side!==x.side;)i+=r;o=n[i]}if(!o)return;let s=o.dataset.side,c=Number(o.dataset.line);S(e.shiftKey&&x&&x.side===s?{...x,to:c}:{side:s,from:c,to:c}),o.scrollIntoView({block:`nearest`})}else x&&(n===`c`&&p?(e.preventDefault(),p(C(x))):n===`Enter`?(e.preventDefault(),d(x.side,x.to)):n===`Escape`&&S(void 0))},children:[P,p&&(0,_.jsx)(`button`,{ref:g,type:`button`,hidden:!0,className:`add-comment`,title:`Add a comment. Drag to select several lines.`,onMouseDown:e=>{v.current&&e.button===0&&(e.preventDefault(),b({side:v.current.side,from:v.current.line,to:v.current.line}))},children:(0,_.jsx)(oa,{size:16})})]})}var h0=(0,f.lazy)(()=>h1(()=>import(`./FileEditor-D0CxgoTP.js`),[])),g0=2e3,_0=`:worktree`;function v0(e){let[t,n]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let r=e.current;if(!r||t)return;let i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&n(!0)},{rootMargin:`1200px 0px`});return i.observe(r),()=>i.disconnect()},[e,t]),t}function y0(e){let[t,n]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let t=e.current;if(!t)return;let r=new IntersectionObserver(e=>n(e.some(e=>e.isIntersecting)),{rootMargin:`3000px 0px`});return r.observe(t),()=>r.disconnect()},[e]),t}function b0(e,t,n){let r=(0,f.useMemo)(()=>e?.text===void 0?void 0:It(e.text),[e]),i=v1(t),a=tt({queryKey:[`tokens`,e?.oid,i],queryFn:()=>s1(i,r),enabled:n&&i!==void 0&&r!==void 0&&c1(r,e?.text?.length??0),staleTime:1/0,retry:!1});return(0,f.useMemo)(()=>r?{lines:r,tokens:a.data}:void 0,[r,a.data])}function x0({children:e}){return(0,_.jsx)(`div`,{className:`diff-message`,children:e})}function S0({path:e}){let[t,n]=(0,f.useState)(!1);return(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":t?`Copied`:`Copy file path`,title:`Copy file path`,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1500)})},children:t?(0,_.jsx)(tr,{size:16}):(0,_.jsx)(Tr,{size:16})})}var C0=e=>`${(e/1024/1024).toFixed(1)} MB`,w0={borderBottom:0,borderRadius:`var(--borderRadius-medium)`},T0=e=>e.side===`file`?`file`:`${e.side}${e.startLine}-${e.endLine}`,E0=(0,f.memo)(function({repoId:e,comparison:t,file:n,view:r,target:i,scrollToTarget:a,threads:o,scope:s,viewed:c=!1,onViewed:l,readOnly:u=!1,staging:d,onStage:p,onSelectLine:m,isSettling:h,listedAt:g}){let v=(0,f.useRef)(null),y=v0(v),b=y0(v),x=(0,f.useRef)(null),S=(0,f.useRef)(void 0),C=a&&i?.line!==void 0,w=C?`${i?.side??``}${i?.line??``}`:void 0,[T,E]=(0,f.useState)(C),[D,O]=(0,f.useState)(c&&!C);(0,f.useEffect)(()=>{if(!(c&&T)){if(c){let e=v.current,t=document.activeElement,n=e?.querySelector(`.file-header`);e&&n&&t&&e.contains(t)&&!n.contains(t)&&n.querySelector(`button`)?.focus({preventScroll:!0})}O(c)}},[c]);let[ee,k]=(0,f.useState)(!1),[te,ne]=(0,f.useState)({}),[A,j]=(0,f.useState)([]),[M,re]=(0,f.useState)(!1),[ie,N]=(0,f.useState)(void 0),[P,ae]=(0,f.useState)(!1),[oe,se]=(0,f.useState)(!1),[ce,le]=(0,f.useState)(void 0),ue=j_(),de=Z_(e),fe=to(),pe=n.kind===`text`,F=Dn(n.path)===void 0?pe&&On(n.path)?`markdown`:void 0:`image`,I=F!==void 0&&(oe||n.kind===`binary`),me=n.additions+n.deletions>g0,he=(y||i!==void 0||M)&&!D&&pe&&(!me||ee||M),{diffFrom:ge,diffTo:_e,ignoreWhitespace:ve}=t,L=n.status!==`deleted`,ye=L&&!n.newOid&&_e===_0,be=`${n.oldOid??``}..${_e===_0?_0:n.newOid??``}`,[xe,Se]=(0,f.useState)({versions:be,ignoreWhitespace:ve});(xe.versions!==be||xe.ignoreWhitespace!==ve)&&(Se({versions:be,ignoreWhitespace:ve}),ne({}),xe.versions!==be&&(k(C),se(!1),ae(!1),le(void 0),O(c&&!T)));let Ce=tt({queryKey:[`diff`,e,ge,_e,n.path,n.oldPath,ve],queryFn:()=>z.diff(e,ge,_e,n.path,n.oldPath,ve),enabled:he&&!n.untracked}),we=tt({queryKey:[`blob`,e,n.oldOid],queryFn:()=>z.blob(e,n.oldOid),enabled:he&&n.oldOid!==void 0,staleTime:1/0}),Te=tt({queryKey:[`blob`,e,n.newOid],queryFn:()=>z.blob(e,n.newOid),enabled:he&&L&&n.newOid!==void 0,staleTime:1/0}),Ee=tt({queryKey:[`worktree-file`,e,n.path],queryFn:()=>z.worktreeFile(e,n.path),enabled:he&&(ye||M&&L)}),De=ye?Ee:Te,Oe=n.oldOid!==void 0&&we.isPending,ke=L&&(n.newOid!==void 0||ye)&&De.isPending,Ae=he&&(!n.untracked&&Ce.isPending||Oe||ke),je=Ce.error??we.error??De.error,Me=he&&!Ae&&!je,Ne=(0,f.useMemo)(()=>Me?{diff:Ce.data,oldBlob:we.data,newBlob:De.data}:void 0,[Me,Ce.data,we.data,De.data]),Pe=(0,f.useRef)(void 0);Ne&&(Pe.current=Ne);let Fe=Ne??(je?void 0:Pe.current),Ie=Fe!==void 0,Le=b0(Fe?.oldBlob,n.oldPath??n.path,he),Re=b0(Fe?.newBlob,n.path,he),ze=(0,f.useMemo)(()=>n.untracked?E1(Re?.lines.length??0):Fe?.diff?.hunks??[],[n.untracked,Re,Fe]),Be=(0,f.useMemo)(()=>({lines:[]}),[]),Ve=Le??Be,He=Re??Be,Ue=(0,f.useMemo)(()=>k1(ze,He.lines.length),[ze,He.lines.length]),We=(0,f.useMemo)(()=>F1(ze,Ue,te),[ze,Ue,te]),Ge=(0,f.useMemo)(()=>R1(ze.flatMap(e=>e.rows)),[ze]),Ke=(0,f.useCallback)((e,t,n)=>{ne(r=>M1(r,e,t,n))},[]),qe=(0,f.useCallback)((e,t)=>m(n.anchor,e,t),[m,n.anchor]),Je=M&&ie===void 0&&!Ee.isFetching?Ee.data:void 0;Je?.text!==void 0&&!Je.lossy&&!Oe&&N(Je),!M&&ie!==void 0&&N(void 0);let Ye=M&&ie!==void 0,Xe=M&&ie===void 0&&Ee.isError?Ee.error.message:Je?.lossy?`it is not UTF-8 text, and saving it from here would damage it`:void 0;(0,f.useEffect)(()=>{Xe!==void 0&&(re(!1),le(`Could not open the file for editing: ${Xe}`))},[Xe]);let Ze=(0,f.useMemo)(()=>P?[]:o.filter(e=>e.side!==`file`&&!e.outdated&&e.endLine!==void 0),[o,P]),Qe=(0,f.useMemo)(()=>P?[]:o.filter(e=>e.side===`file`||e.outdated),[o,P]),$e=e=>e===`L`?n.oldPath??n.path:n.path,et=e=>e.side===`file`?`${s}|${n.path}|file`:`${s}|${$e(e.side)}|${e.side}|${e.startLine}-${e.endLine}`,nt=(0,f.useMemo)(()=>A.filter(e=>e.side!==`file`),[A]),rt=A.find(e=>e.side===`file`),it=e=>Ie&&e.endLine>(e.side===`L`?Ve:He).lines.length,at=e=>{let t=T0(e);j(n=>n.some(e=>T0(e)===t)?n:[...n,e]);let n=et(e);[...v.current?.querySelectorAll(`form.comment-form`)??[]].find(e=>e.dataset.draft===n)?.querySelector(`textarea`)?.focus()},ot=e=>{let t=T0(e);j(e=>e.filter(e=>T0(e)!==t))},st=(0,f.useRef)(at);st.current=at;let ct=(0,f.useCallback)(e=>st.current(e),[]);(0,f.useEffect)(()=>{if(ze.length===0)return;let e=Ze.map(e=>({side:e.side,line:e.endLine}));for(let t of nt)e.push({side:t.side,line:t.endLine});i?.side&&i.line&&e.push({side:i.side,line:i.line}),e.length>0&&ne(t=>j1(t,Ue,e))},[Ze,nt,i,Ue,ze.length]);let lt=(e,t)=>h?.()?Promise.reject(Error(`The comparison is still loading. Send the comment again in a moment.`)):de.create({scope:s,from:ge,to:_e,path:$e(e.side),side:e.side,startLine:e.side===`file`?void 0:e.startLine,endLine:e.side===`file`?void 0:e.endLine,body:t}).then(n=>{ot(e),fe.startIfMentioned(n.id,t)}),ut=(t,n)=>{let{side:r,startLine:i,endLine:a}=t,o=r===`L`?Ve.lines:He.lines,s=i===a?`line ${r}${i}`:`lines ${r}${i} to ${r}${a}`;return(0,_.jsx)(X_,{repoId:e,draftKey:et(t),title:n?`Add a comment on ${s} (no longer in this file)`:`Add a comment on ${s}`,submitLabel:`Comment`,suggestionSeed:r===`R`&&!n?o.slice(i-1,a).join(`
60
+ `):void 0,onSubmit:e=>lt(t,e),onCancel:()=>ot(t)},`composer:${T0(t)}`)},dt=(0,f.useMemo)(()=>{let t=new Map,n=(e,n)=>t.set(e,[...t.get(e)??[],n]);for(let t of Ze)n(`${t.side}${t.endLine}`,(0,_.jsx)(t1,{repoId:e,thread:t,actions:de},t.id));for(let e of nt)it(e)||n(`${e.side}${e.endLine}`,ut(e,!1));return t},[Ze,nt,e,de,fe,s,Ie,Ve.lines,He.lines,n.path,n.oldPath,ge,_e,h]);(0,f.useEffect)(()=>{if(w===void 0)return;E(!0),O(!1),k(!0),se(!1);let e=()=>E(!1);return window.addEventListener(`keydown`,e,!0),window.addEventListener(`pointerdown`,e,!0),()=>{window.removeEventListener(`keydown`,e,!0),window.removeEventListener(`pointerdown`,e,!0),e()}},[w]);let ft=(0,f.useRef)(void 0),R=pe&&!je&&!Ie;(0,f.useEffect)(()=>{if(!i||!a)return;let e=`${i.side??``}${i.line??``}`;if(ft.current===e)return;let t=null;if(i.side&&i.line){t=document.getElementById(`diff-${n.anchor}${i.side}${i.line}`);let e=ze.length>0&&A1(Ue,i.side,i.line)!==void 0;if(!t&&(R||e))return}ft.current=e,(t??v.current)?.scrollIntoView({block:t?`center`:`start`})},[i,a,R,We,Ue,ze.length,n.anchor]),(0,f.useLayoutEffect)(()=>{x.current&&(S.current=x.current.offsetHeight)});let pt=M||A.length>0||i!==void 0||(v.current?.contains(document.activeElement)??!1),gt=!b&&!pt&&S.current!==void 0,_t=[Fe?.oldBlob,Fe?.newBlob].find(e=>e?.tooLarge),vt=R_(n),yt=Math.min(n.additions+n.deletions+6,60)*20,bt=Fe?.newBlob?.lossy===!0,xt=L&&_e===_0,St=ue.canEdit&&pe&&xt&&!u&&!bt,Ct=Ue.some((e,t)=>e.length>(te[t]?.top??0)+(te[t]?.bottom??0)),wt=Ie&&!D&&!M&&!gt&&ze.length>0&&Ct,Tt=()=>ne(Object.fromEntries(Ue.map((e,t)=>[t,{top:e.length,bottom:0}]))),Et=()=>{window.confirm(`Delete ${n.path} from your working tree?\n\nIts content is kept, and "Undo" in the list of changes at the top of the page brings it back.`)&&(le(void 0),(async()=>{let t=Ee.data??await z.worktreeFile(e,n.path);await ue.remove(n.path,t.oid)})().catch(e=>le(e instanceof Error?e.message:`Could not delete the file`)))},Dt=()=>{le(void 0),O(!1),re(!0)},Ot=[...wt?[{label:`Show the whole file`,run:Tt}]:[],...o.length>0?[{label:P?`Show comments`:`Hide comments`,run:()=>ae(e=>!e)}]:[],...St&&!M?[{label:`Edit file`,run:Dt},{label:`Delete file…`,danger:!0,run:Et}]:[]],kt=F===`image`&&n.oldOid?mt(e,n.oldOid,n.oldPath??n.path):void 0,At=F!==`image`||!L?void 0:n.newOid?mt(e,n.newOid,n.path):_e===_0?ht(e,n.path,g??0):void 0,jt,Mt=!1;I&&F===`image`&&!M?jt=(0,_.jsx)(T1,{before:kt,after:At}):n.kind===`binary`?jt=(0,_.jsx)(x0,{children:`Binary file not shown.`}):n.kind===`submodule`?jt=(0,_.jsxs)(x0,{children:[`Submodule `,n.oldOid?(0,_.jsx)(`code`,{children:n.oldOid.slice(0,7)}):`added`,n.oldOid&&n.newOid?` → `:` `,n.newOid?(0,_.jsx)(`code`,{children:n.newOid.slice(0,7)}):n.status===`deleted`?`removed`:`another commit in the working tree`]}):me&&!ee?jt=(0,_.jsxs)(x0,{children:[(0,_.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>k(!0),children:`Load diff`}),(0,_.jsx)(`span`,{children:`Large diffs are not rendered by default.`})]}):je?jt=(0,_.jsxs)(x0,{children:[(0,_.jsxs)(`span`,{children:[`Could not load this file: `,je.message]}),(0,_.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>void Promise.all([Ce.refetch(),we.refetch(),De.refetch()]),children:`Retry`})]}):Ie?_t?jt=(0,_.jsxs)(x0,{children:[`This file is too large to show (`,C0(_t.size),`).`]}):Fe.oldBlob?.binary||Fe.newBlob?.binary||Fe.diff?.binary?jt=(0,_.jsx)(x0,{children:`Binary file not shown.`}):ze.length===0?jt=(0,_.jsx)(x0,{children:vt?`File mode changed.`:n.status===`renamed`?`File renamed without changes.`:n.untracked||n.status===`added`?`Empty file.`:`No changes to show.`}):I&&F===`markdown`?jt=(0,_.jsx)(C1,{oldLines:Ve.lines,newLines:He.lines}):gt?jt=(0,_.jsx)(`div`,{className:`diff-placeholder`,style:{height:S.current}}):(Mt=!0,jt=(0,_.jsx)(`div`,{ref:x,children:(0,_.jsx)(m0,{items:We,view:r,anchor:n.anchor,old:Ve,next:He,pairs:Ge,target:i,inserts:dt,highlights:nt,label:`Diff of ${n.path}. Arrow keys move between lines, Shift with arrows selects several, C comments, Enter links to the line.`,onExpand:Ke,onSelectLine:qe,onComment:u?void 0:ct})})):jt=(0,_.jsx)(`div`,{className:`diff-placeholder`,style:{height:yt},"aria-busy":`true`});let Nt=Mt&&!Ye&&!D,Pt=nt.filter(e=>!Nt||it(e));return(0,_.jsxs)(`section`,{ref:v,className:`file-card`,id:`diff-${n.anchor}`,"aria-label":n.path,children:[(0,_.jsxs)(`header`,{className:`file-header`,style:D&&Ye?w0:void 0,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-expanded":!D,"aria-label":D?`Expand file`:`Collapse file`,onClick:()=>O(e=>!e),children:D?(0,_.jsx)(ur,{size:16}):(0,_.jsx)(sr,{size:16})}),pe&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`span`,{className:`file-header-count`,title:`${n.additions} additions, ${n.deletions} deletions`,children:n.additions+n.deletions}),(0,_.jsx)(L_,{additions:n.additions,deletions:n.deletions})]}),(0,_.jsx)(`a`,{className:`file-header-path`,href:`#diff-${n.anchor}`,children:(0,_.jsx)(z_,{file:n})}),(0,_.jsx)(S0,{path:n.path}),n.untracked&&(0,_.jsx)(`span`,{className:`label`,children:`Untracked`}),vt&&(0,_.jsx)(`span`,{className:`label`,children:vt}),n.status===`deleted`&&(0,_.jsx)(`span`,{className:`label`,children:`Deleted`}),M&&D&&(0,_.jsx)(`span`,{className:`label label-attention`,title:`The editor is still open in this file, with everything typed in it. Unfold the file to go on.`,children:`Editing`}),(0,_.jsxs)(`span`,{className:`file-header-end`,children:[o.length>0&&(0,_.jsx)(`span`,{className:`file-header-threads`,title:`${o.length} ${o.length===1?`conversation`:`conversations`}`,children:o.length}),F&&pe&&!M&&(0,_.jsxs)(`span`,{className:`segmented rich-toggle`,role:`group`,"aria-label":`How to show this file`,children:[(0,_.jsx)(`button`,{type:`button`,className:`segmented-button`,"aria-pressed":!oe,"aria-label":`Source diff`,title:`Show the source diff`,onClick:()=>se(!1),children:(0,_.jsx)(pr,{size:16})}),(0,_.jsx)(`button`,{type:`button`,className:`segmented-button`,"aria-pressed":oe,"aria-label":`Rich diff`,title:F===`markdown`?`Show the rendered document with changes marked`:`Show the two pictures`,onClick:()=>{O(!1),se(!0)},children:(0,_.jsx)(Ur,{size:16})})]}),p&&d&&(0,_.jsxs)(`label`,{className:`viewed-toggle stage-toggle`,title:d===`partial`?`Part of this file's changes is staged. Check to stage the rest.`:`Stage this file for the next commit`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:d===`staged`,ref:e=>{e&&(e.indeterminate=d===`partial`)},onChange:()=>p(n,d!==`staged`)}),`Staged`]}),l&&(0,_.jsxs)(`label`,{className:`viewed-toggle`,title:`Mark this file as viewed. The mark is dropped when the file changes.`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>l(n.path,e.target.checked)}),`Viewed`]}),pe&&L&&!u&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Edit file`,"aria-pressed":M,disabled:!St||M,title:St?`Edit this file in place`:bt?`This file is not UTF-8 text: editing it here would damage it`:ue.canEdit?`This file cannot be edited here`:`Compare with the working tree to edit files in place`,onClick:Dt,children:(0,_.jsx)(ta,{size:16})}),!u&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Comment on this file`,title:`Comment on this file`,onClick:()=>{O(!1),at({side:`file`})},children:(0,_.jsx)(yr,{size:16})}),Ot.length>0&&(0,_.jsx)(n1,{items:Ot})]})]}),ce&&(0,_.jsx)(`div`,{className:`flash flash-danger file-editor-flash`,role:`alert`,children:ce}),!D&&(rt||Pt.length>0||Qe.length>0)&&(0,_.jsxs)(`div`,{className:`card-threads`,children:[rt&&(0,_.jsx)(X_,{repoId:e,draftKey:et(rt),title:`Add a comment on this file`,submitLabel:`Comment`,onSubmit:e=>lt(rt,e),onCancel:()=>ot(rt)},`composer:file`),Pt.map(e=>ut(e,it(e))),Qe.map(t=>(0,_.jsx)(t1,{repoId:e,thread:t,actions:de},t.id))]}),Ye&&(0,_.jsx)(`div`,{hidden:D,children:(0,_.jsx)(f.Suspense,{fallback:(0,_.jsx)(`div`,{className:`diff-placeholder`,style:{height:yt},"aria-busy":`true`}),children:(0,_.jsx)(h0,{file:n,old:Ve,initial:ie,view:r,onClose:()=>re(!1)})})}),!D&&!Ye&&jt]})});function D0({status:e,onStage:t,onUnstage:n,onCommit:r}){let[i,a]=(0,f.useState)(``),[o,s]=(0,f.useState)(!1),[c,l]=(0,f.useState)(void 0),[u,d]=(0,f.useState)(void 0),p=e.files.length,m=e=>{s(!0),l(void 0),e().catch(e=>l(e instanceof Error?e.message:`git refused`)).finally(()=>s(!1))},h=()=>{e.staged===0||i.trim()===``||o||m(()=>r(i).then(e=>{d(e),a(``)}))};return p===0&&!u?null:(0,_.jsxs)(`section`,{className:`commit-panel`,"aria-label":`Commit`,children:[(0,_.jsxs)(`div`,{className:`commit-panel-head`,children:[(0,_.jsx)(pi,{size:16,className:`range-icon`}),(0,_.jsxs)(`span`,{children:[(0,_.jsxs)(`strong`,{children:[e.staged,` of `,p]}),` `,`changed `,p===1?`file`:`files`,` staged for a commit to `,e.branch?(0,_.jsx)(`code`,{children:e.branch}):`a detached HEAD`]}),(0,_.jsxs)(`span`,{className:`commit-panel-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:o||e.staged===p,onClick:()=>m(()=>t()),children:`Stage all`}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:o||e.staged===0,onClick:()=>m(()=>n()),children:`Unstage all`})]})]}),(0,_.jsxs)(`div`,{className:`commit-panel-form`,children:[(0,_.jsx)(`textarea`,{className:`commit-message`,"aria-label":`Commit message`,placeholder:`Commit message: a short summary, then details after an empty line`,rows:i.includes(`
61
+ `)?4:1,value:i,disabled:o,onChange:e=>{a(e.target.value),d(void 0)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&h()}}),(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:o||e.staged===0||i.trim()===``,title:e.staged===0?`Stage the files this commit should contain`:`Runs git commit with your hooks and signing settings`,onClick:h,children:o?`Working…`:`Commit`})]}),u&&(0,_.jsxs)(`p`,{className:`commit-done`,role:`status`,children:[(0,_.jsx)(tr,{size:16,className:`tone-success`}),` Committed `,(0,_.jsx)(`code`,{children:u.oid.slice(0,7)}),` `,u.subject]}),c&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`git did not do that`}),(0,_.jsx)(`pre`,{className:`commit-error`,children:c})]})]})}function O0(e){let t={name:``,path:``,directories:[],files:[]},n=new Map([[``,t]]);for(let r of e){let e=r.path.split(`/`),i=t;for(let t=0;t<e.length-1;t+=1){let r=e.slice(0,t+1).join(`/`),a=n.get(r);a||(a={name:e[t],path:r,directories:[],files:[]},n.set(r,a),i.directories.push(a)),i=a}i.files.push(r)}let r=e=>{let n=e;for(;n!==t&&n.files.length===0&&n.directories.length===1;){let e=n.directories[0];n={...e,name:`${n.name}/${e.name}`}}return{...n,directories:n.directories.map(r)}};return r(t)}var k0=e=>e.slice(e.lastIndexOf(`/`)+1),A0=(0,f.memo)(function({files:e,viewed:t,threadCounts:n,activeAnchor:r}){let[i,a]=(0,f.useState)(``),[o,s]=(0,f.useState)(new Set),c=i.trim().toLowerCase(),l=(0,f.useMemo)(()=>c===``?e:e.filter(e=>e.path.toLowerCase().includes(c)),[e,c]),u=(0,f.useMemo)(()=>O0(l),[l]),d=e=>s(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n}),p=(e,i)=>{let{Icon:a,tone:o,label:s}=B_(e),c=n.get(e.path)??0,l=t.has(e.path);return(0,_.jsx)(`li`,{children:(0,_.jsxs)(`a`,{className:`tree-row tree-file${l?` viewed`:``}`,href:`#diff-${e.anchor}`,"aria-current":e.anchor===r?`location`:void 0,style:{paddingLeft:i*12+8},title:e.oldPath?`${e.oldPath} → ${e.path}`:e.path,children:[(0,_.jsx)(`span`,{className:`tree-icon tone-${o}`,children:(0,_.jsx)(a,{size:16,"aria-label":s})}),(0,_.jsx)(`span`,{className:`tree-name`,children:k0(e.path)}),c>0&&(0,_.jsx)(`span`,{className:`tree-count`,title:`${c} ${c===1?`conversation`:`conversations`}`,children:c}),l&&(0,_.jsx)(tr,{size:12,className:`tree-viewed`,"aria-label":`Viewed`})]})},e.path)},m=(e,t)=>{let n=c!==``||!o.has(e.path);return(0,_.jsxs)(`li`,{children:[(0,_.jsxs)(`button`,{type:`button`,className:`tree-row tree-directory`,"aria-expanded":n,style:{paddingLeft:t*12+8},onClick:()=>d(e.path),children:[n?(0,_.jsx)(sr,{size:12}):(0,_.jsx)(ur,{size:12}),(0,_.jsx)(`span`,{className:`tree-icon tree-folder`,children:n?(0,_.jsx)(ti,{size:16}):(0,_.jsx)(Qr,{size:16})}),(0,_.jsx)(`span`,{className:`tree-name`,children:e.name})]}),n&&(0,_.jsxs)(`ul`,{children:[e.directories.map(e=>m(e,t+1)),e.files.map(e=>p(e,t+1))]})]},e.path)};return(0,_.jsxs)(`nav`,{className:`file-tree`,"aria-label":`File tree`,children:[(0,_.jsxs)(`label`,{className:`tree-filter`,children:[(0,_.jsx)(va,{size:16}),(0,_.jsx)(`input`,{type:`search`,placeholder:`Filter changed files`,"aria-label":`Filter changed files`,value:i,onChange:e=>a(e.target.value)})]}),l.length===0?(0,_.jsx)(`p`,{className:`tree-empty`,children:`No files match.`}):(0,_.jsxs)(`ul`,{className:`tree-root`,children:[u.directories.map(e=>m(e,0)),u.files.map(e=>p(e,0))]})]})});function j0({repoId:e,spec:t,onClose:n,onOpen:r}){let i=tt({queryKey:[`pull-proposal`,e,t],queryFn:()=>z.pullProposal(e,t),retry:!1,staleTime:0,gcTime:0}),[a,o]=(0,f.useState)(void 0),[s,c]=(0,f.useState)(void 0),[l,u]=(0,f.useState)(!1),[d,p]=(0,f.useState)(!1),[m,h]=(0,f.useState)(void 0),[g,v]=(0,f.useState)(!1),y=(0,f.useRef)(null);qa(y);let b=i.data,x=a??b?.title??``,S=s??b?.body??``,C=x!==(b?.title??``)||S!==(b?.body??``);(0,f.useEffect)(()=>{let e=e=>{e.key!==`Escape`||e.isComposing||d||C||n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n,d,C]);let w=b!==void 0&&!b.blockedBy&&!b.existing;return(0,_.jsx)(`div`,{className:`modal-backdrop`,children:(0,_.jsxs)(`div`,{ref:y,className:`dialog modal create-pull-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`create-pull-title`,children:[(0,_.jsx)(`h2`,{id:`create-pull-title`,className:`dialog-title`,children:`Open a pull request`}),i.isPending&&(0,_.jsx)(`p`,{className:`loading`,children:`Asking the remote and GitHub…`}),i.isError&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:i.error.message}),b&&(b.base||b.head)&&(0,_.jsxs)(`p`,{className:`create-pull-branches`,children:[(0,_.jsx)(Si,{size:16,className:`range-icon`}),` `,(0,_.jsx)(`code`,{children:b.head}),` into `,(0,_.jsx)(`code`,{children:b.base}),b.repository&&(0,_.jsxs)(_.Fragment,{children:[` `,`on `,(0,_.jsx)(`strong`,{children:b.repository})]})]}),b?.existing&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`flash flash-attention`,role:`status`,children:[`Pull request #`,b.existing.number,` is already open for these branches.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsxs)(`button`,{type:`button`,className:`button button-primary`,autoFocus:!0,onClick:()=>r(b.existing.number),children:[`Open pull request #`,b.existing.number]}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:n,children:`Close`})]})]}),b?.blockedBy&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`flash flash-attention`,role:`status`,children:[(0,_.jsx)(`strong`,{children:`A pull request cannot be opened yet`}),(0,_.jsx)(`span`,{children:b.blockedBy})]}),b.hint&&(0,_.jsxs)(`div`,{className:`share-row create-pull-hint`,children:[(0,_.jsx)(`input`,{className:`text-input`,readOnly:!0,value:b.hint,"aria-label":`Command to run`,onFocus:e=>e.target.select()}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Copy command`,onClick:()=>void navigator.clipboard.writeText(b.hint??``).then(()=>{v(!0),window.setTimeout(()=>v(!1),1500)}),children:(0,_.jsx)(Tr,{size:16})}),g&&(0,_.jsx)(`span`,{role:`status`,children:`Copied`})]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>void i.refetch(),disabled:i.isFetching,children:i.isFetching?`Checking…`:`Check again`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:n,children:`Close`})]})]}),w&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`label`,{className:`create-pull-field`,children:[(0,_.jsx)(`span`,{children:`Title`}),(0,_.jsx)(`input`,{className:`text-input`,value:x,autoFocus:!0,disabled:d,onChange:e=>o(e.target.value)})]}),(0,_.jsxs)(`label`,{className:`create-pull-field`,children:[(0,_.jsx)(`span`,{children:`Description`}),(0,_.jsx)(`textarea`,{className:`review-summary`,value:S,disabled:d,placeholder:`What does this change, and why? Markdown is supported.`,onChange:e=>c(e.target.value)})]}),(0,_.jsxs)(`label`,{className:`checkbox create-pull-draft`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:l,disabled:d,onChange:e=>u(e.target.checked)}),`Open as a draft: not ready for review yet`]}),m&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Not created`}),(0,_.jsx)(`span`,{children:m})]}),(0,_.jsxs)(`p`,{className:`dialog-note`,children:[`This opens a pull request on GitHub`,b?.viewer?(0,_.jsxs)(_.Fragment,{children:[` `,`as `,(0,_.jsx)(`strong`,{children:b.viewer})]}):null,`, where everyone with access to the repository sees it and may be notified. It can be closed on GitHub, not taken back from here.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:d||x.trim()===``,onClick:()=>{p(!0),h(void 0),z.createPull(e,{spec:t,title:x,body:S,draft:l}).then(e=>r(e.number)).catch(e=>{p(!1),h(e instanceof Error?e.message:`Could not create the pull request`)})},children:d?`Creating…`:l?`Create draft pull request`:`Create pull request`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:d,onClick:n,children:`Cancel`})]})]})]})})}var M0={open:{label:`Open`,tone:`open`,icon:Si,verb:`wants to merge`},closed:{label:`Closed`,tone:`closed`,icon:Ti,verb:`wanted to merge`},merged:{label:`Merged`,tone:`merged`,icon:yi,verb:`merged`},unknown:{label:`Pull request`,tone:`unknown`,icon:Si,verb:`wants to merge`}},N0=new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`});function P0(e){let t=Math.round((new Date(e).getTime()-Date.now())/1e3);return Math.abs(t)<60?`just now`:Math.abs(t)<3600?N0.format(Math.round(t/60),`minute`):Math.abs(t)<86400?N0.format(Math.round(t/3600),`hour`):N0.format(Math.round(t/86400),`day`)}function F0({pull:e,commits:t,refreshing:n,refreshError:r,onRefresh:i,action:a}){let o=e.draft&&e.state===`open`,s=M0[e.state],c=o?Oi:s.icon,l=t===void 0?``:` ${t.toLocaleString(`en-US`)} ${t===1?`commit`:`commits`}`;return(0,_.jsxs)(`div`,{className:`pull-header`,children:[(0,_.jsxs)(`h1`,{className:`page-title`,children:[e.title,` `,(0,_.jsxs)(`span`,{className:`pull-number`,children:[`#`,e.number]})]}),(0,_.jsxs)(`div`,{className:`pull-meta`,children:[(0,_.jsxs)(`span`,{className:`state-badge state-${o?`draft`:s.tone}`,children:[(0,_.jsx)(c,{size:16}),` `,o?`Draft`:s.label]}),(0,_.jsxs)(`span`,{className:`pull-merge-line`,children:[e.author?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`strong`,{children:e.author}),` `,s.verb]}):`To merge`,l,` into `,(0,_.jsx)(`code`,{children:e.baseRef}),e.headRef&&(0,_.jsxs)(_.Fragment,{children:[` `,`from `,(0,_.jsx)(`code`,{children:e.headRef})]})]}),(0,_.jsxs)(`span`,{className:`pull-meta-end`,children:[e.url&&(0,_.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer noopener`,children:[`View on GitHub `,(0,_.jsx)(Ui,{size:12})]}),(0,_.jsxs)(`span`,{className:`pull-imported`,title:new Date(e.importedAt).toLocaleString(`en-US`),children:[`Imported `,P0(e.importedAt)]}),(0,_.jsxs)(`button`,{type:`button`,className:`button button-small`,disabled:n,onClick:i,title:`Fetch the pull request and its conversations again`,children:[(0,_.jsx)(Aa,{size:16}),` `,n?`Refreshing…`:`Refresh`]}),a]})]}),e.notice&&(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`status`,children:e.notice}),r&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Could not refresh`}),(0,_.jsx)(`span`,{children:r})]}),e.body.trim()!==``&&(0,_.jsxs)(`details`,{className:`pull-body`,children:[(0,_.jsx)(`summary`,{children:`Description`}),(0,_.jsx)(Lg,{text:e.body})]})]})}var I0=[{value:`comment`,label:`Comment`,note:`General feedback without explicit approval.`},{value:`approve`,label:`Approve`,note:`Feedback, and approval to merge these changes.`},{value:`request_changes`,label:`Request changes`,note:`Feedback that must be addressed before merging.`}];function L0(e){if(e.placement===`reply`)return`Reply in the conversation on ${e.path}`;if(e.placement===`summary`)return`In the review summary: ${e.path} is not part of this pull request`;if(e.placement===`file`)return`${e.path}, on the file`;let t=e.startLine===e.endLine?`line ${e.side}${e.endLine}`:`lines ${e.side}${e.startLine}–${e.side}${e.endLine}`;return`${e.path}, ${t}`}function R0({repoId:e,pull:t,onClose:n}){let[r,i]=(0,f.useState)(``),[a,o]=(0,f.useState)(`comment`),[s,c]=(0,f.useState)(void 0),[l,u]=(0,f.useState)(!1),[d,p]=(0,f.useState)(void 0),[m,h]=(0,f.useState)(void 0),g=tt({queryKey:[`review-draft`,e,t.number,s],queryFn:()=>z.draftReview(e,t.number,s),placeholderData:pe,enabled:m===void 0}),v=(0,f.useRef)(null);qa(v);let y=r.trim()!==``&&m===void 0;(0,f.useEffect)(()=>{let e=e=>{e.key!==`Escape`||e.isComposing||l||y||n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n,l,y]);let b=g.data?.items??[],x=e=>s?s.includes(e.commentId):e.selected,S=b.filter(x).map(e=>e.commentId),C=e=>c(S.includes(e)?S.filter(t=>t!==e):[...S,e]),w=g.data?.blockedBy,T=g.data?.ownPull===!0,E=S.length===0&&r.trim()===``&&a===`comment`&&d===void 0;return(0,_.jsx)(`div`,{className:`modal-backdrop`,children:(0,_.jsxs)(`div`,{ref:v,className:`dialog modal review-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`review-dialog-title`,children:[(0,_.jsxs)(`h2`,{id:`review-dialog-title`,className:`dialog-title`,children:[`Review pull request #`,t.number]}),m?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`p`,{className:`review-done`,role:`status`,children:[(0,_.jsx)(ir,{size:16,className:`tone-success`}),` Published to GitHub`,m.comments>0?` with ${m.comments} ${m.comments===1?`comment`:`comments`}`:``,`.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[m.url&&(0,_.jsxs)(`a`,{className:`button`,href:m.url,target:`_blank`,rel:`noreferrer noopener`,children:[`View the review on GitHub `,(0,_.jsx)(Ui,{size:12})]}),(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,autoFocus:!0,onClick:n,children:`Done`})]})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`textarea`,{className:`review-summary`,"aria-label":`Review summary`,placeholder:`Leave a summary (optional)`,value:r,autoFocus:!0,disabled:l,onChange:e=>i(e.target.value)}),(0,_.jsxs)(`fieldset`,{className:`review-verdicts`,disabled:l,children:[(0,_.jsx)(`legend`,{className:`sr-only`,children:`Verdict`}),I0.map(e=>(0,_.jsxs)(`label`,{className:`review-verdict`,children:[(0,_.jsx)(`input`,{type:`radio`,name:`review-verdict`,value:e.value,checked:a===e.value,disabled:T&&e.value!==`comment`,onChange:()=>o(e.value)}),(0,_.jsxs)(`span`,{children:[(0,_.jsx)(`strong`,{children:e.label}),(0,_.jsx)(`span`,{className:`review-verdict-note`,children:e.note})]})]},e.value)),T&&(0,_.jsx)(`p`,{className:`dialog-note`,children:`This is your own pull request: GitHub accepts only a comment on it.`})]}),(0,_.jsx)(`h3`,{className:`review-items-title`,children:b.length===0?`No unpublished comments`:`Comments to publish: ${S.length} of ${b.length}`}),g.isPending&&(0,_.jsx)(`p`,{className:`loading`,children:`Loading…`}),g.isError&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:g.error.message}),b.length===0&&g.data&&(0,_.jsx)(`p`,{className:`dialog-note`,children:`Comments you write on this pull request wait here until you publish them. A summary or a verdict can be published on its own.`}),(0,_.jsx)(`ul`,{className:`review-items`,children:b.map(e=>(0,_.jsxs)(`li`,{className:`review-item${x(e)?``:` excluded`}`,children:[(0,_.jsxs)(`label`,{className:`review-item-head`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:x(e),disabled:l,onChange:()=>C(e.commentId)}),(0,_.jsx)(`span`,{className:`review-item-where`,children:L0(e)}),e.authorKind===`agent`&&(0,_.jsx)(`span`,{className:`label`,children:`Agent`}),e.displaced&&(0,_.jsx)(`span`,{className:`label label-attention`,children:`Not on its line`})]}),(0,_.jsx)(`div`,{className:`review-item-body`,children:(0,_.jsx)(Lg,{text:e.body})})]},e.commentId))}),w&&(0,_.jsxs)(`div`,{className:`flash flash-attention`,role:`status`,children:[(0,_.jsx)(`strong`,{children:`Publishing is not available`}),(0,_.jsx)(`span`,{children:w})]}),d&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Not published`}),(0,_.jsx)(`span`,{children:d})]}),(0,_.jsxs)(`p`,{className:`dialog-note`,children:[`Publishing posts this to GitHub`,t.viewer?(0,_.jsxs)(_.Fragment,{children:[` `,`as `,(0,_.jsx)(`strong`,{children:t.viewer})]}):null,`, where everyone with access to the pull request can read it. It cannot be taken back from here. Each comment ends with an invisible marker, so publishing again never posts it twice.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:l||w!==void 0||E||g.isFetching,onClick:()=>{u(!0),p(void 0),z.publishReview(e,t.number,{body:r,verdict:a,commentIds:S}).then(h).catch(e=>p(e instanceof Error?e.message:`Could not publish the review`)).finally(()=>u(!1))},children:l?`Publishing…`:`Publish to GitHub`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:l,onClick:n,children:`Cancel`})]})]})]})})}var z0=100,B0=[{key:_t,value:_t,text:`Working tree`,note:`uncommitted`},{key:vt,value:vt,text:`Staged`,note:`index`}];function V0(e){return{key:`${e.kind}:${e.name}`,value:e.name,text:e.name,note:e.isDefault?`default`:void 0}}var H0=e=>/^(?:HEAD|[A-Z_]+_HEAD)$/.test(e)||/[~^@]/.test(e)||/^[0-9a-f]{7,64}$/i.test(e),U0=(e,t)=>t===``||e.toLowerCase()===t?0:e.toLowerCase().startsWith(t)?1:2;function W0({role:e,label:t,title:n,selected:r,refs:i,commits:a,offerLocalChanges:o,onSelect:s}){let[c,l]=(0,f.useState)(!1),[u,d]=(0,f.useState)(``),[p,m]=(0,f.useState)(`branches`),[h,g]=(0,f.useState)(0),v=(0,f.useRef)(null),y=(0,f.useRef)(null),b=(0,f.useId)(),{options:x,hidden:S}=(0,f.useMemo)(()=>{let e=u.trim().toLowerCase(),t=t=>e===``||t.toLowerCase().includes(e);if(p===`commits`){let n=(a??[]).filter(n=>t(n.subject)||n.oid.startsWith(e)),r=n.slice(0,z0).map(e=>({key:e.oid,value:e.oid,text:e.subject||`(no message)`,note:`${e.oid.slice(0,7)} · ${e.authorDate.slice(0,10)}`})),i=u.trim();return i!==``&&H0(i)&&!n.some(e=>e.oid.startsWith(i.toLowerCase()))&&r.push({key:`typed`,value:i,text:i,note:`use this revision`}),{options:r,hidden:Math.max(0,n.length-z0)}}let n=(p===`branches`?i?.branches??[]:i?.tags??[]).filter(e=>t(e.name)).map((t,n)=>({ref:t,index:n,rank:U0(t.name,e)})).sort((e,t)=>e.rank-t.rank||e.index-t.index).map(e=>e.ref),r=[];o&&p===`branches`&&r.push(...B0.filter(e=>t(e.text))),r.push(...n.slice(0,z0).map(V0));let s=u.trim();if(s!==``&&!n.some(e=>e.name===s)){let t=jt(s),i={key:`typed`,value:s,text:t===void 0?s:`Pull request #${t}`,note:t===void 0?`use this revision`:`fetch and open`},a=n.some(t=>t.name.toLowerCase().startsWith(e));t!==void 0||H0(s)&&!a?r.unshift(i):r.push(i)}return{options:r,hidden:Math.max(0,n.length-z0)}},[u,p,i,a,o]);(0,f.useEffect)(()=>g(0),[u,p]);let C=e=>`${b}-option-${e}`;(0,f.useEffect)(()=>{c&&document.getElementById(`${b}-option-${h}`)?.scrollIntoView({block:`nearest`})},[c,h,b]);let w=e=>{l(!1),d(``),e&&y.current?.focus()};(0,f.useEffect)(()=>{if(!c)return;let e=e=>{v.current?.contains(e.target)||w(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[c]);let T=e=>{e&&(w(!0),e.value!==r&&s(e.value))},E=e=>{e.key===`Escape`?(e.preventDefault(),w(!0)):e.key===`ArrowDown`?(e.preventDefault(),g(e=>Math.min(e+1,x.length-1))):e.key===`ArrowUp`?(e.preventDefault(),g(e=>Math.max(e-1,0))):e.key===`Enter`&&e.target instanceof HTMLInputElement&&(e.preventDefault(),T(x[h]))},D=e===`base`?`Choose a base ref`:`Choose a head ref`;return(0,_.jsxs)(`div`,{className:`picker`,ref:v,children:[(0,_.jsxs)(`button`,{ref:y,type:`button`,className:`ref-pill`,title:n,"aria-haspopup":`dialog`,"aria-expanded":c,onClick:()=>c?w(!1):l(!0),children:[(0,_.jsxs)(`span`,{className:`ref-pill-role`,children:[e,`:`]}),` `,(0,_.jsx)(`strong`,{children:t}),(0,_.jsx)(za,{size:16,className:`ref-pill-caret`})]}),c&&(0,_.jsxs)(`div`,{className:`picker-panel`,role:`dialog`,"aria-label":D,onKeyDown:E,children:[(0,_.jsxs)(`div`,{className:`picker-header`,children:[(0,_.jsx)(`span`,{children:D}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Close`,onClick:()=>w(!0),children:(0,_.jsx)(Ga,{size:16})})]}),(0,_.jsx)(`div`,{className:`picker-search`,children:(0,_.jsx)(`input`,{autoFocus:!0,type:`text`,className:`text-input`,placeholder:p===`branches`?`Find a branch or type a revision`:p===`tags`?`Find a tag`:`Find a commit by its message or id`,"aria-label":`Filter refs`,role:`combobox`,"aria-expanded":`true`,"aria-autocomplete":`list`,"aria-controls":b,"aria-activedescendant":x.length>0?C(h):void 0,value:u,onChange:e=>d(e.target.value)})}),(0,_.jsx)(`div`,{className:`picker-tabs`,role:`tablist`,children:[`branches`,`tags`,`commits`].map(e=>(0,_.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":p===e,className:`picker-tab`,onClick:()=>m(e),children:e===`branches`?`Branches`:e===`tags`?`Tags`:`Commits`},e))}),(0,_.jsxs)(`ul`,{className:`picker-list`,id:b,role:`listbox`,"aria-label":D,children:[x.map((e,t)=>(0,_.jsxs)(`li`,{id:C(t),role:`option`,"aria-selected":e.value===r||e.value===n,className:`picker-option${t===h?` active`:``}`,onMouseEnter:()=>g(t),onClick:()=>T(e),children:[(0,_.jsx)(`span`,{className:`picker-check`,children:(e.value===r||e.value===n)&&(0,_.jsx)(tr,{size:16})}),(0,_.jsx)(`span`,{className:`picker-option-text`,children:e.text}),e.note&&(0,_.jsx)(`span`,{className:`label`,children:e.note})]},e.key)),(p===`commits`?a===void 0:i===void 0)&&(0,_.jsx)(`li`,{className:`picker-empty`,children:`Loading…`}),(p===`commits`?a!==void 0:i!==void 0)&&x.length===0&&(0,_.jsx)(`li`,{className:`picker-empty`,children:`Nothing to show.`}),S>0&&(0,_.jsxs)(`li`,{className:`picker-empty`,children:[S.toLocaleString(`en-US`),` more. Keep typing to narrow the list.`]})]})]})]})}var G0=[],K0=(e,t)=>`${e.toLocaleString(`en-US`)} ${t}${e===1?``:`s`}`,q0=e=>/^[0-9a-f]{40}$|^[0-9a-f]{64}$/.test(e);function J0(e){return e.kind===`worktree`?_t:e.kind===`index`?vt:e.expr}function Y0(e){return e.kind===`worktree`?`Working tree`:e.kind===`index`?`Staged`:q0(e.expr)?e.expr.slice(0,7):e.expr.replace(/^refs\/agentic-diff\/(?:shared\/|pr\/(\d+)\/(head|base)$)/,(e,t,n)=>t?n===`base`?`base of pull request #${t}`:`pull request #${t}`:``)}function X0(e){return e===`:worktree`?{kind:`worktree`}:e===`:staged`?{kind:`index`}:{kind:`rev`,expr:e}}var Z0=e=>e?.kind===`rev`?e.oid:void 0;function Q0({status:e}){return e.state===`clean`?(0,_.jsxs)(`span`,{className:`merge-note`,children:[(0,_.jsx)(tr,{size:16,className:`tone-success`}),(0,_.jsx)(`strong`,{className:`tone-success`,children:`Able to merge.`}),` These branches can be automatically merged.`]}):e.state===`unrelated`?(0,_.jsxs)(`span`,{className:`merge-note`,children:[(0,_.jsx)(Ga,{size:16,className:`tone-danger`}),(0,_.jsx)(`strong`,{className:`tone-danger`,children:`Nothing in common.`}),` These histories share no commit, so they cannot be merged as they are.`]}):(0,_.jsxs)(`span`,{className:`merge-note`,title:e.files.join(`
62
+ `),children:[(0,_.jsx)(Ga,{size:16,className:`tone-danger`}),(0,_.jsx)(`strong`,{className:`tone-danger`,children:`Can’t automatically merge.`}),` `,K0(e.files.length,`file`),` would conflict.`]})}function $0({error:e,pull:t}){let n=e instanceof Error?e.message:`Something went wrong`,r=(e instanceof lt?e.code:void 0)===`rev_not_found`?`Revision not found`:t===void 0?`Cannot show this comparison`:`Cannot show pull request #${t}`;return(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:r}),(0,_.jsx)(`span`,{children:n})]})}function ev({view:e,onChange:t}){return(0,_.jsx)(`div`,{className:`segmented`,role:`group`,"aria-label":`Diff view`,children:[`split`,`unified`].map(n=>(0,_.jsx)(`button`,{type:`button`,className:`segmented-button`,"aria-pressed":e===n,onClick:()=>t(n),children:n===`split`?`Split`:`Unified`},n))})}function tv({label:e,text:t}){let[n,r]=(0,f.useState)(!1);return(0,_.jsxs)(`div`,{className:`share-row`,children:[(0,_.jsx)(`span`,{className:`share-label`,children:e}),(0,_.jsx)(`input`,{className:`text-input`,readOnly:!0,value:t,"aria-label":e,onFocus:e=>e.target.select()}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Copy ${e.toLowerCase()}`,onClick:()=>{navigator.clipboard.writeText(t).then(()=>{r(!0),window.setTimeout(()=>r(!1),1500)})},children:n?(0,_.jsx)(tr,{size:16}):(0,_.jsx)(Tr,{size:16})})]})}function nv({route:e,pull:t}){let[n,r]=(0,f.useState)(!1),i=tt({queryKey:[`share`,e.repoId,e.spec,e.view,e.ignoreWhitespace],queryFn:()=>z.share(e.repoId,e.spec,e.view,e.ignoreWhitespace),enabled:n&&e.pull===void 0});return e.pull===void 0?(0,_.jsxs)(`details`,{className:`share`,onToggle:e=>r(e.currentTarget.open),children:[(0,_.jsxs)(`summary`,{className:`button`,children:[(0,_.jsx)(Bi,{size:16}),` Copy link`]}),(0,_.jsxs)(`div`,{className:`share-panel`,children:[i.isPending&&(0,_.jsx)(`p`,{className:`loading`,children:`Loading…`}),i.isError&&(0,_.jsx)(`p`,{children:i.error.message}),i.data?.available===!1&&(0,_.jsx)(`p`,{children:i.data.reason}),i.data?.available&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tv,{label:`Command`,text:i.data.command}),(0,_.jsx)(tv,{label:`Link`,text:i.data.link}),(0,_.jsx)(`p`,{className:`share-note`,children:`The command works anywhere. The link works when the other person already has agentic-diff running. Both carry the repository address and the commits, never code or comments.`})]}),(0,_.jsx)(e_,{repoId:e.repoId,spec:e.spec})]})]}):t?.url?(0,_.jsxs)(`details`,{className:`share`,children:[(0,_.jsxs)(`summary`,{className:`button`,children:[(0,_.jsx)(Bi,{size:16}),` Copy link`]}),(0,_.jsxs)(`div`,{className:`share-panel`,children:[(0,_.jsx)(tv,{label:`Command`,text:Ft(t.url)}),(0,_.jsx)(tv,{label:`Link`,text:t.url}),(0,_.jsx)(`p`,{className:`share-note`,children:`The command opens this pull request in agentic-diff on another machine. Comments that are not published stay on this one.`})]})]}):null}var rv=`agentic-diff.pull-comments`;function iv(){try{return window.localStorage.getItem(rv)!==`0`}catch{return!0}}var av=`agentic-diff.tree`;function ov(){try{return window.localStorage.getItem(av)!==`closed`}catch{return!0}}var sv=new Set;function cv(){let e=(0,f.useRef)(Promise.resolve());return(0,f.useCallback)(t=>{let n=e.current.then(t,t);return e.current=n.catch(()=>void 0),n},[])}function lv({route:e,hash:t}){let{repoId:n,spec:r,ignoreWhitespace:i,view:a,pull:o,range:s}=e;Qa(n);let c=y(),[l]=(0,f.useState)(()=>({spec:r,pull:o,list:C_()})),u=l.spec===r&&l.pull===o?l.list:[],d=tt({queryKey:[`pull`,n,o],queryFn:async()=>{try{return await z.pull(n,o)}catch(t){if(t instanceof lt&&t.code===`pull_not_imported`)return z.importPull(n,o,e.remote);throw t}},enabled:o!==void 0,retry:!1}),p=nt({mutationFn:t=>z.importPull(n,t,e.remote),onSuccess:e=>c.setQueryData([`pull`,n,e.number],e)}),m=p.variables===o,h=(0,f.useMemo)(()=>{try{return St(r)}catch{return}},[r]),g=tt({queryKey:[`repo`,n],queryFn:()=>z.repo(n)}),v=tt({queryKey:[`refs`,n],queryFn:()=>z.refs(n)}),b=tt({queryKey:[`resolve`,n,r,i,s],queryFn:()=>z.resolve(n,r,i,s),enabled:o===void 0||d.data!==void 0,placeholderData:pe}),x=b.data,S=tt({queryKey:[`files`,n,x?.diffFrom,x?.diffTo,i],queryFn:()=>z.files(n,x.diffFrom,x.diffTo,i),enabled:x!==void 0,placeholderData:pe}),C=b.isPlaceholderData||S.isPlaceholderData,w=(0,f.useRef)(void 0);x&&S.data&&!C&&(w.current={sides:x,list:S.data});let T=!b.isError&&!(o!==void 0&&d.isError),E=C?T?w.current?.sides??x:void 0:x,D=C?T?w.current?.list:void 0:S.data,O=(0,f.useRef)(C);O.current=C;let ee=(0,f.useCallback)(()=>O.current,[]),k=Z0(E?.base),te=Z0(E?.head)??(E?g.data?.head.oid:void 0),ne=[...new Set([te,k,g.data?.head.oid].filter(e=>typeof e==`string`&&/^[0-9a-f]{40,64}$/.test(e)))],A=tt({queryKey:[`recent-commits`,n,ne.join(`,`)],queryFn:()=>z.recentCommits(n,ne),enabled:ne.length>0,staleTime:3e4}),j=tt({queryKey:[`commits`,n,k,te],queryFn:()=>z.commits(n,k,te),enabled:k!==void 0&&te!==void 0,staleTime:1/0,placeholderData:pe}),M={data:k!==void 0&&te!==void 0?j.data:void 0},re=E?.mode===`merge-base`&&k!==void 0&&Z0(E.head)!==void 0,ie=tt({queryKey:[`merge-status`,n,k,Z0(E?.head)],queryFn:()=>z.mergeStatus(n,k,Z0(E?.head)),enabled:re,staleTime:1/0}),N=E?Mt(E):void 0,P=E?.range!==void 0,ae=tt({queryKey:[`threads`,n,N,E?.diffFrom,E?.diffTo],queryFn:()=>z.syncThreads(n,N,E.diffFrom,E.diffTo),enabled:N!==void 0&&D!==void 0&&!P,placeholderData:pe}),[oe,se]=(0,f.useState)(iv),ce=tt({queryKey:[`threads`,n,`pull-for-branches`,e.spec,E?.diffFrom,E?.diffTo],queryFn:()=>z.pullForBranches(n,e.spec),enabled:oe&&e.pull===void 0&&N?.startsWith(`cmp:`)===!0&&D!==void 0&&!P,placeholderData:pe,retry:!1}),le=oe&&e.pull===void 0&&N?.startsWith(`cmp:`)===!0?ce.data:void 0,ue=(0,f.useMemo)(()=>P||!ae.data?void 0:[...ae.data.threads,...le?.threads??[]],[P,ae.data,le]),de=Z_(n),{threadsByFile:fe,threadCounts:F,detached:I,unresolved:me,unpublished:he}=(0,f.useMemo)(()=>{let e=new Map,t=[],n=ue??[];for(let r of n){let n=r.detached?void 0:D?.files.find(e=>(r.side===`L`?e.oldPath??e.path:e.path)===r.path);n?e.set(n.path,[...e.get(n.path)??[],r]):t.push(r)}return{threadsByFile:e,threadCounts:new Map([...e].map(([e,t])=>[e,t.length])),detached:t,unresolved:n.filter(e=>e.state===`open`).length,unpublished:n.reduce((e,t)=>e+t.comments.filter(e=>!e.published).length,0)}},[ue,D]),ge=cv(),_e=(0,f.useMemo)(()=>[`viewed`,n,N,E?.diffFrom,E?.diffTo],[n,N,E?.diffFrom,E?.diffTo]),ve=tt({queryKey:_e,queryFn:()=>z.viewed(n,N,E.diffFrom,E.diffTo),enabled:N!==void 0&&E!==void 0&&!P,placeholderData:pe}),L=(0,f.useMemo)(()=>P||!ve.data?sv:new Set(ve.data.paths),[P,ve.data]),ye=(0,f.useCallback)((e,t)=>{if(!N||!E||O.current)return;c.setQueryData(_e,n=>{let r=new Set(n?.paths);return t?r.add(e):r.delete(e),{paths:[...r]}});let r={scope:N,from:E.diffFrom,to:E.diffTo,path:e,viewed:t};ge(()=>z.setViewed(n,r)).then(e=>c.setQueryData(_e,e),()=>c.invalidateQueries({queryKey:_e}))},[c,ge,n,N,E,_e]),be=E!==void 0&&!P&&(E.diffTo===`:worktree`||E.diffTo===`:staged`),xe=(0,f.useMemo)(()=>[`staging`,n],[n]),Se=tt({queryKey:xe,queryFn:()=>z.staging(n),enabled:be}),[Ce,we]=(0,f.useState)(void 0),Te=Ce?.spec===r?Ce.message:void 0,Ee=(0,f.useCallback)(e=>{c.setQueryData(xe,e),Xa(c,[`index`])},[c,xe]),De=(0,f.useMemo)(()=>new Map((Se.data?.files??[]).map(e=>[e.path,e])),[Se.data]),Oe=E!==void 0&&E.diffFrom===g.data?.head.oid,ke=e=>{if(!be||!Se.data)return;let t=De.get(e.path);return t?t.staged?t.unstaged?`partial`:`staged`:`unstaged`:Oe?E?.diffTo===`:staged`?`staged`:`unstaged`:void 0},Ae=(0,f.useCallback)((e,t)=>{let i=e.oldPath?[e.path,e.oldPath]:[e.path];we(void 0),ge(()=>t?z.stage(n,i):z.unstage(n,i)).then(Ee,e=>we({spec:r,message:e instanceof Error?e.message:`git refused`}))},[ge,n,Ee,r]),[je,Me]=(0,f.useState)(void 0),Ne=(0,f.useRef)(void 0),Pe=t!==Ne.current,Fe=Pe?d_(t):je;(0,f.useEffect)(()=>{Pe&&Me(void 0)},[Pe]);let Ie=(0,f.useCallback)((e,t,n)=>{let r={anchor:e,side:t,line:n};Ne.current=f_(r),Me(r),v_(`${window.location.pathname}${window.location.search}${Ne.current}`,{replace:!0})},[]),Le=t=>v_(c_({...e,pull:void 0,remote:void 0,range:void 0,spec:wt(t)})),Re=e=>t=>{let r=jt(t);r===void 0?Le(e(X0(t))):v_(l_(n,r,a))},ze=(0,f.useCallback)(t=>`${c_({...e,range:t})}`,[e]),Be=t=>{o_(t),v_(`${c_({...e,view:t})}${window.location.hash}`,{replace:!0})},Ve=t=>{v_(`${c_({...e,ignoreWhitespace:t})}${window.location.hash}`,{replace:!0})},[He,Ue]=(0,f.useState)(!1),[We,Ge]=(0,f.useState)(!1),[Ke,qe]=(0,f.useState)(!1),[Je,Ye]=(0,f.useState)(!1),[Xe,Ze]=(0,f.useState)(!1),[Qe,$e]=(0,f.useState)(!1),[et,rt]=(0,f.useState)(ov),it=()=>rt(e=>{try{window.localStorage.setItem(av,e?`closed`:`open`)}catch{}return!e});U1({"?":()=>Ze(!0),f:()=>qe(!0),n:()=>K1(1),p:()=>K1(-1),t:()=>{et||it(),window.setTimeout(()=>document.querySelector(`.tree-filter input`)?.focus(),0)},v:()=>{let e=W1()?.getAttribute(`aria-label`);e&&!P&&ye(e,!L.has(e))},s:()=>{let e=W1()?.getAttribute(`aria-label`),t=D?.files.find(t=>t.path===e),n=t?ke(t):void 0;t&&n&&Ae(t,n!==`staged`)}});let at=Z0(E?.head),ot=E?.diffTo===`:worktree`&&!P,st=E!==void 0&&!P&&(at===void 0||at===g.data?.head.oid),ct=st||!E?void 0:`Check out ${Y0(h?.head??{kind:`worktree`})} to apply suggestions to it.`,ut=d.error??g.error??b.error??S.error,dt=S.dataUpdatedAt,ft=(0,f.useMemo)(()=>{let e=E?.range,t=M.data?.commits;if(!e||!t)return;let n=t.findIndex(t=>t.oid===e.to),r=t.findIndex(t=>t.oid===e.from);return n<0||r<n?void 0:t.slice(n,r+1)},[E?.range,M.data]),R=D?.totals,pt=h?.base.kind===`rev`&&h.head.kind===`rev`,mt=h?.mode===`merge-base`;return(0,_.jsx)(uo,{repoId:n,repoRoot:g.data?.root,spec:r,scope:N,scratch:E?.head.kind===`rev`,children:(0,_.jsxs)(M_,{repoId:n,canEdit:ot,canApply:st,applyBlockedBy:ct,children:[(0,_.jsxs)(`header`,{className:`app-header`,children:[(0,_.jsx)(`span`,{className:`app-name`,children:`agentic-diff`}),g.data&&(0,_.jsxs)(`span`,{className:`app-repo`,title:g.data.root,children:[(0,_.jsx)(ha,{size:16}),` `,g.data.name]}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button app-header-end`,"aria-label":`Keyboard shortcuts`,title:`Keyboard shortcuts (?)`,onClick:()=>Ze(!0),children:(0,_.jsx)(la,{size:16})}),(0,_.jsxs)(`button`,{type:`button`,className:`button`,"aria-pressed":We,disabled:N===void 0,onClick:()=>Ge(e=>!e),children:[(0,_.jsx)(Sr,{size:16}),` Agent`]})]}),(0,_.jsxs)(`main`,{className:`page${We?` with-chat`:``}`,children:[(0,_.jsxs)(`div`,{className:`page-narrow`,children:[o===void 0?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`h1`,{className:`page-title`,children:`Comparing changes`}),(0,_.jsx)(`p`,{className:`page-subtitle`,children:`Choose two branches, tags or commits to see what changed, or compare with your uncommitted work.`})]}):d.data?(0,_.jsx)(F0,{pull:d.data,commits:M.data?.total,refreshing:p.isPending&&m,refreshError:m?p.error?.message:void 0,onRefresh:()=>p.mutate(o),action:s===void 0&&(0,_.jsxs)(`button`,{type:`button`,className:`button button-small button-primary`,onClick:()=>Ye(!0),title:`See what would be published to GitHub, then publish it`,children:[(0,_.jsx)(gr,{size:16}),` Review changes`,he>0&&(0,_.jsx)(`span`,{className:`counter`,children:he})]})}):!d.error&&(0,_.jsxs)(`p`,{className:`loading`,children:[`Fetching pull request #`,o,`…`]}),u.map(e=>(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`status`,children:e},e)),o!==void 0&&re&&ie.data&&d.data?.state!==`merged`&&d.data?.state!==`closed`&&(0,_.jsx)(`div`,{className:`range-bar`,children:(0,_.jsx)(Q0,{status:ie.data})}),h&&o===void 0&&(0,_.jsxs)(`div`,{className:`range-bar`,children:[(0,_.jsx)(gi,{size:16,className:`range-icon`}),(0,_.jsx)(W0,{role:`base`,label:Y0(h.base),title:Z0(E?.base),selected:J0(h.base),refs:v.data,commits:A.data?.commits,offerLocalChanges:!1,onSelect:Re(e=>({...h,base:e}))}),(0,_.jsxs)(`button`,{type:`button`,className:`mode-toggle`,disabled:h.base.kind!==`rev`,"aria-label":mt?`Three-dot comparison. Switch to two-dot.`:`Two-dot comparison. Switch to three-dot.`,title:mt?`Three dots: what the compare side changed since it branched off. Click for a direct two-dot diff.`:`Two dots: the direct difference between the two sides. Click for a three-dot comparison.`,onClick:()=>Le({...h,mode:mt?`direct`:`merge-base`}),children:[(0,_.jsx)(Kn,{size:16}),(0,_.jsx)(`span`,{"aria-hidden":`true`,children:mt?`...`:`..`})]}),(0,_.jsx)(W0,{role:`compare`,label:Y0(h.head),title:Z0(E?.head),selected:J0(h.head),refs:v.data,commits:A.data?.commits,offerLocalChanges:!0,onSelect:Re(e=>({...h,head:e}))}),pt&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Swap base and compare`,title:`Swap base and compare`,onClick:()=>Le({...h,base:h.head,head:h.base}),children:(0,_.jsx)(Yn,{size:16})}),re&&ie.data&&(0,_.jsx)(Q0,{status:ie.data}),E&&!re&&(0,_.jsx)(`span`,{className:`range-note`,children:E.mode===`merge-base`&&E.mergeBase?(0,_.jsxs)(_.Fragment,{children:[`Changes since the merge base `,(0,_.jsx)(`code`,{children:E.mergeBase.slice(0,7)})]}):`Direct comparison of the two sides`}),pt&&E&&(R?.files??0)>0&&(0,_.jsxs)(`button`,{type:`button`,className:`button range-bar-end`,onClick:()=>$e(!0),title:`Open a pull request on GitHub for these two branches`,children:[(0,_.jsx)(Si,{size:16}),` Create pull request`]})]}),ut?(0,_.jsx)($0,{error:ut,pull:o}):null,(0,_.jsx)(Bg,{}),(0,_.jsx)(F_,{}),be&&Se.data&&(0,_.jsx)(D0,{status:Se.data,onStage:e=>ge(()=>z.stage(n,e)).then(Ee),onUnstage:e=>ge(()=>z.unstage(n,e)).then(Ee),onCommit:e=>ge(()=>z.commit(n,e)).then(e=>(Xa(c,[`refs`,`index`]),e))}),Te&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`git did not do that`}),(0,_.jsx)(`span`,{children:Te})]}),R&&M.data&&(0,_.jsxs)(`div`,{className:`stats-bar`,children:[(0,_.jsxs)(`span`,{children:[(0,_.jsx)(pi,{size:16,className:`range-icon`}),` `,(0,_.jsx)(`strong`,{children:M.data.total.toLocaleString(`en-US`)}),` `,M.data.total===1?`commit`:`commits`]}),(0,_.jsxs)(`span`,{children:[(0,_.jsx)(Yr,{size:16,className:`range-icon`}),` `,(0,_.jsx)(`strong`,{children:R.files.toLocaleString(`en-US`)}),` `,R.files===1?`file`:`files`,` changed`]}),(0,_.jsxs)(`span`,{children:[(0,_.jsx)(ra,{size:16,className:`range-icon`}),` `,(0,_.jsxs)(`strong`,{children:[M.data.contributors.toLocaleString(`en-US`),M.data.truncated?`+`:``]}),` `,M.data.contributors===1?`contributor`:`contributors`]})]}),M.data&&(0,_.jsx)(k_,{list:M.data,range:E?.range,hrefFor:E?.head.kind===`rev`?ze:void 0}),E?.range&&(0,_.jsxs)(`div`,{className:`flash flash-attention range-flash`,role:`status`,children:[(0,_.jsxs)(`span`,{children:[ft?.length===1?(0,_.jsxs)(_.Fragment,{children:[`Showing only the changes of commit `,(0,_.jsx)(`code`,{children:E.range.to.slice(0,7)}),` `,(0,_.jsx)(`em`,{children:ft[0]?.subject}),`.`]}):(0,_.jsxs)(_.Fragment,{children:[`Showing only the changes of `,ft?`${ft.length} commits`:`the commits`,`, `,(0,_.jsx)(`code`,{children:E.range.from.slice(0,7)}),` to`,` `,(0,_.jsx)(`code`,{children:E.range.to.slice(0,7)}),`.`]}),` `,`Conversations, viewed marks and editing belong to the whole comparison and are hidden here.`]}),(0,_.jsx)(`a`,{href:ze(void 0),onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0||(e.preventDefault(),v_(ze(void 0)))},children:`Show all changes`})]})]}),R&&D&&E&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`toolbar`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button tree-toggle`,"aria-pressed":et,"aria-label":et?`Hide file tree`:`Show file tree`,title:et?`Hide file tree`:`Show file tree`,onClick:it,children:et?(0,_.jsx)(wa,{size:16}):(0,_.jsx)(xa,{size:16})}),(0,_.jsxs)(`details`,{className:`toc`,onToggle:e=>Ue(e.currentTarget.open),children:[(0,_.jsxs)(`summary`,{"aria-live":`polite`,children:[(0,_.jsx)(Yr,{size:16,className:`range-icon`}),(0,_.jsxs)(`span`,{children:[`Showing `,(0,_.jsx)(`strong`,{className:`toc-link`,children:K0(R.files,`changed file`)}),` with`,` `,(0,_.jsx)(`strong`,{children:K0(R.additions,`addition`)}),` and`,` `,(0,_.jsx)(`strong`,{children:K0(R.deletions,`deletion`)}),`.`]})]}),He&&(0,_.jsx)(H_,{files:D.files})]}),ue&&ue.length>0&&(0,_.jsxs)(`span`,{className:`conversation-count`,children:[K0(ue.length,`conversation`),me>0?`, ${me} unresolved`:`, all resolved`]}),le?.pull&&(0,_.jsxs)(`span`,{className:`branch-pull`,role:`status`,children:[(0,_.jsx)(Yi,{size:16}),(0,_.jsxs)(`a`,{href:`/r/${n}/pull/${le.pull.number}`,title:`Open the pull request here: reply to its conversations and publish a review`,children:[`Pull request #`,le.pull.number]}),`: ${K0(le.threads.length,`conversation`)} from GitHub`,(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Fetch the pull request's comments again`,title:`Fetch the pull request's comments again`,onClick:()=>void z.pullForBranches(n,e.spec,!0).then(()=>c.invalidateQueries({queryKey:[`threads`,n]})),children:(0,_.jsx)(Aa,{size:16})})]}),!P&&R.files>0&&(0,_.jsxs)(`span`,{className:`viewed-count`,title:`Files you have marked as viewed`,children:[(0,_.jsx)(`progress`,{max:R.files,value:L.size,"aria-hidden":`true`}),L.size,` / `,R.files,` viewed`]}),(0,_.jsxs)(`label`,{className:`checkbox`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:i,onChange:e=>Ve(e.target.checked)}),`Hide whitespace`]}),e.pull===void 0&&N?.startsWith(`cmp:`)===!0&&(0,_.jsxs)(`label`,{className:`checkbox`,title:`When the two branches have an open pull request on GitHub, show its review comments here, marked as GitHub's. Asks GitHub with your gh sign-in.`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:oe,onChange:e=>{se(e.target.checked);try{window.localStorage.setItem(rv,e.target.checked?`1`:`0`)}catch{}}}),`Pull request comments`]}),(0,_.jsx)(nv,{route:e,pull:d.data}),(0,_.jsx)(ev,{view:a,onChange:Be})]}),R.files===0?(0,_.jsxs)(`div`,{className:`blankslate`,children:[(0,_.jsx)(`h2`,{className:`blankslate-title`,children:`There isn’t anything to compare.`}),(0,_.jsx)(`div`,{className:`blankslate-body`,children:(0,_.jsx)(`p`,{children:`The two sides are identical. Pick different revisions or make a change.`})})]}):(0,_.jsxs)(`div`,{className:`diff-layout${et?` with-tree`:``}`,children:[et&&(0,_.jsx)(A0,{files:D.files,viewed:L,threadCounts:F,activeAnchor:Fe?.anchor}),(0,_.jsx)(`div`,{className:`file-cards`,children:D.files.map(e=>(0,_.jsx)(E0,{repoId:n,comparison:E,file:e,view:a,target:Fe?.anchor===e.anchor?Fe:void 0,scrollToTarget:Pe,threads:fe.get(e.path)??G0,scope:N,viewed:L.has(e.path),onViewed:P?void 0:ye,readOnly:P,staging:ke(e),onStage:be?Ae:void 0,onSelectLine:Ie,isSettling:ee,listedAt:E.diffTo===`:worktree`&&!e.newOid&&Dn(e.path)!==void 0?dt:void 0},e.path))})]}),I.length>0&&(0,_.jsxs)(`section`,{className:`detached-threads`,"aria-label":`Conversations on files no longer in this comparison`,children:[(0,_.jsx)(`h2`,{className:`detached-title`,children:`Conversations on files that are no longer part of this comparison`}),I.map(e=>(0,_.jsx)(t1,{repoId:n,thread:e,actions:de,showPath:!0},e.id))]})]}),!ut&&(o===void 0||d.data)&&(b.isPending||S.isPending)&&(0,_.jsx)(`p`,{className:`loading`,children:`Loading…`})]}),Qe&&(0,_.jsx)(j0,{repoId:n,spec:r,onClose:()=>$e(!1),onOpen:e=>{$e(!1),v_(l_(n,e,a)),window.scrollTo(0,0)}}),Xe&&(0,_.jsx)(Y1,{onClose:()=>Ze(!1)}),(0,_.jsx)(Wg,{repoId:n,rev:E?.diffTo,searchOpen:Ke,onSearchClose:()=>qe(!1)}),Je&&d.data&&(0,_.jsx)(R0,{repoId:n,pull:d.data,onClose:()=>Ye(!1)}),We&&N&&(0,_.jsx)(Hg,{repoId:n,scope:N,onClose:()=>Ge(!1)})]})})}function uv({input:e}){let t=tt({queryKey:[`link`,e],queryFn:()=>z.resolveLink(e),retry:!1,refetchOnWindowFocus:!1}),n=nt({mutationFn:e=>z.cloneForLink(e),onSuccess:()=>t.refetch()}),r=t.data;return(0,f.useEffect)(()=>{r?.status===`ready`&&(S_(r.notices),v_(r.path,{replace:!0}))},[r]),t.isError?(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsx)(`div`,{className:`page-narrow`,children:(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Cannot open this link`}),(0,_.jsx)(`span`,{children:t.error.message})]})})}):r?.status===`needs-clone`?(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsxs)(`div`,{className:`dialog`,role:`dialog`,"aria-labelledby":`clone-title`,children:[(0,_.jsx)(`h1`,{id:`clone-title`,className:`dialog-title`,children:`Clone this repository?`}),(0,_.jsx)(`p`,{children:`This link points to a repository that is not on this machine yet.`}),(0,_.jsxs)(`dl`,{className:`dialog-facts`,children:[(0,_.jsx)(`dt`,{children:`Repository`}),(0,_.jsx)(`dd`,{children:(0,_.jsx)(`code`,{children:r.repoUrl})}),(0,_.jsx)(`dt`,{children:`Will be cloned to`}),(0,_.jsx)(`dd`,{children:(0,_.jsx)(`code`,{children:r.destination})})]}),(0,_.jsx)(`p`,{className:`dialog-note`,children:`Only clone repositories you expect. Nothing in it is run: agentic-diff reads the files and shows the comparison.`}),n.isError&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:(0,_.jsx)(`span`,{children:n.error.message})}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:n.isPending,onClick:()=>n.mutate(r.repoUrl),children:n.isPending?`Cloning…`:`Clone and open`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:n.isPending,onClick:()=>v_(`/`,{replace:!0}),children:`Cancel`})]}),n.isPending&&(0,_.jsx)(`p`,{className:`dialog-note`,children:`Large repositories can take a few minutes.`})]})}):(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsx)(`p`,{className:`loading`,children:`Opening the link…`})})}function dv({title:e,children:t}){return(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsxs)(`div`,{className:`blankslate`,children:[(0,_.jsx)(`h1`,{className:`blankslate-title`,children:e}),(0,_.jsx)(`div`,{className:`blankslate-body`,children:t})]})})}var fv=()=>(0,_.jsxs)(`p`,{children:[`Run `,(0,_.jsx)(`code`,{children:`agentic-diff`}),` in a git repository to open a comparison.`]});function pv(){let e=__(),t=s_(e.pathname,e.search,a_()),n=tt({queryKey:[`session`],queryFn:async()=>{let e=b_();if(e)try{return await z.signIn(e)}catch{}return z.session()},staleTime:1/0});return n.isPending?null:n.isError?(0,_.jsx)(dv,{title:`Cannot reach agentic-diff`,children:`The local server did not answer. Start it again from the terminal.`}):n.data.authenticated?t.name===`open`?(0,_.jsx)(uv,{input:t.input}):t.name===`compare`?(0,_.jsx)(lv,{route:t,hash:e.hash}):t.name===`home`?(0,_.jsx)(dv,{title:`agentic-diff`,children:(0,_.jsx)(fv,{})}):(0,_.jsx)(dv,{title:`Page not found`,children:`This address does not match any agentic-diff page.`}):(0,_.jsxs)(dv,{title:`Not signed in`,children:[(0,_.jsx)(`p`,{children:`This browser has no session with your local agentic-diff server.`}),t.name===`open`?(0,_.jsxs)(`p`,{children:[`To open this link, run `,(0,_.jsx)(`code`,{children:Ft(t.input)})]}):(0,_.jsx)(fv,{})]})}var mv=new qe({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:(e,t)=>!(t instanceof lt&&t.status<500)&&e<2}}});(0,ct.createRoot)(document.getElementById(`root`)).render((0,_.jsx)(f.StrictMode,{children:(0,_.jsx)(b,{client:mv,children:(0,_.jsx)(pv,{})})}));export{R1 as a,s1 as c,It as d,lt as f,l as h,M1 as i,j_ as l,d as m,F1 as n,v1 as o,g as p,k1 as r,c1 as s,m0 as t,wn as u};